code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
3
942
language
stringclasses
30 values
license
stringclasses
15 values
size
int32
3
1.05M
#!/usr/bin/env bash # Air host (mac) set -e set -o pipefail POOL=${POOL:?"Need to set: POOL"} TOOLCHAIN_POOL=${TOOLCHAIN_POOL:?"Need to set: TOOLCHAIN_POOL"} source ${POOL}/toolchain/llvm.sh export HM3_CXX="${LLVM_CXX}" export HM3_BOOST_ROOT="${LLVM_TOOLCHAIN_DIR}" export HM3_CXXFLAGS="${LIBCXX_CXXFLAGS} -isystem ${LLVM_TOOLCHAIN_DIR}/include" export HM3_LDFLAGS="${LIBCXX_LDFLAGS} -L${LLVM_TOOLCHAIN_DIR}/lib" export HM3_CXXFLAGS_ASAN="${LIBCXX_ASAN_CXXFLAGS} -isystem ${LLVM_TOOLCHAIN_DIR}/asan/include -isystem ${LLVM_TOOLCHAIN_DIR}/include" export HM3_LDFLAGS_ASAN="${LIBCXX_ASAN_LDFLAGS} -L${LLVM_TOOLCHAIN_DIR}/asan/lib -L${LLVM_TOOLCHAIN_DIR}/lib" export HM3_MPI="${LLVM_TOOLCHAIN_PATH}/mpicxx" export HM3_PARAVIEW_DIR="${LLVM_TOOLCHAIN_DIR}/build/paraview" set +e set +o pipefail
gnzlbg/unix_env
pool/host/air/hm3_llvm.sh
Shell
mit
799
import { TestBed, inject } from '@angular/core/testing'; import { NewsServiceService } from './news-service.service'; describe('NewsServiceService', () => { beforeEach(() => { TestBed.configureTestingModule({ providers: [NewsServiceService] }); }); it('should be created', inject([NewsServiceService], (service: NewsServiceService) => { expect(service).toBeTruthy(); })); });
kalyanakannan/my-newsstand
src/app/news-service.service.spec.ts
TypeScript
mit
405
Template.registerHelper('messageObj', function () { // if the doc is already decrypted just return it if(!this.encrypted){ return this; } return Messages.findOne({_id: this._id}); }); Template.registerHelper('loading', function () { return Template.instance().loading.get(); }); /** * Get the parent template instance * @param {Number} [levels] How many levels to go up. Default is 1 * @returns {Blaze.TemplateInstance} */ Blaze.TemplateInstance.prototype.parentTemplate = function (levels) { var view = Blaze.currentView; if (typeof levels === "undefined") { levels = 1; } while (view) { if (view.name.substring(0, 9) === "Template." && !(levels--)) { return view.templateInstance(); } view = view.parentView; } };
PhilippSpo/meteor-encryption-demo
client/components/lib/helpers.js
JavaScript
mit
815
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="Page ou l'on peut voir les différentes ressources de l'entreprise"> <meta name="author" content="maxime SURMONT"> <title> Ressources de l'entreprise </title> <link rel="shortcut icon" href="img/favicon.png.ico" type="image/x-icon" /> <link href="../css/bootstrap.css" rel="stylesheet"> <link href="../css/pagesIntranet.css" rel="stylesheet"> <link href="../css/ressourcesDirection.css" rel="stylesheet"> <script type="text/javascript" src="../js/pagesIntranet.js"></script> <script type="text/javascript" src="../js/ressourcesDirection.js"></script> </head> <body> <div class="container"> <div> <a><span class="disparaitre" id="iconeMenu"></span></a> <div class="row"> <div th:insert="~{communIntranet :: divNavigationIntranet}"> </div> <section class="col-lg-8 col-md-8 col-sm-8 col-xs-8" id="section"> <h1 id="titre" >Ressources CADRE</h1> <p id="sousTitre1">Liste des ressources :</p> <table id="tableauDuPersonnel"> <tr> <th >Nom du fichier</th> <th >Taille</th> <th >Type</th> <th >Corps de métier</th> <th id="action">Action</th> </tr> </table> <p>Recherche dans la liste des ressources:</p> <form id="formulaire"> <div class="input-group"> <div class="input-group-addon" > <span class="glyphicon glyphicon-search" > </span> </div> <input type="text" class="form-control" id="inputSearch" placeholder="nom du fichier ou poste concerné par la ressource recerchée"> </div> <div id="boutonSearch"> <a class="btn btn-primary" id="boutonSearch" href="#">Rechercher</a> </div> </form> <table id="tableauDuPersonnel2"> </table> <p>Ajout d'un fichier :</p> <form id="formulaire"> <div class="input-group"> <div class="input-group-addon descriptionAjout" > <span> Nom du fichier : </span> </div> <input type="text" class="form-control"> </div> <div class="input-group"> <div class="input-group-addon descriptionAjout" > <span> Corps de métier : </span> </div> <input type="text" class="form-control"> </div> <div id="boutonAdd2"> <a class="btn btn-primary" id="boutonAdd2" href="#">Ajouter</a> </div> <input type="file" name="fichier" id="choixDuFichier"/> </form> </section> </div> </div> <footer th:insert="~{communIntranet :: footerIntranetDirection}" id="footer"> </footer> </div> </body> </html>
maximeSurmontGH/projet100H_CADRE
cadrejee/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/cadre/WEB-INF/templates/ressourcesDirection.html
HTML
mit
3,081
function Cthlug(world, stage, worldwidth, worldheight, viewwidth, viewheight, worldx, worldy) { "use strict"; var width, height; this.world = world; this.stage = stage; this.worldwidth = worldwidth; this.worldheight = worldheight; this.viewwidth = viewwidth; this.viewheight = viewheight; this.worldx = worldx; this.worldy = worldy; this.dead = false; this.textures_l = ["cthlug_1_l.png", "cthlug_2_l.png", "cthlug_3_l.png", "cthlug_4_l.png", "cthlug_5_l.png"]; this.textures_l_up = ["cthlug_1_lup.png", "cthlug_2_lup.png", "cthlug_3_lup.png", "cthlug_4_lup.png", "cthlug_5_lup.png"]; this.textures_l_down = ["cthlug_1_ldown.png", "cthlug_2_ldown.png", "cthlug_3_ldown.png", "cthlug_4_ldown.png", "cthlug_5_ldown.png"]; this.textures_r = ["cthlug_1_r.png", "cthlug_2_r.png", "cthlug_3_r.png", "cthlug_4_r.png", "cthlug_5_r.png"]; this.textures_r_up = ["cthlug_1_rup.png", "cthlug_2_rup.png", "cthlug_3_rup.png", "cthlug_4_rup.png", "cthlug_5_rup.png"]; this.textures_r_down = ["cthlug_1_rdown.png", "cthlug_2_rdown.png", "cthlug_3_rdown.png", "cthlug_4_rdown.png", "cthlug_5_rdown.png"]; this.textures_dying = ["cthlug_dead_1.png", "cthlug_dead_2.png", "cthlug_dead_3.png", "cthlug_dead_4.png", "cthlug_dead_5.png", "cthlug_dead_6.png", "cthlug_dead_7.png", "cthlug_dead_8.png", "cthlug_dead_9.png", "cthlug_dead_10.png", "cthlug_dead_11.png", "cthlug_dead_12.png"]; //1 = left, 2 = left/up, 3 = left/down, 4 = right, 5 = right/up, 6 = right/down, 7 = dying this.direction = Math.random() < .5 ? 1 : 4; this.textureincrement = 0; this.texturevector = 1; this.deltav = new PARTSYS.Vector(0, 0); width = 36; height = 12; this.dod = timeStamp()+50000+Math.random()*20000; this.cthingsoundplaying = false; this.cthingsound = new Howl({ urls : ['resources/sounds/placeholder.mp3'], onend: function () { this.cthingsoundplaying = false; }.bind(this) }); GameObject.call(this, this.textures_l[0], width, height, worldwidth, worldheight, viewwidth, viewheight, worldx, worldy); this.timeoutID = setTimeout(this.updateTexture.bind(this), 160); } Cthlug.constructor = Cthlug; Cthlug.prototype = Object.create(GameObject.prototype); Cthlug.prototype.cleanup = function () { "use strict"; if (this.timeoutID) { clearTimeout(this.timeoutID); } this.cthingsound.stop(); }; Cthlug.prototype.everySecond = function (e) { "use strict"; if (timeStamp()>this.dod && (this.direction===1 || this.direction===4)) { this.textureincrement=0; this.texturevector=1; this.direction=7; } }; Cthlug.prototype.updateSound = function () { "use strict"; if (this.world.player) { if (this.visible && !this.cthingsoundplaying) { this.cthingsoundplaying = true; this.cthingsound.play(); } if (!this.visible && this.cthingsoundplaying) { this.cthingsound.stop(); this.cthingsoundplaying = false; } } }; Cthlug.prototype.updateTexture = function (reschedule) { "use strict"; if (reschedule === undefined) { reschedule = true; } var cthlugtexture, ta; switch (this.direction) { case 1: ta = this.textures_l; break; case 2: ta = this.textures_l_up; break; case 3: ta = this.textures_l_down; break; case 4: ta = this.textures_r; break; case 5: ta = this.textures_r_up; break; case 6: ta = this.textures_r_down; break; case 7: ta = this.textures_dying; break; } this.textureincrement += this.texturevector; if (this.textureincrement >= ta.length) { if (this.direction===7) { this.dead=true; } this.texturevector = -this.texturevector; this.textureincrement = ta.length - 1; } if (this.textureincrement < 0) { this.textureincrement = 1; this.texturevector = -this.texturevector; } if (this.visible) { cthlugtexture = PIXI.Texture.fromFrame(ta[this.textureincrement]); this.setTexture(cthlugtexture); } if (reschedule) { this.timeoutID=setTimeout(this.updateTexture.bind(this), 160); } }; Cthlug.prototype.getTouch = function (i, x, y) { "use strict"; var building, touch = {"tl": null, "tr": null, "bl": null, "br": null, "right": null, "left": null, "bottom": null}; if (y + this.height >= this.worldheight && ((this.direction < 4 && i === 0) || (this.direction > 3 && i === this.world.city.length))) { touch.bl = true; touch.bottom = true; touch.br = true; building = {"worldx": this.worldx - 1, "worldy": this.worldheight, "width": this.width}; } else if ((this.direction < 4 && i === 0) || (this.direction > 3 && i === this.world.city.length)) { return {"touch": null, "building": null}; } else { if (this.direction < 4) { building = this.world.city[i - 1]; } else { building = this.world.city[i]; } touch.left = this.world.isCollidedPoint(building, x, y + this.height / 2, false); touch.bottom = this.world.isCollidedPoint(building, x + this.width / 2, y + this.height, false); touch.right = this.world.isCollidedPoint(building, x + this.width, y + this.height / 2, false); touch.tl = this.world.isCollidedPoint(building, x, y, false); touch.tr = this.world.isCollidedPoint(building, x + this.width, y, false); touch.bl = this.world.isCollidedPoint(building, x, y + this.height, false); touch.br = this.world.isCollidedPoint(building, x + this.width, y + this.height, false); } return {"touch": touch, "building": building}; }; Cthlug.prototype.updatePosition = function (newx, dt) { "use strict"; var i, olddirection, building, x, y, touch, rettouch; switch (this.direction) { case 1: this.deltav.x = -.4; this.deltav.y = 2; break; case 2: this.deltav.x = -.4; this.deltav.y = -.4; break; case 3: this.deltav.x = .4; this.deltav.y = .4; break; case 4: this.deltav.x = .4; this.deltav.y = 2; break; case 5: this.deltav.x = .4; this.deltav.y = -.4; break; case 6: this.deltav.x = -.4; this.deltav.y = .4; break; case 7: this.deltav.x = 0; this.deltav.y = 0; break; } //x = this.worldx + (this.deltav.x * dt * PARTSYS.framerate); //y = this.worldy + (this.deltav.y * dt * PARTSYS.framerate); x = this.worldx + this.deltav.x; y = this.worldy + this.deltav.y; if (x > this.worldwidth) { x = x - this.worldwidth + 1; } if (x < 0) { x = this.worldwidth + x - 1; } if (this.direction < 4) { for (i = 0; i <= this.world.city.length; i++) { rettouch = this.getTouch(i, x, y); touch = rettouch.touch; building = rettouch.building; if (touch === null) { continue; } if (!touch.left && !touch.right && !touch.bottom && !touch.tl && !touch.tr && !touch.bl && !touch.br) { continue; } //1 = left, 2 = left/up, 3 = left/down, 4 = right, 5 = right/up, 6 = right/down, 7 = dying olddirection = this.direction; switch (this.direction) { case 1: if (touch.left) { x = building.worldx + building.width; y -= 24; this.direction = 2; break; } if (!touch.bottom && !touch.bl) { //more than halfway past the building edge x = building.worldx - 12; y = building.worldy; this.direction = 3; break; } if (y + 12 >= this.worldheight) { y = this.worldheight - 12; } else { y = building.worldy - 12; } break; case 2: if (!touch.left) { x = (building.worldx + building.width) - 36; y = building.worldy - 12; this.direction = 1; break; } x = building.worldx + building.width; break; case 3: if (touch.bottom) { x = building.worldx + building.width - 36; y += 24; this.direction = 1; break; } x = building.worldx - 12; break; } if (olddirection != this.direction) { this.visible = true; this.updateTexture(false); this.visible = false; } if (i > 0) { break; } } } else if (this.direction < 7) { for (i = this.world.city.length; i >= 0; i--) { rettouch = this.getTouch(i, x, y); touch = rettouch.touch; building = rettouch.building; if (touch === null) { continue; } if (!touch.left && !touch.right && !touch.bottom && !touch.tl && !touch.tr && !touch.bl && !touch.br) { continue; } //1 = left, 2 = left/up, 3 = left/down, 4 = right, 5 = right/up, 6 = right/down, 7 = dying olddirection = this.direction; switch (this.direction) { case 4: if (touch.right) { x = building.worldx - 12; y -= 24; this.direction = 5; break; } if (!touch.bottom && !touch.br) { x = building.worldx + building.width; y = building.worldy - 18; this.direction = 6; break; } if (y + 12 >= this.worldheight) { y = this.worldheight - 12; } else { y = building.worldy - 12; } break; case 5: if (!touch.right) { x = building.worldx - 18; y = building.worldy - 12; this.direction = 4; break; } x = building.worldx - 12; break; case 6: if (touch.bottom) { x = building.worldx + 1; y += 24; this.direction = 4; break; } x = building.worldx + building.width; break; } if (olddirection != this.direction) { this.visible = true; this.updateTexture(false); this.visible = false; break; } if (i < this.world.city.length) { break; } } } this.worldx = x; this.worldy = y; }; Cthlug.prototype.update = function (newx, dt) { "use strict"; var x, y , rightmost, fragment = -1; this.visible = false; this.updatePosition(newx, dt); x = this.worldx; y = this.worldy; rightmost = newx + this.viewwidth; if (rightmost > this.worldwidth) { fragment = rightmost - this.worldwidth - 1; } if (fragment === -1) { if (this.worldx > newx - this.width && this.worldx < rightmost + this.width) { x = this.worldx - newx; this.visible = true; } } else { if (this.worldx > newx - this.width && this.worldx <= this.worldwidth) { x = this.worldx - newx; this.visible = true; } else if (this.worldx < fragment + this.width) { x = this.worldwidth - newx + this.worldx; this.visible = true; } } if (this.visible) { this.position.x = x; this.position.y = y; } this.updateSound(); };
cleespencer/cleespencer.github.io
scripts/Cthlug.js
JavaScript
mit
13,110
/********************************************************************************* Copyright (c) 2016, Cosmin Plasoianu All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE ********************************************************************************/ #include <avr/io.h> #include <string.h> #include <stdio.h> #include "slI2C.h" #if showDebugDataBME280 == 1 #include "slUart.h" #endif #include "BME280.h" static struct { uint16_t dig_T1; int16_t dig_T2; int16_t dig_T3; uint16_t dig_P1; int16_t dig_P2; int16_t dig_P3; int16_t dig_P4; int16_t dig_P5; int16_t dig_P6; int16_t dig_P7; int16_t dig_P8; int16_t dig_P9; uint8_t dig_H1; int16_t dig_H2; uint8_t dig_H3; int16_t dig_H4; int16_t dig_H5; int8_t dig_H6; } CalibParam; int32_t t_fine; // t_fine carries fine temperature as global value uint8_t I2C_WriteData(uint8_t device_addr, uint8_t register_addr, uint8_t *data, uint8_t length) { uint8_t cnt = 0; if (slI2C_Start()) { return 1; } device_addr &= 0xFE;//Device address if (slI2C_SetSLA(device_addr)) { return 1; } if (slI2C_WriteByte(register_addr)) { return 1; } while (cnt != length) { if (slI2C_WriteByte(data[cnt++])) { return 1; } } if (slI2C_Stop()) { return 1; } return 0; } uint8_t I2C_ReadData(uint8_t device_addr, uint8_t register_addr, uint8_t *data, uint8_t length) { uint8_t cnt; if (slI2C_Start()) { return 1; } device_addr &= 0xFE;//Device address if (slI2C_SetSLA(device_addr)) { return 1; } if (slI2C_WriteByte(register_addr)) { return 1; } if (slI2C_Start()) { return 1; } device_addr |= 0x01; if (slI2C_SetSLA(device_addr)) { return 1; } if (length) { if (length > 1) { for (cnt = 0; cnt < length - 1; cnt++) { if (slI2C_ReadByte_ACK()) { return 1; } else { data[cnt] = slI2C_returnReadValue(); } } } if (slI2C_ReadByte_NACK()) { return 1; } else { data[length - 1] = slI2C_returnReadValue(); } if (slI2C_Stop()) { return 1; } //Stop return 0; } return 0; } uint8_t BME280_getCalibrationData() { uint8_t Buff[18]; uint8_t dig[32]; uint8_t cnt, ord; ord = 0; // Temp. Dig if (I2C_ReadData(BME280_I2C_ADDR, TEMP_DIG_ADDR, Buff, 6)) { #if showDebugDataBME280 == 1 for (cnt = 0; cnt < 6; cnt++) { slUART_WriteString("BME280_Init - Tmp["); slUART_LogDec(cnt); slUART_WriteString("]: "); slUART_LogBinary(dig[cnt]); } #endif return 1; } for (cnt = 0; cnt < 6; cnt++) { dig[ord++] = Buff[cnt]; } CalibParam.dig_T1 = (dig[1] << 8) | dig[0]; CalibParam.dig_T2 = (dig[3] << 8) | dig[2]; CalibParam.dig_T3 = (dig[5] << 8) | dig[4]; // Pressure Dig if (I2C_ReadData(BME280_I2C_ADDR, PRESS_DIG_ADDR, Buff, 18)) { #if showDebugDataBME280 == 1 for (cnt = 0; cnt < 17; cnt++) { slUART_WriteString("BME280_Init - Press["); slUART_LogDec(cnt); slUART_WriteString("]: "); slUART_LogBinary(Buff[cnt]); } #endif return 1; } for (cnt = 0; cnt < 18; cnt++) { dig[ord++] = Buff[cnt]; } CalibParam.dig_P1 = (dig[7] << 8) | dig[6]; CalibParam.dig_P2 = (dig[9] << 8) | dig[8]; CalibParam.dig_P3 = (dig[11] << 8) | dig[10]; CalibParam.dig_P4 = (dig[13] << 8) | dig[12]; CalibParam.dig_P5 = (dig[15] << 8) | dig[14]; CalibParam.dig_P6 = (dig[17] << 8) | dig[16]; CalibParam.dig_P7 = (dig[19] << 8) | dig[18]; CalibParam.dig_P8 = (dig[21] << 8) | dig[20]; CalibParam.dig_P9 = (dig[23] << 8) | dig[22]; // Humidity Dig 1 if (I2C_ReadData(BME280_I2C_ADDR, HUM_DIG_ADDR1, Buff, 1)) { #if showDebugDataBME280 == 1 slUART_WriteString("BME280_Init - Hum1["); slUART_LogDec(0); slUART_WriteString("]: "); slUART_LogBinary(Buff[0]); #endif return 1; } dig[ord++] = Buff[0]; // Humidity Dig 2 if (I2C_ReadData(BME280_I2C_ADDR, HUM_DIG_ADDR2, Buff, 7)) { #if showDebugDataBME280 == 1 for (cnt = 0; cnt < 6; cnt++) { slUART_WriteString("BME280_Init - Buff["); slUART_LogDec(cnt); slUART_WriteString("]: "); slUART_LogBinary(Buff[cnt]); } #endif return 1; } for (cnt = 0; cnt < 7; cnt++) { dig[ord++] = Buff[cnt]; } CalibParam.dig_H1 = dig[24]; CalibParam.dig_H2 = (dig[26] << 8) | dig[25]; CalibParam.dig_H3 = dig[27]; CalibParam.dig_H4 = (dig[28] << 4) | (dig[29] & 0x0F); CalibParam.dig_H5 = (dig[30] << 4) | ((dig[29] >> 4) & 0x0F); CalibParam.dig_H6 = dig[31]; #if showDebugDataBME280 == 1 slUART_WriteString("CalibParam.dig_T1: "); slUART_LogBinary(CalibParam.dig_T1); slUART_WriteString("CalibParam.dig_T2: "); slUART_LogBinary(CalibParam.dig_T2); slUART_WriteString("CalibParam.dig_T3: "); slUART_LogBinary(CalibParam.dig_T3); slUART_WriteString("CalibParam.dig_P1: "); slUART_LogBinary(CalibParam.dig_P1); slUART_WriteString("CalibParam.dig_P2: "); slUART_LogBinary(CalibParam.dig_P2); slUART_WriteString("CalibParam.dig_P3: "); slUART_LogBinary(CalibParam.dig_P3); slUART_WriteString("CalibParam.dig_P4: "); slUART_LogBinary(CalibParam.dig_P4); slUART_WriteString("CalibParam.dig_P5: "); slUART_LogBinary(CalibParam.dig_P5); slUART_WriteString("CalibParam.dig_P6: "); slUART_LogBinary(CalibParam.dig_P6); slUART_WriteString("CalibParam.dig_P7: "); slUART_LogBinary(CalibParam.dig_P7); slUART_WriteString("CalibParam.dig_P8: "); slUART_LogBinary(CalibParam.dig_P8); slUART_WriteString("CalibParam.dig_P9: "); slUART_LogBinary(CalibParam.dig_P9); slUART_WriteString("CalibParam.dig_H1: "); slUART_LogBinary(CalibParam.dig_H1); slUART_WriteString("CalibParam.dig_H2: "); slUART_LogBinary(CalibParam.dig_H2); slUART_WriteString("CalibParam.dig_H3: "); slUART_LogBinary(CalibParam.dig_H3); slUART_WriteString("CalibParam.dig_H4: "); slUART_LogBinary(CalibParam.dig_H4); slUART_WriteString("CalibParam.dig_H5: "); slUART_LogBinary(CalibParam.dig_H5); slUART_WriteString("CalibParam.dig_H6: "); slUART_LogBinary(CalibParam.dig_H6); #endif return 0; } /********************************************************************** Return: 0 - Everything OK non 0 - Failed Parameters: os_t - Temperature Oversampling os_p - Pressure Oversampling os_h - Humidity Oversampling filter - Filter coefficient mode - Mode (Sleep/Forced/Normal) t_sb - Standby time between conversions **********************************************************************/ uint8_t BME280_Init(uint8_t os_t, uint8_t os_p, uint8_t os_h, uint8_t filter, uint8_t mode, uint8_t t_sb) { uint8_t ID = 0; uint8_t Temp; if (I2C_ReadData(BME280_I2C_ADDR, ID_REG, &ID, 1)) { #if showDebugDataBME280 == 1 slUART_WriteString("ID: "); slUART_LogBinary(ID); #endif return 1; } if (ID != 0x60) return 1; if(BME280_getCalibrationData()){ return 1; } Temp = (t_sb << 5) | ((filter & 0x07) << 2); //config (0xB4) if (I2C_WriteData(BME280_I2C_ADDR, CONFIG_REG, &Temp, 1)) { return 1; } Temp = os_h & 0x07; //hum (0x05) if (I2C_WriteData(BME280_I2C_ADDR, CTRL_HUM_REG, &Temp, 1)) { return 1; } Temp = (os_t << 5) | ((os_p & 0x07) << 2) | (mode & 0x03); //meas (0xB7) if (I2C_WriteData(BME280_I2C_ADDR, CTRL_MEAS_REG, &Temp, 1)) { return 1; } return 0; } // Returns temperature in DegC, resolution is 0.01 DegC. Output value of �5123� equals 51.23 DegC. float BME280_CompensateT(int32_t adc_T) { int32_t var1, var2, T; var1 = ((((adc_T >> 3) - ((int32_t) CalibParam.dig_T1 << 1))) * ((int32_t) CalibParam.dig_T2)) >> 11; var2 = (((((adc_T >> 4) - ((int32_t) CalibParam.dig_T1)) * ((adc_T >> 4) - ((int32_t) CalibParam.dig_T1))) >> 12) * ((int32_t) CalibParam.dig_T3)) >> 14; t_fine = var1 + var2; T = (t_fine * 5 + 128) >> 8; #if showDebugDataBME280 == 1 slUART_WriteString("BME280_CompensateT: "); slUART_LogBinary((uint8_t) (T & 0xFF)); slUART_LogBinary((uint8_t) ((T >> 8) & 0xFF)); slUART_LogBinary((uint8_t) ((T >> 16) & 0xFF)); slUART_LogBinary((uint8_t) ((T >> 24))); #endif return T / 100.0; } // Returns pressure in Pa as unsigned 32 bit integer in Q24.8 format (24 integer bits and 8 fractional bits). // Output value of �24674867� represents 24674867/256 = 96386.2 Pa = 963.862 hPa int64_t BME280_CompensateP(int32_t adc_P) { int64_t var1, var2, p; int64_t final; var1 = (int64_t) t_fine - 128000; var2 = var1 * var1 * (int64_t) CalibParam.dig_P6; var2 = var2 + ((var1 * (int64_t) CalibParam.dig_P5) << 17); var2 = var2 + (((int64_t) CalibParam.dig_P4) << 35); var1 = ((var1 * var1 * (int64_t) CalibParam.dig_P3) >> 8) + ((var1 * (int64_t) CalibParam.dig_P2) << 12); var1 = (((((int64_t) 1) << 47) + var1)) * ((int64_t) CalibParam.dig_P1) >> 33; if (var1 == 0) { return 0; } // Don't divide by zero. p = 1048576 - adc_P; p = (((p << 31) - var2) * 3125) / var1; var1 = (((int64_t) CalibParam.dig_P9) * (p >> 13) * (p >> 13)) >> 25; var2 = (((int64_t) CalibParam.dig_P8) * p) >> 19; p = ((p + var1 + var2) >> 8) + (((int64_t) CalibParam.dig_P7) << 4); final = ((uint32_t) p) / 256.0; #if showDebugDataBME280 == 1 slUART_WriteString("BME280_CompensateP: "); slUART_LogBinary((uint8_t) (p & 0xFF)); slUART_LogBinary((uint8_t) ((p >> 8) & 0xFF)); slUART_LogBinary((uint8_t) ((p >> 16) & 0xFF)); slUART_LogBinary((uint8_t) ((p >> 24))); #endif return final; } // Returns humidity in %RH as unsigned 32 bit integer in Q22.10 format (22 integer and 10 fractional bits). // Output value of �47445� represents 47445/1024 = 46.333 %RH float BME280_CompensateH(int32_t adc_H) { int32_t v_x1_u32; v_x1_u32 = (t_fine - ((int32_t) 76800)); v_x1_u32 = ( ((((adc_H << 14) - (((int32_t) CalibParam.dig_H4) << 20) - (((int32_t) CalibParam.dig_H5) * v_x1_u32)) + ((int32_t) 16384)) >> 15) * (((((((v_x1_u32 * ((int32_t) CalibParam.dig_H6)) >> 10) * (((v_x1_u32 * ((int32_t) CalibParam.dig_H3)) >> 11) + ((int32_t) 32768))) >> 10) + ((int32_t) 2097152)) * ((int32_t) CalibParam.dig_H2) + 8192) >> 14)); v_x1_u32 = (v_x1_u32 - (((((v_x1_u32 >> 15) * (v_x1_u32 >> 15)) >> 7) * ((int32_t) CalibParam.dig_H1)) >> 4)); v_x1_u32 = (v_x1_u32 < 0 ? 0 : v_x1_u32); v_x1_u32 = (v_x1_u32 > 419430400 ? 419430400 : v_x1_u32); v_x1_u32 = (v_x1_u32 >> 12); #if showDebugDataBME280 == 1 slUART_WriteString("BME280_CompensateH: "); slUART_LogBinary((uint8_t) (v_x1_u32 & 0xFF)); slUART_LogBinary((uint8_t) ((v_x1_u32 >> 8) & 0xFF)); slUART_LogBinary((uint8_t) ((v_x1_u32 >> 16) & 0xFF)); slUART_LogBinary((uint8_t) ((v_x1_u32 >> 24))); #endif return v_x1_u32 / 1024.0; } /********************************************************************** Return: 0 - Everything OK non 0 - Failed Parameters: t - Pointer to variable in which to write the temperature p - Pointer to variable in which to write the pressure h - Pointer to variable in which to write the humidity **********************************************************************/ uint8_t BME280_ReadAll(float *t, float *p, float *h) { uint8_t Buff[8] = {0}; uint32_t UncT, UncP, UncH; #if showDebugDataBME280 == 1 uint8_t cnt; #endif if(BME280_getCalibrationData()){ return 1; } if (I2C_ReadData(BME280_I2C_ADDR, PRESS_MSB_REG, Buff, 8)) { #if showDebugDataBME280 == 1 for (cnt = 0; cnt < 7; cnt++) { slUART_WriteString("Buff["); slUART_LogDec(cnt); slUART_WriteString("]: "); slUART_LogBinary(Buff[cnt]); } #endif return 1; } UncP = (int32_t) (((uint32_t) Buff[0] << 12) | ((uint32_t) Buff[1] << 4) | ((uint32_t) Buff[2] >> 4)); UncT = (int32_t) (((uint32_t) Buff[3] << 12) | ((uint32_t) Buff[4] << 4) | ((uint32_t) Buff[5] >> 4)); UncH = (int32_t) (((uint32_t) Buff[6] << 8) | (uint32_t) Buff[7]); #if showDebugDataBME280 == 1 slUART_WriteString("UncP: "); slUART_LogBinary((uint8_t) (UncP & 0xFF)); slUART_LogBinary((uint8_t) ((UncP >> 8) & 0xFF)); slUART_LogBinary((uint8_t) ((UncP >> 16) & 0xFF)); slUART_LogBinary((uint8_t) ((UncP >> 24))); slUART_WriteString("UncT: "); slUART_LogBinary((uint8_t) (UncT & 0xFF)); slUART_LogBinary((uint8_t) ((UncT >> 8) & 0xFF)); slUART_LogBinary((uint8_t) ((UncT >> 16) & 0xFF)); slUART_LogBinary((uint8_t) ((UncT >> 24))); slUART_LogBinary(UncT); slUART_WriteString("UncH: "); slUART_LogBinary((uint8_t) (UncH & 0xFF)); slUART_LogBinary((uint8_t) ((UncH >> 8) & 0xFF)); slUART_LogBinary((uint8_t) ((UncH >> 16) & 0xFF)); slUART_LogBinary((uint8_t) ((UncH >> 24))); #endif *t = BME280_CompensateT(UncT); *p = BME280_CompensateP(UncP); *h = BME280_CompensateH(UncH); return 0; } /********************************************************************** Return: 0 - Everything OK non 0 - Failed Parameters: mode - Mode (Sleep/Forced/Normal) **********************************************************************/ uint8_t BME280_SetMode(uint8_t mode) { uint8_t RegVal = 0; mode &= 0x03; if (I2C_ReadData(BME280_I2C_ADDR, CTRL_MEAS_REG, &RegVal, 1)) { return 1; } RegVal &= 0xFC; RegVal |= mode; return I2C_WriteData(BME280_I2C_ADDR, CTRL_MEAS_REG, &RegVal, 1); }
darekb/tempHumidityPressureCollector
BME280.c
C
mit
15,173
//go:build go1.16 // +build go1.16 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package armappplatform import ( "encoding/json" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "reflect" "time" ) // APIPortalCustomDomainProperties - The properties of custom domain for API portal type APIPortalCustomDomainProperties struct { // The thumbprint of bound certificate. Thumbprint *string `json:"thumbprint,omitempty"` } // APIPortalCustomDomainResource - Custom domain of the API portal type APIPortalCustomDomainResource struct { // The properties of custom domain for API portal Properties *APIPortalCustomDomainProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` } // APIPortalCustomDomainResourceCollection - Object that includes an array of API portal custom domain resources and a possible // link for next set type APIPortalCustomDomainResourceCollection struct { // URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. NextLink *string `json:"nextLink,omitempty"` // Collection of API portal custom domain resources Value []*APIPortalCustomDomainResource `json:"value,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type APIPortalCustomDomainResourceCollection. func (a APIPortalCustomDomainResourceCollection) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "nextLink", a.NextLink) populate(objectMap, "value", a.Value) return json.Marshal(objectMap) } // APIPortalCustomDomainsClientBeginCreateOrUpdateOptions contains the optional parameters for the APIPortalCustomDomainsClient.BeginCreateOrUpdate // method. type APIPortalCustomDomainsClientBeginCreateOrUpdateOptions struct { // placeholder for future optional parameters } // APIPortalCustomDomainsClientBeginDeleteOptions contains the optional parameters for the APIPortalCustomDomainsClient.BeginDelete // method. type APIPortalCustomDomainsClientBeginDeleteOptions struct { // placeholder for future optional parameters } // APIPortalCustomDomainsClientGetOptions contains the optional parameters for the APIPortalCustomDomainsClient.Get method. type APIPortalCustomDomainsClientGetOptions struct { // placeholder for future optional parameters } // APIPortalCustomDomainsClientListOptions contains the optional parameters for the APIPortalCustomDomainsClient.List method. type APIPortalCustomDomainsClientListOptions struct { // placeholder for future optional parameters } // APIPortalInstance - Collection of instances belong to the API portal type APIPortalInstance struct { // READ-ONLY; Name of the API portal instance Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Status of the API portal instance Status *string `json:"status,omitempty" azure:"ro"` } // APIPortalProperties - API portal properties payload type APIPortalProperties struct { // The array of resource Ids of gateway to integrate with API portal. GatewayIDs []*string `json:"gatewayIds,omitempty"` // Indicate if only https is allowed. HTTPSOnly *bool `json:"httpsOnly,omitempty"` // Indicates whether the API portal exposes endpoint. Public *bool `json:"public,omitempty"` // Collection of OpenAPI source URL locations. SourceUrls []*string `json:"sourceUrls,omitempty"` // Single sign-on related configuration SsoProperties *SsoProperties `json:"ssoProperties,omitempty"` // READ-ONLY; Collection of instances belong to API portal. Instances []*APIPortalInstance `json:"instances,omitempty" azure:"ro"` // READ-ONLY; State of the API portal. ProvisioningState *APIPortalProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The requested resource quantity for required CPU and Memory. ResourceRequests *APIPortalResourceRequests `json:"resourceRequests,omitempty" azure:"ro"` // READ-ONLY; URL of the API portal, exposed when 'public' is true. URL *string `json:"url,omitempty" azure:"ro"` } // MarshalJSON implements the json.Marshaller interface for type APIPortalProperties. func (a APIPortalProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "gatewayIds", a.GatewayIDs) populate(objectMap, "httpsOnly", a.HTTPSOnly) populate(objectMap, "instances", a.Instances) populate(objectMap, "provisioningState", a.ProvisioningState) populate(objectMap, "public", a.Public) populate(objectMap, "resourceRequests", a.ResourceRequests) populate(objectMap, "sourceUrls", a.SourceUrls) populate(objectMap, "ssoProperties", a.SsoProperties) populate(objectMap, "url", a.URL) return json.Marshal(objectMap) } // APIPortalResource - API portal resource type APIPortalResource struct { // API portal properties payload Properties *APIPortalProperties `json:"properties,omitempty"` // Sku of the API portal resource SKU *SKU `json:"sku,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` } // APIPortalResourceCollection - Object that includes an array of API portal resources and a possible link for next set type APIPortalResourceCollection struct { // URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. NextLink *string `json:"nextLink,omitempty"` // Collection of API portal resources Value []*APIPortalResource `json:"value,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type APIPortalResourceCollection. func (a APIPortalResourceCollection) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "nextLink", a.NextLink) populate(objectMap, "value", a.Value) return json.Marshal(objectMap) } // APIPortalResourceRequests - Resource requests of the API portal type APIPortalResourceRequests struct { // READ-ONLY; Cpu allocated to each API portal instance CPU *string `json:"cpu,omitempty" azure:"ro"` // READ-ONLY; Memory allocated to each API portal instance Memory *string `json:"memory,omitempty" azure:"ro"` } // APIPortalsClientBeginCreateOrUpdateOptions contains the optional parameters for the APIPortalsClient.BeginCreateOrUpdate // method. type APIPortalsClientBeginCreateOrUpdateOptions struct { // placeholder for future optional parameters } // APIPortalsClientBeginDeleteOptions contains the optional parameters for the APIPortalsClient.BeginDelete method. type APIPortalsClientBeginDeleteOptions struct { // placeholder for future optional parameters } // APIPortalsClientGetOptions contains the optional parameters for the APIPortalsClient.Get method. type APIPortalsClientGetOptions struct { // placeholder for future optional parameters } // APIPortalsClientListOptions contains the optional parameters for the APIPortalsClient.List method. type APIPortalsClientListOptions struct { // placeholder for future optional parameters } // APIPortalsClientValidateDomainOptions contains the optional parameters for the APIPortalsClient.ValidateDomain method. type APIPortalsClientValidateDomainOptions struct { // placeholder for future optional parameters } // ActiveDeploymentCollection - Object that includes an array of Deployment resource name and set them as active. type ActiveDeploymentCollection struct { // Collection of Deployment name. ActiveDeploymentNames []*string `json:"activeDeploymentNames,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type ActiveDeploymentCollection. func (a ActiveDeploymentCollection) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "activeDeploymentNames", a.ActiveDeploymentNames) return json.Marshal(objectMap) } // AppResource - App resource payload type AppResource struct { // The Managed Identity type of the app resource Identity *ManagedIdentityProperties `json:"identity,omitempty"` // The GEO location of the application, always the same with its parent resource Location *string `json:"location,omitempty"` // Properties of the App resource Properties *AppResourceProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` } // MarshalJSON implements the json.Marshaller interface for type AppResource. func (a AppResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "id", a.ID) populate(objectMap, "identity", a.Identity) populate(objectMap, "location", a.Location) populate(objectMap, "name", a.Name) populate(objectMap, "properties", a.Properties) populate(objectMap, "systemData", a.SystemData) populate(objectMap, "type", a.Type) return json.Marshal(objectMap) } // AppResourceCollection - Object that includes an array of App resources and a possible link for next set type AppResourceCollection struct { // URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. NextLink *string `json:"nextLink,omitempty"` // Collection of App resources Value []*AppResource `json:"value,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type AppResourceCollection. func (a AppResourceCollection) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "nextLink", a.NextLink) populate(objectMap, "value", a.Value) return json.Marshal(objectMap) } // AppResourceProperties - App resource properties payload type AppResourceProperties struct { // Collection of addons AddonConfigs map[string]map[string]map[string]interface{} `json:"addonConfigs,omitempty"` // List of custom persistent disks CustomPersistentDisks []*CustomPersistentDiskResource `json:"customPersistentDisks,omitempty"` // Indicate if end to end TLS is enabled. EnableEndToEndTLS *bool `json:"enableEndToEndTLS,omitempty"` // Fully qualified dns Name. Fqdn *string `json:"fqdn,omitempty"` // Indicate if only https is allowed. HTTPSOnly *bool `json:"httpsOnly,omitempty"` // Collection of loaded certificates LoadedCertificates []*LoadedCertificate `json:"loadedCertificates,omitempty"` // Persistent disk settings PersistentDisk *PersistentDisk `json:"persistentDisk,omitempty"` // Indicates whether the App exposes public endpoint Public *bool `json:"public,omitempty"` // Temporary disk settings TemporaryDisk *TemporaryDisk `json:"temporaryDisk,omitempty"` // READ-ONLY; Provisioning state of the App ProvisioningState *AppResourceProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; URL of the App URL *string `json:"url,omitempty" azure:"ro"` } // MarshalJSON implements the json.Marshaller interface for type AppResourceProperties. func (a AppResourceProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "addonConfigs", a.AddonConfigs) populate(objectMap, "customPersistentDisks", a.CustomPersistentDisks) populate(objectMap, "enableEndToEndTLS", a.EnableEndToEndTLS) populate(objectMap, "fqdn", a.Fqdn) populate(objectMap, "httpsOnly", a.HTTPSOnly) populate(objectMap, "loadedCertificates", a.LoadedCertificates) populate(objectMap, "persistentDisk", a.PersistentDisk) populate(objectMap, "provisioningState", a.ProvisioningState) populate(objectMap, "public", a.Public) populate(objectMap, "temporaryDisk", a.TemporaryDisk) populate(objectMap, "url", a.URL) return json.Marshal(objectMap) } // ApplicationInsightsAgentVersions - Application Insights agent versions properties payload type ApplicationInsightsAgentVersions struct { // READ-ONLY; Indicates the version of application insight java agent Java *string `json:"java,omitempty" azure:"ro"` } // AppsClientBeginCreateOrUpdateOptions contains the optional parameters for the AppsClient.BeginCreateOrUpdate method. type AppsClientBeginCreateOrUpdateOptions struct { // placeholder for future optional parameters } // AppsClientBeginDeleteOptions contains the optional parameters for the AppsClient.BeginDelete method. type AppsClientBeginDeleteOptions struct { // placeholder for future optional parameters } // AppsClientBeginSetActiveDeploymentsOptions contains the optional parameters for the AppsClient.BeginSetActiveDeployments // method. type AppsClientBeginSetActiveDeploymentsOptions struct { // placeholder for future optional parameters } // AppsClientBeginUpdateOptions contains the optional parameters for the AppsClient.BeginUpdate method. type AppsClientBeginUpdateOptions struct { // placeholder for future optional parameters } // AppsClientGetOptions contains the optional parameters for the AppsClient.Get method. type AppsClientGetOptions struct { // Indicates whether sync status SyncStatus *string } // AppsClientGetResourceUploadURLOptions contains the optional parameters for the AppsClient.GetResourceUploadURL method. type AppsClientGetResourceUploadURLOptions struct { // placeholder for future optional parameters } // AppsClientListOptions contains the optional parameters for the AppsClient.List method. type AppsClientListOptions struct { // placeholder for future optional parameters } // AppsClientValidateDomainOptions contains the optional parameters for the AppsClient.ValidateDomain method. type AppsClientValidateDomainOptions struct { // placeholder for future optional parameters } // AvailableOperations - Available operations of the service type AvailableOperations struct { // URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. NextLink *string `json:"nextLink,omitempty"` // Collection of available operation details Value []*OperationDetail `json:"value,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type AvailableOperations. func (a AvailableOperations) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "nextLink", a.NextLink) populate(objectMap, "value", a.Value) return json.Marshal(objectMap) } type AvailableRuntimeVersions struct { // READ-ONLY; A list of all supported runtime versions. Value []*SupportedRuntimeVersion `json:"value,omitempty" azure:"ro"` } // MarshalJSON implements the json.Marshaller interface for type AvailableRuntimeVersions. func (a AvailableRuntimeVersions) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "value", a.Value) return json.Marshal(objectMap) } // AzureFileVolume - The properties of the Azure File volume. Azure File shares are mounted as volumes. type AzureFileVolume struct { // REQUIRED; The mount path of the persistent disk. MountPath *string `json:"mountPath,omitempty"` // REQUIRED; The share name of the Azure File share. ShareName *string `json:"shareName,omitempty"` // REQUIRED; The type of the underlying resource to mount as a persistent disk. Type *CustomPersistentDiskPropertiesType `json:"type,omitempty"` // These are the mount options for a persistent disk. MountOptions []*string `json:"mountOptions,omitempty"` // Indicates whether the persistent disk is a readOnly one. ReadOnly *bool `json:"readOnly,omitempty"` } // GetCustomPersistentDiskProperties implements the CustomPersistentDiskPropertiesClassification interface for type AzureFileVolume. func (a *AzureFileVolume) GetCustomPersistentDiskProperties() *CustomPersistentDiskProperties { return &CustomPersistentDiskProperties{ Type: a.Type, MountPath: a.MountPath, ReadOnly: a.ReadOnly, MountOptions: a.MountOptions, } } // MarshalJSON implements the json.Marshaller interface for type AzureFileVolume. func (a AzureFileVolume) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "mountOptions", a.MountOptions) populate(objectMap, "mountPath", a.MountPath) populate(objectMap, "readOnly", a.ReadOnly) populate(objectMap, "shareName", a.ShareName) objectMap["type"] = CustomPersistentDiskPropertiesTypeAzureFileVolume return json.Marshal(objectMap) } // UnmarshalJSON implements the json.Unmarshaller interface for type AzureFileVolume. func (a *AzureFileVolume) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return err } for key, val := range rawMsg { var err error switch key { case "mountOptions": err = unpopulate(val, &a.MountOptions) delete(rawMsg, key) case "mountPath": err = unpopulate(val, &a.MountPath) delete(rawMsg, key) case "readOnly": err = unpopulate(val, &a.ReadOnly) delete(rawMsg, key) case "shareName": err = unpopulate(val, &a.ShareName) delete(rawMsg, key) case "type": err = unpopulate(val, &a.Type) delete(rawMsg, key) } if err != nil { return err } } return nil } // BindingResource - Binding resource payload type BindingResource struct { // Properties of the Binding resource Properties *BindingResourceProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` } // MarshalJSON implements the json.Marshaller interface for type BindingResource. func (b BindingResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "id", b.ID) populate(objectMap, "name", b.Name) populate(objectMap, "properties", b.Properties) populate(objectMap, "systemData", b.SystemData) populate(objectMap, "type", b.Type) return json.Marshal(objectMap) } // BindingResourceCollection - Object that includes an array of Binding resources and a possible link for next set type BindingResourceCollection struct { // URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. NextLink *string `json:"nextLink,omitempty"` // Collection of Binding resources Value []*BindingResource `json:"value,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type BindingResourceCollection. func (b BindingResourceCollection) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "nextLink", b.NextLink) populate(objectMap, "value", b.Value) return json.Marshal(objectMap) } // BindingResourceProperties - Binding resource properties payload type BindingResourceProperties struct { // Binding parameters of the Binding resource BindingParameters map[string]map[string]interface{} `json:"bindingParameters,omitempty"` // The key of the bound resource Key *string `json:"key,omitempty"` // The Azure resource id of the bound resource ResourceID *string `json:"resourceId,omitempty"` // READ-ONLY; Creation time of the Binding resource CreatedAt *string `json:"createdAt,omitempty" azure:"ro"` // READ-ONLY; The generated Spring Boot property file for this binding. The secret will be deducted. GeneratedProperties *string `json:"generatedProperties,omitempty" azure:"ro"` // READ-ONLY; The name of the bound resource ResourceName *string `json:"resourceName,omitempty" azure:"ro"` // READ-ONLY; The standard Azure resource type of the bound resource ResourceType *string `json:"resourceType,omitempty" azure:"ro"` // READ-ONLY; Update time of the Binding resource UpdatedAt *string `json:"updatedAt,omitempty" azure:"ro"` } // MarshalJSON implements the json.Marshaller interface for type BindingResourceProperties. func (b BindingResourceProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "bindingParameters", b.BindingParameters) populate(objectMap, "createdAt", b.CreatedAt) populate(objectMap, "generatedProperties", b.GeneratedProperties) populate(objectMap, "key", b.Key) populate(objectMap, "resourceId", b.ResourceID) populate(objectMap, "resourceName", b.ResourceName) populate(objectMap, "resourceType", b.ResourceType) populate(objectMap, "updatedAt", b.UpdatedAt) return json.Marshal(objectMap) } // BindingsClientBeginCreateOrUpdateOptions contains the optional parameters for the BindingsClient.BeginCreateOrUpdate method. type BindingsClientBeginCreateOrUpdateOptions struct { // placeholder for future optional parameters } // BindingsClientBeginDeleteOptions contains the optional parameters for the BindingsClient.BeginDelete method. type BindingsClientBeginDeleteOptions struct { // placeholder for future optional parameters } // BindingsClientBeginUpdateOptions contains the optional parameters for the BindingsClient.BeginUpdate method. type BindingsClientBeginUpdateOptions struct { // placeholder for future optional parameters } // BindingsClientGetOptions contains the optional parameters for the BindingsClient.Get method. type BindingsClientGetOptions struct { // placeholder for future optional parameters } // BindingsClientListOptions contains the optional parameters for the BindingsClient.List method. type BindingsClientListOptions struct { // placeholder for future optional parameters } // Build resource payload type Build struct { // Properties of the build resource Properties *BuildProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` } // BuildCollection - Object that includes an array of Build resources and a possible link for next set type BuildCollection struct { // URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. NextLink *string `json:"nextLink,omitempty"` // Collection of Build resources Value []*Build `json:"value,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type BuildCollection. func (b BuildCollection) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "nextLink", b.NextLink) populate(objectMap, "value", b.Value) return json.Marshal(objectMap) } // BuildProperties - Build resource properties payload type BuildProperties struct { // The resource id of agent pool AgentPool *string `json:"agentPool,omitempty"` // The resource id of builder to build the source code Builder *string `json:"builder,omitempty"` // The environment variables for this build Env map[string]*string `json:"env,omitempty"` // The relative path of source code RelativePath *string `json:"relativePath,omitempty"` // READ-ONLY; Provisioning state of the KPack build result ProvisioningState *BuildProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The build result triggered by this build TriggeredBuildResult *TriggeredBuildResult `json:"triggeredBuildResult,omitempty" azure:"ro"` } // MarshalJSON implements the json.Marshaller interface for type BuildProperties. func (b BuildProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "agentPool", b.AgentPool) populate(objectMap, "builder", b.Builder) populate(objectMap, "env", b.Env) populate(objectMap, "provisioningState", b.ProvisioningState) populate(objectMap, "relativePath", b.RelativePath) populate(objectMap, "triggeredBuildResult", b.TriggeredBuildResult) return json.Marshal(objectMap) } // BuildResult - Build result resource payload type BuildResult struct { // Properties of the build result resource Properties *BuildResultProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` } // BuildResultCollection - Object that includes an array of Build result resources and a possible link for next set type BuildResultCollection struct { // URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. NextLink *string `json:"nextLink,omitempty"` // Collection of Build result resources Value []*BuildResult `json:"value,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type BuildResultCollection. func (b BuildResultCollection) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "nextLink", b.NextLink) populate(objectMap, "value", b.Value) return json.Marshal(objectMap) } // BuildResultLog - Build result log resource properties payload type BuildResultLog struct { // The public download URL of this build result log BlobURL *string `json:"blobUrl,omitempty"` } // BuildResultProperties - Build result resource properties payload type BuildResultProperties struct { // The build pod name which can be used to get the build log streaming. BuildPodName *string `json:"buildPodName,omitempty"` // The name of this build result Name *string `json:"name,omitempty"` // READ-ONLY; All of the build stage (init-container and container) resources in build pod. BuildStages []*BuildStageProperties `json:"buildStages,omitempty" azure:"ro"` // READ-ONLY; Provisioning state of the KPack build result ProvisioningState *BuildResultProvisioningState `json:"provisioningState,omitempty" azure:"ro"` } // MarshalJSON implements the json.Marshaller interface for type BuildResultProperties. func (b BuildResultProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "buildPodName", b.BuildPodName) populate(objectMap, "buildStages", b.BuildStages) populate(objectMap, "name", b.Name) populate(objectMap, "provisioningState", b.ProvisioningState) return json.Marshal(objectMap) } // BuildResultUserSourceInfo - Reference to a build result type BuildResultUserSourceInfo struct { // REQUIRED; Type of the source uploaded Type *string `json:"type,omitempty"` // Resource id of an existing succeeded build result under the same Spring instance. BuildResultID *string `json:"buildResultId,omitempty"` // Version of the source Version *string `json:"version,omitempty"` } // GetUserSourceInfo implements the UserSourceInfoClassification interface for type BuildResultUserSourceInfo. func (b *BuildResultUserSourceInfo) GetUserSourceInfo() *UserSourceInfo { return &UserSourceInfo{ Type: b.Type, Version: b.Version, } } // MarshalJSON implements the json.Marshaller interface for type BuildResultUserSourceInfo. func (b BuildResultUserSourceInfo) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "buildResultId", b.BuildResultID) objectMap["type"] = "BuildResult" populate(objectMap, "version", b.Version) return json.Marshal(objectMap) } // UnmarshalJSON implements the json.Unmarshaller interface for type BuildResultUserSourceInfo. func (b *BuildResultUserSourceInfo) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return err } for key, val := range rawMsg { var err error switch key { case "buildResultId": err = unpopulate(val, &b.BuildResultID) delete(rawMsg, key) case "type": err = unpopulate(val, &b.Type) delete(rawMsg, key) case "version": err = unpopulate(val, &b.Version) delete(rawMsg, key) } if err != nil { return err } } return nil } // BuildService - Build service resource payload type BuildService struct { // Properties of the build resource Properties *BuildServiceProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` } // BuildServiceAgentPoolClientBeginUpdatePutOptions contains the optional parameters for the BuildServiceAgentPoolClient.BeginUpdatePut // method. type BuildServiceAgentPoolClientBeginUpdatePutOptions struct { // placeholder for future optional parameters } // BuildServiceAgentPoolClientGetOptions contains the optional parameters for the BuildServiceAgentPoolClient.Get method. type BuildServiceAgentPoolClientGetOptions struct { // placeholder for future optional parameters } // BuildServiceAgentPoolClientListOptions contains the optional parameters for the BuildServiceAgentPoolClient.List method. type BuildServiceAgentPoolClientListOptions struct { // placeholder for future optional parameters } // BuildServiceAgentPoolProperties - Build service agent pool properties type BuildServiceAgentPoolProperties struct { // build service agent pool size properties PoolSize *BuildServiceAgentPoolSizeProperties `json:"poolSize,omitempty"` // READ-ONLY; Provisioning state of the build service agent pool ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` } // BuildServiceAgentPoolResource - The build service agent pool resource type BuildServiceAgentPoolResource struct { // build service agent pool properties Properties *BuildServiceAgentPoolProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` } // BuildServiceAgentPoolResourceCollection - Object that includes an array of build service agent pool resources and a possible // link for next set type BuildServiceAgentPoolResourceCollection struct { // URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. NextLink *string `json:"nextLink,omitempty"` // Collection of build service agent pool resource Value []*BuildServiceAgentPoolResource `json:"value,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type BuildServiceAgentPoolResourceCollection. func (b BuildServiceAgentPoolResourceCollection) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "nextLink", b.NextLink) populate(objectMap, "value", b.Value) return json.Marshal(objectMap) } // BuildServiceAgentPoolSizeProperties - Build service agent pool size properties type BuildServiceAgentPoolSizeProperties struct { // The name of build service agent pool size Name *string `json:"name,omitempty"` // READ-ONLY; The cpu property of build service agent pool size CPU *string `json:"cpu,omitempty" azure:"ro"` // READ-ONLY; The memory property of build service agent pool size Memory *string `json:"memory,omitempty" azure:"ro"` } // BuildServiceBuilderClientBeginCreateOrUpdateOptions contains the optional parameters for the BuildServiceBuilderClient.BeginCreateOrUpdate // method. type BuildServiceBuilderClientBeginCreateOrUpdateOptions struct { // placeholder for future optional parameters } // BuildServiceBuilderClientBeginDeleteOptions contains the optional parameters for the BuildServiceBuilderClient.BeginDelete // method. type BuildServiceBuilderClientBeginDeleteOptions struct { // placeholder for future optional parameters } // BuildServiceBuilderClientGetOptions contains the optional parameters for the BuildServiceBuilderClient.Get method. type BuildServiceBuilderClientGetOptions struct { // placeholder for future optional parameters } // BuildServiceBuilderClientListOptions contains the optional parameters for the BuildServiceBuilderClient.List method. type BuildServiceBuilderClientListOptions struct { // placeholder for future optional parameters } // BuildServiceClientCreateOrUpdateBuildOptions contains the optional parameters for the BuildServiceClient.CreateOrUpdateBuild // method. type BuildServiceClientCreateOrUpdateBuildOptions struct { // placeholder for future optional parameters } // BuildServiceClientGetBuildOptions contains the optional parameters for the BuildServiceClient.GetBuild method. type BuildServiceClientGetBuildOptions struct { // placeholder for future optional parameters } // BuildServiceClientGetBuildResultLogOptions contains the optional parameters for the BuildServiceClient.GetBuildResultLog // method. type BuildServiceClientGetBuildResultLogOptions struct { // placeholder for future optional parameters } // BuildServiceClientGetBuildResultOptions contains the optional parameters for the BuildServiceClient.GetBuildResult method. type BuildServiceClientGetBuildResultOptions struct { // placeholder for future optional parameters } // BuildServiceClientGetBuildServiceOptions contains the optional parameters for the BuildServiceClient.GetBuildService method. type BuildServiceClientGetBuildServiceOptions struct { // placeholder for future optional parameters } // BuildServiceClientGetResourceUploadURLOptions contains the optional parameters for the BuildServiceClient.GetResourceUploadURL // method. type BuildServiceClientGetResourceUploadURLOptions struct { // placeholder for future optional parameters } // BuildServiceClientGetSupportedBuildpackOptions contains the optional parameters for the BuildServiceClient.GetSupportedBuildpack // method. type BuildServiceClientGetSupportedBuildpackOptions struct { // placeholder for future optional parameters } // BuildServiceClientGetSupportedStackOptions contains the optional parameters for the BuildServiceClient.GetSupportedStack // method. type BuildServiceClientGetSupportedStackOptions struct { // placeholder for future optional parameters } // BuildServiceClientListBuildResultsOptions contains the optional parameters for the BuildServiceClient.ListBuildResults // method. type BuildServiceClientListBuildResultsOptions struct { // placeholder for future optional parameters } // BuildServiceClientListBuildServicesOptions contains the optional parameters for the BuildServiceClient.ListBuildServices // method. type BuildServiceClientListBuildServicesOptions struct { // placeholder for future optional parameters } // BuildServiceClientListBuildsOptions contains the optional parameters for the BuildServiceClient.ListBuilds method. type BuildServiceClientListBuildsOptions struct { // placeholder for future optional parameters } // BuildServiceClientListSupportedBuildpacksOptions contains the optional parameters for the BuildServiceClient.ListSupportedBuildpacks // method. type BuildServiceClientListSupportedBuildpacksOptions struct { // placeholder for future optional parameters } // BuildServiceClientListSupportedStacksOptions contains the optional parameters for the BuildServiceClient.ListSupportedStacks // method. type BuildServiceClientListSupportedStacksOptions struct { // placeholder for future optional parameters } // BuildServiceCollection - Object that includes an array of Build service resources and a possible link for next set type BuildServiceCollection struct { // URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. NextLink *string `json:"nextLink,omitempty"` // Collection of Build service resources Value []*BuildService `json:"value,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type BuildServiceCollection. func (b BuildServiceCollection) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "nextLink", b.NextLink) populate(objectMap, "value", b.Value) return json.Marshal(objectMap) } // BuildServiceProperties - Build service resource properties payload type BuildServiceProperties struct { // The installed KPack version in this build service. KPackVersion *string `json:"kPackVersion,omitempty"` // The runtime resource configuration of this build service. ResourceRequests *BuildServicePropertiesResourceRequests `json:"resourceRequests,omitempty"` // READ-ONLY; Provisioning state of the KPack build result ProvisioningState *BuildServiceProvisioningState `json:"provisioningState,omitempty" azure:"ro"` } // BuildServicePropertiesResourceRequests - The runtime resource configuration of this build service. type BuildServicePropertiesResourceRequests struct { // READ-ONLY; vCPU allocated to the entire build service node pool. CPU *string `json:"cpu,omitempty" azure:"ro"` // READ-ONLY; Memory allocated to the entire build service node pool. Memory *string `json:"memory,omitempty" azure:"ro"` } // BuildStageProperties - The build stage (init-container and container) resources in build pod. type BuildStageProperties struct { // READ-ONLY; The name of this build stage resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of this build stage resource. Status *KPackBuildStageProvisioningState `json:"status,omitempty" azure:"ro"` } // BuilderProperties - KPack Builder properties payload type BuilderProperties struct { // Builder buildpack groups. BuildpackGroups []*BuildpacksGroupProperties `json:"buildpackGroups,omitempty"` // Builder cluster stack property. Stack *StackProperties `json:"stack,omitempty"` // READ-ONLY; Builder provision status. ProvisioningState *BuilderProvisioningState `json:"provisioningState,omitempty" azure:"ro"` } // MarshalJSON implements the json.Marshaller interface for type BuilderProperties. func (b BuilderProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "buildpackGroups", b.BuildpackGroups) populate(objectMap, "provisioningState", b.ProvisioningState) populate(objectMap, "stack", b.Stack) return json.Marshal(objectMap) } // BuilderResource - KPack Builder resource type BuilderResource struct { // Property of the Builder resource. Properties *BuilderProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` } // BuilderResourceCollection - Object that includes an array of Builder resources and a possible link for next set type BuilderResourceCollection struct { // URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. NextLink *string `json:"nextLink,omitempty"` // Collection of Builder resources Value []*BuilderResource `json:"value,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type BuilderResourceCollection. func (b BuilderResourceCollection) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "nextLink", b.NextLink) populate(objectMap, "value", b.Value) return json.Marshal(objectMap) } // BuildpackBindingClientBeginCreateOrUpdateOptions contains the optional parameters for the BuildpackBindingClient.BeginCreateOrUpdate // method. type BuildpackBindingClientBeginCreateOrUpdateOptions struct { // placeholder for future optional parameters } // BuildpackBindingClientBeginDeleteOptions contains the optional parameters for the BuildpackBindingClient.BeginDelete method. type BuildpackBindingClientBeginDeleteOptions struct { // placeholder for future optional parameters } // BuildpackBindingClientGetOptions contains the optional parameters for the BuildpackBindingClient.Get method. type BuildpackBindingClientGetOptions struct { // placeholder for future optional parameters } // BuildpackBindingClientListOptions contains the optional parameters for the BuildpackBindingClient.List method. type BuildpackBindingClientListOptions struct { // placeholder for future optional parameters } // BuildpackBindingLaunchProperties - Buildpack Binding Launch Properties type BuildpackBindingLaunchProperties struct { // Non-sensitive properties for launchProperties Properties map[string]*string `json:"properties,omitempty"` // Sensitive properties for launchProperties Secrets map[string]*string `json:"secrets,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type BuildpackBindingLaunchProperties. func (b BuildpackBindingLaunchProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "properties", b.Properties) populate(objectMap, "secrets", b.Secrets) return json.Marshal(objectMap) } // BuildpackBindingProperties - Properties of a buildpack binding type BuildpackBindingProperties struct { // Buildpack Binding Type BindingType *BindingType `json:"bindingType,omitempty"` // The object describes the buildpack binding launch properties LaunchProperties *BuildpackBindingLaunchProperties `json:"launchProperties,omitempty"` // READ-ONLY; State of the Buildpack Binding. ProvisioningState *BuildpackBindingProvisioningState `json:"provisioningState,omitempty" azure:"ro"` } // BuildpackBindingResource - Buildpack Binding Resource object type BuildpackBindingResource struct { // Properties of a buildpack binding Properties *BuildpackBindingProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` } // BuildpackBindingResourceCollection - Object that includes an array of BuildpackBinding resources and a possible link for // next set type BuildpackBindingResourceCollection struct { // URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. NextLink *string `json:"nextLink,omitempty"` // Collection of BuildpackBinding resources Value []*BuildpackBindingResource `json:"value,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type BuildpackBindingResourceCollection. func (b BuildpackBindingResourceCollection) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "nextLink", b.NextLink) populate(objectMap, "value", b.Value) return json.Marshal(objectMap) } // BuildpackProperties - Buildpack properties payload type BuildpackProperties struct { // Id of the buildpack ID *string `json:"id,omitempty"` } // BuildpacksGroupProperties - Buildpack group properties of the Builder type BuildpacksGroupProperties struct { // Buildpacks in the buildpack group Buildpacks []*BuildpackProperties `json:"buildpacks,omitempty"` // Buildpack group name Name *string `json:"name,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type BuildpacksGroupProperties. func (b BuildpacksGroupProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "buildpacks", b.Buildpacks) populate(objectMap, "name", b.Name) return json.Marshal(objectMap) } // CertificatePropertiesClassification provides polymorphic access to related types. // Call the interface's GetCertificateProperties() method to access the common type. // Use a type switch to determine the concrete type. The possible types are: // - *CertificateProperties, *ContentCertificateProperties, *KeyVaultCertificateProperties type CertificatePropertiesClassification interface { // GetCertificateProperties returns the CertificateProperties content of the underlying type. GetCertificateProperties() *CertificateProperties } // CertificateProperties - Certificate resource payload. type CertificateProperties struct { // REQUIRED; The type of the certificate source. Type *string `json:"type,omitempty"` // READ-ONLY; The activate date of certificate. ActivateDate *string `json:"activateDate,omitempty" azure:"ro"` // READ-ONLY; The domain list of certificate. DNSNames []*string `json:"dnsNames,omitempty" azure:"ro"` // READ-ONLY; The expiration date of certificate. ExpirationDate *string `json:"expirationDate,omitempty" azure:"ro"` // READ-ONLY; The issue date of certificate. IssuedDate *string `json:"issuedDate,omitempty" azure:"ro"` // READ-ONLY; The issuer of certificate. Issuer *string `json:"issuer,omitempty" azure:"ro"` // READ-ONLY; The subject name of certificate. SubjectName *string `json:"subjectName,omitempty" azure:"ro"` // READ-ONLY; The thumbprint of certificate. Thumbprint *string `json:"thumbprint,omitempty" azure:"ro"` } // GetCertificateProperties implements the CertificatePropertiesClassification interface for type CertificateProperties. func (c *CertificateProperties) GetCertificateProperties() *CertificateProperties { return c } // MarshalJSON implements the json.Marshaller interface for type CertificateProperties. func (c CertificateProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "activateDate", c.ActivateDate) populate(objectMap, "dnsNames", c.DNSNames) populate(objectMap, "expirationDate", c.ExpirationDate) populate(objectMap, "issuedDate", c.IssuedDate) populate(objectMap, "issuer", c.Issuer) populate(objectMap, "subjectName", c.SubjectName) populate(objectMap, "thumbprint", c.Thumbprint) objectMap["type"] = c.Type return json.Marshal(objectMap) } // CertificateResource - Certificate resource payload. type CertificateResource struct { // Properties of the certificate resource payload. Properties CertificatePropertiesClassification `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` } // MarshalJSON implements the json.Marshaller interface for type CertificateResource. func (c CertificateResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "id", c.ID) populate(objectMap, "name", c.Name) populate(objectMap, "properties", c.Properties) populate(objectMap, "systemData", c.SystemData) populate(objectMap, "type", c.Type) return json.Marshal(objectMap) } // UnmarshalJSON implements the json.Unmarshaller interface for type CertificateResource. func (c *CertificateResource) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return err } for key, val := range rawMsg { var err error switch key { case "id": err = unpopulate(val, &c.ID) delete(rawMsg, key) case "name": err = unpopulate(val, &c.Name) delete(rawMsg, key) case "properties": c.Properties, err = unmarshalCertificatePropertiesClassification(val) delete(rawMsg, key) case "systemData": err = unpopulate(val, &c.SystemData) delete(rawMsg, key) case "type": err = unpopulate(val, &c.Type) delete(rawMsg, key) } if err != nil { return err } } return nil } // CertificateResourceCollection - Collection compose of certificate resources list and a possible link for next page. type CertificateResourceCollection struct { // The link to next page of certificate list. NextLink *string `json:"nextLink,omitempty"` // The certificate resources list. Value []*CertificateResource `json:"value,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type CertificateResourceCollection. func (c CertificateResourceCollection) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "nextLink", c.NextLink) populate(objectMap, "value", c.Value) return json.Marshal(objectMap) } // CertificatesClientBeginCreateOrUpdateOptions contains the optional parameters for the CertificatesClient.BeginCreateOrUpdate // method. type CertificatesClientBeginCreateOrUpdateOptions struct { // placeholder for future optional parameters } // CertificatesClientBeginDeleteOptions contains the optional parameters for the CertificatesClient.BeginDelete method. type CertificatesClientBeginDeleteOptions struct { // placeholder for future optional parameters } // CertificatesClientGetOptions contains the optional parameters for the CertificatesClient.Get method. type CertificatesClientGetOptions struct { // placeholder for future optional parameters } // CertificatesClientListOptions contains the optional parameters for the CertificatesClient.List method. type CertificatesClientListOptions struct { // placeholder for future optional parameters } // CloudError - An error response from the service. type CloudError struct { // An error response from the service. Error *CloudErrorBody `json:"error,omitempty"` } // CloudErrorBody - An error response from the service. type CloudErrorBody struct { // An identifier for the error. Codes are invariant and are intended to be consumed programmatically. Code *string `json:"code,omitempty"` // A list of additional details about the error. Details []*CloudErrorBody `json:"details,omitempty"` // A message describing the error, intended to be suitable for display in a user interface. Message *string `json:"message,omitempty"` // The target of the particular error. For example, the name of the property in error. Target *string `json:"target,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type CloudErrorBody. func (c CloudErrorBody) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "code", c.Code) populate(objectMap, "details", c.Details) populate(objectMap, "message", c.Message) populate(objectMap, "target", c.Target) return json.Marshal(objectMap) } // ClusterResourceProperties - Service properties payload type ClusterResourceProperties struct { // Network profile of the Service NetworkProfile *NetworkProfile `json:"networkProfile,omitempty"` ZoneRedundant *bool `json:"zoneRedundant,omitempty"` // READ-ONLY; Fully qualified dns name of the service instance Fqdn *string `json:"fqdn,omitempty" azure:"ro"` // READ-ONLY; Power state of the Service PowerState *PowerState `json:"powerState,omitempty" azure:"ro"` // READ-ONLY; Provisioning state of the Service ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; ServiceInstanceEntity GUID which uniquely identifies a created resource ServiceID *string `json:"serviceId,omitempty" azure:"ro"` // READ-ONLY; Version of the Service Version *int32 `json:"version,omitempty" azure:"ro"` } // ConfigServerGitProperty - Property of git. type ConfigServerGitProperty struct { // REQUIRED; URI of the repository URI *string `json:"uri,omitempty"` // Public sshKey of git repository. HostKey *string `json:"hostKey,omitempty"` // SshKey algorithm of git repository. HostKeyAlgorithm *string `json:"hostKeyAlgorithm,omitempty"` // Label of the repository Label *string `json:"label,omitempty"` // Password of git repository basic auth. Password *string `json:"password,omitempty"` // Private sshKey algorithm of git repository. PrivateKey *string `json:"privateKey,omitempty"` // Repositories of git. Repositories []*GitPatternRepository `json:"repositories,omitempty"` // Searching path of the repository SearchPaths []*string `json:"searchPaths,omitempty"` // Strict host key checking or not. StrictHostKeyChecking *bool `json:"strictHostKeyChecking,omitempty"` // Username of git repository basic auth. Username *string `json:"username,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type ConfigServerGitProperty. func (c ConfigServerGitProperty) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "hostKey", c.HostKey) populate(objectMap, "hostKeyAlgorithm", c.HostKeyAlgorithm) populate(objectMap, "label", c.Label) populate(objectMap, "password", c.Password) populate(objectMap, "privateKey", c.PrivateKey) populate(objectMap, "repositories", c.Repositories) populate(objectMap, "searchPaths", c.SearchPaths) populate(objectMap, "strictHostKeyChecking", c.StrictHostKeyChecking) populate(objectMap, "uri", c.URI) populate(objectMap, "username", c.Username) return json.Marshal(objectMap) } // ConfigServerProperties - Config server git properties payload type ConfigServerProperties struct { // Settings of config server. ConfigServer *ConfigServerSettings `json:"configServer,omitempty"` // Error when apply config server settings. Error *Error `json:"error,omitempty"` // READ-ONLY; State of the config server. ProvisioningState *ConfigServerState `json:"provisioningState,omitempty" azure:"ro"` } // ConfigServerResource - Config Server resource type ConfigServerResource struct { // Properties of the Config Server resource Properties *ConfigServerProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` } // MarshalJSON implements the json.Marshaller interface for type ConfigServerResource. func (c ConfigServerResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "id", c.ID) populate(objectMap, "name", c.Name) populate(objectMap, "properties", c.Properties) populate(objectMap, "systemData", c.SystemData) populate(objectMap, "type", c.Type) return json.Marshal(objectMap) } // ConfigServerSettings - The settings of config server. type ConfigServerSettings struct { // Property of git environment. GitProperty *ConfigServerGitProperty `json:"gitProperty,omitempty"` } // ConfigServerSettingsErrorRecord - Error record of the config server settings type ConfigServerSettingsErrorRecord struct { // The detail error messages of the record Messages []*string `json:"messages,omitempty"` // The name of the config server settings error record Name *string `json:"name,omitempty"` // The uri of the config server settings error record URI *string `json:"uri,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type ConfigServerSettingsErrorRecord. func (c ConfigServerSettingsErrorRecord) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "messages", c.Messages) populate(objectMap, "name", c.Name) populate(objectMap, "uri", c.URI) return json.Marshal(objectMap) } // ConfigServerSettingsValidateResult - Validation result for config server settings type ConfigServerSettingsValidateResult struct { // The detail validation results Details []*ConfigServerSettingsErrorRecord `json:"details,omitempty"` // Indicate if the config server settings are valid IsValid *bool `json:"isValid,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type ConfigServerSettingsValidateResult. func (c ConfigServerSettingsValidateResult) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "details", c.Details) populate(objectMap, "isValid", c.IsValid) return json.Marshal(objectMap) } // ConfigServersClientBeginUpdatePatchOptions contains the optional parameters for the ConfigServersClient.BeginUpdatePatch // method. type ConfigServersClientBeginUpdatePatchOptions struct { // placeholder for future optional parameters } // ConfigServersClientBeginUpdatePutOptions contains the optional parameters for the ConfigServersClient.BeginUpdatePut method. type ConfigServersClientBeginUpdatePutOptions struct { // placeholder for future optional parameters } // ConfigServersClientBeginValidateOptions contains the optional parameters for the ConfigServersClient.BeginValidate method. type ConfigServersClientBeginValidateOptions struct { // placeholder for future optional parameters } // ConfigServersClientGetOptions contains the optional parameters for the ConfigServersClient.Get method. type ConfigServersClientGetOptions struct { // placeholder for future optional parameters } // ConfigurationServiceGitProperty - Property of git environment. type ConfigurationServiceGitProperty struct { // Repositories of Application Configuration Service git property. Repositories []*ConfigurationServiceGitRepository `json:"repositories,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type ConfigurationServiceGitProperty. func (c ConfigurationServiceGitProperty) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "repositories", c.Repositories) return json.Marshal(objectMap) } // ConfigurationServiceGitPropertyValidateResult - Validation result for configuration service settings type ConfigurationServiceGitPropertyValidateResult struct { // The detail validation results GitReposValidationResult []*ValidationMessages `json:"gitReposValidationResult,omitempty"` // Indicate if the configuration service settings are valid IsValid *bool `json:"isValid,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type ConfigurationServiceGitPropertyValidateResult. func (c ConfigurationServiceGitPropertyValidateResult) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "gitReposValidationResult", c.GitReposValidationResult) populate(objectMap, "isValid", c.IsValid) return json.Marshal(objectMap) } // ConfigurationServiceGitRepository - Git repository property payload for Application Configuration Service type ConfigurationServiceGitRepository struct { // REQUIRED; Label of the repository Label *string `json:"label,omitempty"` // REQUIRED; Name of the repository Name *string `json:"name,omitempty"` // REQUIRED; Collection of patterns of the repository Patterns []*string `json:"patterns,omitempty"` // REQUIRED; URI of the repository URI *string `json:"uri,omitempty"` // Public sshKey of git repository. HostKey *string `json:"hostKey,omitempty"` // SshKey algorithm of git repository. HostKeyAlgorithm *string `json:"hostKeyAlgorithm,omitempty"` // Password of git repository basic auth. Password *string `json:"password,omitempty"` // Private sshKey algorithm of git repository. PrivateKey *string `json:"privateKey,omitempty"` // Searching path of the repository SearchPaths []*string `json:"searchPaths,omitempty"` // Strict host key checking or not. StrictHostKeyChecking *bool `json:"strictHostKeyChecking,omitempty"` // Username of git repository basic auth. Username *string `json:"username,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type ConfigurationServiceGitRepository. func (c ConfigurationServiceGitRepository) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "hostKey", c.HostKey) populate(objectMap, "hostKeyAlgorithm", c.HostKeyAlgorithm) populate(objectMap, "label", c.Label) populate(objectMap, "name", c.Name) populate(objectMap, "password", c.Password) populate(objectMap, "patterns", c.Patterns) populate(objectMap, "privateKey", c.PrivateKey) populate(objectMap, "searchPaths", c.SearchPaths) populate(objectMap, "strictHostKeyChecking", c.StrictHostKeyChecking) populate(objectMap, "uri", c.URI) populate(objectMap, "username", c.Username) return json.Marshal(objectMap) } // ConfigurationServiceInstance - Collection of instances belong to the Application Configuration Service type ConfigurationServiceInstance struct { // READ-ONLY; Name of the Application Configuration Service instance Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Status of the Application Configuration Service instance Status *string `json:"status,omitempty" azure:"ro"` } // ConfigurationServiceProperties - Application Configuration Service properties payload type ConfigurationServiceProperties struct { // The settings of Application Configuration Service. Settings *ConfigurationServiceSettings `json:"settings,omitempty"` // READ-ONLY; Collection of instances belong to Application Configuration Service. Instances []*ConfigurationServiceInstance `json:"instances,omitempty" azure:"ro"` // READ-ONLY; State of the Application Configuration Service. ProvisioningState *ConfigurationServiceProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The requested resource quantity for required CPU and Memory. ResourceRequests *ConfigurationServiceResourceRequests `json:"resourceRequests,omitempty" azure:"ro"` } // MarshalJSON implements the json.Marshaller interface for type ConfigurationServiceProperties. func (c ConfigurationServiceProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "instances", c.Instances) populate(objectMap, "provisioningState", c.ProvisioningState) populate(objectMap, "resourceRequests", c.ResourceRequests) populate(objectMap, "settings", c.Settings) return json.Marshal(objectMap) } // ConfigurationServiceResource - Application Configuration Service resource type ConfigurationServiceResource struct { // Application Configuration Service properties payload Properties *ConfigurationServiceProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` } // ConfigurationServiceResourceCollection - Object that includes an array of configuration service resources and a possible // link for next set type ConfigurationServiceResourceCollection struct { // URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. NextLink *string `json:"nextLink,omitempty"` // Collection of configuration service resources Value []*ConfigurationServiceResource `json:"value,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type ConfigurationServiceResourceCollection. func (c ConfigurationServiceResourceCollection) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "nextLink", c.NextLink) populate(objectMap, "value", c.Value) return json.Marshal(objectMap) } // ConfigurationServiceResourceRequests - Resource request payload of Application Configuration Service type ConfigurationServiceResourceRequests struct { // READ-ONLY; Cpu allocated to each Application Configuration Service instance CPU *string `json:"cpu,omitempty" azure:"ro"` // READ-ONLY; Instance count of the Application Configuration Service InstanceCount *int32 `json:"instanceCount,omitempty" azure:"ro"` // READ-ONLY; Memory allocated to each Application Configuration Service instance Memory *string `json:"memory,omitempty" azure:"ro"` } // ConfigurationServiceSettings - The settings of Application Configuration Service. type ConfigurationServiceSettings struct { // Property of git environment. GitProperty *ConfigurationServiceGitProperty `json:"gitProperty,omitempty"` } // ConfigurationServiceSettingsValidateResult - Validation result for configuration service settings type ConfigurationServiceSettingsValidateResult struct { // Validation result for configuration service settings GitPropertyValidationResult *ConfigurationServiceGitPropertyValidateResult `json:"gitPropertyValidationResult,omitempty"` } // ConfigurationServicesClientBeginCreateOrUpdateOptions contains the optional parameters for the ConfigurationServicesClient.BeginCreateOrUpdate // method. type ConfigurationServicesClientBeginCreateOrUpdateOptions struct { // placeholder for future optional parameters } // ConfigurationServicesClientBeginDeleteOptions contains the optional parameters for the ConfigurationServicesClient.BeginDelete // method. type ConfigurationServicesClientBeginDeleteOptions struct { // placeholder for future optional parameters } // ConfigurationServicesClientBeginValidateOptions contains the optional parameters for the ConfigurationServicesClient.BeginValidate // method. type ConfigurationServicesClientBeginValidateOptions struct { // placeholder for future optional parameters } // ConfigurationServicesClientGetOptions contains the optional parameters for the ConfigurationServicesClient.Get method. type ConfigurationServicesClientGetOptions struct { // placeholder for future optional parameters } // ConfigurationServicesClientListOptions contains the optional parameters for the ConfigurationServicesClient.List method. type ConfigurationServicesClientListOptions struct { // placeholder for future optional parameters } // ContainerProbeSettings - Container liveness and readiness probe settings type ContainerProbeSettings struct { // Indicates whether disable the liveness and readiness probe DisableProbe *bool `json:"disableProbe,omitempty"` } // ContentCertificateProperties - Properties of certificate imported from key vault. type ContentCertificateProperties struct { // REQUIRED; The type of the certificate source. Type *string `json:"type,omitempty"` // The content of uploaded certificate. Content *string `json:"content,omitempty"` // READ-ONLY; The activate date of certificate. ActivateDate *string `json:"activateDate,omitempty" azure:"ro"` // READ-ONLY; The domain list of certificate. DNSNames []*string `json:"dnsNames,omitempty" azure:"ro"` // READ-ONLY; The expiration date of certificate. ExpirationDate *string `json:"expirationDate,omitempty" azure:"ro"` // READ-ONLY; The issue date of certificate. IssuedDate *string `json:"issuedDate,omitempty" azure:"ro"` // READ-ONLY; The issuer of certificate. Issuer *string `json:"issuer,omitempty" azure:"ro"` // READ-ONLY; The subject name of certificate. SubjectName *string `json:"subjectName,omitempty" azure:"ro"` // READ-ONLY; The thumbprint of certificate. Thumbprint *string `json:"thumbprint,omitempty" azure:"ro"` } // GetCertificateProperties implements the CertificatePropertiesClassification interface for type ContentCertificateProperties. func (c *ContentCertificateProperties) GetCertificateProperties() *CertificateProperties { return &CertificateProperties{ Type: c.Type, Thumbprint: c.Thumbprint, Issuer: c.Issuer, IssuedDate: c.IssuedDate, ExpirationDate: c.ExpirationDate, ActivateDate: c.ActivateDate, SubjectName: c.SubjectName, DNSNames: c.DNSNames, } } // MarshalJSON implements the json.Marshaller interface for type ContentCertificateProperties. func (c ContentCertificateProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "activateDate", c.ActivateDate) populate(objectMap, "content", c.Content) populate(objectMap, "dnsNames", c.DNSNames) populate(objectMap, "expirationDate", c.ExpirationDate) populate(objectMap, "issuedDate", c.IssuedDate) populate(objectMap, "issuer", c.Issuer) populate(objectMap, "subjectName", c.SubjectName) populate(objectMap, "thumbprint", c.Thumbprint) objectMap["type"] = "ContentCertificate" return json.Marshal(objectMap) } // UnmarshalJSON implements the json.Unmarshaller interface for type ContentCertificateProperties. func (c *ContentCertificateProperties) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return err } for key, val := range rawMsg { var err error switch key { case "activateDate": err = unpopulate(val, &c.ActivateDate) delete(rawMsg, key) case "content": err = unpopulate(val, &c.Content) delete(rawMsg, key) case "dnsNames": err = unpopulate(val, &c.DNSNames) delete(rawMsg, key) case "expirationDate": err = unpopulate(val, &c.ExpirationDate) delete(rawMsg, key) case "issuedDate": err = unpopulate(val, &c.IssuedDate) delete(rawMsg, key) case "issuer": err = unpopulate(val, &c.Issuer) delete(rawMsg, key) case "subjectName": err = unpopulate(val, &c.SubjectName) delete(rawMsg, key) case "thumbprint": err = unpopulate(val, &c.Thumbprint) delete(rawMsg, key) case "type": err = unpopulate(val, &c.Type) delete(rawMsg, key) } if err != nil { return err } } return nil } // CustomContainer - Custom container payload type CustomContainer struct { // Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Args []*string `json:"args,omitempty"` // Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Command []*string `json:"command,omitempty"` // Container image of the custom container. This should be in the form of : without the server name of the registry ContainerImage *string `json:"containerImage,omitempty"` // Credential of the image registry ImageRegistryCredential *ImageRegistryCredential `json:"imageRegistryCredential,omitempty"` // The name of the registry that contains the container image Server *string `json:"server,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type CustomContainer. func (c CustomContainer) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "args", c.Args) populate(objectMap, "command", c.Command) populate(objectMap, "containerImage", c.ContainerImage) populate(objectMap, "imageRegistryCredential", c.ImageRegistryCredential) populate(objectMap, "server", c.Server) return json.Marshal(objectMap) } // CustomContainerUserSourceInfo - Custom container user source info type CustomContainerUserSourceInfo struct { // REQUIRED; Type of the source uploaded Type *string `json:"type,omitempty"` // Custom container payload CustomContainer *CustomContainer `json:"customContainer,omitempty"` // Version of the source Version *string `json:"version,omitempty"` } // GetUserSourceInfo implements the UserSourceInfoClassification interface for type CustomContainerUserSourceInfo. func (c *CustomContainerUserSourceInfo) GetUserSourceInfo() *UserSourceInfo { return &UserSourceInfo{ Type: c.Type, Version: c.Version, } } // MarshalJSON implements the json.Marshaller interface for type CustomContainerUserSourceInfo. func (c CustomContainerUserSourceInfo) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "customContainer", c.CustomContainer) objectMap["type"] = "Container" populate(objectMap, "version", c.Version) return json.Marshal(objectMap) } // UnmarshalJSON implements the json.Unmarshaller interface for type CustomContainerUserSourceInfo. func (c *CustomContainerUserSourceInfo) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return err } for key, val := range rawMsg { var err error switch key { case "customContainer": err = unpopulate(val, &c.CustomContainer) delete(rawMsg, key) case "type": err = unpopulate(val, &c.Type) delete(rawMsg, key) case "version": err = unpopulate(val, &c.Version) delete(rawMsg, key) } if err != nil { return err } } return nil } // CustomDomainProperties - Custom domain of app resource payload. type CustomDomainProperties struct { // The bound certificate name of domain. CertName *string `json:"certName,omitempty"` // The thumbprint of bound certificate. Thumbprint *string `json:"thumbprint,omitempty"` // READ-ONLY; The app name of domain. AppName *string `json:"appName,omitempty" azure:"ro"` } // CustomDomainResource - Custom domain resource payload. type CustomDomainResource struct { // Properties of the custom domain resource. Properties *CustomDomainProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` } // MarshalJSON implements the json.Marshaller interface for type CustomDomainResource. func (c CustomDomainResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "id", c.ID) populate(objectMap, "name", c.Name) populate(objectMap, "properties", c.Properties) populate(objectMap, "systemData", c.SystemData) populate(objectMap, "type", c.Type) return json.Marshal(objectMap) } // CustomDomainResourceCollection - Collection compose of a custom domain resources list and a possible link for next page. type CustomDomainResourceCollection struct { // The link to next page of custom domain list. NextLink *string `json:"nextLink,omitempty"` // The custom domain resources list. Value []*CustomDomainResource `json:"value,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type CustomDomainResourceCollection. func (c CustomDomainResourceCollection) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "nextLink", c.NextLink) populate(objectMap, "value", c.Value) return json.Marshal(objectMap) } // CustomDomainValidatePayload - Custom domain validate payload. type CustomDomainValidatePayload struct { // REQUIRED; Name to be validated Name *string `json:"name,omitempty"` } // CustomDomainValidateResult - Validation result for custom domain. type CustomDomainValidateResult struct { // Indicates if domain name is valid. IsValid *bool `json:"isValid,omitempty"` // Message of why domain name is invalid. Message *string `json:"message,omitempty"` } // CustomDomainsClientBeginCreateOrUpdateOptions contains the optional parameters for the CustomDomainsClient.BeginCreateOrUpdate // method. type CustomDomainsClientBeginCreateOrUpdateOptions struct { // placeholder for future optional parameters } // CustomDomainsClientBeginDeleteOptions contains the optional parameters for the CustomDomainsClient.BeginDelete method. type CustomDomainsClientBeginDeleteOptions struct { // placeholder for future optional parameters } // CustomDomainsClientBeginUpdateOptions contains the optional parameters for the CustomDomainsClient.BeginUpdate method. type CustomDomainsClientBeginUpdateOptions struct { // placeholder for future optional parameters } // CustomDomainsClientGetOptions contains the optional parameters for the CustomDomainsClient.Get method. type CustomDomainsClientGetOptions struct { // placeholder for future optional parameters } // CustomDomainsClientListOptions contains the optional parameters for the CustomDomainsClient.List method. type CustomDomainsClientListOptions struct { // placeholder for future optional parameters } // CustomPersistentDiskPropertiesClassification provides polymorphic access to related types. // Call the interface's GetCustomPersistentDiskProperties() method to access the common type. // Use a type switch to determine the concrete type. The possible types are: // - *AzureFileVolume, *CustomPersistentDiskProperties type CustomPersistentDiskPropertiesClassification interface { // GetCustomPersistentDiskProperties returns the CustomPersistentDiskProperties content of the underlying type. GetCustomPersistentDiskProperties() *CustomPersistentDiskProperties } // CustomPersistentDiskProperties - Custom persistent disk resource payload. type CustomPersistentDiskProperties struct { // REQUIRED; The mount path of the persistent disk. MountPath *string `json:"mountPath,omitempty"` // REQUIRED; The type of the underlying resource to mount as a persistent disk. Type *CustomPersistentDiskPropertiesType `json:"type,omitempty"` // These are the mount options for a persistent disk. MountOptions []*string `json:"mountOptions,omitempty"` // Indicates whether the persistent disk is a readOnly one. ReadOnly *bool `json:"readOnly,omitempty"` } // GetCustomPersistentDiskProperties implements the CustomPersistentDiskPropertiesClassification interface for type CustomPersistentDiskProperties. func (c *CustomPersistentDiskProperties) GetCustomPersistentDiskProperties() *CustomPersistentDiskProperties { return c } // MarshalJSON implements the json.Marshaller interface for type CustomPersistentDiskProperties. func (c CustomPersistentDiskProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "mountOptions", c.MountOptions) populate(objectMap, "mountPath", c.MountPath) populate(objectMap, "readOnly", c.ReadOnly) objectMap["type"] = c.Type return json.Marshal(objectMap) } // CustomPersistentDiskResource - Custom persistent disk resource payload. type CustomPersistentDiskResource struct { // REQUIRED; The resource id of Azure Spring Cloud Storage resource. StorageID *string `json:"storageId,omitempty"` // Properties of the custom persistent disk resource payload. CustomPersistentDiskProperties CustomPersistentDiskPropertiesClassification `json:"customPersistentDiskProperties,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type CustomPersistentDiskResource. func (c CustomPersistentDiskResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "customPersistentDiskProperties", c.CustomPersistentDiskProperties) populate(objectMap, "storageId", c.StorageID) return json.Marshal(objectMap) } // UnmarshalJSON implements the json.Unmarshaller interface for type CustomPersistentDiskResource. func (c *CustomPersistentDiskResource) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return err } for key, val := range rawMsg { var err error switch key { case "customPersistentDiskProperties": c.CustomPersistentDiskProperties, err = unmarshalCustomPersistentDiskPropertiesClassification(val) delete(rawMsg, key) case "storageId": err = unpopulate(val, &c.StorageID) delete(rawMsg, key) } if err != nil { return err } } return nil } // DeploymentInstance - Deployment instance payload type DeploymentInstance struct { // READ-ONLY; Discovery status of the deployment instance DiscoveryStatus *string `json:"discoveryStatus,omitempty" azure:"ro"` // READ-ONLY; Name of the deployment instance Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Failed reason of the deployment instance Reason *string `json:"reason,omitempty" azure:"ro"` // READ-ONLY; Start time of the deployment instance StartTime *string `json:"startTime,omitempty" azure:"ro"` // READ-ONLY; Status of the deployment instance Status *string `json:"status,omitempty" azure:"ro"` // READ-ONLY; Availability zone information of the deployment instance Zone *string `json:"zone,omitempty" azure:"ro"` } // DeploymentResource - Deployment resource payload type DeploymentResource struct { // Properties of the Deployment resource Properties *DeploymentResourceProperties `json:"properties,omitempty"` // Sku of the Deployment resource SKU *SKU `json:"sku,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` } // MarshalJSON implements the json.Marshaller interface for type DeploymentResource. func (d DeploymentResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "id", d.ID) populate(objectMap, "name", d.Name) populate(objectMap, "properties", d.Properties) populate(objectMap, "sku", d.SKU) populate(objectMap, "systemData", d.SystemData) populate(objectMap, "type", d.Type) return json.Marshal(objectMap) } // DeploymentResourceCollection - Object that includes an array of App resources and a possible link for next set type DeploymentResourceCollection struct { // URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. NextLink *string `json:"nextLink,omitempty"` // Collection of Deployment resources Value []*DeploymentResource `json:"value,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type DeploymentResourceCollection. func (d DeploymentResourceCollection) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "nextLink", d.NextLink) populate(objectMap, "value", d.Value) return json.Marshal(objectMap) } // DeploymentResourceProperties - Deployment resource properties payload type DeploymentResourceProperties struct { // Indicates whether the Deployment is active Active *bool `json:"active,omitempty"` // Deployment settings of the Deployment DeploymentSettings *DeploymentSettings `json:"deploymentSettings,omitempty"` // Uploaded source information of the deployment. Source UserSourceInfoClassification `json:"source,omitempty"` // READ-ONLY; Collection of instances belong to the Deployment Instances []*DeploymentInstance `json:"instances,omitempty" azure:"ro"` // READ-ONLY; Provisioning state of the Deployment ProvisioningState *DeploymentResourceProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; Status of the Deployment Status *DeploymentResourceStatus `json:"status,omitempty" azure:"ro"` } // MarshalJSON implements the json.Marshaller interface for type DeploymentResourceProperties. func (d DeploymentResourceProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "active", d.Active) populate(objectMap, "deploymentSettings", d.DeploymentSettings) populate(objectMap, "instances", d.Instances) populate(objectMap, "provisioningState", d.ProvisioningState) populate(objectMap, "source", d.Source) populate(objectMap, "status", d.Status) return json.Marshal(objectMap) } // UnmarshalJSON implements the json.Unmarshaller interface for type DeploymentResourceProperties. func (d *DeploymentResourceProperties) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return err } for key, val := range rawMsg { var err error switch key { case "active": err = unpopulate(val, &d.Active) delete(rawMsg, key) case "deploymentSettings": err = unpopulate(val, &d.DeploymentSettings) delete(rawMsg, key) case "instances": err = unpopulate(val, &d.Instances) delete(rawMsg, key) case "provisioningState": err = unpopulate(val, &d.ProvisioningState) delete(rawMsg, key) case "source": d.Source, err = unmarshalUserSourceInfoClassification(val) delete(rawMsg, key) case "status": err = unpopulate(val, &d.Status) delete(rawMsg, key) } if err != nil { return err } } return nil } // DeploymentSettings - Deployment settings payload type DeploymentSettings struct { // Collection of addons AddonConfigs map[string]map[string]map[string]interface{} `json:"addonConfigs,omitempty"` // Container liveness and readiness probe settings ContainerProbeSettings *ContainerProbeSettings `json:"containerProbeSettings,omitempty"` // Collection of environment variables EnvironmentVariables map[string]*string `json:"environmentVariables,omitempty"` // The requested resource quantity for required CPU and Memory. It is recommended that using this field to represent the required // CPU and Memory, the old field cpu and memoryInGB will be deprecated // later. ResourceRequests *ResourceRequests `json:"resourceRequests,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type DeploymentSettings. func (d DeploymentSettings) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "addonConfigs", d.AddonConfigs) populate(objectMap, "containerProbeSettings", d.ContainerProbeSettings) populate(objectMap, "environmentVariables", d.EnvironmentVariables) populate(objectMap, "resourceRequests", d.ResourceRequests) return json.Marshal(objectMap) } // DeploymentsClientBeginCreateOrUpdateOptions contains the optional parameters for the DeploymentsClient.BeginCreateOrUpdate // method. type DeploymentsClientBeginCreateOrUpdateOptions struct { // placeholder for future optional parameters } // DeploymentsClientBeginDeleteOptions contains the optional parameters for the DeploymentsClient.BeginDelete method. type DeploymentsClientBeginDeleteOptions struct { // placeholder for future optional parameters } // DeploymentsClientBeginGenerateHeapDumpOptions contains the optional parameters for the DeploymentsClient.BeginGenerateHeapDump // method. type DeploymentsClientBeginGenerateHeapDumpOptions struct { // placeholder for future optional parameters } // DeploymentsClientBeginGenerateThreadDumpOptions contains the optional parameters for the DeploymentsClient.BeginGenerateThreadDump // method. type DeploymentsClientBeginGenerateThreadDumpOptions struct { // placeholder for future optional parameters } // DeploymentsClientBeginRestartOptions contains the optional parameters for the DeploymentsClient.BeginRestart method. type DeploymentsClientBeginRestartOptions struct { // placeholder for future optional parameters } // DeploymentsClientBeginStartJFROptions contains the optional parameters for the DeploymentsClient.BeginStartJFR method. type DeploymentsClientBeginStartJFROptions struct { // placeholder for future optional parameters } // DeploymentsClientBeginStartOptions contains the optional parameters for the DeploymentsClient.BeginStart method. type DeploymentsClientBeginStartOptions struct { // placeholder for future optional parameters } // DeploymentsClientBeginStopOptions contains the optional parameters for the DeploymentsClient.BeginStop method. type DeploymentsClientBeginStopOptions struct { // placeholder for future optional parameters } // DeploymentsClientBeginUpdateOptions contains the optional parameters for the DeploymentsClient.BeginUpdate method. type DeploymentsClientBeginUpdateOptions struct { // placeholder for future optional parameters } // DeploymentsClientGetLogFileURLOptions contains the optional parameters for the DeploymentsClient.GetLogFileURL method. type DeploymentsClientGetLogFileURLOptions struct { // placeholder for future optional parameters } // DeploymentsClientGetOptions contains the optional parameters for the DeploymentsClient.Get method. type DeploymentsClientGetOptions struct { // placeholder for future optional parameters } // DeploymentsClientListForClusterOptions contains the optional parameters for the DeploymentsClient.ListForCluster method. type DeploymentsClientListForClusterOptions struct { // Version of the deployments to be listed Version []string } // DeploymentsClientListOptions contains the optional parameters for the DeploymentsClient.List method. type DeploymentsClientListOptions struct { // Version of the deployments to be listed Version []string } // DiagnosticParameters - Diagnostic parameters of diagnostic operations type DiagnosticParameters struct { // App instance name AppInstance *string `json:"appInstance,omitempty"` // Duration of your JFR. 1 min can be represented by 1m or 60s. Duration *string `json:"duration,omitempty"` // Your target file path in your own BYOS FilePath *string `json:"filePath,omitempty"` } // Error - The error code compose of code and message. type Error struct { // The code of error. Code *string `json:"code,omitempty"` // The message of error. Message *string `json:"message,omitempty"` } // GatewayAPIMetadataProperties - API metadata property for Spring Cloud Gateway type GatewayAPIMetadataProperties struct { // Detailed description of the APIs available on the Gateway instance (default: Generated OpenAPI 3 document that describes // the API routes configured.) Description *string `json:"description,omitempty"` // Location of additional documentation for the APIs available on the Gateway instance Documentation *string `json:"documentation,omitempty"` // Base URL that API consumers will use to access APIs on the Gateway instance. ServerURL *string `json:"serverUrl,omitempty"` // Title describing the context of the APIs available on the Gateway instance (default: Spring Cloud Gateway for K8S) Title *string `json:"title,omitempty"` // Version of APIs available on this Gateway instance (default: unspecified). Version *string `json:"version,omitempty"` } // GatewayAPIRoute - API route config of the Spring Cloud Gateway type GatewayAPIRoute struct { // A description, will be applied to methods in the generated OpenAPI documentation. Description *string `json:"description,omitempty"` // To modify the request before sending it to the target endpoint, or the received response. Filters []*string `json:"filters,omitempty"` // Route processing order. Order *int32 `json:"order,omitempty"` // A number of conditions to evaluate a route for each request. Each predicate may be evaluated against request headers and // parameter values. All of the predicates associated with a route must evaluate // to true for the route to be matched to the request. Predicates []*string `json:"predicates,omitempty"` // Enable sso validation. SsoEnabled *bool `json:"ssoEnabled,omitempty"` // Classification tags, will be applied to methods in the generated OpenAPI documentation. Tags []*string `json:"tags,omitempty"` // A title, will be applied to methods in the generated OpenAPI documentation. Title *string `json:"title,omitempty"` // Pass currently-authenticated user's identity token to application service, default is 'false' TokenRelay *bool `json:"tokenRelay,omitempty"` // Full uri, will override appName. URI *string `json:"uri,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type GatewayAPIRoute. func (g GatewayAPIRoute) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "description", g.Description) populate(objectMap, "filters", g.Filters) populate(objectMap, "order", g.Order) populate(objectMap, "predicates", g.Predicates) populate(objectMap, "ssoEnabled", g.SsoEnabled) populate(objectMap, "tags", g.Tags) populate(objectMap, "title", g.Title) populate(objectMap, "tokenRelay", g.TokenRelay) populate(objectMap, "uri", g.URI) return json.Marshal(objectMap) } // GatewayCorsProperties - Cross-Origin Resource Sharing property type GatewayCorsProperties struct { // Whether user credentials are supported on cross-site requests. Valid values: true, false. AllowCredentials *bool `json:"allowCredentials,omitempty"` // Allowed headers in cross-site requests. The special value * allows actual requests to send any header. AllowedHeaders []*string `json:"allowedHeaders,omitempty"` // Allowed HTTP methods on cross-site requests. The special value * allows all methods. If not set, GET and HEAD are allowed // by default. AllowedMethods []*string `json:"allowedMethods,omitempty"` // Allowed origins to make cross-site requests. The special value * allows all domains. AllowedOrigins []*string `json:"allowedOrigins,omitempty"` // HTTP response headers to expose for cross-site requests. ExposedHeaders []*string `json:"exposedHeaders,omitempty"` // How long, in seconds, the response from a pre-flight request can be cached by clients. MaxAge *int32 `json:"maxAge,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type GatewayCorsProperties. func (g GatewayCorsProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "allowCredentials", g.AllowCredentials) populate(objectMap, "allowedHeaders", g.AllowedHeaders) populate(objectMap, "allowedMethods", g.AllowedMethods) populate(objectMap, "allowedOrigins", g.AllowedOrigins) populate(objectMap, "exposedHeaders", g.ExposedHeaders) populate(objectMap, "maxAge", g.MaxAge) return json.Marshal(objectMap) } // GatewayCustomDomainProperties - The properties of custom domain for Spring Cloud Gateway type GatewayCustomDomainProperties struct { // The thumbprint of bound certificate. Thumbprint *string `json:"thumbprint,omitempty"` } // GatewayCustomDomainResource - Custom domain of the Spring Cloud Gateway type GatewayCustomDomainResource struct { // The properties of custom domain for Spring Cloud Gateway Properties *GatewayCustomDomainProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` } // GatewayCustomDomainResourceCollection - Object that includes an array of Spring Cloud Gateway custom domain resources and // a possible link for next set type GatewayCustomDomainResourceCollection struct { // URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. NextLink *string `json:"nextLink,omitempty"` // Collection of Spring Cloud Gateway custom domain resources Value []*GatewayCustomDomainResource `json:"value,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type GatewayCustomDomainResourceCollection. func (g GatewayCustomDomainResourceCollection) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "nextLink", g.NextLink) populate(objectMap, "value", g.Value) return json.Marshal(objectMap) } // GatewayCustomDomainsClientBeginCreateOrUpdateOptions contains the optional parameters for the GatewayCustomDomainsClient.BeginCreateOrUpdate // method. type GatewayCustomDomainsClientBeginCreateOrUpdateOptions struct { // placeholder for future optional parameters } // GatewayCustomDomainsClientBeginDeleteOptions contains the optional parameters for the GatewayCustomDomainsClient.BeginDelete // method. type GatewayCustomDomainsClientBeginDeleteOptions struct { // placeholder for future optional parameters } // GatewayCustomDomainsClientGetOptions contains the optional parameters for the GatewayCustomDomainsClient.Get method. type GatewayCustomDomainsClientGetOptions struct { // placeholder for future optional parameters } // GatewayCustomDomainsClientListOptions contains the optional parameters for the GatewayCustomDomainsClient.List method. type GatewayCustomDomainsClientListOptions struct { // placeholder for future optional parameters } // GatewayInstance - Collection of instances belong to the Spring Cloud Gateway type GatewayInstance struct { // READ-ONLY; Name of the Spring Cloud Gateway instance Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Status of the Spring Cloud Gateway instance Status *string `json:"status,omitempty" azure:"ro"` } // GatewayOperatorProperties - Properties of the Spring Cloud Gateway Operator. type GatewayOperatorProperties struct { // READ-ONLY; Collection of instances belong to Spring Cloud Gateway operator. Instances []*GatewayInstance `json:"instances,omitempty" azure:"ro"` // READ-ONLY; The requested resource quantity for required CPU and Memory. ResourceRequests *GatewayOperatorResourceRequests `json:"resourceRequests,omitempty" azure:"ro"` } // MarshalJSON implements the json.Marshaller interface for type GatewayOperatorProperties. func (g GatewayOperatorProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "instances", g.Instances) populate(objectMap, "resourceRequests", g.ResourceRequests) return json.Marshal(objectMap) } // GatewayOperatorResourceRequests - Properties of the Spring Cloud Gateway Operator. type GatewayOperatorResourceRequests struct { // READ-ONLY; Cpu allocated to each Spring Cloud Gateway Operator instance. CPU *string `json:"cpu,omitempty" azure:"ro"` // READ-ONLY; Instance count of the Spring Cloud Gateway Operator. InstanceCount *int32 `json:"instanceCount,omitempty" azure:"ro"` // READ-ONLY; Memory allocated to each Spring Cloud Gateway Operator instance. Memory *string `json:"memory,omitempty" azure:"ro"` } // GatewayProperties - Spring Cloud Gateway properties payload type GatewayProperties struct { // API metadata property for Spring Cloud Gateway APIMetadataProperties *GatewayAPIMetadataProperties `json:"apiMetadataProperties,omitempty"` // Cross-Origin Resource Sharing property CorsProperties *GatewayCorsProperties `json:"corsProperties,omitempty"` // Indicate if only https is allowed. HTTPSOnly *bool `json:"httpsOnly,omitempty"` // Indicates whether the Spring Cloud Gateway exposes endpoint. Public *bool `json:"public,omitempty"` // The requested resource quantity for required CPU and Memory. ResourceRequests *GatewayResourceRequests `json:"resourceRequests,omitempty"` // Single sign-on related configuration SsoProperties *SsoProperties `json:"ssoProperties,omitempty"` // READ-ONLY; Collection of instances belong to Spring Cloud Gateway. Instances []*GatewayInstance `json:"instances,omitempty" azure:"ro"` // READ-ONLY; Properties of the Spring Cloud Gateway Operator. OperatorProperties *GatewayOperatorProperties `json:"operatorProperties,omitempty" azure:"ro"` // READ-ONLY; State of the Spring Cloud Gateway. ProvisioningState *GatewayProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; URL of the Spring Cloud Gateway, exposed when 'public' is true. URL *string `json:"url,omitempty" azure:"ro"` } // MarshalJSON implements the json.Marshaller interface for type GatewayProperties. func (g GatewayProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "apiMetadataProperties", g.APIMetadataProperties) populate(objectMap, "corsProperties", g.CorsProperties) populate(objectMap, "httpsOnly", g.HTTPSOnly) populate(objectMap, "instances", g.Instances) populate(objectMap, "operatorProperties", g.OperatorProperties) populate(objectMap, "provisioningState", g.ProvisioningState) populate(objectMap, "public", g.Public) populate(objectMap, "resourceRequests", g.ResourceRequests) populate(objectMap, "ssoProperties", g.SsoProperties) populate(objectMap, "url", g.URL) return json.Marshal(objectMap) } // GatewayResource - Spring Cloud Gateway resource type GatewayResource struct { // Spring Cloud Gateway properties payload Properties *GatewayProperties `json:"properties,omitempty"` // Sku of the Spring Cloud Gateway resource SKU *SKU `json:"sku,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` } // GatewayResourceCollection - Object that includes an array of gateway resources and a possible link for next set type GatewayResourceCollection struct { // URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. NextLink *string `json:"nextLink,omitempty"` // Collection of gateway resources Value []*GatewayResource `json:"value,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type GatewayResourceCollection. func (g GatewayResourceCollection) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "nextLink", g.NextLink) populate(objectMap, "value", g.Value) return json.Marshal(objectMap) } // GatewayResourceRequests - Resource request payload of Spring Cloud Gateway. type GatewayResourceRequests struct { // Cpu allocated to each Spring Cloud Gateway instance. CPU *string `json:"cpu,omitempty"` // Memory allocated to each Spring Cloud Gateway instance. Memory *string `json:"memory,omitempty"` } // GatewayRouteConfigProperties - API route config of the Spring Cloud Gateway type GatewayRouteConfigProperties struct { // The resource Id of the Azure Spring Cloud app, required unless route defines uri. AppResourceID *string `json:"appResourceId,omitempty"` // Array of API routes, each route contains properties such as title, uri, ssoEnabled, predicates, filters. Routes []*GatewayAPIRoute `json:"routes,omitempty"` // READ-ONLY; State of the Spring Cloud Gateway route config. ProvisioningState *GatewayProvisioningState `json:"provisioningState,omitempty" azure:"ro"` } // MarshalJSON implements the json.Marshaller interface for type GatewayRouteConfigProperties. func (g GatewayRouteConfigProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "appResourceId", g.AppResourceID) populate(objectMap, "provisioningState", g.ProvisioningState) populate(objectMap, "routes", g.Routes) return json.Marshal(objectMap) } // GatewayRouteConfigResource - Spring Cloud Gateway route config resource type GatewayRouteConfigResource struct { // API route config of the Spring Cloud Gateway Properties *GatewayRouteConfigProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` } // GatewayRouteConfigResourceCollection - Object that includes an array of Spring Cloud Gateway route config resources and // a possible link for next set type GatewayRouteConfigResourceCollection struct { // URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. NextLink *string `json:"nextLink,omitempty"` // Collection of Spring Cloud Gateway route config resources Value []*GatewayRouteConfigResource `json:"value,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type GatewayRouteConfigResourceCollection. func (g GatewayRouteConfigResourceCollection) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "nextLink", g.NextLink) populate(objectMap, "value", g.Value) return json.Marshal(objectMap) } // GatewayRouteConfigsClientBeginCreateOrUpdateOptions contains the optional parameters for the GatewayRouteConfigsClient.BeginCreateOrUpdate // method. type GatewayRouteConfigsClientBeginCreateOrUpdateOptions struct { // placeholder for future optional parameters } // GatewayRouteConfigsClientBeginDeleteOptions contains the optional parameters for the GatewayRouteConfigsClient.BeginDelete // method. type GatewayRouteConfigsClientBeginDeleteOptions struct { // placeholder for future optional parameters } // GatewayRouteConfigsClientGetOptions contains the optional parameters for the GatewayRouteConfigsClient.Get method. type GatewayRouteConfigsClientGetOptions struct { // placeholder for future optional parameters } // GatewayRouteConfigsClientListOptions contains the optional parameters for the GatewayRouteConfigsClient.List method. type GatewayRouteConfigsClientListOptions struct { // placeholder for future optional parameters } // GatewaysClientBeginCreateOrUpdateOptions contains the optional parameters for the GatewaysClient.BeginCreateOrUpdate method. type GatewaysClientBeginCreateOrUpdateOptions struct { // placeholder for future optional parameters } // GatewaysClientBeginDeleteOptions contains the optional parameters for the GatewaysClient.BeginDelete method. type GatewaysClientBeginDeleteOptions struct { // placeholder for future optional parameters } // GatewaysClientGetOptions contains the optional parameters for the GatewaysClient.Get method. type GatewaysClientGetOptions struct { // placeholder for future optional parameters } // GatewaysClientListOptions contains the optional parameters for the GatewaysClient.List method. type GatewaysClientListOptions struct { // placeholder for future optional parameters } // GatewaysClientValidateDomainOptions contains the optional parameters for the GatewaysClient.ValidateDomain method. type GatewaysClientValidateDomainOptions struct { // placeholder for future optional parameters } // GitPatternRepository - Git repository property payload for config server type GitPatternRepository struct { // REQUIRED; Name of the repository Name *string `json:"name,omitempty"` // REQUIRED; URI of the repository URI *string `json:"uri,omitempty"` // Public sshKey of git repository. HostKey *string `json:"hostKey,omitempty"` // SshKey algorithm of git repository. HostKeyAlgorithm *string `json:"hostKeyAlgorithm,omitempty"` // Label of the repository Label *string `json:"label,omitempty"` // Password of git repository basic auth. Password *string `json:"password,omitempty"` // Collection of pattern of the repository Pattern []*string `json:"pattern,omitempty"` // Private sshKey algorithm of git repository. PrivateKey *string `json:"privateKey,omitempty"` // Searching path of the repository SearchPaths []*string `json:"searchPaths,omitempty"` // Strict host key checking or not. StrictHostKeyChecking *bool `json:"strictHostKeyChecking,omitempty"` // Username of git repository basic auth. Username *string `json:"username,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type GitPatternRepository. func (g GitPatternRepository) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "hostKey", g.HostKey) populate(objectMap, "hostKeyAlgorithm", g.HostKeyAlgorithm) populate(objectMap, "label", g.Label) populate(objectMap, "name", g.Name) populate(objectMap, "password", g.Password) populate(objectMap, "pattern", g.Pattern) populate(objectMap, "privateKey", g.PrivateKey) populate(objectMap, "searchPaths", g.SearchPaths) populate(objectMap, "strictHostKeyChecking", g.StrictHostKeyChecking) populate(objectMap, "uri", g.URI) populate(objectMap, "username", g.Username) return json.Marshal(objectMap) } // ImageRegistryCredential - Credential of the image registry type ImageRegistryCredential struct { // The password of the image registry credential Password *string `json:"password,omitempty"` // The username of the image registry credential Username *string `json:"username,omitempty"` } // JarUploadedUserSourceInfo - Uploaded Jar binary for a deployment type JarUploadedUserSourceInfo struct { // REQUIRED; Type of the source uploaded Type *string `json:"type,omitempty"` // JVM parameter JvmOptions *string `json:"jvmOptions,omitempty"` // Relative path of the storage which stores the source RelativePath *string `json:"relativePath,omitempty"` // Runtime version of the Jar file RuntimeVersion *string `json:"runtimeVersion,omitempty"` // Version of the source Version *string `json:"version,omitempty"` } // GetUploadedUserSourceInfo implements the UploadedUserSourceInfoClassification interface for type JarUploadedUserSourceInfo. func (j *JarUploadedUserSourceInfo) GetUploadedUserSourceInfo() *UploadedUserSourceInfo { return &UploadedUserSourceInfo{ RelativePath: j.RelativePath, Type: j.Type, Version: j.Version, } } // GetUserSourceInfo implements the UserSourceInfoClassification interface for type JarUploadedUserSourceInfo. func (j *JarUploadedUserSourceInfo) GetUserSourceInfo() *UserSourceInfo { return &UserSourceInfo{ Type: j.Type, Version: j.Version, } } // MarshalJSON implements the json.Marshaller interface for type JarUploadedUserSourceInfo. func (j JarUploadedUserSourceInfo) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "jvmOptions", j.JvmOptions) populate(objectMap, "relativePath", j.RelativePath) populate(objectMap, "runtimeVersion", j.RuntimeVersion) objectMap["type"] = "Jar" populate(objectMap, "version", j.Version) return json.Marshal(objectMap) } // UnmarshalJSON implements the json.Unmarshaller interface for type JarUploadedUserSourceInfo. func (j *JarUploadedUserSourceInfo) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return err } for key, val := range rawMsg { var err error switch key { case "jvmOptions": err = unpopulate(val, &j.JvmOptions) delete(rawMsg, key) case "relativePath": err = unpopulate(val, &j.RelativePath) delete(rawMsg, key) case "runtimeVersion": err = unpopulate(val, &j.RuntimeVersion) delete(rawMsg, key) case "type": err = unpopulate(val, &j.Type) delete(rawMsg, key) case "version": err = unpopulate(val, &j.Version) delete(rawMsg, key) } if err != nil { return err } } return nil } // KeyVaultCertificateProperties - Properties of certificate imported from key vault. type KeyVaultCertificateProperties struct { // REQUIRED; The certificate name of key vault. KeyVaultCertName *string `json:"keyVaultCertName,omitempty"` // REQUIRED; The type of the certificate source. Type *string `json:"type,omitempty"` // REQUIRED; The vault uri of user key vault. VaultURI *string `json:"vaultUri,omitempty"` // The certificate version of key vault. CertVersion *string `json:"certVersion,omitempty"` // Optional. If set to true, it will not import private key from key vault. ExcludePrivateKey *bool `json:"excludePrivateKey,omitempty"` // READ-ONLY; The activate date of certificate. ActivateDate *string `json:"activateDate,omitempty" azure:"ro"` // READ-ONLY; The domain list of certificate. DNSNames []*string `json:"dnsNames,omitempty" azure:"ro"` // READ-ONLY; The expiration date of certificate. ExpirationDate *string `json:"expirationDate,omitempty" azure:"ro"` // READ-ONLY; The issue date of certificate. IssuedDate *string `json:"issuedDate,omitempty" azure:"ro"` // READ-ONLY; The issuer of certificate. Issuer *string `json:"issuer,omitempty" azure:"ro"` // READ-ONLY; The subject name of certificate. SubjectName *string `json:"subjectName,omitempty" azure:"ro"` // READ-ONLY; The thumbprint of certificate. Thumbprint *string `json:"thumbprint,omitempty" azure:"ro"` } // GetCertificateProperties implements the CertificatePropertiesClassification interface for type KeyVaultCertificateProperties. func (k *KeyVaultCertificateProperties) GetCertificateProperties() *CertificateProperties { return &CertificateProperties{ Type: k.Type, Thumbprint: k.Thumbprint, Issuer: k.Issuer, IssuedDate: k.IssuedDate, ExpirationDate: k.ExpirationDate, ActivateDate: k.ActivateDate, SubjectName: k.SubjectName, DNSNames: k.DNSNames, } } // MarshalJSON implements the json.Marshaller interface for type KeyVaultCertificateProperties. func (k KeyVaultCertificateProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "activateDate", k.ActivateDate) populate(objectMap, "certVersion", k.CertVersion) populate(objectMap, "dnsNames", k.DNSNames) populate(objectMap, "excludePrivateKey", k.ExcludePrivateKey) populate(objectMap, "expirationDate", k.ExpirationDate) populate(objectMap, "issuedDate", k.IssuedDate) populate(objectMap, "issuer", k.Issuer) populate(objectMap, "keyVaultCertName", k.KeyVaultCertName) populate(objectMap, "subjectName", k.SubjectName) populate(objectMap, "thumbprint", k.Thumbprint) objectMap["type"] = "KeyVaultCertificate" populate(objectMap, "vaultUri", k.VaultURI) return json.Marshal(objectMap) } // UnmarshalJSON implements the json.Unmarshaller interface for type KeyVaultCertificateProperties. func (k *KeyVaultCertificateProperties) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return err } for key, val := range rawMsg { var err error switch key { case "activateDate": err = unpopulate(val, &k.ActivateDate) delete(rawMsg, key) case "certVersion": err = unpopulate(val, &k.CertVersion) delete(rawMsg, key) case "dnsNames": err = unpopulate(val, &k.DNSNames) delete(rawMsg, key) case "excludePrivateKey": err = unpopulate(val, &k.ExcludePrivateKey) delete(rawMsg, key) case "expirationDate": err = unpopulate(val, &k.ExpirationDate) delete(rawMsg, key) case "issuedDate": err = unpopulate(val, &k.IssuedDate) delete(rawMsg, key) case "issuer": err = unpopulate(val, &k.Issuer) delete(rawMsg, key) case "keyVaultCertName": err = unpopulate(val, &k.KeyVaultCertName) delete(rawMsg, key) case "subjectName": err = unpopulate(val, &k.SubjectName) delete(rawMsg, key) case "thumbprint": err = unpopulate(val, &k.Thumbprint) delete(rawMsg, key) case "type": err = unpopulate(val, &k.Type) delete(rawMsg, key) case "vaultUri": err = unpopulate(val, &k.VaultURI) delete(rawMsg, key) } if err != nil { return err } } return nil } // LoadedCertificate - Loaded certificate payload type LoadedCertificate struct { // REQUIRED; Resource Id of loaded certificate ResourceID *string `json:"resourceId,omitempty"` // Indicate whether the certificate will be loaded into default trust store, only work for Java runtime. LoadTrustStore *bool `json:"loadTrustStore,omitempty"` } // LogFileURLResponse - Log file URL payload type LogFileURLResponse struct { // REQUIRED; URL of the log file URL *string `json:"url,omitempty"` } // LogSpecification - Specifications of the Log for Azure Monitoring type LogSpecification struct { // Blob duration of the log BlobDuration *string `json:"blobDuration,omitempty"` // Localized friendly display name of the log DisplayName *string `json:"displayName,omitempty"` // Name of the log Name *string `json:"name,omitempty"` } // ManagedIdentityProperties - Managed identity properties retrieved from ARM request headers. type ManagedIdentityProperties struct { // Principal Id PrincipalID *string `json:"principalId,omitempty"` // Tenant Id TenantID *string `json:"tenantId,omitempty"` // Type of the managed identity Type *ManagedIdentityType `json:"type,omitempty"` } // MetricDimension - Specifications of the Dimension of metrics type MetricDimension struct { // Localized friendly display name of the dimension DisplayName *string `json:"displayName,omitempty"` // Name of the dimension Name *string `json:"name,omitempty"` // Whether this dimension should be included for the Shoebox export scenario ToBeExportedForShoebox *bool `json:"toBeExportedForShoebox,omitempty"` } // MetricSpecification - Specifications of the Metrics for Azure Monitoring type MetricSpecification struct { // Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count. AggregationType *string `json:"aggregationType,omitempty"` // Name of the metric category that the metric belongs to. A metric can only belong to a single category. Category *string `json:"category,omitempty"` // Dimensions of the metric Dimensions []*MetricDimension `json:"dimensions,omitempty"` // Localized friendly description of the metric DisplayDescription *string `json:"displayDescription,omitempty"` // Localized friendly display name of the metric DisplayName *string `json:"displayName,omitempty"` // Optional. If set to true, then zero will be returned for time duration where no metric is emitted/published. FillGapWithZero *bool `json:"fillGapWithZero,omitempty"` // Name of the metric Name *string `json:"name,omitempty"` // Name of the MDM namespace. Optional. SourceMdmNamespace *string `json:"sourceMdmNamespace,omitempty"` // Supported aggregation types SupportedAggregationTypes []*string `json:"supportedAggregationTypes,omitempty"` // Supported time grain types SupportedTimeGrainTypes []*string `json:"supportedTimeGrainTypes,omitempty"` // Unit that makes sense for the metric Unit *string `json:"unit,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type MetricSpecification. func (m MetricSpecification) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "aggregationType", m.AggregationType) populate(objectMap, "category", m.Category) populate(objectMap, "dimensions", m.Dimensions) populate(objectMap, "displayDescription", m.DisplayDescription) populate(objectMap, "displayName", m.DisplayName) populate(objectMap, "fillGapWithZero", m.FillGapWithZero) populate(objectMap, "name", m.Name) populate(objectMap, "sourceMdmNamespace", m.SourceMdmNamespace) populate(objectMap, "supportedAggregationTypes", m.SupportedAggregationTypes) populate(objectMap, "supportedTimeGrainTypes", m.SupportedTimeGrainTypes) populate(objectMap, "unit", m.Unit) return json.Marshal(objectMap) } // MonitoringSettingProperties - Monitoring Setting properties payload type MonitoringSettingProperties struct { // Indicates the versions of application insight agent AppInsightsAgentVersions *ApplicationInsightsAgentVersions `json:"appInsightsAgentVersions,omitempty"` // Target application insight instrumentation key, null or whitespace include empty will disable monitoringSettings AppInsightsInstrumentationKey *string `json:"appInsightsInstrumentationKey,omitempty"` // Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0] AppInsightsSamplingRate *float64 `json:"appInsightsSamplingRate,omitempty"` // Error when apply Monitoring Setting changes. Error *Error `json:"error,omitempty"` // Indicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview. Please // leverage appInsightsInstrumentationKey to indicate if monitoringSettings enabled // or not TraceEnabled *bool `json:"traceEnabled,omitempty"` // READ-ONLY; State of the Monitoring Setting. ProvisioningState *MonitoringSettingState `json:"provisioningState,omitempty" azure:"ro"` } // MonitoringSettingResource - Monitoring Setting resource type MonitoringSettingResource struct { // Properties of the Monitoring Setting resource Properties *MonitoringSettingProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` } // MarshalJSON implements the json.Marshaller interface for type MonitoringSettingResource. func (m MonitoringSettingResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "id", m.ID) populate(objectMap, "name", m.Name) populate(objectMap, "properties", m.Properties) populate(objectMap, "systemData", m.SystemData) populate(objectMap, "type", m.Type) return json.Marshal(objectMap) } // MonitoringSettingsClientBeginUpdatePatchOptions contains the optional parameters for the MonitoringSettingsClient.BeginUpdatePatch // method. type MonitoringSettingsClientBeginUpdatePatchOptions struct { // placeholder for future optional parameters } // MonitoringSettingsClientBeginUpdatePutOptions contains the optional parameters for the MonitoringSettingsClient.BeginUpdatePut // method. type MonitoringSettingsClientBeginUpdatePutOptions struct { // placeholder for future optional parameters } // MonitoringSettingsClientGetOptions contains the optional parameters for the MonitoringSettingsClient.Get method. type MonitoringSettingsClientGetOptions struct { // placeholder for future optional parameters } // NameAvailability - Name availability result payload type NameAvailability struct { // Message why the name is not available Message *string `json:"message,omitempty"` // Indicates whether the name is available NameAvailable *bool `json:"nameAvailable,omitempty"` // Reason why the name is not available Reason *string `json:"reason,omitempty"` } // NameAvailabilityParameters - Name availability parameters payload type NameAvailabilityParameters struct { // REQUIRED; Name to be checked Name *string `json:"name,omitempty"` // REQUIRED; Type of the resource to check name availability Type *string `json:"type,omitempty"` } // NetCoreZipUploadedUserSourceInfo - Uploaded Jar binary for a deployment type NetCoreZipUploadedUserSourceInfo struct { // REQUIRED; Type of the source uploaded Type *string `json:"type,omitempty"` // The path to the .NET executable relative to zip root NetCoreMainEntryPath *string `json:"netCoreMainEntryPath,omitempty"` // Relative path of the storage which stores the source RelativePath *string `json:"relativePath,omitempty"` // Runtime version of the .Net file RuntimeVersion *string `json:"runtimeVersion,omitempty"` // Version of the source Version *string `json:"version,omitempty"` } // GetUploadedUserSourceInfo implements the UploadedUserSourceInfoClassification interface for type NetCoreZipUploadedUserSourceInfo. func (n *NetCoreZipUploadedUserSourceInfo) GetUploadedUserSourceInfo() *UploadedUserSourceInfo { return &UploadedUserSourceInfo{ RelativePath: n.RelativePath, Type: n.Type, Version: n.Version, } } // GetUserSourceInfo implements the UserSourceInfoClassification interface for type NetCoreZipUploadedUserSourceInfo. func (n *NetCoreZipUploadedUserSourceInfo) GetUserSourceInfo() *UserSourceInfo { return &UserSourceInfo{ Type: n.Type, Version: n.Version, } } // MarshalJSON implements the json.Marshaller interface for type NetCoreZipUploadedUserSourceInfo. func (n NetCoreZipUploadedUserSourceInfo) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "netCoreMainEntryPath", n.NetCoreMainEntryPath) populate(objectMap, "relativePath", n.RelativePath) populate(objectMap, "runtimeVersion", n.RuntimeVersion) objectMap["type"] = "NetCoreZip" populate(objectMap, "version", n.Version) return json.Marshal(objectMap) } // UnmarshalJSON implements the json.Unmarshaller interface for type NetCoreZipUploadedUserSourceInfo. func (n *NetCoreZipUploadedUserSourceInfo) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return err } for key, val := range rawMsg { var err error switch key { case "netCoreMainEntryPath": err = unpopulate(val, &n.NetCoreMainEntryPath) delete(rawMsg, key) case "relativePath": err = unpopulate(val, &n.RelativePath) delete(rawMsg, key) case "runtimeVersion": err = unpopulate(val, &n.RuntimeVersion) delete(rawMsg, key) case "type": err = unpopulate(val, &n.Type) delete(rawMsg, key) case "version": err = unpopulate(val, &n.Version) delete(rawMsg, key) } if err != nil { return err } } return nil } // NetworkProfile - Service network profile payload type NetworkProfile struct { // Name of the resource group containing network resources of Azure Spring Cloud Apps AppNetworkResourceGroup *string `json:"appNetworkResourceGroup,omitempty"` // Fully qualified resource Id of the subnet to host Azure Spring Cloud Apps AppSubnetID *string `json:"appSubnetId,omitempty"` // Azure Spring Cloud service reserved CIDR ServiceCidr *string `json:"serviceCidr,omitempty"` // Name of the resource group containing network resources of Azure Spring Cloud Service Runtime ServiceRuntimeNetworkResourceGroup *string `json:"serviceRuntimeNetworkResourceGroup,omitempty"` // Fully qualified resource Id of the subnet to host Azure Spring Cloud Service Runtime ServiceRuntimeSubnetID *string `json:"serviceRuntimeSubnetId,omitempty"` // READ-ONLY; Desired outbound IP resources for Azure Spring Cloud instance. OutboundIPs *NetworkProfileOutboundIPs `json:"outboundIPs,omitempty" azure:"ro"` // READ-ONLY; Required inbound or outbound traffics for Azure Spring Cloud instance. RequiredTraffics []*RequiredTraffic `json:"requiredTraffics,omitempty" azure:"ro"` } // MarshalJSON implements the json.Marshaller interface for type NetworkProfile. func (n NetworkProfile) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "appNetworkResourceGroup", n.AppNetworkResourceGroup) populate(objectMap, "appSubnetId", n.AppSubnetID) populate(objectMap, "outboundIPs", n.OutboundIPs) populate(objectMap, "requiredTraffics", n.RequiredTraffics) populate(objectMap, "serviceCidr", n.ServiceCidr) populate(objectMap, "serviceRuntimeNetworkResourceGroup", n.ServiceRuntimeNetworkResourceGroup) populate(objectMap, "serviceRuntimeSubnetId", n.ServiceRuntimeSubnetID) return json.Marshal(objectMap) } // NetworkProfileOutboundIPs - Desired outbound IP resources for Azure Spring Cloud instance. type NetworkProfileOutboundIPs struct { // READ-ONLY; A list of public IP addresses. PublicIPs []*string `json:"publicIPs,omitempty" azure:"ro"` } // MarshalJSON implements the json.Marshaller interface for type NetworkProfileOutboundIPs. func (n NetworkProfileOutboundIPs) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "publicIPs", n.PublicIPs) return json.Marshal(objectMap) } // OperationDetail - Operation detail payload type OperationDetail struct { // Display of the operation Display *OperationDisplay `json:"display,omitempty"` // Indicates whether the operation is a data action IsDataAction *bool `json:"isDataAction,omitempty"` // Name of the operation Name *string `json:"name,omitempty"` // Origin of the operation Origin *string `json:"origin,omitempty"` // Properties of the operation Properties *OperationProperties `json:"properties,omitempty"` } // OperationDisplay - Operation display payload type OperationDisplay struct { // Localized friendly description for the operation Description *string `json:"description,omitempty"` // Localized friendly name for the operation Operation *string `json:"operation,omitempty"` // Resource provider of the operation Provider *string `json:"provider,omitempty"` // Resource of the operation Resource *string `json:"resource,omitempty"` } // OperationProperties - Extra Operation properties type OperationProperties struct { // Service specifications of the operation ServiceSpecification *ServiceSpecification `json:"serviceSpecification,omitempty"` } // OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. type OperationsClientListOptions struct { // placeholder for future optional parameters } // PersistentDisk - Persistent disk payload type PersistentDisk struct { // Mount path of the persistent disk MountPath *string `json:"mountPath,omitempty"` // Size of the persistent disk in GB SizeInGB *int32 `json:"sizeInGB,omitempty"` // READ-ONLY; Size of the used persistent disk in GB UsedInGB *int32 `json:"usedInGB,omitempty" azure:"ro"` } // ProxyResource - The resource model definition for a ARM proxy resource. It will have everything other than required location // and tags. type ProxyResource struct { // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` } // RegenerateTestKeyRequestPayload - Regenerate test key request payload type RegenerateTestKeyRequestPayload struct { // REQUIRED; Type of the test key KeyType *TestKeyType `json:"keyType,omitempty"` } // RequiredTraffic - Required inbound or outbound traffic for Azure Spring Cloud instance. type RequiredTraffic struct { // READ-ONLY; The direction of required traffic Direction *TrafficDirection `json:"direction,omitempty" azure:"ro"` // READ-ONLY; The FQDN list of required traffic Fqdns []*string `json:"fqdns,omitempty" azure:"ro"` // READ-ONLY; The ip list of required traffic IPs []*string `json:"ips,omitempty" azure:"ro"` // READ-ONLY; The port of required traffic Port *int32 `json:"port,omitempty" azure:"ro"` // READ-ONLY; The protocol of required traffic Protocol *string `json:"protocol,omitempty" azure:"ro"` } // MarshalJSON implements the json.Marshaller interface for type RequiredTraffic. func (r RequiredTraffic) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "direction", r.Direction) populate(objectMap, "fqdns", r.Fqdns) populate(objectMap, "ips", r.IPs) populate(objectMap, "port", r.Port) populate(objectMap, "protocol", r.Protocol) return json.Marshal(objectMap) } // Resource - The core properties of ARM resources. type Resource struct { // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` } // ResourceRequests - Deployment resource request payload type ResourceRequests struct { // Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 for Basic tier, and {500m, 1, 2, 3, 4} // for Standard tier. CPU *string `json:"cpu,omitempty"` // Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be {512Mi, 1Gi, 2Gi} for Basic tier, and {512Mi, // 1Gi, 2Gi, …, 8Gi} for Standard tier. Memory *string `json:"memory,omitempty"` } // ResourceSKU - Describes an available Azure Spring Cloud SKU. type ResourceSKU struct { // Gets the capacity of SKU. Capacity *SKUCapacity `json:"capacity,omitempty"` // Gets a list of locations and availability zones in those locations where the SKU is available. LocationInfo []*ResourceSKULocationInfo `json:"locationInfo,omitempty"` // Gets the set of locations that the SKU is available. Locations []*string `json:"locations,omitempty"` // Gets the name of SKU. Name *string `json:"name,omitempty"` // Gets the type of resource the SKU applies to. ResourceType *string `json:"resourceType,omitempty"` // Gets the restrictions because of which SKU cannot be used. This is empty if there are no restrictions. Restrictions []*ResourceSKURestrictions `json:"restrictions,omitempty"` // Gets the tier of SKU. Tier *string `json:"tier,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type ResourceSKU. func (r ResourceSKU) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "capacity", r.Capacity) populate(objectMap, "locationInfo", r.LocationInfo) populate(objectMap, "locations", r.Locations) populate(objectMap, "name", r.Name) populate(objectMap, "resourceType", r.ResourceType) populate(objectMap, "restrictions", r.Restrictions) populate(objectMap, "tier", r.Tier) return json.Marshal(objectMap) } type ResourceSKUCapabilities struct { // Gets an invariant to describe the feature. Name *string `json:"name,omitempty"` // Gets an invariant if the feature is measured by quantity. Value *string `json:"value,omitempty"` } // ResourceSKUCollection - Object that includes an array of Azure Spring Cloud SKU and a possible link for next set type ResourceSKUCollection struct { // URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. NextLink *string `json:"nextLink,omitempty"` // Collection of resource SKU Value []*ResourceSKU `json:"value,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type ResourceSKUCollection. func (r ResourceSKUCollection) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "nextLink", r.NextLink) populate(objectMap, "value", r.Value) return json.Marshal(objectMap) } // ResourceSKULocationInfo - Locations and availability zones where the SKU is available type ResourceSKULocationInfo struct { // Gets location of the SKU Location *string `json:"location,omitempty"` // Gets details of capabilities available to a SKU in specific zones. ZoneDetails []*ResourceSKUZoneDetails `json:"zoneDetails,omitempty"` // Gets list of availability zones where the SKU is supported. Zones []*string `json:"zones,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type ResourceSKULocationInfo. func (r ResourceSKULocationInfo) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "location", r.Location) populate(objectMap, "zoneDetails", r.ZoneDetails) populate(objectMap, "zones", r.Zones) return json.Marshal(objectMap) } // ResourceSKURestrictionInfo - Information about the restriction where the SKU cannot be used type ResourceSKURestrictionInfo struct { // Gets locations where the SKU is restricted Locations []*string `json:"locations,omitempty"` // Gets list of availability zones where the SKU is restricted. Zones []*string `json:"zones,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type ResourceSKURestrictionInfo. func (r ResourceSKURestrictionInfo) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "locations", r.Locations) populate(objectMap, "zones", r.Zones) return json.Marshal(objectMap) } // ResourceSKURestrictions - Restrictions where the SKU cannot be used type ResourceSKURestrictions struct { // Gets the reason for restriction. Possible values include: 'QuotaId', 'NotAvailableForSubscription' ReasonCode *ResourceSKURestrictionsReasonCode `json:"reasonCode,omitempty"` // Gets the information about the restriction where the SKU cannot be used. RestrictionInfo *ResourceSKURestrictionInfo `json:"restrictionInfo,omitempty"` // Gets the type of restrictions. Possible values include: 'Location', 'Zone' Type *ResourceSKURestrictionsType `json:"type,omitempty"` // Gets the value of restrictions. If the restriction type is set to location. This would be different locations where the // SKU is restricted. Values []*string `json:"values,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type ResourceSKURestrictions. func (r ResourceSKURestrictions) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "reasonCode", r.ReasonCode) populate(objectMap, "restrictionInfo", r.RestrictionInfo) populate(objectMap, "type", r.Type) populate(objectMap, "values", r.Values) return json.Marshal(objectMap) } // ResourceSKUZoneDetails - Details of capabilities available to a SKU in specific zones type ResourceSKUZoneDetails struct { // Gets a list of capabilities that are available for the SKU in the specified list of zones. Capabilities []*ResourceSKUCapabilities `json:"capabilities,omitempty"` // Gets the set of zones that the SKU is available in with the specified capabilities. Name []*string `json:"name,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type ResourceSKUZoneDetails. func (r ResourceSKUZoneDetails) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "capabilities", r.Capabilities) populate(objectMap, "name", r.Name) return json.Marshal(objectMap) } // ResourceUploadDefinition - Resource upload definition payload type ResourceUploadDefinition struct { // Source relative path RelativePath *string `json:"relativePath,omitempty"` // Upload URL UploadURL *string `json:"uploadUrl,omitempty"` } // RuntimeVersionsClientListRuntimeVersionsOptions contains the optional parameters for the RuntimeVersionsClient.ListRuntimeVersions // method. type RuntimeVersionsClientListRuntimeVersionsOptions struct { // placeholder for future optional parameters } // SKU - Sku of Azure Spring Cloud type SKU struct { // Current capacity of the target resource Capacity *int32 `json:"capacity,omitempty"` // Name of the Sku Name *string `json:"name,omitempty"` // Tier of the Sku Tier *string `json:"tier,omitempty"` } // SKUCapacity - The SKU capacity type SKUCapacity struct { // REQUIRED; Gets or sets the minimum. Minimum *int32 `json:"minimum,omitempty"` // Gets or sets the default. Default *int32 `json:"default,omitempty"` // Gets or sets the maximum. Maximum *int32 `json:"maximum,omitempty"` // Gets or sets the type of the scale. ScaleType *SKUScaleType `json:"scaleType,omitempty"` } // SKUsClientListOptions contains the optional parameters for the SKUsClient.List method. type SKUsClientListOptions struct { // placeholder for future optional parameters } // ServiceRegistriesClientBeginCreateOrUpdateOptions contains the optional parameters for the ServiceRegistriesClient.BeginCreateOrUpdate // method. type ServiceRegistriesClientBeginCreateOrUpdateOptions struct { // placeholder for future optional parameters } // ServiceRegistriesClientBeginDeleteOptions contains the optional parameters for the ServiceRegistriesClient.BeginDelete // method. type ServiceRegistriesClientBeginDeleteOptions struct { // placeholder for future optional parameters } // ServiceRegistriesClientGetOptions contains the optional parameters for the ServiceRegistriesClient.Get method. type ServiceRegistriesClientGetOptions struct { // placeholder for future optional parameters } // ServiceRegistriesClientListOptions contains the optional parameters for the ServiceRegistriesClient.List method. type ServiceRegistriesClientListOptions struct { // placeholder for future optional parameters } // ServiceRegistryInstance - Collection of instances belong to the Service Registry type ServiceRegistryInstance struct { // READ-ONLY; Name of the Service Registry instance Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Status of the Service Registry instance Status *string `json:"status,omitempty" azure:"ro"` } // ServiceRegistryProperties - Service Registry properties payload type ServiceRegistryProperties struct { // READ-ONLY; Collection of instances belong to Service Registry. Instances []*ServiceRegistryInstance `json:"instances,omitempty" azure:"ro"` // READ-ONLY; State of the Service Registry. ProvisioningState *ServiceRegistryProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; The requested resource quantity for required CPU and Memory. ResourceRequests *ServiceRegistryResourceRequests `json:"resourceRequests,omitempty" azure:"ro"` } // MarshalJSON implements the json.Marshaller interface for type ServiceRegistryProperties. func (s ServiceRegistryProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "instances", s.Instances) populate(objectMap, "provisioningState", s.ProvisioningState) populate(objectMap, "resourceRequests", s.ResourceRequests) return json.Marshal(objectMap) } // ServiceRegistryResource - Service Registry resource type ServiceRegistryResource struct { // Service Registry properties payload Properties *ServiceRegistryProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` } // ServiceRegistryResourceCollection - Object that includes an array of Service Registry resources and a possible link for // next set type ServiceRegistryResourceCollection struct { // URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. NextLink *string `json:"nextLink,omitempty"` // Collection of Service Registry resources Value []*ServiceRegistryResource `json:"value,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type ServiceRegistryResourceCollection. func (s ServiceRegistryResourceCollection) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "nextLink", s.NextLink) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) } // ServiceRegistryResourceRequests - Resource request payload of Service Registry type ServiceRegistryResourceRequests struct { // READ-ONLY; Cpu allocated to each Service Registry instance CPU *string `json:"cpu,omitempty" azure:"ro"` // READ-ONLY; Instance count of the Service Registry InstanceCount *int32 `json:"instanceCount,omitempty" azure:"ro"` // READ-ONLY; Memory allocated to each Service Registry instance Memory *string `json:"memory,omitempty" azure:"ro"` } // ServiceResource - Service resource type ServiceResource struct { // The GEO location of the resource. Location *string `json:"location,omitempty"` // Properties of the Service resource Properties *ClusterResourceProperties `json:"properties,omitempty"` // Sku of the Service resource SKU *SKU `json:"sku,omitempty"` // Tags of the service which is a list of key value pairs that describe the resource. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` } // MarshalJSON implements the json.Marshaller interface for type ServiceResource. func (s ServiceResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "id", s.ID) populate(objectMap, "location", s.Location) populate(objectMap, "name", s.Name) populate(objectMap, "properties", s.Properties) populate(objectMap, "sku", s.SKU) populate(objectMap, "systemData", s.SystemData) populate(objectMap, "tags", s.Tags) populate(objectMap, "type", s.Type) return json.Marshal(objectMap) } // ServiceResourceList - Object that includes an array of Service resources and a possible link for next set type ServiceResourceList struct { // URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. NextLink *string `json:"nextLink,omitempty"` // Collection of Service resources Value []*ServiceResource `json:"value,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type ServiceResourceList. func (s ServiceResourceList) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "nextLink", s.NextLink) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) } // ServiceSpecification - Service specification payload type ServiceSpecification struct { // Specifications of the Log for Azure Monitoring LogSpecifications []*LogSpecification `json:"logSpecifications,omitempty"` // Specifications of the Metrics for Azure Monitoring MetricSpecifications []*MetricSpecification `json:"metricSpecifications,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type ServiceSpecification. func (s ServiceSpecification) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "logSpecifications", s.LogSpecifications) populate(objectMap, "metricSpecifications", s.MetricSpecifications) return json.Marshal(objectMap) } // ServicesClientBeginCreateOrUpdateOptions contains the optional parameters for the ServicesClient.BeginCreateOrUpdate method. type ServicesClientBeginCreateOrUpdateOptions struct { // placeholder for future optional parameters } // ServicesClientBeginDeleteOptions contains the optional parameters for the ServicesClient.BeginDelete method. type ServicesClientBeginDeleteOptions struct { // placeholder for future optional parameters } // ServicesClientBeginStartOptions contains the optional parameters for the ServicesClient.BeginStart method. type ServicesClientBeginStartOptions struct { // placeholder for future optional parameters } // ServicesClientBeginStopOptions contains the optional parameters for the ServicesClient.BeginStop method. type ServicesClientBeginStopOptions struct { // placeholder for future optional parameters } // ServicesClientBeginUpdateOptions contains the optional parameters for the ServicesClient.BeginUpdate method. type ServicesClientBeginUpdateOptions struct { // placeholder for future optional parameters } // ServicesClientCheckNameAvailabilityOptions contains the optional parameters for the ServicesClient.CheckNameAvailability // method. type ServicesClientCheckNameAvailabilityOptions struct { // placeholder for future optional parameters } // ServicesClientDisableTestEndpointOptions contains the optional parameters for the ServicesClient.DisableTestEndpoint method. type ServicesClientDisableTestEndpointOptions struct { // placeholder for future optional parameters } // ServicesClientEnableTestEndpointOptions contains the optional parameters for the ServicesClient.EnableTestEndpoint method. type ServicesClientEnableTestEndpointOptions struct { // placeholder for future optional parameters } // ServicesClientGetOptions contains the optional parameters for the ServicesClient.Get method. type ServicesClientGetOptions struct { // placeholder for future optional parameters } // ServicesClientListBySubscriptionOptions contains the optional parameters for the ServicesClient.ListBySubscription method. type ServicesClientListBySubscriptionOptions struct { // placeholder for future optional parameters } // ServicesClientListOptions contains the optional parameters for the ServicesClient.List method. type ServicesClientListOptions struct { // placeholder for future optional parameters } // ServicesClientListTestKeysOptions contains the optional parameters for the ServicesClient.ListTestKeys method. type ServicesClientListTestKeysOptions struct { // placeholder for future optional parameters } // ServicesClientRegenerateTestKeyOptions contains the optional parameters for the ServicesClient.RegenerateTestKey method. type ServicesClientRegenerateTestKeyOptions struct { // placeholder for future optional parameters } // SourceUploadedUserSourceInfo - Uploaded Java source code binary for a deployment type SourceUploadedUserSourceInfo struct { // REQUIRED; Type of the source uploaded Type *string `json:"type,omitempty"` // Selector for the artifact to be used for the deployment for multi-module projects. This should be the relative path to // the target module/project. ArtifactSelector *string `json:"artifactSelector,omitempty"` // Relative path of the storage which stores the source RelativePath *string `json:"relativePath,omitempty"` // Runtime version of the source file RuntimeVersion *string `json:"runtimeVersion,omitempty"` // Version of the source Version *string `json:"version,omitempty"` } // GetUploadedUserSourceInfo implements the UploadedUserSourceInfoClassification interface for type SourceUploadedUserSourceInfo. func (s *SourceUploadedUserSourceInfo) GetUploadedUserSourceInfo() *UploadedUserSourceInfo { return &UploadedUserSourceInfo{ RelativePath: s.RelativePath, Type: s.Type, Version: s.Version, } } // GetUserSourceInfo implements the UserSourceInfoClassification interface for type SourceUploadedUserSourceInfo. func (s *SourceUploadedUserSourceInfo) GetUserSourceInfo() *UserSourceInfo { return &UserSourceInfo{ Type: s.Type, Version: s.Version, } } // MarshalJSON implements the json.Marshaller interface for type SourceUploadedUserSourceInfo. func (s SourceUploadedUserSourceInfo) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "artifactSelector", s.ArtifactSelector) populate(objectMap, "relativePath", s.RelativePath) populate(objectMap, "runtimeVersion", s.RuntimeVersion) objectMap["type"] = "Source" populate(objectMap, "version", s.Version) return json.Marshal(objectMap) } // UnmarshalJSON implements the json.Unmarshaller interface for type SourceUploadedUserSourceInfo. func (s *SourceUploadedUserSourceInfo) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return err } for key, val := range rawMsg { var err error switch key { case "artifactSelector": err = unpopulate(val, &s.ArtifactSelector) delete(rawMsg, key) case "relativePath": err = unpopulate(val, &s.RelativePath) delete(rawMsg, key) case "runtimeVersion": err = unpopulate(val, &s.RuntimeVersion) delete(rawMsg, key) case "type": err = unpopulate(val, &s.Type) delete(rawMsg, key) case "version": err = unpopulate(val, &s.Version) delete(rawMsg, key) } if err != nil { return err } } return nil } // SsoProperties - Single sign-on related configuration type SsoProperties struct { // The public identifier for the application ClientID *string `json:"clientId,omitempty"` // The secret known only to the application and the authorization server ClientSecret *string `json:"clientSecret,omitempty"` // The URI of Issuer Identifier IssuerURI *string `json:"issuerUri,omitempty"` // It defines the specific actions applications can be allowed to do on a user's behalf Scope []*string `json:"scope,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type SsoProperties. func (s SsoProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "clientId", s.ClientID) populate(objectMap, "clientSecret", s.ClientSecret) populate(objectMap, "issuerUri", s.IssuerURI) populate(objectMap, "scope", s.Scope) return json.Marshal(objectMap) } // StackProperties - KPack ClusterStack properties payload type StackProperties struct { // Id of the ClusterStack. ID *string `json:"id,omitempty"` // Version of the ClusterStack Version *string `json:"version,omitempty"` } // StorageAccount - storage resource of type Azure Storage Account. type StorageAccount struct { // REQUIRED; The account key of the Azure Storage Account. AccountKey *string `json:"accountKey,omitempty"` // REQUIRED; The account name of the Azure Storage Account. AccountName *string `json:"accountName,omitempty"` // REQUIRED; The type of the storage. StorageType *StoragePropertiesStorageType `json:"storageType,omitempty"` } // GetStorageProperties implements the StoragePropertiesClassification interface for type StorageAccount. func (s *StorageAccount) GetStorageProperties() *StorageProperties { return &StorageProperties{ StorageType: s.StorageType, } } // MarshalJSON implements the json.Marshaller interface for type StorageAccount. func (s StorageAccount) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "accountKey", s.AccountKey) populate(objectMap, "accountName", s.AccountName) objectMap["storageType"] = StoragePropertiesStorageTypeStorageAccount return json.Marshal(objectMap) } // UnmarshalJSON implements the json.Unmarshaller interface for type StorageAccount. func (s *StorageAccount) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return err } for key, val := range rawMsg { var err error switch key { case "accountKey": err = unpopulate(val, &s.AccountKey) delete(rawMsg, key) case "accountName": err = unpopulate(val, &s.AccountName) delete(rawMsg, key) case "storageType": err = unpopulate(val, &s.StorageType) delete(rawMsg, key) } if err != nil { return err } } return nil } // StoragePropertiesClassification provides polymorphic access to related types. // Call the interface's GetStorageProperties() method to access the common type. // Use a type switch to determine the concrete type. The possible types are: // - *StorageAccount, *StorageProperties type StoragePropertiesClassification interface { // GetStorageProperties returns the StorageProperties content of the underlying type. GetStorageProperties() *StorageProperties } // StorageProperties - Storage resource payload. type StorageProperties struct { // REQUIRED; The type of the storage. StorageType *StoragePropertiesStorageType `json:"storageType,omitempty"` } // GetStorageProperties implements the StoragePropertiesClassification interface for type StorageProperties. func (s *StorageProperties) GetStorageProperties() *StorageProperties { return s } // StorageResource - Storage resource payload. type StorageResource struct { // Properties of the storage resource payload. Properties StoragePropertiesClassification `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` } // MarshalJSON implements the json.Marshaller interface for type StorageResource. func (s StorageResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "id", s.ID) populate(objectMap, "name", s.Name) populate(objectMap, "properties", s.Properties) populate(objectMap, "systemData", s.SystemData) populate(objectMap, "type", s.Type) return json.Marshal(objectMap) } // UnmarshalJSON implements the json.Unmarshaller interface for type StorageResource. func (s *StorageResource) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return err } for key, val := range rawMsg { var err error switch key { case "id": err = unpopulate(val, &s.ID) delete(rawMsg, key) case "name": err = unpopulate(val, &s.Name) delete(rawMsg, key) case "properties": s.Properties, err = unmarshalStoragePropertiesClassification(val) delete(rawMsg, key) case "systemData": err = unpopulate(val, &s.SystemData) delete(rawMsg, key) case "type": err = unpopulate(val, &s.Type) delete(rawMsg, key) } if err != nil { return err } } return nil } // StorageResourceCollection - Collection compose of storage resources list and a possible link for next page. type StorageResourceCollection struct { // The link to next page of storage list. NextLink *string `json:"nextLink,omitempty"` // The storage resources list. Value []*StorageResource `json:"value,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type StorageResourceCollection. func (s StorageResourceCollection) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "nextLink", s.NextLink) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) } // StoragesClientBeginCreateOrUpdateOptions contains the optional parameters for the StoragesClient.BeginCreateOrUpdate method. type StoragesClientBeginCreateOrUpdateOptions struct { // placeholder for future optional parameters } // StoragesClientBeginDeleteOptions contains the optional parameters for the StoragesClient.BeginDelete method. type StoragesClientBeginDeleteOptions struct { // placeholder for future optional parameters } // StoragesClientGetOptions contains the optional parameters for the StoragesClient.Get method. type StoragesClientGetOptions struct { // placeholder for future optional parameters } // StoragesClientListOptions contains the optional parameters for the StoragesClient.List method. type StoragesClientListOptions struct { // placeholder for future optional parameters } // SupportedBuildpackResource - Supported buildpack resource payload type SupportedBuildpackResource struct { // Supported buildpack resource properties Properties *SupportedBuildpackResourceProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` } // SupportedBuildpackResourceProperties - Supported buildpack resource properties type SupportedBuildpackResourceProperties struct { // The id of supported buildpack BuildpackID *string `json:"buildpackId,omitempty"` } // SupportedBuildpacksCollection - Object that includes an array of supported buildpacks resources and a possible link for // next set type SupportedBuildpacksCollection struct { // URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. NextLink *string `json:"nextLink,omitempty"` // Collection of supported buildpacks resources Value []*SupportedBuildpackResource `json:"value,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type SupportedBuildpacksCollection. func (s SupportedBuildpacksCollection) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "nextLink", s.NextLink) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) } // SupportedRuntimeVersion - Supported deployment runtime version descriptor. type SupportedRuntimeVersion struct { // The platform of this runtime version (possible values: "Java" or ".NET"). Platform *SupportedRuntimePlatform `json:"platform,omitempty"` // The raw value which could be passed to deployment CRUD operations. Value *SupportedRuntimeValue `json:"value,omitempty"` // The detailed version (major.minor) of the platform. Version *string `json:"version,omitempty"` } // SupportedStackResource - Supported stack resource payload type SupportedStackResource struct { // Supported stack resource properties Properties *SupportedStackResourceProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` } // SupportedStackResourceProperties - Supported stack resource properties type SupportedStackResourceProperties struct { // The id of supported stack StackID *string `json:"stackId,omitempty"` // The version of supported stack Version *string `json:"version,omitempty"` } // SupportedStacksCollection - Object that includes an array of supported stacks resources and a possible link for next set type SupportedStacksCollection struct { // URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. NextLink *string `json:"nextLink,omitempty"` // Collection of supported stacks resources Value []*SupportedStackResource `json:"value,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type SupportedStacksCollection. func (s SupportedStacksCollection) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "nextLink", s.NextLink) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) } // SystemData - Metadata pertaining to creation and last modification of the resource. type SystemData struct { // The timestamp of resource creation (UTC). CreatedAt *time.Time `json:"createdAt,omitempty"` // The identity that created the resource. CreatedBy *string `json:"createdBy,omitempty"` // The type of identity that created the resource. CreatedByType *CreatedByType `json:"createdByType,omitempty"` // The timestamp of resource modification (UTC). LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"` // The identity that last modified the resource. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // The type of identity that last modified the resource. LastModifiedByType *LastModifiedByType `json:"lastModifiedByType,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type SystemData. func (s SystemData) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) populate(objectMap, "createdBy", s.CreatedBy) populate(objectMap, "createdByType", s.CreatedByType) populateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) populate(objectMap, "lastModifiedBy", s.LastModifiedBy) populate(objectMap, "lastModifiedByType", s.LastModifiedByType) return json.Marshal(objectMap) } // UnmarshalJSON implements the json.Unmarshaller interface for type SystemData. func (s *SystemData) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return err } for key, val := range rawMsg { var err error switch key { case "createdAt": err = unpopulateTimeRFC3339(val, &s.CreatedAt) delete(rawMsg, key) case "createdBy": err = unpopulate(val, &s.CreatedBy) delete(rawMsg, key) case "createdByType": err = unpopulate(val, &s.CreatedByType) delete(rawMsg, key) case "lastModifiedAt": err = unpopulateTimeRFC3339(val, &s.LastModifiedAt) delete(rawMsg, key) case "lastModifiedBy": err = unpopulate(val, &s.LastModifiedBy) delete(rawMsg, key) case "lastModifiedByType": err = unpopulate(val, &s.LastModifiedByType) delete(rawMsg, key) } if err != nil { return err } } return nil } // TemporaryDisk - Temporary disk payload type TemporaryDisk struct { // Mount path of the temporary disk MountPath *string `json:"mountPath,omitempty"` // Size of the temporary disk in GB SizeInGB *int32 `json:"sizeInGB,omitempty"` } // TestKeys - Test keys payload type TestKeys struct { // Indicates whether the test endpoint feature enabled or not Enabled *bool `json:"enabled,omitempty"` // Primary key PrimaryKey *string `json:"primaryKey,omitempty"` // Primary test endpoint PrimaryTestEndpoint *string `json:"primaryTestEndpoint,omitempty"` // Secondary key SecondaryKey *string `json:"secondaryKey,omitempty"` // Secondary test endpoint SecondaryTestEndpoint *string `json:"secondaryTestEndpoint,omitempty"` } // TrackedResource - The resource model definition for a ARM tracked top level resource. type TrackedResource struct { // The GEO location of the resource. Location *string `json:"location,omitempty"` // Tags of the service which is a list of key value pairs that describe the resource. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Fully qualified resource Id for the resource. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` } // MarshalJSON implements the json.Marshaller interface for type TrackedResource. func (t TrackedResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "id", t.ID) populate(objectMap, "location", t.Location) populate(objectMap, "name", t.Name) populate(objectMap, "systemData", t.SystemData) populate(objectMap, "tags", t.Tags) populate(objectMap, "type", t.Type) return json.Marshal(objectMap) } // TriggeredBuildResult - The build result triggered by a build type TriggeredBuildResult struct { // The unique build id of this build result ID *string `json:"id,omitempty"` } // UploadedUserSourceInfoClassification provides polymorphic access to related types. // Call the interface's GetUploadedUserSourceInfo() method to access the common type. // Use a type switch to determine the concrete type. The possible types are: // - *JarUploadedUserSourceInfo, *NetCoreZipUploadedUserSourceInfo, *SourceUploadedUserSourceInfo, *UploadedUserSourceInfo type UploadedUserSourceInfoClassification interface { UserSourceInfoClassification // GetUploadedUserSourceInfo returns the UploadedUserSourceInfo content of the underlying type. GetUploadedUserSourceInfo() *UploadedUserSourceInfo } // UploadedUserSourceInfo - Source with uploaded location type UploadedUserSourceInfo struct { // REQUIRED; Type of the source uploaded Type *string `json:"type,omitempty"` // Relative path of the storage which stores the source RelativePath *string `json:"relativePath,omitempty"` // Version of the source Version *string `json:"version,omitempty"` } // GetUploadedUserSourceInfo implements the UploadedUserSourceInfoClassification interface for type UploadedUserSourceInfo. func (u *UploadedUserSourceInfo) GetUploadedUserSourceInfo() *UploadedUserSourceInfo { return u } // GetUserSourceInfo implements the UserSourceInfoClassification interface for type UploadedUserSourceInfo. func (u *UploadedUserSourceInfo) GetUserSourceInfo() *UserSourceInfo { return &UserSourceInfo{ Type: u.Type, Version: u.Version, } } // MarshalJSON implements the json.Marshaller interface for type UploadedUserSourceInfo. func (u UploadedUserSourceInfo) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "relativePath", u.RelativePath) objectMap["type"] = "UploadedUserSourceInfo" populate(objectMap, "version", u.Version) return json.Marshal(objectMap) } // UnmarshalJSON implements the json.Unmarshaller interface for type UploadedUserSourceInfo. func (u *UploadedUserSourceInfo) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return err } for key, val := range rawMsg { var err error switch key { case "relativePath": err = unpopulate(val, &u.RelativePath) delete(rawMsg, key) case "type": err = unpopulate(val, &u.Type) delete(rawMsg, key) case "version": err = unpopulate(val, &u.Version) delete(rawMsg, key) } if err != nil { return err } } return nil } // UserSourceInfoClassification provides polymorphic access to related types. // Call the interface's GetUserSourceInfo() method to access the common type. // Use a type switch to determine the concrete type. The possible types are: // - *BuildResultUserSourceInfo, *CustomContainerUserSourceInfo, *JarUploadedUserSourceInfo, *NetCoreZipUploadedUserSourceInfo, // - *SourceUploadedUserSourceInfo, *UploadedUserSourceInfo, *UserSourceInfo type UserSourceInfoClassification interface { // GetUserSourceInfo returns the UserSourceInfo content of the underlying type. GetUserSourceInfo() *UserSourceInfo } // UserSourceInfo - Source information for a deployment type UserSourceInfo struct { // REQUIRED; Type of the source uploaded Type *string `json:"type,omitempty"` // Version of the source Version *string `json:"version,omitempty"` } // GetUserSourceInfo implements the UserSourceInfoClassification interface for type UserSourceInfo. func (u *UserSourceInfo) GetUserSourceInfo() *UserSourceInfo { return u } // ValidationMessages - Validate messages of the configuration service git repositories type ValidationMessages struct { // Detailed validation messages. Messages []*string `json:"messages,omitempty"` // The name of the configuration service git repository. Name *string `json:"name,omitempty"` } // MarshalJSON implements the json.Marshaller interface for type ValidationMessages. func (v ValidationMessages) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "messages", v.Messages) populate(objectMap, "name", v.Name) return json.Marshal(objectMap) } func populate(m map[string]interface{}, k string, v interface{}) { if v == nil { return } else if azcore.IsNullValue(v) { m[k] = nil } else if !reflect.ValueOf(v).IsNil() { m[k] = v } } func unpopulate(data json.RawMessage, v interface{}) error { if data == nil { return nil } return json.Unmarshal(data, v) }
Azure/azure-sdk-for-go
sdk/resourcemanager/appplatform/armappplatform/zz_generated_models.go
GO
mit
173,767
'use strict'; let express = require('express'); let router = express.Router(); let notifies = require('../../models/notifies'); let unsbscribe = function (req, res, next) { try { let userId = req.query.user, projectId = req.query.project, hash = req.query.hash, type = req.query.type || 'email', success = true; const AVAILABLE_TYPES = ['email', 'tg', 'slack']; if (success && (!userId || !projectId || !hash || !AVAILABLE_TYPES.includes(type))) { success = false; } let generatedHash = notifies.generateUnsubscribeHash(userId, projectId); if (success && (hash !== generatedHash)) { success = false; } if (success) { notifies.unsubscribe(userId, projectId, type); } res.render('yard/unsubscribe/unsubscribe.twig', { success: success }); } catch (e) { next(e) } }; router.use('/', unsbscribe); module.exports = router;
codex-team/hawk
hawk/routes/yard/unsubscribe.js
JavaScript
mit
930
""" The following settings are meant to be used for a faked github.com OAuth instance. You should rename this file to 'local_settings.py' in order to use it for the instance it resides in. The are 2 main reasons for using local_settings.py when running locally: 1. Disable CSRF protection (just not necessary when running on localhost) 2. Disable file-based caching (who cares if things are slower when coding!) - Feel free to run with caching enabled locally, but it can cause headaches when developing because models, etc. are always changing so it doesn't serve a lot of purpose. """ def get_setting(setting): """ Get a setting from settings.py """ import settings return getattr(settings, setting) # Development debug mode DEBUG = True TEMPLATE_DEBUG = DEBUG # Replace with your own github username to run locally and have your profile # filled out automatically without an access token from the fake Oauth instance #GITHUB_USER = '' # Overrides for middleware to avoid having the CSRF protection when running # locally MIDDLEWARE_CLASSES = get_setting('MIDDLEWARE_CLASSES') MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', ) # Disable caching CACHES = get_setting('CACHES') CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.dummy.DummyCache', } }
durden/dash
example_local_settings.py
Python
mit
1,551
using SysCommand.ConsoleApp; using SysCommand.ConsoleApp.Helpers; using MarkdownGenerator.Helpers; using System.IO; using Markdig; using Html2Markdown; namespace MarkdownGenerator.Commands { public partial class TestCommand : Command { public TestCommand() { this.OnlyInDebug = true; this.HelpText = "Tests features"; } public void TestConvertMdFile(string filePath) { var path = filePath; var str = FileHelper.GetContentFromFile(path); var fileBaseDir = Path.GetDirectoryName(path); var fileName = Path.GetFileNameWithoutExtension(path); var htmlFile = Path.Combine(fileBaseDir, fileName + ".test.md"); var html = Markdown.ToHtml(str); var converter = new Converter(); string result = converter.Convert(html); FileHelper.SaveContentToFile(result, htmlFile); } public void TestConvertMdFolder(string baseDir, string baseDirOutput) { if (baseDir != baseDirOutput) { DirectoryHelper.FindFiles(baseDir, path => { var str = FileHelper.GetContentFromFile(path); var fileBaseDir = baseDirOutput; var fileName = Path.GetFileNameWithoutExtension(path); var htmlFile = Path.Combine(fileBaseDir, fileName + ".md"); var html = Markdown.ToHtml(str); var converter = new Converter(); string result = converter.Convert(html); FileHelper.SaveContentToFile(result, htmlFile); }, "*.md"); } } } }
juniorgasparotto/MarkdownMerge
src/MarkdownGenerator/Commands/TestCommand.cs
C#
mit
1,745
/* * Copyright (c) 2021 Arm Limited. * * SPDX-License-Identifier: MIT * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or * sell copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ #pragma once #ifdef __aarch64__ namespace { void a64_transpose_interleave_16_2x4_fp32bf16(bfloat16 *out, const float *in, size_t width, size_t in_stride, size_t height) { float *pad_row = reinterpret_cast<float *>(alloca(width * sizeof(float))); if (height % 4) { memset(pad_row, 0, width * sizeof(float)); } size_t out_stride = 16 * roundup<size_t>(height, 4) * sizeof(bfloat16); __asm__ __volatile__( "cmp %x[height], #0x8\n" "blt 8f\n" "1:" // Main row loop: Head "mov x28, %x[in]\n" "mov x27, %x[out]\n" "add x26, x28, %x[in_stride]\n" "add x25, x26, %x[in_stride]\n" "add x24, x25, %x[in_stride]\n" "add x23, x24, %x[in_stride]\n" "add x22, x23, %x[in_stride]\n" "add x21, x22, %x[in_stride]\n" "add x20, x21, %x[in_stride]\n" "add %x[in], x20, %x[in_stride]\n" "sub %x[height], %x[height], #0x8\n" "mov x19, %x[width]\n" "cmp x19, #0x10\n" "blt 3f\n" "2:" // Main row loop: Column loop "ldr q17, [x28], #0x10\n" "sub x19, x19, #0x10\n" "ldr q19, [x26], #0x10\n" "cmp x19, #0x10\n" "ldr q16, [x25], #0x10\n" "zip1 v24.4s, v17.4s, v16.4s\n" "ldr q18, [x28], #0x10\n" "zip2 v23.4s, v17.4s, v16.4s\n" "ldr q22, [x26], #0x10\n" "ldr q16, [x25], #0x10\n" "zip1 v21.4s, v18.4s, v16.4s\n" "ldr q17, [x28], #0x10\n" "zip2 v14.4s, v18.4s, v16.4s\n" "ldr q13, [x26], #0x10\n" "ldr q16, [x25], #0x10\n" "zip1 v12.4s, v17.4s, v16.4s\n" "ldr q18, [x28], #0x10\n" "zip2 v11.4s, v17.4s, v16.4s\n" "ldr q10, [x26], #0x10\n" "ldr q17, [x25], #0x10\n" "zip1 v9.4s, v18.4s, v17.4s\n" "ldr q16, [x24], #0x10\n" "zip2 v8.4s, v18.4s, v17.4s\n" "ldr q7, [x23], #0x10\n" "ldr q6, [x22], #0x10\n" "zip1 v17.4s, v19.4s, v16.4s\n" "ldr q20, [x24], #0x10\n" "zip2 v19.4s, v19.4s, v16.4s\n" "ldr q5, [x23], #0x10\n" "zip1 v16.4s, v24.4s, v17.4s\n" "ldr q4, [x22], #0x10\n" ".inst 0x0ea16a03 // bfcvtn v3.4h, v16.4s\n" "ldr q2, [x21], #0x10\n" "zip2 v17.4s, v24.4s, v17.4s\n" "ldr q1, [x24], #0x10\n" "zip1 v16.4s, v23.4s, v19.4s\n" "ldr q0, [x23], #0x10\n" ".inst 0x4ea16a23 // bfcvtn2 v3.8h, v17.4s\n" "ldr q31, [x22], #0x10\n" ".inst 0x0ea16a12 // bfcvtn v18.4h, v16.4s\n" "ldr q30, [x21], #0x10\n" "zip2 v16.4s, v23.4s, v19.4s\n" "ldr q29, [x24], #0x10\n" "zip1 v17.4s, v22.4s, v20.4s\n" "ldr q28, [x23], #0x10\n" ".inst 0x4ea16a12 // bfcvtn2 v18.8h, v16.4s\n" "ldr q27, [x22], #0x10\n" "zip1 v16.4s, v21.4s, v17.4s\n" "ldr q26, [x21], #0x10\n" ".inst 0x0ea16a19 // bfcvtn v25.4h, v16.4s\n" "ldr q24, [x20], #0x10\n" "zip2 v16.4s, v21.4s, v17.4s\n" "ldr q23, [x21], #0x10\n" ".inst 0x4ea16a19 // bfcvtn2 v25.8h, v16.4s\n" "zip2 v17.4s, v22.4s, v20.4s\n" "ldr q22, [x20], #0x10\n" "zip1 v16.4s, v14.4s, v17.4s\n" "ldr q21, [x20], #0x10\n" ".inst 0x0ea16a13 // bfcvtn v19.4h, v16.4s\n" "zip2 v16.4s, v14.4s, v17.4s\n" "ldr q20, [x20], #0x10\n" ".inst 0x4ea16a13 // bfcvtn2 v19.8h, v16.4s\n" "zip1 v17.4s, v13.4s, v1.4s\n" "str q3, [x27, #0x0]\n" "zip1 v16.4s, v12.4s, v17.4s\n" "str q18, [x27, #0x10]\n" ".inst 0x0ea16a12 // bfcvtn v18.4h, v16.4s\n" "str q25, [x27, #0x20]\n" "zip2 v16.4s, v12.4s, v17.4s\n" "str q19, [x27, #0x30]\n" "zip2 v17.4s, v13.4s, v1.4s\n" ".inst 0x4ea16a12 // bfcvtn2 v18.8h, v16.4s\n" "str q18, [x27, #0x40]\n" "zip1 v16.4s, v11.4s, v17.4s\n" "zip2 v19.4s, v11.4s, v17.4s\n" ".inst 0x0ea16a12 // bfcvtn v18.4h, v16.4s\n" "zip1 v17.4s, v10.4s, v29.4s\n" "zip1 v16.4s, v9.4s, v17.4s\n" ".inst 0x4ea16a72 // bfcvtn2 v18.8h, v19.4s\n" "str q18, [x27, #0x50]\n" ".inst 0x0ea16a13 // bfcvtn v19.4h, v16.4s\n" "zip2 v18.4s, v9.4s, v17.4s\n" "zip2 v17.4s, v10.4s, v29.4s\n" "zip1 v16.4s, v8.4s, v17.4s\n" ".inst 0x4ea16a53 // bfcvtn2 v19.8h, v18.4s\n" "str q19, [x27, #0x60]\n" ".inst 0x0ea16a13 // bfcvtn v19.4h, v16.4s\n" "zip2 v16.4s, v8.4s, v17.4s\n" "zip1 v18.4s, v7.4s, v2.4s\n" "zip1 v17.4s, v6.4s, v24.4s\n" ".inst 0x4ea16a13 // bfcvtn2 v19.8h, v16.4s\n" "str q19, [x27, #0x70]\n" "zip1 v16.4s, v18.4s, v17.4s\n" "zip2 v19.4s, v18.4s, v17.4s\n" ".inst 0x0ea16a10 // bfcvtn v16.4h, v16.4s\n" "zip2 v18.4s, v7.4s, v2.4s\n" "zip2 v17.4s, v6.4s, v24.4s\n" ".inst 0x4ea16a70 // bfcvtn2 v16.8h, v19.4s\n" "str q16, [x27, #0x80]\n" "zip1 v16.4s, v18.4s, v17.4s\n" "zip2 v19.4s, v18.4s, v17.4s\n" ".inst 0x0ea16a10 // bfcvtn v16.4h, v16.4s\n" "zip1 v18.4s, v5.4s, v30.4s\n" "zip1 v17.4s, v4.4s, v22.4s\n" ".inst 0x4ea16a70 // bfcvtn2 v16.8h, v19.4s\n" "str q16, [x27, #0x90]\n" "zip1 v16.4s, v18.4s, v17.4s\n" "zip2 v19.4s, v18.4s, v17.4s\n" ".inst 0x0ea16a10 // bfcvtn v16.4h, v16.4s\n" "zip2 v18.4s, v5.4s, v30.4s\n" "zip2 v17.4s, v4.4s, v22.4s\n" ".inst 0x4ea16a70 // bfcvtn2 v16.8h, v19.4s\n" "str q16, [x27, #0xa0]\n" "zip1 v16.4s, v18.4s, v17.4s\n" "zip2 v19.4s, v18.4s, v17.4s\n" ".inst 0x0ea16a10 // bfcvtn v16.4h, v16.4s\n" "zip1 v18.4s, v0.4s, v26.4s\n" "zip1 v17.4s, v31.4s, v21.4s\n" ".inst 0x4ea16a70 // bfcvtn2 v16.8h, v19.4s\n" "str q16, [x27, #0xb0]\n" "zip1 v16.4s, v18.4s, v17.4s\n" "zip2 v19.4s, v18.4s, v17.4s\n" ".inst 0x0ea16a10 // bfcvtn v16.4h, v16.4s\n" "zip2 v18.4s, v0.4s, v26.4s\n" "zip2 v17.4s, v31.4s, v21.4s\n" ".inst 0x4ea16a70 // bfcvtn2 v16.8h, v19.4s\n" "str q16, [x27, #0xc0]\n" "zip1 v16.4s, v18.4s, v17.4s\n" "zip2 v19.4s, v18.4s, v17.4s\n" ".inst 0x0ea16a10 // bfcvtn v16.4h, v16.4s\n" "zip1 v18.4s, v28.4s, v23.4s\n" "zip1 v17.4s, v27.4s, v20.4s\n" ".inst 0x4ea16a70 // bfcvtn2 v16.8h, v19.4s\n" "str q16, [x27, #0xd0]\n" "zip1 v16.4s, v18.4s, v17.4s\n" "zip2 v19.4s, v18.4s, v17.4s\n" ".inst 0x0ea16a10 // bfcvtn v16.4h, v16.4s\n" "zip2 v18.4s, v28.4s, v23.4s\n" "zip2 v17.4s, v27.4s, v20.4s\n" ".inst 0x4ea16a70 // bfcvtn2 v16.8h, v19.4s\n" "str q16, [x27, #0xe0]\n" "zip1 v16.4s, v18.4s, v17.4s\n" "zip2 v17.4s, v18.4s, v17.4s\n" ".inst 0x0ea16a10 // bfcvtn v16.4h, v16.4s\n" ".inst 0x4ea16a30 // bfcvtn2 v16.8h, v17.4s\n" "str q16, [x27, #0xf0]\n" "add x27, x27, %x[out_stride]\n" "bge 2b\n" "3:" // Main row loop: Column loop skip "cmp x19, #0x4\n" "blt 5f\n" "4:" // Main row loop: width 4 loop: loop "ldr q20, [x28], #0x10\n" "sub x19, x19, #0x4\n" "ldr q18, [x26], #0x10\n" "cmp x19, #0x4\n" "ldr q17, [x25], #0x10\n" "zip1 v19.4s, v20.4s, v17.4s\n" "ldr q16, [x24], #0x10\n" "zip2 v25.4s, v20.4s, v17.4s\n" "ldr q24, [x23], #0x10\n" "ldr q23, [x22], #0x10\n" "zip1 v17.4s, v18.4s, v16.4s\n" "ldr q22, [x21], #0x10\n" "zip2 v21.4s, v18.4s, v16.4s\n" "ldr q20, [x20], #0x10\n" "zip1 v16.4s, v19.4s, v17.4s\n" ".inst 0x0ea16a12 // bfcvtn v18.4h, v16.4s\n" "zip2 v17.4s, v19.4s, v17.4s\n" "zip1 v16.4s, v25.4s, v21.4s\n" ".inst 0x4ea16a32 // bfcvtn2 v18.8h, v17.4s\n" "str q18, [x27, #0x0]\n" ".inst 0x0ea16a13 // bfcvtn v19.4h, v16.4s\n" "zip2 v16.4s, v25.4s, v21.4s\n" "zip1 v18.4s, v24.4s, v22.4s\n" "zip1 v17.4s, v23.4s, v20.4s\n" ".inst 0x4ea16a13 // bfcvtn2 v19.8h, v16.4s\n" "str q19, [x27, #0x10]\n" "zip1 v16.4s, v18.4s, v17.4s\n" "zip2 v19.4s, v18.4s, v17.4s\n" ".inst 0x0ea16a10 // bfcvtn v16.4h, v16.4s\n" "zip2 v18.4s, v24.4s, v22.4s\n" "zip2 v17.4s, v23.4s, v20.4s\n" ".inst 0x4ea16a70 // bfcvtn2 v16.8h, v19.4s\n" "str q16, [x27, #0x80]\n" "zip1 v16.4s, v18.4s, v17.4s\n" "zip2 v17.4s, v18.4s, v17.4s\n" ".inst 0x0ea16a10 // bfcvtn v16.4h, v16.4s\n" ".inst 0x4ea16a30 // bfcvtn2 v16.8h, v17.4s\n" "str q16, [x27, #0x90]\n" "add x27, x27, #0x20\n" "bge 4b\n" "5:" // Main row loop: width 4 loop: skip "cmp x19, #0x1\n" "blt 7f\n" "6:" // Main row loop: width 1 loop: loop "ldr s18, [x28], #0x4\n" "sub x19, x19, #0x1\n" "ldr s17, [x26], #0x4\n" "cmp x19, #0x1\n" "ldr s16, [x25], #0x4\n" "zip1 v18.4s, v18.4s, v16.4s\n" "ldr s16, [x24], #0x4\n" "ldr s20, [x23], #0x4\n" "zip1 v16.4s, v17.4s, v16.4s\n" "ldr s19, [x22], #0x4\n" "ldr s17, [x21], #0x4\n" "zip1 v16.4s, v18.4s, v16.4s\n" "ldr s18, [x20], #0x4\n" ".inst 0x0ea16a10 // bfcvtn v16.4h, v16.4s\n" "zip1 v17.4s, v20.4s, v17.4s\n" "str d16, [x27, #0x0]\n" "zip1 v16.4s, v19.4s, v18.4s\n" "zip1 v16.4s, v17.4s, v16.4s\n" ".inst 0x0ea16a10 // bfcvtn v16.4h, v16.4s\n" "str d16, [x27, #0x80]\n" "add x27, x27, #0x8\n" "bge 6b\n" "7:" // Main row loop: width 1 loop: skip "add %x[out], %x[out], #0x100\n" "cmp %x[height], #0x8\n" "bge 1b\n" "cbz %x[height], 16f\n" "8:" // Main loop skip "9:" // Tail row loop: Head "mov x28, %x[in]\n" "mov x27, %x[out]\n" "add x26, x28, %x[in_stride]\n" "add x25, x26, %x[in_stride]\n" "add x24, x25, %x[in_stride]\n" "add %x[in], x24, %x[in_stride]\n" "cmp %x[height], #0x3\n" "csel x24, x24, %x[pad_row], GT\n" "csel x25, x25, %x[pad_row], GE\n" "cmp %x[height], #0x1\n" "csel x26, x26, %x[pad_row], GT\n" "sub %x[height], %x[height], #0x4\n" "mov x19, %x[width]\n" "cmp x19, #0x10\n" "blt 11f\n" "10:" // Tail row loop: Column loop "ldr q17, [x28], #0x10\n" "sub x19, x19, #0x10\n" "ldr q20, [x26], #0x10\n" "cmp x19, #0x10\n" "ldr q16, [x25], #0x10\n" "zip1 v19.4s, v17.4s, v16.4s\n" "ldr q18, [x28], #0x10\n" "zip2 v1.4s, v17.4s, v16.4s\n" "ldr q0, [x26], #0x10\n" "ldr q16, [x25], #0x10\n" "zip1 v31.4s, v18.4s, v16.4s\n" "ldr q17, [x28], #0x10\n" "zip2 v30.4s, v18.4s, v16.4s\n" "ldr q29, [x26], #0x10\n" "ldr q16, [x25], #0x10\n" "zip1 v28.4s, v17.4s, v16.4s\n" "ldr q18, [x28], #0x10\n" "zip2 v27.4s, v17.4s, v16.4s\n" "ldr q26, [x26], #0x10\n" "ldr q17, [x25], #0x10\n" "zip1 v25.4s, v18.4s, v17.4s\n" "ldr q16, [x24], #0x10\n" "zip2 v24.4s, v18.4s, v17.4s\n" "ldr q23, [x24], #0x10\n" "zip1 v17.4s, v20.4s, v16.4s\n" "zip2 v22.4s, v20.4s, v16.4s\n" "ldr q21, [x24], #0x10\n" "zip1 v16.4s, v19.4s, v17.4s\n" "zip2 v19.4s, v19.4s, v17.4s\n" "ldr q20, [x24], #0x10\n" ".inst 0x0ea16a11 // bfcvtn v17.4h, v16.4s\n" "zip1 v16.4s, v1.4s, v22.4s\n" ".inst 0x0ea16a12 // bfcvtn v18.4h, v16.4s\n" "zip2 v16.4s, v1.4s, v22.4s\n" ".inst 0x4ea16a71 // bfcvtn2 v17.8h, v19.4s\n" "str q17, [x27, #0x0]\n" ".inst 0x4ea16a12 // bfcvtn2 v18.8h, v16.4s\n" "zip1 v17.4s, v0.4s, v23.4s\n" "str q18, [x27, #0x10]\n" "zip1 v16.4s, v31.4s, v17.4s\n" "zip2 v19.4s, v31.4s, v17.4s\n" ".inst 0x0ea16a12 // bfcvtn v18.4h, v16.4s\n" "zip2 v17.4s, v0.4s, v23.4s\n" "zip1 v16.4s, v30.4s, v17.4s\n" ".inst 0x4ea16a72 // bfcvtn2 v18.8h, v19.4s\n" "str q18, [x27, #0x20]\n" ".inst 0x0ea16a13 // bfcvtn v19.4h, v16.4s\n" "zip2 v18.4s, v30.4s, v17.4s\n" "zip1 v17.4s, v29.4s, v21.4s\n" "zip1 v16.4s, v28.4s, v17.4s\n" ".inst 0x4ea16a53 // bfcvtn2 v19.8h, v18.4s\n" "str q19, [x27, #0x30]\n" ".inst 0x0ea16a13 // bfcvtn v19.4h, v16.4s\n" "zip2 v18.4s, v28.4s, v17.4s\n" "zip2 v17.4s, v29.4s, v21.4s\n" "zip1 v16.4s, v27.4s, v17.4s\n" ".inst 0x4ea16a53 // bfcvtn2 v19.8h, v18.4s\n" "str q19, [x27, #0x40]\n" ".inst 0x0ea16a13 // bfcvtn v19.4h, v16.4s\n" "zip2 v18.4s, v27.4s, v17.4s\n" "zip1 v17.4s, v26.4s, v20.4s\n" "zip1 v16.4s, v25.4s, v17.4s\n" ".inst 0x4ea16a53 // bfcvtn2 v19.8h, v18.4s\n" "str q19, [x27, #0x50]\n" ".inst 0x0ea16a13 // bfcvtn v19.4h, v16.4s\n" "zip2 v17.4s, v25.4s, v17.4s\n" "zip2 v18.4s, v26.4s, v20.4s\n" "zip1 v16.4s, v24.4s, v18.4s\n" ".inst 0x4ea16a33 // bfcvtn2 v19.8h, v17.4s\n" "str q19, [x27, #0x60]\n" ".inst 0x0ea16a11 // bfcvtn v17.4h, v16.4s\n" "zip2 v16.4s, v24.4s, v18.4s\n" ".inst 0x4ea16a11 // bfcvtn2 v17.8h, v16.4s\n" "str q17, [x27, #0x70]\n" "add x27, x27, %x[out_stride]\n" "bge 10b\n" "11:" // Tail row loop: Column loop skip "cmp x19, #0x4\n" "blt 13f\n" "12:" // Tail row loop: width 4 loop: loop "ldr q19, [x28], #0x10\n" "sub x19, x19, #0x4\n" "ldr q18, [x26], #0x10\n" "cmp x19, #0x4\n" "ldr q17, [x25], #0x10\n" "zip1 v21.4s, v19.4s, v17.4s\n" "ldr q16, [x24], #0x10\n" "zip2 v20.4s, v19.4s, v17.4s\n" "zip1 v17.4s, v18.4s, v16.4s\n" "zip2 v19.4s, v18.4s, v16.4s\n" "zip1 v16.4s, v21.4s, v17.4s\n" ".inst 0x0ea16a12 // bfcvtn v18.4h, v16.4s\n" "zip2 v17.4s, v21.4s, v17.4s\n" "zip1 v16.4s, v20.4s, v19.4s\n" ".inst 0x4ea16a32 // bfcvtn2 v18.8h, v17.4s\n" "str q18, [x27, #0x0]\n" ".inst 0x0ea16a11 // bfcvtn v17.4h, v16.4s\n" "zip2 v16.4s, v20.4s, v19.4s\n" ".inst 0x4ea16a11 // bfcvtn2 v17.8h, v16.4s\n" "str q17, [x27, #0x10]\n" "add x27, x27, #0x20\n" "bge 12b\n" "13:" // Tail row loop: width 4 loop: skip "cmp x19, #0x1\n" "blt 15f\n" "14:" // Tail row loop: width 1 loop: loop "ldr s17, [x28], #0x4\n" "sub x19, x19, #0x1\n" "ldr s18, [x26], #0x4\n" "cmp x19, #0x1\n" "ldr s16, [x25], #0x4\n" "zip1 v17.4s, v17.4s, v16.4s\n" "ldr s16, [x24], #0x4\n" "zip1 v16.4s, v18.4s, v16.4s\n" "zip1 v16.4s, v17.4s, v16.4s\n" ".inst 0x0ea16a10 // bfcvtn v16.4h, v16.4s\n" "str d16, [x27, #0x0]\n" "add x27, x27, #0x8\n" "bge 14b\n" "15:" // Tail row loop: width 1 loop: skip "add %x[out], %x[out], #0x80\n" "cmp %x[height], #0x1\n" "bge 9b\n" "16:" // Done : [height] "+&r" (height), [in] "+&r" (in), [out] "+&r" (out) : [in_stride] "r" (in_stride), [out_stride] "r" (out_stride), [pad_row] "r" (pad_row), [width] "r" (width) : "cc", "memory", "v0", "v1", "v2", "v3", "v4", "v5", "v6", "v7", "v8", "v9", "v10", "v11", "v12", "v13", "v14", "v16", "v17", "v18", "v19", "v20", "v21", "v22", "v23", "v24", "v25", "v26", "v27", "v28", "v29", "v30", "v31", "x19", "x20", "x21", "x22", "x23", "x24", "x25", "x26", "x27", "x28" ); } } // anonymous namespace template<> void Transform<16, 4, true, VLType::None>( bfloat16 *out, const float *in, int stride, int x0, int xmax, int k0, int kmax) { a64_transpose_interleave_16_2x4_fp32bf16( out, in + k0 * stride + x0, (xmax-x0), stride * sizeof(float), (kmax-k0) ); } #endif
ARM-software/ComputeLibrary
src/core/NEON/kernels/arm_gemm/transforms/a64_transpose_interleave_16_2x4_fp32bf16.hpp
C++
mit
16,720
--- layout: post microblog: true category: photo date: '2012-12-23T18:57:53' title: "" slug: '12122312185753' location: '' mf-photo: - https://cdn.ericalba.com/blog-images/_ig-photos/photos/201212/0b7c13951c4ac87ab1ef8169dc224318.jpg --- Available seating on Orchard St on Saturday night. <img src="https://cdn.ericalba.com/blog-images/_ig-photos/photos/201212/0b7c13951c4ac87ab1ef8169dc224318.jpg" />
ericalba/ericalba.github.io
_posts/2012-12-23-12122312185753.md
Markdown
mit
406
using System.ComponentModel.DataAnnotations; namespace SolutionForms.Service.Providers.Returns { public class DataSourceReturn { public string Id { get; set; } [Required] public string Name { get; set; } [Required] public string DocumentName { get; set; } } }
Solutionhead/SolutionForms
src/SolutionForms.Service.Providers/Returns/DataSourceReturn.cs
C#
mit
314
#include <SFML/Graphics/RectangleShape.hpp> #include <Ancona/Framework/Serializing/Serializing.hpp> REGISTER_POLYMORPHIC_SERIALIZER_ABSTRACT_BASE(sf::Shape); REGISTER_POLYMORPHIC_SERIALIZER(sf::RectangleShape); using namespace ild; void Serializer<sf::RectangleShape>::Serialize(sf::RectangleShape & shape, Archive & arc){ sf::Vector2f dim; sf::Color color; if (!arc.loading()) { dim = shape.getSize(); color = shape.getFillColor(); } arc(dim, "dimension"); arc(color, "fillColor"); if (arc.loading()) { shape.setSize(dim); shape.setFillColor(color); } } void Serializer<sf::CircleShape>::Serialize(sf::CircleShape & shape, Archive & arc){ float radius; sf::Color color; if (!arc.loading()) { radius = shape.getRadius(); color = shape.getFillColor(); } arc(radius, "radius"); arc(color, "fillColor"); if (arc.loading()) { shape.setRadius(radius); shape.setFillColor(color); } }
tlein/Ancona
Engine/Src/Ancona/Framework/Serializing/SFMLSerializer.cpp
C++
mit
1,021
// This file is automatically generated. package adila.db; /* * ZTE T221 * * DEVICE: P731A20 * MODEL: ZTE Blade AF5 */ final class p731a20_zte20blade20af5 { public static final String DATA = "ZTE|T221|"; }
karim/adila
database/src/main/java/adila/db/p731a20_zte20blade20af5.java
Java
mit
217
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>18 --> 19</title> <link href="./../../assets/style.css" rel="stylesheet"> </head> <body> <h2>You have to be fast</h2> <a href="./20ec84953447231ff68209d24b5cd49f43b1ba69b84604f956cdcde63ad3f00a.html">Teleport</a> <hr> <a href="./../../about.md">About</a> (Spoilers! ) <script src="./../../assets/md5.js"></script> <script> window.currentLevel = 7; </script> <script src="./../../assets/script.js"></script> </body> </html>
simonmysun/praxis
TAIHAO2019/pub/SmallGame/AsFastAsYouCan2/07f6461105e6bb42da196908e482954e9ccc8636b1233b4cb4d23ff0bd7e96c6.html
HTML
mit
550
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>18 --> 19</title> <link href="./../../assets/style.css" rel="stylesheet"> </head> <body> <h2>You have to be fast</h2> <a href="./bf2bb3e7f2937b27e05a7249570d1e10b982dfae17500e3d0cc60eece48d92de.html">Teleport</a> <hr> <a href="./../../about.md">About</a> (Spoilers! ) <script src="./../../assets/md5.js"></script> <script> window.currentLevel = 7; </script> <script src="./../../assets/script.js"></script> </body> </html>
simonmysun/praxis
TAIHAO2019/pub/SmallGame/AsFastAsYouCan2/029d19518913e89cdf449cb3f690bf4d55ddfe9b6913adbe0be44ac8cdad99a9.html
HTML
mit
550
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; using Windows.Devices.Enumeration; using Windows.Foundation; using Windows.Graphics.Imaging; using Windows.Media.Capture; using Windows.Media.MediaProperties; using Windows.Storage; using Windows.Storage.Streams; using Windows.System.Display; using Windows.UI.Xaml.Media.Imaging; using System.IO; using System.Net.Http.Formatting; using Newtonsoft.Json; using Windows.Graphics.Display; namespace Better_Kids.Model { class Key_Manager { // Bing Image public const string bing_url = "https://bingapis.azure-api.net/api/v5/images/search"; public const string bing_key = "d9c59f6186204b4b8c12d4c26e6e84e4"; public const int bing_cBuffer = 20; // Vision public const string vision_url = "https://api.projectoxford.ai/vision/v1.0/describe"; public const string vision_key = "bffac94c45ce4b8ba345446223b2fc6c"; // Emotion public const string emotion_url = "https://api.projectoxford.ai/emotion/v1.0/recognize"; public const string emotion_key = "b1c3c671c6a545459048cf19f0a131ec"; public const double emotion_threshold = .6; // Linguistics //const string text_url = "https://api.projectoxford.ai/linguistics/v1.0/analyze"; //const string subscription_key2 = "930485c13ba34038852ed9fddcc375a9"; //const string text_uuid = "4fa79af1-f22c-408d-98bb-b7d7aeef7f04"; // Youdao Translation public const string youdao_url = "http://fanyi.youdao.com/openapi.do"; public const string youdao_key = "1460273110"; public const string youdao_keyfrom = "Better-Kids"; } class Oxford_GetImage { private class JSON_TMP { public class JSON_TMP2 { public string thumbnailUrl { get; set; } } public JSON_TMP2[] value { get; set; } } private static string[] emotions = { "anger", "contempt", "disgust", "fear", "happiness", "neutral", "sadness", "surprise" }; private static List<List<string>> emotionurls = new List<List<string>>(); public static async Task RetrieveUrls() { List<HttpClient> clients = new List<HttpClient>(); List<Task<HttpResponseMessage>> tasks = new List<Task<HttpResponseMessage>>(); foreach (var emo in emotions) { var client = new HttpClient(); client.DefaultRequestHeaders.Add("Ocp-Apim-Subscription-Key", $"{Key_Manager.bing_key}"); clients.Add(client); var type = emo + " face"; emotionurls.Add(new List<string>()); tasks.Add(client.GetAsync($"{Key_Manager.bing_url}?q={type}&count={Key_Manager.bing_cBuffer}")); // Avoid over 5 request in a second await Task.Delay(1000); } try { int i = 0; foreach (var task in tasks) { var response = await task; response.EnsureSuccessStatusCode(); var result = await response.Content.ReadAsAsync<JSON_TMP>(); foreach (var str in result.value) emotionurls[i].Add(str.thumbnailUrl); i++; } } catch (Exception e) { throw new Exception("Retrieve Emotion Images Url Failed: " + e.Message); } foreach (var client in clients) client.Dispose(); } public static string GetImageUrl(string type) { Random rand = new Random(DateTime.Now.Millisecond + DateTime.Now.Minute); for (int i = 0; i < emotions.Count(); i++) if (emotions[i] == type) return emotionurls[i][rand.Next(emotionurls[i].Count)]; return null; } } class Emotion { public static BitmapImage GetImageFromWeb(string type) { try { return new BitmapImage(new Uri(Oxford_GetImage.GetImageUrl(type))); } catch { return null; } } } class CameraView { private MediaCapture _mediaCapture; private bool _isInitialized; private readonly DisplayRequest _displayRequest = new DisplayRequest(); public async Task<MediaCapture> InitializeCameraAsync(bool is_front_cam) { Debug.WriteLine("InitializeCameraAsync"); DisplayInformation.AutoRotationPreferences = DisplayOrientations.Landscape; // Get available devices for capturing pictures var allVideoDevices = await DeviceInformation.FindAllAsync(DeviceClass.VideoCapture); DeviceInformation desiredDevice; // Get the desired camera by panel if (is_front_cam) { desiredDevice = allVideoDevices.FirstOrDefault( x => x.EnclosureLocation != null && x.EnclosureLocation.Panel == Panel.Front); } else { desiredDevice = allVideoDevices.FirstOrDefault( x => x.EnclosureLocation != null && x.EnclosureLocation.Panel == Panel.Back); } // If there is no device mounted on the desired panel, return the first device found var cameraDevice = desiredDevice ?? allVideoDevices.FirstOrDefault(); if (cameraDevice == null) { throw new Exception("找不到相机"); } // Create MediaCapture and its settings if (_mediaCapture == null) { _mediaCapture = new MediaCapture(); _mediaCapture.Failed += MediaCapture_Failed; var settings = new MediaCaptureInitializationSettings { VideoDeviceId = cameraDevice.Id }; // Initialize MediaCapture try { await _mediaCapture.InitializeAsync(settings); _isInitialized = true; } catch (UnauthorizedAccessException) { throw new Exception("请在【设置-隐私】页面打开相机权限"); } } else _isInitialized = true; // If initialization succeeded, start the preview if (_isInitialized) { //// Figure out where the camera is located //if (cameraDevice.EnclosureLocation == null || cameraDevice.EnclosureLocation.Panel == Windows.Devices.Enumeration.Panel.Unknown) //{ // // No information on the location of the camera, assume it's an external camera, not integrated on the device // _externalCamera = true; //} //else //{ // // Camera is fixed on the device // _externalCamera = false; // // Only mirror the preview if the camera is on the front panel // _mirroringPreview = (cameraDevice.EnclosureLocation.Panel == Windows.Devices.Enumeration.Panel.Front); //} // Prevent the device from sleeping while the preview is running _displayRequest.RequestActive(); // Set the preview source in the UI and mirror it if necessary return _mediaCapture; // Remark: always true //PreviewControl.FlowDirection = _mirroringPreview ? FlowDirection.RightToLeft : FlowDirection.LeftToRight; } else return null; } public async Task UninitializeCameraAsync() { DisplayInformation.AutoRotationPreferences = DisplayOrientations.None; await _mediaCapture.StopPreviewAsync(); _mediaCapture.Failed -= MediaCapture_Failed; _mediaCapture.Dispose(); _mediaCapture = null; _displayRequest.RequestRelease(); _isInitialized = false; } public async Task Start() { // Start the preview await _mediaCapture.StartPreviewAsync(); } private void MediaCapture_Failed(MediaCapture sender, MediaCaptureFailedEventArgs errorEventArgs) { Debug.WriteLine("Camera Failed."); } private class JSON_TMP { public class Scores { public double angle { get; set; } public double contempt { get; set; } public double disgust { get; set; } public double fear { get; set; } public double happiness { get; set; } public double neutral { get; set; } public double sadness { get; set; } public double suprise { get; set; } } public Scores scores { get; set; } public KeyValuePair<string, double> get() { List<KeyValuePair<string, double>> array = new List<KeyValuePair<string, double>>(); array.Add(new KeyValuePair<string, double>("angle", scores.angle)); array.Add(new KeyValuePair<string, double>("contempt", scores.contempt)); array.Add(new KeyValuePair<string, double>("disgust", scores.disgust)); array.Add(new KeyValuePair<string, double>("fear", scores.fear)); array.Add(new KeyValuePair<string, double>("happiness", scores.happiness)); array.Add(new KeyValuePair<string, double>("neutral", scores.neutral)); array.Add(new KeyValuePair<string, double>("sadness", scores.sadness)); array.Add(new KeyValuePair<string, double>("suprise", scores.suprise)); KeyValuePair<string, double> ret = array[0]; foreach (var i in array) { if (i.Value > ret.Value) ret = i; } return ret; } } public async Task<Tuple<string, double>> Click() { var stream = new InMemoryRandomAccessStream(); await _mediaCapture.CapturePhotoToStreamAsync(ImageEncodingProperties.CreateJpeg(), stream); using (var client = new HttpClient()) using (var inputStream = stream) { var decoder = await BitmapDecoder.CreateAsync(inputStream); var outputStream = new InMemoryRandomAccessStream(); var encoder = await BitmapEncoder.CreateForTranscodingAsync(outputStream, decoder); await encoder.FlushAsync(); client.DefaultRequestHeaders.Add("Ocp-Apim-Subscription-Key", $"{Key_Manager.emotion_key}"); byte[] buffer = new byte[outputStream.AsStream().Length]; outputStream.AsStream().Read(buffer, 0, buffer.Length); var content = new ByteArrayContent(buffer); content.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/octet-stream"); var http_result = await client.PostAsync($"{Key_Manager.emotion_url}", content); try { http_result.EnsureSuccessStatusCode(); var json_result = await http_result.Content.ReadAsAsync<JSON_TMP[]>(); var result = json_result[0].get(); if (result.Value > Key_Manager.emotion_threshold) return new Tuple<string, double>(result.Key, result.Value); else return null; } catch (Exception e) { throw new Exception("Emotion API Http Request Failed: " + e.Message); } } } //private class JSON_TMP_2 //{ // public class Desc // { // public class Capt // { // public string text { get; set; } // } // public Capt[] catptions { get; set; } // } // public Desc description { get; set; } //} public class JSON_TMP_2 { public class Description { public class Caption { public string text { get; set; } public double confidence { get; set; } } public Caption[] captions { get; set; } } public Description description { get; set; } } //private class JSON_TMP_3 //{ // public string[][] result { get; set; } //} private class JSON_TMP_4 { public string[] translation { get; set; } } public async Task<Tuple<string, string>> Click2() { var stream = new InMemoryRandomAccessStream(); await _mediaCapture.CapturePhotoToStreamAsync(ImageEncodingProperties.CreateJpeg(), stream); string desc; using (var client = new HttpClient()) using (var inputStream = stream) { var decoder = await BitmapDecoder.CreateAsync(inputStream); var outputStream = new InMemoryRandomAccessStream(); var encoder = await BitmapEncoder.CreateForTranscodingAsync(outputStream, decoder); await encoder.FlushAsync(); client.DefaultRequestHeaders.Add("Ocp-Apim-Subscription-Key", $"{Key_Manager.vision_key}"); byte[] buffer = new byte[outputStream.AsStream().Length]; outputStream.AsStream().Read(buffer, 0, buffer.Length); var content = new ByteArrayContent(buffer); content.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/octet-stream"); var http_result = await client.PostAsync($"{Key_Manager.vision_url}", content); try { http_result.EnsureSuccessStatusCode(); var json_result = await http_result.Content.ReadAsAsync<JSON_TMP_2>(); desc = json_result.description.captions[0].text; } catch (Exception e) { throw new Exception("Vision API Http Request Failed: " + e.Message); } } //string key_entity = ""; //using (var client = new HttpClient()) //{ // client.DefaultRequestHeaders.Add("Ocp-Apim-Subscription-Key", $"{subscription_key2}"); // var content = new StringContent($"{{\"language\":\"en\",\"analyzerIds\":[\"{text_uuid}\"],\"text\":\"{desc}\"}}"); // content.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json"); // var http_result = await client.PostAsync($"{text_url}", content); // try // { // http_result.EnsureSuccessStatusCode(); // var json_result = await http_result.Content.ReadAsAsync<JSON_TMP_3[]>(); // var desc_cpy = desc.Split(new char[] { ' ', ',', '.' }); // int index = 0; // for (var i = 0; i < json_result[0].result.Count(); i++) // for (var j = 0; j < json_result[0].result[i].Count(); j++) // if (json_result[0].result[i][j].Equals("NN")) // { // key_entity = desc_cpy[index]; // // Find the first entity // break; // } // else // index++; // } // catch (Exception e) // { // throw new Exception("Linguistics API Http Request Failed: " + e.Message); // } //} //if (key_entity == "") // return null; using (var client = new HttpClient()) { // Use the whole line var key_entity = desc; var http_result = await client.GetAsync($"{Key_Manager.youdao_url}?keyfrom={Key_Manager.youdao_keyfrom}" + $"&key={Key_Manager.youdao_key}&type=data&doctype=json&version=1.1&q={key_entity}"); try { http_result.EnsureSuccessStatusCode(); var json_result = await http_result.Content.ReadAsAsync<JSON_TMP_4>(); return new Tuple<string, string>(key_entity, json_result.translation[0]); } catch (Exception e) { throw new Exception("Translation API Http Request Failed: " + e.Message); } } } } }
BOT-Man-JL/Better-Kids
Better Kids/Model/Funciton.cs
C#
mit
13,752
// relaxjs example #2 - part of relaxjs v 0.1.4 // by Michele Ursino ///<reference path='typings/node/node.d.ts' /> ///<reference path='typings/q/q.d.ts' /> ///<reference path='/usr/lib/node_modules/relaxjs/dist/relaxjs.d.ts' /> var relaxjs = require('relaxjs'); var marystewart = { name: 'mary-stewart', outFormat: 'application/json', onGet: function (query, respond) { this.data = { firstName: 'Mary', lastName: 'Stewart' }; respond.ok(); }, resources: [ { name: 'address', outFormat: 'application/json', data: { address: '101 John St. San Francisco CA. ' } } ] }; var joedoe = { name: 'joe-doe', outFormat: 'application/json', data: { firstName: 'Joe', lastName: 'Doe' }, resources: [ { name: 'address', outFormat: 'application/json', data: { address: '458 5th Avenue New York NY. ' } } ] }; var johnsmith = { name: 'john-smith', outFormat: 'application/json', onGet: function (q, respond) { this.data = { firstName: 'John', lastName: 'Smith', address: this.resources.address[0].data, phone: this.resources.phone[0].data }; respond.ok(); }, resources: [ { name: 'address', outFormat: 'application/json', data: { value: '33 Pearl St. Los Angeles CA.' } }, { name: 'phone', outFormat: 'application/json', data: { value: '123.456.7890' } }, { name: 'phone', outFormat: 'application/json', data: { value: '456.456.7890' } } ] }; var usersResource = { name: 'users', outFormat: 'application/json', onGet: function (query, respond) { this.data = { title: 'Users Collection Example', count: this.childrenCount() }; respond.ok(); }, resources: [ marystewart, joedoe, johnsmith ] }; // Create the application by assembling the resources var mysite = relaxjs.site('Example #2'); // Create the application by assembling the resources mysite.add(usersResource); // Get the application server for the site var appSrv = mysite.serve(); // And serve it appSrv.listen(3000);
micurs/relax.js
examples/sample02/sample02.js
JavaScript
mit
2,066
package edu.ucsb.cs56.w15.drawings.jdogg5566.advanced; import java.awt.geom.GeneralPath; // combinations of lines and curves import java.awt.geom.AffineTransform; // translation, rotation, scale import java.awt.Shape; // general class for shapes // all imports below this line needed if you are implementing Shape import java.awt.geom.Point2D; import java.awt.geom.Line2D; import java.awt.geom.Rectangle2D; import java.awt.Rectangle; import java.awt.geom.PathIterator; import java.awt.geom.AffineTransform; import edu.ucsb.cs56.w15.drawings.utilities.ShapeTransforms; import edu.ucsb.cs56.w15.drawings.utilities.GeneralPathWrapper; /** A House @author Phill Conrad @version for CS56, W11, UCSB, 02/23/2011 */ public class HouseWithWindows extends House implements Shape { /** * Constructor for objects of class CoffeeCup */ public HouseWithWindows(double x, double y, double width, double height) { // construct the basic house shell super(x,y,width,height); // get the GeneralPath that we are going to append stuff to GeneralPath gp = this.get(); // Make three windows, spaced like this, where w=width/10.0; // | +--+ +--+ +--+ | // | | | | | | | | // | +--+ +--+ +--+ | // |w 2w w 2w w w2 w| // // The top of window will be at y + 0.5*height and the // height of the window is 0.25height; double w = 0.10 * width; double winTop = y + 0.5 * height; double winHt = 0.25 * height; Rectangle2D.Double win1 = new Rectangle2D.Double(x + w, winTop, 2.0 * w, winHt); Rectangle2D.Double win2 = new Rectangle2D.Double(x + 4.0*w, winTop, 2.0 * w, winHt); Rectangle2D.Double win3 = new Rectangle2D.Double(x + 7.0*w, winTop, 2.0 * w, winHt); // add the windows to the house // Look up the meaning of the second parameter of append // (Hint--is a method of "GeneralPath") GeneralPath wholeHouse = this.get(); wholeHouse.append(win1, false); wholeHouse.append(win2, false); wholeHouse.append(win3, false); } }
UCSB-CS56-W15/W15-lab04
src/edu/ucsb/cs56/w15/drawings/jdogg5566/advanced/HouseWithWindows.java
Java
mit
2,030
.editable-popover-value > div { cursor : pointer; display : inline-block; } .editable-popover-container .popover { max-width : none !important; margin-bottom : 20px; } .editable-popover-contents { width : 400px; }
austinsand/journalist
client/ui/components/editable_popover/editable_popover.css
CSS
mit
232
import { invariant, missingArgument } from "@/utilities" export default class Gallery { constructor(data) { invariant(data, missingArgument({ data })) this.id = data?.id this.galleryId = data?.id this.title = (data?.title)?._content this.description = (data?.description)?._content this.owner = data?.owner this.primary = data?.primary_photo_id this.url = data?.url this.photoCount = data?.count_photos this.videoCount = data?.count_videos this.commentCount = data?.count_comments this.views = data?.count_views this.created = new Date(parseInt((data?.date_create || 0) * 1000, 10)) this.updated = new Date(parseInt((data?.date_update || 0) * 1000, 10)) } }
Saeris/Flickr-Wormhole
src/models/gallery.js
JavaScript
mit
719
#pragma once #include "GameAssets.h" // ó‘Ô‚ÌŠî’êƒNƒ‰ƒX class State { protected: GameAssets* mAssets; int64_t mEnterTime; public: State( GameAssets* assets ) : mAssets( assets ) { mEnterTime = mAssets->getFrame().timestamp(); } virtual State* update() { return this; } protected: // Žw‚̐”‚©‚çAƒ|[ƒY‚ðŒˆ‚ß‚é JyankenPose fingerCountToPose( Leap::Hand hand ) { // L‚тĂ¢‚éŽw‚̐”‚𐔂¦‚é auto count = std::count_if( hand.fingers().begin(), hand.fingers().end(), [](const Leap::Finger& finger) { return finger.isExtended(); } ); if ( count <= 1 ) { return JyankenPose::Gu; } else if ( count <= 3 ) { return JyankenPose::Choki; } return JyankenPose::Pa; } }; // ƒAƒCƒhƒ‹(‘Ò‹@)ó‘Ô class IdleState : public State { public: IdleState( GameAssets* assets ) : State( assets ) { } State* update(); }; // u‚¶‚á‚ñ‚¯‚ñv‚ÌŠ|‚¯º‚ðs‚¤ó‘Ô class JyankenState : public State { public: JyankenState( GameAssets* assets ) : State( assets ) { } State* update(); }; // u‚Û‚ñv‚ÌŠ|‚¯º‚ƃ|[ƒY‚ÌŒˆ’ès‚¤ó‘Ô class PonState : public State { JyankenPose mPlayer; JyankenPose mComputer; std::list<float> mTransrates; public: PonState( GameAssets* assets ) : State( assets ) { // ƒRƒ“ƒsƒ…[ƒ^[‚̃|[ƒY‚ðŒˆ‚ß‚é mComputer = (JyankenPose)(Rand::randUint() % 3); } State* update(); }; // Œ‹‰Ê‚Ì•\ަ‚ðs‚¤ó‘Ô class ResultState : public State { JyankenPose mPlayer; JyankenPose mComputer; public: ResultState( GameAssets* assets, JyankenPose player, JyankenPose computer ) : State( assets ) , mPlayer( player ) , mComputer( computer ) { } State* update(); }; State* IdleState::update() { mAssets->setComputerPose( JyankenPose::Gu ); mAssets->setText( L"Žè‚ðo‚µ‚Ä‚Ë" ); // Žè‚ðŒŸo‚µ‚½‚çAŽŸ‚̏ó‘Ô‚Ö‘JˆÚ‚·‚é auto frame = mAssets->getFrame(); if ( frame.hands().count() == 0 ) { return this; } else { return new JyankenState( mAssets ); } } State* JyankenState::update() { auto hand = mAssets->getFrame().hands()[0]; if ( hand.isValid() ) { mAssets->setPlayerPose( fingerCountToPose( hand ) ); } mAssets->setComputerPose( JyankenPose::Gu ); mAssets->setText( L"‚¶‚á‚ñ‚¯‚ñ" ); // ˆê’莞ŠÔ‚ÅŽŸ‚̏ó‘Ô‚Ö‘JˆÚ‚·‚é if ( (mAssets->getFrame().timestamp() - mEnterTime) < (2 * 1000 * 1000) ) { return this; } else { return new PonState( mAssets ); } } State* PonState::update() { mAssets->setComputerPose( mComputer ); mAssets->setText( L"‚Û‚ñ" ); // Žè‚ªŒ©‚‚©‚Á‚½‚çA‚»‚ê‚ðƒ|[ƒY‚É‚·‚é auto hand = mAssets->getFrame().hands()[0]; if ( hand.isValid() ) { mPlayer = fingerCountToPose( hand ); mAssets->setPlayerPose( mPlayer ); return new ResultState( mAssets, mPlayer ,mComputer ); } // ˆê’莞ŠÔƒ|[ƒY‚ªŒˆ‚Ü‚ç‚È‚©‚Á‚½‚çAƒAƒCƒhƒ‹ó‘Ô‚É‚à‚Ç‚é if ( (mAssets->getFrame().timestamp() - mEnterTime) > (5 * 1000 * 1000) ) { return new IdleState( mAssets ); } return this; } State* ResultState::update() { // Ÿ‚¿•‰‚¯‚ð”»’è‚·‚é mAssets->setComputerPose( mComputer ); mAssets->setPlayerPose( mPlayer ); if ( mComputer == mPlayer ) { mAssets->setText( L"‚ ‚¢‚±" ); } else if ( (mComputer == JyankenPose::Gu) && (mPlayer == JyankenPose::Pa) ) { mAssets->setText( L"‚ ‚È‚½‚̏Ÿ‚¿" ); } else if ( (mComputer == JyankenPose::Pa) && (mPlayer == JyankenPose::Choki) ) { mAssets->setText( L"‚ ‚È‚½‚̏Ÿ‚¿" ); } else if ( (mComputer == JyankenPose::Choki) && (mPlayer == JyankenPose::Gu) ) { mAssets->setText( L"‚ ‚È‚½‚̏Ÿ‚¿" ); } else { mAssets->setText( L"‚ ‚È‚½‚Ì•‰‚¯" ); } // ˆê’莞ŠÔ‚ŃAƒCƒhƒ‹ó‘Ô‚É–ß‚é if ( (mAssets->getFrame().timestamp() - mEnterTime) < (2 * 1000 * 1000) ) { return this; } else { return new IdleState( mAssets ); } } // ó‘Ô‘JˆÚ‚̏ˆ— class StateMachine { State* state; public: StateMachine() : state( 0 ) { } void setup( GameAssets* assets ) { state = new IdleState( assets ); } void update() { if ( state != 0 ) { auto nextState = state->update(); if ( state != nextState ) { delete state; state = nextState; } } } };
LeapBookCpp/LeapBookCpp
source/source/Jyanken/Jyanken_01/include/StateMachine.h
C
mit
4,227
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ca" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Antimatter</source> <translation>A prop de Antimatter</translation> </message> <message> <location line="+39"/> <source>&lt;b&gt;Antimatter&lt;/b&gt; version</source> <translation type="unfinished"/> </message> <message> <location line="+57"/> <source> This is experimental software. Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young ([email protected]) and UPnP software written by Thomas Bernard.</source> <translation type="unfinished"/> </message> <message> <location filename="../aboutdialog.cpp" line="+14"/> <source>Copyright</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>The Antimatter developers</source> <translation type="unfinished"/> </message> </context> <context> <name>AddressBookPage</name> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>Address Book</source> <translation>Llibreta d&apos;adreçes</translation> </message> <message> <location line="+19"/> <source>Double-click to edit address or label</source> <translation type="unfinished"/> </message> <message> <location line="+27"/> <source>Create a new address</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Copy the currently selected address to the system clipboard</source> <translation>Copia la selecció actual al porta-retalls del sistema</translation> </message> <message> <location line="-11"/> <source>&amp;New Address</source> <translation type="unfinished"/> </message> <message> <location filename="../addressbookpage.cpp" line="+63"/> <source>These are your Antimatter addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>&amp;Copy Address</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Show &amp;QR Code</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Sign a message to prove you own a Antimatter address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Delete the currently selected address from the list</source> <translation type="unfinished"/> </message> <message> <location line="+27"/> <source>Export the data in the current tab to a file</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Export</source> <translation type="unfinished"/> </message> <message> <location line="-44"/> <source>Verify a message to ensure it was signed with a specified Antimatter address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Verify Message</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>&amp;Delete</source> <translation type="unfinished"/> </message> <message> <location filename="../addressbookpage.cpp" line="-5"/> <source>These are your Antimatter addresses for sending payments. Always check the amount and the receiving address before sending coins.</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Copy &amp;Label</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>&amp;Edit</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Send &amp;Coins</source> <translation type="unfinished"/> </message> <message> <location line="+260"/> <source>Export Address Book Data</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Error exporting</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation type="unfinished"/> </message> </context> <context> <name>AddressTableModel</name> <message> <location filename="../addresstablemodel.cpp" line="+144"/> <source>Label</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Address</source> <translation type="unfinished"/> </message> <message> <location line="+36"/> <source>(no label)</source> <translation type="unfinished"/> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <location filename="../forms/askpassphrasedialog.ui" line="+26"/> <source>Passphrase Dialog</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>Enter passphrase</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>New passphrase</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Repeat new passphrase</source> <translation type="unfinished"/> </message> <message> <location filename="../askpassphrasedialog.cpp" line="+33"/> <source>Enter the new passphrase to the wallet.&lt;br/&gt;Please use a passphrase of &lt;b&gt;10 or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Encrypt wallet</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Unlock wallet</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Decrypt wallet</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Change passphrase</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Enter the old and new passphrase to the wallet.</source> <translation type="unfinished"/> </message> <message> <location line="+46"/> <source>Confirm wallet encryption</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Warning: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR ANTIMATTERS&lt;/b&gt;!</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Are you sure you wish to encrypt your wallet?</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source> <translation type="unfinished"/> </message> <message> <location line="+100"/> <location line="+24"/> <source>Warning: The Caps Lock key is on!</source> <translation type="unfinished"/> </message> <message> <location line="-130"/> <location line="+58"/> <source>Wallet encrypted</source> <translation type="unfinished"/> </message> <message> <location line="-56"/> <source>Antimatter will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your antimatters from being stolen by malware infecting your computer.</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <location line="+7"/> <location line="+42"/> <location line="+6"/> <source>Wallet encryption failed</source> <translation type="unfinished"/> </message> <message> <location line="-54"/> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <location line="+48"/> <source>The supplied passphrases do not match.</source> <translation type="unfinished"/> </message> <message> <location line="-37"/> <source>Wallet unlock failed</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <location line="+11"/> <location line="+19"/> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation type="unfinished"/> </message> <message> <location line="-20"/> <source>Wallet decryption failed</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Wallet passphrase was successfully changed.</source> <translation type="unfinished"/> </message> </context> <context> <name>BitcoinGUI</name> <message> <location filename="../bitcoingui.cpp" line="+233"/> <source>Sign &amp;message...</source> <translation type="unfinished"/> </message> <message> <location line="+280"/> <source>Synchronizing with network...</source> <translation type="unfinished"/> </message> <message> <location line="-349"/> <source>&amp;Overview</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show general overview of wallet</source> <translation type="unfinished"/> </message> <message> <location line="+20"/> <source>&amp;Transactions</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Browse transaction history</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Edit the list of stored addresses and labels</source> <translation type="unfinished"/> </message> <message> <location line="-14"/> <source>Show the list of addresses for receiving payments</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>E&amp;xit</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Quit application</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Show information about Antimatter</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>About &amp;Qt</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show information about Qt</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>&amp;Options...</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>&amp;Encrypt Wallet...</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Backup Wallet...</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>&amp;Change Passphrase...</source> <translation type="unfinished"/> </message> <message> <location line="+285"/> <source>Importing blocks from disk...</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Reindexing blocks on disk...</source> <translation type="unfinished"/> </message> <message> <location line="-347"/> <source>Send coins to a Antimatter address</source> <translation type="unfinished"/> </message> <message> <location line="+49"/> <source>Modify configuration options for Antimatter</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Backup wallet to another location</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Change the passphrase used for wallet encryption</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>&amp;Debug window</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Open debugging and diagnostic console</source> <translation type="unfinished"/> </message> <message> <location line="-4"/> <source>&amp;Verify message...</source> <translation type="unfinished"/> </message> <message> <location line="-165"/> <location line="+530"/> <source>Antimatter</source> <translation type="unfinished"/> </message> <message> <location line="-530"/> <source>Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+101"/> <source>&amp;Send</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Receive</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>&amp;Addresses</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>&amp;About Antimatter</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>&amp;Show / Hide</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show or hide the main Window</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Encrypt the private keys that belong to your wallet</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Sign messages with your Antimatter addresses to prove you own them</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Verify messages to ensure they were signed with specified Antimatter addresses</source> <translation type="unfinished"/> </message> <message> <location line="+28"/> <source>&amp;File</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Settings</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>&amp;Help</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Tabs toolbar</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <location line="+10"/> <source>[testnet]</source> <translation type="unfinished"/> </message> <message> <location line="+47"/> <source>Antimatter client</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+141"/> <source>%n active connection(s) to Antimatter network</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+22"/> <source>No block source available...</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Processed %1 of %2 (estimated) blocks of transaction history.</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Processed %1 blocks of transaction history.</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+20"/> <source>%n hour(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n day(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n week(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+4"/> <source>%1 behind</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Last received block was generated %1 ago.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Transactions after this will not yet be visible.</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>Error</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Information</source> <translation type="unfinished"/> </message> <message> <location line="+70"/> <source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source> <translation type="unfinished"/> </message> <message> <location line="-140"/> <source>Up to date</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Catching up...</source> <translation type="unfinished"/> </message> <message> <location line="+113"/> <source>Confirm transaction fee</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Sent transaction</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Incoming transaction</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation type="unfinished"/> </message> <message> <location line="+33"/> <location line="+23"/> <source>URI handling</source> <translation type="unfinished"/> </message> <message> <location line="-23"/> <location line="+23"/> <source>URI can not be parsed! This can be caused by an invalid Antimatter address or malformed URI parameters.</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt;</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;locked&lt;/b&gt;</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoin.cpp" line="+111"/> <source>A fatal error occurred. Antimatter can no longer continue safely and will quit.</source> <translation type="unfinished"/> </message> </context> <context> <name>ClientModel</name> <message> <location filename="../clientmodel.cpp" line="+104"/> <source>Network Alert</source> <translation type="unfinished"/> </message> </context> <context> <name>EditAddressDialog</name> <message> <location filename="../forms/editaddressdialog.ui" line="+14"/> <source>Edit Address</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>&amp;Label</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>The label associated with this address book entry</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Address</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>The address associated with this address book entry. This can only be modified for sending addresses.</source> <translation type="unfinished"/> </message> <message> <location filename="../editaddressdialog.cpp" line="+21"/> <source>New receiving address</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>New sending address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Edit receiving address</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Edit sending address</source> <translation type="unfinished"/> </message> <message> <location line="+76"/> <source>The entered address &quot;%1&quot; is already in the address book.</source> <translation type="unfinished"/> </message> <message> <location line="-5"/> <source>The entered address &quot;%1&quot; is not a valid Antimatter address.</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Could not unlock wallet.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>New key generation failed.</source> <translation type="unfinished"/> </message> </context> <context> <name>GUIUtil::HelpMessageBox</name> <message> <location filename="../guiutil.cpp" line="+424"/> <location line="+12"/> <source>Antimatter-Qt</source> <translation type="unfinished"/> </message> <message> <location line="-12"/> <source>version</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Usage:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>command-line options</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>UI options</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Set language, for example &quot;de_DE&quot; (default: system locale)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Start minimized</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show splash screen on startup (default: 1)</source> <translation type="unfinished"/> </message> </context> <context> <name>OptionsDialog</name> <message> <location filename="../forms/optionsdialog.ui" line="+14"/> <source>Options</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>&amp;Main</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB.</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>Pay transaction &amp;fee</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Automatically start Antimatter after logging in to the system.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Start Antimatter on system login</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>Reset all client options to default.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Reset Options</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>&amp;Network</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Automatically open the Antimatter client port on the router. This only works when your router supports UPnP and it is enabled.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Map port using &amp;UPnP</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Connect to the Antimatter network through a SOCKS proxy (e.g. when connecting through Tor).</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Connect through SOCKS proxy:</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Proxy &amp;IP:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>IP address of the proxy (e.g. 127.0.0.1)</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Port:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Port of the proxy (e.g. 9050)</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>SOCKS &amp;Version:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>SOCKS version of the proxy (e.g. 5)</source> <translation type="unfinished"/> </message> <message> <location line="+36"/> <source>&amp;Window</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Show only a tray icon after minimizing the window.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Minimize to the tray instead of the taskbar</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>M&amp;inimize on close</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>&amp;Display</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>User Interface &amp;language:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>The user interface language can be set here. This setting will take effect after restarting Antimatter.</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>&amp;Unit to show amounts in:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Choose the default subdivision unit to show in the interface and when sending coins.</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Whether to show Antimatter addresses in the transaction list or not.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Display addresses in transaction list</source> <translation type="unfinished"/> </message> <message> <location line="+71"/> <source>&amp;OK</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Cancel</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>&amp;Apply</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="+53"/> <source>default</source> <translation type="unfinished"/> </message> <message> <location line="+130"/> <source>Confirm options reset</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Some settings may require a client restart to take effect.</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Do you want to proceed?</source> <translation type="unfinished"/> </message> <message> <location line="+42"/> <location line="+9"/> <source>Warning</source> <translation type="unfinished"/> </message> <message> <location line="-9"/> <location line="+9"/> <source>This setting will take effect after restarting Antimatter.</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>The supplied proxy address is invalid.</source> <translation type="unfinished"/> </message> </context> <context> <name>OverviewPage</name> <message> <location filename="../forms/overviewpage.ui" line="+14"/> <source>Form</source> <translation type="unfinished"/> </message> <message> <location line="+50"/> <location line="+166"/> <source>The displayed information may be out of date. Your wallet automatically synchronizes with the Antimatter network after a connection is established, but this process has not completed yet.</source> <translation type="unfinished"/> </message> <message> <location line="-124"/> <source>Balance:</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>Unconfirmed:</source> <translation type="unfinished"/> </message> <message> <location line="-78"/> <source>Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+107"/> <source>Immature:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Mined balance that has not yet matured</source> <translation type="unfinished"/> </message> <message> <location line="+46"/> <source>&lt;b&gt;Recent transactions&lt;/b&gt;</source> <translation type="unfinished"/> </message> <message> <location line="-101"/> <source>Your current balance</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source> <translation type="unfinished"/> </message> <message> <location filename="../overviewpage.cpp" line="+116"/> <location line="+1"/> <source>out of sync</source> <translation type="unfinished"/> </message> </context> <context> <name>PaymentServer</name> <message> <location filename="../paymentserver.cpp" line="+107"/> <source>Cannot start antimatter: click-to-pay handler</source> <translation type="unfinished"/> </message> </context> <context> <name>QRCodeDialog</name> <message> <location filename="../forms/qrcodedialog.ui" line="+14"/> <source>QR Code Dialog</source> <translation type="unfinished"/> </message> <message> <location line="+59"/> <source>Request Payment</source> <translation type="unfinished"/> </message> <message> <location line="+56"/> <source>Amount:</source> <translation type="unfinished"/> </message> <message> <location line="-44"/> <source>Label:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Message:</source> <translation type="unfinished"/> </message> <message> <location line="+71"/> <source>&amp;Save As...</source> <translation type="unfinished"/> </message> <message> <location filename="../qrcodedialog.cpp" line="+62"/> <source>Error encoding URI into QR Code.</source> <translation type="unfinished"/> </message> <message> <location line="+40"/> <source>The entered amount is invalid, please check.</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Resulting URI too long, try to reduce the text for label / message.</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Save QR Code</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>PNG Images (*.png)</source> <translation type="unfinished"/> </message> </context> <context> <name>RPCConsole</name> <message> <location filename="../forms/rpcconsole.ui" line="+46"/> <source>Client name</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <location line="+23"/> <location line="+26"/> <location line="+23"/> <location line="+23"/> <location line="+36"/> <location line="+53"/> <location line="+23"/> <location line="+23"/> <location filename="../rpcconsole.cpp" line="+339"/> <source>N/A</source> <translation type="unfinished"/> </message> <message> <location line="-217"/> <source>Client version</source> <translation type="unfinished"/> </message> <message> <location line="-45"/> <source>&amp;Information</source> <translation type="unfinished"/> </message> <message> <location line="+68"/> <source>Using OpenSSL version</source> <translation type="unfinished"/> </message> <message> <location line="+49"/> <source>Startup time</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>Network</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Number of connections</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>On testnet</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Block chain</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Current number of blocks</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Estimated total blocks</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Last block time</source> <translation type="unfinished"/> </message> <message> <location line="+52"/> <source>&amp;Open</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Command-line options</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Show the Antimatter-Qt help message to get a list with possible Antimatter command-line options.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Show</source> <translation type="unfinished"/> </message> <message> <location line="+24"/> <source>&amp;Console</source> <translation type="unfinished"/> </message> <message> <location line="-260"/> <source>Build date</source> <translation type="unfinished"/> </message> <message> <location line="-104"/> <source>Antimatter - Debug window</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Antimatter Core</source> <translation type="unfinished"/> </message> <message> <location line="+279"/> <source>Debug log file</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Open the Antimatter debug log file from the current data directory. This can take a few seconds for large log files.</source> <translation type="unfinished"/> </message> <message> <location line="+102"/> <source>Clear console</source> <translation type="unfinished"/> </message> <message> <location filename="../rpcconsole.cpp" line="-30"/> <source>Welcome to the Antimatter RPC console.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Use up and down arrows to navigate history, and &lt;b&gt;Ctrl-L&lt;/b&gt; to clear screen.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.</source> <translation type="unfinished"/> </message> </context> <context> <name>SendCoinsDialog</name> <message> <location filename="../forms/sendcoinsdialog.ui" line="+14"/> <location filename="../sendcoinsdialog.cpp" line="+124"/> <location line="+5"/> <location line="+5"/> <location line="+5"/> <location line="+6"/> <location line="+5"/> <location line="+5"/> <source>Send Coins</source> <translation type="unfinished"/> </message> <message> <location line="+50"/> <source>Send to multiple recipients at once</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Add &amp;Recipient</source> <translation type="unfinished"/> </message> <message> <location line="+20"/> <source>Remove all transaction fields</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Clear &amp;All</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>Balance:</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>123.456 BTC</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Confirm the send action</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>S&amp;end</source> <translation type="unfinished"/> </message> <message> <location filename="../sendcoinsdialog.cpp" line="-59"/> <source>&lt;b&gt;%1&lt;/b&gt; to %2 (%3)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Confirm send coins</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Are you sure you want to send %1?</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source> and </source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>The recipient address is not valid, please recheck.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>The amount to pay must be larger than 0.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>The amount exceeds your balance.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>The total exceeds your balance when the %1 transaction fee is included.</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Duplicate address found, can only send to each address once per send operation.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Error: Transaction creation failed!</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation type="unfinished"/> </message> </context> <context> <name>SendCoinsEntry</name> <message> <location filename="../forms/sendcoinsentry.ui" line="+14"/> <source>Form</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>A&amp;mount:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Pay &amp;To:</source> <translation type="unfinished"/> </message> <message> <location line="+34"/> <source>The address to send the payment to (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation type="unfinished"/> </message> <message> <location line="+60"/> <location filename="../sendcoinsentry.cpp" line="+26"/> <source>Enter a label for this address to add it to your address book</source> <translation type="unfinished"/> </message> <message> <location line="-78"/> <source>&amp;Label:</source> <translation type="unfinished"/> </message> <message> <location line="+28"/> <source>Choose address from address book</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Alt+A</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Paste address from clipboard</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Remove this recipient</source> <translation type="unfinished"/> </message> <message> <location filename="../sendcoinsentry.cpp" line="+1"/> <source>Enter a Antimatter address (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation type="unfinished"/> </message> </context> <context> <name>SignVerifyMessageDialog</name> <message> <location filename="../forms/signverifymessagedialog.ui" line="+14"/> <source>Signatures - Sign / Verify a Message</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>&amp;Sign Message</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>The address to sign the message with (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <location line="+213"/> <source>Choose an address from the address book</source> <translation type="unfinished"/> </message> <message> <location line="-203"/> <location line="+213"/> <source>Alt+A</source> <translation type="unfinished"/> </message> <message> <location line="-203"/> <source>Paste address from clipboard</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Enter the message you want to sign here</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Signature</source> <translation type="unfinished"/> </message> <message> <location line="+27"/> <source>Copy the current signature to the system clipboard</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>Sign the message to prove you own this Antimatter address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Reset all sign message fields</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <location line="+146"/> <source>Clear &amp;All</source> <translation type="unfinished"/> </message> <message> <location line="-87"/> <source>&amp;Verify Message</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>The address the message was signed with (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation type="unfinished"/> </message> <message> <location line="+40"/> <source>Verify the message to ensure it was signed with the specified Antimatter address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Verify &amp;Message</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Reset all verify message fields</source> <translation type="unfinished"/> </message> <message> <location filename="../signverifymessagedialog.cpp" line="+27"/> <location line="+3"/> <source>Enter a Antimatter address (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation type="unfinished"/> </message> <message> <location line="-2"/> <source>Click &quot;Sign Message&quot; to generate signature</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Enter Antimatter signature</source> <translation type="unfinished"/> </message> <message> <location line="+82"/> <location line="+81"/> <source>The entered address is invalid.</source> <translation type="unfinished"/> </message> <message> <location line="-81"/> <location line="+8"/> <location line="+73"/> <location line="+8"/> <source>Please check the address and try again.</source> <translation type="unfinished"/> </message> <message> <location line="-81"/> <location line="+81"/> <source>The entered address does not refer to a key.</source> <translation type="unfinished"/> </message> <message> <location line="-73"/> <source>Wallet unlock was cancelled.</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Private key for the entered address is not available.</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Message signing failed.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Message signed.</source> <translation type="unfinished"/> </message> <message> <location line="+59"/> <source>The signature could not be decoded.</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <location line="+13"/> <source>Please check the signature and try again.</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>The signature did not match the message digest.</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Message verification failed.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Message verified.</source> <translation type="unfinished"/> </message> </context> <context> <name>SplashScreen</name> <message> <location filename="../splashscreen.cpp" line="+22"/> <source>The Antimatter developers</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>[testnet]</source> <translation type="unfinished"/> </message> </context> <context> <name>TransactionDesc</name> <message> <location filename="../transactiondesc.cpp" line="+20"/> <source>Open until %1</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>%1/offline</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>%1/unconfirmed</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>%1 confirmations</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>Status</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+7"/> <source>, broadcast through %n node(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+4"/> <source>Date</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Source</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Generated</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <location line="+17"/> <source>From</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <location line="+22"/> <location line="+58"/> <source>To</source> <translation type="unfinished"/> </message> <message> <location line="-77"/> <location line="+2"/> <source>own address</source> <translation type="unfinished"/> </message> <message> <location line="-2"/> <source>label</source> <translation type="unfinished"/> </message> <message> <location line="+37"/> <location line="+12"/> <location line="+45"/> <location line="+17"/> <location line="+30"/> <source>Credit</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="-102"/> <source>matures in %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+2"/> <source>not accepted</source> <translation type="unfinished"/> </message> <message> <location line="+44"/> <location line="+8"/> <location line="+15"/> <location line="+30"/> <source>Debit</source> <translation type="unfinished"/> </message> <message> <location line="-39"/> <source>Transaction fee</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Net amount</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Message</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Comment</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Transaction ID</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Generated coins must mature 120 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to &quot;not accepted&quot; and it won&apos;t be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Debug information</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Transaction</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Inputs</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Amount</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>true</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>false</source> <translation type="unfinished"/> </message> <message> <location line="-209"/> <source>, has not been successfully broadcast yet</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="-35"/> <source>Open for %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+70"/> <source>unknown</source> <translation type="unfinished"/> </message> </context> <context> <name>TransactionDescDialog</name> <message> <location filename="../forms/transactiondescdialog.ui" line="+14"/> <source>Transaction details</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>This pane shows a detailed description of the transaction</source> <translation type="unfinished"/> </message> </context> <context> <name>TransactionTableModel</name> <message> <location filename="../transactiontablemodel.cpp" line="+225"/> <source>Date</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Type</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Address</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Amount</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+57"/> <source>Open for %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+3"/> <source>Open until %1</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Offline (%1 confirmations)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Unconfirmed (%1 of %2 confirmations)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Confirmed (%1 confirmations)</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+8"/> <source>Mined balance will be available when it matures in %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+5"/> <source>This block was not received by any other nodes and will probably not be accepted!</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Generated but not accepted</source> <translation type="unfinished"/> </message> <message> <location line="+43"/> <source>Received with</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Received from</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Sent to</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Payment to yourself</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Mined</source> <translation type="unfinished"/> </message> <message> <location line="+38"/> <source>(n/a)</source> <translation type="unfinished"/> </message> <message> <location line="+199"/> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Date and time that the transaction was received.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Type of transaction.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Destination address of transaction.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Amount removed from or added to balance.</source> <translation type="unfinished"/> </message> </context> <context> <name>TransactionView</name> <message> <location filename="../transactionview.cpp" line="+52"/> <location line="+16"/> <source>All</source> <translation type="unfinished"/> </message> <message> <location line="-15"/> <source>Today</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>This week</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>This month</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Last month</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>This year</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Range...</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Received with</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Sent to</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>To yourself</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Mined</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Other</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Enter address or label to search</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Min amount</source> <translation type="unfinished"/> </message> <message> <location line="+34"/> <source>Copy address</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy label</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy transaction ID</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Edit label</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show transaction details</source> <translation type="unfinished"/> </message> <message> <location line="+139"/> <source>Export Transaction Data</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Confirmed</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Date</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Type</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Label</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Address</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Amount</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>ID</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Error exporting</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation type="unfinished"/> </message> <message> <location line="+100"/> <source>Range:</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>to</source> <translation type="unfinished"/> </message> </context> <context> <name>WalletModel</name> <message> <location filename="../walletmodel.cpp" line="+193"/> <source>Send Coins</source> <translation type="unfinished"/> </message> </context> <context> <name>WalletView</name> <message> <location filename="../walletview.cpp" line="+42"/> <source>&amp;Export</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Export the data in the current tab to a file</source> <translation type="unfinished"/> </message> <message> <location line="+193"/> <source>Backup Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Wallet Data (*.dat)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Backup Failed</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>There was an error trying to save the wallet data to the new location.</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Backup Successful</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>The wallet data was successfully saved to the new location.</source> <translation type="unfinished"/> </message> </context> <context> <name>bitcoin-core</name> <message> <location filename="../bitcoinstrings.cpp" line="+94"/> <source>Antimatter version</source> <translation type="unfinished"/> </message> <message> <location line="+102"/> <source>Usage:</source> <translation type="unfinished"/> </message> <message> <location line="-29"/> <source>Send command to -server or antimatterd</source> <translation type="unfinished"/> </message> <message> <location line="-23"/> <source>List commands</source> <translation type="unfinished"/> </message> <message> <location line="-12"/> <source>Get help for a command</source> <translation type="unfinished"/> </message> <message> <location line="+24"/> <source>Options:</source> <translation type="unfinished"/> </message> <message> <location line="+24"/> <source>Specify configuration file (default: antimatter.conf)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Specify pid file (default: antimatterd.pid)</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Specify data directory</source> <translation type="unfinished"/> </message> <message> <location line="-9"/> <source>Set database cache size in megabytes (default: 25)</source> <translation type="unfinished"/> </message> <message> <location line="-28"/> <source>Listen for connections on &lt;port&gt; (default: 9333 or testnet: 19333)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Maintain at most &lt;n&gt; connections to peers (default: 125)</source> <translation type="unfinished"/> </message> <message> <location line="-48"/> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation type="unfinished"/> </message> <message> <location line="+82"/> <source>Specify your own public address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Threshold for disconnecting misbehaving peers (default: 100)</source> <translation type="unfinished"/> </message> <message> <location line="-134"/> <source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source> <translation type="unfinished"/> </message> <message> <location line="-29"/> <source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source> <translation type="unfinished"/> </message> <message> <location line="+27"/> <source>Listen for JSON-RPC connections on &lt;port&gt; (default: 9332 or testnet: 19332)</source> <translation type="unfinished"/> </message> <message> <location line="+37"/> <source>Accept command line and JSON-RPC commands</source> <translation type="unfinished"/> </message> <message> <location line="+76"/> <source>Run in the background as a daemon and accept commands</source> <translation type="unfinished"/> </message> <message> <location line="+37"/> <source>Use the test network</source> <translation type="unfinished"/> </message> <message> <location line="-112"/> <source>Accept connections from outside (default: 1 if no -proxy or -connect)</source> <translation type="unfinished"/> </message> <message> <location line="-80"/> <source>%s, you must set a rpcpassword in the configuration file: %s It is recommended you use the following random password: rpcuser=antimatterrpc rpcpassword=%s (you do not need to remember this password) The username and password MUST NOT be the same. If the file does not exist, create it with owner-readable-only file permissions. It is also recommended to set alertnotify so you are notified of problems; for example: alertnotify=echo %%s | mail -s &quot;Antimatter Alert&quot; [email protected] </source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Bind to given address and always listen on it. Use [host]:port notation for IPv6</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Cannot obtain a lock on data directory %s. Antimatter is probably already running.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds!</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>This is a pre-release test build - use at your own risk - do not use for mining or merchant applications</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning: Displayed transactions may not be correct! You may need to upgrade, or other nodes may need to upgrade.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning: Please check that your computer&apos;s date and time are correct! If your clock is wrong Antimatter will not work properly.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Attempt to recover private keys from a corrupt wallet.dat</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Block creation options:</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Connect only to the specified node(s)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Corrupted block database detected</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Discover own IP address (default: 1 when listening and no -externalip)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Do you want to rebuild the block database now?</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Error initializing block database</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error initializing wallet database environment %s!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error loading block database</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Error opening block database</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Error: Disk space is low!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error: Wallet locked, unable to create transaction!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error: system error: </source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to listen on any port. Use -listen=0 if you want this.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to read block info</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to read block</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to sync block index</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write block index</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write block info</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write block</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write file info</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write to coin database</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write transaction index</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write undo data</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Find peers using DNS lookup (default: 1 unless -connect)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Generate coins (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>How many blocks to check at startup (default: 288, 0 = all)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>How thorough the block verification is (0-4, default: 3)</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Not enough file descriptors available.</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Rebuild block chain index from current blk000??.dat files</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Set the number of threads to service RPC calls (default: 4)</source> <translation type="unfinished"/> </message> <message> <location line="+26"/> <source>Verifying blocks...</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Verifying wallet...</source> <translation type="unfinished"/> </message> <message> <location line="-69"/> <source>Imports blocks from external blk000??.dat file</source> <translation type="unfinished"/> </message> <message> <location line="-76"/> <source>Set the number of script verification threads (up to 16, 0 = auto, &lt;0 = leave that many cores free, default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+77"/> <source>Information</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Invalid -tor address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Invalid amount for -minrelaytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Invalid amount for -mintxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Maintain a full transaction index (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Maximum per-connection receive buffer, &lt;n&gt;*1000 bytes (default: 5000)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Maximum per-connection send buffer, &lt;n&gt;*1000 bytes (default: 1000)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Only accept block chain matching built-in checkpoints (default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Only connect to nodes in network &lt;net&gt; (IPv4, IPv6 or Tor)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Output extra debugging information. Implies all other -debug* options</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Output extra network debugging information</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Prepend debug output with timestamp</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>SSL options: (see the Antimatter Wiki for SSL setup instructions)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Select the version of socks proxy to use (4-5, default: 5)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Send trace/debug info to console instead of debug.log file</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Send trace/debug info to debugger</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Set maximum block size in bytes (default: 250000)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Set minimum block size in bytes (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Shrink debug.log file on client startup (default: 1 when no -debug)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Signing transaction failed</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Specify connection timeout in milliseconds (default: 5000)</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>System error: </source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Transaction amount too small</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transaction amounts must be positive</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transaction too large</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Use UPnP to map the listening port (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Use UPnP to map the listening port (default: 1 when listening)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Use proxy to reach tor hidden services (default: same as -proxy)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Username for JSON-RPC connections</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Warning</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Warning: This version is obsolete, upgrade required!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>You need to rebuild the databases using -reindex to change -txindex</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>wallet.dat corrupt, salvage failed</source> <translation type="unfinished"/> </message> <message> <location line="-50"/> <source>Password for JSON-RPC connections</source> <translation type="unfinished"/> </message> <message> <location line="-67"/> <source>Allow JSON-RPC connections from specified IP address</source> <translation type="unfinished"/> </message> <message> <location line="+76"/> <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)</source> <translation type="unfinished"/> </message> <message> <location line="-120"/> <source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source> <translation type="unfinished"/> </message> <message> <location line="+147"/> <source>Upgrade wallet to latest format</source> <translation type="unfinished"/> </message> <message> <location line="-21"/> <source>Set key pool size to &lt;n&gt; (default: 100)</source> <translation type="unfinished"/> </message> <message> <location line="-12"/> <source>Rescan the block chain for missing wallet transactions</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation type="unfinished"/> </message> <message> <location line="-26"/> <source>Server certificate file (default: server.cert)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Server private key (default: server.pem)</source> <translation type="unfinished"/> </message> <message> <location line="-151"/> <source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source> <translation type="unfinished"/> </message> <message> <location line="+165"/> <source>This help message</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Unable to bind to %s on this computer (bind returned error %d, %s)</source> <translation type="unfinished"/> </message> <message> <location line="-91"/> <source>Connect through socks proxy</source> <translation type="unfinished"/> </message> <message> <location line="-10"/> <source>Allow DNS lookups for -addnode, -seednode and -connect</source> <translation type="unfinished"/> </message> <message> <location line="+55"/> <source>Loading addresses...</source> <translation type="unfinished"/> </message> <message> <location line="-35"/> <source>Error loading wallet.dat: Wallet corrupted</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error loading wallet.dat: Wallet requires newer version of Antimatter</source> <translation type="unfinished"/> </message> <message> <location line="+93"/> <source>Wallet needed to be rewritten: restart Antimatter to complete</source> <translation type="unfinished"/> </message> <message> <location line="-95"/> <source>Error loading wallet.dat</source> <translation type="unfinished"/> </message> <message> <location line="+28"/> <source>Invalid -proxy address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+56"/> <source>Unknown network specified in -onlynet: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Unknown -socks proxy version requested: %i</source> <translation type="unfinished"/> </message> <message> <location line="-96"/> <source>Cannot resolve -bind address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Cannot resolve -externalip address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+44"/> <source>Invalid amount for -paytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Invalid amount</source> <translation type="unfinished"/> </message> <message> <location line="-6"/> <source>Insufficient funds</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Loading block index...</source> <translation type="unfinished"/> </message> <message> <location line="-57"/> <source>Add a node to connect to and attempt to keep the connection open</source> <translation type="unfinished"/> </message> <message> <location line="-25"/> <source>Unable to bind to %s on this computer. Antimatter is probably already running.</source> <translation type="unfinished"/> </message> <message> <location line="+64"/> <source>Fee per KB to add to transactions you send</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Loading wallet...</source> <translation type="unfinished"/> </message> <message> <location line="-52"/> <source>Cannot downgrade wallet</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Cannot write default address</source> <translation type="unfinished"/> </message> <message> <location line="+64"/> <source>Rescanning...</source> <translation type="unfinished"/> </message> <message> <location line="-57"/> <source>Done loading</source> <translation type="unfinished"/> </message> <message> <location line="+82"/> <source>To use the %s option</source> <translation type="unfinished"/> </message> <message> <location line="-74"/> <source>Error</source> <translation type="unfinished"/> </message> <message> <location line="-31"/> <source>You must set rpcpassword=&lt;password&gt; in the configuration file: %s If the file does not exist, create it with owner-readable-only file permissions.</source> <translation type="unfinished"/> </message> </context> </TS>
staycrypto/antimatter
src/qt/locale/bitcoin_ca.ts
TypeScript
mit
96,651
var page = 3; var url_blog = window.location; $(window).scroll(function() { if($(window).scrollTop() + $(window).height() == $(document).height()) { $.get((url_blog +'/page/'+page), function(content) { if(page <= max_pages){ $('.container').append($(content).children(".post").fadeIn(1400)); page = page + 1; } }); } });
joepurdy/winders
assets/js/main.js
JavaScript
mit
378
# 5 points # # Write a program that displays the following table of contents: # # $ ruby exercise7.rb # Table of Contents # Chapter 1: Getting Started page 1 # Chapter 2: Numbers page 9 # Chapter 3: Letters page 13 # # TIP #1: The width of each line is 50 characters. # # TIP #2: You'll need the following methods: # string.center(Integer) #=> String # Returns a new String of length Integer with `string` centered. # 'bird'.center(10) #=> ' bird ' # string.ljust(Integer) #=> String # Returns a new String of length Integer with `string` left justified. # 'bird'.ljust(10) #=> 'bird ' # string.rjust(Integer) #=> String # Returns a new String of length Integer with `string` right justified. # 'bird'.rjust(10) #=> ' bird' line_width = 50 puts('Table of Contents'.center(line_width)) puts('Chapter 1: Getting Started'.ljust(line_width / 2) + 'page 1'.rjust((line_width / 2) - 2)) puts('Chapter 2: Numbers'.ljust(line_width / 2) + 'page 9'.rjust(line_width / 2)) puts('Chapter 3: Letters'.ljust(line_width / 2) + 'page 13'.rjust(line_width / 2)) # line_width = 40 # str = '--> text <--' # puts(str.ljust(line_width)) # puts(str.center(line_width)) # puts(str.rjust(line_width)) # puts(str.ljust(line_width / 2) + str.rjust(line_width / 2))
marythought/sea-c41-ruby
lib/class2/exercise7.rb
Ruby
mit
1,404
package com.xianyue.mail.constants; /** * @author Xianyue */ public class MailConstants { public final static String DEFAULT = "default"; //发送的默认行为名称 }
lys091112/javapiers
mail-sender/src/main/java/com/xianyue/mail/constants/MailConstants.java
Java
mit
178
# encoding: UTF-8 '''一个简单的通联数据客户端,主要使用requests开发,比通联官网的python例子更为简洁。''' import os,sys import requests import json FILENAME = 'datayes.json' HTTP_OK = 200 ######################################################################## class DatayesClient(object): """通联数据客户端""" name = u'通联数据客户端' #---------------------------------------------------------------------- def __init__(self): """Constructor""" self.domain = '' # 主域名 self.version = '' # API版本 self.token = '' # 授权码 self.header = {} # http请求头部 self.settingLoaded = False # 配置是否已经读取 self.loadSetting() #---------------------------------------------------------------------- def loadSetting(self): """载入配置""" try: path = os.path.abspath(os.path.dirname(__file__)) FILEPATH = os.path.join(path, FILENAME) f = file(FILEPATH) except IOError: print u'%s无法打开配置文件' % self.name return setting = json.load(f) try: self.domain = str(setting['domain']) self.version = str(setting['version']) self.token = str(setting['token']) except KeyError: print u'%s配置文件字段缺失' % self.name return self.header['Connection'] = 'keep_alive' self.header['Authorization'] = 'Bearer ' + self.token self.settingLoaded = True print u'%s配置载入完成' % self.name #---------------------------------------------------------------------- def downloadData(self, path, params): """下载数据""" if not self.settingLoaded: print u'%s配置未载入' % self.name return None else: url = '/'.join([self.domain, self.version, path]) r = requests.get(url=url, headers=self.header, params=params) if r.status_code != HTTP_OK: print u'%shttp请求失败,状态代码%s' %(self.name, r.status_code) return None else: result = r.json() if 'retMsg' in result and result['retMsg'] == 'Success': return result['data'] else: if 'retMsg' in result: print u'%s查询失败,返回信息%s' %(self.name, result['retMsg']) elif 'message' in result: print u'%s查询失败,返回信息%s' %(self.name, result['message']) return None
zhengwsh/InplusTrader_Linux
InplusTrader/ctaAlgo/datayesClient.py
Python
mit
2,866
// // AppDelegate.h // MDW_CaptureManager-Example // // Created by Miguel dos Santos Vaz Dias Wicht on 31.08.14. // Copyright (c) 2014 Miguel dos Santos Vaz Dias Wicht. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
miguelwicht/MDW_CaptureManager-Example
MDW_CaptureManager-Example/AppDelegate.h
C
mit
339
using NUnit.Framework; using SeriousGameToolbox.Data.Parameters; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace SeriousGameToolbox.Tests.Data.Parameters { [TestFixture] [Category("Parameters")] public class XmlParameterContainerParser_Tests { private class InvalidParameter : Parameter { public InvalidParameter() : base("invalid", "invalid") { } public override object GetValue() { return null; } public override Parameter Clone() { return null; } public override bool Equals(Parameter other) { return false; } } string filename; [SetUp] public void SetUp() { filename = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "temp_parameters.xml"); } [Test] public void Load_CreatesValidCollection() { string content = Properties.Resources.default_settings; using (StreamWriter w = new StreamWriter(filename)) { w.Write(content); } XmlParameterContainerParser loader = new XmlParameterContainerParser(); var collection = loader.Load(filename); bool b = collection.Get<bool>("TEST_BOOL"); int i = collection.Get<int>("TEST_INT"); Assert.IsTrue(b); Assert.AreEqual(3, i); } [Test] [ExpectedException(typeof(XmlParameterContainerParser.InvalidParameterTypeException))] public void Save_UnknownParameterTypeAsked_ThrowsInvalidParameterTypeException() { XmlParameterContainerParser loader = new XmlParameterContainerParser(); var invalidCollection = new ParameterContainer(new List<Parameter> { new InvalidParameter() }); loader.Save(invalidCollection, filename); } [Test] public void Save_CreatesValidFile() { string content = Properties.Resources.default_settings; using (StreamWriter w = new StreamWriter(filename)) { w.Write(content); } XmlParameterContainerParser loader = new XmlParameterContainerParser(); var collection = loader.Load(filename); loader.Save(collection, filename); collection = loader.Load(filename); bool b = collection.Get<bool>("TEST_BOOL"); int i = collection.Get<int>("TEST_INT"); Assert.IsTrue(b); Assert.AreEqual(3, i); } [Test] public void Equals_ReturnsCorrectValue() { int expectedInt = 46546440; float expectedFloat = 4487.2f; bool expectedBool = true; string expectedString = "Hello, world!"; float expectedFloatRange = 3.1f; int expectedIntRange = 35; List<Parameter> list = new List<Parameter>(5); list.Add(new BooleanParameter("bool", "bool", expectedBool)); list.Add(new StringParameter("string", "string", expectedString)); list.Add(new IntegerParameter("integer", "integer", expectedInt)); list.Add(new IntRangeParameter("intrange", "intrange", -7, 247, expectedIntRange)); list.Add(new FloatParameter("float", "float", expectedFloat)); list.Add(new FloatRangeParameter("floatrange", "floatrange", 2.3f, 4.8f, expectedFloatRange)); List<Parameter> list2 = new List<Parameter>(5); list2.Add(new BooleanParameter("bool", "bool", expectedBool)); list2.Add(new StringParameter("string", "string", expectedString)); list2.Add(new IntegerParameter("integer", "integer", expectedInt)); list2.Add(new IntRangeParameter("intrange", "intrange", -7, 247, expectedIntRange)); list2.Add(new FloatParameter("float", "float", expectedFloat)); list2.Add(new FloatRangeParameter("floatrange", "floatrange", 2.3f, 4.8f, expectedFloatRange)); ParameterContainer fullCollection1 = new ParameterContainer(list); ParameterContainer fullCollection2 = new ParameterContainer(list2); Assert.IsTrue(fullCollection1.Equals(fullCollection2)); } [Test] public void Save_EachTypeOfParameter_CreatesValidFile() { int expectedInt = 46546440; float expectedFloat = 4487.2f; bool expectedBool = true; string expectedString = "Hello, world!"; float expectedFloatRange = 3.1f; int expectedIntRange = 35; List<Parameter> list = new List<Parameter>(5); list.Add(new BooleanParameter("bool", "bool", expectedBool)); list.Add(new StringParameter("string", "string", expectedString)); list.Add(new IntegerParameter("integer", "integer", expectedInt)); list.Add(new IntRangeParameter("intrange", "intrange", -7, 247, expectedIntRange)); list.Add(new FloatParameter("float", "float", expectedFloat)); list.Add(new FloatRangeParameter("floatrange", "floatrange", 2.3f, 4.8f, expectedFloatRange)); ParameterContainer fullCollection = new ParameterContainer(list); XmlParameterContainerParser loader = new XmlParameterContainerParser(); loader.Save(fullCollection, filename); var loadedCollection = loader.Load(filename); bool actualBool = loadedCollection.Get<bool>("bool"); string actualString = loadedCollection.Get<string>("string"); int actualInt = loadedCollection.Get<int>("integer"); float actualFloat = loadedCollection.Get<float>("float"); float actualFloatRange = loadedCollection.Get<float>("floatrange"); int actualIntRange = loadedCollection.Get<int>("intrange"); Assert.AreEqual(expectedBool, actualBool); Assert.AreEqual(expectedFloat, actualFloat); Assert.AreEqual(expectedFloatRange, actualFloatRange); Assert.AreEqual(expectedString, actualString); Assert.AreEqual(expectedInt, actualInt); Assert.AreEqual(expectedIntRange, actualIntRange); } } }
Groutcho/SeriousGameToolbox
SeriousGameToolbox/tests/SeriousGameToolbox.Tests/Data/Parameters/XmlParameterContainerParser.Tests.cs
C#
mit
6,531
/*-------------------------------------------------------------- Header --------------------------------------------------------------*/ #header { background: url(../../images/theme/header.jpg) repeat-x left bottom; } #header a:link, #header a:visited { color:#000; text-decoration: none; } #header a:hover, #header a:active { color:#930; background: transparent; text-decoration: none; } #header h1 { font: bold 400% georgia, serif; letter-spacing: -1px; margin: 0; float: left; } #header h2 { font: normal 12px verdana, arial, sans-serif; margin: 2.5em 0 0 0.8em; float: left; } /*-------------------------------------------------------------- Content --------------------------------------------------------------*/ #content {} #content h1, #content h2, #content h3, #content h4, #content h5 { font-family: "lucidamac bold", "lucida grande", arial, sans-serif; letter-spacing: -1px; } #content h1 { font-size: 28px; margin: 0 0 0.3em; } #content h2 { font-size: 22px; margin: 0 0 0.3em; } #content h3 { font-size: 20px; margin: 1.2em 0 0.3em; color: #666; font-weight: normal; } #content h4 { font-size: 18px; margin: 1.2em 0 0.3em; border-bottom: 1px dotted #bbb; } #content h5 { font-size: 18px; background: #ffd; margin: 1.2em 0 0.3em; border-bottom: 1px dotted #aaa; } #content p { color: #444; line-height: 1.4em; margin: 0 0 1.2em; } #content ul, #content ol { margin: 1em; padding:0; } #content ul { list-style-type: square; } #content li { line-height: 15px; margin: 0 0 0 1em; padding: 0; } #content blockquote { color: #555; border-left: 5px solid #ccc; margin: 1.3em 1em; padding: 0 1em; } #content code { font: normal 12px "bitstream vera sans mono", monaco "lucida console", "courier new", courier, serif; } #content pre { color: #63FF00; background: #000; overflow: auto; font: normal 12px "bitstream vera sans mono", monaco "lucida console", "courier new", courier, serif; margin: 0.9em 0; padding: 8px; } /* Article Entries - class names based on http://microformats.org/wiki/hatom] */ #content .atomentry { margin: 0 0 3em 0; } #content .atomentry .title { font-size: 28px; margin: 0; font-weight: normal; } #content .atomentry .title a:link, #content .atomentry .title a:visited { color: #555; text-decoration: none; } #content .atomentry .title a:hover, #content .atomentry .title a:active { color: #1c9bdc; background: transparent; } #content .atomentry .title .comment_count { color: #eee; } #content .atomentry .author { color: #bbb; font: normal 16px/14px "lucidamac bold", "lucida grande", arial, verdana, sans-serif; margin: 0 0 1em; } #content .atomentry .author cite a, #content .atomentry .author cite a:hover { /* author mailto: link (if any) */ color: #aaa; background: transparent; text-decoration: none; } #content .atomentry .author abbr { /* posted date */ font-weight: bold; color: #aaa; } #content .atomentry .content {} #content .atomentry ul.meta { font-size: 10px; background: #eee; margin: 0; padding: 5px; border: 1px solid #ddd; list-style-type: none; } #content .atomentry ul.meta li { line-height: 13px; margin: 0; padding: 0; } #content .atomentry .meta a:link, #content .atomentry .meta a:visited { color: #555; } #content .atomentry .meta a:hover, #content .atomentry .meta a:active { color: #fff; } /* Comments and Trackbacks */ #content ol.comments, #content ol.trackbacks { list-style-type: none; margin: 0; padding: 0; } #content .comment, #content .trackback { border: 2px solid #ddd; margin: 0 0 1.5em; padding: 1em; } #content .comment.preview { background: #ffc; border: 3px solid #fab444; } #content .comment .author, #content .trackback .author { font-weight: bold; margin-bottom: 1em; } #content .comment .author cite, #content .trackback .author cite { font-size: 16px; letter-spacing: -1px; } #content .comment .author abbr, #content .trackback .author abbr { color: #999; } #content .comment .author .gravatar { margin: 0 0 0.5em 0.5em; float: right; } /* uncomment to enable a default gravatar #content .comment .author div { margin: 0 0 0.5em 0.5em; width: 60px; height: 60px; background: url(../../images/theme/gravatar.gif) no-repeat left top; float: right; }*/ #content form.comments { background: #f2f2f2; border-top: 1px solid #ddd; padding: 1em 0.5em; } #content form.comments fieldset { border: none; } #content form.comments legend { display: none; } #content form.comments label { font-weight: bold; } #content form.comments textarea { width: 90%; height: 150px; padding: 3px; } /*-------------------------------------------------------------- Sidebar --------------------------------------------------------------*/ #sidebar { font-size: 11px; } #sidebar h3 { font: bold 14px "lucidamac bold", "lucida grande", verdana, arial, helvetica, sans-serif; margin: 0 0 0.5em; } #sidebar h3 a:link, #sidebar h3 a:visited { color: #000; text-decoration: none; } #sidebar h3 a:hover, #sidebar h3 a:active { background: transparent; text-decoration: underline; } #sidebar ul { list-style-type: none; margin: 0 0 2em; padding: 0; } #sidebar li { margin: 0; padding: 1px 0; } #sidebar em { font-style: normal; } /* Live-search and results */ #sidebar .search p { margin: 0; } #sidebar .search p input { font-size: 11px; width: 92%; } #sidebar .search .loading { background: url(../../images/theme/spinner.gif) no-repeat left 50%; margin: 1em 0; padding: 0 0 0 20px; height: 15px; } #sidebar .search .results { margin: 0 0 1.25em; } #sidebar .search .results h3 { margin-top: 1em; } #sidebar .search .results p { font: bold 14px "lucidamac bold", "lucida grande", verdana, arial, helvetica, sans-serif; margin: 0 0 0.5em; } #sidebar .search .results ul { margin: 0; padding: 3px; } #sidebar .search .results li { background: #ffc; padding: 0.2em; } #sidebar .search .results a:link, #sidebar .search .results a:visited { color: #222; } #sidebar .search .results a:hover, #sidebar .search .results a:active { color: #fff; } /* Flickr sidebar-node */ #sidebar #flickr { margin: 0 0 2em; clear: both; } #sidebar #flickr div { } #sidebar #flickr img { margin: 0 0 5px; padding: 5px; border: 1px solid #ddd; display: block; } #sidebar #flickr img:hover { background: #ffc; } #sidebar #flickr a { border: none; } /*-------------------------------------------------------------- Footer --------------------------------------------------------------*/ #footer { border-top: 1px solid #ccc; font-size: 90%; } #footer a:link, #footer a:visited { color: #000; } #footer a:hover, #footer a:active { color: #fff; background: #000; } #footer hr { display: none; } #footer p { width: 40%; float: left; margin: 0; padding: 0; } #footer ul { width: 40%; margin: 0; padding: 0; list-style-type: none; text-align: right; float: right; } #footer li { margin: 0; padding: 0 0 0 1em; display: inline; } #socialBox { font-size: 10px; background: #fafafa; margin: 0; padding: 5px; border: 2px solid #ddd; list-style-type: none; }
swombat/blog
themes/inter-sections/stylesheets/content.css
CSS
mit
7,183
from __future__ import print_function,absolute_import,division _AD='expected the empty value, but found %r' _AC='cannot find module %r (%s)' _AB='expected non-empty name appended to the tag' _AA='tag:yaml.org,2002:map' _A9='tag:yaml.org,2002:seq' _A8='tag:yaml.org,2002:set' _A7='tag:yaml.org,2002:pairs' _A6='tag:yaml.org,2002:omap' _A5='tag:yaml.org,2002:timestamp' _A4='tag:yaml.org,2002:binary' _A3='tag:yaml.org,2002:float' _A2='tag:yaml.org,2002:int' _A1='tag:yaml.org,2002:bool' _A0='tag:yaml.org,2002:null' _z='could not determine a constructor for the tag %r' _y='second' _x='minute' _w='day' _v='month' _u='year' _t='failed to construct timestamp from "{}"' _s='decodebytes' _r='failed to convert base64 data into ascii: %s' _q='.nan' _p='.inf' _o='expected a mapping or list of mappings for merging, but found %s' _n='expected a mapping for merging, but found %s' _m=' Duplicate keys will become an error in future releases, and are errors\n by default when using the new API.\n ' _l='\n To suppress this check see:\n http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys\n ' _k='tag:yaml.org,2002:merge' _j=' Duplicate keys will become an error in future releases, and are errors\n by default when using the new API.\n ' _i='\n To suppress this check see:\n http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys\n ' _h='expected a sequence node, but found %s' _g='expected a scalar node, but found %s' _f='typ' _e='while constructing a Python module' _d='expected a single mapping item, but found %d items' _c='expected a mapping of length 1, but found %s' _b='expected a sequence, but found %s' _a='failed to decode base64 data: %s' _Z='tag:yaml.org,2002:value' _Y='found duplicate key "{}"' _X='found unhashable key' _W='found unacceptable key (%s)' _V='__setstate__' _U='tz_hour' _T='hour' _S='ascii' _R='tag:yaml.org,2002:str' _Q='utf-8' _P='expected a mapping node, but found %s' _O='tz_minute' _N='e' _M='+-' _L='while constructing an ordered map' _K='tz_sign' _J='-' _I='fraction' _H='.' _G=':' _F='0' _E='while constructing a mapping' _D='_' _C=True _B=False _A=None import datetime,base64,binascii,re,sys,types,warnings from .error import MarkedYAMLError,MarkedYAMLFutureWarning,MantissaNoDotYAML1_1Warning from .nodes import * from .nodes import SequenceNode,MappingNode,ScalarNode from .compat import utf8,builtins_module,to_str,PY2,PY3,text_type,nprint,nprintf,version_tnf from .compat import ordereddict,Hashable,MutableSequence from .compat import MutableMapping from .comments import * from .comments import CommentedMap,CommentedOrderedMap,CommentedSet,CommentedKeySeq,CommentedSeq,TaggedScalar,CommentedKeyMap from .scalarstring import SingleQuotedScalarString,DoubleQuotedScalarString,LiteralScalarString,FoldedScalarString,PlainScalarString,ScalarString from .scalarint import ScalarInt,BinaryInt,OctalInt,HexInt,HexCapsInt from .scalarfloat import ScalarFloat from .scalarbool import ScalarBoolean from .timestamp import TimeStamp from .util import RegExp if _B:from typing import Any,Dict,List,Set,Generator,Union,Optional __all__=['BaseConstructor','SafeConstructor','Constructor','ConstructorError','RoundTripConstructor'] class ConstructorError(MarkedYAMLError):0 class DuplicateKeyFutureWarning(MarkedYAMLFutureWarning):0 class DuplicateKeyError(MarkedYAMLFutureWarning):0 class BaseConstructor: yaml_constructors={};yaml_multi_constructors={} def __init__(self,preserve_quotes=_A,loader=_A): self.loader=loader if self.loader is not _A and getattr(self.loader,'_constructor',_A)is _A:self.loader._constructor=self self.loader=loader;self.yaml_base_dict_type=dict;self.yaml_base_list_type=list;self.constructed_objects={};self.recursive_objects={};self.state_generators=[];self.deep_construct=_B;self._preserve_quotes=preserve_quotes;self.allow_duplicate_keys=version_tnf((0,15,1),(0,16)) @property def composer(self): if hasattr(self.loader,_f):return self.loader.composer try:return self.loader._composer except AttributeError:sys.stdout.write('slt {}\n'.format(type(self)));sys.stdout.write('slc {}\n'.format(self.loader._composer));sys.stdout.write('{}\n'.format(dir(self)));raise @property def resolver(self): if hasattr(self.loader,_f):return self.loader.resolver return self.loader._resolver def check_data(self):return self.composer.check_node() def get_data(self): if self.composer.check_node():return self.construct_document(self.composer.get_node()) def get_single_data(self): node=self.composer.get_single_node() if node is not _A:return self.construct_document(node) return _A def construct_document(self,node): data=self.construct_object(node) while bool(self.state_generators): state_generators=self.state_generators;self.state_generators=[] for generator in state_generators: for _dummy in generator:0 self.constructed_objects={};self.recursive_objects={};self.deep_construct=_B;return data def construct_object(self,node,deep=_B): if node in self.constructed_objects:return self.constructed_objects[node] if deep:old_deep=self.deep_construct;self.deep_construct=_C if node in self.recursive_objects:return self.recursive_objects[node] self.recursive_objects[node]=_A;data=self.construct_non_recursive_object(node);self.constructed_objects[node]=data;del self.recursive_objects[node] if deep:self.deep_construct=old_deep return data def construct_non_recursive_object(self,node,tag=_A): constructor=_A;tag_suffix=_A if tag is _A:tag=node.tag if tag in self.yaml_constructors:constructor=self.yaml_constructors[tag] else: for tag_prefix in self.yaml_multi_constructors: if tag.startswith(tag_prefix):tag_suffix=tag[len(tag_prefix):];constructor=self.yaml_multi_constructors[tag_prefix];break else: if _A in self.yaml_multi_constructors:tag_suffix=tag;constructor=self.yaml_multi_constructors[_A] elif _A in self.yaml_constructors:constructor=self.yaml_constructors[_A] elif isinstance(node,ScalarNode):constructor=self.__class__.construct_scalar elif isinstance(node,SequenceNode):constructor=self.__class__.construct_sequence elif isinstance(node,MappingNode):constructor=self.__class__.construct_mapping if tag_suffix is _A:data=constructor(self,node) else:data=constructor(self,tag_suffix,node) if isinstance(data,types.GeneratorType): generator=data;data=next(generator) if self.deep_construct: for _dummy in generator:0 else:self.state_generators.append(generator) return data def construct_scalar(self,node): if not isinstance(node,ScalarNode):raise ConstructorError(_A,_A,_g%node.id,node.start_mark) return node.value def construct_sequence(self,node,deep=_B): if not isinstance(node,SequenceNode):raise ConstructorError(_A,_A,_h%node.id,node.start_mark) return[self.construct_object(child,deep=deep)for child in node.value] def construct_mapping(self,node,deep=_B): if not isinstance(node,MappingNode):raise ConstructorError(_A,_A,_P%node.id,node.start_mark) total_mapping=self.yaml_base_dict_type() if getattr(node,'merge',_A)is not _A:todo=[(node.merge,_B),(node.value,_B)] else:todo=[(node.value,_C)] for (values,check) in todo: mapping=self.yaml_base_dict_type() for (key_node,value_node) in values: key=self.construct_object(key_node,deep=_C) if not isinstance(key,Hashable): if isinstance(key,list):key=tuple(key) if PY2: try:hash(key) except TypeError as exc:raise ConstructorError(_E,node.start_mark,_W%exc,key_node.start_mark) elif not isinstance(key,Hashable):raise ConstructorError(_E,node.start_mark,_X,key_node.start_mark) value=self.construct_object(value_node,deep=deep) if check: if self.check_mapping_key(node,key_node,mapping,key,value):mapping[key]=value else:mapping[key]=value total_mapping.update(mapping) return total_mapping def check_mapping_key(self,node,key_node,mapping,key,value): if key in mapping: if not self.allow_duplicate_keys: mk=mapping.get(key) if PY2: if isinstance(key,unicode):key=key.encode(_Q) if isinstance(value,unicode):value=value.encode(_Q) if isinstance(mk,unicode):mk=mk.encode(_Q) args=[_E,node.start_mark,'found duplicate key "{}" with value "{}" (original value: "{}")'.format(key,value,mk),key_node.start_mark,_i,_j] if self.allow_duplicate_keys is _A:warnings.warn(DuplicateKeyFutureWarning(*args)) else:raise DuplicateKeyError(*args) return _B return _C def check_set_key(self,node,key_node,setting,key): if key in setting: if not self.allow_duplicate_keys: if PY2: if isinstance(key,unicode):key=key.encode(_Q) args=['while constructing a set',node.start_mark,_Y.format(key),key_node.start_mark,_i,_j] if self.allow_duplicate_keys is _A:warnings.warn(DuplicateKeyFutureWarning(*args)) else:raise DuplicateKeyError(*args) def construct_pairs(self,node,deep=_B): if not isinstance(node,MappingNode):raise ConstructorError(_A,_A,_P%node.id,node.start_mark) pairs=[] for (key_node,value_node) in node.value:key=self.construct_object(key_node,deep=deep);value=self.construct_object(value_node,deep=deep);pairs.append((key,value)) return pairs @classmethod def add_constructor(cls,tag,constructor): if'yaml_constructors'not in cls.__dict__:cls.yaml_constructors=cls.yaml_constructors.copy() cls.yaml_constructors[tag]=constructor @classmethod def add_multi_constructor(cls,tag_prefix,multi_constructor): if'yaml_multi_constructors'not in cls.__dict__:cls.yaml_multi_constructors=cls.yaml_multi_constructors.copy() cls.yaml_multi_constructors[tag_prefix]=multi_constructor class SafeConstructor(BaseConstructor): def construct_scalar(self,node): if isinstance(node,MappingNode): for (key_node,value_node) in node.value: if key_node.tag==_Z:return self.construct_scalar(value_node) return BaseConstructor.construct_scalar(self,node) def flatten_mapping(self,node): merge=[];index=0 while index<len(node.value): key_node,value_node=node.value[index] if key_node.tag==_k: if merge: if self.allow_duplicate_keys:del node.value[index];index+=1;continue args=[_E,node.start_mark,_Y.format(key_node.value),key_node.start_mark,_l,_m] if self.allow_duplicate_keys is _A:warnings.warn(DuplicateKeyFutureWarning(*args)) else:raise DuplicateKeyError(*args) del node.value[index] if isinstance(value_node,MappingNode):self.flatten_mapping(value_node);merge.extend(value_node.value) elif isinstance(value_node,SequenceNode): submerge=[] for subnode in value_node.value: if not isinstance(subnode,MappingNode):raise ConstructorError(_E,node.start_mark,_n%subnode.id,subnode.start_mark) self.flatten_mapping(subnode);submerge.append(subnode.value) submerge.reverse() for value in submerge:merge.extend(value) else:raise ConstructorError(_E,node.start_mark,_o%value_node.id,value_node.start_mark) elif key_node.tag==_Z:key_node.tag=_R;index+=1 else:index+=1 if bool(merge):node.merge=merge;node.value=merge+node.value def construct_mapping(self,node,deep=_B): if isinstance(node,MappingNode):self.flatten_mapping(node) return BaseConstructor.construct_mapping(self,node,deep=deep) def construct_yaml_null(self,node):self.construct_scalar(node);return _A bool_values={'yes':_C,'no':_B,'y':_C,'n':_B,'true':_C,'false':_B,'on':_C,'off':_B} def construct_yaml_bool(self,node):value=self.construct_scalar(node);return self.bool_values[value.lower()] def construct_yaml_int(self,node): value_s=to_str(self.construct_scalar(node));value_s=value_s.replace(_D,'');sign=+1 if value_s[0]==_J:sign=-1 if value_s[0]in _M:value_s=value_s[1:] if value_s==_F:return 0 elif value_s.startswith('0b'):return sign*int(value_s[2:],2) elif value_s.startswith('0x'):return sign*int(value_s[2:],16) elif value_s.startswith('0o'):return sign*int(value_s[2:],8) elif self.resolver.processing_version==(1,1)and value_s[0]==_F:return sign*int(value_s,8) elif self.resolver.processing_version==(1,1)and _G in value_s: digits=[int(part)for part in value_s.split(_G)];digits.reverse();base=1;value=0 for digit in digits:value+=digit*base;base*=60 return sign*value else:return sign*int(value_s) inf_value=1e+300 while inf_value!=inf_value*inf_value:inf_value*=inf_value nan_value=-inf_value/inf_value def construct_yaml_float(self,node): value_so=to_str(self.construct_scalar(node));value_s=value_so.replace(_D,'').lower();sign=+1 if value_s[0]==_J:sign=-1 if value_s[0]in _M:value_s=value_s[1:] if value_s==_p:return sign*self.inf_value elif value_s==_q:return self.nan_value elif self.resolver.processing_version!=(1,2)and _G in value_s: digits=[float(part)for part in value_s.split(_G)];digits.reverse();base=1;value=0.0 for digit in digits:value+=digit*base;base*=60 return sign*value else: if self.resolver.processing_version!=(1,2)and _N in value_s: mantissa,exponent=value_s.split(_N) if _H not in mantissa:warnings.warn(MantissaNoDotYAML1_1Warning(node,value_so)) return sign*float(value_s) if PY3: def construct_yaml_binary(self,node): try:value=self.construct_scalar(node).encode(_S) except UnicodeEncodeError as exc:raise ConstructorError(_A,_A,_r%exc,node.start_mark) try: if hasattr(base64,_s):return base64.decodebytes(value) else:return base64.decodestring(value) except binascii.Error as exc:raise ConstructorError(_A,_A,_a%exc,node.start_mark) else: def construct_yaml_binary(self,node): value=self.construct_scalar(node) try:return to_str(value).decode('base64') except (binascii.Error,UnicodeEncodeError)as exc:raise ConstructorError(_A,_A,_a%exc,node.start_mark) timestamp_regexp=RegExp('^(?P<year>[0-9][0-9][0-9][0-9])\n -(?P<month>[0-9][0-9]?)\n -(?P<day>[0-9][0-9]?)\n (?:((?P<t>[Tt])|[ \\t]+) # explictly not retaining extra spaces\n (?P<hour>[0-9][0-9]?)\n :(?P<minute>[0-9][0-9])\n :(?P<second>[0-9][0-9])\n (?:\\.(?P<fraction>[0-9]*))?\n (?:[ \\t]*(?P<tz>Z|(?P<tz_sign>[-+])(?P<tz_hour>[0-9][0-9]?)\n (?::(?P<tz_minute>[0-9][0-9]))?))?)?$',re.X) def construct_yaml_timestamp(self,node,values=_A): if values is _A: try:match=self.timestamp_regexp.match(node.value) except TypeError:match=_A if match is _A:raise ConstructorError(_A,_A,_t.format(node.value),node.start_mark) values=match.groupdict() year=int(values[_u]);month=int(values[_v]);day=int(values[_w]) if not values[_T]:return datetime.date(year,month,day) hour=int(values[_T]);minute=int(values[_x]);second=int(values[_y]);fraction=0 if values[_I]: fraction_s=values[_I][:6] while len(fraction_s)<6:fraction_s+=_F fraction=int(fraction_s) if len(values[_I])>6 and int(values[_I][6])>4:fraction+=1 delta=_A if values[_K]: tz_hour=int(values[_U]);minutes=values[_O];tz_minute=int(minutes)if minutes else 0;delta=datetime.timedelta(hours=tz_hour,minutes=tz_minute) if values[_K]==_J:delta=-delta data=datetime.datetime(year,month,day,hour,minute,second,fraction) if delta:data-=delta return data def construct_yaml_omap(self,node): omap=ordereddict();yield omap if not isinstance(node,SequenceNode):raise ConstructorError(_L,node.start_mark,_b%node.id,node.start_mark) for subnode in node.value: if not isinstance(subnode,MappingNode):raise ConstructorError(_L,node.start_mark,_c%subnode.id,subnode.start_mark) if len(subnode.value)!=1:raise ConstructorError(_L,node.start_mark,_d%len(subnode.value),subnode.start_mark) key_node,value_node=subnode.value[0];key=self.construct_object(key_node);assert key not in omap;value=self.construct_object(value_node);omap[key]=value def construct_yaml_pairs(self,node): A='while constructing pairs';pairs=[];yield pairs if not isinstance(node,SequenceNode):raise ConstructorError(A,node.start_mark,_b%node.id,node.start_mark) for subnode in node.value: if not isinstance(subnode,MappingNode):raise ConstructorError(A,node.start_mark,_c%subnode.id,subnode.start_mark) if len(subnode.value)!=1:raise ConstructorError(A,node.start_mark,_d%len(subnode.value),subnode.start_mark) key_node,value_node=subnode.value[0];key=self.construct_object(key_node);value=self.construct_object(value_node);pairs.append((key,value)) def construct_yaml_set(self,node):data=set();yield data;value=self.construct_mapping(node);data.update(value) def construct_yaml_str(self,node): value=self.construct_scalar(node) if PY3:return value try:return value.encode(_S) except UnicodeEncodeError:return value def construct_yaml_seq(self,node):data=self.yaml_base_list_type();yield data;data.extend(self.construct_sequence(node)) def construct_yaml_map(self,node):data=self.yaml_base_dict_type();yield data;value=self.construct_mapping(node);data.update(value) def construct_yaml_object(self,node,cls): data=cls.__new__(cls);yield data if hasattr(data,_V):state=self.construct_mapping(node,deep=_C);data.__setstate__(state) else:state=self.construct_mapping(node);data.__dict__.update(state) def construct_undefined(self,node):raise ConstructorError(_A,_A,_z%utf8(node.tag),node.start_mark) SafeConstructor.add_constructor(_A0,SafeConstructor.construct_yaml_null) SafeConstructor.add_constructor(_A1,SafeConstructor.construct_yaml_bool) SafeConstructor.add_constructor(_A2,SafeConstructor.construct_yaml_int) SafeConstructor.add_constructor(_A3,SafeConstructor.construct_yaml_float) SafeConstructor.add_constructor(_A4,SafeConstructor.construct_yaml_binary) SafeConstructor.add_constructor(_A5,SafeConstructor.construct_yaml_timestamp) SafeConstructor.add_constructor(_A6,SafeConstructor.construct_yaml_omap) SafeConstructor.add_constructor(_A7,SafeConstructor.construct_yaml_pairs) SafeConstructor.add_constructor(_A8,SafeConstructor.construct_yaml_set) SafeConstructor.add_constructor(_R,SafeConstructor.construct_yaml_str) SafeConstructor.add_constructor(_A9,SafeConstructor.construct_yaml_seq) SafeConstructor.add_constructor(_AA,SafeConstructor.construct_yaml_map) SafeConstructor.add_constructor(_A,SafeConstructor.construct_undefined) if PY2: class classobj:0 class Constructor(SafeConstructor): def construct_python_str(self,node):return utf8(self.construct_scalar(node)) def construct_python_unicode(self,node):return self.construct_scalar(node) if PY3: def construct_python_bytes(self,node): try:value=self.construct_scalar(node).encode(_S) except UnicodeEncodeError as exc:raise ConstructorError(_A,_A,_r%exc,node.start_mark) try: if hasattr(base64,_s):return base64.decodebytes(value) else:return base64.decodestring(value) except binascii.Error as exc:raise ConstructorError(_A,_A,_a%exc,node.start_mark) def construct_python_long(self,node): val=self.construct_yaml_int(node) if PY3:return val return int(val) def construct_python_complex(self,node):return complex(self.construct_scalar(node)) def construct_python_tuple(self,node):return tuple(self.construct_sequence(node)) def find_python_module(self,name,mark): if not name:raise ConstructorError(_e,mark,_AB,mark) try:__import__(name) except ImportError as exc:raise ConstructorError(_e,mark,_AC%(utf8(name),exc),mark) return sys.modules[name] def find_python_name(self,name,mark): A='while constructing a Python object' if not name:raise ConstructorError(A,mark,_AB,mark) if _H in name: lname=name.split(_H);lmodule_name=lname;lobject_name=[] while len(lmodule_name)>1: lobject_name.insert(0,lmodule_name.pop());module_name=_H.join(lmodule_name) try:__import__(module_name);break except ImportError:continue else:module_name=builtins_module;lobject_name=[name] try:__import__(module_name) except ImportError as exc:raise ConstructorError(A,mark,_AC%(utf8(module_name),exc),mark) module=sys.modules[module_name];object_name=_H.join(lobject_name);obj=module while lobject_name: if not hasattr(obj,lobject_name[0]):raise ConstructorError(A,mark,'cannot find %r in the module %r'%(utf8(object_name),module.__name__),mark) obj=getattr(obj,lobject_name.pop(0)) return obj def construct_python_name(self,suffix,node): value=self.construct_scalar(node) if value:raise ConstructorError('while constructing a Python name',node.start_mark,_AD%utf8(value),node.start_mark) return self.find_python_name(suffix,node.start_mark) def construct_python_module(self,suffix,node): value=self.construct_scalar(node) if value:raise ConstructorError(_e,node.start_mark,_AD%utf8(value),node.start_mark) return self.find_python_module(suffix,node.start_mark) def make_python_instance(self,suffix,node,args=_A,kwds=_A,newobj=_B): if not args:args=[] if not kwds:kwds={} cls=self.find_python_name(suffix,node.start_mark) if PY3: if newobj and isinstance(cls,type):return cls.__new__(cls,*args,**kwds) else:return cls(*args,**kwds) elif newobj and isinstance(cls,type(classobj))and not args and not kwds:instance=classobj();instance.__class__=cls;return instance elif newobj and isinstance(cls,type):return cls.__new__(cls,*args,**kwds) else:return cls(*args,**kwds) def set_python_instance_state(self,instance,state): if hasattr(instance,_V):instance.__setstate__(state) else: slotstate={} if isinstance(state,tuple)and len(state)==2:state,slotstate=state if hasattr(instance,'__dict__'):instance.__dict__.update(state) elif state:slotstate.update(state) for (key,value) in slotstate.items():setattr(instance,key,value) def construct_python_object(self,suffix,node):instance=self.make_python_instance(suffix,node,newobj=_C);self.recursive_objects[node]=instance;yield instance;deep=hasattr(instance,_V);state=self.construct_mapping(node,deep=deep);self.set_python_instance_state(instance,state) def construct_python_object_apply(self,suffix,node,newobj=_B): if isinstance(node,SequenceNode):args=self.construct_sequence(node,deep=_C);kwds={};state={};listitems=[];dictitems={} else:value=self.construct_mapping(node,deep=_C);args=value.get('args',[]);kwds=value.get('kwds',{});state=value.get('state',{});listitems=value.get('listitems',[]);dictitems=value.get('dictitems',{}) instance=self.make_python_instance(suffix,node,args,kwds,newobj) if bool(state):self.set_python_instance_state(instance,state) if bool(listitems):instance.extend(listitems) if bool(dictitems): for key in dictitems:instance[key]=dictitems[key] return instance def construct_python_object_new(self,suffix,node):return self.construct_python_object_apply(suffix,node,newobj=_C) Constructor.add_constructor('tag:yaml.org,2002:python/none',Constructor.construct_yaml_null) Constructor.add_constructor('tag:yaml.org,2002:python/bool',Constructor.construct_yaml_bool) Constructor.add_constructor('tag:yaml.org,2002:python/str',Constructor.construct_python_str) Constructor.add_constructor('tag:yaml.org,2002:python/unicode',Constructor.construct_python_unicode) if PY3:Constructor.add_constructor('tag:yaml.org,2002:python/bytes',Constructor.construct_python_bytes) Constructor.add_constructor('tag:yaml.org,2002:python/int',Constructor.construct_yaml_int) Constructor.add_constructor('tag:yaml.org,2002:python/long',Constructor.construct_python_long) Constructor.add_constructor('tag:yaml.org,2002:python/float',Constructor.construct_yaml_float) Constructor.add_constructor('tag:yaml.org,2002:python/complex',Constructor.construct_python_complex) Constructor.add_constructor('tag:yaml.org,2002:python/list',Constructor.construct_yaml_seq) Constructor.add_constructor('tag:yaml.org,2002:python/tuple',Constructor.construct_python_tuple) Constructor.add_constructor('tag:yaml.org,2002:python/dict',Constructor.construct_yaml_map) Constructor.add_multi_constructor('tag:yaml.org,2002:python/name:',Constructor.construct_python_name) Constructor.add_multi_constructor('tag:yaml.org,2002:python/module:',Constructor.construct_python_module) Constructor.add_multi_constructor('tag:yaml.org,2002:python/object:',Constructor.construct_python_object) Constructor.add_multi_constructor('tag:yaml.org,2002:python/object/apply:',Constructor.construct_python_object_apply) Constructor.add_multi_constructor('tag:yaml.org,2002:python/object/new:',Constructor.construct_python_object_new) class RoundTripConstructor(SafeConstructor): def construct_scalar(self,node): A='\x07' if not isinstance(node,ScalarNode):raise ConstructorError(_A,_A,_g%node.id,node.start_mark) if node.style=='|'and isinstance(node.value,text_type): lss=LiteralScalarString(node.value,anchor=node.anchor) if node.comment and node.comment[1]:lss.comment=node.comment[1][0] return lss if node.style=='>'and isinstance(node.value,text_type): fold_positions=[];idx=-1 while _C: idx=node.value.find(A,idx+1) if idx<0:break fold_positions.append(idx-len(fold_positions)) fss=FoldedScalarString(node.value.replace(A,''),anchor=node.anchor) if node.comment and node.comment[1]:fss.comment=node.comment[1][0] if fold_positions:fss.fold_pos=fold_positions return fss elif bool(self._preserve_quotes)and isinstance(node.value,text_type): if node.style=="'":return SingleQuotedScalarString(node.value,anchor=node.anchor) if node.style=='"':return DoubleQuotedScalarString(node.value,anchor=node.anchor) if node.anchor:return PlainScalarString(node.value,anchor=node.anchor) return node.value def construct_yaml_int(self,node): width=_A;value_su=to_str(self.construct_scalar(node)) try:sx=value_su.rstrip(_D);underscore=[len(sx)-sx.rindex(_D)-1,_B,_B] except ValueError:underscore=_A except IndexError:underscore=_A value_s=value_su.replace(_D,'');sign=+1 if value_s[0]==_J:sign=-1 if value_s[0]in _M:value_s=value_s[1:] if value_s==_F:return 0 elif value_s.startswith('0b'): if self.resolver.processing_version>(1,1)and value_s[2]==_F:width=len(value_s[2:]) if underscore is not _A:underscore[1]=value_su[2]==_D;underscore[2]=len(value_su[2:])>1 and value_su[-1]==_D return BinaryInt(sign*int(value_s[2:],2),width=width,underscore=underscore,anchor=node.anchor) elif value_s.startswith('0x'): if self.resolver.processing_version>(1,1)and value_s[2]==_F:width=len(value_s[2:]) hex_fun=HexInt for ch in value_s[2:]: if ch in'ABCDEF':hex_fun=HexCapsInt;break if ch in'abcdef':break if underscore is not _A:underscore[1]=value_su[2]==_D;underscore[2]=len(value_su[2:])>1 and value_su[-1]==_D return hex_fun(sign*int(value_s[2:],16),width=width,underscore=underscore,anchor=node.anchor) elif value_s.startswith('0o'): if self.resolver.processing_version>(1,1)and value_s[2]==_F:width=len(value_s[2:]) if underscore is not _A:underscore[1]=value_su[2]==_D;underscore[2]=len(value_su[2:])>1 and value_su[-1]==_D return OctalInt(sign*int(value_s[2:],8),width=width,underscore=underscore,anchor=node.anchor) elif self.resolver.processing_version!=(1,2)and value_s[0]==_F:return sign*int(value_s,8) elif self.resolver.processing_version!=(1,2)and _G in value_s: digits=[int(part)for part in value_s.split(_G)];digits.reverse();base=1;value=0 for digit in digits:value+=digit*base;base*=60 return sign*value elif self.resolver.processing_version>(1,1)and value_s[0]==_F: if underscore is not _A:underscore[2]=len(value_su)>1 and value_su[-1]==_D return ScalarInt(sign*int(value_s),width=len(value_s),underscore=underscore) elif underscore:underscore[2]=len(value_su)>1 and value_su[-1]==_D;return ScalarInt(sign*int(value_s),width=_A,underscore=underscore,anchor=node.anchor) elif node.anchor:return ScalarInt(sign*int(value_s),width=_A,anchor=node.anchor) else:return sign*int(value_s) def construct_yaml_float(self,node): A='E' def leading_zeros(v): lead0=0;idx=0 while idx<len(v)and v[idx]in'0.': if v[idx]==_F:lead0+=1 idx+=1 return lead0 m_sign=_B;value_so=to_str(self.construct_scalar(node));value_s=value_so.replace(_D,'').lower();sign=+1 if value_s[0]==_J:sign=-1 if value_s[0]in _M:m_sign=value_s[0];value_s=value_s[1:] if value_s==_p:return sign*self.inf_value if value_s==_q:return self.nan_value if self.resolver.processing_version!=(1,2)and _G in value_s: digits=[float(part)for part in value_s.split(_G)];digits.reverse();base=1;value=0.0 for digit in digits:value+=digit*base;base*=60 return sign*value if _N in value_s: try:mantissa,exponent=value_so.split(_N);exp=_N except ValueError:mantissa,exponent=value_so.split(A);exp=A if self.resolver.processing_version!=(1,2): if _H not in mantissa:warnings.warn(MantissaNoDotYAML1_1Warning(node,value_so)) lead0=leading_zeros(mantissa);width=len(mantissa);prec=mantissa.find(_H) if m_sign:width-=1 e_width=len(exponent);e_sign=exponent[0]in _M;return ScalarFloat(sign*float(value_s),width=width,prec=prec,m_sign=m_sign,m_lead0=lead0,exp=exp,e_width=e_width,e_sign=e_sign,anchor=node.anchor) width=len(value_so);prec=value_so.index(_H);lead0=leading_zeros(value_so);return ScalarFloat(sign*float(value_s),width=width,prec=prec,m_sign=m_sign,m_lead0=lead0,anchor=node.anchor) def construct_yaml_str(self,node): value=self.construct_scalar(node) if isinstance(value,ScalarString):return value if PY3:return value try:return value.encode(_S) except AttributeError:return value except UnicodeEncodeError:return value def construct_rt_sequence(self,node,seqtyp,deep=_B): if not isinstance(node,SequenceNode):raise ConstructorError(_A,_A,_h%node.id,node.start_mark) ret_val=[] if node.comment: seqtyp._yaml_add_comment(node.comment[:2]) if len(node.comment)>2:seqtyp.yaml_end_comment_extend(node.comment[2],clear=_C) if node.anchor: from dynaconf.vendor.ruamel.yaml.serializer import templated_id if not templated_id(node.anchor):seqtyp.yaml_set_anchor(node.anchor) for (idx,child) in enumerate(node.value): if child.comment:seqtyp._yaml_add_comment(child.comment,key=idx);child.comment=_A ret_val.append(self.construct_object(child,deep=deep));seqtyp._yaml_set_idx_line_col(idx,[child.start_mark.line,child.start_mark.column]) return ret_val def flatten_mapping(self,node): def constructed(value_node): if value_node in self.constructed_objects:value=self.constructed_objects[value_node] else:value=self.construct_object(value_node,deep=_B) return value merge_map_list=[];index=0 while index<len(node.value): key_node,value_node=node.value[index] if key_node.tag==_k: if merge_map_list: if self.allow_duplicate_keys:del node.value[index];index+=1;continue args=[_E,node.start_mark,_Y.format(key_node.value),key_node.start_mark,_l,_m] if self.allow_duplicate_keys is _A:warnings.warn(DuplicateKeyFutureWarning(*args)) else:raise DuplicateKeyError(*args) del node.value[index] if isinstance(value_node,MappingNode):merge_map_list.append((index,constructed(value_node))) elif isinstance(value_node,SequenceNode): for subnode in value_node.value: if not isinstance(subnode,MappingNode):raise ConstructorError(_E,node.start_mark,_n%subnode.id,subnode.start_mark) merge_map_list.append((index,constructed(subnode))) else:raise ConstructorError(_E,node.start_mark,_o%value_node.id,value_node.start_mark) elif key_node.tag==_Z:key_node.tag=_R;index+=1 else:index+=1 return merge_map_list def _sentinel(self):0 def construct_mapping(self,node,maptyp,deep=_B): if not isinstance(node,MappingNode):raise ConstructorError(_A,_A,_P%node.id,node.start_mark) merge_map=self.flatten_mapping(node) if node.comment: maptyp._yaml_add_comment(node.comment[:2]) if len(node.comment)>2:maptyp.yaml_end_comment_extend(node.comment[2],clear=_C) if node.anchor: from dynaconf.vendor.ruamel.yaml.serializer import templated_id if not templated_id(node.anchor):maptyp.yaml_set_anchor(node.anchor) last_key,last_value=_A,self._sentinel for (key_node,value_node) in node.value: key=self.construct_object(key_node,deep=_C) if not isinstance(key,Hashable): if isinstance(key,MutableSequence): key_s=CommentedKeySeq(key) if key_node.flow_style is _C:key_s.fa.set_flow_style() elif key_node.flow_style is _B:key_s.fa.set_block_style() key=key_s elif isinstance(key,MutableMapping): key_m=CommentedKeyMap(key) if key_node.flow_style is _C:key_m.fa.set_flow_style() elif key_node.flow_style is _B:key_m.fa.set_block_style() key=key_m if PY2: try:hash(key) except TypeError as exc:raise ConstructorError(_E,node.start_mark,_W%exc,key_node.start_mark) elif not isinstance(key,Hashable):raise ConstructorError(_E,node.start_mark,_X,key_node.start_mark) value=self.construct_object(value_node,deep=deep) if self.check_mapping_key(node,key_node,maptyp,key,value): if key_node.comment and len(key_node.comment)>4 and key_node.comment[4]: if last_value is _A:key_node.comment[0]=key_node.comment.pop(4);maptyp._yaml_add_comment(key_node.comment,value=last_key) else:key_node.comment[2]=key_node.comment.pop(4);maptyp._yaml_add_comment(key_node.comment,key=key) key_node.comment=_A if key_node.comment:maptyp._yaml_add_comment(key_node.comment,key=key) if value_node.comment:maptyp._yaml_add_comment(value_node.comment,value=key) maptyp._yaml_set_kv_line_col(key,[key_node.start_mark.line,key_node.start_mark.column,value_node.start_mark.line,value_node.start_mark.column]);maptyp[key]=value;last_key,last_value=key,value if merge_map:maptyp.add_yaml_merge(merge_map) def construct_setting(self,node,typ,deep=_B): if not isinstance(node,MappingNode):raise ConstructorError(_A,_A,_P%node.id,node.start_mark) if node.comment: typ._yaml_add_comment(node.comment[:2]) if len(node.comment)>2:typ.yaml_end_comment_extend(node.comment[2],clear=_C) if node.anchor: from dynaconf.vendor.ruamel.yaml.serializer import templated_id if not templated_id(node.anchor):typ.yaml_set_anchor(node.anchor) for (key_node,value_node) in node.value: key=self.construct_object(key_node,deep=_C) if not isinstance(key,Hashable): if isinstance(key,list):key=tuple(key) if PY2: try:hash(key) except TypeError as exc:raise ConstructorError(_E,node.start_mark,_W%exc,key_node.start_mark) elif not isinstance(key,Hashable):raise ConstructorError(_E,node.start_mark,_X,key_node.start_mark) value=self.construct_object(value_node,deep=deep);self.check_set_key(node,key_node,typ,key) if key_node.comment:typ._yaml_add_comment(key_node.comment,key=key) if value_node.comment:typ._yaml_add_comment(value_node.comment,value=key) typ.add(key) def construct_yaml_seq(self,node): data=CommentedSeq();data._yaml_set_line_col(node.start_mark.line,node.start_mark.column) if node.comment:data._yaml_add_comment(node.comment) yield data;data.extend(self.construct_rt_sequence(node,data));self.set_collection_style(data,node) def construct_yaml_map(self,node):data=CommentedMap();data._yaml_set_line_col(node.start_mark.line,node.start_mark.column);yield data;self.construct_mapping(node,data,deep=_C);self.set_collection_style(data,node) def set_collection_style(self,data,node): if len(data)==0:return if node.flow_style is _C:data.fa.set_flow_style() elif node.flow_style is _B:data.fa.set_block_style() def construct_yaml_object(self,node,cls): data=cls.__new__(cls);yield data if hasattr(data,_V):state=SafeConstructor.construct_mapping(self,node,deep=_C);data.__setstate__(state) else:state=SafeConstructor.construct_mapping(self,node);data.__dict__.update(state) def construct_yaml_omap(self,node): omap=CommentedOrderedMap();omap._yaml_set_line_col(node.start_mark.line,node.start_mark.column) if node.flow_style is _C:omap.fa.set_flow_style() elif node.flow_style is _B:omap.fa.set_block_style() yield omap if node.comment: omap._yaml_add_comment(node.comment[:2]) if len(node.comment)>2:omap.yaml_end_comment_extend(node.comment[2],clear=_C) if not isinstance(node,SequenceNode):raise ConstructorError(_L,node.start_mark,_b%node.id,node.start_mark) for subnode in node.value: if not isinstance(subnode,MappingNode):raise ConstructorError(_L,node.start_mark,_c%subnode.id,subnode.start_mark) if len(subnode.value)!=1:raise ConstructorError(_L,node.start_mark,_d%len(subnode.value),subnode.start_mark) key_node,value_node=subnode.value[0];key=self.construct_object(key_node);assert key not in omap;value=self.construct_object(value_node) if key_node.comment:omap._yaml_add_comment(key_node.comment,key=key) if subnode.comment:omap._yaml_add_comment(subnode.comment,key=key) if value_node.comment:omap._yaml_add_comment(value_node.comment,value=key) omap[key]=value def construct_yaml_set(self,node):data=CommentedSet();data._yaml_set_line_col(node.start_mark.line,node.start_mark.column);yield data;self.construct_setting(node,data) def construct_undefined(self,node): try: if isinstance(node,MappingNode): data=CommentedMap();data._yaml_set_line_col(node.start_mark.line,node.start_mark.column) if node.flow_style is _C:data.fa.set_flow_style() elif node.flow_style is _B:data.fa.set_block_style() data.yaml_set_tag(node.tag);yield data if node.anchor:data.yaml_set_anchor(node.anchor) self.construct_mapping(node,data);return elif isinstance(node,ScalarNode): data2=TaggedScalar();data2.value=self.construct_scalar(node);data2.style=node.style;data2.yaml_set_tag(node.tag);yield data2 if node.anchor:data2.yaml_set_anchor(node.anchor,always_dump=_C) return elif isinstance(node,SequenceNode): data3=CommentedSeq();data3._yaml_set_line_col(node.start_mark.line,node.start_mark.column) if node.flow_style is _C:data3.fa.set_flow_style() elif node.flow_style is _B:data3.fa.set_block_style() data3.yaml_set_tag(node.tag);yield data3 if node.anchor:data3.yaml_set_anchor(node.anchor) data3.extend(self.construct_sequence(node));return except:pass raise ConstructorError(_A,_A,_z%utf8(node.tag),node.start_mark) def construct_yaml_timestamp(self,node,values=_A): B='t';A='tz' try:match=self.timestamp_regexp.match(node.value) except TypeError:match=_A if match is _A:raise ConstructorError(_A,_A,_t.format(node.value),node.start_mark) values=match.groupdict() if not values[_T]:return SafeConstructor.construct_yaml_timestamp(self,node,values) for part in [B,_K,_U,_O]: if values[part]:break else:return SafeConstructor.construct_yaml_timestamp(self,node,values) year=int(values[_u]);month=int(values[_v]);day=int(values[_w]);hour=int(values[_T]);minute=int(values[_x]);second=int(values[_y]);fraction=0 if values[_I]: fraction_s=values[_I][:6] while len(fraction_s)<6:fraction_s+=_F fraction=int(fraction_s) if len(values[_I])>6 and int(values[_I][6])>4:fraction+=1 delta=_A if values[_K]: tz_hour=int(values[_U]);minutes=values[_O];tz_minute=int(minutes)if minutes else 0;delta=datetime.timedelta(hours=tz_hour,minutes=tz_minute) if values[_K]==_J:delta=-delta if delta: dt=datetime.datetime(year,month,day,hour,minute);dt-=delta;data=TimeStamp(dt.year,dt.month,dt.day,dt.hour,dt.minute,second,fraction);data._yaml['delta']=delta;tz=values[_K]+values[_U] if values[_O]:tz+=_G+values[_O] data._yaml[A]=tz else: data=TimeStamp(year,month,day,hour,minute,second,fraction) if values[A]:data._yaml[A]=values[A] if values[B]:data._yaml[B]=_C return data def construct_yaml_bool(self,node): b=SafeConstructor.construct_yaml_bool(self,node) if node.anchor:return ScalarBoolean(b,anchor=node.anchor) return b RoundTripConstructor.add_constructor(_A0,RoundTripConstructor.construct_yaml_null) RoundTripConstructor.add_constructor(_A1,RoundTripConstructor.construct_yaml_bool) RoundTripConstructor.add_constructor(_A2,RoundTripConstructor.construct_yaml_int) RoundTripConstructor.add_constructor(_A3,RoundTripConstructor.construct_yaml_float) RoundTripConstructor.add_constructor(_A4,RoundTripConstructor.construct_yaml_binary) RoundTripConstructor.add_constructor(_A5,RoundTripConstructor.construct_yaml_timestamp) RoundTripConstructor.add_constructor(_A6,RoundTripConstructor.construct_yaml_omap) RoundTripConstructor.add_constructor(_A7,RoundTripConstructor.construct_yaml_pairs) RoundTripConstructor.add_constructor(_A8,RoundTripConstructor.construct_yaml_set) RoundTripConstructor.add_constructor(_R,RoundTripConstructor.construct_yaml_str) RoundTripConstructor.add_constructor(_A9,RoundTripConstructor.construct_yaml_seq) RoundTripConstructor.add_constructor(_AA,RoundTripConstructor.construct_yaml_map) RoundTripConstructor.add_constructor(_A,RoundTripConstructor.construct_undefined)
rochacbruno/dynaconf
dynaconf/vendor/ruamel/yaml/constructor.py
Python
mit
40,855
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ru" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About S</source> <translation>О S</translation> </message> <message> <location line="+39"/> <source>&lt;b&gt;S&lt;/b&gt; version</source> <translation>&lt;b&gt;S&lt;/b&gt; версия</translation> </message> <message> <location line="+41"/> <source>Copyright © 2009-2014 The Bitcoin developers Copyright © 2012-2014 The NovaCoin developers Copyright © 2014 The S developers</source> <translation>Все права защищены © 2009-2014 Разработчики Bitcoin Все права защищены © 2012-2014 Разработчики NovaCoin Все права защищены © 2014 Разработчики S</translation> </message> <message> <location line="+15"/> <source> This is experimental software. Distributed under the MIT/X11 software license, see the accompanying file COPYING or &lt;a href=&quot;http://www.opensource.org/licenses/mit-license.php&quot;&gt;http://www.opensource.org/licenses/mit-license.php&lt;/a&gt;. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (&lt;a href=&quot;https://www.openssl.org/&quot;&gt;https://www.openssl.org/&lt;/a&gt;) and cryptographic software written by Eric Young (&lt;a href=&quot;mailto:[email protected]&quot;&gt;[email protected]&lt;/a&gt;) and UPnP software written by Thomas Bernard.</source> <translation type="unfinished"/> </message> </context> <context> <name>AddressBookPage</name> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>Address Book</source> <translation>Адресная книга</translation> </message> <message> <location line="+22"/> <source>Double-click to edit address or label</source> <translation>Для того, чтобы изменить адрес или метку давжды кликните по изменяемому объекту</translation> </message> <message> <location line="+24"/> <source>Create a new address</source> <translation>Создать новый адрес</translation> </message> <message> <location line="+10"/> <source>Copy the currently selected address to the system clipboard</source> <translation>Копировать текущий выделенный адрес в буфер обмена</translation> </message> <message> <location line="-7"/> <source>&amp;New Address</source> <translation>&amp;Новый адрес</translation> </message> <message> <location line="-43"/> <source>These are your S addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source> <translation>Это Ваши адреса для получения платежей. Вы можете дать разные адреса отправителям, чтобы отслеживать, кто именно вам платит.</translation> </message> <message> <location line="+53"/> <source>&amp;Copy Address</source> <translation>&amp;Копировать адрес</translation> </message> <message> <location line="+7"/> <source>Show &amp;QR Code</source> <translation>Показать &amp;QR код</translation> </message> <message> <location line="+7"/> <source>Sign a message to prove you own a S address</source> <translation>Подписать сообщение, чтобы доказать владение адресом S</translation> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation>&amp;Подписать сообщение</translation> </message> <message> <location line="+17"/> <source>Delete the currently selected address from the list</source> <translation>Удалить выбранный адрес из списка</translation> </message> <message> <location line="-10"/> <source>Verify a message to ensure it was signed with a specified S address</source> <translation>Проверить сообщение, чтобы убедиться, что оно было подписано указанным адресом S</translation> </message> <message> <location line="+3"/> <source>&amp;Verify Message</source> <translation>&amp;Проверить сообщение</translation> </message> <message> <location line="+10"/> <source>&amp;Delete</source> <translation>&amp;Удалить</translation> </message> <message> <location filename="../addressbookpage.cpp" line="+66"/> <source>Copy &amp;Label</source> <translation>Копировать &amp;метку</translation> </message> <message> <location line="+1"/> <source>&amp;Edit</source> <translation>&amp;Правка</translation> </message> <message> <location line="+248"/> <source>Export Address Book Data</source> <translation>Экспортировать адресную книгу</translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>Текст, разделённый запятыми (*.csv)</translation> </message> <message> <location line="+13"/> <source>Error exporting</source> <translation>Ошибка экспорта</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>Невозможно записать в файл %1.</translation> </message> </context> <context> <name>AddressTableModel</name> <message> <location filename="../addresstablemodel.cpp" line="+145"/> <source>Label</source> <translation>Метка</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Адрес</translation> </message> <message> <location line="+36"/> <source>(no label)</source> <translation>[нет метки]</translation> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <location filename="../forms/askpassphrasedialog.ui" line="+26"/> <source>Passphrase Dialog</source> <translation>Диалог ввода пароля</translation> </message> <message> <location line="+21"/> <source>Enter passphrase</source> <translation>Введите пароль</translation> </message> <message> <location line="+14"/> <source>New passphrase</source> <translation>Новый пароль</translation> </message> <message> <location line="+14"/> <source>Repeat new passphrase</source> <translation>Повторите новый пароль</translation> </message> <message> <location line="+33"/> <source>Serves to disable the trivial sendmoney when OS account compromised. Provides no real security.</source> <translation>Служит для предотвращения тривиальной отправки монет, если ваша система скомпрометирована. Не предоставляет реальной безопасности.</translation> </message> <message> <location line="+3"/> <source>For staking only</source> <translation>Только для участия в доле</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="+38"/> <source>Encrypt wallet</source> <translation>Зашифровать бумажник</translation> </message> <message> <location line="+7"/> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation>Для выполнения операции требуется пароль вашего бумажника.</translation> </message> <message> <location line="+5"/> <source>Unlock wallet</source> <translation>Разблокировать бумажник</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation>Для выполнения операции требуется пароль вашего бумажника.</translation> </message> <message> <location line="+5"/> <source>Decrypt wallet</source> <translation>Расшифровать бумажник</translation> </message> <message> <location line="+3"/> <source>Change passphrase</source> <translation>Сменить пароль</translation> </message> <message> <location line="+1"/> <source>Enter the old and new passphrase to the wallet.</source> <translation>Введите старый и новый пароль для бумажника.</translation> </message> <message> <location line="+45"/> <source>Confirm wallet encryption</source> <translation>Подтвердите шифрование бумажника</translation> </message> <message> <location line="+1"/> <source>Warning: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR COINS&lt;/b&gt;!</source> <translation>Внимание: если вы зашифруете бумажник и потеряете пароль, вы &lt;b&gt;ПОТЕРЯЕТЕ ВСЕ ВАШИ МОНЕТЫ&lt;/b&gt;!</translation> </message> <message> <location line="+0"/> <source>Are you sure you wish to encrypt your wallet?</source> <translation>Вы уверены, что хотите зашифровать ваш бумажник?</translation> </message> <message> <location line="+15"/> <source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source> <translation>ВАЖНО: все предыдущие резервные копии вашего кошелька должны быть заменены новым зашифрованным файлом. В целях безопасности предыдущие резервные копии нешифрованного кошелька станут бесполезны, как только вы начнёте использовать новый шифрованный кошелёк.</translation> </message> <message> <location line="+103"/> <location line="+24"/> <source>Warning: The Caps Lock key is on!</source> <translation>Внимание: Caps Lock включен!</translation> </message> <message> <location line="-133"/> <location line="+60"/> <source>Wallet encrypted</source> <translation>Бумажник зашифрован</translation> </message> <message> <location line="-140"/> <source>Enter the new passphrase to the wallet.&lt;br/&gt;Please use a passphrase of &lt;b&gt;ten or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.</source> <translation type="unfinished"/> </message> <message> <location line="+82"/> <source>S will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your coins from being stolen by malware infecting your computer.</source> <translation>Сейчас программа закроется для завершения процесса шифрования. Помните, что шифрование вашего бумажника не может полностью защитить ваши монеты от кражи с помощью инфицирования вашего компьютера вредоносным ПО.</translation> </message> <message> <location line="+13"/> <location line="+7"/> <location line="+44"/> <location line="+6"/> <source>Wallet encryption failed</source> <translation>Не удалось зашифровать бумажник</translation> </message> <message> <location line="-56"/> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation>Шифрование бумажника не удалось из-за внутренней ошибки. Ваш бумажник не был зашифрован.</translation> </message> <message> <location line="+7"/> <location line="+50"/> <source>The supplied passphrases do not match.</source> <translation>Введённые пароли не совпадают.</translation> </message> <message> <location line="-38"/> <source>Wallet unlock failed</source> <translation>Разблокировка бумажника не удалась</translation> </message> <message> <location line="+1"/> <location line="+12"/> <location line="+19"/> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation>Указанный пароль не подходит.</translation> </message> <message> <location line="-20"/> <source>Wallet decryption failed</source> <translation>Расшифрование бумажника не удалось</translation> </message> <message> <location line="+14"/> <source>Wallet passphrase was successfully changed.</source> <translation>Пароль бумажника успешно изменён.</translation> </message> </context> <context> <name>BitcoinGUI</name> <message> <location filename="../bitcoingui.cpp" line="+297"/> <source>Sign &amp;message...</source> <translation>&amp;Подписать сообщение</translation> </message> <message> <location line="-64"/> <source>Show general overview of wallet</source> <translation>Показать общий обзор действий с бумажником</translation> </message> <message> <location line="+17"/> <source>&amp;Transactions</source> <translation>&amp;Транзакции</translation> </message> <message> <location line="+1"/> <source>Browse transaction history</source> <translation>Показать историю транзакций</translation> </message> <message> <location line="+5"/> <source>&amp;Address Book</source> <translation>&amp;Адресная книга</translation> </message> <message> <location line="+1"/> <source>Edit the list of stored addresses and labels</source> <translation>Изменить список сохранённых адресов и меток к ним</translation> </message> <message> <location line="-18"/> <source>Show the list of addresses for receiving payments</source> <translation>Показать список адресов для получения платежей</translation> </message> <message> <location line="+34"/> <source>E&amp;xit</source> <translation>В&amp;ыход</translation> </message> <message> <location line="+1"/> <source>Quit application</source> <translation>Закрыть приложение</translation> </message> <message> <location line="+4"/> <source>Show information about S</source> <translation>Показать информацию о S&apos;е</translation> </message> <message> <location line="+2"/> <source>About &amp;Qt</source> <translation>О &amp;Qt</translation> </message> <message> <location line="+1"/> <source>Show information about Qt</source> <translation>Показать информацию о Qt</translation> </message> <message> <location line="+2"/> <source>&amp;Options...</source> <translation>Оп&amp;ции...</translation> </message> <message> <location line="+4"/> <source>&amp;Encrypt Wallet...</source> <translation>&amp;Зашифровать бумажник</translation> </message> <message> <location line="+2"/> <source>&amp;Backup Wallet...</source> <translation>&amp;Сделать резервную копию бумажника</translation> </message> <message> <location line="+2"/> <source>&amp;Change Passphrase...</source> <translation>&amp;Изменить пароль</translation> </message> <message> <location line="+9"/> <source>&amp;Export...</source> <translation>&amp;Экспорт...</translation> </message> <message> <location line="-55"/> <source>Send coins to a S address</source> <translation>Отправить монеты на указанный адрес S</translation> </message> <message> <location line="+39"/> <source>Modify configuration options for S</source> <translation>Изменить параметры конфигурации S</translation> </message> <message> <location line="+17"/> <source>Export the data in the current tab to a file</source> <translation>Экспортировать данные из вкладки в файл</translation> </message> <message> <location line="-13"/> <source>Encrypt or decrypt wallet</source> <translation>Зашифровать или расшифровать бумажник</translation> </message> <message> <location line="+2"/> <source>Backup wallet to another location</source> <translation>Сделать резервную копию бумажника в другом месте</translation> </message> <message> <location line="+2"/> <source>Change the passphrase used for wallet encryption</source> <translation>Изменить пароль шифрования бумажника</translation> </message> <message> <location line="+10"/> <source>&amp;Debug window</source> <translation>&amp;Окно отладки</translation> </message> <message> <location line="+1"/> <source>Open debugging and diagnostic console</source> <translation>Открыть консоль отладки и диагностики</translation> </message> <message> <location line="-5"/> <source>&amp;Verify message...</source> <translation>&amp;Проверить сообщение...</translation> </message> <message> <location line="-214"/> <location line="+555"/> <source>S</source> <translation>S</translation> </message> <message> <location line="-555"/> <source>Wallet</source> <translation>Бумажник</translation> </message> <message> <location line="+193"/> <source>&amp;About S</source> <translation>&amp;О S</translation> </message> <message> <location line="+9"/> <source>&amp;Show / Hide</source> <translation>&amp;Показать / Скрыть</translation> </message> <message> <location line="+8"/> <source>Unlock wallet</source> <translation>Разблокировать бумажник</translation> </message> <message> <location line="+1"/> <source>&amp;Lock Wallet</source> <translation>&amp;Заблокировать бумажник</translation> </message> <message> <location line="+1"/> <source>Lock wallet</source> <translation>Заблокировать бумажник</translation> </message> <message> <location line="+32"/> <source>&amp;File</source> <translation>&amp;Файл</translation> </message> <message> <location line="+8"/> <source>&amp;Settings</source> <translation>&amp;Настройки</translation> </message> <message> <location line="+8"/> <source>&amp;Help</source> <translation>&amp;Помощь</translation> </message> <message> <location line="+17"/> <source>Tabs toolbar</source> <translation>Панель вкладок</translation> </message> <message> <location line="+46"/> <location line="+9"/> <source>[testnet]</source> <translation>[тестовая сеть]</translation> </message> <message> <location line="+0"/> <location line="+58"/> <source>S client</source> <translation>S клиент</translation> </message> <message numerus="yes"> <location line="+70"/> <source>%n active connection(s) to S network</source> <translation><numerusform>%n активное соединение с сетью</numerusform><numerusform>%n активных соединений с сетью</numerusform><numerusform>%n активных соединений с сетью</numerusform><numerusform>%n активных соединений с сетью</numerusform></translation> </message> <message> <location line="+488"/> <source>Staking.&lt;br&gt;Your weight is %1&lt;br&gt;Network weight is %2&lt;br&gt;Expected time to earn reward is %3</source> <translation>Участвуем в доле.&lt;br&gt;Ваш вес %1&lt;br&gt;Вес сети %2&lt;br&gt;Ожидаемое время получения награды %3</translation> </message> <message> <location line="+6"/> <source>Not staking because wallet is locked</source> <translation>Не участвуем в доле, так как кошелёк заблокирован</translation> </message> <message> <location line="+2"/> <source>Not staking because wallet is offline</source> <translation>Не участвуем в доле, так как кошелёк оффлайн</translation> </message> <message> <location line="+2"/> <source>Not staking because wallet is syncing</source> <translation>Не участвуем в доле, так как кошелёк синхронизируется</translation> </message> <message> <location line="+2"/> <source>Not staking because you don&apos;t have mature coins</source> <translation>Не участвуем в доле, так как нет зрелых монет</translation> </message> <message> <location line="-812"/> <source>&amp;Dashboard</source> <translation>&amp;Обзор</translation> </message> <message> <location line="+6"/> <source>&amp;Receive</source> <translation>&amp;Получение</translation> </message> <message> <location line="+6"/> <source>&amp;Send</source> <translation>Отп&amp;равка</translation> </message> <message> <location line="+49"/> <source>&amp;Unlock Wallet...</source> <translation>&amp;Разблокировать бумажник</translation> </message> <message> <location line="+277"/> <source>Up to date</source> <translation>Синхронизировано</translation> </message> <message> <location line="+43"/> <source>Catching up...</source> <translation>Синхронизируется...</translation> </message> <message> <location line="+113"/> <source>Confirm transaction fee</source> <translation>Подтвердите комиссию</translation> </message> <message> <location line="+27"/> <source>Sent transaction</source> <translation>Исходящая транзакция</translation> </message> <message> <location line="+1"/> <source>Incoming transaction</source> <translation>Входящая транзакция</translation> </message> <message> <location line="+1"/> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation>Дата: %1 Количество: %2 Тип: %3 Адрес: %4 </translation> </message> <message> <location line="+100"/> <location line="+15"/> <source>URI handling</source> <translation>Обработка URI</translation> </message> <message> <location line="-15"/> <location line="+15"/> <source>URI can not be parsed! This can be caused by an invalid S address or malformed URI parameters.</source> <translation>Не удалось обработать URI! Это может быть связано с неверным адресом S или неправильными параметрами URI.</translation> </message> <message> <location line="+9"/> <source>Wallet is &lt;b&gt;not encrypted&lt;/b&gt;</source> <translation>Бумажник &lt;b&gt;не зашифрован&lt;/b&gt;</translation> </message> <message> <location line="+8"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt;</source> <translation>Бумажник &lt;b&gt;зашифрован&lt;/b&gt; и в настоящее время &lt;b&gt;разблокирован&lt;/b&gt;</translation> </message> <message> <location line="+8"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;locked&lt;/b&gt;</source> <translation>Бумажник &lt;b&gt;зашифрован&lt;/b&gt; и в настоящее время &lt;b&gt;заблокирован&lt;/b&gt;</translation> </message> <message> <location line="+24"/> <source>Backup Wallet</source> <translation>Сделать резервную копию бумажника</translation> </message> <message> <location line="+0"/> <source>Wallet Data (*.dat)</source> <translation>Данные бумажника (*.dat)</translation> </message> <message> <location line="+3"/> <source>Backup Failed</source> <translation>Резервное копирование не удалось</translation> </message> <message> <location line="+0"/> <source>There was an error trying to save the wallet data to the new location.</source> <translation>При попытке сохранения данных бумажника в новое место произошла ошибка.</translation> </message> <message numerus="yes"> <location line="+91"/> <source>%n second(s)</source> <translation><numerusform>%n секунда</numerusform><numerusform>%n секунды</numerusform><numerusform>%n секунд</numerusform><numerusform>%n секунд</numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n minute(s)</source> <translation><numerusform>%n минута</numerusform><numerusform>%n минуты</numerusform><numerusform>%n минут</numerusform><numerusform>%n минут</numerusform></translation> </message> <message numerus="yes"> <location line="-429"/> <location line="+433"/> <source>%n hour(s)</source> <translation><numerusform>%n час</numerusform><numerusform>%n часа</numerusform><numerusform>%n часов</numerusform><numerusform>%n часов</numerusform></translation> </message> <message> <location line="-456"/> <source>Processed %1 blocks of transaction history.</source> <translation>Обработано %1 блоков истории транзакций.</translation> </message> <message numerus="yes"> <location line="+27"/> <location line="+433"/> <source>%n day(s)</source> <translation><numerusform>%n день</numerusform><numerusform>%n дня</numerusform><numerusform>%n дней</numerusform><numerusform>%n дней</numerusform></translation> </message> <message numerus="yes"> <location line="-429"/> <location line="+6"/> <source>%n week(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+0"/> <source>%1 and %2</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+0"/> <source>%n year(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+5"/> <source>%1 behind</source> <translation>%1 позади</translation> </message> <message> <location line="+15"/> <source>Last received block was generated %1 ago.</source> <translation>Последний полученный блок был сгенерирован %1 назад.</translation> </message> <message> <location line="+2"/> <source>Transactions after this will not yet be visible.</source> <translation>Транзакции после него пока не будут видны.</translation> </message> <message> <location line="+23"/> <source>Error</source> <translation>Ошибка</translation> </message> <message> <location line="+3"/> <source>Warning</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Information</source> <translation>Информация</translation> </message> <message> <location line="+69"/> <source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source> <translation>Данная транзакция превышает предельно допустимый размер. Но Вы можете всё равно совершить её, добавив комиссию в %1, которая отправится тем узлам, которые обработают Вашу транзакцию, и поможет поддержать сеть. Вы хотите добавить комиссию?</translation> </message> <message> <location line="+324"/> <source>Not staking</source> <translation>Не участвуем в доле</translation> </message> <message> <location filename="../bitcoin.cpp" line="+104"/> <source>A fatal error occurred. S can no longer continue safely and will quit.</source> <translation>Произошла неисправимая ошибка. S не может безопасно продолжать работу и будет закрыт.</translation> </message> </context> <context> <name>ClientModel</name> <message> <location filename="../clientmodel.cpp" line="+110"/> <source>Network Alert</source> <translation>Сетевая Тревога</translation> </message> </context> <context> <name>CoinControlDialog</name> <message> <location filename="../forms/coincontroldialog.ui" line="+14"/> <source>Coin Control</source> <translation>Выбор входов</translation> </message> <message> <location line="+31"/> <source>Quantity:</source> <translation>Количество:</translation> </message> <message> <location line="+32"/> <source>Bytes:</source> <translation>Размер:</translation> </message> <message> <location line="+48"/> <source>Amount:</source> <translation>Сумма:</translation> </message> <message> <location line="+32"/> <source>Priority:</source> <translation>Приоритет:</translation> </message> <message> <location line="+48"/> <source>Fee:</source> <translation>Комиссия:</translation> </message> <message> <location line="+35"/> <source>Low Output:</source> <translation>Мелкие входы:</translation> </message> <message> <location filename="../coincontroldialog.cpp" line="+537"/> <source>no</source> <translation>нет</translation> </message> <message> <location filename="../forms/coincontroldialog.ui" line="+51"/> <source>After Fee:</source> <translation>С комиссией:</translation> </message> <message> <location line="+35"/> <source>Change:</source> <translation>Сдача:</translation> </message> <message> <location line="+69"/> <source>(un)select all</source> <translation>Выбрать все</translation> </message> <message> <location line="+13"/> <source>Tree mode</source> <translation>Дерево</translation> </message> <message> <location line="+16"/> <source>List mode</source> <translation>Список</translation> </message> <message> <location line="+45"/> <source>Amount</source> <translation>Сумма</translation> </message> <message> <location line="+5"/> <source>Label</source> <translation>Метка</translation> </message> <message> <location line="+5"/> <source>Address</source> <translation>Адрес</translation> </message> <message> <location line="+5"/> <source>Date</source> <translation>Дата</translation> </message> <message> <location line="+5"/> <source>Confirmations</source> <translation>Подтверждения</translation> </message> <message> <location line="+3"/> <source>Confirmed</source> <translation>Подтверждено</translation> </message> <message> <location line="+5"/> <source>Priority</source> <translation>Приоритет</translation> </message> <message> <location filename="../coincontroldialog.cpp" line="-500"/> <source>Copy address</source> <translation>Копировать адрес</translation> </message> <message> <location line="+1"/> <source>Copy label</source> <translation>Копировать метку</translation> </message> <message> <location line="+1"/> <location line="+26"/> <source>Copy amount</source> <translation>Копировать сумму</translation> </message> <message> <location line="-25"/> <source>Copy transaction ID</source> <translation>Скопировать ID транзакции</translation> </message> <message> <location line="+24"/> <source>Copy quantity</source> <translation>Копировать количество</translation> </message> <message> <location line="+2"/> <source>Copy fee</source> <translation>Копировать комиссию</translation> </message> <message> <location line="+1"/> <source>Copy after fee</source> <translation>Копировать с комиссией</translation> </message> <message> <location line="+1"/> <source>Copy bytes</source> <translation>Копировать объем</translation> </message> <message> <location line="+1"/> <source>Copy priority</source> <translation>Копировать приоритет</translation> </message> <message> <location line="+1"/> <source>Copy low output</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy change</source> <translation>Копировать сдачу</translation> </message> <message> <location line="+317"/> <source>highest</source> <translation>наивысший</translation> </message> <message> <location line="+1"/> <source>high</source> <translation>высокий</translation> </message> <message> <location line="+1"/> <source>medium-high</source> <translation>выше среднего</translation> </message> <message> <location line="+1"/> <source>medium</source> <translation>средний</translation> </message> <message> <location line="+4"/> <source>low-medium</source> <translation>ниже среднего</translation> </message> <message> <location line="+1"/> <source>low</source> <translation>низкий</translation> </message> <message> <location line="+1"/> <source>lowest</source> <translation>наименьший</translation> </message> <message> <location line="+140"/> <source>DUST</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>yes</source> <translation>да</translation> </message> <message> <location line="+10"/> <source>This label turns red, if the transaction size is bigger than 10000 bytes. This means a fee of at least %1 per kb is required. Can vary +/- 1 Byte per input.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transactions with higher priority get more likely into a block. This label turns red, if the priority is smaller than &quot;medium&quot;. This means a fee of at least %1 per kb is required.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>This label turns red, if any recipient receives an amount smaller than %1. This means a fee of at least %2 is required. Amounts below 0.546 times the minimum relay fee are shown as DUST.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>This label turns red, if the change is smaller than %1. This means a fee of at least %2 is required.</source> <translation type="unfinished"/> </message> <message> <location line="+36"/> <location line="+66"/> <source>(no label)</source> <translation>(нет метки)</translation> </message> <message> <location line="-9"/> <source>change from %1 (%2)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>(change)</source> <translation>(сдача)</translation> </message> </context> <context> <name>EditAddressDialog</name> <message> <location filename="../forms/editaddressdialog.ui" line="+14"/> <source>Edit Address</source> <translation>Изменить адрес</translation> </message> <message> <location line="+11"/> <source>&amp;Label</source> <translation>&amp;Метка</translation> </message> <message> <location line="+10"/> <source>The label associated with this address book entry</source> <translation>Метка, связанная с данной записью</translation> </message> <message> <location line="+7"/> <source>&amp;Address</source> <translation>&amp;Адрес</translation> </message> <message> <location line="+10"/> <source>The address associated with this address book entry. This can only be modified for sending addresses.</source> <translation>Адрес, связанный с данной записью.</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="+21"/> <source>New receiving address</source> <translation>Новый адрес для получения</translation> </message> <message> <location line="+4"/> <source>New sending address</source> <translation>Новый адрес для отправки</translation> </message> <message> <location line="+3"/> <source>Edit receiving address</source> <translation>Изменение адреса для получения</translation> </message> <message> <location line="+4"/> <source>Edit sending address</source> <translation>Изменение адреса для отправки</translation> </message> <message> <location line="+76"/> <source>The entered address &quot;%1&quot; is already in the address book.</source> <translation>Введённый адрес «%1» уже находится в адресной книге.</translation> </message> <message> <location line="-5"/> <source>The entered address &quot;%1&quot; is not a valid S address.</source> <translation>Введённый адрес &quot;%1&quot; не является правильным S-адресом.</translation> </message> <message> <location line="+10"/> <source>Could not unlock wallet.</source> <translation>Не удается разблокировать бумажник.</translation> </message> <message> <location line="+5"/> <source>New key generation failed.</source> <translation>Генерация нового ключа не удалась.</translation> </message> </context> <context> <name>GUIUtil::HelpMessageBox</name> <message> <location filename="../guiutil.cpp" line="+426"/> <location line="+12"/> <source>S-Qt</source> <translation>S-Qt</translation> </message> <message> <location line="-12"/> <source>version</source> <translation>версия</translation> </message> <message> <location line="+2"/> <source>Usage:</source> <translation>Использование:</translation> </message> <message> <location line="+1"/> <source>command-line options</source> <translation>параметры командной строки</translation> </message> <message> <location line="+4"/> <source>UI options</source> <translation>Опции интерфейса</translation> </message> <message> <location line="+1"/> <source>Set language, for example &quot;de_DE&quot; (default: system locale)</source> <translation>Выберите язык, например &quot;de_DE&quot; (по умолчанию: как в системе)</translation> </message> <message> <location line="+1"/> <source>Start minimized</source> <translation>Запускать свёрнутым</translation> </message> <message> <location line="+1"/> <source>Show splash screen on startup (default: 1)</source> <translation>Показывать сплэш при запуске (по умолчанию: 1)</translation> </message> </context> <context> <name>OptionsDialog</name> <message> <location filename="../forms/optionsdialog.ui" line="+14"/> <source>Options</source> <translation>Опции</translation> </message> <message> <location line="+16"/> <source>&amp;Main</source> <translation>&amp;Главная</translation> </message> <message> <location line="+6"/> <source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB. Fee 0.01 recommended.</source> <translation>Опциональная комиссия за каждый КБ транзакции, которая позволяет быть уверенным, что Ваша транзакция будет обработана быстро. Большинство транзакций занимают 1КБ. Рекомендуется комиссия 0.01.</translation> </message> <message> <location line="+15"/> <source>Pay transaction &amp;fee</source> <translation>Заплатить ко&amp;миссию</translation> </message> <message> <location line="+31"/> <source>Reserved amount does not participate in staking and is therefore spendable at any time.</source> <translation>Зарезервированная сумма не участвует в доле, и поэтому может быть потрачена в любое время.</translation> </message> <message> <location line="+15"/> <source>Reserve</source> <translation>Зарезервировать</translation> </message> <message> <location line="+31"/> <source>Automatically start S after logging in to the system.</source> <translation>Автоматически запускать S после входа в систему</translation> </message> <message> <location line="+3"/> <source>&amp;Start S on system login</source> <translation>&amp;Запускать S при входе в систему</translation> </message> <message> <location line="+21"/> <source>&amp;Network</source> <translation>&amp;Сеть</translation> </message> <message> <location line="+6"/> <source>Automatically open the S client port on the router. This only works when your router supports UPnP and it is enabled.</source> <translation>Автоматически открыть порт для S-клиента на роутере. Работает только если Ваш роутер поддерживает UPnP, и данная функция включена.</translation> </message> <message> <location line="+3"/> <source>Map port using &amp;UPnP</source> <translation>Пробросить порт через &amp;UPnP</translation> </message> <message> <location line="+19"/> <source>Proxy &amp;IP:</source> <translation>&amp;IP Прокси: </translation> </message> <message> <location line="+19"/> <source>IP address of the proxy (e.g. 127.0.0.1)</source> <translation>IP-адрес прокси (например 127.0.0.1)</translation> </message> <message> <location line="+7"/> <source>&amp;Port:</source> <translation>По&amp;рт: </translation> </message> <message> <location line="+19"/> <source>Port of the proxy (e.g. 9050)</source> <translation>Порт прокси-сервера (например, 9050)</translation> </message> <message> <location line="-57"/> <source>Connect to the S network through a SOCKS5 proxy (e.g. when connecting through Tor).</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Connect through SOCKS5 proxy:</source> <translation type="unfinished"/> </message> <message> <location line="+90"/> <source>&amp;Window</source> <translation>&amp;Окно</translation> </message> <message> <location line="+6"/> <source>Show only a tray icon after minimizing the window.</source> <translation>Показывать только иконку в системном лотке после сворачивания окна.</translation> </message> <message> <location line="+3"/> <source>&amp;Minimize to the tray instead of the taskbar</source> <translation>&amp;Cворачивать в системный лоток вместо панели задач</translation> </message> <message> <location line="+7"/> <source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source> <translation>Сворачивать вместо закрытия. Если данная опция будет выбрана — приложение закроется только после выбора соответствующего пункта в меню.</translation> </message> <message> <location line="+3"/> <source>M&amp;inimize on close</source> <translation>С&amp;ворачивать при закрытии</translation> </message> <message> <location line="+21"/> <source>&amp;Display</source> <translation>О&amp;тображение</translation> </message> <message> <location line="+8"/> <source>User Interface &amp;language:</source> <translation>&amp;Язык интерфейса:</translation> </message> <message> <location line="+13"/> <source>The user interface language can be set here. This setting will take effect after restarting S.</source> <translation>Здесь можно выбрать язык интерфейса. Настройки вступят в силу после перезапуска S.</translation> </message> <message> <location line="+11"/> <source>&amp;Unit to show amounts in:</source> <translation>&amp;Отображать суммы в единицах: </translation> </message> <message> <location line="+13"/> <source>Choose the default subdivision unit to show in the interface and when sending coins.</source> <translation>Выберите единицу измерения монет при отображении и отправке.</translation> </message> <message> <location line="+9"/> <source>Whether to show coin control features or not.</source> <translation>Выключает и включает отображение панели выбора входов.</translation> </message> <message> <location line="+3"/> <source>Display coin &amp;control features (experts only!)</source> <translation>Управление &amp;входами (только для продвинутых пользователей!)</translation> </message> <message> <location line="+7"/> <source>Whether to select the coin outputs randomly or with minimal coin age.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Minimize weight consumption (experimental)</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Use black visual theme (requires restart)</source> <translation>Использовать чёрную тему оформления (требуется перезапуск)</translation> </message> <message> <location line="+71"/> <source>&amp;OK</source> <translation>О&amp;К</translation> </message> <message> <location line="+7"/> <source>&amp;Cancel</source> <translation>&amp;Отмена</translation> </message> <message> <location line="+10"/> <source>&amp;Apply</source> <translation>&amp;Применить</translation> </message> <message> <location filename="../optionsdialog.cpp" line="+47"/> <source>default</source> <translation>по умолчанию</translation> </message> <message> <location line="+148"/> <location line="+9"/> <source>Warning</source> <translation>Внимание</translation> </message> <message> <location line="-9"/> <location line="+9"/> <source>This setting will take effect after restarting S.</source> <translation>Эта настройка вступит в силу после перезапуска S</translation> </message> <message> <location line="+29"/> <source>The supplied proxy address is invalid.</source> <translation>Адрес прокси неверен.</translation> </message> </context> <context> <name>OverviewPage</name> <message> <location filename="../forms/overviewpage.ui" line="+14"/> <source>Form</source> <translation>Форма</translation> </message> <message> <location line="+46"/> <location line="+247"/> <source>The displayed information may be out of date. Your wallet automatically synchronizes with the S network after a connection is established, but this process has not completed yet.</source> <translation>Отображаемая информация может быть устаревшей. Ваш бумажник автоматически синхронизируется с сетью S после подключения, но этот процесс пока не завершён.</translation> </message> <message> <location line="-173"/> <source>Stake:</source> <translation>Доля:</translation> </message> <message> <location line="+32"/> <source>Unconfirmed:</source> <translation>Не подтверждено:</translation> </message> <message> <location line="-113"/> <source>Wallet</source> <translation>Бумажник</translation> </message> <message> <location line="+49"/> <source>Spendable:</source> <translation>Доступно:</translation> </message> <message> <location line="+16"/> <source>Your current spendable balance</source> <translation>Баланс, доступный в настоящее время</translation> </message> <message> <location line="+80"/> <source>Immature:</source> <translation>Незрелые:</translation> </message> <message> <location line="+13"/> <source>Mined balance that has not yet matured</source> <translation>Баланс добытых монет, который ещё не созрел</translation> </message> <message> <location line="+23"/> <source>Total:</source> <translation>Итого:</translation> </message> <message> <location line="+16"/> <source>Your current total balance</source> <translation>Ваш суммарный баланс</translation> </message> <message> <location line="+50"/> <source>&lt;b&gt;Recent transactions&lt;/b&gt;</source> <translation>&lt;b&gt;Последние транзакции&lt;/b&gt;</translation> </message> <message> <location line="-118"/> <source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source> <translation>Общая сумма всех транзакций, которые до сих пор не подтверждены, и до сих пор не учитываются в текущем балансе</translation> </message> <message> <location line="-32"/> <source>Total of coins that was staked, and do not yet count toward the current balance</source> <translation>Общая сумма всех монет, используемых для Proof-of-Stake, и не учитывающихся на балансе</translation> </message> <message> <location filename="../overviewpage.cpp" line="+116"/> <location line="+1"/> <source>out of sync</source> <translation>не синхронизировано</translation> </message> </context> <context> <name>PaymentServer</name> <message> <location filename="../paymentserver.cpp" line="+107"/> <source>Cannot start S: click-to-pay handler</source> <translation type="unfinished"/> </message> </context> <context> <name>QRCodeDialog</name> <message> <location filename="../forms/qrcodedialog.ui" line="+14"/> <source>QR Code Dialog</source> <translation>Диалог QR-кода</translation> </message> <message> <location line="+59"/> <source>Request Payment</source> <translation>Запросить платёж</translation> </message> <message> <location line="+56"/> <source>Amount:</source> <translation>Количество:</translation> </message> <message> <location line="-44"/> <source>Label:</source> <translation>Метка:</translation> </message> <message> <location line="+19"/> <source>Message:</source> <translation>Сообщение:</translation> </message> <message> <location line="+71"/> <source>&amp;Save As...</source> <translation>&amp;Сохранить как...</translation> </message> <message> <location filename="../qrcodedialog.cpp" line="+62"/> <source>Error encoding URI into QR Code.</source> <translation>Ошибка кодирования URI в QR-код</translation> </message> <message> <location line="+40"/> <source>The entered amount is invalid, please check.</source> <translation>Введено неверное количество, проверьте ещё раз.</translation> </message> <message> <location line="+23"/> <source>Resulting URI too long, try to reduce the text for label / message.</source> <translation>Получившийся URI слишком длинный, попробуйте сократить текст метки / сообщения.</translation> </message> <message> <location line="+25"/> <source>Save QR Code</source> <translation>Сохранить QR-код</translation> </message> <message> <location line="+0"/> <source>PNG Images (*.png)</source> <translation>PNG Изображения (*.png)</translation> </message> </context> <context> <name>RPCConsole</name> <message> <location filename="../forms/rpcconsole.ui" line="+46"/> <source>Client name</source> <translation>Имя клиента</translation> </message> <message> <location line="+10"/> <location line="+23"/> <location line="+26"/> <location line="+23"/> <location line="+23"/> <location line="+36"/> <location line="+53"/> <location line="+23"/> <source>N/A</source> <translation>Н/Д</translation> </message> <message> <location line="-194"/> <source>Client version</source> <translation>Версия клиента</translation> </message> <message> <location line="-45"/> <source>&amp;Information</source> <translation>&amp;Информация</translation> </message> <message> <location line="+68"/> <source>Using OpenSSL version</source> <translation>Используется версия OpenSSL</translation> </message> <message> <location line="+49"/> <source>Startup time</source> <translation>Время запуска</translation> </message> <message> <location line="+29"/> <source>Network</source> <translation>Сеть</translation> </message> <message> <location line="+7"/> <source>Number of connections</source> <translation>Число подключений</translation> </message> <message> <location line="+23"/> <source>On testnet</source> <translation>В тестовой сети</translation> </message> <message> <location line="+23"/> <source>Block chain</source> <translation>Цепь блоков</translation> </message> <message> <location line="+7"/> <source>Current number of blocks</source> <translation>Текущее число блоков</translation> </message> <message> <location line="+197"/> <source>&amp;Network Traffic</source> <translation>Сетевой &amp;трафик</translation> </message> <message> <location line="+52"/> <source>&amp;Clear</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Totals</source> <translation>Всего</translation> </message> <message> <location line="+64"/> <source>In:</source> <translation type="unfinished"/> </message> <message> <location line="+80"/> <source>Out:</source> <translation type="unfinished"/> </message> <message> <location line="-383"/> <source>Last block time</source> <translation>Время последнего блока</translation> </message> <message> <location line="+52"/> <source>&amp;Open</source> <translation>&amp;Открыть</translation> </message> <message> <location line="+16"/> <source>Command-line options</source> <translation>Параметры командной строки</translation> </message> <message> <location line="+7"/> <source>Show the S-Qt help message to get a list with possible S command-line options.</source> <translation>Показать помощь по S-Qt, чтобы получить список доступных параметров командной строки.</translation> </message> <message> <location line="+3"/> <source>&amp;Show</source> <translation>&amp;Показать</translation> </message> <message> <location line="+24"/> <source>&amp;Console</source> <translation>Консоль</translation> </message> <message> <location line="-237"/> <source>Build date</source> <translation>Дата сборки</translation> </message> <message> <location line="-104"/> <source>S - Debug window</source> <translation>S - Окно отладки</translation> </message> <message> <location line="+25"/> <source>S Core</source> <translation>Ядро S</translation> </message> <message> <location line="+256"/> <source>Debug log file</source> <translation>Отладочный лог-файл</translation> </message> <message> <location line="+7"/> <source>Open the S debug log file from the current data directory. This can take a few seconds for large log files.</source> <translation>Открыть отладочный лог-файл S из текущего каталога данных. Это может занять несколько секунд для больших лог-файлов.</translation> </message> <message> <location line="+102"/> <source>Clear console</source> <translation>Очистить консоль</translation> </message> <message> <location filename="../rpcconsole.cpp" line="+325"/> <source>Welcome to the S RPC console.</source> <translation>Добро пожаловать в RPC-консоль S.</translation> </message> <message> <location line="+1"/> <source>Use up and down arrows to navigate history, and &lt;b&gt;Ctrl-L&lt;/b&gt; to clear screen.</source> <translation>Используйте стрелки вверх и вниз для просмотра истории и &lt;b&gt;Ctrl-L&lt;/b&gt; для очистки экрана.</translation> </message> <message> <location line="+1"/> <source>Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.</source> <translation>Напишите &lt;b&gt;help&lt;/b&gt; для просмотра доступных команд.</translation> </message> <message> <location line="+127"/> <source>%1 B</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>%1 KB</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>%1 MB</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>%1 GB</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>%1 m</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>%1 h</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>%1 h %2 m</source> <translation type="unfinished"/> </message> </context> <context> <name>SendCoinsDialog</name> <message> <location filename="../forms/sendcoinsdialog.ui" line="+14"/> <location filename="../sendcoinsdialog.cpp" line="+182"/> <location line="+5"/> <location line="+5"/> <location line="+5"/> <location line="+6"/> <location line="+5"/> <location line="+5"/> <source>Send Coins</source> <translation>Отправка</translation> </message> <message> <location line="+76"/> <source>Coin Control Features</source> <translation>Выбор входов</translation> </message> <message> <location line="+20"/> <source>Inputs...</source> <translation>Входы...</translation> </message> <message> <location line="+7"/> <source>automatically selected</source> <translation>автоматический выбор</translation> </message> <message> <location line="+19"/> <source>Insufficient funds!</source> <translation>Недостаточно средств!</translation> </message> <message> <location line="+77"/> <source>Quantity:</source> <translation>Количество:</translation> </message> <message> <location line="+22"/> <location line="+35"/> <source>0</source> <translation type="unfinished"/> </message> <message> <location line="-19"/> <source>Bytes:</source> <translation type="unfinished"/> </message> <message> <location line="+51"/> <source>Amount:</source> <translation>Сумма:</translation> </message> <message> <location line="+35"/> <source>Priority:</source> <translation>Приоритет:</translation> </message> <message> <location line="+19"/> <source>medium</source> <translation>средний</translation> </message> <message> <location line="+32"/> <source>Fee:</source> <translation>Комиссия:</translation> </message> <message> <location line="+35"/> <source>Low Output:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>no</source> <translation>нет</translation> </message> <message> <location line="+32"/> <source>After Fee:</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>Change</source> <translation>Сдача</translation> </message> <message> <location line="+50"/> <source>custom change address</source> <translation>адрес для сдачи</translation> </message> <message> <location line="+106"/> <source>Send to multiple recipients at once</source> <translation>Отправить нескольким получателям одновременно</translation> </message> <message> <location line="+3"/> <source>Add &amp;Recipient</source> <translation>&amp;Добавить получателя</translation> </message> <message> <location line="+16"/> <source>Remove all transaction fields</source> <translation>Удалить все поля транзакции</translation> </message> <message> <location line="+3"/> <source>Clear &amp;All</source> <translation>Очистить &amp;всё</translation> </message> <message> <location line="+24"/> <source>Balance:</source> <translation>Баланс:</translation> </message> <message> <location line="+47"/> <source>Confirm the send action</source> <translation>Подтвердить отправку</translation> </message> <message> <location line="+3"/> <source>S&amp;end</source> <translation>&amp;Отправить</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="-174"/> <source>Enter a S address (e.g. SjBj1QvJvsAkU5EBKggdZ8gWc4oK2F5AMY)</source> <translation>Введите S-адрес (например SjBj1QvJvsAkU5EBKggdZ8gWc4oK2F5AMY)</translation> </message> <message> <location line="+15"/> <source>Copy quantity</source> <translation>Копировать количество</translation> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation>Копировать сумму</translation> </message> <message> <location line="+1"/> <source>Copy fee</source> <translation>Копировать комиссию</translation> </message> <message> <location line="+1"/> <source>Copy after fee</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy bytes</source> <translation>Копировать количество байтов</translation> </message> <message> <location line="+1"/> <source>Copy priority</source> <translation>Копировать приоритет</translation> </message> <message> <location line="+1"/> <source>Copy low output</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy change</source> <translation>Копировать сдачу</translation> </message> <message> <location line="+87"/> <source>&lt;b&gt;%1&lt;/b&gt; to %2 (%3)</source> <translation>&lt;b&gt;%1&lt;/b&gt; адресату %2 (%3)</translation> </message> <message> <location line="+5"/> <source>Confirm send coins</source> <translation>Подтвердите отправку монет</translation> </message> <message> <location line="+1"/> <source>Are you sure you want to send %1?</source> <translation>Вы уверены, что хотите отправить %1?</translation> </message> <message> <location line="+0"/> <source> and </source> <translation> и </translation> </message> <message> <location line="+29"/> <source>The recipient address is not valid, please recheck.</source> <translation>Адрес получателя неверный, пожалуйста, перепроверьте.</translation> </message> <message> <location line="+5"/> <source>The amount to pay must be larger than 0.</source> <translation>Количество монет для отправки должно быть больше 0.</translation> </message> <message> <location line="+5"/> <source>The amount exceeds your balance.</source> <translation>Количество отправляемых монет превышает Ваш баланс</translation> </message> <message> <location line="+5"/> <source>The total exceeds your balance when the %1 transaction fee is included.</source> <translation>Сумма превысит Ваш баланс, если комиссия в размере %1 будет добавлена к транзакции</translation> </message> <message> <location line="+6"/> <source>Duplicate address found, can only send to each address once per send operation.</source> <translation>Обнаружен дублирующийся адрес. Отправка на один и тот же адрес возможна только один раз за одну операцию отправки</translation> </message> <message> <location line="+5"/> <source>Error: Transaction creation failed!</source> <translation>Ошибка: не удалось создать транзакцию!</translation> </message> <message> <location line="+5"/> <source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation>Ошибка: В транзакции отказано. Такое может произойти, если некоторые монеты уже были потрачены, например, если Вы используете одну копию файла wallet.dat, а монеты были потрачены из другой копии, но не были отмечены как потраченные в этой.</translation> </message> <message> <location line="+247"/> <source>WARNING: Invalid S address</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>(no label)</source> <translation>(нет метки)</translation> </message> <message> <location line="+4"/> <source>WARNING: unknown change address</source> <translation>ПРЕДУПРЕЖДЕНИЕ: неизвестный адрес для сдачи</translation> </message> </context> <context> <name>SendCoinsEntry</name> <message> <location filename="../forms/sendcoinsentry.ui" line="+14"/> <source>Form</source> <translation>Форма</translation> </message> <message> <location line="+15"/> <source>A&amp;mount:</source> <translation>Ко&amp;личество:</translation> </message> <message> <location line="+13"/> <source>Pay &amp;To:</source> <translation>Полу&amp;чатель:</translation> </message> <message> <location line="+34"/> <source>The address to send the payment to (e.g. SjBj1QvJvsAkU5EBKggdZ8gWc4oK2F5AMY)</source> <translation>Адрес получателя платежа (например SjBj1QvJvsAkU5EBKggdZ8gWc4oK2F5AMY)</translation> </message> <message> <location line="+60"/> <location filename="../sendcoinsentry.cpp" line="+26"/> <source>Enter a label for this address to add it to your address book</source> <translation>Введите метку для данного адреса (для добавления в адресную книгу)</translation> </message> <message> <location line="-78"/> <source>&amp;Label:</source> <translation>&amp;Метка:</translation> </message> <message> <location line="+28"/> <source>Choose address from address book</source> <translation>Выберите адрес из адресной книги</translation> </message> <message> <location line="+10"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location line="+7"/> <source>Paste address from clipboard</source> <translation>Вставить адрес из буфера обмена</translation> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location line="+7"/> <source>Remove this recipient</source> <translation>Удалить этого получателя</translation> </message> <message> <location filename="../sendcoinsentry.cpp" line="+1"/> <source>Enter a S address (e.g. SjBj1QvJvsAkU5EBKggdZ8gWc4oK2F5AMY)</source> <translation>Введите S-адрес (например SjBj1QvJvsAkU5EBKggdZ8gWc4oK2F5AMY)</translation> </message> </context> <context> <name>SignVerifyMessageDialog</name> <message> <location filename="../forms/signverifymessagedialog.ui" line="+14"/> <source>Signatures - Sign / Verify a Message</source> <translation>Подписи - подписать/проверить сообщение</translation> </message> <message> <location line="+13"/> <location line="+124"/> <source>&amp;Sign Message</source> <translation>&amp;Подписать сообщение</translation> </message> <message> <location line="-118"/> <source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source> <translation>Вы можете подписывать сообщения своими адресами, чтобы доказать владение ими. Будьте осторожны, не подписывайте что-то неопределённое, так как фишинговые атаки могут обманным путём заставить вас подписать нежелательные сообщения. Подписывайте только те сообщения, с которыми вы согласны вплоть до мелочей.</translation> </message> <message> <location line="+18"/> <source>The address to sign the message with (e.g. SjBj1QvJvsAkU5EBKggdZ8gWc4oK2F5AMY)</source> <translation>Адрес, которым вы хотите подписать сообщение (напр. SjBj1QvJvsAkU5EBKggdZ8gWc4oK2F5AMY)</translation> </message> <message> <location line="+10"/> <location line="+203"/> <source>Choose an address from the address book</source> <translation>Выберите адрес из адресной книги</translation> </message> <message> <location line="-193"/> <location line="+203"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location line="-193"/> <source>Paste address from clipboard</source> <translation>Вставить адрес из буфера обмена</translation> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location line="+12"/> <source>Enter the message you want to sign here</source> <translation>Введите сообщение для подписи</translation> </message> <message> <location line="+24"/> <source>Copy the current signature to the system clipboard</source> <translation>Скопировать текущую подпись в системный буфер обмена</translation> </message> <message> <location line="+21"/> <source>Sign the message to prove you own this S address</source> <translation>Подписать сообщение, чтобы доказать владение адресом S</translation> </message> <message> <location line="+17"/> <source>Reset all sign message fields</source> <translation>Сбросить значения всех полей подписывания сообщений</translation> </message> <message> <location line="+3"/> <location line="+146"/> <source>Clear &amp;All</source> <translation>Очистить &amp;всё</translation> </message> <message> <location line="-87"/> <location line="+70"/> <source>&amp;Verify Message</source> <translation>&amp;Проверить сообщение</translation> </message> <message> <location line="-64"/> <source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source> <translation>Введите ниже адрес для подписи, сообщение (убедитесь, что переводы строк, пробелы, табы и т.п. в точности скопированы) и подпись, чтобы проверить сообщение. Убедитесь, что не скопировали лишнего в подпись, по сравнению с самим подписываемым сообщением, чтобы не стать жертвой атаки &quot;man-in-the-middle&quot;.</translation> </message> <message> <location line="+21"/> <source>The address the message was signed with (e.g. SjBj1QvJvsAkU5EBKggdZ8gWc4oK2F5AMY)</source> <translation>Адрес, которым было подписано сообщение (напр. SjBj1QvJvsAkU5EBKggdZ8gWc4oK2F5AMY)</translation> </message> <message> <location line="+40"/> <source>Verify the message to ensure it was signed with the specified S address</source> <translation>Проверить сообщение, чтобы убедиться, что оно было подписано указанным адресом S</translation> </message> <message> <location line="+17"/> <source>Reset all verify message fields</source> <translation>Сбросить все поля проверки сообщения</translation> </message> <message> <location filename="../signverifymessagedialog.cpp" line="+27"/> <location line="+3"/> <source>Enter a S address (e.g. SjBj1QvJvsAkU5EBKggdZ8gWc4oK2F5AMY)</source> <translation>Введите адрес S (напр. SjBj1QvJvsAkU5EBKggdZ8gWc4oK2F5AMY)</translation> </message> <message> <location line="-2"/> <source>Click &quot;Sign Message&quot; to generate signature</source> <translation>Нажмите &quot;Подписать сообщение&quot; для создания подписи</translation> </message> <message> <location line="+3"/> <source>Enter S signature</source> <translation>Введите подпись S</translation> </message> <message> <location line="+85"/> <location line="+81"/> <source>The entered address is invalid.</source> <translation>Введённый адрес неверен</translation> </message> <message> <location line="-81"/> <location line="+8"/> <location line="+73"/> <location line="+8"/> <source>Please check the address and try again.</source> <translation>Пожалуйста, проверьте адрес и попробуйте ещё раз.</translation> </message> <message> <location line="-81"/> <location line="+81"/> <source>The entered address does not refer to a key.</source> <translation>Введённый адрес не связан с ключом</translation> </message> <message> <location line="-73"/> <source>Wallet unlock was cancelled.</source> <translation>Разблокировка бумажника была отменена.</translation> </message> <message> <location line="+8"/> <source>Private key for the entered address is not available.</source> <translation>Для введённого адреса недоступен закрытый ключ</translation> </message> <message> <location line="+12"/> <source>Message signing failed.</source> <translation>Не удалось подписать сообщение</translation> </message> <message> <location line="+5"/> <source>Message signed.</source> <translation>Сообщение подписано</translation> </message> <message> <location line="+59"/> <source>The signature could not be decoded.</source> <translation>Подпись не может быть раскодирована.</translation> </message> <message> <location line="+0"/> <location line="+13"/> <source>Please check the signature and try again.</source> <translation>Пожалуйста, проверьте подпись и попробуйте ещё раз.</translation> </message> <message> <location line="+0"/> <source>The signature did not match the message digest.</source> <translation>Подпись не соответствует отпечатку сообщения.</translation> </message> <message> <location line="+7"/> <source>Message verification failed.</source> <translation>Проверка сообщения не удалась.</translation> </message> <message> <location line="+5"/> <source>Message verified.</source> <translation>Сообщение проверено.</translation> </message> </context> <context> <name>TrafficGraphWidget</name> <message> <location filename="../trafficgraphwidget.cpp" line="+75"/> <source>KB/s</source> <translation type="unfinished"/> </message> </context> <context> <name>TransactionDesc</name> <message> <location filename="../transactiondesc.cpp" line="+25"/> <source>Open until %1</source> <translation>Открыто до %1</translation> </message> <message> <location line="+6"/> <source>conflicted</source> <translation>конфликт</translation> </message> <message> <location line="+2"/> <source>%1/offline</source> <translation>%1/оффлайн</translation> </message> <message> <location line="+2"/> <source>%1/unconfirmed</source> <translation>%1/не подтверждено</translation> </message> <message> <location line="+2"/> <source>%1 confirmations</source> <translation>%1 подтверждений</translation> </message> <message> <location line="+17"/> <source>Status</source> <translation>Статус</translation> </message> <message numerus="yes"> <location line="+7"/> <source>, broadcast through %n node(s)</source> <translation><numerusform>, разослано через %n узел</numerusform><numerusform>, разослано через %n узла</numerusform><numerusform>, разослано через %n узлов</numerusform><numerusform>, разослано через %n узлов</numerusform></translation> </message> <message> <location line="+4"/> <source>Date</source> <translation>Дата</translation> </message> <message> <location line="+7"/> <source>Source</source> <translation>Источник</translation> </message> <message> <location line="+0"/> <source>Generated</source> <translation>Сгенерировано</translation> </message> <message> <location line="+5"/> <location line="+13"/> <source>From</source> <translation>От</translation> </message> <message> <location line="+1"/> <location line="+19"/> <location line="+58"/> <source>To</source> <translation>Для</translation> </message> <message> <location line="-74"/> <location line="+2"/> <source>own address</source> <translation>свой адрес</translation> </message> <message> <location line="-2"/> <source>label</source> <translation>метка</translation> </message> <message> <location line="+34"/> <location line="+12"/> <location line="+45"/> <location line="+17"/> <location line="+30"/> <source>Credit</source> <translation>Кредит</translation> </message> <message numerus="yes"> <location line="-102"/> <source>matures in %n more block(s)</source> <translation><numerusform>будет доступно через %n блок</numerusform><numerusform>будет доступно через %n блока</numerusform><numerusform>будет доступно через %n блоков</numerusform><numerusform>будет доступно через %n блоков</numerusform></translation> </message> <message> <location line="+2"/> <source>not accepted</source> <translation>не принято</translation> </message> <message> <location line="+44"/> <location line="+8"/> <location line="+15"/> <location line="+30"/> <source>Debit</source> <translation>Дебет</translation> </message> <message> <location line="-39"/> <source>Transaction fee</source> <translation>Комиссия</translation> </message> <message> <location line="+16"/> <source>Net amount</source> <translation>Чистая сумма</translation> </message> <message> <location line="+6"/> <source>Message</source> <translation>Сообщение</translation> </message> <message> <location line="+2"/> <source>Comment</source> <translation>Комментарий</translation> </message> <message> <location line="+2"/> <source>Transaction ID</source> <translation>ID транзакции</translation> </message> <message> <location line="+3"/> <source>Generated coins must mature 510 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to &quot;not accepted&quot; and it won&apos;t be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source> <translation>Сгенерированные монеты должны подождать 510 блоков, прежде чем они могут быть потрачены. Когда Вы сгенерировали этот блок, он был отправлен в сеть для добавления в цепочку блоков. Если данная процедура не удастся, статус изменится на «не подтверждено», и монеты будут недействительны. Это иногда происходит в случае, если другой узел сгенерирует блок на несколько секунд раньше вас.</translation> </message> <message> <location line="+7"/> <source>Debug information</source> <translation>Отладочная информация</translation> </message> <message> <location line="+8"/> <source>Transaction</source> <translation>Транзакция</translation> </message> <message> <location line="+5"/> <source>Inputs</source> <translation>Входы</translation> </message> <message> <location line="+21"/> <source>Amount</source> <translation>Количество</translation> </message> <message> <location line="+1"/> <source>true</source> <translation>истина</translation> </message> <message> <location line="+0"/> <source>false</source> <translation>ложь</translation> </message> <message> <location line="-202"/> <source>, has not been successfully broadcast yet</source> <translation>, ещё не было успешно разослано</translation> </message> <message numerus="yes"> <location line="-36"/> <source>Open for %n more block(s)</source> <translation><numerusform>Открыто для ещё %n блока</numerusform><numerusform>Открыто для ещё %n блоков</numerusform><numerusform>Открыто для ещё %n блоков</numerusform><numerusform>Открыто для ещё %n блоков</numerusform></translation> </message> <message> <location line="+67"/> <source>unknown</source> <translation>неизвестно</translation> </message> </context> <context> <name>TransactionDescDialog</name> <message> <location filename="../forms/transactiondescdialog.ui" line="+14"/> <source>Transaction details</source> <translation>Детали транзакции</translation> </message> <message> <location line="+6"/> <source>This pane shows a detailed description of the transaction</source> <translation>Данный диалог показывает детализированную статистику по выбранной транзакции</translation> </message> </context> <context> <name>TransactionTableModel</name> <message> <location filename="../transactiontablemodel.cpp" line="+231"/> <source>Date</source> <translation>Дата</translation> </message> <message> <location line="+0"/> <source>Type</source> <translation>Тип</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Адрес</translation> </message> <message> <location line="+0"/> <source>Amount</source> <translation>Количество</translation> </message> <message> <location line="+52"/> <source>Open until %1</source> <translation>Открыто до %1</translation> </message> <message> <location line="+12"/> <source>Confirmed (%1 confirmations)</source> <translation>Подтверждено (%1 подтверждений)</translation> </message> <message numerus="yes"> <location line="-15"/> <source>Open for %n more block(s)</source> <translation><numerusform>Открыто для ещё %n блока</numerusform><numerusform>Открыто для ещё %n блоков</numerusform><numerusform>Открыто для ещё %n блоков</numerusform><numerusform>Открыто для ещё %n блоков</numerusform></translation> </message> <message> <location line="+6"/> <source>Offline</source> <translation>Оффлайн</translation> </message> <message> <location line="+3"/> <source>Unconfirmed</source> <translation>Не подтверждено</translation> </message> <message> <location line="+3"/> <source>Confirming (%1 of %2 recommended confirmations)</source> <translation>Подтверждается (%1 из %2 рекомендованных подтверждений)</translation> </message> <message> <location line="+6"/> <source>Conflicted</source> <translation>Конфликт</translation> </message> <message> <location line="+3"/> <source>Immature (%1 confirmations, will be available after %2)</source> <translation>Незрелые (%1 подтверждений, будут доступны после %2)</translation> </message> <message> <location line="+3"/> <source>This block was not received by any other nodes and will probably not be accepted!</source> <translation>Этот блок не был получен другими узлами и, возможно, не будет принят!</translation> </message> <message> <location line="+3"/> <source>Generated but not accepted</source> <translation>Сгенерировано, но не принято</translation> </message> <message> <location line="+42"/> <source>Received with</source> <translation>Получено</translation> </message> <message> <location line="+2"/> <source>Received from</source> <translation>Получено от</translation> </message> <message> <location line="+3"/> <source>Sent to</source> <translation>Отправлено</translation> </message> <message> <location line="+2"/> <source>Payment to yourself</source> <translation>Отправлено себе</translation> </message> <message> <location line="+2"/> <source>Mined</source> <translation>Добыто</translation> </message> <message> <location line="+38"/> <source>(n/a)</source> <translation>[не доступно]</translation> </message> <message> <location line="+194"/> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation>Статус транзакции. Подведите курсор к нужному полю для того, чтобы увидеть количество подтверждений.</translation> </message> <message> <location line="+2"/> <source>Date and time that the transaction was received.</source> <translation>Дата и время, когда транзакция была получена.</translation> </message> <message> <location line="+2"/> <source>Type of transaction.</source> <translation>Тип транзакции.</translation> </message> <message> <location line="+2"/> <source>Destination address of transaction.</source> <translation>Адрес назначения транзакции.</translation> </message> <message> <location line="+2"/> <source>Amount removed from or added to balance.</source> <translation>Сумма, добавленная, или снятая с баланса.</translation> </message> </context> <context> <name>TransactionView</name> <message> <location filename="../transactionview.cpp" line="+54"/> <location line="+17"/> <source>All</source> <translation>Все</translation> </message> <message> <location line="-16"/> <source>Today</source> <translation>Сегодня</translation> </message> <message> <location line="+1"/> <source>This week</source> <translation>На этой неделе</translation> </message> <message> <location line="+1"/> <source>This month</source> <translation>В этом месяце</translation> </message> <message> <location line="+1"/> <source>Last month</source> <translation>За последний месяц</translation> </message> <message> <location line="+1"/> <source>This year</source> <translation>В этом году</translation> </message> <message> <location line="+1"/> <source>Range...</source> <translation>Промежуток...</translation> </message> <message> <location line="+12"/> <source>Received with</source> <translation>Получено на</translation> </message> <message> <location line="+2"/> <source>Sent to</source> <translation>Отправлено на</translation> </message> <message> <location line="+2"/> <source>To yourself</source> <translation>Отправленные себе</translation> </message> <message> <location line="+1"/> <source>Mined</source> <translation>Добытые</translation> </message> <message> <location line="+1"/> <source>Other</source> <translation>Другое</translation> </message> <message> <location line="+7"/> <source>Enter address or label to search</source> <translation>Введите адрес или метку для поиска</translation> </message> <message> <location line="+7"/> <source>Min amount</source> <translation>Мин. сумма</translation> </message> <message> <location line="+34"/> <source>Copy address</source> <translation>Копировать адрес</translation> </message> <message> <location line="+1"/> <source>Copy label</source> <translation>Копировать метку</translation> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation>Скопировать сумму</translation> </message> <message> <location line="+1"/> <source>Copy transaction ID</source> <translation>Скопировать ID транзакции</translation> </message> <message> <location line="+1"/> <source>Edit label</source> <translation>Изменить метку</translation> </message> <message> <location line="+1"/> <source>Show transaction details</source> <translation>Показать подробности транзакции</translation> </message> <message> <location line="+138"/> <source>Export Transaction Data</source> <translation>Экспортировать данные транзакций</translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>Текст, разделённый запятыми (*.csv)</translation> </message> <message> <location line="+8"/> <source>Confirmed</source> <translation>Подтверждено</translation> </message> <message> <location line="+1"/> <source>Date</source> <translation>Дата</translation> </message> <message> <location line="+1"/> <source>Type</source> <translation>Тип</translation> </message> <message> <location line="+1"/> <source>Label</source> <translation>Метка</translation> </message> <message> <location line="+1"/> <source>Address</source> <translation>Адрес</translation> </message> <message> <location line="+1"/> <source>Amount</source> <translation>Количество</translation> </message> <message> <location line="+1"/> <source>ID</source> <translation>ID</translation> </message> <message> <location line="+4"/> <source>Error exporting</source> <translation>Ошибка экспорта</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>Невозможно записать в файл %1.</translation> </message> <message> <location line="+100"/> <source>Range:</source> <translation>Промежуток от:</translation> </message> <message> <location line="+8"/> <source>to</source> <translation>до</translation> </message> </context> <context> <name>WalletModel</name> <message> <location filename="../walletmodel.cpp" line="+212"/> <source>Sending...</source> <translation>Отправка....</translation> </message> </context> <context> <name>bitcoin-core</name> <message> <location filename="../bitcoinstrings.cpp" line="+171"/> <source>S version</source> <translation>Версия</translation> </message> <message> <location line="+1"/> <source>Usage:</source> <translation>Использование:</translation> </message> <message> <location line="+1"/> <source>Send command to -server or Sd</source> <translation>Отправить команду на -server или Sd</translation> </message> <message> <location line="+1"/> <source>List commands</source> <translation>Список команд </translation> </message> <message> <location line="+1"/> <source>Get help for a command</source> <translation>Получить помощь по команде</translation> </message> <message> <location line="-145"/> <source>Options:</source> <translation>Опции:</translation> </message> <message> <location line="+2"/> <source>Specify configuration file (default: S.conf)</source> <translation>Указать конфигурационный файл (по умолчанию: S.conf)</translation> </message> <message> <location line="+1"/> <source>Specify pid file (default: Sd.pid)</source> <translation>Указать pid-файл (по умолчанию: Sd.pid)</translation> </message> <message> <location line="+2"/> <source>Specify wallet file (within data directory)</source> <translation>Указать файл кошелька (в пределах DATA директории)</translation> </message> <message> <location line="-1"/> <source>Specify data directory</source> <translation>Укажите каталог данных</translation> </message> <message> <location line="-25"/> <source>%s, you must set a rpcpassword in the configuration file: %s It is recommended you use the following random password: rpcuser=Srpc rpcpassword=%s (you do not need to remember this password) The username and password MUST NOT be the same. If the file does not exist, create it with owner-readable-only file permissions. It is also recommended to set alertnotify so you are notified of problems; for example: alertnotify=echo %%s | mail -s &quot;S Alert&quot; [email protected] </source> <translation type="unfinished"/> </message> <message> <location line="+27"/> <source>Set database cache size in megabytes (default: 25)</source> <translation>Установить размер кэша базы данных в мегабайтах (по умолчанию: 25)</translation> </message> <message> <location line="+1"/> <source>Set database disk log size in megabytes (default: 100)</source> <translation>Установить размер лога базы данных в мегабайтах (по умолчанию: 100)</translation> </message> <message> <location line="+5"/> <source>Listen for connections on &lt;port&gt; (default: 36178 or testnet: 25714)</source> <translation>Принимать входящие подключения на &lt;port&gt; (по умолчанию: 36178 или 25714 в тестовой сети)</translation> </message> <message> <location line="+1"/> <source>Maintain at most &lt;n&gt; connections to peers (default: 125)</source> <translation>Поддерживать не более &lt;n&gt; подключений к узлам (по умолчанию: 125)</translation> </message> <message> <location line="+3"/> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation>Подключиться к узлу, чтобы получить список адресов других участников и отключиться</translation> </message> <message> <location line="+1"/> <source>Specify your own public address</source> <translation>Укажите ваш собственный публичный адрес</translation> </message> <message> <location line="+4"/> <source>Bind to given address. Use [host]:port notation for IPv6</source> <translation>Привязаться (bind) к указанному адресу. Используйте запись вида [хост]:порт для IPv6</translation> </message> <message> <location line="+1"/> <source>Query for peer addresses via DNS lookup, if low on addresses (default: 1 unless -connect)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Always query for peer addresses via DNS lookup (default: 0)</source> <translation>Всегда запрашивать адреса пиров с помощью DNS (по умолчанию: 0)</translation> </message> <message> <location line="+4"/> <source>Threshold for disconnecting misbehaving peers (default: 100)</source> <translation>Порог для отключения неправильно ведущих себя узлов (по умолчанию: 100)</translation> </message> <message> <location line="+1"/> <source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source> <translation>Число секунд блокирования неправильно ведущих себя узлов (по умолчанию: 86400)</translation> </message> <message> <location line="-35"/> <source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source> <translation>Произошла ошибка при открытии RPC-порта %u для прослушивания на IPv4: %s</translation> </message> <message> <location line="+62"/> <source>Listen for JSON-RPC connections on &lt;port&gt; (default: 36174 or testnet: 25715)</source> <translation>Прослушивать подключения JSON-RPC на &lt;порту&gt; (по умолчанию: 36174 или для testnet: 25715)</translation> </message> <message> <location line="-16"/> <source>Accept command line and JSON-RPC commands</source> <translation>Принимать командную строку и команды JSON-RPC</translation> </message> <message> <location line="+1"/> <source>Run in the background as a daemon and accept commands</source> <translation>Запускаться в фоне как демон и принимать команды</translation> </message> <message> <location line="+1"/> <source>Use the test network</source> <translation>Использовать тестовую сеть</translation> </message> <message> <location line="-23"/> <source>Accept connections from outside (default: 1 if no -proxy or -connect)</source> <translation>Принимать подключения извне (по умолчанию: 1, если не используется -proxy или -connect)</translation> </message> <message> <location line="-28"/> <source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source> <translation>Произошла ошибка при открытии на прослушивание IPv6 RCP-порта %u, возвращаемся к IPv4: %s</translation> </message> <message> <location line="+93"/> <source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source> <translation>Максимальный размер высокоприоритетных/низкокомиссионных транзакций в байтах (по умолчанию: 27000)</translation> </message> <message> <location line="+15"/> <source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source> <translation>Внимание: установлено очень большое значение -paytxfee. Это комиссия, которую вы заплатите при проведении транзакции.</translation> </message> <message> <location line="-103"/> <source>Warning: Please check that your computer&apos;s date and time are correct! If your clock is wrong S will not work properly.</source> <translation>Внимание: убедитесь, что дата и время на Вашем компьютере выставлены верно. Если Ваши часы идут неправильно, S будет работать некорректно.</translation> </message> <message> <location line="+130"/> <source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source> <translation>Внимание: ошибка чтения wallet.dat! Все ключи восстановлены, но записи в адресной книге и истории транзакций могут быть некорректными.</translation> </message> <message> <location line="-16"/> <source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source> <translation>Внимание: wallet.dat был поврежден, данные восстановлены! Оригинальный wallet.dat сохранен как wallet.{timestamp}.bak в %s;, если ваши транзакции или баланс отображаются неправильно, следует восстановить его из данной копии.</translation> </message> <message> <location line="-34"/> <source>Attempt to recover private keys from a corrupt wallet.dat</source> <translation>Попытка восстановления ключей из поврежденного wallet.dat</translation> </message> <message> <location line="+5"/> <source>Block creation options:</source> <translation>Параметры создания блоков:</translation> </message> <message> <location line="-67"/> <source>Connect only to the specified node(s)</source> <translation>Подключаться только к указанному узлу(ам)</translation> </message> <message> <location line="+4"/> <source>Discover own IP address (default: 1 when listening and no -externalip)</source> <translation>Определить свой IP (по умолчанию: 1 при прослушивании и если не используется -externalip)</translation> </message> <message> <location line="+101"/> <source>Failed to listen on any port. Use -listen=0 if you want this.</source> <translation>Не удалось начать прослушивание на порту. Используйте -listen=0 если вас это устраивает.</translation> </message> <message> <location line="-2"/> <source>Invalid -tor address: &apos;%s&apos;</source> <translation>Неверный адрес -tor: &apos;%s&apos;</translation> </message> <message> <location line="+4"/> <source>Invalid amount for -reservebalance=&lt;amount&gt;</source> <translation type="unfinished"/> </message> <message> <location line="-89"/> <source>Maximum per-connection receive buffer, &lt;n&gt;*1000 bytes (default: 5000)</source> <translation>Максимальный размер буфера приёма на соединение, &lt;n&gt;*1000 байт (по умолчанию: 5000)</translation> </message> <message> <location line="+1"/> <source>Maximum per-connection send buffer, &lt;n&gt;*1000 bytes (default: 1000)</source> <translation>Максимальный размер буфера отправки на соединение, &lt;n&gt;*1000 байт (по умолчанию: 1000)</translation> </message> <message> <location line="-16"/> <source>Only connect to nodes in network &lt;net&gt; (IPv4, IPv6 or Tor)</source> <translation>Подключаться только к узлам из сети &lt;net&gt; (IPv4, IPv6 или Tor)</translation> </message> <message> <location line="+30"/> <source>Prepend debug output with timestamp</source> <translation>Дописывать отметки времени к отладочному выводу</translation> </message> <message> <location line="+40"/> <source>SSL options: (see the Bitcoin Wiki for SSL setup instructions)</source> <translation> Параметры SSL: (см. Bitcoin Wiki для инструкций по настройке SSL)</translation> </message> <message> <location line="-38"/> <source>Send trace/debug info to console instead of debug.log file</source> <translation>Выводить информацию трассировки/отладки на консоль вместо файла debug.log</translation> </message> <message> <location line="+34"/> <source>Set maximum block size in bytes (default: 250000)</source> <translation>Максимальный размер блока в байтах (по умолчанию: 250000)</translation> </message> <message> <location line="-1"/> <source>Set minimum block size in bytes (default: 0)</source> <translation>Минимальный размер блока в байтах (по умолчанию: 0)</translation> </message> <message> <location line="-34"/> <source>Shrink debug.log file on client startup (default: 1 when no -debug)</source> <translation>Сжимать файл debug.log при запуске клиента (по умолчанию: 1, если нет -debug)</translation> </message> <message> <location line="-41"/> <source>Specify connection timeout in milliseconds (default: 5000)</source> <translation>Таймаут соединения в миллисекундах (по умолчанию: 5000)</translation> </message> <message> <location line="+28"/> <source>Use UPnP to map the listening port (default: 0)</source> <translation>Использовать UPnP для проброса порта (по умолчанию: 0)</translation> </message> <message> <location line="-1"/> <source>Use UPnP to map the listening port (default: 1 when listening)</source> <translation>Использовать UPnP для проброса порта (по умолчанию: 1, если используется прослушивание)</translation> </message> <message> <location line="-25"/> <source>Use proxy to reach tor hidden services (default: same as -proxy)</source> <translation>Использовать прокси для скрытых сервисов (по умолчанию: тот же, что и в -proxy)</translation> </message> <message> <location line="+45"/> <source>Username for JSON-RPC connections</source> <translation>Имя для подключений JSON-RPC</translation> </message> <message> <location line="+54"/> <source>Verifying database integrity...</source> <translation>Проверка целостности базы данных...</translation> </message> <message> <location line="+42"/> <source>Error: Wallet locked, unable to create transaction!</source> <translation>Ошибка: бумажник заблокирован, невозможно создать транзакцию!</translation> </message> <message> <location line="+2"/> <source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds!</source> <translation>Ошибка: эта транзакция требует комиссию в размере как минимум %s из-за её объёма, сложности или использования недавно полученных средств!</translation> </message> <message> <location line="+3"/> <source>Error: Transaction creation failed!</source> <translation>Ошибка: не удалось создать транзакцию!</translation> </message> <message> <location line="+2"/> <source>Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation>Ошибка: В транзакции отказано! Такое может произойти, если некоторые монеты уже были потрачены, например, если Вы используете одну копию файла wallet.dat, а монеты были потрачены из другой копии, но не были отмечены как потраченные в этой.</translation> </message> <message> <location line="+7"/> <source>Warning</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Information</source> <translation>Информация</translation> </message> <message> <location line="+1"/> <source>Warning: This version is obsolete, upgrade required!</source> <translation>Внимание: эта версия устарела, требуется обновление!</translation> </message> <message> <location line="-52"/> <source>wallet.dat corrupt, salvage failed</source> <translation>wallet.dat поврежден, восстановление не удалось</translation> </message> <message> <location line="-59"/> <source>Password for JSON-RPC connections</source> <translation>Пароль для подключений JSON-RPC</translation> </message> <message> <location line="-47"/> <source>Connect through SOCKS5 proxy</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>Sync time with other nodes. Disable if time on your system is precise e.g. syncing with NTP (default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>When creating transactions, ignore inputs with value less than this (default: 0.01)</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Output debugging information (default: 0, supplying &lt;category&gt; is optional)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>If &lt;category&gt; is not supplied, output all debugging information.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>&lt;category&gt; can be:</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Enter regression test mode, which uses a special chain in which blocks can be solved instantly. This is intended for regression testing tools and app development.</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Allow JSON-RPC connections from specified IP address</source> <translation>Разрешить подключения JSON-RPC с указанного IP</translation> </message> <message> <location line="+1"/> <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)</source> <translation>Посылать команды узлу, запущенному на &lt;ip&gt; (по умолчанию: 127.0.0.1)</translation> </message> <message> <location line="+1"/> <source>Wait for RPC server to start</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Set the number of threads to service RPC calls (default: 4)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source> <translation>Выполнить команду, когда появляется новый блок (%s в команде заменяется на хэш блока)</translation> </message> <message> <location line="+3"/> <source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source> <translation>Выполнить команду, когда получена новая транзакция (%s в команде заменяется на ID транзакции)</translation> </message> <message> <location line="+3"/> <source>Require a confirmations for change (default: 0)</source> <translation>Требовать подтверждения для сдачи (по умолчанию: 0)</translation> </message> <message> <location line="+2"/> <source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Upgrade wallet to latest format</source> <translation>Обновить бумажник до последнего формата</translation> </message> <message> <location line="+1"/> <source>Set key pool size to &lt;n&gt; (default: 100)</source> <translation>Установить размер запаса ключей в &lt;n&gt; (по умолчанию: 100)</translation> </message> <message> <location line="+1"/> <source>Rescan the block chain for missing wallet transactions</source> <translation>Перепроверить цепь блоков на предмет отсутствующих в бумажнике транзакций</translation> </message> <message> <location line="+3"/> <source>How thorough the block verification is (0-6, default: 1)</source> <translation>Насколько тщательно проверять блоки (0-6, по умолчанию: 1)</translation> </message> <message> <location line="+1"/> <source>Imports blocks from external blk000?.dat file</source> <translation>Импортировать блоки из внешнего файла blk000?.dat</translation> </message> <message> <location line="+1"/> <source>Keep at most &lt;n&gt; MiB of unconnectable blocks in memory (default: %u)</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation>Использовать OpenSSL (https) для подключений JSON-RPC</translation> </message> <message> <location line="+1"/> <source>Server certificate file (default: server.cert)</source> <translation>Файл серверного сертификата (по умолчанию: server.cert)</translation> </message> <message> <location line="+1"/> <source>Server private key (default: server.pem)</source> <translation>Приватный ключ сервера (по умолчанию: server.pem)</translation> </message> <message> <location line="+5"/> <source>Error: Unsupported argument -socks found. Setting SOCKS version isn&apos;t possible anymore, only SOCKS5 proxies are supported.</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Initialization sanity check failed. S is shutting down.</source> <translation type="unfinished"/> </message> <message> <location line="+20"/> <source>Error loading block database</source> <translation type="unfinished"/> </message> <message> <location line="+28"/> <source>Error: Wallet unlocked for staking only, unable to create transaction.</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Error: Disk space is low!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>This is a pre-release test build - use at your own risk - do not use for mining or merchant applications</source> <translation>Это пре-релизная тестовая сборка - используйте на свой страх и риск - не используйте для добычи или торговых приложений</translation> </message> <message> <location line="-168"/> <source>This help message</source> <translation>Эта справка</translation> </message> <message> <location line="+104"/> <source>Wallet %s resides outside data directory %s.</source> <translation>Кошелек %s находится вне рабочей директории %s.</translation> </message> <message> <location line="+35"/> <source>Unable to bind to %s on this computer (bind returned error %d, %s)</source> <translation>Невозможно привязаться к %s на этом компьютере (bind вернул ошибку %d, %s)</translation> </message> <message> <location line="-129"/> <source>Allow DNS lookups for -addnode, -seednode and -connect</source> <translation>Разрешить поиск в DNS для -addnode, -seednode и -connect</translation> </message> <message> <location line="+125"/> <source>Loading addresses...</source> <translation>Загрузка адресов...</translation> </message> <message> <location line="-10"/> <source>Error loading wallet.dat: Wallet corrupted</source> <translation>Ошибка загрузки wallet.dat: Бумажник поврежден</translation> </message> <message> <location line="+4"/> <source>Error loading wallet.dat: Wallet requires newer version of S</source> <translation>Ошибка загрузки wallet.dat: бумажник требует более новую версию S</translation> </message> <message> <location line="+1"/> <source>Wallet needed to be rewritten: restart S to complete</source> <translation>Необходимо перезаписать бумажник, перезапустите S для завершения операции</translation> </message> <message> <location line="+1"/> <source>Error loading wallet.dat</source> <translation>Ошибка при загрузке wallet.dat</translation> </message> <message> <location line="-15"/> <source>Invalid -proxy address: &apos;%s&apos;</source> <translation>Неверный адрес -proxy: &apos;%s&apos;</translation> </message> <message> <location line="-1"/> <source>Unknown network specified in -onlynet: &apos;%s&apos;</source> <translation>В параметре -onlynet указана неизвестная сеть: &apos;%s&apos;</translation> </message> <message> <location line="+3"/> <source>Cannot resolve -bind address: &apos;%s&apos;</source> <translation>Не удаётся разрешить адрес в параметре -bind: &apos;%s&apos;</translation> </message> <message> <location line="+2"/> <source>Cannot resolve -externalip address: &apos;%s&apos;</source> <translation>Не удаётся разрешить адрес в параметре -externalip: &apos;%s&apos;</translation> </message> <message> <location line="-22"/> <source>Invalid amount for -paytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation>Неверное количество в параметре -paytxfee=&lt;кол-во&gt;: &apos;%s&apos;</translation> </message> <message> <location line="+58"/> <source>Sending...</source> <translation>Отправка...</translation> </message> <message> <location line="+5"/> <source>Invalid amount</source> <translation>Неверное количество</translation> </message> <message> <location line="+1"/> <source>Insufficient funds</source> <translation>Недостаточно монет</translation> </message> <message> <location line="-40"/> <source>Loading block index...</source> <translation>Загрузка индекса блоков...</translation> </message> <message> <location line="-109"/> <source>Add a node to connect to and attempt to keep the connection open</source> <translation>Добавить узел для подключения и пытаться поддерживать соединение открытым</translation> </message> <message> <location line="+124"/> <source>Unable to bind to %s on this computer. S is probably already running.</source> <translation>Невозможно привязаться к %s на этом компьютере. Возможно, S уже работает.</translation> </message> <message> <location line="-101"/> <source>Fee per KB to add to transactions you send</source> <translation>Комиссия на килобайт, добавляемая к вашим транзакциям</translation> </message> <message> <location line="+33"/> <source>Minimize weight consumption (experimental) (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>How many blocks to check at startup (default: 500, 0 = all)</source> <translation>Сколько блоков проверять при запуске (по умолчанию: 500, 0 = все)</translation> </message> <message> <location line="+14"/> <source>Acceptable ciphers (default: TLSv1.2+HIGH:TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!3DES:@STRENGTH)</source> <translation>Разрешённые алгоритмы (по умолчанию: TLSv1.2+HIGH:TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!3DES:@STRENGTH)</translation> </message> <message> <location line="+3"/> <source>Warning: Deprecated argument -debugnet ignored, use -debug=net</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Invalid amount for -mininput=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Cannot obtain a lock on data directory %s. S is probably already running.</source> <translation>Невозможно установить блокировку на рабочую директорию %s. Возможно, бумажник уже запущен.</translation> </message> <message> <location line="+4"/> <source>Error initializing wallet database environment %s!</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>Loading wallet...</source> <translation>Загрузка бумажника...</translation> </message> <message> <location line="+8"/> <source>Cannot downgrade wallet</source> <translation>Не удаётся понизить версию бумажника</translation> </message> <message> <location line="+1"/> <source>Cannot write default address</source> <translation>Не удаётся записать адрес по умолчанию</translation> </message> <message> <location line="+1"/> <source>Rescanning...</source> <translation>Сканирование...</translation> </message> <message> <location line="+2"/> <source>Done loading</source> <translation>Загрузка завершена</translation> </message> <message> <location line="-159"/> <source>To use the %s option</source> <translation>Чтобы использовать опцию %s</translation> </message> <message> <location line="+186"/> <source>Error</source> <translation>Ошибка</translation> </message> <message> <location line="-18"/> <source>You must set rpcpassword=&lt;password&gt; in the configuration file: %s If the file does not exist, create it with owner-readable-only file permissions.</source> <translation>Вы должны установить rpcpassword=&lt;password&gt; в конфигурационном файле: %s Если файл не существует, создайте его и установите права доступа только для владельца.</translation> </message> </context> </TS>
wtomtom/s
src/qt/locale/bitcoin_ru.ts
TypeScript
mit
143,023
KIAppRate ========= More friendly Appirator. In your `AppDelegate:didFinishLaunchingWithOptions:`, ```objc [KIAppRate rate:options]; ``` or when you want to receive the user's selection ```objc [KIAppRate rate:options withDelegate:delegate]; ``` Options --- `KIAppRate` also provides the builder to build an option #### From `NSUserDefaults` (works nice with [mattt/GroundControl](https://github.com/mattt/GroundControl)!) ``` [KIAppRateOption optionWithUserDefaults:userDefaults]; ``` #### On your hand ```objc [KIAppRateOption launchCount:12]; // OR [KIAppRateOption receiveNotification:@SomeNotificationName"]; ```
kaiinui/KIAppRate
README.md
Markdown
mit
630
/* Start by setting display:none to make this hidden. Then we position it in relation to the viewport window with position:fixed. Width, height, top and left speak for themselves. Background we set to 80% white with our animation centered, and no-repeating */ .modal, .lock { display: none; position: fixed; z-index: 1000; top: 0; left: 0; height: 100%; width: 100%; background-color: rgba( 255, 255, 255, .8 ); } .spinner { background: rgba( 255, 255, 255, .8 ) url('../img/spinner.gif') 50% 50% no-repeat; } /* When the body has the loading class, we turn the scrollbar off with overflow:hidden */ body.loading, body.locked { overflow: hidden; } /* Anytime the body has the loading class, our modal element will be visible */ body.loading .modal, body.locked .lock { display: block; }
Nibbler73/rpi-sonos
src/css/spinner.css
CSS
mit
899
/** The MIT License (MIT) Copyright (c) 2016 Kevin von Flotow Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +function() { // required for classes 'use strict' // default truthy values to use const truthy_values = [ true, 1, 'true', '1', 'on', 'yes', 'active' ] class Booler { constructor( conf ) { conf = conf || {} // store as plain-object for faster searches this.truthy_values = {} // forced lowercase. defaults to true this.lowercase = typeof conf.lowercase !== 'undefined' ? conf.lowercase ? true : false : true // no need to filter since we're inserting into an object truthy_values.concat( ( conf.truthy_values || [] ) ).forEach( ( v ) => { var t if ( this.lowercase && Object.prototype.toString.call( v ) === '[object String]' ) { t = v.toLowerCase() } else { t = v } this.truthy_values[ t ] = true } ) } test( b ) { if ( typeof b === 'undefined' ) { return false } var t if ( this.lowercase && Object.prototype.toString.call( b ) === '[object String]' ) { t = b.toLowerCase() } else { t = b } return this.truthy_values[ t ] ? true : false } setTrue( values ) { if ( typeof values === 'undefined' ) { return } if ( !Array.isArray( values ) ) { values = [ values ] } values.forEach( ( v ) => { var t if ( this.lowercase && Object.prototype.toString.call( v ) === '[object String]' ) { t = v.toLowerCase() } else { t = v } this.truthy_values[ t ] = true } ) } setFalse( values ) { if ( typeof values === 'undefined' ) { // remove ALL this.truthy_values = {} return } if ( !Array.isArray( values ) ) { values = [ values ] } values.forEach( ( v ) => { var t if ( this.lowercase && Object.prototype.toString.call( v ) === '[object String]' ) { t = v.toLowerCase() } else { t = v } if ( this.truthy_values[ t ] ) { this.truthy_values[ t ] = null delete this.truthy_values[ t ] } } ) } } module.exports = Booler }()
kvonflotow/booler
index.js
JavaScript
mit
3,652
var ApiGen = ApiGen || {}; ApiGen.elements = [["c","WeeAuth"],["c","WeeConfig"],["c","WeeController"],["c","WeeCookie"],["c","WeeDBGenericAccess"],["c","WeeDispatcher"],["c","WeeFile"],["c","WeeFilter"],["c","WeeGal"],["c","WeeHooks"],["c","WeeImg"],["c","WeeLoader"],["c","WeeMail"],["c","WeeModel"],["c","WeePaginate"],["c","WeeReporting"],["c","WeeSession"],["c","WeeTemplate"],["c","WeeTranslator"]];
hpolaert/WeePHP
api/elementlist.js
JavaScript
mit
406
require "spec_helper" RSpec.describe SkoogleDocs::Bots::Bot do subject { described_class } let(:dom) { build(:mini_dom) } describe ".all" do it "does not return nil" do bots = subject.all expect(bots).not_to be_nil end it "returns an Array" do bots = subject.all expect(bots).to be_a Array end it "is not an empty Array" do bots = subject.all expect(bots).not_to be_empty end it "returns Bot instances" do bots = subject.all expect(bots.all? { |b| b <= subject }).to be_truthy end end describe ".html" do it "returns a Nokogiri::XML::Element" do expect(subject.html(dom)).to be_a Nokogiri::XML::Element end it "returns an html element" do expect(subject.html(dom).name).to eq "html" end end describe ".head" do it "returns a Nokogiri::XML::Element" do expect(subject.head(dom)).to be_a Nokogiri::XML::Element end it "returns an head element" do expect(subject.head(dom).name).to eq "head" end end describe ".body" do it "returns a Nokogiri::XML::Element" do expect(subject.body(dom)).to be_a Nokogiri::XML::Element end it "returns an body element" do expect(subject.body(dom).name).to eq "body" end end end
Skookum/skoogle-docs
spec/skoogle_docs/bots/bot_spec.rb
Ruby
mit
1,302
<?php namespace Psalm\Tests\FileManipulation; class ParamNameMismatchTest extends FileManipulationTestCase { /** * @return array<string,array{string,string,string,string[],bool}> */ public function providerValidCodeParse(): array { return [ 'fixMismatchingParamName74' => [ '<?php class A { public function foo(string $str, bool $b = false) : void {} } class AChild extends A { public function foo(string $string, bool $b = false) : void { $str = $string; $string = $string === "hello" ? "foo" : "bar"; echo $string; echo $str; } }', '<?php class A { public function foo(string $str, bool $b = false) : void {} } class AChild extends A { public function foo(string $str, bool $b = false) : void { $str_new = $str; $str = $str === "hello" ? "foo" : "bar"; echo $str; echo $str_new; } }', '7.1', ['ParamNameMismatch'], true, ], 'fixIfNewNameAlreadyExists74' => [ '<?php class A { public function foo(string $str, bool $b = false) : void {} } class AChild extends A { public function foo(string $string, bool $b = false) : void { $str_new = $string; } }', '<?php class A { public function foo(string $str, bool $b = false) : void {} } class AChild extends A { public function foo(string $str, bool $b = false) : void { $str_new = $str; } }', '7.1', ['ParamNameMismatch'], true, ], 'noFixIfNewNameAndOldNameAlreadyExists74' => [ '<?php class A { public function foo(string $str, bool $b = false) : void {} } class AChild extends A { public function foo(string $string, bool $b = false) : void { $str = $string; $str_new = $string; } }', '<?php class A { public function foo(string $str, bool $b = false) : void {} } class AChild extends A { public function foo(string $string, bool $b = false) : void { $str = $string; $str_new = $string; } }', '7.1', ['ParamNameMismatch'], true, ], 'fixMismatchingParamNameWithDocblockType74' => [ '<?php class A { /** * @param string $str */ public function foo($str, bool $b = false) : void {} } class AChild extends A { /** * @param string $string */ public function foo($string, bool $b = false) : void {} }', '<?php class A { /** * @param string $str */ public function foo($str, bool $b = false) : void {} } class AChild extends A { /** * @param string $str */ public function foo($str, bool $b = false) : void {} }', '7.1', ['ParamNameMismatch'], true, ], ]; } }
vimeo/psalm
tests/FileManipulation/ParamNameMismatchTest.php
PHP
mit
4,625
/* basic.h - a minimalistic pocl device driver layer implementation Copyright (c) 2015 Pekka Jääskeläinen / Tampere University of Technology Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /** * @file pocl-hsa.h * * Control HSA-supported devices via HSA runtime. */ #ifndef POCL_HSA_H #define POCL_HSA_H #include "pocl_cl.h" #include "pocl_icd.h" #include "config.h" #include "prototypes.inc" GEN_PROTOTYPES (hsa) #endif /* POCL_BASIC_H */
sting47/pocl
lib/CL/devices/hsa/pocl-hsa.h
C
mit
1,479
<h1>Not supported any more</h1> <h1>YQuotes</h1> <p>Simple way to get stock quotes from Yahoo Finance.</p> <p> <ul> <li>Get stock information (price, name and etc.)</li> <li>Get historical price data</li> </ul> </p> <h2>Install</h2> <code>go get github.com/doneland/yquotes</code> <h2>How to use</h2> <h3>Get price information of single stock</h3> <p> Client can get price information about stock from Finance Yahoo by calling <code>NewStock(symbol string, history bool)</code> method. It retruns <code>Stock</code> type with recent price information. <code>history</code> property directs wether historical data should be loaded or not. </p> <pre> // Get stock information without historical data. If you want to load historical // data, second argument to <code>TRUE</code>. stock, err := yquotes.NewStock("AAPL", false) if err != nil { // handle error } symbol := stock.Symbol // AAPL name := stock.Name // Apple Inc. // Price information price := stock.Price // Price struct bid := price.Bid ask := price.Ask open := price.Open prevClose := price.PreviousClose last := price.Last date := price.Date </pre> <h3>Get historical information</h3> <h4>History for selected number of years</h4> <p> Function <code>HistoryForYears</code> accepts three parameters: symbol, number of years and frequency (daily, monthly). Frequency is defined by static variables <code>yquotes.[.Daily, .Weekly, .Monthly, .Yearly]</code> </p> <pre> // Get historical prices for the last 3 years. prices, err := yquotes.HistoryForYears("AAPL", 3, yquotes.Daily) if err != nil { // handle error } } </pre> <h4>Get historical prices between two dates</h4> <p> Function <code>GetDailyHistory</code> accepts three arguments: symbol, date1 (from) date2 (to). Function returns list hisptorical prices <code>[]PriceH</code>. Dates are of time.Time type. </p> <pre> // Define layout of date. layout := "2006-01-02" from := time.Parse(layout, "2012-01-01") to := time.Now() prices, err := yquotes.GetDailyHistory("AAPL", from, to) if err != nil { } </pre> <h3>Data types</h3> <h4>Stock type</h4> <p> Notice that properies <code>Price</code> and <code>History</code> have different types of price data. This is because historical data row has different data columns. </p> <pre> type Stock struct { // Symbol of stock that should meet requirements of Yahoo. Otherwise, // there will be no possibility to find stock. Symbol string `json:"symbol,omitempty"` // Name of the company will be filled from request of stock data. Name string `json:"name,omitempty"` // Information about last price of stock. Price *Price `json:"price,omitempty"` // Contains historical price information. If client asks information // for recent price, this field will be omited. History []PriceH `json:"history,omitempty"` } </pre> <h4>Price type</h4> <p>Price struct represents price in single point in time.</p> <pre> type Price struct { Bid float64 `json:"bid,omitempty"` Ask float64 `json:"ask,omitempty"` Open float64 `json:"open,omitempty"` PreviousClose float64 `json:"previousClose,omitempty"` Last float64 `json:"last,omitempty"` Date time.Time `json:"date,omitempty"` } </pre> <h4>Historical price type</h4> <p>This type represents row of historical price data.</p> <pre> type PriceH struct { Date time.Time `json:"date,omitempty"` Open float64 `json:"open,omitempty"` High float64 `json:"high,omitempty"` Low float64 `json:"low,omitempty"` Close float64 `json:"close,omitempty"` Volume float64 `json:"volume,omitempty"` AdjClose float64 `json:"adjClose,omitempty"` } </pre>
doneland/yquotes
README.md
Markdown
mit
3,881
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard. */ #import "NSObject.h" @class NSString; @interface MCPeerIDInternal : NSObject { NSString *_idString; unsigned long long _pid64; NSString *_displayName; } @property(readonly, nonatomic) NSString *displayName; // @synthesize displayName=_displayName; @property(readonly, nonatomic) unsigned long long pid64; // @synthesize pid64=_pid64; @property(readonly, nonatomic) NSString *idString; // @synthesize idString=_idString; - (void)dealloc; - (id)initWithIDString:(id)arg1 pid64:(unsigned long long)arg2 displayName:(id)arg3; @end
matthewsot/CocoaSharp
Headers/Frameworks/MultipeerConnectivity/MCPeerIDInternal.h
C
mit
686
/*MIT License Copyright (c) 2017 Israel Barth Rubio Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.*/ /// <summary> /// Creates a new list object instance. /// </summary> /// <param name="p_containerDivId">The list container.</param> /// <paramref name="p_containerDivId">Takes a dom element id. /// <returns>List javscript object instance</returns> function startList(p_containerDivId) { var v_listObject = { //Set of functions to be called after some operations in list component. After starting the list component, you should replace the callbacks as you want. callbacks: { /// <summary> /// Function called after a list item is rendered. /// </summary> /// <param name="p_component">This list object.</param> /// <paramref name="p_component">List javascript object instance. /// <param name="p_node">The list item rendered.</param> /// <paramref name="p_node">List node javascript element. afterRenderNode: null, /// <summary> /// Function called after a list is rendered. /// </summary> /// <param name="p_component">This list object.</param> /// <paramref name="p_component">List javascript object instance. afterRenderList: null }, //Some list configs. Do not modify it manually. configs: { name: 'list_' + p_containerDivId, nodeHeight: 24 }, //Some list controls. Do not modify it manually. controls: { selectedNode: null, nodeCounter: 0, currentScrollIndex: 0 }, //List dom elements. elements: { componentDiv: document.getElementById(p_containerDivId), containerDiv: null, dataGroupDiv: null }, //List item nodes childNodes: [], //Tag to save your things tag: {}, /// <summary> /// This should be called to insert node items in the list. /// </summary> /// <param name="p_html">Html to be displayed in the node div.</param> /// <paramref name="p_html">Takes a string. createNode: function(p_html) { var v_nodeObject = { configs: { id: 'listnode_' + this.controls.nodeCounter, html: p_html, }, controls: { rendered: false }, elements: { nodeDiv: null }, tag : {} } this.controls.nodeCounter++; this.childNodes.push(v_nodeObject); return v_nodeObject; }, /// <summary> /// Render the list items. /// </summary> /// <param name="p_startIndex">The index where render should start.</param> /// <paramref name="p_startIndex">Takes an integer or null. render: function(p_startIndex) { for(var i = 0; i < this.childNodes.length; i++) { this.childNodes[i].controls.rendered = false; } if(p_startIndex != null) { var v_newScroll = p_startIndex * this.configs.nodeHeight; this.elements.componentDiv.scrollTop = v_newScroll; } else { var p_startIndex = this.controls.currentScrollIndex; this.elements.dataGroupDiv.innerHTML = ''; var v_numNodes = (parseInt(this.elements.componentDiv.offsetHeight) / parseInt(this.configs.nodeHeight)); v_numNodes += 7; for(var i = p_startIndex; i < p_startIndex + v_numNodes; i++) { if(i >= this.childNodes.length) { break; } var v_nodeDiv = document.createElement('div'); v_nodeDiv.style.height = this.configs.nodeHeight + 'px'; v_nodeDiv.style.lineHeight = this.configs.nodeHeight + 'px'; v_nodeDiv.classList.add('list-node'); v_nodeDiv.innerHTML = this.childNodes[i].configs.html; this.elements.dataGroupDiv.appendChild(v_nodeDiv); this.childNodes[i].elements.nodeDiv = v_nodeDiv; this.childNodes[i].controls.rendered = true; if(this.callbacks.afterRenderNode != null) { this.callbacks.afterRenderNode(this, this.childNodes[i]); } } this.elements.containerDiv.style.height = (this.configs.nodeHeight * this.childNodes.length) + 'px'; if(this.callbacks.afterRenderList != null) { this.callbacks.afterRenderList(this); } } } } var v_listContainerDiv = document.createElement('div'); v_listContainerDiv.classList.add('list-container'); v_listContainerDiv.v_componentObject = v_listObject; v_listObject.elements.containerDiv = v_listContainerDiv; v_listObject.elements.componentDiv.appendChild(v_listContainerDiv); v_listObject.elements.componentDiv.addEventListener( 'scroll', function(p_component, p_event) { var v_quotient = Math.floor(p_event.target.scrollTop / p_component.configs.nodeHeight); var v_remainder = p_event.target.scrollTop % p_component.configs.nodeHeight; var v_levelDiff = Math.abs(p_component.controls.currentScrollIndex - v_quotient); if(v_levelDiff >= 1) { p_component.elements.dataGroupDiv.style.paddingTop = (v_quotient * p_component.configs.nodeHeight) + 'px'; p_component.controls.currentScrollIndex = v_quotient; p_component.render(); } }.bind(v_listObject.elements.componentDiv, v_listObject) ); var v_dataGroupDiv = document.createElement('div'); v_dataGroupDiv.classList.add('list-data-group'); v_dataGroupDiv.style.paddingTop = '0px'; v_listObject.elements.dataGroupDiv = v_dataGroupDiv; v_listContainerDiv.appendChild(v_dataGroupDiv); return v_listObject; }
barthisrael/gridJS
listJS.js
JavaScript
mit
7,235
(function ($) { 'use strict'; $.fn.bootstrapTable.locales['en-US'] = { formatLoadingMessage: function () { return 'Loading, please wait...'; }, formatRecordsPerPage: function (pageNumber) { return pageNumber + ' rows per page'; }, formatShowingRows: function (pageFrom, pageTo, totalRows) { return 'Showing ' + pageFrom + ' to ' + pageTo + ' of ' + totalRows + ' rows'; }, formatSearch: function () { return 'Search'; }, formatNoMatches: function () { return 'No matching records found'; }, formatPaginationSwitch: function () { return 'Hide/Show pagination'; }, formatRefresh: function () { return 'Refresh'; }, formatToggle: function () { return 'Toggle'; }, formatColumns: function () { return 'Columns'; }, formatAllRows: function () { return 'All'; }, formatFilterDatepickerPlaceholder: function(){ return 'dd.mm.yyyy'; }, formatFilterDatepickerPlaceholderFrom: function(){ return 'from dd.mm.yyyy'; }, formatFilterDatepickerPlaceholderTo: function(){ return 'to dd.mm.yyyy'; }, formatFilter: function () { return 'Start filter'; }, formatResetFilter: function () { return 'Reset filter'; }, formatFilterSelectLabel: function () { return 'All'; } }; $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['en-US']); })(jQuery);
askalione/bootstrap-table-filter
assets/js/bootstrap-table-en-US.js
JavaScript
mit
1,699
angular.module("EmmetBlue") .controller("accountsHMOPatientsDatabaseController", function($scope, utils){ $scope.patientTypes = {}; $scope.loadImage = utils.loadImage; $scope.loadPatientTypes = function(){ if (typeof (utils.userSession.getID()) !== "undefined"){ var requestData = utils.serverRequest("/accounts-biller/department-patient-types-report-link/view-by-staff?resourceId="+utils.userSession.getID(), "GET"); requestData.then(function(response){ $scope.patientTypes = response; }, function(responseObject){ utils.errorHandler(responseObject); }); } } $scope.loadPatientTypes(); function tableAction(data, type, full, meta){ var verifyButtonAction = "manageField('verify', "+data.patientid+")"; var deleteButtonAction = "manageField('delete', "+data.patientid+")"; var dataOpt = "data-option-id='"+data.patientid+"' data-option-uuid='"+data.patientuuid+"'"; var verifyButton = "<button class='btn btn-danger btn-hmo-profile' ng-click=\""+verifyButtonAction+"\" "+dataOpt+"> <i class='fa fa-eyes'></i> View HMO Information</button>"; var deleteButton = "<button class='btn btn-default btn-hmo-profile' ng-click=\""+deleteButtonAction+"\" "+dataOpt+"> <i class='fa fa-trash'></i> Delete</button>"; var viewButton = "<button class='btn btn-default btn-hmo-profile'> View</button>"; var buttons = "<div class='btn-group'>"+verifyButton+"</button>"; return buttons; } $scope.settingsDtInstance = {}; $scope.settingsDtOptions = utils.DT.optionsBuilder .fromFnPromise(function(){ var request = utils.serverRequest('/patients/patient/view-by-patient-type?resourceId='+$scope.currentPatientType, 'GET'); return request; }) .withPaginationType('full_numbers') .withDisplayLength(10) .withFixedHeader() .withOption('createdRow', function(row, data, dataIndex){ utils.compile(angular.element(row).contents())($scope); }) .withOption('headerCallback', function(header) { if (!$scope.headerCompiled) { $scope.headerCompiled = true; utils.compile(angular.element(header).contents())($scope); } }) $scope.settingsDtColumns = [ utils.DT.columnBuilder.newColumn(null).withTitle("Patient Full Name").renderWith(function(data){ var image = $scope.loadImage(data.patientpicture); var val ='<span class="pull-left"> <a href="#"> <img src="'+image+'" class="img-circle img" width="50" height="50" alt=""> </a> </span> '+data.patientfullname; return "<div class='media'>"+val+"</div>"; }), utils.DT.columnBuilder.newColumn('patientuuid').withTitle("Patient Hospital Number"), utils.DT.columnBuilder.newColumn(null).withTitle("Action").renderWith(tableAction).notSortable() ]; $scope.reloadTable = function(){ $scope.settingsDtInstance.reloadData(); } $scope.$watch('currentPatientType', function(newValue, oldValue){ if (typeof $scope.currentPatientType !== 'undefined'){ $scope.reloadTable(); } }) $scope.manageField = function(manageGroup, id, isId=true){ switch(manageGroup.toLowerCase()){ case "verify":{ if (isId){ var req = utils.serverRequest("/accounts-biller/hmo-field-value/view-profile?resourceId="+id, "GET"); } else { var req = utils.serverRequest("/accounts-biller/hmo-field-value/view-profile-by-uuid?resourceId=0&uuid="+id, "GET"); } req.then(function(response){ if (typeof response[0] == 'undefined'){ utils.notify("HMO Profile Not Found", "Seems like this patient has not been registered into the HMO Database", "error"); } else { $scope.currentHmoProfile = { document: response[0].PatientIdentificationDocument, profile: response[0].ProfileID } delete response[0].PatientIdentificationDocument; delete response[0].ProfileID; delete response[0].PatientID; $scope.currentHmoProfile.info = response[0]; $("#hmoInfo").modal("show"); } }, function(error){ utils.errorHandler(error); }) } } } });
EmmetBlue/Emmet-Blue-Ui
plugins/accounts/hmo/assets/controllers/hmo-patients-database-controller.js
JavaScript
mit
3,986
export default function () { return [ { name: 'Ladislau', surname: 'Prelipceanu', gender: 'male', region: 'Romania', }, { name: 'Petronela', surname: 'Udilă', gender: 'female', region: 'Romania', }, { name: 'Alina', surname: 'Wolf', gender: 'female', region: 'Germany', }, { name: 'Lugosi', surname: 'Evelin', gender: 'female', region: 'Hungary', }, { name: 'Luminița', surname: 'Maluțan', gender: 'female', region: 'Romania', }, { name: 'Esperanza', surname: 'Monroy', gender: 'female', region: 'Mexico', }, { name: '潘', surname: '婵', gender: 'female', region: 'China', }, { name: 'Δαναός', surname: 'Αρβανίτης', gender: 'male', region: 'Greece', }, { name: 'Θεαίτητος', surname: 'Γεωργιάδης', gender: 'male', region: 'Greece', }, { name: 'Cătălin', surname: 'Tudan', gender: 'male', region: 'Romania', }, ]; }
jgunnison/react-boilerplate
client-src/reducers/listContentReducer.js
JavaScript
mit
1,179
sudo mkdir -p /usr/share/bdbm_drv sudo touch /usr/share/bdbm_drv/ftl.dat sudo touch /usr/share/bdbm_drv/dm.dat sudo rmmod nvme sudo insmod dumbssd.ko sleep 1 sudo insmod nvme.ko sleep 1 sudo insmod bdbm_drv.ko sleep 1 sudo mkfs.f2fs -a 0 -s 2 /dev/robusta sudo mount -t f2fs -o discard /dev/robusta /media/robusta
mnm1021/bdbm_drv_fine_grained
frontend/kernel/mount_f2fs.sh
Shell
mit
315
function CheckDeath(keys) local caster = keys.caster local ability = keys.ability ability.health_per_reincarnation_pct = ability:GetAbilitySpecial("health_per_reincarnation_pct") if caster:HasScepter() then ability.health_per_reincarnation_pct = ability:GetAbilitySpecial("health_per_reincarnation_pct_scepter") end local pct = caster:GetTotalHealthReduction() if ( caster.IsMarkedForTrueKill or caster:GetHealth() > 1 or caster.is_reincarnating or caster:IsIllusion() or caster:IsTempestDouble() or pct + ability.health_per_reincarnation_pct >= 100 ) then caster:RemoveModifierByName("modifier_kadash_immortality_life_saver") else ability:ApplyDataDrivenModifier(caster, caster, "modifier_kadash_immortality_life_saver", {}) caster:SetHealth(1) caster:SetMana(0) ability:ApplyDataDrivenModifier(caster, caster, "modifier_kadash_immortality_reincarnation", {}) end end function OnModCreated(keys) local caster = keys.caster local ability = keys.ability caster:AddNoDraw() caster.is_reincarnating = true if not ability.pfx_reincarnation_respawn_timer then ability.pfx_reincarnation_respawn_timer = {} end ability.pfx_reincarnation_respawn_timer[caster:GetEntityIndex()] = ParticleManager:CreateParticle("particles/units/heroes/hero_skeletonking/wraith_king_reincarnate.vpcf", PATTACH_ABSORIGIN, caster) ParticleManager:SetParticleControl(ability.pfx_reincarnation_respawn_timer[caster:GetEntityIndex()], 0, caster:GetAbsOrigin()) ability:CreateVisibilityNode(caster:GetAbsOrigin(), keys.vision_radius, keys.Duration) caster:EmitSound("Hero_SkeletonKing.Reincarnate") caster:EmitSound("Hero_SkeletonKing.Death") local model = "models/props_gameplay/tombstoneb01.vmdl" local grave = Entities:CreateByClassname("prop_dynamic") grave:SetModel(model) grave:SetAbsOrigin(caster:GetAbsOrigin()) ability.npc_reincarnation_tombstone = grave local particle1 = ParticleManager:CreateParticle( "particles/units/heroes/hero_skeletonking/skeleton_king_death_bits.vpcf", PATTACH_ABSORIGIN, caster ) ParticleManager:SetParticleControl(particle1, 0, caster:GetAbsOrigin()) local particle2 = ParticleManager:CreateParticle( "particles/units/heroes/hero_skeletonking/skeleton_king_death_dust.vpcf", PATTACH_ABSORIGIN_FOLLOW, caster ) ParticleManager:SetParticleControl(particle2, 0, caster:GetAbsOrigin()) local particle3 = ParticleManager:CreateParticle( "particles/units/heroes/hero_skeletonking/skeleton_king_death_dust_reincarnate.vpcf", PATTACH_ABSORIGIN_FOLLOW, caster ) ParticleManager:SetParticleControl(particle3, 0, caster:GetAbsOrigin()) caster:Purge(false, true, false, true, false) end function OnModDestroy(keys) local caster = keys.caster local ability = keys.ability caster:EmitSound("Hero_SkeletonKing.Reincarnate.Stinger") caster.is_reincarnating = false caster:RemoveNoDraw() caster:SetHealth(caster:GetMaxHealth()) caster:SetMana(0) caster:Purge(false, true, false, true, false) ParticleManager:DestroyParticle(ability.pfx_reincarnation_respawn_timer[caster:GetEntityIndex()], false) ability.npc_reincarnation_tombstone:RemoveSelf() ModifyStacks(ability, caster, caster, "modifier_kadash_immortality_health_penalty", ability.health_per_reincarnation_pct, false) if caster:HasScepter() then ability:ApplyDataDrivenModifier(caster, caster, "modifier_kadash_immortality_ghostform", nil) caster:EmitSound("DOTA_Item.GhostScepter.Activate") end end function ThinkPenalty(keys) keys.caster:CalculateHealthReduction() end
ark120202/aabs
game/scripts/vscripts/heroes/hero_kadash/immortality.lua
Lua
mit
3,494
<?php ini_set('display_errors', 1); /** * The following are some example usages of the Escpr class. * ========================================================= * * Using Escpr is a piece of cake. * * Escpr class has a single public method - escape(). * It's static and works by reference, * meaning directly on a variable's value(s). * * But keep in mind - Escpr does not escape stdClass objects! * It's still a work in progress. Maybe one day Escpr will be * smart enough to do it. But for now a workaround is to cast * stdClass object to array and after escaping - back to stdClass object (examples bellow). * * That's it. * * Start escaping. */ require_once '../vendor/autoload.php'; use Escpr\Escpr; use Escpr\Examples\User; // Escaping a strings. $simpleString = '<b>This string should be bold if not escaped correctly.</b>'; Escpr::escape($simpleString); // assign the returned value to a variable. echo $simpleString . '<br />'; // Escaping arrays. $simpleArray = ['some' => '<b>String to be escaped</b>']; Escpr::escape($simpleArray); echo implode(', ', $simpleArray) . '<br />'; // Escaping objects. // Note: After the escapeing the original object will have escaped properties. $simpleUserObject = new User("John", "<b>Doe</b>"); Escpr::escape($simpleUserObject); echo $simpleUserObject . '<br />'; // Escaping array of arrays. $complexArray = [ 'some' => [ 'complex' => [ 'stuff' => '<b>here</b>', ] ] ]; Escpr::escape($complexArray); echo $complexArray['some']['complex']['stuff'] . '<br />'; // Escaping array of things. $moreComplexArray = [ '<u>string</u>', 'some' => [ 'array' => [ 'of' => [ new User('John', '<b>Doe</b>'), ], 'and' => '<b>Another thing</b>', ] ], ['<li>and this list item</li>'], ['and' => [ 'why' => [ 'not' => [ 'this' => [ 'crazy' => [ 'thing' => '<script>console.log("hey!")</script>', ] ] ] ] ]], ]; Escpr::escape($moreComplexArray); array_walk_recursive($moreComplexArray, function ($e) { echo $e . '<br />'; }); // Escaping stdClass objects // NOTE: Escpr does not escape stdClass objects. // WORKAROUND: // First, cast to array. // Second, escape with Escpr::escape(). // Third, cast back to object. $stdClassObject = new stdClass(); // create a simple stdClass object. $stdClassObject->escapeMe = '<script>alert("Rotten tomatoes ftw!")</script>'; // add a property to it. $stdClassObjectAsArray = (array) $stdClassObject; // because Escpr does not escape stdClass objects, convert it to array. Escpr::escape($stdClassObjectAsArray); // escape the casted array. $stdClassObject = (object) $stdClassObjectAsArray; // cast the escaped array back to stdClass object. echo $stdClassObject->escapeMe . '<br />'; // print the escaped value.
brslv/escpr
Examples/index.php
PHP
mit
3,026
' ' News Articles for DotNetNuke - http://www.dotnetnuke.com ' Copyright (c) 2002-2007 ' by Ventrian ( [email protected] ) ( http://www.ventrian.com ) ' Imports System Imports System.Configuration Imports System.Data Imports DotNetNuke.Common.Utilities Namespace Ventrian.NewsArticles.Components.Types Public Enum UrlModeType Classic Shorterned End Enum End Namespace
ventrian/News-Articles
Components/Types/UrlModeType.vb
Visual Basic
mit
423
<!DOCTYPE html> <html> <head><meta charset="utf-8" /> <title>models</title><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> <style type="text/css"> /*! * * Twitter Bootstrap * */ /*! * Bootstrap v3.3.7 (http://getbootstrap.com) * Copyright 2011-2016 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */ html { font-family: sans-serif; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; } body { margin: 0; } article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary { display: block; } audio, canvas, progress, video { display: inline-block; vertical-align: baseline; } audio:not([controls]) { display: none; height: 0; } [hidden], template { display: none; } a { background-color: transparent; } a:active, a:hover { outline: 0; } abbr[title] { border-bottom: 1px dotted; } b, strong { font-weight: bold; } dfn { font-style: italic; } h1 { font-size: 2em; margin: 0.67em 0; } mark { background: #ff0; color: #000; } small { font-size: 80%; } sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } sup { top: -0.5em; } sub { bottom: -0.25em; } img { border: 0; } svg:not(:root) { overflow: hidden; } figure { margin: 1em 40px; } hr { box-sizing: content-box; height: 0; } pre { overflow: auto; } code, kbd, pre, samp { font-family: monospace, monospace; font-size: 1em; } button, input, optgroup, select, textarea { color: inherit; font: inherit; margin: 0; } button { overflow: visible; } button, select { text-transform: none; } button, html input[type="button"], input[type="reset"], input[type="submit"] { -webkit-appearance: button; cursor: pointer; } button[disabled], html input[disabled] { cursor: default; } button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; } input { line-height: normal; } input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; } input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { height: auto; } input[type="search"] { -webkit-appearance: textfield; box-sizing: content-box; } input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; } fieldset { border: 1px solid #c0c0c0; margin: 0 2px; padding: 0.35em 0.625em 0.75em; } legend { border: 0; padding: 0; } textarea { overflow: auto; } optgroup { font-weight: bold; } table { border-collapse: collapse; border-spacing: 0; } td, th { padding: 0; } /*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */ @media print { *, *:before, *:after { background: transparent !important; color: #000 !important; box-shadow: none !important; text-shadow: none !important; } a, a:visited { text-decoration: underline; } a[href]:after { content: " (" attr(href) ")"; } abbr[title]:after { content: " (" attr(title) ")"; } a[href^="#"]:after, a[href^="javascript:"]:after { content: ""; } pre, blockquote { border: 1px solid #999; page-break-inside: avoid; } thead { display: table-header-group; } tr, img { page-break-inside: avoid; } img { max-width: 100% !important; } p, h2, h3 { orphans: 3; widows: 3; } h2, h3 { page-break-after: avoid; } .navbar { display: none; } .btn > .caret, .dropup > .btn > .caret { border-top-color: #000 !important; } .label { border: 1px solid #000; } .table { border-collapse: collapse !important; } .table td, .table th { background-color: #fff !important; } .table-bordered th, .table-bordered td { border: 1px solid #ddd !important; } } @font-face { font-family: 'Glyphicons Halflings'; src: url('../components/bootstrap/fonts/glyphicons-halflings-regular.eot'); src: url('../components/bootstrap/fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../components/bootstrap/fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('../components/bootstrap/fonts/glyphicons-halflings-regular.woff') format('woff'), url('../components/bootstrap/fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../components/bootstrap/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg'); } .glyphicon { position: relative; top: 1px; display: inline-block; font-family: 'Glyphicons Halflings'; font-style: normal; font-weight: normal; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .glyphicon-asterisk:before { content: "\002a"; } .glyphicon-plus:before { content: "\002b"; } .glyphicon-euro:before, .glyphicon-eur:before { content: "\20ac"; } .glyphicon-minus:before { content: "\2212"; } .glyphicon-cloud:before { content: "\2601"; } .glyphicon-envelope:before { content: "\2709"; } .glyphicon-pencil:before { content: "\270f"; } .glyphicon-glass:before { content: "\e001"; } .glyphicon-music:before { content: "\e002"; } .glyphicon-search:before { content: "\e003"; } .glyphicon-heart:before { content: "\e005"; } .glyphicon-star:before { content: "\e006"; } .glyphicon-star-empty:before { content: "\e007"; } .glyphicon-user:before { content: "\e008"; } .glyphicon-film:before { content: "\e009"; } .glyphicon-th-large:before { content: "\e010"; } .glyphicon-th:before { content: "\e011"; } .glyphicon-th-list:before { content: "\e012"; } .glyphicon-ok:before { content: "\e013"; } .glyphicon-remove:before { content: "\e014"; } .glyphicon-zoom-in:before { content: "\e015"; } .glyphicon-zoom-out:before { content: "\e016"; } .glyphicon-off:before { content: "\e017"; } .glyphicon-signal:before { content: "\e018"; } .glyphicon-cog:before { content: "\e019"; } .glyphicon-trash:before { content: "\e020"; } .glyphicon-home:before { content: "\e021"; } .glyphicon-file:before { content: "\e022"; } .glyphicon-time:before { content: "\e023"; } .glyphicon-road:before { content: "\e024"; } .glyphicon-download-alt:before { content: "\e025"; } .glyphicon-download:before { content: "\e026"; } .glyphicon-upload:before { content: "\e027"; } .glyphicon-inbox:before { content: "\e028"; } .glyphicon-play-circle:before { content: "\e029"; } .glyphicon-repeat:before { content: "\e030"; } .glyphicon-refresh:before { content: "\e031"; } .glyphicon-list-alt:before { content: "\e032"; } .glyphicon-lock:before { content: "\e033"; } .glyphicon-flag:before { content: "\e034"; } .glyphicon-headphones:before { content: "\e035"; } .glyphicon-volume-off:before { content: "\e036"; } .glyphicon-volume-down:before { content: "\e037"; } .glyphicon-volume-up:before { content: "\e038"; } .glyphicon-qrcode:before { content: "\e039"; } .glyphicon-barcode:before { content: "\e040"; } .glyphicon-tag:before { content: "\e041"; } .glyphicon-tags:before { content: "\e042"; } .glyphicon-book:before { content: "\e043"; } .glyphicon-bookmark:before { content: "\e044"; } .glyphicon-print:before { content: "\e045"; } .glyphicon-camera:before { content: "\e046"; } .glyphicon-font:before { content: "\e047"; } .glyphicon-bold:before { content: "\e048"; } .glyphicon-italic:before { content: "\e049"; } .glyphicon-text-height:before { content: "\e050"; } .glyphicon-text-width:before { content: "\e051"; } .glyphicon-align-left:before { content: "\e052"; } .glyphicon-align-center:before { content: "\e053"; } .glyphicon-align-right:before { content: "\e054"; } .glyphicon-align-justify:before { content: "\e055"; } .glyphicon-list:before { content: "\e056"; } .glyphicon-indent-left:before { content: "\e057"; } .glyphicon-indent-right:before { content: "\e058"; } .glyphicon-facetime-video:before { content: "\e059"; } .glyphicon-picture:before { content: "\e060"; } .glyphicon-map-marker:before { content: "\e062"; } .glyphicon-adjust:before { content: "\e063"; } .glyphicon-tint:before { content: "\e064"; } .glyphicon-edit:before { content: "\e065"; } .glyphicon-share:before { content: "\e066"; } .glyphicon-check:before { content: "\e067"; } .glyphicon-move:before { content: "\e068"; } .glyphicon-step-backward:before { content: "\e069"; } .glyphicon-fast-backward:before { content: "\e070"; } .glyphicon-backward:before { content: "\e071"; } .glyphicon-play:before { content: "\e072"; } .glyphicon-pause:before { content: "\e073"; } .glyphicon-stop:before { content: "\e074"; } .glyphicon-forward:before { content: "\e075"; } .glyphicon-fast-forward:before { content: "\e076"; } .glyphicon-step-forward:before { content: "\e077"; } .glyphicon-eject:before { content: "\e078"; } .glyphicon-chevron-left:before { content: "\e079"; } .glyphicon-chevron-right:before { content: "\e080"; } .glyphicon-plus-sign:before { content: "\e081"; } .glyphicon-minus-sign:before { content: "\e082"; } .glyphicon-remove-sign:before { content: "\e083"; } .glyphicon-ok-sign:before { content: "\e084"; } .glyphicon-question-sign:before { content: "\e085"; } .glyphicon-info-sign:before { content: "\e086"; } .glyphicon-screenshot:before { content: "\e087"; } .glyphicon-remove-circle:before { content: "\e088"; } .glyphicon-ok-circle:before { content: "\e089"; } .glyphicon-ban-circle:before { content: "\e090"; } .glyphicon-arrow-left:before { content: "\e091"; } .glyphicon-arrow-right:before { content: "\e092"; } .glyphicon-arrow-up:before { content: "\e093"; } .glyphicon-arrow-down:before { content: "\e094"; } .glyphicon-share-alt:before { content: "\e095"; } .glyphicon-resize-full:before { content: "\e096"; } .glyphicon-resize-small:before { content: "\e097"; } .glyphicon-exclamation-sign:before { content: "\e101"; } .glyphicon-gift:before { content: "\e102"; } .glyphicon-leaf:before { content: "\e103"; } .glyphicon-fire:before { content: "\e104"; } .glyphicon-eye-open:before { content: "\e105"; } .glyphicon-eye-close:before { content: "\e106"; } .glyphicon-warning-sign:before { content: "\e107"; } .glyphicon-plane:before { content: "\e108"; } .glyphicon-calendar:before { content: "\e109"; } .glyphicon-random:before { content: "\e110"; } .glyphicon-comment:before { content: "\e111"; } .glyphicon-magnet:before { content: "\e112"; } .glyphicon-chevron-up:before { content: "\e113"; } .glyphicon-chevron-down:before { content: "\e114"; } .glyphicon-retweet:before { content: "\e115"; } .glyphicon-shopping-cart:before { content: "\e116"; } .glyphicon-folder-close:before { content: "\e117"; } .glyphicon-folder-open:before { content: "\e118"; } .glyphicon-resize-vertical:before { content: "\e119"; } .glyphicon-resize-horizontal:before { content: "\e120"; } .glyphicon-hdd:before { content: "\e121"; } .glyphicon-bullhorn:before { content: "\e122"; } .glyphicon-bell:before { content: "\e123"; } .glyphicon-certificate:before { content: "\e124"; } .glyphicon-thumbs-up:before { content: "\e125"; } .glyphicon-thumbs-down:before { content: "\e126"; } .glyphicon-hand-right:before { content: "\e127"; } .glyphicon-hand-left:before { content: "\e128"; } .glyphicon-hand-up:before { content: "\e129"; } .glyphicon-hand-down:before { content: "\e130"; } .glyphicon-circle-arrow-right:before { content: "\e131"; } .glyphicon-circle-arrow-left:before { content: "\e132"; } .glyphicon-circle-arrow-up:before { content: "\e133"; } .glyphicon-circle-arrow-down:before { content: "\e134"; } .glyphicon-globe:before { content: "\e135"; } .glyphicon-wrench:before { content: "\e136"; } .glyphicon-tasks:before { content: "\e137"; } .glyphicon-filter:before { content: "\e138"; } .glyphicon-briefcase:before { content: "\e139"; } .glyphicon-fullscreen:before { content: "\e140"; } .glyphicon-dashboard:before { content: "\e141"; } .glyphicon-paperclip:before { content: "\e142"; } .glyphicon-heart-empty:before { content: "\e143"; } .glyphicon-link:before { content: "\e144"; } .glyphicon-phone:before { content: "\e145"; } .glyphicon-pushpin:before { content: "\e146"; } .glyphicon-usd:before { content: "\e148"; } .glyphicon-gbp:before { content: "\e149"; } .glyphicon-sort:before { content: "\e150"; } .glyphicon-sort-by-alphabet:before { content: "\e151"; } .glyphicon-sort-by-alphabet-alt:before { content: "\e152"; } .glyphicon-sort-by-order:before { content: "\e153"; } .glyphicon-sort-by-order-alt:before { content: "\e154"; } .glyphicon-sort-by-attributes:before { content: "\e155"; } .glyphicon-sort-by-attributes-alt:before { content: "\e156"; } .glyphicon-unchecked:before { content: "\e157"; } .glyphicon-expand:before { content: "\e158"; } .glyphicon-collapse-down:before { content: "\e159"; } .glyphicon-collapse-up:before { content: "\e160"; } .glyphicon-log-in:before { content: "\e161"; } .glyphicon-flash:before { content: "\e162"; } .glyphicon-log-out:before { content: "\e163"; } .glyphicon-new-window:before { content: "\e164"; } .glyphicon-record:before { content: "\e165"; } .glyphicon-save:before { content: "\e166"; } .glyphicon-open:before { content: "\e167"; } .glyphicon-saved:before { content: "\e168"; } .glyphicon-import:before { content: "\e169"; } .glyphicon-export:before { content: "\e170"; } .glyphicon-send:before { content: "\e171"; } .glyphicon-floppy-disk:before { content: "\e172"; } .glyphicon-floppy-saved:before { content: "\e173"; } .glyphicon-floppy-remove:before { content: "\e174"; } .glyphicon-floppy-save:before { content: "\e175"; } .glyphicon-floppy-open:before { content: "\e176"; } .glyphicon-credit-card:before { content: "\e177"; } .glyphicon-transfer:before { content: "\e178"; } .glyphicon-cutlery:before { content: "\e179"; } .glyphicon-header:before { content: "\e180"; } .glyphicon-compressed:before { content: "\e181"; } .glyphicon-earphone:before { content: "\e182"; } .glyphicon-phone-alt:before { content: "\e183"; } .glyphicon-tower:before { content: "\e184"; } .glyphicon-stats:before { content: "\e185"; } .glyphicon-sd-video:before { content: "\e186"; } .glyphicon-hd-video:before { content: "\e187"; } .glyphicon-subtitles:before { content: "\e188"; } .glyphicon-sound-stereo:before { content: "\e189"; } .glyphicon-sound-dolby:before { content: "\e190"; } .glyphicon-sound-5-1:before { content: "\e191"; } .glyphicon-sound-6-1:before { content: "\e192"; } .glyphicon-sound-7-1:before { content: "\e193"; } .glyphicon-copyright-mark:before { content: "\e194"; } .glyphicon-registration-mark:before { content: "\e195"; } .glyphicon-cloud-download:before { content: "\e197"; } .glyphicon-cloud-upload:before { content: "\e198"; } .glyphicon-tree-conifer:before { content: "\e199"; } .glyphicon-tree-deciduous:before { content: "\e200"; } .glyphicon-cd:before { content: "\e201"; } .glyphicon-save-file:before { content: "\e202"; } .glyphicon-open-file:before { content: "\e203"; } .glyphicon-level-up:before { content: "\e204"; } .glyphicon-copy:before { content: "\e205"; } .glyphicon-paste:before { content: "\e206"; } .glyphicon-alert:before { content: "\e209"; } .glyphicon-equalizer:before { content: "\e210"; } .glyphicon-king:before { content: "\e211"; } .glyphicon-queen:before { content: "\e212"; } .glyphicon-pawn:before { content: "\e213"; } .glyphicon-bishop:before { content: "\e214"; } .glyphicon-knight:before { content: "\e215"; } .glyphicon-baby-formula:before { content: "\e216"; } .glyphicon-tent:before { content: "\26fa"; } .glyphicon-blackboard:before { content: "\e218"; } .glyphicon-bed:before { content: "\e219"; } .glyphicon-apple:before { content: "\f8ff"; } .glyphicon-erase:before { content: "\e221"; } .glyphicon-hourglass:before { content: "\231b"; } .glyphicon-lamp:before { content: "\e223"; } .glyphicon-duplicate:before { content: "\e224"; } .glyphicon-piggy-bank:before { content: "\e225"; } .glyphicon-scissors:before { content: "\e226"; } .glyphicon-bitcoin:before { content: "\e227"; } .glyphicon-btc:before { content: "\e227"; } .glyphicon-xbt:before { content: "\e227"; } .glyphicon-yen:before { content: "\00a5"; } .glyphicon-jpy:before { content: "\00a5"; } .glyphicon-ruble:before { content: "\20bd"; } .glyphicon-rub:before { content: "\20bd"; } .glyphicon-scale:before { content: "\e230"; } .glyphicon-ice-lolly:before { content: "\e231"; } .glyphicon-ice-lolly-tasted:before { content: "\e232"; } .glyphicon-education:before { content: "\e233"; } .glyphicon-option-horizontal:before { content: "\e234"; } .glyphicon-option-vertical:before { content: "\e235"; } .glyphicon-menu-hamburger:before { content: "\e236"; } .glyphicon-modal-window:before { content: "\e237"; } .glyphicon-oil:before { content: "\e238"; } .glyphicon-grain:before { content: "\e239"; } .glyphicon-sunglasses:before { content: "\e240"; } .glyphicon-text-size:before { content: "\e241"; } .glyphicon-text-color:before { content: "\e242"; } .glyphicon-text-background:before { content: "\e243"; } .glyphicon-object-align-top:before { content: "\e244"; } .glyphicon-object-align-bottom:before { content: "\e245"; } .glyphicon-object-align-horizontal:before { content: "\e246"; } .glyphicon-object-align-left:before { content: "\e247"; } .glyphicon-object-align-vertical:before { content: "\e248"; } .glyphicon-object-align-right:before { content: "\e249"; } .glyphicon-triangle-right:before { content: "\e250"; } .glyphicon-triangle-left:before { content: "\e251"; } .glyphicon-triangle-bottom:before { content: "\e252"; } .glyphicon-triangle-top:before { content: "\e253"; } .glyphicon-console:before { content: "\e254"; } .glyphicon-superscript:before { content: "\e255"; } .glyphicon-subscript:before { content: "\e256"; } .glyphicon-menu-left:before { content: "\e257"; } .glyphicon-menu-right:before { content: "\e258"; } .glyphicon-menu-down:before { content: "\e259"; } .glyphicon-menu-up:before { content: "\e260"; } * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } *:before, *:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } html { font-size: 10px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 13px; line-height: 1.42857143; color: #000; background-color: #fff; } input, button, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; } a { color: #337ab7; text-decoration: none; } a:hover, a:focus { color: #23527c; text-decoration: underline; } a:focus { outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } figure { margin: 0; } img { vertical-align: middle; } .img-responsive, .thumbnail > img, .thumbnail a > img, .carousel-inner > .item > img, .carousel-inner > .item > a > img { display: block; max-width: 100%; height: auto; } .img-rounded { border-radius: 3px; } .img-thumbnail { padding: 4px; line-height: 1.42857143; background-color: #fff; border: 1px solid #ddd; border-radius: 2px; -webkit-transition: all 0.2s ease-in-out; -o-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; display: inline-block; max-width: 100%; height: auto; } .img-circle { border-radius: 50%; } hr { margin-top: 18px; margin-bottom: 18px; border: 0; border-top: 1px solid #eeeeee; } .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; } .sr-only-focusable:active, .sr-only-focusable:focus { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; } [role="button"] { cursor: pointer; } h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: inherit; font-weight: 500; line-height: 1.1; color: inherit; } h1 small, h2 small, h3 small, h4 small, h5 small, h6 small, .h1 small, .h2 small, .h3 small, .h4 small, .h5 small, .h6 small, h1 .small, h2 .small, h3 .small, h4 .small, h5 .small, h6 .small, .h1 .small, .h2 .small, .h3 .small, .h4 .small, .h5 .small, .h6 .small { font-weight: normal; line-height: 1; color: #777777; } h1, .h1, h2, .h2, h3, .h3 { margin-top: 18px; margin-bottom: 9px; } h1 small, .h1 small, h2 small, .h2 small, h3 small, .h3 small, h1 .small, .h1 .small, h2 .small, .h2 .small, h3 .small, .h3 .small { font-size: 65%; } h4, .h4, h5, .h5, h6, .h6 { margin-top: 9px; margin-bottom: 9px; } h4 small, .h4 small, h5 small, .h5 small, h6 small, .h6 small, h4 .small, .h4 .small, h5 .small, .h5 .small, h6 .small, .h6 .small { font-size: 75%; } h1, .h1 { font-size: 33px; } h2, .h2 { font-size: 27px; } h3, .h3 { font-size: 23px; } h4, .h4 { font-size: 17px; } h5, .h5 { font-size: 13px; } h6, .h6 { font-size: 12px; } p { margin: 0 0 9px; } .lead { margin-bottom: 18px; font-size: 14px; font-weight: 300; line-height: 1.4; } @media (min-width: 768px) { .lead { font-size: 19.5px; } } small, .small { font-size: 92%; } mark, .mark { background-color: #fcf8e3; padding: .2em; } .text-left { text-align: left; } .text-right { text-align: right; } .text-center { text-align: center; } .text-justify { text-align: justify; } .text-nowrap { white-space: nowrap; } .text-lowercase { text-transform: lowercase; } .text-uppercase { text-transform: uppercase; } .text-capitalize { text-transform: capitalize; } .text-muted { color: #777777; } .text-primary { color: #337ab7; } a.text-primary:hover, a.text-primary:focus { color: #286090; } .text-success { color: #3c763d; } a.text-success:hover, a.text-success:focus { color: #2b542c; } .text-info { color: #31708f; } a.text-info:hover, a.text-info:focus { color: #245269; } .text-warning { color: #8a6d3b; } a.text-warning:hover, a.text-warning:focus { color: #66512c; } .text-danger { color: #a94442; } a.text-danger:hover, a.text-danger:focus { color: #843534; } .bg-primary { color: #fff; background-color: #337ab7; } a.bg-primary:hover, a.bg-primary:focus { background-color: #286090; } .bg-success { background-color: #dff0d8; } a.bg-success:hover, a.bg-success:focus { background-color: #c1e2b3; } .bg-info { background-color: #d9edf7; } a.bg-info:hover, a.bg-info:focus { background-color: #afd9ee; } .bg-warning { background-color: #fcf8e3; } a.bg-warning:hover, a.bg-warning:focus { background-color: #f7ecb5; } .bg-danger { background-color: #f2dede; } a.bg-danger:hover, a.bg-danger:focus { background-color: #e4b9b9; } .page-header { padding-bottom: 8px; margin: 36px 0 18px; border-bottom: 1px solid #eeeeee; } ul, ol { margin-top: 0; margin-bottom: 9px; } ul ul, ol ul, ul ol, ol ol { margin-bottom: 0; } .list-unstyled { padding-left: 0; list-style: none; } .list-inline { padding-left: 0; list-style: none; margin-left: -5px; } .list-inline > li { display: inline-block; padding-left: 5px; padding-right: 5px; } dl { margin-top: 0; margin-bottom: 18px; } dt, dd { line-height: 1.42857143; } dt { font-weight: bold; } dd { margin-left: 0; } @media (min-width: 541px) { .dl-horizontal dt { float: left; width: 160px; clear: left; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dl-horizontal dd { margin-left: 180px; } } abbr[title], abbr[data-original-title] { cursor: help; border-bottom: 1px dotted #777777; } .initialism { font-size: 90%; text-transform: uppercase; } blockquote { padding: 9px 18px; margin: 0 0 18px; font-size: inherit; border-left: 5px solid #eeeeee; } blockquote p:last-child, blockquote ul:last-child, blockquote ol:last-child { margin-bottom: 0; } blockquote footer, blockquote small, blockquote .small { display: block; font-size: 80%; line-height: 1.42857143; color: #777777; } blockquote footer:before, blockquote small:before, blockquote .small:before { content: '\2014 \00A0'; } .blockquote-reverse, blockquote.pull-right { padding-right: 15px; padding-left: 0; border-right: 5px solid #eeeeee; border-left: 0; text-align: right; } .blockquote-reverse footer:before, blockquote.pull-right footer:before, .blockquote-reverse small:before, blockquote.pull-right small:before, .blockquote-reverse .small:before, blockquote.pull-right .small:before { content: ''; } .blockquote-reverse footer:after, blockquote.pull-right footer:after, .blockquote-reverse small:after, blockquote.pull-right small:after, .blockquote-reverse .small:after, blockquote.pull-right .small:after { content: '\00A0 \2014'; } address { margin-bottom: 18px; font-style: normal; line-height: 1.42857143; } code, kbd, pre, samp { font-family: monospace; } code { padding: 2px 4px; font-size: 90%; color: #c7254e; background-color: #f9f2f4; border-radius: 2px; } kbd { padding: 2px 4px; font-size: 90%; color: #888; background-color: transparent; border-radius: 1px; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25); } kbd kbd { padding: 0; font-size: 100%; font-weight: bold; box-shadow: none; } pre { display: block; padding: 8.5px; margin: 0 0 9px; font-size: 12px; line-height: 1.42857143; word-break: break-all; word-wrap: break-word; color: #333333; background-color: #f5f5f5; border: 1px solid #ccc; border-radius: 2px; } pre code { padding: 0; font-size: inherit; color: inherit; white-space: pre-wrap; background-color: transparent; border-radius: 0; } .pre-scrollable { max-height: 340px; overflow-y: scroll; } .container { margin-right: auto; margin-left: auto; padding-left: 0px; padding-right: 0px; } @media (min-width: 768px) { .container { width: 768px; } } @media (min-width: 992px) { .container { width: 940px; } } @media (min-width: 1200px) { .container { width: 1140px; } } .container-fluid { margin-right: auto; margin-left: auto; padding-left: 0px; padding-right: 0px; } .row { margin-left: 0px; margin-right: 0px; } .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 { position: relative; min-height: 1px; padding-left: 0px; padding-right: 0px; } .col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 { float: left; } .col-xs-12 { width: 100%; } .col-xs-11 { width: 91.66666667%; } .col-xs-10 { width: 83.33333333%; } .col-xs-9 { width: 75%; } .col-xs-8 { width: 66.66666667%; } .col-xs-7 { width: 58.33333333%; } .col-xs-6 { width: 50%; } .col-xs-5 { width: 41.66666667%; } .col-xs-4 { width: 33.33333333%; } .col-xs-3 { width: 25%; } .col-xs-2 { width: 16.66666667%; } .col-xs-1 { width: 8.33333333%; } .col-xs-pull-12 { right: 100%; } .col-xs-pull-11 { right: 91.66666667%; } .col-xs-pull-10 { right: 83.33333333%; } .col-xs-pull-9 { right: 75%; } .col-xs-pull-8 { right: 66.66666667%; } .col-xs-pull-7 { right: 58.33333333%; } .col-xs-pull-6 { right: 50%; } .col-xs-pull-5 { right: 41.66666667%; } .col-xs-pull-4 { right: 33.33333333%; } .col-xs-pull-3 { right: 25%; } .col-xs-pull-2 { right: 16.66666667%; } .col-xs-pull-1 { right: 8.33333333%; } .col-xs-pull-0 { right: auto; } .col-xs-push-12 { left: 100%; } .col-xs-push-11 { left: 91.66666667%; } .col-xs-push-10 { left: 83.33333333%; } .col-xs-push-9 { left: 75%; } .col-xs-push-8 { left: 66.66666667%; } .col-xs-push-7 { left: 58.33333333%; } .col-xs-push-6 { left: 50%; } .col-xs-push-5 { left: 41.66666667%; } .col-xs-push-4 { left: 33.33333333%; } .col-xs-push-3 { left: 25%; } .col-xs-push-2 { left: 16.66666667%; } .col-xs-push-1 { left: 8.33333333%; } .col-xs-push-0 { left: auto; } .col-xs-offset-12 { margin-left: 100%; } .col-xs-offset-11 { margin-left: 91.66666667%; } .col-xs-offset-10 { margin-left: 83.33333333%; } .col-xs-offset-9 { margin-left: 75%; } .col-xs-offset-8 { margin-left: 66.66666667%; } .col-xs-offset-7 { margin-left: 58.33333333%; } .col-xs-offset-6 { margin-left: 50%; } .col-xs-offset-5 { margin-left: 41.66666667%; } .col-xs-offset-4 { margin-left: 33.33333333%; } .col-xs-offset-3 { margin-left: 25%; } .col-xs-offset-2 { margin-left: 16.66666667%; } .col-xs-offset-1 { margin-left: 8.33333333%; } .col-xs-offset-0 { margin-left: 0%; } @media (min-width: 768px) { .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 { float: left; } .col-sm-12 { width: 100%; } .col-sm-11 { width: 91.66666667%; } .col-sm-10 { width: 83.33333333%; } .col-sm-9 { width: 75%; } .col-sm-8 { width: 66.66666667%; } .col-sm-7 { width: 58.33333333%; } .col-sm-6 { width: 50%; } .col-sm-5 { width: 41.66666667%; } .col-sm-4 { width: 33.33333333%; } .col-sm-3 { width: 25%; } .col-sm-2 { width: 16.66666667%; } .col-sm-1 { width: 8.33333333%; } .col-sm-pull-12 { right: 100%; } .col-sm-pull-11 { right: 91.66666667%; } .col-sm-pull-10 { right: 83.33333333%; } .col-sm-pull-9 { right: 75%; } .col-sm-pull-8 { right: 66.66666667%; } .col-sm-pull-7 { right: 58.33333333%; } .col-sm-pull-6 { right: 50%; } .col-sm-pull-5 { right: 41.66666667%; } .col-sm-pull-4 { right: 33.33333333%; } .col-sm-pull-3 { right: 25%; } .col-sm-pull-2 { right: 16.66666667%; } .col-sm-pull-1 { right: 8.33333333%; } .col-sm-pull-0 { right: auto; } .col-sm-push-12 { left: 100%; } .col-sm-push-11 { left: 91.66666667%; } .col-sm-push-10 { left: 83.33333333%; } .col-sm-push-9 { left: 75%; } .col-sm-push-8 { left: 66.66666667%; } .col-sm-push-7 { left: 58.33333333%; } .col-sm-push-6 { left: 50%; } .col-sm-push-5 { left: 41.66666667%; } .col-sm-push-4 { left: 33.33333333%; } .col-sm-push-3 { left: 25%; } .col-sm-push-2 { left: 16.66666667%; } .col-sm-push-1 { left: 8.33333333%; } .col-sm-push-0 { left: auto; } .col-sm-offset-12 { margin-left: 100%; } .col-sm-offset-11 { margin-left: 91.66666667%; } .col-sm-offset-10 { margin-left: 83.33333333%; } .col-sm-offset-9 { margin-left: 75%; } .col-sm-offset-8 { margin-left: 66.66666667%; } .col-sm-offset-7 { margin-left: 58.33333333%; } .col-sm-offset-6 { margin-left: 50%; } .col-sm-offset-5 { margin-left: 41.66666667%; } .col-sm-offset-4 { margin-left: 33.33333333%; } .col-sm-offset-3 { margin-left: 25%; } .col-sm-offset-2 { margin-left: 16.66666667%; } .col-sm-offset-1 { margin-left: 8.33333333%; } .col-sm-offset-0 { margin-left: 0%; } } @media (min-width: 992px) { .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 { float: left; } .col-md-12 { width: 100%; } .col-md-11 { width: 91.66666667%; } .col-md-10 { width: 83.33333333%; } .col-md-9 { width: 75%; } .col-md-8 { width: 66.66666667%; } .col-md-7 { width: 58.33333333%; } .col-md-6 { width: 50%; } .col-md-5 { width: 41.66666667%; } .col-md-4 { width: 33.33333333%; } .col-md-3 { width: 25%; } .col-md-2 { width: 16.66666667%; } .col-md-1 { width: 8.33333333%; } .col-md-pull-12 { right: 100%; } .col-md-pull-11 { right: 91.66666667%; } .col-md-pull-10 { right: 83.33333333%; } .col-md-pull-9 { right: 75%; } .col-md-pull-8 { right: 66.66666667%; } .col-md-pull-7 { right: 58.33333333%; } .col-md-pull-6 { right: 50%; } .col-md-pull-5 { right: 41.66666667%; } .col-md-pull-4 { right: 33.33333333%; } .col-md-pull-3 { right: 25%; } .col-md-pull-2 { right: 16.66666667%; } .col-md-pull-1 { right: 8.33333333%; } .col-md-pull-0 { right: auto; } .col-md-push-12 { left: 100%; } .col-md-push-11 { left: 91.66666667%; } .col-md-push-10 { left: 83.33333333%; } .col-md-push-9 { left: 75%; } .col-md-push-8 { left: 66.66666667%; } .col-md-push-7 { left: 58.33333333%; } .col-md-push-6 { left: 50%; } .col-md-push-5 { left: 41.66666667%; } .col-md-push-4 { left: 33.33333333%; } .col-md-push-3 { left: 25%; } .col-md-push-2 { left: 16.66666667%; } .col-md-push-1 { left: 8.33333333%; } .col-md-push-0 { left: auto; } .col-md-offset-12 { margin-left: 100%; } .col-md-offset-11 { margin-left: 91.66666667%; } .col-md-offset-10 { margin-left: 83.33333333%; } .col-md-offset-9 { margin-left: 75%; } .col-md-offset-8 { margin-left: 66.66666667%; } .col-md-offset-7 { margin-left: 58.33333333%; } .col-md-offset-6 { margin-left: 50%; } .col-md-offset-5 { margin-left: 41.66666667%; } .col-md-offset-4 { margin-left: 33.33333333%; } .col-md-offset-3 { margin-left: 25%; } .col-md-offset-2 { margin-left: 16.66666667%; } .col-md-offset-1 { margin-left: 8.33333333%; } .col-md-offset-0 { margin-left: 0%; } } @media (min-width: 1200px) { .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 { float: left; } .col-lg-12 { width: 100%; } .col-lg-11 { width: 91.66666667%; } .col-lg-10 { width: 83.33333333%; } .col-lg-9 { width: 75%; } .col-lg-8 { width: 66.66666667%; } .col-lg-7 { width: 58.33333333%; } .col-lg-6 { width: 50%; } .col-lg-5 { width: 41.66666667%; } .col-lg-4 { width: 33.33333333%; } .col-lg-3 { width: 25%; } .col-lg-2 { width: 16.66666667%; } .col-lg-1 { width: 8.33333333%; } .col-lg-pull-12 { right: 100%; } .col-lg-pull-11 { right: 91.66666667%; } .col-lg-pull-10 { right: 83.33333333%; } .col-lg-pull-9 { right: 75%; } .col-lg-pull-8 { right: 66.66666667%; } .col-lg-pull-7 { right: 58.33333333%; } .col-lg-pull-6 { right: 50%; } .col-lg-pull-5 { right: 41.66666667%; } .col-lg-pull-4 { right: 33.33333333%; } .col-lg-pull-3 { right: 25%; } .col-lg-pull-2 { right: 16.66666667%; } .col-lg-pull-1 { right: 8.33333333%; } .col-lg-pull-0 { right: auto; } .col-lg-push-12 { left: 100%; } .col-lg-push-11 { left: 91.66666667%; } .col-lg-push-10 { left: 83.33333333%; } .col-lg-push-9 { left: 75%; } .col-lg-push-8 { left: 66.66666667%; } .col-lg-push-7 { left: 58.33333333%; } .col-lg-push-6 { left: 50%; } .col-lg-push-5 { left: 41.66666667%; } .col-lg-push-4 { left: 33.33333333%; } .col-lg-push-3 { left: 25%; } .col-lg-push-2 { left: 16.66666667%; } .col-lg-push-1 { left: 8.33333333%; } .col-lg-push-0 { left: auto; } .col-lg-offset-12 { margin-left: 100%; } .col-lg-offset-11 { margin-left: 91.66666667%; } .col-lg-offset-10 { margin-left: 83.33333333%; } .col-lg-offset-9 { margin-left: 75%; } .col-lg-offset-8 { margin-left: 66.66666667%; } .col-lg-offset-7 { margin-left: 58.33333333%; } .col-lg-offset-6 { margin-left: 50%; } .col-lg-offset-5 { margin-left: 41.66666667%; } .col-lg-offset-4 { margin-left: 33.33333333%; } .col-lg-offset-3 { margin-left: 25%; } .col-lg-offset-2 { margin-left: 16.66666667%; } .col-lg-offset-1 { margin-left: 8.33333333%; } .col-lg-offset-0 { margin-left: 0%; } } table { background-color: transparent; } caption { padding-top: 8px; padding-bottom: 8px; color: #777777; text-align: left; } th { text-align: left; } .table { width: 100%; max-width: 100%; margin-bottom: 18px; } .table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td { padding: 8px; line-height: 1.42857143; vertical-align: top; border-top: 1px solid #ddd; } .table > thead > tr > th { vertical-align: bottom; border-bottom: 2px solid #ddd; } .table > caption + thead > tr:first-child > th, .table > colgroup + thead > tr:first-child > th, .table > thead:first-child > tr:first-child > th, .table > caption + thead > tr:first-child > td, .table > colgroup + thead > tr:first-child > td, .table > thead:first-child > tr:first-child > td { border-top: 0; } .table > tbody + tbody { border-top: 2px solid #ddd; } .table .table { background-color: #fff; } .table-condensed > thead > tr > th, .table-condensed > tbody > tr > th, .table-condensed > tfoot > tr > th, .table-condensed > thead > tr > td, .table-condensed > tbody > tr > td, .table-condensed > tfoot > tr > td { padding: 5px; } .table-bordered { border: 1px solid #ddd; } .table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th, .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td { border: 1px solid #ddd; } .table-bordered > thead > tr > th, .table-bordered > thead > tr > td { border-bottom-width: 2px; } .table-striped > tbody > tr:nth-of-type(odd) { background-color: #f9f9f9; } .table-hover > tbody > tr:hover { background-color: #f5f5f5; } table col[class*="col-"] { position: static; float: none; display: table-column; } table td[class*="col-"], table th[class*="col-"] { position: static; float: none; display: table-cell; } .table > thead > tr > td.active, .table > tbody > tr > td.active, .table > tfoot > tr > td.active, .table > thead > tr > th.active, .table > tbody > tr > th.active, .table > tfoot > tr > th.active, .table > thead > tr.active > td, .table > tbody > tr.active > td, .table > tfoot > tr.active > td, .table > thead > tr.active > th, .table > tbody > tr.active > th, .table > tfoot > tr.active > th { background-color: #f5f5f5; } .table-hover > tbody > tr > td.active:hover, .table-hover > tbody > tr > th.active:hover, .table-hover > tbody > tr.active:hover > td, .table-hover > tbody > tr:hover > .active, .table-hover > tbody > tr.active:hover > th { background-color: #e8e8e8; } .table > thead > tr > td.success, .table > tbody > tr > td.success, .table > tfoot > tr > td.success, .table > thead > tr > th.success, .table > tbody > tr > th.success, .table > tfoot > tr > th.success, .table > thead > tr.success > td, .table > tbody > tr.success > td, .table > tfoot > tr.success > td, .table > thead > tr.success > th, .table > tbody > tr.success > th, .table > tfoot > tr.success > th { background-color: #dff0d8; } .table-hover > tbody > tr > td.success:hover, .table-hover > tbody > tr > th.success:hover, .table-hover > tbody > tr.success:hover > td, .table-hover > tbody > tr:hover > .success, .table-hover > tbody > tr.success:hover > th { background-color: #d0e9c6; } .table > thead > tr > td.info, .table > tbody > tr > td.info, .table > tfoot > tr > td.info, .table > thead > tr > th.info, .table > tbody > tr > th.info, .table > tfoot > tr > th.info, .table > thead > tr.info > td, .table > tbody > tr.info > td, .table > tfoot > tr.info > td, .table > thead > tr.info > th, .table > tbody > tr.info > th, .table > tfoot > tr.info > th { background-color: #d9edf7; } .table-hover > tbody > tr > td.info:hover, .table-hover > tbody > tr > th.info:hover, .table-hover > tbody > tr.info:hover > td, .table-hover > tbody > tr:hover > .info, .table-hover > tbody > tr.info:hover > th { background-color: #c4e3f3; } .table > thead > tr > td.warning, .table > tbody > tr > td.warning, .table > tfoot > tr > td.warning, .table > thead > tr > th.warning, .table > tbody > tr > th.warning, .table > tfoot > tr > th.warning, .table > thead > tr.warning > td, .table > tbody > tr.warning > td, .table > tfoot > tr.warning > td, .table > thead > tr.warning > th, .table > tbody > tr.warning > th, .table > tfoot > tr.warning > th { background-color: #fcf8e3; } .table-hover > tbody > tr > td.warning:hover, .table-hover > tbody > tr > th.warning:hover, .table-hover > tbody > tr.warning:hover > td, .table-hover > tbody > tr:hover > .warning, .table-hover > tbody > tr.warning:hover > th { background-color: #faf2cc; } .table > thead > tr > td.danger, .table > tbody > tr > td.danger, .table > tfoot > tr > td.danger, .table > thead > tr > th.danger, .table > tbody > tr > th.danger, .table > tfoot > tr > th.danger, .table > thead > tr.danger > td, .table > tbody > tr.danger > td, .table > tfoot > tr.danger > td, .table > thead > tr.danger > th, .table > tbody > tr.danger > th, .table > tfoot > tr.danger > th { background-color: #f2dede; } .table-hover > tbody > tr > td.danger:hover, .table-hover > tbody > tr > th.danger:hover, .table-hover > tbody > tr.danger:hover > td, .table-hover > tbody > tr:hover > .danger, .table-hover > tbody > tr.danger:hover > th { background-color: #ebcccc; } .table-responsive { overflow-x: auto; min-height: 0.01%; } @media screen and (max-width: 767px) { .table-responsive { width: 100%; margin-bottom: 13.5px; overflow-y: hidden; -ms-overflow-style: -ms-autohiding-scrollbar; border: 1px solid #ddd; } .table-responsive > .table { margin-bottom: 0; } .table-responsive > .table > thead > tr > th, .table-responsive > .table > tbody > tr > th, .table-responsive > .table > tfoot > tr > th, .table-responsive > .table > thead > tr > td, .table-responsive > .table > tbody > tr > td, .table-responsive > .table > tfoot > tr > td { white-space: nowrap; } .table-responsive > .table-bordered { border: 0; } .table-responsive > .table-bordered > thead > tr > th:first-child, .table-responsive > .table-bordered > tbody > tr > th:first-child, .table-responsive > .table-bordered > tfoot > tr > th:first-child, .table-responsive > .table-bordered > thead > tr > td:first-child, .table-responsive > .table-bordered > tbody > tr > td:first-child, .table-responsive > .table-bordered > tfoot > tr > td:first-child { border-left: 0; } .table-responsive > .table-bordered > thead > tr > th:last-child, .table-responsive > .table-bordered > tbody > tr > th:last-child, .table-responsive > .table-bordered > tfoot > tr > th:last-child, .table-responsive > .table-bordered > thead > tr > td:last-child, .table-responsive > .table-bordered > tbody > tr > td:last-child, .table-responsive > .table-bordered > tfoot > tr > td:last-child { border-right: 0; } .table-responsive > .table-bordered > tbody > tr:last-child > th, .table-responsive > .table-bordered > tfoot > tr:last-child > th, .table-responsive > .table-bordered > tbody > tr:last-child > td, .table-responsive > .table-bordered > tfoot > tr:last-child > td { border-bottom: 0; } } fieldset { padding: 0; margin: 0; border: 0; min-width: 0; } legend { display: block; width: 100%; padding: 0; margin-bottom: 18px; font-size: 19.5px; line-height: inherit; color: #333333; border: 0; border-bottom: 1px solid #e5e5e5; } label { display: inline-block; max-width: 100%; margin-bottom: 5px; font-weight: bold; } input[type="search"] { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } input[type="radio"], input[type="checkbox"] { margin: 4px 0 0; margin-top: 1px \9; line-height: normal; } input[type="file"] { display: block; } input[type="range"] { display: block; width: 100%; } select[multiple], select[size] { height: auto; } input[type="file"]:focus, input[type="radio"]:focus, input[type="checkbox"]:focus { outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } output { display: block; padding-top: 7px; font-size: 13px; line-height: 1.42857143; color: #555555; } .form-control { display: block; width: 100%; height: 32px; padding: 6px 12px; font-size: 13px; line-height: 1.42857143; color: #555555; background-color: #fff; background-image: none; border: 1px solid #ccc; border-radius: 2px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; } .form-control:focus { border-color: #66afe9; outline: 0; -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); } .form-control::-moz-placeholder { color: #999; opacity: 1; } .form-control:-ms-input-placeholder { color: #999; } .form-control::-webkit-input-placeholder { color: #999; } .form-control::-ms-expand { border: 0; background-color: transparent; } .form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control { background-color: #eeeeee; opacity: 1; } .form-control[disabled], fieldset[disabled] .form-control { cursor: not-allowed; } textarea.form-control { height: auto; } input[type="search"] { -webkit-appearance: none; } @media screen and (-webkit-min-device-pixel-ratio: 0) { input[type="date"].form-control, input[type="time"].form-control, input[type="datetime-local"].form-control, input[type="month"].form-control { line-height: 32px; } input[type="date"].input-sm, input[type="time"].input-sm, input[type="datetime-local"].input-sm, input[type="month"].input-sm, .input-group-sm input[type="date"], .input-group-sm input[type="time"], .input-group-sm input[type="datetime-local"], .input-group-sm input[type="month"] { line-height: 30px; } input[type="date"].input-lg, input[type="time"].input-lg, input[type="datetime-local"].input-lg, input[type="month"].input-lg, .input-group-lg input[type="date"], .input-group-lg input[type="time"], .input-group-lg input[type="datetime-local"], .input-group-lg input[type="month"] { line-height: 45px; } } .form-group { margin-bottom: 15px; } .radio, .checkbox { position: relative; display: block; margin-top: 10px; margin-bottom: 10px; } .radio label, .checkbox label { min-height: 18px; padding-left: 20px; margin-bottom: 0; font-weight: normal; cursor: pointer; } .radio input[type="radio"], .radio-inline input[type="radio"], .checkbox input[type="checkbox"], .checkbox-inline input[type="checkbox"] { position: absolute; margin-left: -20px; margin-top: 4px \9; } .radio + .radio, .checkbox + .checkbox { margin-top: -5px; } .radio-inline, .checkbox-inline { position: relative; display: inline-block; padding-left: 20px; margin-bottom: 0; vertical-align: middle; font-weight: normal; cursor: pointer; } .radio-inline + .radio-inline, .checkbox-inline + .checkbox-inline { margin-top: 0; margin-left: 10px; } input[type="radio"][disabled], input[type="checkbox"][disabled], input[type="radio"].disabled, input[type="checkbox"].disabled, fieldset[disabled] input[type="radio"], fieldset[disabled] input[type="checkbox"] { cursor: not-allowed; } .radio-inline.disabled, .checkbox-inline.disabled, fieldset[disabled] .radio-inline, fieldset[disabled] .checkbox-inline { cursor: not-allowed; } .radio.disabled label, .checkbox.disabled label, fieldset[disabled] .radio label, fieldset[disabled] .checkbox label { cursor: not-allowed; } .form-control-static { padding-top: 7px; padding-bottom: 7px; margin-bottom: 0; min-height: 31px; } .form-control-static.input-lg, .form-control-static.input-sm { padding-left: 0; padding-right: 0; } .input-sm { height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 1px; } select.input-sm { height: 30px; line-height: 30px; } textarea.input-sm, select[multiple].input-sm { height: auto; } .form-group-sm .form-control { height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 1px; } .form-group-sm select.form-control { height: 30px; line-height: 30px; } .form-group-sm textarea.form-control, .form-group-sm select[multiple].form-control { height: auto; } .form-group-sm .form-control-static { height: 30px; min-height: 30px; padding: 6px 10px; font-size: 12px; line-height: 1.5; } .input-lg { height: 45px; padding: 10px 16px; font-size: 17px; line-height: 1.3333333; border-radius: 3px; } select.input-lg { height: 45px; line-height: 45px; } textarea.input-lg, select[multiple].input-lg { height: auto; } .form-group-lg .form-control { height: 45px; padding: 10px 16px; font-size: 17px; line-height: 1.3333333; border-radius: 3px; } .form-group-lg select.form-control { height: 45px; line-height: 45px; } .form-group-lg textarea.form-control, .form-group-lg select[multiple].form-control { height: auto; } .form-group-lg .form-control-static { height: 45px; min-height: 35px; padding: 11px 16px; font-size: 17px; line-height: 1.3333333; } .has-feedback { position: relative; } .has-feedback .form-control { padding-right: 40px; } .form-control-feedback { position: absolute; top: 0; right: 0; z-index: 2; display: block; width: 32px; height: 32px; line-height: 32px; text-align: center; pointer-events: none; } .input-lg + .form-control-feedback, .input-group-lg + .form-control-feedback, .form-group-lg .form-control + .form-control-feedback { width: 45px; height: 45px; line-height: 45px; } .input-sm + .form-control-feedback, .input-group-sm + .form-control-feedback, .form-group-sm .form-control + .form-control-feedback { width: 30px; height: 30px; line-height: 30px; } .has-success .help-block, .has-success .control-label, .has-success .radio, .has-success .checkbox, .has-success .radio-inline, .has-success .checkbox-inline, .has-success.radio label, .has-success.checkbox label, .has-success.radio-inline label, .has-success.checkbox-inline label { color: #3c763d; } .has-success .form-control { border-color: #3c763d; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .has-success .form-control:focus { border-color: #2b542c; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168; } .has-success .input-group-addon { color: #3c763d; border-color: #3c763d; background-color: #dff0d8; } .has-success .form-control-feedback { color: #3c763d; } .has-warning .help-block, .has-warning .control-label, .has-warning .radio, .has-warning .checkbox, .has-warning .radio-inline, .has-warning .checkbox-inline, .has-warning.radio label, .has-warning.checkbox label, .has-warning.radio-inline label, .has-warning.checkbox-inline label { color: #8a6d3b; } .has-warning .form-control { border-color: #8a6d3b; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .has-warning .form-control:focus { border-color: #66512c; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b; } .has-warning .input-group-addon { color: #8a6d3b; border-color: #8a6d3b; background-color: #fcf8e3; } .has-warning .form-control-feedback { color: #8a6d3b; } .has-error .help-block, .has-error .control-label, .has-error .radio, .has-error .checkbox, .has-error .radio-inline, .has-error .checkbox-inline, .has-error.radio label, .has-error.checkbox label, .has-error.radio-inline label, .has-error.checkbox-inline label { color: #a94442; } .has-error .form-control { border-color: #a94442; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .has-error .form-control:focus { border-color: #843534; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483; } .has-error .input-group-addon { color: #a94442; border-color: #a94442; background-color: #f2dede; } .has-error .form-control-feedback { color: #a94442; } .has-feedback label ~ .form-control-feedback { top: 23px; } .has-feedback label.sr-only ~ .form-control-feedback { top: 0; } .help-block { display: block; margin-top: 5px; margin-bottom: 10px; color: #404040; } @media (min-width: 768px) { .form-inline .form-group { display: inline-block; margin-bottom: 0; vertical-align: middle; } .form-inline .form-control { display: inline-block; width: auto; vertical-align: middle; } .form-inline .form-control-static { display: inline-block; } .form-inline .input-group { display: inline-table; vertical-align: middle; } .form-inline .input-group .input-group-addon, .form-inline .input-group .input-group-btn, .form-inline .input-group .form-control { width: auto; } .form-inline .input-group > .form-control { width: 100%; } .form-inline .control-label { margin-bottom: 0; vertical-align: middle; } .form-inline .radio, .form-inline .checkbox { display: inline-block; margin-top: 0; margin-bottom: 0; vertical-align: middle; } .form-inline .radio label, .form-inline .checkbox label { padding-left: 0; } .form-inline .radio input[type="radio"], .form-inline .checkbox input[type="checkbox"] { position: relative; margin-left: 0; } .form-inline .has-feedback .form-control-feedback { top: 0; } } .form-horizontal .radio, .form-horizontal .checkbox, .form-horizontal .radio-inline, .form-horizontal .checkbox-inline { margin-top: 0; margin-bottom: 0; padding-top: 7px; } .form-horizontal .radio, .form-horizontal .checkbox { min-height: 25px; } .form-horizontal .form-group { margin-left: 0px; margin-right: 0px; } @media (min-width: 768px) { .form-horizontal .control-label { text-align: right; margin-bottom: 0; padding-top: 7px; } } .form-horizontal .has-feedback .form-control-feedback { right: 0px; } @media (min-width: 768px) { .form-horizontal .form-group-lg .control-label { padding-top: 11px; font-size: 17px; } } @media (min-width: 768px) { .form-horizontal .form-group-sm .control-label { padding-top: 6px; font-size: 12px; } } .btn { display: inline-block; margin-bottom: 0; font-weight: normal; text-align: center; vertical-align: middle; touch-action: manipulation; cursor: pointer; background-image: none; border: 1px solid transparent; white-space: nowrap; padding: 6px 12px; font-size: 13px; line-height: 1.42857143; border-radius: 2px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .btn:focus, .btn:active:focus, .btn.active:focus, .btn.focus, .btn:active.focus, .btn.active.focus { outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } .btn:hover, .btn:focus, .btn.focus { color: #333; text-decoration: none; } .btn:active, .btn.active { outline: 0; background-image: none; -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); } .btn.disabled, .btn[disabled], fieldset[disabled] .btn { cursor: not-allowed; opacity: 0.65; filter: alpha(opacity=65); -webkit-box-shadow: none; box-shadow: none; } a.btn.disabled, fieldset[disabled] a.btn { pointer-events: none; } .btn-default { color: #333; background-color: #fff; border-color: #ccc; } .btn-default:focus, .btn-default.focus { color: #333; background-color: #e6e6e6; border-color: #8c8c8c; } .btn-default:hover { color: #333; background-color: #e6e6e6; border-color: #adadad; } .btn-default:active, .btn-default.active, .open > .dropdown-toggle.btn-default { color: #333; background-color: #e6e6e6; border-color: #adadad; } .btn-default:active:hover, .btn-default.active:hover, .open > .dropdown-toggle.btn-default:hover, .btn-default:active:focus, .btn-default.active:focus, .open > .dropdown-toggle.btn-default:focus, .btn-default:active.focus, .btn-default.active.focus, .open > .dropdown-toggle.btn-default.focus { color: #333; background-color: #d4d4d4; border-color: #8c8c8c; } .btn-default:active, .btn-default.active, .open > .dropdown-toggle.btn-default { background-image: none; } .btn-default.disabled:hover, .btn-default[disabled]:hover, fieldset[disabled] .btn-default:hover, .btn-default.disabled:focus, .btn-default[disabled]:focus, fieldset[disabled] .btn-default:focus, .btn-default.disabled.focus, .btn-default[disabled].focus, fieldset[disabled] .btn-default.focus { background-color: #fff; border-color: #ccc; } .btn-default .badge { color: #fff; background-color: #333; } .btn-primary { color: #fff; background-color: #337ab7; border-color: #2e6da4; } .btn-primary:focus, .btn-primary.focus { color: #fff; background-color: #286090; border-color: #122b40; } .btn-primary:hover { color: #fff; background-color: #286090; border-color: #204d74; } .btn-primary:active, .btn-primary.active, .open > .dropdown-toggle.btn-primary { color: #fff; background-color: #286090; border-color: #204d74; } .btn-primary:active:hover, .btn-primary.active:hover, .open > .dropdown-toggle.btn-primary:hover, .btn-primary:active:focus, .btn-primary.active:focus, .open > .dropdown-toggle.btn-primary:focus, .btn-primary:active.focus, .btn-primary.active.focus, .open > .dropdown-toggle.btn-primary.focus { color: #fff; background-color: #204d74; border-color: #122b40; } .btn-primary:active, .btn-primary.active, .open > .dropdown-toggle.btn-primary { background-image: none; } .btn-primary.disabled:hover, .btn-primary[disabled]:hover, fieldset[disabled] .btn-primary:hover, .btn-primary.disabled:focus, .btn-primary[disabled]:focus, fieldset[disabled] .btn-primary:focus, .btn-primary.disabled.focus, .btn-primary[disabled].focus, fieldset[disabled] .btn-primary.focus { background-color: #337ab7; border-color: #2e6da4; } .btn-primary .badge { color: #337ab7; background-color: #fff; } .btn-success { color: #fff; background-color: #5cb85c; border-color: #4cae4c; } .btn-success:focus, .btn-success.focus { color: #fff; background-color: #449d44; border-color: #255625; } .btn-success:hover { color: #fff; background-color: #449d44; border-color: #398439; } .btn-success:active, .btn-success.active, .open > .dropdown-toggle.btn-success { color: #fff; background-color: #449d44; border-color: #398439; } .btn-success:active:hover, .btn-success.active:hover, .open > .dropdown-toggle.btn-success:hover, .btn-success:active:focus, .btn-success.active:focus, .open > .dropdown-toggle.btn-success:focus, .btn-success:active.focus, .btn-success.active.focus, .open > .dropdown-toggle.btn-success.focus { color: #fff; background-color: #398439; border-color: #255625; } .btn-success:active, .btn-success.active, .open > .dropdown-toggle.btn-success { background-image: none; } .btn-success.disabled:hover, .btn-success[disabled]:hover, fieldset[disabled] .btn-success:hover, .btn-success.disabled:focus, .btn-success[disabled]:focus, fieldset[disabled] .btn-success:focus, .btn-success.disabled.focus, .btn-success[disabled].focus, fieldset[disabled] .btn-success.focus { background-color: #5cb85c; border-color: #4cae4c; } .btn-success .badge { color: #5cb85c; background-color: #fff; } .btn-info { color: #fff; background-color: #5bc0de; border-color: #46b8da; } .btn-info:focus, .btn-info.focus { color: #fff; background-color: #31b0d5; border-color: #1b6d85; } .btn-info:hover { color: #fff; background-color: #31b0d5; border-color: #269abc; } .btn-info:active, .btn-info.active, .open > .dropdown-toggle.btn-info { color: #fff; background-color: #31b0d5; border-color: #269abc; } .btn-info:active:hover, .btn-info.active:hover, .open > .dropdown-toggle.btn-info:hover, .btn-info:active:focus, .btn-info.active:focus, .open > .dropdown-toggle.btn-info:focus, .btn-info:active.focus, .btn-info.active.focus, .open > .dropdown-toggle.btn-info.focus { color: #fff; background-color: #269abc; border-color: #1b6d85; } .btn-info:active, .btn-info.active, .open > .dropdown-toggle.btn-info { background-image: none; } .btn-info.disabled:hover, .btn-info[disabled]:hover, fieldset[disabled] .btn-info:hover, .btn-info.disabled:focus, .btn-info[disabled]:focus, fieldset[disabled] .btn-info:focus, .btn-info.disabled.focus, .btn-info[disabled].focus, fieldset[disabled] .btn-info.focus { background-color: #5bc0de; border-color: #46b8da; } .btn-info .badge { color: #5bc0de; background-color: #fff; } .btn-warning { color: #fff; background-color: #f0ad4e; border-color: #eea236; } .btn-warning:focus, .btn-warning.focus { color: #fff; background-color: #ec971f; border-color: #985f0d; } .btn-warning:hover { color: #fff; background-color: #ec971f; border-color: #d58512; } .btn-warning:active, .btn-warning.active, .open > .dropdown-toggle.btn-warning { color: #fff; background-color: #ec971f; border-color: #d58512; } .btn-warning:active:hover, .btn-warning.active:hover, .open > .dropdown-toggle.btn-warning:hover, .btn-warning:active:focus, .btn-warning.active:focus, .open > .dropdown-toggle.btn-warning:focus, .btn-warning:active.focus, .btn-warning.active.focus, .open > .dropdown-toggle.btn-warning.focus { color: #fff; background-color: #d58512; border-color: #985f0d; } .btn-warning:active, .btn-warning.active, .open > .dropdown-toggle.btn-warning { background-image: none; } .btn-warning.disabled:hover, .btn-warning[disabled]:hover, fieldset[disabled] .btn-warning:hover, .btn-warning.disabled:focus, .btn-warning[disabled]:focus, fieldset[disabled] .btn-warning:focus, .btn-warning.disabled.focus, .btn-warning[disabled].focus, fieldset[disabled] .btn-warning.focus { background-color: #f0ad4e; border-color: #eea236; } .btn-warning .badge { color: #f0ad4e; background-color: #fff; } .btn-danger { color: #fff; background-color: #d9534f; border-color: #d43f3a; } .btn-danger:focus, .btn-danger.focus { color: #fff; background-color: #c9302c; border-color: #761c19; } .btn-danger:hover { color: #fff; background-color: #c9302c; border-color: #ac2925; } .btn-danger:active, .btn-danger.active, .open > .dropdown-toggle.btn-danger { color: #fff; background-color: #c9302c; border-color: #ac2925; } .btn-danger:active:hover, .btn-danger.active:hover, .open > .dropdown-toggle.btn-danger:hover, .btn-danger:active:focus, .btn-danger.active:focus, .open > .dropdown-toggle.btn-danger:focus, .btn-danger:active.focus, .btn-danger.active.focus, .open > .dropdown-toggle.btn-danger.focus { color: #fff; background-color: #ac2925; border-color: #761c19; } .btn-danger:active, .btn-danger.active, .open > .dropdown-toggle.btn-danger { background-image: none; } .btn-danger.disabled:hover, .btn-danger[disabled]:hover, fieldset[disabled] .btn-danger:hover, .btn-danger.disabled:focus, .btn-danger[disabled]:focus, fieldset[disabled] .btn-danger:focus, .btn-danger.disabled.focus, .btn-danger[disabled].focus, fieldset[disabled] .btn-danger.focus { background-color: #d9534f; border-color: #d43f3a; } .btn-danger .badge { color: #d9534f; background-color: #fff; } .btn-link { color: #337ab7; font-weight: normal; border-radius: 0; } .btn-link, .btn-link:active, .btn-link.active, .btn-link[disabled], fieldset[disabled] .btn-link { background-color: transparent; -webkit-box-shadow: none; box-shadow: none; } .btn-link, .btn-link:hover, .btn-link:focus, .btn-link:active { border-color: transparent; } .btn-link:hover, .btn-link:focus { color: #23527c; text-decoration: underline; background-color: transparent; } .btn-link[disabled]:hover, fieldset[disabled] .btn-link:hover, .btn-link[disabled]:focus, fieldset[disabled] .btn-link:focus { color: #777777; text-decoration: none; } .btn-lg, .btn-group-lg > .btn { padding: 10px 16px; font-size: 17px; line-height: 1.3333333; border-radius: 3px; } .btn-sm, .btn-group-sm > .btn { padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 1px; } .btn-xs, .btn-group-xs > .btn { padding: 1px 5px; font-size: 12px; line-height: 1.5; border-radius: 1px; } .btn-block { display: block; width: 100%; } .btn-block + .btn-block { margin-top: 5px; } input[type="submit"].btn-block, input[type="reset"].btn-block, input[type="button"].btn-block { width: 100%; } .fade { opacity: 0; -webkit-transition: opacity 0.15s linear; -o-transition: opacity 0.15s linear; transition: opacity 0.15s linear; } .fade.in { opacity: 1; } .collapse { display: none; } .collapse.in { display: block; } tr.collapse.in { display: table-row; } tbody.collapse.in { display: table-row-group; } .collapsing { position: relative; height: 0; overflow: hidden; -webkit-transition-property: height, visibility; transition-property: height, visibility; -webkit-transition-duration: 0.35s; transition-duration: 0.35s; -webkit-transition-timing-function: ease; transition-timing-function: ease; } .caret { display: inline-block; width: 0; height: 0; margin-left: 2px; vertical-align: middle; border-top: 4px dashed; border-top: 4px solid \9; border-right: 4px solid transparent; border-left: 4px solid transparent; } .dropup, .dropdown { position: relative; } .dropdown-toggle:focus { outline: 0; } .dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 1000; display: none; float: left; min-width: 160px; padding: 5px 0; margin: 2px 0 0; list-style: none; font-size: 13px; text-align: left; background-color: #fff; border: 1px solid #ccc; border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 2px; -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); background-clip: padding-box; } .dropdown-menu.pull-right { right: 0; left: auto; } .dropdown-menu .divider { height: 1px; margin: 8px 0; overflow: hidden; background-color: #e5e5e5; } .dropdown-menu > li > a { display: block; padding: 3px 20px; clear: both; font-weight: normal; line-height: 1.42857143; color: #333333; white-space: nowrap; } .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { text-decoration: none; color: #262626; background-color: #f5f5f5; } .dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus { color: #fff; text-decoration: none; outline: 0; background-color: #337ab7; } .dropdown-menu > .disabled > a, .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { color: #777777; } .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { text-decoration: none; background-color: transparent; background-image: none; filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); cursor: not-allowed; } .open > .dropdown-menu { display: block; } .open > a { outline: 0; } .dropdown-menu-right { left: auto; right: 0; } .dropdown-menu-left { left: 0; right: auto; } .dropdown-header { display: block; padding: 3px 20px; font-size: 12px; line-height: 1.42857143; color: #777777; white-space: nowrap; } .dropdown-backdrop { position: fixed; left: 0; right: 0; bottom: 0; top: 0; z-index: 990; } .pull-right > .dropdown-menu { right: 0; left: auto; } .dropup .caret, .navbar-fixed-bottom .dropdown .caret { border-top: 0; border-bottom: 4px dashed; border-bottom: 4px solid \9; content: ""; } .dropup .dropdown-menu, .navbar-fixed-bottom .dropdown .dropdown-menu { top: auto; bottom: 100%; margin-bottom: 2px; } @media (min-width: 541px) { .navbar-right .dropdown-menu { left: auto; right: 0; } .navbar-right .dropdown-menu-left { left: 0; right: auto; } } .btn-group, .btn-group-vertical { position: relative; display: inline-block; vertical-align: middle; } .btn-group > .btn, .btn-group-vertical > .btn { position: relative; float: left; } .btn-group > .btn:hover, .btn-group-vertical > .btn:hover, .btn-group > .btn:focus, .btn-group-vertical > .btn:focus, .btn-group > .btn:active, .btn-group-vertical > .btn:active, .btn-group > .btn.active, .btn-group-vertical > .btn.active { z-index: 2; } .btn-group .btn + .btn, .btn-group .btn + .btn-group, .btn-group .btn-group + .btn, .btn-group .btn-group + .btn-group { margin-left: -1px; } .btn-toolbar { margin-left: -5px; } .btn-toolbar .btn, .btn-toolbar .btn-group, .btn-toolbar .input-group { float: left; } .btn-toolbar > .btn, .btn-toolbar > .btn-group, .btn-toolbar > .input-group { margin-left: 5px; } .btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { border-radius: 0; } .btn-group > .btn:first-child { margin-left: 0; } .btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) { border-bottom-right-radius: 0; border-top-right-radius: 0; } .btn-group > .btn:last-child:not(:first-child), .btn-group > .dropdown-toggle:not(:first-child) { border-bottom-left-radius: 0; border-top-left-radius: 0; } .btn-group > .btn-group { float: left; } .btn-group > .btn-group:not(:first-child):not(:last-child) > .btn { border-radius: 0; } .btn-group > .btn-group:first-child:not(:last-child) > .btn:last-child, .btn-group > .btn-group:first-child:not(:last-child) > .dropdown-toggle { border-bottom-right-radius: 0; border-top-right-radius: 0; } .btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child { border-bottom-left-radius: 0; border-top-left-radius: 0; } .btn-group .dropdown-toggle:active, .btn-group.open .dropdown-toggle { outline: 0; } .btn-group > .btn + .dropdown-toggle { padding-left: 8px; padding-right: 8px; } .btn-group > .btn-lg + .dropdown-toggle { padding-left: 12px; padding-right: 12px; } .btn-group.open .dropdown-toggle { -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); } .btn-group.open .dropdown-toggle.btn-link { -webkit-box-shadow: none; box-shadow: none; } .btn .caret { margin-left: 0; } .btn-lg .caret { border-width: 5px 5px 0; border-bottom-width: 0; } .dropup .btn-lg .caret { border-width: 0 5px 5px; } .btn-group-vertical > .btn, .btn-group-vertical > .btn-group, .btn-group-vertical > .btn-group > .btn { display: block; float: none; width: 100%; max-width: 100%; } .btn-group-vertical > .btn-group > .btn { float: none; } .btn-group-vertical > .btn + .btn, .btn-group-vertical > .btn + .btn-group, .btn-group-vertical > .btn-group + .btn, .btn-group-vertical > .btn-group + .btn-group { margin-top: -1px; margin-left: 0; } .btn-group-vertical > .btn:not(:first-child):not(:last-child) { border-radius: 0; } .btn-group-vertical > .btn:first-child:not(:last-child) { border-top-right-radius: 2px; border-top-left-radius: 2px; border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .btn-group-vertical > .btn:last-child:not(:first-child) { border-top-right-radius: 0; border-top-left-radius: 0; border-bottom-right-radius: 2px; border-bottom-left-radius: 2px; } .btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn { border-radius: 0; } .btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child, .btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle { border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child { border-top-right-radius: 0; border-top-left-radius: 0; } .btn-group-justified { display: table; width: 100%; table-layout: fixed; border-collapse: separate; } .btn-group-justified > .btn, .btn-group-justified > .btn-group { float: none; display: table-cell; width: 1%; } .btn-group-justified > .btn-group .btn { width: 100%; } .btn-group-justified > .btn-group .dropdown-menu { left: auto; } [data-toggle="buttons"] > .btn input[type="radio"], [data-toggle="buttons"] > .btn-group > .btn input[type="radio"], [data-toggle="buttons"] > .btn input[type="checkbox"], [data-toggle="buttons"] > .btn-group > .btn input[type="checkbox"] { position: absolute; clip: rect(0, 0, 0, 0); pointer-events: none; } .input-group { position: relative; display: table; border-collapse: separate; } .input-group[class*="col-"] { float: none; padding-left: 0; padding-right: 0; } .input-group .form-control { position: relative; z-index: 2; float: left; width: 100%; margin-bottom: 0; } .input-group .form-control:focus { z-index: 3; } .input-group-lg > .form-control, .input-group-lg > .input-group-addon, .input-group-lg > .input-group-btn > .btn { height: 45px; padding: 10px 16px; font-size: 17px; line-height: 1.3333333; border-radius: 3px; } select.input-group-lg > .form-control, select.input-group-lg > .input-group-addon, select.input-group-lg > .input-group-btn > .btn { height: 45px; line-height: 45px; } textarea.input-group-lg > .form-control, textarea.input-group-lg > .input-group-addon, textarea.input-group-lg > .input-group-btn > .btn, select[multiple].input-group-lg > .form-control, select[multiple].input-group-lg > .input-group-addon, select[multiple].input-group-lg > .input-group-btn > .btn { height: auto; } .input-group-sm > .form-control, .input-group-sm > .input-group-addon, .input-group-sm > .input-group-btn > .btn { height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 1px; } select.input-group-sm > .form-control, select.input-group-sm > .input-group-addon, select.input-group-sm > .input-group-btn > .btn { height: 30px; line-height: 30px; } textarea.input-group-sm > .form-control, textarea.input-group-sm > .input-group-addon, textarea.input-group-sm > .input-group-btn > .btn, select[multiple].input-group-sm > .form-control, select[multiple].input-group-sm > .input-group-addon, select[multiple].input-group-sm > .input-group-btn > .btn { height: auto; } .input-group-addon, .input-group-btn, .input-group .form-control { display: table-cell; } .input-group-addon:not(:first-child):not(:last-child), .input-group-btn:not(:first-child):not(:last-child), .input-group .form-control:not(:first-child):not(:last-child) { border-radius: 0; } .input-group-addon, .input-group-btn { width: 1%; white-space: nowrap; vertical-align: middle; } .input-group-addon { padding: 6px 12px; font-size: 13px; font-weight: normal; line-height: 1; color: #555555; text-align: center; background-color: #eeeeee; border: 1px solid #ccc; border-radius: 2px; } .input-group-addon.input-sm { padding: 5px 10px; font-size: 12px; border-radius: 1px; } .input-group-addon.input-lg { padding: 10px 16px; font-size: 17px; border-radius: 3px; } .input-group-addon input[type="radio"], .input-group-addon input[type="checkbox"] { margin-top: 0; } .input-group .form-control:first-child, .input-group-addon:first-child, .input-group-btn:first-child > .btn, .input-group-btn:first-child > .btn-group > .btn, .input-group-btn:first-child > .dropdown-toggle, .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle), .input-group-btn:last-child > .btn-group:not(:last-child) > .btn { border-bottom-right-radius: 0; border-top-right-radius: 0; } .input-group-addon:first-child { border-right: 0; } .input-group .form-control:last-child, .input-group-addon:last-child, .input-group-btn:last-child > .btn, .input-group-btn:last-child > .btn-group > .btn, .input-group-btn:last-child > .dropdown-toggle, .input-group-btn:first-child > .btn:not(:first-child), .input-group-btn:first-child > .btn-group:not(:first-child) > .btn { border-bottom-left-radius: 0; border-top-left-radius: 0; } .input-group-addon:last-child { border-left: 0; } .input-group-btn { position: relative; font-size: 0; white-space: nowrap; } .input-group-btn > .btn { position: relative; } .input-group-btn > .btn + .btn { margin-left: -1px; } .input-group-btn > .btn:hover, .input-group-btn > .btn:focus, .input-group-btn > .btn:active { z-index: 2; } .input-group-btn:first-child > .btn, .input-group-btn:first-child > .btn-group { margin-right: -1px; } .input-group-btn:last-child > .btn, .input-group-btn:last-child > .btn-group { z-index: 2; margin-left: -1px; } .nav { margin-bottom: 0; padding-left: 0; list-style: none; } .nav > li { position: relative; display: block; } .nav > li > a { position: relative; display: block; padding: 10px 15px; } .nav > li > a:hover, .nav > li > a:focus { text-decoration: none; background-color: #eeeeee; } .nav > li.disabled > a { color: #777777; } .nav > li.disabled > a:hover, .nav > li.disabled > a:focus { color: #777777; text-decoration: none; background-color: transparent; cursor: not-allowed; } .nav .open > a, .nav .open > a:hover, .nav .open > a:focus { background-color: #eeeeee; border-color: #337ab7; } .nav .nav-divider { height: 1px; margin: 8px 0; overflow: hidden; background-color: #e5e5e5; } .nav > li > a > img { max-width: none; } .nav-tabs { border-bottom: 1px solid #ddd; } .nav-tabs > li { float: left; margin-bottom: -1px; } .nav-tabs > li > a { margin-right: 2px; line-height: 1.42857143; border: 1px solid transparent; border-radius: 2px 2px 0 0; } .nav-tabs > li > a:hover { border-color: #eeeeee #eeeeee #ddd; } .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus { color: #555555; background-color: #fff; border: 1px solid #ddd; border-bottom-color: transparent; cursor: default; } .nav-tabs.nav-justified { width: 100%; border-bottom: 0; } .nav-tabs.nav-justified > li { float: none; } .nav-tabs.nav-justified > li > a { text-align: center; margin-bottom: 5px; } .nav-tabs.nav-justified > .dropdown .dropdown-menu { top: auto; left: auto; } @media (min-width: 768px) { .nav-tabs.nav-justified > li { display: table-cell; width: 1%; } .nav-tabs.nav-justified > li > a { margin-bottom: 0; } } .nav-tabs.nav-justified > li > a { margin-right: 0; border-radius: 2px; } .nav-tabs.nav-justified > .active > a, .nav-tabs.nav-justified > .active > a:hover, .nav-tabs.nav-justified > .active > a:focus { border: 1px solid #ddd; } @media (min-width: 768px) { .nav-tabs.nav-justified > li > a { border-bottom: 1px solid #ddd; border-radius: 2px 2px 0 0; } .nav-tabs.nav-justified > .active > a, .nav-tabs.nav-justified > .active > a:hover, .nav-tabs.nav-justified > .active > a:focus { border-bottom-color: #fff; } } .nav-pills > li { float: left; } .nav-pills > li > a { border-radius: 2px; } .nav-pills > li + li { margin-left: 2px; } .nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus { color: #fff; background-color: #337ab7; } .nav-stacked > li { float: none; } .nav-stacked > li + li { margin-top: 2px; margin-left: 0; } .nav-justified { width: 100%; } .nav-justified > li { float: none; } .nav-justified > li > a { text-align: center; margin-bottom: 5px; } .nav-justified > .dropdown .dropdown-menu { top: auto; left: auto; } @media (min-width: 768px) { .nav-justified > li { display: table-cell; width: 1%; } .nav-justified > li > a { margin-bottom: 0; } } .nav-tabs-justified { border-bottom: 0; } .nav-tabs-justified > li > a { margin-right: 0; border-radius: 2px; } .nav-tabs-justified > .active > a, .nav-tabs-justified > .active > a:hover, .nav-tabs-justified > .active > a:focus { border: 1px solid #ddd; } @media (min-width: 768px) { .nav-tabs-justified > li > a { border-bottom: 1px solid #ddd; border-radius: 2px 2px 0 0; } .nav-tabs-justified > .active > a, .nav-tabs-justified > .active > a:hover, .nav-tabs-justified > .active > a:focus { border-bottom-color: #fff; } } .tab-content > .tab-pane { display: none; } .tab-content > .active { display: block; } .nav-tabs .dropdown-menu { margin-top: -1px; border-top-right-radius: 0; border-top-left-radius: 0; } .navbar { position: relative; min-height: 30px; margin-bottom: 18px; border: 1px solid transparent; } @media (min-width: 541px) { .navbar { border-radius: 2px; } } @media (min-width: 541px) { .navbar-header { float: left; } } .navbar-collapse { overflow-x: visible; padding-right: 0px; padding-left: 0px; border-top: 1px solid transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); -webkit-overflow-scrolling: touch; } .navbar-collapse.in { overflow-y: auto; } @media (min-width: 541px) { .navbar-collapse { width: auto; border-top: 0; box-shadow: none; } .navbar-collapse.collapse { display: block !important; height: auto !important; padding-bottom: 0; overflow: visible !important; } .navbar-collapse.in { overflow-y: visible; } .navbar-fixed-top .navbar-collapse, .navbar-static-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse { padding-left: 0; padding-right: 0; } } .navbar-fixed-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse { max-height: 340px; } @media (max-device-width: 540px) and (orientation: landscape) { .navbar-fixed-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse { max-height: 200px; } } .container > .navbar-header, .container-fluid > .navbar-header, .container > .navbar-collapse, .container-fluid > .navbar-collapse { margin-right: 0px; margin-left: 0px; } @media (min-width: 541px) { .container > .navbar-header, .container-fluid > .navbar-header, .container > .navbar-collapse, .container-fluid > .navbar-collapse { margin-right: 0; margin-left: 0; } } .navbar-static-top { z-index: 1000; border-width: 0 0 1px; } @media (min-width: 541px) { .navbar-static-top { border-radius: 0; } } .navbar-fixed-top, .navbar-fixed-bottom { position: fixed; right: 0; left: 0; z-index: 1030; } @media (min-width: 541px) { .navbar-fixed-top, .navbar-fixed-bottom { border-radius: 0; } } .navbar-fixed-top { top: 0; border-width: 0 0 1px; } .navbar-fixed-bottom { bottom: 0; margin-bottom: 0; border-width: 1px 0 0; } .navbar-brand { float: left; padding: 6px 0px; font-size: 17px; line-height: 18px; height: 30px; } .navbar-brand:hover, .navbar-brand:focus { text-decoration: none; } .navbar-brand > img { display: block; } @media (min-width: 541px) { .navbar > .container .navbar-brand, .navbar > .container-fluid .navbar-brand { margin-left: 0px; } } .navbar-toggle { position: relative; float: right; margin-right: 0px; padding: 9px 10px; margin-top: -2px; margin-bottom: -2px; background-color: transparent; background-image: none; border: 1px solid transparent; border-radius: 2px; } .navbar-toggle:focus { outline: 0; } .navbar-toggle .icon-bar { display: block; width: 22px; height: 2px; border-radius: 1px; } .navbar-toggle .icon-bar + .icon-bar { margin-top: 4px; } @media (min-width: 541px) { .navbar-toggle { display: none; } } .navbar-nav { margin: 3px 0px; } .navbar-nav > li > a { padding-top: 10px; padding-bottom: 10px; line-height: 18px; } @media (max-width: 540px) { .navbar-nav .open .dropdown-menu { position: static; float: none; width: auto; margin-top: 0; background-color: transparent; border: 0; box-shadow: none; } .navbar-nav .open .dropdown-menu > li > a, .navbar-nav .open .dropdown-menu .dropdown-header { padding: 5px 15px 5px 25px; } .navbar-nav .open .dropdown-menu > li > a { line-height: 18px; } .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-nav .open .dropdown-menu > li > a:focus { background-image: none; } } @media (min-width: 541px) { .navbar-nav { float: left; margin: 0; } .navbar-nav > li { float: left; } .navbar-nav > li > a { padding-top: 6px; padding-bottom: 6px; } } .navbar-form { margin-left: 0px; margin-right: 0px; padding: 10px 0px; border-top: 1px solid transparent; border-bottom: 1px solid transparent; -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); margin-top: -1px; margin-bottom: -1px; } @media (min-width: 768px) { .navbar-form .form-group { display: inline-block; margin-bottom: 0; vertical-align: middle; } .navbar-form .form-control { display: inline-block; width: auto; vertical-align: middle; } .navbar-form .form-control-static { display: inline-block; } .navbar-form .input-group { display: inline-table; vertical-align: middle; } .navbar-form .input-group .input-group-addon, .navbar-form .input-group .input-group-btn, .navbar-form .input-group .form-control { width: auto; } .navbar-form .input-group > .form-control { width: 100%; } .navbar-form .control-label { margin-bottom: 0; vertical-align: middle; } .navbar-form .radio, .navbar-form .checkbox { display: inline-block; margin-top: 0; margin-bottom: 0; vertical-align: middle; } .navbar-form .radio label, .navbar-form .checkbox label { padding-left: 0; } .navbar-form .radio input[type="radio"], .navbar-form .checkbox input[type="checkbox"] { position: relative; margin-left: 0; } .navbar-form .has-feedback .form-control-feedback { top: 0; } } @media (max-width: 540px) { .navbar-form .form-group { margin-bottom: 5px; } .navbar-form .form-group:last-child { margin-bottom: 0; } } @media (min-width: 541px) { .navbar-form { width: auto; border: 0; margin-left: 0; margin-right: 0; padding-top: 0; padding-bottom: 0; -webkit-box-shadow: none; box-shadow: none; } } .navbar-nav > li > .dropdown-menu { margin-top: 0; border-top-right-radius: 0; border-top-left-radius: 0; } .navbar-fixed-bottom .navbar-nav > li > .dropdown-menu { margin-bottom: 0; border-top-right-radius: 2px; border-top-left-radius: 2px; border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .navbar-btn { margin-top: -1px; margin-bottom: -1px; } .navbar-btn.btn-sm { margin-top: 0px; margin-bottom: 0px; } .navbar-btn.btn-xs { margin-top: 4px; margin-bottom: 4px; } .navbar-text { margin-top: 6px; margin-bottom: 6px; } @media (min-width: 541px) { .navbar-text { float: left; margin-left: 0px; margin-right: 0px; } } @media (min-width: 541px) { .navbar-left { float: left !important; float: left; } .navbar-right { float: right !important; float: right; margin-right: 0px; } .navbar-right ~ .navbar-right { margin-right: 0; } } .navbar-default { background-color: #f8f8f8; border-color: #e7e7e7; } .navbar-default .navbar-brand { color: #777; } .navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus { color: #5e5e5e; background-color: transparent; } .navbar-default .navbar-text { color: #777; } .navbar-default .navbar-nav > li > a { color: #777; } .navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus { color: #333; background-color: transparent; } .navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus { color: #555; background-color: #e7e7e7; } .navbar-default .navbar-nav > .disabled > a, .navbar-default .navbar-nav > .disabled > a:hover, .navbar-default .navbar-nav > .disabled > a:focus { color: #ccc; background-color: transparent; } .navbar-default .navbar-toggle { border-color: #ddd; } .navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus { background-color: #ddd; } .navbar-default .navbar-toggle .icon-bar { background-color: #888; } .navbar-default .navbar-collapse, .navbar-default .navbar-form { border-color: #e7e7e7; } .navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus { background-color: #e7e7e7; color: #555; } @media (max-width: 540px) { .navbar-default .navbar-nav .open .dropdown-menu > li > a { color: #777; } .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus { color: #333; background-color: transparent; } .navbar-default .navbar-nav .open .dropdown-menu > .active > a, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus { color: #555; background-color: #e7e7e7; } .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a, .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus { color: #ccc; background-color: transparent; } } .navbar-default .navbar-link { color: #777; } .navbar-default .navbar-link:hover { color: #333; } .navbar-default .btn-link { color: #777; } .navbar-default .btn-link:hover, .navbar-default .btn-link:focus { color: #333; } .navbar-default .btn-link[disabled]:hover, fieldset[disabled] .navbar-default .btn-link:hover, .navbar-default .btn-link[disabled]:focus, fieldset[disabled] .navbar-default .btn-link:focus { color: #ccc; } .navbar-inverse { background-color: #222; border-color: #080808; } .navbar-inverse .navbar-brand { color: #9d9d9d; } .navbar-inverse .navbar-brand:hover, .navbar-inverse .navbar-brand:focus { color: #fff; background-color: transparent; } .navbar-inverse .navbar-text { color: #9d9d9d; } .navbar-inverse .navbar-nav > li > a { color: #9d9d9d; } .navbar-inverse .navbar-nav > li > a:hover, .navbar-inverse .navbar-nav > li > a:focus { color: #fff; background-color: transparent; } .navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:hover, .navbar-inverse .navbar-nav > .active > a:focus { color: #fff; background-color: #080808; } .navbar-inverse .navbar-nav > .disabled > a, .navbar-inverse .navbar-nav > .disabled > a:hover, .navbar-inverse .navbar-nav > .disabled > a:focus { color: #444; background-color: transparent; } .navbar-inverse .navbar-toggle { border-color: #333; } .navbar-inverse .navbar-toggle:hover, .navbar-inverse .navbar-toggle:focus { background-color: #333; } .navbar-inverse .navbar-toggle .icon-bar { background-color: #fff; } .navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form { border-color: #101010; } .navbar-inverse .navbar-nav > .open > a, .navbar-inverse .navbar-nav > .open > a:hover, .navbar-inverse .navbar-nav > .open > a:focus { background-color: #080808; color: #fff; } @media (max-width: 540px) { .navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header { border-color: #080808; } .navbar-inverse .navbar-nav .open .dropdown-menu .divider { background-color: #080808; } .navbar-inverse .navbar-nav .open .dropdown-menu > li > a { color: #9d9d9d; } .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus { color: #fff; background-color: transparent; } .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus { color: #fff; background-color: #080808; } .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a, .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus { color: #444; background-color: transparent; } } .navbar-inverse .navbar-link { color: #9d9d9d; } .navbar-inverse .navbar-link:hover { color: #fff; } .navbar-inverse .btn-link { color: #9d9d9d; } .navbar-inverse .btn-link:hover, .navbar-inverse .btn-link:focus { color: #fff; } .navbar-inverse .btn-link[disabled]:hover, fieldset[disabled] .navbar-inverse .btn-link:hover, .navbar-inverse .btn-link[disabled]:focus, fieldset[disabled] .navbar-inverse .btn-link:focus { color: #444; } .breadcrumb { padding: 8px 15px; margin-bottom: 18px; list-style: none; background-color: #f5f5f5; border-radius: 2px; } .breadcrumb > li { display: inline-block; } .breadcrumb > li + li:before { content: "/\00a0"; padding: 0 5px; color: #5e5e5e; } .breadcrumb > .active { color: #777777; } .pagination { display: inline-block; padding-left: 0; margin: 18px 0; border-radius: 2px; } .pagination > li { display: inline; } .pagination > li > a, .pagination > li > span { position: relative; float: left; padding: 6px 12px; line-height: 1.42857143; text-decoration: none; color: #337ab7; background-color: #fff; border: 1px solid #ddd; margin-left: -1px; } .pagination > li:first-child > a, .pagination > li:first-child > span { margin-left: 0; border-bottom-left-radius: 2px; border-top-left-radius: 2px; } .pagination > li:last-child > a, .pagination > li:last-child > span { border-bottom-right-radius: 2px; border-top-right-radius: 2px; } .pagination > li > a:hover, .pagination > li > span:hover, .pagination > li > a:focus, .pagination > li > span:focus { z-index: 2; color: #23527c; background-color: #eeeeee; border-color: #ddd; } .pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus { z-index: 3; color: #fff; background-color: #337ab7; border-color: #337ab7; cursor: default; } .pagination > .disabled > span, .pagination > .disabled > span:hover, .pagination > .disabled > span:focus, .pagination > .disabled > a, .pagination > .disabled > a:hover, .pagination > .disabled > a:focus { color: #777777; background-color: #fff; border-color: #ddd; cursor: not-allowed; } .pagination-lg > li > a, .pagination-lg > li > span { padding: 10px 16px; font-size: 17px; line-height: 1.3333333; } .pagination-lg > li:first-child > a, .pagination-lg > li:first-child > span { border-bottom-left-radius: 3px; border-top-left-radius: 3px; } .pagination-lg > li:last-child > a, .pagination-lg > li:last-child > span { border-bottom-right-radius: 3px; border-top-right-radius: 3px; } .pagination-sm > li > a, .pagination-sm > li > span { padding: 5px 10px; font-size: 12px; line-height: 1.5; } .pagination-sm > li:first-child > a, .pagination-sm > li:first-child > span { border-bottom-left-radius: 1px; border-top-left-radius: 1px; } .pagination-sm > li:last-child > a, .pagination-sm > li:last-child > span { border-bottom-right-radius: 1px; border-top-right-radius: 1px; } .pager { padding-left: 0; margin: 18px 0; list-style: none; text-align: center; } .pager li { display: inline; } .pager li > a, .pager li > span { display: inline-block; padding: 5px 14px; background-color: #fff; border: 1px solid #ddd; border-radius: 15px; } .pager li > a:hover, .pager li > a:focus { text-decoration: none; background-color: #eeeeee; } .pager .next > a, .pager .next > span { float: right; } .pager .previous > a, .pager .previous > span { float: left; } .pager .disabled > a, .pager .disabled > a:hover, .pager .disabled > a:focus, .pager .disabled > span { color: #777777; background-color: #fff; cursor: not-allowed; } .label { display: inline; padding: .2em .6em .3em; font-size: 75%; font-weight: bold; line-height: 1; color: #fff; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: .25em; } a.label:hover, a.label:focus { color: #fff; text-decoration: none; cursor: pointer; } .label:empty { display: none; } .btn .label { position: relative; top: -1px; } .label-default { background-color: #777777; } .label-default[href]:hover, .label-default[href]:focus { background-color: #5e5e5e; } .label-primary { background-color: #337ab7; } .label-primary[href]:hover, .label-primary[href]:focus { background-color: #286090; } .label-success { background-color: #5cb85c; } .label-success[href]:hover, .label-success[href]:focus { background-color: #449d44; } .label-info { background-color: #5bc0de; } .label-info[href]:hover, .label-info[href]:focus { background-color: #31b0d5; } .label-warning { background-color: #f0ad4e; } .label-warning[href]:hover, .label-warning[href]:focus { background-color: #ec971f; } .label-danger { background-color: #d9534f; } .label-danger[href]:hover, .label-danger[href]:focus { background-color: #c9302c; } .badge { display: inline-block; min-width: 10px; padding: 3px 7px; font-size: 12px; font-weight: bold; color: #fff; line-height: 1; vertical-align: middle; white-space: nowrap; text-align: center; background-color: #777777; border-radius: 10px; } .badge:empty { display: none; } .btn .badge { position: relative; top: -1px; } .btn-xs .badge, .btn-group-xs > .btn .badge { top: 0; padding: 1px 5px; } a.badge:hover, a.badge:focus { color: #fff; text-decoration: none; cursor: pointer; } .list-group-item.active > .badge, .nav-pills > .active > a > .badge { color: #337ab7; background-color: #fff; } .list-group-item > .badge { float: right; } .list-group-item > .badge + .badge { margin-right: 5px; } .nav-pills > li > a > .badge { margin-left: 3px; } .jumbotron { padding-top: 30px; padding-bottom: 30px; margin-bottom: 30px; color: inherit; background-color: #eeeeee; } .jumbotron h1, .jumbotron .h1 { color: inherit; } .jumbotron p { margin-bottom: 15px; font-size: 20px; font-weight: 200; } .jumbotron > hr { border-top-color: #d5d5d5; } .container .jumbotron, .container-fluid .jumbotron { border-radius: 3px; padding-left: 0px; padding-right: 0px; } .jumbotron .container { max-width: 100%; } @media screen and (min-width: 768px) { .jumbotron { padding-top: 48px; padding-bottom: 48px; } .container .jumbotron, .container-fluid .jumbotron { padding-left: 60px; padding-right: 60px; } .jumbotron h1, .jumbotron .h1 { font-size: 59px; } } .thumbnail { display: block; padding: 4px; margin-bottom: 18px; line-height: 1.42857143; background-color: #fff; border: 1px solid #ddd; border-radius: 2px; -webkit-transition: border 0.2s ease-in-out; -o-transition: border 0.2s ease-in-out; transition: border 0.2s ease-in-out; } .thumbnail > img, .thumbnail a > img { margin-left: auto; margin-right: auto; } a.thumbnail:hover, a.thumbnail:focus, a.thumbnail.active { border-color: #337ab7; } .thumbnail .caption { padding: 9px; color: #000; } .alert { padding: 15px; margin-bottom: 18px; border: 1px solid transparent; border-radius: 2px; } .alert h4 { margin-top: 0; color: inherit; } .alert .alert-link { font-weight: bold; } .alert > p, .alert > ul { margin-bottom: 0; } .alert > p + p { margin-top: 5px; } .alert-dismissable, .alert-dismissible { padding-right: 35px; } .alert-dismissable .close, .alert-dismissible .close { position: relative; top: -2px; right: -21px; color: inherit; } .alert-success { background-color: #dff0d8; border-color: #d6e9c6; color: #3c763d; } .alert-success hr { border-top-color: #c9e2b3; } .alert-success .alert-link { color: #2b542c; } .alert-info { background-color: #d9edf7; border-color: #bce8f1; color: #31708f; } .alert-info hr { border-top-color: #a6e1ec; } .alert-info .alert-link { color: #245269; } .alert-warning { background-color: #fcf8e3; border-color: #faebcc; color: #8a6d3b; } .alert-warning hr { border-top-color: #f7e1b5; } .alert-warning .alert-link { color: #66512c; } .alert-danger { background-color: #f2dede; border-color: #ebccd1; color: #a94442; } .alert-danger hr { border-top-color: #e4b9c0; } .alert-danger .alert-link { color: #843534; } @-webkit-keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } @keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } .progress { overflow: hidden; height: 18px; margin-bottom: 18px; background-color: #f5f5f5; border-radius: 2px; -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); } .progress-bar { float: left; width: 0%; height: 100%; font-size: 12px; line-height: 18px; color: #fff; text-align: center; background-color: #337ab7; -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); -webkit-transition: width 0.6s ease; -o-transition: width 0.6s ease; transition: width 0.6s ease; } .progress-striped .progress-bar, .progress-bar-striped { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-size: 40px 40px; } .progress.active .progress-bar, .progress-bar.active { -webkit-animation: progress-bar-stripes 2s linear infinite; -o-animation: progress-bar-stripes 2s linear infinite; animation: progress-bar-stripes 2s linear infinite; } .progress-bar-success { background-color: #5cb85c; } .progress-striped .progress-bar-success { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-bar-info { background-color: #5bc0de; } .progress-striped .progress-bar-info { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-bar-warning { background-color: #f0ad4e; } .progress-striped .progress-bar-warning { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-bar-danger { background-color: #d9534f; } .progress-striped .progress-bar-danger { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .media { margin-top: 15px; } .media:first-child { margin-top: 0; } .media, .media-body { zoom: 1; overflow: hidden; } .media-body { width: 10000px; } .media-object { display: block; } .media-object.img-thumbnail { max-width: none; } .media-right, .media > .pull-right { padding-left: 10px; } .media-left, .media > .pull-left { padding-right: 10px; } .media-left, .media-right, .media-body { display: table-cell; vertical-align: top; } .media-middle { vertical-align: middle; } .media-bottom { vertical-align: bottom; } .media-heading { margin-top: 0; margin-bottom: 5px; } .media-list { padding-left: 0; list-style: none; } .list-group { margin-bottom: 20px; padding-left: 0; } .list-group-item { position: relative; display: block; padding: 10px 15px; margin-bottom: -1px; background-color: #fff; border: 1px solid #ddd; } .list-group-item:first-child { border-top-right-radius: 2px; border-top-left-radius: 2px; } .list-group-item:last-child { margin-bottom: 0; border-bottom-right-radius: 2px; border-bottom-left-radius: 2px; } a.list-group-item, button.list-group-item { color: #555; } a.list-group-item .list-group-item-heading, button.list-group-item .list-group-item-heading { color: #333; } a.list-group-item:hover, button.list-group-item:hover, a.list-group-item:focus, button.list-group-item:focus { text-decoration: none; color: #555; background-color: #f5f5f5; } button.list-group-item { width: 100%; text-align: left; } .list-group-item.disabled, .list-group-item.disabled:hover, .list-group-item.disabled:focus { background-color: #eeeeee; color: #777777; cursor: not-allowed; } .list-group-item.disabled .list-group-item-heading, .list-group-item.disabled:hover .list-group-item-heading, .list-group-item.disabled:focus .list-group-item-heading { color: inherit; } .list-group-item.disabled .list-group-item-text, .list-group-item.disabled:hover .list-group-item-text, .list-group-item.disabled:focus .list-group-item-text { color: #777777; } .list-group-item.active, .list-group-item.active:hover, .list-group-item.active:focus { z-index: 2; color: #fff; background-color: #337ab7; border-color: #337ab7; } .list-group-item.active .list-group-item-heading, .list-group-item.active:hover .list-group-item-heading, .list-group-item.active:focus .list-group-item-heading, .list-group-item.active .list-group-item-heading > small, .list-group-item.active:hover .list-group-item-heading > small, .list-group-item.active:focus .list-group-item-heading > small, .list-group-item.active .list-group-item-heading > .small, .list-group-item.active:hover .list-group-item-heading > .small, .list-group-item.active:focus .list-group-item-heading > .small { color: inherit; } .list-group-item.active .list-group-item-text, .list-group-item.active:hover .list-group-item-text, .list-group-item.active:focus .list-group-item-text { color: #c7ddef; } .list-group-item-success { color: #3c763d; background-color: #dff0d8; } a.list-group-item-success, button.list-group-item-success { color: #3c763d; } a.list-group-item-success .list-group-item-heading, button.list-group-item-success .list-group-item-heading { color: inherit; } a.list-group-item-success:hover, button.list-group-item-success:hover, a.list-group-item-success:focus, button.list-group-item-success:focus { color: #3c763d; background-color: #d0e9c6; } a.list-group-item-success.active, button.list-group-item-success.active, a.list-group-item-success.active:hover, button.list-group-item-success.active:hover, a.list-group-item-success.active:focus, button.list-group-item-success.active:focus { color: #fff; background-color: #3c763d; border-color: #3c763d; } .list-group-item-info { color: #31708f; background-color: #d9edf7; } a.list-group-item-info, button.list-group-item-info { color: #31708f; } a.list-group-item-info .list-group-item-heading, button.list-group-item-info .list-group-item-heading { color: inherit; } a.list-group-item-info:hover, button.list-group-item-info:hover, a.list-group-item-info:focus, button.list-group-item-info:focus { color: #31708f; background-color: #c4e3f3; } a.list-group-item-info.active, button.list-group-item-info.active, a.list-group-item-info.active:hover, button.list-group-item-info.active:hover, a.list-group-item-info.active:focus, button.list-group-item-info.active:focus { color: #fff; background-color: #31708f; border-color: #31708f; } .list-group-item-warning { color: #8a6d3b; background-color: #fcf8e3; } a.list-group-item-warning, button.list-group-item-warning { color: #8a6d3b; } a.list-group-item-warning .list-group-item-heading, button.list-group-item-warning .list-group-item-heading { color: inherit; } a.list-group-item-warning:hover, button.list-group-item-warning:hover, a.list-group-item-warning:focus, button.list-group-item-warning:focus { color: #8a6d3b; background-color: #faf2cc; } a.list-group-item-warning.active, button.list-group-item-warning.active, a.list-group-item-warning.active:hover, button.list-group-item-warning.active:hover, a.list-group-item-warning.active:focus, button.list-group-item-warning.active:focus { color: #fff; background-color: #8a6d3b; border-color: #8a6d3b; } .list-group-item-danger { color: #a94442; background-color: #f2dede; } a.list-group-item-danger, button.list-group-item-danger { color: #a94442; } a.list-group-item-danger .list-group-item-heading, button.list-group-item-danger .list-group-item-heading { color: inherit; } a.list-group-item-danger:hover, button.list-group-item-danger:hover, a.list-group-item-danger:focus, button.list-group-item-danger:focus { color: #a94442; background-color: #ebcccc; } a.list-group-item-danger.active, button.list-group-item-danger.active, a.list-group-item-danger.active:hover, button.list-group-item-danger.active:hover, a.list-group-item-danger.active:focus, button.list-group-item-danger.active:focus { color: #fff; background-color: #a94442; border-color: #a94442; } .list-group-item-heading { margin-top: 0; margin-bottom: 5px; } .list-group-item-text { margin-bottom: 0; line-height: 1.3; } .panel { margin-bottom: 18px; background-color: #fff; border: 1px solid transparent; border-radius: 2px; -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); } .panel-body { padding: 15px; } .panel-heading { padding: 10px 15px; border-bottom: 1px solid transparent; border-top-right-radius: 1px; border-top-left-radius: 1px; } .panel-heading > .dropdown .dropdown-toggle { color: inherit; } .panel-title { margin-top: 0; margin-bottom: 0; font-size: 15px; color: inherit; } .panel-title > a, .panel-title > small, .panel-title > .small, .panel-title > small > a, .panel-title > .small > a { color: inherit; } .panel-footer { padding: 10px 15px; background-color: #f5f5f5; border-top: 1px solid #ddd; border-bottom-right-radius: 1px; border-bottom-left-radius: 1px; } .panel > .list-group, .panel > .panel-collapse > .list-group { margin-bottom: 0; } .panel > .list-group .list-group-item, .panel > .panel-collapse > .list-group .list-group-item { border-width: 1px 0; border-radius: 0; } .panel > .list-group:first-child .list-group-item:first-child, .panel > .panel-collapse > .list-group:first-child .list-group-item:first-child { border-top: 0; border-top-right-radius: 1px; border-top-left-radius: 1px; } .panel > .list-group:last-child .list-group-item:last-child, .panel > .panel-collapse > .list-group:last-child .list-group-item:last-child { border-bottom: 0; border-bottom-right-radius: 1px; border-bottom-left-radius: 1px; } .panel > .panel-heading + .panel-collapse > .list-group .list-group-item:first-child { border-top-right-radius: 0; border-top-left-radius: 0; } .panel-heading + .list-group .list-group-item:first-child { border-top-width: 0; } .list-group + .panel-footer { border-top-width: 0; } .panel > .table, .panel > .table-responsive > .table, .panel > .panel-collapse > .table { margin-bottom: 0; } .panel > .table caption, .panel > .table-responsive > .table caption, .panel > .panel-collapse > .table caption { padding-left: 15px; padding-right: 15px; } .panel > .table:first-child, .panel > .table-responsive:first-child > .table:first-child { border-top-right-radius: 1px; border-top-left-radius: 1px; } .panel > .table:first-child > thead:first-child > tr:first-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child, .panel > .table:first-child > tbody:first-child > tr:first-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child { border-top-left-radius: 1px; border-top-right-radius: 1px; } .panel > .table:first-child > thead:first-child > tr:first-child td:first-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child, .panel > .table:first-child > tbody:first-child > tr:first-child td:first-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child, .panel > .table:first-child > thead:first-child > tr:first-child th:first-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child, .panel > .table:first-child > tbody:first-child > tr:first-child th:first-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child { border-top-left-radius: 1px; } .panel > .table:first-child > thead:first-child > tr:first-child td:last-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child, .panel > .table:first-child > tbody:first-child > tr:first-child td:last-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child, .panel > .table:first-child > thead:first-child > tr:first-child th:last-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child, .panel > .table:first-child > tbody:first-child > tr:first-child th:last-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child { border-top-right-radius: 1px; } .panel > .table:last-child, .panel > .table-responsive:last-child > .table:last-child { border-bottom-right-radius: 1px; border-bottom-left-radius: 1px; } .panel > .table:last-child > tbody:last-child > tr:last-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child, .panel > .table:last-child > tfoot:last-child > tr:last-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child { border-bottom-left-radius: 1px; border-bottom-right-radius: 1px; } .panel > .table:last-child > tbody:last-child > tr:last-child td:first-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child, .panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child, .panel > .table:last-child > tbody:last-child > tr:last-child th:first-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child, .panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child { border-bottom-left-radius: 1px; } .panel > .table:last-child > tbody:last-child > tr:last-child td:last-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child, .panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child, .panel > .table:last-child > tbody:last-child > tr:last-child th:last-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child, .panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child { border-bottom-right-radius: 1px; } .panel > .panel-body + .table, .panel > .panel-body + .table-responsive, .panel > .table + .panel-body, .panel > .table-responsive + .panel-body { border-top: 1px solid #ddd; } .panel > .table > tbody:first-child > tr:first-child th, .panel > .table > tbody:first-child > tr:first-child td { border-top: 0; } .panel > .table-bordered, .panel > .table-responsive > .table-bordered { border: 0; } .panel > .table-bordered > thead > tr > th:first-child, .panel > .table-responsive > .table-bordered > thead > tr > th:first-child, .panel > .table-bordered > tbody > tr > th:first-child, .panel > .table-responsive > .table-bordered > tbody > tr > th:first-child, .panel > .table-bordered > tfoot > tr > th:first-child, .panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child, .panel > .table-bordered > thead > tr > td:first-child, .panel > .table-responsive > .table-bordered > thead > tr > td:first-child, .panel > .table-bordered > tbody > tr > td:first-child, .panel > .table-responsive > .table-bordered > tbody > tr > td:first-child, .panel > .table-bordered > tfoot > tr > td:first-child, .panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child { border-left: 0; } .panel > .table-bordered > thead > tr > th:last-child, .panel > .table-responsive > .table-bordered > thead > tr > th:last-child, .panel > .table-bordered > tbody > tr > th:last-child, .panel > .table-responsive > .table-bordered > tbody > tr > th:last-child, .panel > .table-bordered > tfoot > tr > th:last-child, .panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child, .panel > .table-bordered > thead > tr > td:last-child, .panel > .table-responsive > .table-bordered > thead > tr > td:last-child, .panel > .table-bordered > tbody > tr > td:last-child, .panel > .table-responsive > .table-bordered > tbody > tr > td:last-child, .panel > .table-bordered > tfoot > tr > td:last-child, .panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child { border-right: 0; } .panel > .table-bordered > thead > tr:first-child > td, .panel > .table-responsive > .table-bordered > thead > tr:first-child > td, .panel > .table-bordered > tbody > tr:first-child > td, .panel > .table-responsive > .table-bordered > tbody > tr:first-child > td, .panel > .table-bordered > thead > tr:first-child > th, .panel > .table-responsive > .table-bordered > thead > tr:first-child > th, .panel > .table-bordered > tbody > tr:first-child > th, .panel > .table-responsive > .table-bordered > tbody > tr:first-child > th { border-bottom: 0; } .panel > .table-bordered > tbody > tr:last-child > td, .panel > .table-responsive > .table-bordered > tbody > tr:last-child > td, .panel > .table-bordered > tfoot > tr:last-child > td, .panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td, .panel > .table-bordered > tbody > tr:last-child > th, .panel > .table-responsive > .table-bordered > tbody > tr:last-child > th, .panel > .table-bordered > tfoot > tr:last-child > th, .panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th { border-bottom: 0; } .panel > .table-responsive { border: 0; margin-bottom: 0; } .panel-group { margin-bottom: 18px; } .panel-group .panel { margin-bottom: 0; border-radius: 2px; } .panel-group .panel + .panel { margin-top: 5px; } .panel-group .panel-heading { border-bottom: 0; } .panel-group .panel-heading + .panel-collapse > .panel-body, .panel-group .panel-heading + .panel-collapse > .list-group { border-top: 1px solid #ddd; } .panel-group .panel-footer { border-top: 0; } .panel-group .panel-footer + .panel-collapse .panel-body { border-bottom: 1px solid #ddd; } .panel-default { border-color: #ddd; } .panel-default > .panel-heading { color: #333333; background-color: #f5f5f5; border-color: #ddd; } .panel-default > .panel-heading + .panel-collapse > .panel-body { border-top-color: #ddd; } .panel-default > .panel-heading .badge { color: #f5f5f5; background-color: #333333; } .panel-default > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #ddd; } .panel-primary { border-color: #337ab7; } .panel-primary > .panel-heading { color: #fff; background-color: #337ab7; border-color: #337ab7; } .panel-primary > .panel-heading + .panel-collapse > .panel-body { border-top-color: #337ab7; } .panel-primary > .panel-heading .badge { color: #337ab7; background-color: #fff; } .panel-primary > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #337ab7; } .panel-success { border-color: #d6e9c6; } .panel-success > .panel-heading { color: #3c763d; background-color: #dff0d8; border-color: #d6e9c6; } .panel-success > .panel-heading + .panel-collapse > .panel-body { border-top-color: #d6e9c6; } .panel-success > .panel-heading .badge { color: #dff0d8; background-color: #3c763d; } .panel-success > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #d6e9c6; } .panel-info { border-color: #bce8f1; } .panel-info > .panel-heading { color: #31708f; background-color: #d9edf7; border-color: #bce8f1; } .panel-info > .panel-heading + .panel-collapse > .panel-body { border-top-color: #bce8f1; } .panel-info > .panel-heading .badge { color: #d9edf7; background-color: #31708f; } .panel-info > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #bce8f1; } .panel-warning { border-color: #faebcc; } .panel-warning > .panel-heading { color: #8a6d3b; background-color: #fcf8e3; border-color: #faebcc; } .panel-warning > .panel-heading + .panel-collapse > .panel-body { border-top-color: #faebcc; } .panel-warning > .panel-heading .badge { color: #fcf8e3; background-color: #8a6d3b; } .panel-warning > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #faebcc; } .panel-danger { border-color: #ebccd1; } .panel-danger > .panel-heading { color: #a94442; background-color: #f2dede; border-color: #ebccd1; } .panel-danger > .panel-heading + .panel-collapse > .panel-body { border-top-color: #ebccd1; } .panel-danger > .panel-heading .badge { color: #f2dede; background-color: #a94442; } .panel-danger > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #ebccd1; } .embed-responsive { position: relative; display: block; height: 0; padding: 0; overflow: hidden; } .embed-responsive .embed-responsive-item, .embed-responsive iframe, .embed-responsive embed, .embed-responsive object, .embed-responsive video { position: absolute; top: 0; left: 0; bottom: 0; height: 100%; width: 100%; border: 0; } .embed-responsive-16by9 { padding-bottom: 56.25%; } .embed-responsive-4by3 { padding-bottom: 75%; } .well { min-height: 20px; padding: 19px; margin-bottom: 20px; background-color: #f5f5f5; border: 1px solid #e3e3e3; border-radius: 2px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); } .well blockquote { border-color: #ddd; border-color: rgba(0, 0, 0, 0.15); } .well-lg { padding: 24px; border-radius: 3px; } .well-sm { padding: 9px; border-radius: 1px; } .close { float: right; font-size: 19.5px; font-weight: bold; line-height: 1; color: #000; text-shadow: 0 1px 0 #fff; opacity: 0.2; filter: alpha(opacity=20); } .close:hover, .close:focus { color: #000; text-decoration: none; cursor: pointer; opacity: 0.5; filter: alpha(opacity=50); } button.close { padding: 0; cursor: pointer; background: transparent; border: 0; -webkit-appearance: none; } .modal-open { overflow: hidden; } .modal { display: none; overflow: hidden; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1050; -webkit-overflow-scrolling: touch; outline: 0; } .modal.fade .modal-dialog { -webkit-transform: translate(0, -25%); -ms-transform: translate(0, -25%); -o-transform: translate(0, -25%); transform: translate(0, -25%); -webkit-transition: -webkit-transform 0.3s ease-out; -moz-transition: -moz-transform 0.3s ease-out; -o-transition: -o-transform 0.3s ease-out; transition: transform 0.3s ease-out; } .modal.in .modal-dialog { -webkit-transform: translate(0, 0); -ms-transform: translate(0, 0); -o-transform: translate(0, 0); transform: translate(0, 0); } .modal-open .modal { overflow-x: hidden; overflow-y: auto; } .modal-dialog { position: relative; width: auto; margin: 10px; } .modal-content { position: relative; background-color: #fff; border: 1px solid #999; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 3px; -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); background-clip: padding-box; outline: 0; } .modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1040; background-color: #000; } .modal-backdrop.fade { opacity: 0; filter: alpha(opacity=0); } .modal-backdrop.in { opacity: 0.5; filter: alpha(opacity=50); } .modal-header { padding: 15px; border-bottom: 1px solid #e5e5e5; } .modal-header .close { margin-top: -2px; } .modal-title { margin: 0; line-height: 1.42857143; } .modal-body { position: relative; padding: 15px; } .modal-footer { padding: 15px; text-align: right; border-top: 1px solid #e5e5e5; } .modal-footer .btn + .btn { margin-left: 5px; margin-bottom: 0; } .modal-footer .btn-group .btn + .btn { margin-left: -1px; } .modal-footer .btn-block + .btn-block { margin-left: 0; } .modal-scrollbar-measure { position: absolute; top: -9999px; width: 50px; height: 50px; overflow: scroll; } @media (min-width: 768px) { .modal-dialog { width: 600px; margin: 30px auto; } .modal-content { -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); } .modal-sm { width: 300px; } } @media (min-width: 992px) { .modal-lg { width: 900px; } } .tooltip { position: absolute; z-index: 1070; display: block; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-style: normal; font-weight: normal; letter-spacing: normal; line-break: auto; line-height: 1.42857143; text-align: left; text-align: start; text-decoration: none; text-shadow: none; text-transform: none; white-space: normal; word-break: normal; word-spacing: normal; word-wrap: normal; font-size: 12px; opacity: 0; filter: alpha(opacity=0); } .tooltip.in { opacity: 0.9; filter: alpha(opacity=90); } .tooltip.top { margin-top: -3px; padding: 5px 0; } .tooltip.right { margin-left: 3px; padding: 0 5px; } .tooltip.bottom { margin-top: 3px; padding: 5px 0; } .tooltip.left { margin-left: -3px; padding: 0 5px; } .tooltip-inner { max-width: 200px; padding: 3px 8px; color: #fff; text-align: center; background-color: #000; border-radius: 2px; } .tooltip-arrow { position: absolute; width: 0; height: 0; border-color: transparent; border-style: solid; } .tooltip.top .tooltip-arrow { bottom: 0; left: 50%; margin-left: -5px; border-width: 5px 5px 0; border-top-color: #000; } .tooltip.top-left .tooltip-arrow { bottom: 0; right: 5px; margin-bottom: -5px; border-width: 5px 5px 0; border-top-color: #000; } .tooltip.top-right .tooltip-arrow { bottom: 0; left: 5px; margin-bottom: -5px; border-width: 5px 5px 0; border-top-color: #000; } .tooltip.right .tooltip-arrow { top: 50%; left: 0; margin-top: -5px; border-width: 5px 5px 5px 0; border-right-color: #000; } .tooltip.left .tooltip-arrow { top: 50%; right: 0; margin-top: -5px; border-width: 5px 0 5px 5px; border-left-color: #000; } .tooltip.bottom .tooltip-arrow { top: 0; left: 50%; margin-left: -5px; border-width: 0 5px 5px; border-bottom-color: #000; } .tooltip.bottom-left .tooltip-arrow { top: 0; right: 5px; margin-top: -5px; border-width: 0 5px 5px; border-bottom-color: #000; } .tooltip.bottom-right .tooltip-arrow { top: 0; left: 5px; margin-top: -5px; border-width: 0 5px 5px; border-bottom-color: #000; } .popover { position: absolute; top: 0; left: 0; z-index: 1060; display: none; max-width: 276px; padding: 1px; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-style: normal; font-weight: normal; letter-spacing: normal; line-break: auto; line-height: 1.42857143; text-align: left; text-align: start; text-decoration: none; text-shadow: none; text-transform: none; white-space: normal; word-break: normal; word-spacing: normal; word-wrap: normal; font-size: 13px; background-color: #fff; background-clip: padding-box; border: 1px solid #ccc; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 3px; -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); } .popover.top { margin-top: -10px; } .popover.right { margin-left: 10px; } .popover.bottom { margin-top: 10px; } .popover.left { margin-left: -10px; } .popover-title { margin: 0; padding: 8px 14px; font-size: 13px; background-color: #f7f7f7; border-bottom: 1px solid #ebebeb; border-radius: 2px 2px 0 0; } .popover-content { padding: 9px 14px; } .popover > .arrow, .popover > .arrow:after { position: absolute; display: block; width: 0; height: 0; border-color: transparent; border-style: solid; } .popover > .arrow { border-width: 11px; } .popover > .arrow:after { border-width: 10px; content: ""; } .popover.top > .arrow { left: 50%; margin-left: -11px; border-bottom-width: 0; border-top-color: #999999; border-top-color: rgba(0, 0, 0, 0.25); bottom: -11px; } .popover.top > .arrow:after { content: " "; bottom: 1px; margin-left: -10px; border-bottom-width: 0; border-top-color: #fff; } .popover.right > .arrow { top: 50%; left: -11px; margin-top: -11px; border-left-width: 0; border-right-color: #999999; border-right-color: rgba(0, 0, 0, 0.25); } .popover.right > .arrow:after { content: " "; left: 1px; bottom: -10px; border-left-width: 0; border-right-color: #fff; } .popover.bottom > .arrow { left: 50%; margin-left: -11px; border-top-width: 0; border-bottom-color: #999999; border-bottom-color: rgba(0, 0, 0, 0.25); top: -11px; } .popover.bottom > .arrow:after { content: " "; top: 1px; margin-left: -10px; border-top-width: 0; border-bottom-color: #fff; } .popover.left > .arrow { top: 50%; right: -11px; margin-top: -11px; border-right-width: 0; border-left-color: #999999; border-left-color: rgba(0, 0, 0, 0.25); } .popover.left > .arrow:after { content: " "; right: 1px; border-right-width: 0; border-left-color: #fff; bottom: -10px; } .carousel { position: relative; } .carousel-inner { position: relative; overflow: hidden; width: 100%; } .carousel-inner > .item { display: none; position: relative; -webkit-transition: 0.6s ease-in-out left; -o-transition: 0.6s ease-in-out left; transition: 0.6s ease-in-out left; } .carousel-inner > .item > img, .carousel-inner > .item > a > img { line-height: 1; } @media all and (transform-3d), (-webkit-transform-3d) { .carousel-inner > .item { -webkit-transition: -webkit-transform 0.6s ease-in-out; -moz-transition: -moz-transform 0.6s ease-in-out; -o-transition: -o-transform 0.6s ease-in-out; transition: transform 0.6s ease-in-out; -webkit-backface-visibility: hidden; -moz-backface-visibility: hidden; backface-visibility: hidden; -webkit-perspective: 1000px; -moz-perspective: 1000px; perspective: 1000px; } .carousel-inner > .item.next, .carousel-inner > .item.active.right { -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); left: 0; } .carousel-inner > .item.prev, .carousel-inner > .item.active.left { -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); left: 0; } .carousel-inner > .item.next.left, .carousel-inner > .item.prev.right, .carousel-inner > .item.active { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); left: 0; } } .carousel-inner > .active, .carousel-inner > .next, .carousel-inner > .prev { display: block; } .carousel-inner > .active { left: 0; } .carousel-inner > .next, .carousel-inner > .prev { position: absolute; top: 0; width: 100%; } .carousel-inner > .next { left: 100%; } .carousel-inner > .prev { left: -100%; } .carousel-inner > .next.left, .carousel-inner > .prev.right { left: 0; } .carousel-inner > .active.left { left: -100%; } .carousel-inner > .active.right { left: 100%; } .carousel-control { position: absolute; top: 0; left: 0; bottom: 0; width: 15%; opacity: 0.5; filter: alpha(opacity=50); font-size: 20px; color: #fff; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); background-color: rgba(0, 0, 0, 0); } .carousel-control.left { background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%); background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%); background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1); } .carousel-control.right { left: auto; right: 0; background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%); background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%); background-image: linear-gradient(to right, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1); } .carousel-control:hover, .carousel-control:focus { outline: 0; color: #fff; text-decoration: none; opacity: 0.9; filter: alpha(opacity=90); } .carousel-control .icon-prev, .carousel-control .icon-next, .carousel-control .glyphicon-chevron-left, .carousel-control .glyphicon-chevron-right { position: absolute; top: 50%; margin-top: -10px; z-index: 5; display: inline-block; } .carousel-control .icon-prev, .carousel-control .glyphicon-chevron-left { left: 50%; margin-left: -10px; } .carousel-control .icon-next, .carousel-control .glyphicon-chevron-right { right: 50%; margin-right: -10px; } .carousel-control .icon-prev, .carousel-control .icon-next { width: 20px; height: 20px; line-height: 1; font-family: serif; } .carousel-control .icon-prev:before { content: '\2039'; } .carousel-control .icon-next:before { content: '\203a'; } .carousel-indicators { position: absolute; bottom: 10px; left: 50%; z-index: 15; width: 60%; margin-left: -30%; padding-left: 0; list-style: none; text-align: center; } .carousel-indicators li { display: inline-block; width: 10px; height: 10px; margin: 1px; text-indent: -999px; border: 1px solid #fff; border-radius: 10px; cursor: pointer; background-color: #000 \9; background-color: rgba(0, 0, 0, 0); } .carousel-indicators .active { margin: 0; width: 12px; height: 12px; background-color: #fff; } .carousel-caption { position: absolute; left: 15%; right: 15%; bottom: 20px; z-index: 10; padding-top: 20px; padding-bottom: 20px; color: #fff; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); } .carousel-caption .btn { text-shadow: none; } @media screen and (min-width: 768px) { .carousel-control .glyphicon-chevron-left, .carousel-control .glyphicon-chevron-right, .carousel-control .icon-prev, .carousel-control .icon-next { width: 30px; height: 30px; margin-top: -10px; font-size: 30px; } .carousel-control .glyphicon-chevron-left, .carousel-control .icon-prev { margin-left: -10px; } .carousel-control .glyphicon-chevron-right, .carousel-control .icon-next { margin-right: -10px; } .carousel-caption { left: 20%; right: 20%; padding-bottom: 30px; } .carousel-indicators { bottom: 20px; } } .clearfix:before, .clearfix:after, .dl-horizontal dd:before, .dl-horizontal dd:after, .container:before, .container:after, .container-fluid:before, .container-fluid:after, .row:before, .row:after, .form-horizontal .form-group:before, .form-horizontal .form-group:after, .btn-toolbar:before, .btn-toolbar:after, .btn-group-vertical > .btn-group:before, .btn-group-vertical > .btn-group:after, .nav:before, .nav:after, .navbar:before, .navbar:after, .navbar-header:before, .navbar-header:after, .navbar-collapse:before, .navbar-collapse:after, .pager:before, .pager:after, .panel-body:before, .panel-body:after, .modal-header:before, .modal-header:after, .modal-footer:before, .modal-footer:after, .item_buttons:before, .item_buttons:after { content: " "; display: table; } .clearfix:after, .dl-horizontal dd:after, .container:after, .container-fluid:after, .row:after, .form-horizontal .form-group:after, .btn-toolbar:after, .btn-group-vertical > .btn-group:after, .nav:after, .navbar:after, .navbar-header:after, .navbar-collapse:after, .pager:after, .panel-body:after, .modal-header:after, .modal-footer:after, .item_buttons:after { clear: both; } .center-block { display: block; margin-left: auto; margin-right: auto; } .pull-right { float: right !important; } .pull-left { float: left !important; } .hide { display: none !important; } .show { display: block !important; } .invisible { visibility: hidden; } .text-hide { font: 0/0 a; color: transparent; text-shadow: none; background-color: transparent; border: 0; } .hidden { display: none !important; } .affix { position: fixed; } @-ms-viewport { width: device-width; } .visible-xs, .visible-sm, .visible-md, .visible-lg { display: none !important; } .visible-xs-block, .visible-xs-inline, .visible-xs-inline-block, .visible-sm-block, .visible-sm-inline, .visible-sm-inline-block, .visible-md-block, .visible-md-inline, .visible-md-inline-block, .visible-lg-block, .visible-lg-inline, .visible-lg-inline-block { display: none !important; } @media (max-width: 767px) { .visible-xs { display: block !important; } table.visible-xs { display: table !important; } tr.visible-xs { display: table-row !important; } th.visible-xs, td.visible-xs { display: table-cell !important; } } @media (max-width: 767px) { .visible-xs-block { display: block !important; } } @media (max-width: 767px) { .visible-xs-inline { display: inline !important; } } @media (max-width: 767px) { .visible-xs-inline-block { display: inline-block !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-sm { display: block !important; } table.visible-sm { display: table !important; } tr.visible-sm { display: table-row !important; } th.visible-sm, td.visible-sm { display: table-cell !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-sm-block { display: block !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-sm-inline { display: inline !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-sm-inline-block { display: inline-block !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-md { display: block !important; } table.visible-md { display: table !important; } tr.visible-md { display: table-row !important; } th.visible-md, td.visible-md { display: table-cell !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-md-block { display: block !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-md-inline { display: inline !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-md-inline-block { display: inline-block !important; } } @media (min-width: 1200px) { .visible-lg { display: block !important; } table.visible-lg { display: table !important; } tr.visible-lg { display: table-row !important; } th.visible-lg, td.visible-lg { display: table-cell !important; } } @media (min-width: 1200px) { .visible-lg-block { display: block !important; } } @media (min-width: 1200px) { .visible-lg-inline { display: inline !important; } } @media (min-width: 1200px) { .visible-lg-inline-block { display: inline-block !important; } } @media (max-width: 767px) { .hidden-xs { display: none !important; } } @media (min-width: 768px) and (max-width: 991px) { .hidden-sm { display: none !important; } } @media (min-width: 992px) and (max-width: 1199px) { .hidden-md { display: none !important; } } @media (min-width: 1200px) { .hidden-lg { display: none !important; } } .visible-print { display: none !important; } @media print { .visible-print { display: block !important; } table.visible-print { display: table !important; } tr.visible-print { display: table-row !important; } th.visible-print, td.visible-print { display: table-cell !important; } } .visible-print-block { display: none !important; } @media print { .visible-print-block { display: block !important; } } .visible-print-inline { display: none !important; } @media print { .visible-print-inline { display: inline !important; } } .visible-print-inline-block { display: none !important; } @media print { .visible-print-inline-block { display: inline-block !important; } } @media print { .hidden-print { display: none !important; } } /*! * * Font Awesome * */ /*! * Font Awesome 4.2.0 by @davegandy - http://fontawesome.io - @fontawesome * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) */ /* FONT PATH * -------------------------- */ @font-face { font-family: 'FontAwesome'; src: url('../components/font-awesome/fonts/fontawesome-webfont.eot?v=4.2.0'); src: url('../components/font-awesome/fonts/fontawesome-webfont.eot?#iefix&v=4.2.0') format('embedded-opentype'), url('../components/font-awesome/fonts/fontawesome-webfont.woff?v=4.2.0') format('woff'), url('../components/font-awesome/fonts/fontawesome-webfont.ttf?v=4.2.0') format('truetype'), url('../components/font-awesome/fonts/fontawesome-webfont.svg?v=4.2.0#fontawesomeregular') format('svg'); font-weight: normal; font-style: normal; } .fa { display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* makes the font 33% larger relative to the icon container */ .fa-lg { font-size: 1.33333333em; line-height: 0.75em; vertical-align: -15%; } .fa-2x { font-size: 2em; } .fa-3x { font-size: 3em; } .fa-4x { font-size: 4em; } .fa-5x { font-size: 5em; } .fa-fw { width: 1.28571429em; text-align: center; } .fa-ul { padding-left: 0; margin-left: 2.14285714em; list-style-type: none; } .fa-ul > li { position: relative; } .fa-li { position: absolute; left: -2.14285714em; width: 2.14285714em; top: 0.14285714em; text-align: center; } .fa-li.fa-lg { left: -1.85714286em; } .fa-border { padding: .2em .25em .15em; border: solid 0.08em #eee; border-radius: .1em; } .pull-right { float: right; } .pull-left { float: left; } .fa.pull-left { margin-right: .3em; } .fa.pull-right { margin-left: .3em; } .fa-spin { -webkit-animation: fa-spin 2s infinite linear; animation: fa-spin 2s infinite linear; } @-webkit-keyframes fa-spin { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(359deg); transform: rotate(359deg); } } @keyframes fa-spin { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(359deg); transform: rotate(359deg); } } .fa-rotate-90 { 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, mirror=1); -webkit-transform: scale(-1, 1); -ms-transform: scale(-1, 1); transform: scale(-1, 1); } .fa-flip-vertical { filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1); -webkit-transform: scale(1, -1); -ms-transform: scale(1, -1); transform: scale(1, -1); } :root .fa-rotate-90, :root .fa-rotate-180, :root .fa-rotate-270, :root .fa-flip-horizontal, :root .fa-flip-vertical { filter: none; } .fa-stack { position: relative; display: inline-block; width: 2em; height: 2em; line-height: 2em; vertical-align: middle; } .fa-stack-1x, .fa-stack-2x { position: absolute; left: 0; width: 100%; text-align: center; } .fa-stack-1x { line-height: inherit; } .fa-stack-2x { font-size: 2em; } .fa-inverse { color: #fff; } /* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen readers do not read off random characters that represent icons */ .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-remove:before, .fa-close: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-gear:before, .fa-cog: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-rotate-right:before, .fa-repeat: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-photo:before, .fa-image: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-warning:before, .fa-exclamation-triangle: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-gears:before, .fa-cogs: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: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-save:before, .fa-floppy-o:before { content: "\f0c7"; } .fa-square:before { content: "\f0c8"; } .fa-navicon:before, .fa-reorder:before, .fa-bars: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-unsorted:before, .fa-sort:before { content: "\f0dc"; } .fa-sort-down:before, .fa-sort-desc:before { content: "\f0dd"; } .fa-sort-up:before, .fa-sort-asc:before { content: "\f0de"; } .fa-envelope:before { content: "\f0e0"; } .fa-linkedin:before { content: "\f0e1"; } .fa-rotate-left:before, .fa-undo:before { content: "\f0e2"; } .fa-legal:before, .fa-gavel:before { content: "\f0e3"; } .fa-dashboard:before, .fa-tachometer:before { content: "\f0e4"; } .fa-comment-o:before { content: "\f0e5"; } .fa-comments-o:before { content: "\f0e6"; } .fa-flash:before, .fa-bolt:before { content: "\f0e7"; } .fa-sitemap:before { content: "\f0e8"; } .fa-umbrella:before { content: "\f0e9"; } .fa-paste:before, .fa-clipboard: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-unlink:before, .fa-chain-broken: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-toggle-down:before, .fa-caret-square-o-down:before { content: "\f150"; } .fa-toggle-up:before, .fa-caret-square-o-up:before { content: "\f151"; } .fa-toggle-right:before, .fa-caret-square-o-right:before { content: "\f152"; } .fa-euro:before, .fa-eur:before { content: "\f153"; } .fa-gbp:before { content: "\f154"; } .fa-dollar:before, .fa-usd:before { content: "\f155"; } .fa-rupee:before, .fa-inr:before { content: "\f156"; } .fa-cny:before, .fa-rmb:before, .fa-yen:before, .fa-jpy:before { content: "\f157"; } .fa-ruble:before, .fa-rouble:before, .fa-rub:before { content: "\f158"; } .fa-won:before, .fa-krw: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 { 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-toggle-left:before, .fa-caret-square-o-left:before { content: "\f191"; } .fa-dot-circle-o:before { content: "\f192"; } .fa-wheelchair:before { content: "\f193"; } .fa-vimeo-square:before { content: "\f194"; } .fa-turkish-lira:before, .fa-try: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-institution:before, .fa-bank:before, .fa-university:before { content: "\f19c"; } .fa-mortar-board:before, .fa-graduation-cap: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-photo-o:before, .fa-file-picture-o:before, .fa-file-image-o:before { content: "\f1c5"; } .fa-file-zip-o:before, .fa-file-archive-o:before { content: "\f1c6"; } .fa-file-sound-o:before, .fa-file-audio-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-saver:before, .fa-support:before, .fa-life-ring:before { content: "\f1cd"; } .fa-circle-o-notch:before { content: "\f1ce"; } .fa-ra:before, .fa-rebel:before { content: "\f1d0"; } .fa-ge:before, .fa-empire: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-send:before, .fa-paper-plane:before { content: "\f1d8"; } .fa-send-o:before, .fa-paper-plane-o:before { content: "\f1d9"; } .fa-history:before { content: "\f1da"; } .fa-circle-thin:before { content: "\f1db"; } .fa-header:before { content: "\f1dc"; } .fa-paragraph:before { content: "\f1dd"; } .fa-sliders:before { content: "\f1de"; } .fa-share-alt:before { content: "\f1e0"; } .fa-share-alt-square:before { content: "\f1e1"; } .fa-bomb:before { content: "\f1e2"; } .fa-soccer-ball-o:before, .fa-futbol-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-shekel:before, .fa-sheqel:before, .fa-ils:before { content: "\f20b"; } .fa-meanpath:before { content: "\f20c"; } /*! * * IPython base * */ .modal.fade .modal-dialog { -webkit-transform: translate(0, 0); -ms-transform: translate(0, 0); -o-transform: translate(0, 0); transform: translate(0, 0); } code { color: #000; } pre { font-size: inherit; line-height: inherit; } label { font-weight: normal; } /* Make the page background atleast 100% the height of the view port */ /* Make the page itself atleast 70% the height of the view port */ .border-box-sizing { box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; } .corner-all { border-radius: 2px; } .no-padding { padding: 0px; } /* Flexible box model classes */ /* Taken from Alex Russell http://infrequently.org/2009/08/css-3-progress/ */ /* This file is a compatability layer. It allows the usage of flexible box model layouts accross multiple browsers, including older browsers. The newest, universal implementation of the flexible box model is used when available (see `Modern browsers` comments below). Browsers that are known to implement this new spec completely include: Firefox 28.0+ Chrome 29.0+ Internet Explorer 11+ Opera 17.0+ Browsers not listed, including Safari, are supported via the styling under the `Old browsers` comments below. */ .hbox { /* Old browsers */ display: -webkit-box; -webkit-box-orient: horizontal; -webkit-box-align: stretch; display: -moz-box; -moz-box-orient: horizontal; -moz-box-align: stretch; display: box; box-orient: horizontal; box-align: stretch; /* Modern browsers */ display: flex; flex-direction: row; align-items: stretch; } .hbox > * { /* Old browsers */ -webkit-box-flex: 0; -moz-box-flex: 0; box-flex: 0; /* Modern browsers */ flex: none; } .vbox { /* Old browsers */ display: -webkit-box; -webkit-box-orient: vertical; -webkit-box-align: stretch; display: -moz-box; -moz-box-orient: vertical; -moz-box-align: stretch; display: box; box-orient: vertical; box-align: stretch; /* Modern browsers */ display: flex; flex-direction: column; align-items: stretch; } .vbox > * { /* Old browsers */ -webkit-box-flex: 0; -moz-box-flex: 0; box-flex: 0; /* Modern browsers */ flex: none; } .hbox.reverse, .vbox.reverse, .reverse { /* Old browsers */ -webkit-box-direction: reverse; -moz-box-direction: reverse; box-direction: reverse; /* Modern browsers */ flex-direction: row-reverse; } .hbox.box-flex0, .vbox.box-flex0, .box-flex0 { /* Old browsers */ -webkit-box-flex: 0; -moz-box-flex: 0; box-flex: 0; /* Modern browsers */ flex: none; width: auto; } .hbox.box-flex1, .vbox.box-flex1, .box-flex1 { /* Old browsers */ -webkit-box-flex: 1; -moz-box-flex: 1; box-flex: 1; /* Modern browsers */ flex: 1; } .hbox.box-flex, .vbox.box-flex, .box-flex { /* Old browsers */ /* Old browsers */ -webkit-box-flex: 1; -moz-box-flex: 1; box-flex: 1; /* Modern browsers */ flex: 1; } .hbox.box-flex2, .vbox.box-flex2, .box-flex2 { /* Old browsers */ -webkit-box-flex: 2; -moz-box-flex: 2; box-flex: 2; /* Modern browsers */ flex: 2; } .box-group1 { /* Deprecated */ -webkit-box-flex-group: 1; -moz-box-flex-group: 1; box-flex-group: 1; } .box-group2 { /* Deprecated */ -webkit-box-flex-group: 2; -moz-box-flex-group: 2; box-flex-group: 2; } .hbox.start, .vbox.start, .start { /* Old browsers */ -webkit-box-pack: start; -moz-box-pack: start; box-pack: start; /* Modern browsers */ justify-content: flex-start; } .hbox.end, .vbox.end, .end { /* Old browsers */ -webkit-box-pack: end; -moz-box-pack: end; box-pack: end; /* Modern browsers */ justify-content: flex-end; } .hbox.center, .vbox.center, .center { /* Old browsers */ -webkit-box-pack: center; -moz-box-pack: center; box-pack: center; /* Modern browsers */ justify-content: center; } .hbox.baseline, .vbox.baseline, .baseline { /* Old browsers */ -webkit-box-pack: baseline; -moz-box-pack: baseline; box-pack: baseline; /* Modern browsers */ justify-content: baseline; } .hbox.stretch, .vbox.stretch, .stretch { /* Old browsers */ -webkit-box-pack: stretch; -moz-box-pack: stretch; box-pack: stretch; /* Modern browsers */ justify-content: stretch; } .hbox.align-start, .vbox.align-start, .align-start { /* Old browsers */ -webkit-box-align: start; -moz-box-align: start; box-align: start; /* Modern browsers */ align-items: flex-start; } .hbox.align-end, .vbox.align-end, .align-end { /* Old browsers */ -webkit-box-align: end; -moz-box-align: end; box-align: end; /* Modern browsers */ align-items: flex-end; } .hbox.align-center, .vbox.align-center, .align-center { /* Old browsers */ -webkit-box-align: center; -moz-box-align: center; box-align: center; /* Modern browsers */ align-items: center; } .hbox.align-baseline, .vbox.align-baseline, .align-baseline { /* Old browsers */ -webkit-box-align: baseline; -moz-box-align: baseline; box-align: baseline; /* Modern browsers */ align-items: baseline; } .hbox.align-stretch, .vbox.align-stretch, .align-stretch { /* Old browsers */ -webkit-box-align: stretch; -moz-box-align: stretch; box-align: stretch; /* Modern browsers */ align-items: stretch; } div.error { margin: 2em; text-align: center; } div.error > h1 { font-size: 500%; line-height: normal; } div.error > p { font-size: 200%; line-height: normal; } div.traceback-wrapper { text-align: left; max-width: 800px; margin: auto; } /** * Primary styles * * Author: Jupyter Development Team */ body { background-color: #fff; /* This makes sure that the body covers the entire window and needs to be in a different element than the display: box in wrapper below */ position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; overflow: visible; } body > #header { /* Initially hidden to prevent FLOUC */ display: none; background-color: #fff; /* Display over codemirror */ position: relative; z-index: 100; } body > #header #header-container { padding-bottom: 5px; padding-top: 5px; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; } body > #header .header-bar { width: 100%; height: 1px; background: #e7e7e7; margin-bottom: -1px; } @media print { body > #header { display: none !important; } } #header-spacer { width: 100%; visibility: hidden; } @media print { #header-spacer { display: none; } } #ipython_notebook { padding-left: 0px; padding-top: 1px; padding-bottom: 1px; } @media (max-width: 991px) { #ipython_notebook { margin-left: 10px; } } [dir="rtl"] #ipython_notebook { float: right !important; } #noscript { width: auto; padding-top: 16px; padding-bottom: 16px; text-align: center; font-size: 22px; color: red; font-weight: bold; } #ipython_notebook img { height: 28px; } #site { width: 100%; display: none; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; overflow: auto; } @media print { #site { height: auto !important; } } /* Smaller buttons */ .ui-button .ui-button-text { padding: 0.2em 0.8em; font-size: 77%; } input.ui-button { padding: 0.3em 0.9em; } span#login_widget { float: right; } span#login_widget > .button, #logout { color: #333; background-color: #fff; border-color: #ccc; } span#login_widget > .button:focus, #logout:focus, span#login_widget > .button.focus, #logout.focus { color: #333; background-color: #e6e6e6; border-color: #8c8c8c; } span#login_widget > .button:hover, #logout:hover { color: #333; background-color: #e6e6e6; border-color: #adadad; } span#login_widget > .button:active, #logout:active, span#login_widget > .button.active, #logout.active, .open > .dropdown-togglespan#login_widget > .button, .open > .dropdown-toggle#logout { color: #333; background-color: #e6e6e6; border-color: #adadad; } span#login_widget > .button:active:hover, #logout:active:hover, span#login_widget > .button.active:hover, #logout.active:hover, .open > .dropdown-togglespan#login_widget > .button:hover, .open > .dropdown-toggle#logout:hover, span#login_widget > .button:active:focus, #logout:active:focus, span#login_widget > .button.active:focus, #logout.active:focus, .open > .dropdown-togglespan#login_widget > .button:focus, .open > .dropdown-toggle#logout:focus, span#login_widget > .button:active.focus, #logout:active.focus, span#login_widget > .button.active.focus, #logout.active.focus, .open > .dropdown-togglespan#login_widget > .button.focus, .open > .dropdown-toggle#logout.focus { color: #333; background-color: #d4d4d4; border-color: #8c8c8c; } span#login_widget > .button:active, #logout:active, span#login_widget > .button.active, #logout.active, .open > .dropdown-togglespan#login_widget > .button, .open > .dropdown-toggle#logout { background-image: none; } span#login_widget > .button.disabled:hover, #logout.disabled:hover, span#login_widget > .button[disabled]:hover, #logout[disabled]:hover, fieldset[disabled] span#login_widget > .button:hover, fieldset[disabled] #logout:hover, span#login_widget > .button.disabled:focus, #logout.disabled:focus, span#login_widget > .button[disabled]:focus, #logout[disabled]:focus, fieldset[disabled] span#login_widget > .button:focus, fieldset[disabled] #logout:focus, span#login_widget > .button.disabled.focus, #logout.disabled.focus, span#login_widget > .button[disabled].focus, #logout[disabled].focus, fieldset[disabled] span#login_widget > .button.focus, fieldset[disabled] #logout.focus { background-color: #fff; border-color: #ccc; } span#login_widget > .button .badge, #logout .badge { color: #fff; background-color: #333; } .nav-header { text-transform: none; } #header > span { margin-top: 10px; } .modal_stretch .modal-dialog { /* Old browsers */ display: -webkit-box; -webkit-box-orient: vertical; -webkit-box-align: stretch; display: -moz-box; -moz-box-orient: vertical; -moz-box-align: stretch; display: box; box-orient: vertical; box-align: stretch; /* Modern browsers */ display: flex; flex-direction: column; align-items: stretch; min-height: 80vh; } .modal_stretch .modal-dialog .modal-body { max-height: calc(100vh - 200px); overflow: auto; flex: 1; } @media (min-width: 768px) { .modal .modal-dialog { width: 700px; } } @media (min-width: 768px) { select.form-control { margin-left: 12px; margin-right: 12px; } } /*! * * IPython auth * */ .center-nav { display: inline-block; margin-bottom: -4px; } /*! * * IPython tree view * */ /* We need an invisible input field on top of the sentense*/ /* "Drag file onto the list ..." */ .alternate_upload { background-color: none; display: inline; } .alternate_upload.form { padding: 0; margin: 0; } .alternate_upload input.fileinput { text-align: center; vertical-align: middle; display: inline; opacity: 0; z-index: 2; width: 12ex; margin-right: -12ex; } .alternate_upload .btn-upload { height: 22px; } /** * Primary styles * * Author: Jupyter Development Team */ [dir="rtl"] #tabs li { float: right; } ul#tabs { margin-bottom: 4px; } [dir="rtl"] ul#tabs { margin-right: 0px; } ul#tabs a { padding-top: 6px; padding-bottom: 4px; } ul.breadcrumb a:focus, ul.breadcrumb a:hover { text-decoration: none; } ul.breadcrumb i.icon-home { font-size: 16px; margin-right: 4px; } ul.breadcrumb span { color: #5e5e5e; } .list_toolbar { padding: 4px 0 4px 0; vertical-align: middle; } .list_toolbar .tree-buttons { padding-top: 1px; } [dir="rtl"] .list_toolbar .tree-buttons { float: left !important; } [dir="rtl"] .list_toolbar .pull-right { padding-top: 1px; float: left !important; } [dir="rtl"] .list_toolbar .pull-left { float: right !important; } .dynamic-buttons { padding-top: 3px; display: inline-block; } .list_toolbar [class*="span"] { min-height: 24px; } .list_header { font-weight: bold; background-color: #EEE; } .list_placeholder { font-weight: bold; padding-top: 4px; padding-bottom: 4px; padding-left: 7px; padding-right: 7px; } .list_container { margin-top: 4px; margin-bottom: 20px; border: 1px solid #ddd; border-radius: 2px; } .list_container > div { border-bottom: 1px solid #ddd; } .list_container > div:hover .list-item { background-color: red; } .list_container > div:last-child { border: none; } .list_item:hover .list_item { background-color: #ddd; } .list_item a { text-decoration: none; } .list_item:hover { background-color: #fafafa; } .list_header > div, .list_item > div { padding-top: 4px; padding-bottom: 4px; padding-left: 7px; padding-right: 7px; line-height: 22px; } .list_header > div input, .list_item > div input { margin-right: 7px; margin-left: 14px; vertical-align: baseline; line-height: 22px; position: relative; top: -1px; } .list_header > div .item_link, .list_item > div .item_link { margin-left: -1px; vertical-align: baseline; line-height: 22px; } .new-file input[type=checkbox] { visibility: hidden; } .item_name { line-height: 22px; height: 24px; } .item_icon { font-size: 14px; color: #5e5e5e; margin-right: 7px; margin-left: 7px; line-height: 22px; vertical-align: baseline; } .item_buttons { line-height: 1em; margin-left: -5px; } .item_buttons .btn, .item_buttons .btn-group, .item_buttons .input-group { float: left; } .item_buttons > .btn, .item_buttons > .btn-group, .item_buttons > .input-group { margin-left: 5px; } .item_buttons .btn { min-width: 13ex; } .item_buttons .running-indicator { padding-top: 4px; color: #5cb85c; } .item_buttons .kernel-name { padding-top: 4px; color: #5bc0de; margin-right: 7px; float: left; } .toolbar_info { height: 24px; line-height: 24px; } .list_item input:not([type=checkbox]) { padding-top: 3px; padding-bottom: 3px; height: 22px; line-height: 14px; margin: 0px; } .highlight_text { color: blue; } #project_name { display: inline-block; padding-left: 7px; margin-left: -2px; } #project_name > .breadcrumb { padding: 0px; margin-bottom: 0px; background-color: transparent; font-weight: bold; } #tree-selector { padding-right: 0px; } [dir="rtl"] #tree-selector a { float: right; } #button-select-all { min-width: 50px; } #select-all { margin-left: 7px; margin-right: 2px; } .menu_icon { margin-right: 2px; } .tab-content .row { margin-left: 0px; margin-right: 0px; } .folder_icon:before { display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "\f114"; } .folder_icon:before.pull-left { margin-right: .3em; } .folder_icon:before.pull-right { margin-left: .3em; } .notebook_icon:before { display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "\f02d"; position: relative; top: -1px; } .notebook_icon:before.pull-left { margin-right: .3em; } .notebook_icon:before.pull-right { margin-left: .3em; } .running_notebook_icon:before { display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "\f02d"; position: relative; top: -1px; color: #5cb85c; } .running_notebook_icon:before.pull-left { margin-right: .3em; } .running_notebook_icon:before.pull-right { margin-left: .3em; } .file_icon:before { display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "\f016"; position: relative; top: -2px; } .file_icon:before.pull-left { margin-right: .3em; } .file_icon:before.pull-right { margin-left: .3em; } #notebook_toolbar .pull-right { padding-top: 0px; margin-right: -1px; } ul#new-menu { left: auto; right: 0; } [dir="rtl"] #new-menu { text-align: right; } .kernel-menu-icon { padding-right: 12px; width: 24px; content: "\f096"; } .kernel-menu-icon:before { content: "\f096"; } .kernel-menu-icon-current:before { content: "\f00c"; } #tab_content { padding-top: 20px; } #running .panel-group .panel { margin-top: 3px; margin-bottom: 1em; } #running .panel-group .panel .panel-heading { background-color: #EEE; padding-top: 4px; padding-bottom: 4px; padding-left: 7px; padding-right: 7px; line-height: 22px; } #running .panel-group .panel .panel-heading a:focus, #running .panel-group .panel .panel-heading a:hover { text-decoration: none; } #running .panel-group .panel .panel-body { padding: 0px; } #running .panel-group .panel .panel-body .list_container { margin-top: 0px; margin-bottom: 0px; border: 0px; border-radius: 0px; } #running .panel-group .panel .panel-body .list_container .list_item { border-bottom: 1px solid #ddd; } #running .panel-group .panel .panel-body .list_container .list_item:last-child { border-bottom: 0px; } [dir="rtl"] #running .col-sm-8 { float: right !important; } .delete-button { display: none; } .duplicate-button { display: none; } .rename-button { display: none; } .shutdown-button { display: none; } .dynamic-instructions { display: inline-block; padding-top: 4px; } /*! * * IPython text editor webapp * */ .selected-keymap i.fa { padding: 0px 5px; } .selected-keymap i.fa:before { content: "\f00c"; } #mode-menu { overflow: auto; max-height: 20em; } .edit_app #header { -webkit-box-shadow: 0px 0px 12px 1px rgba(87, 87, 87, 0.2); box-shadow: 0px 0px 12px 1px rgba(87, 87, 87, 0.2); } .edit_app #menubar .navbar { /* Use a negative 1 bottom margin, so the border overlaps the border of the header */ margin-bottom: -1px; } .dirty-indicator { display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; width: 20px; } .dirty-indicator.pull-left { margin-right: .3em; } .dirty-indicator.pull-right { margin-left: .3em; } .dirty-indicator-dirty { display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; width: 20px; } .dirty-indicator-dirty.pull-left { margin-right: .3em; } .dirty-indicator-dirty.pull-right { margin-left: .3em; } .dirty-indicator-clean { display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; width: 20px; } .dirty-indicator-clean.pull-left { margin-right: .3em; } .dirty-indicator-clean.pull-right { margin-left: .3em; } .dirty-indicator-clean:before { display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "\f00c"; } .dirty-indicator-clean:before.pull-left { margin-right: .3em; } .dirty-indicator-clean:before.pull-right { margin-left: .3em; } #filename { font-size: 16pt; display: table; padding: 0px 5px; } #current-mode { padding-left: 5px; padding-right: 5px; } #texteditor-backdrop { padding-top: 20px; padding-bottom: 20px; } @media not print { #texteditor-backdrop { background-color: #EEE; } } @media print { #texteditor-backdrop #texteditor-container .CodeMirror-gutter, #texteditor-backdrop #texteditor-container .CodeMirror-gutters { background-color: #fff; } } @media not print { #texteditor-backdrop #texteditor-container .CodeMirror-gutter, #texteditor-backdrop #texteditor-container .CodeMirror-gutters { background-color: #fff; } } @media not print { #texteditor-backdrop #texteditor-container { padding: 0px; background-color: #fff; -webkit-box-shadow: 0px 0px 12px 1px rgba(87, 87, 87, 0.2); box-shadow: 0px 0px 12px 1px rgba(87, 87, 87, 0.2); } } /*! * * IPython notebook * */ /* CSS font colors for translated ANSI colors. */ .ansibold { font-weight: bold; } /* use dark versions for foreground, to improve visibility */ .ansiblack { color: black; } .ansired { color: darkred; } .ansigreen { color: darkgreen; } .ansiyellow { color: #c4a000; } .ansiblue { color: darkblue; } .ansipurple { color: darkviolet; } .ansicyan { color: steelblue; } .ansigray { color: gray; } /* and light for background, for the same reason */ .ansibgblack { background-color: black; } .ansibgred { background-color: red; } .ansibggreen { background-color: green; } .ansibgyellow { background-color: yellow; } .ansibgblue { background-color: blue; } .ansibgpurple { background-color: magenta; } .ansibgcyan { background-color: cyan; } .ansibggray { background-color: gray; } div.cell { /* Old browsers */ display: -webkit-box; -webkit-box-orient: vertical; -webkit-box-align: stretch; display: -moz-box; -moz-box-orient: vertical; -moz-box-align: stretch; display: box; box-orient: vertical; box-align: stretch; /* Modern browsers */ display: flex; flex-direction: column; align-items: stretch; border-radius: 2px; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; border-width: 1px; border-style: solid; border-color: transparent; width: 100%; padding: 5px; /* This acts as a spacer between cells, that is outside the border */ margin: 0px; outline: none; border-left-width: 1px; padding-left: 5px; background: linear-gradient(to right, transparent -40px, transparent 1px, transparent 1px, transparent 100%); } div.cell.jupyter-soft-selected { border-left-color: #90CAF9; border-left-color: #E3F2FD; border-left-width: 1px; padding-left: 5px; border-right-color: #E3F2FD; border-right-width: 1px; background: #E3F2FD; } @media print { div.cell.jupyter-soft-selected { border-color: transparent; } } div.cell.selected { border-color: #ababab; border-left-width: 0px; padding-left: 6px; background: linear-gradient(to right, #42A5F5 -40px, #42A5F5 5px, transparent 5px, transparent 100%); } @media print { div.cell.selected { border-color: transparent; } } div.cell.selected.jupyter-soft-selected { border-left-width: 0; padding-left: 6px; background: linear-gradient(to right, #42A5F5 -40px, #42A5F5 7px, #E3F2FD 7px, #E3F2FD 100%); } .edit_mode div.cell.selected { border-color: #66BB6A; border-left-width: 0px; padding-left: 6px; background: linear-gradient(to right, #66BB6A -40px, #66BB6A 5px, transparent 5px, transparent 100%); } @media print { .edit_mode div.cell.selected { border-color: transparent; } } .prompt { /* This needs to be wide enough for 3 digit prompt numbers: In[100]: */ min-width: 14ex; /* This padding is tuned to match the padding on the CodeMirror editor. */ padding: 0.4em; margin: 0px; font-family: monospace; text-align: right; /* This has to match that of the the CodeMirror class line-height below */ line-height: 1.21429em; /* Don't highlight prompt number selection */ -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; /* Use default cursor */ cursor: default; } @media (max-width: 540px) { .prompt { text-align: left; } } div.inner_cell { min-width: 0; /* Old browsers */ display: -webkit-box; -webkit-box-orient: vertical; -webkit-box-align: stretch; display: -moz-box; -moz-box-orient: vertical; -moz-box-align: stretch; display: box; box-orient: vertical; box-align: stretch; /* Modern browsers */ display: flex; flex-direction: column; align-items: stretch; /* Old browsers */ -webkit-box-flex: 1; -moz-box-flex: 1; box-flex: 1; /* Modern browsers */ flex: 1; } /* input_area and input_prompt must match in top border and margin for alignment */ div.input_area { border: 1px solid #cfcfcf; border-radius: 2px; background: #f7f7f7; line-height: 1.21429em; } /* This is needed so that empty prompt areas can collapse to zero height when there is no content in the output_subarea and the prompt. The main purpose of this is to make sure that empty JavaScript output_subareas have no height. */ div.prompt:empty { padding-top: 0; padding-bottom: 0; } div.unrecognized_cell { padding: 5px 5px 5px 0px; /* Old browsers */ display: -webkit-box; -webkit-box-orient: horizontal; -webkit-box-align: stretch; display: -moz-box; -moz-box-orient: horizontal; -moz-box-align: stretch; display: box; box-orient: horizontal; box-align: stretch; /* Modern browsers */ display: flex; flex-direction: row; align-items: stretch; } div.unrecognized_cell .inner_cell { border-radius: 2px; padding: 5px; font-weight: bold; color: red; border: 1px solid #cfcfcf; background: #eaeaea; } div.unrecognized_cell .inner_cell a { color: inherit; text-decoration: none; } div.unrecognized_cell .inner_cell a:hover { color: inherit; text-decoration: none; } @media (max-width: 540px) { div.unrecognized_cell > div.prompt { display: none; } } div.code_cell { /* avoid page breaking on code cells when printing */ } @media print { div.code_cell { page-break-inside: avoid; } } /* any special styling for code cells that are currently running goes here */ div.input { page-break-inside: avoid; /* Old browsers */ display: -webkit-box; -webkit-box-orient: horizontal; -webkit-box-align: stretch; display: -moz-box; -moz-box-orient: horizontal; -moz-box-align: stretch; display: box; box-orient: horizontal; box-align: stretch; /* Modern browsers */ display: flex; flex-direction: row; align-items: stretch; } @media (max-width: 540px) { div.input { /* Old browsers */ display: -webkit-box; -webkit-box-orient: vertical; -webkit-box-align: stretch; display: -moz-box; -moz-box-orient: vertical; -moz-box-align: stretch; display: box; box-orient: vertical; box-align: stretch; /* Modern browsers */ display: flex; flex-direction: column; align-items: stretch; } } /* input_area and input_prompt must match in top border and margin for alignment */ div.input_prompt { color: #303F9F; border-top: 1px solid transparent; } div.input_area > div.highlight { margin: 0.4em; border: none; padding: 0px; background-color: transparent; } div.input_area > div.highlight > pre { margin: 0px; border: none; padding: 0px; background-color: transparent; } /* The following gets added to the <head> if it is detected that the user has a * monospace font with inconsistent normal/bold/italic height. See * notebookmain.js. Such fonts will have keywords vertically offset with * respect to the rest of the text. The user should select a better font. * See: https://github.com/ipython/ipython/issues/1503 * * .CodeMirror span { * vertical-align: bottom; * } */ .CodeMirror { line-height: 1.21429em; /* Changed from 1em to our global default */ font-size: 14px; height: auto; /* Changed to auto to autogrow */ background: none; /* Changed from white to allow our bg to show through */ } .CodeMirror-scroll { /* The CodeMirror docs are a bit fuzzy on if overflow-y should be hidden or visible.*/ /* We have found that if it is visible, vertical scrollbars appear with font size changes.*/ overflow-y: hidden; overflow-x: auto; } .CodeMirror-lines { /* In CM2, this used to be 0.4em, but in CM3 it went to 4px. We need the em value because */ /* we have set a different line-height and want this to scale with that. */ padding: 0.4em; } .CodeMirror-linenumber { padding: 0 8px 0 4px; } .CodeMirror-gutters { border-bottom-left-radius: 2px; border-top-left-radius: 2px; } .CodeMirror pre { /* In CM3 this went to 4px from 0 in CM2. We need the 0 value because of how we size */ /* .CodeMirror-lines */ padding: 0; border: 0; border-radius: 0; } /* Original style from softwaremaniacs.org (c) Ivan Sagalaev <[email protected]> Adapted from GitHub theme */ .highlight-base { color: #000; } .highlight-variable { color: #000; } .highlight-variable-2 { color: #1a1a1a; } .highlight-variable-3 { color: #333333; } .highlight-string { color: #BA2121; } .highlight-comment { color: #408080; font-style: italic; } .highlight-number { color: #080; } .highlight-atom { color: #88F; } .highlight-keyword { color: #008000; font-weight: bold; } .highlight-builtin { color: #008000; } .highlight-error { color: #f00; } .highlight-operator { color: #AA22FF; font-weight: bold; } .highlight-meta { color: #AA22FF; } /* previously not defined, copying from default codemirror */ .highlight-def { color: #00f; } .highlight-string-2 { color: #f50; } .highlight-qualifier { color: #555; } .highlight-bracket { color: #997; } .highlight-tag { color: #170; } .highlight-attribute { color: #00c; } .highlight-header { color: blue; } .highlight-quote { color: #090; } .highlight-link { color: #00c; } /* apply the same style to codemirror */ .cm-s-ipython span.cm-keyword { color: #008000; font-weight: bold; } .cm-s-ipython span.cm-atom { color: #88F; } .cm-s-ipython span.cm-number { color: #080; } .cm-s-ipython span.cm-def { color: #00f; } .cm-s-ipython span.cm-variable { color: #000; } .cm-s-ipython span.cm-operator { color: #AA22FF; font-weight: bold; } .cm-s-ipython span.cm-variable-2 { color: #1a1a1a; } .cm-s-ipython span.cm-variable-3 { color: #333333; } .cm-s-ipython span.cm-comment { color: #408080; font-style: italic; } .cm-s-ipython span.cm-string { color: #BA2121; } .cm-s-ipython span.cm-string-2 { color: #f50; } .cm-s-ipython span.cm-meta { color: #AA22FF; } .cm-s-ipython span.cm-qualifier { color: #555; } .cm-s-ipython span.cm-builtin { color: #008000; } .cm-s-ipython span.cm-bracket { color: #997; } .cm-s-ipython span.cm-tag { color: #170; } .cm-s-ipython span.cm-attribute { color: #00c; } .cm-s-ipython span.cm-header { color: blue; } .cm-s-ipython span.cm-quote { color: #090; } .cm-s-ipython span.cm-link { color: #00c; } .cm-s-ipython span.cm-error { color: #f00; } .cm-s-ipython span.cm-tab { background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAMCAYAAAAkuj5RAAAAAXNSR0IArs4c6QAAAGFJREFUSMft1LsRQFAQheHPowAKoACx3IgEKtaEHujDjORSgWTH/ZOdnZOcM/sgk/kFFWY0qV8foQwS4MKBCS3qR6ixBJvElOobYAtivseIE120FaowJPN75GMu8j/LfMwNjh4HUpwg4LUAAAAASUVORK5CYII=); background-position: right; background-repeat: no-repeat; } div.output_wrapper { /* this position must be relative to enable descendents to be absolute within it */ position: relative; /* Old browsers */ display: -webkit-box; -webkit-box-orient: vertical; -webkit-box-align: stretch; display: -moz-box; -moz-box-orient: vertical; -moz-box-align: stretch; display: box; box-orient: vertical; box-align: stretch; /* Modern browsers */ display: flex; flex-direction: column; align-items: stretch; z-index: 1; } /* class for the output area when it should be height-limited */ div.output_scroll { /* ideally, this would be max-height, but FF barfs all over that */ height: 24em; /* FF needs this *and the wrapper* to specify full width, or it will shrinkwrap */ width: 100%; overflow: auto; border-radius: 2px; -webkit-box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8); box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8); display: block; } /* output div while it is collapsed */ div.output_collapsed { margin: 0px; padding: 0px; /* Old browsers */ display: -webkit-box; -webkit-box-orient: vertical; -webkit-box-align: stretch; display: -moz-box; -moz-box-orient: vertical; -moz-box-align: stretch; display: box; box-orient: vertical; box-align: stretch; /* Modern browsers */ display: flex; flex-direction: column; align-items: stretch; } div.out_prompt_overlay { height: 100%; padding: 0px 0.4em; position: absolute; border-radius: 2px; } div.out_prompt_overlay:hover { /* use inner shadow to get border that is computed the same on WebKit/FF */ -webkit-box-shadow: inset 0 0 1px #000; box-shadow: inset 0 0 1px #000; background: rgba(240, 240, 240, 0.5); } div.output_prompt { color: #D84315; } /* This class is the outer container of all output sections. */ div.output_area { padding: 0px; page-break-inside: avoid; /* Old browsers */ display: -webkit-box; -webkit-box-orient: horizontal; -webkit-box-align: stretch; display: -moz-box; -moz-box-orient: horizontal; -moz-box-align: stretch; display: box; box-orient: horizontal; box-align: stretch; /* Modern browsers */ display: flex; flex-direction: row; align-items: stretch; } div.output_area .MathJax_Display { text-align: left !important; } div.output_area .rendered_html table { margin-left: 0; margin-right: 0; } div.output_area .rendered_html img { margin-left: 0; margin-right: 0; } div.output_area img, div.output_area svg { max-width: 100%; height: auto; } div.output_area img.unconfined, div.output_area svg.unconfined { max-width: none; } /* This is needed to protect the pre formating from global settings such as that of bootstrap */ .output { /* Old browsers */ display: -webkit-box; -webkit-box-orient: vertical; -webkit-box-align: stretch; display: -moz-box; -moz-box-orient: vertical; -moz-box-align: stretch; display: box; box-orient: vertical; box-align: stretch; /* Modern browsers */ display: flex; flex-direction: column; align-items: stretch; } @media (max-width: 540px) { div.output_area { /* Old browsers */ display: -webkit-box; -webkit-box-orient: vertical; -webkit-box-align: stretch; display: -moz-box; -moz-box-orient: vertical; -moz-box-align: stretch; display: box; box-orient: vertical; box-align: stretch; /* Modern browsers */ display: flex; flex-direction: column; align-items: stretch; } } div.output_area pre { margin: 0; padding: 0; border: 0; vertical-align: baseline; color: black; background-color: transparent; border-radius: 0; } /* This class is for the output subarea inside the output_area and after the prompt div. */ div.output_subarea { overflow-x: auto; padding: 0.4em; /* Old browsers */ -webkit-box-flex: 1; -moz-box-flex: 1; box-flex: 1; /* Modern browsers */ flex: 1; max-width: calc(100% - 14ex); } div.output_scroll div.output_subarea { overflow-x: visible; } /* The rest of the output_* classes are for special styling of the different output types */ /* all text output has this class: */ div.output_text { text-align: left; color: #000; /* This has to match that of the the CodeMirror class line-height below */ line-height: 1.21429em; } /* stdout/stderr are 'text' as well as 'stream', but execute_result/error are *not* streams */ div.output_stderr { background: #fdd; /* very light red background for stderr */ } div.output_latex { text-align: left; } /* Empty output_javascript divs should have no height */ div.output_javascript:empty { padding: 0; } .js-error { color: darkred; } /* raw_input styles */ div.raw_input_container { line-height: 1.21429em; padding-top: 5px; } pre.raw_input_prompt { /* nothing needed here. */ } input.raw_input { font-family: monospace; font-size: inherit; color: inherit; width: auto; /* make sure input baseline aligns with prompt */ vertical-align: baseline; /* padding + margin = 0.5em between prompt and cursor */ padding: 0em 0.25em; margin: 0em 0.25em; } input.raw_input:focus { box-shadow: none; } p.p-space { margin-bottom: 10px; } div.output_unrecognized { padding: 5px; font-weight: bold; color: red; } div.output_unrecognized a { color: inherit; text-decoration: none; } div.output_unrecognized a:hover { color: inherit; text-decoration: none; } .rendered_html { color: #000; /* any extras will just be numbers: */ } .rendered_html em { font-style: italic; } .rendered_html strong { font-weight: bold; } .rendered_html u { text-decoration: underline; } .rendered_html :link { text-decoration: underline; } .rendered_html :visited { text-decoration: underline; } .rendered_html h1 { font-size: 185.7%; margin: 1.08em 0 0 0; font-weight: bold; line-height: 1.0; } .rendered_html h2 { font-size: 157.1%; margin: 1.27em 0 0 0; font-weight: bold; line-height: 1.0; } .rendered_html h3 { font-size: 128.6%; margin: 1.55em 0 0 0; font-weight: bold; line-height: 1.0; } .rendered_html h4 { font-size: 100%; margin: 2em 0 0 0; font-weight: bold; line-height: 1.0; } .rendered_html h5 { font-size: 100%; margin: 2em 0 0 0; font-weight: bold; line-height: 1.0; font-style: italic; } .rendered_html h6 { font-size: 100%; margin: 2em 0 0 0; font-weight: bold; line-height: 1.0; font-style: italic; } .rendered_html h1:first-child { margin-top: 0.538em; } .rendered_html h2:first-child { margin-top: 0.636em; } .rendered_html h3:first-child { margin-top: 0.777em; } .rendered_html h4:first-child { margin-top: 1em; } .rendered_html h5:first-child { margin-top: 1em; } .rendered_html h6:first-child { margin-top: 1em; } .rendered_html ul { list-style: disc; margin: 0em 2em; padding-left: 0px; } .rendered_html ul ul { list-style: square; margin: 0em 2em; } .rendered_html ul ul ul { list-style: circle; margin: 0em 2em; } .rendered_html ol { list-style: decimal; margin: 0em 2em; padding-left: 0px; } .rendered_html ol ol { list-style: upper-alpha; margin: 0em 2em; } .rendered_html ol ol ol { list-style: lower-alpha; margin: 0em 2em; } .rendered_html ol ol ol ol { list-style: lower-roman; margin: 0em 2em; } .rendered_html ol ol ol ol ol { list-style: decimal; margin: 0em 2em; } .rendered_html * + ul { margin-top: 1em; } .rendered_html * + ol { margin-top: 1em; } .rendered_html hr { color: black; background-color: black; } .rendered_html pre { margin: 1em 2em; } .rendered_html pre, .rendered_html code { border: 0; background-color: #fff; color: #000; font-size: 100%; padding: 0px; } .rendered_html blockquote { margin: 1em 2em; } .rendered_html table { margin-left: auto; margin-right: auto; border: 1px solid black; border-collapse: collapse; } .rendered_html tr, .rendered_html th, .rendered_html td { border: 1px solid black; border-collapse: collapse; margin: 1em 2em; } .rendered_html td, .rendered_html th { text-align: left; vertical-align: middle; padding: 4px; } .rendered_html th { font-weight: bold; } .rendered_html * + table { margin-top: 1em; } .rendered_html p { text-align: left; } .rendered_html * + p { margin-top: 1em; } .rendered_html img { display: block; margin-left: auto; margin-right: auto; } .rendered_html * + img { margin-top: 1em; } .rendered_html img, .rendered_html svg { max-width: 100%; height: auto; } .rendered_html img.unconfined, .rendered_html svg.unconfined { max-width: none; } div.text_cell { /* Old browsers */ display: -webkit-box; -webkit-box-orient: horizontal; -webkit-box-align: stretch; display: -moz-box; -moz-box-orient: horizontal; -moz-box-align: stretch; display: box; box-orient: horizontal; box-align: stretch; /* Modern browsers */ display: flex; flex-direction: row; align-items: stretch; } @media (max-width: 540px) { div.text_cell > div.prompt { display: none; } } div.text_cell_render { /*font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;*/ outline: none; resize: none; width: inherit; border-style: none; padding: 0.5em 0.5em 0.5em 0.4em; color: #000; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; } a.anchor-link:link { text-decoration: none; padding: 0px 20px; visibility: hidden; } h1:hover .anchor-link, h2:hover .anchor-link, h3:hover .anchor-link, h4:hover .anchor-link, h5:hover .anchor-link, h6:hover .anchor-link { visibility: visible; } .text_cell.rendered .input_area { display: none; } .text_cell.rendered .rendered_html { overflow-x: auto; overflow-y: hidden; } .text_cell.unrendered .text_cell_render { display: none; } .cm-header-1, .cm-header-2, .cm-header-3, .cm-header-4, .cm-header-5, .cm-header-6 { font-weight: bold; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; } .cm-header-1 { font-size: 185.7%; } .cm-header-2 { font-size: 157.1%; } .cm-header-3 { font-size: 128.6%; } .cm-header-4 { font-size: 110%; } .cm-header-5 { font-size: 100%; font-style: italic; } .cm-header-6 { font-size: 100%; font-style: italic; } /*! * * IPython notebook webapp * */ @media (max-width: 767px) { .notebook_app { padding-left: 0px; padding-right: 0px; } } #ipython-main-app { box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; height: 100%; } div#notebook_panel { margin: 0px; padding: 0px; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; height: 100%; } div#notebook { font-size: 14px; line-height: 20px; overflow-y: hidden; overflow-x: auto; width: 100%; /* This spaces the page away from the edge of the notebook area */ padding-top: 20px; margin: 0px; outline: none; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; min-height: 100%; } @media not print { #notebook-container { padding: 15px; background-color: #fff; min-height: 0; -webkit-box-shadow: 0px 0px 12px 1px rgba(87, 87, 87, 0.2); box-shadow: 0px 0px 12px 1px rgba(87, 87, 87, 0.2); } } @media print { #notebook-container { width: 100%; } } div.ui-widget-content { border: 1px solid #ababab; outline: none; } pre.dialog { background-color: #f7f7f7; border: 1px solid #ddd; border-radius: 2px; padding: 0.4em; padding-left: 2em; } p.dialog { padding: 0.2em; } /* Word-wrap output correctly. This is the CSS3 spelling, though Firefox seems to not honor it correctly. Webkit browsers (Chrome, rekonq, Safari) do. */ pre, code, kbd, samp { white-space: pre-wrap; } #fonttest { font-family: monospace; } p { margin-bottom: 0; } .end_space { min-height: 100px; transition: height .2s ease; } .notebook_app > #header { -webkit-box-shadow: 0px 0px 12px 1px rgba(87, 87, 87, 0.2); box-shadow: 0px 0px 12px 1px rgba(87, 87, 87, 0.2); } @media not print { .notebook_app { background-color: #EEE; } } kbd { border-style: solid; border-width: 1px; box-shadow: none; margin: 2px; padding-left: 2px; padding-right: 2px; padding-top: 1px; padding-bottom: 1px; } /* CSS for the cell toolbar */ .celltoolbar { border: thin solid #CFCFCF; border-bottom: none; background: #EEE; border-radius: 2px 2px 0px 0px; width: 100%; height: 29px; padding-right: 4px; /* Old browsers */ display: -webkit-box; -webkit-box-orient: horizontal; -webkit-box-align: stretch; display: -moz-box; -moz-box-orient: horizontal; -moz-box-align: stretch; display: box; box-orient: horizontal; box-align: stretch; /* Modern browsers */ display: flex; flex-direction: row; align-items: stretch; /* Old browsers */ -webkit-box-pack: end; -moz-box-pack: end; box-pack: end; /* Modern browsers */ justify-content: flex-end; display: -webkit-flex; } @media print { .celltoolbar { display: none; } } .ctb_hideshow { display: none; vertical-align: bottom; } /* ctb_show is added to the ctb_hideshow div to show the cell toolbar. Cell toolbars are only shown when the ctb_global_show class is also set. */ .ctb_global_show .ctb_show.ctb_hideshow { display: block; } .ctb_global_show .ctb_show + .input_area, .ctb_global_show .ctb_show + div.text_cell_input, .ctb_global_show .ctb_show ~ div.text_cell_render { border-top-right-radius: 0px; border-top-left-radius: 0px; } .ctb_global_show .ctb_show ~ div.text_cell_render { border: 1px solid #cfcfcf; } .celltoolbar { font-size: 87%; padding-top: 3px; } .celltoolbar select { display: block; width: 100%; height: 32px; padding: 6px 12px; font-size: 13px; line-height: 1.42857143; color: #555555; background-color: #fff; background-image: none; border: 1px solid #ccc; border-radius: 2px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 1px; width: inherit; font-size: inherit; height: 22px; padding: 0px; display: inline-block; } .celltoolbar select:focus { border-color: #66afe9; outline: 0; -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); } .celltoolbar select::-moz-placeholder { color: #999; opacity: 1; } .celltoolbar select:-ms-input-placeholder { color: #999; } .celltoolbar select::-webkit-input-placeholder { color: #999; } .celltoolbar select::-ms-expand { border: 0; background-color: transparent; } .celltoolbar select[disabled], .celltoolbar select[readonly], fieldset[disabled] .celltoolbar select { background-color: #eeeeee; opacity: 1; } .celltoolbar select[disabled], fieldset[disabled] .celltoolbar select { cursor: not-allowed; } textarea.celltoolbar select { height: auto; } select.celltoolbar select { height: 30px; line-height: 30px; } textarea.celltoolbar select, select[multiple].celltoolbar select { height: auto; } .celltoolbar label { margin-left: 5px; margin-right: 5px; } .completions { position: absolute; z-index: 110; overflow: hidden; border: 1px solid #ababab; border-radius: 2px; -webkit-box-shadow: 0px 6px 10px -1px #adadad; box-shadow: 0px 6px 10px -1px #adadad; line-height: 1; } .completions select { background: white; outline: none; border: none; padding: 0px; margin: 0px; overflow: auto; font-family: monospace; font-size: 110%; color: #000; width: auto; } .completions select option.context { color: #286090; } #kernel_logo_widget { float: right !important; float: right; } #kernel_logo_widget .current_kernel_logo { display: none; margin-top: -1px; margin-bottom: -1px; width: 32px; height: 32px; } #menubar { box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; margin-top: 1px; } #menubar .navbar { border-top: 1px; border-radius: 0px 0px 2px 2px; margin-bottom: 0px; } #menubar .navbar-toggle { float: left; padding-top: 7px; padding-bottom: 7px; border: none; } #menubar .navbar-collapse { clear: left; } .nav-wrapper { border-bottom: 1px solid #e7e7e7; } i.menu-icon { padding-top: 4px; } ul#help_menu li a { overflow: hidden; padding-right: 2.2em; } ul#help_menu li a i { margin-right: -1.2em; } .dropdown-submenu { position: relative; } .dropdown-submenu > .dropdown-menu { top: 0; left: 100%; margin-top: -6px; margin-left: -1px; } .dropdown-submenu:hover > .dropdown-menu { display: block; } .dropdown-submenu > a:after { display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; display: block; content: "\f0da"; float: right; color: #333333; margin-top: 2px; margin-right: -10px; } .dropdown-submenu > a:after.pull-left { margin-right: .3em; } .dropdown-submenu > a:after.pull-right { margin-left: .3em; } .dropdown-submenu:hover > a:after { color: #262626; } .dropdown-submenu.pull-left { float: none; } .dropdown-submenu.pull-left > .dropdown-menu { left: -100%; margin-left: 10px; } #notification_area { float: right !important; float: right; z-index: 10; } .indicator_area { float: right !important; float: right; color: #777; margin-left: 5px; margin-right: 5px; width: 11px; z-index: 10; text-align: center; width: auto; } #kernel_indicator { float: right !important; float: right; color: #777; margin-left: 5px; margin-right: 5px; width: 11px; z-index: 10; text-align: center; width: auto; border-left: 1px solid; } #kernel_indicator .kernel_indicator_name { padding-left: 5px; padding-right: 5px; } #modal_indicator { float: right !important; float: right; color: #777; margin-left: 5px; margin-right: 5px; width: 11px; z-index: 10; text-align: center; width: auto; } #readonly-indicator { float: right !important; float: right; color: #777; margin-left: 5px; margin-right: 5px; width: 11px; z-index: 10; text-align: center; width: auto; margin-top: 2px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; display: none; } .modal_indicator:before { width: 1.28571429em; text-align: center; } .edit_mode .modal_indicator:before { display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "\f040"; } .edit_mode .modal_indicator:before.pull-left { margin-right: .3em; } .edit_mode .modal_indicator:before.pull-right { margin-left: .3em; } .command_mode .modal_indicator:before { display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: ' '; } .command_mode .modal_indicator:before.pull-left { margin-right: .3em; } .command_mode .modal_indicator:before.pull-right { margin-left: .3em; } .kernel_idle_icon:before { display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "\f10c"; } .kernel_idle_icon:before.pull-left { margin-right: .3em; } .kernel_idle_icon:before.pull-right { margin-left: .3em; } .kernel_busy_icon:before { display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "\f111"; } .kernel_busy_icon:before.pull-left { margin-right: .3em; } .kernel_busy_icon:before.pull-right { margin-left: .3em; } .kernel_dead_icon:before { display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "\f1e2"; } .kernel_dead_icon:before.pull-left { margin-right: .3em; } .kernel_dead_icon:before.pull-right { margin-left: .3em; } .kernel_disconnected_icon:before { display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "\f127"; } .kernel_disconnected_icon:before.pull-left { margin-right: .3em; } .kernel_disconnected_icon:before.pull-right { margin-left: .3em; } .notification_widget { color: #777; z-index: 10; background: rgba(240, 240, 240, 0.5); margin-right: 4px; color: #333; background-color: #fff; border-color: #ccc; } .notification_widget:focus, .notification_widget.focus { color: #333; background-color: #e6e6e6; border-color: #8c8c8c; } .notification_widget:hover { color: #333; background-color: #e6e6e6; border-color: #adadad; } .notification_widget:active, .notification_widget.active, .open > .dropdown-toggle.notification_widget { color: #333; background-color: #e6e6e6; border-color: #adadad; } .notification_widget:active:hover, .notification_widget.active:hover, .open > .dropdown-toggle.notification_widget:hover, .notification_widget:active:focus, .notification_widget.active:focus, .open > .dropdown-toggle.notification_widget:focus, .notification_widget:active.focus, .notification_widget.active.focus, .open > .dropdown-toggle.notification_widget.focus { color: #333; background-color: #d4d4d4; border-color: #8c8c8c; } .notification_widget:active, .notification_widget.active, .open > .dropdown-toggle.notification_widget { background-image: none; } .notification_widget.disabled:hover, .notification_widget[disabled]:hover, fieldset[disabled] .notification_widget:hover, .notification_widget.disabled:focus, .notification_widget[disabled]:focus, fieldset[disabled] .notification_widget:focus, .notification_widget.disabled.focus, .notification_widget[disabled].focus, fieldset[disabled] .notification_widget.focus { background-color: #fff; border-color: #ccc; } .notification_widget .badge { color: #fff; background-color: #333; } .notification_widget.warning { color: #fff; background-color: #f0ad4e; border-color: #eea236; } .notification_widget.warning:focus, .notification_widget.warning.focus { color: #fff; background-color: #ec971f; border-color: #985f0d; } .notification_widget.warning:hover { color: #fff; background-color: #ec971f; border-color: #d58512; } .notification_widget.warning:active, .notification_widget.warning.active, .open > .dropdown-toggle.notification_widget.warning { color: #fff; background-color: #ec971f; border-color: #d58512; } .notification_widget.warning:active:hover, .notification_widget.warning.active:hover, .open > .dropdown-toggle.notification_widget.warning:hover, .notification_widget.warning:active:focus, .notification_widget.warning.active:focus, .open > .dropdown-toggle.notification_widget.warning:focus, .notification_widget.warning:active.focus, .notification_widget.warning.active.focus, .open > .dropdown-toggle.notification_widget.warning.focus { color: #fff; background-color: #d58512; border-color: #985f0d; } .notification_widget.warning:active, .notification_widget.warning.active, .open > .dropdown-toggle.notification_widget.warning { background-image: none; } .notification_widget.warning.disabled:hover, .notification_widget.warning[disabled]:hover, fieldset[disabled] .notification_widget.warning:hover, .notification_widget.warning.disabled:focus, .notification_widget.warning[disabled]:focus, fieldset[disabled] .notification_widget.warning:focus, .notification_widget.warning.disabled.focus, .notification_widget.warning[disabled].focus, fieldset[disabled] .notification_widget.warning.focus { background-color: #f0ad4e; border-color: #eea236; } .notification_widget.warning .badge { color: #f0ad4e; background-color: #fff; } .notification_widget.success { color: #fff; background-color: #5cb85c; border-color: #4cae4c; } .notification_widget.success:focus, .notification_widget.success.focus { color: #fff; background-color: #449d44; border-color: #255625; } .notification_widget.success:hover { color: #fff; background-color: #449d44; border-color: #398439; } .notification_widget.success:active, .notification_widget.success.active, .open > .dropdown-toggle.notification_widget.success { color: #fff; background-color: #449d44; border-color: #398439; } .notification_widget.success:active:hover, .notification_widget.success.active:hover, .open > .dropdown-toggle.notification_widget.success:hover, .notification_widget.success:active:focus, .notification_widget.success.active:focus, .open > .dropdown-toggle.notification_widget.success:focus, .notification_widget.success:active.focus, .notification_widget.success.active.focus, .open > .dropdown-toggle.notification_widget.success.focus { color: #fff; background-color: #398439; border-color: #255625; } .notification_widget.success:active, .notification_widget.success.active, .open > .dropdown-toggle.notification_widget.success { background-image: none; } .notification_widget.success.disabled:hover, .notification_widget.success[disabled]:hover, fieldset[disabled] .notification_widget.success:hover, .notification_widget.success.disabled:focus, .notification_widget.success[disabled]:focus, fieldset[disabled] .notification_widget.success:focus, .notification_widget.success.disabled.focus, .notification_widget.success[disabled].focus, fieldset[disabled] .notification_widget.success.focus { background-color: #5cb85c; border-color: #4cae4c; } .notification_widget.success .badge { color: #5cb85c; background-color: #fff; } .notification_widget.info { color: #fff; background-color: #5bc0de; border-color: #46b8da; } .notification_widget.info:focus, .notification_widget.info.focus { color: #fff; background-color: #31b0d5; border-color: #1b6d85; } .notification_widget.info:hover { color: #fff; background-color: #31b0d5; border-color: #269abc; } .notification_widget.info:active, .notification_widget.info.active, .open > .dropdown-toggle.notification_widget.info { color: #fff; background-color: #31b0d5; border-color: #269abc; } .notification_widget.info:active:hover, .notification_widget.info.active:hover, .open > .dropdown-toggle.notification_widget.info:hover, .notification_widget.info:active:focus, .notification_widget.info.active:focus, .open > .dropdown-toggle.notification_widget.info:focus, .notification_widget.info:active.focus, .notification_widget.info.active.focus, .open > .dropdown-toggle.notification_widget.info.focus { color: #fff; background-color: #269abc; border-color: #1b6d85; } .notification_widget.info:active, .notification_widget.info.active, .open > .dropdown-toggle.notification_widget.info { background-image: none; } .notification_widget.info.disabled:hover, .notification_widget.info[disabled]:hover, fieldset[disabled] .notification_widget.info:hover, .notification_widget.info.disabled:focus, .notification_widget.info[disabled]:focus, fieldset[disabled] .notification_widget.info:focus, .notification_widget.info.disabled.focus, .notification_widget.info[disabled].focus, fieldset[disabled] .notification_widget.info.focus { background-color: #5bc0de; border-color: #46b8da; } .notification_widget.info .badge { color: #5bc0de; background-color: #fff; } .notification_widget.danger { color: #fff; background-color: #d9534f; border-color: #d43f3a; } .notification_widget.danger:focus, .notification_widget.danger.focus { color: #fff; background-color: #c9302c; border-color: #761c19; } .notification_widget.danger:hover { color: #fff; background-color: #c9302c; border-color: #ac2925; } .notification_widget.danger:active, .notification_widget.danger.active, .open > .dropdown-toggle.notification_widget.danger { color: #fff; background-color: #c9302c; border-color: #ac2925; } .notification_widget.danger:active:hover, .notification_widget.danger.active:hover, .open > .dropdown-toggle.notification_widget.danger:hover, .notification_widget.danger:active:focus, .notification_widget.danger.active:focus, .open > .dropdown-toggle.notification_widget.danger:focus, .notification_widget.danger:active.focus, .notification_widget.danger.active.focus, .open > .dropdown-toggle.notification_widget.danger.focus { color: #fff; background-color: #ac2925; border-color: #761c19; } .notification_widget.danger:active, .notification_widget.danger.active, .open > .dropdown-toggle.notification_widget.danger { background-image: none; } .notification_widget.danger.disabled:hover, .notification_widget.danger[disabled]:hover, fieldset[disabled] .notification_widget.danger:hover, .notification_widget.danger.disabled:focus, .notification_widget.danger[disabled]:focus, fieldset[disabled] .notification_widget.danger:focus, .notification_widget.danger.disabled.focus, .notification_widget.danger[disabled].focus, fieldset[disabled] .notification_widget.danger.focus { background-color: #d9534f; border-color: #d43f3a; } .notification_widget.danger .badge { color: #d9534f; background-color: #fff; } div#pager { background-color: #fff; font-size: 14px; line-height: 20px; overflow: hidden; display: none; position: fixed; bottom: 0px; width: 100%; max-height: 50%; padding-top: 8px; -webkit-box-shadow: 0px 0px 12px 1px rgba(87, 87, 87, 0.2); box-shadow: 0px 0px 12px 1px rgba(87, 87, 87, 0.2); /* Display over codemirror */ z-index: 100; /* Hack which prevents jquery ui resizable from changing top. */ top: auto !important; } div#pager pre { line-height: 1.21429em; color: #000; background-color: #f7f7f7; padding: 0.4em; } div#pager #pager-button-area { position: absolute; top: 8px; right: 20px; } div#pager #pager-contents { position: relative; overflow: auto; width: 100%; height: 100%; } div#pager #pager-contents #pager-container { position: relative; padding: 15px 0px; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; } div#pager .ui-resizable-handle { top: 0px; height: 8px; background: #f7f7f7; border-top: 1px solid #cfcfcf; border-bottom: 1px solid #cfcfcf; /* This injects handle bars (a short, wide = symbol) for the resize handle. */ } div#pager .ui-resizable-handle::after { content: ''; top: 2px; left: 50%; height: 3px; width: 30px; margin-left: -15px; position: absolute; border-top: 1px solid #cfcfcf; } .quickhelp { /* Old browsers */ display: -webkit-box; -webkit-box-orient: horizontal; -webkit-box-align: stretch; display: -moz-box; -moz-box-orient: horizontal; -moz-box-align: stretch; display: box; box-orient: horizontal; box-align: stretch; /* Modern browsers */ display: flex; flex-direction: row; align-items: stretch; line-height: 1.8em; } .shortcut_key { display: inline-block; width: 21ex; text-align: right; font-family: monospace; } .shortcut_descr { display: inline-block; /* Old browsers */ -webkit-box-flex: 1; -moz-box-flex: 1; box-flex: 1; /* Modern browsers */ flex: 1; } span.save_widget { margin-top: 6px; } span.save_widget span.filename { height: 1em; line-height: 1em; padding: 3px; margin-left: 16px; border: none; font-size: 146.5%; border-radius: 2px; } span.save_widget span.filename:hover { background-color: #e6e6e6; } span.checkpoint_status, span.autosave_status { font-size: small; } @media (max-width: 767px) { span.save_widget { font-size: small; } span.checkpoint_status, span.autosave_status { display: none; } } @media (min-width: 768px) and (max-width: 991px) { span.checkpoint_status { display: none; } span.autosave_status { font-size: x-small; } } .toolbar { padding: 0px; margin-left: -5px; margin-top: 2px; margin-bottom: 5px; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; } .toolbar select, .toolbar label { width: auto; vertical-align: middle; margin-right: 2px; margin-bottom: 0px; display: inline; font-size: 92%; margin-left: 0.3em; margin-right: 0.3em; padding: 0px; padding-top: 3px; } .toolbar .btn { padding: 2px 8px; } .toolbar .btn-group { margin-top: 0px; margin-left: 5px; } #maintoolbar { margin-bottom: -3px; margin-top: -8px; border: 0px; min-height: 27px; margin-left: 0px; padding-top: 11px; padding-bottom: 3px; } #maintoolbar .navbar-text { float: none; vertical-align: middle; text-align: right; margin-left: 5px; margin-right: 0px; margin-top: 0px; } .select-xs { height: 24px; } .pulse, .dropdown-menu > li > a.pulse, li.pulse > a.dropdown-toggle, li.pulse.open > a.dropdown-toggle { background-color: #F37626; color: white; } /** * Primary styles * * Author: Jupyter Development Team */ /** WARNING IF YOU ARE EDITTING THIS FILE, if this is a .css file, It has a lot * of chance of beeing generated from the ../less/[samename].less file, you can * try to get back the less file by reverting somme commit in history **/ /* * We'll try to get something pretty, so we * have some strange css to have the scroll bar on * the left with fix button on the top right of the tooltip */ @-moz-keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } } @-webkit-keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } } @-moz-keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @-webkit-keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } /*properties of tooltip after "expand"*/ .bigtooltip { overflow: auto; height: 200px; -webkit-transition-property: height; -webkit-transition-duration: 500ms; -moz-transition-property: height; -moz-transition-duration: 500ms; transition-property: height; transition-duration: 500ms; } /*properties of tooltip before "expand"*/ .smalltooltip { -webkit-transition-property: height; -webkit-transition-duration: 500ms; -moz-transition-property: height; -moz-transition-duration: 500ms; transition-property: height; transition-duration: 500ms; text-overflow: ellipsis; overflow: hidden; height: 80px; } .tooltipbuttons { position: absolute; padding-right: 15px; top: 0px; right: 0px; } .tooltiptext { /*avoid the button to overlap on some docstring*/ padding-right: 30px; } .ipython_tooltip { max-width: 700px; /*fade-in animation when inserted*/ -webkit-animation: fadeOut 400ms; -moz-animation: fadeOut 400ms; animation: fadeOut 400ms; -webkit-animation: fadeIn 400ms; -moz-animation: fadeIn 400ms; animation: fadeIn 400ms; vertical-align: middle; background-color: #f7f7f7; overflow: visible; border: #ababab 1px solid; outline: none; padding: 3px; margin: 0px; padding-left: 7px; font-family: monospace; min-height: 50px; -moz-box-shadow: 0px 6px 10px -1px #adadad; -webkit-box-shadow: 0px 6px 10px -1px #adadad; box-shadow: 0px 6px 10px -1px #adadad; border-radius: 2px; position: absolute; z-index: 1000; } .ipython_tooltip a { float: right; } .ipython_tooltip .tooltiptext pre { border: 0; border-radius: 0; font-size: 100%; background-color: #f7f7f7; } .pretooltiparrow { left: 0px; margin: 0px; top: -16px; width: 40px; height: 16px; overflow: hidden; position: absolute; } .pretooltiparrow:before { background-color: #f7f7f7; border: 1px #ababab solid; z-index: 11; content: ""; position: absolute; left: 15px; top: 10px; width: 25px; height: 25px; -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -ms-transform: rotate(45deg); -o-transform: rotate(45deg); } ul.typeahead-list i { margin-left: -10px; width: 18px; } ul.typeahead-list { max-height: 80vh; overflow: auto; } ul.typeahead-list > li > a { /** Firefox bug **/ /* see https://github.com/jupyter/notebook/issues/559 */ white-space: normal; } .cmd-palette .modal-body { padding: 7px; } .cmd-palette form { background: white; } .cmd-palette input { outline: none; } .no-shortcut { display: none; } .command-shortcut:before { content: "(command)"; padding-right: 3px; color: #777777; } .edit-shortcut:before { content: "(edit)"; padding-right: 3px; color: #777777; } #find-and-replace #replace-preview .match, #find-and-replace #replace-preview .insert { background-color: #BBDEFB; border-color: #90CAF9; border-style: solid; border-width: 1px; border-radius: 0px; } #find-and-replace #replace-preview .replace .match { background-color: #FFCDD2; border-color: #EF9A9A; border-radius: 0px; } #find-and-replace #replace-preview .replace .insert { background-color: #C8E6C9; border-color: #A5D6A7; border-radius: 0px; } #find-and-replace #replace-preview { max-height: 60vh; overflow: auto; } #find-and-replace #replace-preview pre { padding: 5px 10px; } .terminal-app { background: #EEE; } .terminal-app #header { background: #fff; -webkit-box-shadow: 0px 0px 12px 1px rgba(87, 87, 87, 0.2); box-shadow: 0px 0px 12px 1px rgba(87, 87, 87, 0.2); } .terminal-app .terminal { width: 100%; float: left; font-family: monospace; color: white; background: black; padding: 0.4em; border-radius: 2px; -webkit-box-shadow: 0px 0px 12px 1px rgba(87, 87, 87, 0.4); box-shadow: 0px 0px 12px 1px rgba(87, 87, 87, 0.4); } .terminal-app .terminal, .terminal-app .terminal dummy-screen { line-height: 1em; font-size: 14px; } .terminal-app .terminal .xterm-rows { padding: 10px; } .terminal-app .terminal-cursor { color: black; background: white; } .terminal-app #terminado-container { margin-top: 20px; } /*# sourceMappingURL=style.min.css.map */ </style> <style type="text/css"> .highlight .hll { background-color: #ffffcc } .highlight { background: #f8f8f8; } .highlight .c { color: #408080; font-style: italic } /* Comment */ .highlight .err { border: 1px solid #FF0000 } /* Error */ .highlight .k { color: #008000; font-weight: bold } /* Keyword */ .highlight .o { color: #666666 } /* Operator */ .highlight .ch { color: #408080; font-style: italic } /* Comment.Hashbang */ .highlight .cm { color: #408080; font-style: italic } /* Comment.Multiline */ .highlight .cp { color: #BC7A00 } /* Comment.Preproc */ .highlight .cpf { color: #408080; font-style: italic } /* Comment.PreprocFile */ .highlight .c1 { color: #408080; font-style: italic } /* Comment.Single */ .highlight .cs { color: #408080; font-style: italic } /* Comment.Special */ .highlight .gd { color: #A00000 } /* Generic.Deleted */ .highlight .ge { font-style: italic } /* Generic.Emph */ .highlight .gr { color: #FF0000 } /* Generic.Error */ .highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ .highlight .gi { color: #00A000 } /* Generic.Inserted */ .highlight .go { color: #888888 } /* Generic.Output */ .highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */ .highlight .gs { font-weight: bold } /* Generic.Strong */ .highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ .highlight .gt { color: #0044DD } /* Generic.Traceback */ .highlight .kc { color: #008000; font-weight: bold } /* Keyword.Constant */ .highlight .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */ .highlight .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008000 } /* Keyword.Pseudo */ .highlight .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #B00040 } /* Keyword.Type */ .highlight .m { color: #666666 } /* Literal.Number */ .highlight .s { color: #BA2121 } /* Literal.String */ .highlight .na { color: #7D9029 } /* Name.Attribute */ .highlight .nb { color: #008000 } /* Name.Builtin */ .highlight .nc { color: #0000FF; font-weight: bold } /* Name.Class */ .highlight .no { color: #880000 } /* Name.Constant */ .highlight .nd { color: #AA22FF } /* Name.Decorator */ .highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */ .highlight .ne { color: #D2413A; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0000FF } /* Name.Function */ .highlight .nl { color: #A0A000 } /* Name.Label */ .highlight .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ .highlight .nt { color: #008000; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #19177C } /* Name.Variable */ .highlight .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #666666 } /* Literal.Number.Bin */ .highlight .mf { color: #666666 } /* Literal.Number.Float */ .highlight .mh { color: #666666 } /* Literal.Number.Hex */ .highlight .mi { color: #666666 } /* Literal.Number.Integer */ .highlight .mo { color: #666666 } /* Literal.Number.Oct */ .highlight .sa { color: #BA2121 } /* Literal.String.Affix */ .highlight .sb { color: #BA2121 } /* Literal.String.Backtick */ .highlight .sc { color: #BA2121 } /* Literal.String.Char */ .highlight .dl { color: #BA2121 } /* Literal.String.Delimiter */ .highlight .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */ .highlight .s2 { color: #BA2121 } /* Literal.String.Double */ .highlight .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ .highlight .sh { color: #BA2121 } /* Literal.String.Heredoc */ .highlight .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ .highlight .sx { color: #008000 } /* Literal.String.Other */ .highlight .sr { color: #BB6688 } /* Literal.String.Regex */ .highlight .s1 { color: #BA2121 } /* Literal.String.Single */ .highlight .ss { color: #19177C } /* Literal.String.Symbol */ .highlight .bp { color: #008000 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0000FF } /* Name.Function.Magic */ .highlight .vc { color: #19177C } /* Name.Variable.Class */ .highlight .vg { color: #19177C } /* Name.Variable.Global */ .highlight .vi { color: #19177C } /* Name.Variable.Instance */ .highlight .vm { color: #19177C } /* Name.Variable.Magic */ .highlight .il { color: #666666 } /* Literal.Number.Integer.Long */ </style> <style type="text/css"> /* Temporary definitions which will become obsolete with Notebook release 5.0 */ .ansi-black-fg { color: #3E424D; } .ansi-black-bg { background-color: #3E424D; } .ansi-black-intense-fg { color: #282C36; } .ansi-black-intense-bg { background-color: #282C36; } .ansi-red-fg { color: #E75C58; } .ansi-red-bg { background-color: #E75C58; } .ansi-red-intense-fg { color: #B22B31; } .ansi-red-intense-bg { background-color: #B22B31; } .ansi-green-fg { color: #00A250; } .ansi-green-bg { background-color: #00A250; } .ansi-green-intense-fg { color: #007427; } .ansi-green-intense-bg { background-color: #007427; } .ansi-yellow-fg { color: #DDB62B; } .ansi-yellow-bg { background-color: #DDB62B; } .ansi-yellow-intense-fg { color: #B27D12; } .ansi-yellow-intense-bg { background-color: #B27D12; } .ansi-blue-fg { color: #208FFB; } .ansi-blue-bg { background-color: #208FFB; } .ansi-blue-intense-fg { color: #0065CA; } .ansi-blue-intense-bg { background-color: #0065CA; } .ansi-magenta-fg { color: #D160C4; } .ansi-magenta-bg { background-color: #D160C4; } .ansi-magenta-intense-fg { color: #A03196; } .ansi-magenta-intense-bg { background-color: #A03196; } .ansi-cyan-fg { color: #60C6C8; } .ansi-cyan-bg { background-color: #60C6C8; } .ansi-cyan-intense-fg { color: #258F8F; } .ansi-cyan-intense-bg { background-color: #258F8F; } .ansi-white-fg { color: #C5C1B4; } .ansi-white-bg { background-color: #C5C1B4; } .ansi-white-intense-fg { color: #A1A6B2; } .ansi-white-intense-bg { background-color: #A1A6B2; } .ansi-bold { font-weight: bold; } </style> <style type="text/css"> div#notebook { font-family: sans-serif; font-size: 13pt; line-height: 170%; color: #303030; -webkit-font-smoothing: antialiased !important; } body, div.body { font-family: sans-serif; font-size: 13pt; color: #303030; background-color: #ffffff; background: #ffffff; -webkit-font-smoothing: antialiased !important; } body.notebook_app { padding: 0; background-color: #ffffff; background: #ffffff; padding-right: 0px !important; overflow-y: hidden; } a { font-family: sans-serif; color: #303030; -webkit-font-smoothing: antialiased !important; } a:hover, a:focus { color: #2f2f2f; -webkit-font-smoothing: antialiased !important; } .list_header, div#notebook_list_header.row.list_header { font-size: 14pt; color: #2f2f2f; background-color: transparent; height: 35px; } i.fa.fa-folder { display: inline-block; font: normal normal normal 14px "FontAwesome"; font-family: "FontAwesome" !important; text-rendering: auto; -webkit-font-smoothing: antialiased; font-size: 18px; -moz-osx-font-smoothing: grayscale; } #running .panel-group .panel .panel-heading { font-size: 14pt; color: #303030; padding: 8px 8px; background: #e4e4e4; background-color: #e4e4e4; } #running .panel-group .panel .panel-heading a { font-size: 14pt; color: #303030; } #running .panel-group .panel .panel-heading a:focus, #running .panel-group .panel .panel-heading a:hover { font-size: 14pt; color: #303030; } #running .panel-group .panel .panel-body .list_container .list_item { background: #f4f4f4; background-color: #f4f4f4; padding: 2px; border-bottom: 2px solid #dedede; } #running .panel-group .panel .panel-body .list_container .list_item:hover { background: #f4f4f4; background-color: #f4f4f4; } #running .panel-group .panel .panel-body { padding: 2px; } button#refresh_running_list { border: none !important; } button#refresh_cluster_list { border: none !important; } div.running_list_info.toolbar_info { font-size: 15px; padding: 4px 0 4px 0; margin-top: 5px; margin-bottom: 8px; height: 24px; line-height: 24px; text-shadow: none; } .list_placeholder { font-weight: normal; } #tree-selector { padding: 0px; border-color: transparent; } #project_name > ul > li > a > i.fa.fa-home { color: #ff7823; font-size: 17pt; display: inline-block; position: static; padding: 0px 0px; font-weight: normal; text-align: center; vertical-align: text-top; } .fa-folder:before { color: #126dce; } .fa-arrow-up:before { font-size: 14px; } .fa-arrow-down:before { font-size: 14px; } span#last-modified.btn.btn-xs.btn-default.sort-action:hover .fa, span#sort-name.btn.btn-xs.btn-default.sort-action:hover .fa { color: #ef5c00; } .folder_icon:before { display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "\f07b"; color: #126dce; } .notebook_icon:before { display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "\f02d"; position: relative; color: #009e07 !important; top: 0px; } .file_icon:before { display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "\f15b"; position: relative; top: 0px; color: #6a737d !important; } #project_name a { display: inline-flex; padding-left: 7px; margin-left: -2px; text-align: -webkit-auto; vertical-align: baseline; font-size: 18px; } div#notebook_toolbar div.dynamic-instructions { font-family: sans-serif; font-size: 17px; color: #828892; } span#login_widget > .button, #logout { font-family: "Proxima Nova", sans-serif; color: #303030; background: transparent; background-color: transparent; border: 2px solid #e5e5e5; font-weight: normal; box-shadow: none; text-shadow: none; border-radius: 3px; margin-right: 10px; padding: 2px 7px; } span#login_widget > .button:hover, #logout:hover { color: #ef5c00; background-color: transparent; background: transparent; border: 2px solid #ef5c00; background-image: none; box-shadow: none !important; border-radius: 3px; } span#login_widget > .button:focus, #logout:focus, span#login_widget > .button.focus, #logout.focus, span#login_widget > .button:active, #logout:active, span#login_widget > .button.active, #logout.active, .open > .dropdown-togglespan#login_widget > .button, .open > .dropdown-toggle#logout { color: #1c1c1c; background-color: #303030; background: #303030; border-color: #303030; background-image: none; box-shadow: none !important; border-radius: 2px; } body > #header #header-container { padding-bottom: 0px; padding-top: 4px; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; } body > #header { background: #ffffff; background-color: #ffffff; position: relative; z-index: 100; } .list_container { font-size: 13pt; color: #303030; border: none; text-shadow: none !important; } .list_container > div { border-bottom: 1px solid rgba(180,180,180,.14); font-size: 13pt; } .list_header > div, .list_item > div { padding-top: 6px; padding-bottom: 2px; padding-left: 0px; } .list_header > div .item_link, .list_item > div .item_link { margin-left: -1px; vertical-align: middle; line-height: 22px; font-size: 13pt; } .item_icon { color: #126dce; font-size: 13pt; vertical-align: middle; } .list_item input:not([type="checkbox"]) { padding-right: 0px; height: 1.75em; width: 25%; margin: 0px 0 0; margin-top: 0px; } .list_header > div .item_link, .list_item > div .item_link { margin-left: -1px; vertical-align: middle; line-height: 1.5em; font-size: 12pt; display: inline-table; position: static; } #button-select-all { height: 34px; min-width: 55px; z-index: 0; border: none !important; padding-top: 0px; padding-bottom: 0px; margin-bottom: 0px; margin-top: 0px; left: -3px; border-radius: 0px !important; } #button-select-all:focus, #button-select-all:active:focus, #button-select-all.active:focus, #button-select-all.focus, #button-select-all:active.focus, #button-select-all.active.focus { background-color: #e5e5e5 !important; background: #e5e5e5 !important; } button#tree-selector-btn { height: 34px; font-size: 12.0pt; border: none; left: 0px; border-radius: 0px !important; } input#select-all.pull-left.tree-selector { margin-left: 7px; margin-right: 2px; margin-top: 2px; top: 4px; } input[type="radio"], input[type="checkbox"] { margin-top: 1px; line-height: normal; } .delete-button { border: none !important; } i.fa.fa-trash { font-size: 13.5pt; } .list_container a { font-size: 16px; color: #303030; border: none; text-shadow: none !important; font-weight: normal; font-style: normal; } div.list_container a:hover { color: #2f2f2f; } .list_header > div input, .list_item > div input { margin-right: 7px; margin-left: 12px; vertical-align: baseline; line-height: 22px; position: relative; top: -1px; } div.list_item:hover { background-color: #fafafa; } .breadcrumb > li { font-size: 12.0pt; color: #303030; border: none; text-shadow: none !important; } .breadcrumb > li + li:before { content: "/\00a0"; padding: 0px; color: #303030; font-size: 18px; } #project_name > .breadcrumb { padding: 0px; margin-bottom: 0px; background-color: transparent; font-weight: normal; margin-top: -2px; } ul#tabs a { font-family: sans-serif; font-size: 13.5pt; font-weight: normal; font-style: normal; text-shadow: none !important; } .nav-tabs { font-family: sans-serif; font-size: 13.5pt; font-weight: normal; font-style: normal; background-color: transparent; border-color: transparent; text-shadow: none !important; border: 2px solid transparent; } .nav-tabs > li > a:active, .nav-tabs > li > a:focus, .nav-tabs > li > a:hover, .nav-tabs > li.active > a, .nav-tabs > li.active > a:focus, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus { color: #ef5c00; background-color: transparent; border-color: transparent; border-bottom: 2px solid transparent; } .nav > li.disabled > a, .nav > li.disabled > a:hover { color: #828892; } .nav-tabs > li > a:before { content: ""; position: absolute; width: 100%; height: 2px; bottom: -2px; left: 0; background-color: #ef5c00; visibility: hidden; -webkit-transform: perspective(0)scaleX(0); transform: perspective(0)scaleX(0); -webkit-transition: ease 220ms; transition: ease 220ms; -webkit-font-smoothing: antialiased !important; } .nav-tabs > li > a:hover:before { visibility: visible; -webkit-transform: perspective(1)scaleX(1); transform: perspective(1)scaleX(1); } .nav-tabs > li.active > a:before { content: ""; position: absolute; width: 100%; height: 2px; bottom: -2px; left: 0; background-color: #ef5c00; visibility: visible; -webkit-transform: perspective(1)scaleX(1); transform: perspective(1)scaleX(1); -webkit-font-smoothing: subpixel-antialiased !important; } div#notebook { font-family: sans-serif; font-size: 13pt; padding-top: 4px; } .notebook_app { background-color: #ffffff; } #notebook-container { padding: 13px 2px; background-color: #ffffff; min-height: 0px; box-shadow: none; width: 980px; margin-right: auto; margin-left: auto; } div#ipython-main-app.container { width: 980px; margin-right: auto; margin-left: auto; margin-right: auto; margin-left: auto; } .container { width: 980px; margin-right: auto; margin-left: auto; } div#menubar-container { width: 100%; width: 980px; } div#header-container { width: 980px; } .notebook_app #header, .edit_app #header { box-shadow: none !important; background-color: #ffffff; border-bottom: 2px solid rgba(180,180,180,.14); } #header, .edit_app #header { font-family: sans-serif; font-size: 13pt; box-shadow: none; background-color: #ffffff; } #header .header-bar, .edit_app #header .header-bar { background: #ffffff; background-color: #ffffff; } body > #header .header-bar { width: 100%; background: #ffffff; } span.checkpoint_status, span.autosave_status { font-size: small; display: none; } #menubar, div#menubar { background-color: #ffffff; padding-top: 0px !important; } #menubar .navbar, .navbar-default { background-color: #ffffff; margin-bottom: 0px; margin-top: 0px; } .navbar { border: none; } div.navbar-text, .navbar-text, .navbar-text.indicator_area, p.navbar-text.indicator_area { margin-top: 8px !important; margin-bottom: 0px; color: #ff7823; } .navbar-default { font-family: sans-serif; font-size: 13pt; background-color: #ffffff; border-color: #d4d4d4; line-height: 1.5em; padding-bottom: 0px; } .navbar-default .navbar-nav > li > a { font-family: sans-serif; font-size: 13pt; color: #303030; display: block; line-height: 1.5em; padding-top: 14px; padding-bottom: 11px; } .navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus { color: #2f2f2f; background-color: rgba(180,180,180,.14); border-color: #d4d4d4; line-height: 1.5em; transition: 200ms ease; } .navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus { color: #1c1c1c; background-color: #dedede; border-color: #dedede; line-height: 1.5em; transition: 200ms ease; } .navbar-nav > li > .dropdown-menu { margin-top: 0px; } .navbar-nav { margin: 0; } div.notification_widget.info, .notification_widget.info, .notification_widget:active:hover, .notification_widget.active:hover, .open > .dropdown-toggle.notification_widget:hover, .notification_widget:active:focus, .notification_widget.active:focus, .open > .dropdown-toggle.notification_widget:focus, .notification_widget:active.focus, .notification_widget.active.focus, .open > .dropdown-toggle.notification_widget.focus, div#notification_notebook.notification_widget.btn.btn-xs.navbar-btn, div#notification_notebook.notification_widget.btn.btn-xs.navbar-btn:hover, div#notification_notebook.notification_widget.btn.btn-xs.navbar-btn:focus { color: #303030 !important; background-color: transparent !important; border-color: transparent !important; padding-bottom: 0px !important; margin-bottom: 0px !important; font-size: 9pt !important; z-index: 0; } div#notification_notebook.notification_widget.btn.btn-xs.navbar-btn { font-size: 9pt !important; z-index: 0; } .notification_widget { color: #126dce; z-index: -500; font-size: 9pt; background: transparent; background-color: transparent; margin-right: 3px; border: none; } .notification_widget, div.notification_widget { margin-right: 0px; margin-left: 0px; padding-right: 0px; vertical-align: text-top !important; margin-top: 6px !important; background: transparent !important; background-color: transparent !important; font-size: 9pt !important; border: none; } .navbar-btn.btn-xs:hover { border: none !important; background: transparent !important; background-color: transparent !important; color: #303030 !important; } div.notification_widget.info, .notification_widget.info { display: none !important; } .edit_mode .modal_indicator:before { font-size: 18px; color: #ff7823; opacity: 1.0; padding-bottom: 0px; vertical-align: -webkit-baseline-middle; margin-left: 1px; margin-bottom: 0px; } .command_mode .modal_indicator:before { font-family: sans-serif; font-size: 18px; color: #ff7823; padding-bottom: 0px; vertical-align: -webkit-baseline-middle; margin-left: 1px; margin-bottom: 0px; } .item_icon { color: #126dce; } .item_buttons .kernel-name { font-size: 13pt; color: #126dce; } .running_notebook_icon:before { color: #009e07 !important; font: normal normal normal 15px/1 FontAwesome; font-size: 15px; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "\f10c"; vertical-align: middle; position: static; display: inherit; } .item_buttons .running-indicator { padding-top: 4px; color: #009e07; font-family: sans-serif; text-rendering: auto; -webkit-font-smoothing: antialiased; } #notification_trusted { font-family: sans-serif; font-size: 17px !important; color: #126dce; border: none; background: transparent; background-color: transparent; margin-bottom: 0px !important; margin-top: 11px !important; vertical-align: middle !important; } #modal_indicator { float: right !important; color: #4c8be2; background: #ffffff; background-color: #ffffff; margin-top: 8px !important; margin-left: 0px; } #kernel_indicator { float: right !important; color: #ff7823; background: #ffffff; background-color: #ffffff; border-left: 2px solid #ff7823; padding-top: 0px; padding-bottom: 4px; margin-top: 8px !important; margin-left: -2px; } #kernel_indicator .kernel_indicator_name { font-size: 17px; color: #ff7823; background: #ffffff; background-color: #ffffff; padding-left: 5px; padding-right: 5px; margin-top: 4px; vertical-align: -webkit-baseline-middle; padding-bottom: 0px; } .kernel_idle_icon:before { display: inline-block; font: normal normal normal 22px/1 FontAwesome; font-size: 22px; text-rendering: auto; -webkit-font-smoothing: antialiased; cursor: pointer; margin-left: 0px !important; opacity: 0.7; vertical-align: middle; margin-top: 1px; content: "\f1db"; } .kernel_busy_icon:before { display: inline-block; font: normal normal normal 22px/1 FontAwesome; font-size: 22px; -webkit-animation: pulsate 2s infinite ease-out; animation: pulsate 2s infinite ease-out; text-rendering: auto; -webkit-font-smoothing: antialiased; cursor: pointer; margin-left: 0px !important; vertical-align: middle; margin-top: 1px; content: "\f111"; } @-webkit-keyframes pulsate { 0% { -webkit-transform: scale(1.0,1.0); opacity: 0.8; } 8% { -webkit-transform: scale(1.0,1.0); opacity: 0.8; } 50% { -webkit-transform: scale(0.75,0.75); opacity: 0.3; } 92% { -webkit-transform: scale(1.0,1.0); opacity: 0.8; } 100% { -webkit-transform: scale(1.0,1.0); opacity: 0.8; } } i#kernel_indicator_icon { vertical-align: sub; } div.notification_widget.info, .notification_widget.info, .notification_widget:active:hover, .notification_widget.active:hover, .open > .dropdown-toggle.notification_widget:hover, .notification_widget:active:focus, .notification_widget.active:focus, .open > .dropdown-toggle.notification_widget:focus, .notification_widget:active.focus, .notification_widget.active.focus, .open > .dropdown-toggle.notification_widget.focus, div#notification_notebook.notification_widget.btn.btn-xs.navbar-btn, div#notification_notebook.notification_widget.btn.btn-xs.navbar-btn:hover, div#notification_notebook.notification_widget.btn.btn-xs.navbar-btn:focus { color: #303030; background-color: #ffffff; border-color: #ffffff; } #notification_area, div.notification_area { float: right !important; position: static; } .notification_widget, div.notification_widget { margin-right: 0px; margin-left: 0px; padding-right: 0px; vertical-align: text-top !important; margin-top: 6px !important; z-index: 1000; } #kernel_logo_widget, #kernel_logo_widget .current_kernel_logo { display: none; } div#ipython_notebook { display: none; } i.fa.fa-icon { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: auto; } .fa { display: inline-block; font: normal normal normal 10pt/1 "FontAwesome", sans-serif; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .dropdown-menu { font-family: sans-serif; font-size: 13pt; box-shadow: none; padding: 0px; text-align: left; border: 2px solid #dedede; background-color: #dedede; background: #dedede; line-height: 1; } .dropdown-menu:hover { font-family: sans-serif; font-size: 13pt; box-shadow: none; padding: 0px; text-align: left; border: 2px solid #dedede; background-color: #dedede; box-shadow: none; line-height: 1; } .dropdown-menu > li > a { font-family: sans-serif; font-size: 12.0pt; line-height: 1.1; display: block; padding: 10px 20px 9px 10px; color: #303030; background-color: #dedede; background: #dedede; } .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { color: #2f2f2f; background-color: #d4d4d4; background: #d4d4d4; border-color: #d4d4d4; transition: 200ms ease; } .dropdown-menu .divider { height: 1px; margin: 0px 0px; overflow: hidden; background-color: rgba(180,180,180,.30); } .dropdown-submenu > .dropdown-menu { top: 0px; left: 100%; margin-top: -2px; margin-left: 0px; padding-top: 0px; transition: 200ms ease; } .dropdown-menu > .disabled > a, .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { font-family: sans-serif; font-size: 12.0pt; font-weight: normal; color: #828892; padding: none; display: block; clear: both; line-height: 1.1; white-space: nowrap; } .dropdown-submenu > a:after { color: #303030; margin-right: -16px; margin-top: 0px; } .dropdown-submenu:hover > a:after, .dropdown-submenu:active > a:after, .dropdown-submenu:focus > a:after, .dropdown-submenu:visited > a:after { color: #ff7823; margin-right: -16px; } div.kse-dropdown > .dropdown-menu, .kse-dropdown > .dropdown-menu { min-width: 0; top: 94%; } .btn, .btn-default { font-family: sans-serif; color: #303030; background: #e5e5e5; background-color: #e5e5e5; border: 2px solid #e5e5e5; font-weight: normal; box-shadow: none; text-shadow: none; border-radius: 3px; font-size: initial; } .btn:hover, .btn:active:hover, .btn.active:hover, .btn-default:hover, .open > .dropdown-toggle.btn-default:hover, .open > .dropdown-toggle.btn:hover { color: #ef5c00; border: 2px solid #e0e0e0; background-color: #e0e0e0; background: #e0e0e0; background-image: none; box-shadow: none !important; border-radius: 3px; } .btn:active, .btn.active, .btn:active:focus, .btn.active:focus, .btn:active.focus, .btn.active.focus, .btn-default:focus, .btn-default.focus, .btn-default:active, .btn-default.active, .btn-default:active:hover, .btn-default.active:hover, .btn-default:active:focus, .btn-default.active:focus, .btn-default:active.focus, .btn-default.active.focus, .open > .dropdown-toggle.btn:focus, .open > .dropdown-toggle.btn.focus, .open > .dropdown-toggle.btn-default:hover, .open > .dropdown-toggle.btn-default:focus, .open > .dropdown-toggle.btn-default.hover, .open > .dropdown-toggle.btn-default.focus { color: #ef5c00; border: 2px solid #e0e0e0; background-color: #e0e0e0 !important; background: #e0e0e0 !important; background-image: none; box-shadow: none !important; border-radius: 3px; } .btn-default:active:hover, .btn-default.active:hover, .btn-default:active:focus, .btn-default.active:focus, .btn-default:active.focus, .btn-default.active.focus { color: #ef5c00 !important; background-color: #e5e5e5; border-color: #ffccac !important; transition: 2000ms ease; } .btn:focus, .btn.focus, .btn:active:focus, .btn.active:focus, .btn:active, .btn.active, .btn:active.focus, .btn.active.focus { color: #ef5c00 !important; outline: none !important; outline-width: 0px !important; background: #ffccac !important; background-color: #ffccac !important; border-color: #ffccac !important; transition: 200ms ease !important; } .item_buttons > .btn, .item_buttons > .btn-group, .item_buttons > .input-group { font-size: 13pt; background: transparent; background-color: transparent; border: 0px solid #e4e4e4; border-bottom: 2px solid transparent; margin-left: 5px; padding-top: 4px !important; } .item_buttons > .btn:hover, .item_buttons > .btn-group:hover, .item_buttons > .input-group:hover, .item_buttons > .btn.active, .item_buttons > .btn-group.active, .item_buttons > .input-group.active, .item_buttons > .btn.focus { margin-left: 5px; background: #dfdfdf; padding-top: 4px !important; background-color: transparent; border: 0px solid transparent; border-bottom: 2px solid #ff7823; border-radius: 0px; transition: none; } .item_buttons { line-height: 1.5em !important; } .item_buttons .btn { min-width: 11ex; } .btn-group > .btn:first-child { margin-left: 3px; } .btn-group > .btn-mini, .btn-sm, .btn-group-sm > .btn, .btn-xs, .btn-group-xs > .btn, .alternate_upload .btn-upload, .btn-group, .btn-group-vertical { font-size: inherit; font-weight: normal; height: inherit; line-height: inherit; } .btn-xs, .btn-group-xs > .btn { font-size: initial !important; background-image: none; font-weight: normal; text-shadow: none; display: inline-table; padding: 2px 5px; line-height: 1.45; } .btn-group > .btn:first-child { margin-left: 3px; } div#new-buttons > button, #new-buttons > button, div#refresh_notebook_list, #refresh_notebook_list { background: transparent; background-color: transparent; border: none; } div#new-buttons > button:hover, #new-buttons > button:hover, div#refresh_notebook_list, #refresh_notebook_list, div.alternate_upload .btn-upload, .alternate_upload .btn-upload, div.dynamic-buttons > button, .dynamic-buttons > button, .dynamic-buttons > button:focus, .dynamic-buttons > button:active:focus, .dynamic-buttons > button.active:focus, .dynamic-buttons > button.focus, .dynamic-buttons > button:active.focus, .dynamic-buttons > button.active.focus, #new-buttons > button:focus, #new-buttons > button:active:focus, #new-buttons > button.active:focus, #new-buttons > button.focus, #new-buttons > button:active.focus, #new-buttons > button.active.focus, .alternate_upload .btn-upload:focus, .alternate_upload .btn-upload:active:focus, .alternate_upload .btn-upload.active:focus, .alternate_upload .btn-upload.focus, .alternate_upload .btn-upload:active.focus, .alternate_upload .btn-upload.active.focus { background: transparent !important; background-color: transparent !important; border: none !important; } .alternate_upload input.fileinput { text-align: center; vertical-align: bottom; margin-left: -.5ex; display: inline-table; border: solid 0px #e5e5e5; margin-bottom: -1ex; } .alternate_upload .btn-upload { display: inline-table; background: transparent; border: none; } .btn-group .btn + .btn, .btn-group .btn + .btn-group, .btn-group .btn-group + .btn, .btn-group .btn-group + .btn-group { margin-left: -2px; } .btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) { border-bottom-right-radius: 0; border-top-right-radius: 0; z-index: 2; } .dropdown-header { font-family: sans-serif !important; font-size: 13pt !important; color: #ff7823 !important; border-bottom: none !important; padding: 0px !important; margin: 6px 6px 0px !important; } span#last-modified.btn.btn-xs.btn-default.sort-action, span#sort-name.btn.btn-xs.btn-default.sort-action { font-family: sans-serif; font-size: 16px; background-color: transparent; background: transparent; border: none; color: #303030; padding-bottom: 0px; margin-bottom: 0px; vertical-align: sub; } span#last-modified.btn.btn-xs.btn-default.sort-action { margin-left: 19px; } button.close { border: 0px none; font-family: sans-serif; font-size: 20pt; font-weight: normal; } .dynamic-buttons { padding-top: 0px; display: inline-block; } .close { color: #de143d; opacity: .5; text-shadow: none; font-weight: normal; } .close:hover { color: #de143d; opacity: 1; font-weight: normal; } div.nbext-enable-btns .btn[disabled], div.nbext-enable-btns .btn[disabled]:hover, .btn-default.disabled, .btn-default[disabled], .btn-default.disabled:hover, .btn-default[disabled]:hover, fieldset[disabled] .btn-default:hover, .btn-default.disabled:focus, .btn-default[disabled]:focus, fieldset[disabled] .btn-default:focus, .btn-default.disabled.focus, .btn-default[disabled].focus, fieldset[disabled] .btn-default.focus { color: #4a4a4a; background: #e2e2e2; background-color: #e2e2e2; border-color: #e2e2e2; transition: 200ms ease; } .input-group-addon { padding: 2px 5px; font-size: 13pt; font-weight: normal; height: auto; color: #303030; text-align: center; background-color: transparent; border: 2px solid transparent !important; text-transform: capitalize; } a.btn.btn-default.input-group-addon:hover { background: transparent !important; background-color: transparent !important; } .btn-group > .btn + .dropdown-toggle { padding-left: 8px; padding-right: 8px; height: 100%; } .btn-group > .btn + .dropdown-toggle:hover { background: #e0e0e0 !important; } .input-group-btn { position: relative; font-size: inherit; white-space: nowrap; background: #e4e4e4; background-color: #e4e4e4; border: none; } .input-group-btn:hover { background: #dfdfdf; background-color: #dfdfdf; border: none; } .input-group-btn:first-child > .btn, .input-group-btn:first-child > .btn-group { background: #e4e4e4; background-color: #e4e4e4; border: none; margin-left: 2px; margin-right: -1px; font-size: inherit; } .input-group-btn:first-child > .btn:hover, .input-group-btn:first-child > .btn-group:hover { background: #e0e0e0; background-color: #e0e0e0; border: none; font-size: inherit; transition: 200ms ease; } div.modal .btn-group > .btn:first-child { background: #e4e4e4; background-color: #e4e4e4; border: 1px solid #e1e1e1; margin-top: 0px !important; margin-left: 0px; margin-bottom: 2px; } div.modal .btn-group > .btn:first-child:hover { background: #dfdfdf; background-color: #dfdfdf; border: 1px solid #dfdfdf; transition: 200ms ease; } div.modal > button, div.modal-footer > button { background: #e4e4e4; background-color: #e4e4e4; border-color: #e4e4e4; } div.modal > button:hover, div.modal-footer > button:hover { background: #dfdfdf; background-color: #dfdfdf; border-color: #dfdfdf; transition: 200ms ease; } .modal-content { font-family: sans-serif; font-size: 12.0pt; position: relative; background: #e4e4e4; background-color: #e4e4e4; border: none; border-radius: 1px; background-clip: padding-box; outline: none; } .modal-header { font-family: sans-serif; font-size: 13pt; color: #303030; background: #e4e4e4; background-color: #e4e4e4; border-color: #dedede; padding: 12px; min-height: 16.4286px; } .modal-content h4 { font-family: sans-serif; font-size: 16pt; color: #303030; padding: 5px; } .modal-body { background-color: #ffffff; position: relative; padding: 15px; } .modal-footer { padding: 8px; text-align: right; background-color: #ffffff; border-top: none; } .alert-info { background-color: #fdfdfd; border-color: #dedede; color: #303030; } .modal-header .close { margin-top: -5px; font-size: 25pt; } .modal-backdrop, .modal-backdrop.in { opacity: 0.85; background-color: notebook-bg; } div.panel, div.panel-default, .panel, .panel-default { font-family: sans-serif; font-size: 13pt; background-color: #f4f4f4; color: #303030; margin-bottom: 14px; border: 0; box-shadow: none; } div.panel > .panel-heading, div.panel-default > .panel-heading { font-size: 14pt; color: #303030; background: #e4e4e4; background-color: #e4e4e4; border: 0; } .modal .modal-dialog { min-width: 950px; margin: 50px auto; } div.container-fluid { margin-right: auto; margin-left: auto; padding-left: 0px; padding-right: 5px; } div.form-control, .form-control { font-family: sans-serif; font-size: initial; color: #303030; background-color: #ffffff; border: 1px solid #d0d0d0 !important; margin-left: 2px; box-shadow: none; transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s; } .form-control-static { min-height: inherit; height: inherit; } .form-group.list-group-item { color: #303030; background-color: #f4f4f4; border-color: #dedede; margin-bottom: 0px; } input, button, select, textarea { background-color: #ffffff; font-weight: normal; border: 1px solid #dedede; } select.form-control.select-xs { height: 33px; font-size: 13pt; } .toolbar select, .toolbar label { width: auto; vertical-align: middle; margin-right: 0px; margin-bottom: 0px; display: inline; font-size: 92%; margin-left: 10px; padding: 0px; background: #e5e5e5 !important; background-color: #e5e5e5 !important; border: 2px solid #e5e5e5 !important; } .form-control:focus { border-color: #ff7823; outline: 2px solid rgba(240,147,43,.50); -webkit-box-shadow: none; } ::-webkit-input-placeholder { color: #828892; } ::-moz-placeholder { color: #828892; } :-ms-input-placeholder { color: #828892; } :-moz-placeholder { color: #828892; } [dir="ltr"] #find-and-replace .input-group-btn + .form-control { border: 2px solid #dedede !important; } [dir="ltr"] #find-and-replace .input-group-btn + .form-control:focus { border-color: #ff7823; outline: 2px solid rgba(240,147,43,.50); -webkit-box-shadow: none; box-shadow: none; } div.output.output_scroll { box-shadow: none; } ::-webkit-scrollbar { width: 11px; max-height: 9px; background-color: #ebebeb; border-radius: 3px; border: none; } ::-webkit-scrollbar-track { background: #ebebeb; border: none; width: 11px; max-height: 9px; } ::-webkit-scrollbar-thumb { border-radius: 2px; border: none; background: #909090; background-clip: content-box; width: 11px; } HTML, body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, button, textarea, p, blockquote, th, td, span, a { text-rendering: auto; -webkit-font-smoothing: antialiased; } div.input_area { background-color: #ededed; background: #ededed; padding-right: 1.2em; border: 0px; border-radius: 0px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; } div.cell { padding: 0px; background: #ffffff; background-color: #ffffff; border: medium solid #ffffff; border-radius: 0px; top: 0; } div.cell.selected { background: #ffffff; background-color: #ffffff; border: medium solid #ffffff; padding: 0px; border-radius: 3px; } .edit_mode div.cell.selected { padding: 0px; background: #ffffff; background-color: #ffffff; border: medium solid #ffffff; border-radius: 3px; } div.cell.edit_mode { padding: 0px; background: #ffffff; background-color: #ffffff; } div.CodeMirror-sizer { margin-left: 0px; margin-bottom: -21px; border-right-width: 16px; min-height: 37px; padding-right: 0px; padding-bottom: 0px; margin-top: 0px; } div.cell.selected:before { background: #ededed; border: none; border-radius: 3px; position: absolute; display: block; top: 0px; left: 0px; width: 0px; height: 100%; } .edit_mode div.cell.selected:before { background: #ffffff; border: none; border-radius: 3px; position: absolute; display: block; top: 0px; left: 0px; width: 0px; height: 100%; } div.cell.code_cell .input { border-left: 5px solid #ededed !important; border-radius: 3px; border-bottom-left-radius: 3px; border-top-left-radius: 3px; } div.cell.code_cell.selected .input { border-left: 5px solid #ff7823 !important; border-radius: 3px; } .edit_mode div.cell.code_cell.selected .input { border-left: 5px solid #ffd5bb !important; border-radius: 3px; } div.cell.selected:before, div.cell.selected.jupyter-soft-selected:before { position: absolute; display: block; top: -1px; left: -1px; width: 5px; height: calc(102%); content: ''; background: transparent !important; } div.cell.jupyter-soft-selected, div.cell.selected.jupyter-soft-selected { border-left-color: #ffd5bb !important; border-left-width: 0px !important; padding-left: 7px !important; border-right-color: #ffd5bb !important; border-right-width: 0px !important; background: #ffd5bb !important; border-radius: 6px !important; } div.cell.selected.jupyter-soft-selected .input { border-left: 5px solid #ededed !important; } div.cell.selected.jupyter-soft-selected:before, .edit_mode div.cell.selected:before .input { background: #ffd5bb !important; border: 2px solid #ffd5bb !important; border-radius: 6px !important; position: absolute !important; display: block !important; top: 0px !important; left: 0px !important; width: 6px !important; height: 100% !important; } div.cell.selected.jupyter-soft-selected { border-left-color: #ff7823; border-color: #ffffff; padding-left: 7px; border-radius: 6px; } div.cell.code_cell.selected .input { border-left: none; border-radius: 3px; } div.cell.selected.jupyter-soft-selected .prompt, div.cell.text_cell.selected.jupyter-soft-selected .prompt { top: 0; border-left: #ededed !important; border-radius: 2px; } div.cell.text_cell.selected.jupyter-soft-selected .input_prompt { border-left: none !important; } div.cell.text_cell.selected.jupyter-soft-selected:before { background: #f2f2f2 !important; border: 2px solid #f2f2f2 !important; border-radius: 6px !important; position: absolute !important; display: block !important; top: 0px !important; left: 0px !important; width: 6px !important; height: 100% !important; } div.cell.text_cell.jupyter-soft-selected, div.cell.text_cell.selected.jupyter-soft-selected { border-left-color: #f2f2f2 !important; border-left-width: 0px !important; padding-left: 7px !important; border-right-color: #f2f2f2 !important; border-right-width: 0px !important; background: #f2f2f2 !important; border-radius: 6px !important; } div.prompt, .prompt { font-family: monospace, monospace; font-size: 9pt !important; font-weight: normal; color: #828892; line-height: 170%; padding: 0px; padding-top: 4px; padding-left: 0px; padding-right: 1px; text-align: right !important; min-width: 12.5ex !important; width: 12.5ex !important; } div.prompt.input_prompt { font-size: 9pt !important; background-color: #ededed; border-top: 0px; border-top-right-radius: 0px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; padding-right: 3px; min-width: 12.5ex; width: 12.5ex !important; } div.cell.code_cell .input_prompt { border-right: 2px solid rgba(240,147,43,.50); } div.cell.selected .prompt { top: 0; } .edit_mode div.cell.selected .prompt { top: 0; } .edit_mode div.cell.selected .prompt { top: 0; } div.output_wrapper { background-color: #ffffff; border: 0px; left: 0px; margin-bottom: 0em; margin-top: 0em; border-top-right-radius: 0px; border-top-left-radius: 0px; } div.output_subarea.output_text.output_stream.output_stdout, div.output_subarea.output_text { font-family: monospace, monospace; font-size: 8.5pt !important; line-height: 150% !important; background-color: #ffffff; color: #303030; border-top-right-radius: 0px; border-top-left-radius: 0px; } div.output_area pre { font-family: monospace, monospace; font-size: 8.5pt !important; line-height: 151% !important; color: #303030; border-top-right-radius: 0px; border-top-left-radius: 0px; } div.output_area { display: -webkit-box; } div.output_html { font-family: monospace, monospace; font-size: 8.5pt; color: #353535; background-color: #ffffff; background: #ffffff; } div.output_subarea { overflow-x: auto; padding: 0.8em !important; -webkit-box-flex: 1; -moz-box-flex: 1; box-flex: 1; flex: 1; } div.btn.btn-default.output_collapsed { background: #d7d7d7; background-color: #d7d7d7; border-color: #d7d7d7; } div.btn.btn-default.output_collapsed:hover { background: #d2d2d2; background-color: #d2d2d2; border-color: #d2d2d2; } div.prompt.output_prompt { font-family: monospace, monospace; font-size: 9.5pt !important; font-weight: bold !important; background-color: #ffffff; color: transparent; border-bottom-left-radius: 4px; border-top-right-radius: 0px; border-top-left-radius: 0px; border-bottom-right-radius: 0px; min-width: 12.5ex !important; width: 12.5ex !important; border-right: 2px solid transparent; } div.out_prompt_overlay.prompt { font-family: monospace, monospace; font-size: 9.5pt !important; font-weight: bold !important; background-color: #ffffff; border-bottom-left-radius: 2px; border-top-right-radius: 0px; border-top-left-radius: 0px; border-bottom-right-radius: 0px; min-width: 12.5ex !important; width: 12.5ex !important; border-right: 2px solid transparent; color: transparent; } div.out_prompt_overlay.prompt:hover { background-color: #f7f7f7; box-shadow: none !important; border: none; border-bottom-left-radius: 2px; -webkit-border-: 2px; -moz-border-radius: 2px; border-top-right-radius: 0px; border-top-left-radius: 0px; min-width: 12.5ex !important; width: 12.5ex !important; border-right: 2px solid #f7f7f7 !important; } div.cell.code_cell .output_prompt { border-right: 2px solid transparent; color: transparent; } div.cell.selected .output_prompt, div.cell.selected .out_prompt_overlay.prompt { border-left: 5px solid #f2f2f2; border-right: 2px solid #ffffff; border-radius: 0px !important; } .edit_mode div.cell.selected .output_prompt, .edit_mode div.cell.selected .out_prompt_overlay.prompt { border-left: 5px solid #f2f2f2; border-right: 2px solid #ffffff; border-radius: 0px !important; } div.text_cell, div.text_cell_render pre, div.text_cell_render { font-family: sans-serif; font-size: 13pt; line-height: 130% !important; color: #353535; background: #ffffff; background-color: #ffffff; border-radius: 0px; } div .text_cell_render { padding: 0.4em 0.4em 0.4em 0.4em; } div.cell.text_cell .CodeMirror-lines { padding-top: .7em !important; padding-bottom: .4em !important; padding-left: .5em !important; padding-right: .5em !important; margin-top: .4em; margin-bottom: .3em; } div.cell.text_cell.unrendered div.input_area, div.cell.text_cell.rendered div.input_area { background-color: #ffffff; background: #ffffff; border: 0px; border-radius: 2px; } div.cell.text_cell .CodeMirror, div.cell.text_cell .CodeMirror pre { line-height: 170% !important; } div.cell.text_cell.rendered.selected { font-family: sans-serif; line-height: 170% !important; background: #ffffff; background-color: #ffffff; border-radius: 0px; } div.cell.text_cell.unrendered.selected { font-family: sans-serif; line-height: 170% !important; background: #ffffff; background-color: #ffffff; border-radius: 0px; } div.cell.text_cell.selected { font-family: sans-serif; line-height: 170% !important; background: #ffffff; background-color: #ffffff; border-radius: 0px; } .edit_mode div.cell.text_cell.selected { font-family: sans-serif; line-height: 170% !important; background: #ffffff; background-color: #ffffff; border-radius: 0px; } div.text_cell.unrendered, div.text_cell.unrendered.selected, div.edit_mode div.text_cell.unrendered { font-family: sans-serif; line-height: 170% !important; background: #ffffff; background-color: #ffffff; border-radius: 0px; } div.cell.text_cell.selected:before { background: #f2f2f2; border: 2px solid #f2f2f2; border-top-left-radius: 2px; border-bottom-left-radius: 2px; position: absolute; display: block; top: 0px; left: 0px; width: 5px; height: 100%; } .edit_mode div.cell.text_cell.selected:before { background: #f2f2f2; border: 2px solid #f2f2f2; border-top-left-radius: 2px; border-bottom-left-radius: 2px; position: absolute; display: block; top: 0px; left: 0px; width: 5px; height: 100%; } div.cell.text_cell .prompt { border-right: 0; } div.cell.text_cell.rendered .prompt { font-family: monospace, monospace; font-size: 9.5pt; font-weight: normal; color: #828892 !important; text-align: right !important; min-width: 12.5ex !important; width: 12.5ex !important; background-color: #ffffff; border-right: 2px solid transparent; border-left: 5px solid #ffffff; } div.cell.text_cell.unrendered .prompt { font-family: monospace, monospace; font-size: 9.5pt; font-weight: normal; color: #828892 !important; text-align: right !important; min-width: 12.5ex !important; width: 12.5ex !important; border-right: 2px solid transparent; border-left: 5px solid #ffffff; } div.cell.text_cell.rendered .prompt { border-right: 2px solid transparent; } div.cell.text_cell.rendered.selected .prompt { top: 0; border-left: 5px solid #f2f2f2; border-right: 2px solid transparent; } div.text_cell.unrendered.selected .prompt { top: 0; background: #ffffff; border-left: 5px solid #f2f2f2; border-right: 2px solid transparent; } div.rendered_html code { font-family: monospace, monospace; font-size: 11pt; padding-top: 3px; padding-left: 2px; color: #303030; background: #efefef; background-color: #efefef; } pre, code, kbd, samp { white-space: pre-wrap; } .well code, code { font-family: monospace, monospace; font-size: 11pt !important; line-height: 170% !important; color: #353535; background: #efefef; background-color: #efefef; border-color: #efefef; } kbd { padding: 1px; font-size: 11pt; font-weight: 800; color: #303030; background-color: transparent !important; border: 0; box-shadow: none; } pre { display: block; padding: 8.5px; margin: 0 0 9px; font-size: 12.0pt; line-height: 1.42857143; color: #303030; background-color: #efefef; border: 1px solid #e7e7e7; border-radius: 2px; } div.rendered_html { color: #353535; } .rendered_html * + ul { margin-top: .4em; margin-bottom: .3em; } .rendered_html * + p { margin-top: .5em; margin-bottom: .5em; } div.rendered_html pre { font-family: monospace, monospace; font-size: 11pt !important; line-height: 170% !important; color: #353535; background: #efefef; background-color: #efefef; max-width: 80%; border-radius: 0px; border-left: 3px solid #efefef; max-width: 80%; border-radius: 0px; padding-left: 5px; margin-left: 6px; } div.text_cell_render pre, div.text_cell_render code { font-family: monospace, monospace; font-size: 11pt !important; line-height: 170% !important; color: #353535; background: #ffffff; background-color: #ffffff; max-width: 80%; border-radius: 0px; border-left: none; } div.text_cell_render pre { border-left: 3px solid rgba(240,147,43,.50) !important; max-width: 80%; border-radius: 0px; padding-left: 5px; margin-left: 6px; } div.text_cell_render h1, div.rendered_html h1, div.text_cell_render h2, div.rendered_html h2, div.text_cell_render h3, div.rendered_html h3, div.text_cell_render h4, div.rendered_html h4, div.text_cell_render h5, div.rendered_html h5 { font-family: sans-serif; margin: 0.4em .2em .3em .2em !important; } .rendered_html h1:first-child, .rendered_html h2:first-child, .rendered_html h3:first-child, .rendered_html h4:first-child, .rendered_html h5:first-child, .rendered_html h6:first-child { margin-top: 0.2em !important; margin-bottom: 0.2em !important; } .rendered_html h1, .text_cell_render h1 { color: #126dce; font-size: 200%; text-align: center; font-style: normal; font-weight: lighter; } .rendered_html h2, .text_cell_render h2 { text-align: left; font-size: 170%; color: #3f3d46; font-style: normal; font-weight: lighter; } .rendered_html h3, .text_cell_render h3 { font-size: 140%; color: #3f3d46; font-style: normal; font-weight: lighter; } .rendered_html h4, .text_cell_render h4 { font-size: 110%; color: #3f3d46; font-style: normal; font-weight: lighter; } .rendered_html h5, .text_cell_render h5 { font-size: 100%; color: #2f2f2f; font-style: normal; font-weight: lighter; } hr { margin-top: 8px; margin-bottom: 10px; border: 0; border-top: 1px solid #126dce; } .rendered_html hr { color: #126dce; background-color: #126dce; margin-right: 2em; } #complete > select > option:hover { background: #d4d4d4; background-color: #d4d4d4; } div#_vivaldi-spatnav-focus-indicator._vivaldi-spatnav-focus-indicator { position: absolute; z-index: 9999999999; top: 0px; left: 0px; box-shadow: none; pointer-events: none; border-radius: 2px; } .rendered_html tr, .rendered_html th, .rendered_html td { text-align: left; vertical-align: middle; padding: 0.42em 0.47em; line-height: normal; white-space: normal; max-width: none; border: none; } .rendered_html td { font-family: sans-serif !important; font-size: 9.3pt; } .rendered_html table { font-family: sans-serif !important; margin-left: 8px; margin-right: auto; border: none; border-collapse: collapse; border-spacing: 0; color: #353535; table-layout: fixed; } .rendered_html thead { font-family: sans-serif !important; font-size: 10.3pt !important; background: #ebebeb; color: #353535; border-bottom: 1px solid #ebebeb; vertical-align: bottom; } .rendered_html tbody tr:nth-child(odd) { background: #fafafa; } .rendered_html tbody tr { background: #f2f2f2; } .rendered_html tbody tr:hover:nth-child(odd) { background: #f7f7f7; } .rendered_html tbody tr:hover { background: #f0f0f0; } .rendered_html * + table { margin-top: .05em; } div.widget-area { background-color: #ffffff; background: #ffffff; color: #303030; } div.widget-area a { font-family: sans-serif; font-size: 12.0pt; font-weight: normal; font-style: normal; color: #303030; text-shadow: none !important; } div.widget-area a:hover, div.widget-area a:focus { font-family: sans-serif; font-size: 12.0pt; font-weight: normal; font-style: normal; color: #2f2f2f; background: rgba(180,180,180,.14); background-color: rgba(180,180,180,.14); border-color: transparent; background-image: none; text-shadow: none !important; } div.widget_item.btn-group > button.btn.btn-default.widget-combo-btn, div.widget_item.btn-group > button.btn.btn-default.widget-combo-btn:hover { background: #e1e1e1; background-color: #e1e1e1; border: 2px solid #e1e1e1 !important; font-size: inherit; z-index: 0; } div.jupyter-widgets.widget-hprogress.widget-hbox { display: inline-table !important; width: 38% !important; margin-left: 10px; } div.jupyter-widgets.widget-hprogress.widget-hbox .widget-label, div.widget-hbox .widget-label, .widget-hbox .widget-label, .widget-inline-hbox .widget-label, div.widget-label { text-align: -webkit-auto !important; margin-left: 15px !important; max-width: 240px !important; min-width: 100px !important; vertical-align: text-top !important; color: #303030 !important; font-size: 14px !important; } .widget-hprogress .progress { flex-grow: 1; height: 20px; margin-top: auto; margin-left: 12px; margin-bottom: auto; width: 300px; } .progress { overflow: hidden; height: 22px; margin-bottom: 10px; padding-left: 10px; background-color: #d6d6d6 !important; border-radius: 2px; -webkit-box-shadow: none; box-shadow: none; z-index: 10; } .progress-bar-danger { background-color: #e5344a !important; } .progress-bar-info { background-color: #2980b9 !important; } .progress-bar-warning { background-color: #f39c12 !important; } .progress-bar-success { background-color: #5cb85c !important; } .widget-select select { margin-left: 12px; } .rendered_html :link { font-family: sans-serif; font-size: 100%; color: #ff7823; text-decoration: underline; } .rendered_html :visited, .rendered_html :visited:active, .rendered_html :visited:focus { color: #fa853d; } .rendered_html :visited:hover, .rendered_html :link:hover { font-family: sans-serif; font-size: 100%; color: #f96000; } div.cell.text_cell a.anchor-link:link { font-size: inherit; text-decoration: none; padding: 0px 20px; visibility: none; color: rgba(0,0,0,.32); } div.cell.text_cell a.anchor-link:link:hover { font-size: inherit; color: #828892; } .navbar-text { margin-top: 4px; margin-bottom: 0px; } #clusters > a { color: #ef5c00; text-decoration: underline; cursor: auto; } #clusters > a:hover { color: #126dce; text-decoration: underline; cursor: auto; } #nbextensions-configurator-container > div.row.container-fluid.nbext-selector > h3 { font-size: 17px; margin-top: 5px; margin-bottom: 8px; height: 24px; padding: 4px 0 4px 0; } div#nbextensions-configurator-container.container, #nbextensions-configurator-container.container { width: 100%; margin-right: auto; margin-left: auto; } div.nbext-selector > nav > .nav > li > a { font-family: sans-serif; font-size: 10.5pt; padding: 2px 5px; } div.nbext-selector > nav > .nav > li > a:hover { background: transparent; } div.nbext-selector > nav > .nav > li:hover { background-color: rgba(180,180,180,.14) !important; background: rgba(180,180,180,.14) !important; } div.nbext-selector > nav > .nav > li.active:hover { background: transparent !important; background-color: transparent !important; } .nav-pills > li.active > a, .nav-pills > li.active > a:active, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus { color: #1c1c1c; background-color: rgba(180,180,180,.14) !important; background: rgba(180,180,180,.14) !important; -webkit-backface-visibility: hidden; -webkit-font-smoothing: subpixel-antialiased !important; } div.nbext-readme > .nbext-readme-contents > .rendered_html { font-family: sans-serif; font-size: 11.5pt; line-height: 145%; padding: 1em 1em; color: #353535; background-color: #ffffff; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .nbext-icon, .nbext-desc, .nbext-compat-div, .nbext-enable-btns, .nbext-params { margin-bottom: 8px; font-size: 11.5pt; } div.nbext-readme > .nbext-readme-contents { padding: 0; overflow-y: hidden; } div.nbext-readme > .nbext-readme-contents:not(:empty) { margin-top: 0.5em; margin-bottom: 2em; border: none; border-top-color: #828892; } .nbext-showhide-incompat { padding-bottom: 0.5em; color: #4a4a4a; font-size: 10.5pt; } .nbext-filter-menu.dropdown-menu > li > a:hover, .nbext-filter-menu.dropdown-menu > li > a:focus, .nbext-filter-menu.dropdown-menu > li > a.ui-state-focus { color: #2f2f2f !important; background-color: #d4d4d4 !important; background: #d4d4d4 !important; border-color: #d4d4d4 !important; } .nbext-filter-input-wrap > .nbext-filter-input-subwrap, .nbext-filter-input-wrap > .nbext-filter-input-subwrap > input { border: none; outline: none; background-color: transparent; padding: 0; vertical-align: middle; margin-top: -2px; } span.rendered_html code { background-color: transparent; color: #303030; } #nbextensions-configurator-container > div.row.container-fluid.nbext-selector { padding-left: 0px; padding-right: 0px; } .nbext-filter-menu { max-height: 50vh; overflow-y: auto; outline: none; border: 2px solid #dedede; } .nbext-filter-menu:hover { border: 2px solid #dedede; } .alert-warning { background-color: #f4f4f4; border-color: #f4f4f4; color: #303030; } .notification_widget.danger { color: #ffffff; background-color: #e5344a; border-color: #e5344a; padding-right: 5px; } #nbextensions-configurator-container > div.nbext-buttons.tree-buttons.no-padding.pull-right > span > button { border: none !important; } button#refresh_running_list { border: none !important; } mark, .mark { background-color: #ffffff; color: #353535; padding: .15em; } a.text-warning, a.text-warning:hover { color: #828892; } a.text-warning.bg-warning { background-color: #ffffff; } span.bg-success.text-success { background-color: transparent; color: #009e07; } span.bg-danger.text-danger { background-color: #ffffff; color: #de143d; } .has-success .input-group-addon { color: #009e07; border-color: transparent; background: inherit; background-color: rgba(83,180,115,.10); } .has-success .form-control { border-color: #009e07; -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.025); box-shadow: inset 0 1px 1px rgba(0,0,0,0.025); } .has-error .input-group-addon { color: #de143d; border-color: transparent; background: inherit; background-color: rgba(192,57,67,.10); } .has-error .form-control { border-color: #de143d; -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.025); box-shadow: inset 0 1px 1px rgba(0,0,0,0.025); } .kse-input-group-pretty > kbd { font-family: monospace, monospace; color: #303030; font-weight: normal; background: transparent; } .kse-input-group-pretty > kbd { font-family: monospace, monospace; color: #303030; font-weight: normal; background: transparent; } div.nbext-enable-btns .btn[disabled], div.nbext-enable-btns .btn[disabled]:hover, .btn-default.disabled, .btn-default[disabled] { background: #e2e2e2; background-color: #e2e2e2; color: #282828; } label#Keyword-Filter { display: none; } .input-group .nbext-list-btn-add, .input-group-btn:last-child > .btn-group > .btn { background: #e4e4e4; background-color: #e4e4e4; border-color: #e4e4e4; border: 2px solid #e4e4e4; } .input-group .nbext-list-btn-add:hover, .input-group-btn:last-child > .btn-group > .btn:hover { background: #dfdfdf; background-color: #dfdfdf; border-color: #dfdfdf; border: 2px solid #dfdfdf; } #notebook-container > div.cell.code_cell.rendered.selected > div.widget-area > div.widget-subarea > div > div.widget_item.btn-group > button.btn.btn-default.dropdown-toggle.widget-combo-carrot-btn { background: #e4e4e4; background-color: #e4e4e4; border-color: #e4e4e4; } #notebook-container > div.cell.code_cell.rendered.selected > div.widget-area > div.widget-subarea > div > div.widget_item.btn-group > button.btn.btn-default.dropdown-toggle.widget-combo-carrot-btn:hover { background: #dfdfdf; background-color: #dfdfdf; border-color: #dfdfdf; } .ui-widget-content { background: #e5e5e5; background-color: #e5e5e5; border: 2px solid #e5e5e5; color: #303030; } div.collapsible_headings_toggle { color: rgba(180,180,180,.30) !important; } div.collapsible_headings_toggle:hover { color: #ff7823 !important; } .collapsible_headings_toggle .h1, .collapsible_headings_toggle .h2, .collapsible_headings_toggle .h3, .collapsible_headings_toggle .h4, .collapsible_headings_toggle .h5, .collapsible_headings_toggle .h6 { margin: 0.3em .4em 0em 0em !important; line-height: 1.2 !important; } div.collapsible_headings_toggle .fa-caret-down:before, div.collapsible_headings_toggle .fa-caret-right:before { font-size: xx-large; transition: transform 1000ms; transform: none !important; } .collapsible_headings_collapsed.collapsible_headings_ellipsis .rendered_html h1:after, .collapsible_headings_collapsed.collapsible_headings_ellipsis .rendered_html h2:after, .collapsible_headings_collapsed.collapsible_headings_ellipsis .rendered_html h3:after, .collapsible_headings_collapsed.collapsible_headings_ellipsis .rendered_html h4:after, .collapsible_headings_collapsed.collapsible_headings_ellipsis .rendered_html h5:after, .collapsible_headings_collapsed.collapsible_headings_ellipsis .rendered_html h6:after { position: absolute; right: 0; bottom: 20% !important; content: "[\002026]"; color: rgba(180,180,180,.30) !important; padding: 0.5em 0em 0em 0em !important; } .collapsible_headings_ellipsis .rendered_html h1, .collapsible_headings_ellipsis .rendered_html h2, .collapsible_headings_ellipsis .rendered_html h3, .collapsible_headings_ellipsis .rendered_html h4, .collapsible_headings_ellipsis .rendered_html h5, .collapsible_headings_ellipsis .rendered_html h6, .collapsible_headings_toggle .fa { transition: transform 1000ms !important; -webkit-transform: inherit !important; -moz-transform: inherit !important; -ms-transform: inherit !important; -o-transform: inherit !important; transform: inherit !important; padding-right: 0px !important; } input.raw_input { font-family: monospace, monospace; font-size: 11pt !important; color: #303030; background-color: #efefef; border-color: #ececec; background: #ececec; width: auto; vertical-align: baseline; padding: 0em 0.25em; margin: 0em 0.25em; -webkit-box-shadow: none; box-shadow: none; } audio, video { display: inline; vertical-align: middle; align-content: center; margin-left: 20%; } .cmd-palette .modal-body { padding: 0px; margin: 0px; } .cmd-palette form { background: #e5e5e5; background-color: #e5e5e5; } .typeahead-field input:last-child, .typeahead-hint { background: #e5e5e5; background-color: #e5e5e5; z-index: 1; } .typeahead-field input { font-family: sans-serif; color: #303030; border: none; font-size: 28pt; display: inline-block; line-height: inherit; padding: 3px 10px; height: 70px; } .typeahead-select { background-color: #e5e5e5; } body > div.modal.cmd-palette.typeahead-field { display: table; border-collapse: separate; background-color: #f4f4f4; } .typeahead-container button { font-family: sans-serif; font-size: 28pt; background-color: #e4e4e4; border: none; display: inline-block; line-height: inherit; padding: 3px 10px; height: 70px; } .typeahead-search-icon { min-width: 40px; min-height: 55px; display: block; vertical-align: middle; text-align: center; } .typeahead-container button:focus, .typeahead-container button:hover { color: #2f2f2f; background-color: #dfdfdf; border-color: #e0e0e0; } .typeahead-list > li.typeahead-group.active > a, .typeahead-list > li.typeahead-group > a, .typeahead-list > li.typeahead-group > a:focus, .typeahead-list > li.typeahead-group > a:hover { display: none; } .typeahead-dropdown > li > a, .typeahead-list > li > a { color: #303030; text-decoration: none; } .typeahead-dropdown, .typeahead-list { font-family: sans-serif; font-size: 13pt; color: #303030; background-color: #ffffff; border: none; background-clip: padding-box; margin-top: 0px; padding: 3px 2px 3px 0px; line-height: 1.7; } .typeahead-dropdown > li.active > a, .typeahead-dropdown > li > a:focus, .typeahead-dropdown > li > a:hover, .typeahead-list > li.active > a, .typeahead-list > li > a:focus, .typeahead-list > li > a:hover { color: #2f2f2f; background-color: #f4f4f4; border-color: #f4f4f4; } .command-shortcut:before { content: "(command)"; padding-right: 3px; color: #828892; } .edit-shortcut:before { content: "(edit)"; padding-right: 3px; color: #828892; } ul.typeahead-list i { margin-left: 1px; width: 18px; margin-right: 10px; } ul.typeahead-list { max-height: 50vh; overflow: auto; } .typeahead-list > li { position: relative; border: none; } div.input.typeahead-hint, input.typeahead-hint, body > div.modal.cmd-palette.in > div > div > div > form > div > div.typeahead-field > span.typeahead-query > input.typeahead-hint { color: #828892 !important; background-color: transparent; padding: 3px 10px; } .typeahead-dropdown > li > a, .typeahead-list > li > a { display: block; padding: 5px; clear: both; font-weight: 400; line-height: 1.7; border: 1px solid #ffffff; border-bottom-color: rgba(180,180,180,.30); } body > div.modal.cmd-palette.in > div { min-width: 750px; margin: 150px auto; } .typeahead-container strong { font-weight: bolder; color: #ff7823; } #find-and-replace #replace-preview .match, #find-and-replace #replace-preview .insert { color: #ffffff; background-color: #ff7823; border-color: #ff7823; border-style: solid; border-width: 1px; border-radius: 0px; } #find-and-replace #replace-preview .replace .match { background-color: #de143d; border-color: #de143d; border-radius: 0px; } #find-and-replace #replace-preview .replace .insert { background-color: #009e07; border-color: #009e07; border-radius: 0px; } .shortcut_key, span.shortcut_key { display: inline-block; width: 16ex; text-align: right; font-family: monospace; } .jupyter-keybindings { padding: 1px; line-height: 24px; border-bottom: 1px solid rgba(180,180,180,.14); } .jupyter-keybindings i { background: #efefef; font-size: small; padding: 5px; margin-left: 7px; } div#short-key-bindings-intro.well, .well { background-color: #e4e4e4; border: 1px solid #e4e4e4; color: #303030; border-radius: 2px; -webkit-box-shadow: none; box-shadow: none; } #texteditor-backdrop { background: #ffffff; background-color: #ffffff; } #texteditor-backdrop #texteditor-container .CodeMirror-gutter, #texteditor-backdrop #texteditor-container .CodeMirror-gutters { background: #e0e1e3; background-color: #e0e1e3; color: #828892; } .edit_app #menubar .navbar { margin-bottom: 0px; } #texteditor-backdrop #texteditor-container { padding: 0px; background-color: #ededed; box-shadow: none; } .terminal-app { background: #ffffff; } .terminal-app .terminal { font-family: monospace, monospace; font-size: 11pt; line-height: 170%; color: #303030; background: #ededed; padding: 0.4em; border-radius: 2px; -webkit-box-shadow: none; box-shadow: none; } .terminal .xterm-viewport { background-color: #ededed; color: #303030; overflow-y: auto; } .terminal .xterm-color-0 { color: #ff7823; } .terminal .xterm-color-1 { color: #de143d; } .terminal .xterm-color-2 { color: #713bc5; } .terminal .xterm-color-3 { color: #e22978; } .terminal .xterm-color-4 { color: #ff8132; } .terminal .xterm-color-5 { color: #009e07; } .terminal .xterm-color-6 { color: #e22978; } .terminal .xterm-color-7 { color: #e22978; } .terminal .xterm-color-8 { color: #ef5c00; } .terminal .xterm-color-9 { color: #009e07; } .terminal .xterm-color-10 { color: #e22978; } .terminal .xterm-color-14 { color: #e22978; } .terminal .xterm-bg-color-15 { background-color: #ededed; } .terminal:not(.xterm-cursor-style-underline):not(.xterm-cursor-style-bar) .terminal-cursor { background-color: #ff7823; color: #ededed; } .terminal:not(.focus) .terminal-cursor { outline: 1px solid #ff7823; outline-offset: -1px; } .celltoolbar { font-size: 100%; padding-top: 3px; border-color: transparent; border-bottom: thin solid #828892; background: transparent; } .cell-tag, .tags-input input, .tags-input button { color: #303030; background-color: #ffffff; background-image: none; border: 1px solid #303030; border-radius: 1px; box-shadow: none; width: inherit; font-size: inherit; height: 22px; line-height: 22px; } #notebook-container > div.cell.code_cell.rendered.selected > div.input > div.inner_cell > div.ctb_hideshow.ctb_show > div > div > button, #notebook-container > div.input > div.inner_cell > div.ctb_hideshow.ctb_show > div > div > button { font-size: 10pt; color: #303030; background-color: #ffffff; background-image: none; border: 1px solid #303030; border-radius: 1px; box-shadow: none; width: inherit; font-size: inherit; height: 22px; line-height: 22px; } div#pager #pager-contents { background: #ffffff !important; background-color: #ffffff !important; } div#pager pre { color: #303030 !important; background: #ededed !important; background-color: #ededed !important; padding: 0.4em; } div#pager .ui-resizable-handle { top: 0px; height: 8px; background: #ff7823 !important; border-top: 1px solid #ff7823; border-bottom: 1px solid #ff7823; } div.CodeMirror, div.CodeMirror pre { font-family: monospace, monospace; font-size: 11pt; line-height: 170%; color: #303030; } div.CodeMirror-lines { padding-bottom: .9em; padding-left: .5em; padding-right: 1.5em; padding-top: .7em; } span.ansiblack, .ansi-black-fg { color: #e22978; } span.ansiblue, .ansi-blue-fg, .ansi-blue-intense-fg { color: #009e07; } span.ansigray, .ansi-gray-fg, .ansi-gray-intense-fg { color: #ff8132; } span.ansigreen, .ansi-green-fg { color: #333333; } .ansi-green-intense-fg { color: #ff8132; } span.ansipurple, .ansi-purple-fg, .ansi-purple-intense-fg { color: #653bc5; } span.ansicyan, .ansi-cyan-fg, .ansi-cyan-intense-fg { color: #653bc5; } span.ansiyellow, .ansi-yellow-fg, .ansi-yellow-intense-fg { color: #ff8132; } span.ansired, .ansi-red-fg, .ansi-red-intense-fg { color: #de143d; } div.output-stderr { background-color: #ebb5b7; } div.output-stderr pre { color: #000000; } div.js-error { color: #de143d; } .ipython_tooltip { font-family: monospace, monospace; font-size: 11pt; line-height: 170%; border: 2px solid #dadada; background: #eeeeee; background-color: #eeeeee; border-radius: 2px; overflow-x: visible; overflow-y: visible; box-shadow: none; position: absolute; z-index: 1000; } .ipython_tooltip .tooltiptext pre { font-family: monospace, monospace; font-size: 11pt; line-height: 170%; background: #eeeeee; background-color: #eeeeee; color: #303030; overflow-x: visible; overflow-y: visible; max-width: 900px; } div#tooltip.ipython_tooltip { overflow-x: wrap; overflow-y: visible; max-width: 800px; } div.tooltiptext.bigtooltip { overflow-x: visible; overflow-y: scroll; height: 400px; max-width: 800px; } .cm-s-ipython.CodeMirror { font-family: monospace, monospace; font-size: 11pt; background: #ededed; color: #303030; border-radius: 2px; font-style: normal; font-weight: normal; } .cm-s-ipython div.CodeMirror-selected { background: #e0e1e3; } .CodeMirror-gutters { border: none; border-right: 1px solid #e0e1e3 !important; background-color: #e0e1e3 !important; background: #e0e1e3 !important; border-radius: 0px; white-space: nowrap; } .cm-s-ipython .CodeMirror-gutters { background: #e0e1e3; border: none; border-radius: 0px; width: 36px; } .cm-s-ipython .CodeMirror-linenumber { color: #828892; } .CodeMirror-sizer { margin-left: 40px; } .CodeMirror-linenumber, div.CodeMirror-linenumber, .CodeMirror-gutter.CodeMirror-linenumberdiv.CodeMirror-gutter.CodeMirror-linenumber { padding-right: 1px; margin-left: 0px; margin: 0px; width: 26px !important; padding: 0px; text-align: right; } .CodeMirror-linenumber { color: #828892; } .cm-s-ipython .CodeMirror-cursor { border-left: 2px solid #ff711a !important; } .cm-s-ipython span.cm-comment { color: #8d8d8d; font-style: italic; } .cm-s-ipython span.cm-atom { color: #055be0; } .cm-s-ipython span.cm-number { color: #ff8132; } .cm-s-ipython span.cm-property { color: #303030; } .cm-s-ipython span.cm-attribute { color: #303030; } .cm-s-ipython span.cm-keyword { color: #713bc5; font-weight: normal; } .cm-s-ipython span.cm-string { color: #009e07; } .cm-s-ipython span.cm-meta { color: #aa22ff; } .cm-s-ipython span.cm-operator { color: #055be0; } .cm-s-ipython span.cm-builtin { color: #e22978; } .cm-s-ipython span.cm-variable { color: #303030; } .cm-s-ipython span.cm-variable-2 { color: #de143d; } .cm-s-ipython span.cm-variable-3 { color: #aa22ff; } .cm-s-ipython span.cm-def { color: #e22978; font-weight: normal; } .cm-s-ipython span.cm-error { background: rgba(191,97,106,.40); } .cm-s-ipython span.cm-tag { color: #e22978; } .cm-s-ipython span.cm-link { color: #ef5c00; } .cm-s-ipython span.cm-storage { color: #055be0; } .cm-s-ipython span.cm-entity { color: #e22978; } .cm-s-ipython span.cm-quote { color: #009e07; } div.CodeMirror span.CodeMirror-matchingbracket { color: #1c1c1c; background-color: rgba(30,112,199,.30); } div.CodeMirror span.CodeMirror-nonmatchingbracket { color: #1c1c1c; background: rgba(191,97,106,.40) !important; } .cm-header-1 { font-size: 215%; } .cm-header-2 { font-size: 180%; } .cm-header-3 { font-size: 150%; } .cm-header-4 { font-size: 120%; } .cm-header-5 { font-size: 100%; } .cm-s-default .cm-hr { color: #055be0; } div.cell.text_cell .cm-s-default .cm-header { font-family: sans-serif; font-weight: normal; color: #126dce; margin-top: 0.3em !important; margin-bottom: 0.3em !important; } div.cell.text_cell .cm-s-default span.cm-variable-2 { color: #353535; } div.cell.text_cell .cm-s-default span.cm-variable-3 { color: #aa22ff; } .cm-s-default span.cm-comment { color: #8d8d8d; } .cm-s-default .cm-tag { color: #009fb7; } .cm-s-default .cm-builtin { color: #e22978; } .cm-s-default .cm-string { color: #009e07; } .cm-s-default .cm-keyword { color: #713bc5; } .cm-s-default .cm-number { color: #ff8132; } .cm-s-default .cm-error { color: #055be0; } .cm-s-default .cm-link { color: #ef5c00; } .cm-s-default .cm-atom { color: #ff8132; } .cm-s-default .cm-def { color: #e22978; } .CodeMirror-cursor { border-left: 2px solid #ff711a !important; border-right: none; width: 0; } .cm-s-default div.CodeMirror-selected { background: #e0e1e3; } .cm-s-default .cm-selected { background: #e0e1e3; } .MathJax_Display, .MathJax { border: 0 !important; font-size: 100% !important; text-align: center !important; margin: 0em !important; line-height: 2.25 !important; } .MathJax:focus, body :focus .MathJax { display: inline-block !important; } .MathJax:focus, body :focus .MathJax { display: inline-block !important; } .completions { position: absolute; z-index: 110; overflow: hidden; border: medium solid rgba(240,147,43,.50); box-shadow: none; line-height: 1; } .completions select { background: #ededed; background-color: #ededed; outline: none; border: none; padding: 0px; margin: 0px; margin-left: 2px; overflow: auto; font-family: monospace, monospace; font-size: 11pt; color: #303030; width: auto; } div#maintoolbar { display: none !important; } #header-container { display: none !important; } <script> MathJax.Hub.Config({ "HTML-CSS": { /*preferredFont: "TeX",*/ /*availableFonts: ["TeX", "STIX"],*/ styles: { scale: 100, ".MathJax_Display": { "font-size": "100%", } } } }); </script> </style> <style type="text/css"> /* Overrides of notebook CSS for static HTML export */ body { overflow: visible; padding: 8px; } div#notebook { overflow: visible; border-top: none; }@media print { div.cell { display: block; page-break-inside: avoid; } div.output_wrapper { display: block; page-break-inside: avoid; } div.output { display: block; page-break-inside: avoid; } } </style> <!-- Custom stylesheet, it must be in the same directory as the html file --> <link rel="stylesheet" href="custom.css"> <!-- Loading mathjax macro --> <!-- Load mathjax --> <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS_HTML"></script> <!-- MathJax configuration --> <script type="text/x-mathjax-config"> MathJax.Hub.Config({ tex2jax: { inlineMath: [ ['$','$'], ["\\(","\\)"] ], displayMath: [ ['$$','$$'], ["\\[","\\]"] ], processEscapes: true, processEnvironments: true }, // Center justify equations in code and markdown cells. Elsewhere // we use CSS to left justify single line equations in code cells. displayAlign: 'center', "HTML-CSS": { styles: {'.MathJax_Display': {"margin": 0}}, linebreaks: { automatic: true } } }); </script> <!-- End of mathjax configuration --></head> <body> <div tabindex="-1" id="notebook" class="border-box-sizing"> <div class="container" id="notebook-container"> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <h1 id="Setup">Setup<a class="anchor-link" href="#Setup">&#182;</a></h1> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[1]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="kn">import</span> <span class="nn">sys</span> <span class="kn">import</span> <span class="nn">os</span> <span class="kn">import</span> <span class="nn">re</span> <span class="kn">import</span> <span class="nn">collections</span> <span class="kn">import</span> <span class="nn">itertools</span> <span class="kn">import</span> <span class="nn">bcolz</span> <span class="kn">import</span> <span class="nn">pickle</span> <span class="n">sys</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="s1">&#39;../../lib&#39;</span><span class="p">)</span> <span class="n">sys</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="s1">&#39;../&#39;</span><span class="p">)</span> <span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span> <span class="kn">import</span> <span class="nn">pandas</span> <span class="k">as</span> <span class="nn">pd</span> <span class="kn">import</span> <span class="nn">gc</span> <span class="kn">import</span> <span class="nn">random</span> <span class="kn">import</span> <span class="nn">smart_open</span> <span class="kn">import</span> <span class="nn">h5py</span> <span class="kn">import</span> <span class="nn">csv</span> <span class="kn">import</span> <span class="nn">json</span> <span class="kn">import</span> <span class="nn">functools</span> <span class="kn">import</span> <span class="nn">time</span> <span class="kn">import</span> <span class="nn">string</span> <span class="kn">import</span> <span class="nn">datetime</span> <span class="k">as</span> <span class="nn">dt</span> <span class="kn">from</span> <span class="nn">tqdm</span> <span class="k">import</span> <span class="n">tqdm_notebook</span> <span class="k">as</span> <span class="n">tqdm</span> <span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span> <span class="kn">import</span> <span class="nn">pandas</span> <span class="k">as</span> <span class="nn">pd</span> <span class="kn">import</span> <span class="nn">matplotlib.pyplot</span> <span class="k">as</span> <span class="nn">plt</span> <span class="kn">import</span> <span class="nn">seaborn</span> <span class="k">as</span> <span class="nn">sns</span> <span class="kn">import</span> <span class="nn">global_utils</span> <span class="n">random_state_number</span> <span class="o">=</span> <span class="mi">967898</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[2]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="kn">import</span> <span class="nn">tensorflow</span> <span class="k">as</span> <span class="nn">tf</span> <span class="kn">from</span> <span class="nn">tensorflow.python.client</span> <span class="k">import</span> <span class="n">device_lib</span> <span class="k">def</span> <span class="nf">get_available_gpus</span><span class="p">():</span> <span class="n">local_device_protos</span> <span class="o">=</span> <span class="n">device_lib</span><span class="o">.</span><span class="n">list_local_devices</span><span class="p">()</span> <span class="k">return</span> <span class="p">[</span><span class="n">x</span><span class="o">.</span><span class="n">name</span> <span class="k">for</span> <span class="n">x</span> <span class="ow">in</span> <span class="n">local_device_protos</span> <span class="k">if</span> <span class="n">x</span><span class="o">.</span><span class="n">device_type</span> <span class="o">==</span> <span class="s1">&#39;GPU&#39;</span><span class="p">]</span> <span class="n">config</span> <span class="o">=</span> <span class="n">tf</span><span class="o">.</span><span class="n">ConfigProto</span><span class="p">()</span> <span class="n">config</span><span class="o">.</span><span class="n">gpu_options</span><span class="o">.</span><span class="n">allow_growth</span><span class="o">=</span><span class="kc">True</span> <span class="n">sess</span> <span class="o">=</span> <span class="n">tf</span><span class="o">.</span><span class="n">Session</span><span class="p">(</span><span class="n">config</span><span class="o">=</span><span class="n">config</span><span class="p">)</span> <span class="n">get_available_gpus</span><span class="p">()</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt output_prompt">Out[2]:</div> <div class="output_text output_subarea output_execute_result"> <pre>[&#39;/gpu:0&#39;, &#39;/gpu:1&#39;]</pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[3]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="o">%</span><span class="k">pylab</span> <span class="o">%</span><span class="k">matplotlib</span> inline <span class="o">%</span><span class="k">load_ext</span> line_profiler <span class="o">%</span><span class="k">load_ext</span> memory_profiler <span class="o">%</span><span class="k">load_ext</span> autoreload </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>Using matplotlib backend: TkAgg Populating the interactive namespace from numpy and matplotlib </pre> </div> </div> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stderr output_text"> <pre>/home/bicepjai/Programs/anaconda3/envs/dsotc-c3/lib/python3.6/site-packages/IPython/core/magics/pylab.py:160: UserWarning: pylab import has clobbered these variables: [&#39;random&#39;] `%matplotlib` prevents importing * from pylab and numpy &#34;\n`%matplotlib` prevents importing * from pylab and numpy&#34; </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[4]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">pd</span><span class="o">.</span><span class="n">options</span><span class="o">.</span><span class="n">mode</span><span class="o">.</span><span class="n">chained_assignment</span> <span class="o">=</span> <span class="kc">None</span> <span class="n">pd</span><span class="o">.</span><span class="n">options</span><span class="o">.</span><span class="n">display</span><span class="o">.</span><span class="n">max_columns</span> <span class="o">=</span> <span class="mi">999</span> <span class="n">color</span> <span class="o">=</span> <span class="n">sns</span><span class="o">.</span><span class="n">color_palette</span><span class="p">()</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <h1 id="Data">Data<a class="anchor-link" href="#Data">&#182;</a></h1> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[5]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">store</span> <span class="o">=</span> <span class="n">pd</span><span class="o">.</span><span class="n">HDFStore</span><span class="p">(</span><span class="s1">&#39;../../data_prep/processed/stage1/data_frames.h5&#39;</span><span class="p">)</span> <span class="n">train_df</span> <span class="o">=</span> <span class="n">store</span><span class="p">[</span><span class="s1">&#39;train_df&#39;</span><span class="p">]</span> <span class="n">test_df</span> <span class="o">=</span> <span class="n">store</span><span class="p">[</span><span class="s1">&#39;test_df&#39;</span><span class="p">]</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[6]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">display</span><span class="p">(</span><span class="n">train_df</span><span class="o">.</span><span class="n">head</span><span class="p">())</span> <span class="n">display</span><span class="p">(</span><span class="n">test_df</span><span class="o">.</span><span class="n">head</span><span class="p">())</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_html rendered_html output_subarea "> <div> <style> .dataframe thead tr:only-child th { text-align: right; } .dataframe thead th { text-align: left; } .dataframe tbody tr th { vertical-align: top; } </style> <table border="1" class="dataframe"> <thead> <tr style="text-align: right;"> <th></th> <th>ID</th> <th>Gene</th> <th>Variation</th> <th>Class</th> <th>Sentences</th> </tr> </thead> <tbody> <tr> <th>0</th> <td>0</td> <td>[fam58a]</td> <td>[truncating, mutations]</td> <td>1</td> <td>[[cyclin-dependent, kinases, , cdks, , regulat...</td> </tr> <tr> <th>1</th> <td>1</td> <td>[cbl]</td> <td>[w802*]</td> <td>2</td> <td>[[abstract, background, non-small, cell, lung,...</td> </tr> <tr> <th>2</th> <td>2</td> <td>[cbl]</td> <td>[q249e]</td> <td>2</td> <td>[[abstract, background, non-small, cell, lung,...</td> </tr> <tr> <th>3</th> <td>3</td> <td>[cbl]</td> <td>[n454d]</td> <td>3</td> <td>[[recent, evidence, has, demonstrated, that, a...</td> </tr> <tr> <th>4</th> <td>4</td> <td>[cbl]</td> <td>[l399v]</td> <td>4</td> <td>[[oncogenic, mutations, in, the, monomeric, ca...</td> </tr> </tbody> </table> </div> </div> </div> <div class="output_area"> <div class="prompt"></div> <div class="output_html rendered_html output_subarea "> <div> <style> .dataframe thead tr:only-child th { text-align: right; } .dataframe thead th { text-align: left; } .dataframe tbody tr th { vertical-align: top; } </style> <table border="1" class="dataframe"> <thead> <tr style="text-align: right;"> <th></th> <th>ID</th> <th>Gene</th> <th>Variation</th> <th>Sentences</th> </tr> </thead> <tbody> <tr> <th>0</th> <td>0</td> <td>[acsl4]</td> <td>[r570s]</td> <td>[[2, this, mutation, resulted, in, a, myelopro...</td> </tr> <tr> <th>1</th> <td>1</td> <td>[naglu]</td> <td>[p521l]</td> <td>[[abstract, the, large, tumor, suppressor, 1, ...</td> </tr> <tr> <th>2</th> <td>2</td> <td>[pah]</td> <td>[l333f]</td> <td>[[vascular, endothelial, growth, factor, recep...</td> </tr> <tr> <th>3</th> <td>3</td> <td>[ing1]</td> <td>[a148d]</td> <td>[[inflammatory, myofibroblastic, tumor, , imt,...</td> </tr> <tr> <th>4</th> <td>4</td> <td>[tmem216]</td> <td>[g77a]</td> <td>[[abstract, retinoblastoma, is, a, pediatric, ...</td> </tr> </tbody> </table> </div> </div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[7]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">corpus_vocab_list</span><span class="p">,</span> <span class="n">corpus_vocab_wordidx</span> <span class="o">=</span> <span class="kc">None</span><span class="p">,</span> <span class="kc">None</span> <span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="s1">&#39;../../data_prep/processed/stage1/vocab_words_wordidx.pkl&#39;</span><span class="p">,</span> <span class="s1">&#39;rb&#39;</span><span class="p">)</span> <span class="k">as</span> <span class="n">f</span><span class="p">:</span> <span class="p">(</span><span class="n">corpus_vocab_list</span><span class="p">,</span> <span class="n">corpus_wordidx</span><span class="p">)</span> <span class="o">=</span> <span class="n">pickle</span><span class="o">.</span><span class="n">load</span><span class="p">(</span><span class="n">f</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="nb">len</span><span class="p">(</span><span class="n">corpus_vocab_list</span><span class="p">),</span> <span class="nb">len</span><span class="p">(</span><span class="n">corpus_wordidx</span><span class="p">))</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>352220 352220 </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <h1 id="Data-Prep">Data Prep<a class="anchor-link" href="#Data-Prep">&#182;</a></h1> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <p>To control the vocabulary pass in updated corpus_wordidx</p> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[8]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="kn">from</span> <span class="nn">sklearn.model_selection</span> <span class="k">import</span> <span class="n">train_test_split</span> <span class="n">x_train_df</span><span class="p">,</span> <span class="n">x_val_df</span> <span class="o">=</span> <span class="n">train_test_split</span><span class="p">(</span><span class="n">train_df</span><span class="p">,</span> <span class="n">test_size</span><span class="o">=</span><span class="mf">0.10</span><span class="p">,</span> <span class="n">random_state</span><span class="o">=</span><span class="n">random_state_number</span><span class="p">,</span> <span class="n">stratify</span><span class="o">=</span><span class="n">train_df</span><span class="o">.</span><span class="n">Class</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="n">x_train_df</span><span class="o">.</span><span class="n">shape</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="n">x_val_df</span><span class="o">.</span><span class="n">shape</span><span class="p">)</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>(2988, 5) (333, 5) </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[9]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="kn">from</span> <span class="nn">tensorflow.contrib.keras.python.keras.utils</span> <span class="k">import</span> <span class="n">np_utils</span> <span class="kn">from</span> <span class="nn">keras.preprocessing.sequence</span> <span class="k">import</span> <span class="n">pad_sequences</span> <span class="kn">from</span> <span class="nn">keras.utils.np_utils</span> <span class="k">import</span> <span class="n">to_categorical</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stderr output_text"> <pre>Using TensorFlow backend. </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[10]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">vocab_size</span><span class="o">=</span><span class="nb">len</span><span class="p">(</span><span class="n">corpus_vocab_list</span><span class="p">)</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <h2 id="T:sent_words">T:sent_words<a class="anchor-link" href="#T:sent_words">&#182;</a></h2> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <h3 id="generate-data">generate data<a class="anchor-link" href="#generate-data">&#182;</a></h3> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[11]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">custom_unit_dict</span> <span class="o">=</span> <span class="p">{</span> <span class="s2">&quot;gene_unit&quot;</span> <span class="p">:</span> <span class="s2">&quot;words&quot;</span><span class="p">,</span> <span class="s2">&quot;variation_unit&quot;</span> <span class="p">:</span> <span class="s2">&quot;words&quot;</span><span class="p">,</span> <span class="c1"># text transformed to sentences attribute</span> <span class="s2">&quot;doc_unit&quot;</span> <span class="p">:</span> <span class="s2">&quot;words&quot;</span><span class="p">,</span> <span class="s2">&quot;doc_form&quot;</span> <span class="p">:</span> <span class="s2">&quot;sentences&quot;</span><span class="p">,</span> <span class="s2">&quot;divide_document&quot;</span><span class="p">:</span> <span class="s2">&quot;multiple_unit&quot;</span> <span class="p">}</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[12]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="o">%</span><span class="k">autoreload</span> <span class="kn">import</span> <span class="nn">global_utils</span> <span class="n">gen_data</span> <span class="o">=</span> <span class="n">global_utils</span><span class="o">.</span><span class="n">GenerateDataset</span><span class="p">(</span><span class="n">x_train_df</span><span class="p">,</span> <span class="n">corpus_wordidx</span><span class="p">)</span> <span class="n">x_train_21_T</span><span class="p">,</span> <span class="n">x_train_21_G</span><span class="p">,</span> <span class="n">x_train_21_V</span><span class="p">,</span> <span class="n">x_train_21_C</span> <span class="o">=</span> <span class="n">gen_data</span><span class="o">.</span><span class="n">generate_data</span><span class="p">(</span><span class="n">custom_unit_dict</span><span class="p">,</span> <span class="n">has_class</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">add_start_end_tag</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span> <span class="k">del</span> <span class="n">gen_data</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[13]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Train data&quot;</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_train_21_T</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_train_21_T</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> <span class="nb">print</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_train_21_G</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_train_21_G</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> <span class="nb">print</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_train_21_V</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_train_21_V</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> <span class="nb">print</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_train_21_C</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_train_21_C</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>Train data (1086419,) [352216, 252037, 202038, 70974, 86431, 164788, 109857, 338562, 123191, 209585, 221967, 49123, 331220, 140212, 209585, 229015, 140770, 182848, 111721, 8208, 0, 352217] (1086419, 3) [352216, 164788, 352217] (1086419,) [352216, 86196, 352217] (1086419,) 4 </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[14]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">gen_data</span> <span class="o">=</span> <span class="n">global_utils</span><span class="o">.</span><span class="n">GenerateDataset</span><span class="p">(</span><span class="n">x_val_df</span><span class="p">,</span> <span class="n">corpus_wordidx</span><span class="p">)</span> <span class="n">x_val_21_T</span><span class="p">,</span> <span class="n">x_val_21_G</span><span class="p">,</span> <span class="n">x_val_21_V</span><span class="p">,</span> <span class="n">x_val_21_C</span> <span class="o">=</span> <span class="n">gen_data</span><span class="o">.</span><span class="n">generate_data</span><span class="p">(</span><span class="n">custom_unit_dict</span><span class="p">,</span> <span class="n">has_class</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">add_start_end_tag</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span> <span class="k">del</span> <span class="n">gen_data</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[15]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Val data&quot;</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;text&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_val_21_T</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;gene&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_val_21_G</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_val_21_G</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;variation&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_val_21_V</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_val_21_V</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;classes&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_val_21_C</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_val_21_C</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>Val data text (128341,) gene (128341, 3) [352216, 217983, 352217] variation (128341,) [352216, 41934, 352217] classes (128341,) 4 </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <h3 id="format-data">format data<a class="anchor-link" href="#format-data">&#182;</a></h3> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[16]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">word_unknown_tag_idx</span> <span class="o">=</span> <span class="n">corpus_wordidx</span><span class="p">[</span><span class="s2">&quot;&lt;UNK&gt;&quot;</span><span class="p">]</span> <span class="n">char_unknown_tag_idx</span> <span class="o">=</span> <span class="n">global_utils</span><span class="o">.</span><span class="n">char_unknown_tag_idx</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[17]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">MAX_SENT_LEN</span> <span class="o">=</span> <span class="mi">60</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[18]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">x_train_21_T</span> <span class="o">=</span> <span class="n">pad_sequences</span><span class="p">(</span><span class="n">x_train_21_T</span><span class="p">,</span> <span class="n">maxlen</span><span class="o">=</span><span class="n">MAX_SENT_LEN</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="n">word_unknown_tag_idx</span><span class="p">,</span> <span class="n">padding</span><span class="o">=</span><span class="s2">&quot;post&quot;</span><span class="p">,</span><span class="n">truncating</span><span class="o">=</span><span class="s2">&quot;post&quot;</span><span class="p">)</span> <span class="n">x_val_21_T</span> <span class="o">=</span> <span class="n">pad_sequences</span><span class="p">(</span><span class="n">x_val_21_T</span><span class="p">,</span> <span class="n">maxlen</span><span class="o">=</span><span class="n">MAX_SENT_LEN</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="n">word_unknown_tag_idx</span><span class="p">,</span> <span class="n">padding</span><span class="o">=</span><span class="s2">&quot;post&quot;</span><span class="p">,</span><span class="n">truncating</span><span class="o">=</span><span class="s2">&quot;post&quot;</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="n">x_train_21_T</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_val_21_T</span><span class="o">.</span><span class="n">shape</span><span class="p">)</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>(1086419, 60) (128341, 60) </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <p>keras np_utils.to_categorical expects zero index categorical variables</p> <p><a href="https://github.com/fchollet/keras/issues/570">https://github.com/fchollet/keras/issues/570</a></p> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[19]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">x_train_21_C</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_train_21_C</span><span class="p">)</span> <span class="o">-</span> <span class="mi">1</span> <span class="n">x_val_21_C</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_val_21_C</span><span class="p">)</span> <span class="o">-</span> <span class="mi">1</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[20]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">x_train_21_C</span> <span class="o">=</span> <span class="n">np_utils</span><span class="o">.</span><span class="n">to_categorical</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_train_21_C</span><span class="p">),</span> <span class="mi">9</span><span class="p">)</span> <span class="n">x_val_21_C</span> <span class="o">=</span> <span class="n">np_utils</span><span class="o">.</span><span class="n">to_categorical</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_val_21_C</span><span class="p">),</span> <span class="mi">9</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="n">x_train_21_C</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_val_21_C</span><span class="o">.</span><span class="n">shape</span><span class="p">)</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>(1086419, 9) (128341, 9) </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <h2 id="T:text_words">T:text_words<a class="anchor-link" href="#T:text_words">&#182;</a></h2> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <h3 id="generate-data">generate data<a class="anchor-link" href="#generate-data">&#182;</a></h3> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[11]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">custom_unit_dict</span> <span class="o">=</span> <span class="p">{</span> <span class="s2">&quot;gene_unit&quot;</span> <span class="p">:</span> <span class="s2">&quot;words&quot;</span><span class="p">,</span> <span class="s2">&quot;variation_unit&quot;</span> <span class="p">:</span> <span class="s2">&quot;words&quot;</span><span class="p">,</span> <span class="c1"># text transformed to sentences attribute</span> <span class="s2">&quot;doc_unit&quot;</span> <span class="p">:</span> <span class="s2">&quot;words&quot;</span><span class="p">,</span> <span class="s2">&quot;doc_form&quot;</span> <span class="p">:</span> <span class="s2">&quot;text&quot;</span><span class="p">,</span> <span class="s2">&quot;divide_document&quot;</span><span class="p">:</span> <span class="s2">&quot;single_unit&quot;</span> <span class="p">}</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[12]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="o">%</span><span class="k">autoreload</span> <span class="kn">import</span> <span class="nn">global_utils</span> <span class="n">gen_data</span> <span class="o">=</span> <span class="n">global_utils</span><span class="o">.</span><span class="n">GenerateDataset</span><span class="p">(</span><span class="n">x_train_df</span><span class="p">,</span> <span class="n">corpus_wordidx</span><span class="p">)</span> <span class="n">x_train_22_T</span><span class="p">,</span> <span class="n">x_train_22_G</span><span class="p">,</span> <span class="n">x_train_22_V</span><span class="p">,</span> <span class="n">x_train_22_C</span> <span class="o">=</span> <span class="n">gen_data</span><span class="o">.</span><span class="n">generate_data</span><span class="p">(</span><span class="n">custom_unit_dict</span><span class="p">,</span> <span class="n">has_class</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">add_start_end_tag</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span> <span class="k">del</span> <span class="n">gen_data</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[13]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Train data&quot;</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;text&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_train_22_T</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;gene&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_train_22_G</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_train_22_G</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;variation&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_train_22_V</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_train_22_V</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;classes&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_train_22_C</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_train_22_C</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>Train data text (2988,) gene (2988, 3) [352216, 164788, 352217] variation (2988,) [352216, 86196, 352217] classes (2988,) 4 </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[14]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">gen_data</span> <span class="o">=</span> <span class="n">global_utils</span><span class="o">.</span><span class="n">GenerateDataset</span><span class="p">(</span><span class="n">x_val_df</span><span class="p">,</span> <span class="n">corpus_wordidx</span><span class="p">)</span> <span class="n">x_val_22_T</span><span class="p">,</span> <span class="n">x_val_22_G</span><span class="p">,</span> <span class="n">x_val_22_V</span><span class="p">,</span> <span class="n">x_val_22_C</span> <span class="o">=</span> <span class="n">gen_data</span><span class="o">.</span><span class="n">generate_data</span><span class="p">(</span><span class="n">custom_unit_dict</span><span class="p">,</span> <span class="n">has_class</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">add_start_end_tag</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span> <span class="k">del</span> <span class="n">gen_data</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[15]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Val data&quot;</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;text&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_val_22_T</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;gene&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_val_22_G</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_val_22_G</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;variation&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_val_22_V</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_val_22_V</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;classes&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_val_22_C</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_val_22_C</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>Val data text (333,) gene (333, 3) [352216, 217983, 352217] variation (333,) [352216, 41934, 352217] classes (333,) 4 </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <h3 id="format-data">format data<a class="anchor-link" href="#format-data">&#182;</a></h3> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[16]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">word_unknown_tag_idx</span> <span class="o">=</span> <span class="n">corpus_wordidx</span><span class="p">[</span><span class="s2">&quot;&lt;UNK&gt;&quot;</span><span class="p">]</span> <span class="n">char_unknown_tag_idx</span> <span class="o">=</span> <span class="n">global_utils</span><span class="o">.</span><span class="n">char_unknown_tag_idx</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[17]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">MAX_TEXT_LEN</span> <span class="o">=</span> <span class="mi">5000</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[18]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">x_train_22_T</span> <span class="o">=</span> <span class="n">pad_sequences</span><span class="p">(</span><span class="n">x_train_22_T</span><span class="p">,</span> <span class="n">maxlen</span><span class="o">=</span><span class="n">MAX_TEXT_LEN</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="n">word_unknown_tag_idx</span><span class="p">,</span> <span class="n">padding</span><span class="o">=</span><span class="s2">&quot;post&quot;</span><span class="p">,</span><span class="n">truncating</span><span class="o">=</span><span class="s2">&quot;post&quot;</span><span class="p">)</span> <span class="n">x_val_22_T</span> <span class="o">=</span> <span class="n">pad_sequences</span><span class="p">(</span><span class="n">x_val_22_T</span><span class="p">,</span> <span class="n">maxlen</span><span class="o">=</span><span class="n">MAX_TEXT_LEN</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="n">word_unknown_tag_idx</span><span class="p">,</span> <span class="n">padding</span><span class="o">=</span><span class="s2">&quot;post&quot;</span><span class="p">,</span><span class="n">truncating</span><span class="o">=</span><span class="s2">&quot;post&quot;</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="n">x_train_22_T</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_val_22_T</span><span class="o">.</span><span class="n">shape</span><span class="p">)</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>(2988, 5000) (333, 5000) </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[19]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">MAX_GENE_LEN</span> <span class="o">=</span> <span class="mi">1</span> <span class="n">MAX_VAR_LEN</span> <span class="o">=</span> <span class="mi">4</span> <span class="n">x_train_22_G</span> <span class="o">=</span> <span class="n">pad_sequences</span><span class="p">(</span><span class="n">x_train_22_G</span><span class="p">,</span> <span class="n">maxlen</span><span class="o">=</span><span class="n">MAX_GENE_LEN</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="n">word_unknown_tag_idx</span><span class="p">)</span> <span class="n">x_train_22_V</span> <span class="o">=</span> <span class="n">pad_sequences</span><span class="p">(</span><span class="n">x_train_22_V</span><span class="p">,</span> <span class="n">maxlen</span><span class="o">=</span><span class="n">MAX_VAR_LEN</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="n">word_unknown_tag_idx</span><span class="p">)</span> <span class="n">x_val_22_G</span> <span class="o">=</span> <span class="n">pad_sequences</span><span class="p">(</span><span class="n">x_val_22_G</span><span class="p">,</span> <span class="n">maxlen</span><span class="o">=</span><span class="n">MAX_GENE_LEN</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="n">word_unknown_tag_idx</span><span class="p">)</span> <span class="n">x_val_22_V</span> <span class="o">=</span> <span class="n">pad_sequences</span><span class="p">(</span><span class="n">x_val_22_V</span><span class="p">,</span> <span class="n">maxlen</span><span class="o">=</span><span class="n">MAX_VAR_LEN</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="n">word_unknown_tag_idx</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="n">x_train_22_G</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_train_22_V</span><span class="o">.</span><span class="n">shape</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="n">x_val_22_G</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_val_22_V</span><span class="o">.</span><span class="n">shape</span><span class="p">)</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>(2988, 1) (2988, 4) (333, 1) (333, 4) </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <p>keras np_utils.to_categorical expects zero index categorical variables</p> <p><a href="https://github.com/fchollet/keras/issues/570">https://github.com/fchollet/keras/issues/570</a></p> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[20]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">x_train_22_C</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_train_22_C</span><span class="p">)</span> <span class="o">-</span> <span class="mi">1</span> <span class="n">x_val_22_C</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_val_22_C</span><span class="p">)</span> <span class="o">-</span> <span class="mi">1</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[21]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">x_train_22_C</span> <span class="o">=</span> <span class="n">np_utils</span><span class="o">.</span><span class="n">to_categorical</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_train_22_C</span><span class="p">),</span> <span class="mi">9</span><span class="p">)</span> <span class="n">x_val_22_C</span> <span class="o">=</span> <span class="n">np_utils</span><span class="o">.</span><span class="n">to_categorical</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_val_22_C</span><span class="p">),</span> <span class="mi">9</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="n">x_train_22_C</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_val_22_C</span><span class="o">.</span><span class="n">shape</span><span class="p">)</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>(2988, 9) (333, 9) </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <h3 id="test-Data-setup">test Data setup<a class="anchor-link" href="#test-Data-setup">&#182;</a></h3> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[22]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">gen_data</span> <span class="o">=</span> <span class="n">global_utils</span><span class="o">.</span><span class="n">GenerateDataset</span><span class="p">(</span><span class="n">test_df</span><span class="p">,</span> <span class="n">corpus_wordidx</span><span class="p">)</span> <span class="n">x_test_22_T</span><span class="p">,</span> <span class="n">x_test_22_G</span><span class="p">,</span> <span class="n">x_test_22_V</span><span class="p">,</span> <span class="n">_</span> <span class="o">=</span> <span class="n">gen_data</span><span class="o">.</span><span class="n">generate_data</span><span class="p">(</span><span class="n">custom_unit_dict</span><span class="p">,</span> <span class="n">has_class</span><span class="o">=</span><span class="kc">False</span><span class="p">,</span> <span class="n">add_start_end_tag</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span> <span class="k">del</span> <span class="n">gen_data</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[23]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Test data&quot;</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;text&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_test_22_T</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;gene&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_test_22_G</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_test_22_G</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;variation&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_test_22_V</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_test_22_V</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>Test data text (986,) gene (986, 3) [364606, 188717, 364607] variation (986,) [364606, 317947, 364607] </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[24]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">x_test_22_T</span> <span class="o">=</span> <span class="n">pad_sequences</span><span class="p">(</span><span class="n">x_test_22_T</span><span class="p">,</span> <span class="n">maxlen</span><span class="o">=</span><span class="n">MAX_TEXT_LEN</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="n">word_unknown_tag_idx</span><span class="p">,</span> <span class="n">padding</span><span class="o">=</span><span class="s2">&quot;post&quot;</span><span class="p">,</span><span class="n">truncating</span><span class="o">=</span><span class="s2">&quot;post&quot;</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="n">x_test_22_T</span><span class="o">.</span><span class="n">shape</span><span class="p">)</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>(986, 5000) </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[25]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">MAX_GENE_LEN</span> <span class="o">=</span> <span class="mi">1</span> <span class="n">MAX_VAR_LEN</span> <span class="o">=</span> <span class="mi">4</span> <span class="n">x_test_22_G</span> <span class="o">=</span> <span class="n">pad_sequences</span><span class="p">(</span><span class="n">x_test_22_G</span><span class="p">,</span> <span class="n">maxlen</span><span class="o">=</span><span class="n">MAX_GENE_LEN</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="n">word_unknown_tag_idx</span><span class="p">)</span> <span class="n">x_test_22_V</span> <span class="o">=</span> <span class="n">pad_sequences</span><span class="p">(</span><span class="n">x_test_22_V</span><span class="p">,</span> <span class="n">maxlen</span><span class="o">=</span><span class="n">MAX_VAR_LEN</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="n">word_unknown_tag_idx</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="n">x_test_22_G</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_test_22_V</span><span class="o">.</span><span class="n">shape</span><span class="p">)</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>(986, 1) (986, 4) </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <h2 id="T:text_chars">T:text_chars<a class="anchor-link" href="#T:text_chars">&#182;</a></h2> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <h3 id="generate-data">generate data<a class="anchor-link" href="#generate-data">&#182;</a></h3> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[83]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">custom_unit_dict</span> <span class="o">=</span> <span class="p">{</span> <span class="s2">&quot;gene_unit&quot;</span> <span class="p">:</span> <span class="s2">&quot;raw_chars&quot;</span><span class="p">,</span> <span class="s2">&quot;variation_unit&quot;</span> <span class="p">:</span> <span class="s2">&quot;raw_chars&quot;</span><span class="p">,</span> <span class="c1"># text transformed to sentences attribute</span> <span class="s2">&quot;doc_unit&quot;</span> <span class="p">:</span> <span class="s2">&quot;raw_chars&quot;</span><span class="p">,</span> <span class="s2">&quot;doc_form&quot;</span> <span class="p">:</span> <span class="s2">&quot;text&quot;</span><span class="p">,</span> <span class="s2">&quot;divide_document&quot;</span> <span class="p">:</span> <span class="s2">&quot;multiple_unit&quot;</span> <span class="p">}</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[84]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="o">%</span><span class="k">autoreload</span> <span class="kn">import</span> <span class="nn">global_utils</span> <span class="n">gen_data</span> <span class="o">=</span> <span class="n">global_utils</span><span class="o">.</span><span class="n">GenerateDataset</span><span class="p">(</span><span class="n">x_train_df</span><span class="p">,</span> <span class="n">corpus_wordidx</span><span class="p">)</span> <span class="n">x_train_33_T</span><span class="p">,</span> <span class="n">x_train_33_G</span><span class="p">,</span> <span class="n">x_train_33_V</span><span class="p">,</span> <span class="n">x_train_33_C</span> <span class="o">=</span> <span class="n">gen_data</span><span class="o">.</span><span class="n">generate_data</span><span class="p">(</span><span class="n">custom_unit_dict</span><span class="p">,</span> <span class="n">has_class</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">add_start_end_tag</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span> <span class="k">del</span> <span class="n">gen_data</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[85]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Train data&quot;</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;text&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_train_33_T</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_train_33_T</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;gene&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_train_33_G</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_train_33_G</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;variation&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_train_33_V</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_train_33_V</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;classes&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_train_33_C</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_train_33_C</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>Train data text (1086419,) [74, 71, 19, 7, 4, 72, 71, 19, 20, 12, 14, 17, 72, 71, 18, 20, 15, 15, 17, 4, 18, 18, 14, 17, 72, 71, 6, 4, 13, 4, 72, 71, 15, 19, 4, 13, 72, 71, 8, 18, 72, 71, 5, 17, 4, 16, 20, 4, 13, 19, 11, 24, 72, 71, 12, 20, 19, 0, 19, 4, 3, 72, 71, 8, 13, 72, 71, 3, 8, 21, 4, 17, 18, 4, 72, 71, 7, 20, 12, 0, 13, 72, 71, 2, 0, 13, 2, 4, 17, 18, 72, 71, 0, 13, 3, 72, 71, 8, 13, 72, 71, 0, 20, 19, 14, 18, 14, 12, 0, 11, 72, 71, 3, 14, 12, 8, 13, 0, 13, 19, 72, 71, 2, 0, 13, 2, 4, 17, 72, 71, 15, 17, 4, 3, 8, 18, 15, 14, 18, 8, 19, 8, 14, 13, 72, 71, 3, 8, 18, 14, 17, 3, 4, 17, 18, 72, 71, 72, 75] gene (1086419,) [74, 71, 15, 19, 4, 13, 72, 75] variation (1086419,) [74, 71, 24, 27, 32, 2, 72, 75] classes (1086419,) 4 </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[86]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="o">%</span><span class="k">autoreload</span> <span class="kn">import</span> <span class="nn">global_utils</span> <span class="n">gen_data</span> <span class="o">=</span> <span class="n">global_utils</span><span class="o">.</span><span class="n">GenerateDataset</span><span class="p">(</span><span class="n">x_val_df</span><span class="p">,</span> <span class="n">corpus_wordidx</span><span class="p">)</span> <span class="n">x_val_33_T</span><span class="p">,</span> <span class="n">x_val_33_G</span><span class="p">,</span> <span class="n">x_val_33_V</span><span class="p">,</span> <span class="n">x_val_33_C</span> <span class="o">=</span> <span class="n">gen_data</span><span class="o">.</span><span class="n">generate_data</span><span class="p">(</span><span class="n">custom_unit_dict</span><span class="p">,</span> <span class="n">has_class</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">add_start_end_tag</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span> <span class="k">del</span> <span class="n">gen_data</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[87]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Val data&quot;</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;text&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_val_33_T</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_val_33_T</span><span class="p">[</span><span class="mi">98</span><span class="p">])</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;gene&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_val_33_G</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_val_33_G</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;variation&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_val_33_V</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_val_33_V</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;classes&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_val_33_C</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_val_33_C</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>Val data text (128341,) [74, 71, 0, 19, 72, 71, 19, 7, 8, 18, 72, 71, 19, 8, 12, 4, 72, 71, 15, 14, 8, 13, 19, 72, 71, 72, 71, 19, 7, 4, 72, 71, 4, 23, 15, 17, 4, 18, 18, 8, 14, 13, 72, 71, 14, 5, 72, 71, 22, 8, 11, 3, 36, 19, 24, 15, 4, 72, 71, 15, 27, 32, 8, 13, 10, 30, 0, 72, 71, 8, 13, 72, 71, 20, 28, 14, 18, 72, 71, 2, 4, 11, 11, 18, 72, 71, 8, 13, 3, 20, 2, 4, 3, 72, 71, 15, 14, 19, 4, 13, 19, 72, 71, 2, 4, 11, 11, 72, 71, 2, 24, 2, 11, 4, 72, 71, 0, 17, 17, 4, 18, 19, 72, 71, 0, 19, 72, 71, 1, 14, 19, 7, 72, 71, 19, 4, 12, 15, 4, 17, 0, 19, 20, 17, 4, 18, 72, 71, 72, 71, 15, 27, 32, 8, 13, 10, 30, 0, 72, 71, 8, 13, 3, 20, 2, 4, 3, 72, 71, 18, 36, 15, 7, 0, 18, 4, 72, 71, 8, 13, 7, 8, 1, 8, 19, 8, 14, 13, 72, 71, 14, 5, 72, 71, 30, 28, 33, 29, 72, 71, 72, 71, 0, 13, 3, 72, 71, 30, 35, 33, 29, 72, 71, 72, 71, 0, 19, 72, 71, 29, 33, 27, 2, 72, 71, 0, 13, 3, 72, 71, 30, 26, 27, 2, 72, 71, 72, 71, 17, 4, 18, 15, 4, 2, 19, 8, 21, 4, 11, 24, 72, 71, 72, 75] gene (128341,) [74, 71, 2, 3, 10, 13, 28, 0, 72, 75] variation (128341,) [74, 71, 0, 32, 26, 21, 72, 75] classes (128341,) 4 </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <h3 id="format-data">format data<a class="anchor-link" href="#format-data">&#182;</a></h3> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[88]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">word_unknown_tag_idx</span> <span class="o">=</span> <span class="n">corpus_wordidx</span><span class="p">[</span><span class="s2">&quot;&lt;UNK&gt;&quot;</span><span class="p">]</span> <span class="n">char_unknown_tag_idx</span> <span class="o">=</span> <span class="n">global_utils</span><span class="o">.</span><span class="n">char_unknown_tag_idx</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[89]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">MAX_CHAR_IN_SENT_LEN</span> <span class="o">=</span> <span class="mi">150</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[90]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">x_train_33_T</span> <span class="o">=</span> <span class="n">pad_sequences</span><span class="p">(</span><span class="n">x_train_33_T</span><span class="p">,</span> <span class="n">maxlen</span><span class="o">=</span><span class="n">MAX_CHAR_IN_SENT_LEN</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="n">char_unknown_tag_idx</span><span class="p">,</span> <span class="n">padding</span><span class="o">=</span><span class="s2">&quot;post&quot;</span><span class="p">,</span><span class="n">truncating</span><span class="o">=</span><span class="s2">&quot;post&quot;</span><span class="p">)</span> <span class="n">x_val_33_T</span> <span class="o">=</span> <span class="n">pad_sequences</span><span class="p">(</span><span class="n">x_val_33_T</span><span class="p">,</span> <span class="n">maxlen</span><span class="o">=</span><span class="n">MAX_CHAR_IN_SENT_LEN</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="n">char_unknown_tag_idx</span><span class="p">,</span> <span class="n">padding</span><span class="o">=</span><span class="s2">&quot;post&quot;</span><span class="p">,</span><span class="n">truncating</span><span class="o">=</span><span class="s2">&quot;post&quot;</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="n">x_train_33_T</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_val_33_T</span><span class="o">.</span><span class="n">shape</span><span class="p">)</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>(1086419, 150) (128341, 150) </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[91]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">x_train_33_G</span> <span class="o">=</span> <span class="n">pad_sequences</span><span class="p">(</span><span class="n">x_train_33_G</span><span class="p">,</span> <span class="n">maxlen</span><span class="o">=</span><span class="n">MAX_CHAR_IN_SENT_LEN</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="n">char_unknown_tag_idx</span><span class="p">)</span> <span class="n">x_train_33_V</span> <span class="o">=</span> <span class="n">pad_sequences</span><span class="p">(</span><span class="n">x_train_33_V</span><span class="p">,</span> <span class="n">maxlen</span><span class="o">=</span><span class="n">MAX_CHAR_IN_SENT_LEN</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="n">char_unknown_tag_idx</span><span class="p">)</span> <span class="n">x_val_33_G</span> <span class="o">=</span> <span class="n">pad_sequences</span><span class="p">(</span><span class="n">x_val_33_G</span><span class="p">,</span> <span class="n">maxlen</span><span class="o">=</span><span class="n">MAX_CHAR_IN_SENT_LEN</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="n">char_unknown_tag_idx</span><span class="p">)</span> <span class="n">x_val_33_V</span> <span class="o">=</span> <span class="n">pad_sequences</span><span class="p">(</span><span class="n">x_val_33_V</span><span class="p">,</span> <span class="n">maxlen</span><span class="o">=</span><span class="n">MAX_CHAR_IN_SENT_LEN</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="n">char_unknown_tag_idx</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="n">x_train_33_G</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_train_33_V</span><span class="o">.</span><span class="n">shape</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="n">x_val_33_G</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_val_33_V</span><span class="o">.</span><span class="n">shape</span><span class="p">)</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>(1086419, 150) (1086419, 150) (128341, 150) (128341, 150) </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <p>keras np_utils.to_categorical expects zero index categorical variables</p> <p><a href="https://github.com/fchollet/keras/issues/570">https://github.com/fchollet/keras/issues/570</a></p> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[92]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">x_train_33_C</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_train_33_C</span><span class="p">)</span> <span class="o">-</span> <span class="mi">1</span> <span class="n">x_val_33_C</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_val_33_C</span><span class="p">)</span> <span class="o">-</span> <span class="mi">1</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[93]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">x_train_33_C</span> <span class="o">=</span> <span class="n">np_utils</span><span class="o">.</span><span class="n">to_categorical</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_train_33_C</span><span class="p">),</span> <span class="mi">9</span><span class="p">)</span> <span class="n">x_val_33_C</span> <span class="o">=</span> <span class="n">np_utils</span><span class="o">.</span><span class="n">to_categorical</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_val_33_C</span><span class="p">),</span> <span class="mi">9</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="n">x_train_33_C</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_val_33_C</span><span class="o">.</span><span class="n">shape</span><span class="p">)</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>(1086419, 9) (128341, 9) </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <h2 id="T:text_sent_words">T:text_sent_words<a class="anchor-link" href="#T:text_sent_words">&#182;</a></h2> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <h3 id="generate-data">generate data<a class="anchor-link" href="#generate-data">&#182;</a></h3> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[11]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">custom_unit_dict</span> <span class="o">=</span> <span class="p">{</span> <span class="s2">&quot;gene_unit&quot;</span> <span class="p">:</span> <span class="s2">&quot;words&quot;</span><span class="p">,</span> <span class="s2">&quot;variation_unit&quot;</span> <span class="p">:</span> <span class="s2">&quot;words&quot;</span><span class="p">,</span> <span class="c1"># text transformed to sentences attribute</span> <span class="s2">&quot;doc_unit&quot;</span> <span class="p">:</span> <span class="s2">&quot;word_list&quot;</span><span class="p">,</span> <span class="s2">&quot;doc_form&quot;</span> <span class="p">:</span> <span class="s2">&quot;text&quot;</span><span class="p">,</span> <span class="s2">&quot;divide_document&quot;</span> <span class="p">:</span> <span class="s2">&quot;single_unit&quot;</span> <span class="p">}</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[12]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="o">%</span><span class="k">autoreload</span> <span class="kn">import</span> <span class="nn">global_utils</span> <span class="n">gen_data</span> <span class="o">=</span> <span class="n">global_utils</span><span class="o">.</span><span class="n">GenerateDataset</span><span class="p">(</span><span class="n">x_train_df</span><span class="p">,</span> <span class="n">corpus_wordidx</span><span class="p">)</span> <span class="n">x_train_34_T</span><span class="p">,</span> <span class="n">x_train_34_G</span><span class="p">,</span> <span class="n">x_train_34_V</span><span class="p">,</span> <span class="n">x_train_34_C</span> <span class="o">=</span> <span class="n">gen_data</span><span class="o">.</span><span class="n">generate_data</span><span class="p">(</span><span class="n">custom_unit_dict</span><span class="p">,</span> <span class="n">has_class</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">add_start_end_tag</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span> <span class="k">del</span> <span class="n">gen_data</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[13]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Train data&quot;</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;text&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_train_34_T</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_train_34_T</span><span class="p">[</span><span class="mi">0</span><span class="p">][:</span><span class="mi">1</span><span class="p">])</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;gene&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_train_34_G</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_train_34_G</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;variation&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_train_34_V</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_train_34_V</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;classes&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_train_34_C</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_train_34_C</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>Train data text (2988,) [[352216, 252037, 202038, 70974, 86431, 164788, 109857, 338562, 123191, 209585, 221967, 49123, 331220, 140212, 209585, 229015, 140770, 182848, 111721, 8208, 0, 352217]] gene (2988, 3) [352216, 164788, 352217] variation (2988,) [352216, 86196, 352217] classes (2988,) 4 </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[14]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="o">%</span><span class="k">autoreload</span> <span class="kn">import</span> <span class="nn">global_utils</span> <span class="n">gen_data</span> <span class="o">=</span> <span class="n">global_utils</span><span class="o">.</span><span class="n">GenerateDataset</span><span class="p">(</span><span class="n">x_val_df</span><span class="p">,</span> <span class="n">corpus_wordidx</span><span class="p">)</span> <span class="n">x_val_34_T</span><span class="p">,</span> <span class="n">x_val_34_G</span><span class="p">,</span> <span class="n">x_val_34_V</span><span class="p">,</span> <span class="n">x_val_34_C</span> <span class="o">=</span> <span class="n">gen_data</span><span class="o">.</span><span class="n">generate_data</span><span class="p">(</span><span class="n">custom_unit_dict</span><span class="p">,</span> <span class="n">has_class</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">add_start_end_tag</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span> <span class="k">del</span> <span class="n">gen_data</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[15]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Val data&quot;</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;text&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_val_34_T</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_val_34_T</span><span class="p">[</span><span class="mi">98</span><span class="p">][:</span><span class="mi">1</span><span class="p">])</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;gene&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_val_34_G</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_val_34_G</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;variation&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_val_34_V</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_val_34_V</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;classes&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_val_34_C</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_val_34_C</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>Val data text (333,) [[352216, 252037, 156537, 91785, 67201, 109857, 123191, 209585, 213751, 5638, 0, 126280, 49123, 331220, 0, 352217]] gene (333, 3) [352216, 217983, 352217] variation (333,) [352216, 41934, 352217] classes (333,) 4 </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <h3 id="format-data">format data<a class="anchor-link" href="#format-data">&#182;</a></h3> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[16]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">word_unknown_tag_idx</span> <span class="o">=</span> <span class="n">corpus_wordidx</span><span class="p">[</span><span class="s2">&quot;&lt;UNK&gt;&quot;</span><span class="p">]</span> <span class="n">char_unknown_tag_idx</span> <span class="o">=</span> <span class="n">global_utils</span><span class="o">.</span><span class="n">char_unknown_tag_idx</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[17]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">MAX_DOC_LEN</span> <span class="o">=</span> <span class="mi">500</span> <span class="c1"># no of sentences in a document</span> <span class="n">MAX_SENT_LEN</span> <span class="o">=</span> <span class="mi">80</span> <span class="c1"># no of words in a sentence</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <p><img src="&quot;../../images/paper_x12_rcnn.png&quot;" alt="model"></p> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[18]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="k">for</span> <span class="n">doc_i</span><span class="p">,</span> <span class="n">doc</span> <span class="ow">in</span> <span class="nb">enumerate</span><span class="p">(</span><span class="n">x_train_34_T</span><span class="p">):</span> <span class="n">x_train_34_T</span><span class="p">[</span><span class="n">doc_i</span><span class="p">]</span> <span class="o">=</span> <span class="n">x_train_34_T</span><span class="p">[</span><span class="n">doc_i</span><span class="p">][:</span><span class="n">MAX_DOC_LEN</span><span class="p">]</span> <span class="c1"># padding sentences</span> <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">x_train_34_T</span><span class="p">[</span><span class="n">doc_i</span><span class="p">])</span> <span class="o">&lt;</span> <span class="n">MAX_DOC_LEN</span><span class="p">:</span> <span class="k">for</span> <span class="n">not_used_i</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="n">MAX_DOC_LEN</span> <span class="o">-</span> <span class="nb">len</span><span class="p">(</span><span class="n">x_train_34_T</span><span class="p">[</span><span class="n">doc_i</span><span class="p">])):</span> <span class="n">x_train_34_T</span><span class="p">[</span><span class="n">doc_i</span><span class="p">]</span><span class="o">.</span><span class="n">append</span><span class="p">([</span><span class="n">word_unknown_tag_idx</span><span class="p">]</span><span class="o">*</span><span class="n">MAX_SENT_LEN</span><span class="p">)</span> <span class="c1"># padding words</span> <span class="n">x_train_34_T</span><span class="p">[</span><span class="n">doc_i</span><span class="p">]</span> <span class="o">=</span> <span class="n">pad_sequences</span><span class="p">(</span><span class="n">x_train_34_T</span><span class="p">[</span><span class="n">doc_i</span><span class="p">],</span> <span class="n">maxlen</span><span class="o">=</span><span class="n">MAX_SENT_LEN</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="n">word_unknown_tag_idx</span><span class="p">)</span> <span class="k">for</span> <span class="n">doc_i</span><span class="p">,</span> <span class="n">doc</span> <span class="ow">in</span> <span class="nb">enumerate</span><span class="p">(</span><span class="n">x_val_34_T</span><span class="p">):</span> <span class="n">x_val_34_T</span><span class="p">[</span><span class="n">doc_i</span><span class="p">]</span> <span class="o">=</span> <span class="n">x_val_34_T</span><span class="p">[</span><span class="n">doc_i</span><span class="p">][:</span><span class="n">MAX_DOC_LEN</span><span class="p">]</span> <span class="c1"># padding sentences</span> <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">x_val_34_T</span><span class="p">[</span><span class="n">doc_i</span><span class="p">])</span> <span class="o">&lt;</span> <span class="n">MAX_DOC_LEN</span><span class="p">:</span> <span class="k">for</span> <span class="n">not_used_i</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="n">MAX_DOC_LEN</span> <span class="o">-</span> <span class="nb">len</span><span class="p">(</span><span class="n">x_val_34_T</span><span class="p">[</span><span class="n">doc_i</span><span class="p">])):</span> <span class="n">x_val_34_T</span><span class="p">[</span><span class="n">doc_i</span><span class="p">]</span><span class="o">.</span><span class="n">append</span><span class="p">([</span><span class="n">word_unknown_tag_idx</span><span class="p">]</span><span class="o">*</span><span class="n">MAX_SENT_LEN</span><span class="p">)</span> <span class="c1"># padding words</span> <span class="n">x_val_34_T</span><span class="p">[</span><span class="n">doc_i</span><span class="p">]</span> <span class="o">=</span> <span class="n">pad_sequences</span><span class="p">(</span><span class="n">x_val_34_T</span><span class="p">[</span><span class="n">doc_i</span><span class="p">],</span> <span class="n">maxlen</span><span class="o">=</span><span class="n">MAX_SENT_LEN</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="n">word_unknown_tag_idx</span><span class="p">)</span> <span class="n">x_train_34_T</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_train_34_T</span><span class="p">)</span> <span class="n">x_val_34_T</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_val_34_T</span><span class="p">)</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[19]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="nb">print</span><span class="p">(</span><span class="n">x_val_34_T</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_train_34_T</span><span class="o">.</span><span class="n">shape</span><span class="p">)</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>(333, 500, 80) (2988, 500, 80) </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[20]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">x_train_34_G</span> <span class="o">=</span> <span class="n">pad_sequences</span><span class="p">(</span><span class="n">x_train_34_G</span><span class="p">,</span> <span class="n">maxlen</span><span class="o">=</span><span class="n">MAX_SENT_LEN</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="n">word_unknown_tag_idx</span><span class="p">)</span> <span class="n">x_train_34_V</span> <span class="o">=</span> <span class="n">pad_sequences</span><span class="p">(</span><span class="n">x_train_34_V</span><span class="p">,</span> <span class="n">maxlen</span><span class="o">=</span><span class="n">MAX_SENT_LEN</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="n">word_unknown_tag_idx</span><span class="p">)</span> <span class="n">x_val_34_G</span> <span class="o">=</span> <span class="n">pad_sequences</span><span class="p">(</span><span class="n">x_val_34_G</span><span class="p">,</span> <span class="n">maxlen</span><span class="o">=</span><span class="n">MAX_SENT_LEN</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="n">word_unknown_tag_idx</span><span class="p">)</span> <span class="n">x_val_34_V</span> <span class="o">=</span> <span class="n">pad_sequences</span><span class="p">(</span><span class="n">x_val_34_V</span><span class="p">,</span> <span class="n">maxlen</span><span class="o">=</span><span class="n">MAX_SENT_LEN</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="n">word_unknown_tag_idx</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="n">x_train_34_G</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_train_34_V</span><span class="o">.</span><span class="n">shape</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="n">x_val_34_G</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_val_34_V</span><span class="o">.</span><span class="n">shape</span><span class="p">)</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>(2988, 80) (2988, 80) (333, 80) (333, 80) </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <p>keras np_utils.to_categorical expects zero index categorical variables</p> <p><a href="https://github.com/fchollet/keras/issues/570">https://github.com/fchollet/keras/issues/570</a></p> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[21]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">x_train_34_C</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_train_34_C</span><span class="p">)</span> <span class="o">-</span> <span class="mi">1</span> <span class="n">x_val_34_C</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_val_34_C</span><span class="p">)</span> <span class="o">-</span> <span class="mi">1</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[22]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">x_train_34_C</span> <span class="o">=</span> <span class="n">np_utils</span><span class="o">.</span><span class="n">to_categorical</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_train_34_C</span><span class="p">),</span> <span class="mi">9</span><span class="p">)</span> <span class="n">x_val_34_C</span> <span class="o">=</span> <span class="n">np_utils</span><span class="o">.</span><span class="n">to_categorical</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_val_34_C</span><span class="p">),</span> <span class="mi">9</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="n">x_train_34_C</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_val_34_C</span><span class="o">.</span><span class="n">shape</span><span class="p">)</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>(2988, 9) (333, 9) </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <p>Need to form 3 dimensional target data for rationale model training</p> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[23]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">temp</span> <span class="o">=</span> <span class="p">(</span><span class="n">x_train_34_C</span><span class="o">.</span><span class="n">shape</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span><span class="mi">1</span><span class="p">,</span><span class="n">x_train_34_C</span><span class="o">.</span><span class="n">shape</span><span class="p">[</span><span class="mi">1</span><span class="p">])</span> <span class="n">x_train_34_C_sent</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">repeat</span><span class="p">(</span><span class="n">x_train_34_C</span><span class="o">.</span><span class="n">reshape</span><span class="p">(</span><span class="n">temp</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span><span class="n">temp</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span><span class="n">temp</span><span class="p">[</span><span class="mi">2</span><span class="p">]),</span> <span class="n">MAX_DOC_LEN</span><span class="p">,</span> <span class="n">axis</span><span class="o">=</span><span class="mi">1</span><span class="p">)</span> <span class="c1">#sentence test targets</span> <span class="n">temp</span> <span class="o">=</span> <span class="p">(</span><span class="n">x_val_34_C</span><span class="o">.</span><span class="n">shape</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span><span class="mi">1</span><span class="p">,</span><span class="n">x_val_34_C</span><span class="o">.</span><span class="n">shape</span><span class="p">[</span><span class="mi">1</span><span class="p">])</span> <span class="n">x_val_34_C_sent</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">repeat</span><span class="p">(</span><span class="n">x_val_34_C</span><span class="o">.</span><span class="n">reshape</span><span class="p">(</span><span class="n">temp</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span><span class="n">temp</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span><span class="n">temp</span><span class="p">[</span><span class="mi">2</span><span class="p">]),</span> <span class="n">MAX_DOC_LEN</span><span class="p">,</span> <span class="n">axis</span><span class="o">=</span><span class="mi">1</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="n">x_train_34_C_sent</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_val_34_C_sent</span><span class="o">.</span><span class="n">shape</span><span class="p">)</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>(2988, 500, 9) (333, 500, 9) </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <h2 id="T:text_words_context">T:text_words_context<a class="anchor-link" href="#T:text_words_context">&#182;</a></h2> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <h3 id="generate-data">generate data<a class="anchor-link" href="#generate-data">&#182;</a></h3> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[11]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">custom_unit_dict_forward_context</span> <span class="o">=</span> <span class="p">{</span> <span class="s2">&quot;gene_unit&quot;</span> <span class="p">:</span> <span class="s2">&quot;words&quot;</span><span class="p">,</span> <span class="s2">&quot;variation_unit&quot;</span> <span class="p">:</span> <span class="s2">&quot;words&quot;</span><span class="p">,</span> <span class="c1"># text transformed to sentences attribute</span> <span class="s2">&quot;doc_unit&quot;</span> <span class="p">:</span> <span class="s2">&quot;words&quot;</span><span class="p">,</span> <span class="s2">&quot;doc_form&quot;</span> <span class="p">:</span> <span class="s2">&quot;text&quot;</span><span class="p">,</span> <span class="s2">&quot;divide_document&quot;</span> <span class="p">:</span> <span class="s2">&quot;single_unit&quot;</span> <span class="p">}</span> <span class="n">custom_unit_dict_backward_context</span> <span class="o">=</span> <span class="p">{</span> <span class="s2">&quot;gene_unit&quot;</span> <span class="p">:</span> <span class="s2">&quot;words&quot;</span><span class="p">,</span> <span class="s2">&quot;variation_unit&quot;</span> <span class="p">:</span> <span class="s2">&quot;words&quot;</span><span class="p">,</span> <span class="c1"># text transformed to sentences attribute</span> <span class="s2">&quot;doc_unit&quot;</span> <span class="p">:</span> <span class="s2">&quot;words&quot;</span><span class="p">,</span> <span class="s2">&quot;doc_cntx_dir&quot;</span> <span class="p">:</span> <span class="s2">&quot;backward&quot;</span><span class="p">,</span> <span class="s2">&quot;doc_form&quot;</span> <span class="p">:</span> <span class="s2">&quot;text&quot;</span><span class="p">,</span> <span class="s2">&quot;divide_document&quot;</span> <span class="p">:</span> <span class="s2">&quot;single_unit&quot;</span> <span class="p">}</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <h4 id="Train-data">Train data<a class="anchor-link" href="#Train-data">&#182;</a></h4> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[12]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="o">%</span><span class="k">autoreload</span> <span class="kn">import</span> <span class="nn">global_utils</span> <span class="n">gen_data</span> <span class="o">=</span> <span class="n">global_utils</span><span class="o">.</span><span class="n">GenerateDataset</span><span class="p">(</span><span class="n">x_train_df</span><span class="p">,</span> <span class="n">corpus_wordidx</span><span class="p">)</span> <span class="n">x_train_35_T</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">_</span> <span class="o">=</span> <span class="n">gen_data</span><span class="o">.</span><span class="n">generate_data</span><span class="p">(</span><span class="n">custom_unit_dict_forward_context</span><span class="p">,</span> <span class="n">has_class</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">add_start_end_tag</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span> <span class="n">x_train_35_T_fwd</span> <span class="o">=</span> <span class="n">x_train_35_T</span><span class="o">.</span><span class="n">copy</span><span class="p">()</span> <span class="k">del</span> <span class="n">gen_data</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[13]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Train data forward&quot;</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;text&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_train_35_T_fwd</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_train_35_T_fwd</span><span class="p">[</span><span class="mi">0</span><span class="p">][:</span><span class="mi">10</span><span class="p">])</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>Train data forward text (2988,) [352216, 252037, 202038, 70974, 86431, 164788, 109857, 338562, 123191, 209585] </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[14]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="o">%</span><span class="k">autoreload</span> <span class="kn">import</span> <span class="nn">global_utils</span> <span class="n">gen_data</span> <span class="o">=</span> <span class="n">global_utils</span><span class="o">.</span><span class="n">GenerateDataset</span><span class="p">(</span><span class="n">x_train_df</span><span class="p">,</span> <span class="n">corpus_wordidx</span><span class="p">)</span> <span class="n">x_train_35_T_bwd</span><span class="p">,</span> <span class="n">x_train_35_G</span><span class="p">,</span> <span class="n">x_train_35_V</span><span class="p">,</span> <span class="n">x_train_35_C</span> <span class="o">=</span> <span class="n">gen_data</span><span class="o">.</span><span class="n">generate_data</span><span class="p">(</span><span class="n">custom_unit_dict_backward_context</span><span class="p">,</span> <span class="n">has_class</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">add_start_end_tag</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span> <span class="k">del</span> <span class="n">gen_data</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[15]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Train data backward&quot;</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;text&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_train_35_T_bwd</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_train_35_T_bwd</span><span class="p">[</span><span class="mi">0</span><span class="p">][</span><span class="o">-</span><span class="mi">10</span><span class="p">:])</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>Train data backward text (2988,) [209585, 123191, 338562, 109857, 164788, 86431, 70974, 202038, 252037, 352216] </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <h4 id="Val-data">Val data<a class="anchor-link" href="#Val-data">&#182;</a></h4> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[16]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="o">%</span><span class="k">autoreload</span> <span class="kn">import</span> <span class="nn">global_utils</span> <span class="n">gen_data</span> <span class="o">=</span> <span class="n">global_utils</span><span class="o">.</span><span class="n">GenerateDataset</span><span class="p">(</span><span class="n">x_val_df</span><span class="p">,</span> <span class="n">corpus_wordidx</span><span class="p">)</span> <span class="n">x_val_35_T</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">_</span> <span class="o">=</span> <span class="n">gen_data</span><span class="o">.</span><span class="n">generate_data</span><span class="p">(</span><span class="n">custom_unit_dict_forward_context</span><span class="p">,</span> <span class="n">has_class</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">add_start_end_tag</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span> <span class="n">x_val_35_T_fwd</span> <span class="o">=</span> <span class="n">x_val_35_T</span><span class="o">.</span><span class="n">copy</span><span class="p">()</span> <span class="k">del</span> <span class="n">gen_data</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[17]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Val data forward&quot;</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;text&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_val_35_T_fwd</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_val_35_T_fwd</span><span class="p">[</span><span class="mi">0</span><span class="p">][:</span><span class="mi">10</span><span class="p">])</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>Val data forward text (333,) [352216, 24685, 310762, 88498, 252037, 5234, 97039, 0, 217983, 0] </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[18]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="o">%</span><span class="k">autoreload</span> <span class="kn">import</span> <span class="nn">global_utils</span> <span class="n">gen_data</span> <span class="o">=</span> <span class="n">global_utils</span><span class="o">.</span><span class="n">GenerateDataset</span><span class="p">(</span><span class="n">x_val_df</span><span class="p">,</span> <span class="n">corpus_wordidx</span><span class="p">)</span> <span class="n">x_val_35_T_bwd</span><span class="p">,</span> <span class="n">x_val_35_G</span><span class="p">,</span> <span class="n">x_val_35_V</span><span class="p">,</span> <span class="n">x_val_35_C</span> <span class="o">=</span> <span class="n">gen_data</span><span class="o">.</span><span class="n">generate_data</span><span class="p">(</span><span class="n">custom_unit_dict_backward_context</span><span class="p">,</span> <span class="n">has_class</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">add_start_end_tag</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span> <span class="k">del</span> <span class="n">gen_data</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[19]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Val data backward&quot;</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;text&quot;</span><span class="p">,</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_val_35_T_bwd</span><span class="p">)</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_val_35_T_bwd</span><span class="p">[</span><span class="mi">0</span><span class="p">][</span><span class="o">-</span><span class="mi">10</span><span class="p">:])</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>Val data backward text (333,) [0, 217983, 0, 97039, 5234, 252037, 88498, 310762, 24685, 352216] </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <h3 id="format-data">format data<a class="anchor-link" href="#format-data">&#182;</a></h3> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[20]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">word_unknown_tag_idx</span> <span class="o">=</span> <span class="n">corpus_wordidx</span><span class="p">[</span><span class="s2">&quot;&lt;UNK&gt;&quot;</span><span class="p">]</span> <span class="n">char_unknown_tag_idx</span> <span class="o">=</span> <span class="n">global_utils</span><span class="o">.</span><span class="n">char_unknown_tag_idx</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[21]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">MAX_TEXT_LEN</span> <span class="o">=</span> <span class="mi">5000</span> <span class="c1"># no of words in a document</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <p>to achieve the context words line up as shown below we have to shift the contexts</p> <ol> <li>forward context (left) by 1 forward (remove last element and append &lt;"unk"&gt; in the frontof list)</li> <li>backward context (right) by 1 backward (remove first element and append &lt;"unk"&gt; in the end of list)</li> </ol> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <p><img src="../../images/paper_x12_rcnn.png" alt="model" title="ShowMyImage"></p> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[22]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="k">for</span> <span class="n">doc_i</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="nb">len</span><span class="p">(</span><span class="n">x_train_35_T</span><span class="p">)):</span> <span class="c1"># forward context processing</span> <span class="c1"># remove first word</span> <span class="n">x_train_35_T_fwd</span><span class="p">[</span><span class="n">doc_i</span><span class="p">]</span> <span class="o">=</span> <span class="n">x_train_35_T_fwd</span><span class="p">[</span><span class="n">doc_i</span><span class="p">][</span><span class="mi">1</span><span class="p">:]</span> <span class="c1"># append word_unknown_tag_idx to front</span> <span class="n">x_train_35_T_fwd</span><span class="p">[</span><span class="n">doc_i</span><span class="p">]</span> <span class="o">=</span> <span class="p">[</span><span class="n">word_unknown_tag_idx</span><span class="p">]</span> <span class="o">+</span> <span class="n">x_train_35_T_fwd</span><span class="p">[</span><span class="n">doc_i</span><span class="p">]</span> <span class="c1"># backward context processing</span> <span class="c1"># remove first word</span> <span class="n">x_train_35_T_bwd</span><span class="p">[</span><span class="n">doc_i</span><span class="p">]</span> <span class="o">=</span> <span class="n">x_train_35_T_bwd</span><span class="p">[</span><span class="n">doc_i</span><span class="p">][:</span><span class="o">-</span><span class="mi">1</span><span class="p">]</span> <span class="c1"># append word_unknown_tag_idx to end</span> <span class="n">x_train_35_T_bwd</span><span class="p">[</span><span class="n">doc_i</span><span class="p">]</span> <span class="o">=</span> <span class="n">x_train_35_T_fwd</span><span class="p">[</span><span class="n">doc_i</span><span class="p">]</span> <span class="o">+</span> <span class="p">[</span><span class="n">word_unknown_tag_idx</span><span class="p">]</span> <span class="n">x_train_35_T</span> <span class="o">=</span> <span class="n">pad_sequences</span><span class="p">(</span><span class="n">x_train_35_T</span><span class="p">,</span> <span class="n">maxlen</span><span class="o">=</span><span class="n">MAX_TEXT_LEN</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="n">word_unknown_tag_idx</span><span class="p">,</span> <span class="n">padding</span><span class="o">=</span><span class="s2">&quot;post&quot;</span><span class="p">,</span><span class="n">truncating</span><span class="o">=</span><span class="s2">&quot;post&quot;</span><span class="p">)</span> <span class="n">x_train_35_T_fwd</span> <span class="o">=</span> <span class="n">pad_sequences</span><span class="p">(</span><span class="n">x_train_35_T_fwd</span><span class="p">,</span> <span class="n">maxlen</span><span class="o">=</span><span class="n">MAX_TEXT_LEN</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="n">word_unknown_tag_idx</span><span class="p">,</span> <span class="n">padding</span><span class="o">=</span><span class="s2">&quot;post&quot;</span><span class="p">,</span><span class="n">truncating</span><span class="o">=</span><span class="s2">&quot;post&quot;</span><span class="p">)</span> <span class="n">x_train_35_T_bwd</span> <span class="o">=</span> <span class="n">pad_sequences</span><span class="p">(</span><span class="n">x_train_35_T_bwd</span><span class="p">,</span> <span class="n">maxlen</span><span class="o">=</span><span class="n">MAX_TEXT_LEN</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="n">word_unknown_tag_idx</span><span class="p">,</span> <span class="n">padding</span><span class="o">=</span><span class="s2">&quot;post&quot;</span><span class="p">,</span><span class="n">truncating</span><span class="o">=</span><span class="s2">&quot;post&quot;</span><span class="p">)</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[23]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="nb">print</span><span class="p">(</span><span class="n">x_train_35_T</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_train_35_T_fwd</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_train_35_T_bwd</span><span class="o">.</span><span class="n">shape</span><span class="p">)</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>(2988, 5000) (2988, 5000) (2988, 5000) </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[24]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="k">for</span> <span class="n">doc_i</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="nb">len</span><span class="p">(</span><span class="n">x_val_35_T</span><span class="p">)):</span> <span class="c1"># forward context processing</span> <span class="c1"># remove first word</span> <span class="n">x_val_35_T_fwd</span><span class="p">[</span><span class="n">doc_i</span><span class="p">]</span> <span class="o">=</span> <span class="n">x_val_35_T_fwd</span><span class="p">[</span><span class="n">doc_i</span><span class="p">][</span><span class="mi">1</span><span class="p">:]</span> <span class="c1"># append word_unknown_tag_idx to front</span> <span class="n">x_val_35_T_fwd</span><span class="p">[</span><span class="n">doc_i</span><span class="p">]</span> <span class="o">=</span> <span class="p">[</span><span class="n">word_unknown_tag_idx</span><span class="p">]</span> <span class="o">+</span> <span class="n">x_val_35_T_fwd</span><span class="p">[</span><span class="n">doc_i</span><span class="p">]</span> <span class="c1"># backward context processing</span> <span class="c1"># remove first word</span> <span class="n">x_val_35_T_bwd</span><span class="p">[</span><span class="n">doc_i</span><span class="p">]</span> <span class="o">=</span> <span class="n">x_val_35_T_bwd</span><span class="p">[</span><span class="n">doc_i</span><span class="p">][:</span><span class="o">-</span><span class="mi">1</span><span class="p">]</span> <span class="c1"># append word_unknown_tag_idx to end</span> <span class="n">x_val_35_T_bwd</span><span class="p">[</span><span class="n">doc_i</span><span class="p">]</span> <span class="o">=</span> <span class="n">x_val_35_T_bwd</span><span class="p">[</span><span class="n">doc_i</span><span class="p">]</span> <span class="o">+</span> <span class="p">[</span><span class="n">word_unknown_tag_idx</span><span class="p">]</span> <span class="n">x_val_35_T</span> <span class="o">=</span> <span class="n">pad_sequences</span><span class="p">(</span><span class="n">x_val_35_T</span><span class="p">,</span> <span class="n">maxlen</span><span class="o">=</span><span class="n">MAX_TEXT_LEN</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="n">word_unknown_tag_idx</span><span class="p">,</span> <span class="n">padding</span><span class="o">=</span><span class="s2">&quot;post&quot;</span><span class="p">,</span><span class="n">truncating</span><span class="o">=</span><span class="s2">&quot;post&quot;</span><span class="p">)</span> <span class="n">x_val_35_T_fwd</span> <span class="o">=</span> <span class="n">pad_sequences</span><span class="p">(</span><span class="n">x_val_35_T_fwd</span><span class="p">,</span> <span class="n">maxlen</span><span class="o">=</span><span class="n">MAX_TEXT_LEN</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="n">word_unknown_tag_idx</span><span class="p">,</span> <span class="n">padding</span><span class="o">=</span><span class="s2">&quot;post&quot;</span><span class="p">,</span><span class="n">truncating</span><span class="o">=</span><span class="s2">&quot;post&quot;</span><span class="p">)</span> <span class="n">x_val_35_T_bwd</span> <span class="o">=</span> <span class="n">pad_sequences</span><span class="p">(</span><span class="n">x_val_35_T_bwd</span><span class="p">,</span> <span class="n">maxlen</span><span class="o">=</span><span class="n">MAX_TEXT_LEN</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="n">word_unknown_tag_idx</span><span class="p">,</span> <span class="n">padding</span><span class="o">=</span><span class="s2">&quot;post&quot;</span><span class="p">,</span><span class="n">truncating</span><span class="o">=</span><span class="s2">&quot;post&quot;</span><span class="p">)</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[25]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="nb">print</span><span class="p">(</span><span class="n">x_val_35_T</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_val_35_T_fwd</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_val_35_T_bwd</span><span class="o">.</span><span class="n">shape</span><span class="p">)</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>(333, 5000) (333, 5000) (333, 5000) </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[26]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">MAX_GENE_LEN</span> <span class="o">=</span> <span class="mi">1</span> <span class="n">MAX_VAR_LEN</span> <span class="o">=</span> <span class="mi">4</span> <span class="n">x_train_35_G</span> <span class="o">=</span> <span class="n">pad_sequences</span><span class="p">(</span><span class="n">x_train_35_G</span><span class="p">,</span> <span class="n">maxlen</span><span class="o">=</span><span class="n">MAX_GENE_LEN</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="n">word_unknown_tag_idx</span><span class="p">)</span> <span class="n">x_train_35_V</span> <span class="o">=</span> <span class="n">pad_sequences</span><span class="p">(</span><span class="n">x_train_35_V</span><span class="p">,</span> <span class="n">maxlen</span><span class="o">=</span><span class="n">MAX_VAR_LEN</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="n">word_unknown_tag_idx</span><span class="p">)</span> <span class="n">x_val_35_G</span> <span class="o">=</span> <span class="n">pad_sequences</span><span class="p">(</span><span class="n">x_val_35_G</span><span class="p">,</span> <span class="n">maxlen</span><span class="o">=</span><span class="n">MAX_GENE_LEN</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="n">word_unknown_tag_idx</span><span class="p">)</span> <span class="n">x_val_35_V</span> <span class="o">=</span> <span class="n">pad_sequences</span><span class="p">(</span><span class="n">x_val_35_V</span><span class="p">,</span> <span class="n">maxlen</span><span class="o">=</span><span class="n">MAX_VAR_LEN</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="n">word_unknown_tag_idx</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="n">x_train_35_G</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_train_35_V</span><span class="o">.</span><span class="n">shape</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="n">x_val_35_G</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_val_35_V</span><span class="o">.</span><span class="n">shape</span><span class="p">)</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>(2988, 1) (2988, 4) (333, 1) (333, 4) </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <p>keras np_utils.to_categorical expects zero index categorical variables</p> <p><a href="https://github.com/fchollet/keras/issues/570">https://github.com/fchollet/keras/issues/570</a></p> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[27]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">x_train_35_C</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_train_35_C</span><span class="p">)</span> <span class="o">-</span> <span class="mi">1</span> <span class="n">x_val_35_C</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_val_35_C</span><span class="p">)</span> <span class="o">-</span> <span class="mi">1</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[28]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">x_train_35_C</span> <span class="o">=</span> <span class="n">np_utils</span><span class="o">.</span><span class="n">to_categorical</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_train_35_C</span><span class="p">),</span> <span class="mi">9</span><span class="p">)</span> <span class="n">x_val_35_C</span> <span class="o">=</span> <span class="n">np_utils</span><span class="o">.</span><span class="n">to_categorical</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">x_val_35_C</span><span class="p">),</span> <span class="mi">9</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="n">x_train_35_C</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">x_val_35_C</span><span class="o">.</span><span class="n">shape</span><span class="p">)</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>(2988, 9) (333, 9) </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <h2 id="Embedding-layer">Embedding layer<a class="anchor-link" href="#Embedding-layer">&#182;</a></h2> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <h3 id="for-words">for words<a class="anchor-link" href="#for-words">&#182;</a></h3> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[21]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">WORD_EMB_SIZE</span> <span class="o">=</span> <span class="mi">200</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[22]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="o">%</span><span class="k">autoreload</span> <span class="kn">import</span> <span class="nn">global_utils</span> <span class="n">ft_file_path</span> <span class="o">=</span> <span class="s2">&quot;/home/bicepjai/Projects/Deep-Survey-Text-Classification/data_prep/processed/stage1/pretrained_word_vectors/ft_sg_200d_50e.vec&quot;</span> <span class="n">trained_embeddings</span> <span class="o">=</span> <span class="n">global_utils</span><span class="o">.</span><span class="n">get_embeddings_from_ft</span><span class="p">(</span><span class="n">ft_file_path</span><span class="p">,</span> <span class="n">WORD_EMB_SIZE</span><span class="p">,</span> <span class="n">corpus_vocab_list</span><span class="p">)</span> <span class="n">trained_embeddings</span><span class="o">.</span><span class="n">shape</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt output_prompt">Out[22]:</div> <div class="output_text output_subarea output_execute_result"> <pre>(352220, 200)</pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <h3 id="for-characters">for characters<a class="anchor-link" href="#for-characters">&#182;</a></h3> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[94]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">CHAR_EMB_SIZE</span> <span class="o">=</span> <span class="mi">64</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[95]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">char_embeddings</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">random</span><span class="o">.</span><span class="n">randn</span><span class="p">(</span><span class="n">global_utils</span><span class="o">.</span><span class="n">CHAR_ALPHABETS_LEN</span><span class="p">,</span> <span class="n">CHAR_EMB_SIZE</span><span class="p">)</span> <span class="n">char_embeddings</span><span class="o">.</span><span class="n">shape</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt output_prompt">Out[95]:</div> <div class="output_text output_subarea output_execute_result"> <pre>(75, 64)</pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <h1 id="Models">Models<a class="anchor-link" href="#Models">&#182;</a></h1> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <h2 id="prep">prep<a class="anchor-link" href="#prep">&#182;</a></h2> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[23]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="o">%</span><span class="k">autoreload</span> <span class="kn">import</span> <span class="nn">tensorflow.contrib.keras</span> <span class="k">as</span> <span class="nn">keras</span> <span class="kn">import</span> <span class="nn">tensorflow</span> <span class="k">as</span> <span class="nn">tf</span> <span class="kn">from</span> <span class="nn">keras</span> <span class="k">import</span> <span class="n">backend</span> <span class="k">as</span> <span class="n">K</span> <span class="kn">from</span> <span class="nn">keras.engine</span> <span class="k">import</span> <span class="n">Layer</span><span class="p">,</span> <span class="n">InputSpec</span><span class="p">,</span> <span class="n">InputLayer</span> <span class="kn">from</span> <span class="nn">keras.models</span> <span class="k">import</span> <span class="n">Model</span><span class="p">,</span> <span class="n">Sequential</span> <span class="kn">from</span> <span class="nn">keras.layers</span> <span class="k">import</span> <span class="n">Dropout</span><span class="p">,</span> <span class="n">Embedding</span><span class="p">,</span> <span class="n">concatenate</span> <span class="kn">from</span> <span class="nn">keras.layers</span> <span class="k">import</span> <span class="n">Conv1D</span><span class="p">,</span> <span class="n">MaxPool1D</span><span class="p">,</span> <span class="n">Conv2D</span><span class="p">,</span> <span class="n">MaxPool2D</span><span class="p">,</span> <span class="n">ZeroPadding1D</span><span class="p">,</span> <span class="n">GlobalMaxPool1D</span> <span class="kn">from</span> <span class="nn">keras.layers</span> <span class="k">import</span> <span class="n">Dense</span><span class="p">,</span> <span class="n">Input</span><span class="p">,</span> <span class="n">Flatten</span><span class="p">,</span> <span class="n">BatchNormalization</span> <span class="kn">from</span> <span class="nn">keras.layers</span> <span class="k">import</span> <span class="n">Concatenate</span><span class="p">,</span> <span class="n">Dot</span><span class="p">,</span> <span class="n">Merge</span><span class="p">,</span> <span class="n">Multiply</span><span class="p">,</span> <span class="n">RepeatVector</span> <span class="kn">from</span> <span class="nn">keras.layers</span> <span class="k">import</span> <span class="n">Bidirectional</span><span class="p">,</span> <span class="n">TimeDistributed</span> <span class="kn">from</span> <span class="nn">keras.layers</span> <span class="k">import</span> <span class="n">SimpleRNN</span><span class="p">,</span> <span class="n">LSTM</span><span class="p">,</span> <span class="n">GRU</span><span class="p">,</span> <span class="n">Lambda</span><span class="p">,</span> <span class="n">Permute</span> <span class="kn">from</span> <span class="nn">keras.layers.core</span> <span class="k">import</span> <span class="n">Reshape</span><span class="p">,</span> <span class="n">Activation</span> <span class="kn">from</span> <span class="nn">keras.optimizers</span> <span class="k">import</span> <span class="n">Adam</span> <span class="kn">from</span> <span class="nn">keras.callbacks</span> <span class="k">import</span> <span class="n">ModelCheckpoint</span><span class="p">,</span><span class="n">EarlyStopping</span><span class="p">,</span><span class="n">TensorBoard</span> <span class="kn">from</span> <span class="nn">keras.constraints</span> <span class="k">import</span> <span class="n">maxnorm</span> <span class="kn">from</span> <span class="nn">keras.regularizers</span> <span class="k">import</span> <span class="n">l2</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <h2 id="model_1:-paper">model_1: paper<a class="anchor-link" href="#model_1:-paper">&#182;</a></h2> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <h3 id="CNN-model">CNN model<a class="anchor-link" href="#CNN-model">&#182;</a></h3> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[25]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">text_input_layer</span> <span class="o">=</span> <span class="n">Input</span><span class="p">(</span><span class="n">shape</span><span class="o">=</span><span class="p">(</span><span class="n">MAX_SENT_LEN</span><span class="p">,),</span> <span class="n">dtype</span><span class="o">=</span><span class="s1">&#39;int32&#39;</span><span class="p">)</span> <span class="n">doc_embedding</span> <span class="o">=</span> <span class="n">Embedding</span><span class="p">(</span><span class="n">vocab_size</span><span class="p">,</span> <span class="n">WORD_EMB_SIZE</span><span class="p">,</span> <span class="n">weights</span><span class="o">=</span><span class="p">[</span><span class="n">trained_embeddings</span><span class="p">],</span> <span class="n">input_length</span><span class="o">=</span><span class="n">MAX_SENT_LEN</span><span class="p">,</span> <span class="n">trainable</span><span class="o">=</span><span class="kc">True</span><span class="p">)(</span><span class="n">text_input_layer</span><span class="p">)</span> <span class="n">convs</span> <span class="o">=</span> <span class="p">[]</span> <span class="n">filter_sizes</span> <span class="o">=</span> <span class="p">[</span><span class="mi">3</span><span class="p">,</span> <span class="mi">4</span><span class="p">,</span> <span class="mi">5</span><span class="p">]</span> <span class="k">for</span> <span class="n">filter_size</span> <span class="ow">in</span> <span class="n">filter_sizes</span><span class="p">:</span> <span class="n">l_conv</span> <span class="o">=</span> <span class="n">Conv1D</span><span class="p">(</span><span class="n">filters</span><span class="o">=</span><span class="mi">64</span><span class="p">,</span> <span class="n">kernel_size</span><span class="o">=</span><span class="n">filter_size</span><span class="p">,</span> <span class="n">padding</span><span class="o">=</span><span class="s1">&#39;valid&#39;</span><span class="p">,</span> <span class="n">activation</span><span class="o">=</span><span class="s1">&#39;relu&#39;</span><span class="p">)(</span><span class="n">doc_embedding</span><span class="p">)</span> <span class="n">l_pool</span> <span class="o">=</span> <span class="n">MaxPool1D</span><span class="p">(</span><span class="n">filter_size</span><span class="p">)(</span><span class="n">l_conv</span><span class="p">)</span> <span class="n">convs</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">l_pool</span><span class="p">)</span> <span class="n">cnn_feature_maps</span> <span class="o">=</span> <span class="n">Concatenate</span><span class="p">(</span><span class="n">axis</span><span class="o">=</span><span class="mi">1</span><span class="p">)(</span><span class="n">convs</span><span class="p">)</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <h3 id="LSTM">LSTM<a class="anchor-link" href="#LSTM">&#182;</a></h3> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[26]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">sentence_encoder</span> <span class="o">=</span> <span class="n">LSTM</span><span class="p">(</span><span class="mi">64</span><span class="p">,</span><span class="n">return_sequences</span><span class="o">=</span><span class="kc">False</span><span class="p">)(</span><span class="n">cnn_feature_maps</span><span class="p">)</span> <span class="n">fc_layer</span> <span class="o">=</span><span class="n">Dense</span><span class="p">(</span><span class="mi">128</span><span class="p">,</span> <span class="n">activation</span><span class="o">=</span><span class="s2">&quot;relu&quot;</span><span class="p">)(</span><span class="n">sentence_encoder</span><span class="p">)</span> <span class="n">output_layer</span> <span class="o">=</span> <span class="n">Dense</span><span class="p">(</span><span class="mi">9</span><span class="p">,</span><span class="n">activation</span><span class="o">=</span><span class="s2">&quot;softmax&quot;</span><span class="p">)(</span><span class="n">fc_layer</span><span class="p">)</span> <span class="n">model_1</span> <span class="o">=</span> <span class="n">Model</span><span class="p">(</span><span class="n">inputs</span><span class="o">=</span><span class="p">[</span><span class="n">text_input_layer</span><span class="p">],</span> <span class="n">outputs</span><span class="o">=</span><span class="p">[</span><span class="n">output_layer</span><span class="p">])</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[27]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">model_1</span><span class="o">.</span><span class="n">compile</span><span class="p">(</span><span class="n">loss</span><span class="o">=</span><span class="s1">&#39;categorical_crossentropy&#39;</span><span class="p">,</span> <span class="n">optimizer</span><span class="o">=</span><span class="n">Adam</span><span class="p">(),</span> <span class="n">metrics</span><span class="o">=</span><span class="p">[</span><span class="s1">&#39;categorical_accuracy&#39;</span><span class="p">])</span> <span class="n">model_1</span><span class="o">.</span><span class="n">summary</span><span class="p">()</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>____________________________________________________________________________________________________ Layer (type) Output Shape Param # Connected to ==================================================================================================== input_1 (InputLayer) (None, 60) 0 ____________________________________________________________________________________________________ embedding_1 (Embedding) (None, 60, 200) 70444000 input_1[0][0] ____________________________________________________________________________________________________ conv1d_1 (Conv1D) (None, 58, 64) 38464 embedding_1[0][0] ____________________________________________________________________________________________________ conv1d_2 (Conv1D) (None, 57, 64) 51264 embedding_1[0][0] ____________________________________________________________________________________________________ conv1d_3 (Conv1D) (None, 56, 64) 64064 embedding_1[0][0] ____________________________________________________________________________________________________ max_pooling1d_1 (MaxPooling1D) (None, 19, 64) 0 conv1d_1[0][0] ____________________________________________________________________________________________________ max_pooling1d_2 (MaxPooling1D) (None, 14, 64) 0 conv1d_2[0][0] ____________________________________________________________________________________________________ max_pooling1d_3 (MaxPooling1D) (None, 11, 64) 0 conv1d_3[0][0] ____________________________________________________________________________________________________ concatenate_1 (Concatenate) (None, 44, 64) 0 max_pooling1d_1[0][0] max_pooling1d_2[0][0] max_pooling1d_3[0][0] ____________________________________________________________________________________________________ lstm_1 (LSTM) (None, 64) 33024 concatenate_1[0][0] ____________________________________________________________________________________________________ dense_1 (Dense) (None, 128) 8320 lstm_1[0][0] ____________________________________________________________________________________________________ dense_2 (Dense) (None, 9) 1161 dense_1[0][0] ==================================================================================================== Total params: 70,640,297 Trainable params: 70,640,297 Non-trainable params: 0 ____________________________________________________________________________________________________ </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt"> </div> <div class="inner_cell"> <div class="text_cell_render border-box-sizing rendered_html"> <h3 id="training">training<a class="anchor-link" href="#training">&#182;</a></h3> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[28]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="o">%</span><span class="k">rm</span> -rf ./tb_graphs/* </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[29]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">tb_callback</span> <span class="o">=</span> <span class="n">keras</span><span class="o">.</span><span class="n">callbacks</span><span class="o">.</span><span class="n">TensorBoard</span><span class="p">(</span><span class="n">log_dir</span><span class="o">=</span><span class="s1">&#39;./tb_graphs&#39;</span><span class="p">,</span> <span class="n">histogram_freq</span><span class="o">=</span><span class="mi">0</span><span class="p">,</span> <span class="n">write_graph</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">write_images</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[30]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="n">checkpointer</span> <span class="o">=</span> <span class="n">ModelCheckpoint</span><span class="p">(</span><span class="n">filepath</span><span class="o">=</span><span class="s2">&quot;model_1_weights.hdf5&quot;</span><span class="p">,</span> <span class="n">verbose</span><span class="o">=</span><span class="mi">1</span><span class="p">,</span> <span class="n">monitor</span><span class="o">=</span><span class="s2">&quot;val_categorical_accuracy&quot;</span><span class="p">,</span> <span class="n">save_best_only</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">mode</span><span class="o">=</span><span class="s2">&quot;max&quot;</span><span class="p">)</span> </pre></div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[32]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="k">with</span> <span class="n">tf</span><span class="o">.</span><span class="n">Session</span><span class="p">()</span> <span class="k">as</span> <span class="n">sess</span><span class="p">:</span> <span class="c1"># model = keras.models.load_model(&#39;current_model.h5&#39;)</span> <span class="n">sess</span><span class="o">.</span><span class="n">run</span><span class="p">(</span><span class="n">tf</span><span class="o">.</span><span class="n">global_variables_initializer</span><span class="p">())</span> <span class="k">try</span><span class="p">:</span> <span class="n">model_1</span><span class="o">.</span><span class="n">load_weights</span><span class="p">(</span><span class="s2">&quot;model_1_weights.hdf5&quot;</span><span class="p">)</span> <span class="k">except</span> <span class="ne">IOError</span> <span class="k">as</span> <span class="n">ioe</span><span class="p">:</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;no checkpoints available !&quot;</span><span class="p">)</span> <span class="n">model_1</span><span class="o">.</span><span class="n">fit</span><span class="p">(</span><span class="n">x_train_21_T</span><span class="p">,</span> <span class="n">x_train_21_C</span><span class="p">,</span> <span class="n">validation_data</span><span class="o">=</span><span class="p">(</span><span class="n">x_val_21_T</span><span class="p">,</span> <span class="n">x_val_21_C</span><span class="p">),</span> <span class="n">epochs</span><span class="o">=</span><span class="mi">5</span><span class="p">,</span> <span class="n">batch_size</span><span class="o">=</span><span class="mi">1024</span><span class="p">,</span> <span class="n">shuffle</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">callbacks</span><span class="o">=</span><span class="p">[</span><span class="n">tb_callback</span><span class="p">,</span><span class="n">checkpointer</span><span class="p">])</span> <span class="c1">#model.save(&#39;current_sent_model.h5&#39;)</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>no checkpoints available ! Train on 1086419 samples, validate on 128341 samples Epoch 1/5 1085440/1086419 [============================&gt;.] - ETA: 0s - loss: 1.1912 - categorical_accuracy: 0.5596Epoch 00000: val_categorical_accuracy improved from -inf to 0.57420, saving model to model_1_weights.hdf5 1086419/1086419 [==============================] - 128s - loss: 1.1910 - categorical_accuracy: 0.5597 - val_loss: 1.2076 - val_categorical_accuracy: 0.5742 Epoch 2/5 1085440/1086419 [============================&gt;.] - ETA: 0s - loss: 0.8479 - categorical_accuracy: 0.6728Epoch 00001: val_categorical_accuracy improved from 0.57420 to 0.58560, saving model to model_1_weights.hdf5 1086419/1086419 [==============================] - 125s - loss: 0.8478 - categorical_accuracy: 0.6729 - val_loss: 1.2121 - val_categorical_accuracy: 0.5856 Epoch 3/5 1085440/1086419 [============================&gt;.] - ETA: 0s - loss: 0.7259 - categorical_accuracy: 0.7070Epoch 00002: val_categorical_accuracy improved from 0.58560 to 0.59025, saving model to model_1_weights.hdf5 1086419/1086419 [==============================] - 123s - loss: 0.7259 - categorical_accuracy: 0.7070 - val_loss: 1.2952 - val_categorical_accuracy: 0.5902 Epoch 4/5 1085440/1086419 [============================&gt;.] - ETA: 0s - loss: 0.6584 - categorical_accuracy: 0.7261Epoch 00003: val_categorical_accuracy improved from 0.59025 to 0.59409, saving model to model_1_weights.hdf5 1086419/1086419 [==============================] - 121s - loss: 0.6584 - categorical_accuracy: 0.7261 - val_loss: 1.3969 - val_categorical_accuracy: 0.5941 Epoch 5/5 1085440/1086419 [============================&gt;.] - ETA: 0s - loss: 0.6160 - categorical_accuracy: 0.7381Epoch 00004: val_categorical_accuracy improved from 0.59409 to 0.59551, saving model to model_1_weights.hdf5 1086419/1086419 [==============================] - 129s - loss: 0.6160 - categorical_accuracy: 0.7381 - val_loss: 1.4965 - val_categorical_accuracy: 0.5955 </pre> </div> </div> </div> </div> </div> <div class="cell border-box-sizing code_cell rendered"> <div class="input"> <div class="prompt input_prompt">In&nbsp;[33]:</div> <div class="inner_cell"> <div class="input_area"> <div class=" highlight hl-ipython3"><pre><span></span><span class="k">with</span> <span class="n">tf</span><span class="o">.</span><span class="n">Session</span><span class="p">()</span> <span class="k">as</span> <span class="n">sess</span><span class="p">:</span> <span class="c1"># model = keras.models.load_model(&#39;current_model.h5&#39;)</span> <span class="n">sess</span><span class="o">.</span><span class="n">run</span><span class="p">(</span><span class="n">tf</span><span class="o">.</span><span class="n">global_variables_initializer</span><span class="p">())</span> <span class="k">try</span><span class="p">:</span> <span class="n">model_1</span><span class="o">.</span><span class="n">load_weights</span><span class="p">(</span><span class="s2">&quot;model_1_weights.hdf5&quot;</span><span class="p">)</span> <span class="k">except</span> <span class="ne">IOError</span> <span class="k">as</span> <span class="n">ioe</span><span class="p">:</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;no checkpoints available !&quot;</span><span class="p">)</span> <span class="n">model_1</span><span class="o">.</span><span class="n">fit</span><span class="p">(</span><span class="n">x_train_21_T</span><span class="p">,</span> <span class="n">x_train_21_C</span><span class="p">,</span> <span class="n">validation_data</span><span class="o">=</span><span class="p">(</span><span class="n">x_val_21_T</span><span class="p">,</span> <span class="n">x_val_21_C</span><span class="p">),</span> <span class="n">epochs</span><span class="o">=</span><span class="mi">5</span><span class="p">,</span> <span class="n">batch_size</span><span class="o">=</span><span class="mi">1024</span><span class="p">,</span> <span class="n">shuffle</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">callbacks</span><span class="o">=</span><span class="p">[</span><span class="n">tb_callback</span><span class="p">,</span><span class="n">checkpointer</span><span class="p">])</span> <span class="c1">#model.save(&#39;current_sent_model.h5&#39;)</span> </pre></div> </div> </div> </div> <div class="output_wrapper"> <div class="output"> <div class="output_area"> <div class="prompt"></div> <div class="output_subarea output_stream output_stdout output_text"> <pre>Train on 1086419 samples, validate on 128341 samples Epoch 1/5 1085440/1086419 [============================&gt;.] - ETA: 0s - loss: 0.5938 - categorical_accuracy: 0.7461Epoch 00000: val_categorical_accuracy did not improve 1086419/1086419 [==============================] - 127s - loss: 0.5938 - categorical_accuracy: 0.7461 - val_loss: 1.5182 - val_categorical_accuracy: 0.5923 Epoch 2/5 1085440/1086419 [============================&gt;.] - ETA: 0s - loss: 0.5685 - categorical_accuracy: 0.7531Epoch 00001: val_categorical_accuracy improved from 0.59551 to 0.59988, saving model to model_1_weights.hdf5 1086419/1086419 [==============================] - 124s - loss: 0.5685 - categorical_accuracy: 0.7530 - val_loss: 1.6157 - val_categorical_accuracy: 0.5999 Epoch 3/5 1085440/1086419 [============================&gt;.] - ETA: 0s - loss: 0.5512 - categorical_accuracy: 0.7577Epoch 00002: val_categorical_accuracy did not improve 1086419/1086419 [==============================] - 126s - loss: 0.5512 - categorical_accuracy: 0.7577 - val_loss: 1.7300 - val_categorical_accuracy: 0.5998 Epoch 4/5 1085440/1086419 [============================&gt;.] - ETA: 0s - loss: 0.5379 - categorical_accuracy: 0.7616Epoch 00003: val_categorical_accuracy did not improve 1086419/1086419 [==============================] - 124s - loss: 0.5379 - categorical_accuracy: 0.7616 - val_loss: 1.8316 - val_categorical_accuracy: 0.5980 Epoch 5/5 1085440/1086419 [============================&gt;.] - ETA: 0s - loss: 0.5278 - categorical_accuracy: 0.7645Epoch 00004: val_categorical_accuracy did not improve 1086419/1086419 [==============================] - 127s - loss: 0.5278 - categorical_accuracy: 0.7645 - val_loss: 1.9103 - val_categorical_accuracy: 0.5908 </pre> </div> </div> </div> </div> </div> </div> </div> </body> </html>
bicepjai/Deep-Survey-Text-Classification
deep_models/paper_15_comb_cnn_rnn/models.html
HTML
mit
490,997
--- layout: post title: Crash Record namevar: [Crash edit, Color smearing after an editing cut] categories: video analog tags: [Analog, Video, Production Error, Color smearing, Editing cut] formats: [DV] lang: English --- The _Compendium of Image Errors in Analogue Video_ describes this as “Color Smearing After an Editing Cut.”<sup><a href="#fn1" id="ref1">1</a></sup> This artifact describes the abrupt start to a recorded program that was created on a previously recorded segment of tape without the use of flying erase heads or advanced insert edit technology. Between two shots in sequence, a band of semi-opaque color moves at a constant rate from top-to-bottom in the video image. After it rolls out of the image, the artifact does not reappear. There may be a small bit of accompanying audio from the first image heard just before or after the second image is displayed. This is a common artifact in recordings made using consumer grade video recorders because the erase heads on these machines are fixed in a stationary position in the tape path, just before the video drum scanner. As the tape moves past the erase head and comes into contact with the video record heads, an image is recorded. However, there is a small bit of tape that lies between the stationary erase head and the video record head, and if there is content already recorded on a tape and an edit is made without significant pre-roll to account for the dead space in the record path, old video will be left at the edit point. This leftover video displays as color smearing. Gfeller _et al._ offer further explanation: “The image error moves down the screen because the head gap on the erase head is oriented vertically; as the tape comes into contact with the erase head, adjacent helical tracks (fields) are erased at a slightly different height on each track, causing the transition from the affected to the unaffected picture areas to move down the screen field by field.”<sup><a href="#fn2" id="ref2">2</a></sup> VTRs used for professional and non-linear editing employ heads that can be perfectly timed or synchronized to an incoming video signal, so that the edit point is field accurate and clean. ## Can it be fixed? No, this artifact is part of the video signal and there is no way to eliminate or correct it. ## Example(s) <iframe src="https://archive.org/embed/AVAAHi8mmCrashRecord" width="560" height="315" frameborder="0" webkitallowfullscreen="true" mozallowfullscreen="true" allowfullscreen></iframe><br> <sub>Hi8mm Crash Record artifact</sub> ## References <sup id="fn1">1. Johannes Gfeller, Agathe Jarczyk, and Joanna Phillips, “Color Smearing After An Editing Cut” in _Compendium of Image Errors in Analogue Video_ (edited by Swiss Institute for Art Research, Zürich: Scheidegger & Spiess, 2012), p.64, video 12. <a href="#ref1" title="Jump back to footnote 1 in the text.">↩</a></sup> <sup id="fn2">2. Gfeller et al., “Color Smearing After An Editing Cut.” <a href="#ref2" title="Jump back to footnote 2 in the text.">↩</a></sup>
bavc/avaa
_artifacts/crash_record.md
Markdown
mit
3,063
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Solutions._5 { /// <summary> /// Write a function that takes a 64-bit word and returns that 64-bit word but with bits reversed. /// </summary> public class _5_3 { public static long Run(long data) { //NOTE: book says to precompute and use a lookup table long reversed = 0; for(int i = 0; i < 64; i++) { //push bit of concern to front and isolate long bit = (data >> i) & 1; //set it at the appropriate reverse position reversed ^= (bit << (63-i)); } return reversed; } } }
AronDavis/EPI
Solutions/_5/_5_3.cs
C#
mit
769
<?php namespace Resource\WebSecurityBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; class DefaultController extends Controller { public function indexAction($name) { return $this->render('ResourceWebSecurityBundle:Default:index.html.twig', array('name' => $name)); } }
etouraille/reSym
src/Resource/WebSecurityBundle/Controller/DefaultController.php
PHP
mit
321
package magina
ruizeng/magina
magina.go
GO
mit
15
// flow-typed signature: 0c7db1e8b71051e3b01740a6f8c4fbdd // flow-typed version: <<STUB>>/webpack_v3.8.1/flow_v0.79.1 /** * This is an autogenerated libdef stub for: * * 'webpack' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with the * community by sending a pull request to: * https://github.com/flowtype/flow-typed */ declare module 'webpack' { declare module.exports: any; } /** * We include stubs for each file inside this npm package in case you need to * require those files directly. Feel free to delete any files that aren't * needed. */ declare module 'webpack/bin/config-optimist' { declare module.exports: any; } declare module 'webpack/bin/config-yargs' { declare module.exports: any; } declare module 'webpack/bin/convert-argv' { declare module.exports: any; } declare module 'webpack/bin/webpack' { declare module.exports: any; } declare module 'webpack/buildin/amd-define' { declare module.exports: any; } declare module 'webpack/buildin/amd-options' { declare module.exports: any; } declare module 'webpack/buildin/global' { declare module.exports: any; } declare module 'webpack/buildin/harmony-module' { declare module.exports: any; } declare module 'webpack/buildin/module' { declare module.exports: any; } declare module 'webpack/buildin/system' { declare module.exports: any; } declare module 'webpack/hot/dev-server' { declare module.exports: any; } declare module 'webpack/hot/emitter' { declare module.exports: any; } declare module 'webpack/hot/log-apply-result' { declare module.exports: any; } declare module 'webpack/hot/log' { declare module.exports: any; } declare module 'webpack/hot/only-dev-server' { declare module.exports: any; } declare module 'webpack/hot/poll' { declare module.exports: any; } declare module 'webpack/hot/signal' { declare module.exports: any; } declare module 'webpack/lib/AmdMainTemplatePlugin' { declare module.exports: any; } declare module 'webpack/lib/APIPlugin' { declare module.exports: any; } declare module 'webpack/lib/AsyncDependenciesBlock' { declare module.exports: any; } declare module 'webpack/lib/AsyncDependencyToInitialChunkWarning' { declare module.exports: any; } declare module 'webpack/lib/AutomaticPrefetchPlugin' { declare module.exports: any; } declare module 'webpack/lib/BannerPlugin' { declare module.exports: any; } declare module 'webpack/lib/BasicEvaluatedExpression' { declare module.exports: any; } declare module 'webpack/lib/CachePlugin' { declare module.exports: any; } declare module 'webpack/lib/CaseSensitiveModulesWarning' { declare module.exports: any; } declare module 'webpack/lib/Chunk' { declare module.exports: any; } declare module 'webpack/lib/ChunkRenderError' { declare module.exports: any; } declare module 'webpack/lib/ChunkTemplate' { declare module.exports: any; } declare module 'webpack/lib/compareLocations' { declare module.exports: any; } declare module 'webpack/lib/CompatibilityPlugin' { declare module.exports: any; } declare module 'webpack/lib/Compilation' { declare module.exports: any; } declare module 'webpack/lib/Compiler' { declare module.exports: any; } declare module 'webpack/lib/ConstPlugin' { declare module.exports: any; } declare module 'webpack/lib/ContextExclusionPlugin' { declare module.exports: any; } declare module 'webpack/lib/ContextModule' { declare module.exports: any; } declare module 'webpack/lib/ContextModuleFactory' { declare module.exports: any; } declare module 'webpack/lib/ContextReplacementPlugin' { declare module.exports: any; } declare module 'webpack/lib/DefinePlugin' { declare module.exports: any; } declare module 'webpack/lib/DelegatedModule' { declare module.exports: any; } declare module 'webpack/lib/DelegatedModuleFactoryPlugin' { declare module.exports: any; } declare module 'webpack/lib/DelegatedPlugin' { declare module.exports: any; } declare module 'webpack/lib/dependencies/AMDDefineDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/AMDDefineDependencyParserPlugin' { declare module.exports: any; } declare module 'webpack/lib/dependencies/AMDPlugin' { declare module.exports: any; } declare module 'webpack/lib/dependencies/AMDRequireArrayDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/AMDRequireContextDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/AMDRequireDependenciesBlock' { declare module.exports: any; } declare module 'webpack/lib/dependencies/AMDRequireDependenciesBlockParserPlugin' { declare module.exports: any; } declare module 'webpack/lib/dependencies/AMDRequireDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/AMDRequireItemDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/CommonJsPlugin' { declare module.exports: any; } declare module 'webpack/lib/dependencies/CommonJsRequireContextDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/CommonJsRequireDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/CommonJsRequireDependencyParserPlugin' { declare module.exports: any; } declare module 'webpack/lib/dependencies/ConstDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/ContextDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/ContextDependencyHelpers' { declare module.exports: any; } declare module 'webpack/lib/dependencies/ContextDependencyTemplateAsId' { declare module.exports: any; } declare module 'webpack/lib/dependencies/ContextDependencyTemplateAsRequireCall' { declare module.exports: any; } declare module 'webpack/lib/dependencies/ContextElementDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/CriticalDependencyWarning' { declare module.exports: any; } declare module 'webpack/lib/dependencies/DelegatedExportsDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/DelegatedSourceDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/DepBlockHelpers' { declare module.exports: any; } declare module 'webpack/lib/dependencies/DllEntryDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/getFunctionExpression' { declare module.exports: any; } declare module 'webpack/lib/dependencies/HarmonyAcceptDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/HarmonyAcceptImportDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/HarmonyCompatibilityDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/HarmonyDetectionParserPlugin' { declare module.exports: any; } declare module 'webpack/lib/dependencies/HarmonyExportDependencyParserPlugin' { declare module.exports: any; } declare module 'webpack/lib/dependencies/HarmonyExportExpressionDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/HarmonyExportHeaderDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/HarmonyExportImportedSpecifierDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/HarmonyExportSpecifierDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/HarmonyImportDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/HarmonyImportDependencyParserPlugin' { declare module.exports: any; } declare module 'webpack/lib/dependencies/HarmonyImportSpecifierDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/HarmonyModulesHelpers' { declare module.exports: any; } declare module 'webpack/lib/dependencies/HarmonyModulesPlugin' { declare module.exports: any; } declare module 'webpack/lib/dependencies/ImportContextDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/ImportDependenciesBlock' { declare module.exports: any; } declare module 'webpack/lib/dependencies/ImportDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/ImportEagerContextDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/ImportEagerDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/ImportLazyContextDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/ImportLazyOnceContextDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/ImportParserPlugin' { declare module.exports: any; } declare module 'webpack/lib/dependencies/ImportPlugin' { declare module.exports: any; } declare module 'webpack/lib/dependencies/ImportWeakContextDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/ImportWeakDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/LoaderDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/LoaderPlugin' { declare module.exports: any; } declare module 'webpack/lib/dependencies/LocalModule' { declare module.exports: any; } declare module 'webpack/lib/dependencies/LocalModuleDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/LocalModulesHelpers' { declare module.exports: any; } declare module 'webpack/lib/dependencies/ModuleDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/ModuleDependencyTemplateAsId' { declare module.exports: any; } declare module 'webpack/lib/dependencies/ModuleDependencyTemplateAsRequireId' { declare module.exports: any; } declare module 'webpack/lib/dependencies/ModuleHotAcceptDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/ModuleHotDeclineDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/MultiEntryDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/NullDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/PrefetchDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/RequireContextDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/RequireContextDependencyParserPlugin' { declare module.exports: any; } declare module 'webpack/lib/dependencies/RequireContextPlugin' { declare module.exports: any; } declare module 'webpack/lib/dependencies/RequireEnsureDependenciesBlock' { declare module.exports: any; } declare module 'webpack/lib/dependencies/RequireEnsureDependenciesBlockParserPlugin' { declare module.exports: any; } declare module 'webpack/lib/dependencies/RequireEnsureDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/RequireEnsureItemDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/RequireEnsurePlugin' { declare module.exports: any; } declare module 'webpack/lib/dependencies/RequireHeaderDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/RequireIncludeDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/RequireIncludeDependencyParserPlugin' { declare module.exports: any; } declare module 'webpack/lib/dependencies/RequireIncludePlugin' { declare module.exports: any; } declare module 'webpack/lib/dependencies/RequireResolveContextDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/RequireResolveDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/RequireResolveDependencyParserPlugin' { declare module.exports: any; } declare module 'webpack/lib/dependencies/RequireResolveHeaderDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/SingleEntryDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/SystemPlugin' { declare module.exports: any; } declare module 'webpack/lib/dependencies/UnsupportedDependency' { declare module.exports: any; } declare module 'webpack/lib/dependencies/WebpackMissingModule' { declare module.exports: any; } declare module 'webpack/lib/DependenciesBlock' { declare module.exports: any; } declare module 'webpack/lib/DependenciesBlockVariable' { declare module.exports: any; } declare module 'webpack/lib/Dependency' { declare module.exports: any; } declare module 'webpack/lib/DllEntryPlugin' { declare module.exports: any; } declare module 'webpack/lib/DllModule' { declare module.exports: any; } declare module 'webpack/lib/DllModuleFactory' { declare module.exports: any; } declare module 'webpack/lib/DllPlugin' { declare module.exports: any; } declare module 'webpack/lib/DllReferencePlugin' { declare module.exports: any; } declare module 'webpack/lib/DynamicEntryPlugin' { declare module.exports: any; } declare module 'webpack/lib/EntryModuleNotFoundError' { declare module.exports: any; } declare module 'webpack/lib/EntryOptionPlugin' { declare module.exports: any; } declare module 'webpack/lib/Entrypoint' { declare module.exports: any; } declare module 'webpack/lib/EnvironmentPlugin' { declare module.exports: any; } declare module 'webpack/lib/ErrorHelpers' { declare module.exports: any; } declare module 'webpack/lib/EvalDevToolModulePlugin' { declare module.exports: any; } declare module 'webpack/lib/EvalDevToolModuleTemplatePlugin' { declare module.exports: any; } declare module 'webpack/lib/EvalSourceMapDevToolModuleTemplatePlugin' { declare module.exports: any; } declare module 'webpack/lib/EvalSourceMapDevToolPlugin' { declare module.exports: any; } declare module 'webpack/lib/ExportPropertyMainTemplatePlugin' { declare module.exports: any; } declare module 'webpack/lib/ExtendedAPIPlugin' { declare module.exports: any; } declare module 'webpack/lib/ExternalModule' { declare module.exports: any; } declare module 'webpack/lib/ExternalModuleFactoryPlugin' { declare module.exports: any; } declare module 'webpack/lib/ExternalsPlugin' { declare module.exports: any; } declare module 'webpack/lib/FlagDependencyExportsPlugin' { declare module.exports: any; } declare module 'webpack/lib/FlagDependencyUsagePlugin' { declare module.exports: any; } declare module 'webpack/lib/FlagInitialModulesAsUsedPlugin' { declare module.exports: any; } declare module 'webpack/lib/formatLocation' { declare module.exports: any; } declare module 'webpack/lib/FunctionModulePlugin' { declare module.exports: any; } declare module 'webpack/lib/FunctionModuleTemplatePlugin' { declare module.exports: any; } declare module 'webpack/lib/HashedModuleIdsPlugin' { declare module.exports: any; } declare module 'webpack/lib/HotModuleReplacement.runtime' { declare module.exports: any; } declare module 'webpack/lib/HotModuleReplacementPlugin' { declare module.exports: any; } declare module 'webpack/lib/HotUpdateChunkTemplate' { declare module.exports: any; } declare module 'webpack/lib/IgnorePlugin' { declare module.exports: any; } declare module 'webpack/lib/JsonpChunkTemplatePlugin' { declare module.exports: any; } declare module 'webpack/lib/JsonpExportMainTemplatePlugin' { declare module.exports: any; } declare module 'webpack/lib/JsonpHotUpdateChunkTemplatePlugin' { declare module.exports: any; } declare module 'webpack/lib/JsonpMainTemplate.runtime' { declare module.exports: any; } declare module 'webpack/lib/JsonpMainTemplatePlugin' { declare module.exports: any; } declare module 'webpack/lib/JsonpTemplatePlugin' { declare module.exports: any; } declare module 'webpack/lib/LibManifestPlugin' { declare module.exports: any; } declare module 'webpack/lib/LibraryTemplatePlugin' { declare module.exports: any; } declare module 'webpack/lib/LoaderOptionsPlugin' { declare module.exports: any; } declare module 'webpack/lib/LoaderTargetPlugin' { declare module.exports: any; } declare module 'webpack/lib/MainTemplate' { declare module.exports: any; } declare module 'webpack/lib/MemoryOutputFileSystem' { declare module.exports: any; } declare module 'webpack/lib/Module' { declare module.exports: any; } declare module 'webpack/lib/ModuleBuildError' { declare module.exports: any; } declare module 'webpack/lib/ModuleDependencyError' { declare module.exports: any; } declare module 'webpack/lib/ModuleDependencyWarning' { declare module.exports: any; } declare module 'webpack/lib/ModuleError' { declare module.exports: any; } declare module 'webpack/lib/ModuleFilenameHelpers' { declare module.exports: any; } declare module 'webpack/lib/ModuleNotFoundError' { declare module.exports: any; } declare module 'webpack/lib/ModuleParseError' { declare module.exports: any; } declare module 'webpack/lib/ModuleReason' { declare module.exports: any; } declare module 'webpack/lib/ModuleTemplate' { declare module.exports: any; } declare module 'webpack/lib/ModuleWarning' { declare module.exports: any; } declare module 'webpack/lib/MovedToPluginWarningPlugin' { declare module.exports: any; } declare module 'webpack/lib/MultiCompiler' { declare module.exports: any; } declare module 'webpack/lib/MultiEntryPlugin' { declare module.exports: any; } declare module 'webpack/lib/MultiModule' { declare module.exports: any; } declare module 'webpack/lib/MultiModuleFactory' { declare module.exports: any; } declare module 'webpack/lib/MultiStats' { declare module.exports: any; } declare module 'webpack/lib/MultiWatching' { declare module.exports: any; } declare module 'webpack/lib/NamedChunksPlugin' { declare module.exports: any; } declare module 'webpack/lib/NamedModulesPlugin' { declare module.exports: any; } declare module 'webpack/lib/NewWatchingPlugin' { declare module.exports: any; } declare module 'webpack/lib/node/NodeChunkTemplatePlugin' { declare module.exports: any; } declare module 'webpack/lib/node/NodeEnvironmentPlugin' { declare module.exports: any; } declare module 'webpack/lib/node/NodeHotUpdateChunkTemplatePlugin' { declare module.exports: any; } declare module 'webpack/lib/node/NodeMainTemplate.runtime' { declare module.exports: any; } declare module 'webpack/lib/node/NodeMainTemplateAsync.runtime' { declare module.exports: any; } declare module 'webpack/lib/node/NodeMainTemplatePlugin' { declare module.exports: any; } declare module 'webpack/lib/node/NodeOutputFileSystem' { declare module.exports: any; } declare module 'webpack/lib/node/NodeSourcePlugin' { declare module.exports: any; } declare module 'webpack/lib/node/NodeTargetPlugin' { declare module.exports: any; } declare module 'webpack/lib/node/NodeTemplatePlugin' { declare module.exports: any; } declare module 'webpack/lib/node/NodeWatchFileSystem' { declare module.exports: any; } declare module 'webpack/lib/NodeStuffPlugin' { declare module.exports: any; } declare module 'webpack/lib/NoEmitOnErrorsPlugin' { declare module.exports: any; } declare module 'webpack/lib/NoErrorsPlugin' { declare module.exports: any; } declare module 'webpack/lib/NormalModule' { declare module.exports: any; } declare module 'webpack/lib/NormalModuleFactory' { declare module.exports: any; } declare module 'webpack/lib/NormalModuleReplacementPlugin' { declare module.exports: any; } declare module 'webpack/lib/NullFactory' { declare module.exports: any; } declare module 'webpack/lib/optimize/AggressiveMergingPlugin' { declare module.exports: any; } declare module 'webpack/lib/optimize/AggressiveSplittingPlugin' { declare module.exports: any; } declare module 'webpack/lib/optimize/ChunkModuleIdRangePlugin' { declare module.exports: any; } declare module 'webpack/lib/optimize/CommonsChunkPlugin' { declare module.exports: any; } declare module 'webpack/lib/optimize/ConcatenatedModule' { declare module.exports: any; } declare module 'webpack/lib/optimize/DedupePlugin' { declare module.exports: any; } declare module 'webpack/lib/optimize/EnsureChunkConditionsPlugin' { declare module.exports: any; } declare module 'webpack/lib/optimize/FlagIncludedChunksPlugin' { declare module.exports: any; } declare module 'webpack/lib/optimize/LimitChunkCountPlugin' { declare module.exports: any; } declare module 'webpack/lib/optimize/MergeDuplicateChunksPlugin' { declare module.exports: any; } declare module 'webpack/lib/optimize/MinChunkSizePlugin' { declare module.exports: any; } declare module 'webpack/lib/optimize/ModuleConcatenationPlugin' { declare module.exports: any; } declare module 'webpack/lib/optimize/OccurrenceOrderPlugin' { declare module.exports: any; } declare module 'webpack/lib/optimize/RemoveEmptyChunksPlugin' { declare module.exports: any; } declare module 'webpack/lib/optimize/RemoveParentModulesPlugin' { declare module.exports: any; } declare module 'webpack/lib/optimize/UglifyJsPlugin' { declare module.exports: any; } declare module 'webpack/lib/OptionsApply' { declare module.exports: any; } declare module 'webpack/lib/OptionsDefaulter' { declare module.exports: any; } declare module 'webpack/lib/Parser' { declare module.exports: any; } declare module 'webpack/lib/ParserHelpers' { declare module.exports: any; } declare module 'webpack/lib/performance/AssetsOverSizeLimitWarning' { declare module.exports: any; } declare module 'webpack/lib/performance/EntrypointsOverSizeLimitWarning' { declare module.exports: any; } declare module 'webpack/lib/performance/NoAsyncChunksWarning' { declare module.exports: any; } declare module 'webpack/lib/performance/SizeLimitsPlugin' { declare module.exports: any; } declare module 'webpack/lib/PrefetchPlugin' { declare module.exports: any; } declare module 'webpack/lib/prepareOptions' { declare module.exports: any; } declare module 'webpack/lib/ProgressPlugin' { declare module.exports: any; } declare module 'webpack/lib/ProvidePlugin' { declare module.exports: any; } declare module 'webpack/lib/RawModule' { declare module.exports: any; } declare module 'webpack/lib/RecordIdsPlugin' { declare module.exports: any; } declare module 'webpack/lib/removeAndDo' { declare module.exports: any; } declare module 'webpack/lib/RequestShortener' { declare module.exports: any; } declare module 'webpack/lib/RequireJsStuffPlugin' { declare module.exports: any; } declare module 'webpack/lib/RuleSet' { declare module.exports: any; } declare module 'webpack/lib/SetVarMainTemplatePlugin' { declare module.exports: any; } declare module 'webpack/lib/SingleEntryPlugin' { declare module.exports: any; } declare module 'webpack/lib/SizeFormatHelpers' { declare module.exports: any; } declare module 'webpack/lib/SourceMapDevToolModuleOptionsPlugin' { declare module.exports: any; } declare module 'webpack/lib/SourceMapDevToolPlugin' { declare module.exports: any; } declare module 'webpack/lib/Stats' { declare module.exports: any; } declare module 'webpack/lib/Template' { declare module.exports: any; } declare module 'webpack/lib/TemplatedPathPlugin' { declare module.exports: any; } declare module 'webpack/lib/UmdMainTemplatePlugin' { declare module.exports: any; } declare module 'webpack/lib/UnsupportedFeatureWarning' { declare module.exports: any; } declare module 'webpack/lib/UseStrictPlugin' { declare module.exports: any; } declare module 'webpack/lib/util/identifier' { declare module.exports: any; } declare module 'webpack/lib/util/Queue' { declare module.exports: any; } declare module 'webpack/lib/util/Semaphore' { declare module.exports: any; } declare module 'webpack/lib/util/SortableSet' { declare module.exports: any; } declare module 'webpack/lib/validateSchema' { declare module.exports: any; } declare module 'webpack/lib/WarnCaseSensitiveModulesPlugin' { declare module.exports: any; } declare module 'webpack/lib/WatchIgnorePlugin' { declare module.exports: any; } declare module 'webpack/lib/web/WebEnvironmentPlugin' { declare module.exports: any; } declare module 'webpack/lib/webpack' { declare module.exports: any; } declare module 'webpack/lib/webpack.web' { declare module.exports: any; } declare module 'webpack/lib/WebpackError' { declare module.exports: any; } declare module 'webpack/lib/WebpackOptionsApply' { declare module.exports: any; } declare module 'webpack/lib/WebpackOptionsDefaulter' { declare module.exports: any; } declare module 'webpack/lib/WebpackOptionsValidationError' { declare module.exports: any; } declare module 'webpack/lib/webworker/WebWorkerChunkTemplatePlugin' { declare module.exports: any; } declare module 'webpack/lib/webworker/WebWorkerHotUpdateChunkTemplatePlugin' { declare module.exports: any; } declare module 'webpack/lib/webworker/WebWorkerMainTemplate.runtime' { declare module.exports: any; } declare module 'webpack/lib/webworker/WebWorkerMainTemplatePlugin' { declare module.exports: any; } declare module 'webpack/lib/webworker/WebWorkerTemplatePlugin' { declare module.exports: any; } declare module 'webpack/schemas/ajv.absolutePath' { declare module.exports: any; } declare module 'webpack/web_modules/node-libs-browser' { declare module.exports: any; } // Filename aliases declare module 'webpack/bin/config-optimist.js' { declare module.exports: $Exports<'webpack/bin/config-optimist'>; } declare module 'webpack/bin/config-yargs.js' { declare module.exports: $Exports<'webpack/bin/config-yargs'>; } declare module 'webpack/bin/convert-argv.js' { declare module.exports: $Exports<'webpack/bin/convert-argv'>; } declare module 'webpack/bin/webpack.js' { declare module.exports: $Exports<'webpack/bin/webpack'>; } declare module 'webpack/buildin/amd-define.js' { declare module.exports: $Exports<'webpack/buildin/amd-define'>; } declare module 'webpack/buildin/amd-options.js' { declare module.exports: $Exports<'webpack/buildin/amd-options'>; } declare module 'webpack/buildin/global.js' { declare module.exports: $Exports<'webpack/buildin/global'>; } declare module 'webpack/buildin/harmony-module.js' { declare module.exports: $Exports<'webpack/buildin/harmony-module'>; } declare module 'webpack/buildin/module.js' { declare module.exports: $Exports<'webpack/buildin/module'>; } declare module 'webpack/buildin/system.js' { declare module.exports: $Exports<'webpack/buildin/system'>; } declare module 'webpack/hot/dev-server.js' { declare module.exports: $Exports<'webpack/hot/dev-server'>; } declare module 'webpack/hot/emitter.js' { declare module.exports: $Exports<'webpack/hot/emitter'>; } declare module 'webpack/hot/log-apply-result.js' { declare module.exports: $Exports<'webpack/hot/log-apply-result'>; } declare module 'webpack/hot/log.js' { declare module.exports: $Exports<'webpack/hot/log'>; } declare module 'webpack/hot/only-dev-server.js' { declare module.exports: $Exports<'webpack/hot/only-dev-server'>; } declare module 'webpack/hot/poll.js' { declare module.exports: $Exports<'webpack/hot/poll'>; } declare module 'webpack/hot/signal.js' { declare module.exports: $Exports<'webpack/hot/signal'>; } declare module 'webpack/lib/AmdMainTemplatePlugin.js' { declare module.exports: $Exports<'webpack/lib/AmdMainTemplatePlugin'>; } declare module 'webpack/lib/APIPlugin.js' { declare module.exports: $Exports<'webpack/lib/APIPlugin'>; } declare module 'webpack/lib/AsyncDependenciesBlock.js' { declare module.exports: $Exports<'webpack/lib/AsyncDependenciesBlock'>; } declare module 'webpack/lib/AsyncDependencyToInitialChunkWarning.js' { declare module.exports: $Exports<'webpack/lib/AsyncDependencyToInitialChunkWarning'>; } declare module 'webpack/lib/AutomaticPrefetchPlugin.js' { declare module.exports: $Exports<'webpack/lib/AutomaticPrefetchPlugin'>; } declare module 'webpack/lib/BannerPlugin.js' { declare module.exports: $Exports<'webpack/lib/BannerPlugin'>; } declare module 'webpack/lib/BasicEvaluatedExpression.js' { declare module.exports: $Exports<'webpack/lib/BasicEvaluatedExpression'>; } declare module 'webpack/lib/CachePlugin.js' { declare module.exports: $Exports<'webpack/lib/CachePlugin'>; } declare module 'webpack/lib/CaseSensitiveModulesWarning.js' { declare module.exports: $Exports<'webpack/lib/CaseSensitiveModulesWarning'>; } declare module 'webpack/lib/Chunk.js' { declare module.exports: $Exports<'webpack/lib/Chunk'>; } declare module 'webpack/lib/ChunkRenderError.js' { declare module.exports: $Exports<'webpack/lib/ChunkRenderError'>; } declare module 'webpack/lib/ChunkTemplate.js' { declare module.exports: $Exports<'webpack/lib/ChunkTemplate'>; } declare module 'webpack/lib/compareLocations.js' { declare module.exports: $Exports<'webpack/lib/compareLocations'>; } declare module 'webpack/lib/CompatibilityPlugin.js' { declare module.exports: $Exports<'webpack/lib/CompatibilityPlugin'>; } declare module 'webpack/lib/Compilation.js' { declare module.exports: $Exports<'webpack/lib/Compilation'>; } declare module 'webpack/lib/Compiler.js' { declare module.exports: $Exports<'webpack/lib/Compiler'>; } declare module 'webpack/lib/ConstPlugin.js' { declare module.exports: $Exports<'webpack/lib/ConstPlugin'>; } declare module 'webpack/lib/ContextExclusionPlugin.js' { declare module.exports: $Exports<'webpack/lib/ContextExclusionPlugin'>; } declare module 'webpack/lib/ContextModule.js' { declare module.exports: $Exports<'webpack/lib/ContextModule'>; } declare module 'webpack/lib/ContextModuleFactory.js' { declare module.exports: $Exports<'webpack/lib/ContextModuleFactory'>; } declare module 'webpack/lib/ContextReplacementPlugin.js' { declare module.exports: $Exports<'webpack/lib/ContextReplacementPlugin'>; } declare module 'webpack/lib/DefinePlugin.js' { declare module.exports: $Exports<'webpack/lib/DefinePlugin'>; } declare module 'webpack/lib/DelegatedModule.js' { declare module.exports: $Exports<'webpack/lib/DelegatedModule'>; } declare module 'webpack/lib/DelegatedModuleFactoryPlugin.js' { declare module.exports: $Exports<'webpack/lib/DelegatedModuleFactoryPlugin'>; } declare module 'webpack/lib/DelegatedPlugin.js' { declare module.exports: $Exports<'webpack/lib/DelegatedPlugin'>; } declare module 'webpack/lib/dependencies/AMDDefineDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/AMDDefineDependency'>; } declare module 'webpack/lib/dependencies/AMDDefineDependencyParserPlugin.js' { declare module.exports: $Exports<'webpack/lib/dependencies/AMDDefineDependencyParserPlugin'>; } declare module 'webpack/lib/dependencies/AMDPlugin.js' { declare module.exports: $Exports<'webpack/lib/dependencies/AMDPlugin'>; } declare module 'webpack/lib/dependencies/AMDRequireArrayDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/AMDRequireArrayDependency'>; } declare module 'webpack/lib/dependencies/AMDRequireContextDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/AMDRequireContextDependency'>; } declare module 'webpack/lib/dependencies/AMDRequireDependenciesBlock.js' { declare module.exports: $Exports<'webpack/lib/dependencies/AMDRequireDependenciesBlock'>; } declare module 'webpack/lib/dependencies/AMDRequireDependenciesBlockParserPlugin.js' { declare module.exports: $Exports<'webpack/lib/dependencies/AMDRequireDependenciesBlockParserPlugin'>; } declare module 'webpack/lib/dependencies/AMDRequireDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/AMDRequireDependency'>; } declare module 'webpack/lib/dependencies/AMDRequireItemDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/AMDRequireItemDependency'>; } declare module 'webpack/lib/dependencies/CommonJsPlugin.js' { declare module.exports: $Exports<'webpack/lib/dependencies/CommonJsPlugin'>; } declare module 'webpack/lib/dependencies/CommonJsRequireContextDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/CommonJsRequireContextDependency'>; } declare module 'webpack/lib/dependencies/CommonJsRequireDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/CommonJsRequireDependency'>; } declare module 'webpack/lib/dependencies/CommonJsRequireDependencyParserPlugin.js' { declare module.exports: $Exports<'webpack/lib/dependencies/CommonJsRequireDependencyParserPlugin'>; } declare module 'webpack/lib/dependencies/ConstDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/ConstDependency'>; } declare module 'webpack/lib/dependencies/ContextDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/ContextDependency'>; } declare module 'webpack/lib/dependencies/ContextDependencyHelpers.js' { declare module.exports: $Exports<'webpack/lib/dependencies/ContextDependencyHelpers'>; } declare module 'webpack/lib/dependencies/ContextDependencyTemplateAsId.js' { declare module.exports: $Exports<'webpack/lib/dependencies/ContextDependencyTemplateAsId'>; } declare module 'webpack/lib/dependencies/ContextDependencyTemplateAsRequireCall.js' { declare module.exports: $Exports<'webpack/lib/dependencies/ContextDependencyTemplateAsRequireCall'>; } declare module 'webpack/lib/dependencies/ContextElementDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/ContextElementDependency'>; } declare module 'webpack/lib/dependencies/CriticalDependencyWarning.js' { declare module.exports: $Exports<'webpack/lib/dependencies/CriticalDependencyWarning'>; } declare module 'webpack/lib/dependencies/DelegatedExportsDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/DelegatedExportsDependency'>; } declare module 'webpack/lib/dependencies/DelegatedSourceDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/DelegatedSourceDependency'>; } declare module 'webpack/lib/dependencies/DepBlockHelpers.js' { declare module.exports: $Exports<'webpack/lib/dependencies/DepBlockHelpers'>; } declare module 'webpack/lib/dependencies/DllEntryDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/DllEntryDependency'>; } declare module 'webpack/lib/dependencies/getFunctionExpression.js' { declare module.exports: $Exports<'webpack/lib/dependencies/getFunctionExpression'>; } declare module 'webpack/lib/dependencies/HarmonyAcceptDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/HarmonyAcceptDependency'>; } declare module 'webpack/lib/dependencies/HarmonyAcceptImportDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/HarmonyAcceptImportDependency'>; } declare module 'webpack/lib/dependencies/HarmonyCompatibilityDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/HarmonyCompatibilityDependency'>; } declare module 'webpack/lib/dependencies/HarmonyDetectionParserPlugin.js' { declare module.exports: $Exports<'webpack/lib/dependencies/HarmonyDetectionParserPlugin'>; } declare module 'webpack/lib/dependencies/HarmonyExportDependencyParserPlugin.js' { declare module.exports: $Exports<'webpack/lib/dependencies/HarmonyExportDependencyParserPlugin'>; } declare module 'webpack/lib/dependencies/HarmonyExportExpressionDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/HarmonyExportExpressionDependency'>; } declare module 'webpack/lib/dependencies/HarmonyExportHeaderDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/HarmonyExportHeaderDependency'>; } declare module 'webpack/lib/dependencies/HarmonyExportImportedSpecifierDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/HarmonyExportImportedSpecifierDependency'>; } declare module 'webpack/lib/dependencies/HarmonyExportSpecifierDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/HarmonyExportSpecifierDependency'>; } declare module 'webpack/lib/dependencies/HarmonyImportDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/HarmonyImportDependency'>; } declare module 'webpack/lib/dependencies/HarmonyImportDependencyParserPlugin.js' { declare module.exports: $Exports<'webpack/lib/dependencies/HarmonyImportDependencyParserPlugin'>; } declare module 'webpack/lib/dependencies/HarmonyImportSpecifierDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/HarmonyImportSpecifierDependency'>; } declare module 'webpack/lib/dependencies/HarmonyModulesHelpers.js' { declare module.exports: $Exports<'webpack/lib/dependencies/HarmonyModulesHelpers'>; } declare module 'webpack/lib/dependencies/HarmonyModulesPlugin.js' { declare module.exports: $Exports<'webpack/lib/dependencies/HarmonyModulesPlugin'>; } declare module 'webpack/lib/dependencies/ImportContextDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/ImportContextDependency'>; } declare module 'webpack/lib/dependencies/ImportDependenciesBlock.js' { declare module.exports: $Exports<'webpack/lib/dependencies/ImportDependenciesBlock'>; } declare module 'webpack/lib/dependencies/ImportDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/ImportDependency'>; } declare module 'webpack/lib/dependencies/ImportEagerContextDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/ImportEagerContextDependency'>; } declare module 'webpack/lib/dependencies/ImportEagerDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/ImportEagerDependency'>; } declare module 'webpack/lib/dependencies/ImportLazyContextDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/ImportLazyContextDependency'>; } declare module 'webpack/lib/dependencies/ImportLazyOnceContextDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/ImportLazyOnceContextDependency'>; } declare module 'webpack/lib/dependencies/ImportParserPlugin.js' { declare module.exports: $Exports<'webpack/lib/dependencies/ImportParserPlugin'>; } declare module 'webpack/lib/dependencies/ImportPlugin.js' { declare module.exports: $Exports<'webpack/lib/dependencies/ImportPlugin'>; } declare module 'webpack/lib/dependencies/ImportWeakContextDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/ImportWeakContextDependency'>; } declare module 'webpack/lib/dependencies/ImportWeakDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/ImportWeakDependency'>; } declare module 'webpack/lib/dependencies/LoaderDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/LoaderDependency'>; } declare module 'webpack/lib/dependencies/LoaderPlugin.js' { declare module.exports: $Exports<'webpack/lib/dependencies/LoaderPlugin'>; } declare module 'webpack/lib/dependencies/LocalModule.js' { declare module.exports: $Exports<'webpack/lib/dependencies/LocalModule'>; } declare module 'webpack/lib/dependencies/LocalModuleDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/LocalModuleDependency'>; } declare module 'webpack/lib/dependencies/LocalModulesHelpers.js' { declare module.exports: $Exports<'webpack/lib/dependencies/LocalModulesHelpers'>; } declare module 'webpack/lib/dependencies/ModuleDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/ModuleDependency'>; } declare module 'webpack/lib/dependencies/ModuleDependencyTemplateAsId.js' { declare module.exports: $Exports<'webpack/lib/dependencies/ModuleDependencyTemplateAsId'>; } declare module 'webpack/lib/dependencies/ModuleDependencyTemplateAsRequireId.js' { declare module.exports: $Exports<'webpack/lib/dependencies/ModuleDependencyTemplateAsRequireId'>; } declare module 'webpack/lib/dependencies/ModuleHotAcceptDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/ModuleHotAcceptDependency'>; } declare module 'webpack/lib/dependencies/ModuleHotDeclineDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/ModuleHotDeclineDependency'>; } declare module 'webpack/lib/dependencies/MultiEntryDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/MultiEntryDependency'>; } declare module 'webpack/lib/dependencies/NullDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/NullDependency'>; } declare module 'webpack/lib/dependencies/PrefetchDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/PrefetchDependency'>; } declare module 'webpack/lib/dependencies/RequireContextDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/RequireContextDependency'>; } declare module 'webpack/lib/dependencies/RequireContextDependencyParserPlugin.js' { declare module.exports: $Exports<'webpack/lib/dependencies/RequireContextDependencyParserPlugin'>; } declare module 'webpack/lib/dependencies/RequireContextPlugin.js' { declare module.exports: $Exports<'webpack/lib/dependencies/RequireContextPlugin'>; } declare module 'webpack/lib/dependencies/RequireEnsureDependenciesBlock.js' { declare module.exports: $Exports<'webpack/lib/dependencies/RequireEnsureDependenciesBlock'>; } declare module 'webpack/lib/dependencies/RequireEnsureDependenciesBlockParserPlugin.js' { declare module.exports: $Exports<'webpack/lib/dependencies/RequireEnsureDependenciesBlockParserPlugin'>; } declare module 'webpack/lib/dependencies/RequireEnsureDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/RequireEnsureDependency'>; } declare module 'webpack/lib/dependencies/RequireEnsureItemDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/RequireEnsureItemDependency'>; } declare module 'webpack/lib/dependencies/RequireEnsurePlugin.js' { declare module.exports: $Exports<'webpack/lib/dependencies/RequireEnsurePlugin'>; } declare module 'webpack/lib/dependencies/RequireHeaderDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/RequireHeaderDependency'>; } declare module 'webpack/lib/dependencies/RequireIncludeDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/RequireIncludeDependency'>; } declare module 'webpack/lib/dependencies/RequireIncludeDependencyParserPlugin.js' { declare module.exports: $Exports<'webpack/lib/dependencies/RequireIncludeDependencyParserPlugin'>; } declare module 'webpack/lib/dependencies/RequireIncludePlugin.js' { declare module.exports: $Exports<'webpack/lib/dependencies/RequireIncludePlugin'>; } declare module 'webpack/lib/dependencies/RequireResolveContextDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/RequireResolveContextDependency'>; } declare module 'webpack/lib/dependencies/RequireResolveDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/RequireResolveDependency'>; } declare module 'webpack/lib/dependencies/RequireResolveDependencyParserPlugin.js' { declare module.exports: $Exports<'webpack/lib/dependencies/RequireResolveDependencyParserPlugin'>; } declare module 'webpack/lib/dependencies/RequireResolveHeaderDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/RequireResolveHeaderDependency'>; } declare module 'webpack/lib/dependencies/SingleEntryDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/SingleEntryDependency'>; } declare module 'webpack/lib/dependencies/SystemPlugin.js' { declare module.exports: $Exports<'webpack/lib/dependencies/SystemPlugin'>; } declare module 'webpack/lib/dependencies/UnsupportedDependency.js' { declare module.exports: $Exports<'webpack/lib/dependencies/UnsupportedDependency'>; } declare module 'webpack/lib/dependencies/WebpackMissingModule.js' { declare module.exports: $Exports<'webpack/lib/dependencies/WebpackMissingModule'>; } declare module 'webpack/lib/DependenciesBlock.js' { declare module.exports: $Exports<'webpack/lib/DependenciesBlock'>; } declare module 'webpack/lib/DependenciesBlockVariable.js' { declare module.exports: $Exports<'webpack/lib/DependenciesBlockVariable'>; } declare module 'webpack/lib/Dependency.js' { declare module.exports: $Exports<'webpack/lib/Dependency'>; } declare module 'webpack/lib/DllEntryPlugin.js' { declare module.exports: $Exports<'webpack/lib/DllEntryPlugin'>; } declare module 'webpack/lib/DllModule.js' { declare module.exports: $Exports<'webpack/lib/DllModule'>; } declare module 'webpack/lib/DllModuleFactory.js' { declare module.exports: $Exports<'webpack/lib/DllModuleFactory'>; } declare module 'webpack/lib/DllPlugin.js' { declare module.exports: $Exports<'webpack/lib/DllPlugin'>; } declare module 'webpack/lib/DllReferencePlugin.js' { declare module.exports: $Exports<'webpack/lib/DllReferencePlugin'>; } declare module 'webpack/lib/DynamicEntryPlugin.js' { declare module.exports: $Exports<'webpack/lib/DynamicEntryPlugin'>; } declare module 'webpack/lib/EntryModuleNotFoundError.js' { declare module.exports: $Exports<'webpack/lib/EntryModuleNotFoundError'>; } declare module 'webpack/lib/EntryOptionPlugin.js' { declare module.exports: $Exports<'webpack/lib/EntryOptionPlugin'>; } declare module 'webpack/lib/Entrypoint.js' { declare module.exports: $Exports<'webpack/lib/Entrypoint'>; } declare module 'webpack/lib/EnvironmentPlugin.js' { declare module.exports: $Exports<'webpack/lib/EnvironmentPlugin'>; } declare module 'webpack/lib/ErrorHelpers.js' { declare module.exports: $Exports<'webpack/lib/ErrorHelpers'>; } declare module 'webpack/lib/EvalDevToolModulePlugin.js' { declare module.exports: $Exports<'webpack/lib/EvalDevToolModulePlugin'>; } declare module 'webpack/lib/EvalDevToolModuleTemplatePlugin.js' { declare module.exports: $Exports<'webpack/lib/EvalDevToolModuleTemplatePlugin'>; } declare module 'webpack/lib/EvalSourceMapDevToolModuleTemplatePlugin.js' { declare module.exports: $Exports<'webpack/lib/EvalSourceMapDevToolModuleTemplatePlugin'>; } declare module 'webpack/lib/EvalSourceMapDevToolPlugin.js' { declare module.exports: $Exports<'webpack/lib/EvalSourceMapDevToolPlugin'>; } declare module 'webpack/lib/ExportPropertyMainTemplatePlugin.js' { declare module.exports: $Exports<'webpack/lib/ExportPropertyMainTemplatePlugin'>; } declare module 'webpack/lib/ExtendedAPIPlugin.js' { declare module.exports: $Exports<'webpack/lib/ExtendedAPIPlugin'>; } declare module 'webpack/lib/ExternalModule.js' { declare module.exports: $Exports<'webpack/lib/ExternalModule'>; } declare module 'webpack/lib/ExternalModuleFactoryPlugin.js' { declare module.exports: $Exports<'webpack/lib/ExternalModuleFactoryPlugin'>; } declare module 'webpack/lib/ExternalsPlugin.js' { declare module.exports: $Exports<'webpack/lib/ExternalsPlugin'>; } declare module 'webpack/lib/FlagDependencyExportsPlugin.js' { declare module.exports: $Exports<'webpack/lib/FlagDependencyExportsPlugin'>; } declare module 'webpack/lib/FlagDependencyUsagePlugin.js' { declare module.exports: $Exports<'webpack/lib/FlagDependencyUsagePlugin'>; } declare module 'webpack/lib/FlagInitialModulesAsUsedPlugin.js' { declare module.exports: $Exports<'webpack/lib/FlagInitialModulesAsUsedPlugin'>; } declare module 'webpack/lib/formatLocation.js' { declare module.exports: $Exports<'webpack/lib/formatLocation'>; } declare module 'webpack/lib/FunctionModulePlugin.js' { declare module.exports: $Exports<'webpack/lib/FunctionModulePlugin'>; } declare module 'webpack/lib/FunctionModuleTemplatePlugin.js' { declare module.exports: $Exports<'webpack/lib/FunctionModuleTemplatePlugin'>; } declare module 'webpack/lib/HashedModuleIdsPlugin.js' { declare module.exports: $Exports<'webpack/lib/HashedModuleIdsPlugin'>; } declare module 'webpack/lib/HotModuleReplacement.runtime.js' { declare module.exports: $Exports<'webpack/lib/HotModuleReplacement.runtime'>; } declare module 'webpack/lib/HotModuleReplacementPlugin.js' { declare module.exports: $Exports<'webpack/lib/HotModuleReplacementPlugin'>; } declare module 'webpack/lib/HotUpdateChunkTemplate.js' { declare module.exports: $Exports<'webpack/lib/HotUpdateChunkTemplate'>; } declare module 'webpack/lib/IgnorePlugin.js' { declare module.exports: $Exports<'webpack/lib/IgnorePlugin'>; } declare module 'webpack/lib/JsonpChunkTemplatePlugin.js' { declare module.exports: $Exports<'webpack/lib/JsonpChunkTemplatePlugin'>; } declare module 'webpack/lib/JsonpExportMainTemplatePlugin.js' { declare module.exports: $Exports<'webpack/lib/JsonpExportMainTemplatePlugin'>; } declare module 'webpack/lib/JsonpHotUpdateChunkTemplatePlugin.js' { declare module.exports: $Exports<'webpack/lib/JsonpHotUpdateChunkTemplatePlugin'>; } declare module 'webpack/lib/JsonpMainTemplate.runtime.js' { declare module.exports: $Exports<'webpack/lib/JsonpMainTemplate.runtime'>; } declare module 'webpack/lib/JsonpMainTemplatePlugin.js' { declare module.exports: $Exports<'webpack/lib/JsonpMainTemplatePlugin'>; } declare module 'webpack/lib/JsonpTemplatePlugin.js' { declare module.exports: $Exports<'webpack/lib/JsonpTemplatePlugin'>; } declare module 'webpack/lib/LibManifestPlugin.js' { declare module.exports: $Exports<'webpack/lib/LibManifestPlugin'>; } declare module 'webpack/lib/LibraryTemplatePlugin.js' { declare module.exports: $Exports<'webpack/lib/LibraryTemplatePlugin'>; } declare module 'webpack/lib/LoaderOptionsPlugin.js' { declare module.exports: $Exports<'webpack/lib/LoaderOptionsPlugin'>; } declare module 'webpack/lib/LoaderTargetPlugin.js' { declare module.exports: $Exports<'webpack/lib/LoaderTargetPlugin'>; } declare module 'webpack/lib/MainTemplate.js' { declare module.exports: $Exports<'webpack/lib/MainTemplate'>; } declare module 'webpack/lib/MemoryOutputFileSystem.js' { declare module.exports: $Exports<'webpack/lib/MemoryOutputFileSystem'>; } declare module 'webpack/lib/Module.js' { declare module.exports: $Exports<'webpack/lib/Module'>; } declare module 'webpack/lib/ModuleBuildError.js' { declare module.exports: $Exports<'webpack/lib/ModuleBuildError'>; } declare module 'webpack/lib/ModuleDependencyError.js' { declare module.exports: $Exports<'webpack/lib/ModuleDependencyError'>; } declare module 'webpack/lib/ModuleDependencyWarning.js' { declare module.exports: $Exports<'webpack/lib/ModuleDependencyWarning'>; } declare module 'webpack/lib/ModuleError.js' { declare module.exports: $Exports<'webpack/lib/ModuleError'>; } declare module 'webpack/lib/ModuleFilenameHelpers.js' { declare module.exports: $Exports<'webpack/lib/ModuleFilenameHelpers'>; } declare module 'webpack/lib/ModuleNotFoundError.js' { declare module.exports: $Exports<'webpack/lib/ModuleNotFoundError'>; } declare module 'webpack/lib/ModuleParseError.js' { declare module.exports: $Exports<'webpack/lib/ModuleParseError'>; } declare module 'webpack/lib/ModuleReason.js' { declare module.exports: $Exports<'webpack/lib/ModuleReason'>; } declare module 'webpack/lib/ModuleTemplate.js' { declare module.exports: $Exports<'webpack/lib/ModuleTemplate'>; } declare module 'webpack/lib/ModuleWarning.js' { declare module.exports: $Exports<'webpack/lib/ModuleWarning'>; } declare module 'webpack/lib/MovedToPluginWarningPlugin.js' { declare module.exports: $Exports<'webpack/lib/MovedToPluginWarningPlugin'>; } declare module 'webpack/lib/MultiCompiler.js' { declare module.exports: $Exports<'webpack/lib/MultiCompiler'>; } declare module 'webpack/lib/MultiEntryPlugin.js' { declare module.exports: $Exports<'webpack/lib/MultiEntryPlugin'>; } declare module 'webpack/lib/MultiModule.js' { declare module.exports: $Exports<'webpack/lib/MultiModule'>; } declare module 'webpack/lib/MultiModuleFactory.js' { declare module.exports: $Exports<'webpack/lib/MultiModuleFactory'>; } declare module 'webpack/lib/MultiStats.js' { declare module.exports: $Exports<'webpack/lib/MultiStats'>; } declare module 'webpack/lib/MultiWatching.js' { declare module.exports: $Exports<'webpack/lib/MultiWatching'>; } declare module 'webpack/lib/NamedChunksPlugin.js' { declare module.exports: $Exports<'webpack/lib/NamedChunksPlugin'>; } declare module 'webpack/lib/NamedModulesPlugin.js' { declare module.exports: $Exports<'webpack/lib/NamedModulesPlugin'>; } declare module 'webpack/lib/NewWatchingPlugin.js' { declare module.exports: $Exports<'webpack/lib/NewWatchingPlugin'>; } declare module 'webpack/lib/node/NodeChunkTemplatePlugin.js' { declare module.exports: $Exports<'webpack/lib/node/NodeChunkTemplatePlugin'>; } declare module 'webpack/lib/node/NodeEnvironmentPlugin.js' { declare module.exports: $Exports<'webpack/lib/node/NodeEnvironmentPlugin'>; } declare module 'webpack/lib/node/NodeHotUpdateChunkTemplatePlugin.js' { declare module.exports: $Exports<'webpack/lib/node/NodeHotUpdateChunkTemplatePlugin'>; } declare module 'webpack/lib/node/NodeMainTemplate.runtime.js' { declare module.exports: $Exports<'webpack/lib/node/NodeMainTemplate.runtime'>; } declare module 'webpack/lib/node/NodeMainTemplateAsync.runtime.js' { declare module.exports: $Exports<'webpack/lib/node/NodeMainTemplateAsync.runtime'>; } declare module 'webpack/lib/node/NodeMainTemplatePlugin.js' { declare module.exports: $Exports<'webpack/lib/node/NodeMainTemplatePlugin'>; } declare module 'webpack/lib/node/NodeOutputFileSystem.js' { declare module.exports: $Exports<'webpack/lib/node/NodeOutputFileSystem'>; } declare module 'webpack/lib/node/NodeSourcePlugin.js' { declare module.exports: $Exports<'webpack/lib/node/NodeSourcePlugin'>; } declare module 'webpack/lib/node/NodeTargetPlugin.js' { declare module.exports: $Exports<'webpack/lib/node/NodeTargetPlugin'>; } declare module 'webpack/lib/node/NodeTemplatePlugin.js' { declare module.exports: $Exports<'webpack/lib/node/NodeTemplatePlugin'>; } declare module 'webpack/lib/node/NodeWatchFileSystem.js' { declare module.exports: $Exports<'webpack/lib/node/NodeWatchFileSystem'>; } declare module 'webpack/lib/NodeStuffPlugin.js' { declare module.exports: $Exports<'webpack/lib/NodeStuffPlugin'>; } declare module 'webpack/lib/NoEmitOnErrorsPlugin.js' { declare module.exports: $Exports<'webpack/lib/NoEmitOnErrorsPlugin'>; } declare module 'webpack/lib/NoErrorsPlugin.js' { declare module.exports: $Exports<'webpack/lib/NoErrorsPlugin'>; } declare module 'webpack/lib/NormalModule.js' { declare module.exports: $Exports<'webpack/lib/NormalModule'>; } declare module 'webpack/lib/NormalModuleFactory.js' { declare module.exports: $Exports<'webpack/lib/NormalModuleFactory'>; } declare module 'webpack/lib/NormalModuleReplacementPlugin.js' { declare module.exports: $Exports<'webpack/lib/NormalModuleReplacementPlugin'>; } declare module 'webpack/lib/NullFactory.js' { declare module.exports: $Exports<'webpack/lib/NullFactory'>; } declare module 'webpack/lib/optimize/AggressiveMergingPlugin.js' { declare module.exports: $Exports<'webpack/lib/optimize/AggressiveMergingPlugin'>; } declare module 'webpack/lib/optimize/AggressiveSplittingPlugin.js' { declare module.exports: $Exports<'webpack/lib/optimize/AggressiveSplittingPlugin'>; } declare module 'webpack/lib/optimize/ChunkModuleIdRangePlugin.js' { declare module.exports: $Exports<'webpack/lib/optimize/ChunkModuleIdRangePlugin'>; } declare module 'webpack/lib/optimize/CommonsChunkPlugin.js' { declare module.exports: $Exports<'webpack/lib/optimize/CommonsChunkPlugin'>; } declare module 'webpack/lib/optimize/ConcatenatedModule.js' { declare module.exports: $Exports<'webpack/lib/optimize/ConcatenatedModule'>; } declare module 'webpack/lib/optimize/DedupePlugin.js' { declare module.exports: $Exports<'webpack/lib/optimize/DedupePlugin'>; } declare module 'webpack/lib/optimize/EnsureChunkConditionsPlugin.js' { declare module.exports: $Exports<'webpack/lib/optimize/EnsureChunkConditionsPlugin'>; } declare module 'webpack/lib/optimize/FlagIncludedChunksPlugin.js' { declare module.exports: $Exports<'webpack/lib/optimize/FlagIncludedChunksPlugin'>; } declare module 'webpack/lib/optimize/LimitChunkCountPlugin.js' { declare module.exports: $Exports<'webpack/lib/optimize/LimitChunkCountPlugin'>; } declare module 'webpack/lib/optimize/MergeDuplicateChunksPlugin.js' { declare module.exports: $Exports<'webpack/lib/optimize/MergeDuplicateChunksPlugin'>; } declare module 'webpack/lib/optimize/MinChunkSizePlugin.js' { declare module.exports: $Exports<'webpack/lib/optimize/MinChunkSizePlugin'>; } declare module 'webpack/lib/optimize/ModuleConcatenationPlugin.js' { declare module.exports: $Exports<'webpack/lib/optimize/ModuleConcatenationPlugin'>; } declare module 'webpack/lib/optimize/OccurrenceOrderPlugin.js' { declare module.exports: $Exports<'webpack/lib/optimize/OccurrenceOrderPlugin'>; } declare module 'webpack/lib/optimize/RemoveEmptyChunksPlugin.js' { declare module.exports: $Exports<'webpack/lib/optimize/RemoveEmptyChunksPlugin'>; } declare module 'webpack/lib/optimize/RemoveParentModulesPlugin.js' { declare module.exports: $Exports<'webpack/lib/optimize/RemoveParentModulesPlugin'>; } declare module 'webpack/lib/optimize/UglifyJsPlugin.js' { declare module.exports: $Exports<'webpack/lib/optimize/UglifyJsPlugin'>; } declare module 'webpack/lib/OptionsApply.js' { declare module.exports: $Exports<'webpack/lib/OptionsApply'>; } declare module 'webpack/lib/OptionsDefaulter.js' { declare module.exports: $Exports<'webpack/lib/OptionsDefaulter'>; } declare module 'webpack/lib/Parser.js' { declare module.exports: $Exports<'webpack/lib/Parser'>; } declare module 'webpack/lib/ParserHelpers.js' { declare module.exports: $Exports<'webpack/lib/ParserHelpers'>; } declare module 'webpack/lib/performance/AssetsOverSizeLimitWarning.js' { declare module.exports: $Exports<'webpack/lib/performance/AssetsOverSizeLimitWarning'>; } declare module 'webpack/lib/performance/EntrypointsOverSizeLimitWarning.js' { declare module.exports: $Exports<'webpack/lib/performance/EntrypointsOverSizeLimitWarning'>; } declare module 'webpack/lib/performance/NoAsyncChunksWarning.js' { declare module.exports: $Exports<'webpack/lib/performance/NoAsyncChunksWarning'>; } declare module 'webpack/lib/performance/SizeLimitsPlugin.js' { declare module.exports: $Exports<'webpack/lib/performance/SizeLimitsPlugin'>; } declare module 'webpack/lib/PrefetchPlugin.js' { declare module.exports: $Exports<'webpack/lib/PrefetchPlugin'>; } declare module 'webpack/lib/prepareOptions.js' { declare module.exports: $Exports<'webpack/lib/prepareOptions'>; } declare module 'webpack/lib/ProgressPlugin.js' { declare module.exports: $Exports<'webpack/lib/ProgressPlugin'>; } declare module 'webpack/lib/ProvidePlugin.js' { declare module.exports: $Exports<'webpack/lib/ProvidePlugin'>; } declare module 'webpack/lib/RawModule.js' { declare module.exports: $Exports<'webpack/lib/RawModule'>; } declare module 'webpack/lib/RecordIdsPlugin.js' { declare module.exports: $Exports<'webpack/lib/RecordIdsPlugin'>; } declare module 'webpack/lib/removeAndDo.js' { declare module.exports: $Exports<'webpack/lib/removeAndDo'>; } declare module 'webpack/lib/RequestShortener.js' { declare module.exports: $Exports<'webpack/lib/RequestShortener'>; } declare module 'webpack/lib/RequireJsStuffPlugin.js' { declare module.exports: $Exports<'webpack/lib/RequireJsStuffPlugin'>; } declare module 'webpack/lib/RuleSet.js' { declare module.exports: $Exports<'webpack/lib/RuleSet'>; } declare module 'webpack/lib/SetVarMainTemplatePlugin.js' { declare module.exports: $Exports<'webpack/lib/SetVarMainTemplatePlugin'>; } declare module 'webpack/lib/SingleEntryPlugin.js' { declare module.exports: $Exports<'webpack/lib/SingleEntryPlugin'>; } declare module 'webpack/lib/SizeFormatHelpers.js' { declare module.exports: $Exports<'webpack/lib/SizeFormatHelpers'>; } declare module 'webpack/lib/SourceMapDevToolModuleOptionsPlugin.js' { declare module.exports: $Exports<'webpack/lib/SourceMapDevToolModuleOptionsPlugin'>; } declare module 'webpack/lib/SourceMapDevToolPlugin.js' { declare module.exports: $Exports<'webpack/lib/SourceMapDevToolPlugin'>; } declare module 'webpack/lib/Stats.js' { declare module.exports: $Exports<'webpack/lib/Stats'>; } declare module 'webpack/lib/Template.js' { declare module.exports: $Exports<'webpack/lib/Template'>; } declare module 'webpack/lib/TemplatedPathPlugin.js' { declare module.exports: $Exports<'webpack/lib/TemplatedPathPlugin'>; } declare module 'webpack/lib/UmdMainTemplatePlugin.js' { declare module.exports: $Exports<'webpack/lib/UmdMainTemplatePlugin'>; } declare module 'webpack/lib/UnsupportedFeatureWarning.js' { declare module.exports: $Exports<'webpack/lib/UnsupportedFeatureWarning'>; } declare module 'webpack/lib/UseStrictPlugin.js' { declare module.exports: $Exports<'webpack/lib/UseStrictPlugin'>; } declare module 'webpack/lib/util/identifier.js' { declare module.exports: $Exports<'webpack/lib/util/identifier'>; } declare module 'webpack/lib/util/Queue.js' { declare module.exports: $Exports<'webpack/lib/util/Queue'>; } declare module 'webpack/lib/util/Semaphore.js' { declare module.exports: $Exports<'webpack/lib/util/Semaphore'>; } declare module 'webpack/lib/util/SortableSet.js' { declare module.exports: $Exports<'webpack/lib/util/SortableSet'>; } declare module 'webpack/lib/validateSchema.js' { declare module.exports: $Exports<'webpack/lib/validateSchema'>; } declare module 'webpack/lib/WarnCaseSensitiveModulesPlugin.js' { declare module.exports: $Exports<'webpack/lib/WarnCaseSensitiveModulesPlugin'>; } declare module 'webpack/lib/WatchIgnorePlugin.js' { declare module.exports: $Exports<'webpack/lib/WatchIgnorePlugin'>; } declare module 'webpack/lib/web/WebEnvironmentPlugin.js' { declare module.exports: $Exports<'webpack/lib/web/WebEnvironmentPlugin'>; } declare module 'webpack/lib/webpack.js' { declare module.exports: $Exports<'webpack/lib/webpack'>; } declare module 'webpack/lib/webpack.web.js' { declare module.exports: $Exports<'webpack/lib/webpack.web'>; } declare module 'webpack/lib/WebpackError.js' { declare module.exports: $Exports<'webpack/lib/WebpackError'>; } declare module 'webpack/lib/WebpackOptionsApply.js' { declare module.exports: $Exports<'webpack/lib/WebpackOptionsApply'>; } declare module 'webpack/lib/WebpackOptionsDefaulter.js' { declare module.exports: $Exports<'webpack/lib/WebpackOptionsDefaulter'>; } declare module 'webpack/lib/WebpackOptionsValidationError.js' { declare module.exports: $Exports<'webpack/lib/WebpackOptionsValidationError'>; } declare module 'webpack/lib/webworker/WebWorkerChunkTemplatePlugin.js' { declare module.exports: $Exports<'webpack/lib/webworker/WebWorkerChunkTemplatePlugin'>; } declare module 'webpack/lib/webworker/WebWorkerHotUpdateChunkTemplatePlugin.js' { declare module.exports: $Exports<'webpack/lib/webworker/WebWorkerHotUpdateChunkTemplatePlugin'>; } declare module 'webpack/lib/webworker/WebWorkerMainTemplate.runtime.js' { declare module.exports: $Exports<'webpack/lib/webworker/WebWorkerMainTemplate.runtime'>; } declare module 'webpack/lib/webworker/WebWorkerMainTemplatePlugin.js' { declare module.exports: $Exports<'webpack/lib/webworker/WebWorkerMainTemplatePlugin'>; } declare module 'webpack/lib/webworker/WebWorkerTemplatePlugin.js' { declare module.exports: $Exports<'webpack/lib/webworker/WebWorkerTemplatePlugin'>; } declare module 'webpack/schemas/ajv.absolutePath.js' { declare module.exports: $Exports<'webpack/schemas/ajv.absolutePath'>; } declare module 'webpack/web_modules/node-libs-browser.js' { declare module.exports: $Exports<'webpack/web_modules/node-libs-browser'>; }
danyim/indecks
flow-typed/npm/webpack_vx.x.x.js
JavaScript
mit
64,247
/* jshint node: true */ /* global require, module */ var EmberAddon = require('ember-cli/lib/broccoli/ember-addon'); var app = new EmberAddon({ bless: { enabled: true, cacheBuster: true, compress: false, force: false, imports: true // log: true } }); // Use `app.import` to add additional libraries to the generated // output files. // // If you need to use different assets in different // environments, specify an object as the first parameter. That // object's keys should be the environment name and the values // should be the asset to use in that environment. // // If the library that you are including contains AMD or ES6 // modules that you would like to import into your application // please specify an object with the list of modules as keys // along with the exports of each module as its value. module.exports = app.toTree();
jschilli/ember-cli-bless
Brocfile.js
JavaScript
mit
872
**Section 1: the first section {MD036}** Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. __Section 1.1: another section {MD036}__ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. *Section 2: yet more sections {MD036}* Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. _Section 3: oh no more sections {MD036}_ This is a normal paragraph **that just happens to have emphasized text in** even though the emphasized text is on its own line. This is another **normal** paragraph with some text in it. This also should not trigger the rule. **This is an entire paragraph that has been emphasized, and shouldn't be detected as a header because it's on multiple lines** **This also shouldn't be detected as a header as it ends in punctuation.**
escacan/smartmirror
node_modules/markdownlint/test/emphasis_instead_of_headers.md
Markdown
mit
1,978
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. 'use strict'; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __param = (this && this.__param) || function (paramIndex, decorator) { return function (target, key) { decorator(target, key, paramIndex); } }; Object.defineProperty(exports, "__esModule", { value: true }); const inversify_1 = require("inversify"); const types_1 = require("../../common/types"); const types_2 = require("../../ioc/types"); const codewatcher_1 = require("./codewatcher"); let DataScienceCodeLensProvider = class DataScienceCodeLensProvider { constructor(serviceContainer, configuration) { this.serviceContainer = serviceContainer; this.configuration = configuration; this.activeCodeWatchers = []; } // CodeLensProvider interface // Some implementation based on DonJayamanne's jupyter extension work provideCodeLenses(document, token) { // Don't provide any code lenses if we have not enabled data science const settings = this.configuration.getSettings(); if (!settings.datascience.enabled) { // Clear out any existing code watchers, providecodelenses is called on settings change // so we don't need to watch the settings change specifically here if (this.activeCodeWatchers.length > 0) { this.activeCodeWatchers = []; } return []; } // See if we already have a watcher for this file and version const codeWatcher = this.matchWatcher(document.fileName, document.version); if (codeWatcher) { return codeWatcher.getCodeLenses(); } // Create a new watcher for this file const newCodeWatcher = new codewatcher_1.CodeWatcher(this.serviceContainer, document); this.activeCodeWatchers.push(newCodeWatcher); return newCodeWatcher.getCodeLenses(); } // IDataScienceCodeLensProvider interface getCodeWatcher(document) { return this.matchWatcher(document.fileName, document.version); } matchWatcher(fileName, version) { const index = this.activeCodeWatchers.findIndex(item => item.getFileName() === fileName); if (index >= 0) { const item = this.activeCodeWatchers[index]; if (item.getVersion() === version) { return item; } // If we have an old version remove it from the active list this.activeCodeWatchers.splice(index, 1); } return undefined; } }; DataScienceCodeLensProvider = __decorate([ inversify_1.injectable(), __param(0, inversify_1.inject(types_2.IServiceContainer)), __param(1, inversify_1.inject(types_1.IConfigurationService)) ], DataScienceCodeLensProvider); exports.DataScienceCodeLensProvider = DataScienceCodeLensProvider; //# sourceMappingURL=codelensprovider.js.map
lgeiger/ide-python
lib/debugger/VendorLib/vs-py-debugger/out/client/datascience/editor-integration/codelensprovider.js
JavaScript
mit
3,462
package box2dLight; public class DynamicLightMap extends LightMap { public DynamicLightMap (RayHandler rayHandler, int fboWidth, int fboHeight) { super(rayHandler, fboWidth, fboHeight); } @Override public void dispose () { super.dispose(); } }
Quexten/RavTech
core/src/box2dLight/DynamicLightMap.java
Java
mit
257
--- title: Phaethon menu: phaethon created: 15-01-2016, 07:05 date: 15-01-2016, 07:05 modified: 09-01-2017, 20:02 itempage: Article taxonomy: category: [docs, en] metadata: description: "Text extracted from chapter “Phaethon” of book II of Ovid's Metamorphoses, at the origin of figure of Apollo, god of the Sun, as represented in the group of “The Chariot of the Sun”, as carried out by Jean-Baptiste TUBY between 1668 and 1671 in the center of the Apollo Pond in the gardens of the Palace of Versailles and occasion to approach the meaning that could take that star to Louis XIV" keywords: "Palace of Versailles, Château de Versailles, Versailles, Gardens of the Palace of Versailles, Louis XIV, Louis 14, Ovid, The Metamorphoses, Metamorphoses, Phaethon, Apollo, Apollo Pond, Apollo Fountain, Fountain of Apollo, Pond of Apollo, Bassin du Char d’Apollon, Bassin d’Apollon, Fontaine d'Apollon, Fontaine du Char d'Apollon, The Chariot of the Sun, Pond of the Chariot of Apollo, Jean-Baptiste TUBY" image: apollon_700x556.jpg image_width: 700 image_height: 556 image_title: "Apollo, The Pond of The Chariot of Apollo, Gardens of the Palace of Versailles" image_legend: "The Chariot of the Sun, driven by Apollo, is coming out of Ocean at dawn" 'twitter:card': summary significantlinks: ["https://en.wikipedia.org/wiki/Louis_XIV_of_France", "https://en.wikipedia.org/wiki/Palace_of_Versailles", "https://en.wikipedia.org/wiki/Apollo", "https://en.wikipedia.org/wiki/Jean-Baptiste_Tuby", "https://en.wikipedia.org/wiki/Bassin_d'Apollo", "https://en.wikipedia.org/wiki/Gardens_of_Versailles", "https://en.wikipedia.org/wiki/Phaethon", "https://en.wikipedia.org/wiki/Metamorphoses", "https://en.wikipedia.org/wiki/Ovid", "https://en.wikipedia.org/wiki/Jean_Racine", "https://www.amazon.com/Memoires-Instruction-Dauphin-Louis-XIV/dp/0029301300"] specialty: ["History of France", "Mythology", "Culture of royal french court", "Litterature of the Roman Empire", "Roman Imperial Litterature", "Ovid", "Metamorphoses", "French Sculpture of the Seventeenth century", "French Sculpture of the 17th century", "French Sculpture of the XVIIth century", "French Court Sculpture", "Louis XIV", "Louis 14th", "Louis the 14th", "Palace of Versailles", "Gardens of the Palace of Versailles", "Phaethon", "Apollo", "Bassin d'Apollon", "Bassin du Char d'Apollon", "Fontaine d'Apollon", "Fontaine du Char d'Apollon", "Jean-Baptiste TUBY", "Char du Soleil", "Pond of Apollo", "Pond of the Chariot of Apollo", "Fountain of Apollo", "Fountain of the Chariot of Apollo", "Jean-Baptiste TUBY", "Chariot of the Sun"] shortcode-core: active: true sitemap: changefreq: monthly priority: 0.9 --- <figure><picture> <source sizes="(max-width: 767px) 98vw, (min-width: 959px) 50vw, 86vw" srcset=" /user/sites/docs/pages/01.home/02.versailles/02.jardins/02.phaeton/apollon-280.webp 280w, /user/sites/docs/pages/01.home/02.versailles/02.jardins/02.phaeton/apollon-380.webp 380w, /user/sites/docs/pages/01.home/02.versailles/02.jardins/02.phaeton/apollon-480.webp 480w, /user/sites/docs/pages/01.home/02.versailles/02.jardins/02.phaeton/apollon-640.webp 640w, /user/sites/docs/pages/01.home/02.versailles/02.jardins/02.phaeton/apollon_700x556.webp 700w" type="image/webp"> <img src="/user/sites/docs/pages/01.home/02.versailles/02.jardins/02.phaeton/apollon_700x556.jpg" alt="Apollo, god of the Sun, in the Apollo Pond of the Gardens of Palace of Versailles" title="Apollo, god of the Sun, in the Apollo Pond of the Gardens of Palace of Versailles" class="class-diane-img" sizes="(max-width: 767px) 98vw, (min-width: 959px) 50vw, 86vw" srcset=" /user/sites/docs/pages/01.home/02.versailles/02.jardins/02.phaeton/apollon-280.jpg 280w, /user/sites/docs/pages/01.home/02.versailles/02.jardins/02.phaeton/apollon-380.jpg 380w, /user/sites/docs/pages/01.home/02.versailles/02.jardins/02.phaeton/apollon-480.jpg 480w, /user/sites/docs/pages/01.home/02.versailles/02.jardins/02.phaeton/apollon-640.jpg 640w, /user/sites/docs/pages/01.home/02.versailles/02.jardins/02.phaeton/apollon_700x556.jpg 700w"> </picture><figcaption>The Chariot of the Sun, driven by Apollo, is coming out of Ocean at dawn</figcaption></figure> ! [Louis XIV][1] is also called the “Sun King”. ! In the “[Memoires for the instruction of the Dolphin][11]”, he himself explained the reasons that led him, young, alone, to make this choice naturally. ! At the [Palace of Versailles][2], the sun is visible in many forms. ! Among them, several places reveal the figure of [Apollo][3], God of the Sun, which evokes the grandeur of the Roman Empire, particularly those of the first baroque fests that took place in Versailles, such as the group of the Chariot of the Sun carried out by [Jean-Baptiste TUBY][4] between 1668 and 1671 in the center of the [Pond of Apollo][5] in the [Gardens][6]. ! The text below tells the tragic death of Apollo's strange son, [Phaethon][7], as it appears in the “[Metamorphoses][8]” of the Latin-speaking Roman Empire writer [Ovid][9], whom Louis XIV knew intimately for having apointed the writer [Jean Racine][10] of a particular reading of that work in the evening. ! This is the opportunity to approach the meaning of the figure of this star to Louis XIV as described by this text. [color=#df8a13]**Phaethon**[/color] <span><svg xmlns="http://www.w3.org/2000/svg" version="1" width="22px" height="22px" viewBox="0 0 78 78" fill="lightgrey" opacity="1"><path d="M76.5 9.0009L57.0898 32.605c-.88226 1.10283-.88226 1.54397-.88226 1.76454 0 1.10286 1.76455 3.30857 2.8674 4.632l13.0167 14.99877L61.50123 74.9545 50.4727 59.51456c-2.87047-3.97028-10.80793-15.88413-10.80793-19.19267 0-1.76458.6617-2.4263 6.6171-9.7051C60.8395 12.74754 63.04522 10.98297 70.98575 3.0455L76.5 9.00092zm-38.16172 0L18.9281 32.605c-.88228 1.10283-.88228 1.54397-.88228 1.76454 0 1.10286 1.76457 3.30857 2.86742 4.632L33.92688 54.0003 23.3395 74.9545 12.30793 59.51456C9.44053 55.54428 1.5 43.63043 1.5 40.3219c0-1.76458.6617-2.4263 6.6171-9.7051C22.67475 12.74754 24.88043 10.98297 32.82097 3.0455l5.51732 5.9554z"/></svg></span> <sup>1</sup> The palace of the Sun towered up with raised columns, bright with glittering gold, and gleaming bronze like fire. Shining ivory crowned the roofs, and the twin doors radiated light from polished silver. <sup>5</sup> The work of art was finer than the material: on the doors Mulciber had engraved the waters that surround the earth’s centre, the earthly globe, and the overarching sky. The dark blue sea contains the gods, melodious Triton, <sup>10</sup> shifting Proteus, Aegaeon crushing two huge whales together, his arms across their backs, and Doris with her daughters, some seen swimming, some sitting on rocks drying their sea-green hair, some riding the backs of fish. They are neither all alike, nor all different, just as sisters should be. The land shows men and towns, woods and creatures, <sup>15</sup> rivers and nymphs and other rural gods. Above them was an image of the glowing sky, with six signs of the zodiac on the right hand door and the same number on the left. [color=#df8a13]*Phaethon*[/color] As soon as Clymene’s son had climbed the steep path there, <sup>20</sup> and entered the house of this parent of whose relationship to himself he was uncertain, he immediately made his way into his father’s presence, but stopped some way off, unable to bear his light too close. Wearing a purple robe, Phoebus sat on a throne shining with bright emeralds. <sup>25</sup> To right and left stood the Day, Month, and Year, the Century and the equally spaced Hours. Young Spring stood there circled with a crown of flowers, naked Summer wore a garland of ears of corn, Autumn was stained by the trodden grapes, and <sup>30</sup> icy Winter had white, bristling hair. The Sun, seated in the middle of them, looked at the boy, who was fearful of the strangeness of it all, with eyes that see everything, and said « What reason brings you here? What do you look for on these heights, Phaethon, son that no father need deny? » <sup>35</sup> Phaethon replied « Universal light of the great world, Phoebus, father, if you let me use that name, if Clymene is not hiding some fault behind false pretence, give me proof father, so they will believe I am your true offspring, and take away this uncertainty from my mind! » <sup>40</sup> He spoke, and his father removed the crown of glittering rays from his head and ordered him to come nearer. Embracing him, he said « It is not to be denied you are worthy to be mine, and Clymene has told you the truth of your birth. <sup>45</sup> So that you can banish doubt, ask for any favour, so that I can grant it to you. May the Stygian lake, that my eyes have never seen, by which the gods swear, witness my promise. » Hardly had he settled back properly in his seat when the boy asked for his father’s chariot and the right to control his wing-footed horses for a day. His father regretted his oath. Three times, and then a fourth, <sup>50</sup> shaking his bright head, he said « Your words show mine were rash; if only it were right to retract my promise! I confess my boy I would only refuse you this one thing. It is right to dissuade you. What you want is unsafe. Phaethon you ask too great a favour, and one that is unfitting for your strength and boyish years. <sup>55</sup> Your fate is mortal: it is not mortal what you ask. Unknowingly you aspire to more than the gods can share. Though each deity can please themselves, within what is allowed, <sup>60</sup> no one except myself has the power to occupy the chariot of fire. Even the lord of mighty Olympus, who hurls terrifying lightning-bolts from his right hand, cannot drive this team, and who is greater than Jupiter? » « The first part of the track is steep, and one that my fresh horses at dawn can hardly climb. <sup>65</sup> In mid-heaven it is highest, where to look down on earth and sea often alarms even me, and makes my heart tremble with awesome fear. The last part of the track is downwards and needs sure control. Then even Tethys herself, who receives me in her submissive waves, is accustomed to fear that I might dive headlong. <sup>70</sup> Moreover the rushing sky is constantly turning, and drags along the remote stars, and whirls them in rapid orbits. I move the opposite way, and its momentum does not overcome me as it does all other things, and I ride contrary to its swift rotation. Suppose you are given the chariot. <sup>75</sup> What will you do? Will you be able to counter the turning poles so that the swiftness of the skies does not carry you away? Perhaps you conceive in imagination that there are groves there and cities of the gods and temples with rich gifts. The way runs through ambush, and apparitions of wild beasts! Even if you keep your course, and do not steer awry, <sup>80</sup> you must still avoid the horns of Taurus the Bull, Sagittarius the Haemonian Archer, raging Leo and the Lion’s jaw, Scorpio’s cruel pincers sweeping out to encircle you from one side, and Cancer’s crab-claws reaching out from the other. You will not easily rule those proud horses, <sup>85</sup> breathing out through mouth and nostrils the fires burning in their chests. They scarcely tolerate my control when their fierce spirits are hot, and their necks resist the reins. Beware my boy, that I am not the source of a gift fatal to you, while something can still be done to set right your request! » <sup>90</sup> « No doubt, since you ask for a certain sign to give you confidence in being born of my blood, I give you that sure sign by fearing for you, and show myself a father by fatherly anxiety. Look at me. If only you could look into my heart, and see a father’s concern from within! Finally, <sup>95</sup> look around you, at the riches the world holds, and ask for anything from all of the good things in earth, sea, and sky. I can refuse you nothing. Only this one thing I take exception to, which would truly be a punishment and not an honour. Phaethon, you ask for punishment as your reward! <sup>100</sup> Why do you unknowingly throw your coaxing arms around my neck? Have no doubt! Whatever you ask will be given, I have sworn it by the Stygian streams, but make a wiser choice! » The warning ended, but Phaethon still rejected his words, and pressed his purpose, blazing with desire to drive the chariot. <sup>105</sup> So, as he had the right, his father led the youth to the high chariot, Vulcan’s work. It had an axle of gold, and a gold chariot pole, wheels with golden rims, and circles of silver spokes. <sup>110</sup> Along the yoke chrysolites and gemstones, set in order, glowed with brilliance reflecting Phoebus’s own light. Now while brave Phaethon is gazing in wonder at the workmanship, see, Aurora, awake in the glowing east, opens wide her bright doors, and her rose-filled courts. The stars, whose ranks are shepherded by Lucifer the morning star, vanish, and he, last of all, <sup>115</sup> leaves his station in the sky. When Titan saw his setting, as the earth and skies were reddening, and just as the crescent of the vanishing moon faded, he ordered the swift Hours to yoke his horses. The goddesses quickly obeyed his command, and led the team, <sup>120</sup> sated with ambrosial food and breathing fire, out of the tall stables, and put on their ringing harness. Then the father rubbed his son’s face with a sacred ointment, and made it proof against consuming flames, and placed his rays amongst his hair, and foreseeing tragedy, <sup>125</sup> and fetching up sighs from his troubled heart, said « If you can at least obey your father’s promptings, spare the whip, boy, and rein them in more strongly! They run swiftly of their own accord. It is a hard task to check their eagerness. And do not please yourself, taking a path straight through the five zones of heaven! <sup>130</sup> The track runs obliquely in a wide curve, and bounded by the three central regions, avoids the southern pole and the Arctic north. This is your road, you will clearly see my wheel-marks, and so that heaven and earth receive equal warmth, <sup>135</sup> do not sink down too far or heave the chariot into the upper air! Too high and you will scorch the roof of heaven: too low, the earth. The middle way is safest. Nor must you swerve too far right towards writhing Serpens, nor lead your wheels too far left towards sunken Ara. <sup>140</sup> Hold your way between them! I leave the rest to Fortune, I pray she helps you, and takes better care of you than you do yourself. While I have been speaking, dewy night has touched her limit on Hesperus’s far western shore. We have no time for freedom! We are needed: Aurora, the dawn, shines, and the shadows are gone. <sup>145</sup> PSeize the reins in your hand, or if your mind can be changed, take my counsel, do not take my horses! While you can, while you still stand on solid ground, before unknowingly you take to the chariot you have unluckily chosen, let me light the world, while you watch in safety! [color=#df8a13]*the flight of Phaethon*[/color] <sup>150</sup> The boy has already taken possession of the fleet chariot, and stands proudly, and joyfully, takes the light reins in his hands, and thanks his unwilling father. Meanwhile the sun’s swift horses, Pyroïs, Eoüs, Aethon, and the fourth, Phlegon, fill the air with fiery whinnying, <sup>155</sup> and strike the bars with their hooves. When Tethys, ignorant of her grandson’s fate, pushed back the gate, and gave them access to the wide heavens, rushing out, they tore through the mists in the way with their hooves <sup>160</sup> and, lifted by their wings, overtook the East winds rising from the same region. But the weight was lighter than the horses of the Sun could feel, and the yoke was free of its accustomed load. <sup>165</sup> Just as curved-sided boats rock in the waves without their proper ballast, and being too light are unstable at sea, so the chariot, free of its usual burden, leaps in the air and rushes into the heights as though it were empty. As soon as they feel this the team of four run wild and leave the beaten track, no longer running in their pre-ordained course. He was terrified, <sup>170</sup> unable to handle the reins entrusted to him, not knowing where the track was, nor, if he had known, how to control the team. Then for the first time the chill stars of the Great and Little Bears, <sup>175</sup> grew hot, and tried in vain to douse themselves in forbidden waters. And the Dragon, Draco, that is nearest to the frozen pole, never formidable before and sluggish with the cold, now glowed with heat, and took to seething with new fury. They say that you Bootës also fled in confusion, slow as you are and hampered by the Plough. <sup>180</sup> When the unlucky Phaethon looked down from the heights of the sky at the earth far, far below he grew pale and his knees quaked with sudden fear, and his eyes were robbed of shadow by the excess light. Now he would rather he had never touched his father’s horses, and regrets knowing his true parentage and possessing what he asked for. Now he wants only to be called Merops’s son, as he is driven along <sup>185</sup> like a ship in a northern gale, whose master lets go the ropes, and leaves her to prayer and the gods. What can he do? Much of the sky is now behind his back, but more is before his eyes. Measuring both in his mind, he looks ahead to the west he is not fated to reach <sup>190</sup> and at times back to the east. Dazed he is ignorant how to act, and can neither grasp the reins nor has the power to loose them, nor can he change course by calling the horses by name. Also, alarmed, he sees the marvellous forms of huge creatures everywhere in the glowing sky. There is a place where Scorpio bends his pincers in twin arcs, <sup>195</sup> and, with his tail and his curving arms stretched out to both sides, spreads his body and limbs over two star signs. When the boy saw this monster drenched with black and poisonous venom threatening to wound him with its arched sting, <sup>200</sup> robbed of his wits by chilling horror, he dropped the reins. When the horses feel the reins lying across their backs, after he has thrown them down, they veer off course <sup>205</sup> and run unchecked through unknown regions of the air. Wherever their momentum takes them there they run, lawlessly, striking against the fixed stars in deep space and hurrying the chariot along remote tracks. Now they climb to the heights of heaven, now rush headlong down its precipitous slope, sweeping a course nearer to the earth. The Moon, amazed, sees her brother’s horses running below her own, and the boiling clouds smoke. <sup>210</sup> The earth bursts into flame, in the highest regions first, opens in deep fissures and all its moisture dries up. The meadows turn white, the trees are consumed with all their leaves, and the scorched corn makes its own destruction. But I am bemoaning the lesser things. <sup>215</sup> Great cities are destroyed with all their walls, and the flames reduce whole nations with all their peoples to ashes. The woodlands burn, with the hills. Mount Athos is on fire, Cilician Taurus, Tmolus, Oete and Ida, dry now once covered with fountains, and Helicon home of the Muses, and Haemus not yet linked with King Oeagrius’s name. <sup>220</sup> Etna blazes with immense redoubled flames, the twin peaks of Parnassus, Eryx, Cynthus, Othrys, Rhodope fated at last to lose its snow, Mimas and Dindyma, Mycale and Cithaeron, ancient in rites. Its chilly climate cannot save Scythia. <sup>225</sup> The Caucasus burn, and Ossa along with Pindus, and Olympos greater than either, and the lofty Alps and cloud-capped Apennines. <sup>230</sup> Then, truly, Phaethon sees the whole earth on fire. He cannot bear the violent heat, and he breathes the air as if from a deep furnace. He feels his chariot glowing white. He can no longer stand the ash and sparks flung out, and is enveloped in dense, hot smoke. He does not know where he is, or where he is going, swept along by the will of the winged horses. <sup>235</sup> It was then, so they believe, that the Ethiopians acquired their dark colour, since the blood was drawn to the surface of their bodies. Then Libya became a desert, the heat drying up her moisture. Then the nymphs with dishevelled hair wept bitterly for their lakes and fountains. Boeotia searches for Dirce’s rills, <sup>240</sup> Argos for Amymone’s fountain, Corinth for the Pirenian spring. Nor are the rivers safe because of their wide banks. The Don turns to steam in mid-water, and old Peneus, and Mysian Caicus and swift-flowing Ismenus, Arcadian Erymanthus, <sup>245</sup> Xanthus destined to burn again, golden Lycormas and Maeander playing in its watery curves, Thracian Melas and Laconian Eurotas. Babylonian Euphrates burns. Orontes burns and quick Thermodon, Ganges, Phasis, and Danube. <sup>250</sup> Alpheus boils. Spercheos’s banks are on fire. The gold that the River Tagus carries is molten with the fires, and the swans for whose singing Maeonia’s riverbanks are famous, are scorched in Caÿster’s midst. The Nile fled in terror to the ends of the earth, <sup>255</sup> and hid its head that remains hidden. Its seven mouths are empty and dust-filled, seven channels without a stream. The same fate parches the Thracian rivers, Hebrus and Strymon, and the western rivers, Rhine, Rhone, Po and the Tiber who had been promised universal power. <sup>260</sup> Everywhere the ground breaks apart, light penetrates through the cracks down into Tartarus, and terrifies the king of the underworld and his queen. The sea contracts and what was a moment ago wide sea is a parched expanse of sand. Mountains emerge from the water, and add to the scattered Cyclades. The fish dive deep, and the dolphins <sup>265</sup> no longer dare to rise arcing above the water, as they have done, into the air. The lifeless bodies of seals float face upwards on the deep. They even say that Nereus himself, and Doris and her daughters drifted through warm caves. Three times Neptune tried to lift his fierce face and arms above the waters. Three times he could not endure the burning air. <sup>275</sup> Nevertheless, kindly Earth, surrounded as she was by sea, between the open waters and the dwindling streams that had buried themselves in their mother’s dark womb, lifted her smothered face. Putting her hand to her brow, and shaking everything with her mighty tremors, she sank back a little lower than she used to be, and spoke in a faint voice « If this pleases you, if I have deserved it, <sup>280</sup> Ô king of the gods, why delay your lightning bolts? If it is right for me to die through the power of fire, let me die by your fire and let the doer of it lessen the pain of the deed! I can hardly open my lips to say these words (the heat was choking her). Look at my scorched hair and the ashes in my eyes, the ashes over my face! <sup>285</sup> Is this the honour and reward you give me for my fruitfulness and service, for carrying wounds from the curved plough and the hoe, for being worked throughout the year, providing herbage and tender grazing for the flocks, produce for the human race and incense to minister to you gods? <sup>290</sup> Even if you find me deserving of ruin, what have the waves done, why does your brother deserve this? Why are the waters that were his share by lot diminished and so much further from the sky? If neither regard for me or for your brother moves you pity at least your own heavens! <sup>295</sup> Look around you on either side: both the poles are steaming! If the fire should melt them, your own palace will fall! Atlas himself is suffering, and can barely hold up the white-hot sky on his shoulders! If the sea and the land and the kingdom of the heavens are destroyed, we are lost in ancient chaos! <sup>300</sup> Save whatever is left from the flames, and think of our common interest! » So the Earth spoke, and unable to tolerate the heat any longer or speak any further, she withdrew her face into her depths closer to the caverns of the dead. But the all-powerful father of the gods climbs to the highest summit of heaven, from where he spreads his clouds over the wide earth, from where he moves the thunder and hurls his quivering lightning bolts, calling on the gods, <sup>305</sup> especially on him who had handed over the sun chariot, to witness that, unless he himself helps, the whole world will be overtaken by a ruinous fate. Now he has no clouds to cover the earth, <sup>310</sup> or rain to shower from the sky. He thundered, and balancing a lightning bolt in his right hand threw it from eye-level at the charioteer, removing him, at the same moment, from the chariot and from life, <sup>315</sup> extinguishing fire with fierce fire. Thrown into confusion the horses, lurching in different directions, wrench their necks from the yoke and throw off the broken harness. Here the reins lie, there the axle torn from the pole, there the spokes of shattered wheels, and the fragments of the wrecked chariot are flung far and wide. <sup>320</sup> But Phaethon, flames ravaging his glowing hair, is hurled headlong, leaving a long trail in the air, as sometimes a star does in the clear sky, appearing to fall although it does not fall. Far from his own country, in a distant part of the world, the river god Eridanus takes him from the air, and bathes his smoke-blackened face. <sup>325</sup> There the Italian nymphs consign his body, still smoking from that triple-forked flame, to the earth, and they also carve a verse in the rock: HERE PHAETHON LIES WHO THE SUN’S JOURNEY MADE DARED ALL THOUGH HE BY WEAKNESS WAS BETRAYED Now the father, pitiful, ill with grief, <sup>330</sup> hid his face, and, if we can believe it, a whole day went by without the sun. But the fires gave light, so there was something beneficial amongst all that evil. But Clymene, having uttered whatever can be uttered at such misfortune, grieving and frantic and tearing her breast, <sup>335</sup> wandered over the whole earth first looking for her son’s limbs, and then failing that his bones. She found his bones already buried however, beside the riverbank in a foreign country. Falling to the ground she bathed with tears the name she could read on the cold stone and warmed it against her naked breast. <sup>340</sup> The Heliads, her daughters and the Sun’s, cry no less, and offer their empty tribute of tears to the dead, and, beating their breasts with their hands, they call for their brother night and day, and lie down on his tomb, though he cannot hear their pitiful sighs. Four times the moon had joined her crescent horns to form her bright disc. <sup>345</sup> They by habit, since use creates habit, devoted themselves to mourning. Then Phaethüsa, the eldest sister, when she tried to throw herself to the ground, complained that her ankles had stiffened, and when radiant Lampetia tried to come near her she was suddenly rooted to the spot. A third sister attempting to tear at her hair pulled out leaves. <sup>350</sup> One cried out in pain that her legs were sheathed in wood, another that her arms had become long branches. While they wondered at this, bark closed round their thighs and by degrees over their waists, breasts, shoulders, and hands, <sup>355</sup> and all that was left free were their mouths calling for their mother. What can their mother do but go here and there as the impulse takes her, pressing her lips to theirs where she can? It is no good. She tries to pull the bark from their bodies and break off new branches with her hands, <sup>360</sup> but drops of blood are left behind like wounds. « Stop, mother, please » cries out whichever one she hurts, « Please stop: It is my body in the tree you are tearing. Now, farewell. » and the bark closed over her with her last words. Their tears still flow, and hardened by the sun, fall as <sup>365</sup> amber from the virgin branches, to be taken by the bright river and sent onwards to adorn Roman brides. <span><svg xmlns="http://www.w3.org/2000/svg" version="1" width="22px" height="22px" viewBox="0 0 78 78" fill="lightgrey" opacity="1"><path d="M1.5 68.9991L20.9102 45.395c.88226-1.10283.88226-1.54397.88226-1.76454 0-1.10286-1.76455-3.30857-2.8674-4.632L5.90836 23.9997 16.49877 3.0455 27.5273 18.48544c2.87047 3.97028 10.80793 15.88413 10.80793 19.19267 0 1.76458-.6617 2.4263-6.6171 9.7051C17.1605 65.25246 14.95478 67.01703 7.01425 74.9545L1.5 68.99908zm38.16172 0L59.0719 45.395c.88228-1.10283.88228-1.54397.88228-1.76454 0-1.10286-1.76457-3.30857-2.86742-4.632L44.07312 23.9997 54.6605 3.0455l11.03157 15.43992C68.55947 22.45572 76.5 34.36957 76.5 37.6781c0 1.76458-.6617 2.4263-6.6171 9.7051C55.32526 65.25246 53.11957 67.01703 45.17904 74.9545l-5.51732-5.9554z"/></svg></span> [color=#df8a13]Ovid, “The Metamorphoses”, Book 2[/color] [1]: https://en.wikipedia.org/wiki/Louis_XIV_of_France "https://en.wikipedia.org/wiki/Louis XIV of France" [2]: https://en.wikipedia.org/wiki/Palace_of_Versailles "https://en.wikipedia.org/wiki/Palace of Versailles" [3]: https://en.wikipedia.org/wiki/Apollo "https://en.wikipedia.org/wiki/Apollo" [4]: https://en.wikipedia.org/wiki/Jean-Baptiste_Tuby "https://en.wikipedia.org/wiki/Jean-Baptiste Tuby" [5]: https://en.wikipedia.org/wiki/Bassin_d%27Apollo "https://en.wikipedia.org/wiki/Bassin d'Apollon" [6]: https://en.wikipedia.org/wiki/Gardens_of_Versailles "https://en.wikipedia.org/wiki/Gardens of Versailles" [7]: https://en.wikipedia.org/wiki/Phaethon "https://en.wikipedia.org/wiki/Phaethon" [8]: https://en.wikipedia.org/wiki/Metamorphoses "https://en.wikipedia.org/wiki/Metamorphoses" [9]: https://en.wikipedia.org/wiki/Ovid "https://en.wikipedia.org/wiki/Ovid" [10]: https://en.wikipedia.org/wiki/Jean_Racine "https://en.wikipedia.org/wiki/Jean Racine" [11]: https://www.amazon.com/Memoires-Instruction-Dauphin-Louis-XIV/dp/0029301300 "https://www.amazon.com/Memoires-Instruction-Dauphin-Louis-XIV/dp/0029301300"
tidiview/francois-vidit.fr
user/sites/docs/pages/01.home/02.versailles/02.jardins/02.phaeton/docs.en.md
Markdown
mit
30,640
package r2d2.lee2345.com.fragmenttest.ExampleFlow; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import r2d2.lee2345.com.fragmenttest.GridView.GridViewFragment; /** * Created by leesuckgeun on 15/09/06. */ public class FirstFragment extends GridViewFragment { @Override protected View initItemView(int position, View convertView, ViewGroup parent) { Button button; if (convertView == null) { button = new Button(getActivity()); button.setFocusable(false); button.setClickable(false); } else { button = (Button) convertView; } button.setText(modelList.get(position).toString()); return button; } }
leesuckgeun/GridViewFragmentBuilder
app/src/main/java/r2d2/lee2345/com/fragmenttest/ExampleFlow/FirstFragment.java
Java
mit
754
<?php /* Safe sample input : use shell_exec to cat /tmp/tainted.txt sanitize : cast via + = 0 construction : concatenation */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy, modify, and distribute this software and its documentation for any purpose, provided that the above copyright notice and the following three paragraphs appear in all copies of this software. IN NO EVENT SHALL AUTHORS BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF AUTHORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. AUTHORS SPECIFICALLY DISCLAIM ANY WARRANTIES INCLUDING, BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THE SOFTWARE IS PROVIDED ON AN "AS-IS" BASIS AND AUTHORS HAVE NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.*/ $tainted = shell_exec('cat /tmp/tainted.txt'); $tainted += 0 ; $query = "SELECT Trim(a.FirstName) & ' ' & Trim(a.LastName) AS employee_name, a.city, a.street & (' ' +a.housenum) AS address FROM Employees AS a WHERE a.supervisor=". $tainted . ""; $conn = mysql_connect('localhost', 'mysql_user', 'mysql_password'); // Connection to the database (address, user, password) mysql_select_db('dbname') ; echo "query : ". $query ."<br /><br />" ; $res = mysql_query($query); //execution while($data =mysql_fetch_array($res)){ print_r($data) ; echo "<br />" ; } mysql_close($conn); ?>
stivalet/PHP-Vulnerability-test-suite
Injection/CWE_89/safe/CWE_89__shell_exec__CAST-cast_int_sort_of__multiple_AS-concatenation.php
PHP
mit
1,622
""" Revision ID: 0176_alter_billing_columns Revises: 0175_drop_job_statistics_table Create Date: 2018-03-12 16:54:30.663897 """ from alembic import op import sqlalchemy as sa revision = '0176_alter_billing_columns' down_revision = '0175_drop_job_statistics_table' def upgrade(): op.alter_column('dm_datetime', 'calendar_week', existing_type=sa.INTEGER(), nullable=False) op.alter_column('dm_datetime', 'day', existing_type=sa.INTEGER(), nullable=False) op.alter_column('dm_datetime', 'financial_year', existing_type=sa.INTEGER(), nullable=False) def downgrade(): op.alter_column('dm_datetime', 'financial_year', existing_type=sa.INTEGER(), nullable=True) op.alter_column('dm_datetime', 'day', existing_type=sa.INTEGER(), nullable=True) op.alter_column('dm_datetime', 'calendar_week', existing_type=sa.INTEGER(), nullable=True)
alphagov/notifications-api
migrations/versions/0176_alter_billing_columns.py
Python
mit
858
This generator has set up the following stack: 1. Testing * RSpec * Capybara * Database Cleaner * SimpleCov * Guard 2. Frontend * Bootstrap * Disabled Turbolinks * Precompiled assets in production 3. Gem groups set up for easy Heroku deployment * Postgres will work out of the box. No configuration necessary. 4. Misc * Google Analytics TODO: 1. An MIT License file has been created for you * Add your name and the year 2. A README.md file has been started for you * Add relavent information and screenshots for your app * There is a basic template you can follow, but make it your own 3. Google Analytics is set up to track your app * Set up an application on Google Analytics * You will need to add your analytics tracking code to `config/secrets.yml` Deploying to Heroku: 1. `bin/setup [<app_name>]` * <app_name> is optional. It will, by default, attempt to create an app on Heroku using your Rails application name. 2. `bin/deploy` Deploying to Ninefold: 1. Create your app on Ninefold 2. Add the given SSH key to your account on GitHub 3. Choose the option for a single-server app 4. Choose Ruby 2.1.0 5. Change the name of the Environment Variable from SECRET_TOKEN to SECRET_KEY_BASE 6. Click deploy (it will probably fail) 7. Copy the relevant database information from the Database tab 8. Paste that info in your `config/secrets.yml` file 9. Push your changes 10. Re-deploy on Ninefold
kthffmn/gametime
STACK.md
Markdown
mit
1,504
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Interactive extends Model { protected $table = 'interactives'; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ "exam_id", "step", "title", "desc", "image" ]; /** * The attributes excluded from the model's JSON form. * * @var array */ protected $hidden = [ "created_at" , "updated_at" ]; }
ralphjesy12/cdts
app/Interactive.php
PHP
mit
447
<?php /* * Slovenska lokalizacia phpPgAdmin-u. * ado (at) imladris.sk */ // Language and character set $lang['applang'] = 'Slovensky'; $lang['appcharset'] = 'UTF-8'; $lang['applocale'] = 'sk_SK'; $lang['appdbencoding'] = 'LATIN1'; $lang['applangdir'] = 'ltr'; // Basic strings $lang['strintro'] = 'Vitaje vo phpPgAdmin-e.'; $lang['strppahome'] = 'phpPgAdmin Homepage'; $lang['strpgsqlhome'] = 'PostgreSQL Homepage'; $lang['strpgsqlhome_url'] = 'http://www.postgresql.org/'; $lang['strlocaldocs'] = 'PostgreSQL Dokumentácia'; $lang['strreportbug'] = 'Oznámiť Chybu'; $lang['strviewfaq'] = 'Zobraziť FAQ'; $lang['strviewfaq_url'] = 'http://phppgadmin.sourceforge.net/?page=faq'; // Basic strings $lang['strlogin'] = 'Prihlásenie'; $lang['strloginfailed'] = 'Prihlásenie zlyhalo'; $lang['strlogindisallowed'] = 'Prihlásenie je vypnuté kôli bezpečnosti'; $lang['strserver'] = 'Server'; $lang['strservers'] = 'Servery'; $lang['strintroduction'] = 'Úvod'; $lang['strhost'] = 'Hostiteľ'; $lang['strport'] = 'Port'; $lang['strlogout'] = 'Odhlásiť'; $lang['strowner'] = 'Vlastník'; $lang['straction'] = 'Akcia'; $lang['stractions'] = 'Akcie'; $lang['strname'] = 'Meno'; $lang['strdefinition'] = 'Definícia'; $lang['strproperties'] = 'Vlastnosti'; $lang['strbrowse'] = 'Prehliadať'; $lang['strdrop'] = 'Odstrániť'; $lang['strdropped'] = 'Odstránený'; $lang['strnull'] = 'Nulový'; $lang['strnotnull'] = 'Ne-nulový'; $lang['strprev'] = 'Predchádzajúci'; $lang['strnext'] = 'Ďaľší'; $lang['strfirst'] = '<< Prvý'; $lang['strlast'] = 'Posledný >>'; $lang['strfailed'] = 'Chyba.'; $lang['strcreate'] = 'Vytvoriť'; $lang['strcreated'] = 'Vytvorené'; $lang['strcomment'] = 'Komentár'; $lang['strlength'] = 'Dĺžka'; $lang['strdefault'] = 'Predvolené'; $lang['stralter'] = 'Zmeniť'; $lang['strok'] = 'OK'; $lang['strcancel'] = 'Zrušiť'; $lang['strsave'] = 'Uložiť'; $lang['strreset'] = 'Reset'; $lang['strinsert'] = 'Vložiť'; $lang['strselect'] = 'Vybrať'; $lang['strdelete'] = 'Zmazať'; $lang['strupdate'] = 'Aktualizovať'; $lang['strreferences'] = 'Referencie'; $lang['stryes'] = 'Áno'; $lang['strno'] = 'Nie'; $lang['strtrue'] = 'True'; $lang['strfalse'] = 'False'; $lang['stredit'] = 'Upraviť'; $lang['strcolumn'] = 'Stĺpec'; $lang['strcolumns'] = 'Stĺpce'; $lang['strrows'] = 'riadky'; $lang['strrowsaff'] = 'riadkov ovplyvnených.'; $lang['strobjects'] = 'objekt(y)'; $lang['strback'] = 'Späť'; $lang['strqueryresults'] = 'Výsledky Dotazu'; $lang['strshow'] = 'Ukázať'; $lang['strempty'] = 'Vyprázdniť'; $lang['strlanguage'] = 'Jazyk'; $lang['strencoding'] = 'Kódovanie'; $lang['strvalue'] = 'Hodnota'; $lang['strunique'] = 'Unikátny'; $lang['strprimary'] = 'Primárny'; $lang['strexport'] = 'Exportovať'; $lang['strimport'] = 'Import'; $lang['strallowednulls'] = 'Povolený NULL znak'; $lang['strbackslashn'] = '\N'; $lang['strnull'] = 'Null'; $lang['strnull'] = 'NULL (slovo)'; $lang['stremptystring'] = 'Prázdny reťazec/pole'; $lang['strsql'] = 'SQL'; $lang['stradmin'] = 'Admin'; $lang['strvacuum'] = 'Vyčistiť'; $lang['stranalyze'] = 'Analyzovať'; $lang['strclusterindex'] = 'Cluster'; $lang['strclustered'] = 'Clustered?'; $lang['strreindex'] = 'Reindex'; $lang['strrun'] = 'Spustiť'; $lang['stradd'] = 'Pridať'; $lang['strremove'] = 'Zmazať'; $lang['strevent'] = 'Prípadne'; $lang['strwhere'] = 'Kde'; $lang['strinstead'] = 'Urobiť Namiesto'; $lang['strwhen'] = 'Kedy'; $lang['strformat'] = 'Formát'; $lang['strdata'] = 'Dáta'; $lang['strconfirm'] = 'Potvrdiť'; $lang['strexpression'] = 'Výraz'; $lang['strellipsis'] = '...'; $lang['strseparator'] = ': '; $lang['strexpand'] = 'Rozšíriť'; $lang['strcollapse'] = 'Zbaliť'; $lang['strexplain'] = 'Vysvetliť'; $lang['strexplainanalyze'] = 'Vysvetliť Analyze'; $lang['strfind'] = 'Nájsť'; $lang['stroptions'] = 'Nastavenia'; $lang['strrefresh'] = 'Obnoviť'; $lang['strdownload'] = 'Download'; $lang['strdownloadgzipped'] = 'Stiahnuť skomprimované pomocou gzip'; $lang['strinfo'] = 'Info'; $lang['stroids'] = 'OIDs'; $lang['stradvanced'] = 'Viac'; $lang['strvariables'] = 'Premenné'; $lang['strprocess'] = 'Proces'; $lang['strprocesses'] = 'Procesy'; $lang['strsetting'] = 'Nastavenie'; $lang['streditsql'] = 'Upraviť SQL'; $lang['strruntime'] = 'Celkový beh: %s ms'; $lang['strpaginate'] = 'Výsledky stránkovania'; $lang['struploadscript'] = 'alebo uploadni SQL skript:'; $lang['strstarttime'] = 'Čas štartu'; $lang['strfile'] = 'Súbor'; $lang['strfileimported'] = 'Súbor importovaný.'; $lang['strtrycred'] = 'Použiť tieto hodnoty pre všetky hodnoty'; // Error handling $lang['strnoframes'] = 'Táto aplikácia funguje najlapšie s prehliadačom, ktorý podporuje technológiu frame-ov, no môže byť použitý aj takým, ktorý to nepodporuje nasledovaním tohto odkazu:'; $lang['strnoframeslink'] = 'Nepoužívať frame-y'; $lang['strbadconfig'] = 'Tvoj config.inc.php je zastaralý. Musíš vygenerovať nový zo súboru config.inc.php-dist.'; $lang['strnotloaded'] = 'Tvoje PHP nie je skompilované s potrebnou podporou databáz.'; $lang['strpostgresqlversionnotsupported'] = 'Tvoja verzia PostgreSQL nie je podporovaná. Prosím aktualizuj ju na verziu %s alebo vyššiu.'; $lang['strbadschema'] = 'Špecifikovaná chybná schéma.'; $lang['strbadencoding'] = 'Nastavenie kódovania v databáze zlyhalo.'; $lang['strsqlerror'] = 'SQL chyba:'; $lang['strinstatement'] = 'Vo výraze:'; $lang['strinvalidparam'] = 'Chybné parametre skriptu.'; $lang['strnodata'] = 'Nenájdené žiadne záznamy.'; $lang['strnoobjects'] = 'Nenájdené žiadne objekty.'; $lang['strrownotunique'] = 'Žiadny unikátny identifikárot pre tento riadok.'; $lang['strnoreportsdb'] = 'Nebola vytvorené report databáza. Prečítaj si INSTALL súbor s pokynmi.'; $lang['strnouploads'] = 'Upload súborov je vypnutý.'; $lang['strimporterror'] = 'Chyba Import-u.'; $lang['strimporterror-fileformat'] = 'Chyba importu: Automatické určenie formátu súboru zlyhalo.'; $lang['strimporterrorline'] = 'Chyba Import-u na riadku %s.'; $lang['strimporterrorline-badcolumnnum'] = 'Chyba importu na riadku %s: Riadok nemá správny počet stĺpcov.'; $lang['strimporterror-uploadedfile'] = 'Chyba importu: Súbor nemôže byť upload-nutý k serveru'; $lang['strcannotdumponwindows'] = 'Dump komplexných tabuliek a schém nie je na platforme Windows podporovaný.'; // Tables $lang['strtable'] = 'Tabuľka'; $lang['strtables'] = 'Tabuľky'; $lang['strshowalltables'] = 'Zobraziť Všetky Tabuľky'; $lang['strnotables'] = 'Nenájdené žiadne tabuľky.'; $lang['strnotable'] = 'Nenájdená žiadna tabuľka.'; $lang['strcreatetable'] = 'Vytvoriť tabuľku'; $lang['strtablename'] = 'Názov tabuľky'; $lang['strtableneedsname'] = 'Musíš zadať názov pre tvoju tabuľku.'; $lang['strtableneedsfield'] = 'Musíš špecifikovať aspoň jedno pole.'; $lang['strtableneedscols'] = 'Tabuľky vyžadujú vyhovujúci počet stĺpcov.'; $lang['strtablecreated'] = 'Tabuľka vytvorená.'; $lang['strtablecreatedbad'] = 'Tabuľka nebola vytvorená.'; $lang['strconfdroptable'] = 'Naozaj chceš odstrániť tabuľku "%s"?'; $lang['strtabledropped'] = 'Tabuľka odstránená.'; $lang['strtabledroppedbad'] = 'Tabuľka nebola odstránená.'; $lang['strconfemptytable'] = 'Si si istý, že chceš vyprázdniť tabuľku "%s"?'; $lang['strtableemptied'] = 'Tabuľka vyprázdnená.'; $lang['strtableemptiedbad'] = 'Tabuľka nebola vyprázdnená.'; $lang['strinsertrow'] = 'Vložiť Riadok'; $lang['strrowinserted'] = 'Riadok vložený.'; $lang['strrowinsertedbad'] = 'Riadok nebol vložený.'; $lang['strrowduplicate'] = 'Vloženie riadku zlyhalo, pokus o duplikátny insert.'; $lang['streditrow'] = 'Upraviť Riadok'; $lang['strrowupdated'] = 'Riadok upravený.'; $lang['strrowupdatedbad'] = 'Riadok nebol upravený.'; $lang['strdeleterow'] = 'Zmazať Riadok'; $lang['strconfdeleterow'] = 'Si si istý, že chceš zmazať tento riadok?'; $lang['strrowdeleted'] = 'Riadok zmazaný.'; $lang['strrowdeletedbad'] = 'Riadok nebol zmazaný.'; $lang['strinsertandrepeat'] = 'Vložiť & Zopakovať'; $lang['strnumcols'] = 'Počet stĺpcov'; $lang['strcolneedsname'] = 'Musíš zadať názov pre tvoj stĺpec'; $lang['strselectallfields'] = 'Vybrať všetky polia'; $lang['strselectneedscol'] = 'Musíš označiť aspoň jeden stĺpec.'; $lang['strselectunary'] = 'Unárne operátory nemôžu mať hodnoty.'; $lang['straltercolumn'] = 'Zmeniť Stĺpec'; $lang['strcolumnaltered'] = 'Stĺpec zmenený.'; $lang['strcolumnalteredbad'] = 'Stĺpec nebol zmenený.'; $lang['strconfdropcolumn'] = 'Naozaj chceš zmazať stĺpec "%s" z tabuľky "%s"?'; $lang['strcolumndropped'] = 'Stĺpec zmenený.'; $lang['strcolumndroppedbad'] = 'Stĺpec nebol zmazaný.'; $lang['straddcolumn'] = 'Pridať Stĺpec'; $lang['strcolumnadded'] = 'Stĺpec pridaný.'; $lang['strcolumnaddedbad'] = 'Stĺpec nebol pridaný.'; $lang['strcascade'] = 'CASCADE'; $lang['strtablealtered'] = 'Tabuľka zmenená.'; $lang['strtablealteredbad'] = 'Tabuľka nebola zmenená.'; $lang['strdataonly'] = 'Iba Dáta'; $lang['strstructureonly'] = 'Iba Štruktúra'; $lang['strstructureanddata'] = 'Štruktúra a Dáta'; $lang['strtabbed'] = 'Tabbed'; $lang['strauto'] = 'Auto'; $lang['strconfvacuumtable'] = 'Naozaj chceš vyčistiť "%s"?'; $lang['strestimatedrowcount'] = 'Odhadovaný počet riadkov'; // Users $lang['struser'] = 'Používateľ'; $lang['strusers'] = 'Používatelia'; $lang['strusername'] = 'Meno používateľa'; $lang['strpassword'] = 'Heslo'; $lang['strsuper'] = 'Superuser?'; $lang['strcreatedb'] = 'Vytváranie DB?'; $lang['strexpires'] = 'Expiruje'; $lang['strsessiondefaults'] = 'Sessions defaults'; //s cim to tak suvis??:) $lang['strnousers'] = 'Nenájdení žiadni používatelia.'; $lang['struserupdated'] = 'Požívatelia zmenení.'; $lang['struserupdatedbad'] = 'Použivatelia neboli zmenení.'; $lang['strshowallusers'] = 'Zobraziť Všetkých Používateľov'; $lang['strcreateuser'] = 'Vytvoriť používateľa'; $lang['struserneedsname'] = 'Musíš zadať meno pre svojho používateľa.'; $lang['strusercreated'] = 'Používateľ vytvorený.'; $lang['strusercreatedbad'] = 'Používateľ nebol vytvorený.'; $lang['strconfdropuser'] = 'Naozaj chceš zmazať používateľa "%s"?'; $lang['struserdropped'] = 'Používateľ zmazaný.'; $lang['struserdroppedbad'] = 'Používateľ nebol zmazaný.'; // Groups $lang['straccount'] = 'Konto'; $lang['strchangepassword'] = 'Zmeniť Heslo'; $lang['strpasswordchanged'] = 'Heslo zmenené.'; $lang['strpasswordchangedbad'] = 'Heslo NEBOLO zmenené.'; $lang['strpasswordshort'] = 'Heslo je príliš krátke.'; $lang['strpasswordconfirm'] = 'Heslo sa nezhoduje so zadaným overovacím heslom.'; // Groups $lang['strgroup'] = 'Skupina'; $lang['strgroups'] = 'Skupiny'; $lang['strnogroup'] = 'Skupina nenájdená.'; $lang['strnogroups'] = 'Žiadne skupiny nenájdené.'; $lang['strcreategroup'] = 'Vytvoriť Skupinu'; $lang['strshowallgroups'] = 'Zobraziť Všetky Skupiny'; $lang['strgroupneedsname'] = 'Musíš zadať názov pre tvoju skupinu.'; $lang['strgroupcreated'] = 'Skupina Vytvorená.'; $lang['strgroupcreatedbad'] = 'Skupina nebola vytvorená.'; $lang['strconfdropgroup'] = 'Naozaj chceš zmazať skupinu "%s"?'; $lang['strgroupdropped'] = 'Skupina zmazaná.'; $lang['strgroupdroppedbad'] = 'Skupina nebola zmazaná.'; $lang['strmembers'] = 'Členovia'; $lang['straddmember'] = 'Pridať člena'; $lang['strmemberadded'] = 'Člen pridaný.'; $lang['strmemberaddedbad'] = 'Člen nebol pridaný.'; $lang['strdropmember'] = 'Zmazať člena'; $lang['strconfdropmember'] = 'Naozaj chceš zmazať cľena "%s" zo skupiny "%s"?'; $lang['strmemberdropped'] = 'Člen zmazaný.'; $lang['strmemberdroppedbad'] = 'Člen nebol zmazaný.'; // Privilges $lang['strprivilege'] = 'Privilégiá'; $lang['strprivileges'] = 'Privilégiá'; $lang['strnoprivileges'] = 'Tento objekt nemá privilégiá.'; $lang['strgrant'] = 'Povoliť'; $lang['strrevoke'] = 'Odobrať'; $lang['strgranted'] = 'Privilégiá pridané.'; $lang['strgrantfailed'] = 'Privilégiá neboli pridané.'; $lang['strgrantbad'] = 'Musíš špecifikovat aspoň jedného užívateľa/skupinu a aspoň jedno privilégium.'; $lang['strgrantor'] = 'Prideľovateľ'; $lang['strasterisk'] = '*'; // Databases $lang['strdatabase'] = 'Databáza'; $lang['strdatabases'] = 'Databázy'; $lang['strshowalldatabases'] = 'Zobraziť všetky databázy'; $lang['strnodatabase'] = 'Nenájdená žiadna Databáza.'; $lang['strnodatabases'] = 'Nenájdené žiadne Databázy.'; $lang['strcreatedatabase'] = 'Vytvoriť databázu'; $lang['strdatabasename'] = 'Názov databázy'; $lang['strdatabaseneedsname'] = 'Musíš zadať názov pre tvoju databázu.'; $lang['strdatabasecreated'] = 'Databáza vytvorená.'; $lang['strdatabasecreatedbad'] = 'Databáza nebola vytvorená.'; $lang['strconfdropdatabase'] = 'Naozaj chceš zmazať databázu "%s"?'; $lang['strdatabasedropped'] = 'Databáze zmazaná.'; $lang['strdatabasedroppedbad'] = 'Databáza nebola zmazaná.'; $lang['strentersql'] = 'Vložiť SQL dotaz:'; $lang['strsqlexecuted'] = 'SQL dotaz vykonaný.'; $lang['strvacuumgood'] = 'Vyčistenie kompletné.'; $lang['strvacuumbad'] = 'Vyčistnie zlyhalo.'; $lang['stranalyzegood'] = 'Analyzovanie kompletné.'; $lang['stranalyzebad'] = 'Analyzovanie zlyhalo.'; $lang['strreindexgood'] = 'Reindex hotový.'; $lang['strreindexbad'] = 'Reindex zlyhal.'; $lang['strfull'] = 'Full'; //todo - konzultovat!! $lang['strfreeze'] = 'Freeze'; //deto $lang['strforce'] = 'Force'; // -||- $lang['strsignalsent'] = 'Signál odoslaný.'; $lang['strsignalsentbad'] = 'Odoslanie signálu zlyhalo.'; $lang['strallobjects'] = 'Všetky objekty'; $lang['strdatabasealtered'] = 'Databáza zmenená.'; $lang['strdatabasealteredbad'] = 'Databáza nebola zmenená.'; // Views $lang['strview'] = 'Náhľad'; $lang['strviews'] = 'Náhľady'; $lang['strshowallviews'] = 'Zobraziť Všetky Náhľady'; $lang['strnoview'] = 'Nenájdený žiadny náhľad.'; $lang['strnoviews'] = 'Nenájdené žiadne náhľady.'; $lang['strcreateview'] = 'Vytvoriť Náhľad'; $lang['strviewname'] = 'Názov náhľadu'; $lang['strviewneedsname'] = 'Musíš zadať názov pre tvoj náhľad.'; $lang['strviewneedsdef'] = 'Musíš zadať definíciu pre tvoj náhľad.'; $lang['strviewneedsfields'] = 'Mušíš zvoliť stĺpce, ktoré chceš mať vo svojom náhľade.'; $lang['strviewcreated'] = 'Náhľad vytvorený.'; $lang['strviewcreatedbad'] = 'Náhľad nebol vytvorený.'; $lang['strconfdropview'] = 'Naozaj chceš zmazať náhľad "%s"?'; $lang['strviewdropped'] = 'Náhľad zmazaný.'; $lang['strviewdroppedbad'] = 'Náhľad nebol zmazaný.'; $lang['strviewupdated'] = 'Náhľad upravený.'; $lang['strviewupdatedbad'] = 'Náhľad nebol upravený.'; $lang['strviewlink'] = 'Linkujúce Kľúče'; $lang['strviewconditions'] = 'Doplňujúce Podmienky'; $lang['strcreateviewwiz'] = 'Vytvoriť náhľad cez \"pomocníka\"'; // Sequences $lang['strsequence'] = 'Sekvencia'; $lang['strsequences'] = 'Sekvencie'; $lang['strshowallsequences'] = 'Zobraziť Všetky Sekvencie'; $lang['strnosequence'] = 'Nenájdená žiadna sekvencia.'; $lang['strnosequences'] = 'nenájdené žiadne sekvencie.'; $lang['strcreatesequence'] = 'Vytvoriť Sekvenciu'; $lang['strlastvalue'] = 'Posledná Hodnota'; $lang['strincrementby'] = 'Inkrementovať od'; $lang['strstartvalue'] = 'Start Hodnota'; $lang['strmaxvalue'] = 'Max Hodnota'; $lang['strminvalue'] = 'Min Hodnota'; $lang['strcachevalue'] = 'Cache Hodnota'; $lang['strlogcount'] = 'Log Súčet'; $lang['striscycled'] = 'Je Cycled?'; $lang['strsequenceneedsname'] = 'Musíš zadať názov pre tvoju sekvenciu.'; $lang['strsequencecreated'] = 'Sekvencia vytvorená.'; $lang['strsequencecreatedbad'] = 'Sekvencia nebola vytvorená.'; $lang['strconfdropsequence'] = 'Naozaj chceš zmazať sekvenciu "%s"?'; $lang['strsequencedropped'] = 'Sekvencia zmazaná.'; $lang['strsequencedroppedbad'] = 'Sekvencia nebola zmazaná.'; $lang['strsequencereset'] = 'Sekvencia resetovaná.'; $lang['strsequenceresetbad'] = 'Sekvencia nebola resetovaná.'; // Indexes $lang['strindex'] = 'Index'; $lang['strindexes'] = 'Indexy'; $lang['strindexname'] = 'Názov Indexu'; $lang['strshowallindexes'] = 'Zobraziť Všetky Indexy'; $lang['strnoindex'] = 'Nenájdený žiadny index.'; $lang['strnoindexes'] = 'Nenájdené žiadne indexy.'; $lang['strcreateindex'] = 'Vytvoriť Index'; $lang['strtabname'] = 'Tab Meno'; $lang['strcolumnname'] = 'Názov ståpca'; $lang['strindexneedsname'] = 'Musíš zadať názov pre tvoj index'; $lang['strindexneedscols'] = 'Index vyžaduje vyhovujúci počet stĺpcov.'; $lang['strindexcreated'] = 'Index vytvorený'; $lang['strindexcreatedbad'] = 'Index nebol vytvorený.'; $lang['strconfdropindex'] = 'Naozaj chceš zmazať index "%s"?'; $lang['strindexdropped'] = 'Index zmazaný.'; $lang['strindexdroppedbad'] = 'Index nebol zmazaný.'; $lang['strkeyname'] = 'Názov Kľúču'; $lang['struniquekey'] = 'Unikátny Kľúč'; $lang['strprimarykey'] = 'Primárny Kľúč'; $lang['strindextype'] = 'Typ indexu'; $lang['strtablecolumnlist'] = 'Stĺpce v Tabuľke'; $lang['strindexcolumnlist'] = 'Stľpce v Indexe'; $lang['strconfcluster'] = 'Naozaj chceš vytvoriť cluster "%s"?'; $lang['strclusteredgood'] = 'Cluster hotový.'; $lang['strclusteredbad'] = 'Cluster nebol vytvorený.'; // Rules $lang['strrules'] = 'Pravidlá'; $lang['strrule'] = 'Pravidlo'; $lang['strshowallrules'] = 'Zobraziť Všetky Pravidlá'; $lang['strnorule'] = 'Nenájdené žiadne pravidlo.'; $lang['strnorules'] = 'Nenájdené žiadne pravidlá.'; $lang['strcreaterule'] = 'Vytvoriť pravidlo'; $lang['strrulename'] = 'Názov pravidla'; $lang['strruleneedsname'] = 'Musíš zadať názov pre tvoje pravidlo.'; $lang['strrulecreated'] = 'Pravidlo vytvorené.'; $lang['strrulecreatedbad'] = 'Pravidlo nebolo vytvorené.'; $lang['strconfdroprule'] = 'Naozaj chceš zmazať pravidlo "%s" na "%s"?'; $lang['strruledropped'] = 'Pravidlo zmazané.'; $lang['strruledroppedbad'] = 'Pravidlo nebolo zmazané.'; // Constraints $lang['strconstraint'] = 'Obmedzenie'; $lang['strconstraints'] = 'Obmedzenia'; $lang['strshowallconstraints'] = 'Zobraziť Všetky Obmedzenia'; $lang['strnoconstraints'] = 'Nenájdené žiadne obmedzenie.'; $lang['strcreateconstraint'] = 'Vytvoriť Obmedzenie'; $lang['strconstraintcreated'] = 'Obmedzenie vytvorené.'; $lang['strconstraintcreatedbad'] = 'Obmedzenie nebolo vytvorené.'; $lang['strconfdropconstraint'] = 'Naozaj chceš zmazať obmedzenie "%s" na "%s"?'; $lang['strconstraintdropped'] = 'Obmedzenie zmazané.'; $lang['strconstraintdroppedbad'] = 'Obmedzenie nebolo zmazané.'; $lang['straddcheck'] = 'Pridať Overovanie'; $lang['strcheckneedsdefinition'] = 'Overovanie Obmedzenia vyžaduje jeho definovanie.'; $lang['strcheckadded'] = 'Overovanie obmedzenia pridané.'; $lang['strcheckaddedbad'] = 'Overovanie obmedzenia nebolo pridané.'; $lang['straddpk'] = 'Pridať Primárny Kľúč'; $lang['strpkneedscols'] = 'Primárny kľúč vyžaduje aspoň jeden stĺpec.'; $lang['strpkadded'] = 'Primárny kľúč pridaný.'; $lang['strpkaddedbad'] = 'Primárny kľúč nebol pridaný.'; $lang['stradduniq'] = 'Pridať Unikátny Kľúč'; $lang['struniqneedscols'] = 'Unikátny kľúč vyžaduje aspoň jeden stĺpec.'; $lang['struniqadded'] = 'Unikátny kľúč pridaný.'; $lang['struniqaddedbad'] = 'Unikátny kľúč nebol pridaný.'; $lang['straddfk'] = 'Pridať Cudzí Kľúč'; $lang['strfkneedscols'] = 'Cudzí kľúč vyžaduje aspoň jeden stĺpec.'; $lang['strfkneedstarget'] = 'Cudzí kľúč vyžaduje cieľovú tabuľku.'; $lang['strfkadded'] = 'Cudzí kľúč pridaný.'; $lang['strfkaddedbad'] = 'Cudzí kľúč nebol pridaný.'; $lang['strfktarget'] = 'Cieľová tabuľka'; $lang['strfkcolumnlist'] = 'Stľpce v kľúči'; $lang['strondelete'] = 'ON DELETE'; $lang['stronupdate'] = 'ON UPDATE'; // Functions $lang['strfunction'] = 'Funkcia'; $lang['strfunctions'] = 'Funkcie'; $lang['strshowallfunctions'] = 'Zobraziť vŠetky funkcie'; $lang['strnofunction'] = 'Nenájdená žiadna funkcia.'; $lang['strnofunctions'] = 'Nenájdené žiadne funkcie.'; $lang['strcreateplfunction'] = 'Vytvoriť SQL/PL funkciu'; $lang['strcreateinternalfunction'] = 'Vytvoriť internú funkciu'; $lang['strcreatecfunction'] = 'Vytvoriť C funkciu'; $lang['strfunctionname'] = 'Názov funkcie'; $lang['strreturns'] = 'Vracia'; $lang['strarguments'] = 'Argumenty'; $lang['strproglanguage'] = 'Jazyk'; $lang['strfunctionneedsname'] = 'Musíš zadať názov pre tvoju funkciu.'; $lang['strfunctionneedsdef'] = 'Musíš zadať definíciu pre tvoju funkciu.'; $lang['strfunctioncreated'] = 'Funkcia vytvorená.'; $lang['strfunctioncreatedbad'] = 'Funkcia nebola vytvorená.'; $lang['strconfdropfunction'] = 'Si si istý, že chceš zmazať funkciu "%s"?'; $lang['strfunctiondropped'] = 'Funkcia zmazaná.'; $lang['strfunctiondroppedbad'] = 'Funkcia nebola zmazaná.'; $lang['strfunctionupdated'] = 'Funkcia upravená.'; $lang['strfunctionupdatedbad'] = 'Funkcia nebola upravená.'; $lang['strobjectfile'] = 'Objektový súbor'; $lang['strlinksymbol'] = 'Link symbol'; // Triggers $lang['strtrigger'] = 'Trigger'; //su to medzipravidla ?? po cesky spouste.. $lang['strtriggers'] = 'Trigger-y'; $lang['strshowalltriggers'] = 'Zobraziť Všetky Trigger-y'; $lang['strnotrigger'] = 'Nenájdený žiadny Trigger.'; $lang['strnotriggers'] = 'Nenájdené žiadne Trigger-y.'; $lang['strcreatetrigger'] = 'Vytvoriť Trigger'; $lang['strtriggerneedsname'] = 'Musíš zadať názov pre tvoj Trigger.'; $lang['strtriggerneedsfunc'] = 'Musíš zadať funkciu pre tvoj Trigger.'; $lang['strtriggercreated'] = 'Trigger vytvorený.'; $lang['strtriggercreatedbad'] = 'Trigger nebol vytvorený.'; $lang['strconfdroptrigger'] = 'Naozaj chceš zmazať Trigger "%s" na "%s"?'; $lang['strtriggerdropped'] = 'Trigger zmazaný.'; $lang['strtriggerdroppedbad'] = 'Trigger nebol zmazaný.'; $lang['strtriggeraltered'] = 'Trigger zmenený.'; $lang['strtriggeralteredbad'] = 'Trigger nebol zmenený.'; $lang['strforeach'] = 'Pre každých'; // Types $lang['strtype'] = 'Typ'; $lang['strtypes'] = 'Typy'; $lang['strshowalltypes'] = 'Zobraziť Všetky typy'; $lang['strnotype'] = 'Nenájdený žiadny typ.'; $lang['strnotypes'] = 'Nenájdené žiadne typy.'; $lang['strcreatetype'] = 'Vytvoriť Typ'; $lang['strcreatecomptype'] = 'Vytvoriť kompozitný typ'; $lang['strtypeneedsfield'] = 'Musíš vybrať aspoň jedno pole.'; $lang['strtypeneedscols'] = 'Musíš zadať správny počet polí.'; $lang['strtypename'] = 'Názov typu'; $lang['strinputfn'] = 'Vstupná funkcia'; $lang['stroutputfn'] = 'Výstupná funkcia'; $lang['strpassbyval'] = 'Passed by val?'; $lang['stralignment'] = 'Alignment'; $lang['strelement'] = 'Element'; $lang['strdelimiter'] = 'Delimiter'; $lang['strstorage'] = 'Storage'; $lang['strfield'] = 'Pole'; $lang['strnumfields'] = 'Počet polí'; $lang['strtypeneedsname'] = 'Musíš zadať názov pre tvoj typ.'; $lang['strtypeneedslen'] = 'Musíš zadať dĺžku pre tvoj typ.'; $lang['strtypecreated'] = 'Typ Vytvorený'; $lang['strtypecreatedbad'] = 'Typ nebol vytvorený.'; $lang['strconfdroptype'] = 'Naozaj chceš zmazať typ "%s"?'; $lang['strtypedropped'] = 'Typ zmazaný.'; $lang['strtypedroppedbad'] = 'Typ nebol zmazaný.'; $lang['strflavor'] = 'Flavor'; //todo $lang['strbasetype'] = 'Základný'; $lang['strcompositetype'] = 'Kompozitný'; $lang['strpseudotype'] = 'Pseudo'; // Schemas $lang['strschema'] = 'Schéma'; $lang['strschemas'] = 'Schémy'; $lang['strshowallschemas'] = 'Zobraziť Všetky Schémy'; $lang['strnoschema'] = 'Nenájdená žiadna schéma.'; $lang['strnoschemas'] = 'Nenájdené žiadne schémy.'; $lang['strcreateschema'] = 'Vytvoriť Schému'; $lang['strschemaname'] = 'Názov Schémy'; $lang['strschemaneedsname'] = 'Musíš zadať názov pre tvoju schému.'; $lang['strschemacreated'] = 'Schéma vytvorená'; $lang['strschemacreatedbad'] = 'Schéma nebola vytvorená.'; $lang['strconfdropschema'] = 'Naozaj chceš zmazať schému "%s"?'; $lang['strschemadropped'] = 'Schéma zmazaná.'; $lang['strschemadroppedbad'] = 'Schéma nebola zmazaná.'; $lang['strschemaaltered'] = 'Schéma zmenená.'; $lang['strschemaalteredbad'] = 'Schéma nebola zmenená.'; $lang['strsearchpath'] = 'Cesta k nájdeniu Schémy'; // Reports $lang['strreport'] = 'Report'; $lang['strreports'] = 'Reporty'; $lang['strshowallreports'] = 'Zobraziť Všetky Reporty'; $lang['strnoreports'] = 'Nenájdené žiadne reporty.'; $lang['strcreatereport'] = 'Vytvoriť Report'; $lang['strreportdropped'] = 'Report zmazaný.'; $lang['strreportdroppedbad'] = 'Report nebol zmazaný.'; $lang['strconfdropreport'] = 'Naozaj chceš zmazať report "%s"?'; $lang['strreportneedsname'] = 'Musíš zadať názov pre tvoj report.'; $lang['strreportneedsdef'] = 'Musíš zadať SQL dotaz pre tvoj report.'; $lang['strreportcreated'] = 'Report uložený.'; $lang['strreportcreatedbad'] = 'Report nebol uložený.'; //Domains $lang['strdomain'] = 'Doména'; $lang['strdomains'] = 'Domény'; $lang['strshowalldomains'] = 'Zobraziť Všetky Domény'; $lang['strnodomains'] = 'Nenájdené žiadne domény.'; $lang['strcreatedomain'] = 'Vytvoriť doménu'; $lang['strdomaindropped'] = 'Doména zmazaná.'; $lang['strdomaindroppedbad'] = 'Doména nebola zmazaná.'; $lang['strconfdropdomain'] = 'Naozaj chceš zmazať doménu "%s"?'; $lang['strdomainneedsname'] = 'Musíš zadať názov pre tvoju doménu.'; $lang['strdomaincreated'] = 'Doména vytvorená.'; $lang['strdomaincreatedbad'] = 'Doména nebola vytvorená.'; $lang['strdomainaltered'] = 'Doména zmenená.'; $lang['strdomainalteredbad'] = 'Doména nebola zmenená.'; //Operators $lang['stroperator'] = 'Operátor'; $lang['stroperators'] = 'Operátory'; $lang['strshowalloperators'] = 'Zobraziť Všetky Operátory'; $lang['strnooperator'] = 'Nenájdený žiadny operátor.'; $lang['strnooperators'] = 'Nenájdené žiadne operátory.'; $lang['strcreateoperator'] = 'Vytvoriť Operátor'; $lang['strleftarg'] = 'Ľavý Arg Typ'; $lang['strrightarg'] = 'Pravý Arg Typ'; $lang['strcommutator'] = 'Komutátor'; $lang['strnegator'] = 'Negátor'; $lang['strrestrict'] = 'Obmedziť'; $lang['strjoin'] = 'Join'; $lang['strhashes'] = 'Hashes'; $lang['strmerges'] = 'Merges'; $lang['strleftsort'] = 'Ľavý sort'; $lang['strrightsort'] = 'Pravý sort'; $lang['strlessthan'] = 'Menej ako'; $lang['strgreaterthan'] = 'Viac ako'; $lang['stroperatorneedsname'] = 'Musíš zadať názov pre tvoj operátor.'; $lang['stroperatorcreated'] = 'Operátor vytvorený'; $lang['stroperatorcreatedbad'] = 'Operátor nebol vytvorený.'; $lang['strconfdropoperator'] = 'Naozaj chceš zmazať operátor "%s"?'; $lang['stroperatordropped'] = 'Operátor zmazaný.'; $lang['stroperatordroppedbad'] = 'Operátor nebol zmazaný.'; //Casts $lang['strcasts'] = 'Cast-y'; $lang['strnocasts'] = 'Nenájdené žiadne Cast-y.'; $lang['strsourcetype'] = 'Zdrojový typ'; $lang['strtargettype'] = 'Cieľový typ'; $lang['strimplicit'] = 'Implicitný'; $lang['strinassignment'] = 'V priradení'; $lang['strbinarycompat'] = '(Binárne identické)'; // Conversions $lang['strconversions'] = 'Konverzie'; $lang['strnoconversions'] = 'Nenájdené žiadne konverzie.'; $lang['strsourceencoding'] = 'Zdojové kódovanie'; $lang['strtargetencoding'] = 'Cieľové kódovanie'; // Languages $lang['strlanguages'] = 'Jazyky'; $lang['strnolanguages'] = 'Nenájdené žiadne jazyky.'; $lang['strtrusted'] = 'Trusted'; // Info $lang['strnoinfo'] = 'Informácie nedostupné.'; $lang['strreferringtables'] = 'Referujúce tabuľky'; $lang['strparenttables'] = 'Rodičovské tabuľky'; $lang['strchildtables'] = 'Dcérske tabuľky'; // Aggregates $lang['straggregates'] = 'Agregáty'; $lang['strnoaggregates'] = 'Nenájdené žiadne agregáty.'; $lang['stralltypes'] = '(Všetky typy)'; // Operator Classes $lang['stropclasses'] = 'Op Triedy'; $lang['strnoopclasses'] = 'Nenájdené žiadne op. triedy.'; $lang['straccessmethod'] = 'Prístupové metódy'; // Stats and performance $lang['strrowperf'] = 'Výkonnosť Riadku'; //to znie dost tupo.. $lang['strioperf'] = 'I/O Výkon'; $lang['stridxrowperf'] = 'Výkonnosť Indexovania Riadkov'; $lang['stridxioperf'] = 'Index I/O Výkon'; $lang['strpercent'] = '%'; $lang['strsequential'] = 'Sekvenčný'; $lang['strscan'] = 'Scan'; //co s tymto tu??? $lang['strread'] = 'Načítať'; $lang['strfetch'] = 'Získať'; $lang['strheap'] = 'Heap'; $lang['strtoast'] = 'TOAST'; $lang['strtoastindex'] = 'TOAST Index'; $lang['strcache'] = 'Cache'; $lang['strdisk'] = 'Disk'; $lang['strrows2'] = 'Riadkov'; // Tablespaces $lang['strtablespace'] = 'Priestor pre tabuľku'; $lang['strtablespaces'] = 'Priestory tabuliek'; $lang['strshowalltablespaces'] = 'Zobraziť všetky priestory pre tabuľky'; $lang['strnotablespaces'] = 'Nenájdené žiadne priestory tabuliek.'; $lang['strcreatetablespace'] = 'Vytvoriť priestor pre tabuľku'; $lang['strlocation'] = 'Umiestnenie'; $lang['strtablespaceneedsname'] = 'Musíš zadať názov priestoru tabuľky.'; $lang['strtablespaceneedsloc'] = 'Musíš zadať adresár, vktorom sa má vytvoriť priestor pre tabuľku.'; $lang['strtablespacecreated'] = 'Priestor pre tabuľku bol vytvorený.'; $lang['strtablespacecreatedbad'] = 'Vytvorenie priestoru pre tabuľku zlyhalo.'; $lang['strconfdroptablespace'] = 'Naozaj chceš odstrániť priestor tabuľky "%s"?'; $lang['strtablespacedropped'] = 'Priestor pre tabuľku bol odstránený.'; $lang['strtablespacedroppedbad'] = 'Odstránenie priestoru zlyhalo.'; $lang['strtablespacealtered'] = 'Priestor tabuľky zmenený.'; $lang['strtablespacealteredbad'] = 'Zmenenie priestoru tabuľky zlyhalo.'; // Slony clusters $lang['strcluster'] = 'Cluster'; $lang['strnoclusters'] = 'No clusters found.'; $lang['strconfdropcluster'] = 'Are you sure you want to drop cluster "%s"?'; $lang['strclusterdropped'] = 'Cluster dropped.'; $lang['strclusterdroppedbad'] = 'Cluster drop failed.'; $lang['strinitcluster'] = 'Initialize cluster'; $lang['strclustercreated'] = 'Cluster initialized.'; $lang['strclustercreatedbad'] = 'Cluster initialization failed.'; $lang['strclusterneedsname'] = 'You must give a name for the cluster.'; $lang['strclusterneedsnodeid'] = 'You must give an ID for the local node.'; // Slony nodes $lang['strnodes'] = 'Nodes'; $lang['strnonodes'] = 'No nodes found.'; $lang['strcreatenode'] = 'Create node'; $lang['strid'] = 'ID'; $lang['stractive'] = 'Active'; $lang['strnodecreated'] = 'Node created.'; $lang['strnodecreatedbad'] = 'Node creation failed.'; $lang['strconfdropnode'] = 'Are you sure you want to drop node "%s"?'; $lang['strnodedropped'] = 'Node dropped.'; $lang['strnodedroppedbad'] = 'Node drop failed'; $lang['strfailover'] = 'Failover'; $lang['strnodefailedover'] = 'Node failed over.'; $lang['strnodefailedoverbad'] = 'Node failover failed.'; // Slony paths $lang['strpaths'] = 'Paths'; $lang['strnopaths'] = 'No paths found.'; $lang['strcreatepath'] = 'Create path'; $lang['strnodename'] = 'Node name'; $lang['strnodeid'] = 'Node ID'; $lang['strconninfo'] = 'Connection string'; $lang['strconnretry'] = 'Seconds before retry to connect'; $lang['strpathneedsconninfo'] = 'You must give a connection string for the path.'; $lang['strpathneedsconnretry'] = 'You must give the number of seconds to wait before retry to connect.'; $lang['strpathcreated'] = 'Path created.'; $lang['strpathcreatedbad'] = 'Path creation failed.'; $lang['strconfdroppath'] = 'Are you sure you want to drop path "%s"?'; $lang['strpathdropped'] = 'Path dropped.'; $lang['strpathdroppedbad'] = 'Path drop failed.'; // Slony listens $lang['strlistens'] = 'Listens'; $lang['strnolistens'] = 'No listens found.'; $lang['strcreatelisten'] = 'Create listen'; $lang['strlistencreated'] = 'Listen created.'; $lang['strlistencreatedbad'] = 'Listen creation failed.'; $lang['strconfdroplisten'] = 'Are you sure you want to drop listen "%s"?'; $lang['strlistendropped'] = 'Listen dropped.'; $lang['strlistendroppedbad'] = 'Listen drop failed.'; // Slony replication sets $lang['strrepsets'] = 'Replication sets'; $lang['strnorepsets'] = 'No replication sets found.'; $lang['strcreaterepset'] = 'Create replication set'; $lang['strrepsetcreated'] = 'Replication set created.'; $lang['strrepsetcreatedbad'] = 'Replication set creation failed.'; $lang['strconfdroprepset'] = 'Are you sure you want to drop replication set "%s"?'; $lang['strrepsetdropped'] = 'Replication set dropped.'; $lang['strrepsetdroppedbad'] = 'Replication set drop failed.'; $lang['strmerge'] = 'Merge'; $lang['strmergeinto'] = 'Merge into'; $lang['strrepsetmerged'] = 'Replication sets merged.'; $lang['strrepsetmergedbad'] = 'Replication sets merge failed.'; $lang['strmove'] = 'Move'; $lang['strneworigin'] = 'New origin'; $lang['strrepsetmoved'] = 'Replication set moved.'; $lang['strrepsetmovedbad'] = 'Replication set move failed.'; $lang['strnewrepset'] = 'New replication set'; $lang['strlock'] = 'Lock'; $lang['strlocked'] = 'Locked'; $lang['strunlock'] = 'Unlock'; $lang['strconflockrepset'] = 'Are you sure you want to lock replication set "%s"?'; $lang['strrepsetlocked'] = 'Replication set locked.'; $lang['strrepsetlockedbad'] = 'Replication set lock failed.'; $lang['strconfunlockrepset'] = 'Are you sure you want to unlock replication set "%s"?'; $lang['strrepsetunlocked'] = 'Replication set unlocked.'; $lang['strrepsetunlockedbad'] = 'Replication set unlock failed.'; $lang['strexecute'] = 'Execute'; $lang['stronlyonnode'] = 'Only on node'; $lang['strddlscript'] = 'DDL script'; $lang['strscriptneedsbody'] = 'You must supply a script to be executed on all nodes.'; $lang['strscriptexecuted'] = 'Replication set DDL script executed.'; $lang['strscriptexecutedbad'] = 'Failed executing replication set DDL script.'; $lang['strtabletriggerstoretain'] = 'The following triggers will NOT be disabled by Slony:'; // Slony tables in replication sets $lang['straddtable'] = 'Add table'; $lang['strtableneedsuniquekey'] = 'Table to be added requires a primary or unique key.'; $lang['strtableaddedtorepset'] = 'Table added to replication set.'; $lang['strtableaddedtorepsetbad'] = 'Failed adding table to replication set.'; $lang['strconfremovetablefromrepset'] = 'Are you sure you want to remove the table "%s" from replication set "%s"?'; $lang['strtableremovedfromrepset'] = 'Table removed from replication set.'; $lang['strtableremovedfromrepsetbad'] = 'Failed to remove table from replication set.'; // Slony sequences in replication sets $lang['straddsequence'] = 'Add sequence'; $lang['strsequenceaddedtorepset'] = 'Sequence added to replication set.'; $lang['strsequenceaddedtorepsetbad'] = 'Failed adding sequence to replication set.'; $lang['strconfremovesequencefromrepset'] = 'Are you sure you want to remove the sequence "%s" from replication set "%s"?'; $lang['strsequenceremovedfromrepset'] = 'Sequence removed from replication set.'; $lang['strsequenceremovedfromrepsetbad'] = 'Failed to remove sequence from replication set.'; // Slony subscriptions $lang['strsubscriptions'] = 'Subscriptions'; $lang['strnosubscriptions'] = 'No subscriptions found.'; // Miscellaneous $lang['strtopbar'] = '%s beží na %s:%s -- si prihlásený ako "%s"'; $lang['strtimefmt'] = 'jS M, Y g:iA'; $lang['strhelp'] = 'Pomoc'; $lang['strhelpicon'] = '?'; $lang['strlogintitle'] = 'Prihlasujem do %s'; $lang['strlogoutmsg'] = 'Odhlásený z %s'; $lang['strloading'] = 'Spracuvávam...'; $lang['strerrorloading'] = 'Chyba spracovania'; $lang['strclicktoreload'] = 'Klikni pre obnovenie'; ?>
samrodriguez/sf_siresca
web/pgAdmin/lang/slovak.php
PHP
mit
36,710
<?php use_helper('I18N', 'Date', 'JavascriptBase') ?> <?php include_partial('sfMaterializedPathTreeManager/assets') ?> <div id="sf_admin_container"> <h1><?php echo sfInflector::humanize(sfInflector::underscore($model)); ?> <?php echo __('Tree manager'); ?></h1> <?php include_partial('sfMaterializedPathTreeManager/flashes') ?> <?php if ($hasManyRoots && null === $root) { include_partial('sfMaterializedPathTreeManager/manager_roots', array('model' => $model, 'field' => $field, 'roots' => $roots)); } else { include_partial('sfMaterializedPathTreeManager/manager_tree', array('model' => $model, 'field' => $field, 'root' => $root, 'hasManyRoots' => $hasManyRoots)); } ?> </div>
temochka/sfDoctrineActAsMaterializedPathPlugin
modules/sfMaterializedPathTreeManager/templates/_manager.php
PHP
mit
703
/* Multihost Multiple ports */ package main import ( "encoding/json" "flag" "fmt" "github.com/crosbymichael/log" "github.com/ms123s/skydock/docker" "github.com/ms123s/skydock/utils" influxdb "github.com/influxdb/influxdb-go" "os" "sync" "time" "strings" "github.com/ms123s/skydock/client" "github.com/ms123s/skydock/msg" "github.com/coreos/go-etcd/etcd" ) var ( pathToSocket string domain string domainRev string environment string skydnsUrl string skydnsContainerName string secret string ttl int beat int numberOfHandlers int pluginFile string etcdClient *etcd.Client skydns Skydns dockerClient docker.Docker plugins *pluginRuntime running = make(map[string]struct{}) runningLock = sync.Mutex{} machines = strings.Split(os.Getenv("ETCD_MACHINES"), ",") // list of URLs to etcd machine = "" tlskey = os.Getenv("ETCD_TLSKEY") // TLS private key path tlspem = os.Getenv("ETCD_TLSPEM") // X509 certificate ) func init() { flag.StringVar(&pathToSocket, "s", "/var/run/docker.sock", "path to the docker unix socket") flag.StringVar(&skydnsUrl, "skydns", "", "url to the skydns url") flag.StringVar(&skydnsContainerName, "name", "", "name of skydns container") flag.StringVar(&secret, "secret", "", "skydns secret") flag.StringVar(&domain, "domain", "", "same domain passed to skydns") flag.StringVar(&environment, "environment", "dev", "environment name where service is running") flag.IntVar(&ttl, "ttl", 60, "default ttl to use when registering a service") flag.IntVar(&beat, "beat", 0, "heartbeat interval") flag.IntVar(&numberOfHandlers, "workers", 3, "number of concurrent workers") flag.StringVar(&pluginFile, "plugins", "/plugins/default.js", "file containing javascript plugins (plugins.js)") flag.StringVar(&machine, "machines", "", "machine address(es) running etcd") flag.StringVar(&tlskey, "tls-key", "", "TLS Private Key path") flag.StringVar(&tlspem, "tls-pem", "", "X509 Certificate") flag.Parse() } func validateSettings() { if beat < 1 { beat = ttl - (ttl / 4) } if (skydnsUrl != "") && (skydnsContainerName != "") { fatal(fmt.Errorf("specify 'name' or 'skydns', not both")) } if (skydnsUrl == "") && (skydnsContainerName == "") { skydnsUrl = "http://" + os.Getenv("SKYDNS_PORT_8080_TCP_ADDR") + ":8080" } if domain == "" { fatal(fmt.Errorf("Must specify your skydns domain")) } } func setupLogger() error { var ( logger log.Logger err error ) if host := os.Getenv("INFLUXDB_HOST"); host != "" { config := &influxdb.ClientConfig{ Host: host, Database: os.Getenv("INFLUXDB_DATABASE"), Username: os.Getenv("INFLUXDB_USER"), Password: os.Getenv("INFLUXDB_PASSWORD"), } logger, err = log.NewInfluxdbLogger(fmt.Sprintf("%s.%s", environment, domain), "skydock", config) if err != nil { return err } } else { logger = log.NewStandardLevelLogger("skydock") } if err := log.SetLogger(logger); err != nil { return err } return nil } func newEtcdClient() (client *etcd.Client) { // set default if not specified in env if len(machines) == 1 && machines[0] == "" { machines[0] = "http://127.0.0.1:4001" } // override if we have a commandline flag as well if machine != "" { machines = strings.Split(machine, ",") } if strings.HasPrefix(machines[0], "https://") { var err error if client, err = etcd.NewTLSClient(machines, tlspem, tlskey, ""); err != nil { log.Logf(log.ERROR, err.Error()) } } else { client = etcd.NewClient(machines) } client.SyncCluster() return client } func heartbeat(uuid string) { runningLock.Lock() if _, exists := running[uuid]; exists { runningLock.Unlock() return } running[uuid] = struct{}{} runningLock.Unlock() defer func() { runningLock.Lock() delete(running, uuid) runningLock.Unlock() }() var errorCount int for _ = range time.Tick(time.Duration(beat) * time.Second) { if errorCount > 10 { // if we encountered more than 10 errors just quit log.Logf(log.ERROR, "aborting heartbeat for %s after 10 errors", uuid) return } // don't fill logs if we have a low beat // may need to do something better here if beat >= 30 { log.Logf(log.INFO, "updating ttl for %s", uuid) } if err := updateService(uuid, ttl); err != nil { errorCount++ log.Logf(log.ERROR, "%s", err) break } } } // restoreContainers loads all running containers and inserts // them into skydns when skydock starts func restoreContainers() error { containers, err := dockerClient.FetchAllContainers() if err != nil { return err } var container *docker.Container for _, cnt := range containers { uuid := utils.Truncate(cnt.Id) if container, err = dockerClient.FetchContainer(uuid, cnt.Image); err != nil { if err != docker.ErrImageNotTagged { log.Logf(log.ERROR, "failed to fetch %s on restore: %s", cnt.Id, err) } continue } key := etcdKey(container.Name); service, err := plugins.createService(container) if err != nil { // doing a fatal here because we cannot do much if the plugins // return an invalid service or error fatal(err) } if err := sendService(key, service); err != nil { log.Logf(log.ERROR, "failed to send %s to skydns on restore: %s", uuid, err) } } return nil } // sendService sends the uuid and service data to skydns func sendService(uuid string, service *msg.Service) error { b, err := json.Marshal(service) if err != nil { fatal(err) } log.Logf(log.INFO, "adding %s (%s) to skydns,%s", uuid, service.Name,string(b)) _, err = etcdClient.Create(uuid, string(b), uint64(ttl)) if err != nil { // ignore erros for conflicting uuids and start the heartbeat again if err != client.ErrConflictingUUID { return err } log.Logf(log.INFO, "service already exists for %s. Resetting ttl.", uuid) updateService(uuid, ttl) } go heartbeat(uuid) return nil } func removeService(uuid string,image string) error { container, err := dockerClient.FetchContainer(uuid, image) if err != nil { if err != docker.ErrImageNotTagged { return err } return nil } key := etcdKey(container.Name); log.Logf(log.INFO, "removing %s,%s from skydns", uuid,key) _, err2 := etcdClient.Delete(key, false) return err2 } func addService(uuid, image string) error { container, err := dockerClient.FetchContainer(uuid, image) if err != nil { if err != docker.ErrImageNotTagged { return err } return nil } service, err := plugins.createService(container) if err != nil { // doing a fatal here because we cannot do much if the plugins // return an invalid service or error fatal(err) } key := etcdKey(container.Name); if err := sendService(key, service); err != nil { return err } return nil } func updateService(uuid string, ttl int) error { _, err := etcdClient.Update(uuid, "", uint64(ttl)) return err } func eventHandler(c chan *docker.Event, group *sync.WaitGroup) { defer group.Done() for event := range c { b, _ := json.Marshal(event) log.Logf(log.DEBUG, "received event (%s): %s", event.Status, string(b)) uuid := utils.Truncate(event.ContainerId) switch event.Status { case "die", "stop", "kill": if err := removeService(uuid,event.Image); err != nil { log.Logf(log.ERROR, "error removing %s from skydns: %s", uuid, err) } case "start", "restart": if err := addService(uuid, event.Image); err != nil { log.Logf(log.ERROR, "error adding %s to skydns: %s", uuid, err) } } } } func fatal(err error) { fmt.Fprintf(os.Stderr, "%s\n", err) os.Exit(1) } func reverse(s string) string{ sa := strings.Split(s,".") for i, j := 0, len(sa)-1; i < j; i, j = i+1, j-1 { sa[i], sa[j] = sa[j], sa[i] } return strings.Join(sa,"/"); } func etcdKey(name string) string{ key := fmt.Sprintf("/skydns/%s%s", domainRev, name); log.Logf(log.INFO, "etcdKey:%s", key) return key; } func main() { validateSettings() if err := setupLogger(); err != nil { fatal(err) } var ( err error group = &sync.WaitGroup{} ) plugins, err = newRuntime(pluginFile) if err != nil { fatal(err) } if dockerClient, err = docker.NewClient(pathToSocket); err != nil { log.Logf(log.FATAL, "error connecting to docker: %s", err) fatal(err) } if skydnsContainerName != "" { container, err := dockerClient.FetchContainer(skydnsContainerName, "") if err != nil { log.Logf(log.FATAL, "error retrieving skydns container '%s': %s", skydnsContainerName, err) fatal(err) } skydnsUrl = "http://" + container.NetworkSettings.IpAddress + ":8080" } log.Logf(log.INFO, "skydns URL: %s", skydnsUrl) if skydns, err = client.NewClient(skydnsUrl, secret, domain, "172.17.42.1:53"); err != nil { log.Logf(log.FATAL, "error connecting to skydns: %s", err) fatal(err) } etcdClient = newEtcdClient() if etcdClient == nil { log.Logf(log.FATAL, "error connecting to etcd") //fatal("XXX") } domainRev = reverse(domain); log.Logf(log.DEBUG, "domainRev:%s", domainRev) if err := restoreContainers(); err != nil { log.Logf(log.FATAL, "error restoring containers: %s", err) fatal(err) } events := dockerClient.GetEvents() group.Add(numberOfHandlers) // Start event handlers for i := 0; i < numberOfHandlers; i++ { go eventHandler(events, group) } log.Logf(log.DEBUG, "starting main process") group.Wait() log.Logf(log.DEBUG, "stopping cleanly via EOF") }
ms123s/skydock
main.go
GO
mit
9,554
import Vue, { ComponentOptions, Component, CreateElement, VNode } from 'vue' import { mapState, mapGetters, mapActions, mapMutations, Dispatch, Commit, Store } from 'vuex' import { merge, pick, omit, keys, mapValues, flattenObject } from './utils' export type TransformFunction = ( options: ComponentOptions<any>, lifecycle: Record<string, Function> ) => void export type StateMapper<S, G> = | string | ((this: Vue, state: S, getters: G) => any) export type ActionMapper = | string | ((this: Vue, dispatch: Dispatch, ...args: any[]) => any) export type MutationMapper = | string | ((this: Vue, commit: Commit, ...args: any[]) => any) export interface ConnectOptions<S, G> { stateToProps?: Record<string, StateMapper<S, G>> | string[] gettersToProps?: Record<string, string> | string[] actionsToProps?: Record<string, ActionMapper> | string[] actionsToEvents?: Record<string, ActionMapper> | string[] mutationsToProps?: Record<string, MutationMapper> | string[] mutationsToEvents?: Record<string, MutationMapper> | string[] lifecycle?: Record<string, Function> } const LIFECYCLE_KEYS = [ 'beforeCreate', 'created', 'beforeMount', 'mounted', 'beforeUpdate', 'updated', 'activated', 'deactivated', 'beforeDestroy', 'destroyed' ] export function createConnect<StateType = any, GettersType = any>( transform?: TransformFunction ) { return function connect<S = StateType, G = GettersType>( options: ConnectOptions<S, G> = {} ) { const { stateToProps = {}, gettersToProps = {}, actionsToProps = {}, actionsToEvents = {}, mutationsToProps = {}, mutationsToEvents = {}, methodsToProps = {}, methodsToEvents = {}, lifecycle = {} } = mapValues(options as any, normalizeOptions) function connectToComponent<C extends Component>( name: string | C, Component: C ): C function connectToComponent<C extends Component>(name: C): C function connectToComponent( nameOrComponent: string | Component, optionalComponent?: Component ): Component { let Component: Component, name: string if (typeof nameOrComponent !== 'string') { Component = nameOrComponent name = getOptions(Component).name || 'wrapped-anonymous-component' } else { Component = optionalComponent! name = nameOrComponent } const propKeys = keys( stateToProps, gettersToProps, actionsToProps, mutationsToProps, methodsToProps ) const eventKeys = keys( actionsToEvents, mutationsToEvents, methodsToEvents ) const containerProps = omit(collectProps(Component), propKeys) const containerPropsKeys = Object.keys(containerProps) const options = { name: `connect-${name}`, props: containerProps, components: { [name]: Component }, computed: merge(mapState(stateToProps), mapGetters(gettersToProps)), methods: merge( mapActions(merge(actionsToProps, actionsToEvents)), mapMutations(merge(mutationsToProps, mutationsToEvents)), mapValues(merge(methodsToProps, methodsToEvents), bindStore) ) } insertLifecycleMixin(options, lifecycle) insertRenderer( options, name, propKeys.concat(containerPropsKeys), eventKeys ) if (transform) { transform(options, lifecycle) } return typeof Component === 'function' ? Vue.extend(options) : options } return connectToComponent } } function insertRenderer( options: ComponentOptions<any>, name: string, propKeys: string[], eventKeys: string[] ): void { options.render = function(this: Vue, h: CreateElement) { return h( name, { props: pick(this, propKeys), on: mergeListeners(pick(this, eventKeys), this.$listeners || {}), scopedSlots: this.$scopedSlots }, flattenObject(this.$slots).map(slot => patchSlot(slot, this)) ) } } function insertLifecycleMixin( options: ComponentOptions<any>, lifecycle: Record<string, (this: Vue, store: Store<any>) => any> ): void { options.mixins = [ mapValues(pick(lifecycle, LIFECYCLE_KEYS), f => { return function boundLifecycle(this: Vue) { f.call(this, this.$store) } }) ] } function mergeListeners( a: Record<string, Function | Function[]>, b: Record<string, Function | Function[]> ): Record<string, Function | Function[]> { Object.keys(b).forEach(key => { if (a.hasOwnProperty(key)) { a[key] = ([] as Function[]).concat(a[key]).concat(b[key]) } else { a[key] = b[key] } }) return a } function getOptions(Component: Component): ComponentOptions<any> { if (typeof Component === 'function') { return (Component as any).options } return Component as ComponentOptions<any> } /** * Collect all props options of the component. * It traverses all mixins and ancester components. */ function collectProps(Component: Component): Record<string, any> { const options = getOptions(Component) const supers = options.mixins || [] if (options.extends) { supers.push(options.extends) } const superProps = supers.reduce((acc, s) => { return merge(acc, collectProps(s)) }, {}) let props: string[] | Record<string, any> = options.props || {} if (Array.isArray(props)) { props = props.reduce<Record<string, any>>((acc, key) => { acc[key] = null return acc }, {}) } return merge(superProps, props) } function bindStore( fn: (this: Vue, store: Store<any>, ...args: any[]) => any ): (...args: any[]) => any { return function boundFunctionWithStore(this: Vue, ...args) { return fn.call(this, this.$store, ...args) } } function normalizeOptions(options: Record<string, any>): Record<string, any> { return Array.isArray(options) ? options.reduce((obj, value) => { obj[value] = value return obj }, {}) : options } /** * Modify the slot context to let Vue handle * named slot expectedly */ function patchSlot(vnode: VNode, vm: Vue): VNode function patchSlot(vnode: any, vm: any): VNode { if (vnode.context) { vnode.context = vm._self } if (vnode.fnContext) { vnode.fnContext = vm._self } return vnode }
ktsn/vuex-connect
src/connect.ts
TypeScript
mit
6,403
using System; using System.Diagnostics; using System.Drawing; using System.Threading; using System.Windows.Forms; using GhprSpecFlow.Common; using NUnit.Framework; using TechTalk.SpecFlow; namespace Ghpr.SpecFlow.ParallelExamples.Steps { [Binding] public class BasicsSteps { private int _sum; public static byte[] TakeScreen() { var b = Screen.PrimaryScreen.Bounds; var ic = new ImageConverter(); using (var btm = new Bitmap(b.Width, b.Height)) using (var g = Graphics.FromImage(btm)) { g.CopyFromScreen(b.X, b.Y, 0, 0, btm.Size, CopyPixelOperation.SourceCopy); return (byte[])ic.ConvertTo(btm, typeof(byte[])); } } [Given(@"I have number '(.*)'")] public void GivenIHaveNumber(int p0) { Thread.Sleep(100); Trace.WriteLine("TRACE: I have some number..."); Console.WriteLine("CONSOLE: I have some number..."); Debug.WriteLine("DEBUG: I have some number..."); _sum = p0; } [When(@"I add '(.*)'")] public void WhenIAdd(int p0) { Thread.Sleep(100); _sum += p0; } [Then(@"the result sum should be '(.*)'")] public void ThenTheResultShouldBe(int p0) { Thread.Sleep(100); Assert.AreEqual(p0, _sum); } [When(@"I take screenshot")] public void WhenITakeScreenshot() { var bytes = TakeScreen(); GhprPluginHelper.TestExecutionEngineHelper.ScreenHelper.SaveScreenshot(bytes); //ScreenHelper.SaveScreenshot(bytes); } } }
GHPReporter/Ghpr.SpecFlow.Examples
Ghpr.SpecFlow.Examples/Ghpr.SpecFlow.ParallelExamples/Steps/BasicsSteps.cs
C#
mit
1,741
#region Copyright (c) all rights reserved. // <copyright file="QueryingSourceEvent.cs"> // THIS CODE AND INFORMATION ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, // EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED // WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. // </copyright> #endregion namespace Ditto.DataLoad.DomainEvents { using System; using Ditto.DomainEvents; /// <summary> /// Querying Source Event. /// </summary> public class QueryingSourceEvent : IDomainEvent { /// <summary> /// Gets or sets the operation identifier. /// </summary> /// <value> /// The operation identifier. /// </value> public Guid OperationId { get; set; } /// <summary> /// Gets or sets the name of the source. /// </summary> /// <value> /// The name of the source. /// </value> public string SourceName { get; set; } /// <summary> /// Gets or sets the name of the connection. /// </summary> /// <value> /// The name of the connection. /// </value> public string ConnectionName { get; set; } } }
jsnape/ditto
Ditto.DataLoad/DomainEvents/QueryingSourceEvent.cs
C#
mit
1,238
interface I { // NOT OK: no overriding method uses x void foo(int x); // OK: no concrete implementation void bar(String y); // OK: no concrete implementation void baz(float f); // OK: some overriding method uses x int qux(boolean b); } abstract class A implements I { // OK: I.foo is already flagged @Override public void foo(int x) {} // OK: no concrete implementation @Override public abstract void baz(float f); // OK: uses b @Override public int qux(boolean b) { return b ? 42 : 23; } } abstract class B extends A { // OK: I.foo is already flagged @Override public void foo(int x) {} } abstract class C implements I { // OK: overrides I.qux @Override public int qux(boolean b) { return 56; } } interface F { void doSomething(int arg2); } public class Test { // OK: external interface public static void main(String[] args) {} // OK: external interface public static void premain(String arg) {} // OK: external interface public static void premain(String arg, java.lang.instrument.Instrumentation i) {} // OK: Pseudo-abstract method public static void foo(Object bar) { throw new UnsupportedOperationException(); } public static F getF() { return Test::myFImplementation; } // OK: mentioned in member reference private static void myFImplementation(int foo) {} // OK: native method native int baz(int x); { class MyMap extends java.util.HashMap<String,String> { // OK: method overrides super-class method @Override public void putAll(java.util.Map<? extends String,? extends String> m) {}; } class MyComparable<T> implements Comparable<T> { // OK: method overrides super-interface method @Override public int compareTo(T o) { return 0; } }; class MyComparable2 implements Comparable<Boolean> { // OK: method overrides super-interface method @Override public int compareTo(Boolean o) { return 0; } }; class MySub<T> implements java.util.concurrent.ScheduledFuture<T> { public int compareTo(java.util.concurrent.Delayed o) { return 0; } public long getDelay(java.util.concurrent.TimeUnit unit) { return 0; } // OK: method overrides super-super-interface method @Override public boolean cancel(boolean mayInterruptIfRunning) { return false; } public T get() { return null; } // OK: method overrides super-super-interface method @Override public T get(long timeout, java.util.concurrent.TimeUnit unit) { return null; } public boolean isCancelled() { return false; }; public boolean isDone() { return false; }; } } }
github/codeql
java/ql/test/query-tests/dead-code/UselessParameter/Test.java
Java
mit
2,594
declare namespace Model { interface WhiteList { id: number ip: string userID: string userName: string expired: number created: number updated: number } interface WhiteListAlias { whiteList: WhiteList } interface WhiteLists { list: APIListModel<WhiteList> } }
Zaaksam/dproxy
web/types/model/whitelist.d.ts
TypeScript
mit
356
// @flow /*jshint esversion: 6 */ /*jslint node: true */ "use strict"; const {DateTime} = require("luxon"); const {translate} = require("./util.js"); const zencashjs = require("zencashjs"); const rpc = require("./rpc.js"); const {zenextra} = require("./zenextra.js"); const userWarningImportPK = "A new address and a private key will be imported. Your previous back-ups do not include the newly imported address or the corresponding private key. Please use the backup feature of Arizen to make new backup file and replace your existing Arizen wallet backup. By pressing 'I understand' you declare that you understand this. For further information please refer to the help menu of Arizen."; const userWarningImportPkUserZendRescan = "The balance of the Z address you imported will be visible after you rescan the blockchain. Please run 'zen-cli stop && sleep 8 && zend -rescan' in your secure node (linux)."; let settings = {}; let internalInfo = {}; let langDict; function assert(condition, message) { if (!condition) { throw new Error(message || "Assertion failed"); } } /** * Like `document.querySelectorAll()`, but queries shadow roots and template * contents too and returns an `Array` of nodes instead of a `NodeList`. * * @param {string} selector - selector string * @param {string} startRoot - * @returns {Array} array of matched nodes */ function querySelectorAllDeep(selector, startRoot = document) { const roots = [startRoot]; const nodeQueue = [...startRoot.children]; while (nodeQueue.length) { const node = nodeQueue.shift(); if (node.shadowRoot) { roots.push(node.shadowRoot); } if (node.tagName === "TEMPLATE" && node.content) { roots.push(node.content); } nodeQueue.push(...node.children); } const matches = []; for (const r of roots) { matches.push(... r.querySelectorAll(selector)); } return matches; } function deepClone(obj) { // feel free to make a better implementation if (!obj) { return null; } return JSON.parse(JSON.stringify(obj)); } /** * Shows a OK/Cancel message box with `msg`. Executes `ifOk` lambda if user * presses OK or executes `onCancel` if it is defined and user presses Cancel. * * @param {string} msg - message for the user * @param {function} onOk - lambda executed if OK is pressed * @param onCancel * @param {function=} onOk - lambda executed if Cancel is pressed */ function warnUser(msg, onOk, onCancel) { if (confirm(msg)) { onOk(); } else if (onCancel) { onCancel(); } // else { // FIXME: what here? // } } function showNotification(message) { if (settings && !settings.notifications) { return; } const notif = new Notification("Arizen", { body: message, icon: "resources/zen_icon.png" }); notif.onclick = () => notif.close(); } function logout() { ipcRenderer.send("do-logout"); location.href = "./login.html"; } function exitApp() { ipcRenderer.send("exit-from-menu"); } function openUrl(url) { const {shell} = require("electron"); shell.openExternal(url); } function linkHandler(event) { event.preventDefault(); openUrl(event.target.href); } function fixLinks(parent = document) { querySelectorAllDeep("a[href^='http']", parent).forEach(link => link.addEventListener("click", linkHandler)); } function fixAmountInputs(parent = document) { querySelectorAllDeep(".amountInput", parent).forEach(node => { function updateBalanceText() { node.value = node.valueAsNumber.toFixed(8); } updateBalanceText(); node.addEventListener("change", () => updateBalanceText()); }); } function fixPage(parent = document) { fixLinks(parent); fixAmountInputs(parent); } /** * Sets `<input>` node's value and also fires the change event. Needed for * amount nodes which are currently hacked by reformatting their contents on * change. * * @param {Node} node * @param {string} value */ function setInputNodeValue(node, value) { node.value = value; node.dispatchEvent(new Event("change")); } function formatBalance(balance, localeTag = undefined) { return parseFloat(balance).toLocaleString(localeTag, {minimumFractionDigits: 8, maximumFractionDigits: 8}); } function formatFiatBalance(balance, localeTag = undefined) { return parseFloat(balance).toLocaleString(localeTag, {minimumFractionDigits: 2, maximumFractionDigits: 2}); } function formatBalanceDiff(diff, localeTag = undefined) { return diff >= 0 ? "+" + formatBalance(diff, localeTag) : "-" + formatBalance(-diff, localeTag); } function formatEpochTime(epochSeconds) { return DateTime.fromMillis(epochSeconds).toLocaleString(DateTime.DATETIME_MED); } function hideElement(node, yes) { if (yes) { node.classList.add("hidden"); } else { node.classList.remove("hidden"); } } function clearChildNodes(parent) { parent.childNodes.forEach(p => parent.removeChild(p)); } function cloneTemplate(id) { const templateNode = document.getElementById(id); if (!templateNode) { throw new Error(`No template with ID "${id}"`); } const node = templateNode.content.cloneNode(true).firstElementChild; if (!node) { throw new Error(`Template is empty (ID "${id}")`); } fixPage(node); return node; } /** * Creates dialog from a template and adds it to the DOM. * * WARNING! You have to call close() on the retunred dialog otherwise it'll stay * in the DOM. The close event handler will automatically remove it from DOM. If * you use `id` attributes on slotted contents and forget to remove old dialog * before creating a new one from the same template, this will result in * duplicate IDs in the DOM. Maybe. To be honest, I (woky) don't know how IDs on * slotted contents in shadow DOM work. Feel free to experiment and update this * comment. * * @param templateId id of the template * @returns the `<arizen-dialog>` node of the created dialog */ function createDialogFromTemplate(templateId) { const dialog = cloneTemplate(templateId); if (dialog.tagName !== "ARIZEN-DIALOG") { throw new Error("No dialog in the template"); } document.body.appendChild(dialog); dialog.addEventListener("close", () => dialog.remove()); return dialog; } function showDialogFromTemplate(templateId, dialogInit, onClose = null) { const dialog = createDialogFromTemplate(templateId); dialogInit(dialog); if (onClose) { dialog.addEventListener("close", () => onClose()); } dialog.showModal(); } function scrollIntoViewIfNeeded(parent, child) { const parentRect = parent.getBoundingClientRect(); const childRect = child.getBoundingClientRect(); if (childRect.top < parentRect.top || childRect.right > parentRect.right || childRect.bottom > parentRect.bottom || childRect.left < parentRect.left) { child.scrollIntoView(); } } function createLink(url, text) { const link = document.createElement("a"); link.href = url; link.textContent = text; link.addEventListener("click", linkHandler); return link; } // TODO this doesn't belong here function showAboutDialog() { const pkg = require("./package.json"); showDialogFromTemplate("aboutDialogTemplate", dialog => { dialog.querySelector(".aboutHomepage").appendChild(createLink(pkg.homepage, pkg.homepage)); dialog.querySelector(".aboutVersion").textContent = pkg.version; dialog.querySelector(".aboutLicense").textContent = pkg.license; // const authorsNode = dialog.querySelector(".aboutAuthors"); // pkg.contributors.forEach(function (person) { // const row = document.createElement("div"); // row.textContent = person.name; // if (/@/.test(person.email)) { // row.textContent += " "; // row.appendChild(createLink("mailto: " + person.email, person.email)); // } // authorsNode.appendChild(row); // }); }); } // TODO this doesn't belong here (() => { const {ipcRenderer} = require("electron"); ipcRenderer.on("settings", (sender, settingsStr) => { // don't notify about new settings on startup executeWhenSettingsArriveInitially(); if (Object.keys(settings).length) { showNotification(tr("notification.settingsUpdated", "Settings updated")); } const newSettings = JSON.parse(settingsStr); if (settings.lang !== newSettings.lang) { changeLanguage(newSettings.lang); } if (newSettings.autoLogOffEnable) { autoLogOffEnable(newSettings.autoLogOffTimeout); } else { autoLogOffDisable(); } settings = newSettings; }); ipcRenderer.on("internal-info", (sender, internalInfoStr) => { // const newInternalInfo = JSON.parse(internalInfoStr); internalInfo = JSON.parse(internalInfoStr); }); })(); function saveModifiedSettings() { ipcRenderer.send("save-settings", JSON.stringify(settings)); } function saveInternalInfo() { ipcRenderer.send("save-internal-info", JSON.stringify(internalInfo)); } function executeWhenSettingsArriveInitially(){ toggleLedHTML(); pingSecureNode(); //rpc.pingSecureNodeRPCResult(); } function properlyConfigRemoteNode(){ let propConf = false; if (settings.secureNodeFQDN === "127.0.0.1" || settings.secureNodeFQDN === "localhost"){ propConf = (settings.secureNodeFQDN && settings.secureNodePort && settings.secureNodeUsername && settings.secureNodePassword) } else { propConf = (settings.secureNodeFQDN && settings.secureNodePort && settings.secureNodeUsername && settings.secureNodePassword && settings.sshUsername && (settings.sshPassword || settings.sshPrivateKey) && settings.sshPort) } return propConf } function syncZaddrIfSettingsExist() { if (properlyConfigRemoteNode()) { rpc.importAllZAddressesFromSNtoArizenExcludeExisting(); rpc.importAllZAddressesFromArizenToSN(); } } function ledWrapperExists(){ let LEDWrapper = document.getElementById("snStatusWraper"); return !(LEDWrapper === null); } function toggleLedHTML(){ let wrapperExists = ledWrapperExists(); if (properlyConfigRemoteNode() && !wrapperExists){ document.getElementById("snStatusFrame").innerHTML = ""; document.getElementById("snStatusFrame").innerHTML = "<span id=snStatusWraper class=snStatusWraper><span id=snStatusSeperator> / </span><span>Server: <span id=dotSNstatus class=dotSNstatus></span></span> <span>zend: <span id=dotSNstatusRPC class=dotSNstatusRPC></span></span></span>"; } if (!properlyConfigRemoteNode() && wrapperExists){ document.getElementById("snStatusFrame").innerHTML = ""; } } function isValidDomainName(domainOrIP) { const isIp = require('is-ip'); return ((domainOrIP !== "" && domainOrIP !== undefined) || isIp(domainOrIP) )// more to be added } function pingSecureNode() { if (isValidDomainName(settings.secureNodeFQDN)) { let ping = require('ping'); const isIp = require('is-ip'); let fqdnIsV6 = isIp.v6(settings.secureNodeFQDN); let cfg = { v6: fqdnIsV6, }; let hosts = [settings.secureNodeFQDN]; hosts.forEach(function (host) { ping.sys.probe(host, function (isAlive) { toggleLedHTML(); if (ledWrapperExists()){ if (isAlive) { document.getElementById("dotSNstatus").style.backgroundColor = "#34A853"; // green #34A853 } else { document.getElementById("dotSNstatus").style.backgroundColor = "#EA4335"; // red #EA4335 document.getElementById("dotSNstatusRPC").style.backgroundColor = "#EA4335"; // red #EA4335 } } }, cfg); }); } } function colorRpcLEDs(isAlive) { if (isAlive) { document.getElementById("dotSNstatusRPC").style.backgroundColor = "#34A853"; // green "#34A853" document.getElementById("dotSNstatus").style.backgroundColor = "#34A853"; // green } else { document.getElementById("dotSNstatusRPC").style.backgroundColor = "#EA4335"; // red #EA4335 } } async function pingSecureNodeRPCResult() { if (isValidDomainName(settings.secureNodeFQDN)) { let isAlive = await rpc.pingSecureNodeRPC(); colorRpcLEDs(isAlive); } } function showSettingsDialog() { showDialogFromTemplate("settingsDialogTemplate", dialog => { const inputTxHistory = dialog.querySelector(".settingsTxHistory"); const inputExplorerUrl = dialog.querySelector(".settingsExplorerUrl"); const inputApiUrls = dialog.querySelector(".settingsApiUrls"); const inputFiatCurrency = dialog.querySelector(".settingsFiatCurrency"); const inputLanguages = dialog.querySelector(".settingsLanguage"); const inputNotifications = dialog.querySelector(".enableNotifications"); const inputSecureNodeFQDN = dialog.querySelector(".settingsSecureNodeFQDN"); const inputSecureNodePort = dialog.querySelector(".settingsSecureNodePort"); const inputSecureNodeUsername = dialog.querySelector(".settingsSecureNodeUsername"); const inputSecureNodePassword = dialog.querySelector(".settingsSecureNodePassword"); const inputSshPassphrase = dialog.querySelector(".settingsSshPassphrase"); const inputSshPrivateKey = dialog.querySelector(".settingsSshPrivateKey"); const inputSshUsername = dialog.querySelector(".settingsSshUsername"); const inputSshPassword = dialog.querySelector(".settingsSshPassword"); const inputSshPort = dialog.querySelector(".settingsSshPort"); const inputReadyTimeout = dialog.querySelector(".settingsReadyTimeout"); const inputForwardTimeout = dialog.querySelector(".settingsForwardTimeout"); const inputDomainFrontingEnable = dialog.querySelector(".enableDomainFronting"); const inputDomainFrontingUrl = dialog.querySelector(".settingDomainFrontingUrl"); const inputDomainFrontingHost = dialog.querySelector(".settingDomainFrontingHost"); const inputAutoLogOffEnable = dialog.querySelector(".settingAutoLogOffEnable"); const inputAutoLogOffTimeout = dialog.querySelector(".settingAutoLogOffTimeout"); const inputRefreshIntervalAPI = dialog.querySelector(".settingsRefreshIntervalAPI"); inputTxHistory.value = settings.txHistory; inputExplorerUrl.value = settings.explorerUrl; loadAvailableLangs(inputLanguages, settings.lang); inputApiUrls.value = settings.apiUrls.join("\n"); inputFiatCurrency.value = settings.fiatCurrency; inputNotifications.checked = settings.notifications; inputDomainFrontingEnable.checked = settings.domainFronting || false; inputDomainFrontingUrl.value = settings.domainFrontingUrl || "https://www.google.com"; inputDomainFrontingHost.value = settings.domainFrontingHost || "zendhide.appspot.com"; inputFiatCurrency.value = settings.fiatCurrency || "USD"; inputSecureNodeFQDN.value = settings.secureNodeFQDN; inputSecureNodePort.value = settings.secureNodePort || 8231; inputSecureNodeUsername.value = settings.secureNodeUsername || ""; inputSecureNodePassword.value = settings.secureNodePassword || ""; inputSshPassphrase.value = settings.sshPassphrase || ""; inputSshPrivateKey.value = settings.sshPrivateKey || ""; inputSshUsername.value = settings.sshUsername || ""; inputSshPassword.value = settings.sshPassword || ""; inputSshPort.value = settings.sshPort || 22; inputReadyTimeout.value = settings.readyTimeout || 10000; inputForwardTimeout.value = settings.forwardTimeout || 10000; inputAutoLogOffEnable.checked = settings.autoLogOffEnable; inputAutoLogOffTimeout.value = settings.autoLogOffTimeout || 60; inputRefreshIntervalAPI.value = settings.refreshIntervalAPI || 334; dialog.querySelector(".chooseKeyPath").addEventListener("click", () => { let inputFakeElement = document.createElement('input'); inputFakeElement.addEventListener("change", function(){ let fileList = this.files; inputSshPrivateKey.value = fileList[0].path; }, false); inputFakeElement.type = 'file'; inputFakeElement.click(); }); dialog.querySelector(".settingsSave").addEventListener("click", () => { const newSettings = { txHistory: parseInt(inputTxHistory.value), explorerUrl: inputExplorerUrl.value.trim().replace(/\/?$/, ""), apiUrls: inputApiUrls.value.split(/\s+/).filter(s => !/^\s*$/.test(s)).map(s => s.replace(/\/?$/, "")), fiatCurrency: inputFiatCurrency.value, lang: inputLanguages[inputLanguages.selectedIndex].value, notifications: inputNotifications.checked ? 1 : 0, secureNodeFQDN: inputSecureNodeFQDN.value, secureNodePort: inputSecureNodePort.value, secureNodeUsername: inputSecureNodeUsername.value, secureNodePassword: inputSecureNodePassword.value, sshPassphrase: inputSshPassphrase.value, sshPrivateKey: inputSshPrivateKey.value, sshUsername: inputSshUsername.value, sshPassword: inputSshPassword.value, sshPort: inputSshPort.value, readyTimeout: inputReadyTimeout.value, forwardTimeout: inputForwardTimeout.value, domainFronting: inputDomainFrontingEnable.checked, domainFrontingUrl: inputDomainFrontingUrl.value, domainFrontingHost: inputDomainFrontingHost.value, autoLogOffEnable: inputAutoLogOffEnable.checked ? 1 : 0, autoLogOffTimeout: inputAutoLogOffTimeout.value < 60 ? 60 : inputAutoLogOffTimeout.value, refreshIntervalAPI: inputRefreshIntervalAPI.value }; if (settings.lang !== newSettings.lang) { changeLanguage(newSettings.lang); } Object.assign(settings, newSettings); saveModifiedSettings(); let zenBalance = getZenBalance(); setFiatBalanceText(zenBalance, inputFiatCurrency.value); syncZaddrIfSettingsExist(); dialog.close(); }); }); } function showImportSinglePKDialog() { let response = -1; response = ipcRenderer.sendSync("renderer-show-message-box", tr("warmingMessages.userWarningImportPK", userWarningImportPK), [tr("warmingMessages.userWarningIUnderstand", "I understand")]); if (response === 0) { showDialogFromTemplate("importSinglePrivateKeyDialogTemplate", dialog => { const importButton = dialog.querySelector(".newPrivateKeyImportButton"); const nameInput = dialog.querySelector(".newPrivateKeyDialogName"); const privateKeyInput = dialog.querySelector(".newPrivateKeyDialogKey"); importButton.addEventListener("click", () => { const name = nameInput.value ? nameInput.value : ""; let pk = privateKeyInput.value; let importT = dialog.querySelector(".importTorZgetT").checked; let importZ = dialog.querySelector(".importTorZgetZ").checked; let checkAddr; if ((zenextra.isPKorWif(pk) === true && importT) || (zenextra.isPKorSpendingKey(pk) === true && importZ)) { console.log(name); console.log(pk); if (importT) { if (zenextra.isWif(pk) === true) { pk = zencashjs.address.WIFToPrivKey(pk); } let pubKey = zencashjs.address.privKeyToPubKey(pk, true); checkAddr = zencashjs.address.pubKeyToAddr(pubKey); } if (importZ) { let secretKey = pk; if (zenextra.isSpendingKey(pk) === true) { // pk = spendingKey secretKey = zenextra.spendingKeyToSecretKey(pk); pk = secretKey; } let a_pk = zencashjs.zaddress.zSecretKeyToPayingKey(secretKey); let pk_enc = zencashjs.zaddress.zSecretKeyToTransmissionKey(secretKey); checkAddr = zencashjs.zaddress.mkZAddress(a_pk, pk_enc); } let resp = ipcRenderer.sendSync("check-if-address-in-wallet", checkAddr); let addrExists = resp.exist; if (addrExists === true) { alert(tr("wallet.importSinglePrivateKey.warningNotValidAddress", "Address exist in your wallet")) } else { ipcRenderer.send("import-single-key", name, pk, importT); alert(tr("warmingMessages.userWarningImportPK", userWarningImportPK)); if (importZ) { alert(tr("warmingMessages.userWarningImportPkUserZendRescan", userWarningImportPkUserZendRescan)); } dialog.close(); } } else { alert(tr("wallet.importSinglePrivateKey.warningNotValidPK", "This is not a valid Private Key or you try to import a Spending Key (only for Z addresses) as T address Private key.")); } }); }); } } function showRpcDialog() { showDialogFromTemplate("tempRpcTemplate", dialog => { const testRpcButton = dialog.querySelector(".testRPCButton"); const resultRPC = dialog.querySelector(".resultRPC"); const inputCommandRPC = dialog.querySelector(".giveCommandRPC"); const statusRPC = dialog.querySelector(".statusRPC"); const testFunctionButton = dialog.querySelector(".testFunction"); testFunctionButton.addEventListener("click", async function () { // Put here what you want to test ... //let res = await rpc.rpcCallResultSync("z_listaddresses",[]); //console.log(res); console.log(internalInfo); //internalInfo.pendingTxs = []; //internalInfo.pendingTxs.push({type:"snT-Z",from: "a", to: "b", amount:1, fee:2}); //console.log(internalInfo); //console.log(internalInfo.pendingTxs[0]); }); testRpcButton.addEventListener("click", async function () { resultRPC.innerHTML = "Fetching ..."; statusRPC.innerHTML = "Fetching ..."; let cmd = rpc.cleanCommandString(inputCommandRPC.value); inputCommandRPC.value = cmd; let resp = rpc.splitCommandString(cmd); let method = resp.method; let params = resp.params; let respTwo = await rpc.rpcCallResultSync(method, params); resultRPC.innerHTML = JSON.stringify(respTwo.output, undefined, 4); statusRPC.innerHTML = respTwo.status; }); }); } (() => { const {ipcRenderer} = require("electron"); ipcRenderer.on("open-rpc-console", (event) => { showRpcDialog(); }); })(); function openZenExplorer(path) { openUrl(settings.explorerUrl + "/" + path); } function getZenBalance() { const totalBalanceAmountNode = document.getElementById("totalBalanceAmount"); return formatBalance(parseFloat(totalBalanceAmountNode.innerHTML)); } function loadAvailableLangs(select, selected) { const fs = require("fs"); fs.readdir(__dirname + "/lang", (err, files) => { if (err) { console.log(err); return; } files.forEach(file => { let tempLangData = require("./lang/" + file); let opt = document.createElement("option"); opt.value = tempLangData.languageValue; opt.innerHTML = tempLangData.languageName; if (tempLangData.languageValue === selected) { opt.selected = true; } select.appendChild(opt); }); }); } function changeLanguage(lang) { // translation functions depend on this global settings.lang = lang; ipcRenderer.send("set-lang", lang); langDict = require("./lang/lang_" + lang + ".json"); translateCurrentPage(); } function tr(key, defaultVal) { return (settings && settings.lang) ? translate(langDict, key, defaultVal) : defaultVal; } /** * Sets `node`'s `textContent` to a translated text based on the translation * key `key` and current language setting or to the `defaultVal` if the `key` * is not translated. Also sets node's `data-tr` attribute to the `key`. * If the `key` is null, only `defaultVal` is used and `data-tr` attribute is * removed. * * @param {Node} node node to which set the translated text (`<span>`/`<div>`) * @param {string} key translation key * @param {string} defaultVal default text */ function setNodeTrText(node, key, defaultVal) { if (key) { node.dataset.tr = key; node.textContent = tr(key, defaultVal); } else { delete node.dataset.tr; node.textContent = defaultVal; } } function translateCurrentPage() { if (!langDict) { return; } querySelectorAllDeep("[data-tr]").forEach(node => node.textContent = tr(node.dataset.tr, node.textContent)); } //------------------------------------------------ let autoLogOffTimerId; let autoLogOffEventHandler; function autoLogOffEnable(timeout) { autoLogOffDisable(); let currentTime = timeout; autoLogOffUpdateUI(currentTime); autoLogOffTimerId = setInterval(() => { currentTime--; if (currentTime > 0) { autoLogOffUpdateUI(currentTime); } else { autoLogOffDisable(); logout(); } }, 1000); autoLogOffEventHandler = () => { currentTime = timeout; autoLogOffUpdateUI(currentTime); }; document.addEventListener("mousemove", autoLogOffEventHandler); document.addEventListener("keypress", autoLogOffEventHandler); document.addEventListener("click", autoLogOffEventHandler); hideElement(document.getElementById("autoLogOffTimer"), false); } function autoLogOffDisable() { if (!autoLogOffTimerId) { return; } clearInterval(autoLogOffTimerId); document.removeEventListener("mousemove", autoLogOffEventHandler); document.removeEventListener("keypress", autoLogOffEventHandler); document.removeEventListener("click", autoLogOffEventHandler); hideElement(document.getElementById("autoLogOffTimer"), true); autoLogOffTimerId = 0; autoLogOffEventHandler = null; } function autoLogOffUpdateUI(currentTime) { const node = document.getElementById("autoLogOffTimerTime"); node.textContent = currentTime; } //------------------------------------------------ module.exports = { syncZaddrIfSettingsExist: syncZaddrIfSettingsExist };
ZencashOfficial/arizen
app/zcommon.js
JavaScript
mit
27,709
using DotNet.HighStock.Enums; using DotNet.HighStock.Helpers; using System; using System.Drawing; namespace DotNet.HighStock.Options { /// <summary> /// /// </summary> public class YAxisPlotLines { /// <summary> /// The color of the line. /// </summary> public Color? Color { get; set; } /// <summary> /// The dashing or dot style for the plot line. For possible values see <a href='http://jsfiddle.net/gh/get/jquery/1.7.1/highslide-software/highstock.com/tree/master/samples/highstock/plotoptions/series-dashstyle-all/'>this overview</a>. /// Default: Solid /// </summary> public DashStyles? DashStyle { get; set; } /// <summary> /// An object defining mouse events for the plot line. Supported properties are <code>click</code>, <code>mouseover</code>, <code>mouseout</code>, <code>mousemove</code>. /// </summary> public Object Events { get; set; } /// <summary> /// An id used for identifying the plot line in Axis.removePlotLine. /// </summary> public string Id { get; set; } /// <summary> /// Text labels for the plot bands /// </summary> public YAxisPlotLinesLabel Label { get; set; } /// <summary> /// The position of the line in axis units. /// </summary> public Number? Value { get; set; } /// <summary> /// The width or thickness of the plot line. /// </summary> public Number? Width { get; set; } /// <summary> /// The z index of the plot line within the chart. /// </summary> public Number? ZIndex { get; set; } } }
lisa3907/dotnet.highstock
DotNet.HighStock/Options/YAxisPlotLines.cs
C#
mit
1,945
# -*- coding:utf-8 -*- # # Author : TangHanYi # E-mail : [email protected] # Create Date : 2016-12-30 03:45:13 PM # Last modified : 2016-12-30 03:55:57 PM # File Name : Minimum_Height_Trees.py # Desc : import copy import Queue class Solution(object): def findMinHeightTrees(self, n, edges): """ :type n: int :type edges: List[List[int]] :rtype: List[int] """ q = Queue.Queue() tmq = Queue.Queue() degree = [0 for i in range(n)] flag = [0 for i in range(n)] graph = [[] for i in range(n)] m = 0 if n == 2: return edges[0] for edge in edges: degree[edge[0]] += 1 degree[edge[1]] += 1 graph[edge[0]].append(edge[1]) graph[edge[1]].append(edge[0]) for i in range(n): if degree[i] == 1: q.put(i) flag[i] = 1 degree[i] -= 1 while n - m > 2: while q.empty() == False: node = q.get() for adj in graph[node]: degree[adj] -= 1 if degree[adj] == 1: tmq.put(adj) m += 1 if n - m <= 2: break while tmq.empty() == False: j = tmq.get() q.put(j) flag[j] = 1 ret = [] for i in range(n): if flag[i] == 0: ret.append(i) return ret if __name__ == "__main__": s = Solution() n = 6 r = [[0,1],[0,2],[0,3],[3,4],[4,5]] print s.findMinHeightTrees(n, r)
thydeyx/LeetCode-Python
Minimum_Height_Trees.py
Python
mit
1,731
/// <reference path="../../types/chai-bytes/index.d.ts" /> "use strict"; import { GW_SET_CONTACT_INPUT_LINK_REQ, ContactInputAssignment, Velocity, PriorityLevelInformation } from "../../src"; import { expect, use } from "chai"; import 'mocha'; import chaibytes from "chai-bytes"; use(chaibytes); describe("KLF200-API", function() { describe("GW_SET_CONTACT_INPUT_LINK_REQ", function() { it("shouldn't throw an error on create", function() { expect(() => new GW_SET_CONTACT_INPUT_LINK_REQ(3, ContactInputAssignment.NodeMode, 4, 5, 0xc3FF, Velocity.Fast, 42)).not.to.throw(); }); it("should write the correct default values", function() { const result = new GW_SET_CONTACT_INPUT_LINK_REQ(3, ContactInputAssignment.NodeMode, 4, 5, 0xC3FF, Velocity.Fast, 42); expect(result).to.be.instanceOf(GW_SET_CONTACT_INPUT_LINK_REQ).that.has.property("Data"); const buff = result.Data; expect(buff.readUInt8(3)).to.be.equal(3, 'ContactInputID'); expect(buff.readUInt8(4)).to.be.equal(ContactInputAssignment.NodeMode, 'ContactInputAssignment'); expect(buff.readUInt8(18)).to.be.equal(4, 'SuccessOutputID'); expect(buff.readUInt8(19)).to.be.equal(5, 'ErrorOutpuID'); expect(buff.readUInt16BE(9)).to.be.equal(0xC3FF, 'Position'); expect(buff.readUInt8(11)).to.be.equal(Velocity.Fast, 'Velocity'); expect(buff.readUInt8(5)).to.be.equal(42, 'ActionID'); expect(buff.readUInt8(7)).to.be.equal(3, 'PriorityLevel'); expect(buff.readUInt8(6)).to.be.equal(1, 'CommandOriginator'); expect(buff.readUInt8(8)).to.be.equal(0, 'ParameterActive'); expect(buff.readUInt8(12)).to.be.equal(0, 'LockPriorityLevel'); expect(buff.readUInt8(13)).to.be.equal(PriorityLevelInformation.KeepCurrent, 'PLI3'); expect(buff.readUInt8(14)).to.be.equal(PriorityLevelInformation.KeepCurrent, 'PLI4'); expect(buff.readUInt8(15)).to.be.equal(PriorityLevelInformation.KeepCurrent, 'PLI5'); expect(buff.readUInt8(16)).to.be.equal(PriorityLevelInformation.KeepCurrent, 'PLI6'); expect(buff.readUInt8(17)).to.be.equal(PriorityLevelInformation.KeepCurrent, 'PLI7'); }); }); });
MiSchroe/klf-200-api
test/KLF200-API/GW_SET_CONTACT_INPUT_LINK_REQ-test.ts
TypeScript
mit
2,307
// // Created by Eddie Hoyle on 21/01/17. // #ifndef SEVENGINE_SHADERMANAGER_HH #define SEVENGINE_SHADERMANAGER_HH #include <map> #include "Shader.hh" /* * TODO * Add a ShaderFactory, this handles all shader creation * The ShaderManager will be used to track shaders and their lifetimes * Shaders will have types, ids and names * ShaderDomain will handle function sets for shaders */ class ShaderManager { typedef std::map< std::string, Shader* > ShaderMap; typedef std::pair< std::string, Shader* > ShaderPair; typedef std::vector< Shader* > Shaders; public: static ShaderManager* instance(); public: void add( const std::string& id, Shader* shader ); bool has( const std::string& id ) const; void remove( const std::string& id ); public: ~ShaderManager(); void use( const std::string& id ); void release(); void enable(); void disable(); bool setAttr( const char* name, GLfloat value ); bool setAttr( const char* name, const glm::vec2& vec ); bool setAttr( const char* name, const glm::vec3& vec ); bool setAttr( const char* name, const glm::vec4& vec ); bool setUnif( const char* name, GLint value ); bool setUnif( const char* name, GLfloat value ); bool setUnif( const char* name, const glm::vec2& vec ); bool setUnif( const char* name, const glm::vec3& vec ); bool setUnif( const char* name, const glm::vec4& vec ); bool setUnif( const char* name, bool transpose, const glm::mat2& mat ); bool setUnif( const char* name, bool transpose, const glm::mat3& mat ); bool setUnif( const char* name, bool transpose, const glm::mat4& mat ); // Temp? GLint getAttrHandle( const char* name ) const; GLint getUnifHandle( const char* name ) const; private: ShaderManager(); ShaderManager( const ShaderManager& ); ShaderManager& operator=( const ShaderManager& ); Shader* getShader(const std::string &id) const; private: static ShaderManager* m_instance; ShaderMap m_shaders; ShaderPair m_active; }; #endif //SEVENGINE_SHADERMANAGER_HH
eddiehoyle/sevengine
src/graphics/shader/ShaderManager.hh
C++
mit
2,087
#! /usr/bin/env python from os import environ import yaml # converts a native python object None to '' yaml.SafeDumper.add_representer(type(None), lambda dumper, value: dumper.represent_scalar(u'tag:yaml.org,2002:null', '')) # agent configuration dd_config = dict() dd_config['api_key'] = environ.get('DD_API_KEY', '') dd_config['site'] = environ.get('DD_SITE', 'datadoghq.com') if environ.get('DD_ENV') is not None: dd_config['env'] = environ.get('DD_ENV', None) if environ.get('DD_TAGS') is not None: dd_config['tags'] = environ.get('DD_TAGS').split(',') # apm configuration dd_apm_config = dict() dd_apm_config['enabled'] = environ.get('DD_APM_ENABLED', False) if environ.get('DD_APM_ENV') is not None: dd_apm_config['env'] = environ.get('DD_APM_ENV', None) dd_apm_config['receiver_port'] = environ.get('DD_APM_RECIEVER_PORT', '8126') if environ.get('DD_APM_URL') is not None: dd_apm_config['apm_dd_url'] = environ.get('DD_APM_URL', '') dd_apm_config['extra_sample_rate'] = environ.get('DD_APM_EXTRA_SAMPLE_RATE', '1.0') dd_apm_config['max_traces_per_second'] = environ.get('DD_APM_MAX_TRACES_PER_SEC', '10') dd_apm_config['max_events_per_second'] = environ.get('DD_APM_MAX_EVENTS_PER_SEC', '200') dd_apm_config['max_memory'] = environ.get('DD_APM_MAX_MEMORY', '500000000') dd_apm_config['max_cpu_percent'] = environ.get('DD_APM_MAX_CPU_PERCENT', '50') dd_apm_config['log_throttling'] = environ.get('DD_APM_LOG_THROTTLING', True) if environ.get('DD_APM_ANALYZED_SPANS') is not None: dd_apm_config['analyzed_spans'] = environ.get('DD_APM_ANALYZED_SPANS').split(',') dd_config['apm_config'] = dd_apm_config # process configuration dd_process_config = dict() dd_process_config['enabled'] = True if environ.get('DD_PROCESS_SENSITIVE_WORDS') is not None: dd_process_config['custom_sensitive_words'] = environ.get('DD_PROCESS_SENSITIVE_WORDS').split(',') dd_config['process_config'] = dd_process_config with open('/etc/datadog-agent/datadog.yaml', 'w+') as outputFile: yaml.safe_dump(dd_config, outputFile, default_flow_style=False) # enable agents in supervisord if environ.get('DD_ENABLED', 'false').lower() in ['true', 't', '1']: supervisor_config = """ [program:dd-agent] command = /opt/datadog-agent/bin/agent/agent run -p /opt/datadog-agent/run/agent.pid ; lower priority numbers get started first and shutdown last priority = 998 stdout_logfile = /dev/stdout stdout_logfile_maxbytes = 0 stderr_logfile = /dev/stderr stderr_logfile_maxbytes = 0 """ if environ.get('DD_APM_ENABLED', 'false').lower() in ['true', 't', '1']: supervisor_config = supervisor_config + """ [program:dd-trace-agent] command = /opt/datadog-agent/embedded/bin/trace-agent --config /etc/datadog-agent/datadog.yaml --pid /opt/datadog-agent/run/trace-agent.pid ; lower priority numbers get started first and shutdown last priority = 998 stdout_logfile = /dev/stdout stdout_logfile_maxbytes = 0 stderr_logfile = /dev/stderr stderr_logfile_maxbytes = 0 """ with open("/usr/src/supervisor/supervisord.conf", "a") as outputFile: outputFile.write(supervisor_config) # configure datadog nginx monitor dd_nginx = dict() dd_nginx['init_config'] = None dd_nginx_instance_1 = dict() dd_nginx_instance_1['nginx_status_url'] = 'http://localhost:8443/nginx_status/' dd_nginx_instances = list() dd_nginx_instances.append(dd_nginx_instance_1) dd_nginx['instances'] = dd_nginx_instances with open('/etc/datadog-agent/conf.d/nginx.d/conf.yaml', 'w+') as outputFile: yaml.safe_dump(dd_nginx, outputFile, default_flow_style=False) # configure datadog fpm monitor dd_fpm = dict() dd_fpm['init_config'] = None dd_fpm_instance_1 = dict() dd_fpm_instance_1['status_url'] = 'http://localhost:8443/php-status' dd_fpm_instance_1['ping_url'] = 'http://localhost:8443/php-ping' dd_fpm_instance_1['use_fastcgi'] = False dd_fpm_instance_1['ping_reply'] = 'pong' dd_fpm_instances = list() dd_fpm_instances.append(dd_fpm_instance_1) dd_fpm['instances'] = dd_fpm_instances with open('/etc/datadog-agent/conf.d/php_fpm.d/conf.yaml', 'w+') as outputFile: yaml.safe_dump(dd_fpm, outputFile, default_flow_style=False)
instructure/dockerfiles
php-nginx/template/entrypoint.d/30-configure-datadog.py
Python
mit
4,137
<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous"> <link rel="stylesheet" href="/style/style.css"> </head> <body> <div class="container"></div> <script src="https://code.jquery.com/jquery-3.1.1.slim.min.js" integrity="sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" crossorigin="anonymous"></script> <script src="/bundle.js"></script> </body> </html>
jdiep79/TribalUser
index.html
HTML
mit
1,018
void gouraud_triangle(float *vertices, float *colors, float *out, unsigned int *shape, long *strides, unsigned char accumulate); void gouraud_triangle_strip(unsigned int n_vertices, float *vertices, float *colors, float *out, unsigned int *shape, long *strides, unsigned char accumulate); void mask_triangle(float *vertices, char *out, unsigned int *shape, long *strides); void mask_triangle_strip(unsigned int n_vertices, float *vertices, char *out, unsigned int *shape, long *strides); void gourad_centerline_strip(unsigned int n_points, float *left, float *center, float *right, float *left_colors, float *center_colors, float *right_colors, float *out, unsigned int *shape, long *strides, unsigned char accumulate);
zplab/zplib
zplib/image/gouraud_triangles.h
C
mit
723
#include<iostream.h> #include<stdio.h> #include<string.h> #include<stdlib.h> #define REF_ID 1 #define TEXT_ID 2 #define EMPTY 3 struct Refer { int iSeq,iLine; char cNote[3][90]; }; void main() { Refer rTable[1000]; int iCorList[1000],iAppCor[1000],iAppSeq[1000],iAppNum=0,iApp,iRefNum=0,iTextLine=0,ID=EMPTY,i,j; bool bAppMark[1000]={false}; char cTemp[90],*cPtr,*cPtr2; char *cText[40000]; for(i=0;i<40000;i++) cText[i]=new char [90]; while(gets(cTemp)) { for(cPtr=cTemp;*cPtr==' ';cPtr++); if(*cPtr=='\0') { if(ID==REF_ID) { ID=EMPTY; iRefNum++; } if(ID==TEXT_ID) { cText[iTextLine][0]='\0'; ID=EMPTY; iTextLine++; } } else { if(ID==REF_ID) { strcpy(rTable[iRefNum].cNote[rTable[iRefNum].iLine],cTemp); rTable[iRefNum].iLine++; } else if(ID==TEXT_ID) { strcpy(cText[iTextLine],cTemp); iTextLine++; } else { if(sscanf(cTemp,"[%d]",&(rTable[iRefNum].iSeq))) { for(cPtr=cTemp;*cPtr!=']';cPtr++); strcpy(rTable[iRefNum].cNote[0],cPtr+1); rTable[iRefNum].iLine=1; iCorList[rTable[iRefNum].iSeq]=iRefNum; ID=REF_ID; } else { strcpy(cText[iTextLine],cTemp); iTextLine++; ID=TEXT_ID; } } } } for(i=0;i<iTextLine;i++) for(cPtr=cText[i];*cPtr!='\0';cPtr++) if(*cPtr=='[') { sscanf(cPtr,"[%d]",&iApp); if(!bAppMark[iApp]) { iAppSeq[iAppNum]=iApp; iAppNum++; bAppMark[iApp]=true; iAppCor[iApp]=iAppNum; } for(cPtr2=cPtr;*cPtr2!=']';cPtr2++); strcpy(cTemp,cPtr2+1); _itoa(iAppCor[iApp],cPtr+1,10); for(cPtr2=cPtr;*cPtr2!='\0';cPtr2++); *cPtr2=']'; strcpy(cPtr2+1,cTemp); cPtr=cPtr2; } for(i=iTextLine-1;cText[i][0]=='\0';i--); iTextLine=i+1; for(i=0;i<iTextLine;i++) printf("%s\n",cText[i]); for(i=0;i<iAppNum;i++) { printf("\n[%d]",i+1); for(j=0;j<rTable[iCorList[iAppSeq[i]]].iLine;j++) printf("%s\n",rTable[iCorList[iAppSeq[i]]].cNote[j]); } printf("\n"); }
junzh0u/poj-solutions
1706/2007328_AC_261MS_4576K.cpp
C++
mit
2,120
using System; using Entile.Common; namespace Entile.Worker { public class InMemoryNotificationQueue : INotificationQueue { private PriorityQueue<DateTime, INotificationItem> _queue; public InMemoryNotificationQueue() { _queue = new PriorityQueue<DateTime, INotificationItem>(); } public void EnqueueItem(INotificationItem notificationItem) { lock(_queue) { _queue.Enqueue(DateTime.Now, notificationItem); } } public void EnqueueItem(INotificationItem notificationItem, DateTime earliestSend) { lock (_queue) { _queue.Enqueue(earliestSend, notificationItem); } } public INotificationItem TakeItem() { lock (_queue) { if (_queue.IsEmpty) return null; var topEntry = _queue.Peek(); if (topEntry.Key >= DateTime.Now) return null; return _queue.DequeueValue(); } } } }
andlju/entile
Source/Entile.Worker/InMemoryNotificationQueue.cs
C#
mit
1,145
package com.namelessmc.plugin.spigot.hooks; import org.bukkit.entity.Player; import com.namelessmc.plugin.spigot.NamelessPlugin; import me.clip.placeholderapi.expansion.PlaceholderExpansion; import org.jetbrains.annotations.NotNull; public class PapiHook extends PlaceholderExpansion { @Override public String onPlaceholderRequest(final Player player, final String identifier) { if (identifier.equals("notifications") && player != null) { PlaceholderCacher cacher = NamelessPlugin.getInstance().getPlaceholderCacher(); if (cacher != null) { int count = cacher.getNotificationCount(player); return count > 0 ? String.valueOf(count) : "?"; } else { return "<placeholders disabled>"; } } return null; } @Override public @NotNull String getAuthor() { return String.join(", ", NamelessPlugin.getInstance().getDescription().getAuthors()); } @Override public @NotNull String getIdentifier() { return "nameless"; } @Override public @NotNull String getVersion() { return NamelessPlugin.getInstance().getDescription().getVersion(); } @Override public boolean persist(){ return true; } @Override public boolean canRegister(){ return true; } }
NamelessMC/Nameless-Plugin
src/com/namelessmc/plugin/spigot/hooks/PapiHook.java
Java
mit
1,230
<?php namespace Integration\MissingMigration; use TestHelper\TestEnv; use TestHelper\ApplicationTester; use ngyuki\DbMigrate\Console\Application; class MissingMigrationTest extends \PHPUnit_Framework_TestCase { /** * @var TestEnv */ private $env; /** * @var Application */ private $app; /** * @var ApplicationTester */ private $tester; public function setUp() { $this->env = new TestEnv(); $this->env->clear(); $this->app = new Application(); $this->app->setCatchExceptions(false); $this->app->setAutoExit(false); $this->tester = new ApplicationTester($this->app); } /** * @test */ public function test() { $this->tester->run('migrate', '--config', __DIR__ . '/config1.php'); assertEquals(array('1000.sql', '2000.sql', '3000.sql'), $this->env->versions()); $this->tester->run('migrate', '--config', __DIR__ . '/config2.php'); assertEquals(array('1000.sql', '3000.sql', '4000.sql'), $this->env->versions()); } }
ngyuki/php-db-migrate
tests/Integration/MissingMigration/MissingMigrationTest.php
PHP
mit
1,094
var albumView = (function () { var USERNAME = 'x-user-name'; function show(context) { var albumId = this.params['id']; templates.get('album') .then(function (template) { albumsController.getAlbumById(albumId) .then(function (album) { album.CreatedOn = moment(album.CreatedOn).format('LLLL'); mediaFileController.getByAlbum(album.Id) .then(function (files) { album.MediaFiles = files; commentsController.getAllCommentsByAlbum(album.Id) .then(function (comments) { album.Comments = comments; context.$element().html(template(album)); $(".imgLiquid").imgLiquid(); $('#btn-comment-body').on('click', function () { var commentBody = $('#comment-body').val(); var comment = { Body: commentBody, AlbumId: album.Id, User: { Name: localStorage.getItem(USERNAME) } }; commentsController.createComment(comment) }); }); }); }) .catch(function (e) { toastr.error("No connection with the server!"); context.redirect('#/home'); }); }); } return { show: show } }());
TeamApollo/Image-Gallery
Client/Scripts/Views/album-view.js
JavaScript
mit
2,025
# minimal-aurelia-stack Minimal [Aurelia](https://github.com/aurelia/framework) stack using [Gulp](https://github.com/gulpjs/gulp) and [Webpack](https://github.com/webpack/webpack). ## Installation Install gulp CLI `npm i -g gulp` Install the npm dependencies `npm i` ## Usage Start the dev server `gulp watch` Navigate to `http://localhost:3000`, which is configurable. ## Future Work 1. Unit test framework 2. CSS integration (separate tag or branch) 3. ExpressJS backend server (separate tag or branch)
tylerkayser/minimal-aurelia-stack
README.md
Markdown
mit
517
#!/bin/sh VERSION=4.9.3 tar --files-from=file.list -xjvf ../gcc-$VERSION.tar.bz2 mv gcc-$VERSION gcc-$VERSION-orig cp -rf ./gcc-$VERSION-new ./gcc-$VERSION diff -b --unified -Nr gcc-$VERSION-orig gcc-$VERSION > gcc-$VERSION-a2x-newlib.patch mv gcc-$VERSION-a2x-newlib.patch ../../patches rm -rf ./gcc-$VERSION rm -rf ./gcc-$VERSION-orig
radix-platform/toolchains
sources/GNU/gcc/gcc-4.9.3/create-4.9.3-a2x-newlib-patch/create.patch.sh
Shell
mit
345
/*- * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. * * See the file LICENSE for license information. * */ using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Text; using System.Xml; using NUnit.Framework; using BerkeleyDB; namespace CsharpAPITest { [TestFixture] public class MPoolConfigTest : CSharpTestFixture { [TestFixtureSetUp] public void SetUpTestFixture() { testFixtureName = "MPoolConfigTest"; base.SetUpTestfixture(); } [Test] public void TestConfig() { testName = "TestConfig"; SetUpTest(false); // Config and confirm mpool subsystem configuration. MPoolConfig mpoolConfig = new MPoolConfig(); XmlElement xmlElem = Configuration.TestSetUp( testFixtureName, testName); Config(xmlElem, ref mpoolConfig, true); Confirm(xmlElem, mpoolConfig, true); } public static void Confirm(XmlElement xmlElement, MPoolConfig mpoolConfig, bool compulsory) { Configuration.ConfirmCacheSize(xmlElement, "CacheSize", mpoolConfig.CacheSize, compulsory); Configuration.ConfirmCacheSize(xmlElement, "MaxCacheSize", mpoolConfig.MaxCacheSize, compulsory); Configuration.ConfirmInt(xmlElement, "MaxOpenFiles", mpoolConfig.MaxOpenFiles, compulsory); Configuration.ConfirmUint(xmlElement, "MMapSize", mpoolConfig.MMapSize, compulsory); Configuration.ConfirmMaxSequentialWrites(xmlElement, "MaxSequentialWrites", mpoolConfig.SequentialWritePause, mpoolConfig.MaxSequentialWrites, compulsory); } public static void Config(XmlElement xmlElement, ref MPoolConfig mpoolConfig, bool compulsory) { uint uintValue = new uint(); int intValue = new int(); Configuration.ConfigCacheInfo(xmlElement, "CacheSize", ref mpoolConfig.CacheSize, compulsory); Configuration.ConfigCacheInfo(xmlElement, "MaxCacheSize", ref mpoolConfig.MaxCacheSize, compulsory); if (Configuration.ConfigInt(xmlElement, "MaxOpenFiles", ref intValue, compulsory)) mpoolConfig.MaxOpenFiles = intValue; Configuration.ConfigMaxSequentialWrites( xmlElement, "MaxSequentialWrites", mpoolConfig, compulsory); if (Configuration.ConfigUint(xmlElement, "MMapSize", ref uintValue, compulsory)) mpoolConfig.MMapSize = uintValue; } } }
genehallman/node-berkeleydb
deps/db-18.1.40/test/csharp/MPoolConfigTest.cs
C#
mit
2,401
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using Microsoft.AspNet.Identity; using Microsoft.Owin.Security; namespace HAOestMvcTemplate.Models { public class IndexViewModel { public bool HasPassword { get; set; } public IList<UserLoginInfo> Logins { get; set; } public string PhoneNumber { get; set; } public bool TwoFactor { get; set; } public bool BrowserRemembered { get; set; } } public class ManageLoginsViewModel { public IList<UserLoginInfo> CurrentLogins { get; set; } public IList<AuthenticationDescription> OtherLogins { get; set; } } public class FactorViewModel { public string Purpose { get; set; } } public class SetPasswordViewModel { [Required] [StringLength(100, ErrorMessage = "{0} 必须至少包含 {2} 个字符。", MinimumLength = 6)] [DataType(DataType.Password)] [Display(Name = "新密码")] public string NewPassword { get; set; } [DataType(DataType.Password)] [Display(Name = "确认新密码")] [Compare("NewPassword", ErrorMessage = "新密码和确认密码不匹配。")] public string ConfirmPassword { get; set; } } public class ChangePasswordViewModel { [Required] [DataType(DataType.Password)] [Display(Name = "当前密码")] public string OldPassword { get; set; } [Required] [StringLength(100, ErrorMessage = "{0} 必须至少包含 {2} 个字符。", MinimumLength = 6)] [DataType(DataType.Password)] [Display(Name = "新密码")] public string NewPassword { get; set; } [DataType(DataType.Password)] [Display(Name = "确认新密码")] [Compare("NewPassword", ErrorMessage = "新密码和确认密码不匹配。")] public string ConfirmPassword { get; set; } } public class AddPhoneNumberViewModel { [Required] [Phone] [Display(Name = "电话号码")] public string Number { get; set; } } public class VerifyPhoneNumberViewModel { [Required] [Display(Name = "代码")] public string Code { get; set; } [Required] [Phone] [Display(Name = "电话号码")] public string PhoneNumber { get; set; } } public class ConfigureTwoFactorViewModel { public string SelectedProvider { get; set; } public ICollection<System.Web.Mvc.SelectListItem> Providers { get; set; } } }
HADB/HAOestMvcTemplate
HAOestMvcTemplate/Models/ManageViewModels.cs
C#
mit
2,593
<html> <head> <script src='https://surikov.github.io/webaudiofont/npm/dist/WebAudioFontPlayer.js'></script> <script src='0200_SBLive_sf2.js'></script> <script> var selectedPreset=_tone_0200_SBLive_sf2; var AudioContextFunc = window.AudioContext || window.webkitAudioContext; var audioContext = new AudioContextFunc(); var player=new WebAudioFontPlayer(); function startWaveTableNow(pitch) { var audioBufferSourceNode = player.queueWaveTable(audioContext, audioContext.destination, selectedPreset, audioContext.currentTime + 0, pitch, 0.4); var audioBufferSourceNode = player.queueWaveTable(audioContext, audioContext.destination, selectedPreset, audioContext.currentTime + 0.4, pitch, 0.2); var audioBufferSourceNode = player.queueWaveTable(audioContext, audioContext.destination, selectedPreset, audioContext.currentTime + 0.6, pitch, 0.2); var audioBufferSourceNode = player.queueWaveTable(audioContext, audioContext.destination, selectedPreset, audioContext.currentTime + 0.8, pitch, 4); } </script> </head> <body> <p>file: 0200_SBLive_sf2.js<br/> variable: _tone_0200_SBLive_sf2<br/> MIDI: 20. Reed Organ: Organ</p> <p><a href='javascript:player.cancelQueue(audioContext);'>stop</a></p> <p>chords: <a href='javascript:startWaveTableNow(4+12*4+0); startWaveTableNow(9+12*4+0); startWaveTableNow(2+12*5+2); startWaveTableNow(7+12*5+2); startWaveTableNow(11+12*5+1); startWaveTableNow(4+12*6+0);'>Am</a> | <a href='javascript:startWaveTableNow(4+12*4+0); startWaveTableNow(9+12*4+3); startWaveTableNow(2+12*5+2); startWaveTableNow(7+12*5+0); startWaveTableNow(11+12*5+1); startWaveTableNow(4+12*6+0);'>C</a> | <a href='javascript:startWaveTableNow(4+12*4+0); startWaveTableNow(9+12*4+2); startWaveTableNow(2+12*5+2); startWaveTableNow(7+12*5+1); startWaveTableNow(11+12*5+0); startWaveTableNow(4+12*6+0);'>E</a> | <a href='javascript:startWaveTableNow(4+12*4+3); startWaveTableNow(9+12*4+2); startWaveTableNow(2+12*5+0); startWaveTableNow(7+12*5+0); startWaveTableNow(11+12*5+0); startWaveTableNow(4+12*6+3);'>G</a> </p> <p>1. <a href='javascript:startWaveTableNow(0+12*1);'>C</a> <a href='javascript:startWaveTableNow(1+12*1);'>C#</a> <a href='javascript:startWaveTableNow(2+12*1);'>D</a> <a href='javascript:startWaveTableNow(3+12*1);'>D#</a> <a href='javascript:startWaveTableNow(4+12*1);'>E</a> <a href='javascript:startWaveTableNow(5+12*1);'>F</a> <a href='javascript:startWaveTableNow(6+12*1);'>F#</a> <a href='javascript:startWaveTableNow(7+12*1);'>G</a> <a href='javascript:startWaveTableNow(8+12*1);'>G#</a> <a href='javascript:startWaveTableNow(9+12*1);'>A</a> <a href='javascript:startWaveTableNow(10+12*1);'>A#</a> <a href='javascript:startWaveTableNow(11+12*1);'>B</a> </p> <p>2. <a href='javascript:startWaveTableNow(0+12*2);'>C</a> <a href='javascript:startWaveTableNow(1+12*2);'>C#</a> <a href='javascript:startWaveTableNow(2+12*2);'>D</a> <a href='javascript:startWaveTableNow(3+12*2);'>D#</a> <a href='javascript:startWaveTableNow(4+12*2);'>E</a> <a href='javascript:startWaveTableNow(5+12*2);'>F</a> <a href='javascript:startWaveTableNow(6+12*2);'>F#</a> <a href='javascript:startWaveTableNow(7+12*2);'>G</a> <a href='javascript:startWaveTableNow(8+12*2);'>G#</a> <a href='javascript:startWaveTableNow(9+12*2);'>A</a> <a href='javascript:startWaveTableNow(10+12*2);'>A#</a> <a href='javascript:startWaveTableNow(11+12*2);'>B</a> </p> <p>3. <a href='javascript:startWaveTableNow(0+12*3);'>C</a> <a href='javascript:startWaveTableNow(1+12*3);'>C#</a> <a href='javascript:startWaveTableNow(2+12*3);'>D</a> <a href='javascript:startWaveTableNow(3+12*3);'>D#</a> <a href='javascript:startWaveTableNow(4+12*3);'>E</a> <a href='javascript:startWaveTableNow(5+12*3);'>F</a> <a href='javascript:startWaveTableNow(6+12*3);'>F#</a> <a href='javascript:startWaveTableNow(7+12*3);'>G</a> <a href='javascript:startWaveTableNow(8+12*3);'>G#</a> <a href='javascript:startWaveTableNow(9+12*3);'>A</a> <a href='javascript:startWaveTableNow(10+12*3);'>A#</a> <a href='javascript:startWaveTableNow(11+12*3);'>B</a> </p> <p>4. <a href='javascript:startWaveTableNow(0+12*4);'>C</a> <a href='javascript:startWaveTableNow(1+12*4);'>C#</a> <a href='javascript:startWaveTableNow(2+12*4);'>D</a> <a href='javascript:startWaveTableNow(3+12*4);'>D#</a> <a href='javascript:startWaveTableNow(4+12*4);'>E</a> <a href='javascript:startWaveTableNow(5+12*4);'>F</a> <a href='javascript:startWaveTableNow(6+12*4);'>F#</a> <a href='javascript:startWaveTableNow(7+12*4);'>G</a> <a href='javascript:startWaveTableNow(8+12*4);'>G#</a> <a href='javascript:startWaveTableNow(9+12*4);'>A</a> <a href='javascript:startWaveTableNow(10+12*4);'>A#</a> <a href='javascript:startWaveTableNow(11+12*4);'>B</a> </p> <p>5. <a href='javascript:startWaveTableNow(0+12*5);'>C</a> <a href='javascript:startWaveTableNow(1+12*5);'>C#</a> <a href='javascript:startWaveTableNow(2+12*5);'>D</a> <a href='javascript:startWaveTableNow(3+12*5);'>D#</a> <a href='javascript:startWaveTableNow(4+12*5);'>E</a> <a href='javascript:startWaveTableNow(5+12*5);'>F</a> <a href='javascript:startWaveTableNow(6+12*5);'>F#</a> <a href='javascript:startWaveTableNow(7+12*5);'>G</a> <a href='javascript:startWaveTableNow(8+12*5);'>G#</a> <a href='javascript:startWaveTableNow(9+12*5);'>A</a> <a href='javascript:startWaveTableNow(10+12*5);'>A#</a> <a href='javascript:startWaveTableNow(11+12*5);'>B</a> </p> <p>6. <a href='javascript:startWaveTableNow(0+12*6);'>C</a> <a href='javascript:startWaveTableNow(1+12*6);'>C#</a> <a href='javascript:startWaveTableNow(2+12*6);'>D</a> <a href='javascript:startWaveTableNow(3+12*6);'>D#</a> <a href='javascript:startWaveTableNow(4+12*6);'>E</a> <a href='javascript:startWaveTableNow(5+12*6);'>F</a> <a href='javascript:startWaveTableNow(6+12*6);'>F#</a> <a href='javascript:startWaveTableNow(7+12*6);'>G</a> <a href='javascript:startWaveTableNow(8+12*6);'>G#</a> <a href='javascript:startWaveTableNow(9+12*6);'>A</a> <a href='javascript:startWaveTableNow(10+12*6);'>A#</a> <a href='javascript:startWaveTableNow(11+12*6);'>B</a> </p> <p>7. <a href='javascript:startWaveTableNow(0+12*7);'>C</a> <a href='javascript:startWaveTableNow(1+12*7);'>C#</a> <a href='javascript:startWaveTableNow(2+12*7);'>D</a> <a href='javascript:startWaveTableNow(3+12*7);'>D#</a> <a href='javascript:startWaveTableNow(4+12*7);'>E</a> <a href='javascript:startWaveTableNow(5+12*7);'>F</a> <a href='javascript:startWaveTableNow(6+12*7);'>F#</a> <a href='javascript:startWaveTableNow(7+12*7);'>G</a> <a href='javascript:startWaveTableNow(8+12*7);'>G#</a> <a href='javascript:startWaveTableNow(9+12*7);'>A</a> <a href='javascript:startWaveTableNow(10+12*7);'>A#</a> <a href='javascript:startWaveTableNow(11+12*7);'>B</a> </p> <p>8. <a href='javascript:startWaveTableNow(0+12*8);'>C</a> <a href='javascript:startWaveTableNow(1+12*8);'>C#</a> <a href='javascript:startWaveTableNow(2+12*8);'>D</a> <a href='javascript:startWaveTableNow(3+12*8);'>D#</a> <a href='javascript:startWaveTableNow(4+12*8);'>E</a> <a href='javascript:startWaveTableNow(5+12*8);'>F</a> <a href='javascript:startWaveTableNow(6+12*8);'>F#</a> <a href='javascript:startWaveTableNow(7+12*8);'>G</a> <a href='javascript:startWaveTableNow(8+12*8);'>G#</a> <a href='javascript:startWaveTableNow(9+12*8);'>A</a> <a href='javascript:startWaveTableNow(10+12*8);'>A#</a> <a href='javascript:startWaveTableNow(11+12*8);'>B</a> </p> </body> </html>
surikov/webaudiofontdata
sound/0200_SBLive_sf2.html
HTML
mit
7,758
<?php namespace Comodojo\Dispatcher\Components; use \Comodojo\Foundation\Base\AbstractVersion; /** * @package Comodojo Dispatcher * @author Marco Giovinazzi <[email protected]> * @author Marco Castiello <[email protected]> * @license MIT * * LICENSE: * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ class Version extends AbstractVersion { protected $name = 'Comodojo/dispatcher'; protected $description = 'Hackable PHP REST framework'; protected $version = '4.0-dev'; protected $ascii = "\r\n ___ _ __ __ \r\n". " / _ \(_)__ ___ ___ _/ /_____/ / ___ ____\r\n". " / // / (_-</ _ \/ _ `/ __/ __/ _ \/ -_) __/\r\n". "/____/_/___/ .__/\_,_/\__/\__/_//_/\__/_/ \r\n". " /_/ \r\n"; protected $template = "\n\n{ascii}\r\n". "---------------------------------------------\r\n". "{name} (ver {version})\r\n{description}\r\n"; protected $prefix = 'dispatcher-'; }
comodojo/dispatcher.framework
src/Comodojo/Dispatcher/Components/Version.php
PHP
mit
1,587
import { concat, forEach, isEmpty, map, reject, uniq } from 'lodash'; import { IAchievement, IUserAchievement } from './achievement.abstract'; // Gives achievement to comment authors who got all reactions // without reacting themselves export const usedAllReactionsInComment: IAchievement = { name: 'Gladiator', check: function(pullRequest, shall) { const topAuthorsUsernames = getCommentAuthorsWithAllReactions(pullRequest); if (!isEmpty(topAuthorsUsernames)) { const achievement: IUserAchievement = { avatar: 'images/achievements/gladiator.achievement.gif', name: 'Gladiator', short: 'Are you not ENTERTAINED?!', description: [ 'Your message got all the possible reactions. ', 'Enjoy your 15 minutes of fame' ].join(''), relatedPullRequest: pullRequest.id }; forEach(topAuthorsUsernames, function(author) { shall.grant(author, achievement); }); } } }; function getCommentAuthorsWithAllReactions(pullRequest) { const allComments = concat(pullRequest.comments, pullRequest.inlineComments); const authors = map(allComments, 'author.username'); const AllCommentsReactions = map(allComments, 'reactions'); // also add pull request description reactions authors.push(pullRequest.creator.username); AllCommentsReactions.push(pullRequest.reactions); getOnlyUniqueReactionsWithoutAuthors(AllCommentsReactions, authors); return onlyUsersWithAllReactions(authors, AllCommentsReactions); } function reactionsWithoutAuthor(reactions, author) { return map(reject(reactions, ['user.username', author]), 'reaction'); } function getOnlyUniqueReactionsWithoutAuthors(AllCommentsReactions, authors) { forEach(AllCommentsReactions, function(reactions, index) { AllCommentsReactions[index] = uniq(reactionsWithoutAuthor(reactions, authors[index])); }); } function onlyUsersWithAllReactions(authors, AllCommentsReactions) { const commentAuthorsWithAllReactions = []; forEach(authors, function(author, index) { if (AllCommentsReactions[index].length === 6) { commentAuthorsWithAllReactions.push(author); } }); return commentAuthorsWithAllReactions; }
Kibibit/achievibit
achievements/src/used-all-reactions-in-comment.achievement.ts
TypeScript
mit
2,224
<?php class GrcPool_Controller_Polls extends GrcPool_Controller { public function __construct() { parent::__construct(); } public function indexAction() { $pollDao = new GrcPool_Poll_Question_DAO(); $pollAnswerDao = new GrcPool_Poll_Answer_DAO(); $voteDao = new GrcPool_Poll_Vote_DAO(); $this->view->loggedIn = $this->getUser() && $this->getUser()->getId(); if ($this->post('cmd') && $this->view->loggedIn) { $parts = explode("_",$this->post('cmd')); $question = $pollDao->initWithKey($parts[1]); if ($question != null && $question->getExpire() > time()) { $creditDao = new GrcPool_Member_Host_Credit_DAO(); $totalMag = $creditDao->getTotalMagForMemberId($this->getUser()->getId()); $totalOwed = $creditDao->getTotalOwedForMemberId($this->getUser()->getId()); $votes = $voteDao->getWithMemberIdAndQuestionId($this->getUser()->getId(),$parts[1]); foreach ($votes as $vote) { $voteDao->delete($vote); } if ($parts[0] == 'vote') { $vote = new GrcPool_Poll_Vote_OBJ(); $vote->setAnswerId($this->post('poll_'.$question->getId())); $vote->setMemberId($this->getUser()->getId()); $vote->setQuestionId($question->getId()); $vote->setTime(time()); $vote->setRank(1); $vote->setMag($totalMag); $vote->setBalance($totalOwed); $vote->setWeight(GrcPool_Utils::getVoteWeight($totalMag,$totalOwed,$question->getMoneySupply())); $voteDao->save($vote); } } } //if ($this->getUser() && $this->getUser()->getId() == 573) { $polls = $pollDao->getActivePolls(); //} else { // $polls = array(); //} $answerIds = array(); foreach ($polls as $poll) { if ($this->view->loggedIn) { $votes = $voteDao->getWithMemberIdAndQuestionId($this->getUser()->getId(),$poll->getId()); foreach ($votes as $vote) { array_push($answerIds,$vote->getAnswerId()); } } } $this->view->answerIds = $answerIds; $this->view->polls = $polls; } public function resultsAction() { if (!$this->args(0)) { Server::goHome(); } $pollDao = new GrcPool_Poll_Question_DAO(); $pollAnswerDao = new GrcPool_Poll_Answer_DAO(); $voteDao = new GrcPool_View_Vote_Member_DAO(); $poll = $pollDao->initWithKey($this->args(0)); if (!$poll) { Server::goHome(); } $voters = $voteDao->fetchAll(array($voteDao->where('questionId',$poll->getId())),array('weight'=>'desc')); $this->view->poll = $poll; $this->view->voters = $voters; $answers = $pollAnswerDao->getWithQuestionId($poll->getId()); $this->view->answers = $answers; } public function completeAction() { $pollDao = new GrcPool_Poll_Question_DAO(); $pollAnswerDao = new GrcPool_Poll_Answer_DAO(); $voteDao = new GrcPool_Poll_Vote_DAO(); $polls = $pollDao->getCompletedPolls(); foreach ($polls as $poll) { $answers = $pollAnswerDao->getWithQuestionId($poll->getId()); $poll->answers = $answers; $poll->weights = $voteDao->getWeightsForQuestionId($poll->getId()); } $this->view->polls = $polls; } }
bryhardt/grcpool
controllers/Polls.php
PHP
mit
3,046
body { font-family: latoregular, Helvetica, Arial; background-color: #EEE; } #main { width: 800px; margin: 2em auto; padding: 0 2em; } #content { padding: 0 2em; border: 1px solid #AAA; background-color: #FFF; border: 1px solid black; clear: both; padding: 0 1em; } #chart_div { width: 750px; height: 750px; } #header ul { list-style: none; padding: 0; margin: 0; } #header li { float: left; border: 1px solid #bbb; border-bottom-width: 0; margin: 0; } #header a { text-decoration: none; display: block; background: #eee; padding: 0.24em 1em; color: #00c; width: 12em; text-align: center; } #header a:hover { background: #ddf; } #header #selected { border-color: black; } #header #selected a { position: relative; top: 1px; background: white; color: black; font-weight: bold; } #avatar_div { width: 100px; height: 100px; }
stxnext-kindergarten/presence-analyzer-przemekmazurek
src/presence_analyzer/static/css/base.css
CSS
mit
1,489
// // Constants.cs // // Author: // Zach Deibert <[email protected]> // // Copyright (c) 2017 Zach Deibert // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. using System; namespace Com.Latipium.Daemon.Platform.Unix { internal partial class Native { protected const short EMPTY = 0; protected const short RUN_LVL = 1; protected const short BOOT_TIME = 2; protected const short NEW_TIME = 3; protected const short OLD_TIME = 4; protected const short INIT_PROCESS = 5; protected const short LOGIN_PROCESS = 6; protected const short USER_PROCESS = 7; protected const short DEAD_PROCESS = 8; protected const short ACCOUTING = 9; protected const int UT_LINESIZE = 32; protected const int UT_NAMESIZE = 32; protected const int UT_HOSTSIZE = 256; } }
latipium/daemon
Com/Latipium/Daemon/Platform/Unix/Constants.cs
C#
mit
1,895
/* * W.J. van der Laan 2011-2012 */ #include "bitcoingui.h" #include "clientmodel.h" #include "walletmodel.h" #include "optionsmodel.h" #include "guiutil.h" #include "guiconstants.h" #include "init.h" #include "ui_interface.h" #include "qtipcserver.h" #include <QApplication> #include <QMessageBox> #include <QTextCodec> #include <QLocale> #include <QTranslator> #include <QSplashScreen> #include <QLibraryInfo> #include <boost/interprocess/ipc/message_queue.hpp> #include <boost/algorithm/string/predicate.hpp> #if defined(BITCOIN_NEED_QT_PLUGINS) && !defined(_BITCOIN_QT_PLUGINS_INCLUDED) #define _BITCOIN_QT_PLUGINS_INCLUDED #define __INSURE__ #include <QtPlugin> Q_IMPORT_PLUGIN(qcncodecs) Q_IMPORT_PLUGIN(qjpcodecs) Q_IMPORT_PLUGIN(qtwcodecs) Q_IMPORT_PLUGIN(qkrcodecs) Q_IMPORT_PLUGIN(qtaccessiblewidgets) #endif // Need a global reference for the notifications to find the GUI static BitcoinGUI *guiref; static QSplashScreen *splashref; static void ThreadSafeMessageBox(const std::string& message, const std::string& caption, int style) { // Message from network thread if(guiref) { bool modal = (style & CClientUIInterface::MODAL); // in case of modal message, use blocking connection to wait for user to click OK QMetaObject::invokeMethod(guiref, "error", modal ? GUIUtil::blockingGUIThreadConnection() : Qt::QueuedConnection, Q_ARG(QString, QString::fromStdString(caption)), Q_ARG(QString, QString::fromStdString(message)), Q_ARG(bool, modal)); } else { printf("%s: %s\n", caption.c_str(), message.c_str()); fprintf(stderr, "%s: %s\n", caption.c_str(), message.c_str()); } } static bool ThreadSafeAskFee(int64 nFeeRequired, const std::string& strCaption) { if(!guiref) return false; if(nFeeRequired < MIN_TX_FEE || nFeeRequired <= nTransactionFee || fDaemon) return true; bool payFee = false; QMetaObject::invokeMethod(guiref, "askFee", GUIUtil::blockingGUIThreadConnection(), Q_ARG(qint64, nFeeRequired), Q_ARG(bool*, &payFee)); return payFee; } static void ThreadSafeHandleURI(const std::string& strURI) { if(!guiref) return; QMetaObject::invokeMethod(guiref, "handleURI", GUIUtil::blockingGUIThreadConnection(), Q_ARG(QString, QString::fromStdString(strURI))); } static void InitMessage(const std::string &message) { if(splashref) { splashref->showMessage(QString::fromStdString(message), Qt::AlignBottom|Qt::AlignHCenter, QColor(255,255,200)); QApplication::instance()->processEvents(); } } static void QueueShutdown() { QMetaObject::invokeMethod(QCoreApplication::instance(), "quit", Qt::QueuedConnection); } /* Translate string to current locale using Qt. */ static std::string Translate(const char* psz) { return QCoreApplication::translate("bitcoin-core", psz).toStdString(); } /* Handle runaway exceptions. Shows a message box with the problem and quits the program. */ static void handleRunawayException(std::exception *e) { PrintExceptionContinue(e, "Runaway exception"); QMessageBox::critical(0, "Runaway exception", BitcoinGUI::tr("A fatal error occured. Omegacoin can no longer continue safely and will quit.") + QString("\n\n") + QString::fromStdString(strMiscWarning)); exit(1); } #ifndef BITCOIN_QT_TEST int main(int argc, char *argv[]) { // TODO: implement URI support on the Mac. #if !defined(MAC_OSX) // Do this early as we don't want to bother initializing if we are just calling IPC for (int i = 1; i < argc; i++) { if (boost::algorithm::istarts_with(argv[i], "omegacoin:")) { const char *strURI = argv[i]; try { boost::interprocess::message_queue mq(boost::interprocess::open_only, BITCOINURI_QUEUE_NAME); if (mq.try_send(strURI, strlen(strURI), 0)) // if URI could be sent to the message queue exit here exit(0); else // if URI could not be sent to the message queue do a normal Bitcoin-Qt startup break; } catch (boost::interprocess::interprocess_exception &ex) { // don't log the "file not found" exception, because that's normal for // the first start of the first instance if (ex.get_error_code() != boost::interprocess::not_found_error) { printf("main() - boost interprocess exception #%d: %s\n", ex.get_error_code(), ex.what()); break; } } } } #endif // Internal string conversion is all UTF-8 QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8")); QTextCodec::setCodecForCStrings(QTextCodec::codecForTr()); Q_INIT_RESOURCE(bitcoin); QApplication app(argc, argv); // Install global event filter that makes sure that long tooltips can be word-wrapped app.installEventFilter(new GUIUtil::ToolTipToRichTextFilter(TOOLTIP_WRAP_THRESHOLD, &app)); // Command-line options take precedence: ParseParameters(argc, argv); // ... then bitcoin.conf: if (!boost::filesystem::is_directory(GetDataDir(false))) { fprintf(stderr, "Error: Specified directory does not exist\n"); return 1; } ReadConfigFile(mapArgs, mapMultiArgs); // Application identification (must be set before OptionsModel is initialized, // as it is used to locate QSettings) app.setOrganizationName("Omegacoin"); app.setOrganizationDomain("omegacoin.org"); if(GetBoolArg("-testnet")) // Separate UI settings for testnet app.setApplicationName("Omegacoin-Qt-testnet"); else app.setApplicationName("Omegacoin-Qt"); // ... then GUI settings: OptionsModel optionsModel; // Get desired locale (e.g. "de_DE") from command line or use system locale QString lang_territory = QString::fromStdString(GetArg("-lang", QLocale::system().name().toStdString())); QString lang = lang_territory; // Convert to "de" only by truncating "_DE" lang.truncate(lang_territory.lastIndexOf('_')); QTranslator qtTranslatorBase, qtTranslator, translatorBase, translator; // Load language files for configured locale: // - First load the translator for the base language, without territory // - Then load the more specific locale translator // Load e.g. qt_de.qm if (qtTranslatorBase.load("qt_" + lang, QLibraryInfo::location(QLibraryInfo::TranslationsPath))) app.installTranslator(&qtTranslatorBase); // Load e.g. qt_de_DE.qm if (qtTranslator.load("qt_" + lang_territory, QLibraryInfo::location(QLibraryInfo::TranslationsPath))) app.installTranslator(&qtTranslator); // Load e.g. bitcoin_de.qm (shortcut "de" needs to be defined in bitcoin.qrc) if (translatorBase.load(lang, ":/translations/")) app.installTranslator(&translatorBase); // Load e.g. bitcoin_de_DE.qm (shortcut "de_DE" needs to be defined in bitcoin.qrc) if (translator.load(lang_territory, ":/translations/")) app.installTranslator(&translator); // Subscribe to global signals from core uiInterface.ThreadSafeMessageBox.connect(ThreadSafeMessageBox); uiInterface.ThreadSafeAskFee.connect(ThreadSafeAskFee); uiInterface.ThreadSafeHandleURI.connect(ThreadSafeHandleURI); uiInterface.InitMessage.connect(InitMessage); uiInterface.QueueShutdown.connect(QueueShutdown); uiInterface.Translate.connect(Translate); // Show help message immediately after parsing command-line options (for "-lang") and setting locale, // but before showing splash screen. if (mapArgs.count("-?") || mapArgs.count("--help")) { GUIUtil::HelpMessageBox help; help.showOrPrint(); return 1; } QSplashScreen splash(QPixmap(":/images/splash"), 0); if (GetBoolArg("-splash", true) && !GetBoolArg("-min")) { splash.show(); splash.setAutoFillBackground(true); splashref = &splash; } app.processEvents(); app.setQuitOnLastWindowClosed(false); try { // Regenerate startup link, to fix links to old versions if (GUIUtil::GetStartOnSystemStartup()) GUIUtil::SetStartOnSystemStartup(true); BitcoinGUI window; guiref = &window; if(AppInit2()) { { // Put this in a block, so that the Model objects are cleaned up before // calling Shutdown(). optionsModel.Upgrade(); // Must be done after AppInit2 if (splashref) splash.finish(&window); ClientModel clientModel(&optionsModel); WalletModel walletModel(pwalletMain, &optionsModel); window.setClientModel(&clientModel); window.setWalletModel(&walletModel); // If -min option passed, start window minimized. if(GetBoolArg("-min")) { window.showMinimized(); } else { window.show(); } // TODO: implement URI support on the Mac. #if !defined(MAC_OSX) // Place this here as guiref has to be defined if we dont want to lose URIs ipcInit(); // Check for URI in argv for (int i = 1; i < argc; i++) { if (boost::algorithm::istarts_with(argv[i], "omegacoin:")) { const char *strURI = argv[i]; try { boost::interprocess::message_queue mq(boost::interprocess::open_only, BITCOINURI_QUEUE_NAME); mq.try_send(strURI, strlen(strURI), 0); } catch (boost::interprocess::interprocess_exception &ex) { printf("main() - boost interprocess exception #%d: %s\n", ex.get_error_code(), ex.what()); break; } } } #endif app.exec(); window.hide(); window.setClientModel(0); window.setWalletModel(0); guiref = 0; } // Shutdown the core and it's threads, but don't exit Bitcoin-Qt here Shutdown(NULL); } else { return 1; } } catch (std::exception& e) { handleRunawayException(&e); } catch (...) { handleRunawayException(NULL); } return 0; } #endif // BITCOIN_QT_TEST
omegacoinproject/omegacoin
src/qt/bitcoin.cpp
C++
mit
10,980
h1, h2, h3, h4, h5, strong, b { font-weight: 600; } html, body { height: 100%; } body { background: #f9f9f9; color: #303030; font-family: 'Open Sans', sans-serif; font-weight: 400; font-size: 13px; line-height: 19px; padding: 0; margin: 0; } body, body * { -webkit-font-smoothing: antialiased; } img { border: none; } #go-back-home { margin: 40px 0 0; } #go-back-home:hover { background-image: none; } .capitalize { text-transform: capitalize; } .upcase { text-transform: uppercase; } .downcase { text-transform: lowercase; } .hide { display: none; } .a-r { text-align: right; } .a-c { text-align: center; } .small { font-size: 11px; } .pull-left { float: left; } .pull-right { float: right; } .muted { color: #8f8f8f; } .colour-1 { color: #cc9944; } .colour-2 { color: #925; } .colour-3 { color: #448844; } .text-big { font-size: 24px; line-height: 1em; } ol, ol li { padding: 0; margin: 0; } blockquote { margin: 0; font-style: normal !important; } header { text-align: center; } footer { width: 100%; max-width: 600px; line-height: 2em; margin: auto; padding-bottom: 30px; text-align: center; } footer * { color: #797979; } #container { *zoom: 1; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; width: 100%; max-width: 600px; background: #fff; margin: 40px auto 20px; border-radius: 7px; border: 1px solid #eee; position: relative; } #container:before, #container:after { content: " "; display: table; } #container:after { clear: both; } #container .block { border-top: 1px solid #efefef; border-bottom: 1px solid #efefef; padding: 30px 40px 24px; text-align: center; } #container .block:first-child, #container .block + .block { border-top: 0; } #container .block:last-child { border-bottom: 0; } #container .block a.main { display: inline-block; vertical-align: baseline; zoom: 1; *display: inline; *vertical-align: auto; padding: 2px 2px; margin-right: 12px; margin-bottom: 6px; } #container .block a.main:last-of-type { margin-right: 0; } #container .block .button { display: inline-block; vertical-align: baseline; zoom: 1; *display: inline; *vertical-align: auto; height: 20px; overflow: hidden; } .content { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; position: relative; width: 100%; border-width: 0; border-style: solid; padding: 30px 60px; margin: auto; } a, .as-link { text-decoration: none; color: #269; line-height: 1.4em; display: inline-block; vertical-align: baseline; zoom: 1; *display: inline; *vertical-align: auto; -webkit-transition: color 0.3s; -moz-transition: color 0.3s; -ms-transition: color 0.3s; -o-transition: color 0.3s; transition: color 0.3s; } a.main, a:hover, .as-link.main, .as-link:hover { color: #1d5884; background-image: url(/images/line.png); background-repeat: repeat-x; background-position: left bottom; } a.big-button, .as-link.big-button { min-width: 30%; border-radius: 3px; -webkit-transition: all, 0.2s; -moz-transition: all, 0.2s; -ms-transition: all, 0.2s; -o-transition: all, 0.2s; transition: all, 0.2s; color: #fff; cursor: pointer; font-size: 12px; line-height: 24px; padding: 8px 17px; text-transform: uppercase; letter-spacing: 2px; font-weight: bold; display: block; text-align: center; border-width: 0; border-style: solid; border-color: #8ab; background: #6f8f9f; box-shadow: inset 0 -1px 0px rgba(0, 0, 0, 0.1); } a.big-button:hover, .as-link.big-button:hover { background: #608090; } a.big-button:active, .as-link.big-button:active { box-shadow: inset 0 1px 0px rgba(0, 0, 0, 0.1); } a.big-button.red, .as-link.big-button.red { border-color: #ddacac; background: #a65; } a.big-button.red:hover, .as-link.big-button.red:hover { background: #b76; } a.big-button.gray, .as-link.big-button.gray { border-color: #f4f4f4; color: #ffffff; background: #565656; } a.big-button.gray:hover, .as-link.big-button.gray:hover { background: #676767; } a.big-button.blue, .as-link.big-button.blue { border-color: #ace; background: #678; } a.big-button.blue:hover, .as-link.big-button.blue:hover { background: #789; } a.big-button.green, .as-link.big-button.green { border-color: #ddeed0; background: #696; } a.big-button.green:hover, .as-link.big-button.green:hover { background: #797; } hr { border: 0; border-bottom: 1px dotted #CCC; margin: 25px 0; } ul.posts, ul.posts li { margin: 0; padding: 0; list-style: none; } ul.posts li { margin-bottom: 20px; } ul.posts .datetime { display: inline-block; vertical-align: baseline; zoom: 1; *display: inline; *vertical-align: auto; width: 130px; text-transform: uppercase; float: right; color: #999; font-size: 10px; text-align: right; } section.post { margin: 0 -60px; text-align: left; border-top: 0; padding: 0; } section.post > *:not(.highlight) { padding: 0 60px; } section.post > ul, section.post > ol { padding: 0 80px; } section.post ul ul, section.post ul ol, section.post ol ul, section.post ol ol { margin-left: 20px; } section.post h1 { text-transform: uppercase; text-align: center; line-height: 1.5em; margin-bottom: 60px; } section.post h1 .date { color: #d0d0d0; font-size: 10px; } section.post iframe { width: 100%; } section.post iframe, section.post img { padding: 0; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; } section.post, section > p { font-size: 14px; line-height: 1.6em; } section.post *, section > p * { max-width: 100%; } section.post em strong, section > p em strong { background-color: #ffffee; padding: 0 2px; } section.post blockquote, section > p blockquote { -webkit-transition: all, 0.3s; -moz-transition: all, 0.3s; -ms-transition: all, 0.3s; -o-transition: all, 0.3s; transition: all, 0.3s; color: #606060; background: #f9f9f9; position: relative; overflow: hidden; display: block; padding: 15px 60px; } section.post blockquote:hover, section > p blockquote:hover { color: #454545; } section.post blockquote:hover:before, section > p blockquote:hover:before { color: #b8cec7; } section.post blockquote:before, section > p blockquote:before { left: -3px; } section.post blockquote:after, section > p blockquote:after { right: -2px; } section.post blockquote:before, section.post blockquote:after, section > p blockquote:before, section > p blockquote:after { content: "^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"; font-size: 24px; overflow: hidden; position: absolute; top: 0px; bottom: 0px; line-height: 0.4em; word-break: break-all; color: #d0dfda; display: block; width: 7px !important; white-space: normal; } section.post li .highlight, section > p li .highlight { margin: 10px 0; } section.post li p, section > p li p { margin-bottom: 5px; } .highlight { margin: 0; padding: 0; } code { display: inline; font-weight: bold; color: black; } pre { overflow-x: auto; padding: 10px 60px; width: 100%; line-height: 1.2em; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } pre code { font-size: 13px; color: #eee; background: #39382e; padding: 2px 4px 3px; border-radius: 2px; line-height: 1.3em; display: block; vertical-align: baseline; zoom: 1; *display: inline; *vertical-align: auto; } img { max-width: 100%; } img.half { width: 50%; } .signoff { margin-top: 30px; } .signoff img { width: 20px; } .paging a { opacity: 0.25; } .paging a:hover { opacity: 0.7; background: none; } .paging .left, .paging .right { position: fixed; top: 50%; left: 50%; font-size: 60px; } .paging .left { margin-left: -340px; } .paging .right { margin-left: 320px; }
zamia/zamia.github.com
stylesheets/style.css
CSS
mit
8,506
<?php return [ "letters" => ":attribute mutlaka bir harf içermelidir.", "case_diff" => ":attribute en az bir büyük ve bir küçük harf içermelidir.", "numbers" => ":attribute en az 1 rakam içermelidir.", "symbols" => ":attribute az bir sembol içermelidir.", ];
schuppo/PasswordStrengthPackage
src/lang/tr/validation.php
PHP
mit
285