repo
stringlengths 1
152
⌀ | file
stringlengths 15
205
| code
stringlengths 0
41.6M
| file_length
int64 0
41.6M
| avg_line_length
float64 0
1.81M
| max_line_length
int64 0
12.7M
| extension_type
stringclasses 90
values |
---|---|---|---|---|---|---|
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-09.html | <html>
<head>
<title>SL.P.10.R.21.SL062003-09</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>state in the leading firm
</a>
</body>
</html>
| 171 | 16.2 | 64 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-10.html | <html>
<head>
<title>SL.P.10.R.21.SL062003-10</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>securities in the five years in firm
</a>
</body>
</html>
| 182 | 17.3 | 75 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-11.html | <html>
<head>
<title>SL.P.10.R.21.SL062003-11</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>legal action will they arms and drug smugglers andaman sea in
</a>
</body>
</html>
| 207 | 19.8 | 100 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-12.html | <html>
<head>
<title>SL.P.10.R.21.SL062003-12</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>nations to friendly relationship in the mouth
</a>
</body>
</html>
| 191 | 18.2 | 84 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-13.html | <html>
<head>
<title>SL.P.10.R.21.SL062003-13</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>charming house in new delhi 31 august capital delhi in a house contenders leaders
</a>
</body>
</html>
| 227 | 21.8 | 120 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-14.html | <html>
<head>
<title>SL.P.10.R.21.SL062003-14</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>world bank september world bank
</a>
</body>
</html>
| 177 | 16.8 | 70 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-15.html | <html>
<head>
<title>SL.P.10.R.21.SL062003-15</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>summit conference site of the city centre in france
</a>
</body>
</html>
| 197 | 18.8 | 90 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-16.html | <html>
<head>
<title>SL.P.10.R.21.SL062003-16</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>union human resources years in the information technology
</a>
</body>
</html>
| 203 | 19.4 | 96 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-17.html | <html>
<head>
<title>SL.P.10.R.21.SL062003-17</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>the new chief minister in the people in
</a>
</body>
</html>
| 185 | 17.6 | 78 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-18.html | <html>
<head>
<title>SL.P.10.R.21.SL062003-18</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>poll of the poll on reach of the rise in sunday
</a>
</body>
</html>
| 193 | 18.4 | 86 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-19.html | <html>
<head>
<title>SL.P.10.R.21.SL062003-19</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>store in aaga fire the check began two in store at and
</a>
</body>
</html>
| 200 | 19.1 | 93 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-20.html | <html>
<head>
<title>SL.P.10.R.21.SL062003-20</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>state of project in the
</a>
</body>
</html>
| 169 | 16 | 62 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-21.html | <html>
<head>
<title>SL.P.10.R.21.SL062003-21</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>crime and his wife of the private company
</a>
</body>
</html>
| 187 | 17.8 | 80 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-22.html | <html>
<head>
<title>SL.P.10.R.21.SL062003-22</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>indian pakistani harakato.n the answer give in central home
</a>
</body>
</html>
| 205 | 19.6 | 98 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-23.html | <html>
<head>
<title>SL.P.10.R.21.SL062003-23</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>college in engineering at a postgraduate course for shubhaara.nbha and a postgraduate block open
</a>
</body>
</html>
| 242 | 23.3 | 135 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-24.html | <html>
<head>
<title>SL.P.10.R.21.SL062003-24</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>clash in four dead at the
</a>
</body>
</html>
| 171 | 16.2 | 64 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-25.html | <html>
<head>
<title>SL.P.10.R.21.SL062003-25</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>kashmir indian cuisine in the chief at reform of for indian subcontinent in there
</a>
</body>
</html>
| 227 | 21.8 | 120 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-01.html | <html>
<head>
<title>SL.P.10.R.22.SL062003-01</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>world trade officials in the nations to concessions give bangladesh
</a>
</body>
</html>
| 213 | 20.4 | 106 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-02.html | <html>
<head>
<title>SL.P.10.R.22.SL062003-02</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>indonesia the last year in the
</a>
</body>
</html>
| 176 | 16.7 | 69 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-03.html | <html>
<head>
<title>SL.P.10.R.22.SL062003-03</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>militants strategy american foreign minister
</a>
</body>
</html>
| 190 | 18.1 | 83 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-04.html | <html>
<head>
<title>SL.P.10.R.22.SL062003-04</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>india and other world against conflict when horizon time in a record in more
</a>
</body>
</html>
| 222 | 21.3 | 115 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-05.html | <html>
<head>
<title>SL.P.10.R.22.SL062003-05</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>agra of remains top samelana in the news are last year july in the
</a>
</body>
</html>
| 212 | 20.3 | 105 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-06.html | <html>
<head>
<title>SL.P.10.R.22.SL062003-06</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>earthquake shivering uThI dharaa buildings vulnerable were they are the moment in the deluge
</a>
</body>
</html>
| 238 | 22.9 | 131 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-07.html | <html>
<head>
<title>SL.P.10.R.22.SL062003-07</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>past year by raajakaaja walking the people to the home in if this year
</a>
</body>
</html>
| 216 | 20.7 | 109 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-08.html | <html>
<head>
<title>SL.P.10.R.22.SL062003-08</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>2.1 iraakiyo.n the army of work in two weeks of the streets in the
</a>
</body>
</html>
| 212 | 20.3 | 105 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-09.html | <html>
<head>
<title>SL.P.10.R.22.SL062003-09</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>state in the leading firm
</a>
</body>
</html>
| 171 | 16.2 | 64 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-10.html | <html>
<head>
<title>SL.P.10.R.22.SL062003-10</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>securities in the five years
</a>
</body>
</html>
| 174 | 16.5 | 67 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-11.html | <html>
<head>
<title>SL.P.10.R.22.SL062003-11</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>legal action of legal action will they arms and drug smugglers andaman sea in
</a>
</body>
</html>
| 223 | 21.4 | 116 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-12.html | <html>
<head>
<title>SL.P.10.R.22.SL062003-12</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>nations to friendly relationship in the mouth
</a>
</body>
</html>
| 191 | 18.2 | 84 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-13.html | <html>
<head>
<title>SL.P.10.R.22.SL062003-13</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>charming house in new delhi 31 august capital delhi in a house contenders leaders
</a>
</body>
</html>
| 227 | 21.8 | 120 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-14.html | <html>
<head>
<title>SL.P.10.R.22.SL062003-14</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>world bank september world bank
</a>
</body>
</html>
| 177 | 16.8 | 70 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-15.html | <html>
<head>
<title>SL.P.10.R.22.SL062003-15</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>summit conference site of violence two leading countries the organization city centre in france
</a>
</body>
</html>
| 241 | 23.2 | 134 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-16.html | <html>
<head>
<title>SL.P.10.R.22.SL062003-16</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>years in the information technology
</a>
</body>
</html>
| 181 | 17.2 | 74 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-17.html | <html>
<head>
<title>SL.P.10.R.22.SL062003-17</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>the new chief minister in the soon peace restoration of people in long valley
</a>
</body>
</html>
| 223 | 21.4 | 116 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-18.html | <html>
<head>
<title>SL.P.10.R.22.SL062003-18</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>poll of the journey correct that poll on reach of the rise in sunday
</a>
</body>
</html>
| 214 | 20.5 | 107 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-19.html | <html>
<head>
<title>SL.P.10.R.22.SL062003-19</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>store in aaga fire the check began two june in store in check and
</a>
</body>
</html>
| 211 | 20.2 | 104 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-20.html | <html>
<head>
<title>SL.P.10.R.22.SL062003-20</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>state of project and forest ministry of the tiger for protection for project project
</a>
</body>
</html>
| 230 | 22.1 | 123 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-21.html | <html>
<head>
<title>SL.P.10.R.22.SL062003-21</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>crime and his wife of the private company people by his home in murder
</a>
</body>
</html>
| 216 | 20.7 | 109 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-22.html | <html>
<head>
<title>SL.P.10.R.22.SL062003-22</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>indian pakistani harakato.n the answer give in central home to terrorism locked in the
</a>
</body>
</html>
| 232 | 22.3 | 125 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-23.html | <html>
<head>
<title>SL.P.10.R.22.SL062003-23</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>college in engineering at a postgraduate course for shubhaara.nbha and a postgraduate block open
</a>
</body>
</html>
| 242 | 23.3 | 135 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-24.html | <html>
<head>
<title>SL.P.10.R.22.SL062003-24</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>clash in four dead at the
</a>
</body>
</html>
| 171 | 16.2 | 64 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-25.html | <html>
<head>
<title>SL.P.10.R.22.SL062003-25</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>kashmir indian cuisine in the chief at reform of for indian subcontinent in there
</a>
</body>
</html>
| 227 | 21.8 | 120 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-01.html | <html>
<head>
<title>SL.P.10.R.23.SL062003-01</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>trade, business nations Bangladesh World Bank financial United_Nations hit bank proposal
</a>
</body>
</html>
| 234 | 22.5 | 127 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-02.html | <html>
<head>
<title>SL.P.10.R.23.SL062003-02</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>bomb allegation explosion Bali(the island)/earring police attacks karachi ship, plane security
</a>
</body>
</html>
| 240 | 23.1 | 133 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-03.html | <html>
<head>
<title>SL.P.10.R.23.SL062003-03</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>police Pakistan terrorism Osama Bin Laden year attacks India
</a>
</body>
</html>
| 207 | 19.8 | 100 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-04.html | <html>
<head>
<title>SL.P.10.R.23.SL062003-04</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>thousand one two India Osama Bin Laden earthquake Osama
</a>
</body>
</html>
| 202 | 19.3 | 95 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-05.html | <html>
<head>
<title>SL.P.10.R.23.SL062003-05</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>team India Vajpayee (India's prime minister) Pakistan government police people people gathering, function
</a>
</body>
</html>
| 251 | 24.2 | 144 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-06.html | <html>
<head>
<title>SL.P.10.R.23.SL062003-06</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>people earthquake building India space Columbia police Kashmir team
</a>
</body>
</html>
| 213 | 20.4 | 106 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-07.html | <html>
<head>
<title>SL.P.10.R.23.SL062003-07</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>Vajpayee (India's prime minister) year war government police Prime Minister India team
</a>
</body>
</html>
| 232 | 22.3 | 125 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-08.html | <html>
<head>
<title>SL.P.10.R.23.SL062003-08</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>point army rate police two weapon one Saddam Hussain
</a>
</body>
</html>
| 198 | 18.9 | 91 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-09.html | <html>
<head>
<title>SL.P.10.R.23.SL062003-09</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>point rate nations one two earthquake Arab/Billion thousand five
</a>
</body>
</html>
| 210 | 20.1 | 103 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-10.html | <html>
<head>
<title>SL.P.10.R.23.SL062003-10</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>court company thousand fame one Enron two program share_market
</a>
</body>
</html>
| 208 | 19.9 | 101 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-11.html | <html>
<head>
<title>SL.P.10.R.23.SL062003-11</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>election test, inspection commission test, exam, inspection missile World Bank ship, plane poll, election party
</a>
</body>
</html>
| 257 | 24.8 | 150 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-12.html | <html>
<head>
<title>SL.P.10.R.23.SL062003-12</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>India atomic Pakistan North_Korea World Bank Korea north plane, aircraft
</a>
</body>
</html>
| 218 | 20.9 | 111 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-13.html | <html>
<head>
<title>SL.P.10.R.23.SL062003-13</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>Singh (common Indian last name) BJP (Bhartiya Janata Party - a political party in India) victory prize, award festival party election Congress political party in India, US Congress Modi (name)
</a>
</body>
</html>
| 338 | 32.9 | 231 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-14.html | <html>
<head>
<title>SL.P.10.R.23.SL062003-14</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>World Bank India bank destroyed meeting/summit financial currency minister both countries
</a>
</body>
</html>
| 235 | 22.6 | 128 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-15.html | <html>
<head>
<title>SL.P.10.R.23.SL062003-15</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>gathering, function nation, country violence people police army gas festival Dollar
</a>
</body>
</html>
| 229 | 22 | 122 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-16.html | <html>
<head>
<title>SL.P.10.R.23.SL062003-16</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>minister government Jammu & Kashmir BJP (Bhartiya Janata Party - a political party in India) India party Singh (common Indian last name) mobile World Bank
</a>
</body>
</html>
| 300 | 29.1 | 193 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-17.html | <html>
<head>
<title>SL.P.10.R.23.SL062003-17</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>Kashmir Vajpayee (India's prime minister) Pakistan Jammu & Kashmir Congress political party in India, US Congress Sayeed (name) states India
</a>
</body>
</html>
| 286 | 27.7 | 179 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-18.html | <html>
<head>
<title>SL.P.10.R.23.SL062003-18</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>ship space satellite China India flight Columbia ban water
</a>
</body>
</html>
| 204 | 19.5 | 97 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-19.html | <html>
<head>
<title>SL.P.10.R.23.SL062003-19</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>army accident plane, aircraft rail fame one border share_market security
</a>
</body>
</html>
| 218 | 20.9 | 111 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-20.html | <html>
<head>
<title>SL.P.10.R.23.SL062003-20</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>effort report number, count Me/In, Inside, within Tamil disease information, knowledge government Kashmir
</a>
</body>
</html>
| 251 | 24.2 | 144 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-21.html | <html>
<head>
<title>SL.P.10.R.23.SL062003-21</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>police India talk use Kashmir more explosion two work
</a>
</body>
</html>
| 199 | 19 | 92 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-22.html | <html>
<head>
<title>SL.P.10.R.23.SL062003-22</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>Pakistan police Vajpayee (India's prime minister) India government Prime Minister Qaeda ["Al-Qaeda"] cup European
</a>
</body>
</html>
| 259 | 25 | 152 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-23.html | <html>
<head>
<title>SL.P.10.R.23.SL062003-23</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>Me/In, Inside, within President India ship nations space effort nineteen thousand
</a>
</body>
</html>
| 227 | 21.8 | 120 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-24.html | <html>
<head>
<title>SL.P.10.R.23.SL062003-24</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>police accident ear poll, election nation, country Pakistan people people weapons
</a>
</body>
</html>
| 227 | 21.8 | 120 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-25.html | <html>
<head>
<title>SL.P.10.R.23.SL062003-25</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>both countries Jammu & Kashmir population, people both Kashmir Pakistan Sayeed (name) Vajpayee (India's prime minister) India
</a>
</body>
</html>
| 271 | 26.2 | 164 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-01.html | <html>
<head>
<title>SL.P.10.R.24.SL062003-01</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>world countries is fact is that developed countries put pressure on that they should be
</a>
</body>
</html>
| 233 | 22.4 | 126 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-02.html | <html>
<head>
<title>SL.P.10.R.24.SL062003-02</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>indonesian city of bali in in bomb blast accused india began to be averted
</a>
</body>
</html>
| 220 | 21.1 | 113 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-03.html | <html>
<head>
<title>SL.P.10.R.24.SL062003-03</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>terrorist attack measures should be more effective policy american foreign minister everyone knows that indian parliament attack
</a>
</body>
</html>
| 274 | 26.5 | 167 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-04.html | <html>
<head>
<title>SL.P.10.R.24.SL062003-04</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>india and rest of world for good and evil struggle because living
</a>
</body>
</html>
| 211 | 20.2 | 104 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-05.html | <html>
<head>
<title>SL.P.10.R.24.SL062003-05</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>agra remains of agra summit in general pervez musharraf was to chair idea
</a>
</body>
</html>
| 219 | 21 | 112 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-06.html | <html>
<head>
<title>SL.P.10.R.24.SL062003-06</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>gujarat earthquake tremble raised land unsafe buildings were earth
</a>
</body>
</html>
| 212 | 20.3 | 105 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-07.html | <html>
<head>
<title>SL.P.10.R.24.SL062003-07</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>in past year in running affairs of vajpayee remain clear less to people
</a>
</body>
</html>
| 217 | 20.8 | 110 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-08.html | <html>
<head>
<title>SL.P.10.R.24.SL062003-08</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>2.1 iraqi army 1 11:28 7.1 american forces around covered with offence to control he for iraqi army
</a>
</body>
</html>
| 245 | 23.6 | 138 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-09.html | <html>
<head>
<title>SL.P.10.R.24.SL062003-09</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>UTC 16:35 4.1 in america indian companies to work not to be given to make proposal
</a>
</body>
</html>
| 228 | 21.9 | 121 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-10.html | <html>
<head>
<title>SL.P.10.R.24.SL062003-10</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>securities scam in harshad mehta and three others to 5 @-@ 5 years
</a>
</body>
</html>
| 212 | 20.3 | 105 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-11.html | <html>
<head>
<title>SL.P.10.R.24.SL062003-11</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>defense minister threat
</a>
</body>
</html>
| 169 | 16 | 62 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-12.html | <html>
<head>
<title>SL.P.10.R.24.SL062003-12</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>india from neighbouring countries to maintain friendly relations in favour
</a>
</body>
</html>
| 220 | 21.1 | 113 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-13.html | <html>
<head>
<title>SL.P.10.R.24.SL062003-13</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>manmohan not drums new delhi 31 august capital new delhi there was not @-@ revolution murdabad ' slogans and not
</a>
</body>
</html>
| 258 | 24.9 | 151 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-14.html | <html>
<head>
<title>SL.P.10.R.24.SL062003-14</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>world bank president james by india ' s economic development appreciation visit yashwant sinha accepted invitation
</a>
</body>
</html>
| 260 | 25.1 | 153 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-15.html | <html>
<head>
<title>SL.P.10.R.24.SL062003-15</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>g @-@ 8 summit violence june 2 as leading countries 8 summit all over continued
</a>
</body>
</html>
| 225 | 21.6 | 118 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-16.html | <html>
<head>
<title>SL.P.10.R.24.SL062003-16</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>professional lack will not be allowed to be june 2 central human resources minister said
</a>
</body>
</html>
| 234 | 22.5 | 127 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-17.html | <html>
<head>
<title>SL.P.10.R.24.SL062003-17</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>vajpayee sonia s visit to new zeal in kashmir june is atmosphere
</a>
</body>
</html>
| 210 | 20.1 | 103 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-18.html | <html>
<head>
<title>SL.P.10.R.24.SL062003-18</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>poll of india journey of right way june 2 indian space kasturirangan will be sent
</a>
</body>
</html>
| 227 | 21.8 | 120 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-19.html | <html>
<head>
<title>SL.P.10.R.24.SL062003-19</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>military in to take stock june 2 rajasthan border jaisalmer district in stock yesterday began
</a>
</body>
</html>
| 239 | 23 | 132 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-20.html | <html>
<head>
<title>SL.P.10.R.24.SL062003-20</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>government project ' tiger ' successful project june 2 environment and forests of ministry
</a>
</body>
</html>
| 236 | 22.7 | 129 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-21.html | <html>
<head>
<title>SL.P.10.R.24.SL062003-21</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>crime
</a>
</body>
</html>
| 151 | 14.2 | 44 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-22.html | <html>
<head>
<title>SL.P.10.R.24.SL062003-22</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>india pakistan deeds to answer capable of
</a>
</body>
</html>
| 187 | 17.8 | 80 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-23.html | <html>
<head>
<title>SL.P.10.R.24.SL062003-23</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>sun enrich nation to make plan kanchipuram june 19
</a>
</body>
</html>
| 196 | 18.7 | 89 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-24.html | <html>
<head>
<title>SL.P.10.R.24.SL062003-24</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>roadways bus and impact
</a>
</body>
</html>
| 169 | 16 | 62 | html |
pyrouge | pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-25.html | <html>
<head>
<title>SL.P.10.R.24.SL062003-25</title>
</head>
<body bgcolor="white">
<a name="1">[1]</a> <a href="#1" id=1>india and pakistan in kashmir can become medium @-@ mooftee srinagar june 20
</a>
</body>
</html>
| 222 | 21.3 | 115 | html |
null | cmaes-main/benchmark/runner.sh | #!/bin/sh
set -e
KUROBAKO=${KUROBAKO:-kurobako}
DIR=$(cd $(dirname $0); pwd)
REPEATS=${REPEATS:-5}
BUDGET=${BUDGET:-300}
SEED=${SEED:-1}
DIM=${DIM:-2}
SURROGATE_ROOT=${SURROGATE_ROOT:-$(dirname $DIR)/tmp/surrogate-models}
WARM_START=${WARM_START:-0}
usage() {
cat <<EOF
$(basename ${0}) is an entrypoint to run benchmarkers.
Usage:
$ $(basename ${0}) <problem> <json-path>
Problem:
rosenbrock : https://www.sfu.ca/~ssurjano/rosen.html
six-hump-camel : https://www.sfu.ca/~ssurjano/camel6.html
himmelblau : https://en.wikipedia.org/wiki/Himmelblau%27s_function
ackley : https://www.sfu.ca/~ssurjano/ackley.html
rastrigin : https://www.sfu.ca/~ssurjano/rastr.html
toxic-lightgbm : https://github.com/c-bata/benchmark-warm-starting-cmaes
Options:
--help, -h print this
Example:
$ $(basename ${0}) rosenbrock ./tmp/kurobako.json
$ cat ./tmp/kurobako.json | kurobako plot curve --errorbar -o ./tmp
EOF
}
case "$1" in
himmelblau)
PROBLEM=$($KUROBAKO problem command python $DIR/problem_himmelblau.py)
;;
rosenbrock)
PROBLEM=$($KUROBAKO problem command python $DIR/problem_rosenbrock.py)
;;
six-hump-camel)
PROBLEM=$($KUROBAKO problem command python $DIR/problem_six_hump_camel.py)
;;
ackley)
PROBLEM=$($KUROBAKO problem sigopt --dim $DIM ackley)
;;
rastrigin)
# "kurobako problem sigopt --dim 8 rastrigin" only accepts 8-dim.
PROBLEM=$($KUROBAKO problem command python $DIR/problem_rastrigin.py $DIM)
;;
toxic-lightgbm)
PROBLEM=$($KUROBAKO problem warm-starting \
$($KUROBAKO problem surrogate $SURROGATE_ROOT/wscmaes-toxic-source/) \
$($KUROBAKO problem surrogate $SURROGATE_ROOT/wscmaes-toxic-target/))
;;
help|--help|-h)
usage
exit 0
;;
*)
echo "[Error] Invalid problem '${1}'"
usage
exit 1
;;
esac
RANDOM_SOLVER=$($KUROBAKO solver random)
CMAES_SOLVER=$($KUROBAKO solver --name 'cmaes' command -- python $DIR/optuna_solver.py cmaes)
SEP_CMAES_SOLVER=$($KUROBAKO solver --name 'sep-cmaes' command -- python $DIR/optuna_solver.py sep-cmaes)
IPOP_CMAES_SOLVER=$($KUROBAKO solver --name 'ipop-cmaes' command -- python $DIR/optuna_solver.py ipop-cmaes)
IPOP_SEP_CMAES_SOLVER=$($KUROBAKO solver --name 'ipop-sep-cmaes' command -- python $DIR/optuna_solver.py ipop-sep-cmaes)
PYCMA_SOLVER=$($KUROBAKO solver --name 'pycma' command -- python $DIR/optuna_solver.py pycma)
WS_CMAES_SOLVER=$($KUROBAKO solver --name 'ws-cmaes' command -- python $DIR/optuna_solver.py ws-cmaes --warm-starting-trials $WARM_START)
if [ $WARM_START -gt 0 ]; then
$KUROBAKO studies \
--solvers $CMAES_SOLVER $WS_CMAES_SOLVER \
--problems $PROBLEM \
--seed $SEED --repeats $REPEATS --budget $BUDGET \
| $KUROBAKO run --parallelism 6 > $2
elif [ $BUDGET -le 500 ]; then
$KUROBAKO studies \
--solvers $RANDOM_SOLVER $PYCMA_SOLVER $CMAES_SOLVER $SEP_CMAES_SOLVER \
--problems $PROBLEM \
--seed $SEED --repeats $REPEATS --budget $BUDGET \
| $KUROBAKO run --parallelism 4 > $2
else
$KUROBAKO studies \
--solvers $RANDOM_SOLVER $CMAES_SOLVER $IPOP_SEP_CMAES_SOLVER $IPOP_CMAES_SOLVER $SEP_CMAES_SOLVER \
--problems $PROBLEM \
--seed $SEED --repeats $REPEATS --budget $BUDGET \
| $KUROBAKO run --parallelism 6 > $2
fi
| 3,429 | 34 | 137 | sh |
OLED | OLED-master/install-scripts/install.sh | #!/usr/bin/env bash
# Link logger
source logger.sh
# Installing useful packages
log_info "Installing various packages."
sudo apt-get install bison re2c scons gcc libtbb-dev python2.7-dev lua5.2-dev wget
# Check if external dependencies directory exists
if [ ! -d ../external_dependencies ]; then
# Create install directory
log_info "External dependencies directory not found. Creating ..."
mkdir ../external_dependencies
cd ../external_dependencies # Move into the directory
# Installing clingo
log_info "Installing clingo 4.5.4"
mkdir clingo
cd clingo
wget https://sourceforge.net/projects/potassco/files/clingo/4.5.4/clingo-4.5.4-source.tar.gz
tar -zxf clingo-4.5.4-source.tar.gz
rm clingo-4.5.4-source.tar.gz
cd clingo-4.5.4-source
cp ../../../install-scripts/solve-multi.patch.0 .
cp ../../../install-scripts/include-math.patch.0 .
patch -p0 < include-math.patch.0
patch -p0 < solve-multi.patch.0
scons configure --build-dir=release
scons --build-dir=release
sed -i 's/CPPPATH.*/CPPPATH = ['\''\/usr\/include\/python2.7'\'','\''\/usr\/include\/lua5.1'\'']/' build/release.py
sed -i 's/WITH_PYTHON.*/WITH_PYTHON = ['\''python2.7'\'']/' build/release.py
sed -i 's/WITH_LUA.*/WITH_LUA = ['\''lua5.2'\'']/' build/release.py
scons --build-dir=release pyclingo
scons --build-dir=release luaclingo
cd ../..
# Installing LoMRF
log_info "Installing LoMRF."
wget https://github.com/anskarl/LoMRF/archive/develop.zip
wget http://users.iit.demokritos.gr/~nkatz/oled/lpsolve55.tar.xz
unzip develop
tar xf lpsolve55.tar.xz
cd LoMRF-develop
sbt +publishLocal
cd ..
rm develop.zip
rm lpsolve55.tar.xz
cd ..
# Installing Interval Tree
log_info "Installing Interval Tree."
mkdir lib
cd lib
wget http://users.iit.demokritos.gr/~nkatz/oled/IntervalTree.jar
cd ../install-scripts # Done, go back into install-scripts directory
else
log_warn "External dependencies directory exists! Moving on."
fi
# Get version from 'version.sbt'
version=`/bin/grep "^version[ ][ ]*in[ ][ ]*ThisBuild[ ][ ]*:=[ ][ ]*" "../version.sbt" | sed 's/version[ ][ ]*in[ ][ ]*ThisBuild[ ][ ]*:=[ ][ ]*\"\(.*\)\"/\1/g'`
log_info "Building OLED ${version} ..."
cd ..
sbt assembly
mv target/scala-2.11/oled-${version}.jar .
log_info "Done building OLED. The jar is located at: `pwd`"
| 2,420 | 33.098592 | 162 | sh |
OLED | OLED-master/install-scripts/logger.sh | #!/usr/bin/env bash
# Colours for logging messages
red='\033[0;31m'
green='\033[0;32m'
orange='\033[0;33m'
cyan='\033[0;36m'
noColour='\033[0m'
# param $1: info message
log_info(){
echo -e "${cyan}"`date`" ${green}[ INFO ] $1 ${noColour}"
}
# param $1: warning message
log_warn(){
echo -e "${cyan}"`date`" ${orange}[ WARN ] $1 ${noColour}"
}
# param $1: error message
log_error(){
echo -e "${cyan}"`date`" ${red}[ ERROR ] $1 ${noColour}"
}
# param $1: error message (default is "An error occurred, exiting...")
# param $2: error code (default is 1)
exit_error(){
if [ $? -ne 0 ]; then
log_error ${1:-"An error occured, exiting..."}
exit ${2:-1}
fi
}
| 684 | 19.147059 | 70 | sh |
pythainlp-dev/docs/build_docs.sh | pythainlp-dev/docs/build_docs.sh | #!/bin/bash
make html
| 22 | 6.666667 | 11 | sh |
pythainlp-dev/docs/clean_directory.sh | pythainlp-dev/docs/clean_directory.sh | #!/bin/bash
# Delete all files and folders in the directory: /pythainlp/docs/<version>
# $1 : FTP_USER
# $2 : FTP_PASSWORD
# $3 : FTP_HOST
# $4 : Brnach name
FTP_USER=$1
FTP_PASSWORD=$2
FTP_HOST=$3
BRANCH_NAME=$4
remove_all_files()
{
# DIRECTORY=$1
echo "Delete files in: $1"
for f in `curl --list-only --ftp-create-dirs --ipv4 ftp://$FTP_USER:$FTP_PASSWORD@$FTP_HOST/$1/`; do
if [[ -d "$f" ]] || [[ "$f" = _* ]] || [[ "$f" = .doctree ]] || [[ "$f" != *"."* ]]; then
echo "--- deleting files in folder: $1/$f";
remove_all_files $1/$f
else
echo "Delete a file: $f"
curl --ipv4 ftp://$FTP_USER:$FTP_PASSWORD@$FTP_HOST -Q "DELE $1/$f"
fi
done
}
remove_empty_folders()
{
echo "Delete empty folders in: $1"
for f in `curl --list-only --ftp-create-dirs --ipv4 ftp://$FTP_USER:$FTP_PASSWORD@$FTP_HOST/$1/`; do
if [[ -d "$f" ]] || [[ "$f" = _* ]] || [[ "$f" = fonts ]] || [[ "$f" = pythainlp ]] || [[ "$f" = .doctree ]] || [[ "$f" != *"."* ]]; then
echo "--- Deleting folders in: $1/$f";
remove_empty_folders $1/$f
curl --ipv4 ftp://$FTP_USER:$FTP_PASSWORD@$FTP_HOST -Q "RMD $1/$f"
else
echo "Delete a folder: $f"
curl --ipv4 ftp://$FTP_USER:$FTP_PASSWORD@$FTP_HOST -Q "RMD $1/$f"
fi
done
}
echo "Start removing all files within: public_html/pythainlp/docs/$BRANCH_NAME/";
remove_all_files public_html/pythainlp/docs/$BRANCH_NAME;
echo "Start removing all empty folders within: public_html/pythainlp/docs/$BRANCH_NAME/";
remove_empty_folders public_html/pythainlp/docs/$BRANCH_NAME;
echo "Done.";
| 1,682 | 29.6 | 145 | sh |
null | ceph-main/do_cmake.sh | #!/usr/bin/env bash
set -ex
if [ -d .git ]; then
git submodule update --init --recursive
fi
: ${BUILD_DIR:=build}
: ${CEPH_GIT_DIR:=..}
if [ -e $BUILD_DIR ]; then
echo "'$BUILD_DIR' dir already exists; either rm -rf '$BUILD_DIR' and re-run, or set BUILD_DIR env var to a different directory name"
exit 1
fi
PYBUILD="3"
ARGS="-GNinja"
if [ -r /etc/os-release ]; then
source /etc/os-release
case "$ID" in
fedora)
if [ "$VERSION_ID" -ge "37" ] ; then
PYBUILD="3.11"
elif [ "$VERSION_ID" -ge "35" ] ; then
PYBUILD="3.10"
elif [ "$VERSION_ID" -ge "33" ] ; then
PYBUILD="3.9"
elif [ "$VERSION_ID" -ge "32" ] ; then
PYBUILD="3.8"
else
PYBUILD="3.7"
fi
;;
rocky|rhel|centos)
MAJOR_VER=$(echo "$VERSION_ID" | sed -e 's/\..*$//')
if [ "$MAJOR_VER" -ge "9" ] ; then
PYBUILD="3.9"
elif [ "$MAJOR_VER" -ge "8" ] ; then
PYBUILD="3.6"
fi
;;
opensuse*|suse|sles)
PYBUILD="3"
ARGS+=" -DWITH_RADOSGW_AMQP_ENDPOINT=OFF"
ARGS+=" -DWITH_RADOSGW_KAFKA_ENDPOINT=OFF"
;;
ubuntu)
MAJOR_VER=$(echo "$VERSION_ID" | sed -e 's/\..*$//')
if [ "$MAJOR_VER" -ge "22" ] ; then
PYBUILD="3.10"
fi
;;
esac
elif [ "$(uname)" == FreeBSD ] ; then
PYBUILD="3"
ARGS+=" -DWITH_RADOSGW_AMQP_ENDPOINT=OFF"
ARGS+=" -DWITH_RADOSGW_KAFKA_ENDPOINT=OFF"
else
echo Unknown release
exit 1
fi
ARGS+=" -DWITH_PYTHON3=${PYBUILD}"
if type ccache > /dev/null 2>&1 ; then
echo "enabling ccache"
ARGS+=" -DWITH_CCACHE=ON"
fi
cxx_compiler="g++"
c_compiler="gcc"
# 20 is used for more future-proof
for i in $(seq 20 -1 11); do
if type -t gcc-$i > /dev/null; then
cxx_compiler="g++-$i"
c_compiler="gcc-$i"
break
fi
done
ARGS+=" -DCMAKE_CXX_COMPILER=$cxx_compiler"
ARGS+=" -DCMAKE_C_COMPILER=$c_compiler"
mkdir $BUILD_DIR
cd $BUILD_DIR
if type cmake3 > /dev/null 2>&1 ; then
CMAKE=cmake3
else
CMAKE=cmake
fi
${CMAKE} $ARGS "$@" $CEPH_GIT_DIR || exit 1
set +x
# minimal config to find plugins
cat <<EOF > ceph.conf
[global]
plugin dir = lib
erasure code dir = lib
EOF
echo done.
if [[ ! "$ARGS $@" =~ "-DCMAKE_BUILD_TYPE" ]]; then
cat <<EOF
****
WARNING: do_cmake.sh now creates debug builds by default. Performance
may be severely affected. Please use -DCMAKE_BUILD_TYPE=RelWithDebInfo
if a performance sensitive build is required.
****
EOF
fi
| 2,584 | 21.675439 | 137 | sh |
null | ceph-main/do_freebsd.sh | #!/bin/sh -xve
export NPROC=`sysctl -n hw.ncpu`
if [ x"$1"x = x"--deps"x ]; then
sudo ./install-deps.sh
fi
if [ x"$CEPH_DEV"x != xx ]; then
BUILDOPTS="$BUILDOPTS V=1 VERBOSE=1"
CXX_FLAGS_DEBUG="-DCEPH_DEV"
C_FLAGS_DEBUG="-DCEPH_DEV"
fi
# To test with a new release Clang, use with cmake:
# -D CMAKE_CXX_COMPILER="/usr/local/bin/clang++-devel" \
# -D CMAKE_C_COMPILER="/usr/local/bin/clang-devel" \
COMPILE_FLAGS="-O0 -g"
COMPILE_FLAGS="${COMPILE_FLAGS} -fuse-ld=/usr/local/bin/ld -Wno-unused-command-line-argument"
CMAKE_CXX_FLAGS_DEBUG="$CXX_FLAGS_DEBUG $COMPILE_FLAGS"
CMAKE_C_FLAGS_DEBUG="$C_FLAGS_DEBUG $COMPILE_FLAGS"
#
# On FreeBSD we need to preinstall all the tools that are required for building
# dashboard, because versions fetched are not working on FreeBSD.
[ -z "$BUILD_DIR" ] && BUILD_DIR=build
echo Keeping the old build
if [ -d ${BUILD_DIR}.old ]; then
sudo mv ${BUILD_DIR}.old ${BUILD_DIR}.del
sudo rm -rf ${BUILD_DIR}.del &
fi
if [ -d ${BUILD_DIR} ]; then
sudo mv ${BUILD_DIR} ${BUILD_DIR}.old
fi
mkdir ${BUILD_DIR}
./do_cmake.sh "$*" \
-D WITH_CCACHE=ON \
-D CMAKE_BUILD_TYPE=Debug \
-D CMAKE_CXX_FLAGS_DEBUG="$CMAKE_CXX_FLAGS_DEBUG" \
-D CMAKE_C_FLAGS_DEBUG="$CMAKE_C_FLAGS_DEBUG" \
-D ENABLE_GIT_VERSION=OFF \
-D WITH_RADOSGW_AMQP_ENDPOINT=OFF \
-D WITH_RADOSGW_KAFKA_ENDPOINT=OFF \
-D WITH_SYSTEMD=OFF \
-D WITH_SYSTEM_BOOST=ON \
-D WITH_SYSTEM_NPM=ON \
-D WITH_LTTNG=OFF \
-D WITH_BABELTRACE=OFF \
-D WITH_SEASTAR=OFF \
-D WITH_FUSE=ON \
-D WITH_KRBD=OFF \
-D WITH_XFS=OFF \
-D WITH_KVS=ON \
-D CEPH_MAN_DIR=man \
-D WITH_LIBCEPHFS=OFF \
-D WITH_CEPHFS=OFF \
-D WITH_MGR=YES \
-D WITH_RDMA=OFF \
-D WITH_SPDK=OFF \
-D WITH_JAEGER=OFF \
2>&1 | tee cmake.log
echo -n "start building: "; date
printenv
cd ${BUILD_DIR}
gmake -j$CPUS V=1 VERBOSE=1
gmake tests
echo -n "start testing: "; date ;
ctest -j $CPUS || RETEST=1
echo "Testing result, retest: = " $RETEST
if [ $RETEST -eq 1 ]; then
# make sure no leftovers are there
killall ceph-osd || true
killall ceph-mgr || true
killall ceph-mds || true
killall ceph-mon || true
# clean up after testing
rm -rf td/* /tmp/td src/test/td/* || true
rm -rf /tmp/ceph-asok.* || true
rm -rf /tmp/cores.* || true
rm -rf /tmp/*.core || true
ctest --output-on-failure --rerun-failed
fi
STATUS=$?
# cleanup after the fact
rm -rf /tmp/tmp* /tmp/foo /tmp/pip* /tmp/big* /tmp/pymp* $TMPDIR || true
echo -n "Ended: "; date
return $STATUS
| 2,522 | 23.980198 | 93 | sh |
null | ceph-main/install-deps.sh | #!/usr/bin/env bash
#
# Ceph distributed storage system
#
# Copyright (C) 2014, 2015 Red Hat <[email protected]>
#
# Author: Loic Dachary <[email protected]>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
set -e
if ! [ "${_SOURCED_LIB_BUILD}" = 1 ]; then
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
CEPH_ROOT="${SCRIPT_DIR}"
. "${CEPH_ROOT}/src/script/lib-build.sh" || exit 2
fi
DIR=/tmp/install-deps.$$
trap "rm -fr $DIR" EXIT
mkdir -p $DIR
if test $(id -u) != 0 ; then
SUDO=sudo
fi
# enable UTF-8 encoding for programs like pip that expect to
# print more than just ascii chars
export LC_ALL=C.UTF-8
ARCH=$(uname -m)
function munge_ceph_spec_in {
local with_seastar=$1
shift
local with_zbd=$1
shift
local for_make_check=$1
shift
local OUTFILE=$1
sed -e 's/@//g' < ceph.spec.in > $OUTFILE
# http://rpm.org/user_doc/conditional_builds.html
if $with_seastar; then
sed -i -e 's/%bcond_with seastar/%bcond_without seastar/g' $OUTFILE
fi
if $with_zbd; then
sed -i -e 's/%bcond_with zbd/%bcond_without zbd/g' $OUTFILE
fi
if $for_make_check; then
sed -i -e 's/%bcond_with make_check/%bcond_without make_check/g' $OUTFILE
fi
}
function munge_debian_control {
local version=$1
shift
local control=$1
case "$version" in
*squeeze*|*wheezy*)
control="/tmp/control.$$"
grep -v babeltrace debian/control > $control
;;
esac
echo $control
}
function ensure_decent_gcc_on_ubuntu {
ci_debug "Start ensure_decent_gcc_on_ubuntu() in install-deps.sh"
# point gcc to the one offered by g++-7 if the used one is not
# new enough
local old=$(gcc -dumpfullversion -dumpversion)
local new=$1
local codename=$2
if dpkg --compare-versions $old ge ${new}.0; then
return
fi
if [ ! -f /usr/bin/g++-${new} ]; then
$SUDO tee /etc/apt/sources.list.d/ubuntu-toolchain-r.list <<EOF
deb [lang=none] http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu $codename main
deb [arch=amd64 lang=none] http://mirror.nullivex.com/ppa/ubuntu-toolchain-r-test $codename main
EOF
# import PPA's signing key into APT's keyring
cat << ENDOFKEY | $SUDO apt-key add -
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: SKS 1.1.6
Comment: Hostname: keyserver.ubuntu.com
mI0ESuBvRwEEAMi4cDba7xlKaaoXjO1n1HX8RKrkW+HEIl79nSOSJyvzysajs7zUow/OzCQp
9NswqrDmNuH1+lPTTRNAGtK8r2ouq2rnXT1mTl23dpgHZ9spseR73s4ZBGw/ag4bpU5dNUSt
vfmHhIjVCuiSpNn7cyy1JSSvSs3N2mxteKjXLBf7ABEBAAG0GkxhdW5jaHBhZCBUb29sY2hh
aW4gYnVpbGRziLYEEwECACAFAkrgb0cCGwMGCwkIBwMCBBUCCAMEFgIDAQIeAQIXgAAKCRAe
k3eiup7yfzGKA/4xzUqNACSlB+k+DxFFHqkwKa/ziFiAlkLQyyhm+iqz80htRZr7Ls/ZRYZl
0aSU56/hLe0V+TviJ1s8qdN2lamkKdXIAFfavA04nOnTzyIBJ82EAUT3Nh45skMxo4z4iZMN
msyaQpNl/m/lNtOLhR64v5ZybofB2EWkMxUzX8D/FQ==
=LcUQ
-----END PGP PUBLIC KEY BLOCK-----
ENDOFKEY
$SUDO env DEBIAN_FRONTEND=noninteractive apt-get update -y || true
$SUDO env DEBIAN_FRONTEND=noninteractive apt-get install -y g++-${new}
fi
}
function ensure_python3_sphinx_on_ubuntu {
ci_debug "Running ensure_python3_sphinx_on_ubuntu() in install-deps.sh"
local sphinx_command=/usr/bin/sphinx-build
# python-sphinx points $sphinx_command to
# ../share/sphinx/scripts/python2/sphinx-build when it's installed
# let's "correct" this
if test -e $sphinx_command && head -n1 $sphinx_command | grep -q python$; then
$SUDO env DEBIAN_FRONTEND=noninteractive apt-get -y remove python-sphinx
fi
}
function install_pkg_on_ubuntu {
ci_debug "Running install_pkg_on_ubuntu() in install-deps.sh"
local project=$1
shift
local sha1=$1
shift
local codename=$1
shift
local force=$1
shift
local pkgs=$@
local missing_pkgs
if [ $force = "force" ]; then
missing_pkgs="$@"
else
for pkg in $pkgs; do
if ! apt -qq list $pkg 2>/dev/null | grep -q installed; then
missing_pkgs+=" $pkg"
ci_debug "missing_pkgs=$missing_pkgs"
fi
done
fi
if test -n "$missing_pkgs"; then
local shaman_url="https://shaman.ceph.com/api/repos/${project}/master/${sha1}/ubuntu/${codename}/repo"
in_jenkins && echo -n "CI_DEBUG: Downloading $shaman_url ... "
$SUDO curl --silent --fail --write-out "%{http_code}" --location $shaman_url --output /etc/apt/sources.list.d/$project.list
$SUDO env DEBIAN_FRONTEND=noninteractive apt-get update -y -o Acquire::Languages=none -o Acquire::Translation=none || true
$SUDO env DEBIAN_FRONTEND=noninteractive apt-get install --allow-unauthenticated -y $missing_pkgs
fi
}
function install_boost_on_ubuntu {
ci_debug "Running install_boost_on_ubuntu() in install-deps.sh"
local ver=1.82
local installed_ver=$(apt -qq list --installed ceph-libboost*-dev 2>/dev/null |
grep -e 'libboost[0-9].[0-9]\+-dev' |
cut -d' ' -f2 |
cut -d'.' -f1,2)
if test -n "$installed_ver"; then
if echo "$installed_ver" | grep -q "^$ver"; then
return
else
$SUDO env DEBIAN_FRONTEND=noninteractive apt-get -y remove "ceph-libboost.*${installed_ver}.*"
$SUDO rm -f /etc/apt/sources.list.d/ceph-libboost${installed_ver}.list
fi
fi
local codename=$1
local project=libboost
local sha1=2804368f5b807ba8334b0ccfeb8af191edeb996f
install_pkg_on_ubuntu \
$project \
$sha1 \
$codename \
check \
ceph-libboost-atomic$ver-dev \
ceph-libboost-chrono$ver-dev \
ceph-libboost-container$ver-dev \
ceph-libboost-context$ver-dev \
ceph-libboost-coroutine$ver-dev \
ceph-libboost-date-time$ver-dev \
ceph-libboost-filesystem$ver-dev \
ceph-libboost-iostreams$ver-dev \
ceph-libboost-program-options$ver-dev \
ceph-libboost-python$ver-dev \
ceph-libboost-random$ver-dev \
ceph-libboost-regex$ver-dev \
ceph-libboost-system$ver-dev \
ceph-libboost-test$ver-dev \
ceph-libboost-thread$ver-dev \
ceph-libboost-timer$ver-dev
}
function install_libzbd_on_ubuntu {
ci_debug "Running install_libzbd_on_ubuntu() in install-deps.sh"
local codename=$1
local project=libzbd
local sha1=1fadde94b08fab574b17637c2bebd2b1e7f9127b
install_pkg_on_ubuntu \
$project \
$sha1 \
$codename \
check \
libzbd-dev
}
motr_pkgs_url='https://github.com/Seagate/cortx-motr/releases/download/2.0.0-rgw'
function install_cortx_motr_on_ubuntu {
if dpkg -l cortx-motr-dev &> /dev/null; then
return
fi
if [ "$(lsb_release -sc)" = "jammy" ]; then
install_pkg_on_ubuntu \
cortx-motr \
39f89fa1c6945040433a913f2687c4b4e6cbeb3f \
jammy \
check \
cortx-motr \
cortx-motr-dev
else
local deb_arch=$(dpkg --print-architecture)
local motr_pkg="cortx-motr_2.0.0.git3252d623_$deb_arch.deb"
local motr_dev_pkg="cortx-motr-dev_2.0.0.git3252d623_$deb_arch.deb"
$SUDO curl -sL -o/var/cache/apt/archives/$motr_pkg $motr_pkgs_url/$motr_pkg
$SUDO curl -sL -o/var/cache/apt/archives/$motr_dev_pkg $motr_pkgs_url/$motr_dev_pkg
# For some reason libfabric pkg is not available in arm64 version
# of Ubuntu 20.04 (Focal Fossa), so we borrow it from more recent
# versions for now.
if [[ "$deb_arch" == 'arm64' ]]; then
local lf_pkg='libfabric1_1.11.0-2_arm64.deb'
$SUDO curl -sL -o/var/cache/apt/archives/$lf_pkg http://ports.ubuntu.com/pool/universe/libf/libfabric/$lf_pkg
$SUDO apt-get install -y /var/cache/apt/archives/$lf_pkg
fi
$SUDO apt-get install -y /var/cache/apt/archives/{$motr_pkg,$motr_dev_pkg}
$SUDO apt-get install -y libisal-dev
fi
}
function version_lt {
test $1 != $(echo -e "$1\n$2" | sort -rV | head -n 1)
}
function ensure_decent_gcc_on_rh {
local old=$(gcc -dumpversion)
local dts_ver=$1
if version_lt $old $dts_ver; then
if test -t 1; then
# interactive shell
cat <<EOF
Your GCC is too old. Please run following command to add DTS to your environment:
scl enable gcc-toolset-$dts_ver bash
Or add the following line to the end of ~/.bashrc and run "source ~/.bashrc" to add it permanently:
source scl_source enable gcc-toolset-$dts_ver
EOF
else
# non-interactive shell
source /opt/rh/gcc-toolset-$dts_ver/enable
fi
fi
}
function populate_wheelhouse() {
ci_debug "Running populate_wheelhouse() in install-deps.sh"
local install=$1
shift
# although pip comes with virtualenv, having a recent version
# of pip matters when it comes to using wheel packages
PIP_OPTS="--timeout 300 --exists-action i"
pip $PIP_OPTS $install \
'setuptools >= 0.8' 'pip >= 21.0' 'wheel >= 0.24' 'tox >= 2.9.1' || return 1
if test $# != 0 ; then
# '--use-feature=fast-deps --use-deprecated=legacy-resolver' added per
# https://github.com/pypa/pip/issues/9818 These should be able to be
# removed at some point in the future.
pip --use-feature=fast-deps --use-deprecated=legacy-resolver $PIP_OPTS $install $@ || return 1
fi
}
function activate_virtualenv() {
ci_debug "Running activate_virtualenv() in install-deps.sh"
local top_srcdir=$1
local env_dir=$top_srcdir/install-deps-python3
if ! test -d $env_dir ; then
python3 -m venv ${env_dir}
. $env_dir/bin/activate
if ! populate_wheelhouse install ; then
rm -rf $env_dir
return 1
fi
fi
. $env_dir/bin/activate
}
function preload_wheels_for_tox() {
ci_debug "Running preload_wheels_for_tox() in install-deps.sh"
local ini=$1
shift
pushd . > /dev/null
cd $(dirname $ini)
local require_files=$(ls *requirements*.txt 2>/dev/null) || true
local constraint_files=$(ls *constraints*.txt 2>/dev/null) || true
local require=$(echo -n "$require_files" | sed -e 's/^/-r /')
local constraint=$(echo -n "$constraint_files" | sed -e 's/^/-c /')
local md5=wheelhouse/md5
if test "$require"; then
if ! test -f $md5 || ! md5sum -c $md5 > /dev/null; then
rm -rf wheelhouse
fi
fi
if test "$require" && ! test -d wheelhouse ; then
type python3 > /dev/null 2>&1 || continue
activate_virtualenv $top_srcdir || exit 1
python3 -m pip install --upgrade pip
populate_wheelhouse "wheel -w $wip_wheelhouse" $require $constraint || exit 1
mv $wip_wheelhouse wheelhouse
md5sum $require_files $constraint_files > $md5
fi
popd > /dev/null
}
for_make_check=false
if tty -s; then
# interactive
for_make_check=true
elif [ $FOR_MAKE_CHECK ]; then
for_make_check=true
else
for_make_check=false
fi
if [ x$(uname)x = xFreeBSDx ]; then
if [ "$INSTALL_EXTRA_PACKAGES" ]; then
echo "Installing extra packages not supported on FreeBSD" >&2
exit 1
fi
$SUDO pkg install -yq \
devel/babeltrace \
devel/binutils \
devel/git \
devel/gperf \
devel/gmake \
devel/cmake \
devel/nasm \
devel/boost-all \
devel/boost-python-libs \
devel/valgrind \
devel/pkgconf \
devel/libedit \
devel/libtool \
devel/google-perftools \
lang/cython \
net/openldap24-client \
archivers/snappy \
archivers/liblz4 \
ftp/curl \
misc/e2fsprogs-libuuid \
misc/getopt \
net/socat \
textproc/expat2 \
textproc/gsed \
lang/gawk \
textproc/libxml2 \
textproc/xmlstarlet \
textproc/jq \
textproc/py-sphinx \
emulators/fuse \
java/junit \
lang/python36 \
devel/py-pip \
devel/py-flake8 \
devel/py-tox \
devel/py-argparse \
devel/py-nose \
devel/py-prettytable \
devel/py-yaml \
www/py-routes \
www/py-flask \
www/node \
www/npm \
www/fcgi \
security/nss \
security/krb5 \
security/oath-toolkit \
sysutils/flock \
sysutils/fusefs-libs \
# Now use pip to install some extra python modules
pip install pecan
exit
else
[ $WITH_SEASTAR ] && with_seastar=true || with_seastar=false
[ $WITH_ZBD ] && with_zbd=true || with_zbd=false
[ $WITH_PMEM ] && with_pmem=true || with_pmem=false
[ $WITH_RADOSGW_MOTR ] && with_rgw_motr=true || with_rgw_motr=false
source /etc/os-release
case "$ID" in
debian|ubuntu|devuan|elementary|softiron)
echo "Using apt-get to install dependencies"
if [ "$INSTALL_EXTRA_PACKAGES" ]; then
if ! $SUDO apt-get install -y $INSTALL_EXTRA_PACKAGES ; then
# try again. ported over from run-make.sh (orignally e278295)
# In the case that apt-get is interrupted, like when a jenkins
# job is cancelled, the package manager will be in an inconsistent
# state. Run the command again after `dpkg --configure -a` to
# bring package manager back into a clean state.
$SUDO dpkg --configure -a
ci_debug "trying to install $INSTALL_EXTRA_PACKAGES again"
$SUDO apt-get install -y $INSTALL_EXTRA_PACKAGES
fi
fi
$SUDO apt-get install -y devscripts equivs
$SUDO apt-get install -y dpkg-dev
ensure_python3_sphinx_on_ubuntu
case "$VERSION" in
*Bionic*)
ensure_decent_gcc_on_ubuntu 9 bionic
[ ! $NO_BOOST_PKGS ] && install_boost_on_ubuntu bionic
$with_zbd && install_libzbd_on_ubuntu bionic
;;
*Focal*)
ensure_decent_gcc_on_ubuntu 11 focal
[ ! $NO_BOOST_PKGS ] && install_boost_on_ubuntu focal
$with_zbd && install_libzbd_on_ubuntu focal
;;
*Jammy*)
[ ! $NO_BOOST_PKGS ] && install_boost_on_ubuntu jammy
$SUDO apt-get install -y gcc
;;
*)
$SUDO apt-get install -y gcc
;;
esac
if ! test -r debian/control ; then
echo debian/control is not a readable file
exit 1
fi
touch $DIR/status
ci_debug "Running munge_debian_control() in install-deps.sh"
backports=""
control=$(munge_debian_control "$VERSION" "debian/control")
case "$VERSION" in
*squeeze*|*wheezy*)
backports="-t $codename-backports"
;;
esac
# make a metapackage that expresses the build dependencies,
# install it, rm the .deb; then uninstall the package as its
# work is done
build_profiles=""
if $for_make_check; then
build_profiles+=",pkg.ceph.check"
fi
if $with_seastar; then
build_profiles+=",pkg.ceph.crimson"
fi
if $with_pmem; then
build_profiles+=",pkg.ceph.pmdk"
fi
ci_debug "for_make_check=$for_make_check"
ci_debug "with_seastar=$with_seastar"
ci_debug "with_jaeger=$with_jaeger"
ci_debug "build_profiles=$build_profiles"
ci_debug "Now running 'mk-build-deps' and installing ceph-build-deps package"
$SUDO env DEBIAN_FRONTEND=noninteractive mk-build-deps \
--build-profiles "${build_profiles#,}" \
--install --remove \
--tool="apt-get -y --no-install-recommends $backports" $control || exit 1
ci_debug "Removing ceph-build-deps"
$SUDO env DEBIAN_FRONTEND=noninteractive apt-get -y remove ceph-build-deps
if [ "$control" != "debian/control" ] ; then rm $control; fi
# for rgw motr backend build checks
if $with_rgw_motr; then
install_cortx_motr_on_ubuntu
fi
;;
rocky|centos|fedora|rhel|ol|virtuozzo)
builddepcmd="dnf -y builddep --allowerasing"
echo "Using dnf to install dependencies"
case "$ID" in
fedora)
$SUDO dnf install -y dnf-utils
;;
rocky|centos|rhel|ol|virtuozzo)
MAJOR_VERSION="$(echo $VERSION_ID | cut -d. -f1)"
$SUDO dnf install -y dnf-utils selinux-policy-targeted
rpm --quiet --query epel-release || \
$SUDO dnf -y install --nogpgcheck https://dl.fedoraproject.org/pub/epel/epel-release-latest-$MAJOR_VERSION.noarch.rpm
$SUDO rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$MAJOR_VERSION
$SUDO rm -f /etc/yum.repos.d/dl.fedoraproject.org*
if test $ID = centos -a $MAJOR_VERSION = 8 ; then
# Enable 'powertools' or 'PowerTools' repo
$SUDO dnf config-manager --set-enabled $(dnf repolist --all 2>/dev/null|gawk 'tolower($0) ~ /^powertools\s/{print $1}')
dts_ver=11
# before EPEL8 and PowerTools provide all dependencies, we use sepia for the dependencies
$SUDO dnf config-manager --add-repo http://apt-mirror.front.sepia.ceph.com/lab-extras/8/
$SUDO dnf config-manager --setopt=apt-mirror.front.sepia.ceph.com_lab-extras_8_.gpgcheck=0 --save
$SUDO dnf -y module enable javapackages-tools
elif test $ID = rhel -a $MAJOR_VERSION = 8 ; then
dts_ver=11
$SUDO dnf config-manager --set-enabled "codeready-builder-for-rhel-8-${ARCH}-rpms"
$SUDO dnf config-manager --add-repo http://apt-mirror.front.sepia.ceph.com/lab-extras/8/
$SUDO dnf config-manager --setopt=apt-mirror.front.sepia.ceph.com_lab-extras_8_.gpgcheck=0 --save
$SUDO dnf -y module enable javapackages-tools
fi
;;
esac
if [ "$INSTALL_EXTRA_PACKAGES" ]; then
$SUDO dnf install -y $INSTALL_EXTRA_PACKAGES
fi
munge_ceph_spec_in $with_seastar $with_zbd $for_make_check $DIR/ceph.spec
# for python3_pkgversion macro defined by python-srpm-macros, which is required by python3-devel
$SUDO dnf install -y python3-devel
$SUDO $builddepcmd $DIR/ceph.spec 2>&1 | tee $DIR/yum-builddep.out
[ ${PIPESTATUS[0]} -ne 0 ] && exit 1
if [ -n "$dts_ver" ]; then
ensure_decent_gcc_on_rh $dts_ver
fi
IGNORE_YUM_BUILDEP_ERRORS="ValueError: SELinux policy is not managed or store cannot be accessed."
sed "/$IGNORE_YUM_BUILDEP_ERRORS/d" $DIR/yum-builddep.out | grep -i "error:" && exit 1
# for rgw motr backend build checks
if ! rpm --quiet -q cortx-motr-devel &&
{ [[ $FOR_MAKE_CHECK ]] || $with_rgw_motr; }; then
$SUDO dnf install -y \
"$motr_pkgs_url/isa-l-2.30.0-1.el7.${ARCH}.rpm" \
"$motr_pkgs_url/cortx-motr-2.0.0-1_git3252d623_any.el8.${ARCH}.rpm" \
"$motr_pkgs_url/cortx-motr-devel-2.0.0-1_git3252d623_any.el8.${ARCH}.rpm"
fi
;;
opensuse*|suse|sles)
echo "Using zypper to install dependencies"
zypp_install="zypper --gpg-auto-import-keys --non-interactive install --no-recommends"
$SUDO $zypp_install systemd-rpm-macros rpm-build || exit 1
if [ "$INSTALL_EXTRA_PACKAGES" ]; then
$SUDO $zypp_install $INSTALL_EXTRA_PACKAGES
fi
munge_ceph_spec_in $with_seastar false $for_make_check $DIR/ceph.spec
$SUDO $zypp_install $(rpmspec -q --buildrequires $DIR/ceph.spec) || exit 1
;;
*)
echo "$ID is unknown, dependencies will have to be installed manually."
exit 1
;;
esac
fi
# use pip cache if possible but do not store it outside of the source
# tree
# see https://pip.pypa.io/en/stable/reference/pip_install.html#caching
if $for_make_check; then
mkdir -p install-deps-cache
top_srcdir=$(pwd)
export XDG_CACHE_HOME=$top_srcdir/install-deps-cache
wip_wheelhouse=wheelhouse-wip
#
# preload python modules so that tox can run without network access
#
find . -name tox.ini | while read ini ; do
preload_wheels_for_tox $ini
done
rm -rf $top_srcdir/install-deps-python3
rm -rf $XDG_CACHE_HOME
type git > /dev/null || (echo "Dashboard uses git to pull dependencies." ; false)
fi
ci_debug "End install-deps.sh" || true
| 21,125 | 35.804878 | 139 | sh |