diff
stringlengths 41
2.03M
| msg
stringlengths 1
1.5k
⌀ | repo
stringlengths 5
40
| sha
stringlengths 40
40
| time
stringlengths 20
20
|
---|---|---|---|---|
mmm a / js / apps / system / _admin / aardvark / APP / clusterFrontend / build / style - minified . css <nl> ppp b / js / apps / system / _admin / aardvark / APP / clusterFrontend / build / style - minified . css <nl> <nl> @ charset " UTF - 8 " ; . fa , . fa - stack { display : inline - block } . clusterDownBtn , . clusterDownBtn button , . fa - fw , . fa - li , . fa - stack - 1x , . fa - stack - 2x , . footer , . modal - body th . valueCell , . modal - body th th . actionCell , . modal - body th th . keyCell , . waitModal , div . toolbox div . gv_action_button { text - align : center } . page - title span , . pingback a . url , body , input , textarea { font - family : ' Open Sans ' , sans - serif ! important ; font - weight : 400 } @ font - face { font - family : ' Open Sans ' ; font - style : normal ; font - weight : 300 ; src : local ( ' Open Sans Light ' ) , local ( ' OpenSans - Light ' ) , url ( . . / fonts / opensans / OpenSansLight . woff ) format ( ' woff ' ) } @ font - face { font - family : ' Open Sans ' ; font - style : normal ; font - weight : 400 ; src : local ( ' Open Sans ' ) , local ( ' OpenSans ' ) , url ( . . / fonts / opensans / OpenSans . woff ) format ( ' woff ' ) } @ font - face { font - family : ' Open Sans ' ; font - style : normal ; font - weight : 700 ; src : local ( ' Open Sans Bold ' ) , local ( ' OpenSans - Bold ' ) , url ( . . / fonts / opensans / OpenSansBold . woff ) format ( ' woff ' ) } @ font - face { font - family : ' Open Sans ' ; font - style : italic ; font - weight : 300 ; src : local ( ' Open Sans Light Italic ' ) , local ( ' OpenSansLight - Italic ' ) , url ( . . / fonts / opensans / OpenSansLightItalic . woff ) format ( ' woff ' ) } @ font - face { font - family : ' Open Sans ' ; font - style : italic ; font - weight : 400 ; src : local ( ' Open Sans Italic ' ) , local ( ' OpenSans - Italic ' ) , url ( . . / fonts / opensans / OpenSansItalic . woff ) format ( ' woff ' ) } @ font - face { font - family : ' Open Sans ' ; font - style : italic ; font - weight : 700 ; src : local ( ' Open Sans Bold Italic ' ) , local ( ' OpenSans - BoldItalic ' ) , url ( . . / fonts / opensans / OpenSansBoldItalic . woff ) format ( ' woff ' ) } / * ! <nl> * Font Awesome 4 . 3 . 0 by @ davegandy - http : / / fontawesome . io - @ fontawesome <nl> * License - http : / / fontawesome . io / license ( Font : SIL OFL 1 . 1 , CSS : MIT License ) <nl> - * / @ font - face { font - family : FontAwesome ; src : url ( . . / fonts / fontawesome / fontawesome - webfont . eot ? v = 4 . 3 . 0 ) ; src : url ( . . / fonts / fontawesome / fontawesome - webfont . eot ? # iefix & v = 4 . 3 . 0 ) format ( ' embedded - opentype ' ) , url ( . . / fonts / fontawesome / fontawesome - webfont . woff2 ? v = 4 . 3 . 0 ) format ( ' woff2 ' ) , url ( . . / fonts / fontawesome / fontawesome - webfont . woff ? v = 4 . 3 . 0 ) format ( ' woff ' ) , url ( . . / fonts / fontawesome / fontawesome - webfont . ttf ? v = 4 . 3 . 0 ) format ( ' truetype ' ) , url ( . . / fonts / fontawesome / fontawesome - webfont . svg ? v = 4 . 3 . 0 # fontawesomeregular ) format ( ' svg ' ) ; font - weight : 400 ; font - style : normal } . fa { font : normal normal normal 14px / 1 FontAwesome ; font - size : inherit ; text - rendering : auto ; - webkit - font - smoothing : antialiased ; - moz - osx - font - smoothing : grayscale ; transform : translate ( 0 , 0 ) } . modal - body , button { font - family : ' Open Sans ' , sans - serif ! important } . fa - lg { font - size : 1 . 3333333333em ; 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 . 2857142857em } . fa - ul { padding - left : 0 ; margin - left : 2 . 1428571429em ; list - style - type : none } . fa - ul > li { position : relative } . fa - li { position : absolute ; left : - 2 . 1428571429em ; width : 2 . 1428571429em ; top : . 1428571429em } . fa - li . fa - lg { left : - 1 . 8571428571em } . fa - border { padding : . 2em . 25em . 15em ; border : . 08em solid # eee ; border - radius : . 1em } . pull - right { float : right } . contentDiv li , . dashboard - bar - chart - container , . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart , . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title , . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut , . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage , . dashboard - half - height - legend , . dashboard - large - chart , . dashboard - large - chart . dashboard - large - chart - inner , . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart , . dashboard - legend , . dashboard - medium - chart , . dashboard - medium - chart . dashboard - interior - chart , . dashboard - small - chart , . dashboard - small - chart . dashboard - small - chart - inner , . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart , . dashboard - sub - bar , . dashboard - sub - bar . dashboard - sub - bar - title , . dashboard - tendency - container , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency . dashboard - figure , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency . dashboard - subtitle - bar , . dashboard - title - bar . dashboard - half - title - bar , . machineClass , . modal - chart - detail , . modal - chart - detail . modal - body , . modal - chart - detail . modal - dashboard - legend , . modal - chart - detail . modal - inner - detail , . pull - left , . scenarioMachine , a . button - gui , a . headerButton , div . bigtile , div . bigtile a span . add - Icon , div . tile , div . tile a span . add - Icon , div . centralContent , div . dropdownInner ul , div . footer - center , div . footer - left , div . footer - left p , div . navlogo , ul . gv - dropdown - menu , ul . link - dropdown - menu , ul . navlist li , ul . script - dropdown - menu , ul . user - dropdown - menu { 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 ( 0 ) ; transform : rotate ( 0 ) } 100 % { - webkit - transform : rotate ( 359deg ) ; transform : rotate ( 359deg ) } } @ keyframes fa - spin { 0 % { - webkit - transform : rotate ( 0 ) ; transform : rotate ( 0 ) } 100 % { - webkit - transform : rotate ( 359deg ) ; transform : rotate ( 359deg ) } } . fa - rotate - 90 { filter : progid : DXImageTransform . Microsoft . BasicImage ( rotation = 1 ) ; - webkit - transform : rotate ( 90deg ) ; - ms - transform : rotate ( 90deg ) ; transform : rotate ( 90deg ) } . fa - rotate - 180 { filter : progid : DXImageTransform . Microsoft . BasicImage ( rotation = 2 ) ; - webkit - transform : rotate ( 180deg ) ; - ms - transform : rotate ( 180deg ) ; transform : rotate ( 180deg ) } . fa - rotate - 270 { filter : progid : DXImageTransform . Microsoft . BasicImage ( rotation = 3 ) ; - webkit - transform : rotate ( 270deg ) ; - ms - transform : rotate ( 270deg ) ; transform : rotate ( 270deg ) } . fa - flip - horizontal { filter : progid : DXImageTransform . Microsoft . BasicImage ( rotation = 0 ) ; - webkit - transform : scale ( - 1 , 1 ) ; - ms - transform : scale ( - 1 , 1 ) ; transform : scale ( - 1 , 1 ) } . fa - flip - vertical { filter : progid : DXImageTransform . Microsoft . BasicImage ( rotation = 2 ) ; - 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 ; width : 2em ; height : 2em ; line - height : 2em ; vertical - align : middle } . fa - stack - 1x , . fa - stack - 2x { position : absolute ; left : 0 ; width : 100 % } . 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 - 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 : 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 { 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 { 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 , . fa - genderless : 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 - 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 - 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 " } . dashboard - sub - bar - menu , . search - field , div . bigtile div . iconSet span , div . tile div . iconSet span , div . footer - right , div . footer - right p , div . headerBar > div . headerButtonBar , div . navmenu , ul . headerButtonList li { float : right } . dashboard - bar - chart - container . dashboard - bar - chart : after , . dashboard - medium - chart . dashboard - medium - chart - inner : after , . dashboard - medium - chart . dashboard - medium - chart - menu : after , . dashboard - row : after , . dashboard - sub - bar : after , . dashboard - tendency - container . dashboard - tendency - chart : after , . detail - chart : after , . machineClass : after , . scenarioSingleMachine : after , div . headerBar > div . headerButtonBar : after , div . resizecontainer : after , div . tileList : after { clear : both ; content : ' . ' ; display : block ; font - size : 0 ; height : 0 ; visibility : hidden } . addButton , . arangoicon , . clusterDownBtn button , . contentDiv . icon , . deleteButton , . gv - search - submit - icon , . icon - info - sign , . scenarioImage , . search - submit - icon , a . button - gui , a . headerButton , div . bigtile , div . bigtile a span . icon , div . bigtile a svg , div . bigtile div . iconSet span , div . tile a span . icon , div . tile a svg , div . tile div . iconSet span , div . headerDropdown . headerDropdown input [ type = checkbox ] . css - checkbox + label . css - label , div . toolbox div . gv_action_button , ul . script - dropdown - menu li . dropdown - item { cursor : pointer } footer . footer , nav . navbar { background - color : rgba ( 245 , 248 , 240 , . 95 ) ; color : # fff ; left : 0 ; position : fixed ; right : 0 ; width : 100 % ; z - index : 1000 } . button - danger { background - color : # da4f49 } . button - danger : focus , . button - danger : hover { background - color : # be342e } . deleteButton , a . danger . coordinator , a . danger . dbserver { color : # da4f49 } . deleteButton : focus , . deleteButton : hover , a . danger . coordinator : focus , a . danger . coordinator : hover , a . danger . dbserver : focus , a . danger . dbserver : hover { color : # be342e } a . danger . coordinator , a . danger . dbserver { fill : # da4f49 } a . danger . coordinator : focus , a . danger . coordinator : hover , a . danger . dbserver : focus , a . danger . dbserver : hover { fill : # be342e } . button - success { background - color : # 8aa051 } . button - success : focus , . button - success : hover { background - color : # 788f3d } . addButton , a . success . coordinator , a . success . dbserver { color : # 8aa051 } . addButton : focus , . addButton : hover , a . success . coordinator : focus , a . success . coordinator : hover , a . success . dbserver : focus , a . success . dbserver : hover { color : # 788f3d } a . success . coordinator , a . success . dbserver { fill : # 8aa051 } a . success . coordinator : focus , a . success . coordinator : hover , a . success . dbserver : focus , a . success . dbserver : hover { fill : # 788f3d } . button - warning { background - color : # faa732 } . button - warning : focus , . button - warning : hover { background - color : # f89406 } a . warning . coordinator , a . warning . dbserver { color : # faa732 ; fill : # faa732 } a . warning . coordinator : focus , a . warning . coordinator : hover , a . warning . dbserver : focus , a . warning . dbserver : hover { color : # f89406 ; fill : # f89406 } . button - close , . button - neutral { background - color : # 8f8d8c } . button - close : focus , . button - close : hover , . button - neutral : focus , . button - neutral : hover { background - color : # 736b68 } . dashboard - sub - bar - menu { color : # 8f8d8c } . dashboard - sub - bar - menu : focus , . dashboard - sub - bar - menu : hover { color : # 736b68 } . button - primary { background - color : # 564e4a } . button - primary : focus , . button - primary : hover { background - color : # 3a322e } . button - header , a . button - gui , a . headerButton { background - color : # fff ; border : 1px solid # fff ; color : # 555 } . button - header : focus , . button - header : hover , a . button - gui : focus , a . button - gui : hover , a . headerButton : focus , a . headerButton : hover { border : 1px solid # 8aa051 ; background - color : # 8aa051 ; color : # fff } . button - notification { background - color : # faa020 } . button - notification : focus , . button - notification : hover { background - color : # f87c0f } . button - inactive , . button - inactive : focus , . button - inactive : hover , [ class * = ' button - ' ] : disabled , [ class * = ' button - ' ] : focus : disabled , [ class * = ' button - ' ] : hover : disabled , [ class ^ = button - ] : disabled , [ class ^ = button - ] : focus : disabled , [ class ^ = button - ] : hover : disabled { background - color : # d3d3d3 } a . headerButton . disabled , a . headerButton . disabled : focus , a . headerButton . disabled : hover , a . inactive . coordinator , a . inactive . coordinator : focus , a . inactive . coordinator : hover , a . inactive . dbserver , a . inactive . dbserver : focus , a . inactive . dbserver : hover { color : # d3d3d3 } a . inactive . coordinator , a . inactive . coordinator : focus , a . inactive . coordinator : hover , a . inactive . dbserver , a . inactive . dbserver : focus , a . inactive . dbserver : hover { fill : # d3d3d3 } ul . gv - dropdown - menu , ul . link - dropdown - menu , ul . script - dropdown - menu , ul . user - dropdown - menu { background - color : # F5F8F0 ; border - color : # 666 ; border - style : solid ; border - width : 1px ; border - radius : 3px ; display : none ; list - style : none ; margin : 5px 0 0 ; padding : 5px 0 ; position : absolute ; right : 0 ; top : 80 % ; z - index : 1000 } a . tab , ul . script - dropdown - menu li . dropdown - item a { display : block } ul . gv - dropdown - menu li , ul . link - dropdown - menu li , ul . script - dropdown - menu li , ul . user - dropdown - menu li { line - height : 23px ; white - space : nowrap ; width : 100 % } ul . gv - dropdown - menu li . dropdown - header , ul . link - dropdown - menu li . dropdown - header , ul . script - dropdown - menu li . dropdown - header , ul . user - dropdown - menu li . dropdown - header { color : # 999 ; font - size : 15px ; font - weight : 600 ; font - variant : small - caps ; padding : 0 15px } ul . gv - dropdown - menu li . dropdown - header : hover , ul . link - dropdown - menu li . dropdown - header : hover , ul . script - dropdown - menu li . dropdown - header : hover , ul . user - dropdown - menu li . dropdown - header : hover { cursor : default } ul . gv - dropdown - menu li . divider , ul . link - dropdown - menu li . divider , ul . script - dropdown - menu li . divider , ul . user - dropdown - menu li . divider { background - color : # 666 ; height : 1px ; margin : 10px 0 } ul . gv - dropdown - menu a , ul . link - dropdown - menu a , ul . script - dropdown - menu a , ul . user - dropdown - menu a { color : # fff ; padding : 0 20px } . navbar { - webkit - font - smoothing : subpixel - antialiased } . navbar . nav li . dropdown . active > . dropdown - toggle , . navbar . nav li . dropdown . open . active > . dropdown - toggle , . navbar . nav li . dropdown . open > . dropdown - toggle { background : # 788f3d } nav . navbar { padding - top : 6px ; height : 44px ; margin - bottom : 3px ; top : 0 } nav . navbar . arangodbLogo { height : auto ; margin - left : - 5px ; margin - top : - 1px ; width : 40 % } nav . navbar . nav > . active > a { background - color : # fff ; color : # 000 ; - webkit - box - shadow : 0 0 0 transparent inset ; - moz - box - shadow : 0 0 0 transparent inset ; box - shadow : 0 0 0 transparent inset } nav . navbar . nav > li > a : focus { background - color : # fff } nav . navbar . nav > li > a : hover { background - color : # 000 ; color : # 686766 } ul . navlist li . dropdown - item : hover a , ul . navlist > li . active a , ul . navlist > li . active : hover a , ul . navlist > li : hover a { color : # 000 } div . navlogo { margin - left : 5px ; margin - right : - 1px ; padding - top : 3px } ul . navlist { list - style : none } ul . navlist li { margin - left : 1px } ul . navlist li . navbar - spacer { background - color : # a0a0a0 ; height : 21px ; margin - top : 9px ; width : 1px } ul . navlist li . navbar - spacer . big { margin - left : 15px ; margin - right : 15px } ul . navlist li . navbar - spacer . med { margin - left : 5px ; margin - right : 5px } ul . navlist li . dropdown - item , ul . script - dropdown - menu li . dropdown - item { margin - left : 0 } ul . navlist li . navbar - spacer : hover { background - color : # a0a0a0 } ul . navlist > li . active , ul . navlist > li . active : hover { background - color : transparent } ul . navlist li . active { font - weight : 700 } ul . navlist li . active . tab { border - bottom : 2px solid # 8aa051 ; padding - bottom : 4px } ul . navlist li . dropdown - item : hover , ul . navlist > li : hover { background - color : # fff ; border - radius : 3px } ul . navlist li . dropdown - item a { display : block ; border - bottom : 0 } ul . navlist li . dropdown - item a : hover { color : # 686766 ; background - color : # dee9cf } a . tab { color : # 686766 ; font - size : 12pt ; font - weight : 100 ; padding : 9px 10px 10px } a . tab . userImg { padding - bottom : 5px } . dropdown - item a { border - bottom : 0 ! important ; font - weight : 300 } ul . link - dropdown - menu { background - color : # fff ; border : none } ul . script - dropdown - menu li . dropdown - item a : hover { color : # fff } ul . script - dropdown - menu li . dropdown - item : hover { background - color : # 8aa051 } ul . gv - dropdown - menu { - moz - border - radius : 0 ; - webkit - border - radius : 0 ; border - radius : 0 ; background - color : rgba ( 0 , 0 , 0 , . 7 ) ; border : 1px solid # c2c2c2 ; margin - right : - 20px ; margin - top : 6px } ul . gv - dropdown - menu : after { border - bottom - color : # fff } ul . gv - dropdown - menu li : hover { background - color : # fff ; background - image : none } ul . gv - dropdown - menu li a { padding : 0 } ul . gv - dropdown - menu li a label { color : # fff ; padding - left : 5px } ul . gv - dropdown - menu li a : focus { background - color : # 8aa051 ! important ; background - image : none } # arangoCollectionSelect { display : none ; float : right ; margin - bottom : 0 ; margin - right : 15px ; padding - bottom : 0 } . caret { border - left : 5px solid transparent ; border - top : 5px solid # 686766 ; border - right : 5px solid transparent ; content : ' ' ; display : inline - block ; height : 0 ; vertical - align : top ; width : 0 } . applications - menu { display : block } . arango - logo { height : 34px ; padding : 0 ! important } . arango - logo img { margin - left : 22px } . footer { bottom : 0 ; font - size : 14px ; left : 0 ; position : fixed ; right : 0 ; z - index : 1000 } footer . footer { bottom : 0 ; height : 40px } footer . footer p { margin - bottom : 0 ; padding - bottom : 10px ; padding - top : 10px ; font - weight : 100 ; font - size : 10pt } div . footer - left { background : none ; color : # 686766 ; width : 45 % } div . footer - left . social - icons { margin - top : 5px } div . footer - left . social - icons a { width : 25px ; display : block ; height : 25px ; float : left } div . footer - left . social - icons p { font - size : 12pt ; background : # fff ; border : 1px solid rgba ( 104 , 103 , 102 , . 1 ) ; border - radius : 20px ; height : 25px ; width : 25px ; padding : 0 ; margin - right : 10px } div . footer - left . social - icons p : hover { cursor : pointer ; background : # 8c8a89 } div . footer - left . social - icons p : hover i { color : # fff } div . footer - left . social - icons i { color : # 000 ; position : absolute ; margin - top : 4px } div . footer - left . social - icons i . fa - twitter { margin - left : - 7px } div . footer - left . social - icons i . fa - envelope { margin - left : - 20px } div . footer - left . social - icons i . fa - google { margin - top : 6px ; margin - left : - 18px } div . footer - left . social - icons i . fa - stack - overflow { margin - left : - 18px } div . footer - center { background : none ; color : # 686766 ; width : 10 % } div . footer - center p : hover { cursor : pointer } [ class * = ' button - ' ] : disabled , [ class ^ = button - ] : disabled , a . headerButton . disabled { cursor : not - allowed } div . footer - right { background : none ; color : # 686766 ; width : 45 % } div . footer - right p { color : # fff } div . footer - right i { color : # da4f49 ; font - size : 18px } div . footer - right a { color : # 686766 ; margin - left : 5px ; position : relative ; top : - 1px } div . footer - right . isOnline { color : # 8aa051 ! important } . button - close , . button - danger , . button - header , . button - inactive , . button - neutral , . button - notification , . button - primary , . button - success , . button - warning { - moz - border - radius : 4px ; - webkit - border - radius : 4px ; border - radius : 4px ; - webkit - box - shadow : 0 ; - moz - box - shadow : 0 ; box - shadow : 0 ; font - size : 14px ; font - weight : 300 ! important } . button - close , . button - danger , . button - inactive , . button - neutral , . button - notification , . button - primary , . button - success , . button - warning { border : 0 ; color : # fff ; margin - left : 10px ; padding : 5px 16px } . button - header { margin - top : 5px } . addButton { font - size : 22px ; margin - right : 7px ; margin - top : 2px ; position : relative } . deleteButton { font - size : 22px ; padding - right : 3px ; position : relative ; top : 3px } # closeBtnInfoView { margin - left : 0 ! important } button . large - distance { margin - left : 12px } button . short - distance { margin - left : 6px } ul . headerButtonList { display : inline - block ; margin - bottom : 0 ; margin - left : 0 ; padding - left : 0 ! important } ul . headerButtonList li { display : inline } button . shutdown { margin - top : 6px ; padding : 3px 14px } a . button - gui , a . headerButton { - moz - border - radius : 2px ; - webkit - border - radius : 2px ; border - radius : 2px ; - webkit - box - shadow : none ; - moz - box - shadow : none ; box - shadow : none ; margin - left : 5px ; margin - right : 5px } a . headerButton { margin - top : 2px ; position : relative } a . headerButton . fa , a . headerButton [ class * = " icon_ " ] , a . headerButton [ class ^ = icon_ ] { display : block ; height : 23px ; line - height : 23px ; position : static ; right : 0 ; text - align : center ; top : 0 ; width : 27px } a . headerButton . icon_arangodb_arrowleft , a . headerButton . icon_arangodb_arrowright { font - weight : 700 } a . headerButton . activated { background - color : # 788f3d ; color : # fff ; border : 1px solid # 788f3d } a . headerButton . activated : hover { background - color : # fff ; color : # 788f3d } div . toolbox { border - radius : 3px ; background - color : # fff ; border : 1px solid rgba ( 104 , 103 , 102 , . 1 ) ; margin - right : 5px ; margin - top : - 3px ; padding - top : 5px ; padding - bottom : 5px ; position : absolute } div . toolbox , div . toolbox div . gv_action_button { - moz - border - radius : 3px ; - webkit - border - radius : 3px } div . toolbox div . gv_action_button { background - color : # fff ; border - radius : 3px ; color : # 000 ; height : 50px ; margin : 5px ; position : relative ; width : 50px } div . toolbox div . gv_action_button . active { background - color : # 8aa051 ; color : # fff } div . toolbox div . gv_action_button : first - child { margin - top : 0 } div . toolbox div . gv_action_button : last - child { margin - bottom : 0 } h6 . gv_button_title , h6 . gv_icon_icon { left : 0 ; margin : 0 ; position : absolute ; right : 0 } h6 . gv_icon_icon { font - size : 22px ; top : 6px } h6 . gv_button_title { bottom : 1px } button . graphViewer - icon - button { background - color : transparent ; border : 0 ; height : 20px ; margin - left : 5px ; margin - top : - 2px ; padding : 0 ; width : 20px } button . graphViewer - icon - button > img { height : 20px ; padding - bottom : 10px ; width : 20px } button . gv_dropdown_entry { height : 30px ; margin : 4px 4px 4px 30px ; width : 160px } button . gv_context_button { width : 65px } . btn - icon { background - color : # 383434 ; padding : 4px } button . gv - icon - small { background - size : 16px 16px ; height : 16px ; width : 16px } button . gv - icon - small . delete { background - image : url ( . . / img / icon_delete . png ) } button . gv - icon - small . add { background - image : url ( . . / img / plus_icon . png ) } button . gv - icon - btn { - moz - border - radius : 0 ! important ; - webkit - border - radius : 0 ! important ; border - radius : 0 ! important ; background - size : 36px 36px ; height : 36px ; width : 36px } button . gv - icon - btn . active { background - color : # 8aa051 } button . btn - zoom : hover { background : inherit } button . btn - zoom { background : 0 0 ; height : 16px ; margin : 0 ; padding : 0 ; position : absolute ; width : 16px } button . btn - zoom - top { border : 0 ; box - shadow : none ; left : 13px ; top : 1 } button . btn - zoom - left { border : 0 ; box - shadow : none ; left : 0 ; top : 13px } button . btn - zoom - bottom { border : 0 ; box - shadow : none ; left : 13px ; top : 25px } button . btn - zoom - right { border : 0 ; box - shadow : none ; right : 0 ; top : 13px } button . gv - zoom - btn { background - size : 14px 14px ; height : 14px ; vertical - align : baseline ; width : 14px } button . gv - zoom - btn . pan - right { background - image : url ( . . / img / gv_arrow_right . png ) } button . gv - zoom - btn . pan - left { background - image : url ( . . / img / gv_arrow_left . png ) } button . gv - zoom - btn . pan - top { background - image : url ( . . / img / gv_arrow_top . png ) } button . gv - zoom - btn . pan - bottom { background - image : url ( . . / img / gv_arrow_bottom . png ) } a . pagination - button , ul . arango - pagination a { - moz - border - radius : 3px ; - webkit - border - radius : 3px ; border - radius : 3px } . badge , . btn , . label { text - shadow : none ! important } . navbar - inner , . thumbnail { - moz - border - radius : 0 ; - webkit - border - radius : 0 ; border - radius : 0 ; - webkit - box - shadow : 0 ; - moz - box - shadow : 0 ; box - shadow : 0 } . modal - body th . actionCell > button { margin - top : - 12px } . btn - old - padding { padding - bottom : 4px ! important ; padding - top : 4px ! important } button . btn - overview , button . btn - server { margin : 5px } button . btn - server { width : 120px } a . button - gui { height : auto ; margin - bottom : 0 ; margin - top : 0 ; padding - top : 1px ; padding - bottom : 1px ; position : absolute ; right : 2px ; text - decoration : none ! important ; top : 2px ; width : auto } a . button - gui . button - gui - disabled { display : none } . clusterDownBtn { padding - bottom : 10px ; padding - top : 10px } . clusterDownBtn button { - moz - border - radius : 3px ; - webkit - border - radius : 3px ; border - radius : 3px ; background - color : # f1f1f1 ; border : 1px solid rgba ( 0 , 0 , 0 , . 1875 ) ; color : # 333 ; font - size : 20px ; font - weight : 300 ; margin : 0 ; padding : 12px 18px ; text - decoration : none ! important ; width : 250px } . clusterDownBtn button : hover { background - color : # e8e8e8 ; color : # 4a6c30 ; - webkit - transition - delay : 0 ; - webkit - transition - duration : . 2s ; - webkit - transition - property : all ; - webkit - transition - timing - function : ease - in } . clusterDownBtn button . green { background - color : # 617e2b ; color : # fff } . clusterDownBtn button . green : hover { background - color : # 8ba142 } . bottomButtonBar { border - top : 1px solid rgba ( 104 , 103 , 102 , . 1 ) ; background - color : # fff ; height : 30px ; padding : 10px } . clusterInfoIcon { float : left ; padding - left : 5px ; padding - top : 2px } . waitModal . icon { font - size : 100px ; height : 120px } . waitModal . message { font - size : 20px } . icon_arangodb_info { color : # 333 ; font - size : 23px } li a [ class * = " icon_arangodb " ] , li a [ class ^ = icon_arangodb ] { font - size : 18px ; position : absolute ; right : 4px ; top : 2px } . fa - minus - circle { color : # da4f49 ; font - size : 14pt } . fa - minus - circle : hover { cursor : pointer } div . headerDropdown { background - color : # fff ; border : 1px solid rgba ( 104 , 103 , 102 , . 1 ) ; border - radius : 3px ; display : none ; padding : 10px ; position : relative ; width : auto } div . headerDropdown . headerDropdown input [ type = checkbox ] . css - checkbox { display : none } div . headerDropdown . headerDropdown input [ type = checkbox ] . css - checkbox + label . css - label { background - position : 0 0 ; background - repeat : no - repeat ; display : inline - block ; font - size : 15px ; height : 15px ; margin - top : 0 ; padding - left : 20px ; vertical - align : middle } div . headerDropdown . headerDropdown input [ type = checkbox ] . css - checkbox : checked + label . css - label { background - position : 0 - 15px } div . dropdown - title { margin - bottom : 10px } div . dropdownInner { - webkit - box - shadow : 0 ; - moz - box - shadow : 0 ; box - shadow : 0 ; min - height : 125px ; position : relative ; width : auto } div . dropdownInner > . nav - header { color : # 000 ; font - size : 13px ; font - weight : 400 } div . dropdownInner > label { color : # 000 ; font - weight : 300 } div . dropdownInner ul { border - left : 1px solid # c2c2c2 ; display : inline ; margin - top : 10px ; min - height : 105px ; width : 238px } div . dropdownInner ul : first - of - type { border : 0 } div . dropdownInner ul label { color : # 000 ; padding - left : 35px } div . dropdownInner ul li . fa { margin - right : 5px ; color : # 8c8a89 } div . dropdownInner ul li . fa . fa - check - circle - o , div . dropdownInner ul li . fa . fa - dot - circle - o { color : # 8aa051 } div . queryline { color : # 000 ; height : 35px } div . queryline . textDiv { margin - right : 10px ; margin - top : 4px } div . queryline input , div . queryline select { margin - bottom : 5px } div . queryline . querylineAdd span { color : # fff ; padding - left : 10px ; position : relative ; top : - 21px } div . queryline . removeFilterItem i { margin - left : 5px ! important ; margin - top : 0 ! important } div . queryline div . searchByAttribute { margin - left : 6px ; margin - right : 6px ; position : relative } div . queryline div . searchByAttribute > ul . gv - dropdown - menu { - moz - border - radius : 0 ; - webkit - border - radius : 0 ; border - radius : 0 ; background - color : # fff ; color : # fff ; display : none ; left : 0 ; position : absolute ; top : 20px ; width : 247px } div . dropdownImport { background - color : # fff ; border - radius : 3px ; display : none ; position : relative ; padding : 10px 10px 5px } div . dropdownImport input { line - height : 0 ; margin - bottom : - 15px ; margin - top : 5px } select . filterSelect { margin - left : 10px ; margin - right : 10px ; width : 100px } # filterHeader button { float : right ; margin - left : 10px ! important ; margin - top : 1px } div . input - append button . gv_example_toggle { - moz - border - radius : 0 4px 4px 0 ; - webkit - border - radius : 0 4px 4px 0 ; border - radius : 0 4px 4px 0 ; background - color : # 8f8d8c ; height : 30px ; margin - left : - 1px ; padding - left : 10px ; padding - right : 10px ; padding - top : 12px ; vertical - align : top } div . input - append button . gv_example_toggle : hover { background - color : # 8aa051 } . searchEqualsLabel { margin - left : 6px ; margin - right : 6px } img . gv - throbber { background - image : url ( . . / img / swagger / throbber . gif ) } span . gv_caret { margin - top : 2px ! important } input . search - input { - moz - border - radius : 3px ; - webkit - border - radius : 3px ; border - radius : 3px ; background - color : # fff ! important ; border : 1px solid # eee ; box - shadow : none ; height : 14px ; line - height : 18px ; margin - top : 6px ; margin - right : - 1px ; width : 120px ; outline : transparent 0 } input . search - input : focus { border - color : # 999 ; box - shadow : none ; outline : transparent 0 } . search - field { margin - left : 10px } . search - field . fa - search { color : # D2D2D2 ; font - size : 13pt ; opacity : . 5 ; position : absolute ; right : 7px ; top : 9px } . search - field . fa - search : hover { opacity : 1 ; cursor : pointer } . gv - search - submit - icon , . search - submit - icon { background - image : url ( . . / img / enter_icon . png ) ; background - size : 14px ; height : 14px ; margin - left : - 18px ; opacity : . 2 ; position : absolute ; width : 14px } . gv - search - submit - icon : hover , . search - submit - icon : hover { opacity : . 8 } . search - submit - icon { margin - top : 11px } . gv - search - submit - icon { margin - top : 6px } div . headerBar { background - color : # fff ; border - radius : 3px ; border : 1px solid rgba ( 104 , 103 , 102 , . 1 ) ; color : # fff ; font - size : 16px ; height : 36px ; margin - top : 15px ; margin - bottom : 5px ; padding - left : 5px ; padding - right : 5px ; position : relative } div . headerBar . infoField { background - color : # f5f8f0 ; border : 1px solid # d3d3d3 ; border - radius : 3px ! important ; color : # 000 ; float : right ; font - size : 12px ; margin - top : 7px ; margin - right : 7px ; padding - left : 5px ; padding - right : 5px } div . headerBar . infoField . fa { cursor : pointer ; margin - left : 5px } div . headerBar input [ type = checkbox ] . css - checkbox { display : none } div . headerBar input [ type = checkbox ] . css - checkbox + label . css - label { background - position : 0 0 ; background - repeat : no - repeat ; cursor : pointer ; display : inline - block ; font - size : 15px ; height : 15px ; margin - top : 0 ; padding - left : 20px ; vertical - align : middle } div . headerBar input [ type = checkbox ] . css - checkbox : checked + label . css - label { background - position : 0 - 15px } div . headerBar input [ type = radio ] { display : none } div . headerBar input [ type = radio ] + label span { background : url ( . . / img / check_radio_sheet . png ) - 38px top no - repeat ; cursor : pointer ; display : inline - block ; height : 19px ; margin : - 1px 4px 0 0 ; vertical - align : middle ; width : 19px } # transparentHeader input [ type = checkbox ] . css - checkbox , . lineGraph . many . dygraph - legend > span , . modal - delete - confirmation { display : none } div . headerBar input [ type = radio ] : checked + label span { background : url ( . . / img / check_radio_sheet . png ) - 57px top no - repeat } div . headerBar a . arangoHeader { color : # 000 ; font - size : 13pt ; font - weight : 100 ; left : 0 ; position : relative ; top : 7px } div . headerBar > div . headerButtonBar { margin : 4px 0 ; margin - bottom : 0 ! important } . breadcrumb { background : 0 0 ; border : 0 ; border - radius : 0 ; padding : 7px 0 } . breadcrumb . disabledBread { font - size : 13pt ; font - weight : 100 ; color : # 666 ; float : left ; padding - right : 5px ; position : relative } . breadcrumb . disabledBread i { font - size : 10pt ; margin - left : 10px } . breadcrumb . activeBread { font - size : 13pt ; font - weight : 100 ; color : # 7da817 ; float : left } . arangoHeader { font - weight : 400 } . checkboxLabel { margin - top : 4px ; padding - left : 0 } . css - label { background - image : url ( . . / img / dark - check - green . png ) } . css - label - round { background - image : url ( . . / img / dark - check - green - round . png ) } . modal - dashboard - header , . modal - header { background - color : # fff ; border - radius : 3px ; border - bottom : 0 ! important ; margin - top : 5px ; padding - left : 5px ; padding - right : 10px ; padding - top : 4px } . modal - dashboard - header . arangoHeader , . modal - header . arangoHeader { color : # 000 ; font - size : 13pt ; font - weight : 100 ; left : 5px ; position : relative ; top : 2px } . modal - dashboard - header a , . modal - header a { top : 2px ! important } . modal - dashboard - header . close , . modal - header . close { color : # fff ; font - weight : 300 ; margin - top : 2px ; opacity : . 5 } . modal - dashboard - header . close : hover , . modal - header . close : hover { opacity : 1 } . modal - body { color : # 736b68 ; font - size : 14px ; font - weight : 300 } . modal - body . select2 - choices { border - radius : 3px ; border : 1px solid # aaa ; box - shadow : none ; - webkit - box - shadow : none ; background - image : none ! important } . modal - body . select2 - choices input { box - shadow : none ; - webkit - box - shadow : none ; outline : transparent ! important } . modal - body . select2 - choices input : active { box - shadow : none ; - webkit - box - shadow : none ; outline : 0 ! important } . modal - body . select2 - choices . select2 - search - choice { margin : 5px 0 3px 5px ! important } . modal - body . select2 - choices li { color : # 000 ; background - color : # fff ! important ; background - image : none ! important } . modal - body . select2 - choices li a { margin - top : - 1px ; margin - left : 1px } . modal - body . select2 - choices : active { outline : transparent ! important ; border : 1px solid # aaa ; box - shadow : none ! important ; - webkit - box - shadow : none ! important } . modal - body . nav - tabs { margin - top : 15px } . modal - body input , . modal - body select , . modal - body textarea { margin - top : 10px ; border - radius : 3px ; box - shadow : none } . modal - body input [ type = checkbox ] { margin - bottom : 10px } . modal - body input [ type = text ] . invalid - input { border - color : rgba ( 234 , 23 , 23 , . 6 ) } . modal - body input [ type = text ] . invalid - input : focus { - webkit - box - shadow : inset 0 1px 1px rgba ( 0 , 0 , 0 , . 075 ) , 0 0 8px rgba ( 234 , 23 , 23 , . 6 ) ; - moz - box - shadow : inset 0 1px 1px rgba ( 0 , 0 , 0 , . 075 ) , 0 0 8px rgba ( 234 , 23 , 23 , . 6 ) ; box - shadow : inset 0 1px 1px rgba ( 0 , 0 , 0 , . 075 ) , 0 0 8px rgba ( 234 , 23 , 23 , . 6 ) } . modal - body input [ type = file ] { line - height : 17px } . modal - body th . actionCell { width : 30px } . modal - body th . keyCell { width : 170px } . modal - body th . keyCell input { width : 150px } . modal - body th . valueCell { width : 300px } . modal - body th . valueCell input { width : 290px } . modal - body th div . select2 - container { margin - bottom : 10px ; margin - top : 10px } . modal - body . icon - info - sign { margin - bottom : 10px ; margin - left : 10px ; opacity : . 7 ; padding - bottom : 5px } . modal - body . icon - info - sign : hover { opacity : 1 } . modal - body . icon_arangodb_info { color : # 736b68 ; font - size : 18px ; margin - top : - 10px ; position : absolute ; right : 12px } . modal - body . icon_arangodb_info : hover { color : # 000 } . modal - body . collapse { margin - right : - 14px ; position : relative } . modal - body . accordion - inner { border - top : 0 ; margin - left : 0 ; padding - left : 0 ; padding - right : 0 } . modal - body . accordion - toggle span b . caret { border - top - color : # 000 ; float : right ; margin - top : 5px } . modal - body . accordion - toggle . collapsed span b . caret { - ms - transform : rotate ( 90deg ) ; - webkit - transform : rotate ( 90deg ) ; transform : rotate ( 90deg ) } . modal - body input { width : 384px } . modal - body select { width : 398px } . modal - body . collectionTh { height : 55px } . modal - body . tab - content { min - height : 200px } . modal - body . tab - content . tab - pane { border - top : 1px solid # 666 ! important ; margin - left : 0 ! important ; padding - top : 10px } . modal - body . tab - content # appstore { max - height : 290px } . modal - body . errorMessage { background - color : # fff ; color : red ; font - size : 9pt ; font - weight : 400 ; margin - bottom : 5px ; margin - top : - 9px ; position : absolute } . modal - body . nav img . tab - icon { margin - right : 5px ; margin - top : - 3px ; width : 20px } . modal - text { font - weight : 300 ; padding - bottom : 3px ; padding - top : 3px } . modal - backdrop , . modal - backdrop . fade . in { opacity : . 4 } . modal { box - shadow : none ; border : 0 ! important ; border - radius : 3px ! important } . modal . fade . in { top : 12 . 1 % ! important } . modal table tr : last - child { border - bottom : 0 ! important } . waitModal { box - shadow : none ; background : 0 0 ; border : 0 ; color : # fff } . waitModal , div . bigtile , div . tile { - webkit - box - shadow : none ; - moz - box - shadow : none } . waitModalBackdrop { opacity : . 7 ! important } . modalTooltips span { color : # 736b68 ; font - size : 20px } . modalTooltips span : hover { color : # 000 } pre . gv - object - view { text - align : left ; white - space : pre } . capitalize { text - transform : capitalize } . modal - footer { border - top : 0 ! important ; padding - right : 17px } . modal - header { margin - left : 5px ; margin - right : 5px } . modal - dashboard - header { margin - left : 0 ; margin - right : 0 ; padding - bottom : 9px } . modal table tr , . thBorderBottom { border - bottom : 1px solid # f7f3f2 ! important } . modal - delete - confirmation button { margin - right : 10px ; margin - top : - 4px } . modal - delete - confirmation button . modal - confirm - delete { margin - right : - 18px } . createModalDialog table { width : 100 % } . createModalDialog . collection - info - figures table { float : left ; margin - left : 0 ; margin - right : 0 ; margin - top : 0 ; min - width : 200px ; padding : 3px ; text - align : left } . createModalDialog . figures1 , . createModalDialog . figures2 { margin - bottom : 20px ; width : 255px } . createModalDialog . figures2 { margin - left : 20px ! important } . createModalDialog . figures3 { margin - bottom : 0 ; width : 100 % } . foxx - store - row . foxx - name { font - weight : 700 } . foxx - store - row . foxx - author { font - size : 10pt ; font - weight : 300 ; margin - top : - 4px } . foxx - store - row . foxx - version { font - weight : 400 } # new - app - mount { margin - right : 24px ; width : 360px } # control_event_edge_delete_modal , # control_event_edge_edit_modal , # control_event_new_node_modal , # control_event_node_delete_modal , # control_event_node_edit_modal { margin - left : - 320px ; width : 640px } . scenarioImage { height : 70 % ; width : auto } svg . clusterChart { height : auto ; margin : auto ; width : auto } . lineGraph { position : absolute } . lineGraph . few . dygraph - legend > span . highlight { border : 1px solid grey } . lineGraph . many . dygraph - legend > span . highlight { display : inline } a . coordinator , a . dbserver { color : # 000 ; height : 50px ; position : absolute ; top : 10px ; width : 50px } a . coordinator h6 . serverName , a . dbserver h6 . serverName { bottom : 0 ; font - size : 11px ; left : 0 ; margin : 0 ; position : absolute ; right : 0 } a . coordinator . single { left : 90px } a . coordinator . double { left : 60px } a . dbserver . single { right : 90px } a . dbserver . double { right : 60px } . cluster - connection - check - success { color : # 8aa051 ; margin - left : 20px } . cluster - connection - check - fail { color : # da4f49 ; margin - left : 20px } . cluster - unreachable - info { margin : 0 auto ; max - width : 320px ; padding - top : 17px ; text - align : center } . machineClass { background - color : # e1e1e1 ; margin - left : 31px ; margin - right : 31px ; padding : 10px } . scenarioBox { - moz - border - radius : 3px ; - webkit - border - radius : 3px ; border - radius : 3px ; background - color : rgba ( 0 , 0 , 0 , . 075 ) ; border : 1px solid rgba ( 0 , 0 , 0 , . 19 ) ; height : 65px ; left : 10px ; margin - top : 30px ; position : absolute ; right : 10px ; width : auto } . scenarioMachine , div . bigtile , div . tile { background - color : # fff ; position : relative } . scenarioBox . bottomBox { bottom : 30px } . scenarioBoxHeader { border - bottom : 1px solid rgba ( 0 , 0 , 0 , . 19 ) ; height : 18px ; line - height : 18px ; margin - top : 0 ; padding - bottom : 0 ; text - align : center ; width : auto } . scenarioBoxText { font - size : 13px ; font - weight : 400 ; margin - top : 17px ; text - align : center ; width : auto } . collectionName , div . bigtile . badge - success , div . tile . badge - success { font - weight : 300 } . scenarioMachine { border - radius : 3px 3px 0 0 ; border : 1px solid rgba ( 0 , 0 , 0 , . 19 ) ; height : 257px ; margin - right : 17px ; width : 110px } . scenarioMachine , . scenarioSingleMachine { - moz - border - radius : 3px 3px 0 0 ; - webkit - border - radius : 3px 3px 0 0 } . scenarioMachine : last - child { margin - right : 0 } . scenarioSingleMachine { border - radius : 3px 3px 0 0 ; background - color : # fff ; border : 1px solid rgba ( 0 , 0 , 0 , . 19 ) } . scenarioSingleMachine . scenarioMachine { border : 1px solid transparent ; height : 238px } . bigtile . informationtile { cursor : auto } . informationText { background : # fff ; font - size : 12px ; margin : 10px ; padding : 5px ; text - align : left } div . tileList { margin - left : - 6px ; margin - right : - 6px } div . tileList legend { padding - left : 5px } div . bigtile , div . tile { box - shadow : none ; border - radius : 3px ; border : 1px solid rgba ( 104 , 103 , 102 , . 1 ) ; font - size : 14px ; list - style : none ; margin - bottom : 13px ; margin - left : 6px ; margin - right : 6px ; text - align : center } div . bigtile . warning - icons , div . tile . warning - icons { background - color : # da4f49 ; color : # fff ; font - size : 11px ; height : 17px ; left : 0 ; line - height : 13px ; padding - left : 9px ; padding - right : 4px ; position : absolute ; top : 0 } div . bigtile a svg . icon , div . bigtile img . icon , div . tile a svg . icon , div . tile img . icon { height : 50px ; width : 50px } div . bigtile . warning - icons : before , div . tile . warning - icons : before { border - right : 17px solid transparent ; border - top : 17px solid # da4f49 ; content : ' ' ; position : absolute ; right : - 17px } div . bigtile . warning - icons . fa + . fa , div . tile . warning - icons . fa + . fa { margin - left : 1px } div . bigtile . warning - icons . fa : before , div . tile . warning - icons . fa : before { font - size : 8px } div . bigtile . collection - type - icon , div . tile . collection - type - icon { color : # 666 ; font - size : 30pt ; margin - top : 12pt } div . bigtile . collection - type - icon : hover , div . tile . collection - type - icon : hover { cursor : pointer } div . bigtile a span . add - Icon , div . tile a span . add - Icon { font - size : 22px ; margin - left : 22px ; margin - right : 10px ; margin - top : - 5px ; position : relative ; right : 4px ; top : 2px } div . bigtile a span . icon , div . tile a span . icon { font - size : 50px } div . bigtile svg . tile - icon - svg , div . tile svg . tile - icon - svg { cursor : pointer ; fill : # 686766 ; height : 50px ; margin - left : 90px ; margin - top : 10px ; width : 50px } div . bigtile span . tile - icon , div . tile span . tile - icon { color : # 686766 ; font - size : 50px ; line - height : 1 . 2 } div . bigtile span . icon_arangodb_edge5 - 2 , div . tile span . icon_arangodb_edge5 - 2 { position : relative ; top : 15px ; - webkit - transform : rotate ( 80deg ) ; - moz - transform : rotate ( 80deg ) ; - o - transform : rotate ( 80deg ) ; display : inline - block } div . bigtile h5 , div . tile h5 { background : # 8c8a89 ; color : # fff ; font - size : 12px ; margin : 0 ; overflow : hidden ! important ; padding : 4px 8px ; text - overflow : ellipsis ! important ; white - space : nowrap ! important } div . bigtile div . tileSelects , div . tile div . tileSelects { margin - left : 40px ; position : relative ; z - index : 9999 } div . bigtile div . tileSelects select , div . tile div . tileSelects select { float : right ; height : 20px ; margin - right : 5px ; margin - top : 16px ; width : 70px } div . bigtile div . iconSet , div . tile div . iconSet { position : absolute ; right : 5px ; top : 5px } div . bigtile div . iconSet span , div . tile div . iconSet span { border - radius : 3px ; color : # 000 ; font - size : 18px ; padding : 2px 3px } div . bigtile div . iconSet span : hover , div . tile div . iconSet span : hover { background - color : # 8aa051 ; color : # fff } div . bigtile div . iconSet span . disabled , div . tile div . iconSet span . disabled { cursor : default ; opacity : . 2 } div . bigtile div . iconSet span . disabled : hover , div . tile div . iconSet span . disabled : hover { background - color : # fff ; color : # 000 ; cursor : default ; opacity : . 2 } div . bigtile . unloaded div , div . tile . unloaded div { border - bottom : 16px solid # ff8f35 } div . bigtile . deleted div , div . tile . deleted div { border - bottom : 16px solid # 700 } div . bigtile div . tileBadge , div . tile div . tileBadge { bottom : 29px ; font - size : 11px ; font - weight : 300 ; position : absolute ; right : 0 } div . bigtile div . tileBadge button , div . tile div . tileBadge button { margin - left : 0 ; margin - right : 5px } div . bigtile div . tileBadge span , div . tile div . tileBadge span { display : inline - block ; line - height : 15px } div . bigtile div . tileBadge span div . corneredBadge , div . tile div . tileBadge span div . corneredBadge { border - left : 5px solid transparent ; border - bottom - style : solid ; border - bottom - width : 17px ; border - radius : 3px ; margin - bottom : 4px ; margin - right : 5px ; color : # fff ; height : 0 ; padding - left : 1px ; padding - right : 6px } div . bigtile div . tileBadge span div . corneredBadge . loading , div . tile div . tileBadge span div . corneredBadge . loading { border - bottom - color : # ff8f35 } div . bigtile div . tileBadge span div . corneredBadge . loaded , div . tile div . tileBadge span div . corneredBadge . loaded { border - bottom - color : # 8aa051 } div . bigtile div . tileBadge span div . corneredBadge . development , div . bigtile div . tileBadge span div . corneredBadge . unloaded , div . tile div . tileBadge span div . corneredBadge . development , div . tile div . tileBadge span div . corneredBadge . unloaded { border - bottom - color : # ff8f35 } div . tile { height : 100px ; width : 226px } div . tile - graph . tile - icon : hover { cursor : pointer } div . bigtile { height : 309px ; width : 452px } div . bigtile div . shardContainer { font - size : 30px } div . bigtile div . shardContainer span { padding : 2px } . collectionName { bottom : 0 ; border - bottom - left - radius : 3px ; border - bottom - right - radius : 3px ; left : 0 ; position : absolute ; right : 0 ; text - align : left } . dashboard - bar - chart - container , . dashboard - large - chart . dashboard - large - chart - inner , . dashboard - medium - chart , . dashboard - small - chart . dashboard - small - chart - inner , . dashboard - tendency - container { border - top - left - radius : 3px ; border - top - right - radius : 3px } . dashboard - bar - chart - container : first - child , . dashboard - large - chart . dashboard - large - chart - inner : first - child , . dashboard - medium - chart : first - child , . dashboard - small - chart . dashboard - small - chart - inner : first - child , . dashboard - tendency - container : first - child { margin - left : 0 } . dashboard - bar - chart - container , . dashboard - large - chart , . dashboard - medium - chart , . dashboard - small - chart , . dashboard - tendency - container { margin - bottom : 10px ; position : relative } . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart , . dashboard - medium - chart . dashboard - interior - chart { margin - bottom : 0 } . dashboard - sub - bar - menu { cursor : pointer ; position : absolute ; right : 9px ; top : 6px } . dashboard - large - chart { margin - right : 12px ; border : 1px solid rgba ( 104 , 103 , 102 , . 1 ) ; border - radius : 3px } . dashboard - large - chart . dashboard - large - chart - inner { background - color : # fff ; border - left : 5px solid # fff ; border - right : 5px solid # fff ; border - top : 5px solid # fff ; padding - top : 12px ; padding - bottom : 10px } . dashboard - small - chart { border : 1px solid rgba ( 104 , 103 , 102 , . 1 ) ; border - radius : 3px } . dashboard - small - chart . dashboard - small - chart - inner { background - color : # fff ; border - left : 5px solid # fff ; border - right : 5px solid # fff ; border - top : 5px solid # fff ; padding - bottom : 10px ; padding - top : 5px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart . nv - bar rect { fill - opacity : . 15 ; stroke - opacity : . 8 ; stroke - width : . 5px } . dashboard - medium - chart - outer { border : 1px solid rgba ( 104 , 103 , 102 , . 1 ) ; border - radius : 3px } . dashboard - medium - chart - outer : first - child { margin - right : 10px } . dashboard - medium - chart { background - color : # fff ; border - left : 5px solid # fff ; border - right : 5px solid # fff ; border - top : 5px solid # fff ; padding - top : 10px ; margin - bottom : 0 } . dashboard - medium - chart : first - child { margin - right : 12px } . dashboard - medium - chart . dashboard - medium - chart - outer { border : 1px solid rgba ( 104 , 103 , 102 , . 1 ) ; border - radius : 3px } . dashboard - medium - chart . dashboard - medium - chart - menu { - moz - border - radius : 2px ; - webkit - border - radius : 2px ; border - radius : 2px ; border : 0 solid rgba ( 0 , 0 , 0 , . 3 ) ; color : rgba ( 0 , 0 , 0 , . 3 ) ; cursor : pointer ; padding : 0 4px ; position : absolute ; z - index : 1000 } . dashboard - medium - chart . dashboard - medium - chart - menu : hover { color : rgba ( 0 , 0 , 0 , . 7 ) } . dashboard - medium - chart . dashboard - medium - chart - inner { padding - bottom : 10px } . dashboard - medium - chart . clusterChart . slice path { fill - opacity : . 15 ; stroke - opacity : 1 ; stroke - width : 1 . 5px } . dashboard - tendency - container { border : 1px solid rgba ( 104 , 103 , 102 , . 1 ) ; border - radius : 3px } . dashboard - tendency - container . dashboard - tendency - chart { background - color : # fff ; border - top - left - radius : 3px ; border - top - right - radius : 3px ; border - left : 5px solid # fff ; border - right : 5px solid # fff ; border - top : 5px solid # fff ; padding - bottom : 5px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { background - color : # fff ; margin - top : 5px ; padding : 0 8px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency : first - child { border - right : 1px solid # e1e1e1 } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency . dashboard - subtitle - bar { border - bottom : 1px solid # e1e1e1 ; text - align : right } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency . dashboard - figure { text - align : center } . dashboard - bar - chart - container { border : 1px solid rgba ( 104 , 103 , 102 , . 1 ) ; border - radius : 3px } . dashboard - bar - chart - container . dashboard - bar - chart { background - color : # fff ; border - left : 5px solid # fff ; border - right : 5px solid # fff ; border - top : 5px solid # fff ; border - top - left - radius : 3px ; border - top - right - radius : 3px ; padding - bottom : 5px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title { margin - top : 5px ; padding : 0 8px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { font - weight : 400 } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { text - align : right } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart . nv - bar rect { fill - opacity : . 15 ; stroke - opacity : . 8 ; stroke - width : . 5px } . dashboard - legend . dashboard - legend - inner { padding : 0 5px 5px 0 } . dashboard - sub - bar { background - color : # 686766 ; border - bottom - left - radius : 3px ; border - bottom - right - radius : 3px ; color : # fff ; height : 24px ; line - height : 24px ; margin : 0 ; padding : 0 6px } . dashboard - spacer { margin : 0 12px } . headerBar . dashboard - headerbar { margin : 15px 0 10px } . modal - chart - detail . modal - dashboard - legend . dashboard - legend - inner { padding - left : 20px } . dashboard - half - height - legend . dashboard - legend - inner { padding - top : 20px } . dashboard - title - bar { background - color : # 686766 ; color : # fff ; font - size : 14 . 5px ; font - weight : 400 ; height : 30px ; line - height : 30px ; padding : 0 5px 0 10px } . dashboard - title - bar . dashboard - half - title - bar { border - left : 1px solid # 000 ; margin - left : - 1px ; width : 50 % } . dashboard - title - bar . dashboard - half - title - bar : first - child { border - left : 0 ; margin - left : 0 } . dashboard - row { margin - bottom : 0 ; margin - left : 0 ; margin - right : 0 } . dygraph - axis - label . dygraph - axis - label - x , . dygraph - axis - label . dygraph - axis - label - y { color : # 666 } div . resizecontainer { margin : 0 auto } @ media ( max - width : 798px ) { # arangoCollectionUl { display : none } # collectionsDropdown ul { width : auto ! important } # arangoCollectionSelect { display : inline - block } } @ media ( min - width : 799px ) and ( max - width : 1041px ) { # arangoCollectionUl a { font - size : 12px ; padding : 10px 5px } } @ media ( min - width : 1042px ) and ( max - width : 1284px ) { # arangoCollectionUl a { font - size : 14px } } @ media ( min - width : 250px ) and ( max - width : 489px ) { div . resizecontainer { width : 228px } . dashboard - large - chart { width : 146px } . dashboard - large - chart . dashboard - sub - bar { width : 134px } . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { height : 185px ; width : 136px } . dashboard - sub - bar - menu { font - size : 12px } . dashboard - medium - chart - outer { width : 106px ; float : left } . dashboard - medium - chart { width : 96px } . dashboard - medium - chart . dashboard - sub - bar { margin - left : - 5px ; width : 95px } . dashboard - medium - chart # clusterGraphs svg , . dashboard - medium - chart . dashboard - interior - chart { height : 185px ; width : 96px } . dashboard - medium - chart . dashboard - medium - chart - menu { font - size : 12px ; left : 79px ; top : 0 } . dashboard - medium - chart # clusterGraphs svg text { font - size : 10px } . dashboard - small - chart { width : 66px } . dashboard - small - chart . dashboard - sub - bar { width : 54px } . dashboard - small - chart . dashboard - small - chart - inner { width : 56px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { height : 197px ; width : 56px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart . nv - axis text { fill : # 666 ; font - size : 10px ; font - weight : 400 } . dashboard - tendency - container . dashboard - tendency - chart { height : 78 . 25px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 8px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar { height : 25 . 08px ; line - height : 25 . 08px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure { height : 40 . 17px ; line - height : 19 . 08px ; padding - top : 5px } . dashboard - tendency - container . dashboard - sub - bar { width : 54px } . dashboard - bar - chart - container { height : 79 . 75px } . dashboard - bar - chart - container . dashboard - bar - chart { height : 77 . 75px ; width : 56px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title { height : 25 . 25px ; line - height : 25 . 25px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 28px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 10 . 8px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart { height : 33 . 5px ; line - height : 33 . 5px ; padding : 5px 8px 10px ; width : 40px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart # residentSizeChart { height : 38 . 5px } . dashboard - bar - chart - container . dashboard - sub - bar { width : 54px } . modal - chart - detail { bottom : 12 . 1 % ! important ; left : 50 % ; margin - left : - 114px ; width : 228px } . modal - chart - detail . modal - body { height : 95 % ; max - height : none ; padding : 5px } . modal - chart - detail . modal - dashboard - legend { display : none ; font - size : 12px ; min - height : 190px ; width : 10px } . absolut , . percentage { font - size : 14px } . modal - chart - detail . modal - inner - detail { width : 208px } . modal - body . dashboard - large - chart { width : 143px } . modal - body . dashboard - large - chart . dashboard - sub - bar { width : 131px } . modal - body . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { width : 133px } . modal - body . dashboard - medium - chart - outer { width : 91px ; float : left } . modal - body . dashboard - medium - chart { width : 91px } . modal - body . dashboard - medium - chart . dashboard - sub - bar { width : 89px } . modal - body . dashboard - medium - chart . dashboard - interior - chart { width : 91px } . modal - body . dashboard - medium - chart . dashboard - medium - chart - menu { left : 74px } . modal - body . dashboard - small - chart { width : 61px } . modal - body . dashboard - small - chart . dashboard - sub - bar { width : 49px } . modal - body . dashboard - small - chart . dashboard - small - chart - inner , . modal - body . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { width : 51px } . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 6 . 5px } . modal - body . dashboard - tendency - container . dashboard - sub - bar { width : 51px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart { width : 56px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 28px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 10 . 8px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart - chart { width : 40px } . modal - body . dashboard - bar - chart - container . dashboard - sub - bar { width : 54px } . absolut { font - weight : 300 } . dashboard - sub - bar { font - size : 10px ; font - weight : 400 } . dashboard - subtitle - bar { font - size : 14px ; font - weight : 300 } . dashboard - figure { font - size : 16px ; font - weight : 400 } . dashboard - figurePer { font - size : 14px ; font - weight : 300 } . dashboard - legend , . dygraph - axis - label . dygraph - axis - label - x , . dygraph - axis - label . dygraph - axis - label - y { font - size : 10px ; font - weight : 400 } . dashboard - legend { display : none ; height : 190px ; margin - top : - 3px ; width : 0 } . dashboard - half - height - legend { display : none ; font - size : 10px ; height : 100px ; width : 0 } . application - detail - view section . info { width : 228px } . application - detail - view aside . meta { display : none } } @ media ( min - width : 490px ) and ( max - width : 729px ) { div . resizecontainer { width : 468px } . dashboard - large - chart { width : 306px } . dashboard - large - chart . dashboard - sub - bar { width : 294px } . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { height : 185px ; width : 296px } . dashboard - sub - bar - menu { font - size : 12px } . dashboard - medium - chart - outer { width : 226px ; float : left } . dashboard - medium - chart { width : 216px } . dashboard - medium - chart . dashboard - sub - bar { margin - left : - 5px ; width : 215px } . dashboard - medium - chart # clusterGraphs svg , . dashboard - medium - chart . dashboard - interior - chart { height : 185px ; width : 216px } . dashboard - medium - chart . dashboard - medium - chart - menu { font - size : 12px ; left : 199px ; top : 0 } . dashboard - medium - chart # clusterGraphs svg text { font - size : 10px } . dashboard - small - chart { width : 146px } . dashboard - small - chart . dashboard - sub - bar { width : 134px } . dashboard - small - chart . dashboard - small - chart - inner { width : 136px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { height : 197px ; width : 136px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart . nv - axis text { fill : # 666 ; font - size : 10px ; font - weight : 400 } . dashboard - tendency - container . dashboard - tendency - chart { height : 78 . 25px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 48px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar { height : 25 . 08px ; line - height : 25 . 08px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure { height : 40 . 17px ; line - height : 19 . 08px ; padding - top : 5px } . dashboard - tendency - container . dashboard - sub - bar { width : 134px } . dashboard - bar - chart - container { height : 79 . 75px } . dashboard - bar - chart - container . dashboard - bar - chart { height : 77 . 75px ; width : 136px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title { height : 25 . 25px ; line - height : 25 . 25px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 84px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 34 . 8px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart { height : 33 . 5px ; line - height : 33 . 5px ; padding : 5px 8px 10px ; width : 120px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart # residentSizeChart { height : 38 . 5px } . dashboard - bar - chart - container . dashboard - sub - bar { width : 134px } . modal - chart - detail { bottom : 12 . 1 % ! important ; left : 50 % ; margin - left : - 234px ; width : 468px } . modal - chart - detail . modal - body { height : 95 % ; max - height : none ; padding : 5px } . modal - chart - detail . modal - dashboard - legend { display : none ; font - size : 12px ; min - height : 190px ; width : 10px } . absolut , . percentage { font - size : 14px } . modal - chart - detail . modal - inner - detail { width : 448px } . modal - body . dashboard - large - chart { width : 303px } . modal - body . dashboard - large - chart . dashboard - sub - bar { width : 291px } . modal - body . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { width : 293px } . modal - body . dashboard - medium - chart - outer { width : 211px ; float : left } . modal - body . dashboard - medium - chart { width : 211px } . modal - body . dashboard - medium - chart . dashboard - sub - bar { width : 209px } . modal - body . dashboard - medium - chart . dashboard - interior - chart { width : 211px } . modal - body . dashboard - medium - chart . dashboard - medium - chart - menu { left : 194px } . modal - body . dashboard - small - chart { width : 141px } . modal - body . dashboard - small - chart . dashboard - sub - bar { width : 129px } . modal - body . dashboard - small - chart . dashboard - small - chart - inner , . modal - body . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { width : 131px } . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 46 . 5px } . modal - body . dashboard - tendency - container . dashboard - sub - bar { width : 131px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart { width : 136px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 84px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 34 . 8px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart - chart { width : 120px } . modal - body . dashboard - bar - chart - container . dashboard - sub - bar { width : 134px } . absolut { font - weight : 300 } . dashboard - sub - bar { font - size : 10px ; font - weight : 400 } . dashboard - subtitle - bar { font - size : 14px ; font - weight : 300 } . dashboard - figure { font - size : 16px ; font - weight : 400 } . dashboard - figurePer { font - size : 14px ; font - weight : 300 } . dashboard - legend , . dygraph - axis - label . dygraph - axis - label - x , . dygraph - axis - label . dygraph - axis - label - y { font - size : 10px ; font - weight : 400 } . dashboard - legend { display : none ; height : 190px ; margin - top : - 3px ; width : 0 } . dashboard - half - height - legend { display : none ; font - size : 10px ; height : 100px ; width : 0 } . application - detail - view section . info { width : 468px } . application - detail - view aside . meta { display : none } } @ media ( min - width : 730px ) and ( max - width : 969px ) { div . resizecontainer { width : 708px } . dashboard - large - chart { width : 466px } . dashboard - large - chart . dashboard - sub - bar { width : 454px } . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { height : 185px ; width : 456px } . dashboard - sub - bar - menu { font - size : 12px } . dashboard - medium - chart - outer { width : 346px ; float : left } . dashboard - medium - chart { width : 336px } . dashboard - medium - chart . dashboard - sub - bar { margin - left : - 5px ; width : 335px } . dashboard - medium - chart # clusterGraphs svg , . dashboard - medium - chart . dashboard - interior - chart { height : 185px ; width : 336px } . dashboard - medium - chart . dashboard - medium - chart - menu { font - size : 12px ; left : 319px ; top : 0 } . dashboard - medium - chart # clusterGraphs svg text { font - size : 10px } . dashboard - small - chart { width : 226px } . dashboard - small - chart . dashboard - sub - bar { width : 214px } . dashboard - small - chart . dashboard - small - chart - inner { width : 216px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { height : 197px ; width : 216px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart . nv - axis text { fill : # 666 ; font - size : 10px ; font - weight : 400 } . dashboard - tendency - container . dashboard - tendency - chart { height : 78 . 25px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 88px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar { height : 25 . 08px ; line - height : 25 . 08px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure { height : 40 . 17px ; line - height : 19 . 08px ; padding - top : 5px } . dashboard - tendency - container . dashboard - sub - bar { width : 214px } . dashboard - bar - chart - container { height : 79 . 75px } . dashboard - bar - chart - container . dashboard - bar - chart { height : 77 . 75px ; width : 216px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title { height : 25 . 25px ; line - height : 25 . 25px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 140px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 58 . 8px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart { height : 33 . 5px ; line - height : 33 . 5px ; padding : 5px 8px 10px ; width : 200px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart # residentSizeChart { height : 38 . 5px } . dashboard - bar - chart - container . dashboard - sub - bar { width : 214px } . modal - chart - detail { bottom : 12 . 1 % ! important ; left : 50 % ; margin - left : - 354px ; width : 708px } . modal - chart - detail . modal - body { height : 95 % ; max - height : none ; padding : 5px } . modal - chart - detail . modal - dashboard - legend { display : none ; font - size : 12px ; min - height : 190px ; width : 10px } . absolut , . percentage { font - size : 14px } . modal - chart - detail . modal - inner - detail { width : 688px } . modal - body . dashboard - large - chart { width : 463px } . modal - body . dashboard - large - chart . dashboard - sub - bar { width : 451px } . modal - body . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { width : 453px } . modal - body . dashboard - medium - chart - outer { width : 331px ; float : left } . modal - body . dashboard - medium - chart { width : 331px } . modal - body . dashboard - medium - chart . dashboard - sub - bar { width : 329px } . modal - body . dashboard - medium - chart . dashboard - interior - chart { width : 331px } . modal - body . dashboard - medium - chart . dashboard - medium - chart - menu { left : 314px } . modal - body . dashboard - small - chart { width : 221px } . modal - body . dashboard - small - chart . dashboard - sub - bar { width : 209px } . modal - body . dashboard - small - chart . dashboard - small - chart - inner , . modal - body . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { width : 211px } . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 86 . 5px } . modal - body . dashboard - tendency - container . dashboard - sub - bar { width : 211px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart { width : 216px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 140px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 58 . 8px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart - chart { width : 200px } . modal - body . dashboard - bar - chart - container . dashboard - sub - bar { width : 214px } . absolut { font - weight : 300 } . dashboard - sub - bar { font - size : 10px ; font - weight : 400 } . dashboard - subtitle - bar { font - size : 14px ; font - weight : 300 } . dashboard - figure { font - size : 16px ; font - weight : 400 } . dashboard - figurePer { font - size : 14px ; font - weight : 300 } . dashboard - legend , . dygraph - axis - label . dygraph - axis - label - x , . dygraph - axis - label . dygraph - axis - label - y { font - size : 10px ; font - weight : 400 } . dashboard - legend { display : none ; height : 190px ; margin - top : - 3px ; width : 0 } . dashboard - half - height - legend { display : none ; font - size : 10px ; height : 100px ; width : 0 } . application - detail - view section . info { width : 508px } } @ media ( min - width : 970px ) and ( max - width : 1209px ) { div . resizecontainer { width : 948px } . dashboard - large - chart { width : 626px } . dashboard - large - chart . dashboard - sub - bar { width : 614px } . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { height : 220px ; width : 496px } . dashboard - sub - bar - menu { font - size : 13px } . dashboard - medium - chart - outer { width : 466px ; float : left } . dashboard - medium - chart { width : 456px } . dashboard - medium - chart . dashboard - sub - bar { margin - left : - 5px ; width : 455px } . dashboard - medium - chart . dashboard - interior - chart { height : 220px ; width : 336px } . dashboard - medium - chart . dashboard - medium - chart - menu { font - size : 13px ; left : 438px ; top : 0 } . dashboard - medium - chart # clusterGraphs svg { height : 220px ; width : 456px } . dashboard - medium - chart # clusterGraphs svg text { font - size : 11px } . dashboard - small - chart { width : 306px } . dashboard - small - chart . dashboard - sub - bar { width : 294px } . dashboard - small - chart . dashboard - small - chart - inner { width : 296px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { height : 229px ; width : 296px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart . nv - axis text { fill : # 666 ; font - size : 11px ; font - weight : 400 } . dashboard - tendency - container . dashboard - tendency - chart { height : 96 . 5px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 128px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar { height : 31 . 17px ; line - height : 31 . 17px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure { height : 52 . 33px ; line - height : 25 . 17px ; padding - top : 5px } . dashboard - tendency - container . dashboard - sub - bar { width : 294px } . dashboard - bar - chart - container { height : 98px } . dashboard - bar - chart - container . dashboard - bar - chart { height : 96px ; width : 296px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title { height : 31 . 33px ; line - height : 31 . 33px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 196px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 82 . 8px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart { height : 45 . 67px ; line - height : 45 . 67px ; padding : 5px 8px 10px ; width : 280px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart # residentSizeChart { height : 50 . 67px } . dashboard - bar - chart - container . dashboard - sub - bar { width : 294px } . modal - chart - detail { bottom : 12 . 1 % ! important ; left : 50 % ; margin - left : - 474px ; width : 948px } . modal - chart - detail . modal - body { height : 95 % ; max - height : none ; padding : 5px } . modal - chart - detail . modal - dashboard - legend { font - size : 13px ; min - height : 225px ; width : 130px } . absolut , . percentage { font - size : 15px } . modal - chart - detail . modal - inner - detail { width : 808px } . modal - body . dashboard - large - chart { width : 623px } . modal - body . dashboard - large - chart . dashboard - sub - bar { width : 611px } . modal - body . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { width : 493px } . modal - body . dashboard - medium - chart - outer { width : 451px ; float : left } . modal - body . dashboard - medium - chart { width : 451px } . modal - body . dashboard - medium - chart . dashboard - sub - bar { width : 449px } . modal - body . dashboard - medium - chart . dashboard - interior - chart { width : 331px } . modal - body . dashboard - medium - chart . dashboard - medium - chart - menu { left : 433px } . modal - body . dashboard - small - chart { width : 301px } . modal - body . dashboard - small - chart . dashboard - sub - bar { width : 289px } . modal - body . dashboard - small - chart . dashboard - small - chart - inner , . modal - body . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { width : 291px } . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 126 . 5px } . modal - body . dashboard - tendency - container . dashboard - sub - bar { width : 291px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart { width : 296px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 196px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 82 . 8px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart - chart { width : 280px } . modal - body . dashboard - bar - chart - container . dashboard - sub - bar { width : 294px } . absolut { font - weight : 300 } . dashboard - sub - bar { font - size : 11px ; font - weight : 400 } . dashboard - subtitle - bar { font - size : 15px ; font - weight : 300 } . dashboard - figure { font - size : 18px ; font - weight : 400 } . dashboard - figurePer { font - size : 16px ; font - weight : 300 } . dashboard - legend , . dygraph - axis - label . dygraph - axis - label - x , . dygraph - axis - label . dygraph - axis - label - y { font - size : 11px ; font - weight : 400 } . dashboard - legend { height : 225px ; margin - top : - 3px ; width : 120px } . dashboard - half - height - legend { font - size : 11px ; height : 117 . 5px ; width : 60px } . application - detail - view section . info { width : 748px } } @ media ( min - width : 1210px ) and ( max - width : 1449px ) { div . resizecontainer { width : 1188px } . dashboard - large - chart { width : 786px } . dashboard - large - chart . dashboard - sub - bar { width : 774px } . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { height : 255px ; width : 646px } . dashboard - sub - bar - menu { font - size : 15px } . dashboard - medium - chart - outer { width : 586px ; float : left } . dashboard - medium - chart { width : 576px } . dashboard - medium - chart . dashboard - sub - bar { margin - left : - 5px ; width : 575px } . dashboard - medium - chart . dashboard - interior - chart { height : 255px ; width : 446px } . dashboard - medium - chart . dashboard - medium - chart - menu { font - size : 16px ; left : 555px ; top : 0 } . dashboard - medium - chart # clusterGraphs svg { height : 255px ; width : 576px } . dashboard - medium - chart # clusterGraphs svg text { font - size : 12px } . dashboard - small - chart { width : 386px } . dashboard - small - chart . dashboard - sub - bar { width : 374px } . dashboard - small - chart . dashboard - small - chart - inner { width : 376px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { height : 264px ; width : 376px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart . nv - axis text { fill : # 666 ; font - size : 13px ; font - weight : 400 } . dashboard - tendency - container . dashboard - tendency - chart { height : 114px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 168px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar { height : 37px ; line - height : 37px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure { height : 64px ; line - height : 31px ; padding - top : 5px } . dashboard - tendency - container . dashboard - sub - bar { width : 374px } . dashboard - bar - chart - container { height : 115 . 5px } . dashboard - bar - chart - container . dashboard - bar - chart { height : 113 . 5px ; width : 376px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title { height : 37 . 17px ; line - height : 37 . 17px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 252px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 106 . 8px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart { height : 57 . 33px ; line - height : 57 . 33px ; padding : 5px 8px 10px ; width : 360px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart # residentSizeChart { height : 62 . 33px } . dashboard - bar - chart - container . dashboard - sub - bar { width : 374px } . modal - chart - detail { bottom : 12 . 1 % ! important ; left : 50 % ; margin - left : - 594px ; width : 1188px } . modal - chart - detail . modal - body { height : 95 % ; max - height : none ; padding : 5px } . modal - chart - detail . modal - dashboard - legend { font - size : 14px ; min - height : 260px ; width : 140px } . absolut , . percentage { font - size : 18px } . modal - chart - detail . modal - inner - detail { width : 1038px } . modal - body . dashboard - large - chart { width : 783px } . modal - body . dashboard - large - chart . dashboard - sub - bar { width : 771px } . modal - body . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { width : 643px } . modal - body . dashboard - medium - chart - outer { width : 571px ; float : left } . modal - body . dashboard - medium - chart { width : 571px } . modal - body . dashboard - medium - chart . dashboard - sub - bar { width : 569px } . modal - body . dashboard - medium - chart . dashboard - interior - chart { width : 441px } . modal - body . dashboard - medium - chart . dashboard - medium - chart - menu { left : 550px } . modal - body . dashboard - small - chart { width : 381px } . modal - body . dashboard - small - chart . dashboard - sub - bar { width : 369px } . modal - body . dashboard - small - chart . dashboard - small - chart - inner , . modal - body . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { width : 371px } . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 166 . 5px } . modal - body . dashboard - tendency - container . dashboard - sub - bar { width : 371px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart { width : 376px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 252px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 106 . 8px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart - chart { width : 360px } . modal - body . dashboard - bar - chart - container . dashboard - sub - bar { width : 374px } . absolut { font - weight : 300 } . dashboard - sub - bar { font - size : 13px ; font - weight : 400 } . dashboard - subtitle - bar { font - size : 18px ; font - weight : 300 } . dashboard - figure { font - size : 22px ; font - weight : 400 } . dashboard - figurePer { font - size : 20px ; font - weight : 300 } . dygraph - axis - label . dygraph - axis - label - x , . dygraph - axis - label . dygraph - axis - label - y { font - size : 13px ; font - weight : 400 } . dashboard - legend { font - size : 12px ; font - weight : 400 ; height : 260px ; margin - top : - 3px ; width : 130px } . dashboard - half - height - legend { font - size : 12px ; height : 135px ; width : 65px } . application - detail - view section . info { width : 988px } } @ media ( min - width : 1450px ) and ( max - width : 1689px ) { div . resizecontainer { width : 1428px } . dashboard - large - chart { width : 946px } . dashboard - large - chart . dashboard - sub - bar { width : 934px } . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { height : 285px ; width : 796px } . dashboard - sub - bar - menu { font - size : 15px } . dashboard - medium - chart - outer { width : 706px ; float : left } . dashboard - medium - chart { width : 696px } . dashboard - medium - chart . dashboard - sub - bar { margin - left : - 5px ; width : 695px } . dashboard - medium - chart . dashboard - interior - chart { height : 285px ; width : 556px } . dashboard - medium - chart . dashboard - medium - chart - menu { font - size : 18px ; left : 673px ; top : 0 } . dashboard - medium - chart # clusterGraphs svg { height : 285px ; width : 696px } . dashboard - medium - chart # clusterGraphs svg text { font - size : 13px } . dashboard - small - chart { width : 466px } . dashboard - small - chart . dashboard - sub - bar { width : 454px } . dashboard - small - chart . dashboard - small - chart - inner { width : 456px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { height : 294px ; width : 456px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart . nv - axis text { fill : # 666 ; font - size : 13px ; font - weight : 400 } . dashboard - tendency - container . dashboard - tendency - chart { height : 129px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 208px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar { height : 42px ; line - height : 42px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure { height : 74px ; line - height : 36px ; padding - top : 5px } . dashboard - tendency - container . dashboard - sub - bar { width : 454px } . dashboard - bar - chart - container { height : 130 . 5px } . dashboard - bar - chart - container . dashboard - bar - chart { height : 128 . 5px ; width : 456px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title { height : 42 . 17px ; line - height : 42 . 17px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 308px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 130 . 8px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart { height : 67 . 33px ; line - height : 67 . 33px ; padding : 5px 8px 10px ; width : 440px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart # residentSizeChart { height : 72 . 33px } . dashboard - bar - chart - container . dashboard - sub - bar { width : 454px } . modal - chart - detail { bottom : 12 . 1 % ! important ; left : 50 % ; margin - left : - 714px ; width : 1428px } . modal - chart - detail . modal - body { height : 95 % ; max - height : none ; padding : 5px } . modal - chart - detail . modal - dashboard - legend { font - size : 15px ; min - height : 290px ; width : 150px } . absolut , . percentage { font - size : 20px } . modal - chart - detail . modal - inner - detail { width : 1268px } . modal - body . dashboard - large - chart { width : 943px } . modal - body . dashboard - large - chart . dashboard - sub - bar { width : 931px } . modal - body . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { width : 793px } . modal - body . dashboard - medium - chart - outer { width : 691px ; float : left } . modal - body . dashboard - medium - chart { width : 691px } . modal - body . dashboard - medium - chart . dashboard - sub - bar { width : 689px } . modal - body . dashboard - medium - chart . dashboard - interior - chart { width : 551px } . modal - body . dashboard - medium - chart . dashboard - medium - chart - menu { left : 668px } . modal - body . dashboard - small - chart { width : 461px } . modal - body . dashboard - small - chart . dashboard - sub - bar { width : 449px } . modal - body . dashboard - small - chart . dashboard - small - chart - inner , . modal - body . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { width : 451px } . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 206 . 5px } . modal - body . dashboard - tendency - container . dashboard - sub - bar { width : 451px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart { width : 456px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 308px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 130 . 8px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart - chart { width : 440px } . modal - body . dashboard - bar - chart - container . dashboard - sub - bar { width : 454px } . absolut { font - weight : 300 } . dashboard - sub - bar { font - size : 13px ; font - weight : 400 } . dashboard - subtitle - bar { font - size : 20px ; font - weight : 300 } . dashboard - figure { font - size : 26px ; font - weight : 400 } . dashboard - figurePer { font - size : 24px ; font - weight : 300 } . dashboard - legend , . dygraph - axis - label . dygraph - axis - label - x , . dygraph - axis - label . dygraph - axis - label - y { font - size : 13px ; font - weight : 400 } . dashboard - legend { height : 290px ; margin - top : - 3px ; width : 140px } . dashboard - half - height - legend { font - size : 13px ; height : 150px ; width : 70px } . application - detail - view section . info { width : 1228px } } @ media ( min - width : 1690px ) and ( max - width : 1929px ) { div . resizecontainer { width : 1668px } . dashboard - large - chart { width : 1106px } . dashboard - large - chart . dashboard - sub - bar { width : 1094px } . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { height : 325px ; width : 936px } . dashboard - sub - bar - menu { font - size : 16px } . dashboard - medium - chart - outer { width : 826px ; float : left } . dashboard - medium - chart { width : 816px } . dashboard - medium - chart . dashboard - sub - bar { margin - left : - 5px ; width : 815px } . dashboard - medium - chart . dashboard - interior - chart { height : 325px ; width : 656px } . dashboard - medium - chart . dashboard - medium - chart - menu { font - size : 22px ; left : 789px ; top : 0 } . dashboard - medium - chart # clusterGraphs svg { height : 325px ; width : 816px } . dashboard - medium - chart # clusterGraphs svg text { font - size : 14px } . dashboard - small - chart { width : 546px } . dashboard - small - chart . dashboard - sub - bar { width : 534px } . dashboard - small - chart . dashboard - small - chart - inner { width : 536px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { height : 334px ; width : 536px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart . nv - axis text { fill : # 666 ; font - size : 14px ; font - weight : 400 } . dashboard - tendency - container . dashboard - tendency - chart { height : 149px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 248px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar { height : 48 . 67px ; line - height : 48 . 67px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure { height : 87 . 33px ; line - height : 42 . 67px ; padding - top : 5px } . dashboard - tendency - container . dashboard - sub - bar { width : 534px } . dashboard - bar - chart - container { height : 150 . 5px } . dashboard - bar - chart - container . dashboard - bar - chart { height : 148 . 5px ; width : 536px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title { height : 48 . 83px ; line - height : 48 . 83px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 364px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 154 . 8px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart { height : 80 . 67px ; line - height : 80 . 67px ; padding : 5px 8px 10px ; width : 520px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart # residentSizeChart { height : 85 . 67px } . dashboard - bar - chart - container . dashboard - sub - bar { width : 534px } . modal - chart - detail { bottom : 12 . 1 % ! important ; left : 50 % ; margin - left : - 834px ; width : 1668px } . modal - chart - detail . modal - body { height : 95 % ; max - height : none ; padding : 5px } . modal - chart - detail . modal - dashboard - legend { font - size : 16px ; min - height : 330px ; width : 170px } . absolut , . percentage { font - size : 24px } . modal - chart - detail . modal - inner - detail { width : 1488px } . modal - body . dashboard - large - chart { width : 1103px } . modal - body . dashboard - large - chart . dashboard - sub - bar { width : 1091px } . modal - body . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { width : 933px } . modal - body . dashboard - medium - chart - outer { width : 811px ; float : left } . modal - body . dashboard - medium - chart { width : 811px } . modal - body . dashboard - medium - chart . dashboard - sub - bar { width : 809px } . modal - body . dashboard - medium - chart . dashboard - interior - chart { width : 651px } . modal - body . dashboard - medium - chart . dashboard - medium - chart - menu { left : 784px } . modal - body . dashboard - small - chart { width : 541px } . modal - body . dashboard - small - chart . dashboard - sub - bar { width : 529px } . modal - body . dashboard - small - chart . dashboard - small - chart - inner , . modal - body . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { width : 531px } . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 246 . 5px } . modal - body . dashboard - tendency - container . dashboard - sub - bar { width : 531px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart { width : 536px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 364px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 154 . 8px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart - chart { width : 520px } . modal - body . dashboard - bar - chart - container . dashboard - sub - bar { width : 534px } . absolut { font - weight : 300 } . dashboard - sub - bar { font - size : 14px ; font - weight : 400 } . dashboard - subtitle - bar { font - size : 24px ; font - weight : 300 } . dashboard - figure { font - size : 30px ; font - weight : 400 } . dashboard - figurePer { font - size : 28px ; font - weight : 300 } . dashboard - legend , . dygraph - axis - label . dygraph - axis - label - x , . dygraph - axis - label . dygraph - axis - label - y { font - size : 14px ; font - weight : 400 } . dashboard - legend { height : 330px ; margin - top : - 3px ; width : 160px } . dashboard - half - height - legend { font - size : 14px ; height : 170px ; width : 80px } . application - detail - view section . info { width : 1468px } } @ media ( min - width : 1930px ) and ( max - width : 2169px ) { div . resizecontainer { width : 1908px } . dashboard - large - chart { width : 1266px } . dashboard - large - chart . dashboard - sub - bar { width : 1254px } . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { height : 385px ; width : 1086px } . dashboard - sub - bar - menu { font - size : 17px } . dashboard - medium - chart - outer { width : 946px ; float : left } . dashboard - medium - chart { width : 936px } . dashboard - medium - chart . dashboard - sub - bar { margin - left : - 5px ; width : 935px } . dashboard - medium - chart . dashboard - interior - chart { height : 385px ; width : 766px } . dashboard - medium - chart . dashboard - medium - chart - menu { font - size : 26px ; left : 905px ; top : 0 } . dashboard - medium - chart # clusterGraphs svg { height : 385px ; width : 936px } . dashboard - medium - chart # clusterGraphs svg text { font - size : 15px } . dashboard - small - chart { width : 626px } . dashboard - small - chart . dashboard - sub - bar { width : 614px } . dashboard - small - chart . dashboard - small - chart - inner { width : 616px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { height : 394px ; width : 616px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart . nv - axis text { fill : # 666 ; font - size : 14px ; font - weight : 400 } . dashboard - tendency - container . dashboard - tendency - chart { height : 179px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 288px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar { height : 58 . 67px ; line - height : 58 . 67px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure { height : 107 . 33px ; line - height : 52 . 67px ; padding - top : 5px } . dashboard - tendency - container . dashboard - sub - bar { width : 614px } . dashboard - bar - chart - container { height : 180 . 5px } . dashboard - bar - chart - container . dashboard - bar - chart { height : 178 . 5px ; width : 616px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title { height : 58 . 83px ; line - height : 58 . 83px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 420px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 178 . 8px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart { height : 100 . 67px ; line - height : 100 . 67px ; padding : 5px 8px 10px ; width : 600px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart # residentSizeChart { height : 105 . 67px } . dashboard - bar - chart - container . dashboard - sub - bar { width : 614px } . modal - chart - detail { bottom : 12 . 1 % ! important ; left : 50 % ; margin - left : - 954px ; width : 1908px } . modal - chart - detail . modal - body { height : 95 % ; max - height : none ; padding : 5px } . modal - chart - detail . modal - dashboard - legend { font - size : 17px ; min - height : 390px ; width : 180px } . absolut , . percentage { font - size : 28px } . modal - chart - detail . modal - inner - detail { width : 1718px } . modal - body . dashboard - large - chart { width : 1263px } . modal - body . dashboard - large - chart . dashboard - sub - bar { width : 1251px } . modal - body . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { width : 1083px } . modal - body . dashboard - medium - chart - outer { width : 931px ; float : left } . modal - body . dashboard - medium - chart { width : 931px } . modal - body . dashboard - medium - chart . dashboard - sub - bar { width : 929px } . modal - body . dashboard - medium - chart . dashboard - interior - chart { width : 761px } . modal - body . dashboard - medium - chart . dashboard - medium - chart - menu { left : 900px } . modal - body . dashboard - small - chart { width : 621px } . modal - body . dashboard - small - chart . dashboard - sub - bar { width : 609px } . modal - body . dashboard - small - chart . dashboard - small - chart - inner , . modal - body . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { width : 611px } . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 286 . 5px } . modal - body . dashboard - tendency - container . dashboard - sub - bar { width : 611px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart { width : 616px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 420px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 178 . 8px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart - chart { width : 600px } . modal - body . dashboard - bar - chart - container . dashboard - sub - bar { width : 614px } . absolut { font - weight : 300 } . dashboard - sub - bar { font - size : 15px ; font - weight : 400 } . dashboard - subtitle - bar { font - size : 28px ; font - weight : 300 } . dashboard - figure { font - size : 34px ; font - weight : 400 } . dashboard - figurePer { font - size : 32px ; font - weight : 300 } . dygraph - axis - label . dygraph - axis - label - x , . dygraph - axis - label . dygraph - axis - label - y { font - size : 14px ; font - weight : 400 } . dashboard - legend { font - size : 15px ; font - weight : 400 ; height : 390px ; margin - top : - 3px ; width : 170px } . dashboard - half - height - legend { font - size : 15px ; height : 200px ; width : 85px } . application - detail - view section . info { width : 1708px } } @ media ( min - width : 2170px ) and ( max - width : 2409px ) { div . resizecontainer { width : 2148px } . dashboard - large - chart { width : 1426px } . dashboard - large - chart . dashboard - sub - bar { width : 1414px } . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { height : 285px ; width : 1276px } . dashboard - sub - bar - menu { font - size : 17px } . dashboard - medium - chart - outer { width : 1066px ; float : left } . dashboard - medium - chart { width : 1056px } . dashboard - medium - chart . dashboard - sub - bar { margin - left : - 5px ; width : 1055px } . dashboard - medium - chart . dashboard - interior - chart { height : 285px ; width : 916px } . dashboard - medium - chart . dashboard - medium - chart - menu { font - size : 20px ; left : 1031px ; top : 0 } . dashboard - medium - chart # clusterGraphs svg { height : 285px ; width : 1056px } . dashboard - medium - chart # clusterGraphs svg text { font - size : 15px } . dashboard - small - chart { width : 706px } . dashboard - small - chart . dashboard - sub - bar { width : 694px } . dashboard - small - chart . dashboard - small - chart - inner { width : 696px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { height : 294px ; width : 696px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart . nv - axis text { fill : # 666 ; font - size : 15px ; font - weight : 400 } . dashboard - tendency - container . dashboard - tendency - chart { height : 129px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 328px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar { height : 42px ; line - height : 42px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure { height : 74px ; line - height : 36px ; padding - top : 5px } . dashboard - tendency - container . dashboard - sub - bar { width : 694px } . dashboard - bar - chart - container { height : 130 . 5px } . dashboard - bar - chart - container . dashboard - bar - chart { height : 128 . 5px ; width : 696px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title { height : 42 . 17px ; line - height : 42 . 17px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 476px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 202 . 8px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart { height : 67 . 33px ; line - height : 67 . 33px ; padding : 5px 8px 10px ; width : 680px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart # residentSizeChart { height : 72 . 33px } . dashboard - bar - chart - container . dashboard - sub - bar { width : 694px } . modal - chart - detail { bottom : 12 . 1 % ! important ; left : 50 % ; margin - left : - 1074px ; width : 2148px } . modal - chart - detail . modal - body { height : 95 % ; max - height : none ; padding : 5px } . modal - chart - detail . modal - dashboard - legend { font - size : 17px ; min - height : 290px ; width : 150px } . absolut , . percentage { font - size : 22px } . modal - chart - detail . modal - inner - detail { width : 1988px } . modal - body . dashboard - large - chart { width : 1423px } . modal - body . dashboard - large - chart . dashboard - sub - bar { width : 1411px } . modal - body . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { width : 1273px } . modal - body . dashboard - medium - chart - outer { width : 1051px ; float : left } . modal - body . dashboard - medium - chart { width : 1051px } . modal - body . dashboard - medium - chart . dashboard - sub - bar { width : 1049px } . modal - body . dashboard - medium - chart . dashboard - interior - chart { width : 911px } . modal - body . dashboard - medium - chart . dashboard - medium - chart - menu { left : 1026px } . modal - body . dashboard - small - chart { width : 701px } . modal - body . dashboard - small - chart . dashboard - sub - bar { width : 689px } . modal - body . dashboard - small - chart . dashboard - small - chart - inner , . modal - body . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { width : 691px } . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 326 . 5px } . modal - body . dashboard - tendency - container . dashboard - sub - bar { width : 691px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart { width : 696px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 476px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 202 . 8px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart - chart { width : 680px } . modal - body . dashboard - bar - chart - container . dashboard - sub - bar { width : 694px } . absolut { font - weight : 300 } . dashboard - sub - bar { font - size : 15px ; font - weight : 400 } . dashboard - subtitle - bar { font - size : 22px ; font - weight : 300 } . dashboard - figure { font - size : 36px ; font - weight : 400 } . dashboard - figurePer { font - size : 34px ; font - weight : 300 } . dashboard - legend , . dygraph - axis - label . dygraph - axis - label - x , . dygraph - axis - label . dygraph - axis - label - y { font - size : 15px ; font - weight : 400 } . dashboard - legend { height : 290px ; margin - top : - 3px ; width : 140px } . dashboard - half - height - legend { font - size : 15px ; height : 150px ; width : 70px } . application - detail - view section . info { width : 1948px } } @ media ( min - width : 2410px ) and ( max - width : 2649px ) { div . resizecontainer { width : 2388px } . dashboard - large - chart { width : 1586px } . dashboard - large - chart . dashboard - sub - bar { width : 1574px } . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { height : 285px ; width : 1436px } . dashboard - sub - bar - menu { font - size : 17px } . dashboard - medium - chart - outer { width : 1186px ; float : left } . dashboard - medium - chart { width : 1176px } . dashboard - medium - chart . dashboard - sub - bar { margin - left : - 5px ; width : 1175px } . dashboard - medium - chart . dashboard - interior - chart { height : 285px ; width : 1036px } . dashboard - medium - chart . dashboard - medium - chart - menu { font - size : 20px ; left : 1151px ; top : 0 } . dashboard - medium - chart # clusterGraphs svg { height : 285px ; width : 1176px } . dashboard - medium - chart # clusterGraphs svg text { font - size : 15px } . dashboard - small - chart { width : 786px } . dashboard - small - chart . dashboard - sub - bar { width : 774px } . dashboard - small - chart . dashboard - small - chart - inner { width : 776px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { height : 294px ; width : 776px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart . nv - axis text { fill : # 666 ; font - size : 15px ; font - weight : 400 } . dashboard - tendency - container . dashboard - tendency - chart { height : 129px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 368px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar { height : 42px ; line - height : 42px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure { height : 74px ; line - height : 36px ; padding - top : 5px } . dashboard - tendency - container . dashboard - sub - bar { width : 774px } . dashboard - bar - chart - container { height : 130 . 5px } . dashboard - bar - chart - container . dashboard - bar - chart { height : 128 . 5px ; width : 776px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title { height : 42 . 17px ; line - height : 42 . 17px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 532px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 226 . 8px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart { height : 67 . 33px ; line - height : 67 . 33px ; padding : 5px 8px 10px ; width : 760px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart # residentSizeChart { height : 72 . 33px } . dashboard - bar - chart - container . dashboard - sub - bar { width : 774px } . modal - chart - detail { bottom : 12 . 1 % ! important ; left : 50 % ; margin - left : - 1194px ; width : 2388px } . modal - chart - detail . modal - body { height : 95 % ; max - height : none ; padding : 5px } . modal - chart - detail . modal - dashboard - legend { font - size : 17px ; min - height : 290px ; width : 150px } . absolut , . percentage { font - size : 22px } . modal - chart - detail . modal - inner - detail { width : 2228px } . modal - body . dashboard - large - chart { width : 1583px } . modal - body . dashboard - large - chart . dashboard - sub - bar { width : 1571px } . modal - body . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { width : 1433px } . modal - body . dashboard - medium - chart - outer { width : 1171px ; float : left } . modal - body . dashboard - medium - chart { width : 1171px } . modal - body . dashboard - medium - chart . dashboard - sub - bar { width : 1169px } . modal - body . dashboard - medium - chart . dashboard - interior - chart { width : 1031px } . modal - body . dashboard - medium - chart . dashboard - medium - chart - menu { left : 1146px } . modal - body . dashboard - small - chart { width : 781px } . modal - body . dashboard - small - chart . dashboard - sub - bar { width : 769px } . modal - body . dashboard - small - chart . dashboard - small - chart - inner , . modal - body . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { width : 771px } . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 366 . 5px } . modal - body . dashboard - tendency - container . dashboard - sub - bar { width : 771px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart { width : 776px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 532px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 226 . 8px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart - chart { width : 760px } . modal - body . dashboard - bar - chart - container . dashboard - sub - bar { width : 774px } . absolut { font - weight : 300 } . dashboard - sub - bar { font - size : 15px ; font - weight : 400 } . dashboard - subtitle - bar { font - size : 22px ; font - weight : 300 } . dashboard - figure { font - size : 36px ; font - weight : 400 } . dashboard - figurePer { font - size : 34px ; font - weight : 300 } . dashboard - legend , . dygraph - axis - label . dygraph - axis - label - x , . dygraph - axis - label . dygraph - axis - label - y { font - size : 15px ; font - weight : 400 } . dashboard - legend { height : 290px ; margin - top : - 3px ; width : 140px } . dashboard - half - height - legend { font - size : 15px ; height : 150px ; width : 70px } . application - detail - view section . info { width : 2188px } } @ media ( min - width : 2650px ) and ( max - width : 2889px ) { div . resizecontainer { width : 2628px } . dashboard - large - chart { width : 1746px } . dashboard - large - chart . dashboard - sub - bar { width : 1734px } . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { height : 285px ; width : 1596px } . dashboard - sub - bar - menu { font - size : 17px } . dashboard - medium - chart - outer { width : 1306px ; float : left } . dashboard - medium - chart { width : 1296px } . dashboard - medium - chart . dashboard - sub - bar { margin - left : - 5px ; width : 1295px } . dashboard - medium - chart . dashboard - interior - chart { height : 285px ; width : 1156px } . dashboard - medium - chart . dashboard - medium - chart - menu { font - size : 20px ; left : 1271px ; top : 0 } . dashboard - medium - chart # clusterGraphs svg { height : 285px ; width : 1296px } . dashboard - medium - chart # clusterGraphs svg text { font - size : 15px } . dashboard - small - chart { width : 866px } . dashboard - small - chart . dashboard - sub - bar { width : 854px } . dashboard - small - chart . dashboard - small - chart - inner { width : 856px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { height : 294px ; width : 856px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart . nv - axis text { fill : # 666 ; font - size : 15px ; font - weight : 400 } . dashboard - tendency - container . dashboard - tendency - chart { height : 129px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 408px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar { height : 42px ; line - height : 42px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure { height : 74px ; line - height : 36px ; padding - top : 5px } . dashboard - tendency - container . dashboard - sub - bar { width : 854px } . dashboard - bar - chart - container { height : 130 . 5px } . dashboard - bar - chart - container . dashboard - bar - chart { height : 128 . 5px ; width : 856px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title { height : 42 . 17px ; line - height : 42 . 17px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 588px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 250 . 8px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart { height : 67 . 33px ; line - height : 67 . 33px ; padding : 5px 8px 10px ; width : 840px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart # residentSizeChart { height : 72 . 33px } . dashboard - bar - chart - container . dashboard - sub - bar { width : 854px } . modal - chart - detail { bottom : 12 . 1 % ! important ; left : 50 % ; margin - left : - 1314px ; width : 2628px } . modal - chart - detail . modal - body { height : 95 % ; max - height : none ; padding : 5px } . modal - chart - detail . modal - dashboard - legend { font - size : 17px ; min - height : 290px ; width : 150px } . absolut , . percentage { font - size : 22px } . modal - chart - detail . modal - inner - detail { width : 2468px } . modal - body . dashboard - large - chart { width : 1743px } . modal - body . dashboard - large - chart . dashboard - sub - bar { width : 1731px } . modal - body . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { width : 1593px } . modal - body . dashboard - medium - chart - outer { width : 1291px ; float : left } . modal - body . dashboard - medium - chart { width : 1291px } . modal - body . dashboard - medium - chart . dashboard - sub - bar { width : 1289px } . modal - body . dashboard - medium - chart . dashboard - interior - chart { width : 1151px } . modal - body . dashboard - medium - chart . dashboard - medium - chart - menu { left : 1266px } . modal - body . dashboard - small - chart { width : 861px } . modal - body . dashboard - small - chart . dashboard - sub - bar { width : 849px } . modal - body . dashboard - small - chart . dashboard - small - chart - inner , . modal - body . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { width : 851px } . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 406 . 5px } . modal - body . dashboard - tendency - container . dashboard - sub - bar { width : 851px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart { width : 856px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 588px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 250 . 8px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart - chart { width : 840px } . modal - body . dashboard - bar - chart - container . dashboard - sub - bar { width : 854px } . absolut { font - weight : 300 } . dashboard - sub - bar { font - size : 15px ; font - weight : 400 } . dashboard - subtitle - bar { font - size : 22px ; font - weight : 300 } . dashboard - figure { font - size : 36px ; font - weight : 400 } . dashboard - figurePer { font - size : 34px ; font - weight : 300 } . dashboard - legend , . dygraph - axis - label . dygraph - axis - label - x , . dygraph - axis - label . dygraph - axis - label - y { font - size : 15px ; font - weight : 400 } . dashboard - legend { height : 290px ; margin - top : - 3px ; width : 140px } . dashboard - half - height - legend { font - size : 15px ; height : 150px ; width : 70px } . application - detail - view section . info { width : 2428px } } div . centralRow { margin - top : 40px ; margin - bottom : 40px } div . centralContent { background - color : transparent ; height : 100 % ; margin - left : - 5px ; margin - right : - 5px ; min - height : 80px ; padding : 5px ; width : 100 % } . contentDiv { list - style : none ; padding : 13px 0 0 } . contentDiv li { background - color : rgba ( 0 , 0 , 0 , . 05 ) } . contentDiv a . add { display : block ; font - weight : 400 ; padding : 40px 0 ; text - align : left } . contentDiv . icon { padding - left : 5px ; padding - right : 5px ; padding - top : 10px } . contentDiv : after { clear : both } . contentDiv : after , . contentDiv : before { content : ' ' ; display : table ; line - height : 0 } <nl> \ No newline at end of file <nl> + * / @ font - face { font - family : FontAwesome ; src : url ( . . / fonts / fontawesome / fontawesome - webfont . eot ? v = 4 . 3 . 0 ) ; src : url ( . . / fonts / fontawesome / fontawesome - webfont . eot ? # iefix & v = 4 . 3 . 0 ) format ( ' embedded - opentype ' ) , url ( . . / fonts / fontawesome / fontawesome - webfont . woff2 ? v = 4 . 3 . 0 ) format ( ' woff2 ' ) , url ( . . / fonts / fontawesome / fontawesome - webfont . woff ? v = 4 . 3 . 0 ) format ( ' woff ' ) , url ( . . / fonts / fontawesome / fontawesome - webfont . ttf ? v = 4 . 3 . 0 ) format ( ' truetype ' ) , url ( . . / fonts / fontawesome / fontawesome - webfont . svg ? v = 4 . 3 . 0 # fontawesomeregular ) format ( ' svg ' ) ; font - weight : 400 ; font - style : normal } . fa { font : normal normal normal 14px / 1 FontAwesome ; font - size : inherit ; text - rendering : auto ; - webkit - font - smoothing : antialiased ; - moz - osx - font - smoothing : grayscale ; transform : translate ( 0 , 0 ) } . modal - body , button { font - family : ' Open Sans ' , sans - serif ! important } . fa - lg { font - size : 1 . 3333333333em ; 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 . 2857142857em } . fa - ul { padding - left : 0 ; margin - left : 2 . 1428571429em ; list - style - type : none } . fa - ul > li { position : relative } . fa - li { position : absolute ; left : - 2 . 1428571429em ; width : 2 . 1428571429em ; top : . 1428571429em } . fa - li . fa - lg { left : - 1 . 8571428571em } . fa - border { padding : . 2em . 25em . 15em ; border : . 08em solid # eee ; border - radius : . 1em } . pull - right { float : right } . contentDiv li , . dashboard - bar - chart - container , . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart , . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title , . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut , . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage , . dashboard - half - height - legend , . dashboard - large - chart , . dashboard - large - chart . dashboard - large - chart - inner , . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart , . dashboard - legend , . dashboard - medium - chart , . dashboard - medium - chart . dashboard - interior - chart , . dashboard - small - chart , . dashboard - small - chart . dashboard - small - chart - inner , . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart , . dashboard - sub - bar , . dashboard - sub - bar . dashboard - sub - bar - title , . dashboard - tendency - container , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency . dashboard - figure , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency . dashboard - subtitle - bar , . dashboard - title - bar . dashboard - half - title - bar , . machineClass , . modal - chart - detail , . modal - chart - detail . modal - body , . modal - chart - detail . modal - dashboard - legend , . modal - chart - detail . modal - inner - detail , . pull - left , . scenarioMachine , a . button - gui , a . headerButton , div . bigtile , div . bigtile a span . add - Icon , div . tile , div . tile a span . add - Icon , div . centralContent , div . dropdownInner ul , div . footer - center , div . footer - left , div . footer - left p , div . navlogo , ul . gv - dropdown - menu , ul . link - dropdown - menu , ul . navlist li , ul . script - dropdown - menu , ul . user - dropdown - menu { 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 ( 0 ) ; transform : rotate ( 0 ) } 100 % { - webkit - transform : rotate ( 359deg ) ; transform : rotate ( 359deg ) } } @ keyframes fa - spin { 0 % { - webkit - transform : rotate ( 0 ) ; transform : rotate ( 0 ) } 100 % { - webkit - transform : rotate ( 359deg ) ; transform : rotate ( 359deg ) } } . fa - rotate - 90 { filter : progid : DXImageTransform . Microsoft . BasicImage ( rotation = 1 ) ; - webkit - transform : rotate ( 90deg ) ; - ms - transform : rotate ( 90deg ) ; transform : rotate ( 90deg ) } . fa - rotate - 180 { filter : progid : DXImageTransform . Microsoft . BasicImage ( rotation = 2 ) ; - webkit - transform : rotate ( 180deg ) ; - ms - transform : rotate ( 180deg ) ; transform : rotate ( 180deg ) } . fa - rotate - 270 { filter : progid : DXImageTransform . Microsoft . BasicImage ( rotation = 3 ) ; - webkit - transform : rotate ( 270deg ) ; - ms - transform : rotate ( 270deg ) ; transform : rotate ( 270deg ) } . fa - flip - horizontal { filter : progid : DXImageTransform . Microsoft . BasicImage ( rotation = 0 ) ; - webkit - transform : scale ( - 1 , 1 ) ; - ms - transform : scale ( - 1 , 1 ) ; transform : scale ( - 1 , 1 ) } . fa - flip - vertical { filter : progid : DXImageTransform . Microsoft . BasicImage ( rotation = 2 ) ; - 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 ; width : 2em ; height : 2em ; line - height : 2em ; vertical - align : middle } . fa - stack - 1x , . fa - stack - 2x { position : absolute ; left : 0 ; width : 100 % } . 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 - 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 : 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 { 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 { 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 , . fa - genderless : 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 - 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 - 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 " } . dashboard - sub - bar - menu , . search - field , div . bigtile div . iconSet span , div . tile div . iconSet span , div . footer - right , div . footer - right p , div . headerBar > div . headerButtonBar , div . navmenu , ul . headerButtonList li { float : right } . dashboard - bar - chart - container . dashboard - bar - chart : after , . dashboard - medium - chart . dashboard - medium - chart - inner : after , . dashboard - medium - chart . dashboard - medium - chart - menu : after , . dashboard - row : after , . dashboard - sub - bar : after , . dashboard - tendency - container . dashboard - tendency - chart : after , . detail - chart : after , . machineClass : after , . scenarioSingleMachine : after , div . headerBar > div . headerButtonBar : after , div . resizecontainer : after , div . tileList : after { clear : both ; content : ' . ' ; display : block ; font - size : 0 ; height : 0 ; visibility : hidden } . addButton , . arangoicon , . clusterDownBtn button , . contentDiv . icon , . deleteButton , . gv - search - submit - icon , . icon - info - sign , . scenarioImage , . search - submit - icon , a . button - gui , a . headerButton , div . bigtile , div . bigtile a span . icon , div . bigtile a svg , div . bigtile div . iconSet span , div . tile a span . icon , div . tile a svg , div . tile div . iconSet span , div . headerDropdown . headerDropdown input [ type = checkbox ] . css - checkbox + label . css - label , div . toolbox div . gv_action_button , ul . script - dropdown - menu li . dropdown - item { cursor : pointer } footer . footer , nav . navbar { background - color : rgba ( 245 , 248 , 240 , . 95 ) ; color : # fff ; left : 0 ; position : fixed ; right : 0 ; width : 100 % ; z - index : 1000 } . button - danger { background - color : # da4f49 } . button - danger : focus , . button - danger : hover { background - color : # be342e } . deleteButton , a . danger . coordinator , a . danger . dbserver { color : # da4f49 } . deleteButton : focus , . deleteButton : hover , a . danger . coordinator : focus , a . danger . coordinator : hover , a . danger . dbserver : focus , a . danger . dbserver : hover { color : # be342e } a . danger . coordinator , a . danger . dbserver { fill : # da4f49 } a . danger . coordinator : focus , a . danger . coordinator : hover , a . danger . dbserver : focus , a . danger . dbserver : hover { fill : # be342e } . button - success { background - color : # 8aa051 } . button - success : focus , . button - success : hover { background - color : # 788f3d } . addButton , a . success . coordinator , a . success . dbserver { color : # 8aa051 } . addButton : focus , . addButton : hover , a . success . coordinator : focus , a . success . coordinator : hover , a . success . dbserver : focus , a . success . dbserver : hover { color : # 788f3d } a . success . coordinator , a . success . dbserver { fill : # 8aa051 } a . success . coordinator : focus , a . success . coordinator : hover , a . success . dbserver : focus , a . success . dbserver : hover { fill : # 788f3d } . button - warning { background - color : # faa732 } . button - warning : focus , . button - warning : hover { background - color : # f89406 } a . warning . coordinator , a . warning . dbserver { color : # faa732 ; fill : # faa732 } a . warning . coordinator : focus , a . warning . coordinator : hover , a . warning . dbserver : focus , a . warning . dbserver : hover { color : # f89406 ; fill : # f89406 } . button - close , . button - neutral { background - color : # 8f8d8c } . button - close : focus , . button - close : hover , . button - neutral : focus , . button - neutral : hover { background - color : # 736b68 } . dashboard - sub - bar - menu { color : # 8f8d8c } . dashboard - sub - bar - menu : focus , . dashboard - sub - bar - menu : hover { color : # 736b68 } . button - primary { background - color : # 564e4a } . button - primary : focus , . button - primary : hover { background - color : # 3a322e } . button - header , a . button - gui , a . headerButton { background - color : # fff ; border : 1px solid # fff ; color : # 555 } . button - header : focus , . button - header : hover , a . button - gui : focus , a . button - gui : hover , a . headerButton : focus , a . headerButton : hover { border : 1px solid # 8aa051 ; background - color : # 8aa051 ; color : # fff } . button - notification { background - color : # faa020 } . button - notification : focus , . button - notification : hover { background - color : # f87c0f } . button - inactive , . button - inactive : focus , . button - inactive : hover , [ class * = ' button - ' ] : disabled , [ class * = ' button - ' ] : focus : disabled , [ class * = ' button - ' ] : hover : disabled , [ class ^ = button - ] : disabled , [ class ^ = button - ] : focus : disabled , [ class ^ = button - ] : hover : disabled { background - color : # d3d3d3 } a . headerButton . disabled , a . headerButton . disabled : focus , a . headerButton . disabled : hover , a . inactive . coordinator , a . inactive . coordinator : focus , a . inactive . coordinator : hover , a . inactive . dbserver , a . inactive . dbserver : focus , a . inactive . dbserver : hover { color : # d3d3d3 } a . inactive . coordinator , a . inactive . coordinator : focus , a . inactive . coordinator : hover , a . inactive . dbserver , a . inactive . dbserver : focus , a . inactive . dbserver : hover { fill : # d3d3d3 } ul . gv - dropdown - menu , ul . link - dropdown - menu , ul . script - dropdown - menu , ul . user - dropdown - menu { background - color : # F5F8F0 ; border - color : # 666 ; border - style : solid ; border - width : 1px ; border - radius : 3px ; display : none ; list - style : none ; margin : 5px 0 0 ; padding : 5px 0 ; position : absolute ; right : 0 ; top : 80 % ; z - index : 1000 } a . tab , ul . script - dropdown - menu li . dropdown - item a { display : block } ul . gv - dropdown - menu li , ul . link - dropdown - menu li , ul . script - dropdown - menu li , ul . user - dropdown - menu li { line - height : 23px ; white - space : nowrap ; width : 100 % } ul . gv - dropdown - menu li . dropdown - header , ul . link - dropdown - menu li . dropdown - header , ul . script - dropdown - menu li . dropdown - header , ul . user - dropdown - menu li . dropdown - header { color : # 999 ; font - size : 15px ; font - weight : 600 ; font - variant : small - caps ; padding : 0 15px } ul . gv - dropdown - menu li . dropdown - header : hover , ul . link - dropdown - menu li . dropdown - header : hover , ul . script - dropdown - menu li . dropdown - header : hover , ul . user - dropdown - menu li . dropdown - header : hover { cursor : default } ul . gv - dropdown - menu li . divider , ul . link - dropdown - menu li . divider , ul . script - dropdown - menu li . divider , ul . user - dropdown - menu li . divider { background - color : # 666 ; height : 1px ; margin : 10px 0 } ul . gv - dropdown - menu a , ul . link - dropdown - menu a , ul . script - dropdown - menu a , ul . user - dropdown - menu a { color : # fff ; padding : 0 20px } . navbar { - webkit - font - smoothing : subpixel - antialiased } . navbar . nav li . dropdown . active > . dropdown - toggle , . navbar . nav li . dropdown . open . active > . dropdown - toggle , . navbar . nav li . dropdown . open > . dropdown - toggle { background : # 788f3d } nav . navbar { padding - top : 6px ; height : 44px ; margin - bottom : 3px ; top : 0 } nav . navbar . arangodbLogo { height : auto ; margin - left : - 5px ; margin - top : - 1px ; width : 40 % } nav . navbar . nav > . active > a { background - color : # fff ; color : # 000 ; - webkit - box - shadow : 0 0 0 transparent inset ; - moz - box - shadow : 0 0 0 transparent inset ; box - shadow : 0 0 0 transparent inset } nav . navbar . nav > li > a : focus { background - color : # fff } nav . navbar . nav > li > a : hover { background - color : # 000 ; color : # 686766 } ul . navlist li . dropdown - item : hover a , ul . navlist > li . active a , ul . navlist > li . active : hover a , ul . navlist > li : hover a { color : # 000 } div . navlogo { margin - left : 5px ; margin - right : - 1px ; padding - top : 3px } ul . navlist { list - style : none } ul . navlist li { margin - left : 1px } ul . navlist li . navbar - spacer { background - color : # a0a0a0 ; height : 21px ; margin - top : 9px ; width : 1px } ul . navlist li . navbar - spacer . big { margin - left : 15px ; margin - right : 15px } ul . navlist li . navbar - spacer . med { margin - left : 5px ; margin - right : 5px } ul . navlist li . dropdown - item , ul . script - dropdown - menu li . dropdown - item { margin - left : 0 } ul . navlist li . navbar - spacer : hover { background - color : # a0a0a0 } ul . navlist > li . active , ul . navlist > li . active : hover { background - color : transparent } ul . navlist li . active { font - weight : 700 } ul . navlist li . active . tab { border - bottom : 2px solid # 8aa051 ; padding - bottom : 4px } ul . navlist li . divider , ul . navlist li . navbar - spacer { border : none } ul . navlist li . divider { background - color : rgba ( 0 , 0 , 0 , . 2 ) } ul . navlist li { border - top : 1px solid transparent ; border - left : 1px solid transparent ; border - right : 1px solid transparent } ul . navlist li . dropdown : hover { border - top : 1px solid rgba ( 0 , 0 , 0 , . 2 ) ; border - left : 1px solid rgba ( 0 , 0 , 0 , . 2 ) ; border - right : 1px solid rgba ( 0 , 0 , 0 , . 2 ) ; border - bottom - left - radius : 0 ; border - bottom - right - radius : 0 } ul . navlist li . dropdown - item : hover , ul . navlist > li : hover { background - color : # fff ; border - radius : 3px } ul . navlist li . dropdown - item a { display : block ; border - bottom : 0 } ul . navlist li . dropdown - item a : hover { color : # 686766 ; background - color : # dee9cf } a . tab { color : # 686766 ; font - size : 12pt ; font - weight : 100 ; padding : 9px 10px 10px } a . tab . userImg { padding - bottom : 5px } . dropdown - item a { border - bottom : 0 ! important ; font - weight : 300 } ul . link - dropdown - menu { background - color : # fff ; z - index : - 10 ; margin - top : 7px ; margin - right : - 1px ; border : 1px solid rgba ( 0 , 0 , 0 , . 2 ) ; border - top - right - radius : 0 } ul . script - dropdown - menu li . dropdown - item a : hover { color : # fff } ul . script - dropdown - menu li . dropdown - item : hover { background - color : # 8aa051 } ul . gv - dropdown - menu { - moz - border - radius : 0 ; - webkit - border - radius : 0 ; border - radius : 0 ; background - color : rgba ( 0 , 0 , 0 , . 7 ) ; border : 1px solid # c2c2c2 ; margin - right : - 20px ; margin - top : 6px } ul . gv - dropdown - menu : after { border - bottom - color : # fff } ul . gv - dropdown - menu li : hover { background - color : # fff ; background - image : none } ul . gv - dropdown - menu li a { padding : 0 } ul . gv - dropdown - menu li a label { color : # fff ; padding - left : 5px } ul . gv - dropdown - menu li a : focus { background - color : # 8aa051 ! important ; background - image : none } # arangoCollectionSelect { display : none ; float : right ; margin - bottom : 0 ; margin - right : 15px ; padding - bottom : 0 } . caret { border - left : 5px solid transparent ; border - top : 5px solid # 686766 ; border - right : 5px solid transparent ; content : ' ' ; display : inline - block ; height : 0 ; vertical - align : top ; width : 0 } . applications - menu { display : block } . arango - logo { height : 34px ; padding : 0 ! important } . arango - logo img { margin - left : 22px } . footer { bottom : 0 ; font - size : 14px ; left : 0 ; position : fixed ; right : 0 ; z - index : 1000 } footer . footer { bottom : 0 ; height : 40px } footer . footer p { margin - bottom : 0 ; padding - bottom : 10px ; padding - top : 10px ; font - weight : 100 ; font - size : 10pt } div . footer - left { background : none ; color : # 686766 ; width : 45 % } div . footer - left . social - icons { margin - top : 5px } div . footer - left . social - icons a { width : 25px ; display : block ; height : 25px ; float : left } div . footer - left . social - icons p { font - size : 12pt ; background : # fff ; border : 1px solid rgba ( 104 , 103 , 102 , . 1 ) ; border - radius : 20px ; height : 25px ; width : 25px ; padding : 0 ; margin - right : 10px } div . footer - left . social - icons p : hover { cursor : pointer ; background : # 8c8a89 } div . footer - left . social - icons p : hover i { color : # fff } div . footer - left . social - icons i { color : # 000 ; position : absolute ; margin - top : 4px } div . footer - left . social - icons i . fa - twitter { margin - left : - 7px } div . footer - left . social - icons i . fa - envelope { margin - left : - 20px } div . footer - left . social - icons i . fa - google { margin - top : 6px ; margin - left : - 18px } div . footer - left . social - icons i . fa - stack - overflow { margin - left : - 18px } div . footer - center { background : none ; color : # 686766 ; width : 10 % } div . footer - center p : hover { cursor : pointer } [ class * = ' button - ' ] : disabled , [ class ^ = button - ] : disabled , a . headerButton . disabled { cursor : not - allowed } div . footer - right { background : none ; color : # 686766 ; width : 45 % } div . footer - right p { color : # fff } div . footer - right i { color : # da4f49 ; font - size : 18px } div . footer - right a { color : # 686766 ; margin - left : 5px ; position : relative ; top : - 1px } div . footer - right . isOnline { color : # 8aa051 ! important } . button - close , . button - danger , . button - header , . button - inactive , . button - neutral , . button - notification , . button - primary , . button - success , . button - warning { - moz - border - radius : 4px ; - webkit - border - radius : 4px ; border - radius : 4px ; - webkit - box - shadow : 0 ; - moz - box - shadow : 0 ; box - shadow : 0 ; font - size : 14px ; font - weight : 300 ! important } . button - close , . button - danger , . button - inactive , . button - neutral , . button - notification , . button - primary , . button - success , . button - warning { border : 0 ; color : # fff ; margin - left : 10px ; padding : 5px 16px } . button - header { margin - top : 5px } . addButton { font - size : 22px ; margin - right : 7px ; margin - top : 2px ; position : relative } . deleteButton { font - size : 22px ; padding - right : 3px ; position : relative ; top : 3px } # closeBtnInfoView { margin - left : 0 ! important } button . large - distance { margin - left : 12px } button . short - distance { margin - left : 6px } ul . headerButtonList { display : inline - block ; margin - bottom : 0 ; margin - left : 0 ; padding - left : 0 ! important } ul . headerButtonList li { display : inline } button . shutdown { margin - top : 6px ; padding : 3px 14px } a . button - gui , a . headerButton { - moz - border - radius : 2px ; - webkit - border - radius : 2px ; border - radius : 2px ; - webkit - box - shadow : none ; - moz - box - shadow : none ; box - shadow : none ; margin - left : 5px ; margin - right : 5px } a . headerButton { margin - top : 2px ; position : relative } a . headerButton . fa , a . headerButton [ class * = " icon_ " ] , a . headerButton [ class ^ = icon_ ] { display : block ; height : 23px ; line - height : 23px ; position : static ; right : 0 ; text - align : center ; top : 0 ; width : 27px } a . headerButton . icon_arangodb_arrowleft , a . headerButton . icon_arangodb_arrowright { font - weight : 700 } a . headerButton . activated { background - color : # 788f3d ; color : # fff ; border : 1px solid # 788f3d } a . headerButton . activated : hover { background - color : # fff ; color : # 788f3d } div . toolbox { border - radius : 3px ; background - color : # fff ; border : 1px solid rgba ( 104 , 103 , 102 , . 1 ) ; margin - right : 5px ; margin - top : - 3px ; padding - top : 5px ; padding - bottom : 5px ; position : absolute } div . toolbox , div . toolbox div . gv_action_button { - moz - border - radius : 3px ; - webkit - border - radius : 3px } div . toolbox div . gv_action_button { background - color : # fff ; border - radius : 3px ; color : # 000 ; height : 50px ; margin : 5px ; position : relative ; width : 50px } div . toolbox div . gv_action_button . active { background - color : # 8aa051 ; color : # fff } div . toolbox div . gv_action_button : first - child { margin - top : 0 } div . toolbox div . gv_action_button : last - child { margin - bottom : 0 } h6 . gv_button_title , h6 . gv_icon_icon { left : 0 ; margin : 0 ; position : absolute ; right : 0 } h6 . gv_icon_icon { font - size : 22px ; top : 6px } h6 . gv_button_title { bottom : 1px } button . graphViewer - icon - button { background - color : transparent ; border : 0 ; height : 20px ; margin - left : 5px ; margin - top : - 2px ; padding : 0 ; width : 20px } button . graphViewer - icon - button > img { height : 20px ; padding - bottom : 10px ; width : 20px } button . gv_dropdown_entry { height : 30px ; margin : 4px 4px 4px 30px ; width : 160px } button . gv_context_button { width : 65px } . btn - icon { background - color : # 383434 ; padding : 4px } button . gv - icon - small { background - size : 16px 16px ; height : 16px ; width : 16px } button . gv - icon - small . delete { background - image : url ( . . / img / icon_delete . png ) } button . gv - icon - small . add { background - image : url ( . . / img / plus_icon . png ) } button . gv - icon - btn { - moz - border - radius : 0 ! important ; - webkit - border - radius : 0 ! important ; border - radius : 0 ! important ; background - size : 36px 36px ; height : 36px ; width : 36px } button . gv - icon - btn . active { background - color : # 8aa051 } button . btn - zoom : hover { background : inherit } button . btn - zoom { background : 0 0 ; height : 16px ; margin : 0 ; padding : 0 ; position : absolute ; width : 16px } button . btn - zoom - top { border : 0 ; box - shadow : none ; left : 13px ; top : 1 } button . btn - zoom - left { border : 0 ; box - shadow : none ; left : 0 ; top : 13px } button . btn - zoom - bottom { border : 0 ; box - shadow : none ; left : 13px ; top : 25px } button . btn - zoom - right { border : 0 ; box - shadow : none ; right : 0 ; top : 13px } button . gv - zoom - btn { background - size : 14px 14px ; height : 14px ; vertical - align : baseline ; width : 14px } button . gv - zoom - btn . pan - right { background - image : url ( . . / img / gv_arrow_right . png ) } button . gv - zoom - btn . pan - left { background - image : url ( . . / img / gv_arrow_left . png ) } button . gv - zoom - btn . pan - top { background - image : url ( . . / img / gv_arrow_top . png ) } button . gv - zoom - btn . pan - bottom { background - image : url ( . . / img / gv_arrow_bottom . png ) } a . pagination - button , ul . arango - pagination a { - moz - border - radius : 3px ; - webkit - border - radius : 3px ; border - radius : 3px } . badge , . btn , . label { text - shadow : none ! important } . navbar - inner , . thumbnail { - moz - border - radius : 0 ; - webkit - border - radius : 0 ; border - radius : 0 ; - webkit - box - shadow : 0 ; - moz - box - shadow : 0 ; box - shadow : 0 } . modal - body th . actionCell > button { margin - top : - 12px } . btn - old - padding { padding - bottom : 4px ! important ; padding - top : 4px ! important } button . btn - overview , button . btn - server { margin : 5px } button . btn - server { width : 120px } a . button - gui { height : auto ; margin - bottom : 0 ; margin - top : 0 ; padding - top : 1px ; padding - bottom : 1px ; position : absolute ; right : 2px ; text - decoration : none ! important ; top : 2px ; width : auto } a . button - gui . button - gui - disabled { display : none } . clusterDownBtn { padding - bottom : 10px ; padding - top : 10px } . clusterDownBtn button { - moz - border - radius : 3px ; - webkit - border - radius : 3px ; border - radius : 3px ; background - color : # f1f1f1 ; border : 1px solid rgba ( 0 , 0 , 0 , . 1875 ) ; color : # 333 ; font - size : 20px ; font - weight : 300 ; margin : 0 ; padding : 12px 18px ; text - decoration : none ! important ; width : 250px } . clusterDownBtn button : hover { background - color : # e8e8e8 ; color : # 4a6c30 ; - webkit - transition - delay : 0 ; - webkit - transition - duration : . 2s ; - webkit - transition - property : all ; - webkit - transition - timing - function : ease - in } . clusterDownBtn button . green { background - color : # 617e2b ; color : # fff } . clusterDownBtn button . green : hover { background - color : # 8ba142 } . bottomButtonBar { border - top : 1px solid rgba ( 104 , 103 , 102 , . 1 ) ; background - color : # fff ; height : 30px ; padding : 10px } . clusterInfoIcon { float : left ; padding - left : 5px ; padding - top : 2px } . waitModal . icon { font - size : 100px ; height : 120px } . waitModal . message { font - size : 20px } . icon_arangodb_info { color : # 333 ; font - size : 23px } li a [ class * = " icon_arangodb " ] , li a [ class ^ = icon_arangodb ] { font - size : 18px ; position : absolute ; right : 4px ; top : 2px } . fa - minus - circle { color : # da4f49 ; font - size : 14pt } . fa - minus - circle : hover { cursor : pointer } div . headerDropdown { background - color : # fff ; border : 1px solid rgba ( 104 , 103 , 102 , . 1 ) ; border - radius : 3px ; display : none ; padding : 10px ; position : relative ; width : auto } div . headerDropdown . headerDropdown input [ type = checkbox ] . css - checkbox { display : none } div . headerDropdown . headerDropdown input [ type = checkbox ] . css - checkbox + label . css - label { background - position : 0 0 ; background - repeat : no - repeat ; display : inline - block ; font - size : 15px ; height : 15px ; margin - top : 0 ; padding - left : 20px ; vertical - align : middle } div . headerDropdown . headerDropdown input [ type = checkbox ] . css - checkbox : checked + label . css - label { background - position : 0 - 15px } div . dropdown - title { margin - bottom : 10px } div . dropdownInner { - webkit - box - shadow : 0 ; - moz - box - shadow : 0 ; box - shadow : 0 ; min - height : 125px ; position : relative ; width : auto } div . dropdownInner > . nav - header { color : # 000 ; font - size : 13px ; font - weight : 400 } div . dropdownInner > label { color : # 000 ; font - weight : 300 } div . dropdownInner ul { border - left : 1px solid # c2c2c2 ; display : inline ; margin - top : 10px ; min - height : 105px ; width : 238px } div . dropdownInner ul : first - of - type { border : 0 } div . dropdownInner ul label { color : # 000 ; padding - left : 35px } div . dropdownInner ul li . fa { margin - right : 5px ; color : # 8c8a89 } div . dropdownInner ul li . fa . fa - check - circle - o , div . dropdownInner ul li . fa . fa - dot - circle - o { color : # 8aa051 } div . queryline { color : # 000 ; height : 35px } div . queryline . textDiv { margin - right : 10px ; margin - top : 4px } div . queryline input , div . queryline select { margin - bottom : 5px } div . queryline . querylineAdd span { color : # fff ; padding - left : 10px ; position : relative ; top : - 21px } div . queryline . removeFilterItem i { margin - left : 5px ! important ; margin - top : 0 ! important } div . queryline div . searchByAttribute { margin - left : 6px ; margin - right : 6px ; position : relative } div . queryline div . searchByAttribute > ul . gv - dropdown - menu { - moz - border - radius : 0 ; - webkit - border - radius : 0 ; border - radius : 0 ; background - color : # fff ; color : # fff ; display : none ; left : 0 ; position : absolute ; top : 20px ; width : 247px } div . dropdownImport { background - color : # fff ; border - radius : 3px ; display : none ; position : relative ; padding : 10px 10px 5px } div . dropdownImport input { line - height : 0 ; margin - bottom : - 15px ; margin - top : 5px } select . filterSelect { margin - left : 10px ; margin - right : 10px ; width : 100px } # filterHeader button { float : right ; margin - left : 10px ! important ; margin - top : 1px } div . input - append button . gv_example_toggle { - moz - border - radius : 0 4px 4px 0 ; - webkit - border - radius : 0 4px 4px 0 ; border - radius : 0 4px 4px 0 ; background - color : # 8f8d8c ; height : 30px ; margin - left : - 1px ; padding - left : 10px ; padding - right : 10px ; padding - top : 12px ; vertical - align : top } div . input - append button . gv_example_toggle : hover { background - color : # 8aa051 } . searchEqualsLabel { margin - left : 6px ; margin - right : 6px } img . gv - throbber { background - image : url ( . . / img / swagger / throbber . gif ) } span . gv_caret { margin - top : 2px ! important } input . search - input { - moz - border - radius : 3px ; - webkit - border - radius : 3px ; border - radius : 3px ; background - color : # fff ! important ; border : 1px solid # eee ; box - shadow : none ; height : 14px ; line - height : 18px ; margin - top : 6px ; margin - right : - 1px ; width : 120px ; outline : transparent 0 } input . search - input : focus { border - color : # 999 ; box - shadow : none ; outline : transparent 0 } . search - field { margin - left : 10px } . search - field . fa - search { color : # D2D2D2 ; font - size : 13pt ; opacity : . 5 ; position : absolute ; right : 7px ; top : 9px } . search - field . fa - search : hover { opacity : 1 ; cursor : pointer } . gv - search - submit - icon , . search - submit - icon { background - image : url ( . . / img / enter_icon . png ) ; background - size : 14px ; height : 14px ; margin - left : - 18px ; opacity : . 2 ; position : absolute ; width : 14px } . gv - search - submit - icon : hover , . search - submit - icon : hover { opacity : . 8 } . search - submit - icon { margin - top : 11px } . gv - search - submit - icon { margin - top : 6px } div . headerBar { background - color : # fff ; border - radius : 3px ; border : 1px solid rgba ( 104 , 103 , 102 , . 1 ) ; color : # fff ; font - size : 16px ; height : 36px ; margin - top : 15px ; margin - bottom : 5px ; padding - left : 5px ; padding - right : 5px ; position : relative } div . headerBar . infoField { background - color : # f5f8f0 ; border : 1px solid # d3d3d3 ; border - radius : 3px ! important ; color : # 000 ; float : right ; font - size : 12px ; margin - top : 7px ; margin - right : 7px ; padding - left : 5px ; padding - right : 5px } div . headerBar . infoField . fa { cursor : pointer ; margin - left : 5px } div . headerBar input [ type = checkbox ] . css - checkbox { display : none } div . headerBar input [ type = checkbox ] . css - checkbox + label . css - label { background - position : 0 0 ; background - repeat : no - repeat ; cursor : pointer ; display : inline - block ; font - size : 15px ; height : 15px ; margin - top : 0 ; padding - left : 20px ; vertical - align : middle } div . headerBar input [ type = checkbox ] . css - checkbox : checked + label . css - label { background - position : 0 - 15px } div . headerBar input [ type = radio ] { display : none } div . headerBar input [ type = radio ] + label span { background : url ( . . / img / check_radio_sheet . png ) - 38px top no - repeat ; cursor : pointer ; display : inline - block ; height : 19px ; margin : - 1px 4px 0 0 ; vertical - align : middle ; width : 19px } # transparentHeader input [ type = checkbox ] . css - checkbox , . lineGraph . many . dygraph - legend > span , . modal - delete - confirmation { display : none } div . headerBar input [ type = radio ] : checked + label span { background : url ( . . / img / check_radio_sheet . png ) - 57px top no - repeat } div . headerBar a . arangoHeader { color : # 000 ; font - size : 13pt ; font - weight : 100 ; left : 0 ; position : relative ; top : 7px } div . headerBar > div . headerButtonBar { margin : 4px 0 ; margin - bottom : 0 ! important } . breadcrumb { background : 0 0 ; border : 0 ; border - radius : 0 ; padding : 7px 0 } . breadcrumb . disabledBread { font - size : 13pt ; font - weight : 100 ; color : # 666 ; float : left ; padding - right : 5px ; position : relative } . breadcrumb . disabledBread i { font - size : 10pt ; margin - left : 10px } . breadcrumb . activeBread { font - size : 13pt ; font - weight : 100 ; color : # 7da817 ; float : left } . arangoHeader { font - weight : 400 } . checkboxLabel { margin - top : 4px ; padding - left : 0 } . css - label { background - image : url ( . . / img / dark - check - green . png ) } . css - label - round { background - image : url ( . . / img / dark - check - green - round . png ) } . modal - dashboard - header , . modal - header { background - color : # fff ; border - radius : 3px ; border - bottom : 0 ! important ; margin - top : 5px ; padding - left : 5px ; padding - right : 10px ; padding - top : 4px } . modal - dashboard - header . arangoHeader , . modal - header . arangoHeader { color : # 000 ; font - size : 13pt ; font - weight : 100 ; left : 5px ; position : relative ; top : 2px } . modal - dashboard - header a , . modal - header a { top : 2px ! important } . modal - dashboard - header . close , . modal - header . close { color : # fff ; font - weight : 300 ; margin - top : 2px ; opacity : . 5 } . modal - dashboard - header . close : hover , . modal - header . close : hover { opacity : 1 } . modal - body { color : # 736b68 ; font - size : 14px ; font - weight : 300 } . modal - body . select2 - choices { border - radius : 3px ; border : 1px solid # aaa ; box - shadow : none ; - webkit - box - shadow : none ; background - image : none ! important } . modal - body . select2 - choices input { box - shadow : none ; - webkit - box - shadow : none ; outline : transparent ! important } . modal - body . select2 - choices input : active { box - shadow : none ; - webkit - box - shadow : none ; outline : 0 ! important } . modal - body . select2 - choices . select2 - search - choice { margin : 5px 0 3px 5px ! important } . modal - body . select2 - choices li { color : # 000 ; background - color : # fff ! important ; background - image : none ! important } . modal - body . select2 - choices li a { margin - top : - 1px ; margin - left : 1px } . modal - body . select2 - choices : active { outline : transparent ! important ; border : 1px solid # aaa ; box - shadow : none ! important ; - webkit - box - shadow : none ! important } . modal - body . nav - tabs { margin - top : 15px } . modal - body input , . modal - body select , . modal - body textarea { margin - top : 10px ; border - radius : 3px ; box - shadow : none } . modal - body input [ type = checkbox ] { margin - bottom : 10px } . modal - body input [ type = text ] . invalid - input { border - color : rgba ( 234 , 23 , 23 , . 6 ) } . modal - body input [ type = text ] . invalid - input : focus { - webkit - box - shadow : inset 0 1px 1px rgba ( 0 , 0 , 0 , . 075 ) , 0 0 8px rgba ( 234 , 23 , 23 , . 6 ) ; - moz - box - shadow : inset 0 1px 1px rgba ( 0 , 0 , 0 , . 075 ) , 0 0 8px rgba ( 234 , 23 , 23 , . 6 ) ; box - shadow : inset 0 1px 1px rgba ( 0 , 0 , 0 , . 075 ) , 0 0 8px rgba ( 234 , 23 , 23 , . 6 ) } . modal - body input [ type = file ] { line - height : 17px } . modal - body th . actionCell { width : 30px } . modal - body th . keyCell { width : 170px } . modal - body th . keyCell input { width : 150px } . modal - body th . valueCell { width : 300px } . modal - body th . valueCell input { width : 290px } . modal - body th div . select2 - container { margin - bottom : 10px ; margin - top : 10px } . modal - body . icon - info - sign { margin - bottom : 10px ; margin - left : 10px ; opacity : . 7 ; padding - bottom : 5px } . modal - body . icon - info - sign : hover { opacity : 1 } . modal - body . icon_arangodb_info { color : # 736b68 ; font - size : 18px ; margin - top : - 10px ; position : absolute ; right : 12px } . modal - body . icon_arangodb_info : hover { color : # 000 } . modal - body . collapse { margin - right : - 14px ; position : relative } . modal - body . accordion - inner { border - top : 0 ; margin - left : 0 ; padding - left : 0 ; padding - right : 0 } . modal - body . accordion - toggle span b . caret { border - top - color : # 000 ; float : right ; margin - top : 5px } . modal - body . accordion - toggle . collapsed span b . caret { - ms - transform : rotate ( 90deg ) ; - webkit - transform : rotate ( 90deg ) ; transform : rotate ( 90deg ) } . modal - body input { width : 384px } . modal - body select { width : 398px } . modal - body . collectionTh { height : 55px } . modal - body . tab - content { min - height : 200px } . modal - body . tab - content . tab - pane { border - top : 1px solid # 666 ! important ; margin - left : 0 ! important ; padding - top : 10px } . modal - body . tab - content # appstore { max - height : 290px } . modal - body . errorMessage { background - color : # fff ; color : red ; font - size : 9pt ; font - weight : 400 ; margin - bottom : 5px ; margin - top : - 9px ; position : absolute } . modal - body . nav img . tab - icon { margin - right : 5px ; margin - top : - 3px ; width : 20px } . modal - text { font - weight : 300 ; padding - bottom : 3px ; padding - top : 3px } . modal - backdrop , . modal - backdrop . fade . in { opacity : . 4 } . modal { box - shadow : none ; border : 0 ! important ; border - radius : 3px ! important } . modal . fade . in { top : 12 . 1 % ! important } . modal table tr : last - child { border - bottom : 0 ! important } . waitModal { box - shadow : none ; background : 0 0 ; border : 0 ; color : # fff } . waitModal , div . bigtile , div . tile { - webkit - box - shadow : none ; - moz - box - shadow : none } . waitModalBackdrop { opacity : . 7 ! important } . modalTooltips span { color : # 736b68 ; font - size : 20px } . modalTooltips span : hover { color : # 000 } pre . gv - object - view { text - align : left ; white - space : pre } . capitalize { text - transform : capitalize } . modal - footer { border - top : 0 ! important ; padding - right : 17px } . modal - header { margin - left : 5px ; margin - right : 5px } . modal - dashboard - header { margin - left : 0 ; margin - right : 0 ; padding - bottom : 9px } . modal table tr , . thBorderBottom { border - bottom : 1px solid # f7f3f2 ! important } . modal - delete - confirmation button { margin - right : 10px ; margin - top : - 4px } . modal - delete - confirmation button . modal - confirm - delete { margin - right : - 18px } . createModalDialog table { width : 100 % } . createModalDialog . collection - info - figures table { float : left ; margin - left : 0 ; margin - right : 0 ; margin - top : 0 ; min - width : 200px ; padding : 3px ; text - align : left } . createModalDialog . figures1 , . createModalDialog . figures2 { margin - bottom : 20px ; width : 255px } . createModalDialog . figures2 { margin - left : 20px ! important } . createModalDialog . figures3 { margin - bottom : 0 ; width : 100 % } . foxx - store - row . foxx - name { font - weight : 700 } . foxx - store - row . foxx - author { font - size : 10pt ; font - weight : 300 ; margin - top : - 4px } . foxx - store - row . foxx - version { font - weight : 400 } # new - app - mount { margin - right : 24px ; width : 360px } # control_event_edge_delete_modal , # control_event_edge_edit_modal , # control_event_new_node_modal , # control_event_node_delete_modal , # control_event_node_edit_modal { margin - left : - 320px ; width : 640px } . scenarioImage { height : 70 % ; width : auto } svg . clusterChart { height : auto ; margin : auto ; width : auto } . lineGraph { position : absolute } . lineGraph . few . dygraph - legend > span . highlight { border : 1px solid grey } . lineGraph . many . dygraph - legend > span . highlight { display : inline } a . coordinator , a . dbserver { color : # 000 ; height : 50px ; position : absolute ; top : 10px ; width : 50px } a . coordinator h6 . serverName , a . dbserver h6 . serverName { bottom : 0 ; font - size : 11px ; left : 0 ; margin : 0 ; position : absolute ; right : 0 } a . coordinator . single { left : 90px } a . coordinator . double { left : 60px } a . dbserver . single { right : 90px } a . dbserver . double { right : 60px } . cluster - connection - check - success { color : # 8aa051 ; margin - left : 20px } . cluster - connection - check - fail { color : # da4f49 ; margin - left : 20px } . cluster - unreachable - info { margin : 0 auto ; max - width : 320px ; padding - top : 17px ; text - align : center } . machineClass { background - color : # e1e1e1 ; margin - left : 31px ; margin - right : 31px ; padding : 10px } . scenarioBox { - moz - border - radius : 3px ; - webkit - border - radius : 3px ; border - radius : 3px ; background - color : rgba ( 0 , 0 , 0 , . 075 ) ; border : 1px solid rgba ( 0 , 0 , 0 , . 19 ) ; height : 65px ; left : 10px ; margin - top : 30px ; position : absolute ; right : 10px ; width : auto } . scenarioMachine , div . bigtile , div . tile { background - color : # fff ; position : relative } . scenarioBox . bottomBox { bottom : 30px } . scenarioBoxHeader { border - bottom : 1px solid rgba ( 0 , 0 , 0 , . 19 ) ; height : 18px ; line - height : 18px ; margin - top : 0 ; padding - bottom : 0 ; text - align : center ; width : auto } . scenarioBoxText { font - size : 13px ; font - weight : 400 ; margin - top : 17px ; text - align : center ; width : auto } . collectionName , div . bigtile . badge - success , div . tile . badge - success { font - weight : 300 } . scenarioMachine { border - radius : 3px 3px 0 0 ; border : 1px solid rgba ( 0 , 0 , 0 , . 19 ) ; height : 257px ; margin - right : 17px ; width : 110px } . scenarioMachine , . scenarioSingleMachine { - moz - border - radius : 3px 3px 0 0 ; - webkit - border - radius : 3px 3px 0 0 } . scenarioMachine : last - child { margin - right : 0 } . scenarioSingleMachine { border - radius : 3px 3px 0 0 ; background - color : # fff ; border : 1px solid rgba ( 0 , 0 , 0 , . 19 ) } . scenarioSingleMachine . scenarioMachine { border : 1px solid transparent ; height : 238px } . bigtile . informationtile { cursor : auto } . informationText { background : # fff ; font - size : 12px ; margin : 10px ; padding : 5px ; text - align : left } div . tileList { margin - left : - 6px ; margin - right : - 6px } div . tileList legend { padding - left : 5px } div . bigtile , div . tile { box - shadow : none ; border - radius : 3px ; border : 1px solid rgba ( 104 , 103 , 102 , . 1 ) ; font - size : 14px ; list - style : none ; margin - bottom : 13px ; margin - left : 6px ; margin - right : 6px ; text - align : center } div . bigtile . warning - icons , div . tile . warning - icons { background - color : # da4f49 ; color : # fff ; font - size : 11px ; height : 17px ; left : 0 ; line - height : 13px ; padding - left : 9px ; padding - right : 4px ; position : absolute ; top : 0 } div . bigtile a svg . icon , div . bigtile img . icon , div . tile a svg . icon , div . tile img . icon { height : 50px ; width : 50px } div . bigtile . warning - icons : before , div . tile . warning - icons : before { border - right : 17px solid transparent ; border - top : 17px solid # da4f49 ; content : ' ' ; position : absolute ; right : - 17px } div . bigtile . warning - icons . fa + . fa , div . tile . warning - icons . fa + . fa { margin - left : 1px } div . bigtile . warning - icons . fa : before , div . tile . warning - icons . fa : before { font - size : 8px } div . bigtile . collection - type - icon , div . tile . collection - type - icon { color : # 666 ; font - size : 30pt ; margin - top : 12pt } div . bigtile . collection - type - icon : hover , div . tile . collection - type - icon : hover { cursor : pointer } div . bigtile a span . add - Icon , div . tile a span . add - Icon { font - size : 22px ; margin - left : 22px ; margin - right : 10px ; margin - top : - 5px ; position : relative ; right : 4px ; top : 2px } div . bigtile a span . icon , div . tile a span . icon { font - size : 50px } div . bigtile svg . tile - icon - svg , div . tile svg . tile - icon - svg { cursor : pointer ; fill : # 686766 ; height : 50px ; margin - left : 90px ; margin - top : 10px ; width : 50px } div . bigtile span . tile - icon , div . tile span . tile - icon { color : # 686766 ; font - size : 50px ; line - height : 1 . 2 } div . bigtile span . icon_arangodb_edge5 - 2 , div . tile span . icon_arangodb_edge5 - 2 { position : relative ; top : 15px ; - webkit - transform : rotate ( 80deg ) ; - moz - transform : rotate ( 80deg ) ; - o - transform : rotate ( 80deg ) ; display : inline - block } div . bigtile h5 , div . tile h5 { background : # 8c8a89 ; color : # fff ; font - size : 12px ; margin : 0 ; overflow : hidden ! important ; padding : 4px 8px ; text - overflow : ellipsis ! important ; white - space : nowrap ! important } div . bigtile div . tileSelects , div . tile div . tileSelects { margin - left : 40px ; position : relative ; z - index : 9999 } div . bigtile div . tileSelects select , div . tile div . tileSelects select { float : right ; height : 20px ; margin - right : 5px ; margin - top : 16px ; width : 70px } div . bigtile div . iconSet , div . tile div . iconSet { position : absolute ; right : 5px ; top : 5px } div . bigtile div . iconSet span , div . tile div . iconSet span { border - radius : 3px ; color : # 000 ; font - size : 18px ; padding : 2px 3px } div . bigtile div . iconSet span : hover , div . tile div . iconSet span : hover { background - color : # 8aa051 ; color : # fff } div . bigtile div . iconSet span . disabled , div . tile div . iconSet span . disabled { cursor : default ; opacity : . 2 } div . bigtile div . iconSet span . disabled : hover , div . tile div . iconSet span . disabled : hover { background - color : # fff ; color : # 000 ; cursor : default ; opacity : . 2 } div . bigtile . unloaded div , div . tile . unloaded div { border - bottom : 16px solid # ff8f35 } div . bigtile . deleted div , div . tile . deleted div { border - bottom : 16px solid # 700 } div . bigtile div . tileBadge , div . tile div . tileBadge { bottom : 29px ; font - size : 11px ; font - weight : 300 ; position : absolute ; right : 0 } div . bigtile div . tileBadge button , div . tile div . tileBadge button { margin - left : 0 ; margin - right : 5px } div . bigtile div . tileBadge span , div . tile div . tileBadge span { display : inline - block ; line - height : 15px } div . bigtile div . tileBadge span div . corneredBadge , div . tile div . tileBadge span div . corneredBadge { border - left : 5px solid transparent ; border - bottom - style : solid ; border - bottom - width : 17px ; border - radius : 3px ; margin - bottom : 4px ; margin - right : 5px ; color : # fff ; height : 0 ; padding - left : 1px ; padding - right : 6px } div . bigtile div . tileBadge span div . corneredBadge . loading , div . tile div . tileBadge span div . corneredBadge . loading { border - bottom - color : # ff8f35 } div . bigtile div . tileBadge span div . corneredBadge . loaded , div . tile div . tileBadge span div . corneredBadge . loaded { border - bottom - color : # 8aa051 } div . bigtile div . tileBadge span div . corneredBadge . development , div . bigtile div . tileBadge span div . corneredBadge . unloaded , div . tile div . tileBadge span div . corneredBadge . development , div . tile div . tileBadge span div . corneredBadge . unloaded { border - bottom - color : # ff8f35 } div . tile { height : 100px ; width : 226px } div . tile - graph . tile - icon : hover { cursor : pointer } div . bigtile { height : 309px ; width : 452px } div . bigtile div . shardContainer { font - size : 30px } div . bigtile div . shardContainer span { padding : 2px } . collectionName { bottom : 0 ; border - bottom - left - radius : 3px ; border - bottom - right - radius : 3px ; left : 0 ; position : absolute ; right : 0 ; text - align : left } . dashboard - bar - chart - container , . dashboard - large - chart . dashboard - large - chart - inner , . dashboard - medium - chart , . dashboard - small - chart . dashboard - small - chart - inner , . dashboard - tendency - container { border - top - left - radius : 3px ; border - top - right - radius : 3px } . dashboard - bar - chart - container : first - child , . dashboard - large - chart . dashboard - large - chart - inner : first - child , . dashboard - medium - chart : first - child , . dashboard - small - chart . dashboard - small - chart - inner : first - child , . dashboard - tendency - container : first - child { margin - left : 0 } . dashboard - bar - chart - container , . dashboard - large - chart , . dashboard - medium - chart , . dashboard - small - chart , . dashboard - tendency - container { margin - bottom : 10px ; position : relative } . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart , . dashboard - medium - chart . dashboard - interior - chart { margin - bottom : 0 } . dashboard - sub - bar - menu { cursor : pointer ; position : absolute ; right : 9px ; top : 6px } . dashboard - large - chart { margin - right : 12px ; border : 1px solid rgba ( 104 , 103 , 102 , . 1 ) ; border - radius : 3px } . dashboard - large - chart . dashboard - large - chart - inner { background - color : # fff ; border - left : 5px solid # fff ; border - right : 5px solid # fff ; border - top : 5px solid # fff ; padding - top : 12px ; padding - bottom : 10px } . dashboard - small - chart { border : 1px solid rgba ( 104 , 103 , 102 , . 1 ) ; border - radius : 3px } . dashboard - small - chart . dashboard - small - chart - inner { background - color : # fff ; border - left : 5px solid # fff ; border - right : 5px solid # fff ; border - top : 5px solid # fff ; padding - bottom : 10px ; padding - top : 5px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart . nv - bar rect { fill - opacity : . 15 ; stroke - opacity : . 8 ; stroke - width : . 5px } . dashboard - medium - chart - outer { border : 1px solid rgba ( 104 , 103 , 102 , . 1 ) ; border - radius : 3px } . dashboard - medium - chart - outer : first - child { margin - right : 10px } . dashboard - medium - chart { background - color : # fff ; border - left : 5px solid # fff ; border - right : 5px solid # fff ; border - top : 5px solid # fff ; padding - top : 10px ; margin - bottom : 0 } . dashboard - medium - chart : first - child { margin - right : 12px } . dashboard - medium - chart . dashboard - medium - chart - outer { border : 1px solid rgba ( 104 , 103 , 102 , . 1 ) ; border - radius : 3px } . dashboard - medium - chart . dashboard - medium - chart - menu { - moz - border - radius : 2px ; - webkit - border - radius : 2px ; border - radius : 2px ; border : 0 solid rgba ( 0 , 0 , 0 , . 3 ) ; color : rgba ( 0 , 0 , 0 , . 3 ) ; cursor : pointer ; padding : 0 4px ; position : absolute ; z - index : 1000 } . dashboard - medium - chart . dashboard - medium - chart - menu : hover { color : rgba ( 0 , 0 , 0 , . 7 ) } . dashboard - medium - chart . dashboard - medium - chart - inner { padding - bottom : 10px } . dashboard - medium - chart . clusterChart . slice path { fill - opacity : . 15 ; stroke - opacity : 1 ; stroke - width : 1 . 5px } . dashboard - tendency - container { border : 1px solid rgba ( 104 , 103 , 102 , . 1 ) ; border - radius : 3px } . dashboard - tendency - container . dashboard - tendency - chart { background - color : # fff ; border - top - left - radius : 3px ; border - top - right - radius : 3px ; border - left : 5px solid # fff ; border - right : 5px solid # fff ; border - top : 5px solid # fff ; padding - bottom : 5px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { background - color : # fff ; margin - top : 5px ; padding : 0 8px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency : first - child { border - right : 1px solid # e1e1e1 } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency . dashboard - subtitle - bar { border - bottom : 1px solid # e1e1e1 ; text - align : right } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency . dashboard - figure { text - align : center } . dashboard - bar - chart - container { border : 1px solid rgba ( 104 , 103 , 102 , . 1 ) ; border - radius : 3px } . dashboard - bar - chart - container . dashboard - bar - chart { background - color : # fff ; border - left : 5px solid # fff ; border - right : 5px solid # fff ; border - top : 5px solid # fff ; border - top - left - radius : 3px ; border - top - right - radius : 3px ; padding - bottom : 5px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title { margin - top : 5px ; padding : 0 8px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { font - weight : 400 } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { text - align : right } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart . nv - bar rect { fill - opacity : . 15 ; stroke - opacity : . 8 ; stroke - width : . 5px } . dashboard - legend . dashboard - legend - inner { padding : 0 5px 5px 0 } . dashboard - sub - bar { background - color : # 686766 ; border - bottom - left - radius : 3px ; border - bottom - right - radius : 3px ; color : # fff ; height : 24px ; line - height : 24px ; margin : 0 ; padding : 0 6px } . dashboard - spacer { margin : 0 12px } . headerBar . dashboard - headerbar { margin : 15px 0 10px } . modal - chart - detail . modal - dashboard - legend . dashboard - legend - inner { padding - left : 20px } . dashboard - half - height - legend . dashboard - legend - inner { padding - top : 20px } . dashboard - title - bar { background - color : # 686766 ; color : # fff ; font - size : 14 . 5px ; font - weight : 400 ; height : 30px ; line - height : 30px ; padding : 0 5px 0 10px } . dashboard - title - bar . dashboard - half - title - bar { border - left : 1px solid # 000 ; margin - left : - 1px ; width : 50 % } . dashboard - title - bar . dashboard - half - title - bar : first - child { border - left : 0 ; margin - left : 0 } . dashboard - row { margin - bottom : 0 ; margin - left : 0 ; margin - right : 0 } . dygraph - axis - label . dygraph - axis - label - x , . dygraph - axis - label . dygraph - axis - label - y { color : # 666 } div . resizecontainer { margin : 0 auto } @ media ( max - width : 798px ) { # arangoCollectionUl { display : none } # collectionsDropdown ul { width : auto ! important } # arangoCollectionSelect { display : inline - block } } @ media ( min - width : 799px ) and ( max - width : 1041px ) { # arangoCollectionUl a { font - size : 12px ; padding : 10px 5px } } @ media ( min - width : 1042px ) and ( max - width : 1284px ) { # arangoCollectionUl a { font - size : 14px } } @ media ( min - width : 250px ) and ( max - width : 489px ) { div . resizecontainer { width : 228px } . dashboard - large - chart { width : 146px } . dashboard - large - chart . dashboard - sub - bar { width : 134px } . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { height : 185px ; width : 136px } . dashboard - sub - bar - menu { font - size : 12px } . dashboard - medium - chart - outer { width : 106px ; float : left } . dashboard - medium - chart { width : 96px } . dashboard - medium - chart . dashboard - sub - bar { margin - left : - 5px ; width : 95px } . dashboard - medium - chart # clusterGraphs svg , . dashboard - medium - chart . dashboard - interior - chart { height : 185px ; width : 96px } . dashboard - medium - chart . dashboard - medium - chart - menu { font - size : 12px ; left : 79px ; top : 0 } . dashboard - medium - chart # clusterGraphs svg text { font - size : 10px } . dashboard - small - chart { width : 66px } . dashboard - small - chart . dashboard - sub - bar { width : 54px } . dashboard - small - chart . dashboard - small - chart - inner { width : 56px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { height : 197px ; width : 56px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart . nv - axis text { fill : # 666 ; font - size : 10px ; font - weight : 400 } . dashboard - tendency - container . dashboard - tendency - chart { height : 78 . 25px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 8px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar { height : 25 . 08px ; line - height : 25 . 08px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure { height : 40 . 17px ; line - height : 19 . 08px ; padding - top : 5px } . dashboard - tendency - container . dashboard - sub - bar { width : 54px } . dashboard - bar - chart - container { height : 79 . 75px } . dashboard - bar - chart - container . dashboard - bar - chart { height : 77 . 75px ; width : 56px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title { height : 25 . 25px ; line - height : 25 . 25px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 28px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 10 . 8px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart { height : 33 . 5px ; line - height : 33 . 5px ; padding : 5px 8px 10px ; width : 40px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart # residentSizeChart { height : 38 . 5px } . dashboard - bar - chart - container . dashboard - sub - bar { width : 54px } . modal - chart - detail { bottom : 12 . 1 % ! important ; left : 50 % ; margin - left : - 114px ; width : 228px } . modal - chart - detail . modal - body { height : 95 % ; max - height : none ; padding : 5px } . modal - chart - detail . modal - dashboard - legend { display : none ; font - size : 12px ; min - height : 190px ; width : 10px } . absolut , . percentage { font - size : 14px } . modal - chart - detail . modal - inner - detail { width : 208px } . modal - body . dashboard - large - chart { width : 143px } . modal - body . dashboard - large - chart . dashboard - sub - bar { width : 131px } . modal - body . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { width : 133px } . modal - body . dashboard - medium - chart - outer { width : 91px ; float : left } . modal - body . dashboard - medium - chart { width : 91px } . modal - body . dashboard - medium - chart . dashboard - sub - bar { width : 89px } . modal - body . dashboard - medium - chart . dashboard - interior - chart { width : 91px } . modal - body . dashboard - medium - chart . dashboard - medium - chart - menu { left : 74px } . modal - body . dashboard - small - chart { width : 61px } . modal - body . dashboard - small - chart . dashboard - sub - bar { width : 49px } . modal - body . dashboard - small - chart . dashboard - small - chart - inner , . modal - body . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { width : 51px } . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 6 . 5px } . modal - body . dashboard - tendency - container . dashboard - sub - bar { width : 51px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart { width : 56px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 28px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 10 . 8px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart - chart { width : 40px } . modal - body . dashboard - bar - chart - container . dashboard - sub - bar { width : 54px } . absolut { font - weight : 300 } . dashboard - sub - bar { font - size : 10px ; font - weight : 400 } . dashboard - subtitle - bar { font - size : 14px ; font - weight : 300 } . dashboard - figure { font - size : 16px ; font - weight : 400 } . dashboard - figurePer { font - size : 14px ; font - weight : 300 } . dashboard - legend , . dygraph - axis - label . dygraph - axis - label - x , . dygraph - axis - label . dygraph - axis - label - y { font - size : 10px ; font - weight : 400 } . dashboard - legend { display : none ; height : 190px ; margin - top : - 3px ; width : 0 } . dashboard - half - height - legend { display : none ; font - size : 10px ; height : 100px ; width : 0 } . application - detail - view section . info { width : 228px } . application - detail - view aside . meta { display : none } } @ media ( min - width : 490px ) and ( max - width : 729px ) { div . resizecontainer { width : 468px } . dashboard - large - chart { width : 306px } . dashboard - large - chart . dashboard - sub - bar { width : 294px } . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { height : 185px ; width : 296px } . dashboard - sub - bar - menu { font - size : 12px } . dashboard - medium - chart - outer { width : 226px ; float : left } . dashboard - medium - chart { width : 216px } . dashboard - medium - chart . dashboard - sub - bar { margin - left : - 5px ; width : 215px } . dashboard - medium - chart # clusterGraphs svg , . dashboard - medium - chart . dashboard - interior - chart { height : 185px ; width : 216px } . dashboard - medium - chart . dashboard - medium - chart - menu { font - size : 12px ; left : 199px ; top : 0 } . dashboard - medium - chart # clusterGraphs svg text { font - size : 10px } . dashboard - small - chart { width : 146px } . dashboard - small - chart . dashboard - sub - bar { width : 134px } . dashboard - small - chart . dashboard - small - chart - inner { width : 136px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { height : 197px ; width : 136px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart . nv - axis text { fill : # 666 ; font - size : 10px ; font - weight : 400 } . dashboard - tendency - container . dashboard - tendency - chart { height : 78 . 25px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 48px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar { height : 25 . 08px ; line - height : 25 . 08px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure { height : 40 . 17px ; line - height : 19 . 08px ; padding - top : 5px } . dashboard - tendency - container . dashboard - sub - bar { width : 134px } . dashboard - bar - chart - container { height : 79 . 75px } . dashboard - bar - chart - container . dashboard - bar - chart { height : 77 . 75px ; width : 136px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title { height : 25 . 25px ; line - height : 25 . 25px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 84px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 34 . 8px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart { height : 33 . 5px ; line - height : 33 . 5px ; padding : 5px 8px 10px ; width : 120px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart # residentSizeChart { height : 38 . 5px } . dashboard - bar - chart - container . dashboard - sub - bar { width : 134px } . modal - chart - detail { bottom : 12 . 1 % ! important ; left : 50 % ; margin - left : - 234px ; width : 468px } . modal - chart - detail . modal - body { height : 95 % ; max - height : none ; padding : 5px } . modal - chart - detail . modal - dashboard - legend { display : none ; font - size : 12px ; min - height : 190px ; width : 10px } . absolut , . percentage { font - size : 14px } . modal - chart - detail . modal - inner - detail { width : 448px } . modal - body . dashboard - large - chart { width : 303px } . modal - body . dashboard - large - chart . dashboard - sub - bar { width : 291px } . modal - body . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { width : 293px } . modal - body . dashboard - medium - chart - outer { width : 211px ; float : left } . modal - body . dashboard - medium - chart { width : 211px } . modal - body . dashboard - medium - chart . dashboard - sub - bar { width : 209px } . modal - body . dashboard - medium - chart . dashboard - interior - chart { width : 211px } . modal - body . dashboard - medium - chart . dashboard - medium - chart - menu { left : 194px } . modal - body . dashboard - small - chart { width : 141px } . modal - body . dashboard - small - chart . dashboard - sub - bar { width : 129px } . modal - body . dashboard - small - chart . dashboard - small - chart - inner , . modal - body . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { width : 131px } . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 46 . 5px } . modal - body . dashboard - tendency - container . dashboard - sub - bar { width : 131px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart { width : 136px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 84px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 34 . 8px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart - chart { width : 120px } . modal - body . dashboard - bar - chart - container . dashboard - sub - bar { width : 134px } . absolut { font - weight : 300 } . dashboard - sub - bar { font - size : 10px ; font - weight : 400 } . dashboard - subtitle - bar { font - size : 14px ; font - weight : 300 } . dashboard - figure { font - size : 16px ; font - weight : 400 } . dashboard - figurePer { font - size : 14px ; font - weight : 300 } . dashboard - legend , . dygraph - axis - label . dygraph - axis - label - x , . dygraph - axis - label . dygraph - axis - label - y { font - size : 10px ; font - weight : 400 } . dashboard - legend { display : none ; height : 190px ; margin - top : - 3px ; width : 0 } . dashboard - half - height - legend { display : none ; font - size : 10px ; height : 100px ; width : 0 } . application - detail - view section . info { width : 468px } . application - detail - view aside . meta { display : none } } @ media ( min - width : 730px ) and ( max - width : 969px ) { div . resizecontainer { width : 708px } . dashboard - large - chart { width : 466px } . dashboard - large - chart . dashboard - sub - bar { width : 454px } . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { height : 185px ; width : 456px } . dashboard - sub - bar - menu { font - size : 12px } . dashboard - medium - chart - outer { width : 346px ; float : left } . dashboard - medium - chart { width : 336px } . dashboard - medium - chart . dashboard - sub - bar { margin - left : - 5px ; width : 335px } . dashboard - medium - chart # clusterGraphs svg , . dashboard - medium - chart . dashboard - interior - chart { height : 185px ; width : 336px } . dashboard - medium - chart . dashboard - medium - chart - menu { font - size : 12px ; left : 319px ; top : 0 } . dashboard - medium - chart # clusterGraphs svg text { font - size : 10px } . dashboard - small - chart { width : 226px } . dashboard - small - chart . dashboard - sub - bar { width : 214px } . dashboard - small - chart . dashboard - small - chart - inner { width : 216px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { height : 197px ; width : 216px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart . nv - axis text { fill : # 666 ; font - size : 10px ; font - weight : 400 } . dashboard - tendency - container . dashboard - tendency - chart { height : 78 . 25px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 88px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar { height : 25 . 08px ; line - height : 25 . 08px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure { height : 40 . 17px ; line - height : 19 . 08px ; padding - top : 5px } . dashboard - tendency - container . dashboard - sub - bar { width : 214px } . dashboard - bar - chart - container { height : 79 . 75px } . dashboard - bar - chart - container . dashboard - bar - chart { height : 77 . 75px ; width : 216px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title { height : 25 . 25px ; line - height : 25 . 25px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 140px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 58 . 8px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart { height : 33 . 5px ; line - height : 33 . 5px ; padding : 5px 8px 10px ; width : 200px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart # residentSizeChart { height : 38 . 5px } . dashboard - bar - chart - container . dashboard - sub - bar { width : 214px } . modal - chart - detail { bottom : 12 . 1 % ! important ; left : 50 % ; margin - left : - 354px ; width : 708px } . modal - chart - detail . modal - body { height : 95 % ; max - height : none ; padding : 5px } . modal - chart - detail . modal - dashboard - legend { display : none ; font - size : 12px ; min - height : 190px ; width : 10px } . absolut , . percentage { font - size : 14px } . modal - chart - detail . modal - inner - detail { width : 688px } . modal - body . dashboard - large - chart { width : 463px } . modal - body . dashboard - large - chart . dashboard - sub - bar { width : 451px } . modal - body . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { width : 453px } . modal - body . dashboard - medium - chart - outer { width : 331px ; float : left } . modal - body . dashboard - medium - chart { width : 331px } . modal - body . dashboard - medium - chart . dashboard - sub - bar { width : 329px } . modal - body . dashboard - medium - chart . dashboard - interior - chart { width : 331px } . modal - body . dashboard - medium - chart . dashboard - medium - chart - menu { left : 314px } . modal - body . dashboard - small - chart { width : 221px } . modal - body . dashboard - small - chart . dashboard - sub - bar { width : 209px } . modal - body . dashboard - small - chart . dashboard - small - chart - inner , . modal - body . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { width : 211px } . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 86 . 5px } . modal - body . dashboard - tendency - container . dashboard - sub - bar { width : 211px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart { width : 216px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 140px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 58 . 8px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart - chart { width : 200px } . modal - body . dashboard - bar - chart - container . dashboard - sub - bar { width : 214px } . absolut { font - weight : 300 } . dashboard - sub - bar { font - size : 10px ; font - weight : 400 } . dashboard - subtitle - bar { font - size : 14px ; font - weight : 300 } . dashboard - figure { font - size : 16px ; font - weight : 400 } . dashboard - figurePer { font - size : 14px ; font - weight : 300 } . dashboard - legend , . dygraph - axis - label . dygraph - axis - label - x , . dygraph - axis - label . dygraph - axis - label - y { font - size : 10px ; font - weight : 400 } . dashboard - legend { display : none ; height : 190px ; margin - top : - 3px ; width : 0 } . dashboard - half - height - legend { display : none ; font - size : 10px ; height : 100px ; width : 0 } . application - detail - view section . info { width : 508px } } @ media ( min - width : 970px ) and ( max - width : 1209px ) { div . resizecontainer { width : 948px } . dashboard - large - chart { width : 626px } . dashboard - large - chart . dashboard - sub - bar { width : 614px } . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { height : 220px ; width : 496px } . dashboard - sub - bar - menu { font - size : 13px } . dashboard - medium - chart - outer { width : 466px ; float : left } . dashboard - medium - chart { width : 456px } . dashboard - medium - chart . dashboard - sub - bar { margin - left : - 5px ; width : 455px } . dashboard - medium - chart . dashboard - interior - chart { height : 220px ; width : 336px } . dashboard - medium - chart . dashboard - medium - chart - menu { font - size : 13px ; left : 438px ; top : 0 } . dashboard - medium - chart # clusterGraphs svg { height : 220px ; width : 456px } . dashboard - medium - chart # clusterGraphs svg text { font - size : 11px } . dashboard - small - chart { width : 306px } . dashboard - small - chart . dashboard - sub - bar { width : 294px } . dashboard - small - chart . dashboard - small - chart - inner { width : 296px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { height : 229px ; width : 296px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart . nv - axis text { fill : # 666 ; font - size : 11px ; font - weight : 400 } . dashboard - tendency - container . dashboard - tendency - chart { height : 96 . 5px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 128px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar { height : 31 . 17px ; line - height : 31 . 17px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure { height : 52 . 33px ; line - height : 25 . 17px ; padding - top : 5px } . dashboard - tendency - container . dashboard - sub - bar { width : 294px } . dashboard - bar - chart - container { height : 98px } . dashboard - bar - chart - container . dashboard - bar - chart { height : 96px ; width : 296px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title { height : 31 . 33px ; line - height : 31 . 33px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 196px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 82 . 8px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart { height : 45 . 67px ; line - height : 45 . 67px ; padding : 5px 8px 10px ; width : 280px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart # residentSizeChart { height : 50 . 67px } . dashboard - bar - chart - container . dashboard - sub - bar { width : 294px } . modal - chart - detail { bottom : 12 . 1 % ! important ; left : 50 % ; margin - left : - 474px ; width : 948px } . modal - chart - detail . modal - body { height : 95 % ; max - height : none ; padding : 5px } . modal - chart - detail . modal - dashboard - legend { font - size : 13px ; min - height : 225px ; width : 130px } . absolut , . percentage { font - size : 15px } . modal - chart - detail . modal - inner - detail { width : 808px } . modal - body . dashboard - large - chart { width : 623px } . modal - body . dashboard - large - chart . dashboard - sub - bar { width : 611px } . modal - body . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { width : 493px } . modal - body . dashboard - medium - chart - outer { width : 451px ; float : left } . modal - body . dashboard - medium - chart { width : 451px } . modal - body . dashboard - medium - chart . dashboard - sub - bar { width : 449px } . modal - body . dashboard - medium - chart . dashboard - interior - chart { width : 331px } . modal - body . dashboard - medium - chart . dashboard - medium - chart - menu { left : 433px } . modal - body . dashboard - small - chart { width : 301px } . modal - body . dashboard - small - chart . dashboard - sub - bar { width : 289px } . modal - body . dashboard - small - chart . dashboard - small - chart - inner , . modal - body . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { width : 291px } . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 126 . 5px } . modal - body . dashboard - tendency - container . dashboard - sub - bar { width : 291px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart { width : 296px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 196px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 82 . 8px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart - chart { width : 280px } . modal - body . dashboard - bar - chart - container . dashboard - sub - bar { width : 294px } . absolut { font - weight : 300 } . dashboard - sub - bar { font - size : 11px ; font - weight : 400 } . dashboard - subtitle - bar { font - size : 15px ; font - weight : 300 } . dashboard - figure { font - size : 18px ; font - weight : 400 } . dashboard - figurePer { font - size : 16px ; font - weight : 300 } . dashboard - legend , . dygraph - axis - label . dygraph - axis - label - x , . dygraph - axis - label . dygraph - axis - label - y { font - size : 11px ; font - weight : 400 } . dashboard - legend { height : 225px ; margin - top : - 3px ; width : 120px } . dashboard - half - height - legend { font - size : 11px ; height : 117 . 5px ; width : 60px } . application - detail - view section . info { width : 748px } } @ media ( min - width : 1210px ) and ( max - width : 1449px ) { div . resizecontainer { width : 1188px } . dashboard - large - chart { width : 786px } . dashboard - large - chart . dashboard - sub - bar { width : 774px } . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { height : 255px ; width : 646px } . dashboard - sub - bar - menu { font - size : 15px } . dashboard - medium - chart - outer { width : 586px ; float : left } . dashboard - medium - chart { width : 576px } . dashboard - medium - chart . dashboard - sub - bar { margin - left : - 5px ; width : 575px } . dashboard - medium - chart . dashboard - interior - chart { height : 255px ; width : 446px } . dashboard - medium - chart . dashboard - medium - chart - menu { font - size : 16px ; left : 555px ; top : 0 } . dashboard - medium - chart # clusterGraphs svg { height : 255px ; width : 576px } . dashboard - medium - chart # clusterGraphs svg text { font - size : 12px } . dashboard - small - chart { width : 386px } . dashboard - small - chart . dashboard - sub - bar { width : 374px } . dashboard - small - chart . dashboard - small - chart - inner { width : 376px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { height : 264px ; width : 376px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart . nv - axis text { fill : # 666 ; font - size : 13px ; font - weight : 400 } . dashboard - tendency - container . dashboard - tendency - chart { height : 114px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 168px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar { height : 37px ; line - height : 37px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure { height : 64px ; line - height : 31px ; padding - top : 5px } . dashboard - tendency - container . dashboard - sub - bar { width : 374px } . dashboard - bar - chart - container { height : 115 . 5px } . dashboard - bar - chart - container . dashboard - bar - chart { height : 113 . 5px ; width : 376px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title { height : 37 . 17px ; line - height : 37 . 17px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 252px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 106 . 8px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart { height : 57 . 33px ; line - height : 57 . 33px ; padding : 5px 8px 10px ; width : 360px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart # residentSizeChart { height : 62 . 33px } . dashboard - bar - chart - container . dashboard - sub - bar { width : 374px } . modal - chart - detail { bottom : 12 . 1 % ! important ; left : 50 % ; margin - left : - 594px ; width : 1188px } . modal - chart - detail . modal - body { height : 95 % ; max - height : none ; padding : 5px } . modal - chart - detail . modal - dashboard - legend { font - size : 14px ; min - height : 260px ; width : 140px } . absolut , . percentage { font - size : 18px } . modal - chart - detail . modal - inner - detail { width : 1038px } . modal - body . dashboard - large - chart { width : 783px } . modal - body . dashboard - large - chart . dashboard - sub - bar { width : 771px } . modal - body . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { width : 643px } . modal - body . dashboard - medium - chart - outer { width : 571px ; float : left } . modal - body . dashboard - medium - chart { width : 571px } . modal - body . dashboard - medium - chart . dashboard - sub - bar { width : 569px } . modal - body . dashboard - medium - chart . dashboard - interior - chart { width : 441px } . modal - body . dashboard - medium - chart . dashboard - medium - chart - menu { left : 550px } . modal - body . dashboard - small - chart { width : 381px } . modal - body . dashboard - small - chart . dashboard - sub - bar { width : 369px } . modal - body . dashboard - small - chart . dashboard - small - chart - inner , . modal - body . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { width : 371px } . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 166 . 5px } . modal - body . dashboard - tendency - container . dashboard - sub - bar { width : 371px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart { width : 376px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 252px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 106 . 8px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart - chart { width : 360px } . modal - body . dashboard - bar - chart - container . dashboard - sub - bar { width : 374px } . absolut { font - weight : 300 } . dashboard - sub - bar { font - size : 13px ; font - weight : 400 } . dashboard - subtitle - bar { font - size : 18px ; font - weight : 300 } . dashboard - figure { font - size : 22px ; font - weight : 400 } . dashboard - figurePer { font - size : 20px ; font - weight : 300 } . dygraph - axis - label . dygraph - axis - label - x , . dygraph - axis - label . dygraph - axis - label - y { font - size : 13px ; font - weight : 400 } . dashboard - legend { font - size : 12px ; font - weight : 400 ; height : 260px ; margin - top : - 3px ; width : 130px } . dashboard - half - height - legend { font - size : 12px ; height : 135px ; width : 65px } . application - detail - view section . info { width : 988px } } @ media ( min - width : 1450px ) and ( max - width : 1689px ) { div . resizecontainer { width : 1428px } . dashboard - large - chart { width : 946px } . dashboard - large - chart . dashboard - sub - bar { width : 934px } . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { height : 285px ; width : 796px } . dashboard - sub - bar - menu { font - size : 15px } . dashboard - medium - chart - outer { width : 706px ; float : left } . dashboard - medium - chart { width : 696px } . dashboard - medium - chart . dashboard - sub - bar { margin - left : - 5px ; width : 695px } . dashboard - medium - chart . dashboard - interior - chart { height : 285px ; width : 556px } . dashboard - medium - chart . dashboard - medium - chart - menu { font - size : 18px ; left : 673px ; top : 0 } . dashboard - medium - chart # clusterGraphs svg { height : 285px ; width : 696px } . dashboard - medium - chart # clusterGraphs svg text { font - size : 13px } . dashboard - small - chart { width : 466px } . dashboard - small - chart . dashboard - sub - bar { width : 454px } . dashboard - small - chart . dashboard - small - chart - inner { width : 456px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { height : 294px ; width : 456px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart . nv - axis text { fill : # 666 ; font - size : 13px ; font - weight : 400 } . dashboard - tendency - container . dashboard - tendency - chart { height : 129px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 208px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar { height : 42px ; line - height : 42px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure { height : 74px ; line - height : 36px ; padding - top : 5px } . dashboard - tendency - container . dashboard - sub - bar { width : 454px } . dashboard - bar - chart - container { height : 130 . 5px } . dashboard - bar - chart - container . dashboard - bar - chart { height : 128 . 5px ; width : 456px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title { height : 42 . 17px ; line - height : 42 . 17px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 308px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 130 . 8px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart { height : 67 . 33px ; line - height : 67 . 33px ; padding : 5px 8px 10px ; width : 440px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart # residentSizeChart { height : 72 . 33px } . dashboard - bar - chart - container . dashboard - sub - bar { width : 454px } . modal - chart - detail { bottom : 12 . 1 % ! important ; left : 50 % ; margin - left : - 714px ; width : 1428px } . modal - chart - detail . modal - body { height : 95 % ; max - height : none ; padding : 5px } . modal - chart - detail . modal - dashboard - legend { font - size : 15px ; min - height : 290px ; width : 150px } . absolut , . percentage { font - size : 20px } . modal - chart - detail . modal - inner - detail { width : 1268px } . modal - body . dashboard - large - chart { width : 943px } . modal - body . dashboard - large - chart . dashboard - sub - bar { width : 931px } . modal - body . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { width : 793px } . modal - body . dashboard - medium - chart - outer { width : 691px ; float : left } . modal - body . dashboard - medium - chart { width : 691px } . modal - body . dashboard - medium - chart . dashboard - sub - bar { width : 689px } . modal - body . dashboard - medium - chart . dashboard - interior - chart { width : 551px } . modal - body . dashboard - medium - chart . dashboard - medium - chart - menu { left : 668px } . modal - body . dashboard - small - chart { width : 461px } . modal - body . dashboard - small - chart . dashboard - sub - bar { width : 449px } . modal - body . dashboard - small - chart . dashboard - small - chart - inner , . modal - body . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { width : 451px } . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 206 . 5px } . modal - body . dashboard - tendency - container . dashboard - sub - bar { width : 451px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart { width : 456px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 308px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 130 . 8px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart - chart { width : 440px } . modal - body . dashboard - bar - chart - container . dashboard - sub - bar { width : 454px } . absolut { font - weight : 300 } . dashboard - sub - bar { font - size : 13px ; font - weight : 400 } . dashboard - subtitle - bar { font - size : 20px ; font - weight : 300 } . dashboard - figure { font - size : 26px ; font - weight : 400 } . dashboard - figurePer { font - size : 24px ; font - weight : 300 } . dashboard - legend , . dygraph - axis - label . dygraph - axis - label - x , . dygraph - axis - label . dygraph - axis - label - y { font - size : 13px ; font - weight : 400 } . dashboard - legend { height : 290px ; margin - top : - 3px ; width : 140px } . dashboard - half - height - legend { font - size : 13px ; height : 150px ; width : 70px } . application - detail - view section . info { width : 1228px } } @ media ( min - width : 1690px ) and ( max - width : 1929px ) { div . resizecontainer { width : 1668px } . dashboard - large - chart { width : 1106px } . dashboard - large - chart . dashboard - sub - bar { width : 1094px } . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { height : 325px ; width : 936px } . dashboard - sub - bar - menu { font - size : 16px } . dashboard - medium - chart - outer { width : 826px ; float : left } . dashboard - medium - chart { width : 816px } . dashboard - medium - chart . dashboard - sub - bar { margin - left : - 5px ; width : 815px } . dashboard - medium - chart . dashboard - interior - chart { height : 325px ; width : 656px } . dashboard - medium - chart . dashboard - medium - chart - menu { font - size : 22px ; left : 789px ; top : 0 } . dashboard - medium - chart # clusterGraphs svg { height : 325px ; width : 816px } . dashboard - medium - chart # clusterGraphs svg text { font - size : 14px } . dashboard - small - chart { width : 546px } . dashboard - small - chart . dashboard - sub - bar { width : 534px } . dashboard - small - chart . dashboard - small - chart - inner { width : 536px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { height : 334px ; width : 536px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart . nv - axis text { fill : # 666 ; font - size : 14px ; font - weight : 400 } . dashboard - tendency - container . dashboard - tendency - chart { height : 149px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 248px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar { height : 48 . 67px ; line - height : 48 . 67px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure { height : 87 . 33px ; line - height : 42 . 67px ; padding - top : 5px } . dashboard - tendency - container . dashboard - sub - bar { width : 534px } . dashboard - bar - chart - container { height : 150 . 5px } . dashboard - bar - chart - container . dashboard - bar - chart { height : 148 . 5px ; width : 536px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title { height : 48 . 83px ; line - height : 48 . 83px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 364px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 154 . 8px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart { height : 80 . 67px ; line - height : 80 . 67px ; padding : 5px 8px 10px ; width : 520px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart # residentSizeChart { height : 85 . 67px } . dashboard - bar - chart - container . dashboard - sub - bar { width : 534px } . modal - chart - detail { bottom : 12 . 1 % ! important ; left : 50 % ; margin - left : - 834px ; width : 1668px } . modal - chart - detail . modal - body { height : 95 % ; max - height : none ; padding : 5px } . modal - chart - detail . modal - dashboard - legend { font - size : 16px ; min - height : 330px ; width : 170px } . absolut , . percentage { font - size : 24px } . modal - chart - detail . modal - inner - detail { width : 1488px } . modal - body . dashboard - large - chart { width : 1103px } . modal - body . dashboard - large - chart . dashboard - sub - bar { width : 1091px } . modal - body . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { width : 933px } . modal - body . dashboard - medium - chart - outer { width : 811px ; float : left } . modal - body . dashboard - medium - chart { width : 811px } . modal - body . dashboard - medium - chart . dashboard - sub - bar { width : 809px } . modal - body . dashboard - medium - chart . dashboard - interior - chart { width : 651px } . modal - body . dashboard - medium - chart . dashboard - medium - chart - menu { left : 784px } . modal - body . dashboard - small - chart { width : 541px } . modal - body . dashboard - small - chart . dashboard - sub - bar { width : 529px } . modal - body . dashboard - small - chart . dashboard - small - chart - inner , . modal - body . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { width : 531px } . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 246 . 5px } . modal - body . dashboard - tendency - container . dashboard - sub - bar { width : 531px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart { width : 536px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 364px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 154 . 8px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart - chart { width : 520px } . modal - body . dashboard - bar - chart - container . dashboard - sub - bar { width : 534px } . absolut { font - weight : 300 } . dashboard - sub - bar { font - size : 14px ; font - weight : 400 } . dashboard - subtitle - bar { font - size : 24px ; font - weight : 300 } . dashboard - figure { font - size : 30px ; font - weight : 400 } . dashboard - figurePer { font - size : 28px ; font - weight : 300 } . dashboard - legend , . dygraph - axis - label . dygraph - axis - label - x , . dygraph - axis - label . dygraph - axis - label - y { font - size : 14px ; font - weight : 400 } . dashboard - legend { height : 330px ; margin - top : - 3px ; width : 160px } . dashboard - half - height - legend { font - size : 14px ; height : 170px ; width : 80px } . application - detail - view section . info { width : 1468px } } @ media ( min - width : 1930px ) and ( max - width : 2169px ) { div . resizecontainer { width : 1908px } . dashboard - large - chart { width : 1266px } . dashboard - large - chart . dashboard - sub - bar { width : 1254px } . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { height : 385px ; width : 1086px } . dashboard - sub - bar - menu { font - size : 17px } . dashboard - medium - chart - outer { width : 946px ; float : left } . dashboard - medium - chart { width : 936px } . dashboard - medium - chart . dashboard - sub - bar { margin - left : - 5px ; width : 935px } . dashboard - medium - chart . dashboard - interior - chart { height : 385px ; width : 766px } . dashboard - medium - chart . dashboard - medium - chart - menu { font - size : 26px ; left : 905px ; top : 0 } . dashboard - medium - chart # clusterGraphs svg { height : 385px ; width : 936px } . dashboard - medium - chart # clusterGraphs svg text { font - size : 15px } . dashboard - small - chart { width : 626px } . dashboard - small - chart . dashboard - sub - bar { width : 614px } . dashboard - small - chart . dashboard - small - chart - inner { width : 616px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { height : 394px ; width : 616px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart . nv - axis text { fill : # 666 ; font - size : 14px ; font - weight : 400 } . dashboard - tendency - container . dashboard - tendency - chart { height : 179px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 288px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar { height : 58 . 67px ; line - height : 58 . 67px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure { height : 107 . 33px ; line - height : 52 . 67px ; padding - top : 5px } . dashboard - tendency - container . dashboard - sub - bar { width : 614px } . dashboard - bar - chart - container { height : 180 . 5px } . dashboard - bar - chart - container . dashboard - bar - chart { height : 178 . 5px ; width : 616px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title { height : 58 . 83px ; line - height : 58 . 83px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 420px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 178 . 8px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart { height : 100 . 67px ; line - height : 100 . 67px ; padding : 5px 8px 10px ; width : 600px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart # residentSizeChart { height : 105 . 67px } . dashboard - bar - chart - container . dashboard - sub - bar { width : 614px } . modal - chart - detail { bottom : 12 . 1 % ! important ; left : 50 % ; margin - left : - 954px ; width : 1908px } . modal - chart - detail . modal - body { height : 95 % ; max - height : none ; padding : 5px } . modal - chart - detail . modal - dashboard - legend { font - size : 17px ; min - height : 390px ; width : 180px } . absolut , . percentage { font - size : 28px } . modal - chart - detail . modal - inner - detail { width : 1718px } . modal - body . dashboard - large - chart { width : 1263px } . modal - body . dashboard - large - chart . dashboard - sub - bar { width : 1251px } . modal - body . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { width : 1083px } . modal - body . dashboard - medium - chart - outer { width : 931px ; float : left } . modal - body . dashboard - medium - chart { width : 931px } . modal - body . dashboard - medium - chart . dashboard - sub - bar { width : 929px } . modal - body . dashboard - medium - chart . dashboard - interior - chart { width : 761px } . modal - body . dashboard - medium - chart . dashboard - medium - chart - menu { left : 900px } . modal - body . dashboard - small - chart { width : 621px } . modal - body . dashboard - small - chart . dashboard - sub - bar { width : 609px } . modal - body . dashboard - small - chart . dashboard - small - chart - inner , . modal - body . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { width : 611px } . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 286 . 5px } . modal - body . dashboard - tendency - container . dashboard - sub - bar { width : 611px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart { width : 616px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 420px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 178 . 8px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart - chart { width : 600px } . modal - body . dashboard - bar - chart - container . dashboard - sub - bar { width : 614px } . absolut { font - weight : 300 } . dashboard - sub - bar { font - size : 15px ; font - weight : 400 } . dashboard - subtitle - bar { font - size : 28px ; font - weight : 300 } . dashboard - figure { font - size : 34px ; font - weight : 400 } . dashboard - figurePer { font - size : 32px ; font - weight : 300 } . dygraph - axis - label . dygraph - axis - label - x , . dygraph - axis - label . dygraph - axis - label - y { font - size : 14px ; font - weight : 400 } . dashboard - legend { font - size : 15px ; font - weight : 400 ; height : 390px ; margin - top : - 3px ; width : 170px } . dashboard - half - height - legend { font - size : 15px ; height : 200px ; width : 85px } . application - detail - view section . info { width : 1708px } } @ media ( min - width : 2170px ) and ( max - width : 2409px ) { div . resizecontainer { width : 2148px } . dashboard - large - chart { width : 1426px } . dashboard - large - chart . dashboard - sub - bar { width : 1414px } . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { height : 285px ; width : 1276px } . dashboard - sub - bar - menu { font - size : 17px } . dashboard - medium - chart - outer { width : 1066px ; float : left } . dashboard - medium - chart { width : 1056px } . dashboard - medium - chart . dashboard - sub - bar { margin - left : - 5px ; width : 1055px } . dashboard - medium - chart . dashboard - interior - chart { height : 285px ; width : 916px } . dashboard - medium - chart . dashboard - medium - chart - menu { font - size : 20px ; left : 1031px ; top : 0 } . dashboard - medium - chart # clusterGraphs svg { height : 285px ; width : 1056px } . dashboard - medium - chart # clusterGraphs svg text { font - size : 15px } . dashboard - small - chart { width : 706px } . dashboard - small - chart . dashboard - sub - bar { width : 694px } . dashboard - small - chart . dashboard - small - chart - inner { width : 696px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { height : 294px ; width : 696px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart . nv - axis text { fill : # 666 ; font - size : 15px ; font - weight : 400 } . dashboard - tendency - container . dashboard - tendency - chart { height : 129px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 328px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar { height : 42px ; line - height : 42px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure { height : 74px ; line - height : 36px ; padding - top : 5px } . dashboard - tendency - container . dashboard - sub - bar { width : 694px } . dashboard - bar - chart - container { height : 130 . 5px } . dashboard - bar - chart - container . dashboard - bar - chart { height : 128 . 5px ; width : 696px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title { height : 42 . 17px ; line - height : 42 . 17px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 476px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 202 . 8px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart { height : 67 . 33px ; line - height : 67 . 33px ; padding : 5px 8px 10px ; width : 680px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart # residentSizeChart { height : 72 . 33px } . dashboard - bar - chart - container . dashboard - sub - bar { width : 694px } . modal - chart - detail { bottom : 12 . 1 % ! important ; left : 50 % ; margin - left : - 1074px ; width : 2148px } . modal - chart - detail . modal - body { height : 95 % ; max - height : none ; padding : 5px } . modal - chart - detail . modal - dashboard - legend { font - size : 17px ; min - height : 290px ; width : 150px } . absolut , . percentage { font - size : 22px } . modal - chart - detail . modal - inner - detail { width : 1988px } . modal - body . dashboard - large - chart { width : 1423px } . modal - body . dashboard - large - chart . dashboard - sub - bar { width : 1411px } . modal - body . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { width : 1273px } . modal - body . dashboard - medium - chart - outer { width : 1051px ; float : left } . modal - body . dashboard - medium - chart { width : 1051px } . modal - body . dashboard - medium - chart . dashboard - sub - bar { width : 1049px } . modal - body . dashboard - medium - chart . dashboard - interior - chart { width : 911px } . modal - body . dashboard - medium - chart . dashboard - medium - chart - menu { left : 1026px } . modal - body . dashboard - small - chart { width : 701px } . modal - body . dashboard - small - chart . dashboard - sub - bar { width : 689px } . modal - body . dashboard - small - chart . dashboard - small - chart - inner , . modal - body . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { width : 691px } . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 326 . 5px } . modal - body . dashboard - tendency - container . dashboard - sub - bar { width : 691px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart { width : 696px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 476px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 202 . 8px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart - chart { width : 680px } . modal - body . dashboard - bar - chart - container . dashboard - sub - bar { width : 694px } . absolut { font - weight : 300 } . dashboard - sub - bar { font - size : 15px ; font - weight : 400 } . dashboard - subtitle - bar { font - size : 22px ; font - weight : 300 } . dashboard - figure { font - size : 36px ; font - weight : 400 } . dashboard - figurePer { font - size : 34px ; font - weight : 300 } . dashboard - legend , . dygraph - axis - label . dygraph - axis - label - x , . dygraph - axis - label . dygraph - axis - label - y { font - size : 15px ; font - weight : 400 } . dashboard - legend { height : 290px ; margin - top : - 3px ; width : 140px } . dashboard - half - height - legend { font - size : 15px ; height : 150px ; width : 70px } . application - detail - view section . info { width : 1948px } } @ media ( min - width : 2410px ) and ( max - width : 2649px ) { div . resizecontainer { width : 2388px } . dashboard - large - chart { width : 1586px } . dashboard - large - chart . dashboard - sub - bar { width : 1574px } . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { height : 285px ; width : 1436px } . dashboard - sub - bar - menu { font - size : 17px } . dashboard - medium - chart - outer { width : 1186px ; float : left } . dashboard - medium - chart { width : 1176px } . dashboard - medium - chart . dashboard - sub - bar { margin - left : - 5px ; width : 1175px } . dashboard - medium - chart . dashboard - interior - chart { height : 285px ; width : 1036px } . dashboard - medium - chart . dashboard - medium - chart - menu { font - size : 20px ; left : 1151px ; top : 0 } . dashboard - medium - chart # clusterGraphs svg { height : 285px ; width : 1176px } . dashboard - medium - chart # clusterGraphs svg text { font - size : 15px } . dashboard - small - chart { width : 786px } . dashboard - small - chart . dashboard - sub - bar { width : 774px } . dashboard - small - chart . dashboard - small - chart - inner { width : 776px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { height : 294px ; width : 776px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart . nv - axis text { fill : # 666 ; font - size : 15px ; font - weight : 400 } . dashboard - tendency - container . dashboard - tendency - chart { height : 129px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 368px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar { height : 42px ; line - height : 42px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure { height : 74px ; line - height : 36px ; padding - top : 5px } . dashboard - tendency - container . dashboard - sub - bar { width : 774px } . dashboard - bar - chart - container { height : 130 . 5px } . dashboard - bar - chart - container . dashboard - bar - chart { height : 128 . 5px ; width : 776px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title { height : 42 . 17px ; line - height : 42 . 17px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 532px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 226 . 8px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart { height : 67 . 33px ; line - height : 67 . 33px ; padding : 5px 8px 10px ; width : 760px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart # residentSizeChart { height : 72 . 33px } . dashboard - bar - chart - container . dashboard - sub - bar { width : 774px } . modal - chart - detail { bottom : 12 . 1 % ! important ; left : 50 % ; margin - left : - 1194px ; width : 2388px } . modal - chart - detail . modal - body { height : 95 % ; max - height : none ; padding : 5px } . modal - chart - detail . modal - dashboard - legend { font - size : 17px ; min - height : 290px ; width : 150px } . absolut , . percentage { font - size : 22px } . modal - chart - detail . modal - inner - detail { width : 2228px } . modal - body . dashboard - large - chart { width : 1583px } . modal - body . dashboard - large - chart . dashboard - sub - bar { width : 1571px } . modal - body . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { width : 1433px } . modal - body . dashboard - medium - chart - outer { width : 1171px ; float : left } . modal - body . dashboard - medium - chart { width : 1171px } . modal - body . dashboard - medium - chart . dashboard - sub - bar { width : 1169px } . modal - body . dashboard - medium - chart . dashboard - interior - chart { width : 1031px } . modal - body . dashboard - medium - chart . dashboard - medium - chart - menu { left : 1146px } . modal - body . dashboard - small - chart { width : 781px } . modal - body . dashboard - small - chart . dashboard - sub - bar { width : 769px } . modal - body . dashboard - small - chart . dashboard - small - chart - inner , . modal - body . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { width : 771px } . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 366 . 5px } . modal - body . dashboard - tendency - container . dashboard - sub - bar { width : 771px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart { width : 776px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 532px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 226 . 8px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart - chart { width : 760px } . modal - body . dashboard - bar - chart - container . dashboard - sub - bar { width : 774px } . absolut { font - weight : 300 } . dashboard - sub - bar { font - size : 15px ; font - weight : 400 } . dashboard - subtitle - bar { font - size : 22px ; font - weight : 300 } . dashboard - figure { font - size : 36px ; font - weight : 400 } . dashboard - figurePer { font - size : 34px ; font - weight : 300 } . dashboard - legend , . dygraph - axis - label . dygraph - axis - label - x , . dygraph - axis - label . dygraph - axis - label - y { font - size : 15px ; font - weight : 400 } . dashboard - legend { height : 290px ; margin - top : - 3px ; width : 140px } . dashboard - half - height - legend { font - size : 15px ; height : 150px ; width : 70px } . application - detail - view section . info { width : 2188px } } @ media ( min - width : 2650px ) and ( max - width : 2889px ) { div . resizecontainer { width : 2628px } . dashboard - large - chart { width : 1746px } . dashboard - large - chart . dashboard - sub - bar { width : 1734px } . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { height : 285px ; width : 1596px } . dashboard - sub - bar - menu { font - size : 17px } . dashboard - medium - chart - outer { width : 1306px ; float : left } . dashboard - medium - chart { width : 1296px } . dashboard - medium - chart . dashboard - sub - bar { margin - left : - 5px ; width : 1295px } . dashboard - medium - chart . dashboard - interior - chart { height : 285px ; width : 1156px } . dashboard - medium - chart . dashboard - medium - chart - menu { font - size : 20px ; left : 1271px ; top : 0 } . dashboard - medium - chart # clusterGraphs svg { height : 285px ; width : 1296px } . dashboard - medium - chart # clusterGraphs svg text { font - size : 15px } . dashboard - small - chart { width : 866px } . dashboard - small - chart . dashboard - sub - bar { width : 854px } . dashboard - small - chart . dashboard - small - chart - inner { width : 856px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { height : 294px ; width : 856px } . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart . nv - axis text { fill : # 666 ; font - size : 15px ; font - weight : 400 } . dashboard - tendency - container . dashboard - tendency - chart { height : 129px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 408px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar { height : 42px ; line - height : 42px } . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure { height : 74px ; line - height : 36px ; padding - top : 5px } . dashboard - tendency - container . dashboard - sub - bar { width : 854px } . dashboard - bar - chart - container { height : 130 . 5px } . dashboard - bar - chart - container . dashboard - bar - chart { height : 128 . 5px ; width : 856px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title { height : 42 . 17px ; line - height : 42 . 17px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 588px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 250 . 8px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart { height : 67 . 33px ; line - height : 67 . 33px ; padding : 5px 8px 10px ; width : 840px } . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - chart # residentSizeChart { height : 72 . 33px } . dashboard - bar - chart - container . dashboard - sub - bar { width : 854px } . modal - chart - detail { bottom : 12 . 1 % ! important ; left : 50 % ; margin - left : - 1314px ; width : 2628px } . modal - chart - detail . modal - body { height : 95 % ; max - height : none ; padding : 5px } . modal - chart - detail . modal - dashboard - legend { font - size : 17px ; min - height : 290px ; width : 150px } . absolut , . percentage { font - size : 22px } . modal - chart - detail . modal - inner - detail { width : 2468px } . modal - body . dashboard - large - chart { width : 1743px } . modal - body . dashboard - large - chart . dashboard - sub - bar { width : 1731px } . modal - body . dashboard - large - chart . dashboard - large - chart - inner . dashboard - interior - chart { width : 1593px } . modal - body . dashboard - medium - chart - outer { width : 1291px ; float : left } . modal - body . dashboard - medium - chart { width : 1291px } . modal - body . dashboard - medium - chart . dashboard - sub - bar { width : 1289px } . modal - body . dashboard - medium - chart . dashboard - interior - chart { width : 1151px } . modal - body . dashboard - medium - chart . dashboard - medium - chart - menu { left : 1266px } . modal - body . dashboard - small - chart { width : 861px } . modal - body . dashboard - small - chart . dashboard - sub - bar { width : 849px } . modal - body . dashboard - small - chart . dashboard - small - chart - inner , . modal - body . dashboard - small - chart . dashboard - small - chart - inner . dashboard - interior - chart { width : 851px } . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - figure , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - subtitle - bar , . modal - body . dashboard - tendency - container . dashboard - tendency - chart . dashboard - tendency { width : 406 . 5px } . modal - body . dashboard - tendency - container . dashboard - sub - bar { width : 851px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart { width : 856px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . percentage { width : 588px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart . dashboard - bar - chart - title . absolut { width : 250 . 8px } . modal - body . dashboard - bar - chart - container . dashboard - bar - chart - chart { width : 840px } . modal - body . dashboard - bar - chart - container . dashboard - sub - bar { width : 854px } . absolut { font - weight : 300 } . dashboard - sub - bar { font - size : 15px ; font - weight : 400 } . dashboard - subtitle - bar { font - size : 22px ; font - weight : 300 } . dashboard - figure { font - size : 36px ; font - weight : 400 } . dashboard - figurePer { font - size : 34px ; font - weight : 300 } . dashboard - legend , . dygraph - axis - label . dygraph - axis - label - x , . dygraph - axis - label . dygraph - axis - label - y { font - size : 15px ; font - weight : 400 } . dashboard - legend { height : 290px ; margin - top : - 3px ; width : 140px } . dashboard - half - height - legend { font - size : 15px ; height : 150px ; width : 70px } . application - detail - view section . info { width : 2428px } } div . centralRow { margin - top : 40px ; margin - bottom : 40px } div . centralContent { background - color : transparent ; height : 100 % ; margin - left : - 5px ; margin - right : - 5px ; min - height : 80px ; padding : 5px ; width : 100 % } . contentDiv { list - style : none ; padding : 13px 0 0 } . contentDiv li { background - color : rgba ( 0 , 0 , 0 , . 05 ) } . contentDiv a . add { display : block ; font - weight : 400 ; padding : 40px 0 ; text - align : left } . contentDiv . icon { padding - left : 5px ; padding - right : 5px ; padding - top : 10px } . contentDiv : after { clear : both } . contentDiv : after , . contentDiv : before { content : ' ' ; display : table ; line - height : 0 } <nl> \ No newline at end of file <nl> Binary files a / js / apps / system / _admin / aardvark / APP / clusterFrontend / build / style - minified . css . gz and b / js / apps / system / _admin / aardvark / APP / clusterFrontend / build / style - minified . css . gz differ <nl> mmm a / js / apps / system / _admin / aardvark / APP / clusterFrontend / build / style . css <nl> ppp b / js / apps / system / _admin / aardvark / APP / clusterFrontend / build / style . css <nl> ul . navlist { <nl> background - color : transparent ; } <nl> ul . navlist > li . active : hover a { <nl> color : # 000 ; } <nl> + ul . navlist li . navbar - spacer , ul . navlist li . divider { <nl> + border : none ; } <nl> + ul . navlist li . divider { <nl> + background - color : rgba ( 0 , 0 , 0 , 0 . 2 ) ; } <nl> + ul . navlist li { <nl> + border - top : 1px solid transparent ; <nl> + border - left : 1px solid transparent ; <nl> + border - right : 1px solid transparent ; } <nl> + ul . navlist li . dropdown : hover { <nl> + border - top : 1px solid rgba ( 0 , 0 , 0 , 0 . 2 ) ; <nl> + border - left : 1px solid rgba ( 0 , 0 , 0 , 0 . 2 ) ; <nl> + border - right : 1px solid rgba ( 0 , 0 , 0 , 0 . 2 ) ; <nl> + border - bottom - left - radius : 0 ; <nl> + border - bottom - right - radius : 0 ; } <nl> ul . navlist li . dropdown - item : hover , ul . navlist > li : hover { <nl> background - color : # fff ; <nl> border - radius : 3px ; } <nl> a . tab { <nl> <nl> ul . link - dropdown - menu { <nl> background - color : # fff ; <nl> - border : none ; } <nl> + z - index : - 10 ; <nl> + margin - top : 7px ; <nl> + margin - right : - 1px ; <nl> + border : 1px solid rgba ( 0 , 0 , 0 , 0 . 2 ) ; <nl> + border - top - right - radius : 0 ; } <nl> <nl> ul . script - dropdown - menu li . dropdown - item { <nl> margin - left : 0 ; } <nl> Binary files a / js / apps / system / _admin / aardvark / APP / clusterFrontend / build / style . css . gz and b / js / apps / system / _admin / aardvark / APP / clusterFrontend / build / style . css . gz differ <nl> mmm a / js / apps / system / _admin / aardvark / APP / frontend / scss / _navbar . scss <nl> ppp b / js / apps / system / _admin / aardvark / APP / frontend / scss / _navbar . scss <nl> ul . navlist { <nl> } <nl> <nl> } <nl> + li { <nl> + & . navbar - spacer , <nl> + & . divider { <nl> + border : none ; <nl> + } <nl> + <nl> + & . divider { <nl> + background - color : rgba ( 0 , 0 , 0 , 0 . 2 ) ; <nl> + } <nl> + } <nl> + <nl> + <nl> + li { <nl> + <nl> + border - top : 1px solid transparent ; <nl> + border - left : 1px solid transparent ; <nl> + border - right : 1px solid transparent ; <nl> + <nl> + & . dropdown : hover { <nl> + border - top : 1px solid rgba ( 0 , 0 , 0 , 0 . 2 ) ; <nl> + border - left : 1px solid rgba ( 0 , 0 , 0 , 0 . 2 ) ; <nl> + border - right : 1px solid rgba ( 0 , 0 , 0 , 0 . 2 ) ; <nl> + border - bottom - left - radius : 0 ; <nl> + border - bottom - right - radius : 0 ; <nl> + } <nl> + } <nl> <nl> li . dropdown - item : hover , <nl> > li : hover { <nl> a . tab { <nl> ul . link - dropdown - menu { <nl> @ extend % dropdown - menu ; <nl> background - color : $ c - white ; <nl> - border : none ; <nl> + z - index : - 10 ; <nl> + margin - top : 7px ; <nl> + margin - right : - 1px ; <nl> + border : 1px solid rgba ( 0 , 0 , 0 , 0 . 2 ) ; <nl> + border - top - right - radius : 0 ; <nl> } <nl> <nl> ul . user - dropdown - menu { <nl> | navbar dropdowns web ui | arangodb/arangodb | a19af688302586a14b2982542ce598bf51a5029e | 2015-07-31T16:46:08Z |
mmm a / tensorflow / contrib / lite / nnapi / NeuralNetworksShim . h <nl> ppp b / tensorflow / contrib / lite / nnapi / NeuralNetworksShim . h <nl> limitations under the License . <nl> inline void * loadLibrary ( const char * name ) { <nl> / / TODO : change RTLD_LOCAL ? Assumes there can be multiple instances of nn <nl> / / api RT <nl> - void * handle = dlopen ( name , RTLD_LAZY | RTLD_LOCAL ) ; <nl> + void * handle = nullptr ; <nl> + # ifdef __ANDROID__ <nl> + handle = dlopen ( name , RTLD_LAZY | RTLD_LOCAL ) ; <nl> if ( handle = = nullptr ) { <nl> NNAPI_LOG ( " nnapi error : unable to open library % s " , name ) ; <nl> } <nl> + # endif <nl> return handle ; <nl> } <nl> <nl> | Disable dlopen error of libneuralnetworks for non - Android platforms . | tensorflow/tensorflow | 1f1d7b88717847f590987ee40efbe970bb591275 | 2018-04-19T16:37:33Z |
mmm a / tensorflow / tools / pip_package / build_pip_package . sh <nl> ppp b / tensorflow / tools / pip_package / build_pip_package . sh <nl> function build_wheel ( ) { <nl> mv tensorflow tensorflow_core <nl> mkdir tensorflow <nl> mv virtual_root . __init__ . py tensorflow / __init__ . py <nl> + # TODO ( mihaimaruseac ) : Remove the following hack once we move API in root pkg <nl> + # This sed - hack below is needed because in TF 1 . * we include contrib as a top <nl> + # level module but that doesn ' t exist in TF 2 . * . Unfortunately , python3 is too <nl> + # eager so we cannot test if contrib needs to exist before importing the <nl> + # __init__ . py from the virtual root . Thus , we need to make the following hack <nl> + # at least until we can generate TF API in the virtual pip and keep the rest <nl> + # of the code in tensorflow_core <nl> + sed - ie / ' ONLY FOR V1 , REMOVED IN V2 ' / d tensorflow / __init__ . py <nl> <nl> rm - f MANIFEST <nl> echo $ ( date ) : " = = = Building wheel " <nl> mmm a / tensorflow / virtual_root . __init__ . py <nl> ppp b / tensorflow / virtual_root . __init__ . py <nl> def _forward_module ( old_name ) : <nl> " tensorflow . compiler " , <nl> " tensorflow . lite " , <nl> " tensorflow . keras " , <nl> - " tensorflow . contrib " , <nl> + " tensorflow . contrib " , # ONLY FOR V1 , REMOVED IN V2 ( don ' t remove comment ! ) <nl> " tensorflow . compat " , <nl> ] <nl> # Estimator needs to be handled separatedly so we can still allow both <nl> | Remove contrib in V2 from root packages , keep in V1 . | tensorflow/tensorflow | 5f7337874435bf44c6005593568a2dfa8d5c2806 | 2019-06-10T06:18:09Z |
mmm a / Documentation / DocuBlocks / Rest / Collections / JSF_post_api_collection . md <nl> ppp b / Documentation / DocuBlocks / Rest / Collections / JSF_post_api_collection . md <nl> to all " follower " replicas , before the write operation is reported successful . <nl> If a server fails , this is detected automatically and one of the servers holding <nl> copies take over , usually without an error being reported . <nl> <nl> + @ RESTURLPARAM { waitForSyncReplication , integer , optional , int64 } <nl> + Default is * 1 * which means the server will only report success back to the client <nl> + if all replicas have created the collection . Set to * 0 * if you want faster <nl> + server responses and don ' t care about full replication . <nl> + <nl> @ RESTDESCRIPTION <nl> Creates a new collection with a given name . The request must contain an <nl> object with the following attributes . <nl> | Document waitForSyncReplication | arangodb/arangodb | 166bd2065c6f471b2c452136ac78f35377a22328 | 2017-05-16T10:29:35Z |
mmm a / python / INSTALL . md <nl> ppp b / python / INSTALL . md <nl> <nl> # # # DEPENDENCIES <nl> mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm <nl> <nl> - * Python > = 2 . 6 <nl> + * Python > = 2 . 6 ( < 3 . x ) <nl> * PyQt4 > = 4 . 8 . 0 <nl> * Qt > = 4 . 7 . 0 <nl> <nl> <nl> <nl> Windows <nl> <nl> - > Download and install the required programs here . <nl> + > Download and install the required programs . <nl> > <nl> - [ Python ] ( http : / / www . python . org / download / ) <nl> - [ PyQt4 ] ( http : / / www . riverbankcomputing . co . uk / software / pyqt / download ) <nl> - Qt4 - PyQt4 comes packaged with the Qt runtime library ( s ) <nl> + [ Python ] ( http : / / www . python . org / download / ) <nl> + [ PyQt4 ] ( http : / / www . riverbankcomputing . co . uk / software / pyqt / download ) <nl> + Qt4 - PyQt4 comes packaged with the Qt runtime library ( s ) <nl> <nl> Ubuntu <nl> <nl> - > Open a terminal window , and enter the command ` sudo apt - get install python - qt4 ` <nl> + > Open a terminal window , and enter the command ` sudo apt - get install python - qt4 ` <nl> > <nl> - All the required packages should be automatically pulled in and installed . <nl> + All the required packages should be automatically pulled in and installed . <nl> + <nl> + PyPi <nl> + <nl> + > You can also install the latest stable release from PyPi with ` pip install pyphantomjs ` <nl> + Afterward , you can invoke the program with ` pyphantomjs ` <nl> mmm a / python / README . md <nl> ppp b / python / README . md <nl> If you want to contribute , please read the Contribution Guides < sup > 3 < / sup > <nl> <nl> You can find a list of downloadable plugins [ here ] ( http : / / dev . umaclan . com / projects / pyphantomjs / wiki / Plugins ) . <nl> <nl> + If you would like to know how to make plugins , check out this [ article ] ( http : / / dev . umaclan . com / projects / pyphantomjs / wiki / Writing_plugins ) . <nl> + <nl> 1 : http : / / code . google . com / p / phantomjs / w / list <nl> 1 : http : / / dev . umaclan . com / projects / pyphantomjs / wiki <nl> 2 : http : / / dev . umaclan . com / projects / pyphantomjs / wiki / Api_reference <nl> ADDITIONAL INFO <nl> This program is a port of PhantomJS to Python / PyQt4 ( thus , PyPhantomJS ) . <nl> <nl> 1 . We try to make PyPhantomJS to be as compatible with PhantomJS as possible , <nl> - this means having the exact same features as they do . It happens to be fully <nl> - compatible , with the exception of some very small things . <nl> + this means having the exact same features as they do . It happens to be fully <nl> + compatible , with the exception of some very small things . <nl> 2 . PyPhantomJS however , has a few differences as well : <nl> - * Some of the features work a little differently than PhantomJS . <nl> - In most of these cases , the features were only changed to improve their <nl> - reliability and performance , so they work more often / better , and break less . <nl> - * There may also be additional features present that aren ' t in PhantomJS . <nl> + * Some of the features work a little differently than PhantomJS . <nl> + In most of these cases , the features were only changed to improve their <nl> + reliability and performance , so they work more often / better , and break less . <nl> + * There may also be additional features present that aren ' t in PhantomJS . <nl> <nl> PhantomJS was written by Ariya Hidayat , and I ' d like to give him a BIG thanks <nl> for all his work on PhantomJS ! : ) <nl> mmm a / python / pyphantomjs / bootstrap . js <nl> ppp b / python / pyphantomjs / bootstrap . js <nl> window . WebPage = function ( ) { <nl> this . openUrl ( arguments [ 0 ] , ' get ' , this . settings ) ; <nl> return ; <nl> } <nl> - if ( arguments . length = = = 2 ) { <nl> + if ( arguments . length = = = 2 & & typeof arguments [ 1 ] = = = ' function ' ) { <nl> this . onLoadFinished = arguments [ 1 ] ; <nl> this . openUrl ( arguments [ 0 ] , ' get ' , this . settings ) ; <nl> return ; <nl> + } else if ( arguments . length = = = 2 ) { <nl> + this . openUrl ( arguments [ 0 ] , arguments [ 1 ] , this . settings ) ; <nl> + return ; <nl> } else if ( arguments . length = = = 3 & & typeof arguments [ 2 ] = = = ' function ' ) { <nl> this . onLoadFinished = arguments [ 2 ] ; <nl> this . openUrl ( arguments [ 0 ] , arguments [ 1 ] , this . settings ) ; <nl> return ; <nl> - } else if ( arguments . length = = = 3 ) { <nl> + } else if ( arguments . length = = = 3 ) { <nl> this . openUrl ( arguments [ 0 ] , { <nl> operation : arguments [ 1 ] , <nl> data : arguments [ 2 ] <nl> mmm a / python / pyphantomjs / filesystem . py <nl> ppp b / python / pyphantomjs / filesystem . py <nl> <nl> <nl> from PyQt4 . QtCore import pyqtSlot , pyqtProperty , QObject , qDebug <nl> <nl> - from plugincontroller import Bunch , do_action <nl> + from plugincontroller import do_action <nl> <nl> <nl> class File ( QObject ) : <nl> def __init__ ( self , openfile , parent = None ) : <nl> <nl> self . m_file = openfile <nl> <nl> - do_action ( ' FileInit ' , Bunch ( locals ( ) ) ) <nl> + do_action ( ' FileInit ' ) <nl> <nl> def __del__ ( self ) : <nl> self . m_file . close ( ) <nl> def writeLine ( self , data ) : <nl> qDebug ( ' File . writeLine - % s : \ ' % s \ ' ' % ( e , self . m_file . name ) ) <nl> return False <nl> <nl> - do_action ( ' File ' , Bunch ( locals ( ) ) ) <nl> + do_action ( ' File ' ) <nl> <nl> <nl> class FileSystem ( QObject ) : <nl> def __init__ ( self , parent = None ) : <nl> QObject . __init__ ( self , parent ) <nl> <nl> - do_action ( ' FileSystemInit ' , Bunch ( locals ( ) ) ) <nl> + do_action ( ' FileSystemInit ' ) <nl> <nl> # # <nl> # Attributes <nl> def linkExists ( self , path ) : <nl> def same ( self , pathA , pathB ) : <nl> return os . path . samefile ( pathA , pathB ) <nl> <nl> - do_action ( ' FileSystem ' , Bunch ( locals ( ) ) ) <nl> + do_action ( ' FileSystem ' ) <nl> mmm a / python / pyphantomjs / networkaccessmanager . py <nl> ppp b / python / pyphantomjs / networkaccessmanager . py <nl> <nl> from PyQt4 . QtNetwork import QNetworkAccessManager , QNetworkDiskCache , \ <nl> QNetworkRequest <nl> <nl> - from plugincontroller import Bunch , do_action <nl> + from plugincontroller import do_action <nl> <nl> <nl> class NetworkAccessManager ( QNetworkAccessManager ) : <nl> def __init__ ( self , diskCacheEnabled , ignoreSslErrors , parent = None ) : <nl> m_networkDiskCache . setCacheDirectory ( QDesktopServices . storageLocation ( QDesktopServices . CacheLocation ) ) <nl> self . setCache ( m_networkDiskCache ) <nl> <nl> - do_action ( ' NetworkAccessManagerInit ' , Bunch ( locals ( ) ) ) <nl> + do_action ( ' NetworkAccessManagerInit ' ) <nl> <nl> def createRequest ( self , op , req , outgoingData ) : <nl> - do_action ( ' NetworkAccessManagerCreateRequestPre ' , Bunch ( locals ( ) ) ) <nl> + do_action ( ' NetworkAccessManagerCreateRequestPre ' ) <nl> <nl> reply = QNetworkAccessManager . createRequest ( self , op , req , outgoingData ) <nl> <nl> def createRequest ( self , op , req , outgoingData ) : <nl> <nl> reply . readyRead . connect ( self . handleStarted ) <nl> <nl> - do_action ( ' NetworkAccessManagerCreateRequestPost ' , Bunch ( locals ( ) ) ) <nl> + do_action ( ' NetworkAccessManagerCreateRequestPost ' ) <nl> <nl> self . resourceRequested . emit ( data ) <nl> return reply <nl> def handleFinished ( self , reply ) : <nl> if reply in self . m_started : <nl> del self . m_started [ self . m_started . index ( reply ) ] <nl> <nl> - do_action ( ' NetworkAccessManagerHandleFinished ' , Bunch ( locals ( ) ) ) <nl> + do_action ( ' NetworkAccessManagerHandleFinished ' ) <nl> <nl> self . resourceReceived . emit ( data ) <nl> <nl> def handleStarted ( self ) : <nl> ' time ' : QDateTime . currentDateTime ( ) <nl> } <nl> <nl> - do_action ( ' NetworkAccessManagerHandleStarted ' , Bunch ( locals ( ) ) ) <nl> + do_action ( ' NetworkAccessManagerHandleStarted ' ) <nl> <nl> self . resourceReceived . emit ( data ) <nl> <nl> - do_action ( ' NetworkAccessManager ' , Bunch ( locals ( ) ) ) <nl> + do_action ( ' NetworkAccessManager ' ) <nl> <nl> <nl> def toString ( op ) : <nl> mmm a / python / pyphantomjs / phantom . py <nl> ppp b / python / pyphantomjs / phantom . py <nl> <nl> <nl> from utils import version_major , version_minor , version_patch , \ <nl> injectJsInFrame <nl> - from plugincontroller import Bunch , do_action <nl> + from plugincontroller import do_action <nl> from webpage import WebPage <nl> from networkaccessmanager import NetworkAccessManager <nl> from filesystem import FileSystem <nl> def __init__ ( self , args , parent = None ) : <nl> self . m_filesystem = FileSystem ( self ) <nl> self . m_pages . append ( self . m_page ) <nl> <nl> - do_action ( ' PhantomInitPre ' , Bunch ( locals ( ) ) ) <nl> + do_action ( ' PhantomInitPre ' ) <nl> <nl> if not args . proxy : <nl> QNetworkProxyFactory . setUseSystemConfiguration ( True ) <nl> def __init__ ( self , args , parent = None ) : <nl> sys . exit ( ' Can not bootstrap ! ' ) <nl> self . m_page . mainFrame ( ) . evaluateJavaScript ( bootstrapper ) <nl> <nl> - do_action ( ' PhantomInitPost ' , Bunch ( locals ( ) ) ) <nl> + do_action ( ' PhantomInitPost ' ) <nl> <nl> def execute ( self ) : <nl> injectJsInFrame ( self . m_scriptFile , os . path . dirname ( os . path . abspath ( __file__ ) ) , self . m_page . mainFrame ( ) , True ) <nl> def version ( self ) : <nl> } <nl> return version <nl> <nl> - do_action ( ' Phantom ' , Bunch ( locals ( ) ) ) <nl> + do_action ( ' Phantom ' ) <nl> mmm a / python / pyphantomjs / plugincontroller . py <nl> ppp b / python / pyphantomjs / plugincontroller . py <nl> <nl> hooks = defaultdict ( dict ) <nl> <nl> <nl> - class Bunch ( object ) : <nl> - ' ' ' Simple class to bunch a dict into <nl> - an object that with attributes <nl> - ' ' ' <nl> - def __init__ ( self , adict ) : <nl> - self . __dict__ = adict <nl> - <nl> - <nl> def add_action ( hook , priority = 10 ) : <nl> ' ' ' Decorator to be used for registering a function to <nl> a specific hook . Functions with lower priority are <nl> def do_action ( hook , * args , * * kwargs ) : <nl> plugin [ 1 ] ( * args , * * kwargs ) <nl> <nl> <nl> + def get ( name , depth = 3 , scope = ' local ' ) : <nl> + ' ' ' Gets the value of a variable in the parents namespace <nl> + <nl> + Args : <nl> + depth controls how deep to go into the stack <nl> + scope controls the namespace used ; valid values are : local , global , builtin <nl> + ' ' ' <nl> + if scope = = ' local ' : <nl> + scope = ' f_locals ' <nl> + elif scope = = ' global ' : <nl> + scope = ' f_globals ' <nl> + elif scope = = ' builtin ' : <nl> + scope = ' f_builtins ' <nl> + <nl> + return getattr ( sys . _getframe ( depth ) , scope ) . get ( name ) <nl> + <nl> + <nl> def has_action ( hook , func = None ) : <nl> ' ' ' Check if hook exists . If function is specified , <nl> check if function has been registered for hook . <nl> def remove_all_actions ( hook , priority = None ) : <nl> return False <nl> <nl> <nl> + def set ( name , value , depth = 3 , scope = ' local ' ) : <nl> + ' ' ' Sets the value of a variable in the parents namespace <nl> + <nl> + Args : <nl> + depth controls how deep to go into the stack <nl> + scope controls the namespace used ; valid values are : local , global , builtin <nl> + ' ' ' <nl> + if scope = = ' local ' : <nl> + scope = ' f_locals ' <nl> + elif scope = = ' global ' : <nl> + scope = ' f_globals ' <nl> + elif scope = = ' builtin ' : <nl> + scope = ' f_builtins ' <nl> + <nl> + getattr ( sys . _getframe ( depth ) , scope ) [ name ] = value <nl> + <nl> + <nl> def load_plugins ( ) : <nl> ' ' ' Loads the plugins . <nl> <nl> mmm a / python / pyphantomjs / pyphantomjs . py <nl> ppp b / python / pyphantomjs / pyphantomjs . py <nl> <nl> from PyQt4 . QtCore import qInstallMsgHandler <nl> from PyQt4 . QtGui import QIcon , QApplication <nl> <nl> - from plugincontroller import Bunch , do_action <nl> + from plugincontroller import do_action <nl> # load plugins if running script directly <nl> if __name__ = = ' __main__ ' : <nl> from plugincontroller import load_plugins <nl> def parseArgs ( args ) : <nl> sys . exit ( 1 ) <nl> args . proxy = item <nl> <nl> - do_action ( ' ParseArgs ' , Bunch ( locals ( ) ) ) <nl> + do_action ( ' ParseArgs ' ) <nl> <nl> if not args . script : <nl> p . print_help ( ) <nl> def main ( ) : <nl> <nl> phantom = Phantom ( args ) <nl> <nl> - do_action ( ' Main ' , Bunch ( locals ( ) ) ) <nl> + do_action ( ' Main ' ) <nl> <nl> if phantom . execute ( ) : <nl> app . exec_ ( ) <nl> return phantom . returnValue ( ) <nl> <nl> <nl> - do_action ( ' PyPhantomJS ' , Bunch ( locals ( ) ) ) <nl> + do_action ( ' PyPhantomJS ' ) <nl> <nl> <nl> if __name__ = = ' __main__ ' : <nl> mmm a / python / pyphantomjs / resources . py <nl> ppp b / python / pyphantomjs / resources . py <nl> <nl> <nl> # Resource object code <nl> # <nl> - # Created : Fri Jul 1 22 : 57 : 05 2011 <nl> + # Created : Mon Jul 4 11 : 06 : 49 2011 <nl> # by : The Resource Compiler for PyQt ( Qt v4 . 7 . 2 ) <nl> # <nl> # WARNING ! All changes made in this file will be lost ! <nl> <nl> from PyQt4 import QtCore <nl> <nl> qt_resource_data = " \ <nl> - \ x00 \ x00 \ x0c \ x64 \ <nl> + \ x00 \ x00 \ x0d \ x11 \ <nl> \ x2f \ <nl> \ x2f \ x20 \ x54 \ x68 \ x69 \ x73 \ x20 \ x61 \ x6c \ x6c \ x6f \ x77 \ x73 \ x20 \ x63 \ x72 \ <nl> \ x65 \ x61 \ x74 \ x69 \ x6e \ x67 \ x20 \ x61 \ x20 \ x6e \ x65 \ x77 \ x20 \ x77 \ x65 \ x62 \ <nl> <nl> \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x72 \ x65 \ x74 \ x75 \ x72 \ x6e \ x3b \ x0a \ <nl> \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x7d \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> \ x20 \ x20 \ x69 \ x66 \ x20 \ x28 \ x61 \ x72 \ x67 \ x75 \ x6d \ x65 \ x6e \ x74 \ x73 \ x2e \ <nl> - \ x6c \ x65 \ x6e \ x67 \ x74 \ x68 \ x20 \ x3d \ x3d \ x3d \ x20 \ x32 \ x29 \ x20 \ x7b \ x0a \ <nl> - \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x74 \ x68 \ x69 \ x73 \ <nl> - \ x2e \ x6f \ x6e \ x4c \ x6f \ x61 \ x64 \ x46 \ x69 \ x6e \ x69 \ x73 \ x68 \ x65 \ x64 \ x20 \ <nl> - \ x3d \ x20 \ x61 \ x72 \ x67 \ x75 \ x6d \ x65 \ x6e \ x74 \ x73 \ x5b \ x31 \ x5d \ x3b \ x0a \ <nl> - \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x74 \ x68 \ x69 \ x73 \ <nl> - \ x2e \ x6f \ x70 \ x65 \ x6e \ x55 \ x72 \ x6c \ x28 \ x61 \ x72 \ x67 \ x75 \ x6d \ x65 \ x6e \ <nl> - \ x74 \ x73 \ x5b \ x30 \ x5d \ x2c \ x20 \ x27 \ x67 \ x65 \ x74 \ x27 \ x2c \ x20 \ x74 \ x68 \ <nl> - \ x69 \ x73 \ x2e \ x73 \ x65 \ x74 \ x74 \ x69 \ x6e \ x67 \ x73 \ x29 \ x3b \ x0a \ x20 \ x20 \ <nl> - \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x72 \ x65 \ x74 \ x75 \ x72 \ x6e \ <nl> - \ x3b \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x7d \ x20 \ x65 \ x6c \ x73 \ x65 \ <nl> - \ x20 \ x69 \ x66 \ x20 \ x28 \ x61 \ x72 \ x67 \ x75 \ x6d \ x65 \ x6e \ x74 \ x73 \ x2e \ x6c \ <nl> - \ x65 \ x6e \ x67 \ x74 \ x68 \ x20 \ x3d \ x3d \ x3d \ x20 \ x33 \ x20 \ x26 \ x26 \ x20 \ x74 \ <nl> - \ x79 \ x70 \ x65 \ x6f \ x66 \ x20 \ x61 \ x72 \ x67 \ x75 \ x6d \ x65 \ x6e \ x74 \ x73 \ x5b \ <nl> - \ x32 \ x5d \ x20 \ x3d \ x3d \ x3d \ x20 \ x27 \ x66 \ x75 \ x6e \ x63 \ x74 \ x69 \ x6f \ x6e \ <nl> - \ x27 \ x29 \ x20 \ x7b \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> - \ x20 \ x74 \ x68 \ x69 \ x73 \ x2e \ x6f \ x6e \ x4c \ x6f \ x61 \ x64 \ x46 \ x69 \ x6e \ x69 \ <nl> - \ x73 \ x68 \ x65 \ x64 \ x20 \ x3d \ x20 \ x61 \ x72 \ x67 \ x75 \ x6d \ x65 \ x6e \ x74 \ x73 \ <nl> - \ x5b \ x32 \ x5d \ x3b \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> + \ x6c \ x65 \ x6e \ x67 \ x74 \ x68 \ x20 \ x3d \ x3d \ x3d \ x20 \ x32 \ x20 \ x26 \ x26 \ x20 \ <nl> + \ x74 \ x79 \ x70 \ x65 \ x6f \ x66 \ x20 \ x61 \ x72 \ x67 \ x75 \ x6d \ x65 \ x6e \ x74 \ x73 \ <nl> + \ x5b \ x31 \ x5d \ x20 \ x3d \ x3d \ x3d \ x20 \ x27 \ x66 \ x75 \ x6e \ x63 \ x74 \ x69 \ x6f \ <nl> + \ x6e \ x27 \ x29 \ x20 \ x7b \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> + \ x20 \ x20 \ x74 \ x68 \ x69 \ x73 \ x2e \ x6f \ x6e \ x4c \ x6f \ x61 \ x64 \ x46 \ x69 \ x6e \ <nl> + \ x69 \ x73 \ x68 \ x65 \ x64 \ x20 \ x3d \ x20 \ x61 \ x72 \ x67 \ x75 \ x6d \ x65 \ x6e \ x74 \ <nl> + \ x73 \ x5b \ x31 \ x5d \ x3b \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> + \ x20 \ x20 \ x74 \ x68 \ x69 \ x73 \ x2e \ x6f \ x70 \ x65 \ x6e \ x55 \ x72 \ x6c \ x28 \ x61 \ <nl> + \ x72 \ x67 \ x75 \ x6d \ x65 \ x6e \ x74 \ x73 \ x5b \ x30 \ x5d \ x2c \ x20 \ x27 \ x67 \ x65 \ <nl> + \ x74 \ x27 \ x2c \ x20 \ x74 \ x68 \ x69 \ x73 \ x2e \ x73 \ x65 \ x74 \ x74 \ x69 \ x6e \ x67 \ <nl> + \ x73 \ x29 \ x3b \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> + \ x72 \ x65 \ x74 \ x75 \ x72 \ x6e \ x3b \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> + \ x7d \ x20 \ x65 \ x6c \ x73 \ x65 \ x20 \ x69 \ x66 \ x20 \ x28 \ x61 \ x72 \ x67 \ x75 \ x6d \ <nl> + \ x65 \ x6e \ x74 \ x73 \ x2e \ x6c \ x65 \ x6e \ x67 \ x74 \ x68 \ x20 \ x3d \ x3d \ x3d \ x20 \ <nl> + \ x32 \ x29 \ x20 \ x7b \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> \ x20 \ x74 \ x68 \ x69 \ x73 \ x2e \ x6f \ x70 \ x65 \ x6e \ x55 \ x72 \ x6c \ x28 \ x61 \ x72 \ <nl> \ x67 \ x75 \ x6d \ x65 \ x6e \ x74 \ x73 \ x5b \ x30 \ x5d \ x2c \ x20 \ x61 \ x72 \ x67 \ x75 \ <nl> \ x6d \ x65 \ x6e \ x74 \ x73 \ x5b \ x31 \ x5d \ x2c \ x20 \ x74 \ x68 \ x69 \ x73 \ x2e \ x73 \ <nl> <nl> \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x72 \ x65 \ x74 \ x75 \ x72 \ x6e \ x3b \ x0a \ x20 \ x20 \ <nl> \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x7d \ x20 \ x65 \ x6c \ x73 \ x65 \ x20 \ x69 \ x66 \ x20 \ <nl> \ x28 \ x61 \ x72 \ x67 \ x75 \ x6d \ x65 \ x6e \ x74 \ x73 \ x2e \ x6c \ x65 \ x6e \ x67 \ x74 \ <nl> - \ x68 \ x20 \ x3d \ x3d \ x3d \ x33 \ x29 \ x20 \ x7b \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> - \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x74 \ x68 \ x69 \ x73 \ x2e \ x6f \ x70 \ x65 \ x6e \ x55 \ <nl> - \ x72 \ x6c \ x28 \ x61 \ x72 \ x67 \ x75 \ x6d \ x65 \ x6e \ x74 \ x73 \ x5b \ x30 \ x5d \ x2c \ <nl> - \ x20 \ x7b \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> - \ x20 \ x20 \ x20 \ x6f \ x70 \ x65 \ x72 \ x61 \ x74 \ x69 \ x6f \ x6e \ x3a \ x20 \ x61 \ x72 \ <nl> - \ x67 \ x75 \ x6d \ x65 \ x6e \ x74 \ x73 \ x5b \ x31 \ x5d \ x2c \ x0a \ x20 \ x20 \ x20 \ x20 \ <nl> - \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x64 \ x61 \ x74 \ x61 \ <nl> - \ x3a \ x20 \ x61 \ x72 \ x67 \ x75 \ x6d \ x65 \ x6e \ x74 \ x73 \ x5b \ x32 \ x5d \ x0a \ x20 \ <nl> - \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x7d \ <nl> - \ x2c \ x20 \ x74 \ x68 \ x69 \ x73 \ x2e \ x73 \ x65 \ x74 \ x74 \ x69 \ x6e \ x67 \ x73 \ x29 \ <nl> - \ x3b \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x72 \ x65 \ <nl> - \ x74 \ x75 \ x72 \ x6e \ x3b \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x7d \ x20 \ <nl> - \ x65 \ x6c \ x73 \ x65 \ x20 \ x69 \ x66 \ x20 \ x28 \ x61 \ x72 \ x67 \ x75 \ x6d \ x65 \ x6e \ <nl> - \ x74 \ x73 \ x2e \ x6c \ x65 \ x6e \ x67 \ x74 \ x68 \ x20 \ x3d \ x3d \ x3d \ x20 \ x34 \ x29 \ <nl> - \ x20 \ x7b \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x74 \ <nl> - \ x68 \ x69 \ x73 \ x2e \ x6f \ x6e \ x4c \ x6f \ x61 \ x64 \ x46 \ x69 \ x6e \ x69 \ x73 \ x68 \ <nl> - \ x65 \ x64 \ x20 \ x3d \ x20 \ x61 \ x72 \ x67 \ x75 \ x6d \ x65 \ x6e \ x74 \ x73 \ x5b \ x33 \ <nl> - \ x5d \ x3b \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x74 \ <nl> - \ x68 \ x69 \ x73 \ x2e \ x6f \ x70 \ x65 \ x6e \ x55 \ x72 \ x6c \ x28 \ x61 \ x72 \ x67 \ x75 \ <nl> - \ x6d \ x65 \ x6e \ x74 \ x73 \ x5b \ x30 \ x5d \ x2c \ x20 \ x7b \ x0a \ x20 \ x20 \ x20 \ x20 \ <nl> - \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x6f \ x70 \ x65 \ x72 \ <nl> - \ x61 \ x74 \ x69 \ x6f \ x6e \ x3a \ x20 \ x61 \ x72 \ x67 \ x75 \ x6d \ x65 \ x6e \ x74 \ x73 \ <nl> - \ x5b \ x31 \ x5d \ x2c \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> - \ x20 \ x20 \ x20 \ x20 \ x20 \ x64 \ x61 \ x74 \ x61 \ x3a \ x20 \ x61 \ x72 \ x67 \ x75 \ x6d \ <nl> - \ x65 \ x6e \ x74 \ x73 \ x5b \ x32 \ x5d \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> - \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x7d \ x2c \ x20 \ x74 \ x68 \ x69 \ x73 \ x2e \ <nl> - \ x73 \ x65 \ x74 \ x74 \ x69 \ x6e \ x67 \ x73 \ x29 \ x3b \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> - \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x72 \ x65 \ x74 \ x75 \ x72 \ x6e \ x3b \ x0a \ x20 \ <nl> - \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x7d \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> - \ x20 \ x74 \ x68 \ x72 \ x6f \ x77 \ x20 \ x22 \ x57 \ x72 \ x6f \ x6e \ x67 \ x20 \ x75 \ x73 \ <nl> - \ x65 \ x20 \ x6f \ x66 \ x20 \ x57 \ x65 \ x62 \ x50 \ x61 \ x67 \ x65 \ x23 \ x6f \ x70 \ x65 \ <nl> - \ x6e \ x22 \ x3b \ x0a \ x20 \ x20 \ x20 \ x20 \ x7d \ x3b \ x0a \ x0a \ x20 \ x20 \ x20 \ x20 \ <nl> - \ x70 \ x61 \ x67 \ x65 \ x2e \ x69 \ x6e \ x63 \ x6c \ x75 \ x64 \ x65 \ x4a \ x73 \ x20 \ x3d \ <nl> - \ x20 \ x66 \ x75 \ x6e \ x63 \ x74 \ x69 \ x6f \ x6e \ x28 \ x73 \ x63 \ x72 \ x69 \ x70 \ x74 \ <nl> - \ x55 \ x72 \ x6c \ x2c \ x20 \ x6f \ x6e \ x53 \ x63 \ x72 \ x69 \ x70 \ x74 \ x4c \ x6f \ x61 \ <nl> - \ x64 \ x65 \ x64 \ x29 \ x20 \ x7b \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x2f \ <nl> - \ x2f \ x20 \ x52 \ x65 \ x67 \ x69 \ x73 \ x74 \ x65 \ x72 \ x20 \ x74 \ x65 \ x6d \ x70 \ x6f \ <nl> - \ x72 \ x61 \ x72 \ x79 \ x20 \ x73 \ x69 \ x67 \ x6e \ x61 \ x6c \ x20 \ x68 \ x61 \ x6e \ x64 \ <nl> - \ x6c \ x65 \ x72 \ x20 \ x66 \ x6f \ x72 \ x20 \ x27 \ x61 \ x6c \ x65 \ x72 \ x74 \ x28 \ x29 \ <nl> - \ x27 \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x74 \ x68 \ x69 \ x73 \ x2e \ x6a \ <nl> - \ x61 \ x76 \ x61 \ x53 \ x63 \ x72 \ x69 \ x70 \ x74 \ x41 \ x6c \ x65 \ x72 \ x74 \ x53 \ x65 \ <nl> - \ x6e \ x74 \ x2e \ x63 \ x6f \ x6e \ x6e \ x65 \ x63 \ x74 \ x28 \ x66 \ x75 \ x6e \ x63 \ x74 \ <nl> - \ x69 \ x6f \ x6e \ x28 \ x6d \ x73 \ x67 \ x46 \ x72 \ x6f \ x6d \ x41 \ x6c \ x65 \ x72 \ x74 \ <nl> - \ x29 \ x20 \ x7b \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> - \ x69 \ x66 \ x20 \ x28 \ x20 \ x6d \ x73 \ x67 \ x46 \ x72 \ x6f \ x6d \ x41 \ x6c \ x65 \ x72 \ <nl> - \ x74 \ x20 \ x3d \ x3d \ x3d \ x20 \ x73 \ x63 \ x72 \ x69 \ x70 \ x74 \ x55 \ x72 \ x6c \ x20 \ <nl> - \ x29 \ x20 \ x7b \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> - \ x20 \ x20 \ x20 \ x20 \ x2f \ x2f \ x20 \ x52 \ x65 \ x73 \ x6f \ x75 \ x72 \ x63 \ x65 \ x20 \ <nl> - \ x6c \ x6f \ x61 \ x64 \ x65 \ x64 \ x2c \ x20 \ x74 \ x69 \ x6d \ x65 \ x20 \ x74 \ x6f \ x20 \ <nl> - \ x66 \ x69 \ x72 \ x65 \ x20 \ x74 \ x68 \ x65 \ x20 \ x63 \ x61 \ x6c \ x6c \ x62 \ x61 \ x63 \ <nl> - \ x6b \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> - \ x20 \ x20 \ x6f \ x6e \ x53 \ x63 \ x72 \ x69 \ x70 \ x74 \ x4c \ x6f \ x61 \ x64 \ x65 \ x64 \ <nl> - \ x28 \ x73 \ x63 \ x72 \ x69 \ x70 \ x74 \ x55 \ x72 \ x6c \ x29 \ x3b \ x0a \ x20 \ x20 \ x20 \ <nl> - \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x2f \ x2f \ x20 \ <nl> - \ x41 \ x6e \ x64 \ x20 \ x64 \ x69 \ x73 \ x63 \ x6f \ x6e \ x6e \ x65 \ x63 \ x74 \ x20 \ x74 \ <nl> - \ x68 \ x65 \ x20 \ x73 \ x69 \ x67 \ x6e \ x61 \ x6c \ x20 \ x68 \ x61 \ x6e \ x64 \ x6c \ x65 \ <nl> - \ x72 \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> - \ x20 \ x20 \ x74 \ x72 \ x79 \ x20 \ x7b \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> + \ x68 \ x20 \ x3d \ x3d \ x3d \ x20 \ x33 \ x20 \ x26 \ x26 \ x20 \ x74 \ x79 \ x70 \ x65 \ x6f \ <nl> + \ x66 \ x20 \ x61 \ x72 \ x67 \ x75 \ x6d \ x65 \ x6e \ x74 \ x73 \ x5b \ x32 \ x5d \ x20 \ x3d \ <nl> + \ x3d \ x3d \ x20 \ x27 \ x66 \ x75 \ x6e \ x63 \ x74 \ x69 \ x6f \ x6e \ x27 \ x29 \ x20 \ x7b \ <nl> + \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x74 \ x68 \ x69 \ <nl> + \ x73 \ x2e \ x6f \ x6e \ x4c \ x6f \ x61 \ x64 \ x46 \ x69 \ x6e \ x69 \ x73 \ x68 \ x65 \ x64 \ <nl> + \ x20 \ x3d \ x20 \ x61 \ x72 \ x67 \ x75 \ x6d \ x65 \ x6e \ x74 \ x73 \ x5b \ x32 \ x5d \ x3b \ <nl> + \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x74 \ x68 \ x69 \ <nl> + \ x73 \ x2e \ x6f \ x70 \ x65 \ x6e \ x55 \ x72 \ x6c \ x28 \ x61 \ x72 \ x67 \ x75 \ x6d \ x65 \ <nl> + \ x6e \ x74 \ x73 \ x5b \ x30 \ x5d \ x2c \ x20 \ x61 \ x72 \ x67 \ x75 \ x6d \ x65 \ x6e \ x74 \ <nl> + \ x73 \ x5b \ x31 \ x5d \ x2c \ x20 \ x74 \ x68 \ x69 \ x73 \ x2e \ x73 \ x65 \ x74 \ x74 \ x69 \ <nl> + \ x6e \ x67 \ x73 \ x29 \ x3b \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> + \ x20 \ x20 \ x72 \ x65 \ x74 \ x75 \ x72 \ x6e \ x3b \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> + \ x20 \ x20 \ x7d \ x20 \ x65 \ x6c \ x73 \ x65 \ x20 \ x69 \ x66 \ x20 \ x28 \ x61 \ x72 \ x67 \ <nl> + \ x75 \ x6d \ x65 \ x6e \ x74 \ x73 \ x2e \ x6c \ x65 \ x6e \ x67 \ x74 \ x68 \ x20 \ x3d \ x3d \ <nl> + \ x3d \ x20 \ x33 \ x29 \ x20 \ x7b \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> + \ x20 \ x20 \ x20 \ x74 \ x68 \ x69 \ x73 \ x2e \ x6f \ x70 \ x65 \ x6e \ x55 \ x72 \ x6c \ x28 \ <nl> + \ x61 \ x72 \ x67 \ x75 \ x6d \ x65 \ x6e \ x74 \ x73 \ x5b \ x30 \ x5d \ x2c \ x20 \ x7b \ x0a \ <nl> + \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> + \ x6f \ x70 \ x65 \ x72 \ x61 \ x74 \ x69 \ x6f \ x6e \ x3a \ x20 \ x61 \ x72 \ x67 \ x75 \ x6d \ <nl> + \ x65 \ x6e \ x74 \ x73 \ x5b \ x31 \ x5d \ x2c \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> + \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x64 \ x61 \ x74 \ x61 \ x3a \ x20 \ x61 \ <nl> + \ x72 \ x67 \ x75 \ x6d \ x65 \ x6e \ x74 \ x73 \ x5b \ x32 \ x5d \ x0a \ x20 \ x20 \ x20 \ x20 \ <nl> + \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x7d \ x2c \ x20 \ x74 \ <nl> + \ x68 \ x69 \ x73 \ x2e \ x73 \ x65 \ x74 \ x74 \ x69 \ x6e \ x67 \ x73 \ x29 \ x3b \ x0a \ x20 \ <nl> + \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x72 \ x65 \ x74 \ x75 \ x72 \ <nl> + \ x6e \ x3b \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x7d \ x20 \ x65 \ x6c \ x73 \ <nl> + \ x65 \ x20 \ x69 \ x66 \ x20 \ x28 \ x61 \ x72 \ x67 \ x75 \ x6d \ x65 \ x6e \ x74 \ x73 \ x2e \ <nl> + \ x6c \ x65 \ x6e \ x67 \ x74 \ x68 \ x20 \ x3d \ x3d \ x3d \ x20 \ x34 \ x29 \ x20 \ x7b \ x0a \ <nl> \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x74 \ x68 \ x69 \ x73 \ <nl> - \ x2e \ x6a \ x61 \ x76 \ x61 \ x53 \ x63 \ x72 \ x69 \ x70 \ x74 \ x41 \ x6c \ x65 \ x72 \ x74 \ <nl> - \ x53 \ x65 \ x6e \ x74 \ x2e \ x64 \ x69 \ x73 \ x63 \ x6f \ x6e \ x6e \ x65 \ x63 \ x74 \ x28 \ <nl> - \ x61 \ x72 \ x67 \ x75 \ x6d \ x65 \ x6e \ x74 \ x73 \ x2e \ x63 \ x61 \ x6c \ x6c \ x65 \ x65 \ <nl> - \ x29 \ x3b \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> - \ x20 \ x20 \ x20 \ x7d \ x20 \ x63 \ x61 \ x74 \ x63 \ x68 \ x20 \ x28 \ x65 \ x29 \ x20 \ x7b \ <nl> - \ x7d \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x7d \ x0a \ <nl> - \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x7d \ x29 \ x3b \ x0a \ x0a \ x20 \ x20 \ x20 \ <nl> - \ x20 \ x20 \ x20 \ x20 \ x20 \ x2f \ x2f \ x20 \ x41 \ x70 \ x70 \ x65 \ x6e \ x64 \ x20 \ x74 \ <nl> - \ x68 \ x65 \ x20 \ x73 \ x63 \ x72 \ x69 \ x70 \ x74 \ x20 \ x74 \ x61 \ x67 \ x20 \ x74 \ x6f \ <nl> - \ x20 \ x74 \ x68 \ x65 \ x20 \ x62 \ x6f \ x64 \ x79 \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> - \ x20 \ x20 \ x74 \ x68 \ x69 \ x73 \ x2e \ x5f \ x61 \ x70 \ x70 \ x65 \ x6e \ x64 \ x53 \ x63 \ <nl> - \ x72 \ x69 \ x70 \ x74 \ x45 \ x6c \ x65 \ x6d \ x65 \ x6e \ x74 \ x28 \ x73 \ x63 \ x72 \ x69 \ <nl> - \ x70 \ x74 \ x55 \ x72 \ x6c \ x29 \ x3b \ x0a \ x20 \ x20 \ x20 \ x20 \ x7d \ x3b \ x0a \ x0a \ <nl> - \ x20 \ x20 \ x20 \ x20 \ x70 \ x61 \ x67 \ x65 \ x2e \ x64 \ x65 \ x73 \ x74 \ x72 \ x6f \ x79 \ <nl> - \ x20 \ x3d \ x20 \ x66 \ x75 \ x6e \ x63 \ x74 \ x69 \ x6f \ x6e \ x28 \ x29 \ x20 \ x7b \ x0a \ <nl> - \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x70 \ x68 \ x61 \ x6e \ x74 \ x6f \ x6d \ x2e \ <nl> - \ x5f \ x64 \ x65 \ x73 \ x74 \ x72 \ x6f \ x79 \ x28 \ x70 \ x61 \ x67 \ x65 \ x29 \ x3b \ x0a \ <nl> - \ x20 \ x20 \ x20 \ x20 \ x7d \ x3b \ x0a \ x0a \ x20 \ x20 \ x20 \ x20 \ x72 \ x65 \ x74 \ x75 \ <nl> - \ x72 \ x6e \ x20 \ x70 \ x61 \ x67 \ x65 \ x3b \ x0a \ x7d \ x3b \ x0a \ x0a \ x2f \ x2f \ x20 \ <nl> - \ x4d \ x61 \ x6b \ x65 \ x20 \ x22 \ x66 \ x73 \ x2e \ x6f \ x70 \ x65 \ x6e \ x22 \ x20 \ x74 \ <nl> - \ x68 \ x72 \ x6f \ x77 \ x20 \ x61 \ x6e \ x20 \ x65 \ x78 \ x63 \ x65 \ x70 \ x74 \ x69 \ x6f \ <nl> - \ x6e \ x20 \ x69 \ x6e \ x20 \ x63 \ x61 \ x73 \ x65 \ x20 \ x69 \ x74 \ x20 \ x66 \ x61 \ x69 \ <nl> - \ x6c \ x73 \ x0a \ x77 \ x69 \ x6e \ x64 \ x6f \ x77 \ x2e \ x66 \ x73 \ x2e \ x6f \ x70 \ x65 \ <nl> - \ x6e \ x20 \ x3d \ x20 \ x66 \ x75 \ x6e \ x63 \ x74 \ x69 \ x6f \ x6e \ x28 \ x70 \ x61 \ x74 \ <nl> - \ x68 \ x2c \ x20 \ x6d \ x6f \ x64 \ x65 \ x29 \ x20 \ x7b \ x0a \ x20 \ x20 \ x20 \ x20 \ x76 \ <nl> - \ x61 \ x72 \ x20 \ x66 \ x69 \ x6c \ x65 \ x20 \ x3d \ x20 \ x77 \ x69 \ x6e \ x64 \ x6f \ x77 \ <nl> - \ x2e \ x66 \ x73 \ x2e \ x5f \ x6f \ x70 \ x65 \ x6e \ x28 \ x70 \ x61 \ x74 \ x68 \ x2c \ x20 \ <nl> - \ x6d \ x6f \ x64 \ x65 \ x29 \ x3b \ x0a \ x20 \ x20 \ x20 \ x20 \ x69 \ x66 \ x20 \ x28 \ x66 \ <nl> - \ x69 \ x6c \ x65 \ x29 \ x20 \ x7b \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x72 \ <nl> - \ x65 \ x74 \ x75 \ x72 \ x6e \ x20 \ x66 \ x69 \ x6c \ x65 \ x3b \ x0a \ x20 \ x20 \ x20 \ x20 \ <nl> - \ x7d \ x0a \ x20 \ x20 \ x20 \ x20 \ x74 \ x68 \ x72 \ x6f \ x77 \ x20 \ x22 \ x55 \ x6e \ x61 \ <nl> - \ x62 \ x6c \ x65 \ x20 \ x74 \ x6f \ x20 \ x6f \ x70 \ x65 \ x6e \ x20 \ x66 \ x69 \ x6c \ x65 \ <nl> - \ x20 \ x27 \ x22 \ x2b \ x20 \ x70 \ x61 \ x74 \ x68 \ x20 \ x2b \ x22 \ x27 \ x22 \ x3b \ x0a \ <nl> - \ x7d \ x3b \ x0a \ <nl> + \ x2e \ x6f \ x6e \ x4c \ x6f \ x61 \ x64 \ x46 \ x69 \ x6e \ x69 \ x73 \ x68 \ x65 \ x64 \ x20 \ <nl> + \ x3d \ x20 \ x61 \ x72 \ x67 \ x75 \ x6d \ x65 \ x6e \ x74 \ x73 \ x5b \ x33 \ x5d \ x3b \ x0a \ <nl> + \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x74 \ x68 \ x69 \ x73 \ <nl> + \ x2e \ x6f \ x70 \ x65 \ x6e \ x55 \ x72 \ x6c \ x28 \ x61 \ x72 \ x67 \ x75 \ x6d \ x65 \ x6e \ <nl> + \ x74 \ x73 \ x5b \ x30 \ x5d \ x2c \ x20 \ x7b \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> + \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x6f \ x70 \ x65 \ x72 \ x61 \ x74 \ x69 \ <nl> + \ x6f \ x6e \ x3a \ x20 \ x61 \ x72 \ x67 \ x75 \ x6d \ x65 \ x6e \ x74 \ x73 \ x5b \ x31 \ x5d \ <nl> + \ x2c \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> + \ x20 \ x20 \ x64 \ x61 \ x74 \ x61 \ x3a \ x20 \ x61 \ x72 \ x67 \ x75 \ x6d \ x65 \ x6e \ x74 \ <nl> + \ x73 \ x5b \ x32 \ x5d \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> + \ x20 \ x20 \ x20 \ x20 \ x20 \ x7d \ x2c \ x20 \ x74 \ x68 \ x69 \ x73 \ x2e \ x73 \ x65 \ x74 \ <nl> + \ x74 \ x69 \ x6e \ x67 \ x73 \ x29 \ x3b \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> + \ x20 \ x20 \ x20 \ x20 \ x72 \ x65 \ x74 \ x75 \ x72 \ x6e \ x3b \ x0a \ x20 \ x20 \ x20 \ x20 \ <nl> + \ x20 \ x20 \ x20 \ x20 \ x7d \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x74 \ x68 \ <nl> + \ x72 \ x6f \ x77 \ x20 \ x22 \ x57 \ x72 \ x6f \ x6e \ x67 \ x20 \ x75 \ x73 \ x65 \ x20 \ x6f \ <nl> + \ x66 \ x20 \ x57 \ x65 \ x62 \ x50 \ x61 \ x67 \ x65 \ x23 \ x6f \ x70 \ x65 \ x6e \ x22 \ x3b \ <nl> + \ x0a \ x20 \ x20 \ x20 \ x20 \ x7d \ x3b \ x0a \ x0a \ x20 \ x20 \ x20 \ x20 \ x70 \ x61 \ x67 \ <nl> + \ x65 \ x2e \ x69 \ x6e \ x63 \ x6c \ x75 \ x64 \ x65 \ x4a \ x73 \ x20 \ x3d \ x20 \ x66 \ x75 \ <nl> + \ x6e \ x63 \ x74 \ x69 \ x6f \ x6e \ x28 \ x73 \ x63 \ x72 \ x69 \ x70 \ x74 \ x55 \ x72 \ x6c \ <nl> + \ x2c \ x20 \ x6f \ x6e \ x53 \ x63 \ x72 \ x69 \ x70 \ x74 \ x4c \ x6f \ x61 \ x64 \ x65 \ x64 \ <nl> + \ x29 \ x20 \ x7b \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x2f \ x2f \ x20 \ x52 \ <nl> + \ x65 \ x67 \ x69 \ x73 \ x74 \ x65 \ x72 \ x20 \ x74 \ x65 \ x6d \ x70 \ x6f \ x72 \ x61 \ x72 \ <nl> + \ x79 \ x20 \ x73 \ x69 \ x67 \ x6e \ x61 \ x6c \ x20 \ x68 \ x61 \ x6e \ x64 \ x6c \ x65 \ x72 \ <nl> + \ x20 \ x66 \ x6f \ x72 \ x20 \ x27 \ x61 \ x6c \ x65 \ x72 \ x74 \ x28 \ x29 \ x27 \ x0a \ x20 \ <nl> + \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x74 \ x68 \ x69 \ x73 \ x2e \ x6a \ x61 \ x76 \ x61 \ <nl> + \ x53 \ x63 \ x72 \ x69 \ x70 \ x74 \ x41 \ x6c \ x65 \ x72 \ x74 \ x53 \ x65 \ x6e \ x74 \ x2e \ <nl> + \ x63 \ x6f \ x6e \ x6e \ x65 \ x63 \ x74 \ x28 \ x66 \ x75 \ x6e \ x63 \ x74 \ x69 \ x6f \ x6e \ <nl> + \ x28 \ x6d \ x73 \ x67 \ x46 \ x72 \ x6f \ x6d \ x41 \ x6c \ x65 \ x72 \ x74 \ x29 \ x20 \ x7b \ <nl> + \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x69 \ x66 \ x20 \ <nl> + \ x28 \ x20 \ x6d \ x73 \ x67 \ x46 \ x72 \ x6f \ x6d \ x41 \ x6c \ x65 \ x72 \ x74 \ x20 \ x3d \ <nl> + \ x3d \ x3d \ x20 \ x73 \ x63 \ x72 \ x69 \ x70 \ x74 \ x55 \ x72 \ x6c \ x20 \ x29 \ x20 \ x7b \ <nl> + \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> + \ x20 \ x2f \ x2f \ x20 \ x52 \ x65 \ x73 \ x6f \ x75 \ x72 \ x63 \ x65 \ x20 \ x6c \ x6f \ x61 \ <nl> + \ x64 \ x65 \ x64 \ x2c \ x20 \ x74 \ x69 \ x6d \ x65 \ x20 \ x74 \ x6f \ x20 \ x66 \ x69 \ x72 \ <nl> + \ x65 \ x20 \ x74 \ x68 \ x65 \ x20 \ x63 \ x61 \ x6c \ x6c \ x62 \ x61 \ x63 \ x6b \ x0a \ x20 \ <nl> + \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x6f \ <nl> + \ x6e \ x53 \ x63 \ x72 \ x69 \ x70 \ x74 \ x4c \ x6f \ x61 \ x64 \ x65 \ x64 \ x28 \ x73 \ x63 \ <nl> + \ x72 \ x69 \ x70 \ x74 \ x55 \ x72 \ x6c \ x29 \ x3b \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> + \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x2f \ x2f \ x20 \ x41 \ x6e \ x64 \ <nl> + \ x20 \ x64 \ x69 \ x73 \ x63 \ x6f \ x6e \ x6e \ x65 \ x63 \ x74 \ x20 \ x74 \ x68 \ x65 \ x20 \ <nl> + \ x73 \ x69 \ x67 \ x6e \ x61 \ x6c \ x20 \ x68 \ x61 \ x6e \ x64 \ x6c \ x65 \ x72 \ x0a \ x20 \ <nl> + \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x74 \ <nl> + \ x72 \ x79 \ x20 \ x7b \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> + \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x74 \ x68 \ x69 \ x73 \ x2e \ x6a \ x61 \ <nl> + \ x76 \ x61 \ x53 \ x63 \ x72 \ x69 \ x70 \ x74 \ x41 \ x6c \ x65 \ x72 \ x74 \ x53 \ x65 \ x6e \ <nl> + \ x74 \ x2e \ x64 \ x69 \ x73 \ x63 \ x6f \ x6e \ x6e \ x65 \ x63 \ x74 \ x28 \ x61 \ x72 \ x67 \ <nl> + \ x75 \ x6d \ x65 \ x6e \ x74 \ x73 \ x2e \ x63 \ x61 \ x6c \ x6c \ x65 \ x65 \ x29 \ x3b \ x0a \ <nl> + \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> + \ x7d \ x20 \ x63 \ x61 \ x74 \ x63 \ x68 \ x20 \ x28 \ x65 \ x29 \ x20 \ x7b \ x7d \ x0a \ x20 \ <nl> + \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x7d \ x0a \ x20 \ x20 \ x20 \ <nl> + \ x20 \ x20 \ x20 \ x20 \ x20 \ x7d \ x29 \ x3b \ x0a \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ <nl> + \ x20 \ x20 \ x2f \ x2f \ x20 \ x41 \ x70 \ x70 \ x65 \ x6e \ x64 \ x20 \ x74 \ x68 \ x65 \ x20 \ <nl> + \ x73 \ x63 \ x72 \ x69 \ x70 \ x74 \ x20 \ x74 \ x61 \ x67 \ x20 \ x74 \ x6f \ x20 \ x74 \ x68 \ <nl> + \ x65 \ x20 \ x62 \ x6f \ x64 \ x79 \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x74 \ <nl> + \ x68 \ x69 \ x73 \ x2e \ x5f \ x61 \ x70 \ x70 \ x65 \ x6e \ x64 \ x53 \ x63 \ x72 \ x69 \ x70 \ <nl> + \ x74 \ x45 \ x6c \ x65 \ x6d \ x65 \ x6e \ x74 \ x28 \ x73 \ x63 \ x72 \ x69 \ x70 \ x74 \ x55 \ <nl> + \ x72 \ x6c \ x29 \ x3b \ x0a \ x20 \ x20 \ x20 \ x20 \ x7d \ x3b \ x0a \ x0a \ x20 \ x20 \ x20 \ <nl> + \ x20 \ x70 \ x61 \ x67 \ x65 \ x2e \ x64 \ x65 \ x73 \ x74 \ x72 \ x6f \ x79 \ x20 \ x3d \ x20 \ <nl> + \ x66 \ x75 \ x6e \ x63 \ x74 \ x69 \ x6f \ x6e \ x28 \ x29 \ x20 \ x7b \ x0a \ x20 \ x20 \ x20 \ <nl> + \ x20 \ x20 \ x20 \ x20 \ x20 \ x70 \ x68 \ x61 \ x6e \ x74 \ x6f \ x6d \ x2e \ x5f \ x64 \ x65 \ <nl> + \ x73 \ x74 \ x72 \ x6f \ x79 \ x28 \ x70 \ x61 \ x67 \ x65 \ x29 \ x3b \ x0a \ x20 \ x20 \ x20 \ <nl> + \ x20 \ x7d \ x3b \ x0a \ x0a \ x20 \ x20 \ x20 \ x20 \ x72 \ x65 \ x74 \ x75 \ x72 \ x6e \ x20 \ <nl> + \ x70 \ x61 \ x67 \ x65 \ x3b \ x0a \ x7d \ x3b \ x0a \ x0a \ x2f \ x2f \ x20 \ x4d \ x61 \ x6b \ <nl> + \ x65 \ x20 \ x22 \ x66 \ x73 \ x2e \ x6f \ x70 \ x65 \ x6e \ x22 \ x20 \ x74 \ x68 \ x72 \ x6f \ <nl> + \ x77 \ x20 \ x61 \ x6e \ x20 \ x65 \ x78 \ x63 \ x65 \ x70 \ x74 \ x69 \ x6f \ x6e \ x20 \ x69 \ <nl> + \ x6e \ x20 \ x63 \ x61 \ x73 \ x65 \ x20 \ x69 \ x74 \ x20 \ x66 \ x61 \ x69 \ x6c \ x73 \ x0a \ <nl> + \ x77 \ x69 \ x6e \ x64 \ x6f \ x77 \ x2e \ x66 \ x73 \ x2e \ x6f \ x70 \ x65 \ x6e \ x20 \ x3d \ <nl> + \ x20 \ x66 \ x75 \ x6e \ x63 \ x74 \ x69 \ x6f \ x6e \ x28 \ x70 \ x61 \ x74 \ x68 \ x2c \ x20 \ <nl> + \ x6d \ x6f \ x64 \ x65 \ x29 \ x20 \ x7b \ x0a \ x20 \ x20 \ x20 \ x20 \ x76 \ x61 \ x72 \ x20 \ <nl> + \ x66 \ x69 \ x6c \ x65 \ x20 \ x3d \ x20 \ x77 \ x69 \ x6e \ x64 \ x6f \ x77 \ x2e \ x66 \ x73 \ <nl> + \ x2e \ x5f \ x6f \ x70 \ x65 \ x6e \ x28 \ x70 \ x61 \ x74 \ x68 \ x2c \ x20 \ x6d \ x6f \ x64 \ <nl> + \ x65 \ x29 \ x3b \ x0a \ x20 \ x20 \ x20 \ x20 \ x69 \ x66 \ x20 \ x28 \ x66 \ x69 \ x6c \ x65 \ <nl> + \ x29 \ x20 \ x7b \ x0a \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x20 \ x72 \ x65 \ x74 \ x75 \ <nl> + \ x72 \ x6e \ x20 \ x66 \ x69 \ x6c \ x65 \ x3b \ x0a \ x20 \ x20 \ x20 \ x20 \ x7d \ x0a \ x20 \ <nl> + \ x20 \ x20 \ x20 \ x74 \ x68 \ x72 \ x6f \ x77 \ x20 \ x22 \ x55 \ x6e \ x61 \ x62 \ x6c \ x65 \ <nl> + \ x20 \ x74 \ x6f \ x20 \ x6f \ x70 \ x65 \ x6e \ x20 \ x66 \ x69 \ x6c \ x65 \ x20 \ x27 \ x22 \ <nl> + \ x2b \ x20 \ x70 \ x61 \ x74 \ x68 \ x20 \ x2b \ x22 \ x27 \ x22 \ x3b \ x0a \ x7d \ x3b \ x0a \ <nl> + \ <nl> \ x00 \ x00 \ x56 \ x27 \ <nl> \ x89 \ <nl> \ x50 \ x4e \ x47 \ x0d \ x0a \ x1a \ x0a \ x00 \ x00 \ x00 \ x0d \ x49 \ x48 \ x44 \ x52 \ x00 \ <nl> <nl> \ x00 \ x00 \ x00 \ x00 \ x00 \ x02 \ x00 \ x00 \ x00 \ x02 \ x00 \ x00 \ x00 \ x01 \ <nl> \ x00 \ x00 \ x00 \ x00 \ x00 \ x00 \ x00 \ x00 \ x00 \ x01 \ x00 \ x00 \ x00 \ x00 \ <nl> \ x00 \ x00 \ x00 \ x1e \ x00 \ x02 \ x00 \ x00 \ x00 \ x02 \ x00 \ x00 \ x00 \ x03 \ <nl> - \ x00 \ x00 \ x00 \ x64 \ x00 \ x01 \ x00 \ x00 \ x00 \ x01 \ x00 \ x00 \ x62 \ x93 \ <nl> - \ x00 \ x00 \ x00 \ x36 \ x00 \ x00 \ x00 \ x00 \ x00 \ x01 \ x00 \ x00 \ x0c \ x68 \ <nl> + \ x00 \ x00 \ x00 \ x64 \ x00 \ x01 \ x00 \ x00 \ x00 \ x01 \ x00 \ x00 \ x63 \ x40 \ <nl> + \ x00 \ x00 \ x00 \ x36 \ x00 \ x00 \ x00 \ x00 \ x00 \ x01 \ x00 \ x00 \ x0d \ x15 \ <nl> " <nl> <nl> def qInitResources ( ) : <nl> mmm a / python / pyphantomjs / utils . py <nl> ppp b / python / pyphantomjs / utils . py <nl> <nl> QtCriticalMsg , QtFatalMsg , qDebug <nl> <nl> from csconverter import CSConverter <nl> - from plugincontroller import Bunch , do_action <nl> + from plugincontroller import do_action <nl> <nl> <nl> version_major , version_minor , version_patch = ( 1 , 3 , 0 ) <nl> def argParser ( ) : <nl> help = ' show this program \ ' s version and license ' <nl> ) <nl> <nl> - do_action ( ' ArgParser ' , Bunch ( locals ( ) ) ) <nl> + do_action ( ' ArgParser ' ) <nl> <nl> return parser <nl> <nl> mmm a / python / pyphantomjs / webpage . py <nl> ppp b / python / pyphantomjs / webpage . py <nl> <nl> from PyQt4 . QtWebKit import QWebSettings , QWebPage <nl> from PyQt4 . QtNetwork import QNetworkAccessManager , QNetworkRequest <nl> <nl> - from plugincontroller import Bunch , do_action <nl> + from plugincontroller import do_action <nl> from utils import injectJsInFrame <nl> <nl> <nl> def __init__ ( self , parent = None ) : <nl> <nl> self . m_uploadFile = ' ' <nl> <nl> - do_action ( ' CustomPageInit ' , Bunch ( locals ( ) ) ) <nl> + do_action ( ' CustomPageInit ' ) <nl> <nl> def chooseFile ( self , originatingFrame , oldFile ) : <nl> return self . m_uploadFile <nl> def javaScriptConsoleMessage ( self , message , lineNumber , sourceID ) : <nl> def userAgentForUrl ( self , url ) : <nl> return self . m_userAgent <nl> <nl> - do_action ( ' CustomPage ' , Bunch ( locals ( ) ) ) <nl> + do_action ( ' CustomPage ' ) <nl> <nl> <nl> class WebPage ( QObject ) : <nl> def __init__ ( self , parent = None ) : <nl> <nl> self . m_webPage . setViewportSize ( QSize ( 400 , 300 ) ) <nl> <nl> - do_action ( ' WebPageInit ' , Bunch ( locals ( ) ) ) <nl> + do_action ( ' WebPageInit ' ) <nl> <nl> def applySettings ( self , defaults ) : <nl> opt = self . m_webPage . settings ( ) <nl> def clipRect ( self ) : <nl> <nl> @ clipRect . setter <nl> def clipRect ( self , size ) : <nl> - names = ( ' width ' , ' height ' , ' top ' , ' left ' ) <nl> - for item in names : <nl> + sizes = { ' width ' : 0 , ' height ' : 0 , ' top ' : 0 , ' left ' : 0 } <nl> + for item in sizes . keys ( ) : <nl> try : <nl> - globals ( ) [ item ] = int ( size [ item ] ) <nl> - if globals ( ) [ item ] < 0 : <nl> + sizes [ item ] = int ( size [ item ] ) <nl> + if sizes [ item ] < 0 : <nl> if item not in ( ' top ' , ' left ' ) : <nl> - globals ( ) [ item ] = 0 <nl> - except KeyError : <nl> - globals ( ) [ item ] = getattr ( self . m_clipRect , item ) ( ) <nl> + sizes [ item ] = 0 <nl> + except ( KeyError , ValueError ) : <nl> + sizes [ item ] = self . clipRect [ item ] <nl> <nl> - self . m_clipRect = QRect ( left , top , width , height ) <nl> + self . m_clipRect = QRect ( sizes [ ' left ' ] , sizes [ ' top ' ] , sizes [ ' width ' ] , sizes [ ' height ' ] ) <nl> <nl> @ pyqtProperty ( str ) <nl> def content ( self ) : <nl> def viewportSize ( self ) : <nl> <nl> @ viewportSize . setter <nl> def viewportSize ( self , size ) : <nl> - names = ( ' width ' , ' height ' ) <nl> - for item in names : <nl> + sizes = { ' width ' : 0 , ' height ' : 0 } <nl> + for item in sizes . keys ( ) : <nl> try : <nl> - globals ( ) [ item ] = int ( size [ item ] ) <nl> - if globals ( ) [ item ] < 0 : <nl> - globals ( ) [ item ] = 0 <nl> - except KeyError : <nl> - globals ( ) [ item ] = getattr ( self . m_webPage . viewportSize ( ) , item ) ( ) <nl> + sizes [ item ] = int ( size [ item ] ) <nl> + if sizes [ item ] < 0 : <nl> + sizes [ item ] = 0 <nl> + except ( KeyError , ValueError ) : <nl> + sizes [ item ] = self . viewportSize [ item ] <nl> <nl> - self . m_webPage . setViewportSize ( QSize ( width , height ) ) <nl> + self . m_webPage . setViewportSize ( QSize ( sizes [ ' width ' ] , sizes [ ' height ' ] ) ) <nl> <nl> - do_action ( ' WebPage ' , Bunch ( locals ( ) ) ) <nl> + do_action ( ' WebPage ' ) <nl> mmm a / python / setup . py <nl> ppp b / python / setup . py <nl> def read ( fname ) : <nl> <nl> <nl> README = read ( ' README . md ' ) <nl> - INSTALL = ' ' ' <nl> - INSTALLING <nl> mmmmmmmmmmmmmmmmmm - - <nl> - % s ' ' ' % read ( ' INSTALL . md ' ) <nl> + INSTALL = read ( ' INSTALL . md ' ) <nl> <nl> index = README . find ( ' LICENSING ' ) <nl> if index > - 1 : <nl> mmm a / src / bootstrap . js <nl> ppp b / src / bootstrap . js <nl> window . WebPage = function ( ) { <nl> this . openUrl ( arguments [ 0 ] , ' get ' , this . settings ) ; <nl> return ; <nl> } <nl> - if ( arguments . length = = = 2 ) { <nl> + if ( arguments . length = = = 2 & & typeof arguments [ 1 ] = = = ' function ' ) { <nl> this . onLoadFinished = arguments [ 1 ] ; <nl> this . openUrl ( arguments [ 0 ] , ' get ' , this . settings ) ; <nl> return ; <nl> + } else if ( arguments . length = = = 2 ) { <nl> + this . openUrl ( arguments [ 0 ] , arguments [ 1 ] , this . settings ) ; <nl> + return ; <nl> } else if ( arguments . length = = = 3 & & typeof arguments [ 2 ] = = = ' function ' ) { <nl> this . onLoadFinished = arguments [ 2 ] ; <nl> this . openUrl ( arguments [ 0 ] , arguments [ 1 ] , this . settings ) ; <nl> return ; <nl> - } else if ( arguments . length = = = 3 ) { <nl> + } else if ( arguments . length = = = 3 ) { <nl> this . openUrl ( arguments [ 0 ] , { <nl> operation : arguments [ 1 ] , <nl> data : arguments [ 2 ] <nl> | Merge pull request from Roejames12 / master | ariya/phantomjs | e88e31554bbd23446edb3bf9c01bb1b6d8bf5d0e | 2011-07-05T02:10:15Z |
mmm a / dbms / include / DB / Core / Field . h <nl> ppp b / dbms / include / DB / Core / Field . h <nl> using Poco : : SharedPtr ; <nl> / * * 32 хватает с запасом ( достаточно 28 ) , но выбрано круглое число , <nl> * чтобы арифметика при использовании массивов из Field была проще ( не содержала умножения ) . <nl> * / <nl> - # define DBMS_TOTAL_FIELD_SIZE 32 <nl> + # define DBMS_MIN_FIELD_SIZE 32 <nl> <nl> <nl> / * * Discriminated union из нескольких типов . <nl> using Poco : : SharedPtr ; <nl> * Используется для представления единичного значения одного из нескольких типов в оперативке . <nl> * Внимание ! Предпочтительно вместо единичных значений хранить кусочки столбцов . См . Column . h <nl> * / <nl> - class __attribute__ ( ( aligned ( DBMS_TOTAL_FIELD_SIZE ) ) ) Field <nl> + class Field <nl> { <nl> public : <nl> struct Types <nl> class __attribute__ ( ( aligned ( DBMS_TOTAL_FIELD_SIZE ) ) ) Field <nl> } <nl> <nl> private : <nl> - / / / Хватает с запасом <nl> - static const size_t storage_size = DBMS_TOTAL_FIELD_SIZE - sizeof ( Types : : Which ) ; <nl> - <nl> - BOOST_STATIC_ASSERT ( storage_size > = sizeof ( Null ) ) ; <nl> - BOOST_STATIC_ASSERT ( storage_size > = sizeof ( UInt64 ) ) ; <nl> - BOOST_STATIC_ASSERT ( storage_size > = sizeof ( Int64 ) ) ; <nl> - BOOST_STATIC_ASSERT ( storage_size > = sizeof ( Float64 ) ) ; <nl> - BOOST_STATIC_ASSERT ( storage_size > = sizeof ( String ) ) ; <nl> - BOOST_STATIC_ASSERT ( storage_size > = sizeof ( Array ) ) ; <nl> - BOOST_STATIC_ASSERT ( storage_size > = sizeof ( Tuple ) ) ; <nl> + static const size_t storage_size = std : : max ( { <nl> + DBMS_MIN_FIELD_SIZE - sizeof ( Types : : Which ) , <nl> + sizeof ( Null ) , sizeof ( UInt64 ) , sizeof ( Int64 ) , sizeof ( Float64 ) , sizeof ( String ) , sizeof ( Array ) , sizeof ( Tuple ) } ) ; <nl> <nl> char storage [ storage_size ] __attribute__ ( ( aligned ( 8 ) ) ) ; <nl> Types : : Which which ; <nl> class __attribute__ ( ( aligned ( DBMS_TOTAL_FIELD_SIZE ) ) ) Field <nl> } <nl> } ; <nl> <nl> - # undef DBMS_TOTAL_FIELD_SIZE <nl> + # undef DBMS_MIN_FIELD_SIZE <nl> <nl> <nl> template < > struct Field : : TypeToEnum < Null > { static const Types : : Which value = Types : : Null ; } ; <nl> | dbms : allowed to compile with standard library with large sizeof ( std : : string ) [ # METR - 19609 ] . | ClickHouse/ClickHouse | 0c592b05bac27978f8460dd071779f069b29122c | 2016-01-14T01:43:14Z |
mmm a / include / spdlog / fmt / fmt . h <nl> ppp b / include / spdlog / fmt / fmt . h <nl> <nl> # ifndef FMT_USE_WINDOWS_H <nl> # define FMT_USE_WINDOWS_H 0 <nl> # endif <nl> + / / enable the ' n ' flag in for backward compatibility with fmt 6 . x <nl> + # define FMT_DEPRECATED_N_SPECIFIER <nl> # include < spdlog / fmt / bundled / core . h > <nl> # include < spdlog / fmt / bundled / format . h > <nl> # else / / SPDLOG_FMT_EXTERNAL is defined - use external fmtlib <nl> | enable the ' n ' flag in for backward compatibility with fmt 6 . x | gabime/spdlog | dfc777803ae9a99c35b465f748bb19c53957d169 | 2020-08-30T12:58:22Z |
mmm a / src / mongo / db / queryoptimizer . cpp <nl> ppp b / src / mongo / db / queryoptimizer . cpp <nl> namespace mongo { <nl> _i ( ) , <nl> _recordedPlanPolicy ( recordedPlanPolicy ) , <nl> _hint ( hint . getOwned ( ) ) , <nl> - _tableScanned ( ) { <nl> + _tableScanned ( ) , <nl> + _doneOps ( ) { <nl> if ( ! order . isEmpty ( ) | | ! min . isEmpty ( ) | | ! max . isEmpty ( ) ) { <nl> _or = false ; <nl> } <nl> namespace mongo { <nl> } <nl> <nl> shared_ptr < QueryOp > MultiPlanScanner : : nextOp ( ) { <nl> - if ( _or ) { <nl> - return nextOpOr ( ) ; <nl> + verify ( 16093 , ! doneOps ( ) ) ; <nl> + shared_ptr < QueryOp > ret = _or ? nextOpOr ( ) : nextOpSimple ( ) ; <nl> + if ( ret - > error ( ) | | ret - > complete ( ) ) { <nl> + _doneOps = true ; <nl> } <nl> + return ret ; <nl> + } <nl> + <nl> + shared_ptr < QueryOp > MultiPlanScanner : : nextOpSimple ( ) { <nl> if ( _i = = 0 ) { <nl> assertMayRunMore ( ) ; <nl> + + _i ; <nl> } <nl> return iterateRunner ( * _baseOp ) ; <nl> } <nl> - <nl> + <nl> shared_ptr < QueryOp > MultiPlanScanner : : nextOpOr ( ) { <nl> if ( _i = = 0 ) { <nl> return nextOpBeginningClause ( ) ; <nl> mmm a / src / mongo / db / queryoptimizer . h <nl> ppp b / src / mongo / db / queryoptimizer . h <nl> namespace mongo { <nl> const BSONObj & min = BSONObj ( ) , <nl> const BSONObj & max = BSONObj ( ) ) ; <nl> <nl> - / * * Initialize or iterate a runner generated from @ param originalOp . * / <nl> - <nl> + / * * Set the initial QueryOp for QueryPlanSet iteration . * / <nl> void initialOp ( const shared_ptr < QueryOp > & originalOp ) { _baseOp = originalOp ; } <nl> + / * * <nl> + * Advance to the next QueryOp , if not doneOps ( ) . <nl> + * @ return the next non error op if there is one , otherwise an error op . <nl> + * If the returned op is complete ( ) or error ( ) , the MultiPlanScanner becomes doneOps ( ) and <nl> + * no further QueryOp iteration is possible . <nl> + * / <nl> shared_ptr < QueryOp > nextOp ( ) ; <nl> + / * * @ return true if done with QueryOp iteration . * / <nl> + bool doneOps ( ) const { return _doneOps ; } <nl> <nl> / * * <nl> * Advance to the next $ or clause ; mayRunMore ( ) must be true . <nl> * @ param currentPlan QueryPlan of the current $ or clause <nl> - * @ return best guess query plan of the next $ or clause <nl> + * @ return best guess query plan of the next $ or clause , 0 if there is no such plan . <nl> * / <nl> const QueryPlan * nextClauseBestGuessPlan ( const QueryPlan & currentPlan ) ; <nl> <nl> namespace mongo { <nl> / * * Initialize or iterate a runner generated from @ param originalOp . * / <nl> shared_ptr < QueryOp > iterateRunner ( QueryOp & originalOp , bool retried = false ) ; <nl> <nl> + shared_ptr < QueryOp > nextOpSimple ( ) ; <nl> shared_ptr < QueryOp > nextOpOr ( ) ; <nl> <nl> void updateCurrentQps ( QueryPlanSet * qps ) ; <nl> namespace mongo { <nl> shared_ptr < QueryOp > _baseOp ; <nl> shared_ptr < QueryPlanSet : : Runner > _runner ; <nl> shared_ptr < ExplainQueryInfo > _explainQueryInfo ; <nl> + bool _doneOps ; <nl> } ; <nl> <nl> / * * <nl> mmm a / src / mongo / db / queryoptimizercursorimpl . cpp <nl> ppp b / src / mongo / db / queryoptimizercursorimpl . cpp <nl> namespace mongo { <nl> if ( _currOp - > error ( ) | | ! ok ( ) ) { <nl> / / Advance to a non error op if one of the ops errored out . <nl> / / Advance to a following $ or clause if the $ or clause returned all results . <nl> + verify ( 16094 , ! _mps - > doneOps ( ) ) ; <nl> _advance ( true ) ; <nl> } <nl> } <nl> | SERVER - 4669 Check end of QueryOp iteration in MultiPlanScanner | mongodb/mongo | 5deaa6ca96547e09702780f84e72d00ee28cd4dc | 2012-03-12T20:39:31Z |
mmm a / Docker / README . md <nl> ppp b / Docker / README . md <nl> run ` docker pull eosio / eos : latest ` <nl> <nl> run ` docker - compose up ` <nl> <nl> - # # # Dawn 4 . 0 Testnet <nl> + # # # Dawn 4 . 2 Testnet <nl> <nl> - We can easily set up a Dawn 4 . 0 local testnet using docker images . Just run the following commands : <nl> + We can easily set up a Dawn 4 . 2 local testnet using docker images . Just run the following commands : <nl> <nl> Note : if you want to use the mongo db plugin , you have to enable it in your ` data - dir / config . ini ` first . <nl> <nl> docker volume create - - name = nodeos - data - volume <nl> docker volume create - - name = keosd - data - volume <nl> docker volume create - - name = mongo - data - volume <nl> # start containers <nl> - docker - compose - f docker - compose - dawn4 . 0 . yaml up - d <nl> + docker - compose - f docker - compose - dawn4 . 2 . yaml up - d <nl> # get chain info <nl> curl http : / / 127 . 0 . 0 . 1 : 8888 / v1 / chain / get_info <nl> # get logs <nl> docker - compose logs nodeosd <nl> # stop containers <nl> - docker - compose - f docker - compose - dawn4 . 0 . yaml down <nl> + docker - compose - f docker - compose - dawn4 . 2 . yaml down <nl> ` ` ` <nl> <nl> The ` blocks ` data are stored under ` - - data - dir ` by default , and the wallet files are stored under ` - - wallet - dir ` by default , of course you can change these as you want . <nl> | add dawn4 . 2 readme | EOSIO/eos | 6f40c26b406a641cd0d87eeb8d0d4f7f9d6b0fb2 | 2018-05-28T11:51:22Z |
mmm a / src / server / server . cc <nl> ppp b / src / server / server . cc <nl> void server_main ( cmd_config_t * cmd_config , thread_pool_t * thread_pool ) { <nl> / * Pointers to our stores these are allocated dynamically so <nl> that we have explicit control of when and where their <nl> destructors get called * / <nl> - replication : : slave_t * slave_store = NULL ; <nl> + boost : : scoped_ptr < replication : : slave_t > slave_store ; <nl> <nl> / * Start logger * / <nl> log_controller_t log_controller ; <nl> void server_main ( cmd_config_t * cmd_config , thread_pool_t * thread_pool ) { <nl> / * Are we a replication slave ? * / <nl> if ( cmd_config - > replication_config . active ) { <nl> logINF ( " Starting up as a slave . . . \ n " ) ; <nl> - slave_store = new replication : : slave_t ( & store , cmd_config - > replication_config , cmd_config - > failover_config ) ; <nl> - server . set_store = slave_store ; <nl> + slave_store . reset ( new replication : : slave_t ( & store , cmd_config - > replication_config , cmd_config - > failover_config ) ) ; <nl> + server . set_store = slave_store . get ( ) ; <nl> } else { <nl> server . set_store = & store ; / * So things can access it * / <nl> } <nl> void server_main ( cmd_config_t * cmd_config , thread_pool_t * thread_pool ) { <nl> logERR ( " Port % d is already in use - - aborting . \ n " , cmd_config - > port ) ; / / TODO move into the conn_acceptor <nl> } <nl> <nl> - if ( slave_store ) <nl> - delete slave_store ; <nl> - <nl> / / store destructor called here <nl> logINF ( " Waiting for changes to flush to disk . . . \ n " ) ; <nl> } else { <nl> | Made slave_store ( in server_main ) be contained by a scoped_ptr . | rethinkdb/rethinkdb | f3736ddc5d65964c9904f5cfc1addbb6ca98dd2b | 2011-03-31T23:49:38Z |
mmm a / modules / highgui / src / window_w32 . cpp <nl> ppp b / modules / highgui / src / window_w32 . cpp <nl> MainWindowProc ( HWND hwnd , UINT uMsg , WPARAM wParam , LPARAM lParam ) <nl> <nl> switch ( uMsg ) <nl> { <nl> + case WM_COPY : <nl> + : : WindowProc ( hwnd , uMsg , wParam , lParam ) ; / / call highgui proc . There may be a better way to do this . <nl> + break ; <nl> + <nl> case WM_DESTROY : <nl> <nl> icvRemoveWindow ( window ) ; <nl> static LRESULT CALLBACK HighGUIProc ( HWND hwnd , UINT uMsg , WPARAM wParam , LPARAM <nl> / / Process the message <nl> switch ( uMsg ) <nl> { <nl> + case WM_COPY : <nl> + { <nl> + if ( ! : : OpenClipboard ( hwnd ) ) <nl> + break ; <nl> + <nl> + HDC hDC = 0 ; <nl> + HDC memDC = 0 ; <nl> + HBITMAP memBM = 0 ; <nl> + <nl> + / / We ' ll use a do - while ( 0 ) { } scope as a single - run breakable scope <nl> + / / Upon any error we can jump out of the single - time while scope to clean up the resources . <nl> + do <nl> + { <nl> + if ( ! : : EmptyClipboard ( ) ) <nl> + break ; <nl> + <nl> + if ( ! window - > image ) <nl> + break ; <nl> + <nl> + / / Get window device context <nl> + if ( 0 = = ( hDC = : : GetDC ( hwnd ) ) ) <nl> + break ; <nl> + <nl> + / / Create another DC compatible with hDC <nl> + if ( 0 = = ( memDC = : : CreateCompatibleDC ( hDC ) ) ) <nl> + break ; <nl> + <nl> + / / Determine the bitmap ' s dimensions <nl> + int nchannels = 3 ; <nl> + SIZE size = { 0 , 0 } ; <nl> + icvGetBitmapData ( window , & size , & nchannels , 0 ) ; <nl> + <nl> + / / Create bitmap to draw on and it in the new DC <nl> + if ( 0 = = ( memBM = : : CreateCompatibleBitmap ( hDC , size . cx , size . cy ) ) ) <nl> + break ; <nl> + <nl> + if ( ! : : SelectObject ( memDC , memBM ) ) <nl> + break ; <nl> + <nl> + / / Begin drawing to DC <nl> + if ( ! : : SetStretchBltMode ( memDC , COLORONCOLOR ) ) <nl> + break ; <nl> + <nl> + RGBQUAD table [ 256 ] ; <nl> + if ( 1 = = nchannels ) <nl> + { <nl> + for ( int i = 0 ; i < 256 ; + + i ) <nl> + { <nl> + table [ i ] . rgbBlue = ( unsigned char ) i ; <nl> + table [ i ] . rgbGreen = ( unsigned char ) i ; <nl> + table [ i ] . rgbRed = ( unsigned char ) i ; <nl> + } <nl> + if ( ! : : SetDIBColorTable ( window - > dc , 0 , 255 , table ) ) <nl> + break ; <nl> + } <nl> + <nl> + / / The image copied to the clipboard will be in its original size , regardless if the window itself was resized . <nl> + <nl> + / / Render the image to the dc / bitmap ( at original size ) . <nl> + if ( ! : : BitBlt ( memDC , 0 , 0 , size . cx , size . cy , window - > dc , 0 , 0 , SRCCOPY ) ) <nl> + break ; <nl> + <nl> + / / Finally , set bitmap to clipboard <nl> + : : SetClipboardData ( CF_BITMAP , memBM ) ; <nl> + } while ( 0 , 0 ) ; / / ( 0 , 0 ) instead of ( 0 ) to avoid MSVC compiler warning C4127 : " conditional expression is constant " <nl> + <nl> + / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <nl> + / / if handle is allocated ( i . e . ! = 0 ) then clean - up . <nl> + memBM & & : : DeleteObject ( memBM ) ; <nl> + memDC & & : : DeleteDC ( memDC ) ; <nl> + hDC & & : : ReleaseDC ( hwnd , hDC ) ; <nl> + : : CloseClipboard ( ) ; <nl> + break ; <nl> + } <nl> + <nl> case WM_WINDOWPOSCHANGING : <nl> { <nl> LPWINDOWPOS pos = ( LPWINDOWPOS ) lParam ; <nl> cvWaitKey ( int delay ) <nl> is_processed = 1 ; <nl> return ( int ) ( message . wParam < < 16 ) ; <nl> } <nl> + <nl> + / / Intercept Ctrl + C for copy to clipboard <nl> + if ( ' C ' = = message . wParam & & ( : : GetKeyState ( VK_CONTROL ) > > 15 ) ) <nl> + : : PostMessage ( message . hwnd , WM_COPY , 0 , 0 ) ; <nl> + <nl> default : <nl> DispatchMessage ( & message ) ; <nl> is_processed = 1 ; <nl> | [ HighGUI ] On Windows : Support Ctrl + C to copy image to clipboard . | opencv/opencv | 68827072c903e4cee6c9bd683f71294521051c09 | 2014-07-03T19:29:43Z |
mmm a / hphp / runtime / vm / func . cpp <nl> ppp b / hphp / runtime / vm / func . cpp <nl> FuncEmitter : : FuncEmitter ( UnitEmitter & ue , int sn , Id id , const StringData * n ) <nl> , m_numIterators ( 0 ) <nl> , m_nextFreeIterator ( 0 ) <nl> , m_retTypeConstraint ( nullptr ) <nl> + , m_ehTabSorted ( false ) <nl> , m_returnType ( KindOfInvalid ) <nl> , m_top ( false ) <nl> , m_isClosureBody ( false ) <nl> FuncEmitter : : FuncEmitter ( UnitEmitter & ue , int sn , const StringData * n , <nl> , m_numIterators ( 0 ) <nl> , m_nextFreeIterator ( 0 ) <nl> , m_retTypeConstraint ( nullptr ) <nl> + , m_ehTabSorted ( false ) <nl> , m_returnType ( KindOfInvalid ) <nl> , m_top ( false ) <nl> , m_isClosureBody ( false ) <nl> void FuncEmitter : : finish ( Offset past , bool load ) { <nl> } <nl> <nl> EHEnt & FuncEmitter : : addEHEnt ( ) { <nl> + assert ( ! m_ehTabSorted <nl> + | | " should only mark the ehtab as sorted after adding all of them " ) ; <nl> m_ehtab . push_back ( EHEnt ( ) ) ; <nl> + m_ehtab . back ( ) . m_parentIndex = 7777 ; <nl> return m_ehtab . back ( ) ; <nl> } <nl> <nl> + void FuncEmitter : : setEhTabIsSorted ( ) { <nl> + m_ehTabSorted = true ; <nl> + if ( ! debug ) return ; <nl> + <nl> + Offset curBase = 0 ; <nl> + for ( size_t i = 0 ; i < m_ehtab . size ( ) ; + + i ) { <nl> + auto & eh = m_ehtab [ i ] ; <nl> + <nl> + / / Base offsets must be monotonically increasing . <nl> + always_assert ( curBase < = eh . m_base ) ; <nl> + curBase = eh . m_base ; <nl> + <nl> + / / Parent should come before , and must enclose this guy . <nl> + always_assert ( eh . m_parentIndex = = - 1 | | eh . m_parentIndex < i ) ; <nl> + if ( eh . m_parentIndex ! = - 1 ) { <nl> + auto & parent = m_ehtab [ eh . m_parentIndex ] ; <nl> + always_assert ( parent . m_base < = eh . m_base & & <nl> + parent . m_past > = eh . m_past ) ; <nl> + } <nl> + } <nl> + } <nl> + <nl> FPIEnt & FuncEmitter : : addFPIEnt ( ) { <nl> m_fpitab . push_back ( FPIEnt ( ) ) ; <nl> return m_fpitab . back ( ) ; <nl> struct EHEntComp { <nl> } <nl> <nl> void FuncEmitter : : sortEHTab ( ) { <nl> + if ( m_ehTabSorted ) return ; <nl> + <nl> std : : sort ( m_ehtab . begin ( ) , m_ehtab . end ( ) , EHEntComp ( ) ) ; <nl> <nl> for ( unsigned int i = 0 ; i < m_ehtab . size ( ) ; i + + ) { <nl> void FuncEmitter : : sortEHTab ( ) { <nl> } <nl> } <nl> } <nl> + <nl> + setEhTabIsSorted ( ) ; <nl> } <nl> <nl> void FuncEmitter : : sortFPITab ( bool load ) { <nl> / / Sort it and fill in parent info <nl> - std : : sort ( m_fpitab . begin ( ) , m_fpitab . end ( ) , FPIEntComp ( ) ) ; <nl> + std : : sort ( <nl> + begin ( m_fpitab ) , end ( m_fpitab ) , <nl> + [ & ] ( const FPIEnt & a , const FPIEnt & b ) { <nl> + return a . m_fpushOff < b . m_fpushOff ; <nl> + } <nl> + ) ; <nl> for ( unsigned int i = 0 ; i < m_fpitab . size ( ) ; i + + ) { <nl> m_fpitab [ i ] . m_parentIndex = - 1 ; <nl> m_fpitab [ i ] . m_fpiDepth = 1 ; <nl> void FuncRepoProxy : : GetFuncsStmt <nl> assert ( fe - > sn ( ) = = funcSn ) ; <nl> fe - > setTop ( top ) ; <nl> fe - > serdeMetaData ( extraBlob ) ; <nl> + fe - > setEhTabIsSorted ( ) ; <nl> fe - > finish ( fe - > past ( ) , true ) ; <nl> ue . recordFunction ( fe ) ; <nl> } <nl> mmm a / hphp / runtime / vm / func . h <nl> ppp b / hphp / runtime / vm / func . h <nl> class FuncEmitter { <nl> <nl> EHEnt & addEHEnt ( ) ; <nl> FPIEnt & addFPIEnt ( ) ; <nl> + void setEhTabIsSorted ( ) ; <nl> <nl> Id newLocal ( ) ; <nl> void appendParam ( const StringData * name , const ParamInfo & info ) ; <nl> class FuncEmitter { <nl> const StringData * m_retTypeConstraint ; <nl> <nl> EHEntVec m_ehtab ; <nl> + bool m_ehTabSorted ; <nl> FPIEntVec m_fpitab ; <nl> <nl> Attr m_attrs ; <nl> mmm a / hphp / runtime / vm / unit . h <nl> ppp b / hphp / runtime / vm / unit . h <nl> class EHEnt { <nl> ( m_iterId ) <nl> ( m_fault ) <nl> ( m_itRef ) <nl> - / / eh . m_parentIndex is re - computed in sortEHTab , not serialized . <nl> + ( m_parentIndex ) <nl> ; <nl> if ( m_type = = Type : : Catch ) { <nl> sd ( m_catches ) ; <nl> class FPIEnt { <nl> } <nl> } ; <nl> <nl> - class FPIEntComp { <nl> - public : <nl> - bool operator ( ) ( const FPIEnt & fpi1 , const FPIEnt & fpi2 ) { <nl> - return fpi1 . m_fpushOff < fpi2 . m_fpushOff ; <nl> - } <nl> - } ; <nl> - <nl> class SourceLoc { <nl> public : <nl> SourceLoc ( ) : line0 ( 1 ) , char0 ( 1 ) , line1 ( 1 ) , char1 ( 1 ) { } <nl> | Support already - sorted EHTabs in FuncEmitter . | facebook/hhvm | 2f21d4d3a18c00b7d67e7660ebc13d76a4a52914 | 2013-10-11T23:47:53Z |
mmm a / python / taichi / misc / util . py <nl> ppp b / python / taichi / misc / util . py <nl> def logger ( msg , * args , * * kwargs ) : <nl> if taichi . ti_core . logging_effective ( name ) : <nl> msg_formatted = msg . format ( * args , * * kwargs ) <nl> func = getattr ( taichi . ti_core , name ) <nl> - frame = inspect . currentframe ( ) . f_back . f_back <nl> + frame = inspect . currentframe ( ) . f_back <nl> file_name , lineno , func_name , _ , _ = inspect . getframeinfo ( frame ) <nl> msg = f ' [ { file_name } : { func_name } @ { lineno } ] { msg_formatted } ' <nl> func ( msg ) <nl> | [ misc ] fix a bug in util . py ( ) | taichi-dev/taichi | eb83662dabc453c971f18299a124ba960678300a | 2020-06-25T14:51:06Z |
mmm a / Makefile <nl> ppp b / Makefile <nl> $ ( BINDIR ) / $ ( CONFIG ) / h2_census_test : $ ( H2_CENSUS_TEST_OBJS ) $ ( LIBDIR ) / $ ( CONFIG ) / l <nl> endif <nl> <nl> $ ( OBJDIR ) / $ ( CONFIG ) / test / core / end2end / fixtures / h2_census . o : $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_certs . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a <nl> + <nl> deps_h2_census_test : $ ( H2_CENSUS_TEST_OBJS : . o = . dep ) <nl> <nl> ifneq ( $ ( NO_SECURE ) , true ) <nl> $ ( BINDIR ) / $ ( CONFIG ) / h2_compress_test : $ ( H2_COMPRESS_TEST_OBJS ) $ ( LIBDIR ) / $ ( CONFI <nl> endif <nl> <nl> $ ( OBJDIR ) / $ ( CONFIG ) / test / core / end2end / fixtures / h2_compress . o : $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_certs . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a <nl> + <nl> deps_h2_compress_test : $ ( H2_COMPRESS_TEST_OBJS : . o = . dep ) <nl> <nl> ifneq ( $ ( NO_SECURE ) , true ) <nl> $ ( BINDIR ) / $ ( CONFIG ) / h2_fakesec_test : $ ( H2_FAKESEC_TEST_OBJS ) $ ( LIBDIR ) / $ ( CONFIG ) <nl> endif <nl> <nl> $ ( OBJDIR ) / $ ( CONFIG ) / test / core / end2end / fixtures / h2_fakesec . o : $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_certs . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a <nl> + <nl> deps_h2_fakesec_test : $ ( H2_FAKESEC_TEST_OBJS : . o = . dep ) <nl> <nl> ifneq ( $ ( NO_SECURE ) , true ) <nl> $ ( BINDIR ) / $ ( CONFIG ) / h2_full_test : $ ( H2_FULL_TEST_OBJS ) $ ( LIBDIR ) / $ ( CONFIG ) / liben <nl> endif <nl> <nl> $ ( OBJDIR ) / $ ( CONFIG ) / test / core / end2end / fixtures / h2_full . o : $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_certs . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a <nl> + <nl> deps_h2_full_test : $ ( H2_FULL_TEST_OBJS : . o = . dep ) <nl> <nl> ifneq ( $ ( NO_SECURE ) , true ) <nl> $ ( BINDIR ) / $ ( CONFIG ) / h2_full + pipe_test : $ ( H2_FULL + PIPE_TEST_OBJS ) $ ( LIBDIR ) / $ ( CON <nl> endif <nl> <nl> $ ( OBJDIR ) / $ ( CONFIG ) / test / core / end2end / fixtures / h2_full + pipe . o : $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_certs . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a <nl> + <nl> deps_h2_full + pipe_test : $ ( H2_FULL + PIPE_TEST_OBJS : . o = . dep ) <nl> <nl> ifneq ( $ ( NO_SECURE ) , true ) <nl> $ ( BINDIR ) / $ ( CONFIG ) / h2_full + poll_test : $ ( H2_FULL + POLL_TEST_OBJS ) $ ( LIBDIR ) / $ ( CON <nl> endif <nl> <nl> $ ( OBJDIR ) / $ ( CONFIG ) / test / core / end2end / fixtures / h2_full + poll . o : $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_certs . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a <nl> + <nl> deps_h2_full + poll_test : $ ( H2_FULL + POLL_TEST_OBJS : . o = . dep ) <nl> <nl> ifneq ( $ ( NO_SECURE ) , true ) <nl> $ ( BINDIR ) / $ ( CONFIG ) / h2_full + poll + pipe_test : $ ( H2_FULL + POLL + PIPE_TEST_OBJS ) $ ( LIB <nl> endif <nl> <nl> $ ( OBJDIR ) / $ ( CONFIG ) / test / core / end2end / fixtures / h2_full + poll + pipe . o : $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_certs . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a <nl> + <nl> deps_h2_full + poll + pipe_test : $ ( H2_FULL + POLL + PIPE_TEST_OBJS : . o = . dep ) <nl> <nl> ifneq ( $ ( NO_SECURE ) , true ) <nl> $ ( BINDIR ) / $ ( CONFIG ) / h2_oauth2_test : $ ( H2_OAUTH2_TEST_OBJS ) $ ( LIBDIR ) / $ ( CONFIG ) / l <nl> endif <nl> <nl> $ ( OBJDIR ) / $ ( CONFIG ) / test / core / end2end / fixtures / h2_oauth2 . o : $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_certs . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a <nl> + <nl> deps_h2_oauth2_test : $ ( H2_OAUTH2_TEST_OBJS : . o = . dep ) <nl> <nl> ifneq ( $ ( NO_SECURE ) , true ) <nl> $ ( BINDIR ) / $ ( CONFIG ) / h2_proxy_test : $ ( H2_PROXY_TEST_OBJS ) $ ( LIBDIR ) / $ ( CONFIG ) / lib <nl> endif <nl> <nl> $ ( OBJDIR ) / $ ( CONFIG ) / test / core / end2end / fixtures / h2_proxy . o : $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_certs . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a <nl> + <nl> deps_h2_proxy_test : $ ( H2_PROXY_TEST_OBJS : . o = . dep ) <nl> <nl> ifneq ( $ ( NO_SECURE ) , true ) <nl> $ ( BINDIR ) / $ ( CONFIG ) / h2_sockpair_test : $ ( H2_SOCKPAIR_TEST_OBJS ) $ ( LIBDIR ) / $ ( CONFI <nl> endif <nl> <nl> $ ( OBJDIR ) / $ ( CONFIG ) / test / core / end2end / fixtures / h2_sockpair . o : $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_certs . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a <nl> + <nl> deps_h2_sockpair_test : $ ( H2_SOCKPAIR_TEST_OBJS : . o = . dep ) <nl> <nl> ifneq ( $ ( NO_SECURE ) , true ) <nl> $ ( BINDIR ) / $ ( CONFIG ) / h2_sockpair + trace_test : $ ( H2_SOCKPAIR + TRACE_TEST_OBJS ) $ ( LIB <nl> endif <nl> <nl> $ ( OBJDIR ) / $ ( CONFIG ) / test / core / end2end / fixtures / h2_sockpair + trace . o : $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_certs . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a <nl> + <nl> deps_h2_sockpair + trace_test : $ ( H2_SOCKPAIR + TRACE_TEST_OBJS : . o = . dep ) <nl> <nl> ifneq ( $ ( NO_SECURE ) , true ) <nl> $ ( BINDIR ) / $ ( CONFIG ) / h2_sockpair_1byte_test : $ ( H2_SOCKPAIR_1BYTE_TEST_OBJS ) $ ( LIB <nl> endif <nl> <nl> $ ( OBJDIR ) / $ ( CONFIG ) / test / core / end2end / fixtures / h2_sockpair_1byte . o : $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_certs . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a <nl> + <nl> deps_h2_sockpair_1byte_test : $ ( H2_SOCKPAIR_1BYTE_TEST_OBJS : . o = . dep ) <nl> <nl> ifneq ( $ ( NO_SECURE ) , true ) <nl> $ ( BINDIR ) / $ ( CONFIG ) / h2_ssl_test : $ ( H2_SSL_TEST_OBJS ) $ ( LIBDIR ) / $ ( CONFIG ) / libend2 <nl> endif <nl> <nl> $ ( OBJDIR ) / $ ( CONFIG ) / test / core / end2end / fixtures / h2_ssl . o : $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_certs . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a <nl> + <nl> deps_h2_ssl_test : $ ( H2_SSL_TEST_OBJS : . o = . dep ) <nl> <nl> ifneq ( $ ( NO_SECURE ) , true ) <nl> $ ( BINDIR ) / $ ( CONFIG ) / h2_ssl + poll_test : $ ( H2_SSL + POLL_TEST_OBJS ) $ ( LIBDIR ) / $ ( CONFI <nl> endif <nl> <nl> $ ( OBJDIR ) / $ ( CONFIG ) / test / core / end2end / fixtures / h2_ssl + poll . o : $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_certs . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a <nl> + <nl> deps_h2_ssl + poll_test : $ ( H2_SSL + POLL_TEST_OBJS : . o = . dep ) <nl> <nl> ifneq ( $ ( NO_SECURE ) , true ) <nl> $ ( BINDIR ) / $ ( CONFIG ) / h2_ssl_proxy_test : $ ( H2_SSL_PROXY_TEST_OBJS ) $ ( LIBDIR ) / $ ( CON <nl> endif <nl> <nl> $ ( OBJDIR ) / $ ( CONFIG ) / test / core / end2end / fixtures / h2_ssl_proxy . o : $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_certs . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a <nl> + <nl> deps_h2_ssl_proxy_test : $ ( H2_SSL_PROXY_TEST_OBJS : . o = . dep ) <nl> <nl> ifneq ( $ ( NO_SECURE ) , true ) <nl> $ ( BINDIR ) / $ ( CONFIG ) / h2_uchannel_test : $ ( H2_UCHANNEL_TEST_OBJS ) $ ( LIBDIR ) / $ ( CONFI <nl> endif <nl> <nl> $ ( OBJDIR ) / $ ( CONFIG ) / test / core / end2end / fixtures / h2_uchannel . o : $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_certs . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a <nl> + <nl> deps_h2_uchannel_test : $ ( H2_UCHANNEL_TEST_OBJS : . o = . dep ) <nl> <nl> ifneq ( $ ( NO_SECURE ) , true ) <nl> $ ( BINDIR ) / $ ( CONFIG ) / h2_uds_test : $ ( H2_UDS_TEST_OBJS ) $ ( LIBDIR ) / $ ( CONFIG ) / libend2 <nl> endif <nl> <nl> $ ( OBJDIR ) / $ ( CONFIG ) / test / core / end2end / fixtures / h2_uds . o : $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_certs . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a <nl> + <nl> deps_h2_uds_test : $ ( H2_UDS_TEST_OBJS : . o = . dep ) <nl> <nl> ifneq ( $ ( NO_SECURE ) , true ) <nl> $ ( BINDIR ) / $ ( CONFIG ) / h2_uds + poll_test : $ ( H2_UDS + POLL_TEST_OBJS ) $ ( LIBDIR ) / $ ( CONFI <nl> endif <nl> <nl> $ ( OBJDIR ) / $ ( CONFIG ) / test / core / end2end / fixtures / h2_uds + poll . o : $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_certs . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a <nl> + <nl> deps_h2_uds + poll_test : $ ( H2_UDS + POLL_TEST_OBJS : . o = . dep ) <nl> <nl> ifneq ( $ ( NO_SECURE ) , true ) <nl> $ ( BINDIR ) / $ ( CONFIG ) / h2_census_nosec_test : $ ( H2_CENSUS_NOSEC_TEST_OBJS ) $ ( LIBDIR ) <nl> $ ( Q ) $ ( LD ) $ ( LDFLAGS ) $ ( H2_CENSUS_NOSEC_TEST_OBJS ) $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_nosec_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a $ ( LDLIBS ) - o $ ( BINDIR ) / $ ( CONFIG ) / h2_census_nosec_test <nl> <nl> $ ( OBJDIR ) / $ ( CONFIG ) / test / core / end2end / fixtures / h2_census . o : $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_nosec_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a <nl> + <nl> deps_h2_census_nosec_test : $ ( H2_CENSUS_NOSEC_TEST_OBJS : . o = . dep ) <nl> <nl> ifneq ( $ ( NO_DEPS ) , true ) <nl> $ ( BINDIR ) / $ ( CONFIG ) / h2_compress_nosec_test : $ ( H2_COMPRESS_NOSEC_TEST_OBJS ) $ ( LIB <nl> $ ( Q ) $ ( LD ) $ ( LDFLAGS ) $ ( H2_COMPRESS_NOSEC_TEST_OBJS ) $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_nosec_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a $ ( LDLIBS ) - o $ ( BINDIR ) / $ ( CONFIG ) / h2_compress_nosec_test <nl> <nl> $ ( OBJDIR ) / $ ( CONFIG ) / test / core / end2end / fixtures / h2_compress . o : $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_nosec_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a <nl> + <nl> deps_h2_compress_nosec_test : $ ( H2_COMPRESS_NOSEC_TEST_OBJS : . o = . dep ) <nl> <nl> ifneq ( $ ( NO_DEPS ) , true ) <nl> $ ( BINDIR ) / $ ( CONFIG ) / h2_full_nosec_test : $ ( H2_FULL_NOSEC_TEST_OBJS ) $ ( LIBDIR ) / $ ( C <nl> $ ( Q ) $ ( LD ) $ ( LDFLAGS ) $ ( H2_FULL_NOSEC_TEST_OBJS ) $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_nosec_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a $ ( LDLIBS ) - o $ ( BINDIR ) / $ ( CONFIG ) / h2_full_nosec_test <nl> <nl> $ ( OBJDIR ) / $ ( CONFIG ) / test / core / end2end / fixtures / h2_full . o : $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_nosec_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a <nl> + <nl> deps_h2_full_nosec_test : $ ( H2_FULL_NOSEC_TEST_OBJS : . o = . dep ) <nl> <nl> ifneq ( $ ( NO_DEPS ) , true ) <nl> $ ( BINDIR ) / $ ( CONFIG ) / h2_full + pipe_nosec_test : $ ( H2_FULL + PIPE_NOSEC_TEST_OBJS ) $ ( L <nl> $ ( Q ) $ ( LD ) $ ( LDFLAGS ) $ ( H2_FULL + PIPE_NOSEC_TEST_OBJS ) $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_nosec_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a $ ( LDLIBS ) - o $ ( BINDIR ) / $ ( CONFIG ) / h2_full + pipe_nosec_test <nl> <nl> $ ( OBJDIR ) / $ ( CONFIG ) / test / core / end2end / fixtures / h2_full + pipe . o : $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_nosec_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a <nl> + <nl> deps_h2_full + pipe_nosec_test : $ ( H2_FULL + PIPE_NOSEC_TEST_OBJS : . o = . dep ) <nl> <nl> ifneq ( $ ( NO_DEPS ) , true ) <nl> $ ( BINDIR ) / $ ( CONFIG ) / h2_full + poll_nosec_test : $ ( H2_FULL + POLL_NOSEC_TEST_OBJS ) $ ( L <nl> $ ( Q ) $ ( LD ) $ ( LDFLAGS ) $ ( H2_FULL + POLL_NOSEC_TEST_OBJS ) $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_nosec_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a $ ( LDLIBS ) - o $ ( BINDIR ) / $ ( CONFIG ) / h2_full + poll_nosec_test <nl> <nl> $ ( OBJDIR ) / $ ( CONFIG ) / test / core / end2end / fixtures / h2_full + poll . o : $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_nosec_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a <nl> + <nl> deps_h2_full + poll_nosec_test : $ ( H2_FULL + POLL_NOSEC_TEST_OBJS : . o = . dep ) <nl> <nl> ifneq ( $ ( NO_DEPS ) , true ) <nl> $ ( BINDIR ) / $ ( CONFIG ) / h2_full + poll + pipe_nosec_test : $ ( H2_FULL + POLL + PIPE_NOSEC_TEST <nl> $ ( Q ) $ ( LD ) $ ( LDFLAGS ) $ ( H2_FULL + POLL + PIPE_NOSEC_TEST_OBJS ) $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_nosec_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a $ ( LDLIBS ) - o $ ( BINDIR ) / $ ( CONFIG ) / h2_full + poll + pipe_nosec_test <nl> <nl> $ ( OBJDIR ) / $ ( CONFIG ) / test / core / end2end / fixtures / h2_full + poll + pipe . o : $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_nosec_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a <nl> + <nl> deps_h2_full + poll + pipe_nosec_test : $ ( H2_FULL + POLL + PIPE_NOSEC_TEST_OBJS : . o = . dep ) <nl> <nl> ifneq ( $ ( NO_DEPS ) , true ) <nl> $ ( BINDIR ) / $ ( CONFIG ) / h2_proxy_nosec_test : $ ( H2_PROXY_NOSEC_TEST_OBJS ) $ ( LIBDIR ) / $ <nl> $ ( Q ) $ ( LD ) $ ( LDFLAGS ) $ ( H2_PROXY_NOSEC_TEST_OBJS ) $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_nosec_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a $ ( LDLIBS ) - o $ ( BINDIR ) / $ ( CONFIG ) / h2_proxy_nosec_test <nl> <nl> $ ( OBJDIR ) / $ ( CONFIG ) / test / core / end2end / fixtures / h2_proxy . o : $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_nosec_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a <nl> + <nl> deps_h2_proxy_nosec_test : $ ( H2_PROXY_NOSEC_TEST_OBJS : . o = . dep ) <nl> <nl> ifneq ( $ ( NO_DEPS ) , true ) <nl> $ ( BINDIR ) / $ ( CONFIG ) / h2_sockpair_nosec_test : $ ( H2_SOCKPAIR_NOSEC_TEST_OBJS ) $ ( LIB <nl> $ ( Q ) $ ( LD ) $ ( LDFLAGS ) $ ( H2_SOCKPAIR_NOSEC_TEST_OBJS ) $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_nosec_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a $ ( LDLIBS ) - o $ ( BINDIR ) / $ ( CONFIG ) / h2_sockpair_nosec_test <nl> <nl> $ ( OBJDIR ) / $ ( CONFIG ) / test / core / end2end / fixtures / h2_sockpair . o : $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_nosec_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a <nl> + <nl> deps_h2_sockpair_nosec_test : $ ( H2_SOCKPAIR_NOSEC_TEST_OBJS : . o = . dep ) <nl> <nl> ifneq ( $ ( NO_DEPS ) , true ) <nl> $ ( BINDIR ) / $ ( CONFIG ) / h2_sockpair + trace_nosec_test : $ ( H2_SOCKPAIR + TRACE_NOSEC_TEST <nl> $ ( Q ) $ ( LD ) $ ( LDFLAGS ) $ ( H2_SOCKPAIR + TRACE_NOSEC_TEST_OBJS ) $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_nosec_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a $ ( LDLIBS ) - o $ ( BINDIR ) / $ ( CONFIG ) / h2_sockpair + trace_nosec_test <nl> <nl> $ ( OBJDIR ) / $ ( CONFIG ) / test / core / end2end / fixtures / h2_sockpair + trace . o : $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_nosec_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a <nl> + <nl> deps_h2_sockpair + trace_nosec_test : $ ( H2_SOCKPAIR + TRACE_NOSEC_TEST_OBJS : . o = . dep ) <nl> <nl> ifneq ( $ ( NO_DEPS ) , true ) <nl> $ ( BINDIR ) / $ ( CONFIG ) / h2_sockpair_1byte_nosec_test : $ ( H2_SOCKPAIR_1BYTE_NOSEC_TEST <nl> $ ( Q ) $ ( LD ) $ ( LDFLAGS ) $ ( H2_SOCKPAIR_1BYTE_NOSEC_TEST_OBJS ) $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_nosec_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a $ ( LDLIBS ) - o $ ( BINDIR ) / $ ( CONFIG ) / h2_sockpair_1byte_nosec_test <nl> <nl> $ ( OBJDIR ) / $ ( CONFIG ) / test / core / end2end / fixtures / h2_sockpair_1byte . o : $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_nosec_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a <nl> + <nl> deps_h2_sockpair_1byte_nosec_test : $ ( H2_SOCKPAIR_1BYTE_NOSEC_TEST_OBJS : . o = . dep ) <nl> <nl> ifneq ( $ ( NO_DEPS ) , true ) <nl> $ ( BINDIR ) / $ ( CONFIG ) / h2_uchannel_nosec_test : $ ( H2_UCHANNEL_NOSEC_TEST_OBJS ) $ ( LIB <nl> $ ( Q ) $ ( LD ) $ ( LDFLAGS ) $ ( H2_UCHANNEL_NOSEC_TEST_OBJS ) $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_nosec_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a $ ( LDLIBS ) - o $ ( BINDIR ) / $ ( CONFIG ) / h2_uchannel_nosec_test <nl> <nl> $ ( OBJDIR ) / $ ( CONFIG ) / test / core / end2end / fixtures / h2_uchannel . o : $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_nosec_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a <nl> + <nl> deps_h2_uchannel_nosec_test : $ ( H2_UCHANNEL_NOSEC_TEST_OBJS : . o = . dep ) <nl> <nl> ifneq ( $ ( NO_DEPS ) , true ) <nl> $ ( BINDIR ) / $ ( CONFIG ) / h2_uds_nosec_test : $ ( H2_UDS_NOSEC_TEST_OBJS ) $ ( LIBDIR ) / $ ( CON <nl> $ ( Q ) $ ( LD ) $ ( LDFLAGS ) $ ( H2_UDS_NOSEC_TEST_OBJS ) $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_nosec_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a $ ( LDLIBS ) - o $ ( BINDIR ) / $ ( CONFIG ) / h2_uds_nosec_test <nl> <nl> $ ( OBJDIR ) / $ ( CONFIG ) / test / core / end2end / fixtures / h2_uds . o : $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_nosec_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a <nl> + <nl> deps_h2_uds_nosec_test : $ ( H2_UDS_NOSEC_TEST_OBJS : . o = . dep ) <nl> <nl> ifneq ( $ ( NO_DEPS ) , true ) <nl> $ ( BINDIR ) / $ ( CONFIG ) / h2_uds + poll_nosec_test : $ ( H2_UDS + POLL_NOSEC_TEST_OBJS ) $ ( LIB <nl> $ ( Q ) $ ( LD ) $ ( LDFLAGS ) $ ( H2_UDS + POLL_NOSEC_TEST_OBJS ) $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_nosec_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a $ ( LDLIBS ) - o $ ( BINDIR ) / $ ( CONFIG ) / h2_uds + poll_nosec_test <nl> <nl> $ ( OBJDIR ) / $ ( CONFIG ) / test / core / end2end / fixtures / h2_uds + poll . o : $ ( LIBDIR ) / $ ( CONFIG ) / libend2end_nosec_tests . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_test_util_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgrpc_unsecure . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr_test_util . a $ ( LIBDIR ) / $ ( CONFIG ) / libgpr . a <nl> + <nl> deps_h2_uds + poll_nosec_test : $ ( H2_UDS + POLL_NOSEC_TEST_OBJS : . o = . dep ) <nl> <nl> ifneq ( $ ( NO_DEPS ) , true ) <nl> | Fix Makefile | grpc/grpc | d27c78db0936d44599acbcd701f7a3159dec3fcd | 2016-01-07T15:11:20Z |
mmm a / src / http / http . cc <nl> ppp b / src / http / http . cc <nl> bool maybe_gzip_response ( const http_req_t & req , http_res_t * res ) { <nl> <nl> / / GCC 4 . 6 bug requires us to do it this way rather than initialize to boost : : none <nl> / / http : / / gcc . gnu . org / bugzilla / show_bug . cgi ? id = 47679 <nl> - boost : : optional < double > gzip_q = 0 . 0 ; gzip_q . reset ( ) ; <nl> - boost : : optional < double > identity_q = 0 . 0 ; identity_q . reset ( ) ; <nl> - boost : : optional < double > star_q = 0 . 0 ; star_q . reset ( ) ; <nl> + boost : : optional < double > gzip_q = 0 . 0 ; <nl> + gzip_q . reset ( ) ; <nl> + boost : : optional < double > identity_q = 0 . 0 ; <nl> + identity_q . reset ( ) ; <nl> + boost : : optional < double > star_q = 0 . 0 ; <nl> + star_q . reset ( ) ; <nl> <nl> / / We only care about three potential encoding qvalues : ' gzip ' , ' identity ' , and ' * ' <nl> for ( auto it = encodings . begin ( ) ; it ! = encodings . end ( ) ; + + it ) { <nl> | Moved statements on the same line to sepraate lines in http . cc . | rethinkdb/rethinkdb | 0307215b234c28e368ea94ed08ee60fd41fb441d | 2014-01-21T07:22:23Z |
mmm a / hphp / runtime / vm / jit / vectortranslator . cpp <nl> ppp b / hphp / runtime / vm / jit / vectortranslator . cpp <nl> void VectorEffects : : init ( Opcode op , const Type origBase , <nl> / / definitely happen but those cases aren ' t handled yet . In a perfect world <nl> / / we would remove Type : : Null from baseType here but that can produce types <nl> / / that are tricky to guard against and doesn ' t buy us much right now . <nl> - if ( ! baseBoxed | | ! baseType . isString ( ) ) { <nl> + if ( ! baseBoxed & & ( ! baseType . isString ( ) | | op = = SetProp ) ) { <nl> / * <nl> * Uses of boxed types are always guarded , in case the inner <nl> * type was modified . If the base type was String , its extremely <nl> mmm a / hphp / runtime / vm / member_operations . h <nl> ppp b / hphp / runtime / vm / member_operations . h <nl> inline StringData * SetElem ( TypedValue * base , TypedValue * key , Cell * value ) { <nl> case KindOfString : { <nl> int baseLen = base - > m_data . pstr - > size ( ) ; <nl> if ( baseLen = = 0 ) { <nl> + initScratchKey < keyType > ( scratch , key ) ; <nl> SetElemEmptyish ( base , key , value ) ; <nl> + if ( ! setResult ) { <nl> + throw InvalidSetMException ( * value ) ; <nl> + } <nl> } else { <nl> / / Convert key to string offset . <nl> int64_t x = castKeyToInt < keyType > ( key ) ; <nl> new file mode 100644 <nl> index 00000000000 . . b4f557cdf8d <nl> mmm / dev / null <nl> ppp b / hphp / test / slow / array / promote_string . php <nl> <nl> + < ? php <nl> + <nl> + function test ( $ a , $ f ) { <nl> + $ a [ 0 ] = $ f ; <nl> + $ a [ $ f ] = $ f ; <nl> + $ a [ 1 ] = 1 ; <nl> + $ a [ ' foo ' ] = ' foo ' ; <nl> + return $ a ; <nl> + } <nl> + <nl> + var_dump ( test ( " " , " f " . isset ( $ g ) ? " x " : " " ) ) ; <nl> new file mode 100644 <nl> index 00000000000 . . 20e1b2e76c2 <nl> mmm / dev / null <nl> ppp b / hphp / test / slow / array / promote_string . php . expect <nl> <nl> + array ( 4 ) { <nl> + [ 0 ] = > <nl> + string ( 1 ) " x " <nl> + [ " x " ] = > <nl> + string ( 1 ) " x " <nl> + [ 1 ] = > <nl> + int ( 1 ) <nl> + [ " foo " ] = > <nl> + string ( 3 ) " foo " <nl> + } <nl> | Fix crashes with empty string as SetElem base | facebook/hhvm | 49aa101879bca850ee662bbec07effe1b262a1c7 | 2013-06-19T16:56:49Z |
mmm a / include / osquery / registry . h <nl> ppp b / include / osquery / registry . h <nl> class RegistryHelper : public RegistryHelperCore { <nl> <nl> private : <nl> FRIEND_TEST ( EventsTests , test_event_subscriber_configure ) ; <nl> + FRIEND_TEST ( VirtualTableTests , test_indexing_costs ) ; <nl> } ; <nl> <nl> / / / Helper definition for a shared pointer to a Plugin . <nl> mmm a / include / osquery / tables . h <nl> ppp b / include / osquery / tables . h <nl> class TablePlugin : public Plugin { <nl> friend class RegistryFactory ; <nl> FRIEND_TEST ( VirtualTableTests , test_tableplugin_columndefinition ) ; <nl> FRIEND_TEST ( VirtualTableTests , test_tableplugin_statement ) ; <nl> + FRIEND_TEST ( VirtualTableTests , test_indexing_costs ) ; <nl> } ; <nl> <nl> / / / Helper method to generate the virtual table CREATE statement . <nl> mmm a / osquery / sql / tests / virtual_table_tests . cpp <nl> ppp b / osquery / sql / tests / virtual_table_tests . cpp <nl> TEST_F ( VirtualTableTests , test_table_cache ) { <nl> ASSERT_EQ ( results . size ( ) , 1U ) ; <nl> ASSERT_EQ ( results [ 0 ] [ " data " ] , " awesome_data " ) ; <nl> } <nl> + <nl> + class indexIOptimizedTablePlugin : public TablePlugin { <nl> + private : <nl> + TableColumns columns ( ) const override { <nl> + return { <nl> + std : : make_tuple ( " i " , INTEGER_TYPE , ColumnOptions : : INDEX ) , <nl> + std : : make_tuple ( " j " , INTEGER_TYPE , ColumnOptions : : DEFAULT ) , <nl> + std : : make_tuple ( " text " , INTEGER_TYPE , ColumnOptions : : DEFAULT ) , <nl> + } ; <nl> + } <nl> + <nl> + public : <nl> + QueryData generate ( QueryContext & context ) override { <nl> + scans + + ; <nl> + <nl> + QueryData results ; <nl> + auto indexes = context . constraints [ " i " ] . getAll < int > ( EQUALS ) ; <nl> + for ( const auto & i : indexes ) { <nl> + results . push_back ( <nl> + { { " i " , INTEGER ( i ) } , { " j " , INTEGER ( i * 10 ) } , { " text " , " none " } } ) ; <nl> + } <nl> + if ( indexes . empty ( ) ) { <nl> + for ( size_t i = 0 ; i < 100 ; i + + ) { <nl> + results . push_back ( <nl> + { { " i " , INTEGER ( i ) } , { " j " , INTEGER ( i * 10 ) } , { " text " , " some " } } ) ; <nl> + } <nl> + } <nl> + return results ; <nl> + } <nl> + <nl> + / / Here the goal is to expect / assume the number of scans . <nl> + size_t scans { 0 } ; <nl> + } ; <nl> + <nl> + class indexJOptimizedTablePlugin : public TablePlugin { <nl> + private : <nl> + TableColumns columns ( ) const override { <nl> + return { <nl> + std : : make_tuple ( " j " , INTEGER_TYPE , ColumnOptions : : INDEX ) , <nl> + std : : make_tuple ( " text " , INTEGER_TYPE , ColumnOptions : : DEFAULT ) , <nl> + } ; <nl> + } <nl> + <nl> + public : <nl> + QueryData generate ( QueryContext & context ) override { <nl> + scans + + ; <nl> + <nl> + QueryData results ; <nl> + auto indexes = context . constraints [ " j " ] . getAll < int > ( EQUALS ) ; <nl> + for ( const auto & j : indexes ) { <nl> + results . push_back ( { { " j " , INTEGER ( j ) } , { " text " , " none " } } ) ; <nl> + } <nl> + if ( indexes . empty ( ) ) { <nl> + for ( size_t j = 0 ; j < 100 ; j + + ) { <nl> + results . push_back ( { { " j " , INTEGER ( j ) } , { " text " , " some " } } ) ; <nl> + } <nl> + } <nl> + return results ; <nl> + } <nl> + <nl> + / / Here the goal is to expect / assume the number of scans . <nl> + size_t scans { 0 } ; <nl> + } ; <nl> + <nl> + class defaultScanTablePlugin : public TablePlugin { <nl> + private : <nl> + TableColumns columns ( ) const override { <nl> + return { <nl> + std : : make_tuple ( " i " , INTEGER_TYPE , ColumnOptions : : DEFAULT ) , <nl> + std : : make_tuple ( " text " , INTEGER_TYPE , ColumnOptions : : DEFAULT ) , <nl> + } ; <nl> + } <nl> + <nl> + public : <nl> + QueryData generate ( QueryContext & context ) override { <nl> + scans + + ; <nl> + <nl> + QueryData results ; <nl> + for ( size_t i = 0 ; i < 10 ; i + + ) { <nl> + results . push_back ( { { " i " , INTEGER ( i ) } , { " text " , " some " } } ) ; <nl> + } <nl> + return results ; <nl> + } <nl> + <nl> + / / Here the goal is to expect / assume the number of scans . <nl> + size_t scans { 0 } ; <nl> + } ; <nl> + <nl> + TEST_F ( VirtualTableTests , test_indexing_costs ) { <nl> + / / Get a database connection . <nl> + auto dbc = SQLiteDBManager : : getUnique ( ) ; <nl> + auto table_registry = Registry : : registry ( " table " ) ; <nl> + <nl> + auto i = std : : make_shared < indexIOptimizedTablePlugin > ( ) ; <nl> + i - > setName ( " index_i " ) ; <nl> + attachTableInternal ( " index_i " , i - > columnDefinition ( ) , dbc ) ; <nl> + table_registry - > add ( i ) ; <nl> + <nl> + auto j = std : : make_shared < indexJOptimizedTablePlugin > ( ) ; <nl> + j - > setName ( " index_j " ) ; <nl> + attachTableInternal ( " index_j " , j - > columnDefinition ( ) , dbc ) ; <nl> + table_registry - > add ( j ) ; <nl> + <nl> + auto default_scan = std : : make_shared < defaultScanTablePlugin > ( ) ; <nl> + default_scan - > setName ( " default_scan " ) ; <nl> + attachTableInternal ( " default_scan " , default_scan - > columnDefinition ( ) , dbc ) ; <nl> + table_registry - > add ( default_scan ) ; <nl> + <nl> + QueryData results ; <nl> + queryInternal ( <nl> + " SELECT * from default_scan JOIN index_i using ( i ) ; " , results , dbc - > db ( ) ) ; <nl> + / / We expect index_i to optimize , meaning the constraint evaluation <nl> + / / understood the marked columns and returned a low cost . <nl> + ASSERT_EQ ( 1U , default_scan - > scans ) ; <nl> + EXPECT_EQ ( 10U , i - > scans ) ; <nl> + <nl> + / / Reset . <nl> + default_scan - > scans = 0 ; <nl> + i - > scans = 0 ; <nl> + <nl> + / / The inverse should also hold , all cost evaluations will be high . <nl> + queryInternal ( <nl> + " SELECT * from index_i JOIN default_scan using ( i ) ; " , results , dbc - > db ( ) ) ; <nl> + EXPECT_EQ ( 10U , i - > scans ) ; <nl> + EXPECT_EQ ( 1U , default_scan - > scans ) ; <nl> + <nl> + / / Reset . <nl> + default_scan - > scans = 0 ; <nl> + i - > scans = 0 ; <nl> + <nl> + queryInternal ( <nl> + " SELECT * from default_scan join index_i using ( i ) join index_j using " <nl> + " ( j ) ; " , <nl> + results , <nl> + dbc - > db ( ) ) ; <nl> + ASSERT_EQ ( 1U , default_scan - > scans ) ; <nl> + EXPECT_EQ ( 10U , i - > scans ) ; <nl> + EXPECT_EQ ( 10U , j - > scans ) ; <nl> + } <nl> } <nl> mmm a / osquery / sql / virtual_table . cpp <nl> ppp b / osquery / sql / virtual_table . cpp <nl> static int xBestIndex ( sqlite3_vtab * tab , sqlite3_index_info * pIdxInfo ) { <nl> size_t expr_index = 0 ; <nl> / / If any constraints are unusable increment the cost of the index . <nl> double cost = 1 ; <nl> + <nl> + / / Tables may have requirements or use indexes . <nl> + bool required_satisfied = false ; <nl> + bool index_used = false ; <nl> + <nl> / / Expressions operating on the same virtual table are loosely identified by <nl> / / the consecutive sets of terms each of the constraint sets are applied onto . <nl> / / Subsequent attempts from failed ( unusable ) constraints replace the set , <nl> static int xBestIndex ( sqlite3_vtab * tab , sqlite3_index_info * pIdxInfo ) { <nl> continue ; <nl> } <nl> const auto & name = std : : get < 0 > ( columns [ constraint_info . iColumn ] ) ; <nl> + <nl> + / / Check if this constraint is on an index or required column . <nl> + const auto & options = std : : get < 2 > ( columns [ constraint_info . iColumn ] ) ; <nl> + if ( options & ColumnOptions : : REQUIRED ) { <nl> + index_used = true ; <nl> + required_satisfied = true ; <nl> + } else if ( options & ColumnOptions : : INDEX ) { <nl> + index_used = true ; <nl> + } <nl> + <nl> / / Save a pair of the name and the constraint operator . <nl> / / Use this constraint during xFilter by performing a scan and column <nl> / / name lookup through out all cursor constraint lists . <nl> static int xBestIndex ( sqlite3_vtab * tab , sqlite3_index_info * pIdxInfo ) { <nl> } <nl> } <nl> <nl> - auto requiredSatisfied = [ & constraints ] ( const std : : string & name ) { <nl> - for ( const auto & constraint : constraints ) { <nl> - if ( constraint . first = = name ) { <nl> - return true ; <nl> - } <nl> - } <nl> - / / No constraint exists . <nl> - return false ; <nl> - } ; <nl> - <nl> / / Check the table for a required column . <nl> - boost : : optional < bool > satisfied ; <nl> for ( const auto & column : columns ) { <nl> - auto & name = std : : get < 0 > ( column ) ; <nl> auto & options = std : : get < 2 > ( column ) ; <nl> - if ( options & ColumnOptions : : REQUIRED ) { <nl> - / / This column is required , check if a constraint exists . <nl> - if ( requiredSatisfied ( name ) ) { <nl> - satisfied = true ; <nl> - break ; <nl> - } <nl> - / / A column was required , but not satisfied . <nl> - / / Multiple columns may be marked REQUIRED , continue to check . <nl> - satisfied = false ; <nl> + if ( options & ColumnOptions : : REQUIRED & & ! required_satisfied ) { <nl> + / / A column is marked required , but no constraint satisfies . <nl> + cost + = 1e10 ; <nl> + break ; <nl> } <nl> } <nl> <nl> - / / Check if a REQUIRED column exists but was not satisfied via a constraint . <nl> - if ( satisfied . is_initialized ( ) & & ! * satisfied ) { <nl> - cost + = 1e10 ; <nl> + if ( ! index_used ) { <nl> + / / A column is marked index , but no index constraint was provided . <nl> + cost + = 200 ; <nl> } <nl> <nl> pIdxInfo - > idxNum = static_cast < int > ( kConstraintIndexID + + ) ; <nl> | [ Fix ] Use INDEX options in constraint cost evaluation ( ) | osquery/osquery | 0b1713423ca50a2c725cd3e7034a3136b78eaae9 | 2016-10-05T22:44:21Z |
mmm a / test / rql_test / Makefile <nl> ppp b / test / rql_test / Makefile <nl> TEST_DEFAULT_PORT = 0 <nl> <nl> . SILENT : <nl> <nl> - run : $ ( TEST_FILES ) <nl> + run : $ ( TEST_FILES ) cursor connect <nl> . / test - runner run \ " $ ( BUILD ) \ " <nl> <nl> - py : py_connect <nl> + py : py_connect py_cursor <nl> <nl> - js : js_connect <nl> + js : js_connect js_cursor <nl> <nl> py js rb : $ ( TEST_FILES ) <nl> python connections / cursor_test . py $ ( BUILD ) $ @ <nl> py_connect : connections / connection . py <nl> python connections / connection . py $ ( BUILD ) $ ( TEST_DEFAULT_PORT ) <nl> <nl> js_connect : connections / connection . js <nl> - node connections / connection . js $ ( BUILD ) $ ( TEST_DEFAULT_PORT ) <nl> + BUILD = $ ( BUILD ) TEST_DEFAULT_PORT = $ ( TEST_DEFAULT_PORT ) \ <nl> + _mocha - R spec connections / connection . js <nl> <nl> cursor : <nl> python connections / cursor_test . py $ ( BUILD ) <nl> <nl> + js_cursor : <nl> + python connections / cursor_test . py $ ( BUILD ) js <nl> + <nl> + py_cursor : <nl> + python connections / cursor_test . py $ ( BUILD ) py <nl> + <nl> + <nl> connect : js_connect py_connect <nl> <nl> clean : <nl> mmm a / test / rql_test / connections / connection . js <nl> ppp b / test / rql_test / connections / connection . js <nl> <nl> / / Tests the driver API for making connections and excercising the networking code <nl> / / / / / <nl> <nl> - console . log ( " Testing JS connection API " ) <nl> + var spawn = require ( ' child_process ' ) . spawn <nl> <nl> - process . on ( ' uncaughtException ' , function ( err ) { <nl> - console . log ( " Uncaught exception : " , err ) ; <nl> - console . log ( err . toString ( ) + err . stack . toString ( ) ) ; <nl> - if ( cpp_server ) cpp_server . kill ( ) ; <nl> - / / if ( js_server ) js_server . kill ( ) ; <nl> - } ) ; <nl> + var assert = require ( ' assert ' ) ; <nl> <nl> - var spawn = require ( ' child_process ' ) . spawn <nl> + var r = require ( ' . . / . . / . . / drivers / javascript / build / rethinkdb ' ) ; <nl> + var build = process . env . BUILD | | ' debug ' <nl> + var testDefault = process . env . TEST_DEFAULT_PORT = = " 1 " <nl> <nl> - var cont = function ( ) { <nl> - var nextAction = actions . shift ( ) <nl> - if ( ! nextAction ) throw " done " ; <nl> - nextAction . apply ( { } , arguments ) ; <nl> - } ; <nl> + var port = Math . floor ( Math . random ( ) * ( 65535 - 1025 ) + 1025 ) <nl> <nl> var assertErr = function ( err , type , msg ) { <nl> - if ( ! err ) { <nl> - throw new Error ( " No Error " ) ; <nl> - } <nl> - <nl> - if ( ! ( err . constructor . name = = type ) ) { <nl> - throw new Error ( " Error message type ` " + err . constructor . name + " ` doesn ' t match expected type ` " + type + " ` " ) ; <nl> - } <nl> + assertNotNull ( err ) ; <nl> + assert . equal ( err . constructor . name , type ) ; <nl> var _msg = err . message . replace ( / in : \ n ( [ \ r \ n ] | . ) * / m , " " ) ; <nl> - if ( ! ( _msg = = msg ) ) { <nl> - throw new Error ( " Error message ' " + _msg + " ' doesn ' t match expected ' " + msg + " ' " ) ; <nl> - } <nl> + assert . equal ( _msg , msg ) ; <nl> } ; <nl> <nl> - var assertNoError = function ( err ) { <nl> - if ( err ) { <nl> - throw new Error ( " Error " + err + " not expected " ) <nl> - } <nl> + var throwsError = function ( type , msg , done ) { <nl> + return function ( err ) { <nl> + assertErr ( err , type , msg ) ; <nl> + done ( ) ; <nl> + } ; <nl> } ; <nl> <nl> - var r = require ( ' . . / . . / . . / drivers / javascript / build / rethinkdb ' ) ; <nl> - var build = process . argv [ 2 ] | | ' debug ' <nl> - var testDefault = process [ 3 ] | | false <nl> + var withConnection = function ( f ) { <nl> + return function ( done ) { <nl> + r . connect ( { port : port } , function ( err , c ) { <nl> + assertNull ( err ) ; <nl> + f ( done , c ) ; <nl> + } ) ; <nl> + } ; <nl> + } ; <nl> <nl> - var port = Math . floor ( Math . random ( ) * ( 65535 - 1025 ) + 1025 ) <nl> + var testSimpleQuery = function ( c , done ) { <nl> + r ( 1 ) . run ( c , function ( err , res ) { <nl> + assertNull ( err ) ; <nl> + assert . equal ( res , 1 ) ; <nl> + done ( ) ; <nl> + } ) ; <nl> + } ; <nl> + <nl> + var noError = function ( f ) { <nl> + return function ( err ) { <nl> + assertNull ( err ) ; <nl> + f . apply ( { } , arguments ) ; <nl> + } ; <nl> + } <nl> + <nl> + var assertNull = function ( x ) { <nl> + assert . equal ( x , null ) ; <nl> + } <nl> + <nl> + var assertNotNull = function ( x ) { <nl> + assert . notEqual ( x , null ) ; <nl> + } <nl> + <nl> + describe ( ' Javascript connection API ' , function ( ) { <nl> + describe ( ' With no server ' , function ( ) { <nl> + it ( " fails when trying to connect " , function ( done ) { <nl> + r . connect ( { } , throwsError ( " RqlDriverError " , " Could not connect to localhost : 28015 . " , function ( ) { <nl> + r . connect ( { port : 11221 } , throwsError ( " RqlDriverError " , " Could not connect to localhost : 11221 . " , function ( ) { <nl> + r . connect ( { host : ' 0 . 0 . 0 . 0 ' } , throwsError ( " RqlDriverError " , " Could not connect to 0 . 0 . 0 . 0 : 28015 . " , function ( ) { <nl> + r . connect ( { host : ' 0 . 0 . 0 . 0 ' , port : 11221 } , throwsError ( " RqlDriverError " , " Could not connect to 0 . 0 . 0 . 0 : 11221 . " , done ) ) } ) ) } ) ) } ) ) ; <nl> + } ) ; <nl> + } ) ; <nl> <nl> - var actions = [ <nl> - <nl> - / / All these fail as there is on server to connect to <nl> - function ( ) { <nl> - r . connect ( { } , cont ) ; <nl> - } , <nl> - function ( err , c ) { <nl> - assertErr ( err , " RqlDriverError " , " Could not connect to localhost : 28015 . " ) <nl> - r . connect ( { port : 11221 } , cont ) ; <nl> - } , <nl> - function ( err , c ) { <nl> - assertErr ( err , " RqlDriverError " , " Could not connect to localhost : 11221 . " ) <nl> - r . connect ( { host : ' 0 . 0 . 0 . 0 ' } , cont ) ; <nl> - } , <nl> - function ( err , c ) { <nl> - assertErr ( err , " RqlDriverError " , " Could not connect to 0 . 0 . 0 . 0 : 28015 . " ) <nl> - r . connect ( { host : ' 0 . 0 . 0 . 0 ' , port : 11221 } , cont ) ; <nl> - } , <nl> - function ( err , c ) { <nl> - assertErr ( err , " RqlDriverError " , " Could not connect to 0 . 0 . 0 . 0 : 11221 . " ) <nl> - cont ( ) ; <nl> - } , <nl> - <nl> - / / Run CPP server in default configuration <nl> - function ( ) { <nl> - cpp_server = spawn ( ' . . / . . / build / ' + build + ' / rethinkdb ' , <nl> - [ ' - - driver - port ' , port , ' - - http - port ' , ' 0 ' , ' - - cluster - port ' , ' 0 ' ] , <nl> - { stdio : ' inherit ' } ) ; <nl> - setTimeout ( cont , 1000 ) ; <nl> - } , <nl> - <nl> - / / Test differt ways of connecting to the server <nl> - function ( ) { <nl> - testDefault ? r . connect ( { } , cont ) : cont ( ) ; <nl> - } , <nl> - function ( err , c ) { <nl> - assertNoError ( err ) ; <nl> - testDefault ? c . reconnect ( cont ) : cont ( ) ; <nl> - } , <nl> - function ( err , c ) { <nl> - assertNoError ( err ) ; <nl> - testDefault ? r . connect ( { host : ' localhost ' } , cont ) : cont ( ) ; <nl> - } , <nl> - function ( err , c ) { <nl> - assertNoError ( err ) ; <nl> - testDefault ? c . reconnect ( cont ) : cont ( ) ; <nl> - } , <nl> - function ( err , c ) { <nl> - assertNoError ( err ) ; <nl> - testDefault ? r . connect ( { host : ' localhost ' , port : 28015 } , cont ) : cont ( ) ; <nl> - } , <nl> - function ( err , c ) { <nl> - assertNoError ( err ) ; <nl> - testDefault ? c . reconnect ( cont ) : cont ( ) ; <nl> - } , <nl> - function ( err , c ) { <nl> - assertNoError ( err ) ; <nl> - testDefault ? r . connect ( { port : 28015 } , cont ) : cont ( ) ; <nl> - } , <nl> - function ( err , c ) { <nl> - assertNoError ( err ) ; <nl> - testDefault ? c . reconnect ( cont ) : cont ( ) ; <nl> - } , <nl> - function ( err , c ) { <nl> - assertNoError ( err ) ; <nl> - cont ( ) ; <nl> - } , <nl> - <nl> - / * <nl> - / / Kill CPP server , try again with JS server <nl> - function ( ) { <nl> - cpp_server . kill ( ) ; <nl> - js_server = spawn ( ' . . / . . / . . / build / release_clang / rethinkdb ' ) ; <nl> - setTimeout ( cont , 100 ) ; <nl> - } , <nl> - <nl> - / / Test differt ways of connecting to the server <nl> - function ( ) { <nl> - r . connect ( { } , cont ) ; <nl> - } , <nl> - function ( err , c ) { <nl> - assertNoError ( err ) ; <nl> - c . reconnect ( cont ) ; <nl> - } , <nl> - function ( err , c ) { <nl> - assertNoError ( err ) ; <nl> - r . connect ( { host : ' localhost ' } , cont ) ; <nl> - } , <nl> - function ( err , c ) { <nl> - assertNoError ( err ) ; <nl> - c . reconnect ( cont ) ; <nl> - } , <nl> - function ( err , c ) { <nl> - assertNoError ( err ) ; <nl> - r . connect ( { host : ' localhost ' , port : 28015 } , cont ) ; <nl> - } , <nl> - function ( err , c ) { <nl> - assertNoError ( err ) ; <nl> - c . reconnect ( cont ) ; <nl> - } , <nl> - function ( err , c ) { <nl> - assertNoError ( err ) ; <nl> - r . connect ( { port : 28015 } , cont ) ; <nl> - } , <nl> - function ( err , c ) { <nl> - assertNoError ( err ) ; <nl> - c . reconnect ( cont ) ; <nl> - } , <nl> - function ( err , c ) { <nl> - assertNoError ( err ) ; <nl> - cont ( ) ; <nl> - } , <nl> - * / <nl> - <nl> - / / Tests closing the connection <nl> - function ( ) { <nl> - r . connect ( { port : port } , cont ) ; <nl> - } , <nl> - function ( err , c ) { <nl> - assertNoError ( err ) ; <nl> - r ( 1 ) . run ( c , function ( err , res ) { <nl> - assertNoError ( err ) ; <nl> - c . close ( ) ; <nl> + describe ( ' With a server ' , function ( ) { <nl> + <nl> + var cpp_server ; <nl> + <nl> + before ( function ( done ) { <nl> + cpp_server = spawn ( <nl> + ' . . / . . / build / ' + build + ' / rethinkdb ' , <nl> + [ ' - - driver - port ' , port , ' - - http - port ' , ' 0 ' , ' - - cluster - port ' , ' 0 ' ] ) ; <nl> + / / cpp_server . stderr . on ( ' data ' , function ( d ) { console . log ( d . toString ( ) ) } ) ; <nl> + setTimeout ( done , 1000 ) ; <nl> + } ) ; <nl> + <nl> + after ( function ( ) { <nl> + cpp_server . kill ( ) ; <nl> + spawn ( ' rm ' , [ ' - rf ' , ' rethinkdb_data ' ] ) ; <nl> + } ) ; <nl> + <nl> + / / TODO : test default port <nl> + <nl> + it ( " close twice and reconnect " , withConnection ( function ( done , c ) { <nl> + testSimpleQuery ( c , function ( ) { <nl> + assert . doesNotThrow ( function ( ) { <nl> + c . close ( ) ; <nl> + c . close ( ) ; <nl> + c . reconnect ( function ( err , c ) { <nl> + assertNull ( err ) ; <nl> + testSimpleQuery ( c , done ) ; <nl> + } ) ; <nl> + } ) ; <nl> + } ) ; <nl> + } ) ) ; <nl> + <nl> + it ( " fails to query after close " , withConnection ( function ( done , c ) { <nl> c . close ( ) ; <nl> - c . reconnect ( cont ) ; <nl> + assert . throws ( function ( ) { r ( 1 ) . run ( c ) ; } , " RqlDriverError " ) ; <nl> + done ( ) ; <nl> + } ) ) ; <nl> + <nl> + it ( " test use " , withConnection ( function ( done , c ) { <nl> + r . db ( ' test ' ) . tableCreate ( ' t1 ' ) . run ( c , noError ( function ( ) { <nl> + r . dbCreate ( ' db2 ' ) . run ( c , noError ( function ( ) { <nl> + r . db ( ' db2 ' ) . tableCreate ( ' t2 ' ) . run ( c , noError ( function ( ) { <nl> + c . use ( ' db2 ' ) ; <nl> + r . table ( ' t2 ' ) . run ( c , noError ( function ( ) { <nl> + c . use ( ' test ' ) ; <nl> + r . table ( ' t2 ' ) . run ( c , throwsError ( " RqlRuntimeError " , " Table ` t2 ` does not exist . " , <nl> + done ) ) <nl> + } ) ) } ) ) } ) ) } ) ) } ) ) ; <nl> + <nl> + it ( " fails to query after kill " , function ( done ) { <nl> + cpp_server . kill ( ) ; <nl> + setTimeout ( function ( ) { <nl> + assert . throws ( function ( ) { <nl> + r ( 1 ) . run ( c ) ; <nl> + } , " RqlDriverError " , " Connection is closed . " ) ; <nl> + done ( ) ; <nl> + } , 100 ) ; <nl> } ) ; <nl> - } , <nl> - function ( err , c ) { <nl> - assertNoError ( err ) ; <nl> - r ( 1 ) . run ( c , cont ) ; <nl> - } , <nl> - function ( err , res ) { <nl> - assertNoError ( err ) ; <nl> - r . connect ( { port : port } , cont ) ; <nl> - } , <nl> - function ( err , c ) { <nl> - c . close ( ) ; <nl> - try { <nl> - r ( 1 ) . run ( c , cont ) ; <nl> - } catch ( err ) { <nl> - assertErr ( err , " RqlDriverError " , " Connection is closed . " ) ; <nl> - } <nl> - r . connect ( { port : port } , cont ) ; <nl> - } , <nl> - <nl> - / / Test ` use ` <nl> - function ( err , c_l ) { <nl> - assertNoError ( err ) ; <nl> - c = c_l ; / / make it global to use below <nl> - r . db ( ' test ' ) . tableCreate ( ' t1 ' ) . run ( c , cont ) ; <nl> - } , <nl> - function ( err , res ) { <nl> - assertNoError ( err ) ; <nl> - r . dbCreate ( ' db2 ' ) . run ( c , cont ) ; <nl> - } , <nl> - function ( err , res ) { <nl> - assertNoError ( err ) ; <nl> - r . db ( ' db2 ' ) . tableCreate ( ' t2 ' ) . run ( c , cont ) ; <nl> - } , <nl> - function ( err , res ) { <nl> - assertNoError ( err ) ; <nl> - <nl> - c . use ( ' db2 ' ) ; <nl> - r . table ( ' t2 ' ) . run ( c , cont ) ; <nl> - } , <nl> - function ( err , res ) { <nl> - assertNoError ( err ) ; <nl> - <nl> - c . use ( ' test ' ) ; <nl> - r . table ( ' t2 ' ) . run ( c , cont ) ; <nl> - } , <nl> - function ( err , res ) { <nl> - assertErr ( err , " RqlRuntimeError " , " Table ` t2 ` does not exist . " ) ; <nl> - r . connect ( { port : port } , cont ) ; <nl> - } , <nl> - function ( err , c ) { <nl> - cpp_server . kill ( ) <nl> - setTimeout ( function ( ) { <nl> - try { <nl> - r ( 1 ) . run ( c , cont ) ; <nl> - } catch ( err ) { <nl> - assertErr ( err , " RqlDriverError " , " Connection is closed . " ) ; <nl> - cont ( ) ; <nl> - } <nl> - } , 100 ) ; <nl> - } , <nl> - function ( err , res ) { <nl> - console . log ( " done running tests " ) ; <nl> - cont ( ) ; <nl> - } <nl> - ] ; <nl> - <nl> - cont ( ) ; <nl> + } ) ; <nl> + } ) ; <nl> <nl> / / TODO : test cursors , streaming large values <nl> + <nl> | port js connection tests to mocha | rethinkdb/rethinkdb | 1d0f4fd22ef3ad59915c9e2845e2da216254bff8 | 2013-03-13T05:14:02Z |
mmm a / src / base / settingsstorage . cpp <nl> ppp b / src / base / settingsstorage . cpp <nl> bool SettingsStorage : : save ( ) <nl> <nl> QVariant SettingsStorage : : loadValue ( const QString & key , const QVariant & defaultValue ) const <nl> { <nl> - QReadLocker locker ( & m_lock ) ; <nl> + const QReadLocker locker ( & m_lock ) ; <nl> return m_data . value ( mapKey ( key ) , defaultValue ) ; <nl> } <nl> <nl> void SettingsStorage : : storeValue ( const QString & key , const QVariant & value ) <nl> { <nl> const QString realKey = mapKey ( key ) ; <nl> - QWriteLocker locker ( & m_lock ) ; <nl> - if ( m_data . value ( realKey ) ! = value ) { <nl> + const QWriteLocker locker ( & m_lock ) ; <nl> + <nl> + QVariant & currentValue = m_data [ realKey ] ; <nl> + if ( currentValue ! = value ) { <nl> m_dirty = true ; <nl> - m_data . insert ( realKey , value ) ; <nl> + currentValue = value ; <nl> m_timer . start ( ) ; <nl> } <nl> } <nl> void SettingsStorage : : storeValue ( const QString & key , const QVariant & value ) <nl> void SettingsStorage : : removeValue ( const QString & key ) <nl> { <nl> const QString realKey = mapKey ( key ) ; <nl> - QWriteLocker locker ( & m_lock ) ; <nl> - if ( m_data . contains ( realKey ) ) { <nl> + const QWriteLocker locker ( & m_lock ) ; <nl> + if ( m_data . remove ( realKey ) > 0 ) { <nl> m_dirty = true ; <nl> - m_data . remove ( realKey ) ; <nl> m_timer . start ( ) ; <nl> } <nl> } <nl> mmm a / src / base / settingvalue . h <nl> ppp b / src / base / settingvalue . h <nl> class CachedSettingValue <nl> <nl> CachedSettingValue < T > & operator = ( const T & newValue ) <nl> { <nl> + if ( m_value = = newValue ) <nl> + return * this ; <nl> + <nl> m_value = newValue ; <nl> storeValue ( m_value ) ; <nl> return * this ; <nl> | Avoid double lookups | qbittorrent/qBittorrent | daf52a2610b2dbe84c00bd4b5628fb03f2fde5b5 | 2019-09-08T06:28:38Z |
mmm a / tensorflow / python / distribute / client / client_mpr_test . py <nl> ppp b / tensorflow / python / distribute / client / client_mpr_test . py <nl> def _test_translate_ps_failure_error ( self , <nl> test_schedule = False , <nl> test_join = False ) : <nl> <nl> - def proc_func ( functions_scheduled_event , test_finished_event ) : <nl> + def fn ( functions_scheduled_event , test_finished_event ) : <nl> cluster_resolver = TFConfigClusterResolver ( ) <nl> if cluster_resolver . task_type ! = " chief " : <nl> utils . start_server ( cluster_resolver , " grpc " ) <nl> def worker_fn ( ) : <nl> functions_scheduled_event = manager . Event ( ) <nl> test_finished_event = manager . Event ( ) <nl> mpr = multi_process_runner . MultiProcessRunner ( <nl> - proc_func , <nl> + fn , <nl> multi_worker_test_base . create_cluster_spec ( <nl> has_chief = True , num_workers = 3 , num_ps = 1 , has_eval = False ) , <nl> args = ( functions_scheduled_event , test_finished_event ) , <nl> mmm a / tensorflow / python / distribute / cross_device_ops_test . py <nl> ppp b / tensorflow / python / distribute / cross_device_ops_test . py <nl> def __init__ ( self , num_processes ) : <nl> # expensive initialization cost of TensorFlow in new processes . <nl> # <nl> # Note that they have to be globals and can ' t be owned by test classes because <nl> - # usually proc_func usually captures the test class instance , and test class <nl> + # usually fn usually captures the test class instance , and test class <nl> # instance can ' t be pickled if it has mpr as a member ( it is not allowed to <nl> # pickle Process objects ) . <nl> # TODO ( crccw ) : Use ` num_workers ` combination once it is ready . <nl> mmm a / tensorflow / python / distribute / multi_process_runner . py <nl> ppp b / tensorflow / python / distribute / multi_process_runner . py <nl> class MultiProcessRunner ( object ) : <nl> " " " <nl> <nl> def __init__ ( self , <nl> - proc_func , <nl> + fn , <nl> cluster_spec , <nl> rpc_layer = None , <nl> max_run_time = None , <nl> def __init__ ( self , <nl> " " " Creates a multi - process runner . <nl> <nl> Args : <nl> - proc_func : Function to be run on child processes . This will be run on <nl> + fn : Function to be run on child processes . This will be run on <nl> processes for all task types . <nl> cluster_spec : Dict for cluster spec . The following is an example of <nl> cluster with three workers and two ps ' s . <nl> def __init__ ( self , <nl> ' within ` if __name__ = = \ ' __main__ \ ' : ` block ' <nl> ' in your python module to properly initialize ' <nl> ' ` multi_process_runner ` . ' ) <nl> - if not callable ( proc_func ) : <nl> - raise ValueError ( ' proc_func is not a callable ' ) <nl> + if not callable ( fn ) : <nl> + raise ValueError ( ' fn is not a callable ' ) <nl> <nl> - self . _proc_func = proc_func <nl> + self . _fn = fn <nl> self . _cluster_spec = cluster_spec <nl> self . _rpc_layer = rpc_layer or ' grpc ' <nl> self . _max_run_time = max_run_time <nl> def _start_subprocess_and_reading_thread ( self , <nl> task_type , <nl> task_id , <nl> cluster_spec = None , <nl> - proc_func = None , <nl> + fn = None , <nl> args = None , <nl> kwargs = None ) : <nl> " " " Start a subprocess and a thread the reads lines from the subprocess . " " " <nl> def _start_subprocess_and_reading_thread ( self , <nl> streaming_pipe_w = pipe_w , <nl> barrier = self . _barrier , <nl> ) <nl> - if proc_func is None : <nl> - proc_func , args , kwargs = self . _proc_func , self . _args , self . _kwargs <nl> - # Always use dill to pickle proc_func so that we support more callable <nl> + if fn is None : <nl> + fn , args , kwargs = self . _fn , self . _args , self . _kwargs <nl> + # Always use dill to pickle fn so that we support more callable <nl> # types , e . g . lambda . <nl> - proc_func = dill . dumps ( proc_func , dill . HIGHEST_PROTOCOL ) <nl> + fn = dill . dumps ( fn , dill . HIGHEST_PROTOCOL ) <nl> if self . _use_dill_for_args : <nl> args = dill . dumps ( args , dill . HIGHEST_PROTOCOL ) <nl> kwargs = dill . dumps ( kwargs , dill . HIGHEST_PROTOCOL ) <nl> def _start_subprocess_and_reading_thread ( self , <nl> p = _Process ( <nl> test_env = test_env , <nl> target = _ProcFunc ( ) , <nl> - args = ( resources , test_env , proc_func , args , kwargs , <nl> - self . _use_dill_for_args ) , <nl> + args = ( resources , test_env , fn , args , kwargs , self . _use_dill_for_args ) , <nl> daemon = self . _daemon ) <nl> p . start ( ) <nl> self . _processes [ ( task_type , task_id ) ] = p <nl> def start_in_process_as ( self , as_task_type , as_task_id ) : <nl> called : <nl> <nl> ` ` ` python <nl> - def proc_func ( ) : <nl> + def fn ( ) : <nl> # user code to be run <nl> import pdb ; pdb . set_trace ( ) <nl> <nl> def follow_ups ( ) : <nl> task_id = 0 ) <nl> <nl> mpr = multi_process_runner . MultiProcessRunner ( <nl> - proc_func , <nl> + fn , <nl> multi_worker_test_base . create_cluster_spec ( <nl> has_chief = True , num_workers = 1 ) ) <nl> threading . Thread ( target = follow_ups ) . start ( ) <nl> def follow_ups ( ) : <nl> <nl> _set_tf_config ( as_task_type , as_task_id , self . _cluster_spec , <nl> self . _rpc_layer ) <nl> - self . _proc_func ( * self . _args , * * self . _kwargs ) <nl> + self . _fn ( * self . _args , * * self . _kwargs ) <nl> <nl> def start_single_process ( self , <nl> task_type , <nl> task_id , <nl> cluster_spec = None , <nl> - proc_func = None , <nl> + fn = None , <nl> args = None , <nl> kwargs = None ) : <nl> " " " Starts a single process . <nl> <nl> This starts a process in the cluster with the task type , task id , and the <nl> - process function ( ` proc_func ` ) . If process function is ` None ` , the function <nl> + process function ( ` fn ` ) . If process function is ` None ` , the function <nl> provided at ` __init__ ` will be used . If ` cluster_spec ` is ` None ` , the <nl> cluster spec provided at ` __init__ ` will be used . <nl> <nl> def start_single_process ( self , <nl> cluster_spec : The cluster spec to be used on the newly started <nl> process . If ` None ` , the cluster spec provided at ` __init__ ` will be <nl> used . <nl> - proc_func : The process function to be run on the newly started <nl> + fn : The process function to be run on the newly started <nl> process . If specified , specify ` args ` and ` kwargs ` as well . If ` None ` , <nl> the function provided at ` __init__ ` will be used . <nl> - args : Optional positional arguments to be supplied in ` proc_func ` . <nl> - kwargs : Optional keyword arguments to be supplied in ` proc_func ` . <nl> + args : Optional positional arguments to be supplied in ` fn ` . <nl> + kwargs : Optional keyword arguments to be supplied in ` fn ` . <nl> " " " <nl> with self . _process_lock : <nl> if self . _joined : <nl> def start_single_process ( self , <nl> task_type , <nl> task_id , <nl> cluster_spec = cluster_spec , <nl> - proc_func = proc_func , <nl> + fn = fn , <nl> args = args or ( ) , <nl> kwargs = kwargs or { } ) <nl> <nl> def _close_streaming ( self ) : <nl> sys . stderr . close ( ) <nl> self . _resources . streaming_pipe_w . close ( ) <nl> <nl> - def __call__ ( self , resources , test_env , proc_func , args , kwargs , <nl> - use_dill_for_args ) : <nl> + def __call__ ( self , resources , test_env , fn , args , kwargs , use_dill_for_args ) : <nl> " " " The wrapper function that actually gets run in child process ( es ) . " " " <nl> <nl> global _barrier <nl> <nl> self . _resources = resources <nl> _barrier = self . _resources . barrier <nl> - proc_func = dill . loads ( proc_func ) <nl> + fn = dill . loads ( fn ) <nl> if use_dill_for_args : <nl> args = dill . loads ( args ) <nl> kwargs = dill . loads ( kwargs ) <nl> def __call__ ( self , resources , test_env , proc_func , args , kwargs , <nl> v2_compat . enable_v2_behavior ( ) <nl> <nl> with self . _runtime_mode ( test_env . executing_eagerly ) : <nl> - info = _run_contained ( test_env . task_type , test_env . task_id , proc_func , <nl> - args , kwargs ) <nl> + info = _run_contained ( test_env . task_type , test_env . task_id , fn , args , <nl> + kwargs ) <nl> self . _resources . process_status_queue . put ( info ) <nl> <nl> # Re - raise the exception in addition to reporting it to the parent <nl> def shutdown ( self ) : <nl> def _start ( self ) : <nl> " " " Starts the worker pool . " " " <nl> # We need different arguments for different processes so we ' re passing a <nl> - # no - op proc_func here and use start_single_process instead . <nl> + # no - op fn here and use start_single_process instead . <nl> <nl> if dill is None : <nl> raise unittest . SkipTest ( <nl> ' TODO ( b / 150264776 ) : Resolve dependency issue in CI ' ) <nl> <nl> self . _runner = MultiProcessRunner ( <nl> - proc_func = lambda : None , <nl> + fn = lambda : None , <nl> cluster_spec = self . _cluster_spec , <nl> use_dill_for_args = False ) <nl> if self . _initializer : <nl> def _start ( self ) : <nl> self . _runner . start_single_process ( <nl> task_type , <nl> task_id , <nl> - proc_func = _pool_runner_worker , <nl> + fn = _pool_runner_worker , <nl> args = ( task_type , task_id , initializer , conn2 ) ) <nl> # In the case MultiProcessPoolRunner is not GC - ed , we register an atexit <nl> # callback to shut them down . For example , when there ' re global <nl> # MultiProcessPoolRunner . <nl> atexit . register ( _shutdown_all_pool_runners ) <nl> <nl> - def run ( self , proc_func , args = None , kwargs = None ) : <nl> - " " " Runs ` proc_func ` with ` args ` and ` kwargs ` on all jobs . <nl> + def run ( self , fn , args = None , kwargs = None ) : <nl> + " " " Runs ` fn ` with ` args ` and ` kwargs ` on all jobs . <nl> <nl> Args : <nl> - proc_func : The function to be run . <nl> - args : Optional positional arguments to be supplied in ` proc_func ` . <nl> - kwargs : Optional keyword arguments to be supplied in ` proc_func ` . <nl> + fn : The function to be run . <nl> + args : Optional positional arguments to be supplied in ` fn ` . <nl> + kwargs : Optional keyword arguments to be supplied in ` fn ` . <nl> <nl> Returns : <nl> A list of return values . <nl> def run ( self , proc_func , args = None , kwargs = None ) : <nl> if self . _runner is None : <nl> self . _start ( ) <nl> <nl> - proc_func = dill . dumps ( proc_func , dill . HIGHEST_PROTOCOL ) <nl> + fn = dill . dumps ( fn , dill . HIGHEST_PROTOCOL ) <nl> for conn in self . _conn . values ( ) : <nl> - conn . send ( ( proc_func , args or [ ] , kwargs or { } ) ) <nl> + conn . send ( ( fn , args or [ ] , kwargs or { } ) ) <nl> <nl> process_statuses = [ ] <nl> for ( task_type , task_id ) , conn in self . _conn . items ( ) : <nl> def run ( self , proc_func , args = None , kwargs = None ) : <nl> try : <nl> process_statuses . append ( conn . recv ( ) ) <nl> except EOFError : <nl> - # This shouldn ' t happen due to exceptions in proc_func . This usually <nl> + # This shouldn ' t happen due to exceptions in fn . This usually <nl> # means bugs in the runner . <nl> self . shutdown ( ) <nl> raise RuntimeError ( ' Unexpected EOF . Worker process may have died . ' <nl> def _pool_runner_worker ( task_type , task_id , initializer , conn ) : <nl> initializer ( ) <nl> while True : <nl> try : <nl> - proc_func , args , kwargs = conn . recv ( ) <nl> + fn , args , kwargs = conn . recv ( ) <nl> except EOFError : <nl> break <nl> - proc_func = dill . loads ( proc_func ) <nl> - info = _run_contained ( task_type , task_id , proc_func , args , kwargs ) <nl> + fn = dill . loads ( fn ) <nl> + info = _run_contained ( task_type , task_id , fn , args , kwargs ) <nl> sys . stdout . flush ( ) <nl> sys . stderr . flush ( ) <nl> conn . send ( info ) <nl> def _pool_runner_worker ( task_type , task_id , initializer , conn ) : <nl> _shutdown_all_pool_runners ( ) <nl> <nl> <nl> - def _run_contained ( task_type , task_id , proc_func , args , kwargs ) : <nl> - " " " Runs ` proc_func ` with ` args ` and ` kwargs ` . <nl> + def _run_contained ( task_type , task_id , fn , args , kwargs ) : <nl> + " " " Runs ` fn ` with ` args ` and ` kwargs ` . <nl> <nl> The function returns _ProcessStatusInfo which captures the return value and <nl> the exception . <nl> def _run_contained ( task_type , task_id , proc_func , args , kwargs ) : <nl> Args : <nl> task_type : the task type . <nl> task_id : the task index . <nl> - proc_func : the function to be run . <nl> - args : optional positional arguments to be supplied in ` proc_func ` . <nl> - kwargs : optional keyword arguments to be supplied in ` proc_func ` . <nl> + fn : the function to be run . <nl> + args : optional positional arguments to be supplied in ` fn ` . <nl> + kwargs : optional keyword arguments to be supplied in ` fn ` . <nl> <nl> Returns : <nl> a _ProcessStatusInfo . <nl> def _run_contained ( task_type , task_id , proc_func , args , kwargs ) : <nl> return_value = None <nl> exc_info = None <nl> try : <nl> - return_value = proc_func ( * args , * * kwargs ) <nl> + return_value = fn ( * args , * * kwargs ) <nl> is_successful = True <nl> return _ProcessStatusInfo ( <nl> task_type = task_type , <nl> def _run_contained ( task_type , task_id , proc_func , args , kwargs ) : <nl> exc_info = exc_info , <nl> return_value = return_value ) <nl> <nl> - # If ` proc_func ` ends up exiting with ` sys . exit ( ) ` , the ` SystemExit ` is not <nl> + # If ` fn ` ends up exiting with ` sys . exit ( ) ` , the ` SystemExit ` is not <nl> # handled here . <nl> except Exception : # pylint : disable = broad - except <nl> exc_info = sys . exc_info ( ) <nl> def _set_tf_config ( task_type , task_id , cluster_spec , rpc_layer = None ) : <nl> os . environ [ ' TF_CONFIG ' ] = json . dumps ( tf_config_dict ) <nl> <nl> <nl> - def run ( proc_func , <nl> + def run ( fn , <nl> cluster_spec , <nl> rpc_layer = None , <nl> max_run_time = None , <nl> def run ( proc_func , <nl> A MultiProcessRunnerResult object returned from ` MultiProcessRunner . join ( ) ` . <nl> " " " <nl> runner = MultiProcessRunner ( <nl> - proc_func , <nl> + fn , <nl> cluster_spec , <nl> rpc_layer , <nl> max_run_time = max_run_time , <nl> def manager ( ) : <nl> ` ` ` python <nl> manager = multi_process_runner . manager ( ) <nl> some_event_happening_in_subprocess = manager . Event ( ) <nl> - mpr = multi_process_runner . MultiProcessRunner ( proc_func , cluster_spec , <nl> + mpr = multi_process_runner . MultiProcessRunner ( fn , cluster_spec , <nl> args = ( some_event_happening_in_subprocess , ) ) <nl> mpr . start ( ) <nl> some_event_happening_in_subprocess . wait ( ) <nl> mmm a / tensorflow / python / distribute / multi_process_runner_test . py <nl> ppp b / tensorflow / python / distribute / multi_process_runner_test . py <nl> <nl> from tensorflow . python . eager import test <nl> <nl> <nl> - def proc_func_that_adds_task_type_in_return_data ( ) : <nl> + def fn_that_adds_task_type_in_return_data ( ) : <nl> return multi_worker_test_base . get_task_type ( ) <nl> <nl> <nl> - def proc_func_that_errors ( ) : <nl> + def fn_that_errors ( ) : <nl> raise ValueError ( ' This is an error . ' ) <nl> <nl> <nl> - def proc_func_that_does_nothing ( ) : <nl> + def fn_that_does_nothing ( ) : <nl> pass <nl> <nl> <nl> - def proc_func_that_adds_simple_return_data ( ) : <nl> + def fn_that_adds_simple_return_data ( ) : <nl> return ' dummy_data ' <nl> <nl> <nl> - def proc_func_that_returns_args_and_kwargs ( * args , * * kwargs ) : <nl> + def fn_that_returns_args_and_kwargs ( * args , * * kwargs ) : <nl> return list ( args ) + list ( kwargs . items ( ) ) <nl> <nl> <nl> - def proc_func_with_barrier ( ) : <nl> + def fn_with_barrier ( ) : <nl> return multi_process_runner . barrier ( ) <nl> <nl> <nl> - def proc_func_that_returns_pid ( ) : <nl> + def fn_that_returns_pid ( ) : <nl> return os . getpid ( ) <nl> <nl> <nl> V = None <nl> <nl> <nl> - def proc_func_that_sets_global ( val ) : <nl> + def fn_that_sets_global ( val ) : <nl> global V <nl> old_val = V <nl> V = val <nl> def _worker_idx ( self ) : <nl> <nl> def test_multi_process_runner ( self ) : <nl> mpr_result = multi_process_runner . run ( <nl> - proc_func_that_adds_task_type_in_return_data , <nl> + fn_that_adds_task_type_in_return_data , <nl> multi_worker_test_base . create_cluster_spec ( <nl> num_workers = 2 , num_ps = 3 , has_eval = 1 ) ) <nl> <nl> def test_multi_process_runner ( self ) : <nl> <nl> def test_multi_process_runner_error_propagates_from_subprocesses ( self ) : <nl> runner = multi_process_runner . MultiProcessRunner ( <nl> - proc_func_that_errors , <nl> + fn_that_errors , <nl> multi_worker_test_base . create_cluster_spec ( num_workers = 1 , num_ps = 1 ) , <nl> max_run_time = 20 ) <nl> runner . start ( ) <nl> def test_multi_process_runner_error_propagates_from_subprocesses ( self ) : <nl> <nl> def test_multi_process_runner_queue_emptied_between_runs ( self ) : <nl> cluster_spec = multi_worker_test_base . create_cluster_spec ( num_workers = 2 ) <nl> - return_value = multi_process_runner . run ( <nl> - proc_func_that_adds_simple_return_data , cluster_spec ) . return_value <nl> + return_value = multi_process_runner . run ( fn_that_adds_simple_return_data , <nl> + cluster_spec ) . return_value <nl> self . assertTrue ( return_value ) <nl> self . assertEqual ( return_value [ 0 ] , ' dummy_data ' ) <nl> self . assertEqual ( return_value [ 1 ] , ' dummy_data ' ) <nl> - return_value = multi_process_runner . run ( proc_func_that_does_nothing , <nl> + return_value = multi_process_runner . run ( fn_that_does_nothing , <nl> cluster_spec ) . return_value <nl> self . assertFalse ( return_value ) <nl> <nl> def test_multi_process_runner_args_passed_correctly ( self ) : <nl> return_value = multi_process_runner . run ( <nl> - proc_func_that_returns_args_and_kwargs , <nl> + fn_that_returns_args_and_kwargs , <nl> multi_worker_test_base . create_cluster_spec ( num_workers = 1 ) , <nl> args = ( ' a ' , ' b ' ) , <nl> kwargs = { <nl> def simple_print_func ( ) : <nl> <nl> def test_termination ( self ) : <nl> <nl> - def proc_func ( ) : <nl> + def fn ( ) : <nl> for i in range ( 0 , 10 ) : <nl> print ( <nl> ' index { } , iteration { } ' . format ( self . _worker_idx ( ) , i ) , flush = True ) <nl> time . sleep ( 5 ) <nl> <nl> mpr = multi_process_runner . MultiProcessRunner ( <nl> - proc_func , <nl> + fn , <nl> multi_worker_test_base . create_cluster_spec ( num_workers = 2 ) , <nl> list_stdout = True ) <nl> mpr . start ( ) <nl> def proc_func ( ) : <nl> <nl> def test_termination_and_start_single_process ( self ) : <nl> <nl> - def proc_func ( ) : <nl> + def fn ( ) : <nl> for i in range ( 0 , 10 ) : <nl> print ( <nl> ' index { } , iteration { } ' . format ( self . _worker_idx ( ) , i ) , flush = True ) <nl> time . sleep ( 1 ) <nl> <nl> mpr = multi_process_runner . MultiProcessRunner ( <nl> - proc_func , <nl> + fn , <nl> multi_worker_test_base . create_cluster_spec ( num_workers = 2 ) , <nl> list_stdout = True ) <nl> mpr . start ( ) <nl> def proc_func ( ) : <nl> <nl> def test_streaming ( self ) : <nl> <nl> - def proc_func ( ) : <nl> + def fn ( ) : <nl> for i in range ( 5 ) : <nl> logging . info ( ' ( logging ) % s - % d , i : % d ' , <nl> multi_worker_test_base . get_task_type ( ) , self . _worker_idx ( ) , <nl> def proc_func ( ) : <nl> time . sleep ( 1 ) <nl> <nl> mpr = multi_process_runner . MultiProcessRunner ( <nl> - proc_func , <nl> + fn , <nl> multi_worker_test_base . create_cluster_spec ( <nl> has_chief = True , num_workers = 2 , num_ps = 2 , has_eval = True ) , <nl> list_stdout = True ) <nl> def proc_func ( ) : <nl> <nl> def test_start_in_process_as ( self ) : <nl> <nl> - def proc_func ( ) : <nl> + def fn ( ) : <nl> for i in range ( 5 ) : <nl> logging . info ( ' % s - % d , i : % d ' , multi_worker_test_base . get_task_type ( ) , <nl> self . _worker_idx ( ) , i ) <nl> time . sleep ( 1 ) <nl> <nl> mpr = multi_process_runner . MultiProcessRunner ( <nl> - proc_func , <nl> + fn , <nl> multi_worker_test_base . create_cluster_spec ( <nl> has_chief = True , num_workers = 1 ) , <nl> list_stdout = True ) <nl> def eval_func ( ) : <nl> <nl> def test_terminate_all_does_not_ignore_error ( self ) : <nl> mpr = multi_process_runner . MultiProcessRunner ( <nl> - proc_func_that_errors , <nl> + fn_that_errors , <nl> multi_worker_test_base . create_cluster_spec ( num_workers = 2 ) , <nl> list_stdout = True ) <nl> mpr . start ( ) <nl> def test_terminate_all_does_not_ignore_error ( self ) : <nl> <nl> def test_barrier ( self ) : <nl> multi_process_runner . run ( <nl> - proc_func_with_barrier , <nl> + fn_with_barrier , <nl> cluster_spec = multi_worker_test_base . create_cluster_spec ( <nl> has_chief = True , num_workers = 1 ) , <nl> ) <nl> def test_barrier_called_in_main_process ( self ) : <nl> <nl> def test_stdout_available_when_timeout ( self ) : <nl> <nl> - def proc_func ( ) : <nl> + def fn ( ) : <nl> logging . info ( ' something printed ' ) <nl> time . sleep ( 10000 ) # Intentionally make the test timeout . <nl> <nl> with self . assertRaises ( multi_process_runner . SubprocessTimeoutError ) as cm : <nl> mpr = multi_process_runner . MultiProcessRunner ( <nl> - proc_func , <nl> + fn , <nl> multi_worker_test_base . create_cluster_spec ( num_workers = 1 ) , <nl> list_stdout = True ) <nl> mpr . start ( ) <nl> def proc_func ( ) : <nl> <nl> def test_seg_fault_raises_error ( self ) : <nl> <nl> - def proc_func_expected_to_seg_fault ( ) : <nl> + def fn_expected_to_seg_fault ( ) : <nl> ctypes . string_at ( 0 ) # Intentionally made seg fault . <nl> <nl> with self . assertRaises ( <nl> multi_process_runner . UnexpectedSubprocessExitError ) as cm : <nl> multi_process_runner . run ( <nl> - proc_func_expected_to_seg_fault , <nl> + fn_expected_to_seg_fault , <nl> multi_worker_test_base . create_cluster_spec ( num_workers = 1 ) , <nl> list_stdout = True ) <nl> self . assertIn ( ' Subprocess worker - 0 exited with exit code ' , <nl> def proc_func_expected_to_seg_fault ( ) : <nl> <nl> def test_seg_fault_in_chief_raises_error ( self ) : <nl> <nl> - def proc_func_expected_to_seg_fault ( ) : <nl> + def fn_expected_to_seg_fault ( ) : <nl> if multi_worker_test_base . get_task_type ( ) = = ' worker ' : <nl> time . sleep ( 10000 ) <nl> ctypes . string_at ( 0 ) # Intentionally made seg fault . <nl> def proc_func_expected_to_seg_fault ( ) : <nl> with self . assertRaises ( <nl> multi_process_runner . UnexpectedSubprocessExitError ) as cm : <nl> multi_process_runner . run ( <nl> - proc_func_expected_to_seg_fault , <nl> + fn_expected_to_seg_fault , <nl> multi_worker_test_base . create_cluster_spec ( <nl> has_chief = True , num_workers = 1 ) , <nl> list_stdout = True ) <nl> def proc_func_expected_to_seg_fault ( ) : <nl> <nl> def test_exit_code_is_reported_by_chief_subprocess ( self ) : <nl> <nl> - def proc_func_expected_to_exit_with_20 ( ) : <nl> + def fn_expected_to_exit_with_20 ( ) : <nl> if multi_worker_test_base . get_task_type ( ) = = ' worker ' : <nl> time . sleep ( 10000 ) <nl> sys . exit ( 20 ) <nl> <nl> mpr = multi_process_runner . MultiProcessRunner ( <nl> - proc_func_expected_to_exit_with_20 , <nl> + fn_expected_to_exit_with_20 , <nl> multi_worker_test_base . create_cluster_spec ( <nl> has_chief = True , num_workers = 1 ) ) <nl> mpr . start ( ) <nl> def proc_func_expected_to_exit_with_20 ( ) : <nl> <nl> def test_exit_code_is_reported_by_subprocess ( self ) : <nl> <nl> - def proc_func_expected_to_exit_with_10 ( ) : <nl> + def fn_expected_to_exit_with_10 ( ) : <nl> sys . exit ( 10 ) <nl> <nl> mpr = multi_process_runner . MultiProcessRunner ( <nl> - proc_func_expected_to_exit_with_10 , <nl> + fn_expected_to_exit_with_10 , <nl> multi_worker_test_base . create_cluster_spec ( num_workers = 1 ) ) <nl> mpr . start ( ) <nl> <nl> def proc_func_expected_to_exit_with_10 ( ) : <nl> <nl> def test_auto_restart ( self ) : <nl> <nl> - def proc_func ( counter ) : <nl> + def fn ( counter ) : <nl> counter . value + = 1 <nl> if counter . value = = 1 : <nl> raise ValueError <nl> def proc_func ( counter ) : <nl> manager = multi_process_runner . manager ( ) <nl> counter = manager . Value ( int , 0 ) <nl> mpr = multi_process_runner . MultiProcessRunner ( <nl> - proc_func , <nl> + fn , <nl> multi_worker_test_base . create_cluster_spec ( num_workers = 1 ) , <nl> args = ( counter , ) , <nl> auto_restart = True ) <nl> def proc_func ( counter ) : <nl> <nl> def test_auto_restart_and_timeout ( self ) : <nl> <nl> - def proc_func ( ) : <nl> + def fn ( ) : <nl> logging . info ( ' Running ' ) <nl> time . sleep ( 1 ) <nl> raise ValueError <nl> <nl> mpr = multi_process_runner . MultiProcessRunner ( <nl> - proc_func , <nl> + fn , <nl> multi_worker_test_base . create_cluster_spec ( num_workers = 1 ) , <nl> auto_restart = True , <nl> list_stdout = True ) <nl> def test_auto_restart_and_chief ( self ) : <nl> # If the chief has exited with zero exit code , auto restart should stop <nl> # restarting other tasks even if they fail . <nl> <nl> - def proc_func ( ) : <nl> + def fn ( ) : <nl> time . sleep ( 1 ) <nl> if multi_worker_test_base . get_task_type ( ) ! = ' chief ' : <nl> raise ValueError <nl> <nl> manager = multi_process_runner . manager ( ) <nl> mpr = multi_process_runner . MultiProcessRunner ( <nl> - proc_func , <nl> + fn , <nl> multi_worker_test_base . create_cluster_spec ( <nl> has_chief = True , num_workers = 1 ) , <nl> auto_restart = True ) <nl> def proc_func ( ) : <nl> def test_auto_restart_failure_immediate_after_restart ( self ) : <nl> # Test the case when worker - 0 fails immediately after worker - 1 restarts . <nl> <nl> - def proc_func ( ) : <nl> + def fn ( ) : <nl> time . sleep ( 5 ) <nl> <nl> mpr = multi_process_runner . MultiProcessRunner ( <nl> - proc_func , <nl> + fn , <nl> multi_worker_test_base . create_cluster_spec ( <nl> has_chief = False , num_workers = 2 ) , <nl> auto_restart = True ) <nl> def proc_func ( ) : <nl> def test_auto_restart_terminate ( self ) : <nl> # Tasks terminated by the user should also be restarted . <nl> <nl> - def proc_func ( counter ) : <nl> + def fn ( counter ) : <nl> counter . value + = 1 <nl> if counter . value = = 1 : <nl> time . sleep ( 100 ) <nl> def proc_func ( counter ) : <nl> counter = manager . Value ( int , 0 ) <nl> <nl> mpr = multi_process_runner . MultiProcessRunner ( <nl> - proc_func , <nl> + fn , <nl> multi_worker_test_base . create_cluster_spec ( <nl> has_chief = False , num_workers = 1 ) , <nl> args = ( counter , ) , <nl> def proc_func ( counter ) : <nl> <nl> def test_error_reporting_overrides_timeout_reporting ( self ) : <nl> <nl> - def proc_func ( ) : <nl> + def fn ( ) : <nl> if self . _worker_idx ( ) = = 1 : <nl> time . sleep ( 10000 ) <nl> raise ValueError ( ' Worker 0 errored ' ) <nl> <nl> mpr = multi_process_runner . MultiProcessRunner ( <nl> - proc_func , <nl> - multi_worker_test_base . create_cluster_spec ( num_workers = 2 ) ) <nl> + fn , multi_worker_test_base . create_cluster_spec ( num_workers = 2 ) ) <nl> mpr . start ( ) <nl> <nl> with self . assertRaisesRegex ( <nl> def proc_func ( ) : <nl> <nl> def test_process_exists ( self ) : <nl> <nl> - def proc_func ( ) : <nl> + def fn ( ) : <nl> time . sleep ( 100000 ) <nl> <nl> mpr = multi_process_runner . MultiProcessRunner ( <nl> - proc_func , <nl> - multi_worker_test_base . create_cluster_spec ( num_workers = 1 ) ) <nl> + fn , multi_worker_test_base . create_cluster_spec ( num_workers = 1 ) ) <nl> mpr . start ( ) <nl> self . assertTrue ( mpr . process_exists ( ' worker ' , 0 ) ) <nl> mpr . terminate ( ' worker ' , 0 ) <nl> def proc_func ( ) : <nl> <nl> def test_timeout_none ( self ) : <nl> <nl> - def proc_func ( ) : <nl> + def fn ( ) : <nl> time . sleep ( 250 ) <nl> raise ValueError ( ' Worker 0 errored ' ) <nl> <nl> mpr = multi_process_runner . MultiProcessRunner ( <nl> - proc_func , multi_worker_test_base . create_cluster_spec ( num_workers = 1 ) ) <nl> + fn , multi_worker_test_base . create_cluster_spec ( num_workers = 1 ) ) <nl> <nl> mpr . start ( ) <nl> with self . assertRaisesRegex ( ValueError , ' Worker 0 errored ' ) : <nl> class MultiProcessPoolRunnerTest ( test . TestCase ) : <nl> def test_same_process_across_runs ( self ) : <nl> cluster_spec = multi_worker_test_base . create_cluster_spec ( num_workers = 2 ) <nl> runner = multi_process_runner . MultiProcessPoolRunner ( cluster_spec ) <nl> - pid = runner . run ( proc_func_that_returns_pid ) <nl> + pid = runner . run ( fn_that_returns_pid ) <nl> for _ in range ( 3 ) : <nl> - self . assertAllEqual ( runner . run ( proc_func_that_returns_pid ) , pid ) <nl> + self . assertAllEqual ( runner . run ( fn_that_returns_pid ) , pid ) <nl> <nl> def test_exceptions_in_sub_process ( self ) : <nl> cluster_spec = multi_worker_test_base . create_cluster_spec ( num_workers = 2 ) <nl> runner = multi_process_runner . MultiProcessPoolRunner ( cluster_spec ) <nl> - pid = runner . run ( proc_func_that_returns_pid ) <nl> + pid = runner . run ( fn_that_returns_pid ) <nl> with self . assertRaisesRegex ( ValueError , ' This is an error . ' ) : <nl> - runner . run ( proc_func_that_errors ) <nl> - self . assertAllEqual ( runner . run ( proc_func_that_returns_pid ) , pid ) <nl> + runner . run ( fn_that_errors ) <nl> + self . assertAllEqual ( runner . run ( fn_that_returns_pid ) , pid ) <nl> <nl> def test_tf_config ( self ) : <nl> cluster_spec = multi_worker_test_base . create_cluster_spec ( <nl> has_chief = True , num_workers = 2 ) <nl> runner = multi_process_runner . MultiProcessPoolRunner ( cluster_spec ) <nl> - result = runner . run ( proc_func_that_adds_task_type_in_return_data ) <nl> + result = runner . run ( fn_that_adds_task_type_in_return_data ) <nl> <nl> job_count_dict = { ' worker ' : 2 , ' chief ' : 1 } <nl> for data in result : <nl> def test_exception_in_main_process ( self ) : <nl> cluster_spec = multi_worker_test_base . create_cluster_spec ( <nl> has_chief = True , num_workers = 2 ) <nl> runner = multi_process_runner . MultiProcessPoolRunner ( cluster_spec ) <nl> - runner . run ( proc_func_that_returns_pid ) <nl> + runner . run ( fn_that_returns_pid ) <nl> raise ValueError ( ' failure ' ) <nl> <nl> def test_initializer ( self ) : <nl> cluster_spec = multi_worker_test_base . create_cluster_spec ( num_workers = 2 ) <nl> runner = multi_process_runner . MultiProcessPoolRunner ( <nl> - cluster_spec , initializer = lambda : proc_func_that_sets_global ( 1 ) ) <nl> - result = runner . run ( proc_func_that_sets_global , args = ( 2 , ) ) <nl> + cluster_spec , initializer = lambda : fn_that_sets_global ( 1 ) ) <nl> + result = runner . run ( fn_that_sets_global , args = ( 2 , ) ) <nl> self . assertAllEqual ( result , [ 1 , 1 ] ) <nl> <nl> def test_global_pool ( self ) : <nl> - _global_pool . run ( proc_func_that_does_nothing ) <nl> + _global_pool . run ( fn_that_does_nothing ) <nl> <nl> def test_nested_pool ( self ) : <nl> <nl> - def proc_func ( ) : <nl> + def fn ( ) : <nl> # This runs in sub processes , so they are each using their own <nl> # MultiProcessPoolRunner . <nl> - _global_pool . run ( proc_func_that_does_nothing ) <nl> + _global_pool . run ( fn_that_does_nothing ) <nl> <nl> - _global_pool . run ( proc_func ) <nl> + _global_pool . run ( fn ) <nl> <nl> <nl> if __name__ = = ' __main__ ' : <nl> mmm a / tensorflow / python / keras / distribute / multi_worker_tutorial_test . py <nl> ppp b / tensorflow / python / keras / distribute / multi_worker_tutorial_test . py <nl> def build_and_compile_cnn_model ( ) : <nl> <nl> num_workers = 4 <nl> <nl> - def proc_func ( model_path , checkpoint_dir ) : <nl> + def fn ( model_path , checkpoint_dir ) : <nl> global_batch_size = per_worker_batch_size * num_workers <nl> strategy = collective_all_reduce_strategy . CollectiveAllReduceStrategy ( ) <nl> with strategy . scope ( ) : <nl> def write_filepath ( filepath , task_type , task_id ) : <nl> checkpoint_dir = os . path . join ( self . get_temp_dir ( ) , ' ckpt ' ) <nl> with test_util . skip_if_error ( self , errors_impl . UnavailableError ) : <nl> mpr_result = multi_process_runner . run ( <nl> - proc_func , <nl> + fn , <nl> multi_worker_test_base . create_cluster_spec ( num_workers = num_workers ) , <nl> args = ( model_path , checkpoint_dir ) , <nl> list_stdout = True ) <nl> | MultiProcessRunner : String replacement of ` proc_func ` - > ` fn ` . | tensorflow/tensorflow | 36905b9dfff0499d7bddc662ec0265cffa10a81f | 2020-09-28T15:29:49Z |
mmm a / lib / Sema / CSApply . cpp <nl> ppp b / lib / Sema / CSApply . cpp <nl> namespace { <nl> : cs ( cs ) , dc ( cs . DC ) , solution ( solution ) , <nl> SuppressDiagnostics ( suppressDiagnostics ) { } <nl> <nl> - ~ ExprRewriter ( ) { <nl> - finalize ( ) ; <nl> - } <nl> - <nl> ConstraintSystem & getConstraintSystem ( ) const { return cs ; } <nl> <nl> / / / \ brief Simplify the expression type and return the expression . <nl> namespace { <nl> return E ; <nl> } <nl> <nl> - private : <nl> - void finalize ( ) { <nl> + void finalize ( Expr * & result ) { <nl> / / Check that all value type methods were fully applied . <nl> auto & tc = cs . getTypeChecker ( ) ; <nl> for ( auto & unapplied : InvalidPartialApplications ) { <nl> Expr * ExprRewriter : : coerceToType ( Expr * expr , Type toType , <nl> / / Load from the lvalue . <nl> expr = new ( tc . Context ) LoadExpr ( expr , fromType - > getRValueType ( ) ) ; <nl> <nl> + closeExistential ( expr ) ; <nl> + <nl> / / Coerce the result . <nl> return coerceToType ( expr , toType , locator ) ; <nl> } <nl> Expr * ExprRewriter : : coerceToType ( Expr * expr , Type toType , <nl> / / Load from the lvalue . <nl> expr = new ( tc . Context ) LoadExpr ( expr , fromLValue - > getObjectType ( ) ) ; <nl> <nl> + closeExistential ( expr ) ; <nl> + <nl> / / Coerce the result . <nl> return coerceToType ( expr , toType , locator ) ; <nl> } <nl> Expr * ConstraintSystem : : applySolution ( Solution & solution , Expr * expr , <nl> getConstraintLocator ( expr ) ) ; <nl> } <nl> <nl> + if ( result ) <nl> + rewriter . finalize ( result ) ; <nl> + <nl> return result ; <nl> } <nl> <nl> Expr * ConstraintSystem : : applySolutionShallow ( const Solution & solution , <nl> Expr * expr , <nl> bool suppressDiagnostics ) { <nl> ExprRewriter rewriter ( * this , solution , suppressDiagnostics ) ; <nl> - return rewriter . visit ( expr ) ; <nl> + Expr * result = rewriter . visit ( expr ) ; <nl> + if ( result ) <nl> + rewriter . finalize ( result ) ; <nl> + return result ; <nl> } <nl> <nl> Expr * Solution : : coerceToType ( Expr * expr , Type toType , <nl> Expr * Solution : : coerceToType ( Expr * expr , Type toType , <nl> } <nl> } <nl> <nl> + rewriter . finalize ( result ) ; <nl> return result ; <nl> } <nl> <nl> Expr * TypeChecker : : callWitness ( Expr * base , DeclContext * dc , <nl> <nl> / / Call the witness . <nl> ApplyExpr * apply = new ( Context ) CallExpr ( memberRef , arg , / * Implicit = * / true ) ; <nl> - return rewriter . finishApply ( apply , openedType , cs . getConstraintLocator ( arg ) ) ; <nl> + Expr * result = rewriter . finishApply ( apply , openedType , <nl> + cs . getConstraintLocator ( arg ) ) ; <nl> + if ( ! result ) <nl> + return nullptr ; <nl> + <nl> + rewriter . finalize ( result ) ; <nl> + return result ; <nl> } <nl> <nl> / / / \ brief Convert an expression via a builtin protocol . <nl> static Expr * convertViaBuiltinProtocol ( const Solution & solution , <nl> assert ( ! failed & & " Could not call witness ? " ) ; <nl> ( void ) failed ; <nl> <nl> + rewriter . finalize ( expr ) ; <nl> return expr ; <nl> } <nl> <nl> | Revert " Simplify constraint application now that open - existentials are more local . " | apple/swift | 6755aaf6b9dde4f45cc89ee979e571a40c63461f | 2015-04-09T15:51:01Z |
mmm a / aten / src / ATen / core / dispatch / Dispatcher . cpp <nl> ppp b / aten / src / ATen / core / dispatch / Dispatcher . cpp <nl> RegistrationHandleRAII Dispatcher : : registerDef ( FunctionSchema schema , std : : strin <nl> OperatorName op_name = schema . operator_name ( ) ; <nl> auto op = findOrRegisterName_ ( op_name ) ; <nl> <nl> - if ( op . operatorIterator_ - > def_count = = 0 ) { <nl> - / / NB : registerSchema is not idempotent ! Only do it once ! <nl> - op . operatorIterator_ - > op . registerSchema ( std : : move ( schema ) , std : : move ( debug ) ) ; <nl> - listeners_ - > callOnOperatorRegistered ( op ) ; <nl> - } else { <nl> - checkSchemaCompatibility ( op , schema , debug ) ; <nl> - } <nl> + TORCH_CHECK ( op . operatorIterator_ - > def_count = = 0 , " Tried to register an operator ( " , schema , " ) with the same name and overload name multiple times . " , <nl> + " Each overload ' s schema should only be registered with a single call to def ( ) . " , <nl> + " Duplicate registration : " , debug , " . Original registration : " , op . operatorIterator_ - > op . debug ( ) ) ; <nl> + op . operatorIterator_ - > op . registerSchema ( std : : move ( schema ) , std : : move ( debug ) ) ; <nl> + listeners_ - > callOnOperatorRegistered ( op ) ; <nl> <nl> / / NB : do not increment the counts until AFTER error checking <nl> + + op . operatorIterator_ - > def_count ; <nl> RegistrationHandleRAII Dispatcher : : registerDef ( FunctionSchema schema , std : : strin <nl> } ) ; <nl> } <nl> <nl> - void Dispatcher : : checkSchemaCompatibility ( const OperatorHandle & op , const FunctionSchema & schema , const std : : string & debug ) { <nl> - TORCH_CHECK ( op . schema ( ) = = schema , " Tried to register multiple operators with the same name and the same overload name but different schemas : " , schema , " ( " , debug , " ) vs " , op . schema ( ) , " ( " , op . debug ( ) , " ) " ) ; <nl> - if ( schema . isDefaultAliasAnalysisKind ( ) ) { <nl> - / / [ BACKWARDS COMPAT ] If the * new * schema is the default alias analysis <nl> - / / kind , for BC , we will accept it . If we don ' t accept it , most extensions <nl> - / / that override existing operators will stop working ( as they generally did <nl> - / / not specify alias information ) . <nl> - } else if ( op . schema ( ) . isDefaultAliasAnalysisKind ( ) ) { <nl> - / / [ BACKWARDS COMPAT ] If you POST - FACTO specify a non - default alias analysis <nl> - / / kind after we already have a schema for a function , bong it in for BC <nl> - / / reasons . <nl> - op . operatorIterator_ - > op . updateSchemaAliasAnalysis ( schema . aliasAnalysis ( ) ) ; <nl> - } else { <nl> - TORCH_CHECK ( op . schema ( ) . aliasAnalysis ( ) = = schema . aliasAnalysis ( ) , <nl> - " Tried to define the schema for " , toString ( op . operator_name ( ) ) , " with different alias analysis kinds : " , <nl> - toString ( op . schema ( ) . aliasAnalysis ( ) ) , " ( " , op . debug ( ) , " ) vs " , toString ( schema . aliasAnalysis ( ) ) , " ( " , debug , " ) " ) ; <nl> - } <nl> - } <nl> - <nl> void Dispatcher : : deregisterDef_ ( const OperatorHandle & op , const OperatorName & op_name ) { <nl> / / we need a lock to avoid concurrent writes <nl> std : : lock_guard < std : : mutex > lock ( mutex_ ) ; <nl> mmm a / aten / src / ATen / native / quantized / library . cpp <nl> ppp b / aten / src / ATen / native / quantized / library . cpp <nl> TORCH_LIBRARY ( quantized , m ) { <nl> m . def ( TORCH_SELECTIVE_SCHEMA ( " quantized : : embedding_bag_4bit ( __torch__ . torch . classes . quantized . EmbeddingPackedParamsBase weight , Tensor indices , Tensor ? offsets = None , bool scale_grad_by_freq = False , int mode = 0 , bool pruned_weights = False , Tensor ? per_sample_weights = None , Tensor ? compressed_indices_mapping = None , bool include_last_offset = False ) - > Tensor " ) ) ; <nl> m . def ( TORCH_SELECTIVE_SCHEMA ( " quantized : : embedding_byte ( __torch__ . torch . classes . quantized . EmbeddingPackedParamsBase weight , Tensor indices , bool pruned_weights = False ) - > Tensor " ) ) ; <nl> m . def ( TORCH_SELECTIVE_SCHEMA ( " quantized : : celu ( Tensor self , float output_scale , int output_zero_point , Scalar alpha = 1 ) - > Tensor " ) ) ; <nl> - m . def ( TORCH_SELECTIVE_SCHEMA ( " quantized : : hardswish ( Tensor input , float output_scale , int output_zero_point ) - > Tensor " ) ) ; <nl> m . def ( TORCH_SELECTIVE_SCHEMA ( " quantized : : group_norm ( Tensor input , int num_groups , Tensor ? weight , Tensor ? bias , float eps , float output_scale , int output_zero_point ) - > Tensor " ) ) ; <nl> m . def ( TORCH_SELECTIVE_SCHEMA ( " quantized : : hardswish ( Tensor input , float output_scale , int output_zero_point ) - > Tensor " ) ) ; <nl> m . def ( TORCH_SELECTIVE_SCHEMA ( " quantized : : instance_norm ( Tensor input , Tensor ? weight , Tensor ? bias , float eps , float output_scale , int output_zero_point ) - > Tensor " ) ) ; <nl> | make duplicate def ( ) calls an error in the dispatcher ( ) | pytorch/pytorch | 18c03b9f00b084bd04193a02a66a8bdd01d23931 | 2020-12-10T19:38:52Z |
mmm a / dbms / src / Interpreters / ExpressionJIT . cpp <nl> ppp b / dbms / src / Interpreters / ExpressionJIT . cpp <nl> void compileFunctions ( ExpressionActions : : Actions & actions , const Names & output <nl> <nl> static LLVMTargetInitializer initializer ; <nl> <nl> - <nl> auto dependents = getActionsDependents ( actions , output_columns ) ; <nl> / / / Initialize context as late as possible and only if needed <nl> std : : shared_ptr < LLVMContext > context ; <nl> void compileFunctions ( ExpressionActions : : Actions & actions , const Names & output <nl> if ( fused [ i ] . size ( ) = = 1 ) <nl> continue ; <nl> <nl> - <nl> auto hash_key = ExpressionActions : : ActionsHash { } ( fused [ i ] ) ; <nl> { <nl> std : : lock_guard < std : : mutex > lock ( mutex ) ; <nl> if ( counter [ hash_key ] + + < min_count_to_compile ) <nl> continue ; <nl> } <nl> + <nl> std : : shared_ptr < LLVMFunction > fn ; <nl> if ( compilation_cache ) <nl> { <nl> | Whitespaces [ # CLICKHOUSE - 3800 ] | ClickHouse/ClickHouse | 2963e056efe4d79fb1a3fea8cb173a3c30a3c0c0 | 2018-09-17T15:34:43Z |
deleted file mode 100644 <nl> index 8daf1e73442 . . 00000000000 <nl> mmm a / dbms / tests / performance / codec_double_delta . xml <nl> ppp / dev / null <nl> <nl> - < test > <nl> - <nl> - < type > loop < / type > <nl> - < stop_conditions > <nl> - < all_of > <nl> - < iterations > 10 < / iterations > <nl> - < min_time_not_changing_for_ms > 10000 < / min_time_not_changing_for_ms > <nl> - < / all_of > <nl> - < any_of > <nl> - < iterations > 50 < / iterations > <nl> - < total_time_ms > 60000 < / total_time_ms > <nl> - < / any_of > <nl> - < / stop_conditions > <nl> - <nl> - < substitutions > <nl> - < substitution > <nl> - < name > table_suffix < / name > <nl> - < values > <nl> - < value > dd < / value > <nl> - < value > lz4 < / value > <nl> - < value > dd_lz4 < / value > <nl> - < / values > <nl> - < / substitution > <nl> - < / substitutions > <nl> - <nl> - < create_query > CREATE TABLE IF NOT EXISTS seq_dd ( n UInt64 CODEC ( DoubleDelta , NONE ) ) ENGINE = MergeTree PARTITION BY tuple ( ) ORDER BY tuple ( ) ; < / create_query > <nl> - < create_query > CREATE TABLE IF NOT EXISTS mon_dd AS seq_dd ; < / create_query > <nl> - < create_query > CREATE TABLE IF NOT EXISTS rnd_dd AS seq_dd ; < / create_query > <nl> - <nl> - < create_query > CREATE TABLE IF NOT EXISTS seq_lz4 ( n UInt64 CODEC ( LZ4 , NONE ) ) ENGINE = MergeTree PARTITION BY tuple ( ) ORDER BY tuple ( ) ; < / create_query > <nl> - < create_query > CREATE TABLE IF NOT EXISTS mon_lz4 AS seq_lz4 ; < / create_query > <nl> - < create_query > CREATE TABLE IF NOT EXISTS rnd_lz4 AS seq_lz4 ; < / create_query > <nl> - <nl> - < create_query > CREATE TABLE IF NOT EXISTS seq_dd_lz4 ( n UInt64 CODEC ( DoubleDelta , LZ4 , NONE ) ) ENGINE = MergeTree PARTITION BY tuple ( ) ORDER BY tuple ( ) ; < / create_query > <nl> - < create_query > CREATE TABLE IF NOT EXISTS mon_dd_lz4 AS seq_dd_lz4 ; < / create_query > <nl> - < create_query > CREATE TABLE IF NOT EXISTS rnd_dd_lz4 AS seq_dd_lz4 ; < / create_query > <nl> - <nl> - < fill_query > INSERT INTO seq_ { table_suffix } ( n ) SELECT number FROM system . numbers LIMIT 100000 < / fill_query > <nl> - < fill_query > INSERT INTO mon_ { table_suffix } ( n ) SELECT number * 67 + ( rand ( ) % 67 ) FROM system . numbers LIMIT 100000 < / fill_query > <nl> - < fill_query > INSERT INTO rnd_ { table_suffix } ( n ) SELECT rand ( ) FROM system . numbers LIMIT 100000 < / fill_query > <nl> - <nl> - < fill_query > INSERT INTO seq_ { table_suffix } ( n ) SELECT n FROM seq_ { table_suffix } < / fill_query > <nl> - < fill_query > INSERT INTO mon_ { table_suffix } ( n ) SELECT n FROM mon_ { table_suffix } < / fill_query > <nl> - < fill_query > INSERT INTO rnd_ { table_suffix } ( n ) SELECT n FROM rnd_ { table_suffix } < / fill_query > <nl> - < fill_query > INSERT INTO seq_ { table_suffix } ( n ) SELECT n FROM seq_ { table_suffix } < / fill_query > <nl> - < fill_query > INSERT INTO mon_ { table_suffix } ( n ) SELECT n FROM mon_ { table_suffix } < / fill_query > <nl> - < fill_query > INSERT INTO rnd_ { table_suffix } ( n ) SELECT n FROM rnd_ { table_suffix } < / fill_query > <nl> - < fill_query > INSERT INTO seq_ { table_suffix } ( n ) SELECT n FROM seq_ { table_suffix } < / fill_query > <nl> - < fill_query > INSERT INTO mon_ { table_suffix } ( n ) SELECT n FROM mon_ { table_suffix } < / fill_query > <nl> - < fill_query > INSERT INTO rnd_ { table_suffix } ( n ) SELECT n FROM rnd_ { table_suffix } < / fill_query > <nl> - < fill_query > INSERT INTO seq_ { table_suffix } ( n ) SELECT n FROM seq_ { table_suffix } < / fill_query > <nl> - < fill_query > INSERT INTO mon_ { table_suffix } ( n ) SELECT n FROM mon_ { table_suffix } < / fill_query > <nl> - < fill_query > INSERT INTO rnd_ { table_suffix } ( n ) SELECT n FROM rnd_ { table_suffix } < / fill_query > <nl> - <nl> - < ! - - Using limit to make query finite , allowing it to be run multiple times in a loop , reducing mean error - - > <nl> - < query > INSERT INTO seq_ { table_suffix } ( n ) SELECT number FROM system . numbers LIMIT 100000 SETTINGS max_threads = 1 < / query > <nl> - < query > INSERT INTO mon_ { table_suffix } ( n ) SELECT number * 67 + ( rand ( ) % 67 ) FROM system . numbers LIMIT 100000 SETTINGS max_threads = 1 < / query > <nl> - < query > INSERT INTO rnd_ { table_suffix } ( n ) SELECT rand ( ) FROM system . numbers LIMIT 100000 SETTINGS max_threads = 1 < / query > <nl> - <nl> - < ! - - INSERTs above will be run unspecified amount of times , hence size of table is unknown . <nl> - To make test more reliable , we SELECT fixed number of rows . - - > <nl> - < query > SELECT count ( n ) FROM seq_ { table_suffix } LIMIT 1000000 SETTINGS max_threads = 1 < / query > <nl> - < query > SELECT count ( n ) FROM mon_ { table_suffix } LIMIT 1000000 SETTINGS max_threads = 1 < / query > <nl> - < query > SELECT count ( n ) FROM rnd_ { table_suffix } LIMIT 1000000 SETTINGS max_threads = 1 < / query > <nl> - <nl> - <nl> - < drop_query > DROP TABLE IF EXISTS seq_ { table_suffix } < / drop_query > <nl> - < drop_query > DROP TABLE IF EXISTS mon_ { table_suffix } < / drop_query > <nl> - < drop_query > DROP TABLE IF EXISTS rnd_ { table_suffix } < / drop_query > <nl> - <nl> - < / test > <nl> deleted file mode 100644 <nl> index cd6fa50e3e5 . . 00000000000 <nl> mmm a / dbms / tests / performance / codec_gorilla . xml <nl> ppp / dev / null <nl> <nl> - < test > <nl> - <nl> - < type > loop < / type > <nl> - < stop_conditions > <nl> - < all_of > <nl> - < iterations > 10 < / iterations > <nl> - < min_time_not_changing_for_ms > 10000 < / min_time_not_changing_for_ms > <nl> - < / all_of > <nl> - < any_of > <nl> - < iterations > 50 < / iterations > <nl> - < total_time_ms > 60000 < / total_time_ms > <nl> - < / any_of > <nl> - < / stop_conditions > <nl> - <nl> - < substitutions > <nl> - < substitution > <nl> - < name > table_suffix < / name > <nl> - < values > <nl> - < value > g < / value > <nl> - < value > lz4 < / value > <nl> - < value > g_lz4 < / value > <nl> - < / values > <nl> - < / substitution > <nl> - < / substitutions > <nl> - <nl> - < create_query > CREATE TABLE IF NOT EXISTS seq_g ( n UInt64 CODEC ( Gorilla , NONE ) ) ENGINE = MergeTree PARTITION BY tuple ( ) ORDER BY tuple ( ) ; < / create_query > <nl> - < create_query > CREATE TABLE IF NOT EXISTS mon_g AS seq_g ; < / create_query > <nl> - < create_query > CREATE TABLE IF NOT EXISTS rnd_g AS seq_g ; < / create_query > <nl> - <nl> - < create_query > CREATE TABLE IF NOT EXISTS seq_lz4 ( n UInt64 CODEC ( LZ4 , NONE ) ) ENGINE = MergeTree PARTITION BY tuple ( ) ORDER BY tuple ( ) ; < / create_query > <nl> - < create_query > CREATE TABLE IF NOT EXISTS mon_lz4 AS seq_lz4 ; < / create_query > <nl> - < create_query > CREATE TABLE IF NOT EXISTS rnd_lz4 AS seq_lz4 ; < / create_query > <nl> - <nl> - < create_query > CREATE TABLE IF NOT EXISTS seq_g_lz4 ( n UInt64 CODEC ( Gorilla , LZ4 , NONE ) ) ENGINE = MergeTree PARTITION BY tuple ( ) ORDER BY tuple ( ) ; < / create_query > <nl> - < create_query > CREATE TABLE IF NOT EXISTS mon_g_lz4 AS seq_g_lz4 ; < / create_query > <nl> - < create_query > CREATE TABLE IF NOT EXISTS rnd_g_lz4 AS seq_g_lz4 ; < / create_query > <nl> - <nl> - < fill_query > INSERT INTO seq_ { table_suffix } ( n ) SELECT number / pi ( ) FROM system . numbers LIMIT 100000 < / fill_query > <nl> - < fill_query > INSERT INTO mon_ { table_suffix } ( n ) SELECT number + sin ( number ) FROM system . numbers LIMIT 100000 < / fill_query > <nl> - < fill_query > INSERT INTO rnd_ { table_suffix } ( n ) SELECT ( rand ( ) - 4294967295 ) / pi ( ) FROM system . numbers LIMIT 100000 < / fill_query > <nl> - <nl> - < fill_query > INSERT INTO seq_ { table_suffix } ( n ) SELECT n FROM seq_ { table_suffix } < / fill_query > <nl> - < fill_query > INSERT INTO mon_ { table_suffix } ( n ) SELECT n FROM mon_ { table_suffix } < / fill_query > <nl> - < fill_query > INSERT INTO rnd_ { table_suffix } ( n ) SELECT n FROM rnd_ { table_suffix } < / fill_query > <nl> - < fill_query > INSERT INTO seq_ { table_suffix } ( n ) SELECT n FROM seq_ { table_suffix } < / fill_query > <nl> - < fill_query > INSERT INTO mon_ { table_suffix } ( n ) SELECT n FROM mon_ { table_suffix } < / fill_query > <nl> - < fill_query > INSERT INTO rnd_ { table_suffix } ( n ) SELECT n FROM rnd_ { table_suffix } < / fill_query > <nl> - < fill_query > INSERT INTO seq_ { table_suffix } ( n ) SELECT n FROM seq_ { table_suffix } < / fill_query > <nl> - < fill_query > INSERT INTO mon_ { table_suffix } ( n ) SELECT n FROM mon_ { table_suffix } < / fill_query > <nl> - < fill_query > INSERT INTO rnd_ { table_suffix } ( n ) SELECT n FROM rnd_ { table_suffix } < / fill_query > <nl> - < fill_query > INSERT INTO seq_ { table_suffix } ( n ) SELECT n FROM seq_ { table_suffix } < / fill_query > <nl> - < fill_query > INSERT INTO mon_ { table_suffix } ( n ) SELECT n FROM mon_ { table_suffix } < / fill_query > <nl> - < fill_query > INSERT INTO rnd_ { table_suffix } ( n ) SELECT n FROM rnd_ { table_suffix } < / fill_query > <nl> - <nl> - < ! - - Using limit to make query finite , allowing it to be run multiple times in a loop , reducing mean error - - > <nl> - < query > INSERT INTO seq_ { table_suffix } ( n ) SELECT number / pi ( ) FROM system . numbers LIMIT 100000 SETTINGS max_threads = 1 < / query > <nl> - < query > INSERT INTO mon_ { table_suffix } ( n ) SELECT number + sin ( number ) FROM system . numbers LIMIT 100000 SETTINGS max_threads = 1 < / query > <nl> - < query > INSERT INTO rnd_ { table_suffix } ( n ) SELECT ( rand ( ) - 4294967295 ) / pi ( ) FROM system . numbers LIMIT 100000 SETTINGS max_threads = 1 < / query > <nl> - <nl> - < ! - - INSERTs above will be run unspecified amount of times , hence size of table is unknown . <nl> - To make test more reliable , we SELECT fixed number of rows . - - > <nl> - < query > SELECT count ( n ) FROM seq_ { table_suffix } LIMIT 100000 SETTINGS max_threads = 1 < / query > <nl> - < query > SELECT count ( n ) FROM mon_ { table_suffix } LIMIT 100000 SETTINGS max_threads = 1 < / query > <nl> - < query > SELECT count ( n ) FROM rnd_ { table_suffix } LIMIT 100000 SETTINGS max_threads = 1 < / query > <nl> - <nl> - < drop_query > DROP TABLE IF EXISTS seq_ { table_suffix } < / drop_query > <nl> - < drop_query > DROP TABLE IF EXISTS mon_ { table_suffix } < / drop_query > <nl> - < drop_query > DROP TABLE IF EXISTS rnd_ { table_suffix } < / drop_query > <nl> - <nl> - < / test > <nl> new file mode 100644 <nl> index 00000000000 . . 2a39dfc48d6 <nl> mmm / dev / null <nl> ppp b / dbms / tests / performance / codecs_float_insert . xml <nl> <nl> + < test > <nl> + <nl> + < type > loop < / type > <nl> + < stop_conditions > <nl> + < all_of > <nl> + < iterations > 10 < / iterations > <nl> + < min_time_not_changing_for_ms > 10000 < / min_time_not_changing_for_ms > <nl> + < / all_of > <nl> + < any_of > <nl> + < iterations > 100 < / iterations > <nl> + < total_time_ms > 60000 < / total_time_ms > <nl> + < / any_of > <nl> + < / stop_conditions > <nl> + <nl> + < substitutions > <nl> + < substitution > <nl> + < name > codec < / name > <nl> + < values > <nl> + < value > NONE < / value > < ! - - as a baseline - - > <nl> + < value > LZ4 < / value > <nl> + < value > ZSTD < / value > <nl> + < value > DoubleDelta < / value > <nl> + < value > Gorilla < / value > <nl> + < / values > <nl> + < / substitution > <nl> + < substitution > <nl> + < name > type < / name > <nl> + < values > <nl> + < value > Float64 < / value > <nl> + < / values > <nl> + < / substitution > <nl> + < substitution > <nl> + < name > seq_type < / name > <nl> + < values > <nl> + < value > seq < / value > <nl> + < value > mon < / value > <nl> + < value > rnd < / value > <nl> + < / values > <nl> + < / substitution > <nl> + < / substitutions > <nl> + <nl> + < create_query > CREATE TABLE IF NOT EXISTS codec_ { seq_type } _ { type } _ { codec } ( n { type } CODEC ( { codec } ) ) ENGINE = MergeTree PARTITION BY tuple ( ) ORDER BY tuple ( ) ; < / create_query > <nl> + <nl> + < ! - - Using limit to make query finite , allowing it to be run multiple times in a loop , reducing mean error - - > <nl> + < query > INSERT INTO codec_seq_Float64_ { codec } ( n ) SELECT number / pi ( ) FROM system . numbers LIMIT 100000 SETTINGS max_threads = 1 < / query > <nl> + < query > INSERT INTO codec_mon_Float64_ { codec } ( n ) SELECT number + sin ( number ) FROM system . numbers LIMIT 100000 SETTINGS max_threads = 1 < / query > <nl> + < query > INSERT INTO codec_rnd_Float64_ { codec } ( n ) SELECT ( rand ( ) - 4294967295 ) / pi ( ) FROM system . numbers LIMIT 100000 SETTINGS max_threads = 1 < / query > <nl> + <nl> + < drop_query > DROP TABLE IF EXISTS codec_ { seq_type } _ { type } _ { codec } < / drop_query > <nl> + <nl> + < / test > <nl> new file mode 100644 <nl> index 00000000000 . . f23b363b914 <nl> mmm / dev / null <nl> ppp b / dbms / tests / performance / codecs_float_select . xml <nl> <nl> + < test > <nl> + <nl> + < type > loop < / type > <nl> + < stop_conditions > <nl> + < all_of > <nl> + < iterations > 10 < / iterations > <nl> + < min_time_not_changing_for_ms > 10000 < / min_time_not_changing_for_ms > <nl> + < / all_of > <nl> + < any_of > <nl> + < iterations > 100 < / iterations > <nl> + < total_time_ms > 60000 < / total_time_ms > <nl> + < / any_of > <nl> + < / stop_conditions > <nl> + <nl> + < substitutions > <nl> + < substitution > <nl> + < name > codec < / name > <nl> + < values > <nl> + < value > NONE < / value > < ! - - as a baseline - - > <nl> + < value > LZ4 < / value > <nl> + < value > ZSTD < / value > <nl> + < value > DoubleDelta < / value > <nl> + < value > Gorilla < / value > <nl> + < / values > <nl> + < / substitution > <nl> + < substitution > <nl> + < name > type < / name > <nl> + < values > <nl> + < value > Float64 < / value > <nl> + < / values > <nl> + < / substitution > <nl> + < substitution > <nl> + < name > seq_type < / name > <nl> + < values > <nl> + < value > seq < / value > <nl> + < value > mon < / value > <nl> + < value > rnd < / value > <nl> + < / values > <nl> + < / substitution > <nl> + < / substitutions > <nl> + <nl> + < create_query > CREATE TABLE IF NOT EXISTS codec_ { seq_type } _ { type } _ { codec } ( n { type } CODEC ( { codec } ) ) ENGINE = MergeTree PARTITION BY tuple ( ) ORDER BY tuple ( ) ; < / create_query > <nl> + <nl> + < ! - - Using limit to make query finite , allowing it to be run multiple times in a loop , reducing mean error - - > <nl> + < fill_query > INSERT INTO codec_seq_Float64_ { codec } ( n ) SELECT number / pi ( ) FROM system . numbers LIMIT 100000 SETTINGS max_threads = 1 < / fill_query > <nl> + < fill_query > INSERT INTO codec_mon_Float64_ { codec } ( n ) SELECT number + sin ( number ) FROM system . numbers LIMIT 100000 SETTINGS max_threads = 1 < / fill_query > <nl> + < fill_query > INSERT INTO codec_rnd_Float64_ { codec } ( n ) SELECT ( rand ( ) - 4294967295 ) / pi ( ) FROM system . numbers LIMIT 100000 SETTINGS max_threads = 1 < / fill_query > <nl> + <nl> + < ! - - INSERTs above will be run unspecified amount of times , hence size of table is unknown . <nl> + To make test more reliable , we SELECT fixed number of rows . - - > <nl> + < query > SELECT count ( n ) FROM codec_ { seq_type } _ { type } _ { codec } WHERE ignore ( n ) LIMIT 100000 SETTINGS max_threads = 1 < / query > <nl> + <nl> + < drop_query > DROP TABLE IF EXISTS codec_ { seq_type } _ { type } _ { codec } < / drop_query > <nl> + <nl> + < / test > <nl> new file mode 100644 <nl> index 00000000000 . . 742693d49fe <nl> mmm / dev / null <nl> ppp b / dbms / tests / performance / codecs_int_insert . xml <nl> <nl> + < test > <nl> + <nl> + < type > loop < / type > <nl> + < stop_conditions > <nl> + < all_of > <nl> + < iterations > 10 < / iterations > <nl> + < min_time_not_changing_for_ms > 10000 < / min_time_not_changing_for_ms > <nl> + < / all_of > <nl> + < any_of > <nl> + < iterations > 100 < / iterations > <nl> + < total_time_ms > 60000 < / total_time_ms > <nl> + < / any_of > <nl> + < / stop_conditions > <nl> + <nl> + < substitutions > <nl> + < substitution > <nl> + < name > codec < / name > <nl> + < values > <nl> + < value > NONE < / value > < ! - - as a baseline - - > <nl> + < value > LZ4 < / value > <nl> + < value > ZSTD < / value > <nl> + < value > Delta < / value > <nl> + < value > T64 < / value > <nl> + < value > DoubleDelta < / value > <nl> + < value > Gorilla < / value > <nl> + < / values > <nl> + < / substitution > <nl> + < substitution > <nl> + < name > type < / name > <nl> + < values > <nl> + < value > UInt64 < / value > <nl> + < / values > <nl> + < / substitution > <nl> + < substitution > <nl> + < name > seq_type < / name > <nl> + < values > <nl> + < value > seq < / value > <nl> + < value > mon < / value > <nl> + < value > rnd < / value > <nl> + < / values > <nl> + < / substitution > <nl> + < / substitutions > <nl> + <nl> + < create_query > CREATE TABLE IF NOT EXISTS codec_ { seq_type } _ { type } _ { codec } ( n { type } CODEC ( { codec } ) ) ENGINE = MergeTree PARTITION BY tuple ( ) ORDER BY tuple ( ) ; < / create_query > <nl> + <nl> + < ! - - Using limit to make query finite , allowing it to be run multiple times in a loop , reducing mean error - - > <nl> + < query > INSERT INTO codec_seq_UInt64_ { codec } ( n ) SELECT number FROM system . numbers LIMIT 100000 SETTINGS max_threads = 1 < / query > <nl> + < query > INSERT INTO codec_mon_UInt64_ { codec } ( n ) SELECT number * 512 + ( rand ( ) % 512 ) FROM system . numbers LIMIT 100000 SETTINGS max_threads = 1 < / query > <nl> + < query > INSERT INTO codec_rnd_UInt64_ { codec } ( n ) SELECT rand ( ) FROM system . numbers LIMIT 100000 SETTINGS max_threads = 1 < / query > <nl> + <nl> + < drop_query > DROP TABLE IF EXISTS codec_ { seq_type } _ { type } _ { codec } < / drop_query > <nl> + <nl> + < / test > <nl> new file mode 100644 <nl> index 00000000000 . . 9c007863cd8 <nl> mmm / dev / null <nl> ppp b / dbms / tests / performance / codecs_int_select . xml <nl> <nl> + < test > <nl> + <nl> + < type > loop < / type > <nl> + < stop_conditions > <nl> + < all_of > <nl> + < iterations > 10 < / iterations > <nl> + < min_time_not_changing_for_ms > 10000 < / min_time_not_changing_for_ms > <nl> + < / all_of > <nl> + < any_of > <nl> + < iterations > 100 < / iterations > <nl> + < total_time_ms > 60000 < / total_time_ms > <nl> + < / any_of > <nl> + < / stop_conditions > <nl> + <nl> + < substitutions > <nl> + < substitution > <nl> + < name > codec < / name > <nl> + < values > <nl> + < value > NONE < / value > < ! - - as a baseline - - > <nl> + < value > LZ4 < / value > <nl> + < value > ZSTD < / value > <nl> + < value > Delta < / value > <nl> + < value > T64 < / value > <nl> + < value > DoubleDelta < / value > <nl> + < value > Gorilla < / value > <nl> + < / values > <nl> + < / substitution > <nl> + < substitution > <nl> + < name > type < / name > <nl> + < values > <nl> + < value > UInt64 < / value > <nl> + < / values > <nl> + < / substitution > <nl> + < substitution > <nl> + < name > seq_type < / name > <nl> + < values > <nl> + < value > seq < / value > <nl> + < value > mon < / value > <nl> + < value > rnd < / value > <nl> + < / values > <nl> + < / substitution > <nl> + < / substitutions > <nl> + <nl> + < create_query > CREATE TABLE IF NOT EXISTS codec_ { seq_type } _ { type } _ { codec } ( n { type } CODEC ( { codec } ) ) ENGINE = MergeTree PARTITION BY tuple ( ) ORDER BY tuple ( ) ; < / create_query > <nl> + <nl> + < ! - - Using limit to make query finite , allowing it to be run multiple times in a loop , reducing mean error - - > <nl> + < fill_query > INSERT INTO codec_seq_UInt64_ { codec } ( n ) SELECT number FROM system . numbers LIMIT 100000 SETTINGS max_threads = 1 < / fill_query > <nl> + < fill_query > INSERT INTO codec_mon_UInt64_ { codec } ( n ) SELECT number * 512 + ( rand ( ) % 512 ) FROM system . numbers LIMIT 100000 SETTINGS max_threads = 1 < / fill_query > <nl> + < fill_query > INSERT INTO codec_rnd_UInt64_ { codec } ( n ) SELECT rand ( ) FROM system . numbers LIMIT 100000 SETTINGS max_threads = 1 < / fill_query > <nl> + <nl> + < ! - - INSERTs above will be run unspecified amount of times , hence size of table is unknown . <nl> + To make test more reliable , we SELECT fixed number of rows . - - > <nl> + < query > SELECT count ( n ) FROM codec_ { seq_type } _ { type } _ { codec } WHERE ignore ( n ) LIMIT 100000 SETTINGS max_threads = 1 < / query > <nl> + <nl> + < drop_query > DROP TABLE IF EXISTS codec_ { seq_type } _ { type } _ { codec } < / drop_query > <nl> + <nl> + < / test > <nl> | Merge pull request from Enmk / codecs_perf_tests | ClickHouse/ClickHouse | cd95ece0ed13a4f02c2a65b8473b31bbfcf28896 | 2019-12-26T14:54:36Z |
mmm a / lib / AST / Module . cpp <nl> ppp b / lib / AST / Module . cpp <nl> LookupConformanceResult Module : : lookupConformance ( Type type , <nl> auto substitutions = type - > gatherAllSubstitutions ( this , substitutionsVec , <nl> resolver , <nl> explicitConformanceDC ) ; <nl> + <nl> + for ( auto sub : substitutions ) { <nl> + if ( sub . getReplacement ( ) - > is < ErrorType > ( ) ) <nl> + return { nullptr , ConformanceKind : : DoesNotConform } ; <nl> + } <nl> <nl> / / Create the specialized conformance entry . <nl> auto result = ctx . getSpecializedConformance ( type , conformance , <nl> mmm a / test / Generics / associated_types . swift <nl> ppp b / test / Generics / associated_types . swift <nl> struct V < T > : Fooable { <nl> / / FIXME : < rdar : / / problem / 16123805 > Inferred associated types can ' t be used in expression contexts <nl> var w = W . AssocType ( ) <nl> var v = V < String > . AssocType ( ) <nl> + <nl> + / / <nl> + / / SR - 427 <nl> + protocol A { <nl> + func c ( ) / / expected - note { { protocol requires function ' c ( ) ' with type ' ( ) - > ( ) ' } } <nl> + } <nl> + <nl> + protocol B : A { <nl> + typealias e : A = C < Self > / / expected - note { { default type ' C < C < a > > ' for associated type ' e ' ( from protocol ' B ' ) does not conform to ' A ' } } <nl> + } <nl> + <nl> + extension B { <nl> + func c ( ) { / / expected - note { { candidate has non - matching type ' < Self > ( ) - > ( ) ' ( aka ' < τ_0_0 > ( ) - > ( ) ' ) } } <nl> + } <nl> + } <nl> + <nl> + struct C < a : B > : B { / / expected - error { { type ' C < a > ' does not conform to protocol ' B ' } } expected - error { { type ' C < a > ' does not conform to protocol ' A ' } } <nl> + } <nl> | [ SR - 427 ] [ AST ] Report DoesNotConform for failed substitutions in a bound generic type . | apple/swift | c6a43759687ee7c96417cb14c5e817ac0cf22d95 | 2016-01-10T06:40:01Z |
mmm a / tensorflow / core / util / example_proto_helper . h <nl> ppp b / tensorflow / core / util / example_proto_helper . h <nl> limitations under the License . <nl> # include < vector > <nl> <nl> # include " tensorflow / core / example / example . pb . h " <nl> + # include " tensorflow / core / example / feature . pb . h " <nl> # include " tensorflow / core / framework / allocator . h " <nl> # include " tensorflow / core / framework / graph . pb . h " <nl> # include " tensorflow / core / framework / partial_tensor_shape . h " <nl> | internal change | tensorflow/tensorflow | b7f6cb80dc2b6b9de278eb68373320d683cd36d0 | 2017-08-14T20:28:28Z |
mmm a / aten / src / ATen / native / Convolution . cpp <nl> ppp b / aten / src / ATen / native / Convolution . cpp <nl> auto ConvParams : : is_output_padding_neg ( ) const - > bool { <nl> auto ConvParams : : is_output_padding_big ( ) const - > bool { <nl> bool is_big = false ; <nl> for ( size_t i = 0 ; i < output_padding . size ( ) ; i + + ) { <nl> - is_big | = ( output_padding [ i ] > = stride [ i ] | | output_padding [ i ] > = dilation [ i ] ) ; <nl> + is_big | = ( output_padding [ i ] > = stride [ i ] ) ; <nl> } <nl> return is_big ; <nl> } <nl> mmm a / test / test_nn . py <nl> ppp b / test / test_nn . py <nl> def test_ConvTranspose2d_half_cublas_gemm ( self ) : <nl> output = deconv ( inputs ) <nl> output . mean ( ) . backward ( ) <nl> <nl> + @ unittest . skipIf ( not TEST_CUDA , ' CUDA not available ' ) <nl> + @ repeat_test_for_types ( [ torch . half , torch . float ] ) <nl> + def test_ConvTranspose2d_large_output_padding ( self , dtype = torch . half ) : <nl> + net1 = torch . nn . ConvTranspose2d ( 128 , 64 , kernel_size = 3 , stride = 2 , padding = 1 , output_padding = 1 ) \ <nl> + . to ( device = ' cuda ' , dtype = dtype ) <nl> + net2 = torch . nn . ConvTranspose2d ( 64 , 32 , kernel_size = 3 , stride = 2 , padding = 1 , output_padding = 1 ) \ <nl> + . to ( device = ' cuda ' , dtype = dtype ) <nl> + net3 = torch . nn . ConvTranspose2d ( 32 , 3 , kernel_size = 3 , stride = 2 , padding = 1 , output_padding = 1 ) \ <nl> + . to ( device = ' cuda ' , dtype = dtype ) <nl> + x = torch . rand ( 1 , 128 , 6 , 6 , device = ' cuda ' , dtype = dtype , requires_grad = True ) <nl> + x = net1 ( x ) <nl> + x = net2 ( x ) <nl> + x = net3 ( x ) <nl> + x . backward ( torch . randn_like ( x ) ) <nl> + torch . cuda . synchronize ( ) <nl> + <nl> # For https : / / github . com / pytorch / pytorch / pull / 1273 <nl> # Almost identical to the above ` test_Conv2d_naive_groups ` <nl> def test_Conv2d_groups_nobias ( self ) : <nl> | Remove dilation restriction on cuDNN ConvTranspose2d ( ) | pytorch/pytorch | f326f6a8a0c5135f31ceba586a12ac80a6fbd184 | 2020-10-22T20:42:03Z |
mmm a / code / dynamic_programming / src / trapping_rain_water / trapping_rain_water . java <nl> ppp b / code / dynamic_programming / src / trapping_rain_water / trapping_rain_water . java <nl> <nl> public class Main { <nl> + <nl> public static void main ( String args [ ] ) { <nl> int [ ] heightArray = { 1 , 2 , 1 , 3 , 1 , 2 , 1 , 4 , 1 , 0 , 0 , 2 , 1 , 4 } ; <nl> System . out . println ( trap_rain_water ( heightArray ) ) ; <nl> public static void main ( String args [ ] ) { <nl> public static int trap_rain_water ( int [ ] height ) { <nl> int result = 0 ; <nl> <nl> - if ( height = = null ) <nl> + if ( height = = null ) { <nl> return result ; <nl> + } <nl> <nl> int left [ ] = new int [ height . length ] ; <nl> - int right [ ] = new int [ height . length ] ; <nl> + int right [ ] = new int [ height . length ] ; <nl> <nl> / / left [ i ] will contain height of tallest bar on the left side of i ' th bar <nl> left [ 0 ] = height [ 0 ] ; <nl> - for ( int i = 1 ; i < height . length ; i + + ) { <nl> + for ( int i = 1 ; i < height . length ; i + + ) { <nl> left [ i ] = Math . max ( left [ i - 1 ] , height [ i ] ) ; <nl> } <nl> <nl> / / right [ i ] will contain height of tallest bar on the right side of i ' th bar <nl> - right [ height . length - 1 ] = height [ height . length - 1 ] ; <nl> - for ( int i = height . length - 2 ; i > = 0 ; i - - ) { <nl> + right [ height . length - 1 ] = height [ height . length - 1 ] ; <nl> + for ( int i = height . length - 2 ; i > = 0 ; i - - ) { <nl> right [ i ] = Math . max ( right [ i + 1 ] , height [ i ] ) ; <nl> } <nl> <nl> / / amount of water collected on i ' th bar will be min ( left [ i ] , right [ i ] ) - height [ i ] <nl> - for ( int i = 0 ; i < height . length ; i + + ) { <nl> - result + = Math . min ( left [ i ] , right [ i ] ) - height [ i ] ; <nl> + for ( int i = 0 ; i < height . length ; i + + ) { <nl> + result + = Math . min ( left [ i ] , right [ i ] ) - height [ i ] ; <nl> } <nl> <nl> return result ; <nl> | Update trapping_rain_water . java | OpenGenus/cosmos | 2da3ec814153d330db8ccc35796e1c873961d6c2 | 2020-10-04T14:58:24Z |
mmm a / include / envoy / network / connection_handler . h <nl> ppp b / include / envoy / network / connection_handler . h <nl> class ConnectionHandler { <nl> / * * <nl> * @ return uint64_t the number of active connections owned by the handler . <nl> * / <nl> - virtual uint64_t numConnections ( ) PURE ; <nl> + virtual uint64_t numConnections ( ) const PURE ; <nl> <nl> / * * <nl> * Increment the return value of numConnections ( ) by one . <nl> class ConnectionHandler { <nl> / * * <nl> * @ return the stat prefix used for per - handler stats . <nl> * / <nl> - virtual const std : : string & statPrefix ( ) PURE ; <nl> + virtual const std : : string & statPrefix ( ) const PURE ; <nl> <nl> / * * <nl> * Used by ConnectionHandler to manage listeners . <nl> mmm a / include / envoy / router / route_config_update_receiver . h <nl> ppp b / include / envoy / router / route_config_update_receiver . h <nl> class RouteConfigUpdateReceiver { <nl> / * * <nl> * @ return std : : string & the version of RouteConfiguration . <nl> * / <nl> - virtual const std : : string & configVersion ( ) PURE ; <nl> + virtual const std : : string & configVersion ( ) const PURE ; <nl> <nl> / * * <nl> * @ return uint64_t the hash value of RouteConfiguration . <nl> mmm a / include / envoy / server / configuration . h <nl> ppp b / include / envoy / server / configuration . h <nl> class Admin { <nl> / * * <nl> * @ return const std : : string & the admin access log path . <nl> * / <nl> - virtual const std : : string & accessLogPath ( ) PURE ; <nl> + virtual const std : : string & accessLogPath ( ) const PURE ; <nl> <nl> / * * <nl> * @ return const std : : string & profiler output path . <nl> * / <nl> - virtual const std : : string & profilePath ( ) PURE ; <nl> + virtual const std : : string & profilePath ( ) const PURE ; <nl> <nl> / * * <nl> * @ return Network : : Address : : InstanceConstSharedPtr the server address . <nl> class Initial { <nl> / * * <nl> * @ return absl : : optional < std : : string > the path to look for flag files . <nl> * / <nl> - virtual absl : : optional < std : : string > flagsPath ( ) PURE ; <nl> + virtual absl : : optional < std : : string > flagsPath ( ) const PURE ; <nl> <nl> / * * <nl> * @ return const envoy : : config : : bootstrap : : v2 : : LayeredRuntime & runtime <nl> mmm a / include / envoy / server / listener_manager . h <nl> ppp b / include / envoy / server / listener_manager . h <nl> class ListenerManager { <nl> / * * <nl> * @ return uint64_t the total number of connections owned by all listeners across all workers . <nl> * / <nl> - virtual uint64_t numConnections ( ) PURE ; <nl> + virtual uint64_t numConnections ( ) const PURE ; <nl> <nl> / * * <nl> * Remove a listener by name . <nl> mmm a / include / envoy / server / worker . h <nl> ppp b / include / envoy / server / worker . h <nl> class Worker { <nl> / * * <nl> * @ return uint64_t the number of connections across all listeners that the worker owns . <nl> * / <nl> - virtual uint64_t numConnections ( ) PURE ; <nl> + virtual uint64_t numConnections ( ) const PURE ; <nl> <nl> / * * <nl> * Start the worker thread . <nl> mmm a / source / common / access_log / access_log_formatter . cc <nl> ppp b / source / common / access_log / access_log_formatter . cc <nl> std : : string JsonFormatterImpl : : format ( const Http : : HeaderMap & request_headers , <nl> const auto output_struct = <nl> toStruct ( request_headers , response_headers , response_trailers , stream_info ) ; <nl> <nl> - std : : string log_line = MessageUtil : : getJsonStringFromMessage ( output_struct , false , true ) ; <nl> + const std : : string log_line = MessageUtil : : getJsonStringFromMessage ( output_struct , false , true ) ; <nl> return absl : : StrCat ( log_line , " \ n " ) ; <nl> } <nl> <nl> ProtobufWkt : : Struct JsonFormatterImpl : : toStruct ( const Http : : HeaderMap & request_h <nl> <nl> if ( providers . size ( ) = = 1 ) { <nl> const auto & provider = providers . front ( ) ; <nl> - auto val = preserve_types_ <nl> - ? provider - > formatValue ( request_headers , response_headers , response_trailers , <nl> - stream_info ) <nl> - : ValueUtil : : stringValue ( provider - > format ( request_headers , response_headers , <nl> - response_trailers , stream_info ) ) ; <nl> + const auto val = <nl> + preserve_types_ ? provider - > formatValue ( request_headers , response_headers , <nl> + response_trailers , stream_info ) <nl> + : ValueUtil : : stringValue ( provider - > format ( <nl> + request_headers , response_headers , response_trailers , stream_info ) ) ; <nl> <nl> ( * fields ) [ pair . first ] = val ; <nl> } else { <nl> void AccessLogFormatParser : : parseCommandHeader ( const std : : string & token , const s <nl> throw EnvoyException ( <nl> / / Header format rules support only one alternative header . <nl> / / docs / root / configuration / access_log . rst # format - rules <nl> - fmt : : format ( " More than 1 alternative header specified in token : { } " , token ) ) ; <nl> + absl : : StrCat ( " More than 1 alternative header specified in token : " , token ) ) ; <nl> } <nl> if ( subs . size ( ) = = 1 ) { <nl> alternative_header = subs . front ( ) ; <nl> void AccessLogFormatParser : : parseCommand ( const std : : string & token , const size_t <nl> std : : vector < std : : string > & sub_items , <nl> absl : : optional < size_t > & max_length ) { <nl> / / TODO ( dnoe ) : Convert this to use string_view throughout . <nl> - size_t end_request = token . find ( ' ) ' , start ) ; <nl> + const size_t end_request = token . find ( ' ) ' , start ) ; <nl> sub_items . clear ( ) ; <nl> if ( end_request ! = token . length ( ) - 1 ) { <nl> / / Closing bracket is not found . <nl> if ( end_request = = std : : string : : npos ) { <nl> - throw EnvoyException ( fmt : : format ( " Closing bracket is missing in token : { } " , token ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " Closing bracket is missing in token : " , token ) ) ; <nl> } <nl> <nl> / / Closing bracket should be either last one or followed by ' : ' to denote limitation . <nl> if ( token [ end_request + 1 ] ! = ' : ' ) { <nl> - throw EnvoyException ( fmt : : format ( " Incorrect position of ' ) ' in token : { } " , token ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " Incorrect position of ' ) ' in token : " , token ) ) ; <nl> } <nl> <nl> const auto length_str = absl : : string_view ( token ) . substr ( end_request + 2 ) ; <nl> uint64_t length_value ; <nl> <nl> if ( ! absl : : SimpleAtoi ( length_str , & length_value ) ) { <nl> - throw EnvoyException ( fmt : : format ( " Length must be an integer , given : { } " , length_str ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " Length must be an integer , given : " , length_str ) ) ; <nl> } <nl> <nl> max_length = length_value ; <nl> std : : vector < FormatterProviderPtr > AccessLogFormatParser : : parse ( const std : : string <nl> } <nl> <nl> std : : smatch m ; <nl> - std : : string search_space = format . substr ( pos ) ; <nl> + const std : : string search_space = format . substr ( pos ) ; <nl> if ( ! ( std : : regex_search ( search_space , m , command_w_args_regex ) | | m . position ( ) = = 0 ) ) { <nl> throw EnvoyException ( <nl> fmt : : format ( " Incorrect configuration : { } . Couldn ' t find valid command at position { } " , <nl> std : : vector < FormatterProviderPtr > AccessLogFormatParser : : parse ( const std : : string <nl> const std : : string match = m . str ( 0 ) ; <nl> const std : : string token = match . substr ( 1 , match . length ( ) - 2 ) ; <nl> pos + = 1 ; <nl> - int command_end_position = pos + token . length ( ) ; <nl> + const int command_end_position = pos + token . length ( ) ; <nl> <nl> if ( absl : : StartsWith ( token , " REQ ( " ) ) { <nl> std : : string main_header , alternative_header ; <nl> class StreamInfoOptionalStringFieldExtractor : public StreamInfoFormatter : : Field <nl> <nl> / / StreamInfoFormatter : : FieldExtractor <nl> std : : string extract ( const StreamInfo : : StreamInfo & stream_info ) const override { <nl> - auto str = field_extractor_ ( stream_info ) ; <nl> + const auto str = field_extractor_ ( stream_info ) ; <nl> if ( ! str ) { <nl> return UnspecifiedValueString ; <nl> } <nl> class StreamInfoOptionalStringFieldExtractor : public StreamInfoFormatter : : Field <nl> return str . value ( ) ; <nl> } <nl> ProtobufWkt : : Value extractValue ( const StreamInfo : : StreamInfo & stream_info ) const override { <nl> - auto str = field_extractor_ ( stream_info ) ; <nl> + const auto str = field_extractor_ ( stream_info ) ; <nl> if ( ! str ) { <nl> return unspecifiedValue ( ) ; <nl> } <nl> class StreamInfoDurationFieldExtractor : public StreamInfoFormatter : : FieldExtrac <nl> <nl> / / StreamInfoFormatter : : FieldExtractor <nl> std : : string extract ( const StreamInfo : : StreamInfo & stream_info ) const override { <nl> - auto millis = extractMillis ( stream_info ) ; <nl> + const auto millis = extractMillis ( stream_info ) ; <nl> if ( ! millis ) { <nl> return UnspecifiedValueString ; <nl> } <nl> class StreamInfoDurationFieldExtractor : public StreamInfoFormatter : : FieldExtrac <nl> return fmt : : format_int ( millis . value ( ) ) . str ( ) ; <nl> } <nl> ProtobufWkt : : Value extractValue ( const StreamInfo : : StreamInfo & stream_info ) const override { <nl> - auto millis = extractMillis ( stream_info ) ; <nl> + const auto millis = extractMillis ( stream_info ) ; <nl> if ( ! millis ) { <nl> return unspecifiedValue ( ) ; <nl> } <nl> class StreamInfoDurationFieldExtractor : public StreamInfoFormatter : : FieldExtrac <nl> <nl> private : <nl> absl : : optional < uint32_t > extractMillis ( const StreamInfo : : StreamInfo & stream_info ) const { <nl> - auto time = field_extractor_ ( stream_info ) ; <nl> + const auto time = field_extractor_ ( stream_info ) ; <nl> if ( time ) { <nl> return std : : chrono : : duration_cast < std : : chrono : : milliseconds > ( time . value ( ) ) . count ( ) ; <nl> } <nl> mmm a / source / common / common / perf_annotation . cc <nl> ppp b / source / common / common / perf_annotation . cc <nl> std : : string PerfAnnotationContext : : toString ( ) { <nl> : std : : to_string ( <nl> std : : chrono : : duration_cast < std : : chrono : : nanoseconds > ( stats . total_ ) . count ( ) / <nl> count ) ) ; <nl> - columns [ 3 ] . push_back ( fmt : : format ( " { } " , stats . stddev_ . computeStandardDeviation ( ) ) ) ; <nl> + columns [ 3 ] . push_back ( absl : : StrCat ( " " , stats . stddev_ . computeStandardDeviation ( ) ) ) ; <nl> columns [ 4 ] . push_back ( nanoseconds_string ( stats . min_ ) ) ; <nl> columns [ 5 ] . push_back ( nanoseconds_string ( stats . max_ ) ) ; <nl> const CategoryDescription & category_description = p - > first ; <nl> mmm a / source / common / config / config_provider_impl . h <nl> ppp b / source / common / config / config_provider_impl . h <nl> class ConfigSubscriptionCommonBase : protected Logger : : Loggable < Logger : : Id : : conf <nl> ConfigProviderManagerImplBase & config_provider_manager , <nl> Server : : Configuration : : FactoryContext & factory_context ) <nl> : name_ ( name ) , tls_ ( factory_context . threadLocal ( ) . allocateSlot ( ) ) , <nl> - init_target_ ( fmt : : format ( " ConfigSubscriptionCommonBase { } " , name_ ) , [ this ] ( ) { start ( ) ; } ) , <nl> + init_target_ ( absl : : StrCat ( " ConfigSubscriptionCommonBase " , name_ ) , [ this ] ( ) { start ( ) ; } ) , <nl> manager_identifier_ ( manager_identifier ) , config_provider_manager_ ( config_provider_manager ) , <nl> time_source_ ( factory_context . timeSource ( ) ) , <nl> last_updated_ ( factory_context . timeSource ( ) . systemTime ( ) ) { <nl> mmm a / source / common / filesystem / inotify / watcher_impl . cc <nl> ppp b / source / common / filesystem / inotify / watcher_impl . cc <nl> void WatcherImpl : : addWatch ( const std : : string & path , uint32_t events , OnChangedCb <nl> / / and then synthetically raise per file events . <nl> size_t last_slash = path . rfind ( ' / ' ) ; <nl> if ( last_slash = = std : : string : : npos ) { <nl> - throw EnvoyException ( fmt : : format ( " invalid watch path { } " , path ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " invalid watch path " , path ) ) ; <nl> } <nl> <nl> std : : string directory = last_slash ! = 0 ? path . substr ( 0 , last_slash ) : " / " ; <nl> mmm a / source / common / filesystem / kqueue / watcher_impl . cc <nl> ppp b / source / common / filesystem / kqueue / watcher_impl . cc <nl> WatcherImpl : : ~ WatcherImpl ( ) { <nl> void WatcherImpl : : addWatch ( const std : : string & path , uint32_t events , Watcher : : OnChangedCb cb ) { <nl> FileWatchPtr watch = addWatch ( path , events , cb , false ) ; <nl> if ( watch = = nullptr ) { <nl> - throw EnvoyException ( fmt : : format ( " invalid watch path { } " , path ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " invalid watch path " , path ) ) ; <nl> } <nl> } <nl> <nl> mmm a / source / common / filesystem / posix / filesystem_impl . cc <nl> ppp b / source / common / filesystem / posix / filesystem_impl . cc <nl> <nl> # include " common / filesystem / filesystem_impl . h " <nl> <nl> # include " absl / strings / match . h " <nl> + # include " absl / strings / str_cat . h " <nl> <nl> namespace Envoy { <nl> namespace Filesystem { <nl> ssize_t InstanceImplPosix : : fileSize ( const std : : string & path ) { <nl> <nl> std : : string InstanceImplPosix : : fileReadToEnd ( const std : : string & path ) { <nl> if ( illegalPath ( path ) ) { <nl> - throw EnvoyException ( fmt : : format ( " Invalid path : { } " , path ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " Invalid path : " , path ) ) ; <nl> } <nl> <nl> std : : ios : : sync_with_stdio ( false ) ; <nl> <nl> std : : ifstream file ( path ) ; <nl> if ( file . fail ( ) ) { <nl> - throw EnvoyException ( fmt : : format ( " unable to read file : { } " , path ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " unable to read file : " , path ) ) ; <nl> } <nl> <nl> std : : stringstream file_string ; <nl> mmm a / source / common / filesystem / win32 / filesystem_impl . cc <nl> ppp b / source / common / filesystem / win32 / filesystem_impl . cc <nl> ssize_t InstanceImplWin32 : : fileSize ( const std : : string & path ) { <nl> <nl> std : : string InstanceImplWin32 : : fileReadToEnd ( const std : : string & path ) { <nl> if ( illegalPath ( path ) ) { <nl> - throw EnvoyException ( fmt : : format ( " Invalid path : { } " , path ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " Invalid path : " , path ) ) ; <nl> } <nl> <nl> std : : ios : : sync_with_stdio ( false ) ; <nl> std : : string InstanceImplWin32 : : fileReadToEnd ( const std : : string & path ) { <nl> / / 0x1a will be treated as EOF <nl> std : : ifstream file ( path , std : : ios_base : : binary ) ; <nl> if ( file . fail ( ) ) { <nl> - throw EnvoyException ( fmt : : format ( " unable to read file : { } " , path ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " unable to read file : " , path ) ) ; <nl> } <nl> <nl> std : : stringstream file_string ; <nl> mmm a / source / common / grpc / google_async_client_impl . cc <nl> ppp b / source / common / grpc / google_async_client_impl . cc <nl> GoogleAsyncClientImpl : : GoogleAsyncClientImpl ( <nl> / / Initialize client stats . <nl> stats_ . streams_total_ = & scope_ - > counter ( " streams_total " ) ; <nl> for ( uint32_t i = 0 ; i < = Status : : WellKnownGrpcStatus : : MaximumKnown ; + + i ) { <nl> - stats_ . streams_closed_ [ i ] = & scope_ - > counter ( fmt : : format ( " streams_closed_ { } " , i ) ) ; <nl> + stats_ . streams_closed_ [ i ] = & scope_ - > counter ( absl : : StrCat ( " streams_closed_ " , i ) ) ; <nl> } <nl> } <nl> <nl> mmm a / source / common / grpc / google_grpc_creds_impl . cc <nl> ppp b / source / common / grpc / google_grpc_creds_impl . cc <nl> getGoogleGrpcChannelCredentials ( const envoy : : config : : core : : v3alpha : : GrpcService & <nl> google_grpc_credentials_factory_name ) ; <nl> } <nl> if ( credentials_factory = = nullptr ) { <nl> - throw EnvoyException ( fmt : : format ( " Unknown google grpc credentials factory : { } " , <nl> - google_grpc_credentials_factory_name ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " Unknown google grpc credentials factory : " , <nl> + google_grpc_credentials_factory_name ) ) ; <nl> } <nl> return credentials_factory - > getChannelCredentials ( grpc_service , api ) ; <nl> } <nl> mmm a / source / common / http / conn_manager_config . h <nl> ppp b / source / common / http / conn_manager_config . h <nl> class ConnectionManagerConfig { <nl> * @ return the time in milliseconds the connection manager will wait between issuing a " shutdown <nl> * notice " to the time it will issue a full GOAWAY and not accept any new streams . <nl> * / <nl> - virtual std : : chrono : : milliseconds drainTimeout ( ) PURE ; <nl> + virtual std : : chrono : : milliseconds drainTimeout ( ) const PURE ; <nl> <nl> / * * <nl> * @ return FilterChainFactory & the HTTP level filter factory to build the connection ' s filter <nl> class ConnectionManagerConfig { <nl> * @ return whether the connection manager will generate a fresh x - request - id if the request does <nl> * not have one . <nl> * / <nl> - virtual bool generateRequestId ( ) PURE ; <nl> + virtual bool generateRequestId ( ) const PURE ; <nl> <nl> / * * <nl> * @ return whether the x - request - id should not be reset on edge entry inside mesh <nl> class ConnectionManagerConfig { <nl> / * * <nl> * @ return const std : : string & the server name to write into responses . <nl> * / <nl> - virtual const std : : string & serverName ( ) PURE ; <nl> + virtual const std : : string & serverName ( ) const PURE ; <nl> <nl> / * * <nl> * @ return ServerHeaderTransformation the transformation to apply to Server response headers . <nl> * / <nl> - virtual HttpConnectionManagerProto : : ServerHeaderTransformation serverHeaderTransformation ( ) PURE ; <nl> + virtual HttpConnectionManagerProto : : ServerHeaderTransformation <nl> + serverHeaderTransformation ( ) const PURE ; <nl> <nl> / * * <nl> * @ return ConnectionManagerStats & the stats to write to . <nl> class ConnectionManagerConfig { <nl> * @ return bool whether to use the remote address for populating XFF , determining internal request <nl> * status , etc . or to assume that XFF will already be populated with the remote address . <nl> * / <nl> - virtual bool useRemoteAddress ( ) PURE ; <nl> + virtual bool useRemoteAddress ( ) const PURE ; <nl> <nl> / * * <nl> * @ return InternalAddressConfig configuration for user defined internal addresses . <nl> class ConnectionManagerConfig { <nl> / * * <nl> * @ return ForwardClientCertType the configuration of how to forward the client cert information . <nl> * / <nl> - virtual ForwardClientCertType forwardClientCert ( ) PURE ; <nl> + virtual ForwardClientCertType forwardClientCert ( ) const PURE ; <nl> <nl> / * * <nl> * @ return vector of ClientCertDetailsType the configuration of the current client cert ' s details <nl> mmm a / source / common / http / conn_manager_impl . cc <nl> ppp b / source / common / http / conn_manager_impl . cc <nl> <nl> <nl> # include " absl / strings / escaping . h " <nl> # include " absl / strings / match . h " <nl> + # include " absl / strings / str_cat . h " <nl> <nl> namespace Envoy { <nl> namespace Http { <nl> void ConnectionManagerImpl : : chargeTracingStats ( const Tracing : : Reason & tracing_re <nl> break ; <nl> default : <nl> throw std : : invalid_argument ( <nl> - fmt : : format ( " invalid tracing reason , value : { } " , static_cast < int32_t > ( tracing_reason ) ) ) ; <nl> + absl : : StrCat ( " invalid tracing reason , value : " , static_cast < int32_t > ( tracing_reason ) ) ) ; <nl> } <nl> } <nl> <nl> mmm a / source / common / http / hash_policy . cc <nl> ppp b / source / common / http / hash_policy . cc <nl> <nl> <nl> # include " common / http / utility . h " <nl> <nl> + # include " absl / strings / str_cat . h " <nl> + <nl> namespace Envoy { <nl> namespace Http { <nl> <nl> HashPolicyImpl : : HashPolicyImpl ( <nl> break ; <nl> default : <nl> throw EnvoyException ( <nl> - fmt : : format ( " Unsupported hash policy { } " , hash_policy - > policy_specifier_case ( ) ) ) ; <nl> + absl : : StrCat ( " Unsupported hash policy " , hash_policy - > policy_specifier_case ( ) ) ) ; <nl> } <nl> } <nl> } <nl> mmm a / source / common / http / http2 / codec_impl . cc <nl> ppp b / source / common / http / http2 / codec_impl . cc <nl> void ConnectionImpl : : sendPendingFrames ( ) { <nl> return ; <nl> } <nl> <nl> - int rc = nghttp2_session_send ( session_ ) ; <nl> + const int rc = nghttp2_session_send ( session_ ) ; <nl> if ( rc ! = 0 ) { <nl> ASSERT ( rc = = NGHTTP2_ERR_CALLBACK_FAILURE ) ; <nl> / / For errors caused by the pending outbound frame flood the FrameFloodException has <nl> void ConnectionImpl : : sendPendingFrames ( ) { <nl> throw FrameFloodException ( " Too many frames in the outbound queue . " ) ; <nl> } <nl> <nl> - throw CodecProtocolException ( fmt : : format ( " { } " , nghttp2_strerror ( rc ) ) ) ; <nl> + throw CodecProtocolException ( std : : string ( nghttp2_strerror ( rc ) ) ) ; <nl> } <nl> <nl> / / See ConnectionImpl : : StreamImpl : : resetStream ( ) for why we do this . This is an uncommon event , <nl> mmm a / source / common / http / utility . cc <nl> ppp b / source / common / http / utility . cc <nl> Utility : : getLastAddressFromXFF ( const Http : : HeaderMap & request_headers , uint32_t <nl> static const std : : string separator ( " , " ) ; <nl> / / Ignore the last num_to_skip addresses at the end of XFF . <nl> for ( uint32_t i = 0 ; i < num_to_skip ; i + + ) { <nl> - std : : string : : size_type last_comma = xff_string . rfind ( separator ) ; <nl> + const std : : string : : size_type last_comma = xff_string . rfind ( separator ) ; <nl> if ( last_comma = = std : : string : : npos ) { <nl> return { nullptr , false } ; <nl> } <nl> Utility : : getLastAddressFromXFF ( const Http : : HeaderMap & request_headers , uint32_t <nl> } <nl> / / The text after the last remaining comma , or the entirety of the string if there <nl> / / is no comma , is the requested IP address . <nl> - std : : string : : size_type last_comma = xff_string . rfind ( separator ) ; <nl> + const std : : string : : size_type last_comma = xff_string . rfind ( separator ) ; <nl> if ( last_comma ! = std : : string : : npos & & last_comma + separator . size ( ) < xff_string . size ( ) ) { <nl> xff_string = xff_string . substr ( last_comma + separator . size ( ) ) ; <nl> } <nl> mmm a / source / common / network / address_impl . cc <nl> ppp b / source / common / network / address_impl . cc <nl> Ipv4Instance : : Ipv4Instance ( const std : : string & address , uint32_t port ) : Instance <nl> throw EnvoyException ( fmt : : format ( " invalid ipv4 address ' { } ' " , address ) ) ; <nl> } <nl> <nl> - friendly_name_ = fmt : : format ( " { } : { } " , address , port ) ; <nl> + friendly_name_ = absl : : StrCat ( address , " : " , port ) ; <nl> validateIpv4Supported ( friendly_name_ ) ; <nl> ip_ . friendly_address_ = address ; <nl> } <nl> Ipv4Instance : : Ipv4Instance ( uint32_t port ) : InstanceBase ( Type : : Ip ) { <nl> ip_ . ipv4_ . address_ . sin_family = AF_INET ; <nl> ip_ . ipv4_ . address_ . sin_port = htons ( port ) ; <nl> ip_ . ipv4_ . address_ . sin_addr . s_addr = INADDR_ANY ; <nl> - friendly_name_ = fmt : : format ( " 0 . 0 . 0 . 0 : { } " , port ) ; <nl> + friendly_name_ = absl : : StrCat ( " 0 . 0 . 0 . 0 : " , port ) ; <nl> validateIpv4Supported ( friendly_name_ ) ; <nl> ip_ . friendly_address_ = " 0 . 0 . 0 . 0 " ; <nl> } <nl> Api : : SysCallIntResult PipeInstance : : bind ( int fd ) const { <nl> if ( mode ! = 0 & & ! abstract_namespace_ & & bind_result . rc_ = = 0 ) { <nl> auto set_permissions = os_syscalls . chmod ( address_ . sun_path , mode ) ; <nl> if ( set_permissions . rc_ ! = 0 ) { <nl> - throw EnvoyException ( fmt : : format ( " Failed to create socket with mode { } " , mode ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " Failed to create socket with mode " , mode ) ) ; <nl> } <nl> } <nl> return bind_result ; <nl> mmm a / source / common / network / utility . cc <nl> ppp b / source / common / network / utility . cc <nl> Address : : InstanceConstSharedPtr Utility : : resolveUrl ( const std : : string & url ) { <nl> return Address : : InstanceConstSharedPtr { <nl> new Address : : PipeInstance ( url . substr ( UNIX_SCHEME . size ( ) ) ) } ; <nl> } else { <nl> - throw EnvoyException ( fmt : : format ( " unknown protocol scheme : { } " , url ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " unknown protocol scheme : " , url ) ) ; <nl> } <nl> } <nl> <nl> - bool Utility : : urlIsTcpScheme ( const std : : string & url ) { return absl : : StartsWith ( url , TCP_SCHEME ) ; } <nl> + bool Utility : : urlIsTcpScheme ( absl : : string_view url ) { return absl : : StartsWith ( url , TCP_SCHEME ) ; } <nl> <nl> - bool Utility : : urlIsUdpScheme ( const std : : string & url ) { return absl : : StartsWith ( url , UDP_SCHEME ) ; } <nl> + bool Utility : : urlIsUdpScheme ( absl : : string_view url ) { return absl : : StartsWith ( url , UDP_SCHEME ) ; } <nl> <nl> - bool Utility : : urlIsUnixScheme ( const std : : string & url ) { return absl : : StartsWith ( url , UNIX_SCHEME ) ; } <nl> + bool Utility : : urlIsUnixScheme ( absl : : string_view url ) { return absl : : StartsWith ( url , UNIX_SCHEME ) ; } <nl> <nl> namespace { <nl> <nl> - std : : string hostFromUrl ( const std : : string & url , const std : : string & scheme , <nl> - const std : : string & scheme_name ) { <nl> + std : : string hostFromUrl ( const std : : string & url , absl : : string_view scheme , <nl> + absl : : string_view scheme_name ) { <nl> if ( ! absl : : StartsWith ( url , scheme ) ) { <nl> throw EnvoyException ( fmt : : format ( " expected { } scheme , got : { } " , scheme_name , url ) ) ; <nl> } <nl> <nl> - size_t colon_index = url . find ( ' : ' , scheme . size ( ) ) ; <nl> + const size_t colon_index = url . find ( ' : ' , scheme . size ( ) ) ; <nl> <nl> if ( colon_index = = std : : string : : npos ) { <nl> - throw EnvoyException ( fmt : : format ( " malformed url : { } " , url ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " malformed url : " , url ) ) ; <nl> } <nl> <nl> return url . substr ( scheme . size ( ) , colon_index - scheme . size ( ) ) ; <nl> } <nl> <nl> - uint32_t portFromUrl ( const std : : string & url , const std : : string & scheme , <nl> - const std : : string & scheme_name ) { <nl> + uint32_t portFromUrl ( const std : : string & url , absl : : string_view scheme , <nl> + absl : : string_view scheme_name ) { <nl> if ( ! absl : : StartsWith ( url , scheme ) ) { <nl> throw EnvoyException ( fmt : : format ( " expected { } scheme , got : { } " , scheme_name , url ) ) ; <nl> } <nl> <nl> - size_t colon_index = url . find ( ' : ' , scheme . size ( ) ) ; <nl> + const size_t colon_index = url . find ( ' : ' , scheme . size ( ) ) ; <nl> <nl> if ( colon_index = = std : : string : : npos ) { <nl> - throw EnvoyException ( fmt : : format ( " malformed url : { } " , url ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " malformed url : " , url ) ) ; <nl> } <nl> <nl> - size_t rcolon_index = url . rfind ( ' : ' ) ; <nl> + const size_t rcolon_index = url . rfind ( ' : ' ) ; <nl> if ( colon_index ! = rcolon_index ) { <nl> - throw EnvoyException ( fmt : : format ( " malformed url : { } " , url ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " malformed url : " , url ) ) ; <nl> } <nl> <nl> try { <nl> Address : : InstanceConstSharedPtr Utility : : copyInternetAddressAndPort ( const Addres <nl> return std : : make_shared < Address : : Ipv6Instance > ( ip . addressAsString ( ) , ip . port ( ) ) ; <nl> } <nl> <nl> - void Utility : : throwWithMalformedIp ( const std : : string & ip_address ) { <nl> - throw EnvoyException ( fmt : : format ( " malformed IP address : { } " , ip_address ) ) ; <nl> + void Utility : : throwWithMalformedIp ( absl : : string_view ip_address ) { <nl> + throw EnvoyException ( absl : : StrCat ( " malformed IP address : " , ip_address ) ) ; <nl> } <nl> <nl> / / TODO ( hennna ) : Currently getLocalAddress does not support choosing between <nl> Address : : InstanceConstSharedPtr Utility : : getLocalAddress ( const Address : : IpVersio <nl> struct ifaddrs * ifa ; <nl> Address : : InstanceConstSharedPtr ret ; <nl> <nl> - int rc = getifaddrs ( & ifaddr ) ; <nl> + const int rc = getifaddrs ( & ifaddr ) ; <nl> RELEASE_ASSERT ( ! rc , " " ) ; <nl> <nl> / / man getifaddrs ( 3 ) <nl> mmm a / source / common / network / utility . h <nl> ppp b / source / common / network / utility . h <nl> class Utility { <nl> * @ param url supplies the URL to match . <nl> * @ return bool true if the URL matches the TCP scheme , false otherwise . <nl> * / <nl> - static bool urlIsTcpScheme ( const std : : string & url ) ; <nl> + static bool urlIsTcpScheme ( absl : : string_view url ) ; <nl> <nl> / * * <nl> * Match a URL to the UDP scheme <nl> * @ param url supplies the URL to match . <nl> * @ return bool true if the URL matches the UDP scheme , false otherwise . <nl> * / <nl> - static bool urlIsUdpScheme ( const std : : string & url ) ; <nl> + static bool urlIsUdpScheme ( absl : : string_view url ) ; <nl> <nl> / * * <nl> * Match a URL to the Unix scheme <nl> * @ param url supplies the Unix to match . <nl> * @ return bool true if the URL matches the Unix scheme , false otherwise . <nl> * / <nl> - static bool urlIsUnixScheme ( const std : : string & url ) ; <nl> + static bool urlIsUnixScheme ( absl : : string_view url ) ; <nl> <nl> / * * <nl> * Parses the host from a TCP URL <nl> class Utility { <nl> TimeSource & time_source , uint32_t & packets_dropped ) ; <nl> <nl> private : <nl> - static void throwWithMalformedIp ( const std : : string & ip_address ) ; <nl> + static void throwWithMalformedIp ( absl : : string_view ip_address ) ; <nl> <nl> / * * <nl> * Takes a number and flips the order in byte chunks . The last byte of the input will be the <nl> mmm a / source / common / router / config_impl . cc <nl> ppp b / source / common / router / config_impl . cc <nl> RouteEntryImplBase : : RouteEntryImplBase ( const VirtualHostImpl & vhost , <nl> Envoy : : Http : : LowerCaseString ( upgrade_config . upgrade_type ( ) ) . get ( ) , enabled ) ) <nl> . second ; <nl> if ( ! success ) { <nl> - throw EnvoyException ( fmt : : format ( " Duplicate upgrade { } " , upgrade_config . upgrade_type ( ) ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " Duplicate upgrade " , upgrade_config . upgrade_type ( ) ) ) ; <nl> } <nl> } <nl> } <nl> mmm a / source / common / router / config_utility . cc <nl> ppp b / source / common / router / config_utility . cc <nl> ConfigUtility : : parseDirectResponseBody ( const envoy : : config : : route : : v3alpha : : Rout <nl> } <nl> const ssize_t size = api . fileSystem ( ) . fileSize ( filename ) ; <nl> if ( size < 0 ) { <nl> - throw EnvoyException ( fmt : : format ( " cannot determine size of response body file { } " , filename ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " cannot determine size of response body file " , filename ) ) ; <nl> } <nl> if ( size > MaxBodySize ) { <nl> throw EnvoyException ( fmt : : format ( " response body file { } size is { } bytes ; maximum is { } " , <nl> mmm a / source / common / router / header_formatter . cc <nl> ppp b / source / common / router / header_formatter . cc <nl> std : : string formatUpstreamMetadataParseException ( absl : : string_view params , <nl> const EnvoyException * cause = nullptr ) { <nl> std : : string reason ; <nl> if ( cause ! = nullptr ) { <nl> - reason = fmt : : format ( " , because { } " , cause - > what ( ) ) ; <nl> + reason = absl : : StrCat ( " , because " , cause - > what ( ) ) ; <nl> } <nl> <nl> - return fmt : : format ( " Invalid header configuration . Expected format " <nl> - " UPSTREAM_METADATA ( [ \ " namespace \ " , \ " k \ " , . . . ] ) , actual format " <nl> - " UPSTREAM_METADATA { } { } " , <nl> - params , reason ) ; <nl> + return absl : : StrCat ( " Invalid header configuration . Expected format " <nl> + " UPSTREAM_METADATA ( [ \ " namespace \ " , \ " k \ " , . . . ] ) , actual format " <nl> + " UPSTREAM_METADATA " , <nl> + params , reason ) ; <nl> } <nl> <nl> std : : string formatPerRequestStateParseException ( absl : : string_view params ) { <nl> - return fmt : : format ( " Invalid header configuration . Expected format " <nl> - " PER_REQUEST_STATE ( < data_name > ) , actual format " <nl> - " PER_REQUEST_STATE { } " , <nl> - params ) ; <nl> + return absl : : StrCat ( " Invalid header configuration . Expected format " <nl> + " PER_REQUEST_STATE ( < data_name > ) , actual format " <nl> + " PER_REQUEST_STATE " , <nl> + params ) ; <nl> } <nl> <nl> / / Parses the parameters for UPSTREAM_METADATA and returns a function suitable for accessing the <nl> mmm a / source / common / router / route_config_update_receiver_impl . h <nl> ppp b / source / common / router / route_config_update_receiver_impl . h <nl> class RouteConfigUpdateReceiverImpl : public RouteConfigUpdateReceiver { <nl> const Protobuf : : RepeatedPtrField < std : : string > & removed_resources , <nl> const std : : string & version_info ) override ; <nl> const std : : string & routeConfigName ( ) const override { return route_config_proto_ . name ( ) ; } <nl> - const std : : string & configVersion ( ) override { return last_config_version_ ; } <nl> + const std : : string & configVersion ( ) const override { return last_config_version_ ; } <nl> uint64_t configHash ( ) const override { return last_config_hash_ ; } <nl> absl : : optional < RouteConfigProvider : : ConfigInfo > configInfo ( ) const override { <nl> return config_info_ ; <nl> mmm a / source / common / router / scoped_rds . cc <nl> ppp b / source / common / router / scoped_rds . cc <nl> bool ScopedRdsConfigSubscription : : addOrUpdateScopes ( <nl> ENVOY_LOG ( debug , " srds : add / update scoped_route ' { } ' , version : { } " , <nl> scoped_route_info - > scopeName ( ) , version_info ) ; <nl> } catch ( const EnvoyException & e ) { <nl> - exception_msgs . emplace_back ( fmt : : format ( " { } " , e . what ( ) ) ) ; <nl> + exception_msgs . emplace_back ( absl : : StrCat ( " " , e . what ( ) ) ) ; <nl> } <nl> } <nl> return any_applied ; <nl> mmm a / source / common / runtime / runtime_impl . cc <nl> ppp b / source / common / runtime / runtime_impl . cc <nl> void DiskLayer : : walkDirectory ( const std : : string & path , const std : : string & prefix <nl> <nl> ENVOY_LOG ( debug , " walking directory : { } " , path ) ; <nl> if ( depth > MaxWalkDepth ) { <nl> - throw EnvoyException ( fmt : : format ( " Walk recursion depth exceeded { } " , MaxWalkDepth ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " Walk recursion depth exceeded " , MaxWalkDepth ) ) ; <nl> } <nl> / / Check if this is an obviously bad path . <nl> if ( api . fileSystem ( ) . illegalPath ( path ) ) { <nl> - throw EnvoyException ( fmt : : format ( " Invalid path : { } " , path ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " Invalid path : " , path ) ) ; <nl> } <nl> <nl> Filesystem : : Directory directory ( path ) ; <nl> void ProtoLayer : : walkProtoValue ( const ProtobufWkt : : Value & v , const std : : string & <nl> case ProtobufWkt : : Value : : KIND_NOT_SET : <nl> case ProtobufWkt : : Value : : kListValue : <nl> case ProtobufWkt : : Value : : kNullValue : <nl> - throw EnvoyException ( fmt : : format ( " Invalid runtime entry value for { } " , prefix ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " Invalid runtime entry value for " , prefix ) ) ; <nl> break ; <nl> case ProtobufWkt : : Value : : kStringValue : <nl> values_ . emplace ( prefix , SnapshotImpl : : createEntry ( v . string_value ( ) ) ) ; <nl> mmm a / source / common / secret / secret_manager_impl . cc <nl> ppp b / source / common / secret / secret_manager_impl . cc <nl> void SecretManagerImpl : : addStaticSecret ( <nl> if ( ! static_tls_certificate_providers_ . insert ( std : : make_pair ( secret . name ( ) , secret_provider ) ) <nl> . second ) { <nl> throw EnvoyException ( <nl> - fmt : : format ( " Duplicate static TlsCertificate secret name { } " , secret . name ( ) ) ) ; <nl> + absl : : StrCat ( " Duplicate static TlsCertificate secret name " , secret . name ( ) ) ) ; <nl> } <nl> break ; <nl> } <nl> void SecretManagerImpl : : addStaticSecret ( <nl> if ( ! static_certificate_validation_context_providers_ <nl> . insert ( std : : make_pair ( secret . name ( ) , secret_provider ) ) <nl> . second ) { <nl> - throw EnvoyException ( fmt : : format ( <nl> - " Duplicate static CertificateValidationContext secret name { } " , secret . name ( ) ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( <nl> + " Duplicate static CertificateValidationContext secret name " , secret . name ( ) ) ) ; <nl> } <nl> break ; <nl> } <nl> void SecretManagerImpl : : addStaticSecret ( <nl> . insert ( std : : make_pair ( secret . name ( ) , secret_provider ) ) <nl> . second ) { <nl> throw EnvoyException ( <nl> - fmt : : format ( " Duplicate static TlsSessionTicketKeys secret name { } " , secret . name ( ) ) ) ; <nl> + absl : : StrCat ( " Duplicate static TlsSessionTicketKeys secret name " , secret . name ( ) ) ) ; <nl> } <nl> break ; <nl> } <nl> mmm a / source / common / ssl / certificate_validation_context_config_impl . cc <nl> ppp b / source / common / ssl / certificate_validation_context_config_impl . cc <nl> CertificateValidationContextConfigImpl : : CertificateValidationContextConfigImpl ( <nl> certificateRevocationListPath ( ) ) ) ; <nl> } <nl> if ( ! subject_alt_name_matchers_ . empty ( ) | | ! verify_subject_alt_name_list_ . empty ( ) ) { <nl> - throw EnvoyException ( fmt : : format ( " SAN - based verification of peer certificates without " <nl> - " trusted CA is insecure and not allowed " ) ) ; <nl> + throw EnvoyException ( " SAN - based verification of peer certificates without " <nl> + " trusted CA is insecure and not allowed " ) ; <nl> } <nl> if ( allow_expired_certificate_ ) { <nl> - throw EnvoyException ( <nl> - fmt : : format ( " Certificate validity period is always ignored without trusted CA " ) ) ; <nl> + throw EnvoyException ( " Certificate validity period is always ignored without trusted CA " ) ; <nl> } <nl> } <nl> } <nl> mmm a / source / common / tracing / http_tracer_impl . cc <nl> ppp b / source / common / tracing / http_tracer_impl . cc <nl> <nl> # include " common / runtime / uuid_util . h " <nl> # include " common / stream_info / utility . h " <nl> <nl> + # include " absl / strings / str_cat . h " <nl> + <nl> namespace Envoy { <nl> namespace Tracing { <nl> <nl> static std : : string buildUrl ( const Http : : HeaderMap & request_headers , <nl> path = path . substr ( 0 , max_path_length ) ; <nl> } <nl> <nl> - return fmt : : format ( " { } : / / { } { } " , valueOrDefault ( request_headers . ForwardedProto ( ) , " " ) , <nl> - valueOrDefault ( request_headers . Host ( ) , " " ) , path ) ; <nl> + return absl : : StrCat ( valueOrDefault ( request_headers . ForwardedProto ( ) , " " ) , " : / / " , <nl> + valueOrDefault ( request_headers . Host ( ) , " " ) , path ) ; <nl> } <nl> <nl> const std : : string HttpTracerUtility : : IngressOperation = " ingress " ; <nl> void MetadataCustomTag : : apply ( Span & span , const CustomTagContext & ctx ) const { <nl> span . setTag ( tag ( ) , value . bool_value ( ) ? " true " : " false " ) ; <nl> return ; <nl> case ProtobufWkt : : Value : : kNumberValue : <nl> - span . setTag ( tag ( ) , fmt : : format ( " { } " , value . number_value ( ) ) ) ; <nl> + span . setTag ( tag ( ) , absl : : StrCat ( " " , value . number_value ( ) ) ) ; <nl> return ; <nl> case ProtobufWkt : : Value : : kStringValue : <nl> span . setTag ( tag ( ) , value . string_value ( ) ) ; <nl> mmm a / source / common / upstream / health_checker_impl . cc <nl> ppp b / source / common / upstream / health_checker_impl . cc <nl> <nl> # include " extensions / health_checkers / well_known_names . h " <nl> <nl> # include " absl / strings / match . h " <nl> + # include " absl / strings / str_cat . h " <nl> <nl> namespace Envoy { <nl> namespace Upstream { <nl> void GrpcHealthCheckerImpl : : GrpcActiveHealthCheckSession : : logHealthCheckStatus ( <nl> if ( grpc_status ! = Grpc : : Status : : WellKnownGrpcStatus : : Ok & & ! grpc_message . empty ( ) ) { <nl> grpc_status_message = fmt : : format ( " { } ( { } ) " , grpc_status , grpc_message ) ; <nl> } else { <nl> - grpc_status_message = fmt : : format ( " { } " , grpc_status ) ; <nl> + grpc_status_message = absl : : StrCat ( " " , grpc_status ) ; <nl> } <nl> <nl> ENVOY_CONN_LOG ( debug , " hc grpc_status = { } service_status = { } health_flags = { } " , * client_ , <nl> mmm a / source / common / upstream / transport_socket_match_impl . cc <nl> ppp b / source / common / upstream / transport_socket_match_impl . cc <nl> TransportSocketMatcherImpl : : TransportSocketMatcherImpl ( <nl> socket_config , factory_context . messageValidationVisitor ( ) , config_factory ) ; <nl> FactoryMatch factory_match ( <nl> socket_match . name ( ) , config_factory . createTransportSocketFactory ( * message , factory_context ) , <nl> - generateStats ( socket_match . name ( ) + " . " ) ) ; <nl> + generateStats ( absl : : StrCat ( socket_match . name ( ) , " . " ) ) ) ; <nl> for ( const auto & kv : socket_match . match ( ) . fields ( ) ) { <nl> factory_match . label_set . emplace_back ( kv . first , kv . second ) ; <nl> } <nl> mmm a / source / common / upstream / upstream_impl . cc <nl> ppp b / source / common / upstream / upstream_impl . cc <nl> <nl> <nl> # include " extensions / transport_sockets / well_known_names . h " <nl> <nl> + # include " absl / strings / str_cat . h " <nl> + <nl> namespace Envoy { <nl> namespace Upstream { <nl> namespace { <nl> ClusterInfoImpl : : ClusterInfoImpl ( <nl> http2_settings_ ( Http : : Utility : : parseHttp2Settings ( config . http2_protocol_options ( ) ) ) , <nl> extension_protocol_options_ ( parseExtensionProtocolOptions ( config , validation_visitor ) ) , <nl> resource_managers_ ( config , runtime , name_ , * stats_scope_ ) , <nl> - maintenance_mode_runtime_key_ ( fmt : : format ( " upstream . maintenance_mode . { } " , name_ ) ) , <nl> + maintenance_mode_runtime_key_ ( absl : : StrCat ( " upstream . maintenance_mode . " , name_ ) ) , <nl> source_address_ ( getSourceAddress ( config , bind_config ) ) , <nl> lb_least_request_config_ ( config . least_request_lb_config ( ) ) , <nl> lb_ring_hash_config_ ( config . ring_hash_lb_config ( ) ) , <nl> mmm a / source / extensions / common / dynamic_forward_proxy / dns_cache . h <nl> ppp b / source / extensions / common / dynamic_forward_proxy / dns_cache . h <nl> class DnsHostInfo { <nl> * Returns the host that was actually resolved via DNS . If port was originally specified it will <nl> * be stripped from this return value . <nl> * / <nl> - virtual const std : : string & resolvedHost ( ) PURE ; <nl> + virtual const std : : string & resolvedHost ( ) const PURE ; <nl> <nl> / * * <nl> * Returns whether the original host is an IP address . <nl> * / <nl> - virtual bool isIpAddress ( ) PURE ; <nl> + virtual bool isIpAddress ( ) const PURE ; <nl> <nl> / * * <nl> * Indicates that the host has been used and should not be purged depending on any configured <nl> mmm a / source / extensions / common / dynamic_forward_proxy / dns_cache_impl . h <nl> ppp b / source / extensions / common / dynamic_forward_proxy / dns_cache_impl . h <nl> class DnsCacheImpl : public DnsCache , Logger : : Loggable < Logger : : Id : : forward_proxy <nl> <nl> / / DnsHostInfo <nl> Network : : Address : : InstanceConstSharedPtr address ( ) override { return address_ ; } <nl> - const std : : string & resolvedHost ( ) override { return resolved_host_ ; } <nl> - bool isIpAddress ( ) override { return is_ip_address_ ; } <nl> + const std : : string & resolvedHost ( ) const override { return resolved_host_ ; } <nl> + bool isIpAddress ( ) const override { return is_ip_address_ ; } <nl> void touch ( ) override { last_used_time_ = time_source_ . monotonicTime ( ) . time_since_epoch ( ) ; } <nl> <nl> TimeSource & time_source_ ; <nl> mmm a / source / extensions / filters / network / dubbo_proxy / dubbo_protocol_impl . cc <nl> ppp b / source / extensions / filters / network / dubbo_proxy / dubbo_protocol_impl . cc <nl> void parseRequestInfoFromBuffer ( Buffer : : Instance & data , MessageMetadataSharedPtr <nl> SerializationType type = static_cast < SerializationType > ( flag & SerializationTypeMask ) ; <nl> if ( ! isValidSerializationType ( type ) ) { <nl> throw EnvoyException ( <nl> - fmt : : format ( " invalid dubbo message serialization type { } " , <nl> - static_cast < std : : underlying_type < SerializationType > : : type > ( type ) ) ) ; <nl> + absl : : StrCat ( " invalid dubbo message serialization type " , <nl> + static_cast < std : : underlying_type < SerializationType > : : type > ( type ) ) ) ; <nl> } <nl> <nl> if ( ! is_two_way & & metadata - > message_type ( ) ! = MessageType : : HeartbeatRequest ) { <nl> void parseResponseInfoFromBuffer ( Buffer : : Instance & buffer , MessageMetadataShared <nl> ResponseStatus status = static_cast < ResponseStatus > ( buffer . peekInt < uint8_t > ( StatusOffset ) ) ; <nl> if ( ! isValidResponseStatus ( status ) ) { <nl> throw EnvoyException ( <nl> - fmt : : format ( " invalid dubbo message response status { } " , <nl> - static_cast < std : : underlying_type < ResponseStatus > : : type > ( status ) ) ) ; <nl> + absl : : StrCat ( " invalid dubbo message response status " , <nl> + static_cast < std : : underlying_type < ResponseStatus > : : type > ( status ) ) ) ; <nl> } <nl> <nl> metadata - > setResponseStatus ( status ) ; <nl> DubboProtocolImpl : : decodeHeader ( Buffer : : Instance & buffer , MessageMetadataSharedP <nl> <nl> uint16_t magic_number = buffer . peekBEInt < uint16_t > ( ) ; <nl> if ( magic_number ! = MagicNumber ) { <nl> - throw EnvoyException ( fmt : : format ( " invalid dubbo message magic number { } " , magic_number ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " invalid dubbo message magic number " , magic_number ) ) ; <nl> } <nl> <nl> uint8_t flag = buffer . peekInt < uint8_t > ( FlagOffset ) ; <nl> DubboProtocolImpl : : decodeHeader ( Buffer : : Instance & buffer , MessageMetadataSharedP <nl> <nl> / / The body size of the heartbeat message is zero . <nl> if ( body_size > MaxBodySize | | body_size < 0 ) { <nl> - throw EnvoyException ( fmt : : format ( " invalid dubbo message size { } " , body_size ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " invalid dubbo message size " , body_size ) ) ; <nl> } <nl> <nl> metadata - > setRequestId ( request_id ) ; <nl> mmm a / source / extensions / filters / network / dubbo_proxy / hessian_utils . cc <nl> ppp b / source / extensions / filters / network / dubbo_proxy / hessian_utils . cc <nl> <nl> <nl> # include " extensions / filters / network / dubbo_proxy / buffer_helper . h " <nl> <nl> + # include " absl / strings / str_cat . h " <nl> + <nl> namespace Envoy { <nl> namespace Extensions { <nl> namespace NetworkFilters { <nl> size_t doWriteString ( Buffer : : Instance & instance , absl : : string_view str_view ) { <nl> } <nl> <nl> if ( length < two_octet_max_lenth ) { <nl> - uint8_t code = length > > 8 ; / / 0x30 + length / 0x100 must less than 0x34 <nl> - uint8_t remain = length & 0xff ; <nl> + const uint8_t code = length > > 8 ; / / 0x30 + length / 0x100 must less than 0x34 <nl> + const uint8_t remain = length & 0xff ; <nl> std : : initializer_list < uint8_t > values { static_cast < uint8_t > ( 0x30 + code ) , remain } ; <nl> addSeq ( instance , values ) ; <nl> instance . add ( str_view . data ( ) , str_view . length ( ) ) ; <nl> size_t doWriteString ( Buffer : : Instance & instance , absl : : string_view str_view ) { <nl> } <nl> <nl> if ( length < = str_max_length ) { <nl> - uint8_t code = length > > 8 ; <nl> - uint8_t remain = length & 0xff ; <nl> + const uint8_t code = length > > 8 ; <nl> + const uint8_t remain = length & 0xff ; <nl> std : : initializer_list < uint8_t > values { ' S ' , code , remain } ; <nl> addSeq ( instance , values ) ; <nl> instance . add ( str_view . data ( ) , str_view . length ( ) ) ; <nl> size_t doWriteString ( Buffer : : Instance & instance , absl : : string_view str_view ) { <nl> std : : initializer_list < uint8_t > values { 0x52 , 0xff , 0xff } ; <nl> addSeq ( instance , values ) ; <nl> instance . add ( str_view . data ( ) , str_max_length ) ; <nl> - size_t size = str_max_length + values . size ( ) ; <nl> + const size_t size = str_max_length + values . size ( ) ; <nl> ASSERT ( size = = ( str_max_length + values . size ( ) ) ) ; <nl> <nl> - size_t child_size = <nl> + const size_t child_size = <nl> doWriteString ( instance , str_view . substr ( str_max_length , length - str_max_length ) ) ; <nl> return child_size + size ; <nl> } <nl> char * allocStringBuffer ( std : : string * str , size_t length ) { <nl> <nl> std : : string HessianUtils : : peekString ( Buffer : : Instance & buffer , size_t * size , uint64_t offset ) { <nl> ASSERT ( buffer . length ( ) > offset ) ; <nl> - uint8_t code = buffer . peekInt < uint8_t > ( offset ) ; <nl> + const uint8_t code = buffer . peekInt < uint8_t > ( offset ) ; <nl> size_t delta_length = 0 ; <nl> std : : string result ; <nl> switch ( code ) { <nl> std : : string HessianUtils : : peekString ( Buffer : : Instance & buffer , size_t * size , uin <nl> * size = next_size + delta_length + 3 ; <nl> return result ; <nl> } <nl> - throw EnvoyException ( fmt : : format ( " hessian type is not string { } " , code ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " hessian type is not string " , code ) ) ; <nl> } <nl> <nl> std : : string HessianUtils : : readString ( Buffer : : Instance & buffer ) { <nl> long HessianUtils : : peekLong ( Buffer : : Instance & buffer , size_t * size , uint64_t off <nl> return result ; <nl> } <nl> <nl> - throw EnvoyException ( fmt : : format ( " hessian type is not long { } " , code ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " hessian type is not long " , code ) ) ; <nl> } <nl> <nl> long HessianUtils : : readLong ( Buffer : : Instance & buffer ) { <nl> size_t size ; <nl> - long result = peekLong ( buffer , & size ) ; <nl> + const long result = peekLong ( buffer , & size ) ; <nl> buffer . drain ( size ) ; <nl> return result ; <nl> } <nl> long HessianUtils : : readLong ( Buffer : : Instance & buffer ) { <nl> bool HessianUtils : : peekBool ( Buffer : : Instance & buffer , size_t * size , uint64_t offset ) { <nl> ASSERT ( buffer . length ( ) > offset ) ; <nl> bool result ; <nl> - uint8_t code = buffer . peekInt < uint8_t > ( offset ) ; <nl> + const uint8_t code = buffer . peekInt < uint8_t > ( offset ) ; <nl> if ( code = = 0x46 ) { <nl> result = false ; <nl> * size = 1 ; <nl> bool HessianUtils : : peekBool ( Buffer : : Instance & buffer , size_t * size , uint64_t off <nl> return result ; <nl> } <nl> <nl> - throw EnvoyException ( fmt : : format ( " hessian type is not bool { } " , code ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " hessian type is not bool " , code ) ) ; <nl> } <nl> <nl> bool HessianUtils : : readBool ( Buffer : : Instance & buffer ) { <nl> bool HessianUtils : : readBool ( Buffer : : Instance & buffer ) { <nl> <nl> int HessianUtils : : peekInt ( Buffer : : Instance & buffer , size_t * size , uint64_t offset ) { <nl> ASSERT ( buffer . length ( ) > offset ) ; <nl> - uint8_t code = buffer . peekInt < uint8_t > ( offset ) ; <nl> + const uint8_t code = buffer . peekInt < uint8_t > ( offset ) ; <nl> int result ; <nl> <nl> / / Compact int <nl> int HessianUtils : : peekInt ( Buffer : : Instance & buffer , size_t * size , uint64_t offse <nl> return result ; <nl> } <nl> <nl> - throw EnvoyException ( fmt : : format ( " hessian type is not int { } " , code ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " hessian type is not int " , code ) ) ; <nl> } <nl> <nl> int HessianUtils : : readInt ( Buffer : : Instance & buffer ) { <nl> double HessianUtils : : peekDouble ( Buffer : : Instance & buffer , size_t * size , uint64_t <nl> return result ; <nl> } <nl> <nl> - throw EnvoyException ( fmt : : format ( " hessian type is not double { } " , code ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " hessian type is not double " , code ) ) ; <nl> } <nl> <nl> double HessianUtils : : readDouble ( Buffer : : Instance & buffer ) { <nl> void HessianUtils : : peekNull ( Buffer : : Instance & buffer , size_t * size , uint64_t off <nl> return ; <nl> } <nl> <nl> - throw EnvoyException ( fmt : : format ( " hessian type is not null { } " , code ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " hessian type is not null " , code ) ) ; <nl> } <nl> <nl> void HessianUtils : : readNull ( Buffer : : Instance & buffer ) { <nl> std : : chrono : : milliseconds HessianUtils : : peekDate ( Buffer : : Instance & buffer , size_ <nl> return result ; <nl> } <nl> <nl> - throw EnvoyException ( fmt : : format ( " hessian type is not date { } " , code ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " hessian type is not date " , code ) ) ; <nl> } <nl> <nl> std : : chrono : : milliseconds HessianUtils : : readDate ( Buffer : : Instance & buffer ) { <nl> std : : string HessianUtils : : peekByte ( Buffer : : Instance & buffer , size_t * size , uint6 <nl> return result ; <nl> } <nl> <nl> - throw EnvoyException ( fmt : : format ( " hessian type is not byte { } " , code ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " hessian type is not byte " , code ) ) ; <nl> } <nl> <nl> std : : string HessianUtils : : readByte ( Buffer : : Instance & buffer ) { <nl> mmm a / source / extensions / filters / network / http_connection_manager / config . h <nl> ppp b / source / extensions / filters / network / http_connection_manager / config . h <nl> class HttpConnectionManagerConfig : Logger : : Loggable < Logger : : Id : : config > , <nl> const Buffer : : Instance & data , <nl> Http : : ServerConnectionCallbacks & callbacks ) override ; <nl> Http : : DateProvider & dateProvider ( ) override { return date_provider_ ; } <nl> - std : : chrono : : milliseconds drainTimeout ( ) override { return drain_timeout_ ; } <nl> + std : : chrono : : milliseconds drainTimeout ( ) const override { return drain_timeout_ ; } <nl> FilterChainFactory & filterFactory ( ) override { return * this ; } <nl> - bool generateRequestId ( ) override { return generate_request_id_ ; } <nl> + bool generateRequestId ( ) const override { return generate_request_id_ ; } <nl> bool preserveExternalRequestId ( ) const override { return preserve_external_request_id_ ; } <nl> uint32_t maxRequestHeadersKb ( ) const override { return max_request_headers_kb_ ; } <nl> uint32_t maxRequestHeadersCount ( ) const override { return max_request_headers_count_ ; } <nl> class HttpConnectionManagerConfig : Logger : : Loggable < Logger : : Id : : config > , <nl> Config : : ConfigProvider * scopedRouteConfigProvider ( ) override { <nl> return scoped_routes_config_provider_ . get ( ) ; <nl> } <nl> - const std : : string & serverName ( ) override { return server_name_ ; } <nl> - HttpConnectionManagerProto : : ServerHeaderTransformation serverHeaderTransformation ( ) override { <nl> + const std : : string & serverName ( ) const override { return server_name_ ; } <nl> + HttpConnectionManagerProto : : ServerHeaderTransformation <nl> + serverHeaderTransformation ( ) const override { <nl> return server_transformation_ ; <nl> } <nl> Http : : ConnectionManagerStats & stats ( ) override { return stats_ ; } <nl> Http : : ConnectionManagerTracingStats & tracingStats ( ) override { return tracing_stats_ ; } <nl> - bool useRemoteAddress ( ) override { return use_remote_address_ ; } <nl> + bool useRemoteAddress ( ) const override { return use_remote_address_ ; } <nl> const Http : : InternalAddressConfig & internalAddressConfig ( ) const override { <nl> return * internal_address_config_ ; <nl> } <nl> uint32_t xffNumTrustedHops ( ) const override { return xff_num_trusted_hops_ ; } <nl> bool skipXffAppend ( ) const override { return skip_xff_append_ ; } <nl> const std : : string & via ( ) const override { return via_ ; } <nl> - Http : : ForwardClientCertType forwardClientCert ( ) override { return forward_client_cert_ ; } <nl> + Http : : ForwardClientCertType forwardClientCert ( ) const override { return forward_client_cert_ ; } <nl> const std : : vector < Http : : ClientCertDetailsType > & setCurrentClientCertDetails ( ) const override { <nl> return set_current_client_cert_details_ ; <nl> } <nl> mmm a / source / extensions / filters / network / kafka / kafka_response_parser . cc <nl> ppp b / source / extensions / filters / network / kafka / kafka_response_parser . cc <nl> <nl> # include " extensions / filters / network / kafka / kafka_response_parser . h " <nl> <nl> + # include " absl / strings / str_cat . h " <nl> + <nl> namespace Envoy { <nl> namespace Extensions { <nl> namespace NetworkFilters { <nl> ExpectedResponseSpec ResponseHeaderParser : : getResponseSpec ( const int32_t correla <nl> } else { <nl> / / Response data should always be present in expected responses before response is to be parsed . <nl> throw EnvoyException ( <nl> - fmt : : format ( " no response metadata registered for correlation_id { } " , correlation_id ) ) ; <nl> + absl : : StrCat ( " no response metadata registered for correlation_id " , correlation_id ) ) ; <nl> } <nl> } ; <nl> <nl> mmm a / source / extensions / filters / network / kafka / serialization . cc <nl> ppp b / source / extensions / filters / network / kafka / serialization . cc <nl> uint32_t feedBytesIntoBuffers ( absl : : string_view & data , DeserializerType & length_ <nl> ready = true ; <nl> } else { <nl> / / Invalid payload : null length for non - null object . <nl> - throw EnvoyException ( fmt : : format ( " invalid length : { } " , required ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " invalid length : " , required ) ) ; <nl> } <nl> } <nl> <nl> if ( required < null_value_length ) { <nl> - throw EnvoyException ( fmt : : format ( " invalid length : { } " , required ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " invalid length : " , required ) ) ; <nl> } <nl> <nl> length_consumed_marker = true ; <nl> mmm a / source / extensions / filters / network / kafka / serialization . h <nl> ppp b / source / extensions / filters / network / kafka / serialization . h <nl> <nl> <nl> # include " extensions / filters / network / kafka / kafka_types . h " <nl> <nl> + # include " absl / strings / str_cat . h " <nl> # include " absl / strings / string_view . h " <nl> <nl> namespace Envoy { <nl> class ArrayDeserializer : public Deserializer < std : : vector < ResponseType > > { <nl> if ( required_ > = 0 ) { <nl> children_ = std : : vector < DeserializerType > ( required_ ) ; <nl> } else { <nl> - throw EnvoyException ( fmt : : format ( " invalid ARRAY length : { } " , required_ ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " invalid ARRAY length : " , required_ ) ) ; <nl> } <nl> length_consumed_ = true ; <nl> } <nl> mmm a / source / extensions / filters / network / thrift_proxy / binary_protocol_impl . cc <nl> ppp b / source / extensions / filters / network / thrift_proxy / binary_protocol_impl . cc <nl> bool BinaryProtocolImpl : : readFieldBegin ( Buffer : : Instance & buffer , std : : string & n <nl> } <nl> int16_t id = buffer . peekBEInt < int16_t > ( 1 ) ; <nl> if ( id < 0 ) { <nl> - throw EnvoyException ( fmt : : format ( " invalid binary protocol field id { } " , id ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " invalid binary protocol field id " , id ) ) ; <nl> } <nl> field_id = id ; <nl> buffer . drain ( 3 ) ; <nl> bool BinaryProtocolImpl : : readMapBegin ( Buffer : : Instance & buffer , FieldType & key_t <nl> FieldType vtype = static_cast < FieldType > ( buffer . peekInt < int8_t > ( 1 ) ) ; <nl> int32_t s = buffer . peekBEInt < int32_t > ( 2 ) ; <nl> if ( s < 0 ) { <nl> - throw EnvoyException ( fmt : : format ( " negative binary protocol map size { } " , s ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " negative binary protocol map size " , s ) ) ; <nl> } <nl> <nl> buffer . drain ( 6 ) ; <nl> void BinaryProtocolImpl : : writeFieldEnd ( Buffer : : Instance & buffer ) { UNREFERENCED_ <nl> void BinaryProtocolImpl : : writeMapBegin ( Buffer : : Instance & buffer , FieldType key_type , <nl> FieldType value_type , uint32_t size ) { <nl> if ( size > static_cast < uint32_t > ( std : : numeric_limits < int32_t > : : max ( ) ) ) { <nl> - throw EnvoyException ( fmt : : format ( " illegal binary protocol map size { } " , size ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " illegal binary protocol map size " , size ) ) ; <nl> } <nl> <nl> buffer . writeByte ( static_cast < int8_t > ( key_type ) ) ; <nl> mmm a / source / extensions / filters / network / thrift_proxy / compact_protocol_impl . cc <nl> ppp b / source / extensions / filters / network / thrift_proxy / compact_protocol_impl . cc <nl> bool CompactProtocolImpl : : readMessageBegin ( Buffer : : Instance & buffer , MessageMeta <nl> } <nl> <nl> if ( name_len < 0 ) { <nl> - throw EnvoyException ( fmt : : format ( " negative compact protocol message name length { } " , name_len ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " negative compact protocol message name length " , name_len ) ) ; <nl> } <nl> <nl> if ( buffer . length ( ) < static_cast < uint64_t > ( id_size + name_len_size + name_len + 2 ) ) { <nl> bool CompactProtocolImpl : : readFieldBegin ( Buffer : : Instance & buffer , std : : string & <nl> } <nl> <nl> if ( id < 0 | | id > std : : numeric_limits < int16_t > : : max ( ) ) { <nl> - throw EnvoyException ( fmt : : format ( " invalid compact protocol field id { } " , id ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " invalid compact protocol field id " , id ) ) ; <nl> } <nl> <nl> compact_field_type = static_cast < CompactFieldType > ( delta_and_type ) ; <nl> bool CompactProtocolImpl : : readMapBegin ( Buffer : : Instance & buffer , FieldType & key_ <nl> } <nl> <nl> if ( s < 0 ) { <nl> - throw EnvoyException ( fmt : : format ( " negative compact protocol map size { } " , s ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " negative compact protocol map size " , s ) ) ; <nl> } <nl> <nl> if ( s = = 0 ) { <nl> void CompactProtocolImpl : : writeFieldEnd ( Buffer : : Instance & buffer ) { <nl> void CompactProtocolImpl : : writeMapBegin ( Buffer : : Instance & buffer , FieldType key_type , <nl> FieldType value_type , uint32_t size ) { <nl> if ( size > static_cast < uint32_t > ( std : : numeric_limits < int32_t > : : max ( ) ) ) { <nl> - throw EnvoyException ( fmt : : format ( " illegal compact protocol map size { } " , size ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " illegal compact protocol map size " , size ) ) ; <nl> } <nl> <nl> BufferHelper : : writeVarIntI32 ( buffer , static_cast < int32_t > ( size ) ) ; <nl> mmm a / source / extensions / filters / network / thrift_proxy / framed_transport_impl . cc <nl> ppp b / source / extensions / filters / network / thrift_proxy / framed_transport_impl . cc <nl> bool FramedTransportImpl : : decodeFrameStart ( Buffer : : Instance & buffer , MessageMeta <nl> int32_t thrift_size = buffer . peekBEInt < int32_t > ( ) ; <nl> <nl> if ( thrift_size < = 0 | | thrift_size > MaxFrameSize ) { <nl> - throw EnvoyException ( fmt : : format ( " invalid thrift framed transport frame size { } " , thrift_size ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " invalid thrift framed transport frame size " , thrift_size ) ) ; <nl> } <nl> <nl> buffer . drain ( 4 ) ; <nl> void FramedTransportImpl : : encodeFrame ( Buffer : : Instance & buffer , const MessageMet <nl> <nl> uint64_t size = message . length ( ) ; <nl> if ( size = = 0 | | size > MaxFrameSize ) { <nl> - throw EnvoyException ( fmt : : format ( " invalid thrift framed transport frame size { } " , size ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " invalid thrift framed transport frame size " , size ) ) ; <nl> } <nl> <nl> int32_t thrift_size = static_cast < int32_t > ( size ) ; <nl> mmm a / source / extensions / filters / network / thrift_proxy / header_transport_impl . cc <nl> ppp b / source / extensions / filters / network / thrift_proxy / header_transport_impl . cc <nl> bool HeaderTransportImpl : : decodeFrameStart ( Buffer : : Instance & buffer , MessageMeta <nl> / / Minimum header frame size is 18 bytes ( 4 bytes of frame size + 10 bytes of fixed header + <nl> / / minimum 4 bytes of variable header data ) , so frame_size must be at least 14 . <nl> if ( frame_size < MinFrameStartSize | | frame_size > MaxFrameSize ) { <nl> - throw EnvoyException ( fmt : : format ( " invalid thrift header transport frame size { } " , frame_size ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " invalid thrift header transport frame size " , frame_size ) ) ; <nl> } <nl> <nl> int16_t magic = buffer . peekBEInt < uint16_t > ( 4 ) ; <nl> bool HeaderTransportImpl : : decodeFrameStart ( Buffer : : Instance & buffer , MessageMeta <nl> <nl> int16_t num_xforms = drainVarIntI16 ( buffer , header_size , " transform count " ) ; <nl> if ( num_xforms < 0 ) { <nl> - throw EnvoyException ( fmt : : format ( " invalid header transport transform count { } " , num_xforms ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " invalid header transport transform count " , num_xforms ) ) ; <nl> } <nl> <nl> while ( num_xforms - - > 0 ) { <nl> bool HeaderTransportImpl : : decodeFrameStart ( Buffer : : Instance & buffer , MessageMeta <nl> / / 3 : snappy compression <nl> buffer . drain ( header_size ) ; <nl> metadata . setAppException ( AppExceptionType : : MissingResult , <nl> - fmt : : format ( " Unknown transform { } " , xform_id ) ) ; <nl> + absl : : StrCat ( " Unknown transform " , xform_id ) ) ; <nl> return true ; <nl> } <nl> <nl> bool HeaderTransportImpl : : decodeFrameStart ( Buffer : : Instance & buffer , MessageMeta <nl> <nl> int32_t num_headers = drainVarIntI32 ( buffer , header_size , " header count " ) ; <nl> if ( num_headers < 0 ) { <nl> - throw EnvoyException ( fmt : : format ( " invalid header transport header count { } " , num_headers ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " invalid header transport header count " , num_headers ) ) ; <nl> } <nl> <nl> while ( num_headers - - > 0 ) { <nl> void HeaderTransportImpl : : encodeFrame ( Buffer : : Instance & buffer , const MessageMet <nl> Buffer : : Instance & message ) { <nl> uint64_t msg_size = message . length ( ) ; <nl> if ( msg_size = = 0 ) { <nl> - throw EnvoyException ( fmt : : format ( " invalid thrift header transport message size { } " , msg_size ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " invalid thrift header transport message size " , msg_size ) ) ; <nl> } <nl> <nl> const Http : : HeaderMap & headers = metadata . headers ( ) ; <nl> if ( headers . size ( ) > MaxHeadersSize / 2 ) { <nl> / / Each header takes a minimum of 2 bytes , yielding this limit . <nl> throw EnvoyException ( <nl> - fmt : : format ( " invalid thrift header transport too many headers { } " , headers . size ( ) ) ) ; <nl> + absl : : StrCat ( " invalid thrift header transport too many headers " , headers . size ( ) ) ) ; <nl> } <nl> <nl> Buffer : : OwnedImpl header_buffer ; <nl> void HeaderTransportImpl : : encodeFrame ( Buffer : : Instance & buffer , const MessageMet <nl> uint64_t header_size = header_buffer . length ( ) ; <nl> <nl> / / Always pad ( as the Apache implementation does ) . <nl> - int padding = 4 - ( header_size % 4 ) ; <nl> + const int padding = 4 - ( header_size % 4 ) ; <nl> header_buffer . add ( " \ 0 \ 0 \ 0 \ 0 " , padding ) ; <nl> header_size + = padding ; <nl> <nl> if ( header_size > MaxHeadersSize ) { <nl> - throw EnvoyException ( <nl> - fmt : : format ( " invalid thrift header transport header size { } " , header_size ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " invalid thrift header transport header size " , header_size ) ) ; <nl> } <nl> <nl> / / Frame size does not include the frame length itself . <nl> uint64_t size = header_size + msg_size + MinFrameStartSizeNoHeaders ; <nl> if ( size > MaxFrameSize ) { <nl> - throw EnvoyException ( fmt : : format ( " invalid thrift header transport frame size { } " , size ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " invalid thrift header transport frame size " , size ) ) ; <nl> } <nl> <nl> int32_t seq_id = 0 ; <nl> int32_t HeaderTransportImpl : : drainVarIntI32 ( Buffer : : Instance & buffer , int32_t & h <nl> <nl> std : : string HeaderTransportImpl : : drainVarString ( Buffer : : Instance & buffer , int32_t & header_size , <nl> const char * desc ) { <nl> - int16_t str_len = drainVarIntI16 ( buffer , header_size , desc ) ; <nl> + const int16_t str_len = drainVarIntI16 ( buffer , header_size , desc ) ; <nl> if ( str_len = = 0 ) { <nl> return " " ; <nl> } <nl> std : : string HeaderTransportImpl : : drainVarString ( Buffer : : Instance & buffer , int32_ <nl> throw EnvoyException ( fmt : : format ( " unable to read header transport { } : header too small " , desc ) ) ; <nl> } <nl> <nl> - std : : string value ( static_cast < char * > ( buffer . linearize ( str_len ) ) , str_len ) ; <nl> + const std : : string value ( static_cast < char * > ( buffer . linearize ( str_len ) ) , str_len ) ; <nl> buffer . drain ( str_len ) ; <nl> header_size - = str_len ; <nl> return value ; <nl> } <nl> <nl> void HeaderTransportImpl : : writeVarString ( Buffer : : Instance & buffer , const absl : : string_view str ) { <nl> - std : : string : : size_type len = str . length ( ) ; <nl> + const std : : string : : size_type len = str . length ( ) ; <nl> if ( len > static_cast < uint32_t > ( std : : numeric_limits < int16_t > : : max ( ) ) ) { <nl> - throw EnvoyException ( fmt : : format ( " header string too long : { } " , len ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " header string too long : " , len ) ) ; <nl> } <nl> <nl> BufferHelper : : writeVarIntI32 ( buffer , static_cast < int32_t > ( len ) ) ; <nl> mmm a / source / extensions / filters / network / thrift_proxy / router / router_ratelimit_impl . cc <nl> ppp b / source / extensions / filters / network / thrift_proxy / router / router_ratelimit_impl . cc <nl> RateLimitPolicyEntryImpl : : RateLimitPolicyEntryImpl ( <nl> break ; <nl> default : <nl> throw EnvoyException ( <nl> - fmt : : format ( " unsupported RateLimit Action { } " , action . action_specifier_case ( ) ) ) ; <nl> + absl : : StrCat ( " unsupported RateLimit Action " , action . action_specifier_case ( ) ) ) ; <nl> } <nl> } <nl> } <nl> mmm a / source / extensions / filters / udp / udp_proxy / udp_proxy_filter . h <nl> ppp b / source / extensions / filters / udp / udp_proxy / udp_proxy_filter . h <nl> class UdpProxyFilterConfig { <nl> private : <nl> static UdpProxyDownstreamStats generateStats ( const std : : string & stat_prefix , <nl> Stats : : Scope & scope ) { <nl> - const auto final_prefix = fmt : : format ( " udp . { } " , stat_prefix ) ; <nl> + const auto final_prefix = absl : : StrCat ( " udp . " , stat_prefix ) ; <nl> return { ALL_UDP_PROXY_DOWNSTREAM_STATS ( POOL_COUNTER_PREFIX ( scope , final_prefix ) , <nl> POOL_GAUGE_PREFIX ( scope , final_prefix ) ) } ; <nl> } <nl> mmm a / source / extensions / stat_sinks / common / statsd / statsd . cc <nl> ppp b / source / extensions / stat_sinks / common / statsd / statsd . cc <nl> void UdpStatsdSink : : flush ( Stats : : MetricSnapshot & snapshot ) { <nl> Writer & writer = tls_ - > getTyped < Writer > ( ) ; <nl> for ( const auto & counter : snapshot . counters ( ) ) { <nl> if ( counter . counter_ . get ( ) . used ( ) ) { <nl> - writer . write ( fmt : : format ( " { } . { } : { } | c { } " , prefix_ , getName ( counter . counter_ . get ( ) ) , <nl> - counter . delta_ , buildTagStr ( counter . counter_ . get ( ) . tags ( ) ) ) ) ; <nl> + writer . write ( absl : : StrCat ( prefix_ , " . " , getName ( counter . counter_ . get ( ) ) , " : " , counter . delta_ , <nl> + " | c " , buildTagStr ( counter . counter_ . get ( ) . tags ( ) ) ) ) ; <nl> } <nl> } <nl> <nl> for ( const auto & gauge : snapshot . gauges ( ) ) { <nl> if ( gauge . get ( ) . used ( ) ) { <nl> - writer . write ( fmt : : format ( " { } . { } : { } | g { } " , prefix_ , getName ( gauge . get ( ) ) , gauge . get ( ) . value ( ) , <nl> - buildTagStr ( gauge . get ( ) . tags ( ) ) ) ) ; <nl> + writer . write ( absl : : StrCat ( prefix_ , " . " , getName ( gauge . get ( ) ) , " : " , gauge . get ( ) . value ( ) , " | g " , <nl> + buildTagStr ( gauge . get ( ) . tags ( ) ) ) ) ; <nl> } <nl> } <nl> } <nl> void UdpStatsdSink : : onHistogramComplete ( const Stats : : Histogram & histogram , uint6 <nl> / / are timers but record in units other than milliseconds , it may make sense to scale the value to <nl> / / milliseconds here and potentially suffix the names accordingly ( minus the pre - existing ones for <nl> / / backwards compatibility ) . <nl> - const std : : string message ( fmt : : format ( " { } . { } : { } | ms { } " , prefix_ , getName ( histogram ) , <nl> - std : : chrono : : milliseconds ( value ) . count ( ) , <nl> - buildTagStr ( histogram . tags ( ) ) ) ) ; <nl> + const std : : string message ( absl : : StrCat ( prefix_ , " . " , getName ( histogram ) , " : " , <nl> + std : : chrono : : milliseconds ( value ) . count ( ) , " | ms " , <nl> + buildTagStr ( histogram . tags ( ) ) ) ) ; <nl> tls_ - > getTyped < Writer > ( ) . write ( message ) ; <nl> } <nl> <nl> - const std : : string UdpStatsdSink : : getName ( const Stats : : Metric & metric ) { <nl> + const std : : string UdpStatsdSink : : getName ( const Stats : : Metric & metric ) const { <nl> if ( use_tag_ ) { <nl> return metric . tagExtractedName ( ) ; <nl> } else { <nl> const std : : string UdpStatsdSink : : getName ( const Stats : : Metric & metric ) { <nl> } <nl> } <nl> <nl> - const std : : string UdpStatsdSink : : buildTagStr ( const std : : vector < Stats : : Tag > & tags ) { <nl> + const std : : string UdpStatsdSink : : buildTagStr ( const std : : vector < Stats : : Tag > & tags ) const { <nl> if ( ! use_tag_ | | tags . empty ( ) ) { <nl> return " " ; <nl> } <nl> void TcpStatsdSink : : TlsSink : : write ( Buffer : : Instance & buffer ) { <nl> connection_ - > write ( buffer , false ) ; <nl> } <nl> <nl> - uint64_t TcpStatsdSink : : TlsSink : : usedBuffer ( ) { <nl> + uint64_t TcpStatsdSink : : TlsSink : : usedBuffer ( ) const { <nl> ASSERT ( current_slice_mem_ ! = nullptr ) ; <nl> return current_slice_mem_ - reinterpret_cast < char * > ( current_buffer_slice_ . mem_ ) ; <nl> } <nl> mmm a / source / extensions / stat_sinks / common / statsd / statsd . h <nl> ppp b / source / extensions / stat_sinks / common / statsd / statsd . h <nl> class UdpStatsdSink : public Stats : : Sink { <nl> const std : : string & getPrefix ( ) { return prefix_ ; } <nl> <nl> private : <nl> - const std : : string getName ( const Stats : : Metric & metric ) ; <nl> - const std : : string buildTagStr ( const std : : vector < Stats : : Tag > & tags ) ; <nl> + const std : : string getName ( const Stats : : Metric & metric ) const ; <nl> + const std : : string buildTagStr ( const std : : vector < Stats : : Tag > & tags ) const ; <nl> <nl> ThreadLocal : : SlotPtr tls_ ; <nl> Network : : Address : : InstanceConstSharedPtr server_address_ ; <nl> class TcpStatsdSink : public Stats : : Sink { <nl> void flushGauge ( const std : : string & name , uint64_t value ) ; <nl> void endFlush ( bool do_write ) ; <nl> void onTimespanComplete ( const std : : string & name , std : : chrono : : milliseconds ms ) ; <nl> - uint64_t usedBuffer ( ) ; <nl> + uint64_t usedBuffer ( ) const ; <nl> void write ( Buffer : : Instance & buffer ) ; <nl> <nl> / / Network : : ConnectionCallbacks <nl> mmm a / source / extensions / tracers / dynamic_ot / dynamic_opentracing_driver_impl . cc <nl> ppp b / source / extensions / tracers / dynamic_ot / dynamic_opentracing_driver_impl . cc <nl> DynamicOpenTracingDriver : : DynamicOpenTracingDriver ( Stats : : Store & stats , const st <nl> std : : string DynamicOpenTracingDriver : : formatErrorMessage ( std : : error_code error_code , <nl> const std : : string & error_message ) { <nl> if ( error_message . empty ( ) ) { <nl> - return fmt : : format ( " { } " , error_code . message ( ) ) ; <nl> + return absl : : StrCat ( " " , error_code . message ( ) ) ; <nl> } else { <nl> return fmt : : format ( " { } : { } " , error_code . message ( ) , error_message ) ; <nl> } <nl> mmm a / source / extensions / tracers / zipkin / span_context_extractor . cc <nl> ppp b / source / extensions / tracers / zipkin / span_context_extractor . cc <nl> std : : pair < SpanContext , bool > SpanContextExtractor : : extractSpanContext ( bool is_sa <nl> fmt : : format ( " Invalid traceid_high { } or tracid { } " , high_tid . c_str ( ) , low_tid . c_str ( ) ) ) ; <nl> } <nl> } else if ( ! StringUtil : : atoull ( tid . c_str ( ) , trace_id , 16 ) ) { <nl> - throw ExtractorException ( fmt : : format ( " Invalid trace_id { } " , tid . c_str ( ) ) ) ; <nl> + throw ExtractorException ( absl : : StrCat ( " Invalid trace_id " , tid . c_str ( ) ) ) ; <nl> } <nl> <nl> const std : : string spid ( b3_span_id_entry - > value ( ) . getStringView ( ) ) ; <nl> if ( ! StringUtil : : atoull ( spid . c_str ( ) , span_id , 16 ) ) { <nl> - throw ExtractorException ( fmt : : format ( " Invalid span id { } " , spid . c_str ( ) ) ) ; <nl> + throw ExtractorException ( absl : : StrCat ( " Invalid span id " , spid . c_str ( ) ) ) ; <nl> } <nl> <nl> auto b3_parent_id_entry = request_headers_ . get ( ZipkinCoreConstants : : get ( ) . X_B3_PARENT_SPAN_ID ) ; <nl> if ( b3_parent_id_entry & & ! b3_parent_id_entry - > value ( ) . empty ( ) ) { <nl> const std : : string pspid ( b3_parent_id_entry - > value ( ) . getStringView ( ) ) ; <nl> if ( ! StringUtil : : atoull ( pspid . c_str ( ) , parent_id , 16 ) ) { <nl> - throw ExtractorException ( fmt : : format ( " Invalid parent span id { } " , pspid . c_str ( ) ) ) ; <nl> + throw ExtractorException ( absl : : StrCat ( " Invalid parent span id " , pspid . c_str ( ) ) ) ; <nl> } <nl> } <nl> } else { <nl> mmm a / source / extensions / transport_sockets / tls / context_impl . cc <nl> ppp b / source / extensions / transport_sockets / tls / context_impl . cc <nl> ContextImpl : : ContextImpl ( Stats : : Scope & scope , const Envoy : : Ssl : : ContextConfig & c <nl> } <nl> <nl> if ( ! SSL_CTX_set1_curves_list ( ctx . ssl_ctx_ . get ( ) , config . ecdhCurves ( ) . c_str ( ) ) ) { <nl> - throw EnvoyException ( fmt : : format ( " Failed to initialize ECDH curves { } " , config . ecdhCurves ( ) ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " Failed to initialize ECDH curves " , config . ecdhCurves ( ) ) ) ; <nl> } <nl> } <nl> <nl> ContextImpl : : ContextImpl ( Stats : : Scope & scope , const Envoy : : Ssl : : ContextConfig & c <nl> bssl : : UniquePtr < STACK_OF ( X509_INFO ) > list ( <nl> PEM_X509_INFO_read_bio ( bio . get ( ) , nullptr , nullptr , nullptr ) ) ; <nl> if ( list = = nullptr ) { <nl> - throw EnvoyException ( fmt : : format ( " Failed to load trusted CA certificates from { } " , <nl> - config . certificateValidationContext ( ) - > caCertPath ( ) ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " Failed to load trusted CA certificates from " , <nl> + config . certificateValidationContext ( ) - > caCertPath ( ) ) ) ; <nl> } <nl> <nl> for ( auto & ctx : tls_contexts_ ) { <nl> ContextImpl : : ContextImpl ( Stats : : Scope & scope , const Envoy : : Ssl : : ContextConfig & c <nl> } <nl> } <nl> if ( ca_cert_ = = nullptr ) { <nl> - throw EnvoyException ( fmt : : format ( " Failed to load trusted CA certificates from { } " , <nl> - config . certificateValidationContext ( ) - > caCertPath ( ) ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " Failed to load trusted CA certificates from " , <nl> + config . certificateValidationContext ( ) - > caCertPath ( ) ) ) ; <nl> } <nl> if ( has_crl ) { <nl> X509_STORE_set_flags ( store , X509_V_FLAG_CRL_CHECK | X509_V_FLAG_CRL_CHECK_ALL ) ; <nl> ContextImpl : : ContextImpl ( Stats : : Scope & scope , const Envoy : : Ssl : : ContextConfig & c <nl> PEM_X509_INFO_read_bio ( bio . get ( ) , nullptr , nullptr , nullptr ) ) ; <nl> if ( list = = nullptr ) { <nl> throw EnvoyException ( <nl> - fmt : : format ( " Failed to load CRL from { } " , <nl> - config . certificateValidationContext ( ) - > certificateRevocationListPath ( ) ) ) ; <nl> + absl : : StrCat ( " Failed to load CRL from " , <nl> + config . certificateValidationContext ( ) - > certificateRevocationListPath ( ) ) ) ; <nl> } <nl> <nl> for ( auto & ctx : tls_contexts_ ) { <nl> ContextImpl : : ContextImpl ( Stats : : Scope & scope , const Envoy : : Ssl : : ContextConfig & c <nl> } <nl> const auto & decoded = Hex : : decode ( hash ) ; <nl> if ( decoded . size ( ) ! = SHA256_DIGEST_LENGTH ) { <nl> - throw EnvoyException ( fmt : : format ( " Invalid hex - encoded SHA - 256 { } " , hash ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " Invalid hex - encoded SHA - 256 " , hash ) ) ; <nl> } <nl> verify_certificate_hash_list_ . push_back ( decoded ) ; <nl> } <nl> ContextImpl : : ContextImpl ( Stats : : Scope & scope , const Envoy : : Ssl : : ContextConfig & c <nl> for ( const auto & hash : cert_validation_config - > verifyCertificateSpkiList ( ) ) { <nl> const auto decoded = Base64 : : decode ( hash ) ; <nl> if ( decoded . size ( ) ! = SHA256_DIGEST_LENGTH ) { <nl> - throw EnvoyException ( fmt : : format ( " Invalid base64 - encoded SHA - 256 { } " , hash ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " Invalid base64 - encoded SHA - 256 " , hash ) ) ; <nl> } <nl> verify_certificate_spki_list_ . emplace_back ( decoded . begin ( ) , decoded . end ( ) ) ; <nl> } <nl> ContextImpl : : ContextImpl ( Stats : : Scope & scope , const Envoy : : Ssl : : ContextConfig & c <nl> ERR_reason_error_string ( err ) ) ; <nl> } <nl> throw EnvoyException ( <nl> - fmt : : format ( " Failed to load certificate chain from { } " , ctx . cert_chain_file_path_ ) ) ; <nl> + absl : : StrCat ( " Failed to load certificate chain from " , ctx . cert_chain_file_path_ ) ) ; <nl> } <nl> / / Read rest of the certificate chain . <nl> while ( true ) { <nl> ContextImpl : : ContextImpl ( Stats : : Scope & scope , const Envoy : : Ssl : : ContextConfig & c <nl> } <nl> if ( ! SSL_CTX_add_extra_chain_cert ( ctx . ssl_ctx_ . get ( ) , cert . get ( ) ) ) { <nl> throw EnvoyException ( <nl> - fmt : : format ( " Failed to load certificate chain from { } " , ctx . cert_chain_file_path_ ) ) ; <nl> + absl : : StrCat ( " Failed to load certificate chain from " , ctx . cert_chain_file_path_ ) ) ; <nl> } <nl> / / SSL_CTX_add_extra_chain_cert ( ) takes ownership . <nl> cert . release ( ) ; <nl> } <nl> / / Check for EOF . <nl> - uint32_t err = ERR_peek_last_error ( ) ; <nl> + const uint32_t err = ERR_peek_last_error ( ) ; <nl> if ( ERR_GET_LIB ( err ) = = ERR_LIB_PEM & & ERR_GET_REASON ( err ) = = PEM_R_NO_START_LINE ) { <nl> ERR_clear_error ( ) ; <nl> } else { <nl> throw EnvoyException ( <nl> - fmt : : format ( " Failed to load certificate chain from { } " , ctx . cert_chain_file_path_ ) ) ; <nl> + absl : : StrCat ( " Failed to load certificate chain from " , ctx . cert_chain_file_path_ ) ) ; <nl> } <nl> <nl> bssl : : UniquePtr < EVP_PKEY > public_key ( X509_get_pubkey ( ctx . cert_chain_ . get ( ) ) ) ; <nl> ContextImpl : : ContextImpl ( Stats : : Scope & scope , const Envoy : : Ssl : : ContextConfig & c <nl> : nullptr ) ) ; <nl> if ( pkey = = nullptr | | ! SSL_CTX_use_PrivateKey ( ctx . ssl_ctx_ . get ( ) , pkey . get ( ) ) ) { <nl> throw EnvoyException ( <nl> - fmt : : format ( " Failed to load private key from { } " , tls_certificate . privateKeyPath ( ) ) ) ; <nl> + absl : : StrCat ( " Failed to load private key from " , tls_certificate . privateKeyPath ( ) ) ) ; <nl> } <nl> <nl> # ifdef BORINGSSL_FIPS <nl> void ContextImpl : : logHandshake ( SSL * ssl ) const { <nl> incCounter ( ssl_ciphers_ , SSL_get_cipher_name ( ssl ) , unknown_ssl_cipher_ ) ; <nl> incCounter ( ssl_versions_ , SSL_get_version ( ssl ) , unknown_ssl_version_ ) ; <nl> <nl> - uint16_t curve_id = SSL_get_curve_id ( ssl ) ; <nl> + const uint16_t curve_id = SSL_get_curve_id ( ssl ) ; <nl> if ( curve_id ) { <nl> incCounter ( ssl_curves_ , SSL_get_curve_name ( curve_id ) , unknown_ssl_curve_ ) ; <nl> } <nl> <nl> - uint16_t sigalg_id = SSL_get_peer_signature_algorithm ( ssl ) ; <nl> + const uint16_t sigalg_id = SSL_get_peer_signature_algorithm ( ssl ) ; <nl> if ( sigalg_id ) { <nl> const char * sigalg = SSL_get_signature_algorithm_name ( sigalg_id , 1 / * include curve * / ) ; <nl> incCounter ( ssl_sigalgs_ , sigalg , unknown_ssl_algorithm_ ) ; <nl> bool ContextImpl : : dnsNameMatch ( const std : : string & dns_name , const char * pattern ) <nl> size_t pattern_len = strlen ( pattern ) ; <nl> if ( pattern_len > 1 & & pattern [ 0 ] = = ' * ' & & pattern [ 1 ] = = ' . ' ) { <nl> if ( dns_name . length ( ) > pattern_len - 1 ) { <nl> - size_t off = dns_name . length ( ) - pattern_len + 1 ; <nl> + const size_t off = dns_name . length ( ) - pattern_len + 1 ; <nl> return dns_name . compare ( off , pattern_len - 1 , pattern + 1 ) = = 0 ; <nl> } <nl> } <nl> ClientContextImpl : : ClientContextImpl ( Stats : : Scope & scope , <nl> ASSERT ( tls_contexts_ . size ( ) = = 1 ) ; <nl> if ( ! parsed_alpn_protocols_ . empty ( ) ) { <nl> for ( auto & ctx : tls_contexts_ ) { <nl> - int rc = SSL_CTX_set_alpn_protos ( ctx . ssl_ctx_ . get ( ) , & parsed_alpn_protocols_ [ 0 ] , <nl> - parsed_alpn_protocols_ . size ( ) ) ; <nl> + const int rc = SSL_CTX_set_alpn_protos ( ctx . ssl_ctx_ . get ( ) , & parsed_alpn_protocols_ [ 0 ] , <nl> + parsed_alpn_protocols_ . size ( ) ) ; <nl> RELEASE_ASSERT ( rc = = 0 , Utility : : getLastCryptoError ( ) . value_or ( " " ) ) ; <nl> } <nl> } <nl> ClientContextImpl : : ClientContextImpl ( Stats : : Scope & scope , <nl> config . signingAlgorithmsForTest ( ) ) ) ; <nl> <nl> for ( auto & ctx : tls_contexts_ ) { <nl> - int rc = SSL_CTX_set_verify_algorithm_prefs ( ctx . ssl_ctx_ . get ( ) , & sigalgs , 1 ) ; <nl> + const int rc = SSL_CTX_set_verify_algorithm_prefs ( ctx . ssl_ctx_ . get ( ) , & sigalgs , 1 ) ; <nl> RELEASE_ASSERT ( rc = = 1 , Utility : : getLastCryptoError ( ) . value_or ( " " ) ) ; <nl> } <nl> } <nl> bssl : : UniquePtr < SSL > ClientContextImpl : : newSsl ( const Network : : TransportSocketOpt <nl> : server_name_indication_ ; <nl> <nl> if ( ! server_name_indication . empty ( ) ) { <nl> - int rc = SSL_set_tlsext_host_name ( ssl_con . get ( ) , server_name_indication . c_str ( ) ) ; <nl> + const int rc = SSL_set_tlsext_host_name ( ssl_con . get ( ) , server_name_indication . c_str ( ) ) ; <nl> RELEASE_ASSERT ( rc , Utility : : getLastCryptoError ( ) . value_or ( " " ) ) ; <nl> } <nl> <nl> bssl : : UniquePtr < SSL > ClientContextImpl : : newSsl ( const Network : : TransportSocketOpt <nl> std : : vector < uint8_t > parsed_override_alpn = <nl> parseAlpnProtocols ( absl : : StrJoin ( options - > applicationProtocolListOverride ( ) , " , " ) ) ; <nl> if ( ! parsed_override_alpn . empty ( ) ) { <nl> - int rc = SSL_set_alpn_protos ( ssl_con . get ( ) , parsed_override_alpn . data ( ) , <nl> - parsed_override_alpn . size ( ) ) ; <nl> + const int rc = SSL_set_alpn_protos ( ssl_con . get ( ) , parsed_override_alpn . data ( ) , <nl> + parsed_override_alpn . size ( ) ) ; <nl> RELEASE_ASSERT ( rc = = 0 , Utility : : getLastCryptoError ( ) . value_or ( " " ) ) ; <nl> } <nl> } <nl> void ServerContextImpl : : generateHashForSessionContexId ( const std : : vector < std : : st <nl> RELEASE_ASSERT ( cert ! = nullptr , " TLS context should have an active certificate " ) ; <nl> X509_NAME * cert_subject = X509_get_subject_name ( cert ) ; <nl> RELEASE_ASSERT ( cert_subject ! = nullptr , " TLS certificate should have a subject " ) ; <nl> - int cn_index = X509_NAME_get_index_by_NID ( cert_subject , NID_commonName , - 1 ) ; <nl> + const int cn_index = X509_NAME_get_index_by_NID ( cert_subject , NID_commonName , - 1 ) ; <nl> / / It ' s possible that the certificate doesn ' t have CommonName , but has SANs . <nl> if ( cn_index > = 0 ) { <nl> X509_NAME_ENTRY * cn_entry = X509_NAME_get_entry ( cert_subject , cn_index ) ; <nl> int ServerContextImpl : : sessionTicketProcess ( SSL * , uint8_t * key_name , uint8_t * iv <nl> " Expected key . name length " ) ; <nl> std : : copy_n ( key . name_ . begin ( ) , SSL_TICKET_KEY_NAME_LEN , key_name ) ; <nl> <nl> - int rc = RAND_bytes ( iv , EVP_CIPHER_iv_length ( cipher ) ) ; <nl> + const int rc = RAND_bytes ( iv , EVP_CIPHER_iv_length ( cipher ) ) ; <nl> ASSERT ( rc ) ; <nl> <nl> / / This RELEASE_ASSERT is logically a static_assert , but we can ' t actually get <nl> void ServerContextImpl : : TlsContext : : addClientValidationContext ( <nl> } <nl> X509_NAME * name = X509_get_subject_name ( cert . get ( ) ) ; <nl> if ( name = = nullptr ) { <nl> - throw EnvoyException ( fmt : : format ( " Failed to load trusted client CA certificates from { } " , <nl> - config . caCertPath ( ) ) ) ; <nl> + throw EnvoyException ( <nl> + absl : : StrCat ( " Failed to load trusted client CA certificates from " , config . caCertPath ( ) ) ) ; <nl> } <nl> / / Check for duplicates . <nl> if ( sk_X509_NAME_find ( list . get ( ) , nullptr , name ) ) { <nl> void ServerContextImpl : : TlsContext : : addClientValidationContext ( <nl> } <nl> bssl : : UniquePtr < X509_NAME > name_dup ( X509_NAME_dup ( name ) ) ; <nl> if ( name_dup = = nullptr | | ! sk_X509_NAME_push ( list . get ( ) , name_dup . release ( ) ) ) { <nl> - throw EnvoyException ( fmt : : format ( " Failed to load trusted client CA certificates from { } " , <nl> - config . caCertPath ( ) ) ) ; <nl> + throw EnvoyException ( <nl> + absl : : StrCat ( " Failed to load trusted client CA certificates from " , config . caCertPath ( ) ) ) ; <nl> } <nl> } <nl> / / Check for EOF . <nl> - uint32_t err = ERR_peek_last_error ( ) ; <nl> + const uint32_t err = ERR_peek_last_error ( ) ; <nl> if ( ERR_GET_LIB ( err ) = = ERR_LIB_PEM & & ERR_GET_REASON ( err ) = = PEM_R_NO_START_LINE ) { <nl> ERR_clear_error ( ) ; <nl> } else { <nl> throw EnvoyException ( <nl> - fmt : : format ( " Failed to load trusted client CA certificates from { } " , config . caCertPath ( ) ) ) ; <nl> + absl : : StrCat ( " Failed to load trusted client CA certificates from " , config . caCertPath ( ) ) ) ; <nl> } <nl> SSL_CTX_set_client_CA_list ( ssl_ctx_ . get ( ) , list . release ( ) ) ; <nl> <nl> mmm a / source / server / configuration_impl . h <nl> ppp b / source / server / configuration_impl . h <nl> class InitialImpl : public Initial { <nl> <nl> / / Server : : Configuration : : Initial <nl> Admin & admin ( ) override { return admin_ ; } <nl> - absl : : optional < std : : string > flagsPath ( ) override { return flags_path_ ; } <nl> + absl : : optional < std : : string > flagsPath ( ) const override { return flags_path_ ; } <nl> const envoy : : config : : bootstrap : : v3alpha : : LayeredRuntime & runtime ( ) override { <nl> return layered_runtime_ ; <nl> } <nl> class InitialImpl : public Initial { <nl> private : <nl> struct AdminImpl : public Admin { <nl> / / Server : : Configuration : : Initial : : Admin <nl> - const std : : string & accessLogPath ( ) override { return access_log_path_ ; } <nl> - const std : : string & profilePath ( ) override { return profile_path_ ; } <nl> + const std : : string & accessLogPath ( ) const override { return access_log_path_ ; } <nl> + const std : : string & profilePath ( ) const override { return profile_path_ ; } <nl> Network : : Address : : InstanceConstSharedPtr address ( ) override { return address_ ; } <nl> Network : : Socket : : OptionsSharedPtr socketOptions ( ) override { return socket_options_ ; } <nl> <nl> mmm a / source / server / connection_handler_impl . h <nl> ppp b / source / server / connection_handler_impl . h <nl> class ConnectionHandlerImpl : public Network : : ConnectionHandler , <nl> ConnectionHandlerImpl ( Event : : Dispatcher & dispatcher , const std : : string & per_handler_stat_prefix ) ; <nl> <nl> / / Network : : ConnectionHandler <nl> - uint64_t numConnections ( ) override { return num_handler_connections_ ; } <nl> + uint64_t numConnections ( ) const override { return num_handler_connections_ ; } <nl> void incNumConnections ( ) override ; <nl> void decNumConnections ( ) override ; <nl> void addListener ( Network : : ListenerConfig & config ) override ; <nl> class ConnectionHandlerImpl : public Network : : ConnectionHandler , <nl> void stopListeners ( ) override ; <nl> void disableListeners ( ) override ; <nl> void enableListeners ( ) override ; <nl> - const std : : string & statPrefix ( ) override { return per_handler_stat_prefix_ ; } <nl> + const std : : string & statPrefix ( ) const override { return per_handler_stat_prefix_ ; } <nl> <nl> / * * <nl> * Wrapper for an active listener owned by this handler . <nl> mmm a / source / server / http / admin . cc <nl> ppp b / source / server / http / admin . cc <nl> std : : string PrometheusStatsFormatter : : sanitizeName ( const std : : string & name ) { <nl> / / prometheus . Refer to https : / / prometheus . io / docs / concepts / data_model / . <nl> std : : string stats_name = std : : regex_replace ( name , PromRegex , " _ " ) ; <nl> if ( stats_name [ 0 ] > = ' 0 ' & & stats_name [ 0 ] < = ' 9 ' ) { <nl> - return fmt : : format ( " _ { } " , stats_name ) ; <nl> + return absl : : StrCat ( " _ " , stats_name ) ; <nl> } else { <nl> return stats_name ; <nl> } <nl> mmm a / source / server / http / admin . h <nl> ppp b / source / server / http / admin . h <nl> class AdminImpl : public Admin , <nl> const Buffer : : Instance & data , <nl> Http : : ServerConnectionCallbacks & callbacks ) override ; <nl> Http : : DateProvider & dateProvider ( ) override { return date_provider_ ; } <nl> - std : : chrono : : milliseconds drainTimeout ( ) override { return std : : chrono : : milliseconds ( 100 ) ; } <nl> + std : : chrono : : milliseconds drainTimeout ( ) const override { return std : : chrono : : milliseconds ( 100 ) ; } <nl> Http : : FilterChainFactory & filterFactory ( ) override { return * this ; } <nl> - bool generateRequestId ( ) override { return false ; } <nl> + bool generateRequestId ( ) const override { return false ; } <nl> bool preserveExternalRequestId ( ) const override { return false ; } <nl> absl : : optional < std : : chrono : : milliseconds > idleTimeout ( ) const override { return idle_timeout_ ; } <nl> bool isRoutable ( ) const override { return false ; } <nl> class AdminImpl : public Admin , <nl> Config : : ConfigProvider * scopedRouteConfigProvider ( ) override { <nl> return & scoped_route_config_provider_ ; <nl> } <nl> - const std : : string & serverName ( ) override { return Http : : DefaultServerString : : get ( ) ; } <nl> - HttpConnectionManagerProto : : ServerHeaderTransformation serverHeaderTransformation ( ) override { <nl> + const std : : string & serverName ( ) const override { return Http : : DefaultServerString : : get ( ) ; } <nl> + HttpConnectionManagerProto : : ServerHeaderTransformation <nl> + serverHeaderTransformation ( ) const override { <nl> return HttpConnectionManagerProto : : OVERWRITE ; <nl> } <nl> Http : : ConnectionManagerStats & stats ( ) override { return stats_ ; } <nl> Http : : ConnectionManagerTracingStats & tracingStats ( ) override { return tracing_stats_ ; } <nl> - bool useRemoteAddress ( ) override { return true ; } <nl> + bool useRemoteAddress ( ) const override { return true ; } <nl> const Http : : InternalAddressConfig & internalAddressConfig ( ) const override { <nl> return internal_address_config_ ; <nl> } <nl> uint32_t xffNumTrustedHops ( ) const override { return 0 ; } <nl> bool skipXffAppend ( ) const override { return false ; } <nl> const std : : string & via ( ) const override { return EMPTY_STRING ; } <nl> - Http : : ForwardClientCertType forwardClientCert ( ) override { <nl> + Http : : ForwardClientCertType forwardClientCert ( ) const override { <nl> return Http : : ForwardClientCertType : : Sanitize ; <nl> } <nl> const std : : vector < Http : : ClientCertDetailsType > & setCurrentClientCertDetails ( ) const override { <nl> mmm a / source / server / listener_manager_impl . cc <nl> ppp b / source / server / listener_manager_impl . cc <nl> ListenerManagerImpl : : ListenerManagerImpl ( Instance & server , <nl> enable_dispatcher_stats_ ( enable_dispatcher_stats ) { <nl> for ( uint32_t i = 0 ; i < server . options ( ) . concurrency ( ) ; i + + ) { <nl> workers_ . emplace_back ( <nl> - worker_factory . createWorker ( server . overloadManager ( ) , fmt : : format ( " worker_ { } " , i ) ) ) ; <nl> + worker_factory . createWorker ( server . overloadManager ( ) , absl : : StrCat ( " worker_ " , i ) ) ) ; <nl> } <nl> } <nl> <nl> void ListenerManagerImpl : : onListenerWarmed ( ListenerImpl & listener ) { <nl> updateWarmingActiveGauges ( ) ; <nl> } <nl> <nl> - uint64_t ListenerManagerImpl : : numConnections ( ) { <nl> + uint64_t ListenerManagerImpl : : numConnections ( ) const { <nl> uint64_t num_connections = 0 ; <nl> for ( const auto & worker : workers_ ) { <nl> num_connections + = worker - > numConnections ( ) ; <nl> mmm a / source / server / listener_manager_impl . h <nl> ppp b / source / server / listener_manager_impl . h <nl> class ListenerManagerImpl : public ListenerManager , Logger : : Loggable < Logger : : Id : <nl> lds_api_ = factory_ . createLdsApi ( lds_config ) ; <nl> } <nl> std : : vector < std : : reference_wrapper < Network : : ListenerConfig > > listeners ( ) override ; <nl> - uint64_t numConnections ( ) override ; <nl> + uint64_t numConnections ( ) const override ; <nl> bool removeListener ( const std : : string & listener_name ) override ; <nl> void startWorkers ( GuardDog & guard_dog ) override ; <nl> void stopListeners ( StopListenersType stop_listeners_type ) override ; <nl> mmm a / source / server / overload_manager_impl . cc <nl> ppp b / source / server / overload_manager_impl . cc <nl> OverloadAction : : OverloadAction ( const envoy : : config : : overload : : v3alpha : : OverloadA <nl> <nl> if ( ! triggers_ . insert ( std : : make_pair ( trigger_config . name ( ) , std : : move ( trigger ) ) ) . second ) { <nl> throw EnvoyException ( <nl> - fmt : : format ( " Duplicate trigger resource for overload action { } " , config . name ( ) ) ) ; <nl> + absl : : StrCat ( " Duplicate trigger resource for overload action " , config . name ( ) ) ) ; <nl> } <nl> } <nl> <nl> OverloadManagerImpl : : OverloadManagerImpl ( <nl> resources_ . emplace ( std : : piecewise_construct , std : : forward_as_tuple ( name ) , <nl> std : : forward_as_tuple ( name , std : : move ( monitor ) , * this , stats_scope ) ) ; <nl> if ( ! result . second ) { <nl> - throw EnvoyException ( fmt : : format ( " Duplicate resource monitor { } " , name ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " Duplicate resource monitor " , name ) ) ; <nl> } <nl> } <nl> <nl> OverloadManagerImpl : : OverloadManagerImpl ( <nl> auto result = actions_ . emplace ( std : : piecewise_construct , std : : forward_as_tuple ( name ) , <nl> std : : forward_as_tuple ( action , stats_scope ) ) ; <nl> if ( ! result . second ) { <nl> - throw EnvoyException ( fmt : : format ( " Duplicate overload action { } " , name ) ) ; <nl> + throw EnvoyException ( absl : : StrCat ( " Duplicate overload action " , name ) ) ; <nl> } <nl> <nl> for ( const auto & trigger : action . triggers ( ) ) { <nl> mmm a / source / server / proto_descriptors . cc <nl> ppp b / source / server / proto_descriptors . cc <nl> <nl> # include " common / config / protobuf_link_hacks . h " <nl> # include " common / protobuf / protobuf . h " <nl> <nl> + # include " absl / strings / str_cat . h " <nl> + <nl> namespace Envoy { <nl> namespace Server { <nl> <nl> void validateProtoDescriptors ( ) { <nl> <nl> for ( const auto & method : methods ) { <nl> RELEASE_ASSERT ( Protobuf : : DescriptorPool : : generated_pool ( ) - > FindMethodByName ( method ) ! = nullptr , <nl> - fmt : : format ( " Unable to find method descriptor for { } " , method ) ) ; <nl> + absl : : StrCat ( " Unable to find method descriptor for " , method ) ) ; <nl> } <nl> <nl> const auto types = { <nl> mmm a / source / server / worker_impl . cc <nl> ppp b / source / server / worker_impl . cc <nl> void WorkerImpl : : addListener ( Network : : ListenerConfig & listener , AddListenerCompl <nl> } ) ; <nl> } <nl> <nl> - uint64_t WorkerImpl : : numConnections ( ) { <nl> + uint64_t WorkerImpl : : numConnections ( ) const { <nl> uint64_t ret = 0 ; <nl> if ( handler_ ) { <nl> ret = handler_ - > numConnections ( ) ; <nl> mmm a / source / server / worker_impl . h <nl> ppp b / source / server / worker_impl . h <nl> class WorkerImpl : public Worker , Logger : : Loggable < Logger : : Id : : main > { <nl> <nl> / / Server : : Worker <nl> void addListener ( Network : : ListenerConfig & listener , AddListenerCompletion completion ) override ; <nl> - uint64_t numConnections ( ) override ; <nl> + uint64_t numConnections ( ) const override ; <nl> void removeListener ( Network : : ListenerConfig & listener , std : : function < void ( ) > completion ) override ; <nl> void start ( GuardDog & guard_dog ) override ; <nl> void initializeStats ( Stats : : Scope & scope , const std : : string & prefix ) override ; <nl> mmm a / test / common / http / conn_manager_impl_fuzz_test . cc <nl> ppp b / test / common / http / conn_manager_impl_fuzz_test . cc <nl> class FuzzConfig : public ConnectionManagerConfig { <nl> return ServerConnectionPtr { codec_ } ; <nl> } <nl> DateProvider & dateProvider ( ) override { return date_provider_ ; } <nl> - std : : chrono : : milliseconds drainTimeout ( ) override { return std : : chrono : : milliseconds ( 100 ) ; } <nl> + std : : chrono : : milliseconds drainTimeout ( ) const override { return std : : chrono : : milliseconds ( 100 ) ; } <nl> FilterChainFactory & filterFactory ( ) override { return filter_factory_ ; } <nl> - bool generateRequestId ( ) override { return true ; } <nl> + bool generateRequestId ( ) const override { return true ; } <nl> bool preserveExternalRequestId ( ) const override { return false ; } <nl> uint32_t maxRequestHeadersKb ( ) const override { return max_request_headers_kb_ ; } <nl> uint32_t maxRequestHeadersCount ( ) const override { return max_request_headers_count_ ; } <nl> class FuzzConfig : public ConnectionManagerConfig { <nl> } <nl> return nullptr ; <nl> } <nl> - const std : : string & serverName ( ) override { return server_name_ ; } <nl> - HttpConnectionManagerProto : : ServerHeaderTransformation serverHeaderTransformation ( ) override { <nl> + const std : : string & serverName ( ) const override { return server_name_ ; } <nl> + HttpConnectionManagerProto : : ServerHeaderTransformation <nl> + serverHeaderTransformation ( ) const override { <nl> return server_transformation_ ; <nl> } <nl> ConnectionManagerStats & stats ( ) override { return stats_ ; } <nl> ConnectionManagerTracingStats & tracingStats ( ) override { return tracing_stats_ ; } <nl> - bool useRemoteAddress ( ) override { return use_remote_address_ ; } <nl> + bool useRemoteAddress ( ) const override { return use_remote_address_ ; } <nl> const Http : : InternalAddressConfig & internalAddressConfig ( ) const override { <nl> return internal_address_config_ ; <nl> } <nl> uint32_t xffNumTrustedHops ( ) const override { return 0 ; } <nl> bool skipXffAppend ( ) const override { return false ; } <nl> const std : : string & via ( ) const override { return EMPTY_STRING ; } <nl> - Http : : ForwardClientCertType forwardClientCert ( ) override { return forward_client_cert_ ; } <nl> + Http : : ForwardClientCertType forwardClientCert ( ) const override { return forward_client_cert_ ; } <nl> const std : : vector < Http : : ClientCertDetailsType > & setCurrentClientCertDetails ( ) const override { <nl> return set_current_client_cert_details_ ; <nl> } <nl> mmm a / test / common / http / conn_manager_impl_test . cc <nl> ppp b / test / common / http / conn_manager_impl_test . cc <nl> class HttpConnectionManagerImplTest : public testing : : Test , public ConnectionMan <nl> return ServerConnectionPtr { codec_ } ; <nl> } <nl> DateProvider & dateProvider ( ) override { return date_provider_ ; } <nl> - std : : chrono : : milliseconds drainTimeout ( ) override { return std : : chrono : : milliseconds ( 100 ) ; } <nl> + std : : chrono : : milliseconds drainTimeout ( ) const override { return std : : chrono : : milliseconds ( 100 ) ; } <nl> FilterChainFactory & filterFactory ( ) override { return filter_factory_ ; } <nl> - bool generateRequestId ( ) override { return true ; } <nl> + bool generateRequestId ( ) const override { return true ; } <nl> bool preserveExternalRequestId ( ) const override { return false ; } <nl> uint32_t maxRequestHeadersKb ( ) const override { return max_request_headers_kb_ ; } <nl> uint32_t maxRequestHeadersCount ( ) const override { return max_request_headers_count_ ; } <nl> class HttpConnectionManagerImplTest : public testing : : Test , public ConnectionMan <nl> } <nl> return nullptr ; <nl> } <nl> - const std : : string & serverName ( ) override { return server_name_ ; } <nl> - HttpConnectionManagerProto : : ServerHeaderTransformation serverHeaderTransformation ( ) override { <nl> + const std : : string & serverName ( ) const override { return server_name_ ; } <nl> + HttpConnectionManagerProto : : ServerHeaderTransformation <nl> + serverHeaderTransformation ( ) const override { <nl> return server_transformation_ ; <nl> } <nl> ConnectionManagerStats & stats ( ) override { return stats_ ; } <nl> ConnectionManagerTracingStats & tracingStats ( ) override { return tracing_stats_ ; } <nl> - bool useRemoteAddress ( ) override { return use_remote_address_ ; } <nl> + bool useRemoteAddress ( ) const override { return use_remote_address_ ; } <nl> const Http : : InternalAddressConfig & internalAddressConfig ( ) const override { <nl> return internal_address_config_ ; <nl> } <nl> uint32_t xffNumTrustedHops ( ) const override { return 0 ; } <nl> bool skipXffAppend ( ) const override { return false ; } <nl> const std : : string & via ( ) const override { return EMPTY_STRING ; } <nl> - Http : : ForwardClientCertType forwardClientCert ( ) override { return forward_client_cert_ ; } <nl> + Http : : ForwardClientCertType forwardClientCert ( ) const override { return forward_client_cert_ ; } <nl> const std : : vector < Http : : ClientCertDetailsType > & setCurrentClientCertDetails ( ) const override { <nl> return set_current_client_cert_details_ ; <nl> } <nl> mmm a / test / common / http / conn_manager_utility_test . cc <nl> ppp b / test / common / http / conn_manager_utility_test . cc <nl> class MockConnectionManagerConfig : public ConnectionManagerConfig { <nl> MOCK_METHOD3 ( createCodec_ , ServerConnection * ( Network : : Connection & , const Buffer : : Instance & , <nl> ServerConnectionCallbacks & ) ) ; <nl> MOCK_METHOD0 ( dateProvider , DateProvider & ( ) ) ; <nl> - MOCK_METHOD0 ( drainTimeout , std : : chrono : : milliseconds ( ) ) ; <nl> + MOCK_CONST_METHOD0 ( drainTimeout , std : : chrono : : milliseconds ( ) ) ; <nl> MOCK_METHOD0 ( filterFactory , FilterChainFactory & ( ) ) ; <nl> - MOCK_METHOD0 ( generateRequestId , bool ( ) ) ; <nl> + MOCK_CONST_METHOD0 ( generateRequestId , bool ( ) ) ; <nl> MOCK_CONST_METHOD0 ( preserveExternalRequestId , bool ( ) ) ; <nl> MOCK_CONST_METHOD0 ( maxRequestHeadersKb , uint32_t ( ) ) ; <nl> MOCK_CONST_METHOD0 ( maxRequestHeadersCount , uint32_t ( ) ) ; <nl> class MockConnectionManagerConfig : public ConnectionManagerConfig { <nl> MOCK_CONST_METHOD0 ( delayedCloseTimeout , std : : chrono : : milliseconds ( ) ) ; <nl> MOCK_METHOD0 ( routeConfigProvider , Router : : RouteConfigProvider * ( ) ) ; <nl> MOCK_METHOD0 ( scopedRouteConfigProvider , Config : : ConfigProvider * ( ) ) ; <nl> - MOCK_METHOD0 ( serverName , const std : : string & ( ) ) ; <nl> - MOCK_METHOD0 ( serverHeaderTransformation , <nl> - HttpConnectionManagerProto : : ServerHeaderTransformation ( ) ) ; <nl> + MOCK_CONST_METHOD0 ( serverName , const std : : string & ( ) ) ; <nl> + MOCK_CONST_METHOD0 ( serverHeaderTransformation , <nl> + HttpConnectionManagerProto : : ServerHeaderTransformation ( ) ) ; <nl> MOCK_METHOD0 ( stats , ConnectionManagerStats & ( ) ) ; <nl> MOCK_METHOD0 ( tracingStats , ConnectionManagerTracingStats & ( ) ) ; <nl> - MOCK_METHOD0 ( useRemoteAddress , bool ( ) ) ; <nl> + MOCK_CONST_METHOD0 ( useRemoteAddress , bool ( ) ) ; <nl> const Http : : InternalAddressConfig & internalAddressConfig ( ) const override { <nl> return * internal_address_config_ ; <nl> } <nl> class MockConnectionManagerConfig : public ConnectionManagerConfig { <nl> MOCK_CONST_METHOD0 ( xffNumTrustedHops , uint32_t ( ) ) ; <nl> MOCK_CONST_METHOD0 ( skipXffAppend , bool ( ) ) ; <nl> MOCK_CONST_METHOD0 ( via , const std : : string & ( ) ) ; <nl> - MOCK_METHOD0 ( forwardClientCert , Http : : ForwardClientCertType ( ) ) ; <nl> + MOCK_CONST_METHOD0 ( forwardClientCert , Http : : ForwardClientCertType ( ) ) ; <nl> MOCK_CONST_METHOD0 ( setCurrentClientCertDetails , <nl> const std : : vector < Http : : ClientCertDetailsType > & ( ) ) ; <nl> MOCK_METHOD0 ( localAddress , const Network : : Address : : Instance & ( ) ) ; <nl> mmm a / test / common / http / http2 / codec_impl_test . cc <nl> ppp b / test / common / http / http2 / codec_impl_test . cc <nl> TEST_P ( Http2CodecImplTest , ManyLargeRequestHeadersUnderPerHeaderLimit ) { <nl> HttpTestUtility : : addDefaultHeaders ( request_headers ) ; <nl> std : : string long_string = std : : string ( 1024 , ' q ' ) ; <nl> for ( int i = 0 ; i < 80 ; i + + ) { <nl> - request_headers . addCopy ( fmt : : format ( " { } " , i ) , long_string ) ; <nl> + request_headers . addCopy ( std : : to_string ( i ) , long_string ) ; <nl> } <nl> <nl> EXPECT_CALL ( request_decoder_ , decodeHeaders_ ( _ , _ ) ) . Times ( 1 ) ; <nl> TEST_P ( Http2CodecImplTest , LargeRequestHeadersAtMaxConfigurable ) { <nl> HttpTestUtility : : addDefaultHeaders ( request_headers ) ; <nl> std : : string long_string = std : : string ( 1024 , ' q ' ) ; <nl> for ( int i = 0 ; i < 95 ; i + + ) { <nl> - request_headers . addCopy ( fmt : : format ( " { } " , i ) , long_string ) ; <nl> + request_headers . addCopy ( std : : to_string ( i ) , long_string ) ; <nl> } <nl> <nl> EXPECT_CALL ( request_decoder_ , decodeHeaders_ ( _ , _ ) ) . Times ( 1 ) ; <nl> mmm a / test / common / network / resolver_impl_test . cc <nl> ppp b / test / common / network / resolver_impl_test . cc <nl> class TestResolver : public Resolver { <nl> case envoy : : config : : core : : v3alpha : : SocketAddress : : PortSpecifierCase : : kPortValue : <nl> / / default to port 0 if no port value is specified <nl> case envoy : : config : : core : : v3alpha : : SocketAddress : : PortSpecifierCase : : PORT_SPECIFIER_NOT_SET : <nl> - return fmt : : format ( " { } " , socket_address . port_value ( ) ) ; <nl> + return absl : : StrCat ( " " , socket_address . port_value ( ) ) ; <nl> <nl> default : <nl> throw EnvoyException ( <nl> - fmt : : format ( " Unknown port specifier type { } " , socket_address . port_specifier_case ( ) ) ) ; <nl> + absl : : StrCat ( " Unknown port specifier type " , socket_address . port_specifier_case ( ) ) ) ; <nl> } <nl> } <nl> <nl> mmm a / test / config / utility . cc <nl> ppp b / test / config / utility . cc <nl> void ConfigHelper : : finalize ( const std : : vector < uint32_t > & ports ) { <nl> tls_config = & cluster - > hidden_envoy_deprecated_tls_context ( ) ; <nl> cluster - > clear_hidden_envoy_deprecated_tls_context ( ) ; <nl> } <nl> - setTapTransportSocket ( tap_path . value ( ) , fmt : : format ( " cluster_ { } " , i ) , <nl> + setTapTransportSocket ( tap_path . value ( ) , absl : : StrCat ( " cluster_ " , i ) , <nl> * cluster - > mutable_transport_socket ( ) , tls_config ) ; <nl> } <nl> } <nl> mmm a / test / extensions / common / dynamic_forward_proxy / mocks . h <nl> ppp b / test / extensions / common / dynamic_forward_proxy / mocks . h <nl> class MockDnsHostInfo : public DnsHostInfo { <nl> ~ MockDnsHostInfo ( ) override ; <nl> <nl> MOCK_METHOD0 ( address , Network : : Address : : InstanceConstSharedPtr ( ) ) ; <nl> - MOCK_METHOD0 ( resolvedHost , const std : : string & ( ) ) ; <nl> - MOCK_METHOD0 ( isIpAddress , bool ( ) ) ; <nl> + MOCK_CONST_METHOD0 ( resolvedHost , const std : : string & ( ) ) ; <nl> + MOCK_CONST_METHOD0 ( isIpAddress , bool ( ) ) ; <nl> MOCK_METHOD0 ( touch , void ( ) ) ; <nl> <nl> Network : : Address : : InstanceConstSharedPtr address_ ; <nl> mmm a / test / extensions / filters / network / thrift_proxy / compact_protocol_impl_test . cc <nl> ppp b / test / extensions / filters / network / thrift_proxy / compact_protocol_impl_test . cc <nl> TEST_F ( CompactProtocolTest , ReadMessageBegin ) { <nl> <nl> EXPECT_THROW_WITH_MESSAGE ( <nl> proto . readMessageBegin ( buffer , metadata_ ) , EnvoyException , <nl> - fmt : : format ( " invalid compact protocol message type { } " , invalid_msg_type ) ) ; <nl> + absl : : StrCat ( " invalid compact protocol message type " , invalid_msg_type ) ) ; <nl> expectDefaultMetadata ( ) ; <nl> EXPECT_EQ ( buffer . length ( ) , 4 ) ; <nl> } <nl> TEST_F ( CompactProtocolTest , WriteFieldBegin ) { <nl> <nl> EXPECT_THROW_WITH_MESSAGE ( proto . writeFieldBegin ( buffer , " unused " , field_type , 1 ) , <nl> EnvoyException , <nl> - fmt : : format ( " unknown protocol field type { } " , invalid_field_type ) ) ; <nl> + absl : : StrCat ( " unknown protocol field type " , invalid_field_type ) ) ; <nl> } <nl> } <nl> <nl> mmm a / test / extensions / filters / network / thrift_proxy / header_transport_impl_test . cc <nl> ppp b / test / extensions / filters / network / thrift_proxy / header_transport_impl_test . cc <nl> TEST ( HeaderTransportTest , TransformErrors ) { <nl> EXPECT_THAT ( metadata , HasFrameSize ( 86U ) ) ; <nl> EXPECT_THAT ( metadata , HasProtocol ( ProtocolType : : Binary ) ) ; <nl> EXPECT_THAT ( metadata , HasAppException ( AppExceptionType : : MissingResult , <nl> - fmt : : format ( " Unknown transform { } " , xform_id ) ) ) ; <nl> + absl : : StrCat ( " Unknown transform " , xform_id ) ) ) ; <nl> } <nl> <nl> / / Only the first of multiple errors is reported <nl> mmm a / test / extensions / filters / network / thrift_proxy / integration_test . cc <nl> ppp b / test / extensions / filters / network / thrift_proxy / integration_test . cc <nl> class ThriftConnManagerIntegrationTest <nl> for ( int i = 1 ; i < 4 ; i + + ) { <nl> auto * c = bootstrap . mutable_static_resources ( ) - > add_clusters ( ) ; <nl> c - > MergeFrom ( bootstrap . static_resources ( ) . clusters ( ) [ 0 ] ) ; <nl> - c - > set_name ( fmt : : format ( " cluster_ { } " , i ) ) ; <nl> + c - > set_name ( absl : : StrCat ( " cluster_ " , i ) ) ; <nl> } <nl> } ) ; <nl> <nl> mmm a / test / extensions / transport_sockets / tls / context_impl_test . cc <nl> ppp b / test / extensions / transport_sockets / tls / context_impl_test . cc <nl> TEST_F ( ClientContextConfigImplTest , PasswordNotSuppliedTlsCertificates ) { <nl> Stats : : IsolatedStoreImpl store ; <nl> EXPECT_THROW_WITH_REGEX ( manager . createSslClientContext ( store , client_context_config ) , <nl> EnvoyException , <nl> - fmt : : format ( " Failed to load private key from { } " , private_key_path ) ) ; <nl> + absl : : StrCat ( " Failed to load private key from " , private_key_path ) ) ; <nl> } <nl> <nl> / / Validate that client context config with static certificate validation context is created <nl> mmm a / test / integration / stats_integration_test . cc <nl> ppp b / test / integration / stats_integration_test . cc <nl> class ClusterMemoryTestHelper : public BaseIntegrationTest { <nl> } <nl> for ( int i = 1 ; i < num_clusters ; + + i ) { <nl> auto * cluster = bootstrap . mutable_static_resources ( ) - > add_clusters ( ) ; <nl> - cluster - > set_name ( fmt : : format ( " cluster_ { } " , i ) ) ; <nl> + cluster - > set_name ( absl : : StrCat ( " cluster_ " , i ) ) ; <nl> } <nl> <nl> for ( int i = 0 ; i < num_clusters ; + + i ) { <nl> mmm a / test / mocks / network / mocks . h <nl> ppp b / test / mocks / network / mocks . h <nl> class MockConnectionHandler : public ConnectionHandler { <nl> MockConnectionHandler ( ) ; <nl> ~ MockConnectionHandler ( ) override ; <nl> <nl> - MOCK_METHOD0 ( numConnections , uint64_t ( ) ) ; <nl> + MOCK_CONST_METHOD0 ( numConnections , uint64_t ( ) ) ; <nl> MOCK_METHOD0 ( incNumConnections , void ( ) ) ; <nl> MOCK_METHOD0 ( decNumConnections , void ( ) ) ; <nl> MOCK_METHOD1 ( addListener , void ( ListenerConfig & config ) ) ; <nl> class MockConnectionHandler : public ConnectionHandler { <nl> MOCK_METHOD0 ( stopListeners , void ( ) ) ; <nl> MOCK_METHOD0 ( disableListeners , void ( ) ) ; <nl> MOCK_METHOD0 ( enableListeners , void ( ) ) ; <nl> - MOCK_METHOD0 ( statPrefix , const std : : string & ( ) ) ; <nl> + MOCK_CONST_METHOD0 ( statPrefix , const std : : string & ( ) ) ; <nl> } ; <nl> <nl> class MockIp : public Address : : Ip { <nl> mmm a / test / mocks / server / mocks . h <nl> ppp b / test / mocks / server / mocks . h <nl> class MockListenerManager : public ListenerManager { <nl> const std : : string & version_info , bool modifiable ) ) ; <nl> MOCK_METHOD1 ( createLdsApi , void ( const envoy : : config : : core : : v3alpha : : ConfigSource & lds_config ) ) ; <nl> MOCK_METHOD0 ( listeners , std : : vector < std : : reference_wrapper < Network : : ListenerConfig > > ( ) ) ; <nl> - MOCK_METHOD0 ( numConnections , uint64_t ( ) ) ; <nl> + MOCK_CONST_METHOD0 ( numConnections , uint64_t ( ) ) ; <nl> MOCK_METHOD1 ( removeListener , bool ( const std : : string & listener_name ) ) ; <nl> MOCK_METHOD1 ( startWorkers , void ( GuardDog & guard_dog ) ) ; <nl> MOCK_METHOD1 ( stopListeners , void ( StopListenersType listeners_type ) ) ; <nl> class MockWorker : public Worker { <nl> / / Server : : Worker <nl> MOCK_METHOD2 ( addListener , <nl> void ( Network : : ListenerConfig & listener , AddListenerCompletion completion ) ) ; <nl> - MOCK_METHOD0 ( numConnections , uint64_t ( ) ) ; <nl> + MOCK_CONST_METHOD0 ( numConnections , uint64_t ( ) ) ; <nl> MOCK_METHOD2 ( removeListener , <nl> void ( Network : : ListenerConfig & listener , std : : function < void ( ) > completion ) ) ; <nl> MOCK_METHOD1 ( start , void ( GuardDog & guard_dog ) ) ; <nl> mmm a / test / test_common / utility . cc <nl> ppp b / test / test_common / utility . cc <nl> std : : string TestUtility : : xdsResourceName ( const ProtobufWkt : : Any & resource ) { <nl> return TestUtility : : anyConvert < envoy : : service : : runtime : : v3alpha : : Runtime > ( resource ) . name ( ) ; <nl> } <nl> throw EnvoyException ( <nl> - fmt : : format ( " xdsResourceName does not know about type URL { } " , resource . type_url ( ) ) ) ; <nl> + absl : : StrCat ( " xdsResourceName does not know about type URL " , resource . type_url ( ) ) ) ; <nl> } <nl> <nl> std : : string TestUtility : : addLeftAndRightPadding ( absl : : string_view to_pad , int desired_length ) { <nl> | misc : cleanup - const - ness and more use of abseil string utilities ( ) | envoyproxy/envoy | daf4751a080802e5b0f87f274d45650acab0ec74 | 2020-01-09T23:42:26Z |
mmm a / tools / editor / project_manager . cpp <nl> ppp b / tools / editor / project_manager . cpp <nl> class NewProjectDialog : public ConfirmationDialog { <nl> String zip_title ; <nl> AcceptDialog * dialog_error ; <nl> <nl> - bool _test_path ( ) { <nl> + String _test_path ( ) { <nl> <nl> error - > set_text ( " " ) ; <nl> get_ok ( ) - > set_disabled ( true ) ; <nl> DirAccess * d = DirAccess : : create ( DirAccess : : ACCESS_FILESYSTEM ) ; <nl> - if ( project_path - > get_text ( ) ! = " " & & d - > change_dir ( project_path - > get_text ( ) ) ! = OK ) { <nl> + String valid_path ; <nl> + if ( d - > change_dir ( project_path - > get_text ( ) ) = = OK ) { <nl> + valid_path = project_path - > get_text ( ) ; <nl> + } else if ( d - > change_dir ( project_path - > get_text ( ) . strip_edges ( ) ) = = OK ) { <nl> + valid_path = project_path - > get_text ( ) . strip_edges ( ) ; <nl> + } <nl> + <nl> + if ( valid_path = = " " ) { <nl> error - > set_text ( TTR ( " Invalid project path , the path must exist ! " ) ) ; <nl> memdelete ( d ) ; <nl> - return false ; <nl> + return " " ; <nl> } <nl> <nl> if ( mode ! = MODE_IMPORT ) { <nl> class NewProjectDialog : public ConfirmationDialog { <nl> <nl> error - > set_text ( TTR ( " Invalid project path , engine . cfg must not exist . " ) ) ; <nl> memdelete ( d ) ; <nl> - return false ; <nl> + return " " ; <nl> } <nl> <nl> } else { <nl> <nl> - if ( project_path - > get_text ( ) ! = " " & & ! d - > file_exists ( " engine . cfg " ) ) { <nl> + if ( valid_path ! = " " & & ! d - > file_exists ( " engine . cfg " ) ) { <nl> <nl> error - > set_text ( TTR ( " Invalid project path , engine . cfg must exist . " ) ) ; <nl> memdelete ( d ) ; <nl> - return false ; <nl> + return " " ; <nl> } <nl> } <nl> <nl> memdelete ( d ) ; <nl> get_ok ( ) - > set_disabled ( false ) ; <nl> - return true ; <nl> + return valid_path ; <nl> <nl> } <nl> <nl> void _path_text_changed ( const String & p_path ) { <nl> <nl> - if ( _test_path ( ) ) { <nl> - <nl> - String sp = p_path ; <nl> + String sp = _test_path ( ) ; <nl> + if ( sp ! = " " ) { <nl> <nl> sp = sp . replace ( " \ \ " , " / " ) ; <nl> int lidx = sp . find_last ( " / " ) ; <nl> class NewProjectDialog : public ConfirmationDialog { <nl> <nl> void ok_pressed ( ) { <nl> <nl> - if ( ! _test_path ( ) ) <nl> + String dir = _test_path ( ) ; <nl> + if ( dir = = " " ) { <nl> + error - > set_text ( TTR ( " Invalid project path ( changed anything ? ) . " ) ) ; <nl> return ; <nl> - <nl> - String dir ; <nl> + } <nl> <nl> if ( mode = = MODE_IMPORT ) { <nl> - dir = project_path - > get_text ( ) ; <nl> - <nl> - <nl> + / / nothing to do <nl> } else { <nl> - DirAccess * d = DirAccess : : create ( DirAccess : : ACCESS_FILESYSTEM ) ; <nl> - <nl> - if ( d - > change_dir ( project_path - > get_text ( ) ) ! = OK ) { <nl> - error - > set_text ( TTR ( " Invalid project path ( changed anything ? ) . " ) ) ; <nl> - memdelete ( d ) ; <nl> - return ; <nl> - } <nl> - <nl> - dir = d - > get_current_dir ( ) ; <nl> - memdelete ( d ) ; <nl> - <nl> if ( mode = = MODE_NEW ) { <nl> <nl> <nl> class NewProjectDialog : public ConfirmationDialog { <nl> <nl> } <nl> <nl> - <nl> - <nl> } <nl> <nl> dir = dir . replace ( " \ \ " , " / " ) ; <nl> class NewProjectDialog : public ConfirmationDialog { <nl> popup_centered ( Size2 ( 500 , 125 ) * EDSCALE ) ; <nl> <nl> } <nl> - <nl> + project_path - > grab_focus ( ) ; <nl> <nl> _test_path ( ) ; <nl> } <nl> | Merge pull request from volzhs / check - project - path | godotengine/godot | 394d48a5fc287e5422a937ecfd5b9197ec2ad3ff | 2016-11-15T07:17:21Z |
mmm a / hphp / system / php / curl / CURLFile . php <nl> ppp b / hphp / system / php / curl / CURLFile . php <nl> public function setMimeType ( string $ mime ) : void { <nl> $ this - > mime = $ mime ; <nl> } <nl> <nl> - public function setPostFilename ( string $ Postname ) : void { <nl> + public function setPostFilename ( string $ postname ) : void { <nl> $ this - > postname = $ postname ; <nl> } <nl> } <nl> | Fix typo in CURLFile . php | facebook/hhvm | 5bd61a62bcd9312362e65f0c1d92373d32a1eeaf | 2014-04-19T18:13:55Z |
mmm a / tensorflow / go / op / wrappers . go <nl> ppp b / tensorflow / go / op / wrappers . go <nl> func FusedBatchNormGradIsTraining ( value bool ) FusedBatchNormGradAttr { <nl> / / y_backprop : A 4D Tensor for the gradient with respect to y . <nl> / / x : A 4D Tensor for input data . <nl> / / scale : A 1D Tensor for scaling factor , to scale the normalized x . <nl> - / / reserve_space_1 : A 1D Tensor for the computed batch mean , to be reused <nl> - / / in the gradient computation . <nl> - / / reserve_space_2 : A 1D Tensor for the computed batch variance ( inverted variance <nl> - / / in the cuDNN case ) , to be used in the gradient computation . <nl> + / / reserve_space_1 : When is_training is True , a 1D Tensor for the computed batch mean <nl> + / / to be reused in gradient computation . <nl> + / / When is_training is False , a 1D Tensor for the population mean <nl> + / / to be reused in both 1st and 2nd order gradient computation . <nl> + / / reserve_space_2 : When is_training is True , a 1D Tensor for the computed batch variance <nl> + / / ( inverted variance in the cuDNN case ) to be reused in gradient computation . <nl> + / / When is_training is False , a 1D Tensor for the population variance <nl> + / / to be reused in both 1st and 2nd order gradient computation . <nl> / / <nl> / / Returns A 4D Tensor for the gradient with respect to x . A 1D Tensor for the gradient with respect to scale . A 1D Tensor for the gradient with respect to offset . Unused placeholder to match the mean input in FusedBatchNorm . Unused placeholder to match the variance input <nl> / / in FusedBatchNorm . <nl> func FusedBatchNormIsTraining ( value bool ) FusedBatchNormAttr { <nl> / / to compute the running mean . A 1D Tensor for the computed batch variance , to be used by <nl> / / TensorFlow to compute the running variance . A 1D Tensor for the computed batch mean , to be reused <nl> / / in the gradient computation . A 1D Tensor for the computed batch variance ( inverted variance <nl> - / / in the cuDNN case ) , to be used in the gradient computation . <nl> + / / in the cuDNN case ) , to be reused in the gradient computation . <nl> func FusedBatchNorm ( scope * Scope , x tf . Output , scale tf . Output , offset tf . Output , mean tf . Output , variance tf . Output , optional . . . FusedBatchNormAttr ) ( y tf . Output , batch_mean tf . Output , batch_variance tf . Output , reserve_space_1 tf . Output , reserve_space_2 tf . Output ) { <nl> if scope . Err ( ) ! = nil { <nl> return <nl> | Go : Update generated wrapper functions for TensorFlow ops . | tensorflow/tensorflow | 89ffbeaca0dcc69186b90d22d3282fc28db143c3 | 2017-09-26T03:01:44Z |
mmm a / src / app / commands / cmd_mask_by_color . cpp <nl> ppp b / src / app / commands / cmd_mask_by_color . cpp <nl> <nl> # include " app / ui / color_bar . h " <nl> # include " app / ui / color_button . h " <nl> # include " base / bind . h " <nl> + # include " base / chrono . h " <nl> + # include " base / convert_to . h " <nl> # include " base / unique_ptr . h " <nl> # include " doc / image . h " <nl> # include " doc / mask . h " <nl> <nl> # include " ui / widget . h " <nl> # include " ui / window . h " <nl> <nl> + / / Uncomment to see the performance of doc : : MaskBoundaries ctor <nl> + / / # define SHOW_BOUNDARIES_GEN_PERFORMANCE <nl> + <nl> namespace app { <nl> <nl> using namespace ui ; <nl> class MaskByColorCommand : public Command { <nl> Mask * generateMask ( const Sprite * sprite , const Image * image , int xpos , int ypos ) ; <nl> void maskPreview ( const ContextReader & reader ) ; <nl> <nl> + Window * m_window ; / / TODO we cannot use a UniquePtr because clone ( ) needs a copy ctor <nl> ColorButton * m_buttonColor ; <nl> CheckBox * m_checkPreview ; <nl> Slider * m_sliderTolerance ; <nl> void MaskByColorCommand : : onExecute ( Context * context ) <nl> if ( ! image ) <nl> return ; <nl> <nl> - base : : UniquePtr < Window > window ( new Window ( Window : : WithTitleBar , " Mask by Color " ) ) ; <nl> + m_window = new Window ( Window : : WithTitleBar , " Mask by Color " ) ; <nl> box1 = new Box ( JI_VERTICAL ) ; <nl> box2 = new Box ( JI_HORIZONTAL ) ; <nl> box3 = new Box ( JI_HORIZONTAL ) ; <nl> void MaskByColorCommand : : onExecute ( Context * context ) <nl> if ( get_config_bool ( " MaskColor " , " Preview " , true ) ) <nl> m_checkPreview - > setSelected ( true ) ; <nl> <nl> - button_ok - > Click . connect ( Bind < void > ( & Window : : closeWindow , window . get ( ) , button_ok ) ) ; <nl> - button_cancel - > Click . connect ( Bind < void > ( & Window : : closeWindow , window . get ( ) , button_cancel ) ) ; <nl> + button_ok - > Click . connect ( Bind < void > ( & Window : : closeWindow , m_window , button_ok ) ) ; <nl> + button_cancel - > Click . connect ( Bind < void > ( & Window : : closeWindow , m_window , button_cancel ) ) ; <nl> <nl> m_buttonColor - > Change . connect ( Bind < void > ( & MaskByColorCommand : : maskPreview , this , Ref ( reader ) ) ) ; <nl> m_sliderTolerance - > Change . connect ( Bind < void > ( & MaskByColorCommand : : maskPreview , this , Ref ( reader ) ) ) ; <nl> void MaskByColorCommand : : onExecute ( Context * context ) <nl> m_sliderTolerance - > setExpansive ( true ) ; <nl> box2 - > setExpansive ( true ) ; <nl> <nl> - window - > addChild ( box1 ) ; <nl> + m_window - > addChild ( box1 ) ; <nl> box1 - > addChild ( box2 ) ; <nl> box1 - > addChild ( box3 ) ; <nl> box1 - > addChild ( m_checkPreview ) ; <nl> void MaskByColorCommand : : onExecute ( Context * context ) <nl> box4 - > addChild ( button_cancel ) ; <nl> <nl> / / Default position <nl> - window - > remapWindow ( ) ; <nl> - window - > centerWindow ( ) ; <nl> + m_window - > remapWindow ( ) ; <nl> + m_window - > centerWindow ( ) ; <nl> <nl> / / Mask first preview <nl> maskPreview ( reader ) ; <nl> <nl> / / Load window configuration <nl> - load_window_pos ( window , " MaskColor " ) ; <nl> + load_window_pos ( m_window , " MaskColor " ) ; <nl> <nl> / / Open the window <nl> - window - > openWindowInForeground ( ) ; <nl> + m_window - > openWindowInForeground ( ) ; <nl> <nl> - bool apply = ( window - > getKiller ( ) = = button_ok ) ; <nl> + bool apply = ( m_window - > getKiller ( ) = = button_ok ) ; <nl> <nl> ContextWriter writer ( reader ) ; <nl> Document * document ( writer . document ( ) ) ; <nl> void MaskByColorCommand : : onExecute ( Context * context ) <nl> update_screen_for_document ( document ) ; <nl> <nl> / / Save window configuration . <nl> - save_window_pos ( window , " MaskColor " ) ; <nl> + save_window_pos ( m_window , " MaskColor " ) ; <nl> + delete m_window ; <nl> } <nl> <nl> Mask * MaskByColorCommand : : generateMask ( const Sprite * sprite , const Image * image , int xpos , int ypos ) <nl> void MaskByColorCommand : : maskPreview ( const ContextReader & reader ) <nl> base : : UniquePtr < Mask > mask ( generateMask ( reader . sprite ( ) , image , xpos , ypos ) ) ; <nl> { <nl> ContextWriter writer ( reader ) ; <nl> + <nl> + # ifdef SHOW_BOUNDARIES_GEN_PERFORMANCE <nl> + base : : Chrono chrono ; <nl> + # endif <nl> + <nl> writer . document ( ) - > generateMaskBoundaries ( mask ) ; <nl> + <nl> + # ifdef SHOW_BOUNDARIES_GEN_PERFORMANCE <nl> + double time = chrono . elapsed ( ) ; <nl> + m_window - > setText ( " Mask by Color ( " + base : : convert_to < std : : string > ( time ) + " ) " ) ; <nl> + # endif <nl> + <nl> update_screen_for_document ( writer . document ( ) ) ; <nl> } <nl> } <nl> | Add optional compiler flag to see the boundaries generation performance | aseprite/aseprite | 2b104260f59435e5b8a1fa5c2e2576aa30d97875 | 2015-06-11T20:54:33Z |
mmm a / lib / Sema / CSDiag . cpp <nl> ppp b / lib / Sema / CSDiag . cpp <nl> static bool diagnoseAmbiguity ( ConstraintSystem & cs , <nl> return false ; <nl> } <nl> <nl> - / / / Conveniently unwrap a paren expression , if necessary . <nl> - static Expr * unwrapParenExpr ( Expr * e ) { <nl> - if ( auto parenExpr = dyn_cast < ParenExpr > ( e ) ) <nl> - return unwrapParenExpr ( parenExpr - > getSubExpr ( ) ) ; <nl> - <nl> - return e ; <nl> - } <nl> - <nl> static SmallVector < TupleTypeElt , 4 > decomposeArgumentType ( Type ty ) { <nl> SmallVector < TupleTypeElt , 4 > result ; <nl> <nl> typeCheckArgumentChildIndependently ( Expr * argExpr , Type argType , <nl> } <nl> <nl> auto CTPurpose = argType ? CTP_CallArgument : CTP_Unused ; <nl> - return typeCheckChildIndependently ( unwrapParenExpr ( argExpr ) , argType , <nl> + return typeCheckChildIndependently ( argExpr , argType , <nl> CTPurpose , options ) ; <nl> } <nl> <nl> bool FailureDiagnosis : : visitTupleExpr ( TupleExpr * TE ) { <nl> / / / An IdentityExpr doesn ' t change its argument , but it * can * propagate its <nl> / / / contextual type information down . <nl> bool FailureDiagnosis : : visitIdentityExpr ( IdentityExpr * E ) { <nl> - if ( ! typeCheckChildIndependently ( E - > getSubExpr ( ) , CS - > getContextualType ( ) , <nl> + auto contextualType = CS - > getContextualType ( ) ; <nl> + <nl> + / / If we have a paren expr and our contextual type is a ParenType , remove the <nl> + / / paren expr sugar . <nl> + if ( isa < ParenExpr > ( E ) & & contextualType ) <nl> + if ( auto * PT = dyn_cast < ParenType > ( contextualType . getPointer ( ) ) ) <nl> + contextualType = PT - > getUnderlyingType ( ) ; <nl> + <nl> + if ( ! typeCheckChildIndependently ( E - > getSubExpr ( ) , contextualType , <nl> CS - > getContextualTypePurpose ( ) ) ) <nl> return true ; <nl> return false ; <nl> mmm a / test / decl / subscript / subscripting . swift <nl> ppp b / test / decl / subscript / subscripting . swift <nl> func test_subscript ( inout x2 : X2 , i : Int , j : Int , inout value : Int , no : NoSubscr <nl> ovl [ ( i , j ) ] = value <nl> <nl> value = ovl [ ( i , j , i ) ] / / expected - error { { cannot subscript a value of type ' OverloadedSubscript ' with an index of type ' ( Int , Int , Int ) ' } } <nl> - / / expected - note @ - 1 { { overloads for ' subscript ' exist with these partially matching parameter lists : ( Int ) , ( Int , Int ) } } <nl> + / / expected - note @ - 1 { { expected an argument list of type ' ( Int ) ' } } <nl> <nl> ret [ i ] / / expected - error { { ambiguous use of ' subscript ' } } <nl> <nl> | make ParenExpr handling more consistent , which is basically just a cleanup . This | apple/swift | 76a26ae69c860d5f50b186fd2e4fdf3f6c723e63 | 2015-08-22T21:09:11Z |
mmm a / dbms / include / DB / AggregateFunctions / AggregateFunctionUniq . h <nl> ppp b / dbms / include / DB / AggregateFunctions / AggregateFunctionUniq . h <nl> struct AggregateFunctionUniqExactData < String > <nl> template < typename T , HyperLogLogMode mode > <nl> struct BaseUniqCombinedData <nl> { <nl> - using Key = UInt32 ; <nl> + using Key = UInt64 ; <nl> using Set = CombinedCardinalityEstimator <nl> < <nl> Key , <nl> struct BaseUniqCombinedData <nl> 14 , <nl> 17 , <nl> TrivialHash , <nl> + UInt64 , <nl> mode <nl> > ; <nl> <nl> struct BaseUniqCombinedData < String , mode > <nl> 14 , <nl> 17 , <nl> TrivialHash , <nl> + UInt64 , <nl> mode <nl> > ; <nl> <nl> namespace detail <nl> template < typename T , typename Enable = void > <nl> struct CombinedCardinalityTraits <nl> { <nl> - static UInt32 hash ( T key ) <nl> + static UInt64 hash ( T key ) <nl> { <nl> return key ; <nl> } <nl> struct CombinedCardinalityTraits < T , typename std : : enable_if < std : : is_same < T , Int6 <nl> { <nl> using U = typename std : : make_unsigned < T > : : type ; <nl> <nl> - static UInt32 hash ( T key ) <nl> + static UInt64 hash ( T key ) <nl> { <nl> - return intHash32 < 0 > ( static_cast < U > ( key ) ) ; <nl> + return intHash64 ( static_cast < U > ( key ) ) ; <nl> } ; <nl> } ; <nl> <nl> template < typename T > <nl> struct CombinedCardinalityTraits < T , typename std : : enable_if < std : : is_same < T , UInt64 > : : value > : : type > <nl> { <nl> - static UInt32 hash ( T key ) <nl> + static UInt64 hash ( T key ) <nl> { <nl> - return intHash32 < 0 > ( key ) ; <nl> + return intHash64 ( key ) ; <nl> } ; <nl> } ; <nl> <nl> template < typename T > <nl> struct CombinedCardinalityTraits < T , typename std : : enable_if < std : : is_same < T , Float64 > : : value > : : type > <nl> { <nl> - static UInt32 hash ( T key ) <nl> + static UInt64 hash ( T key ) <nl> { <nl> UInt64 res = 0 ; <nl> memcpy ( reinterpret_cast < char * > ( & res ) , reinterpret_cast < char * > ( & key ) , sizeof ( key ) ) ; <nl> - return intHash32 < 0 > ( res ) ; <nl> + return intHash64 ( res ) ; <nl> } <nl> } ; <nl> <nl> template < typename T > <nl> struct CombinedCardinalityTraits < T , typename std : : enable_if < std : : is_same < T , Float32 > : : value > : : type > <nl> { <nl> - static UInt32 hash ( T key ) <nl> + static UInt64 hash ( T key ) <nl> { <nl> - UInt32 res = 0 ; <nl> + UInt64 res = 0 ; <nl> memcpy ( reinterpret_cast < char * > ( & res ) , reinterpret_cast < char * > ( & key ) , sizeof ( key ) ) ; <nl> - return res ; <nl> + return intHash64 ( res ) ; <nl> } <nl> } ; <nl> <nl> mmm a / dbms / include / DB / Common / CombinedCardinalityEstimator . h <nl> ppp b / dbms / include / DB / Common / CombinedCardinalityEstimator . h <nl> template <nl> UInt8 medium_set_power2_max , <nl> UInt8 K , <nl> typename Hash = IntHash32 < Key > , <nl> + typename HashValueType = UInt32 , <nl> HyperLogLogMode mode = HyperLogLogMode : : FullFeatured , <nl> typename DenominatorType = double <nl> > <nl> class CombinedCardinalityEstimator <nl> medium_set_power2_max , <nl> K , <nl> Hash , <nl> + HashValueType , <nl> mode , <nl> DenominatorType <nl> > ; <nl> class CombinedCardinalityEstimator <nl> private : <nl> using Small = SmallSet < Key , small_set_size_max > ; <nl> using Medium = HashContainer ; <nl> - using Large = HyperLogLogCounter < K , Hash , DenominatorType , mode > ; <nl> + using Large = HyperLogLogCounter < K , Hash , HashValueType , DenominatorType , mode > ; <nl> <nl> public : <nl> CombinedCardinalityEstimator ( ) <nl> mmm a / dbms / include / DB / Common / HyperLogLogWithSmallSetOptimization . h <nl> ppp b / dbms / include / DB / Common / HyperLogLogWithSmallSetOptimization . h <nl> class HyperLogLogWithSmallSetOptimization <nl> { <nl> private : <nl> using Small = SmallSet < Key , small_set_size > ; <nl> - using Large = HyperLogLogCounter < K , Hash , DenominatorType > ; <nl> + using Large = HyperLogLogCounter < K , Hash , UInt32 , DenominatorType > ; <nl> <nl> Small small ; <nl> Large * large = nullptr ; <nl> | dbms : Server : In the UniqCombined [ . . . ] aggregate function family , switched to 64 - bit hash values . [ # METR - 17276 ] | ClickHouse/ClickHouse | 76bde775972c8fa57a382f234a6ef460830ae16e | 2015-08-20T17:11:21Z |
mmm a / code / online_challenges / src / project_euler / problem_067 / problem_067 . py <nl> ppp b / code / online_challenges / src / project_euler / problem_067 / problem_067 . py <nl> <nl> def main ( ) : <nl> - prob = [ ] <nl> - for i in range ( 100 ) : <nl> - prob . append ( [ int ( x ) for x in input ( ) . strip ( ) . split ( ) ] ) <nl> + prob = [ [ 59 ] , <nl> + [ 73 , 41 ] , <nl> + [ 52 , 40 , 9 ] , <nl> + [ 26 , 53 , 6 , 34 ] , <nl> + [ 10 , 51 , 87 , 86 , 81 ] , <nl> + [ 61 , 95 , 66 , 57 , 25 , 68 ] , <nl> + [ 90 , 81 , 80 , 38 , 92 , 67 , 73 ] , <nl> + [ 30 , 28 , 51 , 76 , 81 , 18 , 75 , 44 ] , <nl> + [ 84 , 14 , 95 , 87 , 62 , 81 , 17 , 78 , 58 ] , <nl> + [ 21 , 46 , 71 , 58 , 2 , 79 , 62 , 39 , 31 , 9 ] , <nl> + [ 56 , 34 , 35 , 53 , 78 , 31 , 81 , 18 , 90 , 93 , 15 ] , <nl> + [ 78 , 53 , 4 , 21 , 84 , 93 , 32 , 13 , 97 , 11 , 37 , 51 ] , <nl> + [ 45 , 3 , 81 , 79 , 5 , 18 , 78 , 86 , 13 , 30 , 63 , 99 , 95 ] , <nl> + [ 39 , 87 , 96 , 28 , 3 , 38 , 42 , 17 , 82 , 87 , 58 , 7 , 22 , 57 ] , <nl> + [ 6 , 17 , 51 , 17 , 7 , 93 , 9 , 7 , 75 , 97 , 95 , 78 , 87 , 8 , 53 ] , <nl> + [ 67 , 66 , 59 , 60 , 88 , 99 , 94 , 65 , 55 , 77 , 55 , 34 , 27 , 53 , 78 , 28 ] , <nl> + [ 76 , 40 , 41 , 4 , 87 , 16 , 9 , 42 , 75 , 69 , 23 , 97 , 30 , 60 , 10 , 79 , 87 ] , <nl> + [ 12 , 10 , 44 , 26 , 21 , 36 , 32 , 84 , 98 , 60 , 13 , 12 , 36 , 16 , 63 , 31 , 91 , 35 ] , <nl> + [ 70 , 39 , 6 , 5 , 55 , 27 , 38 , 48 , 28 , 22 , 34 , 35 , 62 , 62 , 15 , 14 , 94 , 89 , 86 ] , <nl> + [ 66 , 56 , 68 , 84 , 96 , 21 , 34 , 34 , 34 , 81 , 62 , 40 , 65 , 54 , 62 , 5 , 98 , 3 , 2 , 60 ] , <nl> + [ 38 , 89 , 46 , 37 , 99 , 54 , 34 , 53 , 36 , 14 , 70 , 26 , 2 , 90 , 45 , 13 , 31 , 61 , 83 , 73 , 47 ] , <nl> + [ 36 , 10 , 63 , 96 , 60 , 49 , 41 , 5 , 37 , 42 , 14 , 58 , 84 , 93 , 96 , 17 , 9 , 43 , 5 , 43 , 6 , 59 ] , <nl> + [ 66 , 57 , 87 , 57 , 61 , 28 , 37 , 51 , 84 , 73 , 79 , 15 , 39 , 95 , 88 , 87 , 43 , 39 , 11 , 86 , 77 , 74 , 18 ] , <nl> + [ 54 , 42 , 5 , 79 , 30 , 49 , 99 , 73 , 46 , 37 , 50 , 2 , 45 , 9 , 54 , 52 , 27 , 95 , 27 , 65 , 19 , 45 , 26 , 45 ] , <nl> + [ 71 , 39 , 17 , 78 , 76 , 29 , 52 , 90 , 18 , 99 , 78 , 19 , 35 , 62 , 71 , 19 , 23 , 65 , 93 , 85 , 49 , 33 , 75 , 9 , 2 ] , <nl> + [ 33 , 24 , 47 , 61 , 60 , 55 , 32 , 88 , 57 , 55 , 91 , 54 , 46 , 57 , 7 , 77 , 98 , 52 , 80 , 99 , 24 , 25 , 46 , 78 , 79 , 5 ] , <nl> + [ 92 , 9 , 13 , 55 , 10 , 67 , 26 , 78 , 76 , 82 , 63 , 49 , 51 , 31 , 24 , 68 , 5 , 57 , 7 , 54 , 69 , 21 , 67 , 43 , 17 , 63 , 12 ] , <nl> + [ 24 , 59 , 6 , 8 , 98 , 74 , 66 , 26 , 61 , 60 , 13 , 3 , 9 , 9 , 24 , 30 , 71 , 8 , 88 , 70 , 72 , 70 , 29 , 90 , 11 , 82 , 41 , 34 ] , <nl> + [ 66 , 82 , 67 , 4 , 36 , 60 , 92 , 77 , 91 , 85 , 62 , 49 , 59 , 61 , 30 , 90 , 29 , 94 , 26 , 41 , 89 , 4 , 53 , 22 , 83 , 41 , 9 , 74 , 90 ] , <nl> + [ 48 , 28 , 26 , 37 , 28 , 52 , 77 , 26 , 51 , 32 , 18 , 98 , 79 , 36 , 62 , 13 , 17 , 8 , 19 , 54 , 89 , 29 , 73 , 68 , 42 , 14 , 8 , 16 , 70 , 37 ] , <nl> + [ 37 , 60 , 69 , 70 , 72 , 71 , 9 , 59 , 13 , 60 , 38 , 13 , 57 , 36 , 9 , 30 , 43 , 89 , 30 , 39 , 15 , 2 , 44 , 73 , 5 , 73 , 26 , 63 , 56 , 86 , 12 ] , <nl> + [ 55 , 55 , 85 , 50 , 62 , 99 , 84 , 77 , 28 , 85 , 3 , 21 , 27 , 22 , 19 , 26 , 82 , 69 , 54 , 4 , 13 , 7 , 85 , 14 , 1 , 15 , 70 , 59 , 89 , 95 , 10 , 19 ] , <nl> + [ 4 , 9 , 31 , 92 , 91 , 38 , 92 , 86 , 98 , 75 , 21 , 5 , 64 , 42 , 62 , 84 , 36 , 20 , 73 , 42 , 21 , 23 , 22 , 51 , 51 , 79 , 25 , 45 , 85 , 53 , 3 , 43 , 22 ] , <nl> + [ 75 , 63 , 2 , 49 , 14 , 12 , 89 , 14 , 60 , 78 , 92 , 16 , 44 , 82 , 38 , 30 , 72 , 11 , 46 , 52 , 90 , 27 , 8 , 65 , 78 , 3 , 85 , 41 , 57 , 79 , 39 , 52 , 33 , 48 ] , <nl> + [ 78 , 27 , 56 , 56 , 39 , 13 , 19 , 43 , 86 , 72 , 58 , 95 , 39 , 7 , 4 , 34 , 21 , 98 , 39 , 15 , 39 , 84 , 89 , 69 , 84 , 46 , 37 , 57 , 59 , 35 , 59 , 50 , 26 , 15 , 93 ] , <nl> + [ 42 , 89 , 36 , 27 , 78 , 91 , 24 , 11 , 17 , 41 , 5 , 94 , 7 , 69 , 51 , 96 , 3 , 96 , 47 , 90 , 90 , 45 , 91 , 20 , 50 , 56 , 10 , 32 , 36 , 49 , 4 , 53 , 85 , 92 , 25 , 65 ] , <nl> + [ 52 , 9 , 61 , 30 , 61 , 97 , 66 , 21 , 96 , 92 , 98 , 90 , 6 , 34 , 96 , 60 , 32 , 69 , 68 , 33 , 75 , 84 , 18 , 31 , 71 , 50 , 84 , 63 , 3 , 3 , 19 , 11 , 28 , 42 , 75 , 45 , 45 ] , <nl> + [ 61 , 31 , 61 , 68 , 96 , 34 , 49 , 39 , 5 , 71 , 76 , 59 , 62 , 67 , 6 , 47 , 96 , 99 , 34 , 21 , 32 , 47 , 52 , 7 , 71 , 60 , 42 , 72 , 94 , 56 , 82 , 83 , 84 , 40 , 94 , 87 , 82 , 46 ] , <nl> + [ 1 , 20 , 60 , 14 , 17 , 38 , 26 , 78 , 66 , 81 , 45 , 95 , 18 , 51 , 98 , 81 , 48 , 16 , 53 , 88 , 37 , 52 , 69 , 95 , 72 , 93 , 22 , 34 , 98 , 20 , 54 , 27 , 73 , 61 , 56 , 63 , 60 , 34 , 63 ] , <nl> + [ 93 , 42 , 94 , 83 , 47 , 61 , 27 , 51 , 79 , 79 , 45 , 1 , 44 , 73 , 31 , 70 , 83 , 42 , 88 , 25 , 53 , 51 , 30 , 15 , 65 , 94 , 80 , 44 , 61 , 84 , 12 , 77 , 2 , 62 , 2 , 65 , 94 , 42 , 14 , 94 ] , <nl> + [ 32 , 73 , 9 , 67 , 68 , 29 , 74 , 98 , 10 , 19 , 85 , 48 , 38 , 31 , 85 , 67 , 53 , 93 , 93 , 77 , 47 , 67 , 39 , 72 , 94 , 53 , 18 , 43 , 77 , 40 , 78 , 32 , 29 , 59 , 24 , 6 , 2 , 83 , 50 , 60 , 66 ] , <nl> + [ 32 , 1 , 44 , 30 , 16 , 51 , 15 , 81 , 98 , 15 , 10 , 62 , 86 , 79 , 50 , 62 , 45 , 60 , 70 , 38 , 31 , 85 , 65 , 61 , 64 , 6 , 69 , 84 , 14 , 22 , 56 , 43 , 9 , 48 , 66 , 69 , 83 , 91 , 60 , 40 , 36 , 61 ] , <nl> + [ 92 , 48 , 22 , 99 , 15 , 95 , 64 , 43 , 1 , 16 , 94 , 2 , 99 , 19 , 17 , 69 , 11 , 58 , 97 , 56 , 89 , 31 , 77 , 45 , 67 , 96 , 12 , 73 , 8 , 20 , 36 , 47 , 81 , 44 , 50 , 64 , 68 , 85 , 40 , 81 , 85 , 52 , 9 ] , <nl> + [ 91 , 35 , 92 , 45 , 32 , 84 , 62 , 15 , 19 , 64 , 21 , 66 , 6 , 1 , 52 , 80 , 62 , 59 , 12 , 25 , 88 , 28 , 91 , 50 , 40 , 16 , 22 , 99 , 92 , 79 , 87 , 51 , 21 , 77 , 74 , 77 , 7 , 42 , 38 , 42 , 74 , 83 , 2 , 5 ] , <nl> + [ 46 , 19 , 77 , 66 , 24 , 18 , 5 , 32 , 2 , 84 , 31 , 99 , 92 , 58 , 96 , 72 , 91 , 36 , 62 , 99 , 55 , 29 , 53 , 42 , 12 , 37 , 26 , 58 , 89 , 50 , 66 , 19 , 82 , 75 , 12 , 48 , 24 , 87 , 91 , 85 , 2 , 7 , 3 , 76 , 86 ] , <nl> + [ 99 , 98 , 84 , 93 , 7 , 17 , 33 , 61 , 92 , 20 , 66 , 60 , 24 , 66 , 40 , 30 , 67 , 5 , 37 , 29 , 24 , 96 , 3 , 27 , 70 , 62 , 13 , 4 , 45 , 47 , 59 , 88 , 43 , 20 , 66 , 15 , 46 , 92 , 30 , 4 , 71 , 66 , 78 , 70 , 53 , 99 ] , <nl> + [ 67 , 60 , 38 , 6 , 88 , 4 , 17 , 72 , 10 , 99 , 71 , 7 , 42 , 25 , 54 , 5 , 26 , 64 , 91 , 50 , 45 , 71 , 6 , 30 , 67 , 48 , 69 , 82 , 8 , 56 , 80 , 67 , 18 , 46 , 66 , 63 , 1 , 20 , 8 , 80 , 47 , 7 , 91 , 16 , 3 , 79 , 87 ] , <nl> + [ 18 , 54 , 78 , 49 , 80 , 48 , 77 , 40 , 68 , 23 , 60 , 88 , 58 , 80 , 33 , 57 , 11 , 69 , 55 , 53 , 64 , 2 , 94 , 49 , 60 , 92 , 16 , 35 , 81 , 21 , 82 , 96 , 25 , 24 , 96 , 18 , 2 , 5 , 49 , 3 , 50 , 77 , 6 , 32 , 84 , 27 , 18 , 38 ] , <nl> + [ 68 , 1 , 50 , 4 , 3 , 21 , 42 , 94 , 53 , 24 , 89 , 5 , 92 , 26 , 52 , 36 , 68 , 11 , 85 , 1 , 4 , 42 , 2 , 45 , 15 , 6 , 50 , 4 , 53 , 73 , 25 , 74 , 81 , 88 , 98 , 21 , 67 , 84 , 79 , 97 , 99 , 20 , 95 , 4 , 40 , 46 , 2 , 58 , 87 ] , <nl> + [ 94 , 10 , 2 , 78 , 88 , 52 , 21 , 3 , 88 , 60 , 6 , 53 , 49 , 71 , 20 , 91 , 12 , 65 , 7 , 49 , 21 , 22 , 11 , 41 , 58 , 99 , 36 , 16 , 9 , 48 , 17 , 24 , 52 , 36 , 23 , 15 , 72 , 16 , 84 , 56 , 2 , 99 , 43 , 76 , 81 , 71 , 29 , 39 , 49 , 17 ] , <nl> + [ 64 , 39 , 59 , 84 , 86 , 16 , 17 , 66 , 3 , 9 , 43 , 6 , 64 , 18 , 63 , 29 , 68 , 6 , 23 , 7 , 87 , 14 , 26 , 35 , 17 , 12 , 98 , 41 , 53 , 64 , 78 , 18 , 98 , 27 , 28 , 84 , 80 , 67 , 75 , 62 , 10 , 11 , 76 , 90 , 54 , 10 , 5 , 54 , 41 , 39 , 66 ] , <nl> + [ 43 , 83 , 18 , 37 , 32 , 31 , 52 , 29 , 95 , 47 , 8 , 76 , 35 , 11 , 4 , 53 , 35 , 43 , 34 , 10 , 52 , 57 , 12 , 36 , 20 , 39 , 40 , 55 , 78 , 44 , 7 , 31 , 38 , 26 , 8 , 15 , 56 , 88 , 86 , 1 , 52 , 62 , 10 , 24 , 32 , 5 , 60 , 65 , 53 , 28 , 57 , 99 ] , <nl> + [ 3 , 50 , 3 , 52 , 7 , 73 , 49 , 92 , 66 , 80 , 1 , 46 , 8 , 67 , 25 , 36 , 73 , 93 , 7 , 42 , 25 , 53 , 13 , 96 , 76 , 83 , 87 , 90 , 54 , 89 , 78 , 22 , 78 , 91 , 73 , 51 , 69 , 9 , 79 , 94 , 83 , 53 , 9 , 40 , 69 , 62 , 10 , 79 , 49 , 47 , 3 , 81 , 30 ] , <nl> + [ 71 , 54 , 73 , 33 , 51 , 76 , 59 , 54 , 79 , 37 , 56 , 45 , 84 , 17 , 62 , 21 , 98 , 69 , 41 , 95 , 65 , 24 , 39 , 37 , 62 , 3 , 24 , 48 , 54 , 64 , 46 , 82 , 71 , 78 , 33 , 67 , 9 , 16 , 96 , 68 , 52 , 74 , 79 , 68 , 32 , 21 , 13 , 78 , 96 , 60 , 9 , 69 , 20 , 36 ] , <nl> + [ 73 , 26 , 21 , 44 , 46 , 38 , 17 , 83 , 65 , 98 , 7 , 23 , 52 , 46 , 61 , 97 , 33 , 13 , 60 , 31 , 70 , 15 , 36 , 77 , 31 , 58 , 56 , 93 , 75 , 68 , 21 , 36 , 69 , 53 , 90 , 75 , 25 , 82 , 39 , 50 , 65 , 94 , 29 , 30 , 11 , 33 , 11 , 13 , 96 , 2 , 56 , 47 , 7 , 49 , 2 ] , <nl> + [ 76 , 46 , 73 , 30 , 10 , 20 , 60 , 70 , 14 , 56 , 34 , 26 , 37 , 39 , 48 , 24 , 55 , 76 , 84 , 91 , 39 , 86 , 95 , 61 , 50 , 14 , 53 , 93 , 64 , 67 , 37 , 31 , 10 , 84 , 42 , 70 , 48 , 20 , 10 , 72 , 60 , 61 , 84 , 79 , 69 , 65 , 99 , 73 , 89 , 25 , 85 , 48 , 92 , 56 , 97 , 16 ] , <nl> + [ 3 , 14 , 80 , 27 , 22 , 30 , 44 , 27 , 67 , 75 , 79 , 32 , 51 , 54 , 81 , 29 , 65 , 14 , 19 , 4 , 13 , 82 , 4 , 91 , 43 , 40 , 12 , 52 , 29 , 99 , 7 , 76 , 60 , 25 , 1 , 7 , 61 , 71 , 37 , 92 , 40 , 47 , 99 , 66 , 57 , 1 , 43 , 44 , 22 , 40 , 53 , 53 , 9 , 69 , 26 , 81 , 7 ] , <nl> + [ 49 , 80 , 56 , 90 , 93 , 87 , 47 , 13 , 75 , 28 , 87 , 23 , 72 , 79 , 32 , 18 , 27 , 20 , 28 , 10 , 37 , 59 , 21 , 18 , 70 , 4 , 79 , 96 , 3 , 31 , 45 , 71 , 81 , 6 , 14 , 18 , 17 , 5 , 31 , 50 , 92 , 79 , 23 , 47 , 9 , 39 , 47 , 91 , 43 , 54 , 69 , 47 , 42 , 95 , 62 , 46 , 32 , 85 ] , <nl> + [ 37 , 18 , 62 , 85 , 87 , 28 , 64 , 5 , 77 , 51 , 47 , 26 , 30 , 65 , 5 , 70 , 65 , 75 , 59 , 80 , 42 , 52 , 25 , 20 , 44 , 10 , 92 , 17 , 71 , 95 , 52 , 14 , 77 , 13 , 24 , 55 , 11 , 65 , 26 , 91 , 1 , 30 , 63 , 15 , 49 , 48 , 41 , 17 , 67 , 47 , 3 , 68 , 20 , 90 , 98 , 32 , 4 , 40 , 68 ] , <nl> + [ 90 , 51 , 58 , 60 , 6 , 55 , 23 , 68 , 5 , 19 , 76 , 94 , 82 , 36 , 96 , 43 , 38 , 90 , 87 , 28 , 33 , 83 , 5 , 17 , 70 , 83 , 96 , 93 , 6 , 4 , 78 , 47 , 80 , 6 , 23 , 84 , 75 , 23 , 87 , 72 , 99 , 14 , 50 , 98 , 92 , 38 , 90 , 64 , 61 , 58 , 76 , 94 , 36 , 66 , 87 , 80 , 51 , 35 , 61 , 38 ] , <nl> + [ 57 , 95 , 64 , 6 , 53 , 36 , 82 , 51 , 40 , 33 , 47 , 14 , 7 , 98 , 78 , 65 , 39 , 58 , 53 , 6 , 50 , 53 , 4 , 69 , 40 , 68 , 36 , 69 , 75 , 78 , 75 , 60 , 3 , 32 , 39 , 24 , 74 , 47 , 26 , 90 , 13 , 40 , 44 , 71 , 90 , 76 , 51 , 24 , 36 , 50 , 25 , 45 , 70 , 80 , 61 , 80 , 61 , 43 , 90 , 64 , 11 ] , <nl> + [ 18 , 29 , 86 , 56 , 68 , 42 , 79 , 10 , 42 , 44 , 30 , 12 , 96 , 18 , 23 , 18 , 52 , 59 , 2 , 99 , 67 , 46 , 60 , 86 , 43 , 38 , 55 , 17 , 44 , 93 , 42 , 21 , 55 , 14 , 47 , 34 , 55 , 16 , 49 , 24 , 23 , 29 , 96 , 51 , 55 , 10 , 46 , 53 , 27 , 92 , 27 , 46 , 63 , 57 , 30 , 65 , 43 , 27 , 21 , 20 , 24 , 83 ] , <nl> + [ 81 , 72 , 93 , 19 , 69 , 52 , 48 , 1 , 13 , 83 , 92 , 69 , 20 , 48 , 69 , 59 , 20 , 62 , 5 , 42 , 28 , 89 , 90 , 99 , 32 , 72 , 84 , 17 , 8 , 87 , 36 , 3 , 60 , 31 , 36 , 36 , 81 , 26 , 97 , 36 , 48 , 54 , 56 , 56 , 27 , 16 , 91 , 8 , 23 , 11 , 87 , 99 , 33 , 47 , 2 , 14 , 44 , 73 , 70 , 99 , 43 , 35 , 33 ] , <nl> + [ 90 , 56 , 61 , 86 , 56 , 12 , 70 , 59 , 63 , 32 , 1 , 15 , 81 , 47 , 71 , 76 , 95 , 32 , 65 , 80 , 54 , 70 , 34 , 51 , 40 , 45 , 33 , 4 , 64 , 55 , 78 , 68 , 88 , 47 , 31 , 47 , 68 , 87 , 3 , 84 , 23 , 44 , 89 , 72 , 35 , 8 , 31 , 76 , 63 , 26 , 90 , 85 , 96 , 67 , 65 , 91 , 19 , 14 , 17 , 86 , 4 , 71 , 32 , 95 ] , <nl> + [ 37 , 13 , 4 , 22 , 64 , 37 , 37 , 28 , 56 , 62 , 86 , 33 , 7 , 37 , 10 , 44 , 52 , 82 , 52 , 6 , 19 , 52 , 57 , 75 , 90 , 26 , 91 , 24 , 6 , 21 , 14 , 67 , 76 , 30 , 46 , 14 , 35 , 89 , 89 , 41 , 3 , 64 , 56 , 97 , 87 , 63 , 22 , 34 , 3 , 79 , 17 , 45 , 11 , 53 , 25 , 56 , 96 , 61 , 23 , 18 , 63 , 31 , 37 , 37 , 47 ] , <nl> + [ 77 , 23 , 26 , 70 , 72 , 76 , 77 , 4 , 28 , 64 , 71 , 69 , 14 , 85 , 96 , 54 , 95 , 48 , 6 , 62 , 99 , 83 , 86 , 77 , 97 , 75 , 71 , 66 , 30 , 19 , 57 , 90 , 33 , 1 , 60 , 61 , 14 , 12 , 90 , 99 , 32 , 77 , 56 , 41 , 18 , 14 , 87 , 49 , 10 , 14 , 90 , 64 , 18 , 50 , 21 , 74 , 14 , 16 , 88 , 5 , 45 , 73 , 82 , 47 , 74 , 44 ] , <nl> + [ 22 , 97 , 41 , 13 , 34 , 31 , 54 , 61 , 56 , 94 , 3 , 24 , 59 , 27 , 98 , 77 , 4 , 9 , 37 , 40 , 12 , 26 , 87 , 9 , 71 , 70 , 7 , 18 , 64 , 57 , 80 , 21 , 12 , 71 , 83 , 94 , 60 , 39 , 73 , 79 , 73 , 19 , 97 , 32 , 64 , 29 , 41 , 7 , 48 , 84 , 85 , 67 , 12 , 74 , 95 , 20 , 24 , 52 , 41 , 67 , 56 , 61 , 29 , 93 , 35 , 72 , 69 ] , <nl> + [ 72 , 23 , 63 , 66 , 1 , 11 , 7 , 30 , 52 , 56 , 95 , 16 , 65 , 26 , 83 , 90 , 50 , 74 , 60 , 18 , 16 , 48 , 43 , 77 , 37 , 11 , 99 , 98 , 30 , 94 , 91 , 26 , 62 , 73 , 45 , 12 , 87 , 73 , 47 , 27 , 1 , 88 , 66 , 99 , 21 , 41 , 95 , 80 , 2 , 53 , 23 , 32 , 61 , 48 , 32 , 43 , 43 , 83 , 14 , 66 , 95 , 91 , 19 , 81 , 80 , 67 , 25 , 88 ] , <nl> + [ 8 , 62 , 32 , 18 , 92 , 14 , 83 , 71 , 37 , 96 , 11 , 83 , 39 , 99 , 5 , 16 , 23 , 27 , 10 , 67 , 2 , 25 , 44 , 11 , 55 , 31 , 46 , 64 , 41 , 56 , 44 , 74 , 26 , 81 , 51 , 31 , 45 , 85 , 87 , 9 , 81 , 95 , 22 , 28 , 76 , 69 , 46 , 48 , 64 , 87 , 67 , 76 , 27 , 89 , 31 , 11 , 74 , 16 , 62 , 3 , 60 , 94 , 42 , 47 , 9 , 34 , 94 , 93 , 72 ] , <nl> + [ 56 , 18 , 90 , 18 , 42 , 17 , 42 , 32 , 14 , 86 , 6 , 53 , 33 , 95 , 99 , 35 , 29 , 15 , 44 , 20 , 49 , 59 , 25 , 54 , 34 , 59 , 84 , 21 , 23 , 54 , 35 , 90 , 78 , 16 , 93 , 13 , 37 , 88 , 54 , 19 , 86 , 67 , 68 , 55 , 66 , 84 , 65 , 42 , 98 , 37 , 87 , 56 , 33 , 28 , 58 , 38 , 28 , 38 , 66 , 27 , 52 , 21 , 81 , 15 , 8 , 22 , 97 , 32 , 85 , 27 ] , <nl> + [ 91 , 53 , 40 , 28 , 13 , 34 , 91 , 25 , 1 , 63 , 50 , 37 , 22 , 49 , 71 , 58 , 32 , 28 , 30 , 18 , 68 , 94 , 23 , 83 , 63 , 62 , 94 , 76 , 80 , 41 , 90 , 22 , 82 , 52 , 29 , 12 , 18 , 56 , 10 , 8 , 35 , 14 , 37 , 57 , 23 , 65 , 67 , 40 , 72 , 39 , 93 , 39 , 70 , 89 , 40 , 34 , 7 , 46 , 94 , 22 , 20 , 5 , 53 , 64 , 56 , 30 , 5 , 56 , 61 , 88 , 27 ] , <nl> + [ 23 , 95 , 11 , 12 , 37 , 69 , 68 , 24 , 66 , 10 , 87 , 70 , 43 , 50 , 75 , 7 , 62 , 41 , 83 , 58 , 95 , 93 , 89 , 79 , 45 , 39 , 2 , 22 , 5 , 22 , 95 , 43 , 62 , 11 , 68 , 29 , 17 , 40 , 26 , 44 , 25 , 71 , 87 , 16 , 70 , 85 , 19 , 25 , 59 , 94 , 90 , 41 , 41 , 80 , 61 , 70 , 55 , 60 , 84 , 33 , 95 , 76 , 42 , 63 , 15 , 9 , 3 , 40 , 38 , 12 , 3 , 32 ] , <nl> + [ 9 , 84 , 56 , 80 , 61 , 55 , 85 , 97 , 16 , 94 , 82 , 94 , 98 , 57 , 84 , 30 , 84 , 48 , 93 , 90 , 71 , 5 , 95 , 90 , 73 , 17 , 30 , 98 , 40 , 64 , 65 , 89 , 7 , 79 , 9 , 19 , 56 , 36 , 42 , 30 , 23 , 69 , 73 , 72 , 7 , 5 , 27 , 61 , 24 , 31 , 43 , 48 , 71 , 84 , 21 , 28 , 26 , 65 , 65 , 59 , 65 , 74 , 77 , 20 , 10 , 81 , 61 , 84 , 95 , 8 , 52 , 23 , 70 ] , <nl> + [ 47 , 81 , 28 , 9 , 98 , 51 , 67 , 64 , 35 , 51 , 59 , 36 , 92 , 82 , 77 , 65 , 80 , 24 , 72 , 53 , 22 , 7 , 27 , 10 , 21 , 28 , 30 , 22 , 48 , 82 , 80 , 48 , 56 , 20 , 14 , 43 , 18 , 25 , 50 , 95 , 90 , 31 , 77 , 8 , 9 , 48 , 44 , 80 , 90 , 22 , 93 , 45 , 82 , 17 , 13 , 96 , 25 , 26 , 8 , 73 , 34 , 99 , 6 , 49 , 24 , 6 , 83 , 51 , 40 , 14 , 15 , 10 , 25 , 1 ] , <nl> + [ 54 , 25 , 10 , 81 , 30 , 64 , 24 , 74 , 75 , 80 , 36 , 75 , 82 , 60 , 22 , 69 , 72 , 91 , 45 , 67 , 3 , 62 , 79 , 54 , 89 , 74 , 44 , 83 , 64 , 96 , 66 , 73 , 44 , 30 , 74 , 50 , 37 , 5 , 9 , 97 , 70 , 1 , 60 , 46 , 37 , 91 , 39 , 75 , 75 , 18 , 58 , 52 , 72 , 78 , 51 , 81 , 86 , 52 , 8 , 97 , 1 , 46 , 43 , 66 , 98 , 62 , 81 , 18 , 70 , 93 , 73 , 8 , 32 , 46 , 34 ] , <nl> + [ 96 , 80 , 82 , 7 , 59 , 71 , 92 , 53 , 19 , 20 , 88 , 66 , 3 , 26 , 26 , 10 , 24 , 27 , 50 , 82 , 94 , 73 , 63 , 8 , 51 , 33 , 22 , 45 , 19 , 13 , 58 , 33 , 90 , 15 , 22 , 50 , 36 , 13 , 55 , 6 , 35 , 47 , 82 , 52 , 33 , 61 , 36 , 27 , 28 , 46 , 98 , 14 , 73 , 20 , 73 , 32 , 16 , 26 , 80 , 53 , 47 , 66 , 76 , 38 , 94 , 45 , 2 , 1 , 22 , 52 , 47 , 96 , 64 , 58 , 52 , 39 ] , <nl> + [ 88 , 46 , 23 , 39 , 74 , 63 , 81 , 64 , 20 , 90 , 33 , 33 , 76 , 55 , 58 , 26 , 10 , 46 , 42 , 26 , 74 , 74 , 12 , 83 , 32 , 43 , 9 , 2 , 73 , 55 , 86 , 54 , 85 , 34 , 28 , 23 , 29 , 79 , 91 , 62 , 47 , 41 , 82 , 87 , 99 , 22 , 48 , 90 , 20 , 5 , 96 , 75 , 95 , 4 , 43 , 28 , 81 , 39 , 81 , 1 , 28 , 42 , 78 , 25 , 39 , 77 , 90 , 57 , 58 , 98 , 17 , 36 , 73 , 22 , 63 , 74 , 51 ] , <nl> + [ 29 , 39 , 74 , 94 , 95 , 78 , 64 , 24 , 38 , 86 , 63 , 87 , 93 , 6 , 70 , 92 , 22 , 16 , 80 , 64 , 29 , 52 , 20 , 27 , 23 , 50 , 14 , 13 , 87 , 15 , 72 , 96 , 81 , 22 , 8 , 49 , 72 , 30 , 70 , 24 , 79 , 31 , 16 , 64 , 59 , 21 , 89 , 34 , 96 , 91 , 48 , 76 , 43 , 53 , 88 , 1 , 57 , 80 , 23 , 81 , 90 , 79 , 58 , 1 , 80 , 87 , 17 , 99 , 86 , 90 , 72 , 63 , 32 , 69 , 14 , 28 , 88 , 69 ] , <nl> + [ 37 , 17 , 71 , 95 , 56 , 93 , 71 , 35 , 43 , 45 , 4 , 98 , 92 , 94 , 84 , 96 , 11 , 30 , 31 , 27 , 31 , 60 , 92 , 3 , 48 , 5 , 98 , 91 , 86 , 94 , 35 , 90 , 90 , 8 , 48 , 19 , 33 , 28 , 68 , 37 , 59 , 26 , 65 , 96 , 50 , 68 , 22 , 7 , 9 , 49 , 34 , 31 , 77 , 49 , 43 , 6 , 75 , 17 , 81 , 87 , 61 , 79 , 52 , 26 , 27 , 72 , 29 , 50 , 7 , 98 , 86 , 1 , 17 , 10 , 46 , 64 , 24 , 18 , 56 ] , <nl> + [ 51 , 30 , 25 , 94 , 88 , 85 , 79 , 91 , 40 , 33 , 63 , 84 , 49 , 67 , 98 , 92 , 15 , 26 , 75 , 19 , 82 , 5 , 18 , 78 , 65 , 93 , 61 , 48 , 91 , 43 , 59 , 41 , 70 , 51 , 22 , 15 , 92 , 81 , 67 , 91 , 46 , 98 , 11 , 11 , 65 , 31 , 66 , 10 , 98 , 65 , 83 , 21 , 5 , 56 , 5 , 98 , 73 , 67 , 46 , 74 , 69 , 34 , 8 , 30 , 5 , 52 , 7 , 98 , 32 , 95 , 30 , 94 , 65 , 50 , 24 , 63 , 28 , 81 , 99 , 57 ] , <nl> + [ 19 , 23 , 61 , 36 , 9 , 89 , 71 , 98 , 65 , 17 , 30 , 29 , 89 , 26 , 79 , 74 , 94 , 11 , 44 , 48 , 97 , 54 , 81 , 55 , 39 , 66 , 69 , 45 , 28 , 47 , 13 , 86 , 15 , 76 , 74 , 70 , 84 , 32 , 36 , 33 , 79 , 20 , 78 , 14 , 41 , 47 , 89 , 28 , 81 , 5 , 99 , 66 , 81 , 86 , 38 , 26 , 6 , 25 , 13 , 60 , 54 , 55 , 23 , 53 , 27 , 5 , 89 , 25 , 23 , 11 , 13 , 54 , 59 , 54 , 56 , 34 , 16 , 24 , 53 , 44 , 6 ] , <nl> + [ 13 , 40 , 57 , 72 , 21 , 15 , 60 , 8 , 4 , 19 , 11 , 98 , 34 , 45 , 9 , 97 , 86 , 71 , 3 , 15 , 56 , 19 , 15 , 44 , 97 , 31 , 90 , 4 , 87 , 87 , 76 , 8 , 12 , 30 , 24 , 62 , 84 , 28 , 12 , 85 , 82 , 53 , 99 , 52 , 13 , 94 , 6 , 65 , 97 , 86 , 9 , 50 , 94 , 68 , 69 , 74 , 30 , 67 , 87 , 94 , 63 , 7 , 78 , 27 , 80 , 36 , 69 , 41 , 6 , 92 , 32 , 78 , 37 , 82 , 30 , 5 , 18 , 87 , 99 , 72 , 19 , 99 ] , <nl> + [ 44 , 20 , 55 , 77 , 69 , 91 , 27 , 31 , 28 , 81 , 80 , 27 , 2 , 7 , 97 , 23 , 95 , 98 , 12 , 25 , 75 , 29 , 47 , 71 , 7 , 47 , 78 , 39 , 41 , 59 , 27 , 76 , 13 , 15 , 66 , 61 , 68 , 35 , 69 , 86 , 16 , 53 , 67 , 63 , 99 , 85 , 41 , 56 , 8 , 28 , 33 , 40 , 94 , 76 , 90 , 85 , 31 , 70 , 24 , 65 , 84 , 65 , 99 , 82 , 19 , 25 , 54 , 37 , 21 , 46 , 33 , 2 , 52 , 99 , 51 , 33 , 26 , 4 , 87 , 2 , 8 , 18 , 96 ] , <nl> + [ 54 , 42 , 61 , 45 , 91 , 6 , 64 , 79 , 80 , 82 , 32 , 16 , 83 , 63 , 42 , 49 , 19 , 78 , 65 , 97 , 40 , 42 , 14 , 61 , 49 , 34 , 4 , 18 , 25 , 98 , 59 , 30 , 82 , 72 , 26 , 88 , 54 , 36 , 21 , 75 , 3 , 88 , 99 , 53 , 46 , 51 , 55 , 78 , 22 , 94 , 34 , 40 , 68 , 87 , 84 , 25 , 30 , 76 , 25 , 8 , 92 , 84 , 42 , 61 , 40 , 38 , 9 , 99 , 40 , 23 , 29 , 39 , 46 , 55 , 10 , 90 , 35 , 84 , 56 , 70 , 63 , 23 , 91 , 39 ] , <nl> + [ 52 , 92 , 3 , 71 , 89 , 7 , 9 , 37 , 68 , 66 , 58 , 20 , 44 , 92 , 51 , 56 , 13 , 71 , 79 , 99 , 26 , 37 , 2 , 6 , 16 , 67 , 36 , 52 , 58 , 16 , 79 , 73 , 56 , 60 , 59 , 27 , 44 , 77 , 94 , 82 , 20 , 50 , 98 , 33 , 9 , 87 , 94 , 37 , 40 , 83 , 64 , 83 , 58 , 85 , 17 , 76 , 53 , 2 , 83 , 52 , 22 , 27 , 39 , 20 , 48 , 92 , 45 , 21 , 9 , 42 , 24 , 23 , 12 , 37 , 52 , 28 , 50 , 78 , 79 , 20 , 86 , 62 , 73 , 20 , 59 ] , <nl> + [ 54 , 96 , 80 , 15 , 91 , 90 , 99 , 70 , 10 , 9 , 58 , 90 , 93 , 50 , 81 , 99 , 54 , 38 , 36 , 10 , 30 , 11 , 35 , 84 , 16 , 45 , 82 , 18 , 11 , 97 , 36 , 43 , 96 , 79 , 97 , 65 , 40 , 48 , 23 , 19 , 17 , 31 , 64 , 52 , 65 , 65 , 37 , 32 , 65 , 76 , 99 , 79 , 34 , 65 , 79 , 27 , 55 , 33 , 3 , 1 , 33 , 27 , 61 , 28 , 66 , 8 , 4 , 70 , 49 , 46 , 48 , 83 , 1 , 45 , 19 , 96 , 13 , 81 , 14 , 21 , 31 , 79 , 93 , 85 , 50 , 5 ] , <nl> + [ 92 , 92 , 48 , 84 , 59 , 98 , 31 , 53 , 23 , 27 , 15 , 22 , 79 , 95 , 24 , 76 , 5 , 79 , 16 , 93 , 97 , 89 , 38 , 89 , 42 , 83 , 2 , 88 , 94 , 95 , 82 , 21 , 1 , 97 , 48 , 39 , 31 , 78 , 9 , 65 , 50 , 56 , 97 , 61 , 1 , 7 , 65 , 27 , 21 , 23 , 14 , 15 , 80 , 97 , 44 , 78 , 49 , 35 , 33 , 45 , 81 , 74 , 34 , 5 , 31 , 57 , 9 , 38 , 94 , 7 , 69 , 54 , 69 , 32 , 65 , 68 , 46 , 68 , 78 , 90 , 24 , 28 , 49 , 51 , 45 , 86 , 35 ] , <nl> + [ 41 , 63 , 89 , 76 , 87 , 31 , 86 , 9 , 46 , 14 , 87 , 82 , 22 , 29 , 47 , 16 , 13 , 10 , 70 , 72 , 82 , 95 , 48 , 64 , 58 , 43 , 13 , 75 , 42 , 69 , 21 , 12 , 67 , 13 , 64 , 85 , 58 , 23 , 98 , 9 , 37 , 76 , 5 , 22 , 31 , 12 , 66 , 50 , 29 , 99 , 86 , 72 , 45 , 25 , 10 , 28 , 19 , 6 , 90 , 43 , 29 , 31 , 67 , 79 , 46 , 25 , 74 , 14 , 97 , 35 , 76 , 37 , 65 , 46 , 23 , 82 , 6 , 22 , 30 , 76 , 93 , 66 , 94 , 17 , 96 , 13 , 20 , 72 ] , <nl> + [ 63 , 40 , 78 , 8 , 52 , 9 , 90 , 41 , 70 , 28 , 36 , 14 , 46 , 44 , 85 , 96 , 24 , 52 , 58 , 15 , 87 , 37 , 5 , 98 , 99 , 39 , 13 , 61 , 76 , 38 , 44 , 99 , 83 , 74 , 90 , 22 , 53 , 80 , 56 , 98 , 30 , 51 , 63 , 39 , 44 , 30 , 91 , 91 , 4 , 22 , 27 , 73 , 17 , 35 , 53 , 18 , 35 , 45 , 54 , 56 , 27 , 78 , 48 , 13 , 69 , 36 , 44 , 38 , 71 , 25 , 30 , 56 , 15 , 22 , 73 , 43 , 32 , 69 , 59 , 25 , 93 , 83 , 45 , 11 , 34 , 94 , 44 , 39 , 92 ] , <nl> + [ 12 , 36 , 56 , 88 , 13 , 96 , 16 , 12 , 55 , 54 , 11 , 47 , 19 , 78 , 17 , 17 , 68 , 81 , 77 , 51 , 42 , 55 , 99 , 85 , 66 , 27 , 81 , 79 , 93 , 42 , 65 , 61 , 69 , 74 , 14 , 1 , 18 , 56 , 12 , 1 , 58 , 37 , 91 , 22 , 42 , 66 , 83 , 25 , 19 , 4 , 96 , 41 , 25 , 45 , 18 , 69 , 96 , 88 , 36 , 93 , 10 , 12 , 98 , 32 , 44 , 83 , 83 , 4 , 72 , 91 , 4 , 27 , 73 , 7 , 34 , 37 , 71 , 60 , 59 , 31 , 1 , 54 , 54 , 44 , 96 , 93 , 83 , 36 , 4 , 45 ] , <nl> + [ 30 , 18 , 22 , 20 , 42 , 96 , 65 , 79 , 17 , 41 , 55 , 69 , 94 , 81 , 29 , 80 , 91 , 31 , 85 , 25 , 47 , 26 , 43 , 49 , 2 , 99 , 34 , 67 , 99 , 76 , 16 , 14 , 15 , 93 , 8 , 32 , 99 , 44 , 61 , 77 , 67 , 50 , 43 , 55 , 87 , 55 , 53 , 72 , 17 , 46 , 62 , 25 , 50 , 99 , 73 , 5 , 93 , 48 , 17 , 31 , 70 , 80 , 59 , 9 , 44 , 59 , 45 , 13 , 74 , 66 , 58 , 94 , 87 , 73 , 16 , 14 , 85 , 38 , 74 , 99 , 64 , 23 , 79 , 28 , 71 , 42 , 20 , 37 , 82 , 31 , 23 ] , <nl> + [ 51 , 96 , 39 , 65 , 46 , 71 , 56 , 13 , 29 , 68 , 53 , 86 , 45 , 33 , 51 , 49 , 12 , 91 , 21 , 21 , 76 , 85 , 2 , 17 , 98 , 15 , 46 , 12 , 60 , 21 , 88 , 30 , 92 , 83 , 44 , 59 , 42 , 50 , 27 , 88 , 46 , 86 , 94 , 73 , 45 , 54 , 23 , 24 , 14 , 10 , 94 , 21 , 20 , 34 , 23 , 51 , 4 , 83 , 99 , 75 , 90 , 63 , 60 , 16 , 22 , 33 , 83 , 70 , 11 , 32 , 10 , 50 , 29 , 30 , 83 , 46 , 11 , 5 , 31 , 17 , 86 , 42 , 49 , 1 , 44 , 63 , 28 , 60 , 7 , 78 , 95 , 40 ] , <nl> + [ 44 , 61 , 89 , 59 , 4 , 49 , 51 , 27 , 69 , 71 , 46 , 76 , 44 , 4 , 9 , 34 , 56 , 39 , 15 , 6 , 94 , 91 , 75 , 90 , 65 , 27 , 56 , 23 , 74 , 6 , 23 , 33 , 36 , 69 , 14 , 39 , 5 , 34 , 35 , 57 , 33 , 22 , 76 , 46 , 56 , 10 , 61 , 65 , 98 , 9 , 16 , 69 , 4 , 62 , 65 , 18 , 99 , 76 , 49 , 18 , 72 , 66 , 73 , 83 , 82 , 40 , 76 , 31 , 89 , 91 , 27 , 88 , 17 , 35 , 41 , 35 , 32 , 51 , 32 , 67 , 52 , 68 , 74 , 85 , 80 , 57 , 7 , 11 , 62 , 66 , 47 , 22 , 67 ] , <nl> + [ 65 , 37 , 19 , 97 , 26 , 17 , 16 , 24 , 24 , 17 , 50 , 37 , 64 , 82 , 24 , 36 , 32 , 11 , 68 , 34 , 69 , 31 , 32 , 89 , 79 , 93 , 96 , 68 , 49 , 90 , 14 , 23 , 4 , 4 , 67 , 99 , 81 , 74 , 70 , 74 , 36 , 96 , 68 , 9 , 64 , 39 , 88 , 35 , 54 , 89 , 96 , 58 , 66 , 27 , 88 , 97 , 32 , 14 , 6 , 35 , 78 , 20 , 71 , 6 , 85 , 66 , 57 , 2 , 58 , 91 , 72 , 5 , 29 , 56 , 73 , 48 , 86 , 52 , 9 , 93 , 22 , 57 , 79 , 42 , 12 , 1 , 31 , 68 , 17 , 59 , 63 , 76 , 7 , 77 ] , <nl> + [ 73 , 81 , 14 , 13 , 17 , 20 , 11 , 9 , 1 , 83 , 8 , 85 , 91 , 70 , 84 , 63 , 62 , 77 , 37 , 7 , 47 , 1 , 59 , 95 , 39 , 69 , 39 , 21 , 99 , 9 , 87 , 2 , 97 , 16 , 92 , 36 , 74 , 71 , 90 , 66 , 33 , 73 , 73 , 75 , 52 , 91 , 11 , 12 , 26 , 53 , 5 , 26 , 26 , 48 , 61 , 50 , 90 , 65 , 1 , 87 , 42 , 47 , 74 , 35 , 22 , 73 , 24 , 26 , 56 , 70 , 52 , 5 , 48 , 41 , 31 , 18 , 83 , 27 , 21 , 39 , 80 , 85 , 26 , 8 , 44 , 2 , 71 , 7 , 63 , 22 , 5 , 52 , 19 , 8 , 20 ] , <nl> + [ 17 , 25 , 21 , 11 , 72 , 93 , 33 , 49 , 64 , 23 , 53 , 82 , 3 , 13 , 91 , 65 , 85 , 2 , 40 , 5 , 42 , 31 , 77 , 42 , 5 , 36 , 6 , 54 , 4 , 58 , 7 , 76 , 87 , 83 , 25 , 57 , 66 , 12 , 74 , 33 , 85 , 37 , 74 , 32 , 20 , 69 , 3 , 97 , 91 , 68 , 82 , 44 , 19 , 14 , 89 , 28 , 85 , 85 , 80 , 53 , 34 , 87 , 58 , 98 , 88 , 78 , 48 , 65 , 98 , 40 , 11 , 57 , 10 , 67 , 70 , 81 , 60 , 79 , 74 , 72 , 97 , 59 , 79 , 47 , 30 , 20 , 54 , 80 , 89 , 91 , 14 , 5 , 33 , 36 , 79 , 39 ] , <nl> + [ 60 , 85 , 59 , 39 , 60 , 7 , 57 , 76 , 77 , 92 , 6 , 35 , 15 , 72 , 23 , 41 , 45 , 52 , 95 , 18 , 64 , 79 , 86 , 53 , 56 , 31 , 69 , 11 , 91 , 31 , 84 , 50 , 44 , 82 , 22 , 81 , 41 , 40 , 30 , 42 , 30 , 91 , 48 , 94 , 74 , 76 , 64 , 58 , 74 , 25 , 96 , 57 , 14 , 19 , 3 , 99 , 28 , 83 , 15 , 75 , 99 , 1 , 89 , 85 , 79 , 50 , 3 , 95 , 32 , 67 , 44 , 8 , 7 , 41 , 62 , 64 , 29 , 20 , 14 , 76 , 26 , 55 , 48 , 71 , 69 , 66 , 19 , 72 , 44 , 25 , 14 , 1 , 48 , 74 , 12 , 98 , 7 ] , <nl> + [ 64 , 66 , 84 , 24 , 18 , 16 , 27 , 48 , 20 , 14 , 47 , 69 , 30 , 86 , 48 , 40 , 23 , 16 , 61 , 21 , 51 , 50 , 26 , 47 , 35 , 33 , 91 , 28 , 78 , 64 , 43 , 68 , 4 , 79 , 51 , 8 , 19 , 60 , 52 , 95 , 6 , 68 , 46 , 86 , 35 , 97 , 27 , 58 , 4 , 65 , 30 , 58 , 99 , 12 , 12 , 75 , 91 , 39 , 50 , 31 , 42 , 64 , 70 , 4 , 46 , 7 , 98 , 73 , 98 , 93 , 37 , 89 , 77 , 91 , 64 , 71 , 64 , 65 , 66 , 21 , 78 , 62 , 81 , 74 , 42 , 20 , 83 , 70 , 73 , 95 , 78 , 45 , 92 , 27 , 34 , 53 , 71 , 15 ] , <nl> + [ 30 , 11 , 85 , 31 , 34 , 71 , 13 , 48 , 5 , 14 , 44 , 3 , 19 , 67 , 23 , 73 , 19 , 57 , 6 , 90 , 94 , 72 , 57 , 69 , 81 , 62 , 59 , 68 , 88 , 57 , 55 , 69 , 49 , 13 , 7 , 87 , 97 , 80 , 89 , 5 , 71 , 5 , 5 , 26 , 38 , 40 , 16 , 62 , 45 , 99 , 18 , 38 , 98 , 24 , 21 , 26 , 62 , 74 , 69 , 4 , 85 , 57 , 77 , 35 , 58 , 67 , 91 , 79 , 79 , 57 , 86 , 28 , 66 , 34 , 72 , 51 , 76 , 78 , 36 , 95 , 63 , 90 , 8 , 78 , 47 , 63 , 45 , 31 , 22 , 70 , 52 , 48 , 79 , 94 , 15 , 77 , 61 , 67 , 68 ] , <nl> + [ 23 , 33 , 44 , 81 , 80 , 92 , 93 , 75 , 94 , 88 , 23 , 61 , 39 , 76 , 22 , 3 , 28 , 94 , 32 , 6 , 49 , 65 , 41 , 34 , 18 , 23 , 8 , 47 , 62 , 60 , 3 , 63 , 33 , 13 , 80 , 52 , 31 , 54 , 73 , 43 , 70 , 26 , 16 , 69 , 57 , 87 , 83 , 31 , 3 , 93 , 70 , 81 , 47 , 95 , 77 , 44 , 29 , 68 , 39 , 51 , 56 , 59 , 63 , 7 , 25 , 70 , 7 , 77 , 43 , 53 , 64 , 3 , 94 , 42 , 95 , 39 , 18 , 1 , 66 , 21 , 16 , 97 , 20 , 50 , 90 , 16 , 70 , 10 , 95 , 69 , 29 , 6 , 25 , 61 , 41 , 26 , 15 , 59 , 63 , 35 ] ] <nl> + <nl> for i in range ( 98 , - 1 , - 1 ) : <nl> for j in range ( len ( prob [ i ] ) ) : <nl> prob [ i ] [ j ] + = max ( prob [ i + 1 ] [ j ] , prob [ i + 1 ] [ j + 1 ] ) <nl> | removed input from user | OpenGenus/cosmos | 5fee8b864bfb4f8bb25458bd507966c4d28f491e | 2018-03-04T06:43:48Z |
deleted file mode 100644 <nl> index be10b2bbb251 . . 000000000000 <nl> Binary files a / lib / cximage - 6 . 0 / zlib / contrib / blast / test . pk and / dev / null differ <nl> deleted file mode 100644 <nl> index 0bc7df76e407 . . 000000000000 <nl> Binary files a / lib / cximage - 6 . 0 / zlib / contrib / dotzlib / DotZLib . chm and / dev / null differ <nl> deleted file mode 100644 <nl> index a49ca029c63e . . 000000000000 <nl> Binary files a / lib / cximage - 6 . 0 / zlib / contrib / masmx64 / gvmat64 . obj and / dev / null differ <nl> deleted file mode 100644 <nl> index 8df5d8261609 . . 000000000000 <nl> Binary files a / lib / cximage - 6 . 0 / zlib / contrib / masmx64 / inffasx64 . obj and / dev / null differ <nl> deleted file mode 100644 <nl> index ebb326238aed . . 000000000000 <nl> Binary files a / lib / cximage - 6 . 0 / zlib / contrib / masmx86 / gvmat32 . obj and / dev / null differ <nl> deleted file mode 100644 <nl> index bd6664d111d5 . . 000000000000 <nl> Binary files a / lib / cximage - 6 . 0 / zlib / contrib / masmx86 / inffas32 . obj and / dev / null differ <nl> deleted file mode 100644 <nl> index 637b7be6f5bf . . 000000000000 <nl> Binary files a / lib / cximage - 6 . 0 / zlib / contrib / puff / zeros . raw and / dev / null differ <nl> | Merge pull request from stefansaraev / cximage | xbmc/xbmc | c5540d71f6d48fc01cc90b7b02080eada4809b39 | 2016-01-04T19:56:20Z |
mmm a / stdlib / private / StdlibUnittest / StdlibUnittest . swift . gyb <nl> ppp b / stdlib / private / StdlibUnittest / StdlibUnittest . swift . gyb <nl> public struct SourceLocStack { <nl> func _printStackTrace ( stackTrace : SourceLocStack ? ) { <nl> guard let s = stackTrace where ! s . locs . isEmpty else { return } <nl> print ( " stacktrace : " ) <nl> - for ( i , loc ) in s . locs . reverse ( ) . enumerated { <nl> + for ( i , loc ) in s . locs . reversed ( ) . enumerated { <nl> let comment = ( loc . comment ! = nil ) ? " ; \ ( loc . comment ! ) " : " " <nl> print ( " # \ ( i ) : \ ( loc . file ) : \ ( loc . line ) \ ( comment ) " ) <nl> } <nl> mmm a / stdlib / public / core / Reverse . swift <nl> ppp b / stdlib / public / core / Reverse . swift <nl> extension _ReverseCollection <nl> / / / A Collection that presents the elements of its ` Base ` collection <nl> / / / in reverse order . <nl> / / / <nl> - / / / - Note : This type is the result of ` x . reverse ( ) ` where ` x ` is a <nl> + / / / - Note : This type is the result of ` x . reversed ( ) ` where ` x ` is a <nl> / / / collection having bidirectional indices . <nl> / / / <nl> - / / / The ` reverse ( ) ` method is always lazy when applied to a collection <nl> + / / / The ` reversed ( ) ` method is always lazy when applied to a collection <nl> / / / with bidirectional indices , but does not implicitly confer <nl> / / / laziness on algorithms applied to its result . In other words , for <nl> / / / ordinary collections ` c ` having bidirectional indices : <nl> / / / <nl> - / / / * ` c . reverse ( ) ` does not create new storage <nl> - / / / * ` c . reverse ( ) . map ( f ) ` maps eagerly and returns a new array <nl> - / / / * ` c . lazy . reverse ( ) . map ( f ) ` maps lazily and returns a ` LazyMapCollection ` <nl> + / / / * ` c . reversed ( ) ` does not create new storage <nl> + / / / * ` c . reversed ( ) . map ( f ) ` maps eagerly and returns a new array <nl> + / / / * ` c . lazy . reversed ( ) . map ( f ) ` maps lazily and returns a ` LazyMapCollection ` <nl> / / / <nl> / / / - See also : ` ReverseRandomAccessCollection ` <nl> public struct ReverseCollection < <nl> public struct ReverseCollection < <nl> / / / A Collection that presents the elements of its ` Base ` collection <nl> / / / in reverse order . <nl> / / / <nl> - / / / - Note : This type is the result of ` x . reverse ( ) ` where ` x ` is a <nl> + / / / - Note : This type is the result of ` x . reversed ( ) ` where ` x ` is a <nl> / / / collection having random access indices . <nl> / / / - See also : ` ReverseCollection ` <nl> public struct ReverseRandomAccessCollection < <nl> extension Collection where Index : BidirectionalIndex { <nl> / / / <nl> / / / - Complexity : O ( 1 ) <nl> @ warn_unused_result <nl> - public func reverse ( ) - > ReverseCollection < Self > { <nl> + public func reversed ( ) - > ReverseCollection < Self > { <nl> return ReverseCollection ( self ) <nl> } <nl> } <nl> extension Collection where Index : RandomAccessIndex { <nl> / / / <nl> / / / - Complexity : O ( 1 ) <nl> @ warn_unused_result <nl> - public func reverse ( ) - > ReverseRandomAccessCollection < Self > { <nl> + public func reversed ( ) - > ReverseRandomAccessCollection < Self > { <nl> return ReverseRandomAccessCollection ( self ) <nl> } <nl> } <nl> where Index : BidirectionalIndex , Elements . Index : BidirectionalIndex { <nl> / / / <nl> / / / - Complexity : O ( 1 ) <nl> @ warn_unused_result <nl> - public func reverse ( ) - > LazyCollection < <nl> + public func reversed ( ) - > LazyCollection < <nl> ReverseCollection < Elements > <nl> > { <nl> return ReverseCollection ( elements ) . lazy <nl> where Index : RandomAccessIndex , Elements . Index : RandomAccessIndex { <nl> / / / <nl> / / / - Complexity : O ( 1 ) <nl> @ warn_unused_result <nl> - public func reverse ( ) - > LazyCollection < <nl> + public func reversed ( ) - > LazyCollection < <nl> ReverseRandomAccessCollection < Elements > <nl> > { <nl> return ReverseRandomAccessCollection ( elements ) . lazy <nl> mmm a / stdlib / public / core / SequenceAlgorithms . swift . gyb <nl> ppp b / stdlib / public / core / SequenceAlgorithms . swift . gyb <nl> extension Sequence { <nl> } <nl> <nl> / / = = = mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - = = = / / <nl> - / / reverse ( ) <nl> + / / reversed ( ) <nl> / / = = = mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - = = = / / <nl> <nl> extension Sequence { <nl> extension Sequence { <nl> / / / <nl> / / / Complexity : O ( ` self . length ` ) . <nl> @ warn_unused_result <nl> - public func reverse ( ) - > [ $ { GElement } ] { <nl> + public func reversed ( ) - > [ $ { GElement } ] { <nl> / / FIXME ( performance ) : optimize to 1 pass ? But Array ( self ) can be <nl> / / optimized to a memcpy ( ) sometimes . Those cases are usually collections , <nl> / / though . <nl> mmm a / test / 1_stdlib / Collection . swift <nl> ppp b / test / 1_stdlib / Collection . swift <nl> print ( " " ) <nl> / / < rdar : / / problem / 15772601 > Type checking failure <nl> / / CHECK : raboof <nl> let i = foobar . indices <nl> - let r = i . lazy . reverse ( ) <nl> + let r = i . lazy . reversed ( ) <nl> for a in PermutationGenerator ( elements : foobar , indices : r ) { <nl> <nl> print ( a , terminator : " " ) <nl> func isPalindrome0 < <nl> <nl> var a = seq . indices <nl> var i = seq . indices <nl> - var ir = i . lazy . reverse ( ) <nl> + var ir = i . lazy . reversed ( ) <nl> var b = ir . iterator ( ) <nl> for i in a { <nl> if seq [ i ] ! = seq [ b . next ( ) ! ] { <nl> func isPalindrome1 < <nl> > ( seq : S ) - > Bool { <nl> <nl> var a = PermutationGenerator ( elements : seq , indices : seq . indices ) <nl> - var b = seq . lazy . reverse ( ) . iterator ( ) <nl> + var b = seq . lazy . reversed ( ) . iterator ( ) <nl> for nextChar in a { <nl> if nextChar ! = b . next ( ) ! { <nl> return false <nl> func isPalindrome1_5 < <nl> S . Iterator . Element : Equatable <nl> > ( seq : S ) - > Bool { <nl> <nl> - var b = seq . lazy . reverse ( ) . iterator ( ) <nl> + var b = seq . lazy . reversed ( ) . iterator ( ) <nl> for nextChar in seq { <nl> if nextChar ! = b . next ( ) ! { <nl> return false <nl> func isPalindrome4 < <nl> / / FIXME : separate ri from the expression below pending <nl> / / < rdar : / / problem / 15772601 > Type checking failure <nl> var i = seq . indices <nl> - let ri = i . lazy . reverse ( ) <nl> + let ri = i . lazy . reversed ( ) <nl> var b = PermutationGenerator ( elements : seq , indices : ri ) <nl> for nextChar in a { <nl> if nextChar ! = b . next ( ) ! { <nl> mmm a / test / 1_stdlib / ExistentialCollection . swift <nl> ppp b / test / 1_stdlib / ExistentialCollection . swift <nl> tests . test ( " ForwardCollection " ) { <nl> <nl> tests . test ( " BidirectionalCollection " ) { <nl> let a0 : ContiguousArray = [ 1 , 2 , 3 , 5 , 8 , 13 , 21 ] <nl> - let fc0 = AnyForwardCollection ( a0 . lazy . reverse ( ) ) <nl> + let fc0 = AnyForwardCollection ( a0 . lazy . reversed ( ) ) <nl> <nl> let bc0_ = AnyBidirectionalCollection ( fc0 ) / / upgrade ! <nl> expectNotEmpty ( bc0_ ) <nl> let bc0 = bc0_ ! <nl> expectTrue ( fc0 = = = bc0 ) <nl> <nl> - let fc1 = AnyForwardCollection ( a0 . lazy . reverse ( ) ) / / new collection <nl> + let fc1 = AnyForwardCollection ( a0 . lazy . reversed ( ) ) / / new collection <nl> expectFalse ( fc1 = = = fc0 ) <nl> <nl> let fc2 = AnyForwardCollection ( bc0 ) / / downgrade <nl> expectTrue ( fc2 = = = bc0 ) <nl> <nl> - let a1 = ContiguousArray ( bc0 . lazy . reverse ( ) ) <nl> + let a1 = ContiguousArray ( bc0 . lazy . reversed ( ) ) <nl> expectEqual ( a0 , a1 ) <nl> for e in a0 { <nl> let i = bc0 . indexOf ( e ) <nl> tests . test ( " BidirectionalCollection " ) { <nl> <nl> tests . test ( " RandomAccessCollection " ) { <nl> let a0 : ContiguousArray = [ 1 , 2 , 3 , 5 , 8 , 13 , 21 ] <nl> - let fc0 = AnyForwardCollection ( a0 . lazy . reverse ( ) ) <nl> + let fc0 = AnyForwardCollection ( a0 . lazy . reversed ( ) ) <nl> let rc0_ = AnyRandomAccessCollection ( fc0 ) / / upgrade ! <nl> expectNotEmpty ( rc0_ ) <nl> let rc0 = rc0_ ! <nl> tests . test ( " RandomAccessCollection " ) { <nl> let fc1 = AnyBidirectionalCollection ( rc0 ) / / downgrade <nl> expectTrue ( fc1 = = = rc0 ) <nl> <nl> - let a1 = ContiguousArray ( rc0 . lazy . reverse ( ) ) <nl> + let a1 = ContiguousArray ( rc0 . lazy . reversed ( ) ) <nl> expectEqual ( a0 , a1 ) <nl> for e in a0 { <nl> let i = rc0 . indexOf ( e ) <nl> mmm a / test / 1_stdlib / Lazy . swift . gyb <nl> ppp b / test / 1_stdlib / Lazy . swift . gyb <nl> LazyTestSuite . test ( " LazyCollection . array " ) { <nl> } <nl> <nl> % if ReversedType is not None : <nl> - LazyTestSuite . test ( " LazyCollection . reverse " ) { <nl> + LazyTestSuite . test ( " LazyCollection . reversed " ) { <nl> let base = Minimal $ { traversal } Collection ( <nl> elements : [ 0 , 30 , 10 , 90 ] . map ( OpaqueValue . init ) , <nl> underestimatedLength : . Value ( 42 ) ) <nl> let lazyCollection = base . lazy <nl> - var reversed = lazyCollection . reverse ( ) <nl> + var reversed = lazyCollection . reversed ( ) <nl> expectType ( <nl> LazyCollection < $ { ReversedType } < Minimal $ { traversal } Collection < OpaqueValue < Int > > > > . self , <nl> & reversed ) <nl> LazyTestSuite . test ( " LazyCollection . reverse " ) { <nl> [ 90 , 10 , 30 , 0 ] . map ( OpaqueValue . init ) as [ OpaqueValue < Int > ] , <nl> reversed ) { $ 0 . value = = $ 1 . value } <nl> <nl> - var reversedTwice = reversed . reverse ( ) <nl> + var reversedTwice = reversed . reversed ( ) <nl> expectType ( <nl> LazyCollection < $ { ReversedType } < $ { ReversedType } < Minimal $ { traversal } Collection < OpaqueValue < Int > > > > > . self , <nl> & reversedTwice ) <nl> tests . test ( " ReverseCollection " ) { <nl> let r = 0 . . < 12 <nl> checkRandomAccessCollection ( <nl> expected , <nl> - r . reverse ( ) ) <nl> + r . reversed ( ) ) <nl> <nl> / / Check that the reverse collection is still eager <nl> do { <nl> var calls = 0 <nl> - _ = r . reverse ( ) . map { _ in + + calls } <nl> + _ = r . reversed ( ) . map { _ in + + calls } <nl> expectEqual ( r . length , calls ) <nl> } <nl> <nl> checkBidirectionalCollection ( <nl> " raboof " . characters , <nl> - " foobar " . characters . reverse ( ) ) <nl> + " foobar " . characters . reversed ( ) ) <nl> <nl> / / Check that the reverse collection is still eager <nl> do { <nl> var calls = 0 <nl> - _ = " foobar " . characters . reverse ( ) . map { _ in + + calls } <nl> + _ = " foobar " . characters . reversed ( ) . map { _ in + + calls } <nl> expectEqual ( " foobar " . characters . length , calls ) <nl> } <nl> } <nl> tests . test ( " ReverseCollection / Lazy " ) { <nl> typealias LazyReversedBase = LazyCollection < <nl> ReverseRandomAccessCollection < Base > > <nl> <nl> - let reversed = base . reverse ( ) <nl> + let reversed = base . reversed ( ) <nl> ExpectType < LazyReversedBase > . test ( reversed ) <nl> <nl> var calls = 0 <nl> tests . test ( " ReverseCollection / Lazy " ) { <nl> typealias LazyReversedBase = LazyCollection < <nl> ReverseCollection < Base > > <nl> <nl> - let reversed = base . reverse ( ) <nl> + let reversed = base . reversed ( ) <nl> ExpectType < LazyReversedBase > . test ( reversed ) <nl> <nl> var calls = 0 <nl> mmm a / test / 1_stdlib / NSStringAPI . swift <nl> ppp b / test / 1_stdlib / NSStringAPI . swift <nl> func checkHasPrefixHasSuffix ( <nl> let expectHasPrefix = lhsNFDGraphemeClusters . startsWith ( <nl> rhsNFDGraphemeClusters , isEquivalent : ( = = ) ) <nl> let expectHasSuffix = <nl> - lhsNFDGraphemeClusters . lazy . reverse ( ) . startsWith ( <nl> - rhsNFDGraphemeClusters . lazy . reverse ( ) , isEquivalent : ( = = ) ) <nl> + lhsNFDGraphemeClusters . lazy . reversed ( ) . startsWith ( <nl> + rhsNFDGraphemeClusters . lazy . reversed ( ) , isEquivalent : ( = = ) ) <nl> <nl> expectEqual ( expectHasPrefix , lhs . hasPrefix ( rhs ) , stackTrace : stackTrace ) <nl> expectEqual ( <nl> mmm a / test / 1_stdlib / Range . swift <nl> ppp b / test / 1_stdlib / Range . swift <nl> var RangeTestSuite = TestSuite ( " Range " ) <nl> RangeTestSuite . test ( " ReverseRange " ) { <nl> / / We no longer have a ReverseRange , but we can still make sure that <nl> / / lazy reversal works correctly . <nl> - expectEqualSequence ( ( 0 . . < 10 ) . lazy . reverse ( ) , [ 9 , 8 , 7 , 6 , 5 , 4 , 3 , 2 , 1 , 0 ] ) <nl> + expectEqualSequence ( ( 0 . . < 10 ) . lazy . reversed ( ) , [ 9 , 8 , 7 , 6 , 5 , 4 , 3 , 2 , 1 , 0 ] ) <nl> } <nl> <nl> func isEquatable < E : Equatable > ( e : E ) { } <nl> mmm a / test / Constraints / generics . swift <nl> ppp b / test / Constraints / generics . swift <nl> func f1 < <nl> S : Collection <nl> where S . Index : BidirectionalIndex <nl> > ( seq : S ) { <nl> - let x = ( seq . indices ) . lazy . reverse ( ) <nl> + let x = ( seq . indices ) . lazy . reversed ( ) <nl> SomeIterator ( elements : seq , indices : x ) / / expected - warning { { unused } } <nl> - SomeIterator ( elements : seq , indices : seq . indices . reverse ( ) ) / / expected - warning { { unused } } <nl> + SomeIterator ( elements : seq , indices : seq . indices . reversed ( ) ) / / expected - warning { { unused } } <nl> } <nl> <nl> / / < rdar : / / problem / 16078944 > <nl> mmm a / test / IDE / complete_from_stdlib . swift <nl> ppp b / test / IDE / complete_from_stdlib . swift <nl> func testArchetypeReplacement2 < BAR : Equatable > ( a : [ BAR ] ) { <nl> / / PRIVATE_NOMINAL_MEMBERS_6 - DAG : Decl [ InstanceMethod ] / Super : min ( { # ( isOrderedBefore ) : ( Equatable , Equatable ) throws - > Bool # # ( Equatable , Equatable ) throws - > Bool # } ) [ ' rethrows ' ] [ # Equatable ? # ] { { ; name = . + } } <nl> / / PRIVATE_NOMINAL_MEMBERS_6 - DAG : Decl [ InstanceMethod ] / Super : max ( { # ( isOrderedBefore ) : ( Equatable , Equatable ) throws - > Bool # # ( Equatable , Equatable ) throws - > Bool # } ) [ ' rethrows ' ] [ # Equatable ? # ] { { ; name = . + } } <nl> / / PRIVATE_NOMINAL_MEMBERS_6 - DAG : Decl [ InstanceMethod ] / Super : reduce ( { # ( initial ) : T # } , { # combine : ( T , Equatable ) throws - > T # # ( T , Equatable ) throws - > T # } ) [ ' rethrows ' ] [ # T # ] { { ; name = . + } } <nl> - / / PRIVATE_NOMINAL_MEMBERS_6 - DAG : Decl [ InstanceMethod ] / Super : reverse ( ) [ # ReverseCollection < [ Equatable ] > # ] { { ; name = . + } } <nl> - / / PRIVATE_NOMINAL_MEMBERS_6 - DAG : Decl [ InstanceMethod ] / Super : reverse ( ) [ # ReverseRandomAccessCollection < [ Equatable ] > # ] { { ; name = . + } } <nl> + / / PRIVATE_NOMINAL_MEMBERS_6 - DAG : Decl [ InstanceMethod ] / Super : reversed ( ) [ # ReverseCollection < [ Equatable ] > # ] { { ; name = . + } } <nl> + / / PRIVATE_NOMINAL_MEMBERS_6 - DAG : Decl [ InstanceMethod ] / Super : reversed ( ) [ # ReverseRandomAccessCollection < [ Equatable ] > # ] { { ; name = . + } } <nl> / / PRIVATE_NOMINAL_MEMBERS_6 - DAG : Decl [ InstanceMethod ] / Super : flatMap ( { # ( transform ) : ( Equatable ) throws - > Sequence # # ( Equatable ) throws - > Sequence # } ) [ ' rethrows ' ] [ # [ S . Iterator . Element ] # ] { { ; name = . + } } <nl> <nl> func testArchetypeReplacement3 ( a : [ Int ] ) { <nl> mmm a / test / Interpreter / SDK / Accelerate . swift <nl> ppp b / test / Interpreter / SDK / Accelerate . swift <nl> extension vU1024 : IntegerLiteralConvertible , CustomStringConvertible , Equatable <nl> ( intermediate , digit ) = quorem ( intermediate , 10 ) <nl> digits . append ( Character ( UnicodeScalar ( Int ( digit ) + 48 ) ) ) <nl> } while intermediate ! = 0 <nl> - return String ( digits . reverse ( ) ) <nl> + return String ( digits . reversed ( ) ) <nl> } <nl> } <nl> <nl> mmm a / test / Interpreter / algorithms . swift <nl> ppp b / test / Interpreter / algorithms . swift <nl> fib ( ) <nl> <nl> / / From : < rdar : / / problem / 17796401 > <nl> / / FIXME : < rdar : / / problem / 21993692 > type checker too slow <nl> - let two_oneA = [ 1 , 2 , 3 , 4 ] . lazy . reverse ( ) <nl> + let two_oneA = [ 1 , 2 , 3 , 4 ] . lazy . reversed ( ) <nl> let two_one = Array ( two_oneA . filter { $ 0 % 2 = = 0 } . map { $ 0 / 2 } ) <nl> print ( two_one ) <nl> / / CHECK : [ 2 , 1 ] <nl> mmm a / validation - test / compiler_crashers_2_fixed / 0019 - rdar21511651 . swift <nl> ppp b / validation - test / compiler_crashers_2_fixed / 0019 - rdar21511651 . swift <nl> extension Collection <nl> <nl> <nl> <nl> - / / / The lazy ` Collection ` returned by ` reverse ( c ) ` where ` c ` is a <nl> + / / / The lazy ` Collection ` returned by ` c . reversed ( ) ` where ` c ` is a <nl> / / / ` Collection ` with an ` Index ` conforming to ` $ { IndexProtocol } ` . <nl> public struct _prext_ReverseCollection < Base : Collection > <nl> : Collection , __prext_ReverseCollection { <nl> mmm a / validation - test / stdlib / ArrayNew . swift . gyb <nl> ppp b / validation - test / stdlib / ArrayNew . swift . gyb <nl> ArrayTestSuite . test ( " $ { Kind } / popLast " ) { <nl> while let element = a . popLast ( ) { <nl> popped . append ( element ) <nl> } <nl> - expectEqualSequence ( [ 1010 , 2020 , 3030 ] , popped . reverse ( ) ) <nl> + expectEqualSequence ( [ 1010 , 2020 , 3030 ] , popped . reversed ( ) ) <nl> expectTrue ( a . isEmpty ) <nl> } <nl> } <nl> mmm a / validation - test / stdlib / Concatenate . swift <nl> ppp b / validation - test / stdlib / Concatenate . swift <nl> for ( expected , source ) in samples { <nl> ConcatenateTests . test ( " reverse - \ ( source ) " ) { <nl> / / FIXME : separate ' expected ' and ' reversed ' variables are a workaround <nl> / / for : < rdar : / / problem / 20789500 > <nl> - let expected = ContiguousArray ( expected . lazy . reverse ( ) ) <nl> - let reversed = source . flatten ( ) . reverse ( ) <nl> + let expected = ContiguousArray ( expected . lazy . reversed ( ) ) <nl> + let reversed = source . flatten ( ) . reversed ( ) <nl> checkBidirectionalCollection ( expected , reversed ) <nl> } <nl> <nl> mmm a / validation - test / stdlib / SequenceType . swift . gyb <nl> ppp b / validation - test / stdlib / SequenceType . swift . gyb <nl> SequenceTypeTests . test ( " reduce " ) { <nl> } <nl> <nl> / / = = = mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - = = = / / <nl> - / / reverse ( ) <nl> + / / reversed ( ) <nl> / / = = = mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - = = = / / <nl> <nl> SequenceTypeTests . test ( " reverse / Sequence " ) { <nl> for test in reverseTests { <nl> let s = MinimalSequence < OpaqueValue < Int > > ( <nl> elements : test . sequence . map ( OpaqueValue . init ) ) <nl> - var result = s . reverse ( ) <nl> + var result = s . reversed ( ) <nl> expectType ( [ OpaqueValue < Int > ] . self , & result ) <nl> expectEqual ( <nl> test . expected , result . map { $ 0 . value } , <nl> SequenceTypeTests . test ( " reverse / WhereIndexIsBidirectional , BidirectionalReverseVi <nl> for test in reverseTests { <nl> let s = MinimalBidirectionalCollection < OpaqueValue < Int > > ( <nl> elements : test . sequence . map ( OpaqueValue . init ) ) <nl> - var result = s . reverse ( ) <nl> + var result = s . reversed ( ) <nl> expectType ( <nl> ReverseCollection < MinimalBidirectionalCollection < OpaqueValue < Int > > > . self , <nl> & result ) <nl> SequenceTypeTests . test ( " reverse / WhereIndexIsRandomAccess , RandomAccessReverseView <nl> for test in reverseTests { <nl> let s = MinimalRandomAccessCollection < OpaqueValue < Int > > ( <nl> elements : test . sequence . map ( OpaqueValue . init ) ) <nl> - var result = s . reverse ( ) <nl> + var result = s . reversed ( ) <nl> expectType ( <nl> ReverseRandomAccessCollection < MinimalRandomAccessCollection < OpaqueValue < Int > > > . self , <nl> & result ) <nl> | reverse ( ) = > reversed ( ) | apple/swift | 50371821fe59895a7e28cfa96c1915239fd6da1c | 2015-12-19T00:20:01Z |
mmm a / tensorflow / core / BUILD <nl> ppp b / tensorflow / core / BUILD <nl> cc_library ( <nl> " lib / monitoring / collected_metrics . h " , <nl> " lib / monitoring / collection_registry . h " , <nl> " lib / monitoring / counter . h " , <nl> + " lib / monitoring / mobile_counter . h " , <nl> " lib / monitoring / metric_def . h " , <nl> " lib / random / distribution_sampler . h " , <nl> " lib / random / philox_random . h " , <nl> mmm a / tensorflow / core / lib / monitoring / counter . h <nl> ppp b / tensorflow / core / lib / monitoring / counter . h <nl> See the License for the specific language governing permissions and <nl> limitations under the License . <nl> = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = * / <nl> <nl> - # ifndef THIRD_PARTY_TENSORFLOW_CORE_LIB_MONITORING_ACCUMULATOR_H_ <nl> - # define THIRD_PARTY_TENSORFLOW_CORE_LIB_MONITORING_ACCUMULATOR_H_ <nl> + # ifndef THIRD_PARTY_TENSORFLOW_CORE_LIB_MONITORING_COUNTER_H_ <nl> + # define THIRD_PARTY_TENSORFLOW_CORE_LIB_MONITORING_COUNTER_H_ <nl> + <nl> + / / We replace this implementation with a null implementation for mobile <nl> + / / platforms . <nl> + # include " tensorflow / core / platform / platform . h " <nl> + # ifdef IS_MOBILE_PLATFORM <nl> + # include " tensorflow / core / lib / monitoring / mobile / counter . h " <nl> + # else <nl> <nl> # include < array > <nl> # include < atomic > <nl> class CounterCell { <nl> TF_DISALLOW_COPY_AND_ASSIGN ( CounterCell ) ; <nl> } ; <nl> <nl> - / / A stateful class for updating a cumulative metric . <nl> + / / A stateful class for updating a cumulative integer metric . <nl> / / <nl> / / This class encapsulates a set of values ( or a single value for a label - less <nl> / / metric ) . Each value is identified by a tuple of labels . The class allows the <nl> CounterCell * Counter < NumLabels > : : GetCell ( const Labels & . . . labels ) <nl> } / / namespace monitoring <nl> } / / namespace tensorflow <nl> <nl> - # endif / / THIRD_PARTY_TENSORFLOW_CORE_LIB_MONITORING_ACCUMULATOR_H_ <nl> + # endif / / IS_MOBILE_PLATFORM <nl> + # endif / / THIRD_PARTY_TENSORFLOW_CORE_LIB_MONITORING_COUNTER_H_ <nl> new file mode 100644 <nl> index 0000000000000 . . 5847249248d3a <nl> mmm / dev / null <nl> ppp b / tensorflow / core / lib / monitoring / mobile_counter . h <nl> <nl> + / * Copyright 2016 The TensorFlow Authors . All Rights Reserved . <nl> + <nl> + Licensed under the Apache License , Version 2 . 0 ( the " License " ) ; <nl> + you may not use this file except in compliance with the License . <nl> + You may obtain a copy of the License at <nl> + <nl> + http : / / www . apache . org / licenses / LICENSE - 2 . 0 <nl> + <nl> + Unless required by applicable law or agreed to in writing , software <nl> + distributed under the License is distributed on an " AS IS " BASIS , <nl> + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND , either express or implied . <nl> + See the License for the specific language governing permissions and <nl> + limitations under the License . <nl> + = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = * / <nl> + <nl> + / / Null implementation of the Counter metric for mobile platforms . <nl> + <nl> + # ifndef THIRD_PARTY_TENSORFLOW_CORE_LIB_MONITORING_MOBILE_COUNTER_H_ <nl> + # define THIRD_PARTY_TENSORFLOW_CORE_LIB_MONITORING_MOBILE_COUNTER_H_ <nl> + <nl> + # include " tensorflow / core / lib / monitoring / metric_def . h " <nl> + # include " tensorflow / core / platform / macros . h " <nl> + <nl> + namespace tensorflow { <nl> + namespace monitoring { <nl> + <nl> + / / CounterCell which has a null implementation . <nl> + class CounterCell { <nl> + public : <nl> + CounterCell ( ) { } <nl> + ~ CounterCell ( ) { } <nl> + <nl> + void IncrementBy ( int64 step ) { } <nl> + int64 value ( ) const { return 0 ; } <nl> + <nl> + private : <nl> + TF_DISALLOW_COPY_AND_ASSIGN ( CounterCell ) ; <nl> + } ; <nl> + <nl> + / / Counter which has a null implementation . <nl> + template < int NumLabels > <nl> + class Counter { <nl> + public : <nl> + ~ Counter ( ) { } <nl> + <nl> + static Counter * New ( <nl> + const MetricDef < MetricKind : : kCumulative , int64 , NumLabels > & metric_def ) { <nl> + return new Counter < NumLabels > ( ) ; <nl> + } <nl> + <nl> + template < typename . . . Labels > <nl> + CounterCell * GetCell ( const Labels & . . . labels ) { <nl> + return & default_counter_cell_ ; <nl> + } <nl> + <nl> + private : <nl> + Counter ( ) { } <nl> + <nl> + CounterCell default_counter_cell_ ; <nl> + <nl> + TF_DISALLOW_COPY_AND_ASSIGN ( Counter ) ; <nl> + } ; <nl> + <nl> + } / / namespace monitoring <nl> + } / / namespace tensorflow <nl> + <nl> + # endif / / THIRD_PARTY_TENSORFLOW_CORE_LIB_MONITORING_MOBILE_COUNTER_H_ <nl> | Adds a null implementation for Counter metric for mobile platforms . | tensorflow/tensorflow | 9f17b708874d0e794e4be9867acfefba9e1dbe4b | 2016-08-12T04:47:16Z |
mmm a / cocos / 3d / CCSprite3D . cpp <nl> ppp b / cocos / 3d / CCSprite3D . cpp <nl> const BlendFunc & Sprite3D : : getBlendFunc ( ) const <nl> return _blend ; <nl> } <nl> <nl> + void Sprite3D : : setCullFace ( GLenum cullFace ) <nl> + { <nl> + for ( auto & it : _meshCommands ) { <nl> + it . setCullFace ( cullFace ) ; <nl> + } <nl> + } <nl> + <nl> + void Sprite3D : : setCullFaceEnabled ( bool enable ) <nl> + { <nl> + for ( auto & it : _meshCommands ) { <nl> + it . setCullFaceEnabled ( enable ) ; <nl> + } <nl> + } <nl> + <nl> NS_CC_END <nl> mmm a / cocos / 3d / CCSprite3D . h <nl> ppp b / cocos / 3d / CCSprite3D . h <nl> class CC_DLL Sprite3D : public Node , public BlendProtocol <nl> / / overrides <nl> virtual void setBlendFunc ( const BlendFunc & blendFunc ) override ; <nl> virtual const BlendFunc & getBlendFunc ( ) const override ; <nl> + <nl> + / / set which face is going to cull , GL_BACK , GL_FRONT , GL_FRONT_AND_BACK , default GL_BACK <nl> + void setCullFace ( GLenum cullFace ) ; <nl> + / / set cull face enable or not <nl> + void setCullFaceEnabled ( bool enable ) ; <nl> <nl> CC_CONSTRUCTOR_ACCESS : <nl> <nl> mmm a / cocos / renderer / CCMeshCommand . cpp <nl> ppp b / cocos / renderer / CCMeshCommand . cpp <nl> <nl> <nl> NS_CC_BEGIN <nl> <nl> + / / render state <nl> + static bool s_cullFaceEnabled = false ; <nl> + static GLenum s_cullFace = 0 ; <nl> + static bool s_depthTestEnabled = false ; <nl> + static bool s_depthWriteEnabled = false ; <nl> + <nl> MeshCommand : : MeshCommand ( ) <nl> : _textureID ( 0 ) <nl> , _blendType ( BlendFunc : : DISABLE ) <nl> void MeshCommand : : init ( float globalOrder , <nl> _primitive = primitive ; <nl> _indexFormat = indexFormat ; <nl> _indexCount = indexCount ; <nl> - _mv = mv ; <nl> + _mv . set ( mv ) ; <nl> } <nl> <nl> void MeshCommand : : setCullFaceEnabled ( bool enable ) <nl> MeshCommand : : ~ MeshCommand ( ) <nl> <nl> void MeshCommand : : applyRenderState ( ) <nl> { <nl> - if ( _cullFaceEnabled ) <nl> + if ( _cullFaceEnabled & & ! s_cullFaceEnabled ) <nl> { <nl> glEnable ( GL_CULL_FACE ) ; <nl> - glCullFace ( _cullFace ) ; <nl> + if ( s_cullFace ! = _cullFace ) <nl> + { <nl> + glCullFace ( _cullFace ) ; <nl> + s_cullFace = _cullFace ; <nl> + } <nl> + s_cullFaceEnabled = true ; <nl> } <nl> - if ( _depthTestEnabled ) <nl> + if ( _depthTestEnabled & & ! s_depthTestEnabled ) <nl> { <nl> glEnable ( GL_DEPTH_TEST ) ; <nl> + s_depthTestEnabled = true ; <nl> } <nl> - if ( _depthWriteEnabled ) <nl> + if ( _depthWriteEnabled & & ! s_depthWriteEnabled ) <nl> { <nl> glDepthMask ( GL_TRUE ) ; <nl> + s_depthWriteEnabled = true ; <nl> } <nl> } <nl> <nl> void MeshCommand : : restoreRenderState ( ) <nl> { <nl> - if ( _cullFaceEnabled ) <nl> + if ( s_cullFaceEnabled ) <nl> { <nl> glDisable ( GL_CULL_FACE ) ; <nl> + s_cullFaceEnabled = false ; <nl> } <nl> - if ( _depthTestEnabled ) <nl> + if ( s_depthTestEnabled ) <nl> { <nl> glDisable ( GL_DEPTH_TEST ) ; <nl> + s_depthTestEnabled = false ; <nl> } <nl> - if ( _depthWriteEnabled ) <nl> + if ( s_depthWriteEnabled ) <nl> { <nl> glDepthMask ( GL_FALSE ) ; <nl> + s_depthWriteEnabled = false ; <nl> } <nl> + s_cullFace = 0 ; <nl> } <nl> <nl> void MeshCommand : : genMaterialID ( GLuint texID , void * glProgramState , void * mesh , const BlendFunc & blend ) <nl> void MeshCommand : : MatrixPalleteCallBack ( GLProgram * glProgram , Uniform * uniform ) <nl> <nl> void MeshCommand : : preBatchDraw ( ) <nl> { <nl> - / / set render state <nl> - applyRenderState ( ) ; <nl> / / Set material <nl> GL : : bindTexture2D ( _textureID ) ; <nl> GL : : blendFunc ( _blendType . src , _blendType . dst ) ; <nl> void MeshCommand : : preBatchDraw ( ) <nl> } <nl> void MeshCommand : : batchDraw ( ) <nl> { <nl> + / / set render state <nl> + applyRenderState ( ) ; <nl> + <nl> _glProgramState - > setUniformVec4 ( " u_color " , _displayColor ) ; <nl> <nl> if ( _matrixPaletteSize & & _matrixPalette ) <nl> mmm a / tests / cpp - tests / Classes / Sprite3DTest / Sprite3DTest . cpp <nl> ppp b / tests / cpp - tests / Classes / Sprite3DTest / Sprite3DTest . cpp <nl> static std : : function < Layer * ( ) > createFunctions [ ] = <nl> CL ( Sprite3DWithSkinOutlineTest ) , <nl> # endif <nl> CL ( Animate3DTest ) , <nl> - CL ( AttachmentTest ) <nl> + CL ( AttachmentTest ) , <nl> + CL ( Sprite3DMirrorTest ) <nl> } ; <nl> <nl> # define MAX_LAYER ( sizeof ( createFunctions ) / sizeof ( createFunctions [ 0 ] ) ) <nl> void AttachmentTest : : onTouchesEnded ( const std : : vector < Touch * > & touches , Event * e <nl> } <nl> _hasWeapon = ! _hasWeapon ; <nl> } <nl> + <nl> + Sprite3DMirrorTest : : Sprite3DMirrorTest ( ) <nl> + : _sprite ( nullptr ) <nl> + , _mirrorSprite ( nullptr ) <nl> + { <nl> + auto s = Director : : getInstance ( ) - > getWinSize ( ) ; <nl> + addNewSpriteWithCoords ( Vec2 ( s . width / 2 , s . height / 2 ) ) ; <nl> + } <nl> + std : : string Sprite3DMirrorTest : : title ( ) const <nl> + { <nl> + return " Sprite3D Mirror Test " ; <nl> + } <nl> + std : : string Sprite3DMirrorTest : : subtitle ( ) const <nl> + { <nl> + return " " ; <nl> + } <nl> + <nl> + void Sprite3DMirrorTest : : addNewSpriteWithCoords ( Vec2 p ) <nl> + { <nl> + std : : string fileName = " Sprite3DTest / orc . c3b " ; <nl> + auto sprite = Sprite3D : : create ( fileName ) ; <nl> + sprite - > setScale ( 5 ) ; <nl> + sprite - > setRotation3D ( Vec3 ( 0 , 180 , 0 ) ) ; <nl> + addChild ( sprite ) ; <nl> + sprite - > setPosition ( Vec2 ( p . x - 80 , p . y ) ) ; <nl> + <nl> + / / test attach <nl> + auto sp = Sprite3D : : create ( " Sprite3DTest / axe . c3b " ) ; <nl> + sprite - > getAttachNode ( " Bip001 R Hand " ) - > addChild ( sp ) ; <nl> + <nl> + auto animation = Animation3D : : create ( fileName ) ; <nl> + if ( animation ) <nl> + { <nl> + auto animate = Animate3D : : create ( animation ) ; <nl> + <nl> + sprite - > runAction ( RepeatForever : : create ( animate ) ) ; <nl> + } <nl> + _sprite = sprite ; <nl> + _hasWeapon = true ; <nl> + <nl> + / / create mirror Sprite3D <nl> + sprite = Sprite3D : : create ( fileName ) ; <nl> + sprite - > setScale ( 5 ) ; <nl> + sprite - > setScaleX ( - 5 ) ; <nl> + sprite - > setCullFace ( GL_FRONT ) ; <nl> + sprite - > setRotation3D ( Vec3 ( 0 , 180 , 0 ) ) ; <nl> + addChild ( sprite ) ; <nl> + sprite - > setPosition ( Vec2 ( p . x + 80 , p . y ) ) ; <nl> + <nl> + / / test attach <nl> + sp = Sprite3D : : create ( " Sprite3DTest / axe . c3b " ) ; <nl> + sprite - > getAttachNode ( " Bip001 R Hand " ) - > addChild ( sp ) ; <nl> + <nl> + animation = Animation3D : : create ( fileName ) ; <nl> + if ( animation ) <nl> + { <nl> + auto animate = Animate3D : : create ( animation ) ; <nl> + <nl> + sprite - > runAction ( RepeatForever : : create ( animate ) ) ; <nl> + } <nl> + _mirrorSprite = sprite ; <nl> + } <nl> mmm a / tests / cpp - tests / Classes / Sprite3DTest / Sprite3DTest . h <nl> ppp b / tests / cpp - tests / Classes / Sprite3DTest / Sprite3DTest . h <nl> class AttachmentTest : public Sprite3DTestDemo <nl> cocos2d : : Sprite3D * _sprite ; <nl> } ; <nl> <nl> + class Sprite3DMirrorTest : public Sprite3DTestDemo <nl> + { <nl> + public : <nl> + CREATE_FUNC ( Sprite3DMirrorTest ) ; <nl> + Sprite3DMirrorTest ( ) ; <nl> + virtual std : : string title ( ) const override ; <nl> + virtual std : : string subtitle ( ) const override ; <nl> + <nl> + void addNewSpriteWithCoords ( Vec2 p ) ; <nl> + <nl> + protected : <nl> + bool _hasWeapon ; <nl> + cocos2d : : Sprite3D * _sprite ; <nl> + cocos2d : : Sprite3D * _mirrorSprite ; <nl> + } ; <nl> + <nl> class Sprite3DTestScene : public TestScene <nl> { <nl> public : <nl> | Merge pull request from super626 / mirrortest | cocos2d/cocos2d-x | 234f100187ce58b5b7afb192293f674128c9f0c2 | 2014-08-14T01:31:57Z |
mmm a / jstests / testing_only_commands . js <nl> ppp b / jstests / testing_only_commands . js <nl> var assertCmdFound = function ( db , cmdName ) { <nl> <nl> jsTest . setOption ( ' enableTestCommands ' , false ) ; <nl> <nl> - var conn = MongoRunner . runMongod ( { port : 29000 } ) ; <nl> + var port = allocatePorts ( 1 ) [ 0 ] ; <nl> + var conn = MongoRunner . runMongod ( { port : port } ) ; <nl> for ( i in testOnlyCommands ) { <nl> assertCmdNotFound ( conn . getDB ( ' test ' ) , testOnlyCommands [ i ] ) ; <nl> } <nl> MongoRunner . stopMongod ( conn . port ) ; <nl> / / Now enable the commands <nl> jsTest . setOption ( ' enableTestCommands ' , true ) ; <nl> <nl> - var conn = MongoRunner . runMongod ( { port : 29000 } ) ; <nl> + var conn = MongoRunner . runMongod ( { port : port } ) ; <nl> for ( i in testOnlyCommands ) { <nl> assertCmdFound ( conn . getDB ( ' test ' ) , testOnlyCommands [ i ] ) ; <nl> } <nl> | SERVER - 7972 assign port more intelligently in test | mongodb/mongo | d6e139e0ccbd0f081f7fe7e24e727fc4ef280ea3 | 2012-12-18T17:51:09Z |
mmm a / arangod / GeoIndex / GeoIndex . cpp <nl> ppp b / arangod / GeoIndex / GeoIndex . cpp <nl> int GeoPotJunk ( GeoDetailedPoint * gd , int pot ) { <nl> / * found , and then the differences squared returned . * / <nl> / * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = * / <nl> double GeoSNMD ( GeoDetailedPoint * gd , GeoCoordinate * c ) { <nl> + double const lat = c - > latitude * M_PI / 180 . 0 ; <nl> + double const lon = c - > longitude * M_PI / 180 . 0 ; <nl> + double const latCos = cos ( lat ) ; <nl> double x , y , z ; <nl> - z = sin ( c - > latitude * M_PI / 180 . 0 ) ; <nl> - x = cos ( c - > latitude * M_PI / 180 . 0 ) * cos ( c - > longitude * M_PI / 180 . 0 ) ; <nl> - y = cos ( c - > latitude * M_PI / 180 . 0 ) * sin ( c - > longitude * M_PI / 180 . 0 ) ; <nl> + z = sin ( lat ) ; <nl> + x = latCos * cos ( lon ) ; <nl> + y = latCos * sin ( lon ) ; <nl> return ( x - gd - > x ) * ( x - gd - > x ) + ( y - gd - > y ) * ( y - gd - > y ) + <nl> ( z - gd - > z ) * ( z - gd - > z ) ; <nl> } <nl> GeoFix makedist ( GeoPot * pot , GeoDetailedPoint * gd ) { <nl> } <nl> <nl> GeoCursor * GeoIndex_NewCursor ( GeoIdx * gi , GeoCoordinate * c ) { <nl> - GeoIx * gix ; <nl> - hpot hp ; <nl> if ( c - > longitude < - 180 . 0 ) return nullptr ; <nl> if ( c - > longitude > 180 . 0 ) return nullptr ; <nl> if ( c - > latitude < - 90 . 0 ) return nullptr ; <nl> if ( c - > latitude > 90 . 0 ) return nullptr ; <nl> - gix = ( GeoIx * ) gi ; <nl> GeoCr * gcr = nullptr ; <nl> <nl> try { <nl> GeoCursor * GeoIndex_NewCursor ( GeoIdx * gi , GeoCoordinate * c ) { <nl> if ( gcr = = nullptr ) { <nl> return ( GeoCursor * ) gcr ; <nl> } <nl> + <nl> + GeoIx * gix = ( GeoIx * ) gi ; <nl> gcr - > Ix = gix ; <nl> <nl> - std : : vector < hpot > * p = new ( & gcr - > potheap ) std : : vector < hpot > ( ) ; <nl> - std : : vector < hslot > * q = new ( & gcr - > slotheap ) std : : vector < hslot > ( ) ; <nl> - ( void ) p ; / / avoid compiler warnings - I just want to call <nl> - ( void ) q ; / / the constructors and have no use for p , q . <nl> GeoMkDetail ( gix , & ( gcr - > gd ) , c ) ; <nl> + hpot hp ; <nl> hp . pot = 1 ; <nl> hp . dist = makedist ( gix - > pots + 1 , & ( gcr - > gd ) ) ; <nl> gcr - > potsnmd = GeoFixtoSNMD ( hp . dist ) ; <nl> gcr - > slotsnmd = 20 . 0 ; <nl> gcr - > potheap . push_back ( hp ) ; <nl> - std : : push_heap ( gcr - > potheap . begin ( ) , gcr - > potheap . end ( ) , hpotcompare ) ; <nl> + / / not necessary here because potheap only contains one element <nl> + / / std : : push_heap ( gcr - > potheap . begin ( ) , gcr - > potheap . end ( ) , hpotcompare ) ; <nl> + TRI_ASSERT ( gcr - > potheap . size ( ) = = 1 ) ; <nl> + <nl> / / cppcheck - suppress * <nl> return ( GeoCursor * ) gcr ; <nl> } <nl> GeoCoordinates * GeoIndex_ReadCursor ( GeoCursor * gc , int count ) { <nl> hslot hs ; <nl> hpot hp ; <nl> gcr = ( GeoCr * ) gc ; <nl> + <nl> gr = GeoResultsCons ( count ) ; <nl> if ( gr = = NULL ) return NULL ; <nl> while ( gr - > pointsct < count ) { <nl> GeoCoordinates * GeoIndex_ReadCursor ( GeoCursor * gc , int count ) { <nl> gcr - > potheap . pop_back ( ) ; <nl> if ( pot . LorLeaf = = 0 ) { <nl> / / leaf pot - put all the points into the points heap <nl> + gcr - > slotheap . reserve ( gcr - > slotheap . size ( ) + pot . RorPoints ) ; <nl> for ( i = 0 ; i < pot . RorPoints ; i + + ) { <nl> j = pot . points [ i ] ; <nl> ct = ( ( gcr - > Ix ) - > gc + j ) ; <nl> GeoCoordinates * GeoIndex_ReadCursor ( GeoCursor * gc , int count ) { <nl> } <nl> <nl> void GeoIndex_CursorFree ( GeoCursor * gc ) { <nl> - if ( gc = = nullptr ) { <nl> - return ; <nl> - } <nl> - GeoCr * cr = reinterpret_cast < GeoCr * > ( gc ) ; <nl> - delete cr ; <nl> + delete reinterpret_cast < GeoCr * > ( gc ) ; <nl> } <nl> <nl> / * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = * / <nl> mmm a / arangod / Indexes / GeoIndex . cpp <nl> ppp b / arangod / Indexes / GeoIndex . cpp <nl> GeoIndexIterator : : GeoIndexIterator ( LogicalCollection * collection , <nl> _lat ( 0 . 0 ) , <nl> _lon ( 0 . 0 ) , <nl> _near ( true ) , <nl> + _done ( false ) , <nl> _withinRange ( 0 . 0 ) , <nl> _withinLessEq ( false ) { <nl> evaluateCondition ( ) ; <nl> IndexLookupResult GeoIndexIterator : : next ( ) { <nl> <nl> void GeoIndexIterator : : nextBabies ( std : : vector < IndexLookupResult > & result , size_t batchSize ) { <nl> if ( ! _cursor ) { <nl> - createCursor ( _lat , _lon ) ; <nl> + createCursor ( _lat , _lon ) ; <nl> + <nl> + if ( ! _cursor ) { <nl> + / / actually validate that we got a valid cursor <nl> + THROW_ARANGO_EXCEPTION ( TRI_ERROR_OUT_OF_MEMORY ) ; <nl> + } <nl> } <nl> <nl> + TRI_ASSERT ( _cursor ! = nullptr ) ; <nl> + <nl> result . clear ( ) ; <nl> + <nl> + if ( _done ) { <nl> + / / we already know that no further results will be returned by the index <nl> + return ; <nl> + } <nl> + <nl> if ( batchSize > 0 ) { <nl> - auto coords = std : : unique_ptr < GeoCoordinates > ( : : GeoIndex_ReadCursor ( _cursor , batchSize ) ) ; <nl> + auto coords = std : : unique_ptr < GeoCoordinates > ( : : GeoIndex_ReadCursor ( _cursor , batchSize ) ) ; <nl> <nl> size_t length = coords ? coords - > length : 0 ; <nl> if ( ! length ) { <nl> void GeoIndexIterator : : nextBabies ( std : : vector < IndexLookupResult > & result , size_t <nl> <nl> for ( std : : size_t index = 0 ; index < length ; + + index ) { <nl> if ( _near <nl> - | | ( ! _withinLessEq & & GeoIndex_distance ( & _coor , & coords - > coordinates [ index ] ) < _withinRange ) <nl> - | | ( _withinLessEq & & GeoIndex_distance ( & _coor , & coords - > coordinates [ index ] ) < = _withinRange ) <nl> - ) <nl> - { <nl> + | | ( ! _withinLessEq & & coords - > distances [ index ] < _withinRange ) <nl> + | | ( _withinLessEq & & coords - > distances [ index ] < = _withinRange ) <nl> + ) { <nl> result . emplace_back ( IndexLookupResult ( : : GeoIndex : : toRevision ( coords - > coordinates [ index ] . data ) ) ) ; <nl> } else { <nl> break ; <nl> } <nl> } <nl> } <nl> + <nl> + if ( result . size ( ) < batchSize ) { <nl> + / / already done <nl> + _done = true ; <nl> + } <nl> } <nl> <nl> void GeoIndexIterator : : replaceCursor ( : : GeoCursor * c ) { <nl> void GeoIndexIterator : : replaceCursor ( : : GeoCursor * c ) { <nl> : : GeoIndex_CursorFree ( _cursor ) ; <nl> } <nl> _cursor = c ; <nl> + _done = false ; <nl> } <nl> <nl> void GeoIndexIterator : : createCursor ( double lat , double lon ) { <nl> mmm a / arangod / Indexes / GeoIndex . h <nl> ppp b / arangod / Indexes / GeoIndex . h <nl> class GeoIndexIterator final : public IndexIterator { <nl> double _lat ; <nl> double _lon ; <nl> bool _near ; <nl> + bool _done ; <nl> double _withinRange ; <nl> bool _withinLessEq ; <nl> } ; <nl> | micro optimizations | arangodb/arangodb | e6743195e86b138939537cecb47e930a541a29ad | 2016-12-20T13:09:14Z |
mmm a / caffe2 / core / net . cc <nl> ppp b / caffe2 / core / net . cc <nl> int ExecutorHelper : : GetNumWorkers ( ) const { <nl> CAFFE_THROW ( " Not implemented " ) ; <nl> } <nl> <nl> + / / benchmark an individual run so that we can FeedBlobs with new inputs <nl> + / / no warmup <nl> + / / return time taken in microseconds <nl> + float NetBase : : TEST_Benchmark_One_Run ( ) { <nl> + Timer timer ; <nl> + CAFFE_ENFORCE ( Run ( ) , " Run has failed . " ) ; <nl> + return timer . MicroSeconds ( ) ; <nl> + } <nl> + <nl> std : : vector < float > NetBase : : TEST_Benchmark ( <nl> const int warmup_runs , <nl> const int main_runs , <nl> mmm a / caffe2 / core / net . h <nl> ppp b / caffe2 / core / net . h <nl> class CAFFE2_API NetBase : public Observable < NetBase > { <nl> <nl> virtual bool RunAsync ( ) ; <nl> <nl> + / * Benchmarks a network for one individual run so that we can feed new <nl> + * inputs on additional calls . <nl> + * This function returns the number of microseconds spent <nl> + * during the benchmark <nl> + * / <nl> + virtual float TEST_Benchmark_One_Run ( ) ; <nl> + <nl> / * * <nl> * Benchmarks a network . <nl> * <nl> mmm a / caffe2 / python / pybind_state . cc <nl> ppp b / caffe2 / python / pybind_state . cc <nl> void addGlobalMethods ( py : : module & m ) { <nl> net - > TEST_Benchmark ( warmup_runs , main_runs , run_individual ) ; <nl> return stat ; <nl> } ) ; <nl> + m . def ( " benchmark_net_once " , [ ] ( const std : : string & name ) { <nl> + CAFFE_ENFORCE ( gWorkspace ) ; <nl> + auto * net = gWorkspace - > GetNet ( name ) ; <nl> + CAFFE_ENFORCE ( net , " Didn ' t find net : " , name ) ; <nl> + py : : gil_scoped_release g ; <nl> + float stat = net - > TEST_Benchmark_One_Run ( ) ; <nl> + return stat ; <nl> + } ) ; <nl> <nl> m . def ( " delete_net " , [ ] ( const std : : string & name ) { <nl> CAFFE_ENFORCE ( gWorkspace ) ; <nl> mmm a / caffe2 / python / workspace . py <nl> ppp b / caffe2 / python / workspace . py <nl> <nl> RootFolder = C . root_folder <nl> Workspaces = C . workspaces <nl> BenchmarkNet = C . benchmark_net <nl> + BenchmarkNetOnce = C . benchmark_net_once <nl> GetStats = C . get_stats <nl> <nl> operator_tracebacks = defaultdict ( dict ) <nl> | add c2 benchmark runs in cpp ( ) | pytorch/pytorch | a9aaf698a4902f70ed0e9eb14e5341b2ef522514 | 2019-05-14T00:01:08Z |
new file mode 100644 <nl> index 0000000000 . . cbb770fa3d <nl> mmm / dev / null <nl> ppp b / code / unclassified / average / average . scala <nl> <nl> + object Average extends App { <nl> + def average ( num : Array [ Double ] ) : Double = { <nl> + val sum : Double = num . foldLeft ( 0 . 0 ) { ( a , b ) = > a + b } <nl> + sum / num . size <nl> + } <nl> + <nl> + val arr : Array [ Double ] = Array ( 1 , 2 , 3 , 4 , 5 ) <nl> + println ( average ( arr ) ) <nl> + } <nl> \ No newline at end of file <nl> | Added average . scala | OpenGenus/cosmos | 06664712728b44d320603cd1a533e54afabf66a1 | 2017-10-16T01:00:10Z |
mmm a / modules / cudaoptflow / src / cuda / tvl1flow . cu <nl> ppp b / modules / cudaoptflow / src / cuda / tvl1flow . cu <nl> namespace tvl1flow <nl> <nl> __global__ void estimateUKernel ( const PtrStepSzf I1wx , const PtrStepf I1wy , <nl> const PtrStepf grad , const PtrStepf rho_c , <nl> - const PtrStepf p11 , const PtrStepf p12 , const PtrStepf p21 , const PtrStepf p22 , const PtrStepf p31 , const PtrStepf p32 , <nl> + const PtrStepf p11 , const PtrStepf p12 , <nl> + const PtrStepf p21 , const PtrStepf p22 , <nl> + const PtrStepf p31 , const PtrStepf p32 , <nl> PtrStepf u1 , PtrStepf u2 , PtrStepf u3 , PtrStepf error , <nl> const float l_t , const float theta , const float gamma , const bool calcError ) <nl> { <nl> mmm a / modules / cudaoptflow / src / tvl1flow . cpp <nl> ppp b / modules / cudaoptflow / src / tvl1flow . cpp <nl> void cv : : cuda : : OpticalFlowDual_TVL1_CUDA : : procOneScale ( const GpuMat & I0 , const G <nl> { <nl> / / some tweaks to make sum operation less frequently <nl> bool calcError = ( epsilon > 0 ) & & ( n & 0x1 ) & & ( prevError < scaledEpsilon ) ; <nl> - <nl> - estimateU ( I1wx , I1wy , grad , rho_c , p11 , p12 , p21 , p22 , p31 , p32 , u1 , u2 , u3 , diff , l_t , gamma , static_cast < float > ( theta ) , calcError ) ; <nl> - <nl> + cv : : Mat m1 ( u3 ) ; <nl> + estimateU ( I1wx , I1wy , grad , rho_c , p11 , p12 , p21 , p22 , p31 , p32 , u1 , u2 , u3 , diff , l_t , static_cast < float > ( theta ) , gamma , calcError ) ; <nl> if ( calcError ) <nl> { <nl> error = cuda : : sum ( diff , norm_buf ) [ 0 ] ; <nl> void cv : : cuda : : OpticalFlowDual_TVL1_CUDA : : collectGarbage ( ) <nl> I0s . clear ( ) ; <nl> I1s . clear ( ) ; <nl> u1s . clear ( ) ; <nl> - u2s . clear ( ) ; <nl> + u2s . clear ( ) ; <nl> + u3s . clear ( ) ; <nl> <nl> I1x_buf . release ( ) ; <nl> I1y_buf . release ( ) ; <nl> void cv : : cuda : : OpticalFlowDual_TVL1_CUDA : : collectGarbage ( ) <nl> p11_buf . release ( ) ; <nl> p12_buf . release ( ) ; <nl> p21_buf . release ( ) ; <nl> - p22_buf . release ( ) ; <nl> + p22_buf . release ( ) ; <nl> + p31_buf . release ( ) ; <nl> + p32_buf . release ( ) ; <nl> <nl> diff_buf . release ( ) ; <nl> norm_buf . release ( ) ; <nl> mmm a / modules / cudaoptflow / test / test_optflow . cpp <nl> ppp b / modules / cudaoptflow / test / test_optflow . cpp <nl> CUDA_TEST_P ( OpticalFlowDual_TVL1 , Accuracy ) <nl> alg - > calc ( frame0 , frame1 , flow ) ; <nl> cv : : Mat gold [ 2 ] ; <nl> cv : : split ( flow , gold ) ; <nl> + cv : : Mat mx ( d_flowx ) ; <nl> + cv : : Mat my ( d_flowx ) ; <nl> <nl> EXPECT_MAT_SIMILAR ( gold [ 0 ] , d_flowx , 4e - 3 ) ; <nl> EXPECT_MAT_SIMILAR ( gold [ 1 ] , d_flowy , 4e - 3 ) ; <nl> + d_alg . gamma = 1 ; <nl> + alg - > set ( " gamma " , 1 ) ; <nl> + d_alg ( loadMat ( frame0 , useRoi ) , loadMat ( frame1 , useRoi ) , d_flowx , d_flowy ) ; <nl> + alg - > calc ( frame0 , frame1 , flow ) ; <nl> + cv : : split ( flow , gold ) ; <nl> + mx = cv : : Mat ( d_flowx ) ; <nl> + my = cv : : Mat ( d_flowx ) ; <nl> + <nl> + EXPECT_MAT_SIMILAR ( gold [ 0 ] , d_flowx , 4e - 3 ) ; <nl> + EXPECT_MAT_SIMILAR ( gold [ 1 ] , d_flowy , 4e - 3 ) ; <nl> } <nl> <nl> INSTANTIATE_TEST_CASE_P ( CUDA_OptFlow , OpticalFlowDual_TVL1 , testing : : Combine ( <nl> mmm a / modules / video / src / tvl1flow . cpp <nl> ppp b / modules / video / src / tvl1flow . cpp <nl> class OpticalFlowDual_TVL1 : public DenseOpticalFlow <nl> std : : vector < Mat_ < float > > I0s ; <nl> std : : vector < Mat_ < float > > I1s ; <nl> std : : vector < Mat_ < float > > u1s ; <nl> - std : : vector < Mat_ < float > > u2s ; <nl> - std : : vector < Mat_ < float > > u3s ; <nl> + std : : vector < Mat_ < float > > u2s ; <nl> + std : : vector < Mat_ < float > > u3s ; <nl> <nl> Mat_ < float > I1x_buf ; <nl> Mat_ < float > I1y_buf ; <nl> class OpticalFlowDual_TVL1 : public DenseOpticalFlow <nl> Mat_ < float > rho_c_buf ; <nl> <nl> Mat_ < float > v1_buf ; <nl> - Mat_ < float > v2_buf ; <nl> - Mat_ < float > v3_buf ; <nl> + Mat_ < float > v2_buf ; <nl> + Mat_ < float > v3_buf ; <nl> <nl> Mat_ < float > p11_buf ; <nl> Mat_ < float > p12_buf ; <nl> Mat_ < float > p21_buf ; <nl> - Mat_ < float > p22_buf ; <nl> - Mat_ < float > p31_buf ; <nl> - Mat_ < float > p32_buf ; <nl> + Mat_ < float > p22_buf ; <nl> + Mat_ < float > p31_buf ; <nl> + Mat_ < float > p32_buf ; <nl> <nl> Mat_ < float > div_p1_buf ; <nl> - Mat_ < float > div_p2_buf ; <nl> - Mat_ < float > div_p3_buf ; <nl> + Mat_ < float > div_p2_buf ; <nl> + Mat_ < float > div_p3_buf ; <nl> <nl> Mat_ < float > u1x_buf ; <nl> Mat_ < float > u1y_buf ; <nl> Mat_ < float > u2x_buf ; <nl> - Mat_ < float > u2y_buf ; <nl> - Mat_ < float > u3x_buf ; <nl> - Mat_ < float > u3y_buf ; <nl> + Mat_ < float > u2y_buf ; <nl> + Mat_ < float > u3x_buf ; <nl> + Mat_ < float > u3y_buf ; <nl> } dm ; <nl> struct dataUMat <nl> { <nl> void CalcGradRhoBody : : operator ( ) ( const Range & range ) const <nl> <nl> / / compute the constant part of the rho function <nl> rhoRow [ x ] = ( I1wRow [ x ] - I1wxRow [ x ] * u1Row [ x ] - I1wyRow [ x ] * u2Row [ x ] - I0Row [ x ] ) ; <nl> - / / It = I1wRow [ x ] - I0Row [ x ] <nl> - / / ( u - u0 ) * i_X = I1wxRow [ x ] * u1Row [ x ] <nl> - / / ( v - v0 ) * i_Y = I1wyRow [ x ] * u2Row [ x ] <nl> - / / gamma * w = gamma * u3 <nl> } <nl> } <nl> } <nl> void EstimateVBody : : operator ( ) ( const Range & range ) const <nl> float d1 = 0 . 0f ; <nl> float d2 = 0 . 0f ; <nl> float d3 = 0 . 0f ; <nl> - / / add d3 for 3 cases <nl> if ( rho < - l_t * gradRow [ x ] ) <nl> { <nl> d1 = l_t * I1wxRow [ x ] ; <nl> | debug of cuda_tvl1 = > pass tests succesfully | opencv/opencv | 693c4e57414e4729a636cd5b715bcca8a1c9c70c | 2014-07-04T12:23:09Z |
mmm a / configure . in <nl> ppp b / configure . in <nl> AC_CHECK_LIB ( [ ssh ] , [ sftp_tell64 ] , , AC_MSG_RESULT ( [ Could not find suitab <nl> AC_CHECK_LIB ( [ smbclient ] , [ main ] , , AC_MSG_ERROR ( $ missing_library ) ) <nl> AC_CHECK_LIB ( [ bluetooth ] , [ hci_devid ] , , AC_MSG_RESULT ( [ Could not find suitable version of libbluetooth ] ) ) <nl> AC_CHECK_LIB ( [ yajl ] , [ main ] , , AC_MSG_ERROR ( $ missing_library ) ) <nl> - AC_LANG_PUSH ( [ C + + ] ) <nl> - AC_DEFINE ( [ USE_PTHREADS_THREADING ] , [ 1 ] , [ Whether to use pthreads as the threading implementation . ] ) <nl> - AC_LANG_POP ( [ C + + ] ) <nl> <nl> PKG_CHECK_MODULES ( [ FONTCONFIG ] , [ fontconfig ] , <nl> [ INCLUDES = " $ INCLUDES $ FONTCONFIG_CFLAGS " ; LIBS = " $ LIBS $ FONTCONFIG_LIBS " ] , <nl> mmm a / xbmc / threads / platform / Condition . h <nl> ppp b / xbmc / threads / platform / Condition . h <nl> <nl> <nl> # pragma once <nl> <nl> - # include " threads / platform / platform . select . h " <nl> - <nl> - # if ( defined USE_PTHREADS_THREADING ) <nl> + # if ( defined TARGET_POSIX ) <nl> # include " threads / platform / pthreads / Condition . h " <nl> - # elif ( defined USE_WIN_THREADING ) <nl> + # elif ( defined TARGET_WINDOWS ) <nl> # include " threads / platform / win / Condition . h " <nl> # endif <nl> <nl> mmm a / xbmc / threads / platform / CriticalSection . h <nl> ppp b / xbmc / threads / platform / CriticalSection . h <nl> <nl> <nl> # pragma once <nl> <nl> - # include " threads / platform / platform . select . h " <nl> - <nl> - # if ( defined USE_PTHREADS_THREADING ) <nl> + # if ( defined TARGET_POSIX ) <nl> # include " threads / platform / pthreads / CriticalSection . h " <nl> - # elif ( defined USE_WIN_THREADING ) <nl> + # elif ( defined TARGET_WINDOWS ) <nl> # include " threads / platform / win / CriticalSection . h " <nl> # endif <nl> mmm a / xbmc / threads / platform / Implementation . cpp <nl> ppp b / xbmc / threads / platform / Implementation . cpp <nl> <nl> * <nl> * / <nl> <nl> - # include " threads / platform / platform . select . h " <nl> - <nl> - # if ( defined USE_PTHREADS_THREADING ) <nl> + # if ( defined TARGET_POSIX ) <nl> # include " threads / platform / pthreads / Implementation . cpp " <nl> - # elif ( defined USE_WIN_THREADING ) <nl> + # elif ( defined TARGET_WINDOWS ) <nl> / / win has no need of an Implementation . cpp <nl> # endif <nl> mmm a / xbmc / threads / platform / ThreadLocal . h <nl> ppp b / xbmc / threads / platform / ThreadLocal . h <nl> <nl> <nl> # pragma once <nl> <nl> - # include " threads / platform / platform . select . h " <nl> - <nl> - # if ( defined USE_PTHREADS_THREADING ) <nl> + # if ( defined TARGET_POSIX ) <nl> # include " threads / platform / pthreads / ThreadLocal . h " <nl> - # elif ( defined USE_WIN_THREADING ) <nl> + # elif ( defined TARGET_WINDOWS ) <nl> # include " threads / platform / win / ThreadLocal . h " <nl> # endif <nl> deleted file mode 100644 <nl> index f891296d58b1 . . 000000000000 <nl> mmm a / xbmc / threads / platform / platform . select . h <nl> ppp / dev / null <nl> <nl> - / * <nl> - * Copyright ( C ) 2005 - 2011 Team XBMC <nl> - * http : / / www . xbmc . org <nl> - * <nl> - * This Program is free software ; you can redistribute it and / or modify <nl> - * it under the terms of the GNU General Public License as published by <nl> - * the Free Software Foundation ; either version 2 , or ( at your option ) <nl> - * any later version . <nl> - * <nl> - * This Program is distributed in the hope that it will be useful , <nl> - * but WITHOUT ANY WARRANTY ; without even the implied warranty of <nl> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the <nl> - * GNU General Public License for more details . <nl> - * <nl> - * You should have received a copy of the GNU General Public License <nl> - * along with XBMC ; see the file COPYING . If not , write to <nl> - * the Free Software Foundation , 675 Mass Ave , Cambridge , MA 02139 , USA . <nl> - * http : / / www . gnu . org / copyleft / gpl . html <nl> - * <nl> - * / <nl> - <nl> - # pragma once <nl> - <nl> - # if ( defined HAVE_CONFIG_H ) & & ( ! defined WIN32 ) <nl> - # include " config . h " <nl> - # else <nl> - # ifdef WIN32 <nl> - # define USE_WIN_THREADING 1 <nl> - # endif <nl> - # endif <nl> - <nl> - # ifdef USE_PTHREADS_THREADING <nl> - # define XBMC_THREADING_IMPL_SET 1 <nl> - # endif <nl> - <nl> - # ifdef USE_WIN_THREADING <nl> - # ifdef XBMC_THREADING_IMPL_SET <nl> - # error " Cannot define both USE_WIN_THREADING and another USE_ * _THREADING " <nl> - # endif <nl> - # define XBMC_THREADING_IMPL_SET 1 <nl> - # endif <nl> - <nl> - # ifndef XBMC_THREADING_IMPL_SET <nl> - # error " No threading implementation selected . " <nl> - # endif <nl> - <nl> - # undef XBMC_THREADING_IMPL_SET <nl> | Merge pull request from jimfcarroll / use - targets | xbmc/xbmc | 8efe859eb936b036ca89731db2b8f8157b069f7d | 2011-08-06T17:13:30Z |
mmm a / hphp / hack / src / full_fidelity / full_fidelity_declaration_parser . ml <nl> ppp b / hphp / hack / src / full_fidelity / full_fidelity_declaration_parser . ml <nl> module WithExpressionAndStatementAndTypeParser <nl> semicolon in <nl> ( parser1 , syntax ) <nl> | _ - > <nl> - ( * ERROR RECOVERY : skip to the next token * ) <nl> + ( * ERROR RECOVERY : We expected either a block or a semicolon ; we got <nl> + neither . Use the offending token as the body of the method . <nl> + TODO : Is this the right error recovery ? * ) <nl> + let error = make_error [ make_token token ] in <nl> + let syntax = make_methodish <nl> + attribute_spec modifiers header error ( make_missing ( ) ) in <nl> let parser = with_error parser1 SyntaxError . error1041 in <nl> - ( parser , make_error [ make_token token ] ) <nl> + ( parser , syntax ) <nl> <nl> and parse_modifiers parser = <nl> let rec aux acc parser = <nl> | Fix bad error recovery in full fidelity parser | facebook/hhvm | 39480a5c27170325ed5d31d0ab3272cbc4b4135d | 2016-09-16T21:17:23Z |
mmm a / docker / test / fasttest / run . sh <nl> ppp b / docker / test / fasttest / run . sh <nl> do <nl> sleep 0 . 1 <nl> done <nl> <nl> - TESTS_TO_SKIP = " parquet avro h3 odbc mysql sha256 _orc_ arrow 01098_temporary_and_external_tables 01083_expressions_in_engine_arguments hdfs 00911_tautological_compare protobuf capnproto java_hash hashing secure 00490_special_line_separators_and_characters_outside_of_bmp 00436_convert_charset 00105_shard_collations 01354_order_by_tuple_collate_const 01292_create_user 01098_msgpack_format 00929_multi_match_edit_distance 00926_multimatch 00834_cancel_http_readonly_queries_on_client_close brotli parallel_alter 00302_http_compression 00417_kill_query 01294_lazy_database_concurrent 01193_metadata_loading base64 01031_mutations_interpreter_and_context json client 01305_replica_create_drop_zookeeper 01092_memory_profiler 01355_ilike 01281_unsucceeded_insert_select_queries_counter live_view limit_memory memory_limit memory_leak " <nl> + TESTS_TO_SKIP = " parquet avro h3 odbc mysql sha256 _orc_ arrow 01098_temporary_and_external_tables 01083_expressions_in_engine_arguments hdfs 00911_tautological_compare protobuf capnproto java_hash hashing secure 00490_special_line_separators_and_characters_outside_of_bmp 00436_convert_charset 00105_shard_collations 01354_order_by_tuple_collate_const 01292_create_user 01098_msgpack_format 00929_multi_match_edit_distance 00926_multimatch 00834_cancel_http_readonly_queries_on_client_close brotli parallel_alter 00302_http_compression 00417_kill_query 01294_lazy_database_concurrent 01193_metadata_loading base64 01031_mutations_interpreter_and_context json client 01305_replica_create_drop_zookeeper 01092_memory_profiler 01355_ilike 01281_unsucceeded_insert_select_queries_counter live_view limit_memory memory_limit memory_leak 00110_external_sort 00682_empty_parts_merge 00701_rollup 00109_shard_totals_after_having " <nl> <nl> clickhouse - test - j 4 - - no - long - - testname - - shard - - zookeeper - - skip $ TESTS_TO_SKIP 2 > & 1 | ts ' % Y - % m - % d % H : % M : % S ' | tee / test_output / test_log . txt <nl> <nl> | Even less tests in fasttest | ClickHouse/ClickHouse | a4666df09003124fe3efdda91f9579c8b6633f73 | 2020-07-16T11:16:08Z |
mmm a / dbms / src / DataStreams / ParallelInputsProcessor . h <nl> ppp b / dbms / src / DataStreams / ParallelInputsProcessor . h <nl> class ParallelInputsProcessor <nl> <nl> try <nl> { <nl> + for ( auto & input : inputs ) <nl> + input - > readPrefix ( ) ; <nl> loop ( thread_num ) ; <nl> } <nl> catch ( . . . ) <nl> class ParallelInputsProcessor <nl> { <nl> try <nl> { <nl> + additional_input_at_end - > readPrefix ( ) ; <nl> while ( Block block = additional_input_at_end - > read ( ) ) <nl> publishPayload ( additional_input_at_end , block , thread_num ) ; <nl> } <nl> | Merge remote - tracking branch ' origin / master ' into unify - data - types - that - serialized - with - multiple - streams | ClickHouse/ClickHouse | 7cce063d004ce615581581140d8892afd57dbc3e | 2017-11-20T04:50:52Z |
mmm a / tools / testrunner / objects / testcase . py <nl> ppp b / tools / testrunner / objects / testcase . py <nl> def _get_cmd_params ( self ) : <nl> - random seed <nl> - extra flags ( from command line ) <nl> - user flags ( variant / fuzzer flags ) <nl> - - statusfile flags <nl> - mode flags ( based on chosen mode ) <nl> - source flags ( from source code ) [ empty by default ] <nl> + - test - suite flags <nl> + - statusfile flags <nl> <nl> The best way to modify how parameters are created is to only override <nl> methods for getting partial parameters . <nl> def _get_cmd_params ( self ) : <nl> self . _get_random_seed_flags ( ) + <nl> self . _get_extra_flags ( ) + <nl> self . _get_variant_flags ( ) + <nl> - self . _get_statusfile_flags ( ) + <nl> self . _get_mode_flags ( ) + <nl> self . _get_source_flags ( ) + <nl> - self . _get_suite_flags ( ) <nl> + self . _get_suite_flags ( ) + <nl> + self . _get_statusfile_flags ( ) <nl> ) <nl> <nl> def _get_cmd_env ( self ) : <nl> | [ test ] Change precedence of statusfile flags | v8/v8 | eb086bb6b2733dd64589c1ba6fcbcedf16a5283c | 2018-06-08T08:09:22Z |
mmm a / iOS / MMKVDemo / MMKVDemo / ViewController . mm <nl> ppp b / iOS / MMKVDemo / MMKVDemo / ViewController . mm <nl> @ implementation ViewController { <nl> - ( void ) viewDidLoad { <nl> [ super viewDidLoad ] ; <nl> <nl> - [ self funcionalTest ] ; <nl> + [ self funcionalTest : NO ] ; <nl> [ self testReKey ] ; <nl> [ self testImportFromUserDefault ] ; <nl> - / / [ self testCornerSize ] ; <nl> - / / [ self testFastRemoveCornerSize ] ; <nl> - / / [ self testChineseCharKey ] ; <nl> + / / [ self testCornerSize ] ; <nl> + / / [ self testFastRemoveCornerSize ] ; <nl> + / / [ self testChineseCharKey ] ; <nl> <nl> DemoSwiftUsage * swiftUsageDemo = [ [ DemoSwiftUsage alloc ] init ] ; <nl> [ swiftUsageDemo testSwiftFunctionality ] ; <nl> <nl> [ self testMultiProcess ] ; <nl> - / / [ self testMultiProcess ] ; <nl> + / / [ self testMultiProcess ] ; <nl> <nl> m_loops = 10000 ; <nl> m_arrStrings = [ NSMutableArray arrayWithCapacity : m_loops ] ; <nl> - ( void ) viewDidLoad { <nl> / / getMMKVForBatchTest ( ) ; <nl> } <nl> <nl> - - ( void ) funcionalTest { <nl> + - ( void ) funcionalTest : ( BOOL ) decodeOnly { <nl> auto path = [ MMKV mmkvBasePath ] ; <nl> path = [ path stringByDeletingLastPathComponent ] ; <nl> path = [ path stringByAppendingPathComponent : @ " mmkv_2 " ] ; <nl> - auto mmkv = [ MMKV mmkvWithID : @ " test / case1 " relativePath : path ] ; <nl> + NSData * key_1 = [ @ " Key_seq_1 " dataUsingEncoding : NSUTF8StringEncoding ] ; <nl> + auto mmkv = [ MMKV mmkvWithID : @ " test / case_aes " cryptKey : key_1 relativePath : path ] ; <nl> <nl> - [ mmkv setBool : YES forKey : @ " bool " ] ; <nl> + if ( ! decodeOnly ) { <nl> + [ mmkv setBool : YES forKey : @ " bool " ] ; <nl> + } <nl> NSLog ( @ " bool : % d " , [ mmkv getBoolForKey : @ " bool " ] ) ; <nl> <nl> - [ mmkv setInt32 : - 1024 forKey : @ " int32 " ] ; <nl> + if ( ! decodeOnly ) { <nl> + [ mmkv setInt32 : - 1024 forKey : @ " int32 " ] ; <nl> + } <nl> NSLog ( @ " int32 : % d " , [ mmkv getInt32ForKey : @ " int32 " ] ) ; <nl> <nl> - [ mmkv setUInt32 : std : : numeric_limits < uint32_t > : : max ( ) forKey : @ " uint32 " ] ; <nl> + if ( ! decodeOnly ) { <nl> + [ mmkv setUInt32 : std : : numeric_limits < uint32_t > : : max ( ) forKey : @ " uint32 " ] ; <nl> + } <nl> NSLog ( @ " uint32 : % u " , [ mmkv getUInt32ForKey : @ " uint32 " ] ) ; <nl> <nl> - [ mmkv setInt64 : std : : numeric_limits < int64_t > : : min ( ) forKey : @ " int64 " ] ; <nl> + if ( ! decodeOnly ) { <nl> + [ mmkv setInt64 : std : : numeric_limits < int64_t > : : min ( ) forKey : @ " int64 " ] ; <nl> + } <nl> NSLog ( @ " int64 : % lld " , [ mmkv getInt64ForKey : @ " int64 " ] ) ; <nl> <nl> - [ mmkv setUInt64 : std : : numeric_limits < uint64_t > : : max ( ) forKey : @ " uint64 " ] ; <nl> + if ( ! decodeOnly ) { <nl> + [ mmkv setUInt64 : std : : numeric_limits < uint64_t > : : max ( ) forKey : @ " uint64 " ] ; <nl> + } <nl> NSLog ( @ " uint64 : % llu " , [ mmkv getInt64ForKey : @ " uint64 " ] ) ; <nl> <nl> - [ mmkv setFloat : - 3 . 1415926 forKey : @ " float " ] ; <nl> + if ( ! decodeOnly ) { <nl> + [ mmkv setFloat : - 3 . 1415926 forKey : @ " float " ] ; <nl> + } <nl> NSLog ( @ " float : % f " , [ mmkv getFloatForKey : @ " float " ] ) ; <nl> <nl> - [ mmkv setDouble : std : : numeric_limits < double > : : max ( ) forKey : @ " double " ] ; <nl> + if ( ! decodeOnly ) { <nl> + [ mmkv setDouble : std : : numeric_limits < double > : : max ( ) forKey : @ " double " ] ; <nl> + } <nl> NSLog ( @ " double : % f " , [ mmkv getDoubleForKey : @ " double " ] ) ; <nl> <nl> - [ mmkv setString : @ " hello , mmkv " forKey : @ " string " ] ; <nl> + if ( ! decodeOnly ) { <nl> + [ mmkv setString : @ " hello , mmkv " forKey : @ " string " ] ; <nl> + } <nl> NSLog ( @ " string : % @ " , [ mmkv getStringForKey : @ " string " ] ) ; <nl> <nl> - [ mmkv setObject : nil forKey : @ " string " ] ; <nl> - NSLog ( @ " string after set nil : % @ , containsKey : % d " , <nl> - [ mmkv getObjectOfClass : NSString . class <nl> - forKey : @ " string " ] , <nl> - [ mmkv containsKey : @ " string " ] ) ; <nl> + if ( ! decodeOnly ) { <nl> + [ mmkv setObject : nil forKey : @ " string " ] ; <nl> + NSLog ( @ " string after set nil : % @ , containsKey : % d " , <nl> + [ mmkv getObjectOfClass : NSString . class <nl> + forKey : @ " string " ] , <nl> + [ mmkv containsKey : @ " string " ] ) ; <nl> + } <nl> <nl> - [ mmkv setDate : [ NSDate date ] forKey : @ " date " ] ; <nl> + if ( ! decodeOnly ) { <nl> + [ mmkv setDate : [ NSDate date ] forKey : @ " date " ] ; <nl> + } <nl> NSLog ( @ " date : % @ " , [ mmkv getDateForKey : @ " date " ] ) ; <nl> <nl> - [ mmkv setData : [ @ " hello , mmkv again and again " dataUsingEncoding : NSUTF8StringEncoding ] forKey : @ " data " ] ; <nl> + if ( ! decodeOnly ) { <nl> + auto str = @ " [ MMKV ] [ Info ] < MemoryFile_OSX . cpp : 36 > : protection on [ / var / mobile / Containers / Data / Application / B93F2BD3 - E0DB - 49B3 - 9BB0 - C662E2FC11D9 / Documents / mmkv / cips_commoncache ] is NSFileProtectionCompleteUntilFirstUserAuthentication " ; <nl> + [ mmkv setData : [ str dataUsingEncoding : NSUTF8StringEncoding ] forKey : @ " data " ] ; <nl> + } <nl> NSData * data = [ mmkv getDataForKey : @ " data " ] ; <nl> NSLog ( @ " data : % @ " , [ [ NSString alloc ] initWithData : data encoding : NSUTF8StringEncoding ] ) ; <nl> NSLog ( @ " data length : % zu , value size consumption : % zu " , data . length , [ mmkv getValueSizeForKey : @ " data " ] ) ; <nl> <nl> - [ mmkv setObject : [ NSData data ] forKey : @ " data " ] ; <nl> - NSLog ( @ " data after set empty data : % @ , containsKey : % d " , <nl> - [ mmkv getObjectOfClass : NSData . class <nl> - forKey : @ " data " ] , <nl> - [ mmkv containsKey : @ " data " ] ) ; <nl> + if ( ! decodeOnly ) { <nl> + [ mmkv setObject : [ NSData data ] forKey : @ " data " ] ; <nl> + NSLog ( @ " data after set empty data : % @ , containsKey : % d " , <nl> + [ mmkv getObjectOfClass : NSData . class <nl> + forKey : @ " data " ] , <nl> + [ mmkv containsKey : @ " data " ] ) ; <nl> + } <nl> <nl> - [ mmkv removeValueForKey : @ " bool " ] ; <nl> - NSLog ( @ " bool : % d " , [ mmkv getBoolForKey : @ " bool " ] ) ; <nl> - [ mmkv removeValuesForKeys : @ [ @ " int32 " , @ " uint64 " ] ] ; <nl> - NSLog ( @ " allKeys % @ " , [ mmkv allKeys ] ) ; <nl> + if ( ! decodeOnly ) { <nl> + [ mmkv removeValueForKey : @ " bool " ] ; <nl> + NSLog ( @ " bool : % d " , [ mmkv getBoolForKey : @ " bool " ] ) ; <nl> + [ mmkv removeValuesForKeys : @ [ @ " int32 " , @ " uint64 " ] ] ; <nl> + NSLog ( @ " allKeys % @ " , [ mmkv allKeys ] ) ; <nl> + } <nl> <nl> [ mmkv close ] ; <nl> } <nl> - ( void ) mmkvBaselineTest : ( int ) loops { <nl> } <nl> <nl> MMKV * getMMKVForBatchTest ( ) { <nl> - / / auto cryptKey = [ @ " crypt_key " dataUsingEncoding : NSUTF8StringEncoding ] ; <nl> + / / return [ MMKV mmkvWithID : @ " inter - process " mode : MMKVMultiProcess ] ; <nl> + / / auto cryptKey = [ @ " crypt_key " dataUsingEncoding : NSUTF8StringEncoding ] ; <nl> NSData * cryptKey = nil ; <nl> - MMKV * mmkv = [ MMKV mmkvWithID : @ " batchTest " cryptKey : cryptKey ] ; <nl> + / / static auto key = [ NSString stringWithFormat : @ " batchTest_ % d " , rand ( ) ] ; <nl> + static auto key = @ " batchTest " ; <nl> + MMKV * mmkv = [ MMKV mmkvWithID : key cryptKey : cryptKey ] ; <nl> return mmkv ; <nl> } <nl> <nl> - ( void ) mmkvBatchWriteInt : ( int ) loops { <nl> NSDate * endDate = [ NSDate date ] ; <nl> int cost = [ endDate timeIntervalSinceDate : startDate ] * 1000 ; <nl> NSLog ( @ " mmkv write int % d times , cost : % d ms " , loops , cost ) ; <nl> + <nl> + / * delete some <nl> + startDate = [ NSDate date ] ; <nl> + <nl> + for ( int index = 0 ; index < ( loops / 2 ) ; index + + ) { <nl> + int32_t tmp = rand ( ) % loops ; <nl> + NSString * intKey = m_arrIntKeys [ tmp ] ; <nl> + [ mmkv removeValueForKey : intKey ] ; <nl> + } <nl> + endDate = [ NSDate date ] ; <nl> + cost = [ endDate timeIntervalSinceDate : startDate ] * 1000 ; <nl> + NSLog ( @ " mmkv delete int % d times , cost : % d ms " , ( loops / 2 ) , cost ) ; * / <nl> } <nl> } <nl> <nl> - ( void ) mmkvBatchWriteString : ( int ) loops { <nl> NSDate * endDate = [ NSDate date ] ; <nl> int cost = [ endDate timeIntervalSinceDate : startDate ] * 1000 ; <nl> NSLog ( @ " mmkv write string % d times , cost : % d ms " , loops , cost ) ; <nl> + <nl> + / * delete some <nl> + startDate = [ NSDate date ] ; <nl> + <nl> + for ( int index = 0 ; index < ( loops / 2 ) ; index + + ) { <nl> + int32_t tmp = rand ( ) % loops ; <nl> + NSString * strKey = m_arrStrKeys [ tmp ] ; <nl> + [ mmkv removeValueForKey : strKey ] ; <nl> + } <nl> + endDate = [ NSDate date ] ; <nl> + cost = [ endDate timeIntervalSinceDate : startDate ] * 1000 ; <nl> + NSLog ( @ " mmkv delete string % d times , cost : % d ms " , ( loops / 2 ) , cost ) ; * / <nl> } <nl> } <nl> <nl> mmm a / iOS / MMKVDemo / MMKVMacDemo / ViewController . mm <nl> ppp b / iOS / MMKVDemo / MMKVMacDemo / ViewController . mm <nl> @ implementation ViewController { <nl> - ( void ) viewDidLoad { <nl> [ super viewDidLoad ] ; <nl> <nl> - [ self funcionalTest ] ; <nl> + [ self funcionalTest : NO ] ; <nl> [ self testNeedLoadFromFile ] ; <nl> <nl> m_loops = 10000 ; <nl> - ( void ) viewDidLoad { <nl> } <nl> } <nl> <nl> - - ( void ) funcionalTest { <nl> + - ( void ) funcionalTest : ( BOOL ) decodeOnly { <nl> MMKV * mmkv = [ MMKV defaultMMKV ] ; <nl> <nl> - [ mmkv setBool : YES forKey : @ " bool " ] ; <nl> + if ( ! decodeOnly ) { <nl> + [ mmkv setBool : YES forKey : @ " bool " ] ; <nl> + } <nl> NSLog ( @ " bool : % d " , [ mmkv getBoolForKey : @ " bool " ] ) ; <nl> <nl> - [ mmkv setInt32 : - 1024 forKey : @ " int32 " ] ; <nl> + if ( ! decodeOnly ) { <nl> + [ mmkv setInt32 : - 1024 forKey : @ " int32 " ] ; <nl> + } <nl> NSLog ( @ " int32 : % d " , [ mmkv getInt32ForKey : @ " int32 " ] ) ; <nl> <nl> - [ mmkv setUInt32 : std : : numeric_limits < uint32_t > : : max ( ) forKey : @ " uint32 " ] ; <nl> + if ( ! decodeOnly ) { <nl> + [ mmkv setUInt32 : std : : numeric_limits < uint32_t > : : max ( ) forKey : @ " uint32 " ] ; <nl> + } <nl> NSLog ( @ " uint32 : % u " , [ mmkv getUInt32ForKey : @ " uint32 " ] ) ; <nl> <nl> - [ mmkv setInt64 : std : : numeric_limits < int64_t > : : min ( ) forKey : @ " int64 " ] ; <nl> + if ( ! decodeOnly ) { <nl> + [ mmkv setInt64 : std : : numeric_limits < int64_t > : : min ( ) forKey : @ " int64 " ] ; <nl> + } <nl> NSLog ( @ " int64 : % lld " , [ mmkv getInt64ForKey : @ " int64 " ] ) ; <nl> <nl> - [ mmkv setUInt64 : std : : numeric_limits < uint64_t > : : max ( ) forKey : @ " uint64 " ] ; <nl> + if ( ! decodeOnly ) { <nl> + [ mmkv setUInt64 : std : : numeric_limits < uint64_t > : : max ( ) forKey : @ " uint64 " ] ; <nl> + } <nl> NSLog ( @ " uint64 : % llu " , [ mmkv getInt64ForKey : @ " uint64 " ] ) ; <nl> <nl> - [ mmkv setFloat : - 3 . 1415926 forKey : @ " float " ] ; <nl> + if ( ! decodeOnly ) { <nl> + [ mmkv setFloat : - 3 . 1415926 forKey : @ " float " ] ; <nl> + } <nl> NSLog ( @ " float : % f " , [ mmkv getFloatForKey : @ " float " ] ) ; <nl> <nl> - [ mmkv setDouble : std : : numeric_limits < double > : : max ( ) forKey : @ " double " ] ; <nl> + if ( ! decodeOnly ) { <nl> + [ mmkv setDouble : std : : numeric_limits < double > : : max ( ) forKey : @ " double " ] ; <nl> + } <nl> NSLog ( @ " double : % f " , [ mmkv getDoubleForKey : @ " double " ] ) ; <nl> <nl> - [ mmkv setString : @ " hello , mmkv " forKey : @ " string " ] ; <nl> + if ( ! decodeOnly ) { <nl> + [ mmkv setString : @ " hello , mmkv " forKey : @ " string " ] ; <nl> + } <nl> NSLog ( @ " string : % @ " , [ mmkv getStringForKey : @ " string " ] ) ; <nl> <nl> - / / [ mmkv setObject : @ " hello , mmkv " forKey : @ " string " ] ; <nl> - / / NSLog ( @ " string : % @ " , [ mmkv getObjectOfClass : NSString . class forKey : @ " string " ] ) ; <nl> - <nl> - [ mmkv setDate : [ NSDate date ] forKey : @ " date " ] ; <nl> + if ( ! decodeOnly ) { <nl> + [ mmkv setDate : [ NSDate date ] forKey : @ " date " ] ; <nl> + } <nl> NSLog ( @ " date : % @ " , [ mmkv getDateForKey : @ " date " ] ) ; <nl> <nl> - / / [ mmkv setObject : [ NSDate date ] forKey : @ " date " ] ; <nl> - / / NSLog ( @ " date : % @ " , [ mmkv getObjectOfClass : NSDate . class forKey : @ " date " ] ) ; <nl> - <nl> - [ mmkv setObject : [ @ " hello , mmkv again and again " dataUsingEncoding : NSUTF8StringEncoding ] forKey : @ " data " ] ; <nl> + if ( ! decodeOnly ) { <nl> + [ mmkv setObject : [ @ " hello , mmkv again and again " dataUsingEncoding : NSUTF8StringEncoding ] forKey : @ " data " ] ; <nl> + } <nl> NSData * data = [ mmkv getObjectOfClass : NSData . class forKey : @ " data " ] ; <nl> NSLog ( @ " data : % @ " , [ [ NSString alloc ] initWithData : data encoding : NSUTF8StringEncoding ] ) ; <nl> <nl> - [ mmkv removeValueForKey : @ " bool " ] ; <nl> - NSLog ( @ " bool : % d " , [ mmkv getBoolForKey : @ " bool " ] ) ; <nl> + if ( ! decodeOnly ) { <nl> + [ mmkv removeValueForKey : @ " bool " ] ; <nl> + NSLog ( @ " bool : % d " , [ mmkv getBoolForKey : @ " bool " ] ) ; <nl> + } <nl> } <nl> <nl> - ( void ) setRepresentedObject : ( id ) representedObject { <nl> | update functional testcase | Tencent/MMKV | 15d5f2a1c14c3337cb0ff7ba8bc2854b1026cf92 | 2020-06-19T07:20:26Z |
mmm a / hphp / util / numa . h <nl> ppp b / hphp / util / numa . h <nl> <nl> # ifndef incl_HPHP_UTIL_NUMA_H <nl> # define incl_HPHP_UTIL_NUMA_H <nl> <nl> + # include < atomic > <nl> + <nl> # ifdef HAVE_NUMA <nl> <nl> - # include < atomic > <nl> # include < vector > <nl> # include < numa . h > <nl> # include < stdint . h > <nl> | Move atomic import above preprocessor guard . | facebook/hhvm | a726ce1bc8633ecb805af375fc6b1af2b6e78c6f | 2017-10-05T20:41:38Z |
mmm a / plugins / producer_plugin / producer_plugin . cpp <nl> ppp b / plugins / producer_plugin / producer_plugin . cpp <nl> void producer_plugin_impl : : produce_block ( ) { <nl> <nl> <nl> const auto & auth = chain . pending_block_signing_authority ( ) ; <nl> - auto num_relevant_signatures = std : : count_if ( _signature_providers . begin ( ) , _signature_providers . end ( ) , [ & auth ] ( const auto & p ) { <nl> - return producer_authority : : key_is_relevant ( p . first , auth ) ; <nl> - } ) ; <nl> + std : : vector < std : : reference_wrapper < const signature_provider_type > > relevant_providers ; <nl> + <nl> + relevant_providers . reserve ( _signature_providers . size ( ) ) ; <nl> + <nl> + for ( const auto & p : _signature_providers ) { <nl> + if ( producer_authority : : key_is_relevant ( p . first , auth ) ) { <nl> + relevant_providers . emplace_back ( p . second ) ; <nl> + } <nl> + } <nl> <nl> - EOS_ASSERT ( num_relevant_signatures > 0 , producer_priv_key_not_found , " Attempting to produce a block for which we don ' t have any relevant private keys " ) ; <nl> + EOS_ASSERT ( relevant_providers . size ( ) > 0 , producer_priv_key_not_found , " Attempting to produce a block for which we don ' t have any relevant private keys " ) ; <nl> <nl> if ( _protocol_features_signaled ) { <nl> _protocol_features_to_activate . clear ( ) ; / / clear _protocol_features_to_activate as it is already set in pending_block <nl> void producer_plugin_impl : : produce_block ( ) { <nl> chain . finalize_block ( [ & ] ( const digest_type & d ) { <nl> auto debug_logger = maybe_make_debug_time_logger ( ) ; <nl> vector < signature_type > sigs ; <nl> - sigs . reserve ( num_relevant_signatures ) ; <nl> + sigs . reserve ( relevant_providers . size ( ) ) ; <nl> <nl> / / sign with all relevant public keys <nl> - for ( const auto & p : _signature_providers ) { <nl> - if ( producer_authority : : key_is_relevant ( p . first , auth ) ) { <nl> - sigs . emplace_back ( p . second ( d ) ) ; <nl> - } <nl> + for ( const auto & p : relevant_providers ) { <nl> + sigs . emplace_back ( p . get ( ) ( d ) ) ; <nl> } <nl> return sigs ; <nl> } ) ; <nl> mmm a / testnet . template <nl> ppp b / testnet . template <nl> bioscontractpath = $ BIOS_CONTRACT_PATH <nl> if [ - z " $ bioscontractpath " ] ; then <nl> # this is defaulted to the version of bios that only requires the preactivate_feature <nl> # newer versions may require <nl> - bioscontractpath = " unittests / contracts / old_versions / v1 . 7 . 0 - develop - preactivate_feature / eosio . bios / " <nl> + bioscontractpath = " unittests / contracts / old_versions / v1 . 7 . 0 - develop - preactivate_feature / eosio . bios " <nl> fi <nl> <nl> wddir = eosio - ignition - wd <nl> wcmd create - - to - console - n ignition <nl> # where $ BIOSKEY is replaced by the private key for the bios node <nl> # mmmmmm DO NOT ALTER THE NEXT LINE mmmmmm - <nl> # # # INSERT prodkeys <nl> - <nl> + echo " Activated Features Check : " > > $ logfile <nl> + curl http : / / $ bioshost : $ biosport / v1 / chain / get_activated_protocol_features > > $ logfile <nl> ecmd set contract eosio $ bioscontractpath eosio . bios . wasm eosio . bios . abi <nl> <nl> # Preactivate all digests <nl> mmm a / tests / Cluster . py <nl> ppp b / tests / Cluster . py <nl> def bios_bootstrap ( self , biosNode , totalNodes , pfSetupPolicy , silent = False ) : <nl> " FEATURE_DIGESTS " : " " <nl> } <nl> if PFSetupPolicy . hasPreactivateFeature ( pfSetupPolicy ) : <nl> - env [ " BIOS_CONTRACT_PATH " ] = " unittests / contracts / old_versions / v1 . 7 . 0 - develop - preactivate_feature / eosio . bios / " <nl> + env [ " BIOS_CONTRACT_PATH " ] = " unittests / contracts / old_versions / v1 . 7 . 0 - develop - preactivate_feature / eosio . bios " <nl> <nl> if pfSetupPolicy = = PFSetupPolicy . FULL : <nl> allBuiltinProtocolFeatureDigests = biosNode . getAllBuiltinFeatureDigestsToPreactivate ( ) <nl> mmm a / tests / Node . py <nl> ppp b / tests / Node . py <nl> def activatePreactivateFeature ( self ) : <nl> self . scheduleProtocolFeatureActivations ( [ preactivateFeatureDigest ] ) <nl> <nl> # Wait for the next block to be produced so the scheduled protocol feature is activated <nl> - self . waitForHeadToAdvance ( ) <nl> + assert self . waitForHeadToAdvance ( ) , print ( " ERROR : TIMEOUT WAITING FOR PREACTIVATE " ) <nl> <nl> # Return an array of feature digests to be preactivated in a correct order respecting dependencies <nl> # Require producer_api_plugin <nl> mmm a / tests / prod_preactivation_test . py <nl> ppp b / tests / prod_preactivation_test . py <nl> <nl> <nl> node0 = cluster . getNode ( 0 ) <nl> contract = " eosio . bios " <nl> - contractDir = " unittests / contracts / % s " % ( contract ) <nl> + contractDir = " unittests / contracts / old_versions / v1 . 7 . 0 - develop - preactivate_feature / % s " % ( contract ) <nl> wasmFile = " % s . wasm " % ( contract ) <nl> abiFile = " % s . abi " % ( contract ) <nl> <nl> | fix more NP tests , also fix producer plugins capture of data that goes stale before its use in finalize_block | EOSIO/eos | 02732946800a1f7f8c5fee984ada3249b3f0dbb5 | 2019-05-29T20:18:59Z |
mmm a / src / mongo / s / chunk_diff . hpp <nl> ppp b / src / mongo / s / chunk_diff . hpp <nl> namespace mongo { <nl> <nl> / / <nl> / / Basic idea behind the query is to find all the chunks $ gt the current max version , and <nl> - / / then also update chunks that we need minor versions for - i . e . max chunks on shards and <nl> - / / extra versions we pass in ( for splits ) <nl> + / / then also update chunks that we need minor versions - splits and ( 2 . 0 ) max chunks on <nl> + / / shards <nl> / / <nl> <nl> + static const int maxMinorVersionClauses = 50 ; <nl> BSONObjBuilder queryB ; <nl> - { <nl> + <nl> + int numStaleMinorClauses = extraMinorVersions . size ( ) + _maxShardVersions - > size ( ) ; <nl> + <nl> + # ifdef _DEBUG <nl> + / / In debug builds , randomly trigger full reloads to exercise both codepaths <nl> + if ( rand ( ) % 2 ) numStaleMinorClauses = maxMinorVersionClauses ; <nl> + # endif <nl> + <nl> + if ( numStaleMinorClauses < maxMinorVersionClauses ) { <nl> + <nl> BSONArrayBuilder queryOrB ( queryB . subarrayStart ( " $ or " ) ) ; <nl> <nl> + / / <nl> / / Get any version changes higher than we know currently <nl> + / / <nl> + <nl> { <nl> BSONObjBuilder queryNewB ( queryOrB . subobjStart ( ) ) ; <nl> <nl> namespace mongo { <nl> } <nl> <nl> / / Get any minor version changes we ' ve marked as interesting <nl> - / / TODO : Ideally , we shouldn ' t care about these <nl> + / / TODO : Ideally we shouldn ' t care about these <nl> for ( set < ShardChunkVersion > : : const_iterator it = extraMinorVersions . begin ( ) ; it ! = extraMinorVersions . end ( ) ; it + + ) { <nl> BSONObjBuilder queryShardB ( queryOrB . subobjStart ( ) ) ; <nl> <nl> namespace mongo { <nl> <nl> queryOrB . done ( ) ; <nl> } <nl> + else { <nl> + <nl> + / / <nl> + / / We don ' t want to send a giant $ or query to the server , so just get all the chunks <nl> + / / <nl> + <nl> + queryB . append ( " ns " , _ns ) ; <nl> + } <nl> <nl> BSONObj query = queryB . obj ( ) ; <nl> <nl> | SERVER - 5794 max out $ or clauses for config reload queries | mongodb/mongo | 17ffcb08ac1d62ce8cd4296f5a42850abb070a22 | 2012-06-12T18:59:41Z |
mmm a / osquery / tables / CMakeLists . txt <nl> ppp b / osquery / tables / CMakeLists . txt <nl> ADD_OSQUERY_LIBRARY ( osquery_tables <nl> networking / etc_hosts . cpp <nl> utility / time . cpp <nl> system / last . cpp <nl> + system / bash_history . cpp <nl> base . h <nl> ) <nl> <nl> new file mode 100644 <nl> index 0000000000 . . f87c868de6 <nl> mmm / dev / null <nl> ppp b / osquery / tables / specs / x / bash_history . table <nl> <nl> + table_name ( " bash_history " ) <nl> + schema ( [ <nl> + Column ( name = " username " , type = " std : : string " ) , <nl> + Column ( name = " command " , type = " std : : string " ) , <nl> + ] ) <nl> + implementation ( " bash_history @ genBashHistory " ) <nl> new file mode 100644 <nl> index 0000000000 . . c7b31facf9 <nl> mmm / dev / null <nl> ppp b / osquery / tables / system / bash_history . cpp <nl> <nl> + / / Copyright 2004 - present Facebook . All Rights Reserved . <nl> + <nl> + # include < vector > <nl> + # include < string > <nl> + <nl> + # include < glog / logging . h > <nl> + <nl> + # include < pwd . h > <nl> + <nl> + # include < boost / lexical_cast . hpp > <nl> + <nl> + # include " osquery / sql . h " <nl> + # include " osquery / core . h " <nl> + # include " osquery / database . h " <nl> + # include " osquery / filesystem . h " <nl> + <nl> + namespace osquery { <nl> + namespace tables { <nl> + <nl> + QueryData genBashHistory ( ) { <nl> + QueryData results ; <nl> + std : : string history_content ; <nl> + std : : string history_file = " . bash_history " ; <nl> + std : : string user_history ; <nl> + std : : string sql_str ; <nl> + <nl> + if ( ! getuid ( ) ) { <nl> + sql_str = " SELECT username , directory FROM users " ; <nl> + } else { <nl> + struct passwd * pwd = nullptr ; <nl> + pwd = getpwuid ( getuid ( ) ) ; <nl> + / / TODO : Come back here when osquery supports parametrized queries , until then SQLi ! <nl> + sql_str = " SELECT username , directory FROM users WHERE username = ' " + std : : string ( pwd - > pw_name ) + " ' ; " ; <nl> + } <nl> + <nl> + auto sql = SQL ( sql_str ) ; <nl> + <nl> + if ( sql . ok ( ) ) { <nl> + for ( const auto & row : sql . rows ( ) ) { <nl> + try { <nl> + auto username = row . at ( " username " ) ; <nl> + auto directory = row . at ( " directory " ) ; <nl> + std : : string : : iterator last_c = directory . end ( ) - 1 ; <nl> + if ( * last_c = = ' / ' ) { <nl> + user_history = directory + history_file ; <nl> + } else { <nl> + user_history = directory + ' / ' + history_file ; <nl> + } <nl> + Status s = readFile ( user_history , history_content ) ; <nl> + if ( s . ok ( ) ) { <nl> + for ( const auto & line : split ( history_content , " \ n " ) ) { <nl> + Row r ; <nl> + r [ " username " ] = std : : string ( username ) ; <nl> + r [ " command " ] = std : : string ( line ) ; <nl> + results . push_back ( r ) ; <nl> + } <nl> + } <nl> + } catch ( const std : : out_of_range & e ) { <nl> + LOG ( ERROR ) < < " Error retrieving query column " ; <nl> + } <nl> + } <nl> + } else { <nl> + LOG ( ERROR ) < < sql . getMessageString ( ) ; <nl> + } <nl> + <nl> + return results ; <nl> + } <nl> + } <nl> + } <nl> | Adding virtual table bash_history , for linux and darwin | osquery/osquery | cfcee79f0f541ee4951c4d1235cd01940c745062 | 2014-10-17T23:57:03Z |
mmm a / src / clustering / administration / http / json_adapters . tcc <nl> ppp b / src / clustering / administration / http / json_adapters . tcc <nl> template < class T , class ctx_t > <nl> void with_ctx_apply_json_to ( cJSON * change , deletable_t < T > * target , const ctx_t & ctx ) { <nl> if ( is_null ( change ) ) { <nl> target - > mark_deleted ( ) ; <nl> + } else if ( target - > is_deleted ( ) ) { <nl> + throw gone_exc_t ( ) ; <nl> } else { <nl> with_ctx_apply_json_to ( change , target - > get_mutable ( ) , ctx ) ; <nl> } <nl> template < class T > <nl> void apply_json_to ( cJSON * change , deletable_t < T > * target ) { <nl> if ( is_null ( change ) ) { <nl> target - > mark_deleted ( ) ; <nl> + } else if ( target - > is_deleted ( ) ) { <nl> + throw gone_exc_t ( ) ; <nl> } else { <nl> - apply_json_to ( change , & target - > get_mutable ( ) ) ; <nl> + with_ctx_apply_json_to ( change , target - > get_mutable ( ) ) ; <nl> } <nl> } <nl> <nl> mmm a / src / clustering / administration / http / semilattice_app . cc <nl> ppp b / src / clustering / administration / http / semilattice_app . cc <nl> http_res_t semilattice_http_app_t : : handle ( const http_req_t & req ) { <nl> } catch ( const cannot_satisfy_goals_exc_t & e ) { <nl> logINF ( " The server was given a set of goals for which it couldn ' t find a valid blueprint . % s " , e . what ( ) ) ; <nl> return http_error_res ( e . what ( ) , HTTP_INTERNAL_SERVER_ERROR ) ; <nl> + } catch ( const gone_exc_t & e ) { <nl> + logINF ( " HTTP request throw a gone_exc_t with what = % s " , e . what ( ) ) ; <nl> + return http_error_res ( e . what ( ) , HTTP_GONE ) ; <nl> } <nl> unreachable ( ) ; <nl> } <nl> mmm a / src / http / http . hpp <nl> ppp b / src / http / http . hpp <nl> enum http_status_code_t { <nl> HTTP_FORBIDDEN = 403 , <nl> HTTP_NOT_FOUND = 404 , <nl> HTTP_METHOD_NOT_ALLOWED = 405 , <nl> + HTTP_GONE = 410 , <nl> HTTP_UNSUPPORTED_MEDIA_TYPE = 415 , <nl> HTTP_INTERNAL_SERVER_ERROR = 500 <nl> } ; <nl> mmm a / src / http / json / json_adapter . hpp <nl> ppp b / src / http / json / json_adapter . hpp <nl> struct permission_denied_exc_t : public json_adapter_exc_t { <nl> } ; <nl> <nl> struct multiple_choices_exc_t : public json_adapter_exc_t { <nl> - virtual const char * what ( ) const throw ( ) { <nl> + const char * what ( ) const throw ( ) { <nl> return " Multiple choices exists for this json value ( probably vector clock divergence ) . " ; <nl> } <nl> } ; <nl> <nl> + struct gone_exc_t : public json_adapter_exc_t { <nl> + const char * what ( ) const throw ( ) { <nl> + return " Trying to access a deleted value . " ; <nl> + } <nl> + } ; <nl> + <nl> / / Type checking functions <nl> <nl> bool is_null ( cJSON * json ) ; <nl> | Don ' t crash when writing to a deleted value . | rethinkdb/rethinkdb | 8765671305e62039e741e3f1d76918d2ee91b4f0 | 2012-10-25T18:56:35Z |
mmm a / demo / multiclass_classification / README . md <nl> ppp b / demo / multiclass_classification / README . md <nl> <nl> Demonstrating how to use XGBoost accomplish Multi - Class classification task on [ UCI Dermatology dataset ] ( https : / / archive . ics . uci . edu / ml / datasets / Dermatology ) <nl> <nl> - Make sure you make make xgboost python module in . . / . . / python <nl> + Make sure you make xgboost python module in . . / . . / python <nl> <nl> 1 . Run runexp . sh <nl> ` ` ` bash <nl> | Typo fixed ( ) | dmlc/xgboost | 1db28b8718081a63a55ecc1d861a8d21802d6cb5 | 2018-10-10T17:23:27Z |
mmm a / src / netbase . cpp <nl> ppp b / src / netbase . cpp <nl> enum Network ParseNetwork ( std : : string net ) { <nl> if ( net = = " ipv4 " ) return NET_IPV4 ; <nl> if ( net = = " ipv6 " ) return NET_IPV6 ; <nl> if ( net = = " tor " ) return NET_TOR ; <nl> - if ( net = = " i2p " ) return NET_I2P ; <nl> return NET_UNROUTABLE ; <nl> } <nl> <nl> void CNetAddr : : SetIP ( const CNetAddr & ipIn ) <nl> } <nl> <nl> static const unsigned char pchOnionCat [ ] = { 0xFD , 0x87 , 0xD8 , 0x7E , 0xEB , 0x43 } ; <nl> - static const unsigned char pchGarliCat [ ] = { 0xFD , 0x60 , 0xDB , 0x4D , 0xDD , 0xB5 } ; <nl> <nl> bool CNetAddr : : SetSpecial ( const std : : string & strName ) <nl> { <nl> bool CNetAddr : : SetSpecial ( const std : : string & strName ) <nl> ip [ i + sizeof ( pchOnionCat ) ] = vchAddr [ i ] ; <nl> return true ; <nl> } <nl> - if ( strName . size ( ) > 11 & & strName . substr ( strName . size ( ) - 11 , 11 ) = = " . oc . b32 . i2p " ) { <nl> - std : : vector < unsigned char > vchAddr = DecodeBase32 ( strName . substr ( 0 , strName . size ( ) - 11 ) . c_str ( ) ) ; <nl> - if ( vchAddr . size ( ) ! = 16 - sizeof ( pchGarliCat ) ) <nl> - return false ; <nl> - memcpy ( ip , pchOnionCat , sizeof ( pchGarliCat ) ) ; <nl> - for ( unsigned int i = 0 ; i < 16 - sizeof ( pchGarliCat ) ; i + + ) <nl> - ip [ i + sizeof ( pchGarliCat ) ] = vchAddr [ i ] ; <nl> - return true ; <nl> - } <nl> return false ; <nl> } <nl> <nl> bool CNetAddr : : IsIPv4 ( ) const <nl> <nl> bool CNetAddr : : IsIPv6 ( ) const <nl> { <nl> - return ( ! IsIPv4 ( ) & & ! IsTor ( ) & & ! IsI2P ( ) ) ; <nl> + return ( ! IsIPv4 ( ) & & ! IsTor ( ) ) ; <nl> } <nl> <nl> bool CNetAddr : : IsRFC1918 ( ) const <nl> bool CNetAddr : : IsTor ( ) const <nl> return ( memcmp ( ip , pchOnionCat , sizeof ( pchOnionCat ) ) = = 0 ) ; <nl> } <nl> <nl> - bool CNetAddr : : IsI2P ( ) const <nl> - { <nl> - return ( memcmp ( ip , pchGarliCat , sizeof ( pchGarliCat ) ) = = 0 ) ; <nl> - } <nl> - <nl> bool CNetAddr : : IsLocal ( ) const <nl> { <nl> / / IPv4 loopback <nl> bool CNetAddr : : IsValid ( ) const <nl> <nl> bool CNetAddr : : IsRoutable ( ) const <nl> { <nl> - return IsValid ( ) & & ! ( IsRFC1918 ( ) | | IsRFC3927 ( ) | | IsRFC4862 ( ) | | ( IsRFC4193 ( ) & & ! IsTor ( ) & & ! IsI2P ( ) ) | | IsRFC4843 ( ) | | IsLocal ( ) ) ; <nl> + return IsValid ( ) & & ! ( IsRFC1918 ( ) | | IsRFC3927 ( ) | | IsRFC4862 ( ) | | ( IsRFC4193 ( ) & & ! IsTor ( ) ) | | IsRFC4843 ( ) | | IsLocal ( ) ) ; <nl> } <nl> <nl> enum Network CNetAddr : : GetNetwork ( ) const <nl> enum Network CNetAddr : : GetNetwork ( ) const <nl> if ( IsTor ( ) ) <nl> return NET_TOR ; <nl> <nl> - if ( IsI2P ( ) ) <nl> - return NET_I2P ; <nl> - <nl> return NET_IPV6 ; <nl> } <nl> <nl> std : : string CNetAddr : : ToStringIP ( ) const <nl> { <nl> if ( IsTor ( ) ) <nl> return EncodeBase32 ( & ip [ 6 ] , 10 ) + " . onion " ; <nl> - if ( IsI2P ( ) ) <nl> - return EncodeBase32 ( & ip [ 6 ] , 10 ) + " . oc . b32 . i2p " ; <nl> CService serv ( * this , 0 ) ; <nl> # ifdef USE_IPV6 <nl> struct sockaddr_storage sockaddr ; <nl> std : : vector < unsigned char > CNetAddr : : GetGroup ( ) const <nl> nStartByte = 6 ; <nl> nBits = 4 ; <nl> } <nl> - else if ( IsI2P ( ) ) <nl> - { <nl> - nClass = NET_I2P ; <nl> - nStartByte = 6 ; <nl> - nBits = 4 ; <nl> - } <nl> / / for he . net , use / 36 groups <nl> else if ( GetByte ( 15 ) = = 0x20 & & GetByte ( 14 ) = = 0x11 & & GetByte ( 13 ) = = 0x04 & & GetByte ( 12 ) = = 0x70 ) <nl> nBits = 36 ; <nl> int CNetAddr : : GetReachabilityFrom ( const CNetAddr * paddrPartner ) const <nl> case NET_IPV4 : return REACH_IPV4 ; / / Tor users can connect to IPv4 as well <nl> case NET_TOR : return REACH_PRIVATE ; <nl> } <nl> - case NET_I2P : <nl> - switch ( ourNet ) { <nl> - default : return REACH_DEFAULT ; <nl> - case NET_I2P : return REACH_PRIVATE ; <nl> - } <nl> case NET_TEREDO : <nl> switch ( ourNet ) { <nl> default : return REACH_DEFAULT ; <nl> int CNetAddr : : GetReachabilityFrom ( const CNetAddr * paddrPartner ) const <nl> case NET_TEREDO : return REACH_TEREDO ; <nl> case NET_IPV6 : return REACH_IPV6_WEAK ; <nl> case NET_IPV4 : return REACH_IPV4 ; <nl> - case NET_I2P : return REACH_PRIVATE ; / / assume connections from unroutable addresses are <nl> - case NET_TOR : return REACH_PRIVATE ; / / either from Tor / I2P , or don ' t care about our address <nl> + case NET_TOR : return REACH_PRIVATE ; / / either from Tor , or don ' t care about our address <nl> } <nl> } <nl> } <nl> std : : string CService : : ToStringPort ( ) const <nl> <nl> std : : string CService : : ToStringIPPort ( ) const <nl> { <nl> - if ( IsIPv4 ( ) | | IsTor ( ) | | IsI2P ( ) ) { <nl> + if ( IsIPv4 ( ) | | IsTor ( ) ) { <nl> return ToStringIP ( ) + " : " + ToStringPort ( ) ; <nl> } else { <nl> return " [ " + ToStringIP ( ) + " ] : " + ToStringPort ( ) ; <nl> mmm a / src / netbase . h <nl> ppp b / src / netbase . h <nl> enum Network <nl> NET_IPV4 , <nl> NET_IPV6 , <nl> NET_TOR , <nl> - NET_I2P , <nl> <nl> NET_MAX , <nl> } ; <nl> class CNetAddr <nl> explicit CNetAddr ( const std : : string & strIp , bool fAllowLookup = false ) ; <nl> void Init ( ) ; <nl> void SetIP ( const CNetAddr & ip ) ; <nl> - bool SetSpecial ( const std : : string & strName ) ; / / for Tor and I2P addresses <nl> + bool SetSpecial ( const std : : string & strName ) ; / / for Tor addresses <nl> bool IsIPv4 ( ) const ; / / IPv4 mapped address ( : : FFFF : 0 : 0 / 96 , 0 . 0 . 0 . 0 / 0 ) <nl> - bool IsIPv6 ( ) const ; / / IPv6 address ( not mapped IPv4 , not Tor / I2P ) <nl> + bool IsIPv6 ( ) const ; / / IPv6 address ( not mapped IPv4 , not Tor ) <nl> bool IsRFC1918 ( ) const ; / / IPv4 private networks ( 10 . 0 . 0 . 0 / 8 , 192 . 168 . 0 . 0 / 16 , 172 . 16 . 0 . 0 / 12 ) <nl> bool IsRFC3849 ( ) const ; / / IPv6 documentation address ( 2001 : 0DB8 : : / 32 ) <nl> bool IsRFC3927 ( ) const ; / / IPv4 autoconfig ( 169 . 254 . 0 . 0 / 16 ) <nl> class CNetAddr <nl> bool IsRFC6052 ( ) const ; / / IPv6 well - known prefix ( 64 : FF9B : : / 96 ) <nl> bool IsRFC6145 ( ) const ; / / IPv6 IPv4 - translated address ( : : FFFF : 0 : 0 : 0 / 96 ) <nl> bool IsTor ( ) const ; <nl> - bool IsI2P ( ) const ; <nl> bool IsLocal ( ) const ; <nl> bool IsRoutable ( ) const ; <nl> bool IsValid ( ) const ; <nl> | Merge pull request from sipa / noi2p | bitcoin/bitcoin | 24694e24ed6085d2184b396b9e8f717cc56754c3 | 2012-10-11T07:41:33Z |
mmm a / lib / cximage - 6 . 0 / CxImage / ximadsp . cpp <nl> ppp b / lib / cximage - 6 . 0 / CxImage / ximadsp . cpp <nl> bool CxImage : : Colorize ( BYTE hue , BYTE sat , float blend ) <nl> hsl . rgbRed = hue ; <nl> hsl . rgbGreen = sat ; <nl> hsl . rgbBlue = ( BYTE ) RGB2GRAY ( color . rgbRed , color . rgbGreen , color . rgbBlue ) ; <nl> + hsl . rgbReserved = ( BYTE ) 0 ; <nl> hsl = HSLtoRGB ( hsl ) ; <nl> / / BlendPixelColor ( x , y , hsl , blend ) ; <nl> / / color . rgbRed = ( BYTE ) ( hsl . rgbRed * blend + color . rgbRed * ( 1 . 0f - blend ) ) ; <nl> bool CxImage : : Colorize ( BYTE hue , BYTE sat , float blend ) <nl> hsl . rgbRed = hue ; <nl> hsl . rgbGreen = sat ; <nl> hsl . rgbBlue = ( BYTE ) RGB2GRAY ( color . rgbRed , color . rgbGreen , color . rgbBlue ) ; <nl> + hsl . rgbReserved = ( BYTE ) 0 ; <nl> hsl = HSLtoRGB ( hsl ) ; <nl> color . rgbRed = ( BYTE ) ( hsl . rgbRed * blend + color . rgbRed * ( 1 . 0f - blend ) ) ; <nl> color . rgbBlue = ( BYTE ) ( hsl . rgbBlue * blend + color . rgbBlue * ( 1 . 0f - blend ) ) ; <nl> bool CxImage : : Combine ( CxImage * r , CxImage * g , CxImage * b , CxImage * a , long colorspa <nl> c . rgbRed = r - > GetPixelIndex ( x , y ) ; <nl> c . rgbGreen = g - > GetPixelIndex ( x , y ) ; <nl> c . rgbBlue = b - > GetPixelIndex ( x , y ) ; <nl> + c . rgbReserved = ( BYTE ) 0 ; <nl> switch ( colorspace ) { <nl> case 1 : <nl> BlindSetPixelColor ( x , y , HSLtoRGB ( c ) ) ; <nl> bool CxImage : : UnsharpMask ( float radius / * = 5 . 0 * / , float amount / * = 0 . 5 * / , int th <nl> pPalette = new RGBQUAD [ head . biClrUsed ] ; <nl> memcpy ( pPalette , GetPalette ( ) , GetPaletteSize ( ) ) ; <nl> if ( ! IncreaseBpp ( 24 ) ) <nl> + { <nl> + delete [ ] pPalette ; <nl> return false ; <nl> + } <nl> } <nl> <nl> CxImage iDst ; <nl> mmm a / lib / cximage - 6 . 0 / CxImage / xmemfile . cpp <nl> ppp b / lib / cximage - 6 . 0 / CxImage / xmemfile . cpp <nl> bool CxMemFile : : Alloc ( DWORD dwNewLen ) <nl> <nl> / / allocate new buffer <nl> if ( m_pBuffer = = NULL ) m_pBuffer = ( BYTE * ) malloc ( dwNewBufferSize ) ; <nl> - else m_pBuffer = ( BYTE * ) realloc ( m_pBuffer , dwNewBufferSize ) ; <nl> + else <nl> + { <nl> + BYTE * new_buf = ( BYTE * ) realloc ( m_pBuffer , dwNewBufferSize ) ; <nl> + if ( ! new_buf ) <nl> + { <nl> + free ( m_pBuffer ) ; <nl> + m_bFreeOnClose = false ; <nl> + return false ; <nl> + } <nl> + else <nl> + m_pBuffer = new_buf ; <nl> + } <nl> / / I own this buffer now ( caller knows nothing about it ) <nl> - m_bFreeOnClose = true ; <nl> + if ( m_pBuffer ) <nl> + m_bFreeOnClose = true ; <nl> <nl> m_Edge = dwNewBufferSize ; <nl> } <nl> mmm a / lib / cximage - 6 . 0 / png / pngwutil . c <nl> ppp b / lib / cximage - 6 . 0 / png / pngwutil . c <nl> png_write_tIME ( png_structp png_ptr , png_timep mod_time ) <nl> png_write_chunk ( png_ptr , png_tIME , buf , ( png_size_t ) 7 ) ; <nl> } <nl> # endif <nl> - <nl> / * initializes the row writing capability of libpng * / <nl> void / * PRIVATE * / <nl> png_write_start_row ( png_structp png_ptr ) <nl> png_write_start_row ( png_structp png_ptr ) <nl> ( png_ptr - > rowbytes + 1 ) ) ; <nl> png_ptr - > paeth_row [ 0 ] = PNG_FILTER_VALUE_PAETH ; <nl> } <nl> - # endif / * PNG_NO_WRITE_FILTERING * / <nl> } <nl> + # endif / * PNG_NO_WRITE_FILTERING * / <nl> <nl> # ifdef PNG_WRITE_INTERLACING_SUPPORTED <nl> / * if interlaced , we need to set up width and height of pass * / <nl> mmm a / lib / cximage - 6 . 0 / raw / dcraw . c <nl> ppp b / lib / cximage - 6 . 0 / raw / dcraw . c <nl> void CLASS subtract ( char * fname ) <nl> BAYER ( row , col ) = MAX ( BAYER ( row , col ) - ntohs ( pixel [ col ] ) , 0 ) ; <nl> } <nl> free ( pixel ) ; <nl> + fclose ( fp ) ; <nl> black = 0 ; <nl> } <nl> <nl> void CLASS romm_coeff ( float romm_cam [ 3 ] [ 3 ] ) <nl> void CLASS parse_mos ( int offset ) <nl> { <nl> char data [ 40 ] ; <nl> - int skip , from , i , c , neut [ 4 ] , planes = 0 , frot = 0 ; <nl> + int skip , from , i , j , c , neut [ 4 ] , planes = 0 , frot = 0 ; <nl> static const char * mod [ ] = <nl> { " " , " DCB2 " , " Volare " , " Cantare " , " CMost " , " Valeo 6 " , " Valeo 11 " , " Valeo 22 " , <nl> " Valeo 11p " , " Valeo 17 " , " " , " Aptus 17 " , " Aptus 22 " , " Aptus 75 " , " Aptus 65 " , <nl> void CLASS parse_mos ( int offset ) <nl> strcpy ( model , mod [ i ] ) ; <nl> } <nl> if ( ! strcmp ( data , " icc_camera_to_tone_matrix " ) ) { <nl> - for ( i = 0 ; i < 9 ; i + + ) <nl> - romm_cam [ 0 ] [ i ] = int_to_float ( get4 ( ) ) ; <nl> + for ( i = 0 ; i < 3 ; i + + ) <nl> + for ( j = 0 ; j < 3 ; j + + ) <nl> + romm_cam [ i ] [ j ] = int_to_float ( get4 ( ) ) ; <nl> romm_coeff ( romm_cam ) ; <nl> } <nl> if ( ! strcmp ( data , " CaptProf_color_matrix " ) ) { <nl> - for ( i = 0 ; i < 9 ; i + + ) <nl> - fscanf ( ifp , " % f " , & romm_cam [ 0 ] [ i ] ) ; <nl> + for ( i = 0 ; i < 3 ; i + + ) <nl> + for ( j = 0 ; j < 3 ; j + + ) <nl> + fscanf ( ifp , " % f " , & romm_cam [ i ] [ j ] ) ; <nl> romm_coeff ( romm_cam ) ; <nl> } <nl> if ( ! strcmp ( data , " CaptProf_number_of_planes " ) ) <nl> mmm a / lib / cximage - 6 . 0 / raw / libdcr . c <nl> ppp b / lib / cximage - 6 . 0 / raw / libdcr . c <nl> void DCR_CLASS dcr_romm_coeff ( DCRAW * p , float romm_cam [ 3 ] [ 3 ] ) <nl> void DCR_CLASS dcr_parse_mos ( DCRAW * p , int offset ) <nl> { <nl> char data [ 40 ] ; <nl> - int skip , from , i = 0 , c , neut [ 4 ] , planes = 0 , frot = 0 ; <nl> + int skip , from , i = 0 , j , c , neut [ 4 ] , planes = 0 , frot = 0 ; <nl> static const char * mod [ ] = <nl> { " " , " DCB2 " , " Volare " , " Cantare " , " CMost " , " Valeo 6 " , " Valeo 11 " , " Valeo 22 " , <nl> " Valeo 11p " , " Valeo 17 " , " " , " Aptus 17 " , " Aptus 22 " , " Aptus 75 " , " Aptus 65 " , <nl> void DCR_CLASS dcr_parse_mos ( DCRAW * p , int offset ) <nl> strcpy ( p - > model , mod [ i ] ) ; <nl> } <nl> if ( ! strcmp ( data , " icc_camera_to_tone_matrix " ) ) { <nl> - for ( i = 0 ; i < 9 ; i + + ) <nl> - romm_cam [ 0 ] [ i ] = dcr_int_to_float ( dcr_get4 ( p ) ) ; <nl> + for ( i = 0 ; i < 3 ; i + + ) <nl> + for ( j = 0 ; j < 3 ; j + + ) <nl> + romm_cam [ i ] [ j ] = dcr_int_to_float ( dcr_get4 ( p ) ) ; <nl> dcr_romm_coeff ( p , romm_cam ) ; <nl> } <nl> if ( ! strcmp ( data , " CaptProf_color_matrix " ) ) { <nl> - for ( i = 0 ; i < 9 ; i + + ) <nl> - dcr_fscanf ( p - > obj_ , " % f " , & romm_cam [ 0 ] [ i ] ) ; <nl> + for ( i = 0 ; i < 3 ; i + + ) <nl> + for ( j = 0 ; j < 3 ; j + + ) <nl> + dcr_fscanf ( p - > obj_ , " % f " , & romm_cam [ i ] [ j ] ) ; <nl> dcr_romm_coeff ( p , romm_cam ) ; <nl> } <nl> if ( ! strcmp ( data , " CaptProf_number_of_planes " ) ) <nl> | Merge pull request from ace20022 / cximage_fixes | xbmc/xbmc | 679d7b2000484fb91f30e3d2046ea017d7bb4042 | 2013-09-26T17:32:03Z |
mmm a / doc / gitian - building . md <nl> ppp b / doc / gitian - building . md <nl> Gitian building <nl> <nl> Gitian is the deterministic build process that is used to build the Bitcoin <nl> Core executables . It provides a way to be reasonably sure that the <nl> - executables are really built from source on GitHub . It also makes sure that <nl> + executables are really built from the source on GitHub . It also makes sure that <nl> the same , tested dependencies are used and statically built into the executable . <nl> <nl> Multiple developers build the source code by following a specific descriptor <nl> Multiple developers build the source code by following a specific descriptor <nl> These results are compared and only if they match , the build is accepted and uploaded <nl> to bitcoin . org . <nl> <nl> - More independent gitian builders are needed , which is why I wrote this <nl> - guide . It is preferred to follow these steps yourself instead of using someone else ' s <nl> + More independent gitian builders are needed , which is why this guide exists . <nl> + It is preferred you follow these steps yourself instead of using someone else ' s <nl> VM image to avoid ' contaminating ' the build . <nl> <nl> Table of Contents <nl> This guide explains how to set up the environment , and how to start the builds . <nl> <nl> Debian Linux was chosen as the host distribution because it has a lightweight install ( in contrast to Ubuntu ) and is readily available . <nl> Any kind of virtualization can be used , for example : <nl> - - [ VirtualBox ] ( https : / / www . virtualbox . org / ) , covered by this guide <nl> + - [ VirtualBox ] ( https : / / www . virtualbox . org / ) ( covered by this guide ) <nl> - [ KVM ] ( http : / / www . linux - kvm . org / page / Main_Page ) <nl> - [ LXC ] ( https : / / linuxcontainers . org / ) , see also [ Gitian host docker container ] ( https : / / github . com / gdm85 / tenku / tree / master / docker / gitian - bitcoin - host / README . md ) . <nl> <nl> - You can also install on actual hardware instead of using virtualization . <nl> + You can also install gitian on actual hardware instead of using virtualization . <nl> <nl> Create a new VirtualBox VM <nl> mmmmmmmmmmmmmmmmmmmmmmmmmmm <nl> In the VirtualBox GUI click " Create " and choose the following parameters in the wizard : <nl> <nl> - ! [ ] ( gitian - building / create_vm_page1 . png ) <nl> + ! [ ] ( gitian - building / create_new_vm . png ) <nl> <nl> - - Type : Linux , Debian ( 64 bit ) <nl> + - Type : Linux , Debian ( 64 - bit ) <nl> <nl> ! [ ] ( gitian - building / create_vm_memsize . png ) <nl> <nl> - - Memory Size : at least 1024MB , anything lower will really slow the build down <nl> + - Memory Size : at least 1024MB , anything less will really slow down the build . <nl> <nl> - ! [ ] ( gitian - building / create_vm_hard_drive . png ) <nl> + ! [ ] ( gitian - building / create_vm_hard_disk . png ) <nl> <nl> - - Hard Drive : Create a virtual hard drive now <nl> + - Hard Disk : Create a virtual hard disk now <nl> <nl> - ! [ ] ( gitian - building / create_vm_hard_drive_file_type . png ) <nl> + ! [ ] ( gitian - building / create_vm_hard_disk_file_type . png ) <nl> <nl> - - Hard Drive file type : Use the default , VDI ( VirtualBox Disk Image ) <nl> + - Hard Disk file type : Use the default , VDI ( VirtualBox Disk Image ) <nl> <nl> - ! [ ] ( gitian - building / create_vm_storage_physical_hard_drive . png ) <nl> + ! [ ] ( gitian - building / create_vm_storage_physical_hard_disk . png ) <nl> <nl> - - Storage on Physical hard drive : Dynamically Allocated <nl> + - Storage on physical hard disk : Dynamically Allocated <nl> <nl> ! [ ] ( gitian - building / create_vm_file_location_size . png ) <nl> <nl> - - Disk size : at least 40GB ; as low as 20GB * may * be possible , but better to err on the safe side <nl> - - Push the ` Create ` button <nl> + - File location and size : at least 40GB ; as low as 20GB * may * be possible , but better to err on the safe side <nl> + - Click ` Create ` <nl> <nl> - Get the [ Debian 7 . 8 net installer ] ( http : / / cdimage . debian . org / cdimage / archive / 7 . 8 . 0 / amd64 / iso - cd / debian - 7 . 8 . 0 - amd64 - netinst . iso ) ( a more recent minor version should also work , see also [ Debian Network installation ] ( https : / / www . debian . org / CD / netinst / ) ) . <nl> + Get the [ Debian 8 . 1 net installer ] ( http : / / cdimage . debian . org / debian - cd / 8 . 1 . 0 / amd64 / iso - cd / debian - 8 . 1 . 0 - amd64 - netinst . iso ) ( a more recent minor version should also work , see also [ Debian Network installation ] ( https : / / www . debian . org / CD / netinst / ) ) . <nl> This DVD image can be validated using a SHA256 hashing tool , for example on <nl> Unixy OSes by entering the following in a terminal : <nl> <nl> - echo " e39c36d6adc0fd86c6edb0e03e22919086c883b37ca194d063b8e3e8f6ff6a3a debian - 7 . 8 . 0 - amd64 - netinst . iso " | sha256sum - c <nl> + echo " 5d0a1f804d73aee73eee7efbb38456390558094fd19894a573f1514ca44347e0 debian - 8 . 1 . 0 - amd64 - netinst . iso " | sha256sum - c <nl> # ( must return OK ) <nl> <nl> After creating the VM , we need to configure it . <nl> This section will explain how to install Debian on the newly created VM . <nl> <nl> ! [ ] ( gitian - building / debian_install_1_boot_menu . png ) <nl> <nl> - * * Note * * : Navigation in the Debian installer : To keep a setting at the default <nl> - and proceed , just press ` Enter ` . To select a different button , press ` Tab ` . <nl> + * * Note * * : Navigating in the Debian installer : <nl> + To keep a setting at the default and proceed , just press ` Enter ` . <nl> + To select a different button , press ` Tab ` . <nl> <nl> - Choose locale and keyboard settings ( doesn ' t matter , you can just go with the defaults or select your own information ) <nl> <nl> and proceed , just press ` Enter ` . To select a different button , press ` Tab ` . <nl> <nl> - The VM will detect network settings using DHCP , this should all proceed automatically <nl> - Configure the network : <nl> - - System name ` debian ` . <nl> + - Hostname ` debian ` . <nl> - Leave domain name empty . <nl> <nl> ! [ ] ( gitian - building / debian_install_5_configure_the_network . png ) <nl> and proceed , just press ` Enter ` . To select a different button , press ` Tab ` . <nl> ! [ ] ( gitian - building / debian_install_6a_set_up_root_password . png ) <nl> <nl> - Name the new user ` debian ` ( the full name doesn ' t matter , you can leave it empty ) <nl> + - Set the account username as ` debian ` <nl> <nl> ! [ ] ( gitian - building / debian_install_7_set_up_user_fullname . png ) <nl> ! [ ] ( gitian - building / debian_install_8_set_up_username . png ) <nl> and proceed , just press ` Enter ` . To select a different button , press ` Tab ` . <nl> <nl> ! [ ] ( gitian - building / debian_install_12_choose_disk . png ) <nl> <nl> - - Partitioning scheme : All files in one partition <nl> - <nl> - ! [ ] ( gitian - building / debian_install_13_partition_scheme . png ) <nl> - <nl> - Finish partitioning and write changes to disk - > * Yes * ( ` Tab ` , ` Enter ` to select the ` Yes ` button ) <nl> <nl> - ! [ ] ( gitian - building / debian_install_14_finish . png ) <nl> + ! [ ] ( gitian - building / debian_install_14_finish . png ) <nl> ! [ ] ( gitian - building / debian_install_15_write_changes . png ) <nl> <nl> - The base system will be installed , this will take a minute or so <nl> and proceed , just press ` Enter ` . To select a different button , press ` Tab ` . <nl> <nl> ! [ ] ( gitian - building / debian_install_16_choose_a_mirror . png ) <nl> <nl> - - Enter proxy information ( unless you are on an intranet , you can leave this empty ) <nl> + - Enter proxy information ( unless you are on an intranet , leave this empty ) <nl> <nl> ! [ ] ( gitian - building / debian_install_18_proxy_settings . png ) <nl> <nl> - Wait a bit while ' Select and install software ' runs <nl> - Participate in popularity contest - > * No * <nl> - - Choose software to install . We need just the base system . <nl> + - Choose software to install . We need just the base system . <nl> + - Make sure only ' SSH server ' and ' Standard System Utilities ' are checked <nl> + - Uncheck ' Debian Desktop Environment ' and ' Print Server ' <nl> <nl> ! [ ] ( gitian - building / debian_install_19_software_selection . png ) <nl> <nl> - - Make sure only ' SSH server ' and ' Standard System Utilities ' are checked <nl> - - Uncheck ' Debian Desktop Environment ' and ' Print Server ' <nl> + - Install the GRUB boot loader to the master boot record ? - > Yes <nl> <nl> ! [ ] ( gitian - building / debian_install_20_install_grub . png ) <nl> <nl> - - Install the GRUB boot loader to the master boot record ? - > Yes <nl> + - Device for boot loader installation - > ata - VBOX_HARDDISK <nl> <nl> - ! [ ] ( gitian - building / debian_install_21_finish_installation . png ) <nl> + ! [ ] ( gitian - building / debian_install_21_install_grub_bootloader . png ) <nl> <nl> - Installation Complete - > * Continue * <nl> - After installation , the VM will reboot and you will have a working Debian VM . Congratulations ! <nl> <nl> + ! [ ] ( gitian - building / debian_install_22_finish_installation . png ) <nl> + <nl> + <nl> + After Installation <nl> + mmmmmmmmmmmmmmmmmm - <nl> + The next step in the guide involves logging in as root via SSH . <nl> + SSH login for root users is disabled by default , so we ' ll enable that now . <nl> + <nl> + Login to the VM using username ` root ` and the root password you choose earlier . <nl> + You ' ll be presented with a screen similar to this . <nl> + <nl> + ! [ ] ( gitian - building / debian_root_login . png ) <nl> + <nl> + Type : <nl> + <nl> + ` ` ` <nl> + sed - i ' s / ^ PermitRootLogin . * / PermitRootLogin yes / ' / etc / ssh / sshd_config <nl> + ` ` ` <nl> + and press enter . Then , <nl> + ` ` ` <nl> + / etc / init . d / ssh restart <nl> + ` ` ` <nl> + and enter to restart SSH . Logout by typing ' logout ' and pressing ' enter ' . <nl> + <nl> Connecting to the VM <nl> mmmmmmmmmmmmmmmmmmmmm - <nl> <nl> After the VM has booted you can connect to it using SSH , and files can be copied from and to the VM using a SFTP utility . <nl> Connect to ` localhost ` , port ` 22222 ` ( or the port configured when installing the VM ) . <nl> - On Windows you can use putty [ 1 ] and WinSCP [ 2 ] . <nl> + On Windows you can use [ putty ] ( http : / / www . chiark . greenend . org . uk / ~ sgtatham / putty / download . html ) and [ WinSCP ] ( http : / / winscp . net / eng / index . php ) . <nl> <nl> - For example to connect as ` root ` from a Linux command prompt use <nl> + For example , to connect as ` root ` from a Linux command prompt use <nl> <nl> $ ssh root @ localhost - p 22222 <nl> The authenticity of host ' [ localhost ] : 22222 ( [ 127 . 0 . 0 . 1 ] : 22222 ) ' can ' t be established . <nl> - ECDSA key fingerprint is 8e : 71 : f9 : 5b : 62 : 46 : de : 44 : 01 : da : fb : 5f : 34 : b5 : f2 : 18 . <nl> + RSA key fingerprint is ae : f5 : c8 : 9f : 17 : c6 : c7 : 1b : c2 : 1b : 12 : 31 : 1d : bb : d0 : c7 . <nl> Are you sure you want to continue connecting ( yes / no ) ? yes <nl> - Warning : Permanently added ' [ localhost ] : 22222 ' ( ECDSA ) to the list of known hosts . <nl> + Warning : Permanently added ' [ localhost ] : 22222 ' ( RSA ) to the list of known hosts . <nl> root @ localhost ' s password : ( enter root password configured during install ) <nl> - Linux debian 3 . 2 . 0 - 4 - amd64 # 1 SMP Debian 3 . 2 . 54 - 2 x86_64 <nl> + <nl> + The programs included with the Debian GNU / Linux system are free software ; <nl> + the exact distribution terms for each program are described in the <nl> + individual files in / usr / share / doc / * / copyright . <nl> + <nl> + Debian GNU / Linux comes with ABSOLUTELY NO WARRANTY , to the extent <nl> + permitted by applicable law . <nl> root @ debian : ~ # <nl> <nl> Replace ` root ` with ` debian ` to log in as user . <nl> <nl> - [ 1 ] http : / / www . chiark . greenend . org . uk / ~ sgtatham / putty / download . html <nl> - [ 2 ] http : / / winscp . net / eng / index . php <nl> - <nl> Setting up Debian for gitian building <nl> mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> <nl> First we need to log in as ` root ` to set up dependencies and make sure that our <nl> user can use the sudo command . Type / paste the following in the terminal : <nl> <nl> ` ` ` bash <nl> - apt - get install git ruby sudo apt - cacher - ng qemu - utils debootstrap lxc python - cheetah parted kpartx bridge - utils <nl> + apt - get install git ruby sudo apt - cacher - ng qemu - utils debootstrap lxc python - cheetah parted kpartx bridge - utils make ubuntu - archive - keyring <nl> adduser debian sudo <nl> ` ` ` <nl> <nl> - When you get a colorful screen with a question about the ' LXC directory ' , just <nl> - go with the default ( ` / var / lib / lxc ` ) . <nl> - <nl> Then set up LXC and the rest with the following , which is a complex jumble of settings and workarounds : <nl> <nl> ` ` ` bash <nl> reboot <nl> ` ` ` <nl> <nl> At the end the VM is rebooted to make sure that the changes take effect . The steps in this <nl> - section need only to be performed once . <nl> + section only need to be performed once . <nl> <nl> Installing gitian <nl> mmmmmmmmmmmmmmmmmm <nl> cd gitian - builder <nl> bin / make - base - vm - - lxc - - arch amd64 - - suite precise <nl> ` ` ` <nl> <nl> - There will be a lot of warnings printed during build of the image . These can be ignored . <nl> + There will be a lot of warnings printed during the build of the image . These can be ignored . <nl> <nl> * * Note * * : When sudo asks for a password , enter the password for the user * debian * not for * root * . <nl> <nl> Getting and building the inputs <nl> mmmmmmmmmmmmmmmmmmmmmmmmmmmmmm - - <nl> <nl> - Follow the instructions in [ doc / release - process . md ] ( release - process . md ) in the bitcoin repository <nl> - under ' Fetch and build inputs ' to install sources which require manual intervention . Also follow <nl> - the next step : ' Seed the Gitian sources cache ' , which will fetch all necessary source files allowing <nl> - for gitian to work offline . <nl> + Follow the instructions in [ doc / release - process . md ] ( release - process . md # fetch - and - build - inputs - first - time - or - when - dependency - versions - change ) <nl> + in the bitcoin repository to install sources which require manual intervention . Also follow <nl> + the next step : ' Seed the Gitian sources cache ' , which will fetch all the necessary source <nl> + files to allow gitian to work offline . <nl> <nl> Building Bitcoin <nl> mmmmmmmmmmmmmmm - <nl> <nl> To build Bitcoin ( for Linux , OSX and Windows ) just follow the steps under ' perform <nl> - gitian builds ' in [ doc / release - process . md ] ( release - process . md ) in the bitcoin repository . <nl> + gitian builds ' in [ doc / release - process . md ] ( release - process . md # perform - gitian - builds ) in the bitcoin repository . <nl> <nl> - This may take a long time as it also builds the dependencies needed for each descriptor . <nl> - These dependencies will be cached after a successful build to avoid rebuilding them where possible . <nl> + This may take some time as it will build all the dependencies needed for each descriptor . <nl> + These dependencies will be cached after a successful build to avoid rebuilding them when possible . <nl> <nl> At any time you can check the package installation and build progress with <nl> <nl> tail - f var / build . log <nl> Output from ` gbuild ` will look something like <nl> <nl> Initialized empty Git repository in / home / debian / gitian - builder / inputs / bitcoin / . git / <nl> - remote : Reusing existing pack : 35606 , done . <nl> - remote : Total 35606 ( delta 0 ) , reused 0 ( delta 0 ) <nl> - Receiving objects : 100 % ( 35606 / 35606 ) , 26 . 52 MiB | 4 . 28 MiB / s , done . <nl> - Resolving deltas : 100 % ( 25724 / 25724 ) , done . <nl> + remote : Counting objects : 57959 , done . <nl> + remote : Total 57959 ( delta 0 ) , reused 0 ( delta 0 ) , pack - reused 57958 <nl> + Receiving objects : 100 % ( 57959 / 57959 ) , 53 . 76 MiB | 484 . 00 KiB / s , done . <nl> + Resolving deltas : 100 % ( 41590 / 41590 ) , done . <nl> From https : / / github . com / bitcoin / bitcoin <nl> . . . ( new tags , new branch etc ) <nl> - mmm Building for precise x86_64 mmm <nl> + mmm Building for precise amd64 mmm <nl> Stopping target if it is up <nl> Making a new image copy <nl> stdin : is not a tty <nl> new file mode 100644 <nl> index 000000000000 . . dd22428e176b <nl> Binary files / dev / null and b / doc / gitian - building / create_new_vm . png differ <nl> new file mode 100644 <nl> index 000000000000 . . 8e29816fab9e <nl> Binary files / dev / null and b / doc / gitian - building / create_vm_hard_disk . png differ <nl> new file mode 100644 <nl> index 000000000000 . . a157211cf5ba <nl> Binary files / dev / null and b / doc / gitian - building / create_vm_hard_disk_file_type . png differ <nl> deleted file mode 100644 <nl> index a1706e14fda1 . . 000000000000 <nl> Binary files a / doc / gitian - building / create_vm_hard_drive . png and / dev / null differ <nl> deleted file mode 100644 <nl> index 251b8ee3e275 . . 000000000000 <nl> Binary files a / doc / gitian - building / create_vm_hard_drive_file_type . png and / dev / null differ <nl> Binary files a / doc / gitian - building / create_vm_memsize . png and b / doc / gitian - building / create_vm_memsize . png differ <nl> deleted file mode 100644 <nl> index edaebc622370 . . 000000000000 <nl> Binary files a / doc / gitian - building / create_vm_page1 . png and / dev / null differ <nl> new file mode 100644 <nl> index 000000000000 . . cee16a6c63b4 <nl> Binary files / dev / null and b / doc / gitian - building / create_vm_storage_physical_hard_disk . png differ <nl> deleted file mode 100644 <nl> index 987efaa40c2e . . 000000000000 <nl> Binary files a / doc / gitian - building / create_vm_storage_physical_hard_drive . png and / dev / null differ <nl> Binary files a / doc / gitian - building / debian_install_10_configure_clock . png and b / doc / gitian - building / debian_install_10_configure_clock . png differ <nl> Binary files a / doc / gitian - building / debian_install_11_partition_disks . png and b / doc / gitian - building / debian_install_11_partition_disks . png differ <nl> Binary files a / doc / gitian - building / debian_install_12_choose_disk . png and b / doc / gitian - building / debian_install_12_choose_disk . png differ <nl> deleted file mode 100644 <nl> index 2f80f19b631c . . 000000000000 <nl> Binary files a / doc / gitian - building / debian_install_13_partition_scheme . png and / dev / null differ <nl> Binary files a / doc / gitian - building / debian_install_14_finish . png and b / doc / gitian - building / debian_install_14_finish . png differ <nl> Binary files a / doc / gitian - building / debian_install_15_write_changes . png and b / doc / gitian - building / debian_install_15_write_changes . png differ <nl> Binary files a / doc / gitian - building / debian_install_16_choose_a_mirror . png and b / doc / gitian - building / debian_install_16_choose_a_mirror . png differ <nl> deleted file mode 100644 <nl> index cef2db078154 . . 000000000000 <nl> Binary files a / doc / gitian - building / debian_install_17_choose_a_mirror2 . png and / dev / null differ <nl> Binary files a / doc / gitian - building / debian_install_18_proxy_settings . png and b / doc / gitian - building / debian_install_18_proxy_settings . png differ <nl> Binary files a / doc / gitian - building / debian_install_19_software_selection . png and b / doc / gitian - building / debian_install_19_software_selection . png differ <nl> Binary files a / doc / gitian - building / debian_install_1_boot_menu . png and b / doc / gitian - building / debian_install_1_boot_menu . png differ <nl> Binary files a / doc / gitian - building / debian_install_20_install_grub . png and b / doc / gitian - building / debian_install_20_install_grub . png differ <nl> new file mode 100644 <nl> index 000000000000 . . 493ab806a673 <nl> Binary files / dev / null and b / doc / gitian - building / debian_install_21_install_grub_bootloader . png differ <nl> similarity index 98 % <nl> rename from doc / gitian - building / debian_install_21_finish_installation . png <nl> rename to doc / gitian - building / debian_install_22_finish_installation . png <nl> Binary files a / doc / gitian - building / debian_install_21_finish_installation . png and b / doc / gitian - building / debian_install_22_finish_installation . png differ <nl> Binary files a / doc / gitian - building / debian_install_2_select_a_language . png and b / doc / gitian - building / debian_install_2_select_a_language . png differ <nl> Binary files a / doc / gitian - building / debian_install_3_select_location . png and b / doc / gitian - building / debian_install_3_select_location . png differ <nl> Binary files a / doc / gitian - building / debian_install_4_configure_keyboard . png and b / doc / gitian - building / debian_install_4_configure_keyboard . png differ <nl> Binary files a / doc / gitian - building / debian_install_5_configure_the_network . png and b / doc / gitian - building / debian_install_5_configure_the_network . png differ <nl> Binary files a / doc / gitian - building / debian_install_6a_set_up_root_password . png and b / doc / gitian - building / debian_install_6a_set_up_root_password . png differ <nl> Binary files a / doc / gitian - building / debian_install_7_set_up_user_fullname . png and b / doc / gitian - building / debian_install_7_set_up_user_fullname . png differ <nl> Binary files a / doc / gitian - building / debian_install_8_set_up_username . png and b / doc / gitian - building / debian_install_8_set_up_username . png differ <nl> Binary files a / doc / gitian - building / debian_install_9_user_password . png and b / doc / gitian - building / debian_install_9_user_password . png differ <nl> new file mode 100644 <nl> index 000000000000 . . 14cdd5ba5b52 <nl> Binary files / dev / null and b / doc / gitian - building / debian_root_login . png differ <nl> Binary files a / doc / gitian - building / network_settings . png and b / doc / gitian - building / network_settings . png differ <nl> Binary files a / doc / gitian - building / port_forwarding_rules . png and b / doc / gitian - building / port_forwarding_rules . png differ <nl> Binary files a / doc / gitian - building / select_startup_disk . png and b / doc / gitian - building / select_startup_disk . png differ <nl> | Merge pull request | bitcoin/bitcoin | 2aee4d268dfe14566d95ea3907d6239fb2835b1d | 2015-09-04T14:31:58Z |
mmm a / src / rdb_protocol / btree . cc <nl> ppp b / src / rdb_protocol / btree . cc <nl> class one_replace_t : public btree_point_replacer_t { <nl> class superblock_queue_t { <nl> public : <nl> typedef std : : function < void ( <nl> - superblock_t * , <nl> - promise_t < superblock_t * > * , <nl> - auto_drainer_t : : lock_t ) > func_t ; <nl> + superblock_t * , promise_t < superblock_t * > * ) > func_t ; <nl> class caller_t : public single_threaded_countable_t < caller_t > { <nl> public : <nl> caller_t ( func_t _f , superblock_queue_t * _parent ) <nl> class superblock_queue_t { <nl> auto new_promise = make_scoped < promise_t < superblock_t * > > ( ) ; <nl> parent - > promise . swap ( new_promise ) ; <nl> } <nl> - f ( parent - > superblock . get ( ) , parent - > promise . get ( ) , drainer . lock ( ) ) ; <nl> + f ( parent - > superblock . get ( ) , parent - > promise . get ( ) ) ; <nl> } <nl> private : <nl> func_t f ; <nl> superblock_queue_t * parent ; <nl> - auto_drainer_t drainer ; / / RSI : is this necessary ? <nl> } ; <nl> <nl> superblock_queue_t ( scoped_ptr_t < superblock_t > & & _superblock ) <nl> class superblock_queue_t { <nl> } ; <nl> <nl> void do_a_replace_from_batched_replace ( <nl> - auto_drainer_t : : lock_t , <nl> fifo_enforcer_sink_t * batched_replaces_fifo_sink , <nl> const fifo_enforcer_write_token_t & batched_replaces_fifo_token , <nl> const btree_loc_info_t & info , <nl> batched_replace_response_t rdb_batched_replace ( <nl> [ & source , & sink , & info , & keys , & limits , & conditions , & stats , & queue , <nl> replacer , sindex_cb , env , trace , i ] ( <nl> superblock_t * cb_superblock , <nl> - promise_t < superblock_t * > * promise , <nl> - auto_drainer_t : : lock_t lock ) { <nl> + promise_t < superblock_t * > * promise ) { <nl> do_a_replace_from_batched_replace ( <nl> - lock , <nl> & sink , <nl> source . enter_write ( ) , <nl> <nl> void rdb_modification_report_cb_t : : on_mod_report ( <nl> coro_t : : spawn_now_dangerously ( <nl> std : : bind ( & rdb_modification_report_cb_t : : on_mod_report_sub , <nl> this , report , env , & sindexes_updated_cond ) ) ; <nl> - if ( store_ - > changefeed_server . has ( ) ) { <nl> - store_ - > changefeed_server - > send_all ( <nl> - ql : : changefeed : : msg_t ( <nl> - ql : : changefeed : : msg_t : : change_t ( <nl> - report . info . deleted . first , <nl> - report . info . added . first ) ) , <nl> - report . primary_key ) ; <nl> - <nl> - debugf ( " PKEY commit \ n " ) ; <nl> - store_ - > changefeed_server - > foreach_limit ( <nl> - boost : : optional < std : : string > ( ) , <nl> - [ & ] ( ql : : changefeed : : limit_manager_t * lm ) { <nl> - debugf ( " 1 pkey commit \ n " ) ; <nl> - if ( ! lm - > drainer . is_draining ( ) ) { <nl> - auto lock = lm - > drainer . lock ( ) ; <nl> - queue - > push ( <nl> - [ lm , env , btree , report , lock ] ( <nl> - superblock_t * superblock , <nl> - promise_t < superblock_t * > * promise , <nl> - auto_drainer_t : : lock_t ) { <nl> - debugf ( " 2 pkey commit \ n " ) ; <nl> - std : : string str = key_to_unescaped_str ( <nl> - report . primary_key ) ; <nl> - ql : : datum_t dstr = ql : : key_to_datum ( str ) ; <nl> - if ( report . info . deleted . first ) { <nl> - lm - > del ( str ) ; <nl> - } <nl> - if ( report . info . added . first ) { <nl> - lm - > add ( str , dstr , report . info . added . first ) ; <nl> - } <nl> - lm - > commit ( ql : : changefeed : : primary_ref_t { <nl> - env , btree , superblock , promise } ) ; <nl> - lock . assert_is_holding ( & lm - > drainer ) ; <nl> - } ) ; <nl> - } <nl> - } ) ; <nl> - } else { <nl> - guarantee ( false ) ; / / RSI : can this ever trigger ? If so , check what <nl> - / / ` on_mod_report_sub ` does if this is empty . <nl> - } <nl> + guarantee ( store_ - > changefeed_server . has ( ) ) ; <nl> + store_ - > changefeed_server - > send_all ( <nl> + ql : : changefeed : : msg_t ( <nl> + ql : : changefeed : : msg_t : : change_t ( <nl> + report . info . deleted . first , <nl> + report . info . added . first ) ) , <nl> + report . primary_key ) ; <nl> + <nl> + debugf ( " PKEY commit \ n " ) ; <nl> + store_ - > changefeed_server - > foreach_limit ( <nl> + boost : : optional < std : : string > ( ) , <nl> + [ & ] ( ql : : changefeed : : limit_manager_t * lm ) { <nl> + debugf ( " 1 pkey commit \ n " ) ; <nl> + if ( ! lm - > drainer . is_draining ( ) ) { <nl> + auto lock = lm - > drainer . lock ( ) ; <nl> + queue - > push ( <nl> + [ lm , env , btree , report , lock ] ( <nl> + superblock_t * superblock , <nl> + promise_t < superblock_t * > * promise ) { <nl> + debugf ( " 2 pkey commit \ n " ) ; <nl> + std : : string str = key_to_unescaped_str ( <nl> + report . primary_key ) ; <nl> + ql : : datum_t dstr = ql : : key_to_datum ( str ) ; <nl> + if ( report . info . deleted . first ) { <nl> + lm - > del ( str ) ; <nl> + } <nl> + if ( report . info . added . first ) { <nl> + lm - > add ( str , dstr , report . info . added . first ) ; <nl> + } <nl> + lm - > commit ( ql : : changefeed : : primary_ref_t { <nl> + env , btree , superblock , promise } ) ; <nl> + lock . assert_is_holding ( & lm - > drainer ) ; <nl> + } ) ; <nl> + } <nl> + } ) ; <nl> <nl> sindexes_updated_cond . wait_lazily_unordered ( ) ; <nl> } <nl> void rdb_update_single_sindex ( <nl> <nl> superblock_t * superblock = sindex - > superblock . get ( ) ; <nl> <nl> - / / RSI : handle primary key too . <nl> ql : : changefeed : : server_t * server = store - > changefeed_server . get ( ) ; <nl> <nl> if ( modification - > info . deleted . first ) { <nl> class post_construct_traversal_helper_t : public btree_traversal_helper_t { <nl> const block_id_t sindex_block_id = superblock - > get_sindex_block_id ( ) ; <nl> <nl> buf_lock_t sindex_block <nl> - = store_ - > acquire_sindex_block_for_write ( superblock - > expose_buf ( ) , <nl> - sindex_block_id ) ; <nl> + = store_ - > acquire_sindex_block_for_write ( <nl> + superblock - > expose_buf ( ) , <nl> + sindex_block_id ) ; <nl> <nl> superblock . reset ( ) ; <nl> <nl> class post_construct_traversal_helper_t : public btree_traversal_helper_t { <nl> rdb_update_sindexes ( store_ , <nl> sindexes , <nl> & mod_report , <nl> - NULL , / / RSI : is this a bad idea ? <nl> + NULL , / / We happen not to need an ` env_t ` in this case . <nl> wtxn . get ( ) , <nl> & deletion_context ) ; <nl> store_ - > btree - > stats . pm_keys_set . record ( ) ; <nl> mmm a / src / rdb_protocol / protocol . cc <nl> ppp b / src / rdb_protocol / protocol . cc <nl> void post_construct_and_drain_queue ( <nl> rdb_update_sindexes ( store , <nl> sindexes , <nl> & mod_report , <nl> - NULL , / / RSI : is this a bad idea ? <nl> + NULL , / / We don ' t need an ` env_t ` in this case . <nl> queue_txn . get ( ) , <nl> & deletion_context ) ; <nl> + + current_chunk_size ; <nl> mmm a / src / rdb_protocol / terms / seq . cc <nl> ppp b / src / rdb_protocol / terms / seq . cc <nl> class map_acc_term_t : public grouped_seq_op_term_t { <nl> func = args - > arg ( env , 1 ) - > as_func ( GET_FIELD_SHORTCUT ) ; <nl> } <nl> if ( ! func . has ( ) & & ! idx . has ( ) ) { <nl> - / / RSI : make this use a table slice . <nl> + / / TODO : make this use a table slice . <nl> if ( uses_idx ( ) & & v - > get_type ( ) . is_convertible ( val_t : : type_t : : TABLE ) ) { <nl> return on_idx ( env - > env , v - > as_table ( ) , idx ) ; <nl> } else { <nl> | Removed some RSIs . | rethinkdb/rethinkdb | 1c7d890a7f8131d18da2671ffbd4346265291949 | 2014-10-14T01:22:46Z |
mmm a / build_ide / VS2010 / flatc . vcxproj <nl> ppp b / build_ide / VS2010 / flatc . vcxproj <nl> <nl> < / ProjectReference > <nl> < / ItemDefinitionGroup > <nl> < ItemGroup > <nl> + < ClCompile Include = " . . \ . . \ src \ util . cpp " / > <nl> < ClInclude Include = " . . \ . . \ include \ flatbuffers \ flatbuffers . h " / > <nl> < ClInclude Include = " . . \ . . \ include \ flatbuffers \ idl . h " / > <nl> < ClInclude Include = " . . \ . . \ include \ flatbuffers \ util . h " / > <nl> mmm a / build_ide / VS2010 / flatsampletext . vcxproj <nl> ppp b / build_ide / VS2010 / flatsampletext . vcxproj <nl> <nl> < / ProjectReference > <nl> < / ItemDefinitionGroup > <nl> < ItemGroup > <nl> + < ClCompile Include = " . . \ . . \ src \ util . cpp " / > <nl> < ClInclude Include = " . . \ . . \ include \ flatbuffers \ flatbuffers . h " / > <nl> < ClInclude Include = " . . \ . . \ include \ flatbuffers \ idl . h " / > <nl> < ClInclude Include = " . . \ . . \ include \ flatbuffers \ util . h " / > <nl> mmm a / build_ide / VS2010 / flattests . vcxproj <nl> ppp b / build_ide / VS2010 / flattests . vcxproj <nl> <nl> < ClCompile Include = " . . \ . . \ src \ idl_parser . cpp " / > <nl> < ClCompile Include = " . . \ . . \ src \ idl_gen_text . cpp " / > <nl> < ClCompile Include = " . . \ . . \ src \ reflection . cpp " / > <nl> + < ClCompile Include = " . . \ . . \ src \ util . cpp " / > <nl> < ClCompile Include = " . . \ . . \ tests \ test . cpp " / > <nl> < / ItemGroup > <nl> < Import Project = " $ ( VCTargetsPath ) \ Microsoft . Cpp . targets " / > <nl> | Added missing util . cpp to VS project | google/flatbuffers | 8128df765550ee6223459d211bd47fabee0e7966 | 2016-04-05T00:09:07Z |
mmm a / modules / planning / lattice / trajectory1d / BUILD <nl> ppp b / modules / planning / lattice / trajectory1d / BUILD <nl> cc_library ( <nl> <nl> cc_library ( <nl> name = " lattice_trajectory1d " , <nl> + srcs = [ <nl> + " lattice_trajectory1d . cc " , <nl> + ] , <nl> + hdrs = [ <nl> + " lattice_trajectory1d . h " , <nl> + ] , <nl> deps = [ <nl> - " : constant_deceleration_trajectory1d " , <nl> - " : piecewise_acceleration_trajectory1d " , <nl> - " : piecewise_trajectory1d " , <nl> - " : standing_still_trajectory1d " , <nl> + " / / modules / planning / math / curve1d " , <nl> ] , <nl> ) <nl> <nl> similarity index 95 % <nl> rename from modules / planning / lattice / util / lattice_trajectory1d . cc <nl> rename to modules / planning / lattice / trajectory1d / lattice_trajectory1d . cc <nl> mmm a / modules / planning / lattice / util / lattice_trajectory1d . cc <nl> ppp b / modules / planning / lattice / trajectory1d / lattice_trajectory1d . cc <nl> <nl> / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * <nl> - * Copyright 2017 The Apollo Authors . All Rights Reserved . <nl> + * Copyright 2018 The Apollo Authors . All Rights Reserved . <nl> * <nl> * Licensed under the Apache License , Version 2 . 0 ( the " License " ) ; <nl> * you may not use this file except in compliance with the License . <nl> <nl> * @ file <nl> * * / <nl> <nl> - # include " modules / planning / lattice / util / lattice_trajectory1d . h " <nl> + # include " modules / planning / lattice / trajectory1d / lattice_trajectory1d . h " <nl> <nl> # include " glog / logging . h " <nl> <nl> similarity index 87 % <nl> rename from modules / planning / lattice / util / lattice_trajectory1d . h <nl> rename to modules / planning / lattice / trajectory1d / lattice_trajectory1d . h <nl> mmm a / modules / planning / lattice / util / lattice_trajectory1d . h <nl> ppp b / modules / planning / lattice / trajectory1d / lattice_trajectory1d . h <nl> <nl> / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * <nl> - * Copyright 2017 The Apollo Authors . All Rights Reserved . <nl> + * Copyright 2018 The Apollo Authors . All Rights Reserved . <nl> * <nl> * Licensed under the Apache License , Version 2 . 0 ( the " License " ) ; <nl> * you may not use this file except in compliance with the License . <nl> <nl> * @ file <nl> * * / <nl> <nl> - # ifndef MODULES_PLANNING_LATTICE_UTIL_LATTICE_TRAJECTORY1D_H_ <nl> - # define MODULES_PLANNING_LATTICE_UTIL_LATTICE_TRAJECTORY1D_H_ <nl> + # ifndef MODULES_PLANNING_LATTICE_TRAJECTORY1D_LATTICE_TRAJECTORY1D_H_ <nl> + # define MODULES_PLANNING_LATTICE_TRAJECTORY1D_LATTICE_TRAJECTORY1D_H_ <nl> <nl> # include < memory > <nl> # include < string > <nl> class LatticeTrajectory1d : public Curve1d { <nl> } / / namespace planning <nl> } / / namespace apollo <nl> <nl> - # endif / * MODULES_PLANNING_LATTICE_UTIL_LATTICE_TRAJECTORY1D_H_ * / <nl> + # endif / / MODULES_PLANNING_LATTICE_TRAJECTORY1D_LATTICE_TRAJECTORY1D_H_ <nl> mmm a / modules / planning / lattice / trajectory_generator / BUILD <nl> ppp b / modules / planning / lattice / trajectory_generator / BUILD <nl> cc_library ( <nl> " / / modules / planning / lattice / behavior_decider : path_time_graph " , <nl> " / / modules / planning / lattice / behavior_decider : prediction_querier " , <nl> " / / modules / planning / lattice / trajectory1d : lattice_trajectory1d " , <nl> + " / / modules / planning / lattice / trajectory1d : standing_still_trajectory1d " , <nl> + " / / modules / planning / lattice / trajectory1d : piecewise_acceleration_trajectory1d " , <nl> + " / / modules / planning / lattice / trajectory1d : constant_deceleration_trajectory1d " , <nl> + " / / modules / planning / lattice / trajectory1d : piecewise_trajectory1d " , <nl> " / / modules / planning / lattice / trajectory_generator : end_condition_sampler " , <nl> - " / / modules / planning / lattice / util : lattice_trajectory1d " , <nl> " / / modules / planning / math / curve1d : quartic_polynomial_curve1d " , <nl> " / / modules / planning / math / curve1d : quintic_polynomial_curve1d " , <nl> " / / modules / planning / proto : lattice_sampling_config_proto " , <nl> mmm a / modules / planning / lattice / trajectory_generator / trajectory1d_generator . cc <nl> ppp b / modules / planning / lattice / trajectory_generator / trajectory1d_generator . cc <nl> <nl> # include " modules / planning / common / planning_gflags . h " <nl> # include " modules / planning / lattice / trajectory1d / constant_deceleration_trajectory1d . h " <nl> # include " modules / planning / lattice / trajectory1d / standing_still_trajectory1d . h " <nl> - # include " modules / planning / lattice / util / lattice_trajectory1d . h " <nl> + # include " modules / planning / lattice / trajectory1d / lattice_trajectory1d . h " <nl> # include " modules / planning / math / curve1d / quartic_polynomial_curve1d . h " <nl> # include " modules / planning / math / curve1d / quintic_polynomial_curve1d . h " <nl> <nl> mmm a / modules / planning / lattice / util / BUILD <nl> ppp b / modules / planning / lattice / util / BUILD <nl> cc_library ( <nl> ] , <nl> ) <nl> <nl> - cc_library ( <nl> - name = " lattice_trajectory1d " , <nl> - srcs = [ <nl> - " lattice_trajectory1d . cc " , <nl> - ] , <nl> - hdrs = [ <nl> - " lattice_trajectory1d . h " , <nl> - ] , <nl> - deps = [ <nl> - " / / modules / planning / math / curve1d " , <nl> - ] , <nl> - ) <nl> - <nl> cpplint ( ) <nl> mmm a / modules / planning / planner / lattice / BUILD <nl> ppp b / modules / planning / planner / lattice / BUILD <nl> cc_library ( <nl> " / / modules / planning / lattice / trajectory_generator : trajectory1d_generator " , <nl> " / / modules / planning / lattice / trajectory_generator : trajectory_combiner " , <nl> " / / modules / planning / lattice / trajectory_generator : trajectory_evaluator " , <nl> - " / / modules / planning / lattice / util : lattice_trajectory1d " , <nl> + " / / modules / planning / lattice / trajectory1d : lattice_trajectory1d " , <nl> " / / modules / planning / planner " , <nl> " / / modules / planning / proto : planning_proto " , <nl> ] , <nl> mmm a / modules / planning / planner / lattice / lattice_planner . cc <nl> ppp b / modules / planning / planner / lattice / lattice_planner . cc <nl> <nl> # include " modules / planning / lattice / trajectory_generator / trajectory1d_generator . h " <nl> # include " modules / planning / lattice / trajectory_generator / trajectory_combiner . h " <nl> # include " modules / planning / lattice / trajectory_generator / trajectory_evaluator . h " <nl> - # include " modules / planning / lattice / util / lattice_trajectory1d . h " <nl> + # include " modules / planning / lattice / trajectory1d / lattice_trajectory1d . h " <nl> <nl> namespace apollo { <nl> namespace planning { <nl> mmm a / modules / planning / proto / lattice_structure . proto <nl> ppp b / modules / planning / proto / lattice_structure . proto <nl> message StopPoint { <nl> } <nl> <nl> message PlanningTarget { <nl> - repeated SamplePoint sample_point = 1 ; <nl> - optional StopPoint stop_point = 2 ; <nl> - optional double cruise_speed = 3 ; <nl> + optional StopPoint stop_point = 1 ; <nl> + optional double cruise_speed = 2 ; <nl> } <nl> | Planning : code refactor by moving lattice_trajectory1d from util to trajectory1d | ApolloAuto/apollo | b5d5b55ab1b82ce904cef5cc4cbe5f57fffeacc4 | 2018-02-24T02:00:30Z |
mmm a / hphp / hack / src / client / clientCheck . ml <nl> ppp b / hphp / hack / src / client / clientCheck . ml <nl> let main ( args : client_check_env ) : Exit_status . t Lwt . t = <nl> ClientRefactor . go_ide conn args filename line char new_name in <nl> Lwt . return Exit_status . No_error <nl> | MODE_EXTRACT_STANDALONE name - > <nl> + let open ServerCommandTypes . Find_refs in <nl> + let action = <nl> + parse_function_or_method_id <nl> + ~ meth_action : ( fun class_name method_name - > <nl> + Member <nl> + ( class_name , Method method_name ) ) <nl> + ~ func_action : ( fun fun_name - > Function fun_name ) <nl> + name <nl> + in <nl> let % lwt pretty_printed_dependencies = <nl> - rpc args @ @ Rpc . EXTRACT_STANDALONE name in <nl> + rpc args @ @ Rpc . EXTRACT_STANDALONE action in <nl> print_endline pretty_printed_dependencies ; <nl> Lwt . return Exit_status . No_error <nl> | MODE_IDENTIFY_SYMBOL1 arg <nl> mmm a / hphp / hack / src / server / serverCommandTypes . ml <nl> ppp b / hphp / hack / src / server / serverCommandTypes . ml <nl> type _ t = <nl> | LIST_FILES_WITH_ERRORS : string list t <nl> | FILE_DEPENDENCIES : string list - > string list t <nl> | IDENTIFY_TYPES : file_input * int * int - > ( Pos . absolute * string ) list t <nl> - | EXTRACT_STANDALONE : string - > string t <nl> + | EXTRACT_STANDALONE : Find_refs . action - > string t <nl> | GO_TO_DEFINITION : labelled_file * int * int - > Go_to_definition . result t <nl> | BIGCODE : string - > string t <nl> | PAUSE : bool - > unit t <nl> mmm a / hphp / hack / src / server / serverExtractStandalone . ml <nl> ppp b / hphp / hack / src / server / serverExtractStandalone . ml <nl> <nl> <nl> open Core_kernel <nl> open Typing_defs <nl> + open ServerCommandTypes . Find_refs <nl> <nl> module SourceText = Full_fidelity_source_text <nl> module Syntax = Full_fidelity_positioned_syntax <nl> module SyntaxTree = Full_fidelity_syntax_tree . WithSyntax ( Syntax ) <nl> module SyntaxError = Full_fidelity_syntax_error <nl> module SN = Naming_special_names <nl> <nl> - exception FunctionNotFound <nl> + exception NotFound <nl> ( * Internal error : for example , we are generating code for a dependency on an enum , <nl> but the passed dependency is not an enum * ) <nl> exception UnexpectedDependency <nl> exception DependencyNotFound of string <nl> exception Unsupported <nl> + exception InvalidInput <nl> <nl> let value_exn ex opt = match opt with <nl> | Some s - > s <nl> let value_or_not_found err_msg opt = value_exn ( DependencyNotFound err_msg ) opt <nl> <nl> let get_class_exn name = value_or_not_found name @ @ Decl_provider . get_class name <nl> <nl> - let get_filename func = <nl> - let f = value_exn FunctionNotFound @ @ Decl_provider . get_fun func in <nl> - Pos . filename f . ft_pos <nl> - <nl> - let extract_function_body func = <nl> - let filename = get_filename func in <nl> + let get_class_name ( dep : Typing_deps . Dep . variant ) = <nl> + let open Typing_deps . Dep in <nl> + match dep with <nl> + | Const ( cls , _ ) | Method ( cls , _ ) | SMethod ( cls , _ ) | Prop ( cls , _ ) | SProp ( cls , _ ) <nl> + | Cstr cls | Class cls | AllMembers cls | Extends cls - > cls <nl> + | Fun _ | FunName _ | GConst _ | GConstName _ - > raise UnexpectedDependency <nl> + <nl> + let is_class_dependency = function <nl> + | Typing_deps . Dep . Fun _ | Typing_deps . Dep . FunName _ <nl> + | Typing_deps . Dep . GConst _ | Typing_deps . Dep . GConstName _ - > false <nl> + | _ - > true <nl> + <nl> + let is_relevant_dependency ( e : action ) ( dep : Typing_deps . Dep . variant ) = <nl> + match e with <nl> + | Function f - > dep = Typing_deps . Dep . Fun ( f ) | | dep = Typing_deps . Dep . FunName ( f ) <nl> + ( * We have to collect dependencies of the entire class because dependency collection is <nl> + coarse - grained : if cls ' s member depends on D , we get a dependency edge cls - - > D , <nl> + not ( cls , member ) - - > D * ) <nl> + | Member ( cls , Method _ ) - > ( ( is_class_dependency dep ) & & ( get_class_name dep ) = cls ) <nl> + | _ - > raise Unsupported <nl> + <nl> + let get_filename to_extract = <nl> + let pos = match to_extract with <nl> + | Function func - > let f = value_exn NotFound @ @ Decl_provider . get_fun func in <nl> + f . ft_pos <nl> + | Member ( cls , Method _ ) - > let cls = value_exn NotFound @ @ Decl_provider . get_class cls in <nl> + Decl_provider . Class . pos cls <nl> + | _ - > raise Unsupported in <nl> + Pos . filename pos <nl> + <nl> + let extract_body to_extract = <nl> + let filename = get_filename to_extract in <nl> let abs_filename = Relative_path . to_absolute filename in <nl> let file_content = In_channel . read_all abs_filename in <nl> - let ast_function = value_exn FunctionNotFound @ @ Ast_provider . find_fun_in_file filename func in <nl> let open Aast in <nl> - let pos = ast_function . f_span in <nl> - let include_first_whsp = Pos . merge ( Pos . first_char_of_line pos ) pos in <nl> - Pos . get_text_from_pos file_content include_first_whsp <nl> + let pos = match to_extract with <nl> + | Function func - > <nl> + let ast_function = value_exn NotFound @ @ Ast_provider . find_fun_in_file filename func in <nl> + ast_function . f_span <nl> + | Member ( cls , Method ( name ) ) - > <nl> + let ast_class = value_exn NotFound @ @ Ast_provider . find_class_in_file filename cls in <nl> + let m = value_exn NotFound @ @ List . find ast_class . c_methods ( fun meth - > snd meth . m_name = name ) in <nl> + m . m_span <nl> + | _ - > raise Unsupported in <nl> + Pos . get_text_from_pos file_content pos <nl> + <nl> + let get_ns obj_name = <nl> + let ( ns , _ ) = String . rsplit2_exn obj_name ' \ \ ' in <nl> + ns <nl> <nl> let strip_ns obj_name = <nl> let ( _ , name ) = String . rsplit2_exn obj_name ' \ \ ' in <nl> let construct_enum tcopt enum fields = <nl> let constants = HashSet . fold ( fun f acc - > ( string_enum_const f ) : : acc ) fields [ ] in <nl> Printf . sprintf " % s { \ n % s \ n } " enum_decl ( String . concat ~ sep : " \ n " constants ) <nl> <nl> - let construct_class_declaration tcopt cls fields = <nl> + let construct_class_declaration tcopt cls ? full_method : ( meth = None ) fields = <nl> ( * Enum declaration have a very different format : for example , no ' const ' keyword <nl> for values , which are actually just class constants * ) <nl> if Decl_provider . Class . kind cls = Ast_defs . Cenum then <nl> ( construct_enum tcopt cls fields ) <nl> else <nl> let decl = get_class_declaration cls in <nl> - let open Typing_deps . Dep in <nl> + let open Typing_deps in <nl> let properties = HashSet . fold <nl> ( fun field acc - > <nl> - let desc = to_string field in <nl> + let desc = Dep . to_string field in <nl> match field with <nl> - | Prop ( _ , p ) - > ( value_or_not_found desc @ @ Decl_provider . Class . get_prop cls p , p ) : : acc <nl> - | SProp ( _ , sp ) - > ( value_or_not_found desc @ @ Decl_provider . Class . get_sprop cls sp , sp ) : : acc <nl> + | Dep . Prop ( _ , p ) - > ( value_or_not_found desc @ @ Decl_provider . Class . get_prop cls p , p ) : : acc <nl> + | Dep . SProp ( _ , sp ) - > ( value_or_not_found desc @ @ Decl_provider . Class . get_sprop cls sp , sp ) : : acc <nl> | _ - > acc ) fields [ ] in <nl> ( * If we depend on properties , we have to initialize them . We do not have access <nl> to the original initialization expression and therefore init them in the constructor . <nl> Thus we add a dependency on the constructor even if the extracted function <nl> does not use it directly . * ) <nl> - if not ( List . is_empty properties ) then HashSet . add fields ( Cstr ( Decl_provider . Class . name cls ) ) ; <nl> + if not ( List . is_empty properties ) then HashSet . add fields ( Dep . Cstr ( Decl_provider . Class . name cls ) ) ; <nl> let process_field f = match f with <nl> - | AllMembers _ | Extends _ - > raise UnexpectedDependency <nl> + | Dep . AllMembers _ | Dep . Extends _ - > raise UnexpectedDependency <nl> ( * Constructor needs special treatment because we need information about properties * ) <nl> - | Cstr _ - > let ( cstr , _ ) = Decl_provider . Class . construct cls in <nl> + | Dep . Cstr _ - > let ( cstr , _ ) = Decl_provider . Class . construct cls in <nl> let properties = List . map properties ( fun ( p , name ) - > <nl> Printf . sprintf " $ this - > % s = % s ; " name ( call_make_default tcopt @ @ Lazy . force p . ce_type ) ) in <nl> ( match cstr with <nl> let construct_class_declaration tcopt cls fields = <nl> let decl = get_method_declaration tcopt cstr ~ is_static : false " __construct " in <nl> let body = Printf . sprintf " { % s } " @ @ String . concat ~ sep : " \ n " properties in <nl> decl ^ body ) <nl> - | _ - > extract_field_declaration tcopt cls f in <nl> + | _ - > extract_field_declaration tcopt cls f in <nl> let body = HashSet . fold ( fun f accum - > accum ^ " \ n " ^ ( process_field f ) ) fields " " in <nl> - Printf . sprintf " % s \ n % s } " decl body <nl> + ( * If we are extracting a method of this class , we should declare it here , with stubs <nl> + of other class fields . * ) <nl> + let extracted_method = match meth with <nl> + | Some ( Member ( cls , Method ( m ) ) ) - > <nl> + ( * We don ' t want to redeclare the method we ' re extracting * ) <nl> + HashSet . remove fields ( Dep . Method ( cls , m ) ) ; <nl> + HashSet . remove fields ( Dep . SMethod ( cls , m ) ) ; <nl> + extract_body ( Option . value_exn meth ) <nl> + | _ - > " " in <nl> + Printf . sprintf " % s \ n % s \ n % s } " decl body extracted_method <nl> <nl> let construct_typedef_declaration tcopt t = <nl> let td = value_or_not_found t @ @ Decl_provider . get_typedef t in <nl> let typ = if td . td_vis = Aast_defs . Transparent then " type " else " newtype " in <nl> Printf . sprintf " % s % s = % s ; " typ ( strip_ns t ) ( Typing_print . full_decl tcopt td . td_type ) <nl> <nl> - let construct_type_declaration tcopt t fields = <nl> + let construct_type_declaration tcopt t ? full_method : ( full_method = None ) fields = <nl> match Decl_provider . get_class t with <nl> - | Some cls - > construct_class_declaration tcopt cls fields <nl> + | Some cls - > construct_class_declaration tcopt cls ~ full_method fields <nl> | None - > construct_typedef_declaration tcopt t <nl> <nl> let add_dep deps ty : unit = <nl> let get_signature_dependencies obj deps = <nl> ( * AllMembers is used for dependencies on enums , so we should depend on all constants * ) <nl> let cls = value_or_not_found description @ @ Decl_provider . get_class cls in <nl> Sequence . iter ( Decl_provider . Class . consts cls ) ( fun ( _ , c ) - > add_dep deps c . cc_type ) <nl> - ( * We are extracting functions , they cannot Extend * ) <nl> - | Extends _ - > raise UnexpectedDependency <nl> + ( * Ignore , we fetch class hierarchy when we call get_signature_dependencies on a class dep * ) <nl> + | Extends _ - > ( ) <nl> <nl> let get_dependency_origin cls ( dep : Typing_deps . Dep . variant ) = <nl> let open Decl_provider in <nl> let get_dependency_origin cls ( dep : Typing_deps . Dep . variant ) = <nl> | Cstr cls - > cls <nl> | _ - > raise UnexpectedDependency <nl> <nl> - let collect_dependencies tcopt func = <nl> + let collect_dependencies tcopt to_extract = <nl> let dependencies = HashSet . create 0 in <nl> + let _ = match to_extract with <nl> + ( * We depend on the class which the method belongs to * ) <nl> + | Member ( cls , Method _ ) - > HashSet . add dependencies ( Typing_deps . Dep . Class cls ) <nl> + | Function _ - > ( ) <nl> + | _ - > raise Unsupported in <nl> let open Typing_deps . Dep in <nl> let add_dependency root obj = <nl> - match root with <nl> - | Fun f | FunName f - > if f = func then begin <nl> - HashSet . add dependencies obj ; <nl> - get_signature_dependencies obj dependencies ; <nl> - end <nl> - | _ - > ( ) in <nl> + if is_relevant_dependency to_extract root then <nl> + ( HashSet . add dependencies obj ; <nl> + get_signature_dependencies obj dependencies ) in <nl> Typing_deps . add_dependency_callback " add_dependency " add_dependency ; <nl> - let filename = get_filename func in <nl> - let _ : Tast . def option = Typing_check_service . type_fun tcopt filename func in <nl> + let filename = get_filename to_extract in <nl> + let _ : Tast . def option = match to_extract with <nl> + | Function func - > Typing_check_service . type_fun tcopt filename func <nl> + | Member ( cls , Method _ ) - > Typing_check_service . type_class tcopt filename cls <nl> + | _ - > raise Unsupported in <nl> let types = Caml . Hashtbl . create 0 in <nl> let globals = HashSet . create 0 in <nl> let group_by_type obj = <nl> let collect_dependencies tcopt func = <nl> Caml . Hashtbl . add types cls set ) <nl> ( * We already added the members when adding signature dependencies , omit it from generation * ) <nl> | AllMembers _ - > ( ) <nl> - | Extends _ - > raise UnexpectedDependency <nl> + | Extends _ - > ( ) <nl> | _ - > HashSet . add globals obj in <nl> HashSet . iter group_by_type dependencies ; <nl> ( types , globals ) <nl> let get_code ( decl_names : string HashSet . t ) declarations = <nl> else if has_code toplevel then toplevel <nl> else namespaced <nl> <nl> - let go tcopt function_name = <nl> + let make_extraction_pass tcopt to_extract = <nl> + let ( types , globals ) = collect_dependencies tcopt to_extract in <nl> + let declarations = Caml . Hashtbl . create 0 in <nl> + let decl_names = HashSet . create 0 in <nl> + let add_global_declaration dep = <nl> + let name = global_dep_name dep in <nl> + HashSet . add decl_names name ; <nl> + Caml . Hashtbl . add declarations name ( extract_object_declaration tcopt dep ) in <nl> + let add_class_declaration cls fields = <nl> + HashSet . add decl_names cls ; <nl> + match to_extract with <nl> + | Function _ - > <nl> + Caml . Hashtbl . add declarations cls ( construct_type_declaration tcopt cls fields ) <nl> + | Member ( c , Method _ ) - > if c = cls then <nl> + Caml . Hashtbl . add declarations cls <nl> + ( construct_type_declaration tcopt cls ~ full_method : ( Some to_extract ) fields ) <nl> + else <nl> + Caml . Hashtbl . add declarations cls ( construct_type_declaration tcopt cls fields ) <nl> + | _ - > raise Unsupported in <nl> + HashSet . iter add_global_declaration globals ; <nl> + Caml . Hashtbl . iter add_class_declaration types ; <nl> + let _ : unit = match to_extract with <nl> + | Function function_name - > <nl> + let function_text = extract_body to_extract in <nl> + Caml . Hashtbl . add declarations function_name function_text ; <nl> + HashSet . add decl_names function_name ; <nl> + | Member ( _ , Method _ ) - > ( ) <nl> + | _ - > raise Unsupported in <nl> + get_code decl_names declarations <nl> + <nl> + let go tcopt to_extract = <nl> try <nl> - let ( types , globals ) = collect_dependencies tcopt function_name in <nl> - let declarations = Caml . Hashtbl . create 0 in <nl> - let decl_names = HashSet . create 0 in <nl> - let add_global_declaration dep = <nl> - let name = global_dep_name dep in <nl> - HashSet . add decl_names name ; <nl> - Caml . Hashtbl . add declarations name ( extract_object_declaration tcopt dep ) in <nl> - let add_class_declaration cls fields = <nl> - HashSet . add decl_names cls ; <nl> - Caml . Hashtbl . add declarations cls ( construct_type_declaration tcopt cls fields ) in <nl> - HashSet . iter add_global_declaration globals ; <nl> - Caml . Hashtbl . iter add_class_declaration types ; <nl> - let function_text = extract_function_body function_name in <nl> - Caml . Hashtbl . add declarations function_name function_text ; <nl> - HashSet . add decl_names function_name ; <nl> - get_code decl_names declarations <nl> + make_extraction_pass tcopt to_extract <nl> with <nl> - | FunctionNotFound - > " Function not found ! " <nl> + | NotFound - > " Not found ! " <nl> + | InvalidInput - > " Unrecognized input . " ^ <nl> + " Expected : fully qualified function name or [ fully qualified class name ] : : [ method_name ] " <nl> | DependencyNotFound d - > Printf . sprintf " Dependency not found : % s " d <nl> | Unsupported | UnexpectedDependency - > Printexc . get_backtrace ( ) <nl> mmm a / hphp / hack / src / server / serverRpc . ml <nl> ppp b / hphp / hack / src / server / serverRpc . ml <nl> let handle : type a . genv - > env - > is_stale : bool - > a t - > env * a = <nl> env , files <nl> | IDENTIFY_TYPES ( filename , line , char ) - > <nl> env , ServerTypeDefinition . go env ( filename , line , char ) <nl> - | EXTRACT_STANDALONE name - > <nl> - env , ServerExtractStandalone . go env . tcopt name <nl> + | EXTRACT_STANDALONE to_extract - > <nl> + env , ServerExtractStandalone . go env . tcopt to_extract <nl> | GO_TO_DEFINITION ( labelled_file , line , column ) - > <nl> let ( path , file_input ) = <nl> ServerCommandTypesUtils . extract_labelled_file labelled_file in <nl> mmm a / hphp / hack / test / integration / data / dependencies / classes . php <nl> ppp b / hphp / hack / test / integration / data / dependencies / classes . php <nl> public function __construct ( int $ arg ) { <nl> function use_properties ( WithProperties $ arg ) : int { <nl> return $ arg - > first + $ arg - > second ; <nl> } <nl> + <nl> + class SimpleClass { <nl> + public function simple_method ( ) : void { } <nl> + public function another_method ( ) : void { <nl> + $ this - > coarse_grained_dependency ( ) ; <nl> + } <nl> + public function coarse_grained_dependency ( ) : void { } <nl> + } <nl> mmm a / hphp / hack / test / integration / data / dependencies / expected / __Ns__same_name_different_namespaces . php . exp <nl> ppp b / hphp / hack / test / integration / data / dependencies / expected / __Ns__same_name_different_namespaces . php . exp <nl> namespace Test1 { <nl> throw new \ Exception ( ) ; <nl> } <nl> class A { <nl> + <nl> } <nl> namespace NestedTest { <nl> function g ( int $ x ) : \ Test1 \ NestedTest \ A { <nl> throw new \ Exception ( ) ; <nl> } <nl> class A extends UltraNested \ B { <nl> + <nl> } <nl> namespace UltraNested { <nl> function noop ( ) : void { <nl> throw new \ Exception ( ) ; <nl> } <nl> class B { <nl> + <nl> } <nl> } <nl> <nl> new file mode 100644 <nl> index 00000000000 . . 5bfd5a9818d <nl> mmm / dev / null <nl> ppp b / hphp / hack / test / integration / data / dependencies / expected / __SimpleClass + + simple_method . php . exp <nl> <nl> + < ? hh <nl> + class SimpleClass { <nl> + <nl> + public function coarse_grained_dependency ( ) : void { <nl> + throw new Exception ( ) ; <nl> + } <nl> + public function simple_method ( ) : void { } <nl> + } <nl> + function extract_standalone_make_default < T > ( ) : T { <nl> + throw new Exception ( ) ; <nl> + } <nl> + <nl> + <nl> mmm a / hphp / hack / test / integration / data / dependencies / expected / __call_constructors . php . exp <nl> ppp b / hphp / hack / test / integration / data / dependencies / expected / __call_constructors . php . exp <nl> function call_constructors ( ) : void { <nl> } <nl> class ImplementingBase extends AbstractBase { <nl> <nl> + <nl> } <nl> abstract class AbstractBase { <nl> + <nl> } <nl> class Derived extends ImplementingBase { <nl> <nl> mmm a / hphp / hack / test / integration / data / dependencies / expected / __nonexistent_function . php . exp <nl> ppp b / hphp / hack / test / integration / data / dependencies / expected / __nonexistent_function . php . exp <nl> @ @ - 1 + 1 @ @ <nl> - Function not found ! <nl> + Not found ! <nl> mmm a / hphp / hack / test / integration / data / dependencies / expected / __shallow_toplevel . php . exp <nl> ppp b / hphp / hack / test / integration / data / dependencies / expected / __shallow_toplevel . php . exp <nl> <nl> < ? hh <nl> class C extends A { <nl> + <nl> } <nl> function shallow_toplevel ( C $ c ) : void { <nl> g ( ) ; <nl> function g ( ) : void { <nl> throw new \ Exception ( ) ; <nl> } <nl> class A0 { <nl> + <nl> } <nl> class A extends A0 implements I1 { <nl> + <nl> } <nl> interface I1 { <nl> + <nl> } <nl> function extract_standalone_make_default < T > ( ) : T { <nl> throw new Exception ( ) ; <nl> mmm a / hphp / hack / test / integration / data / dependencies / expected / __with_generics . php . exp <nl> ppp b / hphp / hack / test / integration / data / dependencies / expected / __with_generics . php . exp <nl> function generic < T > ( ) : int { <nl> throw new \ Exception ( ) ; <nl> } <nl> class C extends A { <nl> + <nl> } <nl> class A0 { <nl> + <nl> } <nl> class E < T > extends D < T , int > { <nl> + <nl> } <nl> class A extends A0 implements I1 { <nl> + <nl> } <nl> class B implements I1 { <nl> + <nl> } <nl> class D < Tfirst , Tsecond > extends B { <nl> + <nl> } <nl> function with_generics < Tfirst , Tsecond > ( <nl> D < Tfirst , Tsecond > $ d , <nl> function with_generics < Tfirst , Tsecond > ( <nl> return generic < C > ( ) ; <nl> } <nl> interface I1 { <nl> + <nl> } <nl> function extract_standalone_make_default < T > ( ) : T { <nl> throw new Exception ( ) ; <nl> mmm a / hphp / hack / test / integration / data / dependencies / expected / __with_interface . php . exp <nl> ppp b / hphp / hack / test / integration / data / dependencies / expected / __with_interface . php . exp <nl> interface DerivedInterface extends BaseInterface { <nl> public function routine ( ) : void ; <nl> } <nl> interface BaseInterface { <nl> + <nl> } <nl> function extract_standalone_make_default < T > ( ) : T { <nl> throw new Exception ( ) ; <nl> mmm a / hphp / hack / test / integration / data / dependencies / expected / __with_nontrivial_fun_decls . php . exp <nl> ppp b / hphp / hack / test / integration / data / dependencies / expected / __with_nontrivial_fun_decls . php . exp <nl> <nl> < ? hh <nl> abstract class AbstractBase { <nl> + <nl> } <nl> class ImplementingBase extends AbstractBase { <nl> + <nl> } <nl> function with_nontrivial_fun_decls ( ) : void { <nl> $ num = 17 ; <nl> mmm a / hphp / hack / test / integration / data / dependencies / expected / __with_overriding . php . exp <nl> ppp b / hphp / hack / test / integration / data / dependencies / expected / __with_overriding . php . exp <nl> <nl> < ? hh <nl> abstract class AbstractBase { <nl> + <nl> } <nl> class ImplementingBase extends AbstractBase { <nl> <nl> mmm a / hphp / hack / test / integration / data / dependencies / expected / __with_requiring_trait . php . exp <nl> ppp b / hphp / hack / test / integration / data / dependencies / expected / __with_requiring_trait . php . exp <nl> <nl> class DerivedImplementing extends Implementing implements SimpleInterface { <nl> use RequiringTrait ; <nl> <nl> + <nl> } <nl> abstract class AbstractBase { <nl> + <nl> } <nl> interface SimpleInterface { <nl> require extends AbstractBase ; <nl> <nl> + <nl> } <nl> interface DerivedInterface extends BaseInterface { <nl> + <nl> } <nl> interface BaseInterface { <nl> + <nl> } <nl> trait RequiringTrait { <nl> require implements SimpleInterface ; <nl> require implements BaseInterface ; <nl> <nl> + <nl> } <nl> class Implementing extends AbstractBase implements DerivedInterface { <nl> + <nl> } <nl> function with_requiring_trait ( DerivedImplementing $ arg ) : void { } <nl> function extract_standalone_make_default < T > ( ) : T { <nl> mmm a / hphp / hack / test / integration / data / dependencies / expected / __with_traits . php . exp <nl> ppp b / hphp / hack / test / integration / data / dependencies / expected / __with_traits . php . exp <nl> <nl> class TraitBase extends AbstractBase { <nl> use ImplementingAbstractBase , T ; <nl> <nl> + <nl> } <nl> function with_traits ( TraitBase $ arg ) : void { <nl> $ arg - > routine ( ) ; <nl> } <nl> abstract class AbstractBase { <nl> + <nl> } <nl> trait T { <nl> require extends AbstractBase ; <nl> trait T { <nl> } <nl> } <nl> trait ImplementingAbstractBase { <nl> + <nl> } <nl> function extract_standalone_make_default < T > ( ) : T { <nl> throw new Exception ( ) ; <nl> mmm a / hphp / hack / test / integration / data / dependencies / expected / __with_typedefs . php . exp <nl> ppp b / hphp / hack / test / integration / data / dependencies / expected / __with_typedefs . php . exp <nl> function with_typedefs ( Complex $ c , shape ( ' x ' = > int , ' y ' = > C ) $ pair ) : Point { <nl> return shape ( ' x ' = > $ pair [ ' x ' ] , ' y ' = > $ c [ ' first ' ] ) ; <nl> } <nl> class C extends A { <nl> + <nl> } <nl> class A0 { <nl> + <nl> } <nl> type Complex = shape ( ' first ' = > int , ' second ' = > \ B ) ; <nl> newtype Point = shape ( ' x ' = > int , ' y ' = > int ) ; <nl> class A extends A0 implements I1 { <nl> + <nl> } <nl> class B implements I1 { <nl> + <nl> } <nl> interface I1 { <nl> + <nl> } <nl> function extract_standalone_make_default < T > ( ) : T { <nl> throw new Exception ( ) ; <nl> mmm a / hphp / hack / test / integration / test_extract_standalone . py <nl> ppp b / hphp / hack / test / integration / test_extract_standalone . py <nl> def run_single_typecheck ( self , filename : str ) - > int : <nl> <nl> @ staticmethod <nl> def function_to_filename ( func ) - > str : <nl> - return str . replace ( func , " \ \ " , " __ " ) <nl> + func = func . replace ( " : : " , " + + " ) <nl> + return func . replace ( " \ \ " , " __ " ) <nl> <nl> def equals_to_expected ( self , output : str , fname_expected : str ) - > bool : <nl> expected_file = os . path . join ( <nl> def test ( self ) - > None : <nl> " \ \ use_properties " , <nl> " \ \ call_constructors " , <nl> " \ \ with_constants " , <nl> + " \ \ SimpleClass : : simple_method " , <nl> ] , <nl> ) <nl> ) <nl> | Support extracting methods | facebook/hhvm | 128da3d0d237c2bff6fc48d0d85a23c62c553c83 | 2019-08-14T14:21:04Z |
mmm a / hphp / hack / src / typing / typing . ml <nl> ppp b / hphp / hack / src / typing / typing . ml <nl> and expr_ <nl> ( Reason . Rwitness pos , Typing_utils . tany env ) <nl> ) <nl> ) <nl> - ( * TODO T30597126 instantiate generic parameters from class , and check constraints * ) <nl> | Smethod_id ( c , meth ) - > <nl> ( * Smethod_id is used when creating a " method pointer " using the magic <nl> * class_meth function . <nl> and expr_ <nl> expr_error env p Reason . Rnone <nl> | Some { ce_type = lazy ty ; ce_visibility ; _ } - > <nl> let cid = CI ( c , [ ] ) in <nl> - let env , _te , cid_ty = static_class_id ~ check_constraints : false ( fst c ) env cid in <nl> + let env , _te , cid_ty = static_class_id ~ check_constraints : true ( fst c ) env cid in <nl> + let tyargs = <nl> + match cid_ty with <nl> + | ( _ , Tclass ( _ , tyargs ) ) - > tyargs <nl> + | _ - > [ ] in <nl> let ety_env = { <nl> type_expansions = [ ] ; <nl> - substs = SMap . empty ; <nl> + substs = Subst . make class_ . tc_tparams tyargs ; <nl> this_ty = cid_ty ; <nl> from_class = Some cid ; <nl> validate_dty = None ; <nl> new file mode 100644 <nl> index 00000000000 . . 631dd387995 <nl> mmm / dev / null <nl> ppp b / hphp / hack / test / typecheck / class_meth_generics . php <nl> <nl> + < ? hh / / strict <nl> + / / Copyright 2004 - present Facebook . All Rights Reserved . <nl> + <nl> + class C < T as arraykey > { <nl> + static function nongeneric ( T $ x ) : T { <nl> + return $ x ; <nl> + } <nl> + static function generic < Tu > ( T $ x , Tu $ y ) : ( T , Tu ) { <nl> + return tuple ( $ x , $ y ) ; <nl> + } <nl> + } <nl> + <nl> + function testdirect ( string $ s , int $ i , bool $ b ) : ( string , ( int , bool ) ) { <nl> + return tuple ( C : : nongeneric ( $ s ) , C : : generic ( $ i , $ b ) ) ; <nl> + } <nl> + <nl> + function testindirect ( string $ s , int $ i , bool $ b ) : ( string , ( int , bool ) ) { <nl> + $ f = class_meth ( C : : class , ' nongeneric ' ) ; <nl> + $ g = class_meth ( C : : class , ' generic ' ) ; <nl> + return tuple ( $ f ( $ s ) , $ g ( $ i , $ b ) ) ; <nl> + } <nl> new file mode 100644 <nl> index 00000000000 . . 4269126fceb <nl> mmm / dev / null <nl> ppp b / hphp / hack / test / typecheck / class_meth_generics . php . exp <nl> @ @ - 0 , 0 + 1 @ @ <nl> + No errors <nl> new file mode 100644 <nl> index 00000000000 . . cb68015384c <nl> mmm / dev / null <nl> ppp b / hphp / hack / test / typecheck / constraints / class_meth_generics_bad . php <nl> <nl> + < ? hh / / strict <nl> + / / Copyright 2004 - present Facebook . All Rights Reserved . <nl> + <nl> + class C < T as arraykey > { <nl> + static function nongeneric ( T $ x ) : T { <nl> + return $ x ; <nl> + } <nl> + static function generic < Tu > ( T $ x , Tu $ y ) : ( T , Tu ) { <nl> + return tuple ( $ x , $ y ) ; <nl> + } <nl> + static function genericConstrained < Tu as arraykey > ( T $ x , Tu $ y ) : ( T , Tu ) { <nl> + return tuple ( $ x , $ y ) ; <nl> + } <nl> + } <nl> + <nl> + function testindirect1 ( bool $ b ) : bool { <nl> + $ f = class_meth ( C : : class , ' nongeneric ' ) ; <nl> + $ fr = $ f ( $ b ) ; <nl> + return $ fr ; <nl> + } <nl> + <nl> + function testindirect2 ( float $ f , vec < int > $ v ) : ( float , vec < int > ) { <nl> + $ g = class_meth ( C : : class , ' generic ' ) ; <nl> + $ gr = $ g ( $ f , $ v ) ; <nl> + return $ gr ; <nl> + } <nl> + function testindirect3 ( float $ f , vec < int > $ v ) : ( float , vec < int > ) { <nl> + $ g = class_meth ( C : : class , ' genericConstrained ' ) ; <nl> + $ gr = $ g ( $ f , $ v ) ; <nl> + return $ gr ; <nl> + } <nl> new file mode 100644 <nl> index 00000000000 . . f380c9127aa <nl> mmm / dev / null <nl> ppp b / hphp / hack / test / typecheck / constraints / class_meth_generics_bad . php . exp <nl> <nl> + File " class_meth_generics_bad . php " , line 17 , characters 19 - 19 : <nl> + Some type constraint ( s ) here are violated ( Typing [ 4110 ] ) <nl> + File " class_meth_generics_bad . php " , line 4 , characters 9 - 9 : <nl> + ' T ' is a constrained type parameter <nl> + File " class_meth_generics_bad . php " , line 4 , characters 14 - 21 : <nl> + This is an array key ( int / string ) <nl> + File " class_meth_generics_bad . php " , line 16 , characters 24 - 27 : <nl> + It is incompatible with a bool <nl> + File " class_meth_generics_bad . php " , line 23 , characters 19 - 19 : <nl> + Some type constraint ( s ) here are violated ( Typing [ 4110 ] ) <nl> + File " class_meth_generics_bad . php " , line 4 , characters 9 - 9 : <nl> + ' T ' is a constrained type parameter <nl> + File " class_meth_generics_bad . php " , line 4 , characters 14 - 21 : <nl> + This is an array key ( int / string ) <nl> + File " class_meth_generics_bad . php " , line 22 , characters 24 - 28 : <nl> + It is incompatible with a float <nl> + File " class_meth_generics_bad . php " , line 28 , characters 8 - 49 : <nl> + Some type constraint ( s ) here are violated ( Typing [ 4110 ] ) <nl> + File " class_meth_generics_bad . php " , line 11 , characters 38 - 39 : <nl> + ' Tu ' is a constrained type parameter <nl> + File " class_meth_generics_bad . php " , line 11 , characters 44 - 51 : <nl> + This is an array key ( int / string ) <nl> + File " class_meth_generics_bad . php " , line 27 , characters 34 - 36 : <nl> + It is incompatible with an object of type vec <nl> + File " class_meth_generics_bad . php " , line 28 , characters 19 - 19 : <nl> + Some type constraint ( s ) here are violated ( Typing [ 4110 ] ) <nl> + File " class_meth_generics_bad . php " , line 4 , characters 9 - 9 : <nl> + ' T ' is a constrained type parameter <nl> + File " class_meth_generics_bad . php " , line 4 , characters 14 - 21 : <nl> + This is an array key ( int / string ) <nl> + File " class_meth_generics_bad . php " , line 27 , characters 24 - 28 : <nl> + It is incompatible with a float <nl> | class_meth with generic class | facebook/hhvm | 0635846f6dd9bebd5620ed7442530598f9129ba4 | 2018-06-20T12:27:12Z |
mmm a / modules / prediction / evaluator / vehicle / junction_mlp_evaluator . cc <nl> ppp b / modules / prediction / evaluator / vehicle / junction_mlp_evaluator . cc <nl> <nl> # include " modules / prediction / evaluator / vehicle / junction_mlp_evaluator . h " <nl> <nl> # include < memory > <nl> + # include < math > <nl> <nl> # include " modules / prediction / common / prediction_gflags . h " <nl> # include " modules / prediction / common / prediction_map . h " <nl> void JunctionMLPEvaluator : : SetJunctionFeatureValues ( <nl> double y = junction_exit . exit_position ( ) . y ( ) - feature . position ( ) . y ( ) ; <nl> double diff_x = std : : cos ( heading ) * x - std : : sin ( heading ) * y ; <nl> double diff_y = std : : sin ( heading ) * x + std : : cos ( heading ) * y ; <nl> - double angle = std : : atan2 ( diff_x , diff_y ) ; <nl> - double d_idx = ( angle / ( 2 . 0 * std : : acos ( - 1 ) ) ) - <nl> - floor ( ( angle / ( 2 . 0 * std : : acos ( - 1 . 0 ) ) ) / 12 . 0 ) * 12 . 0 ; <nl> + double angle = std : : atan2 ( diff_y , diff_x ) ; <nl> + double d_idx = ( angle / ( 2 . 0 * M_PI ) ) - <nl> + floor ( ( angle / ( 2 . 0 * M_PI ) ) / 12 . 0 ) * 12 . 0 ; <nl> int idx = static_cast < int > ( d_idx > = 0 ? d_idx : d_idx + 12 ) ; <nl> feature_values - > operator [ ] ( idx * 5 ) = 1 ; <nl> feature_values - > operator [ ] ( idx * 5 + 1 ) = diff_x / junction_range ; <nl> | Preidiction : bug fix | ApolloAuto/apollo | 38d4bfd6d43b3441024ee6e555b90820f12cc5ef | 2018-12-13T23:17:51Z |
mmm a / src / rdb_protocol / btree . cc <nl> ppp b / src / rdb_protocol / btree . cc <nl> class post_construct_traversal_helper_t : public btree_traversal_helper_t { <nl> const btree_key_t * , const btree_key_t * , <nl> signal_t * , int * ) THROWS_ONLY ( interrupted_exc_t ) { <nl> <nl> - / / KSI : FML <nl> scoped_ptr_t < txn_t > wtxn ; <nl> store_t : : sindex_access_vector_t sindexes ; <nl> <nl> | Removed dumb " FML " KSI comment . | rethinkdb/rethinkdb | f6d8681183331efc317d2f49f006ba57bece17be | 2014-11-20T19:47:12Z |
mmm a / include / v8 . h <nl> ppp b / include / v8 . h <nl> template < class T > class Handle { <nl> / * * <nl> * Creates an empty handle . <nl> * / <nl> - V8_INLINE ( Handle ( ) ) : val_ ( 0 ) { } <nl> + V8_INLINE Handle ( ) : val_ ( 0 ) { } <nl> <nl> / * * <nl> * Creates a handle for the contents of the specified handle . This <nl> template < class T > class Handle { <nl> * Handle < String > to a variable declared as Handle < Value > , is legal <nl> * because String is a subclass of Value . <nl> * / <nl> - template < class S > V8_INLINE ( Handle ( Handle < S > that ) ) <nl> + template < class S > V8_INLINE Handle ( Handle < S > that ) <nl> : val_ ( reinterpret_cast < T * > ( * that ) ) { <nl> / * * <nl> * This check fails when trying to convert between incompatible <nl> template < class T > class Handle { <nl> / * * <nl> * Returns true if the handle is empty . <nl> * / <nl> - V8_INLINE ( bool IsEmpty ( ) const ) { return val_ = = 0 ; } <nl> + V8_INLINE bool IsEmpty ( ) const { return val_ = = 0 ; } <nl> <nl> / * * <nl> * Sets the handle to be empty . IsEmpty ( ) will then return true . <nl> * / <nl> - V8_INLINE ( void Clear ( ) ) { val_ = 0 ; } <nl> + V8_INLINE void Clear ( ) { val_ = 0 ; } <nl> <nl> - V8_INLINE ( T * operator - > ( ) const ) { return val_ ; } <nl> + V8_INLINE T * operator - > ( ) const { return val_ ; } <nl> <nl> - V8_INLINE ( T * operator * ( ) const ) { return val_ ; } <nl> + V8_INLINE T * operator * ( ) const { return val_ ; } <nl> <nl> / * * <nl> * Checks whether two handles are the same . <nl> template < class T > class Handle { <nl> * to which they refer are identical . <nl> * The handles ' references are not checked . <nl> * / <nl> - template < class S > V8_INLINE ( bool operator = = ( const Handle < S > & that ) const ) { <nl> + template < class S > V8_INLINE bool operator = = ( const Handle < S > & that ) const { <nl> internal : : Object * * a = reinterpret_cast < internal : : Object * * > ( * * this ) ; <nl> internal : : Object * * b = reinterpret_cast < internal : : Object * * > ( * that ) ; <nl> if ( a = = 0 ) return b = = 0 ; <nl> template < class T > class Handle { <nl> return * a = = * b ; <nl> } <nl> <nl> - template < class S > V8_INLINE ( <nl> - bool operator = = ( const Persistent < S > & that ) const ) { <nl> + template < class S > V8_INLINE bool operator = = ( <nl> + const Persistent < S > & that ) const { <nl> internal : : Object * * a = reinterpret_cast < internal : : Object * * > ( * * this ) ; <nl> internal : : Object * * b = reinterpret_cast < internal : : Object * * > ( * that ) ; <nl> if ( a = = 0 ) return b = = 0 ; <nl> template < class T > class Handle { <nl> * the objects to which they refer are different . <nl> * The handles ' references are not checked . <nl> * / <nl> - template < class S > V8_INLINE ( bool operator ! = ( const Handle < S > & that ) const ) { <nl> + template < class S > V8_INLINE bool operator ! = ( const Handle < S > & that ) const { <nl> return ! operator = = ( that ) ; <nl> } <nl> <nl> - template < class S > V8_INLINE ( <nl> - bool operator ! = ( const Persistent < S > & that ) const ) { <nl> + template < class S > V8_INLINE bool operator ! = ( <nl> + const Persistent < S > & that ) const { <nl> return ! operator = = ( that ) ; <nl> } <nl> <nl> - template < class S > V8_INLINE ( static Handle < T > Cast ( Handle < S > that ) ) { <nl> + template < class S > V8_INLINE static Handle < T > Cast ( Handle < S > that ) { <nl> # ifdef V8_ENABLE_CHECKS <nl> / / If we ' re going to perform the type check then we have to check <nl> / / that the handle isn ' t empty before doing the checked cast . <nl> template < class T > class Handle { <nl> return Handle < T > ( T : : Cast ( * that ) ) ; <nl> } <nl> <nl> - template < class S > V8_INLINE ( Handle < S > As ( ) ) { <nl> + template < class S > V8_INLINE Handle < S > As ( ) { <nl> return Handle < S > : : Cast ( * this ) ; <nl> } <nl> <nl> - V8_INLINE ( static Handle < T > New ( Isolate * isolate , Handle < T > that ) ) { <nl> + V8_INLINE static Handle < T > New ( Isolate * isolate , Handle < T > that ) { <nl> return New ( isolate , that . val_ ) ; <nl> } <nl> - V8_INLINE ( static Handle < T > New ( Isolate * isolate , const Persistent < T > & that ) ) { <nl> + V8_INLINE static Handle < T > New ( Isolate * isolate , const Persistent < T > & that ) { <nl> return New ( isolate , that . val_ ) ; <nl> } <nl> <nl> template < class T > class Handle { <nl> / * * <nl> * Creates a new handle for the specified value . <nl> * / <nl> - V8_INLINE ( explicit Handle ( T * val ) ) : val_ ( val ) { } <nl> + V8_INLINE explicit Handle ( T * val ) : val_ ( val ) { } <nl> <nl> private : <nl> friend class Utils ; <nl> template < class T > class Handle { <nl> friend class Context ; <nl> friend class HandleScope ; <nl> <nl> - V8_INLINE ( static Handle < T > New ( Isolate * isolate , T * that ) ) ; <nl> + V8_INLINE static Handle < T > New ( Isolate * isolate , T * that ) ; <nl> <nl> T * val_ ; <nl> } ; <nl> template < class T > class Handle { <nl> * / <nl> template < class T > class Local : public Handle < T > { <nl> public : <nl> - V8_INLINE ( Local ( ) ) ; <nl> - template < class S > V8_INLINE ( Local ( Local < S > that ) ) <nl> + V8_INLINE Local ( ) ; <nl> + template < class S > V8_INLINE Local ( Local < S > that ) <nl> : Handle < T > ( reinterpret_cast < T * > ( * that ) ) { <nl> / * * <nl> * This check fails when trying to convert between incompatible <nl> template < class T > class Local : public Handle < T > { <nl> } <nl> <nl> <nl> - template < class S > V8_INLINE ( static Local < T > Cast ( Local < S > that ) ) { <nl> + template < class S > V8_INLINE static Local < T > Cast ( Local < S > that ) { <nl> # ifdef V8_ENABLE_CHECKS <nl> / / If we ' re going to perform the type check then we have to check <nl> / / that the handle isn ' t empty before doing the checked cast . <nl> template < class T > class Local : public Handle < T > { <nl> # endif <nl> return Local < T > ( T : : Cast ( * that ) ) ; <nl> } <nl> - template < class S > V8_INLINE ( Local ( Handle < S > that ) ) <nl> + template < class S > V8_INLINE Local ( Handle < S > that ) <nl> : Handle < T > ( reinterpret_cast < T * > ( * that ) ) { <nl> TYPE_CHECK ( T , S ) ; <nl> } <nl> <nl> - template < class S > V8_INLINE ( Local < S > As ( ) ) { <nl> + template < class S > V8_INLINE Local < S > As ( ) { <nl> return Local < S > : : Cast ( * this ) ; <nl> } <nl> <nl> template < class T > class Local : public Handle < T > { <nl> * The referee is kept alive by the local handle even when <nl> * the original handle is destroyed / disposed . <nl> * / <nl> - V8_INLINE ( static Local < T > New ( Handle < T > that ) ) ; <nl> - V8_INLINE ( static Local < T > New ( Isolate * isolate , Handle < T > that ) ) ; <nl> + V8_INLINE static Local < T > New ( Handle < T > that ) ; <nl> + V8_INLINE static Local < T > New ( Isolate * isolate , Handle < T > that ) ; <nl> template < class M > <nl> - V8_INLINE ( static Local < T > New ( Isolate * isolate , <nl> - const Persistent < T , M > & that ) ) ; <nl> + V8_INLINE static Local < T > New ( Isolate * isolate , <nl> + const Persistent < T , M > & that ) ; <nl> <nl> # ifndef V8_ALLOW_ACCESS_TO_RAW_HANDLE_CONSTRUCTOR <nl> <nl> private : <nl> # endif <nl> - template < class S > V8_INLINE ( Local ( S * that ) : Handle < T > ( that ) ) { } <nl> + template < class S > V8_INLINE Local ( S * that ) : Handle < T > ( that ) { } <nl> <nl> private : <nl> friend class Utils ; <nl> template < class T > class Local : public Handle < T > { <nl> template < class F > friend class internal : : CustomArguments ; <nl> friend class HandleScope ; <nl> <nl> - V8_INLINE ( static Local < T > New ( Isolate * isolate , T * that ) ) ; <nl> + V8_INLINE static Local < T > New ( Isolate * isolate , T * that ) ; <nl> } ; <nl> <nl> <nl> / / Eternal handles are set - once handles that live for the life of the isolate . <nl> template < class T > class Eternal { <nl> public : <nl> - V8_INLINE ( Eternal ( ) ) : index_ ( kInitialValue ) { } <nl> + V8_INLINE Eternal ( ) : index_ ( kInitialValue ) { } <nl> template < class S > <nl> - V8_INLINE ( Eternal ( Isolate * isolate , Local < S > handle ) ) <nl> - : index_ ( kInitialValue ) { <nl> + V8_INLINE Eternal ( Isolate * isolate , Local < S > handle ) : index_ ( kInitialValue ) { <nl> Set ( isolate , handle ) ; <nl> } <nl> / / Can only be safely called if already set . <nl> - V8_INLINE ( Local < T > Get ( Isolate * isolate ) ) ; <nl> - V8_INLINE ( bool IsEmpty ( ) ) { return index_ = = kInitialValue ; } <nl> - template < class S > <nl> - V8_INLINE ( void Set ( Isolate * isolate , Local < S > handle ) ) ; <nl> + V8_INLINE Local < T > Get ( Isolate * isolate ) ; <nl> + V8_INLINE bool IsEmpty ( ) { return index_ = = kInitialValue ; } <nl> + template < class S > V8_INLINE void Set ( Isolate * isolate , Local < S > handle ) ; <nl> <nl> private : <nl> static const int kInitialValue = - 1 ; <nl> class WeakCallbackData { <nl> public : <nl> typedef void ( * Callback ) ( const WeakCallbackData < T , P > & data ) ; <nl> <nl> - V8_INLINE ( Isolate * GetIsolate ( ) ) const { return isolate_ ; } <nl> - V8_INLINE ( Local < T > GetValue ( ) ) const { return handle_ ; } <nl> - V8_INLINE ( P * GetParameter ( ) ) const { return parameter_ ; } <nl> + V8_INLINE Isolate * GetIsolate ( ) const { return isolate_ ; } <nl> + V8_INLINE Local < T > GetValue ( ) const { return handle_ ; } <nl> + V8_INLINE P * GetParameter ( ) const { return parameter_ ; } <nl> <nl> private : <nl> friend class internal : : GlobalHandles ; <nl> class NonCopyablePersistentTraits { <nl> typedef Persistent < T , NonCopyablePersistentTraits < T > > NonCopyablePersistent ; <nl> static const bool kResetInDestructor = false ; <nl> template < class S , class M > <nl> - V8_INLINE ( static void Copy ( const Persistent < S , M > & source , <nl> - NonCopyablePersistent * dest ) ) { <nl> + V8_INLINE static void Copy ( const Persistent < S , M > & source , <nl> + NonCopyablePersistent * dest ) { <nl> Uncompilable < Object > ( ) ; <nl> } <nl> / / TODO ( dcarney ) : come up with a good compile error here . <nl> - template < class O > <nl> - V8_INLINE ( static void Uncompilable ( ) ) { <nl> + template < class O > V8_INLINE static void Uncompilable ( ) { <nl> TYPE_CHECK ( O , Primitive ) ; <nl> } <nl> } ; <nl> template < class T , class M > class Persistent { <nl> / * * <nl> * A Persistent with no storage cell . <nl> * / <nl> - V8_INLINE ( Persistent ( ) ) : val_ ( 0 ) { } <nl> + V8_INLINE Persistent ( ) : val_ ( 0 ) { } <nl> / * * <nl> * Construct a Persistent from a Handle . <nl> * When the Handle is non - empty , a new storage cell is created <nl> * pointing to the same object , and no flags are set . <nl> * / <nl> - template < class S > V8_INLINE ( Persistent ( Isolate * isolate , Handle < S > that ) ) <nl> + template < class S > V8_INLINE Persistent ( Isolate * isolate , Handle < S > that ) <nl> : val_ ( New ( isolate , * that ) ) { <nl> TYPE_CHECK ( T , S ) ; <nl> } <nl> template < class T , class M > class Persistent { <nl> * pointing to the same object , and no flags are set . <nl> * / <nl> template < class S , class M2 > <nl> - V8_INLINE ( Persistent ( Isolate * isolate , const Persistent < S , M2 > & that ) ) <nl> + V8_INLINE Persistent ( Isolate * isolate , const Persistent < S , M2 > & that ) <nl> : val_ ( New ( isolate , * that ) ) { <nl> TYPE_CHECK ( T , S ) ; <nl> } <nl> template < class T , class M > class Persistent { <nl> * traits class is called , allowing the setting of flags based on the <nl> * copied Persistent . <nl> * / <nl> - V8_INLINE ( Persistent ( const Persistent & that ) ) : val_ ( 0 ) { <nl> + V8_INLINE Persistent ( const Persistent & that ) : val_ ( 0 ) { <nl> Copy ( that ) ; <nl> } <nl> template < class S , class M2 > <nl> - V8_INLINE ( Persistent ( const Persistent < S , M2 > & that ) ) : val_ ( 0 ) { <nl> + V8_INLINE Persistent ( const Persistent < S , M2 > & that ) : val_ ( 0 ) { <nl> Copy ( that ) ; <nl> } <nl> - V8_INLINE ( Persistent & operator = ( const Persistent & that ) ) { / / NOLINT <nl> + V8_INLINE Persistent & operator = ( const Persistent & that ) { / / NOLINT <nl> Copy ( that ) ; <nl> return * this ; <nl> } <nl> template < class S , class M2 > <nl> - V8_INLINE ( Persistent & operator = ( const Persistent < S , M2 > & that ) ) { / / NOLINT <nl> + V8_INLINE Persistent & operator = ( const Persistent < S , M2 > & that ) { / / NOLINT <nl> Copy ( that ) ; <nl> return * this ; <nl> } <nl> template < class T , class M > class Persistent { <nl> * kResetInDestructor flags in the traits class . Since not calling dispose <nl> * can result in a memory leak , it is recommended to always set this flag . <nl> * / <nl> - V8_INLINE ( ~ Persistent ( ) ) { <nl> + V8_INLINE ~ Persistent ( ) { <nl> if ( M : : kResetInDestructor ) Reset ( ) ; <nl> } <nl> <nl> template < class T , class M > class Persistent { <nl> * If non - empty , destroy the underlying storage cell <nl> * IsEmpty ( ) will return true after this call . <nl> * / <nl> - V8_INLINE ( void Reset ( ) ) ; <nl> - template < class S > <nl> + V8_INLINE void Reset ( ) ; <nl> / * * <nl> * If non - empty , destroy the underlying storage cell <nl> * and create a new one with the contents of other if other is non empty <nl> * / <nl> - V8_INLINE ( void Reset ( Isolate * isolate , const Handle < S > & other ) ) ; <nl> + template < class S > <nl> + V8_INLINE void Reset ( Isolate * isolate , const Handle < S > & other ) ; <nl> / * * <nl> * If non - empty , destroy the underlying storage cell <nl> * and create a new one with the contents of other if other is non empty <nl> * / <nl> template < class S , class M2 > <nl> - V8_INLINE ( void Reset ( Isolate * isolate , const Persistent < S , M2 > & other ) ) ; <nl> + V8_INLINE void Reset ( Isolate * isolate , const Persistent < S , M2 > & other ) ; <nl> / / TODO ( dcarney ) : deprecate <nl> - V8_INLINE ( void Dispose ( ) ) { Reset ( ) ; } <nl> - V8_DEPRECATED ( V8_INLINE ( void Dispose ( Isolate * isolate ) ) ) { Reset ( ) ; } <nl> + V8_INLINE void Dispose ( ) { Reset ( ) ; } <nl> + V8_DEPRECATED ( V8_INLINE void Dispose ( Isolate * isolate ) ) { Reset ( ) ; } <nl> <nl> - V8_INLINE ( bool IsEmpty ( ) const ) { return val_ = = 0 ; } <nl> + V8_INLINE bool IsEmpty ( ) const { return val_ = = 0 ; } <nl> <nl> / / TODO ( dcarney ) : this is pretty useless , fix or remove <nl> template < class S > <nl> - V8_INLINE ( static Persistent < T > & Cast ( Persistent < S > & that ) ) { / / NOLINT <nl> + V8_INLINE static Persistent < T > & Cast ( Persistent < S > & that ) { / / NOLINT <nl> # ifdef V8_ENABLE_CHECKS <nl> / / If we ' re going to perform the type check then we have to check <nl> / / that the handle isn ' t empty before doing the checked cast . <nl> template < class T , class M > class Persistent { <nl> } <nl> <nl> / / TODO ( dcarney ) : this is pretty useless , fix or remove <nl> - template < class S > V8_INLINE ( Persistent < S > & As ( ) ) { / / NOLINT <nl> + template < class S > V8_INLINE Persistent < S > & As ( ) { / / NOLINT <nl> return Persistent < S > : : Cast ( * this ) ; <nl> } <nl> <nl> - template < class S , class M2 > V8_INLINE ( <nl> - bool operator = = ( const Persistent < S , M2 > & that ) const ) { <nl> + template < class S , class M2 > <nl> + V8_INLINE bool operator = = ( const Persistent < S , M2 > & that ) const { <nl> internal : : Object * * a = reinterpret_cast < internal : : Object * * > ( * * this ) ; <nl> internal : : Object * * b = reinterpret_cast < internal : : Object * * > ( * that ) ; <nl> if ( a = = 0 ) return b = = 0 ; <nl> template < class T , class M > class Persistent { <nl> return * a = = * b ; <nl> } <nl> <nl> - template < class S > V8_INLINE ( bool operator = = ( const Handle < S > & that ) const ) { <nl> + template < class S > V8_INLINE bool operator = = ( const Handle < S > & that ) const { <nl> internal : : Object * * a = reinterpret_cast < internal : : Object * * > ( * * this ) ; <nl> internal : : Object * * b = reinterpret_cast < internal : : Object * * > ( * that ) ; <nl> if ( a = = 0 ) return b = = 0 ; <nl> template < class T , class M > class Persistent { <nl> return * a = = * b ; <nl> } <nl> <nl> - template < class S , class M2 > V8_INLINE ( <nl> - bool operator ! = ( const Persistent < S , M2 > & that ) const ) { <nl> + template < class S , class M2 > <nl> + V8_INLINE bool operator ! = ( const Persistent < S , M2 > & that ) const { <nl> return ! operator = = ( that ) ; <nl> } <nl> <nl> - template < class S > V8_INLINE ( bool operator ! = ( const Handle < S > & that ) const ) { <nl> + template < class S > V8_INLINE bool operator ! = ( const Handle < S > & that ) const { <nl> return ! operator = = ( that ) ; <nl> } <nl> <nl> template < typename P > <nl> - V8_INLINE ( void SetWeak ( <nl> + V8_INLINE void SetWeak ( <nl> P * parameter , <nl> - typename WeakCallbackData < T , P > : : Callback callback ) ) ; <nl> + typename WeakCallbackData < T , P > : : Callback callback ) ; <nl> <nl> template < typename S , typename P > <nl> - V8_INLINE ( void SetWeak ( <nl> + V8_INLINE void SetWeak ( <nl> P * parameter , <nl> - typename WeakCallbackData < S , P > : : Callback callback ) ) ; <nl> + typename WeakCallbackData < S , P > : : Callback callback ) ; <nl> <nl> / / TODO ( dcarney ) : deprecate <nl> template < typename S , typename P > <nl> - V8_INLINE ( void MakeWeak ( <nl> + V8_INLINE void MakeWeak ( <nl> P * parameter , <nl> - typename WeakReferenceCallbacks < S , P > : : Revivable callback ) ) ; <nl> + typename WeakReferenceCallbacks < S , P > : : Revivable callback ) ; <nl> <nl> / / TODO ( dcarney ) : deprecate <nl> template < typename P > <nl> - V8_INLINE ( void MakeWeak ( <nl> + V8_INLINE void MakeWeak ( <nl> P * parameter , <nl> - typename WeakReferenceCallbacks < T , P > : : Revivable callback ) ) ; <nl> + typename WeakReferenceCallbacks < T , P > : : Revivable callback ) ; <nl> <nl> - V8_INLINE ( void ClearWeak ( ) ) ; <nl> + V8_INLINE void ClearWeak ( ) ; <nl> <nl> - V8_DEPRECATED ( V8_INLINE ( void ClearWeak ( Isolate * isolate ) ) ) { ClearWeak ( ) ; } <nl> + V8_DEPRECATED ( V8_INLINE void ClearWeak ( Isolate * isolate ) ) { ClearWeak ( ) ; } <nl> <nl> / * * <nl> * Marks the reference to this object independent . Garbage collector is free <nl> template < class T , class M > class Persistent { <nl> * independent handle should not assume that it will be preceded by a global <nl> * GC prologue callback or followed by a global GC epilogue callback . <nl> * / <nl> - V8_INLINE ( void MarkIndependent ( ) ) ; <nl> + V8_INLINE void MarkIndependent ( ) ; <nl> <nl> - V8_DEPRECATED ( V8_INLINE ( void MarkIndependent ( Isolate * isolate ) ) ) { <nl> + V8_DEPRECATED ( V8_INLINE void MarkIndependent ( Isolate * isolate ) ) { <nl> MarkIndependent ( ) ; <nl> } <nl> <nl> template < class T , class M > class Persistent { <nl> * external dependencies . This mark is automatically cleared after each <nl> * garbage collection . <nl> * / <nl> - V8_INLINE ( void MarkPartiallyDependent ( ) ) ; <nl> + V8_INLINE void MarkPartiallyDependent ( ) ; <nl> <nl> - V8_DEPRECATED ( V8_INLINE ( void MarkPartiallyDependent ( Isolate * isolate ) ) ) { <nl> + V8_DEPRECATED ( V8_INLINE void MarkPartiallyDependent ( Isolate * isolate ) ) { <nl> MarkPartiallyDependent ( ) ; <nl> } <nl> <nl> - V8_INLINE ( bool IsIndependent ( ) const ) ; <nl> + V8_INLINE bool IsIndependent ( ) const ; <nl> <nl> - V8_DEPRECATED ( V8_INLINE ( bool IsIndependent ( Isolate * isolate ) ) const ) { <nl> + V8_DEPRECATED ( V8_INLINE bool IsIndependent ( Isolate * isolate ) const ) { <nl> return IsIndependent ( ) ; <nl> } <nl> <nl> / * * Checks if the handle holds the only reference to an object . * / <nl> - V8_INLINE ( bool IsNearDeath ( ) const ) ; <nl> + V8_INLINE bool IsNearDeath ( ) const ; <nl> <nl> - V8_DEPRECATED ( V8_INLINE ( bool IsNearDeath ( Isolate * isolate ) ) const ) { <nl> + V8_DEPRECATED ( V8_INLINE bool IsNearDeath ( Isolate * isolate ) const ) { <nl> return IsNearDeath ( ) ; <nl> } <nl> <nl> / * * Returns true if the handle ' s reference is weak . * / <nl> - V8_INLINE ( bool IsWeak ( ) const ) ; <nl> + V8_INLINE bool IsWeak ( ) const ; <nl> <nl> - V8_DEPRECATED ( V8_INLINE ( bool IsWeak ( Isolate * isolate ) ) const ) { <nl> + V8_DEPRECATED ( V8_INLINE bool IsWeak ( Isolate * isolate ) const ) { <nl> return IsWeak ( ) ; <nl> } <nl> <nl> template < class T , class M > class Persistent { <nl> * Assigns a wrapper class ID to the handle . See RetainedObjectInfo interface <nl> * description in v8 - profiler . h for details . <nl> * / <nl> - V8_INLINE ( void SetWrapperClassId ( uint16_t class_id ) ) ; <nl> + V8_INLINE void SetWrapperClassId ( uint16_t class_id ) ; <nl> <nl> V8_DEPRECATED ( <nl> - V8_INLINE ( void SetWrapperClassId ( Isolate * isolate , uint16_t class_id ) ) ) { <nl> + V8_INLINE void SetWrapperClassId ( Isolate * isolate , uint16_t class_id ) ) { <nl> SetWrapperClassId ( class_id ) ; <nl> } <nl> <nl> template < class T , class M > class Persistent { <nl> * Returns the class ID previously assigned to this handle or 0 if no class ID <nl> * was previously assigned . <nl> * / <nl> - V8_INLINE ( uint16_t WrapperClassId ( ) const ) ; <nl> + V8_INLINE uint16_t WrapperClassId ( ) const ; <nl> <nl> - V8_DEPRECATED ( V8_INLINE ( uint16_t WrapperClassId ( Isolate * isolate ) ) const ) { <nl> + V8_DEPRECATED ( V8_INLINE uint16_t WrapperClassId ( Isolate * isolate ) const ) { <nl> return WrapperClassId ( ) ; <nl> } <nl> <nl> / / TODO ( dcarney ) : remove <nl> - V8_INLINE ( T * ClearAndLeak ( ) ) ; <nl> + V8_INLINE T * ClearAndLeak ( ) ; <nl> <nl> / / TODO ( dcarney ) : remove <nl> - V8_INLINE ( void Clear ( ) ) { val_ = 0 ; } <nl> + V8_INLINE void Clear ( ) { val_ = 0 ; } <nl> <nl> / / TODO ( dcarney ) : remove <nl> # ifndef V8_ALLOW_ACCESS_TO_RAW_HANDLE_CONSTRUCTOR <nl> <nl> private : <nl> # endif <nl> - template < class S > V8_INLINE ( Persistent ( S * that ) ) : val_ ( that ) { } <nl> + template < class S > V8_INLINE Persistent ( S * that ) : val_ ( that ) { } <nl> <nl> - V8_INLINE ( T * operator * ( ) const ) { return val_ ; } <nl> + V8_INLINE T * operator * ( ) const { return val_ ; } <nl> <nl> private : <nl> friend class Utils ; <nl> template < class T , class M > class Persistent { <nl> template < class F1 , class F2 > friend class Persistent ; <nl> template < class F > friend class ReturnValue ; <nl> <nl> - V8_INLINE ( static T * New ( Isolate * isolate , T * that ) ) ; <nl> + V8_INLINE static T * New ( Isolate * isolate , T * that ) ; <nl> template < class S , class M2 > <nl> - V8_INLINE ( void Copy ( const Persistent < S , M2 > & that ) ) ; <nl> + V8_INLINE void Copy ( const Persistent < S , M2 > & that ) ; <nl> <nl> T * val_ ; <nl> } ; <nl> class V8_EXPORT HandleScope { <nl> internal : : Object * * next ; <nl> internal : : Object * * limit ; <nl> int level ; <nl> - V8_INLINE ( void Initialize ( ) ) { <nl> + V8_INLINE void Initialize ( ) { <nl> next = limit = NULL ; <nl> level = 0 ; <nl> } <nl> class V8_EXPORT ScriptData { / / NOLINT <nl> * / <nl> class ScriptOrigin { <nl> public : <nl> - V8_INLINE ( ScriptOrigin ( <nl> + V8_INLINE ScriptOrigin ( <nl> Handle < Value > resource_name , <nl> Handle < Integer > resource_line_offset = Handle < Integer > ( ) , <nl> Handle < Integer > resource_column_offset = Handle < Integer > ( ) , <nl> - Handle < Boolean > resource_is_shared_cross_origin = Handle < Boolean > ( ) ) ) <nl> + Handle < Boolean > resource_is_shared_cross_origin = Handle < Boolean > ( ) ) <nl> : resource_name_ ( resource_name ) , <nl> resource_line_offset_ ( resource_line_offset ) , <nl> resource_column_offset_ ( resource_column_offset ) , <nl> resource_is_shared_cross_origin_ ( resource_is_shared_cross_origin ) { } <nl> - V8_INLINE ( Handle < Value > ResourceName ( ) const ) ; <nl> - V8_INLINE ( Handle < Integer > ResourceLineOffset ( ) const ) ; <nl> - V8_INLINE ( Handle < Integer > ResourceColumnOffset ( ) const ) ; <nl> - V8_INLINE ( Handle < Boolean > ResourceIsSharedCrossOrigin ( ) const ) ; <nl> + V8_INLINE Handle < Value > ResourceName ( ) const ; <nl> + V8_INLINE Handle < Integer > ResourceLineOffset ( ) const ; <nl> + V8_INLINE Handle < Integer > ResourceColumnOffset ( ) const ; <nl> + V8_INLINE Handle < Boolean > ResourceIsSharedCrossOrigin ( ) const ; <nl> private : <nl> Handle < Value > resource_name_ ; <nl> Handle < Integer > resource_line_offset_ ; <nl> class V8_EXPORT Value : public Data { <nl> * Returns true if this value is the undefined value . See ECMA - 262 <nl> * 4 . 3 . 10 . <nl> * / <nl> - V8_INLINE ( bool IsUndefined ( ) const ) ; <nl> + V8_INLINE bool IsUndefined ( ) const ; <nl> <nl> / * * <nl> * Returns true if this value is the null value . See ECMA - 262 <nl> * 4 . 3 . 11 . <nl> * / <nl> - V8_INLINE ( bool IsNull ( ) const ) ; <nl> + V8_INLINE bool IsNull ( ) const ; <nl> <nl> / * * <nl> * Returns true if this value is true . <nl> class V8_EXPORT Value : public Data { <nl> * Returns true if this value is an instance of the String type . <nl> * See ECMA - 262 8 . 4 . <nl> * / <nl> - V8_INLINE ( bool IsString ( ) const ) ; <nl> + V8_INLINE bool IsString ( ) const ; <nl> <nl> / * * <nl> * Returns true if this value is a symbol . <nl> class V8_EXPORT Value : public Data { <nl> bool Equals ( Handle < Value > that ) const ; <nl> bool StrictEquals ( Handle < Value > that ) const ; <nl> <nl> - template < class T > V8_INLINE ( static Value * Cast ( T * value ) ) ; <nl> + template < class T > V8_INLINE static Value * Cast ( T * value ) ; <nl> <nl> private : <nl> - V8_INLINE ( bool QuickIsUndefined ( ) const ) ; <nl> - V8_INLINE ( bool QuickIsNull ( ) const ) ; <nl> - V8_INLINE ( bool QuickIsString ( ) const ) ; <nl> + V8_INLINE bool QuickIsUndefined ( ) const ; <nl> + V8_INLINE bool QuickIsNull ( ) const ; <nl> + V8_INLINE bool QuickIsString ( ) const ; <nl> bool FullIsUndefined ( ) const ; <nl> bool FullIsNull ( ) const ; <nl> bool FullIsString ( ) const ; <nl> class V8_EXPORT Primitive : public Value { } ; <nl> class V8_EXPORT Boolean : public Primitive { <nl> public : <nl> bool Value ( ) const ; <nl> - V8_INLINE ( static Handle < Boolean > New ( bool value ) ) ; <nl> + V8_INLINE static Handle < Boolean > New ( bool value ) ; <nl> } ; <nl> <nl> <nl> class V8_EXPORT String : public Primitive { <nl> / * * <nl> * This function is no longer useful . <nl> * / <nl> - V8_DEPRECATED ( V8_INLINE ( bool MayContainNonAscii ( ) ) const ) { return true ; } <nl> + V8_DEPRECATED ( V8_INLINE bool MayContainNonAscii ( ) const ) { return true ; } <nl> <nl> / * * <nl> * Returns whether this string is known to contain only one byte data . <nl> class V8_EXPORT String : public Primitive { <nl> * A zero length string . <nl> * / <nl> static v8 : : Local < v8 : : String > Empty ( ) ; <nl> - V8_INLINE ( static v8 : : Local < v8 : : String > Empty ( Isolate * isolate ) ) ; <nl> + V8_INLINE static v8 : : Local < v8 : : String > Empty ( Isolate * isolate ) ; <nl> <nl> / * * <nl> * Returns true if the string is external <nl> class V8_EXPORT String : public Primitive { <nl> * regardless of the encoding , otherwise return NULL . The encoding of the <nl> * string is returned in encoding_out . <nl> * / <nl> - V8_INLINE ( ExternalStringResourceBase * GetExternalStringResourceBase ( <nl> - Encoding * encoding_out ) const ) ; <nl> + V8_INLINE ExternalStringResourceBase * GetExternalStringResourceBase ( <nl> + Encoding * encoding_out ) const ; <nl> <nl> / * * <nl> * Get the ExternalStringResource for an external string . Returns <nl> * NULL if IsExternal ( ) doesn ' t return true . <nl> * / <nl> - V8_INLINE ( ExternalStringResource * GetExternalStringResource ( ) const ) ; <nl> + V8_INLINE ExternalStringResource * GetExternalStringResource ( ) const ; <nl> <nl> / * * <nl> * Get the ExternalAsciiStringResource for an external ASCII string . <nl> class V8_EXPORT String : public Primitive { <nl> * / <nl> const ExternalAsciiStringResource * GetExternalAsciiStringResource ( ) const ; <nl> <nl> - V8_INLINE ( static String * Cast ( v8 : : Value * obj ) ) ; <nl> + V8_INLINE static String * Cast ( v8 : : Value * obj ) ; <nl> <nl> / / TODO ( dcarney ) : deprecate <nl> / * * <nl> class V8_EXPORT String : public Primitive { <nl> * The second parameter ' length ' gives the buffer length . If omitted , <nl> * the function calls ' strlen ' to determine the buffer length . <nl> * / <nl> - V8_INLINE ( static Local < String > New ( const char * data , int length = - 1 ) ) ; <nl> + V8_INLINE static Local < String > New ( const char * data , int length = - 1 ) ; <nl> <nl> / / TODO ( dcarney ) : deprecate <nl> / * * Allocates a new string from 16 - bit character codes . * / <nl> - V8_INLINE ( static Local < String > New ( const uint16_t * data , int length = - 1 ) ) ; <nl> + V8_INLINE static Local < String > New ( const uint16_t * data , int length = - 1 ) ; <nl> <nl> / / TODO ( dcarney ) : deprecate <nl> / * * <nl> * Creates an internalized string ( historically called a " symbol " , <nl> * not to be confused with ES6 symbols ) . Returns one if it exists already . <nl> * / <nl> - V8_INLINE ( static Local < String > NewSymbol ( const char * data , int length = - 1 ) ) ; <nl> + V8_INLINE static Local < String > NewSymbol ( const char * data , int length = - 1 ) ; <nl> <nl> enum NewStringType { <nl> kNormalString , kInternalizedString , kUndetectableString <nl> class V8_EXPORT String : public Primitive { <nl> <nl> / / TODO ( dcarney ) : deprecate <nl> / * * Creates an undetectable string from the supplied ASCII or UTF - 8 data . * / <nl> - V8_INLINE ( <nl> - static Local < String > NewUndetectable ( const char * data , int length = - 1 ) ) ; <nl> + V8_INLINE static Local < String > NewUndetectable ( const char * data , <nl> + int length = - 1 ) ; <nl> <nl> / / TODO ( dcarney ) : deprecate <nl> / * * Creates an undetectable string from the supplied 16 - bit character codes . * / <nl> - V8_INLINE ( static Local < String > NewUndetectable ( <nl> - const uint16_t * data , int length = - 1 ) ) ; <nl> + V8_INLINE static Local < String > NewUndetectable ( const uint16_t * data , <nl> + int length = - 1 ) ; <nl> <nl> / * * <nl> * Converts an object to a UTF - 8 - encoded character array . Useful if <nl> class V8_EXPORT Symbol : public Primitive { <nl> / / Create a symbol with a print name . <nl> static Local < Symbol > New ( Isolate * isolate , const char * data , int length = - 1 ) ; <nl> <nl> - V8_INLINE ( static Symbol * Cast ( v8 : : Value * obj ) ) ; <nl> + V8_INLINE static Symbol * Cast ( v8 : : Value * obj ) ; <nl> private : <nl> Symbol ( ) ; <nl> static void CheckCast ( v8 : : Value * obj ) ; <nl> class V8_EXPORT Number : public Primitive { <nl> double Value ( ) const ; <nl> static Local < Number > New ( double value ) ; <nl> static Local < Number > New ( Isolate * isolate , double value ) ; <nl> - V8_INLINE ( static Number * Cast ( v8 : : Value * obj ) ) ; <nl> + V8_INLINE static Number * Cast ( v8 : : Value * obj ) ; <nl> private : <nl> Number ( ) ; <nl> static void CheckCast ( v8 : : Value * obj ) ; <nl> class V8_EXPORT Integer : public Number { <nl> static Local < Integer > New ( int32_t value , Isolate * ) ; <nl> static Local < Integer > NewFromUnsigned ( uint32_t value , Isolate * ) ; <nl> int64_t Value ( ) const ; <nl> - V8_INLINE ( static Integer * Cast ( v8 : : Value * obj ) ) ; <nl> + V8_INLINE static Integer * Cast ( v8 : : Value * obj ) ; <nl> private : <nl> Integer ( ) ; <nl> static void CheckCast ( v8 : : Value * obj ) ; <nl> class V8_EXPORT Object : public Value { <nl> int InternalFieldCount ( ) ; <nl> <nl> / * * Gets the value from an internal field . * / <nl> - V8_INLINE ( Local < Value > GetInternalField ( int index ) ) ; <nl> + V8_INLINE Local < Value > GetInternalField ( int index ) ; <nl> <nl> / * * Sets the value in an internal field . * / <nl> void SetInternalField ( int index , Handle < Value > value ) ; <nl> class V8_EXPORT Object : public Value { <nl> * must have been set by SetAlignedPointerInInternalField , everything else <nl> * leads to undefined behavior . <nl> * / <nl> - V8_INLINE ( void * GetAlignedPointerFromInternalField ( int index ) ) ; <nl> + V8_INLINE void * GetAlignedPointerFromInternalField ( int index ) ; <nl> <nl> / * * <nl> * Sets a 2 - byte - aligned native pointer in an internal field . To retrieve such <nl> class V8_EXPORT Object : public Value { <nl> Local < Value > CallAsConstructor ( int argc , Handle < Value > argv [ ] ) ; <nl> <nl> static Local < Object > New ( ) ; <nl> - V8_INLINE ( static Object * Cast ( Value * obj ) ) ; <nl> + V8_INLINE static Object * Cast ( Value * obj ) ; <nl> <nl> private : <nl> Object ( ) ; <nl> class V8_EXPORT Array : public Object { <nl> * / <nl> static Local < Array > New ( int length = 0 ) ; <nl> <nl> - V8_INLINE ( static Array * Cast ( Value * obj ) ) ; <nl> + V8_INLINE static Array * Cast ( Value * obj ) ; <nl> private : <nl> Array ( ) ; <nl> static void CheckCast ( Value * obj ) ; <nl> class V8_EXPORT Array : public Object { <nl> template < typename T > <nl> class ReturnValue { <nl> public : <nl> - template < class S > V8_INLINE ( ReturnValue ( const ReturnValue < S > & that ) ) <nl> + template < class S > V8_INLINE ReturnValue ( const ReturnValue < S > & that ) <nl> : value_ ( that . value_ ) { <nl> TYPE_CHECK ( T , S ) ; <nl> } <nl> / / Handle setters <nl> - template < typename S > V8_INLINE ( void Set ( const Persistent < S > & handle ) ) ; <nl> - template < typename S > V8_INLINE ( void Set ( const Handle < S > handle ) ) ; <nl> + template < typename S > V8_INLINE void Set ( const Persistent < S > & handle ) ; <nl> + template < typename S > V8_INLINE void Set ( const Handle < S > handle ) ; <nl> / / Fast primitive setters <nl> - V8_INLINE ( void Set ( bool value ) ) ; <nl> - V8_INLINE ( void Set ( double i ) ) ; <nl> - V8_INLINE ( void Set ( int32_t i ) ) ; <nl> - V8_INLINE ( void Set ( uint32_t i ) ) ; <nl> + V8_INLINE void Set ( bool value ) ; <nl> + V8_INLINE void Set ( double i ) ; <nl> + V8_INLINE void Set ( int32_t i ) ; <nl> + V8_INLINE void Set ( uint32_t i ) ; <nl> / / Fast JS primitive setters <nl> - V8_INLINE ( void SetNull ( ) ) ; <nl> - V8_INLINE ( void SetUndefined ( ) ) ; <nl> - V8_INLINE ( void SetEmptyString ( ) ) ; <nl> + V8_INLINE void SetNull ( ) ; <nl> + V8_INLINE void SetUndefined ( ) ; <nl> + V8_INLINE void SetEmptyString ( ) ; <nl> / / Convenience getter for Isolate <nl> - V8_INLINE ( Isolate * GetIsolate ( ) ) ; <nl> + V8_INLINE Isolate * GetIsolate ( ) ; <nl> <nl> private : <nl> template < class F > friend class ReturnValue ; <nl> template < class F > friend class FunctionCallbackInfo ; <nl> template < class F > friend class PropertyCallbackInfo ; <nl> - V8_INLINE ( internal : : Object * GetDefaultValue ( ) ) ; <nl> - V8_INLINE ( explicit ReturnValue ( internal : : Object * * slot ) ) ; <nl> + V8_INLINE internal : : Object * GetDefaultValue ( ) ; <nl> + V8_INLINE explicit ReturnValue ( internal : : Object * * slot ) ; <nl> internal : : Object * * value_ ; <nl> } ; <nl> <nl> class ReturnValue { <nl> template < typename T > <nl> class FunctionCallbackInfo { <nl> public : <nl> - V8_INLINE ( int Length ( ) const ) ; <nl> - V8_INLINE ( Local < Value > operator [ ] ( int i ) const ) ; <nl> - V8_INLINE ( Local < Function > Callee ( ) const ) ; <nl> - V8_INLINE ( Local < Object > This ( ) const ) ; <nl> - V8_INLINE ( Local < Object > Holder ( ) const ) ; <nl> - V8_INLINE ( bool IsConstructCall ( ) const ) ; <nl> - V8_INLINE ( Local < Value > Data ( ) const ) ; <nl> - V8_INLINE ( Isolate * GetIsolate ( ) const ) ; <nl> - V8_INLINE ( ReturnValue < T > GetReturnValue ( ) const ) ; <nl> + V8_INLINE int Length ( ) const ; <nl> + V8_INLINE Local < Value > operator [ ] ( int i ) const ; <nl> + V8_INLINE Local < Function > Callee ( ) const ; <nl> + V8_INLINE Local < Object > This ( ) const ; <nl> + V8_INLINE Local < Object > Holder ( ) const ; <nl> + V8_INLINE bool IsConstructCall ( ) const ; <nl> + V8_INLINE Local < Value > Data ( ) const ; <nl> + V8_INLINE Isolate * GetIsolate ( ) const ; <nl> + V8_INLINE ReturnValue < T > GetReturnValue ( ) const ; <nl> / / This shouldn ' t be public , but the arm compiler needs it . <nl> static const int kArgsLength = 6 ; <nl> <nl> class FunctionCallbackInfo { <nl> static const int kCalleeIndex = - 4 ; <nl> static const int kHolderIndex = - 5 ; <nl> <nl> - V8_INLINE ( FunctionCallbackInfo ( internal : : Object * * implicit_args , <nl> + V8_INLINE FunctionCallbackInfo ( internal : : Object * * implicit_args , <nl> internal : : Object * * values , <nl> int length , <nl> - bool is_construct_call ) ) ; <nl> + bool is_construct_call ) ; <nl> internal : : Object * * implicit_args_ ; <nl> internal : : Object * * values_ ; <nl> int length_ ; <nl> class FunctionCallbackInfo { <nl> template < typename T > <nl> class PropertyCallbackInfo { <nl> public : <nl> - V8_INLINE ( Isolate * GetIsolate ( ) const ) ; <nl> - V8_INLINE ( Local < Value > Data ( ) const ) ; <nl> - V8_INLINE ( Local < Object > This ( ) const ) ; <nl> - V8_INLINE ( Local < Object > Holder ( ) const ) ; <nl> - V8_INLINE ( ReturnValue < T > GetReturnValue ( ) const ) ; <nl> + V8_INLINE Isolate * GetIsolate ( ) const ; <nl> + V8_INLINE Local < Value > Data ( ) const ; <nl> + V8_INLINE Local < Object > This ( ) const ; <nl> + V8_INLINE Local < Object > Holder ( ) const ; <nl> + V8_INLINE ReturnValue < T > GetReturnValue ( ) const ; <nl> / / This shouldn ' t be public , but the arm compiler needs it . <nl> static const int kArgsLength = 6 ; <nl> <nl> class PropertyCallbackInfo { <nl> static const int kReturnValueDefaultValueIndex = - 4 ; <nl> static const int kIsolateIndex = - 5 ; <nl> <nl> - V8_INLINE ( PropertyCallbackInfo ( internal : : Object * * args ) ) <nl> - : args_ ( args ) { } <nl> + V8_INLINE PropertyCallbackInfo ( internal : : Object * * args ) : args_ ( args ) { } <nl> internal : : Object * * args_ ; <nl> } ; <nl> <nl> class V8_EXPORT Function : public Object { <nl> int ScriptId ( ) const ; <nl> <nl> ScriptOrigin GetScriptOrigin ( ) const ; <nl> - V8_INLINE ( static Function * Cast ( Value * obj ) ) ; <nl> + V8_INLINE static Function * Cast ( Value * obj ) ; <nl> static const int kLineOffsetNotFound ; <nl> <nl> private : <nl> class V8_EXPORT ArrayBuffer : public Object { <nl> * / <nl> Contents Externalize ( ) ; <nl> <nl> - V8_INLINE ( static ArrayBuffer * Cast ( Value * obj ) ) ; <nl> + V8_INLINE static ArrayBuffer * Cast ( Value * obj ) ; <nl> <nl> static const int kInternalFieldCount = V8_ARRAY_BUFFER_INTERNAL_FIELD_COUNT ; <nl> <nl> class V8_EXPORT ArrayBufferView : public Object { <nl> * / <nl> void * BaseAddress ( ) ; <nl> <nl> - V8_INLINE ( static ArrayBufferView * Cast ( Value * obj ) ) ; <nl> + V8_INLINE static ArrayBufferView * Cast ( Value * obj ) ; <nl> <nl> static const int kInternalFieldCount = <nl> V8_ARRAY_BUFFER_VIEW_INTERNAL_FIELD_COUNT ; <nl> class V8_EXPORT TypedArray : public ArrayBufferView { <nl> * / <nl> size_t Length ( ) ; <nl> <nl> - V8_INLINE ( static TypedArray * Cast ( Value * obj ) ) ; <nl> + V8_INLINE static TypedArray * Cast ( Value * obj ) ; <nl> <nl> private : <nl> TypedArray ( ) ; <nl> class V8_EXPORT Uint8Array : public TypedArray { <nl> public : <nl> static Local < Uint8Array > New ( Handle < ArrayBuffer > array_buffer , <nl> size_t byte_offset , size_t length ) ; <nl> - V8_INLINE ( static Uint8Array * Cast ( Value * obj ) ) ; <nl> + V8_INLINE static Uint8Array * Cast ( Value * obj ) ; <nl> <nl> private : <nl> Uint8Array ( ) ; <nl> class V8_EXPORT Uint8ClampedArray : public TypedArray { <nl> public : <nl> static Local < Uint8ClampedArray > New ( Handle < ArrayBuffer > array_buffer , <nl> size_t byte_offset , size_t length ) ; <nl> - V8_INLINE ( static Uint8ClampedArray * Cast ( Value * obj ) ) ; <nl> + V8_INLINE static Uint8ClampedArray * Cast ( Value * obj ) ; <nl> <nl> private : <nl> Uint8ClampedArray ( ) ; <nl> class V8_EXPORT Int8Array : public TypedArray { <nl> public : <nl> static Local < Int8Array > New ( Handle < ArrayBuffer > array_buffer , <nl> size_t byte_offset , size_t length ) ; <nl> - V8_INLINE ( static Int8Array * Cast ( Value * obj ) ) ; <nl> + V8_INLINE static Int8Array * Cast ( Value * obj ) ; <nl> <nl> private : <nl> Int8Array ( ) ; <nl> class V8_EXPORT Uint16Array : public TypedArray { <nl> public : <nl> static Local < Uint16Array > New ( Handle < ArrayBuffer > array_buffer , <nl> size_t byte_offset , size_t length ) ; <nl> - V8_INLINE ( static Uint16Array * Cast ( Value * obj ) ) ; <nl> + V8_INLINE static Uint16Array * Cast ( Value * obj ) ; <nl> <nl> private : <nl> Uint16Array ( ) ; <nl> class V8_EXPORT Int16Array : public TypedArray { <nl> public : <nl> static Local < Int16Array > New ( Handle < ArrayBuffer > array_buffer , <nl> size_t byte_offset , size_t length ) ; <nl> - V8_INLINE ( static Int16Array * Cast ( Value * obj ) ) ; <nl> + V8_INLINE static Int16Array * Cast ( Value * obj ) ; <nl> <nl> private : <nl> Int16Array ( ) ; <nl> class V8_EXPORT Uint32Array : public TypedArray { <nl> public : <nl> static Local < Uint32Array > New ( Handle < ArrayBuffer > array_buffer , <nl> size_t byte_offset , size_t length ) ; <nl> - V8_INLINE ( static Uint32Array * Cast ( Value * obj ) ) ; <nl> + V8_INLINE static Uint32Array * Cast ( Value * obj ) ; <nl> <nl> private : <nl> Uint32Array ( ) ; <nl> class V8_EXPORT Int32Array : public TypedArray { <nl> public : <nl> static Local < Int32Array > New ( Handle < ArrayBuffer > array_buffer , <nl> size_t byte_offset , size_t length ) ; <nl> - V8_INLINE ( static Int32Array * Cast ( Value * obj ) ) ; <nl> + V8_INLINE static Int32Array * Cast ( Value * obj ) ; <nl> <nl> private : <nl> Int32Array ( ) ; <nl> class V8_EXPORT Float32Array : public TypedArray { <nl> public : <nl> static Local < Float32Array > New ( Handle < ArrayBuffer > array_buffer , <nl> size_t byte_offset , size_t length ) ; <nl> - V8_INLINE ( static Float32Array * Cast ( Value * obj ) ) ; <nl> + V8_INLINE static Float32Array * Cast ( Value * obj ) ; <nl> <nl> private : <nl> Float32Array ( ) ; <nl> class V8_EXPORT Float64Array : public TypedArray { <nl> public : <nl> static Local < Float64Array > New ( Handle < ArrayBuffer > array_buffer , <nl> size_t byte_offset , size_t length ) ; <nl> - V8_INLINE ( static Float64Array * Cast ( Value * obj ) ) ; <nl> + V8_INLINE static Float64Array * Cast ( Value * obj ) ; <nl> <nl> private : <nl> Float64Array ( ) ; <nl> class V8_EXPORT DataView : public ArrayBufferView { <nl> public : <nl> static Local < DataView > New ( Handle < ArrayBuffer > array_buffer , <nl> size_t byte_offset , size_t length ) ; <nl> - V8_INLINE ( static DataView * Cast ( Value * obj ) ) ; <nl> + V8_INLINE static DataView * Cast ( Value * obj ) ; <nl> <nl> private : <nl> DataView ( ) ; <nl> class V8_EXPORT Date : public Object { <nl> * / <nl> double ValueOf ( ) const ; <nl> <nl> - V8_INLINE ( static Date * Cast ( v8 : : Value * obj ) ) ; <nl> + V8_INLINE static Date * Cast ( v8 : : Value * obj ) ; <nl> <nl> / * * <nl> * Notification that the embedder has changed the time zone , <nl> class V8_EXPORT NumberObject : public Object { <nl> * / <nl> double ValueOf ( ) const ; <nl> <nl> - V8_INLINE ( static NumberObject * Cast ( v8 : : Value * obj ) ) ; <nl> + V8_INLINE static NumberObject * Cast ( v8 : : Value * obj ) ; <nl> <nl> private : <nl> static void CheckCast ( v8 : : Value * obj ) ; <nl> class V8_EXPORT BooleanObject : public Object { <nl> * / <nl> bool ValueOf ( ) const ; <nl> <nl> - V8_INLINE ( static BooleanObject * Cast ( v8 : : Value * obj ) ) ; <nl> + V8_INLINE static BooleanObject * Cast ( v8 : : Value * obj ) ; <nl> <nl> private : <nl> static void CheckCast ( v8 : : Value * obj ) ; <nl> class V8_EXPORT StringObject : public Object { <nl> * / <nl> Local < String > ValueOf ( ) const ; <nl> <nl> - V8_INLINE ( static StringObject * Cast ( v8 : : Value * obj ) ) ; <nl> + V8_INLINE static StringObject * Cast ( v8 : : Value * obj ) ; <nl> <nl> private : <nl> static void CheckCast ( v8 : : Value * obj ) ; <nl> class V8_EXPORT SymbolObject : public Object { <nl> * / <nl> Local < Symbol > ValueOf ( ) const ; <nl> <nl> - V8_INLINE ( static SymbolObject * Cast ( v8 : : Value * obj ) ) ; <nl> + V8_INLINE static SymbolObject * Cast ( v8 : : Value * obj ) ; <nl> <nl> private : <nl> static void CheckCast ( v8 : : Value * obj ) ; <nl> class V8_EXPORT RegExp : public Object { <nl> * / <nl> Flags GetFlags ( ) const ; <nl> <nl> - V8_INLINE ( static RegExp * Cast ( v8 : : Value * obj ) ) ; <nl> + V8_INLINE static RegExp * Cast ( v8 : : Value * obj ) ; <nl> <nl> private : <nl> static void CheckCast ( v8 : : Value * obj ) ; <nl> class V8_EXPORT RegExp : public Object { <nl> class V8_EXPORT External : public Value { <nl> public : <nl> static Local < External > New ( void * value ) ; <nl> - V8_INLINE ( static External * Cast ( Value * obj ) ) ; <nl> + V8_INLINE static External * Cast ( Value * obj ) ; <nl> void * Value ( ) const ; <nl> private : <nl> static void CheckCast ( v8 : : Value * obj ) ; <nl> class V8_EXPORT Template : public Data { <nl> / * * Adds a property to each instance created by this template . * / <nl> void Set ( Handle < String > name , Handle < Data > value , <nl> PropertyAttribute attributes = None ) ; <nl> - V8_INLINE ( void Set ( const char * name , Handle < Data > value ) ) ; <nl> + V8_INLINE void Set ( const char * name , Handle < Data > value ) ; <nl> <nl> void SetAccessorProperty ( <nl> Local < String > name , <nl> void V8_EXPORT RegisterExtension ( Extension * extension ) ; <nl> * / <nl> class V8_EXPORT DeclareExtension { <nl> public : <nl> - V8_INLINE ( DeclareExtension ( Extension * extension ) ) { <nl> + V8_INLINE DeclareExtension ( Extension * extension ) { <nl> RegisterExtension ( extension ) ; <nl> } <nl> } ; <nl> Handle < Primitive > V8_EXPORT Null ( ) ; <nl> Handle < Boolean > V8_EXPORT True ( ) ; <nl> Handle < Boolean > V8_EXPORT False ( ) ; <nl> <nl> - V8_INLINE ( Handle < Primitive > Undefined ( Isolate * isolate ) ) ; <nl> - V8_INLINE ( Handle < Primitive > Null ( Isolate * isolate ) ) ; <nl> - V8_INLINE ( Handle < Boolean > True ( Isolate * isolate ) ) ; <nl> - V8_INLINE ( Handle < Boolean > False ( Isolate * isolate ) ) ; <nl> + V8_INLINE Handle < Primitive > Undefined ( Isolate * isolate ) ; <nl> + V8_INLINE Handle < Primitive > Null ( Isolate * isolate ) ; <nl> + V8_INLINE Handle < Boolean > True ( Isolate * isolate ) ; <nl> + V8_INLINE Handle < Boolean > False ( Isolate * isolate ) ; <nl> <nl> <nl> / * * <nl> class V8_EXPORT Isolate { <nl> / * * <nl> * Associate embedder - specific data with the isolate <nl> * / <nl> - V8_INLINE ( void SetData ( void * data ) ) ; <nl> + V8_INLINE void SetData ( void * data ) ; <nl> <nl> / * * <nl> * Retrieve embedder - specific data from the isolate . <nl> * Returns NULL if SetData has never been called . <nl> * / <nl> - V8_INLINE ( void * GetData ( ) ) ; <nl> + V8_INLINE void * GetData ( ) ; <nl> <nl> / * * <nl> * Get statistics about the heap memory usage . <nl> class V8_EXPORT PersistentHandleVisitor { / / NOLINT <nl> class V8_EXPORT AssertNoGCScope { <nl> # ifndef DEBUG <nl> / / TODO ( yangguo ) : remove isolate argument . <nl> - V8_INLINE ( AssertNoGCScope ( Isolate * isolate ) ) { } <nl> + V8_INLINE AssertNoGCScope ( Isolate * isolate ) { } <nl> # else <nl> AssertNoGCScope ( Isolate * isolate ) ; <nl> ~ AssertNoGCScope ( ) ; <nl> class V8_EXPORT Context { <nl> * previous call to SetEmbedderData with the same index . Note that index 0 <nl> * currently has a special meaning for Chrome ' s debugger . <nl> * / <nl> - V8_INLINE ( Local < Value > GetEmbedderData ( int index ) ) ; <nl> + V8_INLINE Local < Value > GetEmbedderData ( int index ) ; <nl> <nl> / * * <nl> * Sets the embedder data with the given index , growing the data as <nl> class V8_EXPORT Context { <nl> * SetAlignedPointerInEmbedderData with the same index . Note that index 0 <nl> * currently has a special meaning for Chrome ' s debugger . <nl> * / <nl> - V8_INLINE ( void * GetAlignedPointerFromEmbedderData ( int index ) ) ; <nl> + V8_INLINE void * GetAlignedPointerFromEmbedderData ( int index ) ; <nl> <nl> / * * <nl> * Sets a 2 - byte - aligned native pointer in the embedder data with the given <nl> class V8_EXPORT Context { <nl> * / <nl> class Scope { <nl> public : <nl> - explicit V8_INLINE ( Scope ( Handle < Context > context ) ) : context_ ( context ) { <nl> + explicit V8_INLINE Scope ( Handle < Context > context ) : context_ ( context ) { <nl> context_ - > Enter ( ) ; <nl> } <nl> / / TODO ( dcarney ) : deprecate <nl> - V8_INLINE ( Scope ( Isolate * isolate , Persistent < Context > & context ) ) / / NOLINT <nl> + V8_INLINE Scope ( Isolate * isolate , Persistent < Context > & context ) / / NOLINT <nl> : context_ ( Handle < Context > : : New ( isolate , context ) ) { <nl> context_ - > Enter ( ) ; <nl> } <nl> - V8_INLINE ( ~ Scope ( ) ) { context_ - > Exit ( ) ; } <nl> + V8_INLINE ~ Scope ( ) { context_ - > Exit ( ) ; } <nl> <nl> private : <nl> Handle < Context > context_ ; <nl> class V8_EXPORT Unlocker { <nl> / * * <nl> * Initialize Unlocker for a given Isolate . <nl> * / <nl> - V8_INLINE ( explicit Unlocker ( Isolate * isolate ) ) { Initialize ( isolate ) ; } <nl> + V8_INLINE explicit Unlocker ( Isolate * isolate ) { Initialize ( isolate ) ; } <nl> <nl> / * * Deprecated . Use Isolate version instead . * / <nl> V8_DEPRECATED ( Unlocker ( ) ) ; <nl> class V8_EXPORT Locker { <nl> / * * <nl> * Initialize Locker for a given Isolate . <nl> * / <nl> - V8_INLINE ( explicit Locker ( Isolate * isolate ) ) { Initialize ( isolate ) ; } <nl> + V8_INLINE explicit Locker ( Isolate * isolate ) { Initialize ( isolate ) ; } <nl> <nl> / * * Deprecated . Use Isolate version instead . * / <nl> V8_DEPRECATED ( Locker ( ) ) ; <nl> const intptr_t kSmiTagMask = ( 1 < < kSmiTagSize ) - 1 ; <nl> template < size_t ptr_size > struct SmiTagging ; <nl> <nl> template < int kSmiShiftSize > <nl> - V8_INLINE ( internal : : Object * IntToSmi ( int value ) ) { <nl> + V8_INLINE internal : : Object * IntToSmi ( int value ) { <nl> int smi_shift_bits = kSmiTagSize + kSmiShiftSize ; <nl> intptr_t tagged_value = <nl> ( static_cast < intptr_t > ( value ) < < smi_shift_bits ) | kSmiTag ; <nl> V8_INLINE ( internal : : Object * IntToSmi ( int value ) ) { <nl> template < > struct SmiTagging < 4 > { <nl> static const int kSmiShiftSize = 0 ; <nl> static const int kSmiValueSize = 31 ; <nl> - V8_INLINE ( static int SmiToInt ( internal : : Object * value ) ) { <nl> + V8_INLINE static int SmiToInt ( internal : : Object * value ) { <nl> int shift_bits = kSmiTagSize + kSmiShiftSize ; <nl> / / Throw away top 32 bits and shift down ( requires > > to be sign extending ) . <nl> return static_cast < int > ( reinterpret_cast < intptr_t > ( value ) ) > > shift_bits ; <nl> } <nl> - V8_INLINE ( static internal : : Object * IntToSmi ( int value ) ) { <nl> + V8_INLINE static internal : : Object * IntToSmi ( int value ) { <nl> return internal : : IntToSmi < kSmiShiftSize > ( value ) ; <nl> } <nl> - V8_INLINE ( static bool IsValidSmi ( intptr_t value ) ) { <nl> + V8_INLINE static bool IsValidSmi ( intptr_t value ) { <nl> / / To be representable as an tagged small integer , the two <nl> / / most - significant bits of ' value ' must be either 00 or 11 due to <nl> / / sign - extension . To check this we add 01 to the two <nl> template < > struct SmiTagging < 4 > { <nl> template < > struct SmiTagging < 8 > { <nl> static const int kSmiShiftSize = 31 ; <nl> static const int kSmiValueSize = 32 ; <nl> - V8_INLINE ( static int SmiToInt ( internal : : Object * value ) ) { <nl> + V8_INLINE static int SmiToInt ( internal : : Object * value ) { <nl> int shift_bits = kSmiTagSize + kSmiShiftSize ; <nl> / / Shift down and throw away top 32 bits . <nl> return static_cast < int > ( reinterpret_cast < intptr_t > ( value ) > > shift_bits ) ; <nl> } <nl> - V8_INLINE ( static internal : : Object * IntToSmi ( int value ) ) { <nl> + V8_INLINE static internal : : Object * IntToSmi ( int value ) { <nl> return internal : : IntToSmi < kSmiShiftSize > ( value ) ; <nl> } <nl> - V8_INLINE ( static bool IsValidSmi ( intptr_t value ) ) { <nl> + V8_INLINE static bool IsValidSmi ( intptr_t value ) { <nl> / / To be representable as a long smi , the value must be a 32 - bit integer . <nl> return ( value = = static_cast < int32_t > ( value ) ) ; <nl> } <nl> template < > struct SmiTagging < 8 > { <nl> typedef SmiTagging < kApiPointerSize > PlatformSmiTagging ; <nl> const int kSmiShiftSize = PlatformSmiTagging : : kSmiShiftSize ; <nl> const int kSmiValueSize = PlatformSmiTagging : : kSmiValueSize ; <nl> - V8_INLINE ( static bool SmiValuesAre31Bits ( ) ) { return kSmiValueSize = = 31 ; } <nl> - V8_INLINE ( static bool SmiValuesAre32Bits ( ) ) { return kSmiValueSize = = 32 ; } <nl> + V8_INLINE static bool SmiValuesAre31Bits ( ) { return kSmiValueSize = = 31 ; } <nl> + V8_INLINE static bool SmiValuesAre32Bits ( ) { return kSmiValueSize = = 32 ; } <nl> <nl> / * * <nl> * This class exports constants and functionality from within v8 that <nl> class Internals { <nl> static const int kNullOddballKind = 3 ; <nl> <nl> static void CheckInitializedImpl ( v8 : : Isolate * isolate ) ; <nl> - V8_INLINE ( static void CheckInitialized ( v8 : : Isolate * isolate ) ) { <nl> + V8_INLINE static void CheckInitialized ( v8 : : Isolate * isolate ) { <nl> # ifdef V8_ENABLE_CHECKS <nl> CheckInitializedImpl ( isolate ) ; <nl> # endif <nl> } <nl> <nl> - V8_INLINE ( static bool HasHeapObjectTag ( internal : : Object * value ) ) { <nl> + V8_INLINE static bool HasHeapObjectTag ( internal : : Object * value ) { <nl> return ( ( reinterpret_cast < intptr_t > ( value ) & kHeapObjectTagMask ) = = <nl> kHeapObjectTag ) ; <nl> } <nl> <nl> - V8_INLINE ( static int SmiValue ( internal : : Object * value ) ) { <nl> + V8_INLINE static int SmiValue ( internal : : Object * value ) { <nl> return PlatformSmiTagging : : SmiToInt ( value ) ; <nl> } <nl> <nl> - V8_INLINE ( static internal : : Object * IntToSmi ( int value ) ) { <nl> + V8_INLINE static internal : : Object * IntToSmi ( int value ) { <nl> return PlatformSmiTagging : : IntToSmi ( value ) ; <nl> } <nl> <nl> - V8_INLINE ( static bool IsValidSmi ( intptr_t value ) ) { <nl> + V8_INLINE static bool IsValidSmi ( intptr_t value ) { <nl> return PlatformSmiTagging : : IsValidSmi ( value ) ; <nl> } <nl> <nl> - V8_INLINE ( static int GetInstanceType ( internal : : Object * obj ) ) { <nl> + V8_INLINE static int GetInstanceType ( internal : : Object * obj ) { <nl> typedef internal : : Object O ; <nl> O * map = ReadField < O * > ( obj , kHeapObjectMapOffset ) ; <nl> return ReadField < uint8_t > ( map , kMapInstanceTypeOffset ) ; <nl> } <nl> <nl> - V8_INLINE ( static int GetOddballKind ( internal : : Object * obj ) ) { <nl> + V8_INLINE static int GetOddballKind ( internal : : Object * obj ) { <nl> typedef internal : : Object O ; <nl> return SmiValue ( ReadField < O * > ( obj , kOddballKindOffset ) ) ; <nl> } <nl> <nl> - V8_INLINE ( static bool IsExternalTwoByteString ( int instance_type ) ) { <nl> + V8_INLINE static bool IsExternalTwoByteString ( int instance_type ) { <nl> int representation = ( instance_type & kFullStringRepresentationMask ) ; <nl> return representation = = kExternalTwoByteRepresentationTag ; <nl> } <nl> <nl> - V8_INLINE ( static uint8_t GetNodeFlag ( internal : : Object * * obj , int shift ) ) { <nl> + V8_INLINE static uint8_t GetNodeFlag ( internal : : Object * * obj , int shift ) { <nl> uint8_t * addr = reinterpret_cast < uint8_t * > ( obj ) + kNodeFlagsOffset ; <nl> return * addr & static_cast < uint8_t > ( 1U < < shift ) ; <nl> } <nl> <nl> - V8_INLINE ( static void UpdateNodeFlag ( internal : : Object * * obj , <nl> - bool value , int shift ) ) { <nl> + V8_INLINE static void UpdateNodeFlag ( internal : : Object * * obj , <nl> + bool value , int shift ) { <nl> uint8_t * addr = reinterpret_cast < uint8_t * > ( obj ) + kNodeFlagsOffset ; <nl> uint8_t mask = static_cast < uint8_t > ( 1 < < shift ) ; <nl> * addr = static_cast < uint8_t > ( ( * addr & ~ mask ) | ( value < < shift ) ) ; <nl> } <nl> <nl> - V8_INLINE ( static uint8_t GetNodeState ( internal : : Object * * obj ) ) { <nl> + V8_INLINE static uint8_t GetNodeState ( internal : : Object * * obj ) { <nl> uint8_t * addr = reinterpret_cast < uint8_t * > ( obj ) + kNodeFlagsOffset ; <nl> return * addr & kNodeStateMask ; <nl> } <nl> <nl> - V8_INLINE ( static void UpdateNodeState ( internal : : Object * * obj , <nl> - uint8_t value ) ) { <nl> + V8_INLINE static void UpdateNodeState ( internal : : Object * * obj , <nl> + uint8_t value ) { <nl> uint8_t * addr = reinterpret_cast < uint8_t * > ( obj ) + kNodeFlagsOffset ; <nl> * addr = static_cast < uint8_t > ( ( * addr & ~ kNodeStateMask ) | value ) ; <nl> } <nl> <nl> - V8_INLINE ( static void SetEmbedderData ( v8 : : Isolate * isolate , void * data ) ) { <nl> + V8_INLINE static void SetEmbedderData ( v8 : : Isolate * isolate , void * data ) { <nl> uint8_t * addr = reinterpret_cast < uint8_t * > ( isolate ) + <nl> kIsolateEmbedderDataOffset ; <nl> * reinterpret_cast < void * * > ( addr ) = data ; <nl> } <nl> <nl> - V8_INLINE ( static void * GetEmbedderData ( v8 : : Isolate * isolate ) ) { <nl> + V8_INLINE static void * GetEmbedderData ( v8 : : Isolate * isolate ) { <nl> uint8_t * addr = reinterpret_cast < uint8_t * > ( isolate ) + <nl> kIsolateEmbedderDataOffset ; <nl> return * reinterpret_cast < void * * > ( addr ) ; <nl> } <nl> <nl> - V8_INLINE ( static internal : : Object * * GetRoot ( v8 : : Isolate * isolate , <nl> - int index ) ) { <nl> + V8_INLINE static internal : : Object * * GetRoot ( v8 : : Isolate * isolate , <nl> + int index ) { <nl> uint8_t * addr = reinterpret_cast < uint8_t * > ( isolate ) + kIsolateRootsOffset ; <nl> return reinterpret_cast < internal : : Object * * > ( addr + index * kApiPointerSize ) ; <nl> } <nl> <nl> - template < typename T > <nl> - V8_INLINE ( static T ReadField ( Object * ptr , int offset ) ) { <nl> + template < typename T > V8_INLINE static T ReadField ( Object * ptr , int offset ) { <nl> uint8_t * addr = reinterpret_cast < uint8_t * > ( ptr ) + offset - kHeapObjectTag ; <nl> return * reinterpret_cast < T * > ( addr ) ; <nl> } <nl> <nl> template < typename T > <nl> - V8_INLINE ( static T ReadEmbedderData ( Context * context , int index ) ) { <nl> + V8_INLINE static T ReadEmbedderData ( Context * context , int index ) { <nl> typedef internal : : Object O ; <nl> typedef internal : : Internals I ; <nl> O * ctx = * reinterpret_cast < O * * > ( context ) ; <nl> class Internals { <nl> return I : : ReadField < T > ( embedder_data , value_offset ) ; <nl> } <nl> <nl> - V8_INLINE ( static bool CanCastToHeapObject ( void * o ) ) { return false ; } <nl> - V8_INLINE ( static bool CanCastToHeapObject ( Context * o ) ) { return true ; } <nl> - V8_INLINE ( static bool CanCastToHeapObject ( String * o ) ) { return true ; } <nl> - V8_INLINE ( static bool CanCastToHeapObject ( Object * o ) ) { return true ; } <nl> - V8_INLINE ( static bool CanCastToHeapObject ( Message * o ) ) { return true ; } <nl> - V8_INLINE ( static bool CanCastToHeapObject ( StackTrace * o ) ) { return true ; } <nl> - V8_INLINE ( static bool CanCastToHeapObject ( StackFrame * o ) ) { return true ; } <nl> + V8_INLINE static bool CanCastToHeapObject ( void * o ) { return false ; } <nl> + V8_INLINE static bool CanCastToHeapObject ( Context * o ) { return true ; } <nl> + V8_INLINE static bool CanCastToHeapObject ( String * o ) { return true ; } <nl> + V8_INLINE static bool CanCastToHeapObject ( Object * o ) { return true ; } <nl> + V8_INLINE static bool CanCastToHeapObject ( Message * o ) { return true ; } <nl> + V8_INLINE static bool CanCastToHeapObject ( StackTrace * o ) { return true ; } <nl> + V8_INLINE static bool CanCastToHeapObject ( StackFrame * o ) { return true ; } <nl> } ; <nl> <nl> } / / namespace internal <nl> mmm a / include / v8config . h <nl> ppp b / include / v8config . h <nl> <nl> / / Helper macros <nl> <nl> / / A macro used to make better inlining . Don ' t bother for debug builds . <nl> + / / Use like : <nl> + / / V8_INLINE int GetZero ( ) { return 0 ; } <nl> # if ! defined ( DEBUG ) & & V8_HAS_ATTRIBUTE_ALWAYS_INLINE <nl> - # define V8_INLINE ( declarator ) inline __attribute__ ( ( always_inline ) ) declarator <nl> + # define V8_INLINE inline __attribute__ ( ( always_inline ) ) <nl> # elif ! defined ( DEBUG ) & & V8_HAS___FORCEINLINE <nl> - # define V8_INLINE ( declarator ) __forceinline declarator <nl> + # define V8_INLINE __forceinline <nl> # else <nl> - # define V8_INLINE ( declarator ) inline declarator <nl> + # define V8_INLINE inline <nl> # endif <nl> <nl> <nl> / / A macro used to tell the compiler to never inline a particular function . <nl> / / Don ' t bother for debug builds . <nl> + / / Use like : <nl> + / / V8_NOINLINE int GetMinusOne ( ) { return - 1 ; } <nl> # if ! defined ( DEBUG ) & & V8_HAS_ATTRIBUTE_NOINLINE <nl> - # define V8_NOINLINE ( declarator ) __attribute__ ( ( noinline ) ) declarator <nl> + # define V8_NOINLINE __attribute__ ( ( noinline ) ) <nl> # elif ! defined ( DEBUG ) & & V8_HAS_DECLSPEC_NOINLINE <nl> - # define V8_NOINLINE ( declarator ) __declspec ( noinline ) declarator <nl> + # define V8_NOINLINE __declspec ( noinline ) <nl> # else <nl> - # define V8_NOINLINE ( declarator ) declarator <nl> + # define V8_NOINLINE / * NOT SUPPORTED * / <nl> # endif <nl> <nl> <nl> mmm a / src / cpu . cc <nl> ppp b / src / cpu . cc <nl> namespace internal { <nl> / / Define __cpuid ( ) for non - MSVC compilers . <nl> # if ! V8_CC_MSVC <nl> <nl> - static V8_INLINE ( void __cpuid ( int cpu_info [ 4 ] , int info_type ) ) { <nl> + static V8_INLINE void __cpuid ( int cpu_info [ 4 ] , int info_type ) { <nl> # if defined ( __i386__ ) & & defined ( __pic__ ) <nl> / / Make sure to preserve ebx , which contains the pointer <nl> / / to the GOT in case we ' re generating PIC . <nl> mmm a / src / globals . h <nl> ppp b / src / globals . h <nl> F FUNCTION_CAST ( Address addr ) { <nl> DISALLOW_COPY_AND_ASSIGN ( TypeName ) <nl> <nl> <nl> - / / Newly written code should use V8_INLINE ( ) and V8_NOINLINE ( ) directly . <nl> - # define INLINE ( declarator ) V8_INLINE ( declarator ) <nl> - # define NO_INLINE ( declarator ) V8_NOINLINE ( declarator ) <nl> + / / Newly written code should use V8_INLINE and V8_NOINLINE directly . <nl> + # define INLINE ( declarator ) V8_INLINE declarator <nl> + # define NO_INLINE ( declarator ) V8_NOINLINE declarator <nl> <nl> <nl> / / Newly written code should use V8_WARN_UNUSED_RESULT . <nl> mmm a / src / platform / elapsed - timer . h <nl> ppp b / src / platform / elapsed - timer . h <nl> class ElapsedTimer V8_FINAL BASE_EMBEDDED { <nl> } <nl> <nl> private : <nl> - V8_INLINE ( static TimeTicks Now ( ) ) { <nl> + static V8_INLINE TimeTicks Now ( ) { <nl> TimeTicks now = TimeTicks : : HighResNow ( ) ; <nl> ASSERT ( ! now . IsNull ( ) ) ; <nl> return now ; <nl> mmm a / src / platform / mutex . cc <nl> ppp b / src / platform / mutex . cc <nl> namespace internal { <nl> <nl> # if V8_OS_POSIX <nl> <nl> - static V8_INLINE ( void InitializeNativeHandle ( pthread_mutex_t * mutex ) ) { <nl> + static V8_INLINE void InitializeNativeHandle ( pthread_mutex_t * mutex ) { <nl> int result ; <nl> # if defined ( DEBUG ) <nl> / / Use an error checking mutex in debug mode . <nl> static V8_INLINE ( void InitializeNativeHandle ( pthread_mutex_t * mutex ) ) { <nl> } <nl> <nl> <nl> - static V8_INLINE ( void InitializeRecursiveNativeHandle ( pthread_mutex_t * mutex ) ) { <nl> + static V8_INLINE void InitializeRecursiveNativeHandle ( pthread_mutex_t * mutex ) { <nl> pthread_mutexattr_t attr ; <nl> int result = pthread_mutexattr_init ( & attr ) ; <nl> ASSERT_EQ ( 0 , result ) ; <nl> static V8_INLINE ( void InitializeRecursiveNativeHandle ( pthread_mutex_t * mutex ) ) { <nl> } <nl> <nl> <nl> - static V8_INLINE ( void DestroyNativeHandle ( pthread_mutex_t * mutex ) ) { <nl> + static V8_INLINE void DestroyNativeHandle ( pthread_mutex_t * mutex ) { <nl> int result = pthread_mutex_destroy ( mutex ) ; <nl> ASSERT_EQ ( 0 , result ) ; <nl> USE ( result ) ; <nl> } <nl> <nl> <nl> - static V8_INLINE ( void LockNativeHandle ( pthread_mutex_t * mutex ) ) { <nl> + static V8_INLINE void LockNativeHandle ( pthread_mutex_t * mutex ) { <nl> int result = pthread_mutex_lock ( mutex ) ; <nl> ASSERT_EQ ( 0 , result ) ; <nl> USE ( result ) ; <nl> } <nl> <nl> <nl> - static V8_INLINE ( void UnlockNativeHandle ( pthread_mutex_t * mutex ) ) { <nl> + static V8_INLINE void UnlockNativeHandle ( pthread_mutex_t * mutex ) { <nl> int result = pthread_mutex_unlock ( mutex ) ; <nl> ASSERT_EQ ( 0 , result ) ; <nl> USE ( result ) ; <nl> } <nl> <nl> <nl> - static V8_INLINE ( bool TryLockNativeHandle ( pthread_mutex_t * mutex ) ) { <nl> + static V8_INLINE bool TryLockNativeHandle ( pthread_mutex_t * mutex ) { <nl> int result = pthread_mutex_trylock ( mutex ) ; <nl> if ( result = = EBUSY ) { <nl> return false ; <nl> static V8_INLINE ( bool TryLockNativeHandle ( pthread_mutex_t * mutex ) ) { <nl> <nl> # elif V8_OS_WIN <nl> <nl> - static V8_INLINE ( void InitializeNativeHandle ( PCRITICAL_SECTION cs ) ) { <nl> + static V8_INLINE void InitializeNativeHandle ( PCRITICAL_SECTION cs ) { <nl> InitializeCriticalSection ( cs ) ; <nl> } <nl> <nl> <nl> - static V8_INLINE ( void InitializeRecursiveNativeHandle ( PCRITICAL_SECTION cs ) ) { <nl> + static V8_INLINE void InitializeRecursiveNativeHandle ( PCRITICAL_SECTION cs ) { <nl> InitializeCriticalSection ( cs ) ; <nl> } <nl> <nl> <nl> - static V8_INLINE ( void DestroyNativeHandle ( PCRITICAL_SECTION cs ) ) { <nl> + static V8_INLINE void DestroyNativeHandle ( PCRITICAL_SECTION cs ) { <nl> DeleteCriticalSection ( cs ) ; <nl> } <nl> <nl> <nl> - static V8_INLINE ( void LockNativeHandle ( PCRITICAL_SECTION cs ) ) { <nl> + static V8_INLINE void LockNativeHandle ( PCRITICAL_SECTION cs ) { <nl> EnterCriticalSection ( cs ) ; <nl> } <nl> <nl> <nl> - static V8_INLINE ( void UnlockNativeHandle ( PCRITICAL_SECTION cs ) ) { <nl> + static V8_INLINE void UnlockNativeHandle ( PCRITICAL_SECTION cs ) { <nl> LeaveCriticalSection ( cs ) ; <nl> } <nl> <nl> <nl> - static V8_INLINE ( bool TryLockNativeHandle ( PCRITICAL_SECTION cs ) ) { <nl> + static V8_INLINE bool TryLockNativeHandle ( PCRITICAL_SECTION cs ) { <nl> return TryEnterCriticalSection ( cs ) ; <nl> } <nl> <nl> mmm a / src / platform / mutex . h <nl> ppp b / src / platform / mutex . h <nl> class Mutex V8_FINAL { <nl> int level_ ; <nl> # endif <nl> <nl> - V8_INLINE ( void AssertHeldAndUnmark ( ) ) { <nl> + V8_INLINE void AssertHeldAndUnmark ( ) { <nl> # ifdef DEBUG <nl> ASSERT_EQ ( 1 , level_ ) ; <nl> level_ - - ; <nl> # endif <nl> } <nl> <nl> - V8_INLINE ( void AssertUnheldAndMark ( ) ) { <nl> + V8_INLINE void AssertUnheldAndMark ( ) { <nl> # ifdef DEBUG <nl> ASSERT_EQ ( 0 , level_ ) ; <nl> level_ + + ; <nl> mmm a / src / platform / socket . h <nl> ppp b / src / platform / socket . h <nl> class Socket V8_FINAL { <nl> / / Set the value of the SO_REUSEADDR socket option . <nl> bool SetReuseAddress ( bool reuse_address ) ; <nl> <nl> - V8_INLINE ( bool IsValid ( ) ) const { <nl> + V8_INLINE bool IsValid ( ) const { <nl> return native_handle_ ! = kInvalidNativeHandle ; <nl> } <nl> <nl> mmm a / src / spaces . h <nl> ppp b / src / spaces . h <nl> class MemoryAllocator { <nl> <nl> / / Returns an indication of whether a pointer is in a space that has <nl> / / been allocated by this MemoryAllocator . <nl> - V8_INLINE ( bool IsOutsideAllocatedSpace ( const void * address ) ) const { <nl> + V8_INLINE bool IsOutsideAllocatedSpace ( const void * address ) const { <nl> return address < lowest_ever_allocated_ | | <nl> address > = highest_ever_allocated_ ; <nl> } <nl> mmm a / src / utils / random - number - generator . h <nl> ppp b / src / utils / random - number - generator . h <nl> class RandomNumberGenerator V8_FINAL { <nl> / / that one int value is pseudorandomly generated and returned . <nl> / / All 2 ^ 32 possible integer values are produced with ( approximately ) equal <nl> / / probability . <nl> - V8_INLINE ( int NextInt ( ) ) V8_WARN_UNUSED_RESULT { <nl> + V8_INLINE int NextInt ( ) V8_WARN_UNUSED_RESULT { <nl> return Next ( 32 ) ; <nl> } <nl> <nl> class RandomNumberGenerator V8_FINAL { <nl> / / | NextBoolean ( ) | is that one boolean value is pseudorandomly generated and <nl> / / returned . The values true and false are produced with ( approximately ) equal <nl> / / probability . <nl> - V8_INLINE ( bool NextBool ( ) ) V8_WARN_UNUSED_RESULT { <nl> + V8_INLINE bool NextBool ( ) V8_WARN_UNUSED_RESULT { <nl> return Next ( 1 ) ! = 0 ; <nl> } <nl> <nl> mmm a / test / cctest / test - api . cc <nl> ppp b / test / cctest / test - api . cc <nl> struct CopyablePersistentTraits { <nl> typedef Persistent < T , CopyablePersistentTraits < T > > CopyablePersistent ; <nl> static const bool kResetInDestructor = true ; <nl> template < class S , class M > <nl> - V8_INLINE ( static void Copy ( const Persistent < S , M > & source , <nl> - CopyablePersistent * dest ) ) { <nl> + static V8_INLINE void Copy ( const Persistent < S , M > & source , <nl> + CopyablePersistent * dest ) { <nl> / / do nothing , just allow copy <nl> } <nl> } ; <nl> | Reland " Deuglify V8_INLINE and V8_NOINLINE . " | v8/v8 | 8dbd8228558a98f03d78019c52a038e4a01eedc0 | 2013-09-12T08:57:10Z |
mmm a / lib / SILGen / SILGenDecl . cpp <nl> ppp b / lib / SILGen / SILGenDecl . cpp <nl> void SILGenFunction : : emitProlog ( ArrayRef < Pattern * > paramPatterns , <nl> emitPattern ( p ) ; <nl> } <nl> <nl> - namespace { <nl> - class CleanupDestructorSelf : public Cleanup { <nl> - VarDecl * selfDecl ; <nl> - public : <nl> - CleanupDestructorSelf ( VarDecl * selfDecl ) : selfDecl ( selfDecl ) { <nl> - } <nl> - <nl> - void emit ( SILGenFunction & gen , CleanupLocation l ) override { <nl> - / / ' self ' is passed in at + 0 ( and will be deallocated when we return ) , <nl> - / / so don ' t release the value , only deallocate the variable . <nl> - gen . deallocateUninitializedLocalVariable ( l , selfDecl ) ; <nl> - } <nl> - } ; <nl> - } / / end anonymous namespace <nl> - <nl> SILValue SILGenFunction : : emitDestructorProlog ( ClassDecl * CD , <nl> DestructorDecl * DD ) { <nl> / / Emit the implicit ' self ' argument . <nl> | remove CleanupDestructorSelf , which was only used by now - removed | apple/swift | c1b30b86f43748454fdf04e78904ce1b5404a186 | 2013-12-07T05:53:58Z |
mmm a / xbmc / pvr / PVRContextMenus . cpp <nl> ppp b / xbmc / pvr / PVRContextMenus . cpp <nl> <nl> # include " pvr / channels / PVRChannel . h " <nl> # include " pvr / epg / EpgInfoTag . h " <nl> # include " pvr / recordings / PVRRecording . h " <nl> + # include " pvr / recordings / PVRRecordings . h " <nl> # include " pvr / recordings / PVRRecordingsPath . h " <nl> # include " pvr / timers / PVRTimers . h " <nl> <nl> namespace PVR <nl> <nl> bool PlayRecording : : IsVisible ( const CFileItem & item ) const <nl> { <nl> - CPVRRecordingPtr recording ; <nl> - <nl> - const CPVREpgInfoTagPtr epg ( item . GetEPGInfoTag ( ) ) ; <nl> - if ( epg ) <nl> - recording = epg - > Recording ( ) ; <nl> - <nl> + const std : : shared_ptr < CPVRRecording > recording = CServiceBroker : : GetPVRManager ( ) . Recordings ( ) - > GetRecordingForEpgTag ( item . GetEPGInfoTag ( ) ) ; <nl> if ( recording ) <nl> return ! recording - > IsDeleted ( ) ; <nl> <nl> mmm a / xbmc / pvr / PVRGUIActions . cpp <nl> ppp b / xbmc / pvr / PVRGUIActions . cpp <nl> namespace PVR <nl> if ( item - > m_bIsFolder ) <nl> return false ; <nl> <nl> + std : : shared_ptr < CPVRRecording > recording ; <nl> const CPVRChannelPtr channel ( CPVRItem ( item ) . GetChannel ( ) ) ; <nl> - if ( ( channel & & CServiceBroker : : GetPVRManager ( ) . IsPlayingChannel ( channel ) ) | | <nl> - ( channel & & channel - > HasRecording ( ) & & CServiceBroker : : GetPVRManager ( ) . IsPlayingRecording ( channel - > GetRecording ( ) ) ) ) <nl> + if ( channel ) <nl> { <nl> - CGUIMessage msg ( GUI_MSG_FULLSCREEN , 0 , CServiceBroker : : GetGUI ( ) - > GetWindowManager ( ) . GetActiveWindow ( ) ) ; <nl> - CServiceBroker : : GetGUI ( ) - > GetWindowManager ( ) . SendMessage ( msg ) ; <nl> - return true ; <nl> + bool bSwitchToFullscreen = CServiceBroker : : GetPVRManager ( ) . IsPlayingChannel ( channel ) ; <nl> + <nl> + if ( ! bSwitchToFullscreen ) <nl> + { <nl> + recording = CServiceBroker : : GetPVRManager ( ) . Recordings ( ) - > GetRecordingForEpgTag ( channel - > GetEPGNow ( ) ) ; <nl> + bSwitchToFullscreen = recording & & CServiceBroker : : GetPVRManager ( ) . IsPlayingRecording ( recording ) ; <nl> + } <nl> + <nl> + if ( bSwitchToFullscreen ) <nl> + { <nl> + CGUIMessage msg ( GUI_MSG_FULLSCREEN , 0 , CServiceBroker : : GetGUI ( ) - > GetWindowManager ( ) . GetActiveWindow ( ) ) ; <nl> + CServiceBroker : : GetGUI ( ) - > GetWindowManager ( ) . SendMessage ( msg ) ; <nl> + return true ; <nl> + } <nl> } <nl> <nl> ParentalCheckResult result = channel ? CheckParentalLock ( channel ) : ParentalCheckResult : : FAILED ; <nl> if ( result = = ParentalCheckResult : : SUCCESS ) <nl> { <nl> / / switch to channel or if recording present , ask whether to switch or play recording . . . <nl> - const CPVRRecordingPtr recording ( channel - > GetRecording ( ) ) ; <nl> + if ( ! recording ) <nl> + recording = CServiceBroker : : GetPVRManager ( ) . Recordings ( ) - > GetRecordingForEpgTag ( channel - > GetEPGNow ( ) ) ; <nl> + <nl> if ( recording ) <nl> { <nl> bool bCancel ( false ) ; <nl> mmm a / xbmc / pvr / PVRGUIInfo . cpp <nl> ppp b / xbmc / pvr / PVRGUIInfo . cpp <nl> bool CPVRGUIInfo : : GetListItemAndPlayerBool ( const CFileItem * item , const CGUIInfo <nl> { <nl> const CPVREpgInfoTagPtr epgTag = CPVRItem ( item ) . GetEpgInfoTag ( ) ; <nl> if ( epgTag ) <nl> - bValue = epgTag - > HasRecording ( ) ; <nl> + bValue = ! ! CServiceBroker : : GetPVRManager ( ) . Recordings ( ) - > GetRecordingForEpgTag ( epgTag ) ; <nl> return true ; <nl> } <nl> break ; <nl> mmm a / xbmc / pvr / PVRItem . cpp <nl> ppp b / xbmc / pvr / PVRItem . cpp <nl> <nl> # include " pvr / channels / PVRChannel . h " <nl> # include " pvr / epg / EpgInfoTag . h " <nl> # include " pvr / recordings / PVRRecording . h " <nl> + # include " pvr / recordings / PVRRecordings . h " <nl> # include " pvr / timers / PVRTimerInfoTag . h " <nl> # include " pvr / timers / PVRTimers . h " <nl> <nl> namespace PVR <nl> } <nl> else if ( m_item - > IsEPG ( ) ) <nl> { <nl> - return m_item - > GetEPGInfoTag ( ) - > Recording ( ) ; <nl> + return CServiceBroker : : GetPVRManager ( ) . Recordings ( ) - > GetRecordingForEpgTag ( m_item - > GetEPGInfoTag ( ) ) ; <nl> } <nl> else <nl> { <nl> mmm a / xbmc / pvr / channels / PVRChannel . cpp <nl> ppp b / xbmc / pvr / channels / PVRChannel . cpp <nl> bool CPVRChannel : : IsRecording ( void ) const <nl> return CServiceBroker : : GetPVRManager ( ) . Timers ( ) - > IsRecordingOnChannel ( * this ) ; <nl> } <nl> <nl> - CPVRRecordingPtr CPVRChannel : : GetRecording ( void ) const <nl> - { <nl> - const CPVREpgInfoTagPtr epgTag = GetEPGNow ( ) ; <nl> - return ( epgTag & & epgTag - > HasRecording ( ) ) ? epgTag - > Recording ( ) : CPVRRecordingPtr ( ) ; <nl> - } <nl> - <nl> - bool CPVRChannel : : HasRecording ( void ) const <nl> - { <nl> - const CPVREpgInfoTagPtr epgTag = GetEPGNow ( ) ; <nl> - return epgTag & & epgTag - > HasRecording ( ) ; <nl> - } <nl> - <nl> bool CPVRChannel : : SetIconPath ( const std : : string & strIconPath , bool bIsUserSetIcon / * = false * / ) <nl> { <nl> CSingleLock lock ( m_critSection ) ; <nl> mmm a / xbmc / pvr / channels / PVRChannel . h <nl> ppp b / xbmc / pvr / channels / PVRChannel . h <nl> namespace PVR <nl> * / <nl> bool IsRecording ( void ) const ; <nl> <nl> - / * ! <nl> - * @ return If recording , gets the recording if the add - on provides the epg id in recordings <nl> - * / <nl> - CPVRRecordingPtr GetRecording ( void ) const ; <nl> - <nl> / * ! <nl> * @ brief Obtain the Radio RDS data for this channel , if available . <nl> * @ return The Radio RDS data or nullptr . <nl> namespace PVR <nl> * / <nl> void SetRadioRDSInfoTag ( const std : : shared_ptr < CPVRRadioRDSInfoTag > & tag ) ; <nl> <nl> - / * ! <nl> - * @ return True if this channel has a corresponding recording , false otherwise <nl> - * / <nl> - bool HasRecording ( void ) const ; <nl> - <nl> / * ! <nl> * @ return The path to the icon for this channel . <nl> * / <nl> mmm a / xbmc / pvr / dialogs / GUIDialogPVRGuideInfo . cpp <nl> ppp b / xbmc / pvr / dialogs / GUIDialogPVRGuideInfo . cpp <nl> <nl> # include " pvr / PVRManager . h " <nl> # include " pvr / channels / PVRChannelGroupsContainer . h " <nl> # include " pvr / epg / EpgInfoTag . h " <nl> + # include " pvr / recordings / PVRRecordings . h " <nl> # include " pvr / timers / PVRTimerInfoTag . h " <nl> # include " pvr / windows / GUIWindowPVRSearch . h " <nl> <nl> void CGUIDialogPVRGuideInfo : : OnInitWindow ( ) <nl> return ; <nl> } <nl> <nl> - if ( ! m_progItem - > HasRecording ( ) ) <nl> + if ( ! CServiceBroker : : GetPVRManager ( ) . Recordings ( ) - > GetRecordingForEpgTag ( m_progItem ) ) <nl> { <nl> / * not recording . hide the play recording button * / <nl> SET_CONTROL_HIDDEN ( CONTROL_BTN_PLAY_RECORDING ) ; <nl> mmm a / xbmc / pvr / epg / Epg . cpp <nl> ppp b / xbmc / pvr / epg / Epg . cpp <nl> <nl> # include " utils / log . h " <nl> <nl> # include " pvr / PVRManager . h " <nl> - # include " pvr / recordings / PVRRecordings . h " <nl> # include " pvr / timers / PVRTimers . h " <nl> <nl> using namespace PVR ; <nl> void CPVREpg : : Cleanup ( const CDateTime & time ) <nl> m_nowActiveStart . SetValid ( false ) ; <nl> <nl> it - > second - > ClearTimer ( ) ; <nl> - it - > second - > ClearRecording ( ) ; <nl> it = m_tags . erase ( it ) ; <nl> } <nl> else <nl> void CPVREpg : : AddEntry ( const CPVREpgInfoTag & tag ) <nl> newTag - > SetChannel ( channel ) ; <nl> newTag - > SetEpg ( this ) ; <nl> newTag - > SetTimer ( CServiceBroker : : GetPVRManager ( ) . Timers ( ) - > GetTimerForEpgTag ( newTag ) ) ; <nl> - newTag - > SetRecording ( CServiceBroker : : GetPVRManager ( ) . Recordings ( ) - > GetRecordingForEpgTag ( newTag ) ) ; <nl> } <nl> } <nl> <nl> bool CPVREpg : : UpdateEntry ( const CPVREpgInfoTagPtr & tag , bool bUpdateDatabase ) <nl> } <nl> <nl> infoTag - > SetTimer ( CServiceBroker : : GetPVRManager ( ) . Timers ( ) - > GetTimerForEpgTag ( infoTag ) ) ; <nl> - infoTag - > SetRecording ( CServiceBroker : : GetPVRManager ( ) . Recordings ( ) - > GetRecordingForEpgTag ( infoTag ) ) ; <nl> <nl> return true ; <nl> } <nl> bool CPVREpg : : UpdateEntry ( const CPVREpgInfoTagPtr & tag , EPG_EVENT_STATE newState <nl> m_deletedTags . insert ( std : : make_pair ( it - > second - > UniqueBroadcastID ( ) , it - > second ) ) ; <nl> <nl> it - > second - > ClearTimer ( ) ; <nl> - it - > second - > ClearRecording ( ) ; <nl> m_tags . erase ( it ) ; <nl> } <nl> else <nl> bool CPVREpg : : FixOverlappingEvents ( bool bUpdateDb / * = false * / ) <nl> m_nowActiveStart . SetValid ( false ) ; <nl> <nl> it - > second - > ClearTimer ( ) ; <nl> - it - > second - > ClearRecording ( ) ; <nl> m_tags . erase ( it + + ) ; <nl> } <nl> else if ( previousTag - > EndAsUTC ( ) > currentTag - > StartAsUTC ( ) ) <nl> mmm a / xbmc / pvr / epg / EpgContainer . cpp <nl> ppp b / xbmc / pvr / epg / EpgContainer . cpp <nl> <nl> # include " pvr / channels / PVRChannelGroupsContainer . h " <nl> # include " pvr / epg / Epg . h " <nl> # include " pvr / epg / EpgSearchFilter . h " <nl> - # include " pvr / recordings / PVRRecordings . h " <nl> # include " pvr / timers / PVRTimerInfoTag . h " <nl> <nl> namespace PVR <nl> mmm a / xbmc / pvr / epg / EpgInfoTag . cpp <nl> ppp b / xbmc / pvr / epg / EpgInfoTag . cpp <nl> bool CPVREpgInfoTag : : operator ! = ( const CPVREpgInfoTag & right ) const <nl> <nl> void CPVREpgInfoTag : : Serialize ( CVariant & value ) const <nl> { <nl> - const CPVRRecordingPtr recording = Recording ( ) ; <nl> - <nl> value [ " broadcastid " ] = m_iUniqueBroadcastID ; <nl> value [ " channeluid " ] = m_iUniqueChannelID ; <nl> value [ " parentalrating " ] = m_iParentalRating ; <nl> void CPVREpgInfoTag : : Serialize ( CVariant & value ) const <nl> value [ " episodepart " ] = m_iEpisodePart ; <nl> value [ " hastimer " ] = HasTimer ( ) ; <nl> value [ " hastimerrule " ] = HasTimerRule ( ) ; <nl> - value [ " hasrecording " ] = HasRecording ( ) ; <nl> - value [ " recording " ] = recording ? recording - > m_strFileNameAndPath : " " ; <nl> + value [ " hasrecording " ] = false ; / / compat <nl> + value [ " recording " ] = " " ; / / compat <nl> value [ " isactive " ] = IsActive ( ) ; <nl> value [ " wasactive " ] = WasActive ( ) ; <nl> value [ " isseries " ] = IsSeries ( ) ; <nl> void CPVREpgInfoTag : : ClearTimer ( void ) <nl> previousTag - > ClearEpgTag ( ) ; <nl> } <nl> <nl> - void CPVREpgInfoTag : : SetRecording ( const CPVRRecordingPtr & recording ) <nl> - { <nl> - CSingleLock lock ( m_critSection ) ; <nl> - m_recording = recording ; <nl> - } <nl> - <nl> - void CPVREpgInfoTag : : ClearRecording ( void ) <nl> - { <nl> - CSingleLock lock ( m_critSection ) ; <nl> - m_recording . reset ( ) ; <nl> - } <nl> - <nl> - bool CPVREpgInfoTag : : HasRecording ( void ) const <nl> - { <nl> - CSingleLock lock ( m_critSection ) ; <nl> - return m_recording ! = nullptr ; <nl> - } <nl> - <nl> - CPVRRecordingPtr CPVREpgInfoTag : : Recording ( void ) const <nl> - { <nl> - CSingleLock lock ( m_critSection ) ; <nl> - return m_recording ; <nl> - } <nl> - <nl> bool CPVREpgInfoTag : : IsRecordable ( void ) const <nl> { <nl> bool bIsRecordable = false ; <nl> mmm a / xbmc / pvr / epg / EpgInfoTag . h <nl> ppp b / xbmc / pvr / epg / EpgInfoTag . h <nl> <nl> <nl> # include " pvr / PVRTypes . h " <nl> # include " pvr / channels / PVRChannel . h " <nl> - # include " pvr / recordings / PVRRecording . h " <nl> # include " pvr / timers / PVRTimerInfoTag . h " <nl> <nl> class CVariant ; <nl> namespace PVR <nl> * / <nl> CPVRTimerInfoTagPtr Timer ( void ) const ; <nl> <nl> - / * ! <nl> - * @ brief Set a recording for this event . <nl> - * @ param recording The recording . <nl> - * / <nl> - void SetRecording ( const CPVRRecordingPtr & recording ) ; <nl> - <nl> - / * ! <nl> - * @ brief Clear a recording for this event . <nl> - * / <nl> - void ClearRecording ( void ) ; <nl> - <nl> - / * ! <nl> - * @ brief Check whether this event has a recording . <nl> - * @ return True if it has a recording , false if not . <nl> - * / <nl> - bool HasRecording ( void ) const ; <nl> - <nl> - / * ! <nl> - * @ brief Get the recording for this event , if any . <nl> - * @ return The pointer or nullptr if there is none . <nl> - * / <nl> - CPVRRecordingPtr Recording ( void ) const ; <nl> - <nl> / * ! <nl> * @ brief Check if this event can be recorded . <nl> * @ return True if it can be recorded , false otherwise . <nl> namespace PVR <nl> CPVREpg * m_epg = nullptr ; <nl> CPVRChannelPtr m_channel ; <nl> CPVRTimerInfoTagPtr m_timer ; <nl> - CPVRRecordingPtr m_recording ; <nl> } ; <nl> } <nl> mmm a / xbmc / pvr / recordings / PVRRecording . cpp <nl> ppp b / xbmc / pvr / recordings / PVRRecording . cpp <nl> void CPVRRecording : : Reset ( void ) <nl> bool CPVRRecording : : Delete ( void ) <nl> { <nl> CPVRClientPtr client = CServiceBroker : : GetPVRManager ( ) . GetClient ( m_iClientId ) ; <nl> - if ( ! client | | client - > DeleteRecording ( * this ) ! = PVR_ERROR_NO_ERROR ) <nl> - return false ; <nl> - <nl> - OnDelete ( ) ; <nl> - return true ; <nl> - } <nl> - <nl> - void CPVRRecording : : OnDelete ( void ) <nl> - { <nl> - if ( m_iEpgEventId ! = EPG_TAG_INVALID_UID ) <nl> - { <nl> - const CPVRChannelPtr channel ( Channel ( ) ) ; <nl> - if ( channel ) <nl> - { <nl> - const CPVREpgInfoTagPtr epgTag ( CServiceBroker : : GetPVRManager ( ) . EpgContainer ( ) . GetTagById ( channel , m_iEpgEventId ) ) ; <nl> - if ( epgTag ) <nl> - epgTag - > ClearRecording ( ) ; <nl> - } <nl> - } <nl> + return client & & ( client - > DeleteRecording ( * this ) = = PVR_ERROR_NO_ERROR ) ; <nl> } <nl> <nl> bool CPVRRecording : : Undelete ( void ) <nl> void CPVRRecording : : Update ( const CPVRRecording & tag ) <nl> m_strShowTitle = strEpisode ; <nl> } <nl> <nl> - if ( m_bIsDeleted ) <nl> - OnDelete ( ) ; <nl> - <nl> UpdatePath ( ) ; <nl> } <nl> <nl> mmm a / xbmc / pvr / recordings / PVRRecording . h <nl> ppp b / xbmc / pvr / recordings / PVRRecording . h <nl> namespace PVR <nl> * / <nl> bool Delete ( void ) ; <nl> <nl> - / * ! <nl> - * @ brief Called when this recording has been deleted <nl> - * / <nl> - void OnDelete ( void ) ; <nl> - <nl> / * ! <nl> * @ brief Undelete this recording on the client ( if supported ) . <nl> * @ return True if it was undeleted successfully , false otherwise . <nl> mmm a / xbmc / pvr / recordings / PVRRecordings . cpp <nl> ppp b / xbmc / pvr / recordings / PVRRecordings . cpp <nl> void CPVRRecordings : : UpdateFromClient ( const CPVRRecordingPtr & tag ) <nl> { <nl> newTag = CPVRRecordingPtr ( new CPVRRecording ) ; <nl> newTag - > Update ( * tag ) ; <nl> - if ( newTag - > BroadcastUid ( ) ! = EPG_TAG_INVALID_UID ) <nl> - { <nl> - const CPVRChannelPtr channel ( newTag - > Channel ( ) ) ; <nl> - if ( channel ) <nl> - { <nl> - const CPVREpgInfoTagPtr epgTag = CServiceBroker : : GetPVRManager ( ) . EpgContainer ( ) . GetTagById ( channel , newTag - > BroadcastUid ( ) ) ; <nl> - if ( epgTag ) <nl> - epgTag - > SetRecording ( newTag ) ; <nl> - } <nl> - } <nl> newTag - > m_iRecordingId = + + m_iLastId ; <nl> m_recordings . insert ( std : : make_pair ( CPVRRecordingUid ( newTag - > m_iClientId , newTag - > m_strRecordingId ) , newTag ) ) ; <nl> if ( newTag - > IsRadio ( ) ) <nl> void CPVRRecordings : : UpdateFromClient ( const CPVRRecordingPtr & tag ) <nl> <nl> CPVRRecordingPtr CPVRRecordings : : GetRecordingForEpgTag ( const CPVREpgInfoTagPtr & epgTag ) const <nl> { <nl> + if ( ! epgTag ) <nl> + return std : : shared_ptr < CPVRRecording > ( ) ; <nl> + <nl> CSingleLock lock ( m_critSection ) ; <nl> <nl> for ( const auto recording : m_recordings ) <nl> CPVRRecordingPtr CPVRRecordings : : GetRecordingForEpgTag ( const CPVREpgInfoTagPtr & <nl> if ( recording . second - > IsDeleted ( ) ) <nl> continue ; <nl> <nl> + if ( recording . second - > ClientID ( ) ! = epgTag - > ClientID ( ) ) <nl> + continue ; <nl> + <nl> + if ( recording . second - > ChannelUid ( ) ! = epgTag - > UniqueChannelID ( ) ) <nl> + continue ; <nl> + <nl> unsigned int iEpgEvent = recording . second - > BroadcastUid ( ) ; <nl> if ( iEpgEvent ! = EPG_TAG_INVALID_UID ) <nl> { <nl> if ( iEpgEvent = = epgTag - > UniqueBroadcastID ( ) ) <nl> - { <nl> - / / uid matches . perfect . <nl> return recording . second ; <nl> - } <nl> } <nl> else <nl> { <nl> - / / uid is optional , so check other relevant data . <nl> - <nl> - / / note : don ' t use recording . second - > Channel ( ) for comparing channels here as this can lead <nl> - / / to deadlocks . compare client ids and channel ids instead , this has the same effect . <nl> - if ( epgTag - > Channel ( ) & & <nl> - recording . second - > ClientID ( ) = = epgTag - > Channel ( ) - > ClientID ( ) & & <nl> - recording . second - > ChannelUid ( ) = = epgTag - > Channel ( ) - > UniqueID ( ) & & <nl> - recording . second - > RecordingTimeAsUTC ( ) < = epgTag - > StartAsUTC ( ) & & <nl> + if ( recording . second - > RecordingTimeAsUTC ( ) < = epgTag - > StartAsUTC ( ) & & <nl> recording . second - > EndTimeAsUTC ( ) > = epgTag - > EndAsUTC ( ) ) <nl> return recording . second ; <nl> } <nl> mmm a / xbmc / pvr / windows / GUIWindowPVRGuide . cpp <nl> ppp b / xbmc / pvr / windows / GUIWindowPVRGuide . cpp <nl> <nl> # include " pvr / PVRManager . h " <nl> # include " pvr / channels / PVRChannelGroupsContainer . h " <nl> # include " pvr / epg / EpgContainer . h " <nl> + # include " pvr / recordings / PVRRecordings . h " <nl> # include " pvr / windows / GUIEPGGridContainer . h " <nl> <nl> using namespace KODI : : MESSAGING ; <nl> bool CGUIWindowPVRGuideBase : : OnMessage ( CGUIMessage & message ) <nl> else <nl> { <nl> / / past event <nl> - if ( tag - > HasRecording ( ) ) <nl> + if ( CServiceBroker : : GetPVRManager ( ) . Recordings ( ) - > GetRecordingForEpgTag ( tag ) ) <nl> CServiceBroker : : GetPVRManager ( ) . GUIActions ( ) - > PlayRecording ( pItem , true ) ; <nl> else if ( tag - > IsPlayable ( ) ) <nl> CServiceBroker : : GetPVRManager ( ) . GUIActions ( ) - > PlayEpgTag ( pItem ) ; <nl> | [ PVR ] Fix PVR inter component dependencies : epg must not depend on recordings . | xbmc/xbmc | a65d9a94767b0b695de28243a8fc1dde5c2d69d3 | 2019-03-14T08:42:22Z |
mmm a / modules / core / include / opencv2 / core / persistence . hpp <nl> ppp b / modules / core / include / opencv2 / core / persistence . hpp <nl> class CV_EXPORTS_W_SIMPLE FileNode <nl> @ param fs Pointer to the file storage structure . <nl> @ param blockIdx Index of the memory block where the file node is stored <nl> @ param ofs Offset in bytes from the beginning of the serialized storage <nl> + <nl> + @ deprecated <nl> * / <nl> FileNode ( const FileStorage * fs , size_t blockIdx , size_t ofs ) ; <nl> <nl> class CV_EXPORTS_W_SIMPLE FileNode <nl> CV_WRAP Mat mat ( ) const ; <nl> <nl> / / protected : <nl> - const FileStorage * fs ; <nl> + FileNode ( FileStorage : : Impl * fs , size_t blockIdx , size_t ofs ) ; <nl> + <nl> + FileStorage : : Impl * fs ; <nl> size_t blockIdx ; <nl> size_t ofs ; <nl> } ; <nl> class CV_EXPORTS FileNodeIterator <nl> bool equalTo ( const FileNodeIterator & it ) const ; <nl> <nl> protected : <nl> - const FileStorage * fs ; <nl> + FileStorage : : Impl * fs ; <nl> size_t blockIdx ; <nl> size_t ofs ; <nl> size_t blockSize ; <nl> mmm a / modules / core / src / persistence . cpp <nl> ppp b / modules / core / src / persistence . cpp <nl> class FileStorage : : Impl : public FileStorage_API <nl> return new_ptr ; <nl> } <nl> <nl> - unsigned getStringOfs ( const std : : string & key ) <nl> + unsigned getStringOfs ( const std : : string & key ) const <nl> { <nl> - str_hash_t : : iterator it = str_hash . find ( key ) ; <nl> + str_hash_t : : const_iterator it = str_hash . find ( key ) ; <nl> return it ! = str_hash . end ( ) ? it - > second : 0 ; <nl> } <nl> <nl> class FileStorage : : Impl : public FileStorage_API <nl> writeInt ( ptr , ( int ) rawSize ) ; <nl> } <nl> <nl> - void normalizeNodeOfs ( size_t & blockIdx , size_t & ofs ) <nl> + void normalizeNodeOfs ( size_t & blockIdx , size_t & ofs ) const <nl> { <nl> while ( ofs > = fs_data_blksz [ blockIdx ] ) <nl> { <nl> FileStorage & operator < < ( FileStorage & fs , const String & str ) <nl> <nl> <nl> FileNode : : FileNode ( ) <nl> + : fs ( NULL ) <nl> { <nl> - fs = 0 ; <nl> blockIdx = ofs = 0 ; <nl> } <nl> <nl> - FileNode : : FileNode ( const FileStorage * _fs , size_t _blockIdx , size_t _ofs ) <nl> + FileNode : : FileNode ( FileStorage : : Impl * _fs , size_t _blockIdx , size_t _ofs ) <nl> + : fs ( _fs ) <nl> { <nl> - fs = _fs ; <nl> blockIdx = _blockIdx ; <nl> ofs = _ofs ; <nl> } <nl> <nl> + FileNode : : FileNode ( const FileStorage * _fs , size_t _blockIdx , size_t _ofs ) <nl> + : FileNode ( _fs - > p . get ( ) , _blockIdx , _ofs ) <nl> + { <nl> + / / nothing <nl> + } <nl> + <nl> FileNode : : FileNode ( const FileNode & node ) <nl> { <nl> fs = node . fs ; <nl> FileNode FileNode : : operator [ ] ( const std : : string & nodename ) const <nl> <nl> CV_Assert ( isMap ( ) ) ; <nl> <nl> - unsigned key = fs - > p - > getStringOfs ( nodename ) ; <nl> + unsigned key = fs - > getStringOfs ( nodename ) ; <nl> size_t i , sz = size ( ) ; <nl> FileNodeIterator it = begin ( ) ; <nl> <nl> FileNode FileNode : : operator [ ] ( const std : : string & nodename ) const <nl> FileNode n = * it ; <nl> const uchar * p = n . ptr ( ) ; <nl> unsigned key2 = ( unsigned ) readInt ( p + 1 ) ; <nl> - CV_Assert ( key2 < fs - > p - > str_hash_data . size ( ) ) ; <nl> + CV_Assert ( key2 < fs - > str_hash_data . size ( ) ) ; <nl> if ( key = = key2 ) <nl> return n ; <nl> } <nl> std : : string FileNode : : name ( ) const <nl> if ( ! p ) <nl> return std : : string ( ) ; <nl> size_t nameofs = p [ 1 ] | ( p [ 2 ] < < 8 ) | ( p [ 3 ] < < 16 ) | ( p [ 4 ] < < 24 ) ; <nl> - return fs - > p - > getName ( nameofs ) ; <nl> + return fs - > getName ( nameofs ) ; <nl> } <nl> <nl> FileNode : : operator int ( ) const <nl> size_t FileNode : : rawSize ( ) const <nl> <nl> uchar * FileNode : : ptr ( ) <nl> { <nl> - return ! fs ? 0 : ( uchar * ) fs - > p - > getNodePtr ( blockIdx , ofs ) ; <nl> + return ! fs ? 0 : ( uchar * ) fs - > getNodePtr ( blockIdx , ofs ) ; <nl> } <nl> <nl> const uchar * FileNode : : ptr ( ) const <nl> { <nl> - return ! fs ? 0 : fs - > p - > getNodePtr ( blockIdx , ofs ) ; <nl> + return ! fs ? 0 : fs - > getNodePtr ( blockIdx , ofs ) ; <nl> } <nl> <nl> void FileNode : : setValue ( int type , const void * value , int len ) <nl> void FileNode : : setValue ( int type , const void * value , int len ) <nl> else <nl> CV_Error ( Error : : StsNotImplemented , " Only scalar types can be dynamically assigned to a file node " ) ; <nl> <nl> - p = fs - > p - > reserveNodeSpace ( * this , sz ) ; <nl> + p = fs - > reserveNodeSpace ( * this , sz ) ; <nl> * p + + = ( uchar ) ( type | ( tag & NAMED ) ) ; <nl> if ( tag & NAMED ) <nl> p + = 4 ; <nl> FileNodeIterator : : FileNodeIterator ( const FileNode & node , bool seekEnd ) <nl> idx = nodeNElems ; <nl> } <nl> } <nl> - fs - > p - > normalizeNodeOfs ( blockIdx , ofs ) ; <nl> - blockSize = fs - > p - > fs_data_blksz [ blockIdx ] ; <nl> + fs - > normalizeNodeOfs ( blockIdx , ofs ) ; <nl> + blockSize = fs - > fs_data_blksz [ blockIdx ] ; <nl> } <nl> } <nl> <nl> FileNodeIterator & FileNodeIterator : : operator = ( const FileNodeIterator & it ) <nl> <nl> FileNode FileNodeIterator : : operator * ( ) const <nl> { <nl> - return FileNode ( idx < nodeNElems ? fs : 0 , blockIdx , ofs ) ; <nl> + return FileNode ( idx < nodeNElems ? fs : NULL , blockIdx , ofs ) ; <nl> } <nl> <nl> FileNodeIterator & FileNodeIterator : : operator + + ( ) <nl> FileNodeIterator & FileNodeIterator : : operator + + ( ) <nl> ofs + = n . rawSize ( ) ; <nl> if ( ofs > = blockSize ) <nl> { <nl> - fs - > p - > normalizeNodeOfs ( blockIdx , ofs ) ; <nl> - blockSize = fs - > p - > fs_data_blksz [ blockIdx ] ; <nl> + fs - > normalizeNodeOfs ( blockIdx , ofs ) ; <nl> + blockSize = fs - > fs_data_blksz [ blockIdx ] ; <nl> } <nl> return * this ; <nl> } <nl> mmm a / modules / core / test / test_io . cpp <nl> ppp b / modules / core / test / test_io . cpp <nl> TEST ( Core_InputOutput , FileStorage_copy_constructor_17412 ) <nl> EXPECT_EQ ( 0 , remove ( fname . c_str ( ) ) ) ; <nl> } <nl> <nl> + TEST ( Core_InputOutput , FileStorage_copy_constructor_17412_heap ) <nl> + { <nl> + std : : string fname = tempfile ( " test . yml " ) ; <nl> + FileStorage fs_orig ( fname , cv : : FileStorage : : WRITE ) ; <nl> + fs_orig < < " string " < < " wat " ; <nl> + fs_orig . release ( ) ; <nl> + <nl> + / / no crash anymore <nl> + cv : : FileStorage fs ; <nl> + <nl> + / / use heap to allow valgrind detections <nl> + { <nl> + cv : : FileStorage * fs2 = new cv : : FileStorage ( fname , cv : : FileStorage : : READ ) ; <nl> + fs = * fs2 ; <nl> + delete fs2 ; <nl> + } <nl> + <nl> + std : : string s ; <nl> + fs [ " string " ] > > s ; <nl> + EXPECT_EQ ( s , " wat " ) ; <nl> + EXPECT_EQ ( 0 , remove ( fname . c_str ( ) ) ) ; <nl> + } <nl> + <nl> } } / / namespace <nl> | core ( persistence ) : fix " use after free " bug | opencv/opencv | ffe0d504471435f83eca9bd5ddfa6769ccc26d67 | 2020-07-17T21:39:06Z |
mmm a / xbmc / cores / dvdplayer / DVDCodecs / Video / DVDVideoCodecLibMpeg2 . cpp <nl> ppp b / xbmc / cores / dvdplayer / DVDCodecs / Video / DVDVideoCodecLibMpeg2 . cpp <nl> enum MPEGProfile <nl> MPEG_422_ML = 0x52 <nl> } ; <nl> <nl> + union TagUnion <nl> + { <nl> + double pts ; <nl> + struct <nl> + { <nl> + uint32_t u ; <nl> + uint32_t l ; <nl> + } tag ; <nl> + } ; <nl> + <nl> / / Decoder specific flags used internal to decoder <nl> # define DVP_FLAG_LIBMPEG2_MASK 0x0000f00 <nl> # define DVP_FLAG_LIBMPEG2_ALLOCATED 0x0000100 / / Set to indicate that this has allocated data <nl> CDVDVideoCodecLibMpeg2 : : CDVDVideoCodecLibMpeg2 ( ) <nl> m_irffpattern = 0 ; <nl> m_bFilm = false ; <nl> m_bIs422 = false ; <nl> - m_pts = DVD_NOPTS_VALUE ; <nl> } <nl> <nl> CDVDVideoCodecLibMpeg2 : : ~ CDVDVideoCodecLibMpeg2 ( ) <nl> void CDVDVideoCodecLibMpeg2 : : Dispose ( ) <nl> DeleteBuffer ( NULL ) ; <nl> m_pCurrentBuffer = NULL ; <nl> m_irffpattern = 0 ; <nl> - m_pts = DVD_NOPTS_VALUE ; <nl> <nl> m_dll . Unload ( ) ; <nl> } <nl> int CDVDVideoCodecLibMpeg2 : : Decode ( BYTE * pData , int iSize , double pts ) <nl> <nl> if ( pData & & iSize ) <nl> { <nl> - m_pts = pts ; <nl> / / buffer more data <nl> iState = m_dll . mpeg2_parse ( m_pHandle ) ; <nl> if ( iState ! = STATE_BUFFER ) <nl> int CDVDVideoCodecLibMpeg2 : : Decode ( BYTE * pData , int iSize , double pts ) <nl> <nl> / / libmpeg2 needs more data . Give it and parse the data again <nl> m_dll . mpeg2_buffer ( m_pHandle , pData , pData + iSize ) ; <nl> + TagUnion u ; <nl> + u . pts = pts ; <nl> + m_dll . mpeg2_tag_picture ( m_pHandle , u . tag . l , u . tag . u ) ; <nl> } <nl> <nl> iState = m_dll . mpeg2_parse ( m_pHandle ) ; <nl> int CDVDVideoCodecLibMpeg2 : : Decode ( BYTE * pData , int iSize , double pts ) <nl> if ( ( m_pInfo - > current_picture - > flags & PIC_MASK_CODING_TYPE ) = = PIC_FLAG_CODING_TYPE_B ) <nl> m_dll . mpeg2_skip ( m_pHandle , 1 ) ; <nl> } <nl> - / / attach pts to current buffer <nl> - if ( m_pInfo - > current_fbuf & & m_pInfo - > current_fbuf - > id ) <nl> - { <nl> - pBuffer = ( DVDVideoPicture * ) m_pInfo - > current_fbuf - > id ; <nl> - pBuffer - > pts = m_pts ; <nl> - m_pts = DVD_NOPTS_VALUE ; <nl> - } <nl> / / Not too interesting really <nl> / / we can do everything when we get a full picture instead . simplifies things . <nl> <nl> int CDVDVideoCodecLibMpeg2 : : Decode ( BYTE * pData , int iSize , double pts ) <nl> pBuffer - > color_matrix = m_pInfo - > sequence - > matrix_coefficients ; <nl> pBuffer - > color_range = 0 ; / / mpeg2 always have th 16 - > 235 / 229 color range <nl> <nl> + TagUnion u ; <nl> + u . tag . l = m_pInfo - > display_picture - > tag ; <nl> + u . tag . u = m_pInfo - > display_picture - > tag2 ; <nl> + if ( u . tag . l | | u . tag . u ) <nl> + pBuffer - > pts = u . pts ; <nl> + else <nl> + pBuffer - > pts = DVD_NOPTS_VALUE ; <nl> + <nl> / / only return this if it ' s not first image or an I frame <nl> if ( m_pCurrentBuffer | | pBuffer - > iFrameType = = FRAME_TYPE_I | | pBuffer - > iFrameType = = FRAME_TYPE_UNDEF ) <nl> { <nl> void CDVDVideoCodecLibMpeg2 : : Reset ( ) <nl> <nl> ReleaseBuffer ( NULL ) ; <nl> m_pCurrentBuffer = NULL ; <nl> - m_pts = DVD_NOPTS_VALUE ; <nl> } <nl> <nl> bool CDVDVideoCodecLibMpeg2 : : GetPicture ( DVDVideoPicture * pDvdVideoPicture ) <nl> mmm a / xbmc / cores / dvdplayer / DVDCodecs / Video / DVDVideoCodecLibMpeg2 . h <nl> ppp b / xbmc / cores / dvdplayer / DVDCodecs / Video / DVDVideoCodecLibMpeg2 . h <nl> class CDVDVideoCodecLibMpeg2 : public CDVDVideoCodec <nl> unsigned int m_irffpattern ; <nl> bool m_bFilm ; / / Signals that we have film material <nl> bool m_bIs422 ; <nl> - double m_pts ; <nl> <nl> int m_hurry ; <nl> / / The buffer of pictures we need <nl> mmm a / xbmc / cores / dvdplayer / DVDCodecs / Video / DllLibMpeg2 . h <nl> ppp b / xbmc / cores / dvdplayer / DVDCodecs / Video / DllLibMpeg2 . h <nl> class DllLibMpeg2Interface <nl> virtual const mpeg2_info_t * mpeg2_info ( mpeg2dec_t * mpeg2dec ) = 0 ; <nl> virtual void mpeg2_close ( mpeg2dec_t * mpeg2dec ) = 0 ; <nl> virtual void mpeg2_buffer ( mpeg2dec_t * mpeg2dec , uint8_t * start , uint8_t * end ) = 0 ; <nl> + virtual void mpeg2_tag_picture ( mpeg2dec_t * mpeg2dec , uint32_t tag , uint32_t tag2 ) = 0 ; <nl> virtual mpeg2_state_t mpeg2_parse ( mpeg2dec_t * mpeg2dec ) = 0 ; <nl> virtual void mpeg2_reset ( mpeg2dec_t * mpeg2dec , int full_reset ) = 0 ; <nl> virtual void mpeg2_set_buf ( mpeg2dec_t * mpeg2dec , uint8_t * buf [ 3 ] , void * id ) = 0 ; <nl> class DllLibMpeg2 : public DllDynamic , DllLibMpeg2Interface <nl> { return : : mpeg2_close ( mpeg2dec ) ; } <nl> virtual void mpeg2_buffer ( mpeg2dec_t * mpeg2dec , uint8_t * start , uint8_t * end ) <nl> { return : : mpeg2_buffer ( mpeg2dec , start , end ) ; } <nl> + virtual void mpeg2_tag_picture ( mpeg2dec_t * mpeg2dec , uint32_t tag , uint32_t tag2 ) <nl> + { return : : mpeg2_tag_picture ( mpeg2dec , tag , tag2 ) ; } <nl> virtual mpeg2_state_t mpeg2_parse ( mpeg2dec_t * mpeg2dec ) <nl> { return : : mpeg2_parse ( mpeg2dec ) ; } <nl> virtual void mpeg2_reset ( mpeg2dec_t * mpeg2dec , int full_reset ) <nl> class DllLibMpeg2 : public DllDynamic , DllLibMpeg2Interface <nl> DEFINE_METHOD1 ( const mpeg2_info_t * , mpeg2_info , ( mpeg2dec_t * p1 ) ) <nl> DEFINE_METHOD1 ( void , mpeg2_close , ( mpeg2dec_t * p1 ) ) <nl> DEFINE_METHOD3 ( void , mpeg2_buffer , ( mpeg2dec_t * p1 , uint8_t * p2 , uint8_t * p3 ) ) <nl> + DEFINE_METHOD3 ( void , mpeg2_tag_picture , ( mpeg2dec_t * p1 , uint32_t p2 , uint32_t p3 ) ) <nl> DEFINE_METHOD1 ( mpeg2_state_t , mpeg2_parse , ( mpeg2dec_t * p1 ) ) <nl> DEFINE_METHOD2 ( void , mpeg2_reset , ( mpeg2dec_t * p1 , int p2 ) ) <nl> DEFINE_METHOD3 ( void , mpeg2_set_buf , ( mpeg2dec_t * p1 , uint8_t * p2 [ 3 ] , void * p3 ) ) <nl> class DllLibMpeg2 : public DllDynamic , DllLibMpeg2Interface <nl> RESOLVE_METHOD ( mpeg2_info ) <nl> RESOLVE_METHOD ( mpeg2_close ) <nl> RESOLVE_METHOD ( mpeg2_buffer ) <nl> + RESOLVE_METHOD ( mpeg2_tag_picture ) <nl> RESOLVE_METHOD ( mpeg2_parse ) <nl> RESOLVE_METHOD ( mpeg2_reset ) <nl> RESOLVE_METHOD ( mpeg2_set_buf ) <nl> | changed : make use of the builtin method in libmpeg2 to track pts during decoding | xbmc/xbmc | 20094a7c5e65ba0187c5cb8b73dc58673e857b74 | 2010-01-11T22:30:11Z |
mmm a / src / arm / lithium - arm . cc <nl> ppp b / src / arm / lithium - arm . cc <nl> LInstruction * LChunkBuilder : : DoLoadFunctionPrototype ( <nl> } <nl> <nl> <nl> + LInstruction * LChunkBuilder : : DoLoadRoot ( HLoadRoot * instr ) { <nl> + return DefineAsRegister ( new ( zone ( ) ) LLoadRoot ) ; <nl> + } <nl> + <nl> + <nl> LInstruction * LChunkBuilder : : DoLoadExternalArrayPointer ( <nl> HLoadExternalArrayPointer * instr ) { <nl> LOperand * input = UseRegisterAtStart ( instr - > value ( ) ) ; <nl> mmm a / src / arm / lithium - arm . h <nl> ppp b / src / arm / lithium - arm . h <nl> class LCodeGen ; <nl> V ( LazyBailout ) \ <nl> V ( LoadContextSlot ) \ <nl> V ( LoadExternalArrayPointer ) \ <nl> + V ( LoadRoot ) \ <nl> V ( LoadFieldByIndex ) \ <nl> V ( LoadFunctionPrototype ) \ <nl> V ( LoadGlobalCell ) \ <nl> class LLoadFunctionPrototype V8_FINAL : public LTemplateInstruction < 1 , 1 , 0 > { <nl> } ; <nl> <nl> <nl> + class LLoadRoot V8_FINAL : public LTemplateInstruction < 1 , 0 , 0 > { <nl> + public : <nl> + DECLARE_CONCRETE_INSTRUCTION ( LoadRoot , " load - root " ) <nl> + DECLARE_HYDROGEN_ACCESSOR ( LoadRoot ) <nl> + <nl> + Heap : : RootListIndex index ( ) const { return hydrogen ( ) - > index ( ) ; } <nl> + } ; <nl> + <nl> + <nl> class LLoadExternalArrayPointer V8_FINAL <nl> : public LTemplateInstruction < 1 , 1 , 0 > { <nl> public : <nl> mmm a / src / arm / lithium - codegen - arm . cc <nl> ppp b / src / arm / lithium - codegen - arm . cc <nl> void LCodeGen : : DoLoadFunctionPrototype ( LLoadFunctionPrototype * instr ) { <nl> } <nl> <nl> <nl> + void LCodeGen : : DoLoadRoot ( LLoadRoot * instr ) { <nl> + Register result = ToRegister ( instr - > result ( ) ) ; <nl> + __ LoadRoot ( result , instr - > index ( ) ) ; <nl> + } <nl> + <nl> + <nl> void LCodeGen : : DoLoadExternalArrayPointer ( <nl> LLoadExternalArrayPointer * instr ) { <nl> Register to_reg = ToRegister ( instr - > result ( ) ) ; <nl> mmm a / src / hydrogen - instructions . h <nl> ppp b / src / hydrogen - instructions . h <nl> class LChunkBuilder ; <nl> V ( LoadKeyedGeneric ) \ <nl> V ( LoadNamedField ) \ <nl> V ( LoadNamedGeneric ) \ <nl> + V ( LoadRoot ) \ <nl> V ( MapEnumLength ) \ <nl> V ( MathFloorOfDiv ) \ <nl> V ( MathMinMax ) \ <nl> class HUnaryMathOperation V8_FINAL : public HTemplateInstruction < 2 > { <nl> } ; <nl> <nl> <nl> + class HLoadRoot V8_FINAL : public HTemplateInstruction < 0 > { <nl> + public : <nl> + DECLARE_INSTRUCTION_FACTORY_P1 ( HLoadRoot , Heap : : RootListIndex ) ; <nl> + DECLARE_INSTRUCTION_FACTORY_P2 ( HLoadRoot , Heap : : RootListIndex , HType ) ; <nl> + <nl> + virtual Representation RequiredInputRepresentation ( int index ) V8_OVERRIDE { <nl> + return Representation : : None ( ) ; <nl> + } <nl> + <nl> + Heap : : RootListIndex index ( ) const { return index_ ; } <nl> + <nl> + DECLARE_CONCRETE_INSTRUCTION ( LoadRoot ) <nl> + <nl> + protected : <nl> + virtual bool DataEquals ( HValue * other ) V8_OVERRIDE { <nl> + HLoadRoot * b = HLoadRoot : : cast ( other ) ; <nl> + return index_ = = b - > index_ ; <nl> + } <nl> + <nl> + private : <nl> + HLoadRoot ( Heap : : RootListIndex index , HType type = HType : : Tagged ( ) ) <nl> + : HTemplateInstruction < 0 > ( type ) , index_ ( index ) { <nl> + SetFlag ( kUseGVN ) ; <nl> + / / TODO ( bmeurer ) : We ' ll need kDependsOnRoots once we add the <nl> + / / corresponding HStoreRoot instruction . <nl> + SetGVNFlag ( kDependsOnCalls ) ; <nl> + } <nl> + <nl> + virtual bool IsDeletable ( ) const V8_OVERRIDE { return true ; } <nl> + <nl> + const Heap : : RootListIndex index_ ; <nl> + } ; <nl> + <nl> + <nl> class HLoadExternalArrayPointer V8_FINAL : public HUnaryOperation { <nl> public : <nl> DECLARE_INSTRUCTION_FACTORY_P1 ( HLoadExternalArrayPointer , HValue * ) ; <nl> mmm a / src / ia32 / lithium - codegen - ia32 . cc <nl> ppp b / src / ia32 / lithium - codegen - ia32 . cc <nl> void LCodeGen : : DoLoadFunctionPrototype ( LLoadFunctionPrototype * instr ) { <nl> } <nl> <nl> <nl> + void LCodeGen : : DoLoadRoot ( LLoadRoot * instr ) { <nl> + Register result = ToRegister ( instr - > result ( ) ) ; <nl> + __ LoadRoot ( result , instr - > index ( ) ) ; <nl> + } <nl> + <nl> + <nl> void LCodeGen : : DoLoadExternalArrayPointer ( <nl> LLoadExternalArrayPointer * instr ) { <nl> Register result = ToRegister ( instr - > result ( ) ) ; <nl> mmm a / src / ia32 / lithium - ia32 . cc <nl> ppp b / src / ia32 / lithium - ia32 . cc <nl> LInstruction * LChunkBuilder : : DoLoadFunctionPrototype ( <nl> } <nl> <nl> <nl> + LInstruction * LChunkBuilder : : DoLoadRoot ( HLoadRoot * instr ) { <nl> + return DefineAsRegister ( new ( zone ( ) ) LLoadRoot ) ; <nl> + } <nl> + <nl> + <nl> LInstruction * LChunkBuilder : : DoLoadExternalArrayPointer ( <nl> HLoadExternalArrayPointer * instr ) { <nl> LOperand * input = UseRegisterAtStart ( instr - > value ( ) ) ; <nl> mmm a / src / ia32 / lithium - ia32 . h <nl> ppp b / src / ia32 / lithium - ia32 . h <nl> class LCodeGen ; <nl> V ( LoadKeyedGeneric ) \ <nl> V ( LoadNamedField ) \ <nl> V ( LoadNamedGeneric ) \ <nl> + V ( LoadRoot ) \ <nl> V ( MapEnumLength ) \ <nl> V ( MathAbs ) \ <nl> V ( MathCos ) \ <nl> class LLoadFunctionPrototype V8_FINAL : public LTemplateInstruction < 1 , 1 , 1 > { <nl> } ; <nl> <nl> <nl> + class LLoadRoot V8_FINAL : public LTemplateInstruction < 1 , 0 , 0 > { <nl> + public : <nl> + DECLARE_CONCRETE_INSTRUCTION ( LoadRoot , " load - root " ) <nl> + DECLARE_HYDROGEN_ACCESSOR ( LoadRoot ) <nl> + <nl> + Heap : : RootListIndex index ( ) const { return hydrogen ( ) - > index ( ) ; } <nl> + } ; <nl> + <nl> + <nl> class LLoadExternalArrayPointer V8_FINAL <nl> : public LTemplateInstruction < 1 , 1 , 0 > { <nl> public : <nl> mmm a / src / x64 / lithium - codegen - x64 . cc <nl> ppp b / src / x64 / lithium - codegen - x64 . cc <nl> void LCodeGen : : DoLoadFunctionPrototype ( LLoadFunctionPrototype * instr ) { <nl> } <nl> <nl> <nl> + void LCodeGen : : DoLoadRoot ( LLoadRoot * instr ) { <nl> + Register result = ToRegister ( instr - > result ( ) ) ; <nl> + __ LoadRoot ( result , instr - > index ( ) ) ; <nl> + } <nl> + <nl> + <nl> void LCodeGen : : DoLoadExternalArrayPointer ( <nl> LLoadExternalArrayPointer * instr ) { <nl> Register result = ToRegister ( instr - > result ( ) ) ; <nl> mmm a / src / x64 / lithium - x64 . cc <nl> ppp b / src / x64 / lithium - x64 . cc <nl> LInstruction * LChunkBuilder : : DoLoadFunctionPrototype ( <nl> } <nl> <nl> <nl> + LInstruction * LChunkBuilder : : DoLoadRoot ( HLoadRoot * instr ) { <nl> + return DefineAsRegister ( new ( zone ( ) ) LLoadRoot ) ; <nl> + } <nl> + <nl> + <nl> LInstruction * LChunkBuilder : : DoLoadExternalArrayPointer ( <nl> HLoadExternalArrayPointer * instr ) { <nl> LOperand * input = UseRegisterAtStart ( instr - > value ( ) ) ; <nl> mmm a / src / x64 / lithium - x64 . h <nl> ppp b / src / x64 / lithium - x64 . h <nl> class LCodeGen ; <nl> V ( LazyBailout ) \ <nl> V ( LoadContextSlot ) \ <nl> V ( LoadExternalArrayPointer ) \ <nl> + V ( LoadRoot ) \ <nl> V ( LoadFieldByIndex ) \ <nl> V ( LoadFunctionPrototype ) \ <nl> V ( LoadGlobalCell ) \ <nl> class LLoadFunctionPrototype V8_FINAL : public LTemplateInstruction < 1 , 1 , 0 > { <nl> } ; <nl> <nl> <nl> + class LLoadRoot V8_FINAL : public LTemplateInstruction < 1 , 0 , 0 > { <nl> + public : <nl> + DECLARE_CONCRETE_INSTRUCTION ( LoadRoot , " load - root " ) <nl> + DECLARE_HYDROGEN_ACCESSOR ( LoadRoot ) <nl> + <nl> + Heap : : RootListIndex index ( ) const { return hydrogen ( ) - > index ( ) ; } <nl> + } ; <nl> + <nl> + <nl> class LLoadExternalArrayPointer V8_FINAL <nl> : public LTemplateInstruction < 1 , 1 , 0 > { <nl> public : <nl> | Add HLoadRoot hydrogen instruction . | v8/v8 | bf192205ced595a7a25e7ee42ac0e4ce0735a619 | 2013-09-19T06:08:13Z |
mmm a / src / ast / ast - numbering . cc <nl> ppp b / src / ast / ast - numbering . cc <nl> void AstNumberingVisitor : : VisitWhileStatement ( WhileStatement * node ) { <nl> <nl> void AstNumberingVisitor : : VisitTryCatchStatement ( TryCatchStatement * node ) { <nl> IncrementNodeCount ( ) ; <nl> - DisableOptimization ( kTryCatchStatement ) ; <nl> + DisableCrankshaft ( kTryCatchStatement ) ; <nl> Visit ( node - > try_block ( ) ) ; <nl> Visit ( node - > catch_block ( ) ) ; <nl> } <nl> | Ship Turbofan try - catch . | v8/v8 | 4dfc6254fb91b0d058f4c10bd88c897833826f3a | 2016-04-11T20:42:36Z |
mmm a / lib / Parse / ParseStmt . cpp <nl> ppp b / lib / Parse / ParseStmt . cpp <nl> ParserStatus Parser : : parseBraceItems ( SmallVectorImpl < ASTNode > & Entries , <nl> Tok . isNot ( tok : : kw_sil_global ) & & <nl> Tok . isNot ( tok : : kw_sil_witness_table ) & & <nl> Tok . isNot ( tok : : kw_sil_default_witness_table ) & & <nl> + Tok . isNot ( tok : : kw_sil_property ) & & <nl> ( isConditionalBlock | | <nl> ! isTerminatorForBraceItemListKind ( Kind , Entries ) ) ) { <nl> <nl> mmm a / lib / ParseSIL / ParseSIL . cpp <nl> ppp b / lib / ParseSIL / ParseSIL . cpp <nl> bool SILParserTUState : : parseSILProperty ( Parser & P ) { <nl> generics = P . maybeParseGenericParams ( ) . getPtrOrNull ( ) ; <nl> patternEnv = handleSILGenericParams ( P . Context , generics , & P . SF ) ; <nl> <nl> - if ( patternEnv - > getGenericSignature ( ) - > getCanonicalSignature ( ) <nl> - ! = VD - > getInnermostDeclContext ( ) - > getGenericSignatureOfContext ( ) <nl> - - > getCanonicalSignature ( ) ) { <nl> - P . diagnose ( loc , diag : : sil_property_generic_signature_mismatch ) ; <nl> - return true ; <nl> + if ( patternEnv ) { <nl> + if ( patternEnv - > getGenericSignature ( ) - > getCanonicalSignature ( ) <nl> + ! = VD - > getInnermostDeclContext ( ) - > getGenericSignatureOfContext ( ) <nl> + - > getCanonicalSignature ( ) ) { <nl> + P . diagnose ( loc , diag : : sil_property_generic_signature_mismatch ) ; <nl> + return true ; <nl> + } <nl> + } else { <nl> + if ( VD - > getInnermostDeclContext ( ) - > getGenericSignatureOfContext ( ) ) { <nl> + P . diagnose ( loc , diag : : sil_property_generic_signature_mismatch ) ; <nl> + return true ; <nl> + } <nl> } <nl> <nl> Identifier ComponentKind ; <nl> | SIL : Fix parse issues with sil_property declarations | apple/swift | a1463613896c330e2a724d7fd0c7a2bfdae89364 | 2018-03-22T20:58:52Z |
mmm a / xbmc / GUIWindowSettingsCategory . cpp <nl> ppp b / xbmc / GUIWindowSettingsCategory . cpp <nl> void CGUIWindowSettingsCategory : : UpdateSettings ( ) <nl> else if ( strSetting . Equals ( " weather . scriptsettings " ) ) <nl> { <nl> / / / / Create our base path <nl> - / / CStdString basepath = " special : / / home / plugins / weather / " + g_guiSettings . GetString ( " weather . plugin " ) ; <nl> + / / CStdString basepath = " special : / / home / plugins / weather / " + g_guiSettings . GetString ( " weather . script " ) ; <nl> / / CGUIControl * pControl = ( CGUIControl * ) GetControl ( pSettingControl - > GetID ( ) ) ; <nl> - / / if ( pControl ) pControl - > SetEnabled ( ! g_guiSettings . GetString ( " weather . plugin " ) . IsEmpty ( ) & & CScriptSettings : : SettingsExist ( basepath ) ) ; <nl> + / / if ( pControl ) pControl - > SetEnabled ( ! g_guiSettings . GetString ( " weather . script " ) . IsEmpty ( ) & & CScriptSettings : : SettingsExist ( basepath ) ) ; <nl> } <nl> # if defined ( _LINUX ) & & ! defined ( __APPLE__ ) <nl> else if ( strSetting . Equals ( " audiooutput . custompassthrough " ) ) <nl> mmm a / xbmc / utils / GUIInfoManager . cpp <nl> ppp b / xbmc / utils / GUIInfoManager . cpp <nl> CStdString CGUIInfoManager : : GetLabel ( int info , int contextWindow ) <nl> CUtil : : RemoveExtension ( strLabel ) ; <nl> break ; <nl> case WEATHER_PLUGIN : <nl> - strLabel = g_guiSettings . GetString ( " weather . plugin " ) ; <nl> + strLabel = g_guiSettings . GetString ( " weather . script " ) ; <nl> break ; <nl> case SYSTEM_DATE : <nl> strLabel = GetDate ( ) ; <nl> | fixed : The infolabel weather . plugin wasn ' t returning anything useful . Part of Ticket , thanks to Nuka1195 . | xbmc/xbmc | 9d25dffc61b3f4af5238d68fff33a498670baaeb | 2010-05-21T01:42:39Z |
mmm a / docs / root / intro / version_history . rst <nl> ppp b / docs / root / intro / version_history . rst <nl> Version history <nl> * ext_authz : added a ` x - envoy - auth - partial - body ` metadata header set to ` false | true ` indicating if there is a partial body sent in the authorization request message . <nl> * ext_authz : added option to ` ext_authz ` that allows the filter clearing route cache . <nl> * hot restart : stats are no longer shared between hot restart parent / child via shared memory , but rather by RPC . Hot restart version incremented to 11 . <nl> + * http : fixed a bug where large unbufferable responses were not tracked in stats and logs correctly . <nl> * http : fixed a crashing bug where gRPC local replies would cause segfaults when upstream access logging was on . <nl> * http : mitigated a race condition with the : ref : ` delayed_close_timeout < envoy_api_field_config . filter . network . http_connection_manager . v2 . HttpConnectionManager . delayed_close_timeout > ` where it could trigger while actively flushing a pending write buffer for a downstream connection . <nl> * jwt_authn : make filter ' s parsing of JWT more flexible , allowing syntax like ` ` jwt = eyJhbGciOiJS . . . ZFnFIw , extra = 7 , realm = 123 ` ` <nl> mmm a / source / common / http / conn_manager_impl . cc <nl> ppp b / source / common / http / conn_manager_impl . cc <nl> void ConnectionManagerImpl : : ActiveStreamEncoderFilter : : responseDataTooLarge ( ) { <nl> Http : : Utility : : sendLocalReply ( <nl> Grpc : : Common : : hasGrpcContentType ( * parent_ . request_headers_ ) , <nl> [ & ] ( HeaderMapPtr & & response_headers , bool end_stream ) - > void { <nl> + parent_ . chargeStats ( * response_headers ) ; <nl> parent_ . response_headers_ = std : : move ( response_headers ) ; <nl> parent_ . response_encoder_ - > encodeHeaders ( * parent_ . response_headers_ , end_stream ) ; <nl> parent_ . state_ . local_complete_ = end_stream ; <nl> mmm a / test / integration / protocol_integration_test . cc <nl> ppp b / test / integration / protocol_integration_test . cc <nl> TEST_P ( DownstreamProtocolIntegrationTest , HittingDecoderFilterLimit ) { <nl> <nl> / / Test hitting the dynamo filter with too many response bytes to buffer . Given the request headers <nl> / / are sent on early , the stream / connection will be reset . <nl> - TEST_P ( DownstreamProtocolIntegrationTest , HittingEncoderFilterLimit ) { <nl> + TEST_P ( ProtocolIntegrationTest , HittingEncoderFilterLimit ) { <nl> + useAccessLog ( ) ; <nl> config_helper_ . addFilter ( " { name : envoy . http_dynamo_filter , config : { } } " ) ; <nl> config_helper_ . setBufferLimits ( 1024 , 1024 ) ; <nl> initialize ( ) ; <nl> TEST_P ( DownstreamProtocolIntegrationTest , HittingEncoderFilterLimit ) { <nl> / / be buffered , the stream will be reset , and the connection will disconnect . <nl> fake_upstreams_ [ 0 ] - > set_allow_unexpected_disconnects ( true ) ; <nl> upstream_request_ - > encodeData ( 1024 * 65 , false ) ; <nl> - ASSERT_TRUE ( fake_upstream_connection_ - > waitForDisconnect ( ) ) ; <nl> + if ( upstreamProtocol ( ) = = FakeHttpConnection : : Type : : HTTP1 ) { <nl> + ASSERT_TRUE ( fake_upstream_connection_ - > waitForDisconnect ( ) ) ; <nl> + } else { <nl> + ASSERT_TRUE ( upstream_request_ - > waitForReset ( ) ) ; <nl> + ASSERT_TRUE ( fake_upstream_connection_ - > close ( ) ) ; <nl> + ASSERT_TRUE ( fake_upstream_connection_ - > waitForDisconnect ( ) ) ; <nl> + } <nl> <nl> response - > waitForEndStream ( ) ; <nl> EXPECT_TRUE ( response - > complete ( ) ) ; <nl> EXPECT_EQ ( " 500 " , response - > headers ( ) . Status ( ) - > value ( ) . getStringView ( ) ) ; <nl> + EXPECT_THAT ( waitForAccessLog ( access_log_name_ ) , HasSubstr ( " 500 " ) ) ; <nl> + test_server_ - > waitForCounterEq ( " http . config_test . downstream_rq_5xx " , 1 ) ; <nl> } <nl> <nl> TEST_P ( ProtocolIntegrationTest , EnvoyHandling100Continue ) { testEnvoyHandling100Continue ( ) ; } <nl> mmm a / test / integration / server . h <nl> ppp b / test / integration / server . h <nl> class IntegrationTestServer : public Logger : : Loggable < Logger : : Id : : testing > , <nl> std : : function < void ( ) > on_server_init_function , bool deterministic , <nl> bool defer_listener_finalization ) ; <nl> <nl> + void waitForCounterEq ( const std : : string & name , uint64_t value ) override { <nl> + while ( counter ( name ) = = nullptr | | counter ( name ) - > value ( ) ! = value ) { <nl> + time_system_ . sleep ( std : : chrono : : milliseconds ( 10 ) ) ; <nl> + } <nl> + } <nl> + <nl> void waitForCounterGe ( const std : : string & name , uint64_t value ) override { <nl> while ( counter ( name ) = = nullptr | | counter ( name ) - > value ( ) < value ) { <nl> time_system_ . sleep ( std : : chrono : : milliseconds ( 10 ) ) ; <nl> mmm a / test / integration / server_stats . h <nl> ppp b / test / integration / server_stats . h <nl> class IntegrationTestServerStats { <nl> public : <nl> virtual ~ IntegrationTestServerStats ( ) { } <nl> <nl> + / * * <nl> + * Wait for a counter to = = a given value . <nl> + * @ param name counter name . <nl> + * @ param value target value . <nl> + * / <nl> + virtual void waitForCounterEq ( const std : : string & name , uint64_t value ) PURE ; <nl> + <nl> / * * <nl> * Wait for a counter to > = a given value . <nl> * @ param name counter name . <nl> | http : fixing a stats / logs bug for overly large responses ( ) | envoyproxy/envoy | 438dd908d0187d23f88e0976a71ab88f36e52e1e | 2019-05-06T18:52:41Z |
mmm a / tensorflow / contrib / learn / python / learn / datasets / BUILD <nl> ppp b / tensorflow / contrib / learn / python / learn / datasets / BUILD <nl> py_library ( <nl> " base . py " , <nl> " mnist . py " , <nl> " produce_small_datasets . py " , <nl> - " text_datasets . py " , <nl> " synthetic . py " , <nl> + " text_datasets . py " , <nl> ] , <nl> data = [ " : data_csv " ] , <nl> srcs_version = " PY2AND3 " , <nl> | ran buildifier to reformat BUILD | tensorflow/tensorflow | bf61b4d8e87667a1ce61d656cd01fcd65458de9e | 2016-12-16T03:01:27Z |
mmm a / libraries / abi_generator / abi_generator . cpp <nl> ppp b / libraries / abi_generator / abi_generator . cpp <nl> clang : : CXXRecordDecl : : base_class_range abi_generator : : get_struct_bases ( const cla <nl> auto cxxrecord_decl = clang : : dyn_cast < CXXRecordDecl > ( record_type - > getDecl ( ) ) ; <nl> ABI_ASSERT ( cxxrecord_decl ! = nullptr ) ; <nl> / / record_type - > getCanonicalTypeInternal ( ) . dump ( ) ; <nl> + ABI_ASSERT ( cxxrecord_decl - > hasDefinition ( ) , " No definition for $ { t } " , ( " t " , qt . getAsString ( ) ) ) ; <nl> <nl> auto bases = cxxrecord_decl - > bases ( ) ; <nl> <nl> | Merge pull request from EOSIO / gh - eosiocpp - crash | EOSIO/eos | 83e9cca83cdbb3dc471567127b7aef40109a42db | 2018-06-01T21:05:40Z |
mmm a / tensorflow / go / op / wrappers . go <nl> ppp b / tensorflow / go / op / wrappers . go <nl> func DepthwiseConv2dNativeBackpropFilterDataFormat ( value string ) DepthwiseConv2d <nl> / / element on that dimension . The dimension order is determined by the value of <nl> / / ` data_format ` , see above for details . Dilations in the batch and depth <nl> / / dimensions must be 1 . <nl> - / / If not specified , defaults to { i : 1 i : 1 i : 1 i : 1 } <nl> + / / If not specified , defaults to { i : 1 i : 1 i : 1 i : 1 } <nl> func DepthwiseConv2dNativeBackpropFilterDilations ( value [ ] int64 ) DepthwiseConv2dNativeBackpropFilterAttr { <nl> return func ( m optionalAttr ) { <nl> m [ " dilations " ] = value <nl> func SampleDistortedBoundingBoxV2Seed2 ( value int64 ) SampleDistortedBoundingBoxV2 <nl> / / <nl> / / value : The cropped area of the image must have an aspect ratio = <nl> / / width / height within this range . <nl> - / / If not specified , defaults to { f : 0 . 75 f : 1 . 33 } <nl> + / / If not specified , defaults to { f : 0 . 75 f : 1 . 33 } <nl> func SampleDistortedBoundingBoxV2AspectRatioRange ( value [ ] float32 ) SampleDistortedBoundingBoxV2Attr { <nl> return func ( m optionalAttr ) { <nl> m [ " aspect_ratio_range " ] = value <nl> func SampleDistortedBoundingBoxV2AspectRatioRange ( value [ ] float32 ) SampleDistort <nl> / / <nl> / / value : The cropped area of the image must contain a fraction of the <nl> / / supplied image within this range . <nl> - / / If not specified , defaults to { f : 0 . 05 f : 1 } <nl> + / / If not specified , defaults to { f : 0 . 05 f : 1 } <nl> func SampleDistortedBoundingBoxV2AreaRange ( value [ ] float32 ) SampleDistortedBoundingBoxV2Attr { <nl> return func ( m optionalAttr ) { <nl> m [ " area_range " ] = value <nl> func SampleDistortedBoundingBoxMinObjectCovered ( value float32 ) SampleDistortedBo <nl> / / <nl> / / value : The cropped area of the image must have an aspect ratio = <nl> / / width / height within this range . <nl> - / / If not specified , defaults to { f : 0 . 75 f : 1 . 33 } <nl> + / / If not specified , defaults to { f : 0 . 75 f : 1 . 33 } <nl> func SampleDistortedBoundingBoxAspectRatioRange ( value [ ] float32 ) SampleDistortedBoundingBoxAttr { <nl> return func ( m optionalAttr ) { <nl> m [ " aspect_ratio_range " ] = value <nl> func SampleDistortedBoundingBoxAspectRatioRange ( value [ ] float32 ) SampleDistorted <nl> / / <nl> / / value : The cropped area of the image must contain a fraction of the <nl> / / supplied image within this range . <nl> - / / If not specified , defaults to { f : 0 . 05 f : 1 } <nl> + / / If not specified , defaults to { f : 0 . 05 f : 1 } <nl> func SampleDistortedBoundingBoxAreaRange ( value [ ] float32 ) SampleDistortedBoundingBoxAttr { <nl> return func ( m optionalAttr ) { <nl> m [ " area_range " ] = value <nl> func ImageSummaryMaxImages ( value int64 ) ImageSummaryAttr { <nl> / / ImageSummaryBadColor sets the optional bad_color attribute to value . <nl> / / <nl> / / value : Color to use for pixels with non - finite values . <nl> - / / If not specified , defaults to { dtype : DT_UINT8 tensor_shape : { dim : { size : 4 } } int_val : 255 int_val : 0 int_val : 0 int_val : 255 } <nl> + / / If not specified , defaults to { dtype : DT_UINT8 tensor_shape : { dim : { size : 4 } } int_val : 255 int_val : 0 int_val : 0 int_val : 255 } <nl> func ImageSummaryBadColor ( value tf . Tensor ) ImageSummaryAttr { <nl> return func ( m optionalAttr ) { <nl> m [ " bad_color " ] = value <nl> func Conv3DBackpropFilterV2DataFormat ( value string ) Conv3DBackpropFilterV2Attr { <nl> / / filter element on that dimension . The dimension order is determined by the <nl> / / value of ` data_format ` , see above for details . Dilations in the batch and <nl> / / depth dimensions must be 1 . <nl> - / / If not specified , defaults to { i : 1 i : 1 i : 1 i : 1 i : 1 } <nl> + / / If not specified , defaults to { i : 1 i : 1 i : 1 i : 1 i : 1 } <nl> func Conv3DBackpropFilterV2Dilations ( value [ ] int64 ) Conv3DBackpropFilterV2Attr { <nl> return func ( m optionalAttr ) { <nl> m [ " dilations " ] = value <nl> func Conv2DBackpropInputDataFormat ( value string ) Conv2DBackpropInputAttr { <nl> / / element on that dimension . The dimension order is determined by the value of <nl> / / ` data_format ` , see above for details . Dilations in the batch and depth <nl> / / dimensions must be 1 . <nl> - / / If not specified , defaults to { i : 1 i : 1 i : 1 i : 1 } <nl> + / / If not specified , defaults to { i : 1 i : 1 i : 1 i : 1 } <nl> func Conv2DBackpropInputDilations ( value [ ] int64 ) Conv2DBackpropInputAttr { <nl> return func ( m optionalAttr ) { <nl> m [ " dilations " ] = value <nl> func Conv2DDataFormat ( value string ) Conv2DAttr { <nl> / / filter element on that dimension . The dimension order is determined by the <nl> / / value of ` data_format ` , see above for details . Dilations in the batch and <nl> / / depth dimensions must be 1 . <nl> - / / If not specified , defaults to { i : 1 i : 1 i : 1 i : 1 } <nl> + / / If not specified , defaults to { i : 1 i : 1 i : 1 i : 1 } <nl> func Conv2DDilations ( value [ ] int64 ) Conv2DAttr { <nl> return func ( m optionalAttr ) { <nl> m [ " dilations " ] = value <nl> func QuantizedDepthwiseConv2DWithBiasAndReluAndRequantizeOutType ( value tf . DataTy <nl> / / QuantizedDepthwiseConv2DWithBiasAndReluAndRequantizeDilations sets the optional dilations attribute to value . <nl> / / <nl> / / value : List of dilation values . <nl> - / / If not specified , defaults to { i : 1 i : 1 i : 1 i : 1 } <nl> + / / If not specified , defaults to { i : 1 i : 1 i : 1 i : 1 } <nl> func QuantizedDepthwiseConv2DWithBiasAndReluAndRequantizeDilations ( value [ ] int64 ) QuantizedDepthwiseConv2DWithBiasAndReluAndRequantizeAttr { <nl> return func ( m optionalAttr ) { <nl> m [ " dilations " ] = value <nl> func QuantizedDepthwiseConv2DWithBiasAndReluOutType ( value tf . DataType ) Quantized <nl> / / QuantizedDepthwiseConv2DWithBiasAndReluDilations sets the optional dilations attribute to value . <nl> / / <nl> / / value : List of dilation values . <nl> - / / If not specified , defaults to { i : 1 i : 1 i : 1 i : 1 } <nl> + / / If not specified , defaults to { i : 1 i : 1 i : 1 i : 1 } <nl> func QuantizedDepthwiseConv2DWithBiasAndReluDilations ( value [ ] int64 ) QuantizedDepthwiseConv2DWithBiasAndReluAttr { <nl> return func ( m optionalAttr ) { <nl> m [ " dilations " ] = value <nl> func QuantizedDepthwiseConv2DWithBiasOutType ( value tf . DataType ) QuantizedDepthwi <nl> / / QuantizedDepthwiseConv2DWithBiasDilations sets the optional dilations attribute to value . <nl> / / <nl> / / value : List of dilation values . <nl> - / / If not specified , defaults to { i : 1 i : 1 i : 1 i : 1 } <nl> + / / If not specified , defaults to { i : 1 i : 1 i : 1 i : 1 } <nl> func QuantizedDepthwiseConv2DWithBiasDilations ( value [ ] int64 ) QuantizedDepthwiseConv2DWithBiasAttr { <nl> return func ( m optionalAttr ) { <nl> m [ " dilations " ] = value <nl> func QuantizedDepthwiseConv2DOutType ( value tf . DataType ) QuantizedDepthwiseConv2D <nl> / / QuantizedDepthwiseConv2DDilations sets the optional dilations attribute to value . <nl> / / <nl> / / value : List of dilation values . <nl> - / / If not specified , defaults to { i : 1 i : 1 i : 1 i : 1 } <nl> + / / If not specified , defaults to { i : 1 i : 1 i : 1 i : 1 } <nl> func QuantizedDepthwiseConv2DDilations ( value [ ] int64 ) QuantizedDepthwiseConv2DAttr { <nl> return func ( m optionalAttr ) { <nl> m [ " dilations " ] = value <nl> func QuantizedConv2DPerChannelOutType ( value tf . DataType ) QuantizedConv2DPerChann <nl> / / QuantizedConv2DPerChannelDilations sets the optional dilations attribute to value . <nl> / / <nl> / / value : list of dilation values . <nl> - / / If not specified , defaults to { i : 1 i : 1 i : 1 i : 1 } <nl> + / / If not specified , defaults to { i : 1 i : 1 i : 1 i : 1 } <nl> func QuantizedConv2DPerChannelDilations ( value [ ] int64 ) QuantizedConv2DPerChannelAttr { <nl> return func ( m optionalAttr ) { <nl> m [ " dilations " ] = value <nl> func Conv3DBackpropInputV2DataFormat ( value string ) Conv3DBackpropInputV2Attr { <nl> / / filter element on that dimension . The dimension order is determined by the <nl> / / value of ` data_format ` , see above for details . Dilations in the batch and <nl> / / depth dimensions must be 1 . <nl> - / / If not specified , defaults to { i : 1 i : 1 i : 1 i : 1 i : 1 } <nl> + / / If not specified , defaults to { i : 1 i : 1 i : 1 i : 1 i : 1 } <nl> func Conv3DBackpropInputV2Dilations ( value [ ] int64 ) Conv3DBackpropInputV2Attr { <nl> return func ( m optionalAttr ) { <nl> m [ " dilations " ] = value <nl> func AvgPool3DGrad ( scope * Scope , orig_input_shape tf . Output , grad tf . Output , ksi <nl> type Conv3DBackpropFilterAttr func ( optionalAttr ) <nl> <nl> / / Conv3DBackpropFilterDilations sets the optional dilations attribute to value . <nl> - / / If not specified , defaults to { i : 1 i : 1 i : 1 i : 1 i : 1 } <nl> + / / If not specified , defaults to { i : 1 i : 1 i : 1 i : 1 i : 1 } <nl> func Conv3DBackpropFilterDilations ( value [ ] int64 ) Conv3DBackpropFilterAttr { <nl> return func ( m optionalAttr ) { <nl> m [ " dilations " ] = value <nl> func Conv3DDataFormat ( value string ) Conv3DAttr { <nl> / / filter element on that dimension . The dimension order is determined by the <nl> / / value of ` data_format ` , see above for details . Dilations in the batch and <nl> / / depth dimensions must be 1 . <nl> - / / If not specified , defaults to { i : 1 i : 1 i : 1 i : 1 i : 1 } <nl> + / / If not specified , defaults to { i : 1 i : 1 i : 1 i : 1 i : 1 } <nl> func Conv3DDilations ( value [ ] int64 ) Conv3DAttr { <nl> return func ( m optionalAttr ) { <nl> m [ " dilations " ] = value <nl> func DepthwiseConv2dNativeBackpropInputDataFormat ( value string ) DepthwiseConv2dN <nl> / / element on that dimension . The dimension order is determined by the value of <nl> / / ` data_format ` , see above for details . Dilations in the batch and depth <nl> / / dimensions must be 1 . <nl> - / / If not specified , defaults to { i : 1 i : 1 i : 1 i : 1 } <nl> + / / If not specified , defaults to { i : 1 i : 1 i : 1 i : 1 } <nl> func DepthwiseConv2dNativeBackpropInputDilations ( value [ ] int64 ) DepthwiseConv2dNativeBackpropInputAttr { <nl> return func ( m optionalAttr ) { <nl> m [ " dilations " ] = value <nl> func QuantizedConv2DOutType ( value tf . DataType ) QuantizedConv2DAttr { <nl> / / filter element on that dimension . The dimension order is determined by the <nl> / / value of ` data_format ` , see above for details . Dilations in the batch and <nl> / / depth dimensions must be 1 . <nl> - / / If not specified , defaults to { i : 1 i : 1 i : 1 i : 1 } <nl> + / / If not specified , defaults to { i : 1 i : 1 i : 1 i : 1 } <nl> func QuantizedConv2DDilations ( value [ ] int64 ) QuantizedConv2DAttr { <nl> return func ( m optionalAttr ) { <nl> m [ " dilations " ] = value <nl> func Conv2DBackpropFilterDataFormat ( value string ) Conv2DBackpropFilterAttr { <nl> / / element on that dimension . The dimension order is determined by the value of <nl> / / ` data_format ` , see above for details . Dilations in the batch and depth <nl> / / dimensions must be 1 . <nl> - / / If not specified , defaults to { i : 1 i : 1 i : 1 i : 1 } <nl> + / / If not specified , defaults to { i : 1 i : 1 i : 1 i : 1 } <nl> func Conv2DBackpropFilterDilations ( value [ ] int64 ) Conv2DBackpropFilterAttr { <nl> return func ( m optionalAttr ) { <nl> m [ " dilations " ] = value <nl> func ResourceApplyCenteredRMSProp ( scope * Scope , var_ tf . Output , mg tf . Output , ms <nl> type Conv3DBackpropInputAttr func ( optionalAttr ) <nl> <nl> / / Conv3DBackpropInputDilations sets the optional dilations attribute to value . <nl> - / / If not specified , defaults to { i : 1 i : 1 i : 1 i : 1 i : 1 } <nl> + / / If not specified , defaults to { i : 1 i : 1 i : 1 i : 1 i : 1 } <nl> func Conv3DBackpropInputDilations ( value [ ] int64 ) Conv3DBackpropInputAttr { <nl> return func ( m optionalAttr ) { <nl> m [ " dilations " ] = value <nl> func DepthwiseConv2dNativeDataFormat ( value string ) DepthwiseConv2dNativeAttr { <nl> / / element on that dimension . The dimension order is determined by the value of <nl> / / ` data_format ` , see above for details . Dilations in the batch and depth <nl> / / dimensions must be 1 . <nl> - / / If not specified , defaults to { i : 1 i : 1 i : 1 i : 1 } <nl> + / / If not specified , defaults to { i : 1 i : 1 i : 1 i : 1 } <nl> func DepthwiseConv2dNativeDilations ( value [ ] int64 ) DepthwiseConv2dNativeAttr { <nl> return func ( m optionalAttr ) { <nl> m [ " dilations " ] = value <nl> | Go : Update generated wrapper functions for TensorFlow ops . | tensorflow/tensorflow | ffbdfbbe6a86ce03480470f403e19f194d7592f7 | 2020-03-19T04:50:01Z |
mmm a / README . linux <nl> ppp b / README . linux <nl> Build - Depends : debhelper ( > = 7 . 0 . 50 ~ ) , python - support , cmake , <nl> libwavpack - dev , python - dev , gawk , gperf , nasm [ ! amd64 ] , libcwiid1 - dev , <nl> libbluetooth - dev , zlib1g - dev , libsmbclient - dev , <nl> libiso9660 - dev , libssl - dev , lsb - release , libvdpau - dev , libmicrohttpd - dev , <nl> - libmodplug - dev , librtmp - dev , libcrystalhd - dev , curl , python - dev <nl> + libmodplug - dev , librtmp - dev , libcrystalhd - dev , curl , python - dev , libyajl - dev <nl> <nl> * * * For developers and anyone else who compiles frequently it is recommended to <nl> use ccache <nl> mmm a / README . ubuntu <nl> ppp b / README . ubuntu <nl> Two methods exist to install the required Ubuntu packages : <nl> <nl> For Ubuntu ( all versions > = 7 . 04 ) : <nl> <nl> - # sudo apt - get install subversion make g + + gcc gawk pmount libtool nasm yasm automake cmake gperf zip unzip bison libsdl - dev libsdl - image1 . 2 - dev libsdl - gfx1 . 2 - dev libsdl - mixer1 . 2 - dev libfribidi - dev liblzo2 - dev libfreetype6 - dev libsqlite3 - dev libogg - dev libasound - dev python - sqlite libglew - dev libcurl3 libcurl4 - gnutls - dev libxrandr - dev libxrender - dev libmad0 - dev libogg - dev libvorbisenc2 libsmbclient - dev libmysqlclient - dev libpcre3 - dev libdbus - 1 - dev libhal - dev libhal - storage - dev libjasper - dev libfontconfig - dev libbz2 - dev libboost - dev libenca - dev libxt - dev libxmu - dev libpng - dev libjpeg - dev libpulse - dev mesa - utils libcdio - dev libsamplerate - dev libmpeg3 - dev libflac - dev libiso9660 - dev libass - dev libssl - dev fp - compiler gdc libwavpack - dev libmpeg2 - 4 - dev libmicrohttpd - dev libmodplug - dev libssh - dev gettext cvs python - dev <nl> + # sudo apt - get install subversion make g + + gcc gawk pmount libtool nasm yasm automake cmake gperf zip unzip bison libsdl - dev libsdl - image1 . 2 - dev libsdl - gfx1 . 2 - dev libsdl - mixer1 . 2 - dev libfribidi - dev liblzo2 - dev libfreetype6 - dev libsqlite3 - dev libogg - dev libasound - dev python - sqlite libglew - dev libcurl3 libcurl4 - gnutls - dev libxrandr - dev libxrender - dev libmad0 - dev libogg - dev libvorbisenc2 libsmbclient - dev libmysqlclient - dev libpcre3 - dev libdbus - 1 - dev libhal - dev libhal - storage - dev libjasper - dev libfontconfig - dev libbz2 - dev libboost - dev libenca - dev libxt - dev libxmu - dev libpng - dev libjpeg - dev libpulse - dev mesa - utils libcdio - dev libsamplerate - dev libmpeg3 - dev libflac - dev libiso9660 - dev libass - dev libssl - dev fp - compiler gdc libwavpack - dev libmpeg2 - 4 - dev libmicrohttpd - dev libmodplug - dev libssh - dev gettext cvs python - dev libyajl - dev <nl> <nl> For Ubuntu Maverick ( 10 . 10 ) : <nl> # sudo apt - get install autopoint <nl> mmm a / xbmc / utils / JSONVariantParser . cpp <nl> ppp b / xbmc / utils / JSONVariantParser . cpp <nl> CJSONVariantParser : : CJSONVariantParser ( IParseCallback * callback ) <nl> <nl> CJSONVariantParser : : ~ CJSONVariantParser ( ) <nl> { <nl> - yajl_status sta = yajl_parse_complete ( m_handler ) ; <nl> + yajl_parse_complete ( m_handler ) ; <nl> } <nl> <nl> void CJSONVariantParser : : push_buffer ( const unsigned char * buffer , unsigned int length ) <nl> { <nl> - yajl_status sta = yajl_parse ( m_handler , buffer , length ) ; <nl> + yajl_parse ( m_handler , buffer , length ) ; <nl> } <nl> <nl> CVariant CJSONVariantParser : : Parse ( const unsigned char * json , unsigned int length ) <nl> | updates linux READMEs with libyajl - dev and silences another two warnings | xbmc/xbmc | bc375056dbfe484fed981942a18721311fe60299 | 2011-06-03T15:12:51Z |
mmm a / src / mongo / shell / shell_utils_launcher . cpp <nl> ppp b / src / mongo / shell / shell_utils_launcher . cpp <nl> <nl> # include < boost / iostreams / tee . hpp > <nl> # include < cctype > <nl> # include < fcntl . h > <nl> + # include < fmt / format . h > <nl> # include < iostream > <nl> # include < iterator > <nl> # include < map > <nl> <nl> # endif <nl> <nl> # include " mongo / base / environment_buffer . h " <nl> + # include " mongo / base / error_codes . h " <nl> # include " mongo / client / dbclient_connection . h " <nl> # include " mongo / db / traffic_reader . h " <nl> # include " mongo / logv2 / log . h " <nl> # include " mongo / scripting / engine . h " <nl> # include " mongo / shell / shell_options . h " <nl> # include " mongo / shell / shell_utils . h " <nl> + # include " mongo / util / assert_util . h " <nl> # include " mongo / util / destructor_guard . h " <nl> # include " mongo / util / exit . h " <nl> # include " mongo / util / net / hostandport . h " <nl> inline int pipe ( int fds [ 2 ] ) { <nl> namespace shell_utils { <nl> <nl> namespace { <nl> + <nl> + using namespace fmt : : literals ; <nl> + <nl> void safeClose ( int fd ) { <nl> # ifndef _WIN32 <nl> struct ScopedSignalBlocker { <nl> void ProgramRegistry : : getRegisteredPids ( vector < ProcessId > & pids ) { <nl> } <nl> <nl> # ifdef _WIN32 <nl> - HANDLE ProgramRegistry : : getHandleForPid ( ProcessId pid ) { <nl> + HANDLE ProgramRegistry : : getHandleForPid ( ProcessId pid ) const { <nl> stdx : : lock_guard < stdx : : recursive_mutex > lk ( _mutex ) ; <nl> <nl> - return _handles [ pid ] ; <nl> + auto iter = _handles . find ( pid ) ; <nl> + uassert ( <nl> + ErrorCodes : : BadValue , " Unregistered pid { } " _format ( pid . toNative ( ) ) , iter ! = _handles . end ( ) ) ; <nl> + return iter - > second ; <nl> } <nl> <nl> void ProgramRegistry : : eraseHandleForPid ( ProcessId pid ) { <nl> void ProgramRegistry : : eraseHandleForPid ( ProcessId pid ) { <nl> _handles . erase ( pid ) ; <nl> } <nl> <nl> - std : : size_t ProgramRegistry : : countHandleForPid ( ProcessId pid ) { <nl> - stdx : : lock_guard < stdx : : recursive_mutex > lk ( _mutex ) ; <nl> - <nl> - return _handles . count ( pid ) ; <nl> - } <nl> - <nl> void ProgramRegistry : : insertHandleForPid ( ProcessId pid , HANDLE handle ) { <nl> stdx : : lock_guard < stdx : : recursive_mutex > lk ( _mutex ) ; <nl> <nl> ProgramRunner : : ProgramRunner ( const BSONObj & args , const BSONObj & env , bool isMon <nl> ss < < e . number ( ) ; <nl> str = ss . str ( ) ; <nl> } else { <nl> - verify ( e . type ( ) = = mongo : : String ) ; <nl> + uassert ( ErrorCodes : : FailedToParse , <nl> + " Program arguments must be strings " , <nl> + e . type ( ) = = mongo : : String ) ; <nl> str = e . valuestr ( ) ; <nl> } <nl> if ( isMongo ) { <nl> ProgramRunner : : ProgramRunner ( const BSONObj & args , const BSONObj & env , bool isMon <nl> <nl> / / Load explicitly set environment key value pairs into _envp . <nl> for ( const BSONElement & e : env ) { <nl> - / / Environment variable values must be strings <nl> - verify ( e . type ( ) = = mongo : : String ) ; <nl> + uassert ( ErrorCodes : : FailedToParse , <nl> + " Environment variable values must be strings " , <nl> + e . type ( ) = = mongo : : String ) ; <nl> <nl> _envp . emplace ( std : : string ( e . fieldName ( ) ) , std : : string ( e . valuestr ( ) ) ) ; <nl> } <nl> void ProgramRunner : : launchProcess ( int child_stdout ) { <nl> / / If block is true , this will throw if it cannot wait for the processes to exit . <nl> bool wait_for_pid ( ProcessId pid , bool block = true , int * exit_code = nullptr ) { <nl> # ifdef _WIN32 <nl> - verify ( registry . countHandleForPid ( pid ) ) ; <nl> HANDLE h = registry . getHandleForPid ( pid ) ; <nl> <nl> / / wait until the process object is signaled before getting its <nl> BSONObj RunNonMongoProgram ( const BSONObj & a , void * data ) { <nl> } <nl> <nl> BSONObj ResetDbpath ( const BSONObj & a , void * data ) { <nl> - verify ( a . nFields ( ) = = 1 ) ; <nl> + uassert ( ErrorCodes : : FailedToParse , " Expected 1 field " , a . nFields ( ) = = 1 ) ; <nl> string path = a . firstElement ( ) . valuestrsafe ( ) ; <nl> if ( path . empty ( ) ) { <nl> LOGV2_WARNING ( 22824 , " ResetDbpath ( ) : nothing to do , path was empty " ) ; <nl> BSONObj ResetDbpath ( const BSONObj & a , void * data ) { <nl> } <nl> <nl> BSONObj PathExists ( const BSONObj & a , void * data ) { <nl> - verify ( a . nFields ( ) = = 1 ) ; <nl> + uassert ( ErrorCodes : : FailedToParse , " Expected 1 field " , a . nFields ( ) = = 1 ) ; <nl> string path = a . firstElement ( ) . valuestrsafe ( ) ; <nl> if ( path . empty ( ) ) { <nl> LOGV2_WARNING ( 22825 , " PathExists ( ) : path was empty " ) ; <nl> void copyDir ( const boost : : filesystem : : path & from , const boost : : filesystem : : path & <nl> <nl> / / NOTE target dbpath will be cleared first <nl> BSONObj CopyDbpath ( const BSONObj & a , void * data ) { <nl> - verify ( a . nFields ( ) = = 2 ) ; <nl> + uassert ( ErrorCodes : : FailedToParse , " Expected 2 fields " , a . nFields ( ) = = 2 ) ; <nl> BSONObjIterator i ( a ) ; <nl> string from = i . next ( ) . str ( ) ; <nl> string to = i . next ( ) . str ( ) ; <nl> BSONObj CopyDbpath ( const BSONObj & a , void * data ) { <nl> inline void kill_wrapper ( ProcessId pid , int sig , int port , const BSONObj & opt ) { <nl> # ifdef _WIN32 <nl> if ( sig = = SIGKILL | | port = = 0 ) { <nl> - verify ( registry . countHandleForPid ( pid ) ) ; <nl> TerminateProcess ( registry . getHandleForPid ( pid ) , <nl> 1 ) ; / / returns failure for " zombie " processes . <nl> return ; <nl> inline void kill_wrapper ( ProcessId pid , int sig , int port , const BSONObj & opt ) { <nl> } else { <nl> const auto ewd = errnoWithDescription ( ) ; <nl> LOGV2 ( 22816 , " killFailed : { ewd } " , " ewd " _attr = ewd ) ; <nl> - verify ( x = = 0 ) ; <nl> + uasserted ( ErrorCodes : : UnknownError , <nl> + " kill ( { } , { } ) failed : { } " _format ( pid . toNative ( ) , sig , ewd ) ) ; <nl> } <nl> } <nl> <nl> int getSignal ( const BSONObj & a ) { <nl> BSONObjIterator i ( a ) ; <nl> i . next ( ) ; <nl> BSONElement e = i . next ( ) ; <nl> - verify ( e . isNumber ( ) ) ; <nl> + uassert ( ErrorCodes : : BadValue , " Expected a signal number " , e . isNumber ( ) ) ; <nl> ret = int ( e . number ( ) ) ; <nl> } <nl> return ret ; <nl> mmm a / src / mongo / shell / shell_utils_launcher . h <nl> ppp b / src / mongo / shell / shell_utils_launcher . h <nl> class ProgramRegistry { <nl> std : : map < ProcessId , HANDLE > _handles ; <nl> <nl> public : <nl> - HANDLE getHandleForPid ( ProcessId pid ) ; <nl> + / * * Will uassert with ErrorCodes : : BadValue if the pid is unregistered . * / <nl> + HANDLE getHandleForPid ( ProcessId pid ) const ; <nl> void eraseHandleForPid ( ProcessId pid ) ; <nl> - std : : size_t countHandleForPid ( ProcessId pid ) ; <nl> void insertHandleForPid ( ProcessId pid , HANDLE handle ) ; <nl> <nl> # endif <nl> | SERVER - 45260 replace verify with uassert in shell_utils_launcher | mongodb/mongo | dfe28134f9b76ecc1d1a938c46b689a71bcf3c33 | 2020-04-21T02:26:55Z |
mmm a / src / HttpRequest . cc <nl> ppp b / src / HttpRequest . cc <nl> std : : string HttpRequest : : createRequest ( ) <nl> builtinHds . push_back ( std : : make_pair ( " Connection : " , " close " ) ) ; <nl> } <nl> if ( segment_ & & segment_ - > getLength ( ) > 0 & & <nl> - ( request_ - > isPipeliningEnabled ( ) | | getStartByte ( ) > 0 ) ) { <nl> + ( request_ - > isPipeliningEnabled ( ) | | getStartByte ( ) > 0 | | <nl> + getEndByte ( ) > 0 ) ) { <nl> std : : string rangeHeader ( fmt ( " bytes = % " PRId64 " - " , getStartByte ( ) ) ) ; <nl> if ( request_ - > isPipeliningEnabled ( ) ) { <nl> rangeHeader + = util : : itos ( getEndByte ( ) ) ; <nl> | Fix bug that invalid range error when requesting range starting 0 | aria2/aria2 | d88e8150334418cff509f9707b0bbf75e7e3c05c | 2013-03-18T13:01:36Z |
mmm a / table / table_reader_bench . cc <nl> ppp b / table / table_reader_bench . cc <nl> int main ( ) { <nl> # include " rocksdb / table . h " <nl> # include " db / db_impl . h " <nl> # include " db / dbformat . h " <nl> - # include " port / atomic_pointer . h " <nl> # include " table / block_based_table_factory . h " <nl> # include " table / plain_table_factory . h " <nl> # include " table / table_builder . h " <nl> mmm a / tools / db_repl_stress . cc <nl> ppp b / tools / db_repl_stress . cc <nl> int main ( ) { <nl> # else <nl> <nl> # include < cstdio > <nl> + # include < atomic > <nl> <nl> # include < gflags / gflags . h > <nl> <nl> # include " db / write_batch_internal . h " <nl> # include " rocksdb / db . h " <nl> # include " rocksdb / types . h " <nl> - # include " port / atomic_pointer . h " <nl> # include " util / testutil . h " <nl> <nl> / / Run a thread to perform Put ' s . <nl> | remove atomic_pointer . h references | facebook/rocksdb | c1c68bce439ad7d392501cefffad921552af8d91 | 2014-10-27T22:12:20Z |
mmm a / util / log . h <nl> ppp b / util / log . h <nl> namespace mongo { <nl> } <nl> template < class T > <nl> Nullstream & operator < < ( const shared_ptr < T > p ) { <nl> + T * t = p . get ( ) ; <nl> + if ( ! t ) <nl> + * this < < " null " ; <nl> + else <nl> + * this < < * t ; <nl> return * this ; <nl> } <nl> template < class T > <nl> Nullstream & operator < < ( const T & t ) { <nl> return operator < < ( static_cast < const LazyString & > ( LazyStringImpl < T > ( t ) ) ) ; <nl> } <nl> + <nl> virtual Nullstream & operator < < ( ostream & ( * endl ) ( ostream & ) ) { <nl> return * this ; <nl> } <nl> virtual Nullstream & operator < < ( ios_base & ( * hex ) ( ios_base & ) ) { <nl> return * this ; <nl> } <nl> + <nl> virtual void flush ( Tee * t = 0 ) { } <nl> } ; <nl> extern Nullstream nullstream ; <nl> namespace mongo { <nl> return * this ; <nl> } <nl> <nl> - template < class T > <nl> - Nullstream & operator < < ( const shared_ptr < T > p ) { <nl> - T * t = p . get ( ) ; <nl> - if ( ! t ) <nl> - * this < < " null " ; <nl> - else <nl> - * this < < * t ; <nl> - return * this ; <nl> - } <nl> - <nl> Logstream & prolog ( ) { <nl> return * this ; <nl> } <nl> | fix log with shared_ptr | mongodb/mongo | 7e0285040eb8754f2b4e72d18bf072fbd3af82fc | 2011-01-26T16:43:43Z |
mmm a / src / mongo / db / repl / all_database_cloner . cpp <nl> ppp b / src / mongo / db / repl / all_database_cloner . cpp <nl> BaseCloner : : AfterStageBehavior AllDatabaseCloner : : getInitialSyncIdStage ( ) { <nl> return kContinueNormally ; <nl> auto initialSyncId = getClient ( ) - > findOne ( <nl> ReplicationConsistencyMarkersImpl : : kDefaultInitialSyncIdNamespace . toString ( ) , Query ( ) ) ; <nl> - / / TODO ( SERVER - 47150 ) : Remove this " if " and allow the uassert to fail . <nl> - if ( initialSyncId . isEmpty ( ) ) { <nl> - stdx : : lock_guard < InitialSyncSharedData > lk ( * getSharedData ( ) ) ; <nl> - getSharedData ( ) - > setInitialSyncSourceId ( lk , UUID : : gen ( ) ) ; <nl> - return kContinueNormally ; <nl> - } <nl> uassert ( ErrorCodes : : InitialSyncFailure , <nl> " Cannot retrieve sync source initial sync ID " , <nl> ! initialSyncId . isEmpty ( ) ) ; <nl> | SERVER - 47150 Remove initial sync patch to allow 4 . 6 to connect to 4 . 3 in multiversion tests | mongodb/mongo | ea576519e5c3445bf11aa7f880aedbee1501010c | 2020-04-28T18:55:48Z |
mmm a / src / mongo / dbtests / mock / mock_dbclient_cursor . cpp <nl> ppp b / src / mongo / dbtests / mock / mock_dbclient_cursor . cpp <nl> namespace mongo { <nl> MockDBClientCursor : : MockDBClientCursor ( mongo : : DBClientBase * client , <nl> const mongo : : BSONArray & resultSet ) : <nl> mongo : : DBClientCursor ( client , " " , 0 , 0 , 0 ) { <nl> - _cursor . reset ( new mongo : : DBClientMockCursor ( BSONArray ( resultSet . copy ( ) ) ) ) ; <nl> + _resultSet = resultSet . copy ( ) ; <nl> + _cursor . reset ( new mongo : : DBClientMockCursor ( BSONArray ( _resultSet ) ) ) ; <nl> } <nl> <nl> bool MockDBClientCursor : : more ( ) { <nl> mmm a / src / mongo / dbtests / mock / mock_dbclient_cursor . h <nl> ppp b / src / mongo / dbtests / mock / mock_dbclient_cursor . h <nl> namespace mongo { <nl> <nl> private : <nl> boost : : scoped_ptr < mongo : : DBClientMockCursor > _cursor ; <nl> + mongo : : BSONObj _resultSet ; <nl> } ; <nl> } <nl> | SERVER - 7865 Make copy of resultSet to be owned by mock cursor | mongodb/mongo | be0a3384012985ed2f8b0b568b93628bcb0c2ec8 | 2012-12-08T19:55:59Z |
mmm a / tensorflow / contrib / seq2seq / python / kernel_tests / attention_wrapper_v2_test . py <nl> ppp b / tensorflow / contrib / seq2seq / python / kernel_tests / attention_wrapper_v2_test . py <nl> def test_save_load_layer ( self , attention_cls ) : <nl> config , custom_objects = { attention_cls . __name__ : attention_cls } ) <nl> loaded_model . set_weights ( weights ) <nl> <nl> + # TODO ( b / 138592586 ) : Run with single - execution - path <nl> + loaded_model . compile ( " rmsprop " , " mse " , experimental_run_tf_function = False ) <nl> + <nl> y = loaded_model . predict_on_batch ( [ x_test , self . query , self . state ] ) <nl> <nl> self . assertAllClose ( y_ref , y ) <nl> | Add call to compile to force the use of Keras v1 execution path in legacy contrib code . | tensorflow/tensorflow | e789592ecd37af1bb6e8d962558df548f103de18 | 2019-07-30T22:36:31Z |
mmm a / fdbclient / DatabaseConfiguration . cpp <nl> ppp b / fdbclient / DatabaseConfiguration . cpp <nl> bool DatabaseConfiguration : : setInternal ( KeyRef key , ValueRef value ) { <nl> KeyRef ck = key . removePrefix ( configKeysPrefix ) ; <nl> int type ; <nl> <nl> - if ( ck = = LiteralStringRef ( " initialized " ) ) initialized = true ; <nl> - else if ( ck = = LiteralStringRef ( " proxies " ) ) <nl> + if ( ck = = LiteralStringRef ( " initialized " ) ) { <nl> + initialized = true ; <nl> + } else if ( ck = = LiteralStringRef ( " proxies " ) ) { <nl> parse ( & proxyCount , value ) ; <nl> - else if ( ck = = LiteralStringRef ( " grv_proxies " ) ) <nl> + } else if ( ck = = LiteralStringRef ( " grv_proxies " ) ) { <nl> parse ( & grvProxyCount , value ) ; <nl> - else if ( ck = = LiteralStringRef ( " resolvers " ) ) parse ( & resolverCount , value ) ; <nl> - else if ( ck = = LiteralStringRef ( " logs " ) ) parse ( & desiredTLogCount , value ) ; <nl> - else if ( ck = = LiteralStringRef ( " log_replicas " ) ) { <nl> + } else if ( ck = = LiteralStringRef ( " resolvers " ) ) { <nl> + parse ( & resolverCount , value ) ; <nl> + } else if ( ck = = LiteralStringRef ( " logs " ) ) { <nl> + parse ( & desiredTLogCount , value ) ; <nl> + } else if ( ck = = LiteralStringRef ( " log_replicas " ) ) { <nl> parse ( & tLogReplicationFactor , value ) ; <nl> tLogWriteAntiQuorum = std : : min ( tLogWriteAntiQuorum , tLogReplicationFactor / 2 ) ; <nl> - } <nl> - else if ( ck = = LiteralStringRef ( " log_anti_quorum " ) ) { <nl> + } else if ( ck = = LiteralStringRef ( " log_anti_quorum " ) ) { <nl> parse ( & tLogWriteAntiQuorum , value ) ; <nl> if ( tLogReplicationFactor > 0 ) { <nl> tLogWriteAntiQuorum = std : : min ( tLogWriteAntiQuorum , tLogReplicationFactor / 2 ) ; <nl> } <nl> - } <nl> - else if ( ck = = LiteralStringRef ( " storage_replicas " ) ) parse ( & storageTeamSize , value ) ; <nl> - else if ( ck = = LiteralStringRef ( " log_version " ) ) { <nl> + } else if ( ck = = LiteralStringRef ( " storage_replicas " ) ) { <nl> + parse ( & storageTeamSize , value ) ; <nl> + } else if ( ck = = LiteralStringRef ( " log_version " ) ) { <nl> parse ( ( & type ) , value ) ; <nl> type = std : : max ( ( int ) TLogVersion : : MIN_RECRUITABLE , type ) ; <nl> type = std : : min ( ( int ) TLogVersion : : MAX_SUPPORTED , type ) ; <nl> tLogVersion = ( TLogVersion : : Version ) type ; <nl> - } <nl> - else if ( ck = = LiteralStringRef ( " log_engine " ) ) { <nl> + } else if ( ck = = LiteralStringRef ( " log_engine " ) ) { <nl> parse ( ( & type ) , value ) ; <nl> tLogDataStoreType = ( KeyValueStoreType : : StoreType ) type ; <nl> / / TODO : Remove this once Redwood works as a log engine <nl> bool DatabaseConfiguration : : setInternal ( KeyRef key , ValueRef value ) { <nl> if ( tLogDataStoreType = = KeyValueStoreType : : MEMORY_RADIXTREE ) { <nl> tLogDataStoreType = KeyValueStoreType : : SSD_BTREE_V2 ; <nl> } <nl> - } <nl> - else if ( ck = = LiteralStringRef ( " log_spill " ) ) { parse ( ( & type ) , value ) ; tLogSpillType = ( TLogSpillType : : SpillType ) type ; <nl> + } else if ( ck = = LiteralStringRef ( " log_spill " ) ) { <nl> + parse ( ( & type ) , value ) ; <nl> + tLogSpillType = ( TLogSpillType : : SpillType ) type ; <nl> } else if ( ck = = LiteralStringRef ( " storage_engine " ) ) { <nl> parse ( ( & type ) , value ) ; <nl> storageServerStoreType = ( KeyValueStoreType : : StoreType ) type ; <nl> - } else if ( ck = = LiteralStringRef ( " auto_proxies " ) ) <nl> + } else if ( ck = = LiteralStringRef ( " auto_proxies " ) ) { <nl> parse ( & autoProxyCount , value ) ; <nl> - else if ( ck = = LiteralStringRef ( " auto_grv_proxies " ) ) <nl> + } else if ( ck = = LiteralStringRef ( " auto_grv_proxies " ) ) { <nl> parse ( & autoGrvProxyCount , value ) ; <nl> - else if ( ck = = LiteralStringRef ( " auto_resolvers " ) ) parse ( & autoResolverCount , value ) ; <nl> - else if ( ck = = LiteralStringRef ( " auto_logs " ) ) parse ( & autoDesiredTLogCount , value ) ; <nl> - else if ( ck = = LiteralStringRef ( " storage_replication_policy " ) ) parseReplicationPolicy ( & storagePolicy , value ) ; <nl> - else if ( ck = = LiteralStringRef ( " log_replication_policy " ) ) parseReplicationPolicy ( & tLogPolicy , value ) ; <nl> - else if ( ck = = LiteralStringRef ( " log_routers " ) ) parse ( & desiredLogRouterCount , value ) ; <nl> - else if ( ck = = LiteralStringRef ( " remote_logs " ) ) parse ( & remoteDesiredTLogCount , value ) ; <nl> - else if ( ck = = LiteralStringRef ( " remote_log_replicas " ) ) parse ( & remoteTLogReplicationFactor , value ) ; <nl> - else if ( ck = = LiteralStringRef ( " remote_log_policy " ) ) parseReplicationPolicy ( & remoteTLogPolicy , value ) ; <nl> - else if ( ck = = LiteralStringRef ( " backup_worker_enabled " ) ) { <nl> + } else if ( ck = = LiteralStringRef ( " auto_resolvers " ) ) { <nl> + parse ( & autoResolverCount , value ) ; <nl> + } else if ( ck = = LiteralStringRef ( " auto_logs " ) ) { <nl> + parse ( & autoDesiredTLogCount , value ) ; <nl> + } else if ( ck = = LiteralStringRef ( " storage_replication_policy " ) ) { <nl> + parseReplicationPolicy ( & storagePolicy , value ) ; <nl> + } else if ( ck = = LiteralStringRef ( " log_replication_policy " ) ) { <nl> + parseReplicationPolicy ( & tLogPolicy , value ) ; <nl> + } else if ( ck = = LiteralStringRef ( " log_routers " ) ) { <nl> + parse ( & desiredLogRouterCount , value ) ; <nl> + } else if ( ck = = LiteralStringRef ( " remote_logs " ) ) { <nl> + parse ( & remoteDesiredTLogCount , value ) ; <nl> + } else if ( ck = = LiteralStringRef ( " remote_log_replicas " ) ) { <nl> + parse ( & remoteTLogReplicationFactor , value ) ; <nl> + } else if ( ck = = LiteralStringRef ( " remote_log_policy " ) ) { <nl> + parseReplicationPolicy ( & remoteTLogPolicy , value ) ; <nl> + } else if ( ck = = LiteralStringRef ( " backup_worker_enabled " ) ) { <nl> parse ( ( & type ) , value ) ; <nl> backupWorkerEnabled = ( type ! = 0 ) ; <nl> - } else if ( ck = = LiteralStringRef ( " usable_regions " ) ) <nl> + } else if ( ck = = LiteralStringRef ( " usable_regions " ) ) { <nl> parse ( & usableRegions , value ) ; <nl> - else if ( ck = = LiteralStringRef ( " repopulate_anti_quorum " ) ) parse ( & repopulateRegionAntiQuorum , value ) ; <nl> - else if ( ck = = LiteralStringRef ( " regions " ) ) parse ( & regions , value ) ; <nl> - else return false ; <nl> + } else if ( ck = = LiteralStringRef ( " repopulate_anti_quorum " ) ) { <nl> + parse ( & repopulateRegionAntiQuorum , value ) ; <nl> + } else if ( ck = = LiteralStringRef ( " regions " ) ) { <nl> + parse ( & regions , value ) ; <nl> + } else { <nl> + return false ; <nl> + } <nl> return true ; / / All of the above options currently require recovery to take effect <nl> } <nl> <nl> mmm a / fdbserver / ClusterController . actor . cpp <nl> ppp b / fdbserver / ClusterController . actor . cpp <nl> class ClusterControllerData { <nl> bool checkStable = false , <nl> std : : set < Optional < Key > > dcIds = std : : set < Optional < Key > > ( ) , <nl> std : : vector < UID > exclusionWorkerIds = { } ) { <nl> - for ( auto & pair : dcIds ) { <nl> - TraceEvent ( " DcIds " ) . detail ( " Key " , pair . present ( ) ? pair . get ( ) . toString ( ) : " absent " ) ; <nl> - } <nl> std : : map < std : : pair < ProcessClass : : Fitness , bool > , vector < WorkerDetails > > fitness_workers ; <nl> std : : vector < WorkerDetails > results ; <nl> std : : vector < LocalityData > unavailableLocals ; <nl> class ClusterControllerData { <nl> TraceEvent ( " GetTLogTeamDone " ) . detail ( " Completed " , bCompleted ) . detail ( " Policy " , policy - > info ( ) ) . detail ( " Results " , results . size ( ) ) . detail ( " Processes " , logServerSet - > size ( ) ) . detail ( " Workers " , id_worker . size ( ) ) <nl> . detail ( " Required " , required ) . detail ( " Desired " , desired ) . detail ( " RatingTests " , SERVER_KNOBS - > POLICY_RATING_TESTS ) . detail ( " PolicyGenerations " , SERVER_KNOBS - > POLICY_GENERATIONS ) ; <nl> <nl> - <nl> return results ; <nl> } <nl> <nl> class ClusterControllerData { <nl> } <nl> <nl> RecruitFromConfigurationReply findWorkersForConfiguration ( RecruitFromConfigurationRequest const & req ) { <nl> - TraceEvent ( " RLoc1 " ) . detail ( " Regions " , req . configuration . regions . size ( ) ) ; <nl> if ( req . configuration . regions . size ( ) > 1 ) { <nl> std : : vector < RegionInfo > regions = req . configuration . regions ; <nl> if ( regions [ 0 ] . priority = = regions [ 1 ] . priority & & regions [ 1 ] . dcId = = clusterControllerDcId . get ( ) ) { <nl> ACTOR Future < Void > workerAvailabilityWatch ( WorkerInterface worker , ProcessClass <nl> } <nl> when ( wait ( failed ) ) { / / remove workers that have failed <nl> WorkerInfo & failedWorkerInfo = cluster - > id_worker [ worker . locality . processId ( ) ] ; <nl> - TraceEvent ( " RemoveWorker " ) <nl> - . detail ( " Process " , worker . locality . processId ( ) ) <nl> - . detail ( " PC " , failedWorkerInfo . details . processClass . toString ( ) ) ; <nl> <nl> if ( ! failedWorkerInfo . reply . isSet ( ) ) { <nl> failedWorkerInfo . reply . send ( RegisterWorkerReply ( failedWorkerInfo . details . processClass , failedWorkerInfo . priorityInfo ) ) ; <nl> void registerWorker ( RegisterWorkerRequest req , ClusterControllerData * self ) { <nl> <nl> if ( info = = self - > id_worker . end ( ) ) { <nl> self - > id_worker [ w . locality . processId ( ) ] = WorkerInfo ( workerAvailabilityWatch ( w , newProcessClass , self ) , req . reply , req . generation , w , req . initialClass , newProcessClass , newPriorityInfo , req . degraded , req . issues ) ; <nl> - TraceEvent ( " AddingWorker " ) . detail ( " WorkerId " , w . locality . processId ( ) ) . detail ( " PC " , newProcessClass . toString ( ) ) ; <nl> if ( ! self - > masterProcessId . present ( ) & & w . locality . processId ( ) = = self - > db . serverInfo - > get ( ) . master . locality . processId ( ) ) { <nl> self - > masterProcessId = w . locality . processId ( ) ; <nl> } <nl> mmm a / fdbserver / GrvProxyServer . actor . cpp <nl> ppp b / fdbserver / GrvProxyServer . actor . cpp <nl> ACTOR Future < Void > getRate ( UID myID , Reference < AsyncVar < ServerDBInfo > > db , int64 <nl> } <nl> <nl> ACTOR Future < Void > queueGetReadVersionRequests ( <nl> - Reference < AsyncVar < ServerDBInfo > > db , <nl> - SpannedDeque < GetReadVersionRequest > * systemQueue , <nl> - SpannedDeque < GetReadVersionRequest > * defaultQueue , <nl> - SpannedDeque < GetReadVersionRequest > * batchQueue , <nl> - FutureStream < GetReadVersionRequest > readVersionRequests , <nl> - PromiseStream < Void > GRVTimer , double * lastGRVTime , <nl> - double * GRVBatchTime , FutureStream < double > replyTimes , <nl> - GrvProxyStats * stats , GrvTransactionRateInfo * batchRateInfo , <nl> - TransactionTagMap < uint64_t > * transactionTagCounter ) <nl> - { <nl> + Reference < AsyncVar < ServerDBInfo > > db , SpannedDeque < GetReadVersionRequest > * systemQueue , <nl> + SpannedDeque < GetReadVersionRequest > * defaultQueue , SpannedDeque < GetReadVersionRequest > * batchQueue , <nl> + FutureStream < GetReadVersionRequest > readVersionRequests , PromiseStream < Void > GRVTimer , double * lastGRVTime , <nl> + double * GRVBatchTime , FutureStream < double > normalGRVLatency , GrvProxyStats * stats , <nl> + GrvTransactionRateInfo * batchRateInfo , TransactionTagMap < uint64_t > * transactionTagCounter ) { <nl> loop choose { <nl> when ( GetReadVersionRequest req = waitNext ( readVersionRequests ) ) { <nl> / / WARNING : this code is run at a high priority , so it needs to do as little work as possible <nl> ACTOR Future < Void > queueGetReadVersionRequests ( <nl> } <nl> } <nl> / / dynamic batching monitors reply latencies <nl> - when ( double reply_latency = waitNext ( replyTimes ) ) { <nl> - double target_latency = reply_latency * SERVER_KNOBS - > START_TRANSACTION_BATCH_INTERVAL_LATENCY_FRACTION ; <nl> + when ( double reply_latency = waitNext ( normalGRVLatency ) ) { <nl> + double target_latency = reply_latency * SERVER_KNOBS - > START_TRANSACTION_BATCH_INTERVAL_LATENCY_FRACTION ; <nl> * GRVBatchTime = std : : max ( <nl> SERVER_KNOBS - > START_TRANSACTION_BATCH_INTERVAL_MIN , <nl> std : : min ( SERVER_KNOBS - > START_TRANSACTION_BATCH_INTERVAL_MAX , <nl> target_latency * SERVER_KNOBS - > START_TRANSACTION_BATCH_INTERVAL_SMOOTHER_ALPHA + <nl> * GRVBatchTime * ( 1 - SERVER_KNOBS - > START_TRANSACTION_BATCH_INTERVAL_SMOOTHER_ALPHA ) ) ) ; <nl> - } <nl> - } <nl> + } <nl> + } <nl> } <nl> <nl> ACTOR Future < Void > updateLastCommit ( GrvProxyData * self , Optional < UID > debugID = Optional < UID > ( ) ) { <nl> ACTOR static Future < Void > getReadVersionServer ( <nl> state TransactionTagMap < uint64_t > transactionTagCounter ; <nl> state PrioritizedTransactionTagMap < ClientTagThrottleLimits > throttledTags ; <nl> <nl> - state PromiseStream < double > replyTimes ; <nl> + state PromiseStream < double > normalGRVLatency ; <nl> state Span span ; <nl> <nl> addActor . send ( getRate ( proxy . id ( ) , db , & transactionCount , & batchTransactionCount , & normalRateInfo , & batchRateInfo , healthMetricsReply , detailedHealthMetricsReply , & transactionTagCounter , & throttledTags ) ) ; <nl> - addActor . send ( queueGetReadVersionRequests ( db , & systemQueue , & defaultQueue , & batchQueue , proxy . getConsistentReadVersion . getFuture ( ) , <nl> - GRVTimer , & lastGRVTime , & GRVBatchTime , replyTimes . getFuture ( ) , & grvProxyData - > stats , & batchRateInfo , <nl> - & transactionTagCounter ) ) ; <nl> + addActor . send ( queueGetReadVersionRequests ( db , & systemQueue , & defaultQueue , & batchQueue , <nl> + proxy . getConsistentReadVersion . getFuture ( ) , GRVTimer , & lastGRVTime , <nl> + & GRVBatchTime , normalGRVLatency . getFuture ( ) , & grvProxyData - > stats , <nl> + & batchRateInfo , & transactionTagCounter ) ) ; <nl> <nl> - while ( std : : find ( db - > get ( ) . client . grvProxies . begin ( ) , db - > get ( ) . client . grvProxies . end ( ) , proxy ) = = db - > get ( ) . client . grvProxies . end ( ) ) <nl> + while ( std : : find ( db - > get ( ) . client . grvProxies . begin ( ) , db - > get ( ) . client . grvProxies . end ( ) , proxy ) = = <nl> + db - > get ( ) . client . grvProxies . end ( ) ) { <nl> wait ( db - > onChange ( ) ) ; <nl> + } <nl> <nl> ASSERT ( db - > get ( ) . recoveryState > = RecoveryState : : ACCEPTING_COMMITS ) ; / / else potentially we could return uncommitted read versions from master . <nl> TraceEvent ( " GrvProxyReadyForTxnStarts " , proxy . id ( ) ) ; <nl> ACTOR static Future < Void > getReadVersionServer ( <nl> double elapsed = now ( ) - lastGRVTime ; <nl> lastGRVTime = t ; <nl> <nl> - if ( elapsed = = 0 ) elapsed = 1e - 15 ; / / resolve a possible indeterminant multiplication with infinite transaction rate <nl> + / / Resolve a possible indeterminate multiplication with infinite transaction rate <nl> + if ( elapsed = = 0 ) { <nl> + elapsed = 1e - 15 ; <nl> + } <nl> <nl> normalRateInfo . reset ( ) ; <nl> batchRateInfo . reset ( ) ; <nl> ACTOR static Future < Void > getReadVersionServer ( <nl> addActor . send ( sendGrvReplies ( readVersionReply , start [ i ] , & grvProxyData - > stats , <nl> grvProxyData - > minKnownCommittedVersion , throttledTags ) ) ; <nl> <nl> - / / for now , base dynamic batching on the time for normal requests ( not read_risky ) <nl> + / / Use normal priority transaction ' s GRV latency to dynamically calculate transaction batching interval . <nl> if ( i = = 0 ) { <nl> - addActor . send ( timeReply ( readVersionReply , replyTimes ) ) ; <nl> + addActor . send ( timeReply ( readVersionReply , normalGRVLatency ) ) ; <nl> } <nl> } <nl> } <nl> ACTOR Future < Void > grvProxyServer ( <nl> } <nl> } <nl> return Void ( ) ; <nl> - } <nl> \ No newline at end of file <nl> + } <nl> | Change some formatting issues | apple/foundationdb | 19df032aecb84d77deea6ebd1274c1e760236ecc | 2020-08-13T22:30:21Z |
mmm a / tensorflow / c / experimental / filesystem / plugins / hadoop / BUILD <nl> ppp b / tensorflow / c / experimental / filesystem / plugins / hadoop / BUILD <nl> <nl> # Experimental hadoop filesystem plugin . <nl> - load ( " / / tensorflow : tensorflow . bzl " , " get_win_copts " , " tf_cc_shared_object " ) <nl> + load ( " / / tensorflow : tensorflow . bzl " , " get_win_copts " , " tf_cc_shared_object " , " tf_cc_test " ) <nl> <nl> package ( <nl> licenses = [ " notice " ] , # Apache 2 . 0 <nl> cc_library ( <nl> " @ com_google_absl / / absl / synchronization " , <nl> ] , <nl> ) <nl> + <nl> + tf_cc_test ( <nl> + name = " hadoop_filesystem_test " , <nl> + srcs = [ <nl> + " hadoop_filesystem_test . cc " , <nl> + ] , <nl> + tags = [ <nl> + " manual " , <nl> + " notap " , <nl> + ] , <nl> + deps = [ <nl> + " : hadoop_filesystem_impl " , <nl> + " / / tensorflow / core / platform : path " , <nl> + " / / tensorflow / core / platform : stacktrace_handler " , <nl> + " / / tensorflow / core / platform : test " , <nl> + ] , <nl> + ) <nl> mmm a / tensorflow / c / experimental / filesystem / plugins / hadoop / hadoop_filesystem . cc <nl> ppp b / tensorflow / c / experimental / filesystem / plugins / hadoop / hadoop_filesystem . cc <nl> typedef struct HDFSFile { <nl> handle ( handle ) { } <nl> } HDFSFile ; <nl> <nl> - static void Cleanup ( TF_WritableFile * file ) { <nl> + void Cleanup ( TF_WritableFile * file ) { <nl> auto hdfs_file = static_cast < HDFSFile * > ( file - > plugin_file ) ; <nl> hdfs_file - > libhdfs - > hdfsCloseFile ( hdfs_file - > fs , hdfs_file - > handle ) ; <nl> hdfs_file - > fs = nullptr ; <nl> mmm a / tensorflow / c / experimental / filesystem / plugins / hadoop / hadoop_filesystem . h <nl> ppp b / tensorflow / c / experimental / filesystem / plugins / hadoop / hadoop_filesystem . h <nl> limitations under the License . <nl> # ifndef TENSORFLOW_C_EXPERIMENTAL_FILESYSTEM_PLUGINS_HADOOP_HADOOP_FILESYSTEM_H_ <nl> # define TENSORFLOW_C_EXPERIMENTAL_FILESYSTEM_PLUGINS_HADOOP_HADOOP_FILESYSTEM_H_ <nl> <nl> + # include < string > <nl> + <nl> # include " tensorflow / c / experimental / filesystem / filesystem_interface . h " <nl> # include " tensorflow / c / tf_status . h " <nl> <nl> + void ParseHadoopPath ( const std : : string & fname , std : : string * scheme , <nl> + std : : string * namenode , std : : string * path ) ; <nl> + class LibHDFS ; <nl> + <nl> + namespace tf_random_access_file { <nl> + void Cleanup ( TF_RandomAccessFile * file ) ; <nl> + int64_t Read ( const TF_RandomAccessFile * file , uint64_t offset , size_t n , <nl> + char * buffer , TF_Status * status ) ; <nl> + } / / namespace tf_random_access_file <nl> + <nl> + namespace tf_writable_file { <nl> + void Cleanup ( TF_WritableFile * file ) ; <nl> + void Append ( const TF_WritableFile * file , const char * buffer , size_t n , <nl> + TF_Status * status ) ; <nl> + int64_t Tell ( const TF_WritableFile * file , TF_Status * status ) ; <nl> + void Sync ( const TF_WritableFile * file , TF_Status * status ) ; <nl> + void Flush ( const TF_WritableFile * file , TF_Status * status ) ; <nl> + void Close ( const TF_WritableFile * file , TF_Status * status ) ; <nl> + } / / namespace tf_writable_file <nl> + <nl> + namespace tf_hadoop_filesystem { <nl> + void Init ( TF_Filesystem * filesystem , TF_Status * status ) ; <nl> + void Cleanup ( TF_Filesystem * filesystem ) ; <nl> + void NewRandomAccessFile ( const TF_Filesystem * filesystem , const char * path , <nl> + TF_RandomAccessFile * file , TF_Status * status ) ; <nl> + void NewWritableFile ( const TF_Filesystem * filesystem , const char * path , <nl> + TF_WritableFile * file , TF_Status * status ) ; <nl> + void NewReadOnlyMemoryRegionFromFile ( const TF_Filesystem * filesystem , <nl> + const char * path , <nl> + TF_ReadOnlyMemoryRegion * region , <nl> + TF_Status * status ) ; <nl> + void PathExists ( const TF_Filesystem * filesystem , const char * path , <nl> + TF_Status * status ) ; <nl> + void Stat ( const TF_Filesystem * filesystem , const char * path , <nl> + TF_FileStatistics * stats , TF_Status * status ) ; <nl> + int64_t GetFileSize ( const TF_Filesystem * filesystem , const char * path , <nl> + TF_Status * status ) ; <nl> + void DeleteFile ( const TF_Filesystem * filesystem , const char * path , <nl> + TF_Status * status ) ; <nl> + void CreateDir ( const TF_Filesystem * filesystem , const char * path , <nl> + TF_Status * status ) ; <nl> + void DeleteDir ( const TF_Filesystem * filesystem , const char * path , <nl> + TF_Status * status ) ; <nl> + void RenameFile ( const TF_Filesystem * filesystem , const char * src , <nl> + const char * dst , TF_Status * status ) ; <nl> + int GetChildren ( const TF_Filesystem * filesystem , const char * path , <nl> + char * * * entries , TF_Status * status ) ; <nl> + } / / namespace tf_hadoop_filesystem <nl> + <nl> # endif / / TENSORFLOW_C_EXPERIMENTAL_FILESYSTEM_PLUGINS_HADOOP_HADOOP_FILESYSTEM_H_ <nl> new file mode 100644 <nl> index 0000000000000 . . 57888c112c3a5 <nl> mmm / dev / null <nl> ppp b / tensorflow / c / experimental / filesystem / plugins / hadoop / hadoop_filesystem_test . cc <nl> <nl> + / * Copyright 2020 The TensorFlow Authors . All Rights Reserved . <nl> + <nl> + Licensed under the Apache License , Version 2 . 0 ( the " License " ) ; <nl> + you may not use this file except in compliance with the License . <nl> + You may obtain a copy of the License at <nl> + <nl> + http : / / www . apache . org / licenses / LICENSE - 2 . 0 <nl> + <nl> + Unless required by applicable law or agreed to in writing , software <nl> + distributed under the License is distributed on an " AS IS " BASIS , <nl> + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND , either express or implied . <nl> + See the License for the specific language governing permissions and <nl> + limitations under the License . <nl> + = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = * / <nl> + # include " tensorflow / c / experimental / filesystem / plugins / hadoop / hadoop_filesystem . h " <nl> + <nl> + # include " tensorflow / core / platform / path . h " <nl> + # include " tensorflow / core / platform / stacktrace_handler . h " <nl> + # include " tensorflow / core / platform / test . h " <nl> + <nl> + # define ASSERT_TF_OK ( x ) ASSERT_EQ ( TF_OK , TF_GetCode ( x ) ) < < TF_Message ( x ) <nl> + # define EXPECT_TF_OK ( x ) EXPECT_EQ ( TF_OK , TF_GetCode ( x ) ) < < TF_Message ( x ) <nl> + <nl> + namespace tensorflow { <nl> + namespace { <nl> + <nl> + class HadoopFileSystemTest : public : : testing : : Test { <nl> + public : <nl> + void SetUp ( ) override { <nl> + status_ = TF_NewStatus ( ) ; <nl> + filesystem_ = new TF_Filesystem ; <nl> + tf_hadoop_filesystem : : Init ( filesystem_ , status_ ) ; <nl> + ASSERT_TF_OK ( status_ ) < < " Could not initialize filesystem . " <nl> + < < TF_Message ( status_ ) ; <nl> + } <nl> + void TearDown ( ) override { <nl> + TF_DeleteStatus ( status_ ) ; <nl> + tf_hadoop_filesystem : : Cleanup ( filesystem_ ) ; <nl> + delete filesystem_ ; <nl> + } <nl> + <nl> + std : : string TmpDir ( const std : : string & path ) { <nl> + char * test_dir = getenv ( " HADOOP_TEST_TMPDIR " ) ; <nl> + if ( test_dir ! = nullptr ) { <nl> + return io : : JoinPath ( std : : string ( test_dir ) , path ) ; <nl> + } else { <nl> + return " file : / / " + io : : JoinPath ( testing : : TmpDir ( ) , path ) ; <nl> + } <nl> + } <nl> + <nl> + std : : unique_ptr < TF_WritableFile , void ( * ) ( TF_WritableFile * file ) > <nl> + GetWriter ( ) { <nl> + std : : unique_ptr < TF_WritableFile , void ( * ) ( TF_WritableFile * file ) > writer ( <nl> + new TF_WritableFile , [ ] ( TF_WritableFile * file ) { <nl> + if ( file ! = nullptr ) { <nl> + if ( file - > plugin_file ! = nullptr ) tf_writable_file : : Cleanup ( file ) ; <nl> + delete file ; <nl> + } <nl> + } ) ; <nl> + writer - > plugin_file = nullptr ; <nl> + return writer ; <nl> + } <nl> + <nl> + std : : unique_ptr < TF_RandomAccessFile , void ( * ) ( TF_RandomAccessFile * file ) > <nl> + GetReader ( ) { <nl> + std : : unique_ptr < TF_RandomAccessFile , void ( * ) ( TF_RandomAccessFile * file ) > <nl> + reader ( new TF_RandomAccessFile , [ ] ( TF_RandomAccessFile * file ) { <nl> + if ( file ! = nullptr ) { <nl> + if ( file - > plugin_file ! = nullptr ) <nl> + tf_random_access_file : : Cleanup ( file ) ; <nl> + delete file ; <nl> + } <nl> + } ) ; <nl> + reader - > plugin_file = nullptr ; <nl> + return reader ; <nl> + } <nl> + <nl> + protected : <nl> + TF_Filesystem * filesystem_ ; <nl> + TF_Status * status_ ; <nl> + } ; <nl> + <nl> + TEST_F ( HadoopFileSystemTest , Init ) { ASSERT_TF_OK ( status_ ) ; } <nl> + <nl> + } / / namespace <nl> + } / / namespace tensorflow <nl> + <nl> + GTEST_API_ int main ( int argc , char * * argv ) { <nl> + tensorflow : : testing : : InstallStacktraceHandler ( ) ; <nl> + : : testing : : InitGoogleTest ( & argc , argv ) ; <nl> + return RUN_ALL_TESTS ( ) ; <nl> + } <nl> | Add Init test hadoop | tensorflow/tensorflow | 4dd0a04b12653cd46fc778983d0f64d4c888385a | 2020-08-12T17:18:43Z |
mmm a / src / ui / manager . cpp <nl> ppp b / src / ui / manager . cpp <nl> RedrawState redrawState = RedrawState : : Normal ; <nl> <nl> } / / anonymous namespace <nl> <nl> - # define ACCEPT_FOCUS ( widget ) \ <nl> - ( ( ( ( widget ) - > flags ( ) & ( FOCUS_STOP | \ <nl> - DISABLED | \ <nl> - HIDDEN | \ <nl> - DECORATIVE ) ) = = FOCUS_STOP ) & & \ <nl> - ( ( widget ) - > isVisible ( ) ) ) <nl> - <nl> static const int NFILTERS = ( int ) ( kFirstRegisteredMessage + 1 ) ; <nl> <nl> struct Filter { <nl> static bool first_time = true ; / / true when we don ' t enter in poll yet <nl> / / when the os : : Display is resized by the user . <nl> static bool auto_window_adjustment = true ; <nl> <nl> - / * keyboard focus movement stuff * / <nl> + / / Keyboard focus movement stuff <nl> + inline bool does_accept_focus ( Widget * widget ) <nl> + { <nl> + return ( ( ( ( widget ) - > flags ( ) & ( FOCUS_STOP | <nl> + DISABLED | <nl> + HIDDEN | <nl> + DECORATIVE ) ) = = FOCUS_STOP ) & & <nl> + ( ( widget ) - > isVisible ( ) ) ) ; <nl> + } <nl> + <nl> static int count_widgets_accept_focus ( Widget * widget ) ; <nl> static bool child_accept_focus ( Widget * widget , bool first ) ; <nl> static Widget * next_widget ( Widget * widget ) ; <nl> void Manager : : attractFocus ( Widget * widget ) <nl> void Manager : : focusFirstChild ( Widget * widget ) <nl> { <nl> for ( Widget * it = widget - > window ( ) ; it ; it = next_widget ( it ) ) { <nl> - if ( ACCEPT_FOCUS ( it ) & & ! ( child_accept_focus ( it , true ) ) ) { <nl> + if ( does_accept_focus ( it ) & & ! ( child_accept_focus ( it , true ) ) ) { <nl> setFocus ( it ) ; <nl> break ; <nl> } <nl> bool Manager : : processFocusMovementMessage ( Message * msg ) <nl> <nl> / / Create a list of possible candidates to receive the focus <nl> for ( it = focus_widget ; it ; it = next_widget ( it ) ) { <nl> - if ( ACCEPT_FOCUS ( it ) & & ! ( child_accept_focus ( it , true ) ) ) <nl> + if ( does_accept_focus ( it ) & & ! ( child_accept_focus ( it , true ) ) ) <nl> list [ c + + ] = it ; <nl> } <nl> for ( it = window ; it ! = focus_widget ; it = next_widget ( it ) ) { <nl> - if ( ACCEPT_FOCUS ( it ) & & ! ( child_accept_focus ( it , true ) ) ) <nl> + if ( does_accept_focus ( it ) & & ! ( child_accept_focus ( it , true ) ) ) <nl> list [ c + + ] = it ; <nl> } <nl> <nl> static int count_widgets_accept_focus ( Widget * widget ) <nl> for ( auto child : widget - > children ( ) ) <nl> count + = count_widgets_accept_focus ( child ) ; <nl> <nl> - if ( ( count = = 0 ) & & ( ACCEPT_FOCUS ( widget ) ) ) <nl> + if ( ( count = = 0 ) & & ( does_accept_focus ( widget ) ) ) <nl> count + + ; <nl> <nl> return count ; <nl> static bool child_accept_focus ( Widget * widget , bool first ) <nl> if ( child_accept_focus ( child , false ) ) <nl> return true ; <nl> <nl> - return ( first ? false : ACCEPT_FOCUS ( widget ) ) ; <nl> + return ( first ? false : does_accept_focus ( widget ) ) ; <nl> } <nl> <nl> static Widget * next_widget ( Widget * widget ) <nl> | Replace internal macro with an inlined function | aseprite/aseprite | 3ccd09dd8d9ef62f54c2c32c7c29853e657dd848 | 2018-12-13T14:00:22Z |
mmm a / cmake / modules / SwiftConfig . cmake . in <nl> ppp b / cmake / modules / SwiftConfig . cmake . in <nl> <nl> set ( SWIFT_VERSION @ SWIFT_VERSION @ ) <nl> set ( SWIFT_MAIN_SRC_DIR @ SWIFT_SOURCE_DIR @ ) <nl> <nl> - set ( SWIFT_INCLUDE_DIRS " @ SWIFT_INCLUDE_DIR @ " ) <nl> + set ( SWIFT_INCLUDE_DIRS " @ SWIFT_INCLUDE_DIRS @ " ) <nl> set ( SWIFT_LIBRARY_DIRS " @ SWIFT_CONFIG_LIBRARY_DIRS @ " ) <nl> <nl> # These variables are duplicated , but they must match the LLVM variables of the <nl> endif ( ) <nl> if ( NOT TARGET swift ) <nl> set ( SWIFT_EXPORTED_TARGETS " @ SWIFT_CONFIG_EXPORTS @ " ) <nl> include ( " @ SWIFT_EXPORTS_FILE @ " ) <nl> - endif ( ) <nl> \ No newline at end of file <nl> + endif ( ) <nl> | Merge pull request from kastiglione / patch - 1 | apple/swift | a06364e5d77a4681e46594b4ba95880917b2e315 | 2019-04-18T23:57:13Z |
old mode 100644 <nl> new mode 100755 <nl> index c829830e724 . . 68a6395dea6 <nl> mmm a / samples / gpu / driver_api_multi . cpp <nl> ppp b / samples / gpu / driver_api_multi . cpp <nl> <nl> # endif <nl> <nl> # include < iostream > <nl> - # include " cvconfig . h " <nl> # include " opencv2 / core / core . hpp " <nl> # include " opencv2 / gpu / gpu . hpp " <nl> <nl> - # if ! defined ( HAVE_CUDA ) | | ! defined ( HAVE_TBB ) | | defined ( __arm__ ) <nl> - <nl> + # if defined ( __arm__ ) <nl> int main ( ) <nl> { <nl> - # if ! defined ( HAVE_CUDA ) <nl> - std : : cout < < " CUDA support is required ( CMake key ' WITH_CUDA ' must be true ) . \ n " ; <nl> - # endif <nl> - <nl> - # if ! defined ( HAVE_TBB ) <nl> - std : : cout < < " TBB support is required ( CMake key ' WITH_TBB ' must be true ) . \ n " ; <nl> - # endif <nl> - <nl> - # if defined ( __arm__ ) <nl> std : : cout < < " Unsupported for ARM CUDA library . " < < std : : endl ; <nl> - # endif <nl> - <nl> return 0 ; <nl> } <nl> - <nl> # else <nl> <nl> # include < cuda . h > <nl> # include < cuda_runtime . h > <nl> - # include " opencv2 / core / internal . hpp " / / For TBB wrappers <nl> <nl> using namespace std ; <nl> using namespace cv ; <nl> using namespace cv : : gpu ; <nl> <nl> - struct Worker { void operator ( ) ( int device_id ) const ; } ; <nl> - void destroyContexts ( ) ; <nl> - <nl> # define safeCall ( expr ) safeCall_ ( expr , # expr , __FILE__ , __LINE__ ) <nl> inline void safeCall_ ( int code , const char * expr , const char * file , int line ) <nl> { <nl> if ( code ! = CUDA_SUCCESS ) <nl> { <nl> std : : cout < < " CUDA driver API error : code " < < code < < " , expr " < < expr <nl> - < < " , file " < < file < < " , line " < < line < < endl ; <nl> - destroyContexts ( ) ; <nl> + < < " , file " < < file < < " , line " < < line < < endl ; <nl> exit ( - 1 ) ; <nl> } <nl> } <nl> <nl> - / / Each GPU is associated with its own context <nl> - CUcontext contexts [ 2 ] ; <nl> + struct Worker : public ParallelLoopBody <nl> + { <nl> + Worker ( int num_devices ) <nl> + { <nl> + count = num_devices ; <nl> + contexts = new contexts CUcontext [ num_devices ] ; <nl> + for ( int device_id = 0 ; i < num_devices ; device_id + + ) <nl> + { <nl> + CUdevice device ; <nl> + safeCall ( cuDeviceGet ( & device , device_id ) ) ; <nl> + safeCall ( cuCtxCreate ( & contexts [ device_id ] , 0 , device ) ) ; <nl> + } <nl> + } <nl> + <nl> + virtual void operator ( ) ( const Range & range ) const <nl> + { <nl> + for ( int device_id = range . start ; device_id ! = range . end ; + + device_id ) <nl> + { <nl> + / / Set the proper context <nl> + safeCall ( cuCtxPushCurrent ( contexts [ device_id ] ) ) ; <nl> + <nl> + Mat src ( 1000 , 1000 , CV_32F ) ; <nl> + Mat dst ; <nl> + <nl> + RNG rng ( 0 ) ; <nl> + rng . fill ( src , RNG : : UNIFORM , 0 , 1 ) ; <nl> + <nl> + / / CPU works <nl> + transpose ( src , dst ) ; <nl> + <nl> + / / GPU works <nl> + GpuMat d_src ( src ) ; <nl> + GpuMat d_dst ; <nl> + transpose ( d_src , d_dst ) ; <nl> + <nl> + / / Check results <nl> + bool passed = norm ( dst - Mat ( d_dst ) , NORM_INF ) < 1e - 3 ; <nl> + std : : cout < < " GPU # " < < device_id < < " ( " < < DeviceInfo ( ) . name ( ) < < " ) : " <nl> + < < ( passed ? " passed " : " FAILED " ) < < endl ; <nl> + <nl> + / / Deallocate data here , otherwise deallocation will be performed <nl> + / / after context is extracted from the stack <nl> + d_src . release ( ) ; <nl> + d_dst . release ( ) ; <nl> + <nl> + CUcontext prev_context ; <nl> + safeCall ( cuCtxPopCurrent ( & prev_context ) ) ; <nl> + } <nl> + } <nl> + <nl> + ~ Worker ( ) <nl> + { <nl> + if ( ( contexts ! = NULL ) & & count ! = 0 ) <nl> + { <nl> + for ( int device_id = 0 ; i < num_devices ; device_id + + ) <nl> + { <nl> + safeCall ( cuCtxDestroy ( contexts [ device_id ] ) ) ; <nl> + } <nl> + <nl> + delete [ ] contexts ; <nl> + } <nl> + } <nl> + <nl> + CUcontext * contexts ; <nl> + int count ; <nl> + } ; <nl> <nl> int main ( ) <nl> { <nl> int main ( ) <nl> / / Init CUDA Driver API <nl> safeCall ( cuInit ( 0 ) ) ; <nl> <nl> - / / Create context for GPU # 0 <nl> - CUdevice device ; <nl> - safeCall ( cuDeviceGet ( & device , 0 ) ) ; <nl> - safeCall ( cuCtxCreate ( & contexts [ 0 ] , 0 , device ) ) ; <nl> - <nl> - CUcontext prev_context ; <nl> - safeCall ( cuCtxPopCurrent ( & prev_context ) ) ; <nl> - <nl> - / / Create context for GPU # 1 <nl> - safeCall ( cuDeviceGet ( & device , 1 ) ) ; <nl> - safeCall ( cuCtxCreate ( & contexts [ 1 ] , 0 , device ) ) ; <nl> - <nl> - safeCall ( cuCtxPopCurrent ( & prev_context ) ) ; <nl> + / / Execute calculation <nl> + parallel_for_ ( cv : : Range ( 0 , num_devices , Worker ( num_devices ) ) ; <nl> <nl> - / / Execute calculation in two threads using two GPUs <nl> - int devices [ ] = { 0 , 1 } ; <nl> - parallel_do ( devices , devices + 2 , Worker ( ) ) ; <nl> - <nl> - destroyContexts ( ) ; <nl> return 0 ; <nl> } <nl> <nl> - <nl> - void Worker : : operator ( ) ( int device_id ) const <nl> - { <nl> - / / Set the proper context <nl> - safeCall ( cuCtxPushCurrent ( contexts [ device_id ] ) ) ; <nl> - <nl> - Mat src ( 1000 , 1000 , CV_32F ) ; <nl> - Mat dst ; <nl> - <nl> - RNG rng ( 0 ) ; <nl> - rng . fill ( src , RNG : : UNIFORM , 0 , 1 ) ; <nl> - <nl> - / / CPU works <nl> - transpose ( src , dst ) ; <nl> - <nl> - / / GPU works <nl> - GpuMat d_src ( src ) ; <nl> - GpuMat d_dst ; <nl> - transpose ( d_src , d_dst ) ; <nl> - <nl> - / / Check results <nl> - bool passed = norm ( dst - Mat ( d_dst ) , NORM_INF ) < 1e - 3 ; <nl> - std : : cout < < " GPU # " < < device_id < < " ( " < < DeviceInfo ( ) . name ( ) < < " ) : " <nl> - < < ( passed ? " passed " : " FAILED " ) < < endl ; <nl> - <nl> - / / Deallocate data here , otherwise deallocation will be performed <nl> - / / after context is extracted from the stack <nl> - d_src . release ( ) ; <nl> - d_dst . release ( ) ; <nl> - <nl> - CUcontext prev_context ; <nl> - safeCall ( cuCtxPopCurrent ( & prev_context ) ) ; <nl> - } <nl> - <nl> - <nl> - void destroyContexts ( ) <nl> - { <nl> - safeCall ( cuCtxDestroy ( contexts [ 0 ] ) ) ; <nl> - safeCall ( cuCtxDestroy ( contexts [ 1 ] ) ) ; <nl> - } <nl> - <nl> # endif <nl> | parallel_do replaced with parallel_for_ in driver_gpu_multi sample . | opencv/opencv | 72063bf13610b8d262c00d57a52aadc188af5c7b | 2015-01-13T09:53:13Z |
mmm a / hphp / runtime / base / array - common . cpp <nl> ppp b / hphp / runtime / base / array - common . cpp <nl> ArrayData * ArrayCommon : : Dequeue ( ArrayData * a , Variant & value ) { <nl> if ( ! a - > empty ( ) ) { <nl> auto const pos = a - > iter_begin ( ) ; <nl> value = a - > getValue ( pos ) ; <nl> - auto const ret = a - > remove ( a - > getKey ( pos ) ) ; <nl> + auto const result = a - > remove ( a - > getKey ( pos ) ) ; <nl> / / In PHP , array_shift ( ) will cause all numerically key - ed values re - keyed <nl> - ret - > renumber ( ) ; <nl> - return ret ; <nl> + auto const escalated = result - > renumber ( ) ; <nl> + if ( escalated ! = result ) decRefArr ( result ) ; <nl> + return escalated ; <nl> } <nl> value = uninit_null ( ) ; <nl> return a ; <nl> mmm a / hphp / runtime / base / array - data - defs . h <nl> ppp b / hphp / runtime / base / array - data - defs . h <nl> inline void ArrayData : : onSetEvalScalar ( ) { <nl> return g_array_funcs . onSetEvalScalar [ kind ( ) ] ( this ) ; <nl> } <nl> <nl> - inline void ArrayData : : renumber ( ) { <nl> + inline ArrayData * ArrayData : : renumber ( ) { <nl> return g_array_funcs . renumber [ kind ( ) ] ( this ) ; <nl> } <nl> <nl> mmm a / hphp / runtime / base / array - data . cpp <nl> ppp b / hphp / runtime / base / array - data . cpp <nl> const ArrayFunctions g_array_funcs = { <nl> DISPATCH ( Prepend ) <nl> <nl> / * <nl> - * void Renumber ( ArrayData * ) <nl> + * ArrayData * Renumber ( ArrayData * ) <nl> * <nl> - * Renumber integer keys on the array in place . <nl> + * Renumber integer keys on the array . This method will operate in place <nl> + * if possible , but it returns a new array if we need copy / escalation . <nl> * / <nl> DISPATCH ( Renumber ) <nl> <nl> mmm a / hphp / runtime / base / array - data . h <nl> ppp b / hphp / runtime / base / array - data . h <nl> struct ArrayData : MaybeCountable { <nl> bool convertKey ( const StringData * key , int64_t & i ) const ; <nl> <nl> / * <nl> - * Re - index all numeric keys to start from 0 . <nl> + * Re - index all numeric keys to start from 0 . This operation may require <nl> + * escalation on the array , so it returns the new result . <nl> * / <nl> - void renumber ( ) ; <nl> + ArrayData * renumber ( ) ; <nl> <nl> / * <nl> * Get the string name for the array kind ` kind ' . <nl> struct ArrayFunctions { <nl> ArrayData * ( * pop [ NK ] ) ( ArrayData * , Variant & value ) ; <nl> ArrayData * ( * dequeue [ NK ] ) ( ArrayData * , Variant & value ) ; <nl> ArrayData * ( * prepend [ NK ] ) ( ArrayData * , TypedValue v ) ; <nl> - void ( * renumber [ NK ] ) ( ArrayData * ) ; <nl> + ArrayData * ( * renumber [ NK ] ) ( ArrayData * ) ; <nl> void ( * onSetEvalScalar [ NK ] ) ( ArrayData * ) ; <nl> ArrayData * ( * toPHPArray [ NK ] ) ( ArrayData * , bool ) ; <nl> ArrayData * ( * toPHPArrayIntishCast [ NK ] ) ( ArrayData * , bool ) ; <nl> mmm a / hphp / runtime / base / empty - array . cpp <nl> ppp b / hphp / runtime / base / empty - array . cpp <nl> ArrayData * EmptyArray : : Merge ( ArrayData * , const ArrayData * elems ) { <nl> if ( elems - > isMixedKind ( ) ) { <nl> auto const copy = MixedArray : : Copy ( elems ) ; <nl> assertx ( copy ! = elems ) ; <nl> - MixedArray : : Renumber ( copy ) ; <nl> + assertx ( copy - > hasExactlyOneRef ( ) ) ; <nl> + DEBUG_ONLY auto const escalated = MixedArray : : Renumber ( copy ) ; <nl> + assertx ( escalated = = copy ) ; <nl> return copy ; <nl> } <nl> } <nl> - auto copy = const_cast < ArrayData * > ( elems ) - > toPHPArray ( true ) ; <nl> - copy = copy = = elems ? elems - > copy ( ) : copy ; <nl> + auto const copy = const_cast < ArrayData * > ( elems ) - > toPHPArray ( true ) ; <nl> assertx ( copy ! = elems ) ; <nl> - copy - > renumber ( ) ; <nl> - return copy ; <nl> + assertx ( copy - > hasExactlyOneRef ( ) ) ; <nl> + auto const escalated = copy - > renumber ( ) ; <nl> + if ( escalated ! = copy ) copy - > release ( ) ; <nl> + return escalated ; <nl> } <nl> <nl> ArrayData * EmptyArray : : PopOrDequeue ( ArrayData * ad , Variant & value ) { <nl> mmm a / hphp / runtime / base / empty - array . h <nl> ppp b / hphp / runtime / base / empty - array . h <nl> struct EmptyArray final : type_scan : : MarkCollectable < EmptyArray > { <nl> static ArrayData * ToDict ( ArrayData * , bool ) ; <nl> static ArrayData * ToVec ( ArrayData * , bool ) ; <nl> static ArrayData * ToKeyset ( ArrayData * , bool ) ; <nl> - static void Renumber ( ArrayData * ) { } <nl> + static ArrayData * Renumber ( ArrayData * ad ) { return ad ; } <nl> static void OnSetEvalScalar ( ArrayData * ) ; <nl> <nl> private : <nl> mmm a / hphp / runtime / base / mixed - array . cpp <nl> ppp b / hphp / runtime / base / mixed - array . cpp <nl> ArrayData * MixedArray : : ToDictDict ( ArrayData * ad , bool ) { <nl> return ad ; <nl> } <nl> <nl> - void MixedArray : : Renumber ( ArrayData * ad ) { <nl> + ArrayData * MixedArray : : Renumber ( ArrayData * adIn ) { <nl> + auto const ad = adIn - > cowCheck ( ) ? Copy ( adIn ) : adIn ; <nl> asMixed ( ad ) - > compact ( true ) ; <nl> + return ad ; <nl> } <nl> <nl> void MixedArray : : OnSetEvalScalar ( ArrayData * ad ) { <nl> mmm a / hphp / runtime / base / mixed - array . h <nl> ppp b / hphp / runtime / base / mixed - array . h <nl> struct MixedArray final : ArrayData , <nl> static constexpr auto ToVArray = & ArrayCommon : : ToVArray ; <nl> static ArrayData * ToDArray ( ArrayData * , bool ) ; <nl> <nl> - static void Renumber ( ArrayData * ) ; <nl> + static ArrayData * Renumber ( ArrayData * ) ; <nl> static void OnSetEvalScalar ( ArrayData * ) ; <nl> static void Release ( ArrayData * ) ; <nl> / / Recursively register { allocation , rootAPCHandle } with APCGCManager <nl> mmm a / hphp / runtime / base / packed - array . h <nl> ppp b / hphp / runtime / base / packed - array . h <nl> struct PackedArray final : type_scan : : MarkCollectable < PackedArray > { <nl> static ArrayData * ToDArray ( ArrayData * , bool ) ; <nl> static ArrayData * ToDict ( ArrayData * , bool ) ; <nl> static ArrayData * ToVec ( ArrayData * , bool ) ; <nl> - static void Renumber ( ArrayData * ) { } <nl> + static ArrayData * Renumber ( ArrayData * ad ) { return ad ; } <nl> static void OnSetEvalScalar ( ArrayData * ) ; <nl> <nl> static constexpr auto ToKeyset = & ArrayCommon : : ToKeyset ; <nl> mmm a / hphp / runtime / base / record - array . cpp <nl> ppp b / hphp / runtime / base / record - array . cpp <nl> ArrayData * RecordArray : : Prepend ( ArrayData * ad , TypedValue v ) { <nl> ) ; <nl> } <nl> <nl> - void RecordArray : : Renumber ( ArrayData * ) { <nl> + ArrayData * RecordArray : : Renumber ( ArrayData * ) { <nl> throw_not_supported ( " Renumber " , " Record - array " ) ; <nl> } <nl> <nl> mmm a / hphp / runtime / base / record - array . h <nl> ppp b / hphp / runtime / base / record - array . h <nl> struct RecordArray : ArrayData , <nl> static ArrayData * Pop ( ArrayData * , Variant & value ) ; <nl> static ArrayData * Dequeue ( ArrayData * , Variant & value ) ; <nl> static ArrayData * Prepend ( ArrayData * , TypedValue v ) ; <nl> - static void Renumber ( ArrayData * ) ; <nl> + static ArrayData * Renumber ( ArrayData * ) ; <nl> static void OnSetEvalScalar ( ArrayData * ) ; <nl> static ArrayData * ToPHPArray ( ArrayData * , bool ) ; <nl> static constexpr auto ToPHPArrayIntishCast = & ToPHPArray ; <nl> mmm a / hphp / runtime / base / set - array . cpp <nl> ppp b / hphp / runtime / base / set - array . cpp <nl> ArrayData * SetArray : : Prepend ( ArrayData * ad , TypedValue v ) { <nl> return a ; <nl> } <nl> <nl> - void SetArray : : Renumber ( ArrayData * ) { <nl> + ArrayData * SetArray : : Renumber ( ArrayData * ) { <nl> SystemLib : : throwInvalidOperationExceptionObject ( <nl> " Invalid keyset operation ( renumbering ) " <nl> ) ; <nl> mmm a / hphp / runtime / base / set - array . h <nl> ppp b / hphp / runtime / base / set - array . h <nl> struct SetArray final : ArrayData , <nl> static ArrayData * Pop ( ArrayData * , Variant & ) ; <nl> static ArrayData * Dequeue ( ArrayData * , Variant & ) ; <nl> static ArrayData * Prepend ( ArrayData * , TypedValue ) ; <nl> - static void Renumber ( ArrayData * ) ; <nl> + static ArrayData * Renumber ( ArrayData * ) ; <nl> static void OnSetEvalScalar ( ArrayData * ) ; <nl> static constexpr auto ToDict = & ArrayCommon : : ToDict ; <nl> static constexpr auto ToVec = & ArrayCommon : : ToVec ; <nl> mmm a / hphp / runtime / base / type - array . cpp <nl> ppp b / hphp / runtime / base / type - array . cpp <nl> Array & Array : : mergeImpl ( ArrayData * data ) { <nl> if ( m_arr = = nullptr | | data = = nullptr ) { <nl> throw_bad_array_merge ( ) ; <nl> } <nl> - if ( ! data - > empty ( ) ) { <nl> - auto const escalated = m_arr - > merge ( data ) ; <nl> - if ( escalated ! = m_arr ) m_arr = Ptr : : attach ( escalated ) ; <nl> - } else { <nl> - m_arr - > renumber ( ) ; <nl> - } <nl> + auto const escalated = data - > empty ( ) ? m_arr - > renumber ( ) : m_arr - > merge ( data ) ; <nl> + if ( escalated ! = m_arr ) m_arr = Ptr : : attach ( escalated ) ; <nl> return * this ; <nl> } <nl> <nl> mmm a / hphp / runtime / vm / globals - array . cpp <nl> ppp b / hphp / runtime / vm / globals - array . cpp <nl> ArrayData * GlobalsArray : : CopyStatic ( const ArrayData * ) { <nl> " not implemented . " ) ; <nl> } <nl> <nl> - void GlobalsArray : : Renumber ( ArrayData * ) { } <nl> + ArrayData * GlobalsArray : : Renumber ( ArrayData * ad ) { <nl> + return ad ; <nl> + } <nl> <nl> void GlobalsArray : : OnSetEvalScalar ( ArrayData * ) { <nl> not_reached ( ) ; <nl> mmm a / hphp / runtime / vm / globals - array . h <nl> ppp b / hphp / runtime / vm / globals - array . h <nl> struct GlobalsArray final : ArrayData , <nl> static ArrayData * CopyStatic ( const ArrayData * ) ; <nl> static constexpr auto Pop = & ArrayCommon : : Pop ; <nl> static constexpr auto Dequeue = & ArrayCommon : : Dequeue ; <nl> - static void Renumber ( ArrayData * ) ; <nl> + static ArrayData * Renumber ( ArrayData * ) ; <nl> static void OnSetEvalScalar ( ArrayData * ) ; <nl> <nl> static ArrayData * EscalateForSort ( ArrayData * , SortFunction sf ) ; <nl> | Allow cow / escalation in ArrayData : : renumber | facebook/hhvm | e80cb141e0fbff8acf9702d479d84e4c56dbaa97 | 2020-04-10T09:56:47Z |
mmm a / libraries / chain / apply_context . cpp <nl> ppp b / libraries / chain / apply_context . cpp <nl> action_trace apply_context : : exec_one ( ) <nl> t . block_num = control . pending_block_state ( ) - > block_num ; <nl> t . block_time = control . pending_block_time ( ) ; <nl> t . producer_block_id = control . pending_producer_block_id ( ) ; <nl> - t . account_ram_delta = std : : move ( _account_ram_delta ) ; <nl> - _account_ram_delta . clear ( ) ; <nl> + t . account_ram_deltas = std : : move ( _account_ram_deltas ) ; <nl> + _account_ram_deltas . clear ( ) ; <nl> t . act = act ; <nl> t . console = _pending_console_output . str ( ) ; <nl> <nl> uint64_t apply_context : : next_auth_sequence ( account_name actor ) { <nl> <nl> void apply_context : : add_ram_usage ( account_name account , int64_t ram_delta ) { <nl> trx_context . add_ram_usage ( account , ram_delta ) ; <nl> - _account_ram_delta [ account ] + = ram_delta ; <nl> + <nl> + account_delta delta { account , ram_delta } ; <nl> + auto itr = _account_ram_deltas . find ( delta ) ; <nl> + if ( itr = = _account_ram_deltas . end ( ) ) { <nl> + _account_ram_deltas . emplace ( delta ) ; <nl> + } else { <nl> + itr - > delta + = ram_delta ; <nl> + } <nl> } <nl> <nl> <nl> mmm a / libraries / chain / include / eosio / chain / apply_context . hpp <nl> ppp b / libraries / chain / include / eosio / chain / apply_context . hpp <nl> class apply_context { <nl> vector < action > _inline_actions ; / / / < queued inline messages <nl> vector < action > _cfa_inline_actions ; / / / < queued inline messages <nl> std : : ostringstream _pending_console_output ; <nl> - flat_map < account_name , int64_t > _account_ram_delta ; <nl> + flat_set < account_delta > _account_ram_deltas ; / / / < flat_set of account_delta so json is an array of objects <nl> <nl> / / bytes _cached_trx ; <nl> } ; <nl> mmm a / libraries / chain / include / eosio / chain / trace . hpp <nl> ppp b / libraries / chain / include / eosio / chain / trace . hpp <nl> <nl> <nl> namespace eosio { namespace chain { <nl> <nl> + struct account_delta { <nl> + account_name account ; <nl> + int64_t delta ; <nl> + <nl> + friend bool operator < ( const account_delta & lhs , const account_delta & rhs ) { return lhs . account < rhs . account ; } <nl> + } ; <nl> + <nl> struct base_action_trace { <nl> base_action_trace ( const action_receipt & r ) : receipt ( r ) { } <nl> base_action_trace ( ) { } <nl> namespace eosio { namespace chain { <nl> uint32_t block_num = 0 ; <nl> block_timestamp_type block_time ; <nl> fc : : optional < block_id_type > producer_block_id ; <nl> - flat_map < account_name , int64_t > account_ram_delta ; <nl> + flat_set < account_delta > account_ram_deltas ; <nl> } ; <nl> <nl> struct action_trace : public base_action_trace { <nl> namespace eosio { namespace chain { <nl> <nl> } } / / / namespace eosio : : chain <nl> <nl> + FC_REFLECT ( eosio : : chain : : account_delta , <nl> + ( account ) ( delta ) ) <nl> + <nl> FC_REFLECT ( eosio : : chain : : base_action_trace , <nl> ( receipt ) ( act ) ( elapsed ) ( cpu_usage ) ( console ) ( total_cpu_usage ) ( trx_id ) <nl> - ( block_num ) ( block_time ) ( producer_block_id ) ( account_ram_delta ) ) <nl> + ( block_num ) ( block_time ) ( producer_block_id ) ( account_ram_deltas ) ) <nl> <nl> FC_REFLECT_DERIVED ( eosio : : chain : : action_trace , <nl> ( eosio : : chain : : base_action_trace ) , ( inline_traces ) ) <nl> | Add account_delta type and use flat_set so json is a list of objects instead of array of arrays . | EOSIO/eos | 5e0bf2b16dfef08d12a24fa7f07b2fb97e781590 | 2018-09-12T18:37:44Z |
mmm a / test / IDE / print_stdlib . swift <nl> ppp b / test / IDE / print_stdlib . swift <nl> <nl> / / CHECK - NOT : func ~ > <nl> / / CHECK - NOT : _builtin <nl> / / CHECK - NOT : Builtin . <nl> - / / CHECK - NOT : extension [ <nl> / / CHECK - NOT : extension { { . * } } ? <nl> / / CHECK - NOT : extension { { . * } } ! <nl> / / CHECK - NOT : addressWithOwner <nl> | Update IDE / print_stdlib . swift test | apple/swift | 7eaff4a346962ec32c05549cfb064cd3f0e06627 | 2016-11-18T08:39:16Z |
mmm a / src / compiler / instruction . h <nl> ppp b / src / compiler / instruction . h <nl> class Instruction final { <nl> reference_map_ = nullptr ; <nl> } <nl> <nl> - bool IsNop ( ) const { <nl> - return arch_opcode ( ) = = kArchNop & & InputCount ( ) = = 0 & & <nl> - OutputCount ( ) = = 0 & & TempCount ( ) = = 0 ; <nl> - } <nl> + bool IsNop ( ) const { return arch_opcode ( ) = = kArchNop ; } <nl> <nl> bool IsDeoptimizeCall ( ) const { <nl> return arch_opcode ( ) = = ArchOpcode : : kArchDeoptimize | | <nl> | Treat all kArchNop instuctions as NOPs in jump threading . | v8/v8 | ede28d900caf2d63922fdc84bbb4bd05978a76a3 | 2016-08-25T11:49:10Z |
mmm a / Marlin / ultralcd . cpp <nl> ppp b / Marlin / ultralcd . cpp <nl> uint8_t lcdDrawUpdate = LCDVIEW_CLEAR_CALL_REDRAW ; / / Set when the LCD needs to <nl> <nl> / * * <nl> * General function to go directly to a menu <nl> - * Remembers the previous position <nl> * / <nl> static void lcd_goto_screen ( screenFunc_t screen , const bool feedback = false , const uint32_t encoder = 0 ) { <nl> if ( currentScreen ! = screen ) { <nl> currentScreen = screen ; <nl> - lcdDrawUpdate = LCDVIEW_CLEAR_CALL_REDRAW ; <nl> encoderPosition = encoder ; <nl> - if ( feedback ) lcd_quick_feedback ( ) ; <nl> if ( screen = = lcd_status_screen ) { <nl> defer_return_to_status = false ; <nl> screen_history_depth = 0 ; <nl> } <nl> + if ( feedback ) lcd_quick_feedback ( ) ; <nl> + lcd_implementation_clear ( ) ; <nl> # if ENABLED ( LCD_PROGRESS_BAR ) <nl> / / For LCD_PROGRESS_BAR re - initialize custom characters <nl> lcd_set_custom_characters ( screen = = lcd_status_screen ) ; <nl> # endif <nl> + lcdDrawUpdate = LCDVIEW_CALL_REDRAW_NEXT ; <nl> } <nl> } <nl> <nl> static void lcd_status_screen ( ) { <nl> } <nl> <nl> if ( current_click ) { <nl> - lcd_goto_screen ( lcd_main_menu , true ) ; <nl> - lcd_implementation_init ( / / to maybe revive the LCD if static electricity killed it . <nl> - # if ENABLED ( LCD_PROGRESS_BAR ) & & ENABLED ( ULTIPANEL ) <nl> - currentScreen = = lcd_status_screen <nl> - # endif <nl> - ) ; <nl> # if ENABLED ( FILAMENT_LCD_DISPLAY ) <nl> previous_lcd_status_ms = millis ( ) ; / / get status message to show up for a while <nl> # endif <nl> + lcd_implementation_init ( / / to maybe revive the LCD if static electricity killed it . <nl> + # if ENABLED ( LCD_PROGRESS_BAR ) <nl> + false <nl> + # endif <nl> + ) ; <nl> + lcd_goto_screen ( lcd_main_menu , true ) ; <nl> } <nl> <nl> # if ENABLED ( ULTIPANEL_FEEDMULTIPLY ) <nl> void kill_screen ( const char * lcd_msg ) { <nl> <nl> static void lcd_filament_change_resume_print ( ) { <nl> filament_change_menu_response = FILAMENT_CHANGE_RESPONSE_RESUME_PRINT ; <nl> - lcdDrawUpdate = 2 ; <nl> lcd_goto_screen ( lcd_status_screen ) ; <nl> } <nl> <nl> void kill_screen ( const char * lcd_msg ) { <nl> ( * callback ) ( ) ; <nl> } <nl> <nl> - # endif / / ULTIPANEL <nl> + # endif / / ULTIPANEL <nl> <nl> - / * * LCD API * * / <nl> void lcd_init ( ) { <nl> <nl> - lcd_implementation_init ( ) ; <nl> + lcd_implementation_init ( <nl> + # if ENABLED ( LCD_PROGRESS_BAR ) <nl> + true <nl> + # endif <nl> + ) ; <nl> <nl> # if ENABLED ( NEWPANEL ) <nl> # if BUTTON_EXISTS ( EN1 ) <nl> void lcd_update ( ) { <nl> <nl> bool sd_status = IS_SD_INSERTED ; <nl> if ( sd_status ! = lcd_sd_status & & lcd_detected ( ) ) { <nl> - lcdDrawUpdate = LCDVIEW_CLEAR_CALL_REDRAW ; <nl> - lcd_implementation_init ( / / to maybe revive the LCD if static electricity killed it . <nl> - # if ENABLED ( LCD_PROGRESS_BAR ) & & ENABLED ( ULTIPANEL ) <nl> - currentScreen = = lcd_status_screen <nl> - # endif <nl> - ) ; <nl> + lcd_sd_status = sd_status ; <nl> <nl> if ( sd_status ) { <nl> card . initsd ( ) ; <nl> void lcd_update ( ) { <nl> if ( lcd_sd_status ! = 2 ) LCD_MESSAGEPGM ( MSG_SD_REMOVED ) ; <nl> } <nl> <nl> - lcd_sd_status = sd_status ; <nl> + lcdDrawUpdate = LCDVIEW_CLEAR_CALL_REDRAW ; <nl> + lcd_implementation_init ( / / to maybe revive the LCD if static electricity killed it . <nl> + # if ENABLED ( LCD_PROGRESS_BAR ) <nl> + currentScreen = = lcd_status_screen <nl> + # endif <nl> + ) ; <nl> } <nl> <nl> # endif / / SDSUPPORT & & SD_DETECT_PIN <nl> mmm a / Marlin / ultralcd_impl_HD44780 . h <nl> ppp b / Marlin / ultralcd_impl_HD44780 . h <nl> extern volatile uint8_t buttons ; / / an extended version of the last checked butt <nl> <nl> static void lcd_set_custom_characters ( <nl> # if ENABLED ( LCD_PROGRESS_BAR ) <nl> - bool progress_bar_set = true <nl> + bool info_screen_charset = true <nl> # endif <nl> ) { <nl> - byte bedTemp [ 8 ] = { <nl> + static byte bedTemp [ 8 ] = { <nl> B00000 , <nl> B11111 , <nl> B10101 , <nl> static void lcd_set_custom_characters ( <nl> B00000 , <nl> B00000 <nl> } ; / / thanks Sonny Mounicou <nl> - byte degree [ 8 ] = { <nl> + static byte degree [ 8 ] = { <nl> B01100 , <nl> B10010 , <nl> B10010 , <nl> static void lcd_set_custom_characters ( <nl> B00000 , <nl> B00000 <nl> } ; <nl> - byte thermometer [ 8 ] = { <nl> + static byte thermometer [ 8 ] = { <nl> B00100 , <nl> B01010 , <nl> B01010 , <nl> static void lcd_set_custom_characters ( <nl> B10001 , <nl> B01110 <nl> } ; <nl> - byte uplevel [ 8 ] = { <nl> - B00100 , <nl> - B01110 , <nl> - B11111 , <nl> - B00100 , <nl> - B11100 , <nl> - B00000 , <nl> - B00000 , <nl> - B00000 <nl> - } ; / / thanks joris <nl> - byte refresh [ 8 ] = { <nl> - B00000 , <nl> - B00110 , <nl> - B11001 , <nl> - B11000 , <nl> - B00011 , <nl> - B10011 , <nl> - B01100 , <nl> - B00000 , <nl> - } ; / / thanks joris <nl> - byte folder [ 8 ] = { <nl> - B00000 , <nl> - B11100 , <nl> - B11111 , <nl> - B10001 , <nl> - B10001 , <nl> - B11111 , <nl> - B00000 , <nl> - B00000 <nl> - } ; / / thanks joris <nl> - byte feedrate [ 8 ] = { <nl> + static byte feedrate [ 8 ] = { <nl> B11100 , <nl> B10000 , <nl> B11000 , <nl> static void lcd_set_custom_characters ( <nl> B00101 , <nl> B00000 <nl> } ; / / thanks Sonny Mounicou <nl> - byte clock [ 8 ] = { <nl> + static byte clock [ 8 ] = { <nl> B00000 , <nl> B01110 , <nl> B10011 , <nl> static void lcd_set_custom_characters ( <nl> B00000 <nl> } ; / / thanks Sonny Mounicou <nl> <nl> - # if ENABLED ( LCD_PROGRESS_BAR ) <nl> - static bool char_mode = false ; <nl> - byte progress [ 3 ] [ 8 ] = { { <nl> + lcd . createChar ( LCD_STR_BEDTEMP [ 0 ] , bedTemp ) ; <nl> + lcd . createChar ( LCD_STR_DEGREE [ 0 ] , degree ) ; <nl> + lcd . createChar ( LCD_STR_THERMOMETER [ 0 ] , thermometer ) ; <nl> + lcd . createChar ( LCD_STR_FEEDRATE [ 0 ] , feedrate ) ; <nl> + lcd . createChar ( LCD_STR_CLOCK [ 0 ] , clock ) ; <nl> + <nl> + # if ENABLED ( SDSUPPORT ) <nl> + static byte uplevel [ 8 ] = { <nl> + B00100 , <nl> + B01110 , <nl> + B11111 , <nl> + B00100 , <nl> + B11100 , <nl> B00000 , <nl> - B10000 , <nl> - B10000 , <nl> - B10000 , <nl> - B10000 , <nl> - B10000 , <nl> - B10000 , <nl> - B00000 <nl> - } , { <nl> B00000 , <nl> - B10100 , <nl> - B10100 , <nl> - B10100 , <nl> - B10100 , <nl> - B10100 , <nl> - B10100 , <nl> B00000 <nl> - } , { <nl> + } ; / / thanks joris <nl> + static byte refresh [ 8 ] = { <nl> + B00000 , <nl> + B00110 , <nl> + B11001 , <nl> + B11000 , <nl> + B00011 , <nl> + B10011 , <nl> + B01100 , <nl> + B00000 , <nl> + } ; / / thanks joris <nl> + static byte folder [ 8 ] = { <nl> + B00000 , <nl> + B11100 , <nl> + B11111 , <nl> + B10001 , <nl> + B10001 , <nl> + B11111 , <nl> B00000 , <nl> - B10101 , <nl> - B10101 , <nl> - B10101 , <nl> - B10101 , <nl> - B10101 , <nl> - B10101 , <nl> B00000 <nl> - } } ; <nl> - if ( progress_bar_set ! = char_mode ) { <nl> - char_mode = progress_bar_set ; <nl> - lcd . createChar ( LCD_STR_BEDTEMP [ 0 ] , bedTemp ) ; <nl> - lcd . createChar ( LCD_STR_DEGREE [ 0 ] , degree ) ; <nl> - lcd . createChar ( LCD_STR_THERMOMETER [ 0 ] , thermometer ) ; <nl> - lcd . createChar ( LCD_STR_FEEDRATE [ 0 ] , feedrate ) ; <nl> - lcd . createChar ( LCD_STR_CLOCK [ 0 ] , clock ) ; <nl> - if ( progress_bar_set ) { <nl> - / / Progress bar characters for info screen <nl> - for ( int i = 3 ; i - - ; ) lcd . createChar ( LCD_STR_PROGRESS [ i ] , progress [ i ] ) ; <nl> - } <nl> - else { <nl> - / / Custom characters for submenus <nl> - lcd . createChar ( LCD_STR_UPLEVEL [ 0 ] , uplevel ) ; <nl> - lcd . createChar ( LCD_STR_REFRESH [ 0 ] , refresh ) ; <nl> - lcd . createChar ( LCD_STR_FOLDER [ 0 ] , folder ) ; <nl> + } ; / / thanks joris <nl> + <nl> + # if ENABLED ( LCD_PROGRESS_BAR ) <nl> + static byte progress [ 3 ] [ 8 ] = { { <nl> + B00000 , <nl> + B10000 , <nl> + B10000 , <nl> + B10000 , <nl> + B10000 , <nl> + B10000 , <nl> + B10000 , <nl> + B00000 <nl> + } , { <nl> + B00000 , <nl> + B10100 , <nl> + B10100 , <nl> + B10100 , <nl> + B10100 , <nl> + B10100 , <nl> + B10100 , <nl> + B00000 <nl> + } , { <nl> + B00000 , <nl> + B10101 , <nl> + B10101 , <nl> + B10101 , <nl> + B10101 , <nl> + B10101 , <nl> + B10101 , <nl> + B00000 <nl> + } } ; <nl> + static bool char_mode = false ; <nl> + if ( info_screen_charset ! = char_mode ) { <nl> + char_mode = info_screen_charset ; <nl> + if ( info_screen_charset ) { / / Progress bar characters for info screen <nl> + for ( int i = 3 ; i - - ; ) lcd . createChar ( LCD_STR_PROGRESS [ i ] , progress [ i ] ) ; <nl> + } <nl> + else { / / Custom characters for submenus <nl> + lcd . createChar ( LCD_STR_UPLEVEL [ 0 ] , uplevel ) ; <nl> + lcd . createChar ( LCD_STR_REFRESH [ 0 ] , refresh ) ; <nl> + lcd . createChar ( LCD_STR_FOLDER [ 0 ] , folder ) ; <nl> + } <nl> } <nl> - } <nl> - # else <nl> - lcd . createChar ( LCD_STR_BEDTEMP [ 0 ] , bedTemp ) ; <nl> - lcd . createChar ( LCD_STR_DEGREE [ 0 ] , degree ) ; <nl> - lcd . createChar ( LCD_STR_THERMOMETER [ 0 ] , thermometer ) ; <nl> - lcd . createChar ( LCD_STR_UPLEVEL [ 0 ] , uplevel ) ; <nl> - lcd . createChar ( LCD_STR_REFRESH [ 0 ] , refresh ) ; <nl> - lcd . createChar ( LCD_STR_FOLDER [ 0 ] , folder ) ; <nl> - lcd . createChar ( LCD_STR_FEEDRATE [ 0 ] , feedrate ) ; <nl> - lcd . createChar ( LCD_STR_CLOCK [ 0 ] , clock ) ; <nl> + # else <nl> + lcd . createChar ( LCD_STR_UPLEVEL [ 0 ] , uplevel ) ; <nl> + lcd . createChar ( LCD_STR_REFRESH [ 0 ] , refresh ) ; <nl> + lcd . createChar ( LCD_STR_FOLDER [ 0 ] , folder ) ; <nl> + # endif <nl> + <nl> # endif <nl> } <nl> <nl> static void lcd_implementation_init ( <nl> # if ENABLED ( LCD_PROGRESS_BAR ) <nl> - bool progress_bar_set = true <nl> + bool info_screen_charset = true <nl> # endif <nl> ) { <nl> <nl> static void lcd_implementation_init ( <nl> <nl> lcd_set_custom_characters ( <nl> # if ENABLED ( LCD_PROGRESS_BAR ) <nl> - progress_bar_set <nl> + info_screen_charset <nl> # endif <nl> ) ; <nl> <nl> unsigned lcd_print ( char c ) { return charset_mapper ( c ) ; } <nl> logo_lines ( PSTR ( " " ) ) ; <nl> safe_delay ( 2000 ) ; <nl> # endif <nl> + <nl> lcd_set_custom_characters ( <nl> - # if ENABLED ( LCD_PROGRESS_BAR ) <nl> - false <nl> - # endif <nl> + # if ENABLED ( LCD_PROGRESS_BAR ) <nl> + false <nl> + # endif <nl> ) ; <nl> } <nl> <nl> | Merge pull request from thinkyhead / rc_lcd_chars_save_ram | MarlinFirmware/Marlin | cffe77c5371ed890b2e0b22a0d94060091f31fd8 | 2016-08-07T01:29:16Z |
mmm a / tensorflow / contrib / android / jni / jni_utils . h <nl> ppp b / tensorflow / contrib / android / jni / jni_utils . h <nl> limitations under the License . <nl> # include < string > <nl> # include < vector > <nl> <nl> + # include " tensorflow / core / platform / macros . h " <nl> # include " tensorflow / core / platform / protobuf . h " <nl> # include " tensorflow / core / platform / types . h " <nl> <nl> mmm a / tensorflow / contrib / session_bundle / session_bundle . cc <nl> ppp b / tensorflow / contrib / session_bundle / session_bundle . cc <nl> limitations under the License . <nl> # include " tensorflow / core / lib / io / path . h " <nl> # include " tensorflow / core / lib / monitoring / counter . h " <nl> # include " tensorflow / core / platform / env . h " <nl> - # include " tensorflow / core / platform / protobuf . h " <nl> + # include " tensorflow / core / platform / protobuf_internal . h " <nl> # include " tensorflow / core / platform / types . h " <nl> # include " tensorflow / core / protobuf / meta_graph . pb . h " <nl> # include " tensorflow / core / protobuf / saver . pb . h " <nl> mmm a / tensorflow / contrib / session_bundle / signature . cc <nl> ppp b / tensorflow / contrib / session_bundle / signature . cc <nl> limitations under the License . <nl> # include " tensorflow / core / lib / core / errors . h " <nl> # include " tensorflow / core / lib / core / status . h " <nl> # include " tensorflow / core / lib / strings / strcat . h " <nl> + # include " tensorflow / core / platform / protobuf_internal . h " <nl> # include " tensorflow / core / platform / types . h " <nl> # include " tensorflow / core / protobuf / meta_graph . pb . h " <nl> # include " tensorflow / core / protobuf / saver . pb . h " <nl> mmm a / tensorflow / core / BUILD <nl> ppp b / tensorflow / core / BUILD <nl> cc_library ( <nl> cc_library ( <nl> name = " lib " , <nl> hdrs = [ <nl> - # TODO ( josh11b ) : Make many of these internal . <nl> " lib / core / arena . h " , <nl> " lib / core / bitmap . h " , <nl> " lib / core / bits . h " , <nl> cc_library ( <nl> " lib / gtl / cleanup . h " , <nl> " lib / gtl / inlined_vector . h " , <nl> " lib / gtl / priority_queue_util . h " , <nl> - " lib / hash / crc32c . h " , # TODO ( josh11b ) : make internal <nl> + " lib / hash / crc32c . h " , <nl> " lib / histogram / histogram . h " , <nl> - " lib / io / inputbuffer . h " , # TODO ( josh11b ) : make internal <nl> + " lib / io / buffered_inputstream . h " , <nl> + " lib / io / inputstream_interface . h " , <nl> " lib / io / path . h " , <nl> " lib / io / proto_encode_helper . h " , <nl> + " lib / io / random_inputstream . h " , <nl> " lib / io / record_reader . h " , <nl> " lib / io / record_writer . h " , <nl> " lib / io / table . h " , <nl> cc_library ( <nl> " lib / monitoring / collected_metrics . h " , <nl> " lib / monitoring / collection_registry . h " , <nl> " lib / monitoring / counter . h " , <nl> - " lib / monitoring / mobile_counter . h " , <nl> " lib / monitoring / metric_def . h " , <nl> + " lib / monitoring / mobile_counter . h " , <nl> " lib / random / distribution_sampler . h " , <nl> " lib / random / philox_random . h " , <nl> - " lib / random / simple_philox . h " , # TODO ( josh11b ) : make internal <nl> - " lib / strings / numbers . h " , # TODO ( josh11b ) : make internal <nl> - " lib / strings / str_util . h " , # TODO ( josh11b ) : make internal <nl> + " lib / random / simple_philox . h " , <nl> + " lib / strings / numbers . h " , <nl> + " lib / strings / str_util . h " , <nl> " lib / strings / strcat . h " , <nl> " lib / strings / stringprintf . h " , <nl> " platform / cpu_info . h " , <nl> cc_library ( <nl> " platform / logging . h " , <nl> " platform / macros . h " , <nl> " platform / mem . h " , <nl> - " platform / net . h " , <nl> " platform / mutex . h " , <nl> + " platform / net . h " , <nl> " platform / notification . h " , <nl> " platform / prefetch . h " , <nl> " platform / profile_utils / cpu_utils . h " , <nl> - " platform / protobuf . h " , # TODO ( josh11b ) : make internal <nl> + " platform / protobuf . h " , <nl> " platform / stacktrace . h " , <nl> " platform / strong_hash . h " , <nl> " platform / thread_annotations . h " , <nl> cc_library ( <nl> " lib / gtl / stl_util . h " , <nl> " lib / gtl / top_n . h " , <nl> " lib / hash / hash . h " , <nl> - " lib / io / buffered_inputstream . h " , <nl> - " lib / io / inputstream_interface . h " , <nl> + " lib / io / inputbuffer . h " , <nl> " lib / io / iterator . h " , <nl> - " lib / io / random_inputstream . h " , <nl> " lib / io / snappy / snappy_inputbuffer . h " , <nl> " lib / io / snappy / snappy_outputbuffer . h " , <nl> " lib / io / zlib_compression_options . h " , <nl> cc_library ( <nl> " platform / denormal . h " , <nl> " platform / host_info . h " , <nl> " platform / platform . h " , <nl> + " platform / protobuf_internal . h " , <nl> " platform / tensor_coding . h " , <nl> " platform / tracing . h " , <nl> ] , <nl> mmm a / tensorflow / core / platform / protobuf . h <nl> ppp b / tensorflow / core / platform / protobuf . h <nl> limitations under the License . <nl> # ifndef TENSORFLOW_PLATFORM_PROTOBUF_H_ <nl> # define TENSORFLOW_PLATFORM_PROTOBUF_H_ <nl> <nl> - # include " google / protobuf / any . pb . h " <nl> - # include " tensorflow / core / lib / core / errors . h " <nl> # include " tensorflow / core / platform / platform . h " <nl> # include " tensorflow / core / platform / types . h " <nl> <nl> inline void SetProtobufStringSwapAllowed ( string * src , string * dest ) { <nl> dest - > swap ( * src ) ; <nl> } <nl> <nl> - / / Returns the DebugString when available , or a stub message otherwise . Useful <nl> - / / for messages that are incompatible with proto_text ( e . g . those using Any ) . <nl> - # ifdef TENSORFLOW_LITE_PROTOS <nl> - template < class T > <nl> - string DebugStringIfAvailable ( T proto ) { <nl> - return " [ DebugString not available with lite protos ] " ; <nl> - } <nl> - # else <nl> - template < class T > <nl> - auto DebugStringIfAvailable ( T proto ) - > decltype ( proto . DebugString ( ) ) { <nl> - return proto . DebugString ( ) ; <nl> - } <nl> - # endif / / defined ( TENSORFLOW_LITE_PROTOS ) <nl> - <nl> - / / Utility for parsing an Any value with full or lite protos . <nl> - template < class T > <nl> - Status ParseAny ( const google : : protobuf : : Any & any , T * message , <nl> - const string & type_name ) { <nl> - # ifdef TENSORFLOW_LITE_PROTOS <nl> - if ( any . type_url ( ) ! = strings : : StrCat ( " type . googleapis . com / " , type_name ) ) { <nl> - return errors : : FailedPrecondition ( <nl> - " Expected Any type_url for : " , type_name , " . Got : " , <nl> - string ( any . type_url ( ) . data ( ) , any . type_url ( ) . size ( ) ) , " . " ) ; <nl> - } <nl> - if ( ! message - > ParseFromString ( any . value ( ) ) ) { <nl> - return errors : : FailedPrecondition ( " Failed to unpack : " , <nl> - DebugStringIfAvailable ( any ) ) ; <nl> - } <nl> - # else <nl> - CHECK_EQ ( type_name , message - > descriptor ( ) - > full_name ( ) ) ; <nl> - if ( ! any . Is < T > ( ) ) { <nl> - return errors : : FailedPrecondition ( <nl> - " Expected Any type_url for : " , message - > descriptor ( ) - > full_name ( ) , <nl> - " . Got : " , string ( any . type_url ( ) . data ( ) , any . type_url ( ) . size ( ) ) , " . " ) ; <nl> - } <nl> - if ( ! any . UnpackTo ( message ) ) { <nl> - return errors : : FailedPrecondition ( " Failed to unpack : " , <nl> - DebugStringIfAvailable ( any ) ) ; <nl> - } <nl> - # endif <nl> - return Status : : OK ( ) ; <nl> - } <nl> - <nl> } / / namespace tensorflow <nl> <nl> # endif / / TENSORFLOW_PLATFORM_PROTOBUF_H_ <nl> new file mode 100644 <nl> index 0000000000000 . . 7d6e8f57a62e0 <nl> mmm / dev / null <nl> ppp b / tensorflow / core / platform / protobuf_internal . h <nl> <nl> + / * Copyright 2015 The TensorFlow Authors . All Rights Reserved . <nl> + <nl> + Licensed under the Apache License , Version 2 . 0 ( the " License " ) ; <nl> + you may not use this file except in compliance with the License . <nl> + You may obtain a copy of the License at <nl> + <nl> + http : / / www . apache . org / licenses / LICENSE - 2 . 0 <nl> + <nl> + Unless required by applicable law or agreed to in writing , software <nl> + distributed under the License is distributed on an " AS IS " BASIS , <nl> + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND , either express or implied . <nl> + See the License for the specific language governing permissions and <nl> + limitations under the License . <nl> + = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = * / <nl> + <nl> + # ifndef TENSORFLOW_PLATFORM_PROTOBUF_INTERNAL_H_ <nl> + # define TENSORFLOW_PLATFORM_PROTOBUF_INTERNAL_H_ <nl> + <nl> + # include " google / protobuf / any . pb . h " <nl> + # include " tensorflow / core / lib / core / errors . h " <nl> + # include " tensorflow / core / platform / platform . h " <nl> + # include " tensorflow / core / platform / protobuf . h " <nl> + # include " tensorflow / core / platform / types . h " <nl> + <nl> + namespace tensorflow { <nl> + <nl> + / / Returns the DebugString when available , or a stub message otherwise . Useful <nl> + / / for messages that are incompatible with proto_text ( e . g . those using Any ) . <nl> + # ifdef TENSORFLOW_LITE_PROTOS <nl> + template < class T > <nl> + string DebugStringIfAvailable ( T proto ) { <nl> + return " [ DebugString not available with lite protos ] " ; <nl> + } <nl> + # else <nl> + template < class T > <nl> + auto DebugStringIfAvailable ( T proto ) - > decltype ( proto . DebugString ( ) ) { <nl> + return proto . DebugString ( ) ; <nl> + } <nl> + # endif / / defined ( TENSORFLOW_LITE_PROTOS ) <nl> + <nl> + / / Utility for parsing an Any value with full or lite protos . <nl> + template < class T > <nl> + Status ParseAny ( const google : : protobuf : : Any & any , T * message , <nl> + const string & type_name ) { <nl> + # ifdef TENSORFLOW_LITE_PROTOS <nl> + if ( any . type_url ( ) ! = strings : : StrCat ( " type . googleapis . com / " , type_name ) ) { <nl> + return errors : : FailedPrecondition ( <nl> + " Expected Any type_url for : " , type_name , " . Got : " , <nl> + string ( any . type_url ( ) . data ( ) , any . type_url ( ) . size ( ) ) , " . " ) ; <nl> + } <nl> + if ( ! message - > ParseFromString ( any . value ( ) ) ) { <nl> + return errors : : FailedPrecondition ( " Failed to unpack : " , <nl> + DebugStringIfAvailable ( any ) ) ; <nl> + } <nl> + # else <nl> + CHECK_EQ ( type_name , message - > descriptor ( ) - > full_name ( ) ) ; <nl> + if ( ! any . Is < T > ( ) ) { <nl> + return errors : : FailedPrecondition ( <nl> + " Expected Any type_url for : " , message - > descriptor ( ) - > full_name ( ) , <nl> + " . Got : " , string ( any . type_url ( ) . data ( ) , any . type_url ( ) . size ( ) ) , " . " ) ; <nl> + } <nl> + if ( ! any . UnpackTo ( message ) ) { <nl> + return errors : : FailedPrecondition ( " Failed to unpack : " , <nl> + DebugStringIfAvailable ( any ) ) ; <nl> + } <nl> + # endif <nl> + return Status : : OK ( ) ; <nl> + } <nl> + <nl> + } / / namespace tensorflow <nl> + <nl> + # endif / / TENSORFLOW_PLATFORM_PROTOBUF_INTERNAL_H_ <nl> | TensorFlow : lib header cleanup | tensorflow/tensorflow | 437d6c1b2fe47958273f03347e6aca0c607f3439 | 2016-10-17T17:36:12Z |
mmm a / core / math / quick_hull . cpp <nl> ppp b / core / math / quick_hull . cpp <nl> Error QuickHull : : build ( const Vector < Vector3 > & p_points , Geometry : : MeshData & r_me <nl> <nl> for ( int i = 0 ; i < p_points . size ( ) ; i + + ) { <nl> <nl> - Vector3 sp = p_points [ i ] . snapped ( 0 . 0001 ) ; <nl> + Vector3 sp = p_points [ i ] . snapped ( Vector3 ( 0 . 0001 , 0 . 0001 , 0 . 0001 ) ) ; <nl> if ( valid_cache . has ( sp ) ) { <nl> valid_points [ i ] = false ; <nl> / / print_line ( " INVALIDATED : " + itos ( i ) ) ; <nl> mmm a / core / math / triangle_mesh . cpp <nl> ppp b / core / math / triangle_mesh . cpp <nl> void TriangleMesh : : create ( const PoolVector < Vector3 > & p_faces ) { <nl> for ( int j = 0 ; j < 3 ; j + + ) { <nl> <nl> int vidx = - 1 ; <nl> - Vector3 vs = v [ j ] . snapped ( 0 . 0001 ) ; <nl> + Vector3 vs = v [ j ] . snapped ( Vector3 ( 0 . 0001 , 0 . 0001 , 0 . 0001 ) ) ; <nl> Map < Vector3 , int > : : Element * E = db . find ( vs ) ; <nl> if ( E ) { <nl> vidx = E - > get ( ) ; <nl> mmm a / core / math / vector3 . cpp <nl> ppp b / core / math / vector3 . cpp <nl> int Vector3 : : max_axis ( ) const { <nl> return x < y ? ( y < z ? 2 : 1 ) : ( x < z ? 2 : 0 ) ; <nl> } <nl> <nl> - void Vector3 : : snap ( real_t p_val ) { <nl> + void Vector3 : : snap ( Vector3 p_val ) { <nl> <nl> - x = Math : : stepify ( x , p_val ) ; <nl> - y = Math : : stepify ( y , p_val ) ; <nl> - z = Math : : stepify ( z , p_val ) ; <nl> + x = Math : : stepify ( x , p_val . x ) ; <nl> + y = Math : : stepify ( y , p_val . y ) ; <nl> + z = Math : : stepify ( z , p_val . z ) ; <nl> } <nl> - Vector3 Vector3 : : snapped ( real_t p_val ) const { <nl> + Vector3 Vector3 : : snapped ( Vector3 p_val ) const { <nl> <nl> Vector3 v = * this ; <nl> v . snap ( p_val ) ; <nl> mmm a / core / math / vector3 . h <nl> ppp b / core / math / vector3 . h <nl> struct Vector3 { <nl> <nl> _FORCE_INLINE_ void zero ( ) ; <nl> <nl> - void snap ( real_t p_val ) ; <nl> - Vector3 snapped ( real_t p_val ) const ; <nl> + void snap ( Vector3 p_val ) ; <nl> + Vector3 snapped ( Vector3 p_val ) const ; <nl> <nl> void rotate ( const Vector3 & p_axis , real_t p_phi ) ; <nl> Vector3 rotated ( const Vector3 & p_axis , real_t p_phi ) const ; <nl> mmm a / editor / import / editor_import_collada . cpp <nl> ppp b / editor / import / editor_import_collada . cpp <nl> static void _generate_tangents_and_binormals ( const PoolVector < int > & p_indices , c <nl> tangent = Vector3 ( ) ; <nl> } else { <nl> tangent = Vector3 ( ( t2 * x1 - t1 * x2 ) * r , ( t2 * y1 - t1 * y2 ) * r , <nl> - ( t2 * z1 - t1 * z2 ) * r ) <nl> + ( t2 * z1 - t1 * z2 ) * r ) <nl> . normalized ( ) ; <nl> binormal = Vector3 ( ( s1 * x2 - s2 * x1 ) * r , ( s1 * y2 - s2 * y1 ) * r , <nl> - ( s1 * z2 - s2 * z1 ) * r ) <nl> + ( s1 * z2 - s2 * z1 ) * r ) <nl> . normalized ( ) ; <nl> } <nl> <nl> Error ColladaImport : : _create_mesh_surfaces ( bool p_optimize , Ref < ArrayMesh > & p_me <nl> int normal_pos = ( normal_src - > stride ? normal_src - > stride : 3 ) * p . indices [ src + normal_ofs ] ; <nl> ERR_FAIL_INDEX_V ( normal_pos , normal_src - > array . size ( ) , ERR_INVALID_DATA ) ; <nl> vertex . normal = Vector3 ( normal_src - > array [ normal_pos + 0 ] , normal_src - > array [ normal_pos + 1 ] , normal_src - > array [ normal_pos + 2 ] ) ; <nl> - vertex . normal = vertex . normal . snapped ( 0 . 001 ) ; <nl> + vertex . normal . snap ( Vector3 ( 0 . 001 , 0 . 001 , 0 . 001 ) ) ; <nl> <nl> if ( tangent_src & & binormal_src ) { <nl> <nl> mmm a / editor / import / resource_importer_obj . cpp <nl> ppp b / editor / import / resource_importer_obj . cpp <nl> Error ResourceImporterOBJ : : import ( const String & p_source_file , const String & p_s <nl> <nl> Vector3 vertex = vertices [ vtx ] ; <nl> if ( weld_vertices ) <nl> - vertex = vertex . snapped ( weld_tolerance ) ; <nl> + vertex . snap ( Vector3 ( weld_tolerance , weld_tolerance , weld_tolerance ) ) ; <nl> surf_tool - > add_vertex ( vertex ) ; <nl> } <nl> <nl> mmm a / editor / import / resource_importer_scene . cpp <nl> ppp b / editor / import / resource_importer_scene . cpp <nl> Node * ResourceImporterScene : : _fix_node ( Node * p_node , Node * p_root , Map < Ref < Array <nl> <nl> for ( int i = 0 ; i < 3 ; i + + ) { <nl> <nl> - Vector3 v = f . vertex [ i ] . snapped ( 0 . 01 ) ; <nl> + Vector3 v = f . vertex [ i ] . snapped ( Vector3 ( 0 . 01 , 0 . 01 , 0 . 01 ) ) ; <nl> if ( ! points . has ( v ) ) { <nl> points . insert ( v ) ; <nl> center + = v ; <nl> mmm a / editor / plugins / path_editor_plugin . cpp <nl> ppp b / editor / plugins / path_editor_plugin . cpp <nl> void PathSpatialGizmo : : set_handle ( int p_idx , Camera * p_camera , const Point2 & p_p <nl> <nl> if ( SpatialEditor : : get_singleton ( ) - > is_snap_enabled ( ) ) { <nl> float snap = SpatialEditor : : get_singleton ( ) - > get_translate_snap ( ) ; <nl> - inters . snap ( snap ) ; <nl> + inters . snap ( Vector3 ( snap , snap , snap ) ) ; <nl> } <nl> <nl> Vector3 local = gi . xform ( inters ) ; <nl> mmm a / editor / plugins / spatial_editor_plugin . cpp <nl> ppp b / editor / plugins / spatial_editor_plugin . cpp <nl> void SpatialEditorViewport : : _sinput ( const Ref < InputEvent > & p_event ) { <nl> if ( _edit . snap | | spatial_editor - > is_snap_enabled ( ) ) { <nl> <nl> snap = spatial_editor - > get_translate_snap ( ) ; <nl> - motion . snap ( snap ) ; <nl> + motion . snap ( Vector3 ( snap , snap , snap ) ) ; <nl> } <nl> <nl> / / set_message ( " Translating : " + motion ) ; <nl> mmm a / editor / spatial_editor_gizmos . cpp <nl> ppp b / editor / spatial_editor_gizmos . cpp <nl> void RoomSpatialGizmo : : redraw ( ) { <nl> for ( int j = 0 ; j < 3 ; j + + ) { <nl> <nl> _EdgeKey ek ; <nl> - ek . from = r [ i ] . vertex [ j ] . snapped ( CMP_EPSILON ) ; <nl> - ek . to = r [ i ] . vertex [ ( j + 1 ) % 3 ] . snapped ( CMP_EPSILON ) ; <nl> + ek . from = r [ i ] . vertex [ j ] . snapped ( Vector3 ( CMP_EPSILON , CMP_EPSILON , CMP_EPSILON ) ) ; <nl> + ek . to = r [ i ] . vertex [ ( j + 1 ) % 3 ] . snapped ( Vector3 ( CMP_EPSILON , CMP_EPSILON , CMP_EPSILON ) ) ; <nl> if ( ek . from < ek . to ) <nl> SWAP ( ek . from , ek . to ) ; <nl> <nl> void NavigationMeshSpatialGizmo : : redraw ( ) { <nl> <nl> tw [ tidx + + ] = f . vertex [ j ] ; <nl> _EdgeKey ek ; <nl> - ek . from = f . vertex [ j ] . snapped ( CMP_EPSILON ) ; <nl> - ek . to = f . vertex [ ( j + 1 ) % 3 ] . snapped ( CMP_EPSILON ) ; <nl> + ek . from = f . vertex [ j ] . snapped ( Vector3 ( CMP_EPSILON , CMP_EPSILON , CMP_EPSILON ) ) ; <nl> + ek . to = f . vertex [ ( j + 1 ) % 3 ] . snapped ( Vector3 ( CMP_EPSILON , CMP_EPSILON , CMP_EPSILON ) ) ; <nl> if ( ek . from < ek . to ) <nl> SWAP ( ek . from , ek . to ) ; <nl> <nl> mmm a / modules / gdnative / godot / godot_vector3 . cpp <nl> ppp b / modules / gdnative / godot / godot_vector3 . cpp <nl> godot_vector3 GDAPI godot_vector3_inverse ( const godot_vector3 * p_self ) { <nl> return dest ; <nl> } <nl> <nl> - godot_vector3 GDAPI godot_vector3_snapped ( const godot_vector3 * p_self , const godot_real p_by ) { <nl> + godot_vector3 GDAPI godot_vector3_snapped ( const godot_vector3 * p_self , const godot_vector3 * p_by ) { <nl> godot_vector3 dest ; <nl> const Vector3 * self = ( const Vector3 * ) p_self ; <nl> + const Vector3 * snap_axis = ( const Vector3 * ) p_by ; <nl> <nl> - * ( ( Vector3 * ) & dest ) = self - > snapped ( p_by ) ; <nl> + * ( ( Vector3 * ) & dest ) = self - > snapped ( * snap_axis ) ; <nl> return dest ; <nl> } <nl> <nl> mmm a / modules / gdnative / godot / godot_vector3 . h <nl> ppp b / modules / gdnative / godot / godot_vector3 . h <nl> godot_vector3 GDAPI godot_vector3_normalized ( const godot_vector3 * p_self ) ; <nl> <nl> godot_vector3 GDAPI godot_vector3_inverse ( const godot_vector3 * p_self ) ; <nl> <nl> - godot_vector3 GDAPI godot_vector3_snapped ( const godot_vector3 * p_self , const godot_real p_by ) ; <nl> + godot_vector3 GDAPI godot_vector3_snapped ( const godot_vector3 * p_self , const godot_vector3 * p_by ) ; <nl> <nl> godot_vector3 GDAPI godot_vector3_rotated ( const godot_vector3 * p_self , const godot_vector3 * p_axis , const godot_real p_phi ) ; <nl> <nl> mmm a / scene / 3d / navigation_mesh . cpp <nl> ppp b / scene / 3d / navigation_mesh . cpp <nl> Ref < Mesh > NavigationMesh : : get_debug_mesh ( ) { <nl> <nl> tw [ tidx + + ] = f . vertex [ j ] ; <nl> _EdgeKey ek ; <nl> - ek . from = f . vertex [ j ] . snapped ( CMP_EPSILON ) ; <nl> - ek . to = f . vertex [ ( j + 1 ) % 3 ] . snapped ( CMP_EPSILON ) ; <nl> + ek . from = f . vertex [ j ] . snapped ( Vector3 ( CMP_EPSILON , CMP_EPSILON , CMP_EPSILON ) ) ; <nl> + ek . to = f . vertex [ ( j + 1 ) % 3 ] . snapped ( Vector3 ( CMP_EPSILON , CMP_EPSILON , CMP_EPSILON ) ) ; <nl> if ( ek . from < ek . to ) <nl> SWAP ( ek . from , ek . to ) ; <nl> <nl> | Fixed syntax inconsistency in Vector3 . snap and Vector3 . snapped | godotengine/godot | 44ecfb028d21975944b47b6496712a29f17f3848 | 2017-07-03T20:29:03Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.