text
stringlengths
2
1.04M
meta
dict
<?xml version="1.0" ?><!DOCTYPE TS><TS language="uk" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="14"/> <source>About Negativity</source> <translation>Про Negativity</translation> </message> <message> <location filename="../forms/aboutdialog.ui" line="53"/> <source>&lt;b&gt;Negativity&lt;/b&gt; version</source> <translation>Версія &lt;b&gt;Negativity&apos;a&lt;b&gt;</translation> </message> <message> <location filename="../forms/aboutdialog.ui" line="85"/> <source>Copyright © 2011-2013 Negativity Developers This is experimental software. Distributed under the MIT/X11 software license, see the accompanying file license.txt 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 (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</source> <translation>Авторське право © 2011-2013 Розробники Negativity Це програмне забезпечення є експериментальним. Поширюється за ліцензією MIT/X11, додаткова інформація міститься у файлі license.txt, а також за адресою http://www.opensource.org/licenses/mit-license.php. Цей продукт включає в себе програмне забезпечення, розроблене в рамках проекту OpenSSL (http://www.openssl.org/), криптографічне програмне забезпечення, написане Еріком Янгом (eay@cryptsoft.com), та функції для роботи з UPnP, написані Томасом Бернардом.</translation> </message> </context> <context> <name>AddressBookPage</name> <message> <location filename="../forms/addressbookpage.ui" line="14"/> <source>Address Book</source> <translation>Адресна книга</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="20"/> <source>These are your Negativity 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 filename="../forms/addressbookpage.ui" line="33"/> <source>Double-click to edit address or label</source> <translation>Двічі клікніть на адресу чи назву для їх зміни</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="57"/> <source>Create a new address</source> <translation>Створити нову адресу</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="60"/> <source>&amp;New Address...</source> <translation>&amp;Створити адресу...</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="71"/> <source>Copy the currently selected address to the system clipboard</source> <translation>Копіювати виділену адресу в буфер обміну</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="74"/> <source>&amp;Copy to Clipboard</source> <translation>&amp;Копіювати</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="85"/> <source>Show &amp;QR Code</source> <translation>Показати QR-&amp;Код</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="96"/> <source>Sign a message to prove you own this address</source> <translation>Підпишіть повідомлення щоб довести, що ви є власником цієї адреси</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="99"/> <source>&amp;Sign Message</source> <translation>&amp;Підписати повідомлення</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="110"/> <source>Delete the currently selected address from the list. Only sending addresses can be deleted.</source> <translation>Видалити виділену адресу зі списку. Лише адреси з адресної книги можуть бути видалені.</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="113"/> <source>&amp;Delete</source> <translation>&amp;Видалити</translation> </message> <message> <location filename="../addressbookpage.cpp" line="61"/> <source>Copy address</source> <translation>Скопіювати адресу</translation> </message> <message> <location filename="../addressbookpage.cpp" line="62"/> <source>Copy label</source> <translation>Скопіювати мітку</translation> </message> <message> <location filename="../addressbookpage.cpp" line="63"/> <source>Edit</source> <translation>Редагувати</translation> </message> <message> <location filename="../addressbookpage.cpp" line="64"/> <source>Delete</source> <translation>Видалити</translation> </message> <message> <location filename="../addressbookpage.cpp" line="281"/> <source>Export Address Book Data</source> <translation>Експортувати адресну книгу</translation> </message> <message> <location filename="../addressbookpage.cpp" line="282"/> <source>Comma separated file (*.csv)</source> <translation>Файли відділені комами (*.csv)</translation> </message> <message> <location filename="../addressbookpage.cpp" line="295"/> <source>Error exporting</source> <translation>Помилка при експортуванні</translation> </message> <message> <location filename="../addressbookpage.cpp" line="295"/> <source>Could not write to file %1.</source> <translation>Неможливо записати у файл %1.</translation> </message> </context> <context> <name>AddressTableModel</name> <message> <location filename="../addresstablemodel.cpp" line="77"/> <source>Label</source> <translation>Назва</translation> </message> <message> <location filename="../addresstablemodel.cpp" line="77"/> <source>Address</source> <translation>Адреса</translation> </message> <message> <location filename="../addresstablemodel.cpp" line="113"/> <source>(no label)</source> <translation>(немає назви)</translation> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <location filename="../forms/askpassphrasedialog.ui" line="26"/> <source>Dialog</source> <translation>Діалог</translation> </message> <message> <location filename="../forms/askpassphrasedialog.ui" line="32"/> <location filename="../forms/askpassphrasedialog.ui" line="97"/> <source>TextLabel</source> <translation>Текстова мітка</translation> </message> <message> <location filename="../forms/askpassphrasedialog.ui" line="50"/> <source>Enter passphrase</source> <translation>Введіть пароль</translation> </message> <message> <location filename="../forms/askpassphrasedialog.ui" line="64"/> <source>New passphrase</source> <translation>Новий пароль</translation> </message> <message> <location filename="../forms/askpassphrasedialog.ui" line="78"/> <source>Repeat new passphrase</source> <translation>Повторіть пароль</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="34"/> <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>Введіть новий пароль для гаманця.&lt;br/&gt;Будь ласка, використовуйте паролі що містять &lt;b&gt; як мінімум 10 випадкових символів &lt;/b&gt; або &lt;b&gt; як мінімум 8 слів&lt;/b&gt;.</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="35"/> <source>Encrypt wallet</source> <translation>Зашифрувати гаманець</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="38"/> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation>Ця операція потребує пароль для розблокування гаманця.</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="43"/> <source>Unlock wallet</source> <translation>Розблокувати гаманець</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="46"/> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation>Ця операція потребує пароль для дешифрування гаманця.</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="51"/> <source>Decrypt wallet</source> <translation>Дешифрувати гаманець</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="54"/> <source>Change passphrase</source> <translation>Змінити пароль</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="55"/> <source>Enter the old and new passphrase to the wallet.</source> <translation>Ввести старий та новий паролі для гаманця.</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="101"/> <source>Confirm wallet encryption</source> <translation>Підтвердити шифрування гаманця</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="102"/> <source>WARNING: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR NegativityS&lt;/b&gt;! Are you sure you wish to encrypt your wallet?</source> <translation>УВАГА: Якщо ви зашифруєте гаманець і забудете пароль, ви &lt;b&gt;ВТРАТИТЕ ВСІ СВОЇ БІТКОІНИ&lt;/b&gt;! Ви дійсно хочете зашифрувати свій гаманець?</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="111"/> <location filename="../askpassphrasedialog.cpp" line="160"/> <source>Wallet encrypted</source> <translation>Гаманець зашифровано</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="112"/> <source>Negativity will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your Negativitys from being stolen by malware infecting your computer.</source> <translation>Біткоін-клієнт буде закрито для завершення процесу шифрування. Пам’ятайте, що шифрування гаманця не може повністю захистити ваші біткоіни від кражі, у випадку якщо ваш комп’ютер буде інфіковано шкідливими програмами.</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="208"/> <location filename="../askpassphrasedialog.cpp" line="232"/> <source>Warning: The Caps Lock key is on.</source> <translation>Увага: Ввімкнено Caps Lock</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="117"/> <location filename="../askpassphrasedialog.cpp" line="124"/> <location filename="../askpassphrasedialog.cpp" line="166"/> <location filename="../askpassphrasedialog.cpp" line="172"/> <source>Wallet encryption failed</source> <translation>Не вдалося зашифрувати гаманець</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="118"/> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation>Виникла помилка під час шифрування гаманця. Ваш гаманець не було зашифровано.</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="125"/> <location filename="../askpassphrasedialog.cpp" line="173"/> <source>The supplied passphrases do not match.</source> <translation>Введені паролі не співпадають.</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="136"/> <source>Wallet unlock failed</source> <translation>Не вдалося розблокувати гаманець</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="137"/> <location filename="../askpassphrasedialog.cpp" line="148"/> <location filename="../askpassphrasedialog.cpp" line="167"/> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation>Введений пароль є невірним.</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="147"/> <source>Wallet decryption failed</source> <translation>Не вдалося розшифрувати гаманець</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="161"/> <source>Wallet passphrase was succesfully changed.</source> <translation>Пароль було успішно змінено.</translation> </message> </context> <context> <name>NegativityGUI</name> <message> <location filename="../bitcoingui.cpp" line="69"/> <source>Negativity Wallet</source> <translation>Гаманець</translation> </message> <message> <location filename="../bitcoingui.cpp" line="142"/> <location filename="../bitcoingui.cpp" line="464"/> <source>Synchronizing with network...</source> <translation>Синхронізація з мережею...</translation> </message> <message> <location filename="../bitcoingui.cpp" line="145"/> <source>Block chain synchronization in progress</source> <translation>Відбувається синхронізація ланцюжка блоків...</translation> </message> <message> <location filename="../bitcoingui.cpp" line="176"/> <source>&amp;Overview</source> <translation>&amp;Огляд</translation> </message> <message> <location filename="../bitcoingui.cpp" line="177"/> <source>Show general overview of wallet</source> <translation>Показати загальний огляд гаманця</translation> </message> <message> <location filename="../bitcoingui.cpp" line="182"/> <source>&amp;Transactions</source> <translation>Пе&amp;реклади</translation> </message> <message> <location filename="../bitcoingui.cpp" line="183"/> <source>Browse transaction history</source> <translation>Переглянути історію переказів</translation> </message> <message> <location filename="../bitcoingui.cpp" line="188"/> <source>&amp;Address Book</source> <translation>&amp;Адресна книга</translation> </message> <message> <location filename="../bitcoingui.cpp" line="189"/> <source>Edit the list of stored addresses and labels</source> <translation>Редагувати список збережених адрес та міток</translation> </message> <message> <location filename="../bitcoingui.cpp" line="194"/> <source>&amp;Receive coins</source> <translation>О&amp;тримати</translation> </message> <message> <location filename="../bitcoingui.cpp" line="195"/> <source>Show the list of addresses for receiving payments</source> <translation>Показати список адрес для отримання платежів</translation> </message> <message> <location filename="../bitcoingui.cpp" line="200"/> <source>&amp;Send coins</source> <translation>В&amp;ідправити</translation> </message> <message> <location filename="../bitcoingui.cpp" line="201"/> <source>Send coins to a Negativity address</source> <translation>Відправити монети на вказану адресу</translation> </message> <message> <location filename="../bitcoingui.cpp" line="206"/> <source>Sign &amp;message</source> <translation>&amp;Підписати повідомлення</translation> </message> <message> <location filename="../bitcoingui.cpp" line="207"/> <source>Prove you control an address</source> <translation>Доведіть, що це ваша адреса</translation> </message> <message> <location filename="../bitcoingui.cpp" line="226"/> <source>E&amp;xit</source> <translation>&amp;Вихід</translation> </message> <message> <location filename="../bitcoingui.cpp" line="227"/> <source>Quit application</source> <translation>Вийти</translation> </message> <message> <location filename="../bitcoingui.cpp" line="230"/> <source>&amp;About %1</source> <translation>П&amp;ро %1</translation> </message> <message> <location filename="../bitcoingui.cpp" line="231"/> <source>Show information about Negativity</source> <translation>Показати інформацію про Negativity</translation> </message> <message> <location filename="../bitcoingui.cpp" line="233"/> <source>About &amp;Qt</source> <translation>&amp;Про Qt</translation> </message> <message> <location filename="../bitcoingui.cpp" line="234"/> <source>Show information about Qt</source> <translation>Показати інформацію про Qt</translation> </message> <message> <location filename="../bitcoingui.cpp" line="236"/> <source>&amp;Options...</source> <translation>&amp;Параметри...</translation> </message> <message> <location filename="../bitcoingui.cpp" line="237"/> <source>Modify configuration options for Negativity</source> <translation>Редагувати параметри</translation> </message> <message> <location filename="../bitcoingui.cpp" line="239"/> <source>Open &amp;Negativity</source> <translation>Показати &amp;гаманець</translation> </message> <message> <location filename="../bitcoingui.cpp" line="240"/> <source>Show the Negativity window</source> <translation>Показати вікно гаманця</translation> </message> <message> <location filename="../bitcoingui.cpp" line="241"/> <source>&amp;Export...</source> <translation>&amp;Експорт...</translation> </message> <message> <location filename="../bitcoingui.cpp" line="242"/> <source>Export the data in the current tab to a file</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoingui.cpp" line="243"/> <source>&amp;Encrypt Wallet</source> <translation>&amp;Шифрування гаманця</translation> </message> <message> <location filename="../bitcoingui.cpp" line="244"/> <source>Encrypt or decrypt wallet</source> <translation>Зашифрувати чи розшифрувати гаманець</translation> </message> <message> <location filename="../bitcoingui.cpp" line="246"/> <source>&amp;Backup Wallet</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoingui.cpp" line="247"/> <source>Backup wallet to another location</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoingui.cpp" line="248"/> <source>&amp;Change Passphrase</source> <translation>Змінити парол&amp;ь</translation> </message> <message> <location filename="../bitcoingui.cpp" line="249"/> <source>Change the passphrase used for wallet encryption</source> <translation>Змінити пароль, який використовується для шифрування гаманця</translation> </message> <message> <location filename="../bitcoingui.cpp" line="272"/> <source>&amp;File</source> <translation>&amp;Файл</translation> </message> <message> <location filename="../bitcoingui.cpp" line="281"/> <source>&amp;Settings</source> <translation>&amp;Налаштування</translation> </message> <message> <location filename="../bitcoingui.cpp" line="287"/> <source>&amp;Help</source> <translation>&amp;Довідка</translation> </message> <message> <location filename="../bitcoingui.cpp" line="294"/> <source>Tabs toolbar</source> <translation>Панель вкладок</translation> </message> <message> <location filename="../bitcoingui.cpp" line="305"/> <source>Actions toolbar</source> <translation>Панель дій</translation> </message> <message> <location filename="../bitcoingui.cpp" line="317"/> <source>[testnet]</source> <translation>[тестова мережа]</translation> </message> <message> <location filename="../bitcoingui.cpp" line="407"/> <source>Negativity-qt</source> <translation>Negativity-qt</translation> </message> <message numerus="yes"> <location filename="../bitcoingui.cpp" line="449"/> <source>%n active connection(s) to Negativity network</source> <translation><numerusform>%n активне з’єднання з мережею</numerusform><numerusform>%n активні з’єднання з мережею</numerusform><numerusform>%n активних з’єднань з мережею</numerusform></translation> </message> <message> <location filename="../bitcoingui.cpp" line="475"/> <source>Downloaded %1 of %2 blocks of transaction history.</source> <translation>Завантажено %1 з %2 блоків історії переказів.</translation> </message> <message> <location filename="../bitcoingui.cpp" line="487"/> <source>Downloaded %1 blocks of transaction history.</source> <translation>Завантажено %1 блоків історії транзакцій.</translation> </message> <message numerus="yes"> <location filename="../bitcoingui.cpp" line="502"/> <source>%n second(s) ago</source> <translation><numerusform>%n секунду тому</numerusform><numerusform>%n секунди тому</numerusform><numerusform>%n секунд тому</numerusform></translation> </message> <message numerus="yes"> <location filename="../bitcoingui.cpp" line="506"/> <source>%n minute(s) ago</source> <translation><numerusform>%n хвилину тому</numerusform><numerusform>%n хвилини тому</numerusform><numerusform>%n хвилин тому</numerusform></translation> </message> <message numerus="yes"> <location filename="../bitcoingui.cpp" line="510"/> <source>%n hour(s) ago</source> <translation><numerusform>%n годину тому</numerusform><numerusform>%n години тому</numerusform><numerusform>%n годин тому</numerusform></translation> </message> <message numerus="yes"> <location filename="../bitcoingui.cpp" line="514"/> <source>%n day(s) ago</source> <translation><numerusform>%n день тому</numerusform><numerusform>%n дня тому</numerusform><numerusform>%n днів тому</numerusform></translation> </message> <message> <location filename="../bitcoingui.cpp" line="520"/> <source>Up to date</source> <translation>Синхронізовано</translation> </message> <message> <location filename="../bitcoingui.cpp" line="525"/> <source>Catching up...</source> <translation>Синхронізується...</translation> </message> <message> <location filename="../bitcoingui.cpp" line="533"/> <source>Last received block was generated %1.</source> <translation>Останній отриманий блок було згенеровано %1.</translation> </message> <message> <location filename="../bitcoingui.cpp" line="597"/> <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 filename="../bitcoingui.cpp" line="602"/> <source>Sending...</source> <translation>Відправлення...</translation> </message> <message> <location filename="../bitcoingui.cpp" line="629"/> <source>Sent transaction</source> <translation>Надіслані перекази</translation> </message> <message> <location filename="../bitcoingui.cpp" line="630"/> <source>Incoming transaction</source> <translation>Отримані перекази</translation> </message> <message> <location filename="../bitcoingui.cpp" line="631"/> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation>Дата: %1 Кількість: %2 Тип: %3 Адреса: %4 </translation> </message> <message> <location filename="../bitcoingui.cpp" line="751"/> <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 filename="../bitcoingui.cpp" line="759"/> <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 filename="../bitcoingui.cpp" line="782"/> <source>Backup Wallet</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoingui.cpp" line="782"/> <source>Wallet Data (*.dat)</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoingui.cpp" line="785"/> <source>Backup Failed</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoingui.cpp" line="785"/> <source>There was an error trying to save the wallet data to the new location.</source> <translation type="unfinished"/> </message> </context> <context> <name>DisplayOptionsPage</name> <message> <location filename="../optionsdialog.cpp" line="270"/> <source>&amp;Unit to show amounts in: </source> <translation>В&amp;имірювати монети в: </translation> </message> <message> <location filename="../optionsdialog.cpp" line="274"/> <source>Choose the default subdivision unit to show in the interface, and when sending coins</source> <translation>Виберіть одиницю вимірювання монет, яка буде відображатись в гаманці та при відправленні.</translation> </message> <message> <location filename="../optionsdialog.cpp" line="281"/> <source>Display addresses in transaction list</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 filename="../forms/editaddressdialog.ui" line="25"/> <source>&amp;Label</source> <translation>&amp;Мітка</translation> </message> <message> <location filename="../forms/editaddressdialog.ui" line="35"/> <source>The label associated with this address book entry</source> <translation>Мітка, пов’язана з цим записом адресної книги</translation> </message> <message> <location filename="../forms/editaddressdialog.ui" line="42"/> <source>&amp;Address</source> <translation>&amp;Адреса</translation> </message> <message> <location filename="../forms/editaddressdialog.ui" line="52"/> <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="20"/> <source>New receiving address</source> <translation>Нова адреса для отримання</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="24"/> <source>New sending address</source> <translation>Нова адреса для відправлення</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="27"/> <source>Edit receiving address</source> <translation>Редагувати адресу для отримання</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="31"/> <source>Edit sending address</source> <translation>Редагувати адресу для відправлення</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="91"/> <source>The entered address &quot;%1&quot; is already in the address book.</source> <translation>Введена адреса «%1» вже присутня в адресній книзі.</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="96"/> <source>The entered address &quot;%1&quot; is not a valid Negativity address.</source> <translation>Введена адреса «%1» не є коректною адресою в мережі Negativity.</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="101"/> <source>Could not unlock wallet.</source> <translation>Неможливо розблокувати гаманець.</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="106"/> <source>New key generation failed.</source> <translation>Не вдалося згенерувати нові ключі.</translation> </message> </context> <context> <name>MainOptionsPage</name> <message> <location filename="../optionsdialog.cpp" line="170"/> <source>&amp;Start Negativity on window system startup</source> <translation>&amp;Запускати гаманець при вході в систему</translation> </message> <message> <location filename="../optionsdialog.cpp" line="171"/> <source>Automatically start Negativity after the computer is turned on</source> <translation>Автоматично запускати гаманець при вмиканні комп’ютера</translation> </message> <message> <location filename="../optionsdialog.cpp" line="175"/> <source>&amp;Minimize to the tray instead of the taskbar</source> <translation>Мінімізувати &amp;у трей</translation> </message> <message> <location filename="../optionsdialog.cpp" line="176"/> <source>Show only a tray icon after minimizing the window</source> <translation>Показувати лише іконку в треї після згортання вікна</translation> </message> <message> <location filename="../optionsdialog.cpp" line="180"/> <source>Map port using &amp;UPnP</source> <translation>Відображення порту через &amp;UPnP</translation> </message> <message> <location filename="../optionsdialog.cpp" line="181"/> <source>Automatically open the Negativity client port on the router. This only works when your router supports UPnP and it is enabled.</source> <translation>Автоматично відкривати порт для клієнту біткоін на роутері. Працює лише якщо ваш роутер підтримує UPnP і ця функція увімкнена.</translation> </message> <message> <location filename="../optionsdialog.cpp" line="185"/> <source>M&amp;inimize on close</source> <translation>Згортати замість закритт&amp;я</translation> </message> <message> <location filename="../optionsdialog.cpp" line="186"/> <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 filename="../optionsdialog.cpp" line="190"/> <source>&amp;Connect through SOCKS4 proxy:</source> <translation>Підключатись через &amp;SOCKS4-проксі:</translation> </message> <message> <location filename="../optionsdialog.cpp" line="191"/> <source>Connect to the Bitcon network through a SOCKS4 proxy (e.g. when connecting through Tor)</source> <translation>Підключатись до мережі Negativity через SOCKS4-проксі (наприклад при використанні Tor) </translation> </message> <message> <location filename="../optionsdialog.cpp" line="196"/> <source>Proxy &amp;IP: </source> <translation>&amp;IP проксі: </translation> </message> <message> <location filename="../optionsdialog.cpp" line="202"/> <source>IP address of the proxy (e.g. 127.0.0.1)</source> <translation>IP-адреса проксі-сервера (наприклад 127.0.0.1)</translation> </message> <message> <location filename="../optionsdialog.cpp" line="205"/> <source>&amp;Port: </source> <translation>&amp;Порт: </translation> </message> <message> <location filename="../optionsdialog.cpp" line="211"/> <source>Port of the proxy (e.g. 1234)</source> <translation>Порт проксі-сервера (наприклад 1234)</translation> </message> <message> <location filename="../optionsdialog.cpp" line="217"/> <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 filename="../optionsdialog.cpp" line="223"/> <source>Pay transaction &amp;fee</source> <translation>Заплатити комісі&amp;ю</translation> </message> <message> <location filename="../optionsdialog.cpp" line="226"/> <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> </context> <context> <name>MessagePage</name> <message> <location filename="../forms/messagepage.ui" line="14"/> <source>Message</source> <translation>Повідомлення</translation> </message> <message> <location filename="../forms/messagepage.ui" line="20"/> <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 filename="../forms/messagepage.ui" line="38"/> <source>The address to send the payment to (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source> <translation>Адреса для отримувача платежу (наприклад, 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation> </message> <message> <location filename="../forms/messagepage.ui" line="48"/> <source>Choose adress from address book</source> <translation>Вибрати адресу з адресної книги</translation> </message> <message> <location filename="../forms/messagepage.ui" line="58"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location filename="../forms/messagepage.ui" line="71"/> <source>Paste address from clipboard</source> <translation>Вставити адресу</translation> </message> <message> <location filename="../forms/messagepage.ui" line="81"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location filename="../forms/messagepage.ui" line="93"/> <source>Enter the message you want to sign here</source> <translation>Введіть повідомлення, яке ви хочете підписати тут</translation> </message> <message> <location filename="../forms/messagepage.ui" line="105"/> <source>Click &quot;Sign Message&quot; to get signature</source> <translation>Натисніть кнопку &quot;Підписати повідомлення&quot;, для отриманя підпису</translation> </message> <message> <location filename="../forms/messagepage.ui" line="117"/> <source>Sign a message to prove you own this address</source> <translation>Підпишіть повідомлення щоб довести, що ви є власником цієї адреси</translation> </message> <message> <location filename="../forms/messagepage.ui" line="120"/> <source>&amp;Sign Message</source> <translation>&amp;Підписати повідомлення</translation> </message> <message> <location filename="../forms/messagepage.ui" line="131"/> <source>Copy the currently selected address to the system clipboard</source> <translation>Копіювати виділену адресу в буфер обміну</translation> </message> <message> <location filename="../forms/messagepage.ui" line="134"/> <source>&amp;Copy to Clipboard</source> <translation>&amp;Копіювати</translation> </message> <message> <location filename="../messagepage.cpp" line="74"/> <location filename="../messagepage.cpp" line="89"/> <location filename="../messagepage.cpp" line="101"/> <source>Error signing</source> <translation>Помилка при підписуванні</translation> </message> <message> <location filename="../messagepage.cpp" line="74"/> <source>%1 is not a valid address.</source> <translation>&quot;%1&quot; не є коректною адресою в мережі Negativity.</translation> </message> <message> <location filename="../messagepage.cpp" line="89"/> <source>Private key for %1 is not available.</source> <translation>Приватний ключ для %1 недоступний.</translation> </message> <message> <location filename="../messagepage.cpp" line="101"/> <source>Sign failed</source> <translation>Не вдалось підписати</translation> </message> </context> <context> <name>OptionsDialog</name> <message> <location filename="../optionsdialog.cpp" line="79"/> <source>Main</source> <translation>Головні</translation> </message> <message> <location filename="../optionsdialog.cpp" line="84"/> <source>Display</source> <translation>Відображення</translation> </message> <message> <location filename="../optionsdialog.cpp" line="104"/> <source>Options</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 filename="../forms/overviewpage.ui" line="40"/> <source>Balance:</source> <translation>Баланс:</translation> </message> <message> <location filename="../forms/overviewpage.ui" line="47"/> <source>123.456 BTC</source> <translation>123.456 BTC</translation> </message> <message> <location filename="../forms/overviewpage.ui" line="54"/> <source>Number of transactions:</source> <translation>Кількість переказів:</translation> </message> <message> <location filename="../forms/overviewpage.ui" line="61"/> <source>0</source> <translation>0</translation> </message> <message> <location filename="../forms/overviewpage.ui" line="68"/> <source>Unconfirmed:</source> <translation>Непідтверджені:</translation> </message> <message> <location filename="../forms/overviewpage.ui" line="75"/> <source>0 BTC</source> <translation>0 BTC</translation> </message> <message> <location filename="../forms/overviewpage.ui" line="82"/> <source>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt; &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt; p, li { white-space: pre-wrap; } &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt; &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Wallet&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <translation>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt; &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt; p, li { white-space: pre-wrap; } &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;Ubuntu&apos;; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt; &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Гаманець&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation> </message> <message> <location filename="../forms/overviewpage.ui" line="122"/> <source>&lt;b&gt;Recent transactions&lt;/b&gt;</source> <translation>&lt;b&gt;Недавні перекази&lt;/b&gt;</translation> </message> <message> <location filename="../overviewpage.cpp" line="103"/> <source>Your current balance</source> <translation>Ваш поточний баланс</translation> </message> <message> <location filename="../overviewpage.cpp" line="108"/> <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 filename="../overviewpage.cpp" line="111"/> <source>Total number of transactions in wallet</source> <translation>Загальна кількість переказів в гаманці</translation> </message> </context> <context> <name>QRCodeDialog</name> <message> <location filename="../forms/qrcodedialog.ui" line="14"/> <source>Dialog</source> <translation>Діалог</translation> </message> <message> <location filename="../forms/qrcodedialog.ui" line="32"/> <source>QR Code</source> <translation>QR-Код</translation> </message> <message> <location filename="../forms/qrcodedialog.ui" line="52"/> <source>Request Payment</source> <translation>Запросити Платіж</translation> </message> <message> <location filename="../forms/qrcodedialog.ui" line="67"/> <source>Amount:</source> <translation>Кількість:</translation> </message> <message> <location filename="../forms/qrcodedialog.ui" line="102"/> <source>BTC</source> <translation>BTC</translation> </message> <message> <location filename="../forms/qrcodedialog.ui" line="118"/> <source>Label:</source> <translation>Мітка:</translation> </message> <message> <location filename="../forms/qrcodedialog.ui" line="141"/> <source>Message:</source> <translation>Повідомлення:</translation> </message> <message> <location filename="../forms/qrcodedialog.ui" line="183"/> <source>&amp;Save As...</source> <translation>&amp;Зберегти як...</translation> </message> <message> <location filename="../qrcodedialog.cpp" line="101"/> <source>Save Image...</source> <translation type="unfinished"/> </message> <message> <location filename="../qrcodedialog.cpp" line="101"/> <source>PNG Images (*.png)</source> <translation type="unfinished"/> </message> </context> <context> <name>SendCoinsDialog</name> <message> <location filename="../forms/sendcoinsdialog.ui" line="14"/> <location filename="../sendcoinsdialog.cpp" line="122"/> <location filename="../sendcoinsdialog.cpp" line="127"/> <location filename="../sendcoinsdialog.cpp" line="132"/> <location filename="../sendcoinsdialog.cpp" line="137"/> <location filename="../sendcoinsdialog.cpp" line="143"/> <location filename="../sendcoinsdialog.cpp" line="148"/> <location filename="../sendcoinsdialog.cpp" line="153"/> <source>Send Coins</source> <translation>Відправити</translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="64"/> <source>Send to multiple recipients at once</source> <translation>Відправити на декілька адрес</translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="67"/> <source>&amp;Add recipient...</source> <translation>Дод&amp;ати одержувача... </translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="84"/> <source>Remove all transaction fields</source> <translation>Видалити всі поля транзакції</translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="87"/> <source>Clear all</source> <translation>Очистити все</translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="106"/> <source>Balance:</source> <translation>Баланс:</translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="113"/> <source>123.456 BTC</source> <translation>123.456 BTC</translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="144"/> <source>Confirm the send action</source> <translation>Підтвердити відправлення</translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="147"/> <source>&amp;Send</source> <translation>&amp;Відправити</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="94"/> <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 filename="../sendcoinsdialog.cpp" line="99"/> <source>Confirm send coins</source> <translation>Підтвердіть відправлення</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="100"/> <source>Are you sure you want to send %1?</source> <translation>Ви впевнені що хочете відправити %1</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="100"/> <source> and </source> <translation> і </translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="123"/> <source>The recepient address is not valid, please recheck.</source> <translation>Адреса отримувача невірна, будьласка перепровірте.</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="128"/> <source>The amount to pay must be larger than 0.</source> <translation>Кількість монет для відправлення повинна бути більшою 0.</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="133"/> <source>Amount exceeds your balance</source> <translation>Кількість монет для відправлення перевищує ваш баланс</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="138"/> <source>Total exceeds your balance when the %1 transaction fee is included</source> <translation>Сума перевищить ваш баланс, якщо комісія %1 буде додана до вашого переказу</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="144"/> <source>Duplicate address found, can only send to each address once in one send operation</source> <translation>Знайдено адресу що дублюється. Відправлення на кожну адресу дозволяється лише один раз на кожну операцію переказу.</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="149"/> <source>Error: Transaction creation failed </source> <translation>Помилка: не вдалося створити переказ </translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="154"/> <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> </context> <context> <name>SendCoinsEntry</name> <message> <location filename="../forms/sendcoinsentry.ui" line="14"/> <source>Form</source> <translation>Форма</translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="29"/> <source>A&amp;mount:</source> <translation>&amp;Кількість:</translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="42"/> <source>Pay &amp;To:</source> <translation>&amp;Отримувач:</translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="66"/> <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 filename="../forms/sendcoinsentry.ui" line="75"/> <source>&amp;Label:</source> <translation>&amp;Мітка:</translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="93"/> <source>The address to send the payment to (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source> <translation>Адреса для отримувача платежу (наприклад, 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="103"/> <source>Choose address from address book</source> <translation>Вибрати адресу з адресної книги</translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="113"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="120"/> <source>Paste address from clipboard</source> <translation>Вставити адресу</translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="130"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="137"/> <source>Remove this recipient</source> <translation>Видалити цього отримувача</translation> </message> <message> <location filename="../sendcoinsentry.cpp" line="25"/> <source>Enter a Negativity address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source> <translation>Введіть адресу Negativity (наприклад 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation> </message> </context> <context> <name>TransactionDesc</name> <message> <location filename="../transactiondesc.cpp" line="18"/> <source>Open for %1 blocks</source> <translation>Відкрити для %1 блоків</translation> </message> <message> <location filename="../transactiondesc.cpp" line="20"/> <source>Open until %1</source> <translation>Відкрити до %1</translation> </message> <message> <location filename="../transactiondesc.cpp" line="26"/> <source>%1/offline?</source> <translation>%1/поза інтернетом?</translation> </message> <message> <location filename="../transactiondesc.cpp" line="28"/> <source>%1/unconfirmed</source> <translation>%1/не підтверджено</translation> </message> <message> <location filename="../transactiondesc.cpp" line="30"/> <source>%1 confirmations</source> <translation>%1 підтверджень</translation> </message> <message> <location filename="../transactiondesc.cpp" line="47"/> <source>&lt;b&gt;Status:&lt;/b&gt; </source> <translation>&lt;b&gt;Статус:&lt;/b&gt;</translation> </message> <message> <location filename="../transactiondesc.cpp" line="52"/> <source>, has not been successfully broadcast yet</source> <translation>, ще не було успішно розіслано</translation> </message> <message> <location filename="../transactiondesc.cpp" line="54"/> <source>, broadcast through %1 node</source> <translation>, розіслано через %1 вузол</translation> </message> <message> <location filename="../transactiondesc.cpp" line="56"/> <source>, broadcast through %1 nodes</source> <translation>, розіслано через %1 вузлів</translation> </message> <message> <location filename="../transactiondesc.cpp" line="60"/> <source>&lt;b&gt;Date:&lt;/b&gt; </source> <translation>&lt;b&gt;Дата:&lt;/b&gt;</translation> </message> <message> <location filename="../transactiondesc.cpp" line="67"/> <source>&lt;b&gt;Source:&lt;/b&gt; Generated&lt;br&gt;</source> <translation>&lt;b&gt;Джерело:&lt;/b&gt; згенеровано&lt;br&gt;</translation> </message> <message> <location filename="../transactiondesc.cpp" line="73"/> <location filename="../transactiondesc.cpp" line="90"/> <source>&lt;b&gt;From:&lt;/b&gt; </source> <translation>&lt;b&gt;Відправник:&lt;/b&gt;</translation> </message> <message> <location filename="../transactiondesc.cpp" line="90"/> <source>unknown</source> <translation>невідомий</translation> </message> <message> <location filename="../transactiondesc.cpp" line="91"/> <location filename="../transactiondesc.cpp" line="114"/> <location filename="../transactiondesc.cpp" line="173"/> <source>&lt;b&gt;To:&lt;/b&gt; </source> <translation>&lt;b&gt;Одержувач:&lt;/b&gt;</translation> </message> <message> <location filename="../transactiondesc.cpp" line="94"/> <source> (yours, label: </source> <translation> (Ваша, мітка: </translation> </message> <message> <location filename="../transactiondesc.cpp" line="96"/> <source> (yours)</source> <translation> (ваша)</translation> </message> <message> <location filename="../transactiondesc.cpp" line="131"/> <location filename="../transactiondesc.cpp" line="145"/> <location filename="../transactiondesc.cpp" line="190"/> <location filename="../transactiondesc.cpp" line="207"/> <source>&lt;b&gt;Credit:&lt;/b&gt; </source> <translation>&lt;b&gt;Кредит:&lt;/b&gt;</translation> </message> <message> <location filename="../transactiondesc.cpp" line="133"/> <source>(%1 matures in %2 more blocks)</source> <translation>(%1 «дозріє» через %2 блоків)</translation> </message> <message> <location filename="../transactiondesc.cpp" line="137"/> <source>(not accepted)</source> <translation>(не прийнято)</translation> </message> <message> <location filename="../transactiondesc.cpp" line="181"/> <location filename="../transactiondesc.cpp" line="189"/> <location filename="../transactiondesc.cpp" line="204"/> <source>&lt;b&gt;Debit:&lt;/b&gt; </source> <translation>&lt;b&gt;Дебет:&lt;/b&gt;</translation> </message> <message> <location filename="../transactiondesc.cpp" line="195"/> <source>&lt;b&gt;Transaction fee:&lt;/b&gt; </source> <translation>&lt;b&gt;Комісія за переказ:&lt;/b&gt;</translation> </message> <message> <location filename="../transactiondesc.cpp" line="211"/> <source>&lt;b&gt;Net amount:&lt;/b&gt; </source> <translation>&lt;b&gt;Загальна сума:&lt;/b&gt; </translation> </message> <message> <location filename="../transactiondesc.cpp" line="217"/> <source>Message:</source> <translation>Повідомлення:</translation> </message> <message> <location filename="../transactiondesc.cpp" line="219"/> <source>Comment:</source> <translation>Коментар:</translation> </message> <message> <location filename="../transactiondesc.cpp" line="221"/> <source>Transaction ID:</source> <translation>ID транзакції:</translation> </message> <message> <location filename="../transactiondesc.cpp" line="224"/> <source>Generated coins must wait 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, it will change to &quot;not accepted&quot; and not be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source> <translation>Після генерації монет, потрібно зачекати 120 блоків, перш ніж їх можна буде використати. Коли ви згенерували цей блок, його було відправлено в мережу для того, щоб він був доданий до ланцюжка блоків. Якщо ця процедура не вдасться, статус буде змінено на «не підтверджено» і ви не зможете потратити згенеровані монету. Таке може статись, якщо хтось інший згенерував блок на декілька секунд раніше.</translation> </message> </context> <context> <name>TransactionDescDialog</name> <message> <location filename="../forms/transactiondescdialog.ui" line="14"/> <source>Transaction details</source> <translation>Деталі переказів</translation> </message> <message> <location filename="../forms/transactiondescdialog.ui" line="20"/> <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="213"/> <source>Date</source> <translation>Дата</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="213"/> <source>Type</source> <translation>Тип</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="213"/> <source>Address</source> <translation>Адреса</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="213"/> <source>Amount</source> <translation>Кількість</translation> </message> <message numerus="yes"> <location filename="../transactiontablemodel.cpp" line="274"/> <source>Open for %n block(s)</source> <translation><numerusform>Відкрити для %n блоку</numerusform><numerusform>Відкрити для %n блоків</numerusform><numerusform>Відкрити для %n блоків</numerusform></translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="277"/> <source>Open until %1</source> <translation>Відкрити до %1</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="280"/> <source>Offline (%1 confirmations)</source> <translation>Поза інтернетом (%1 підтверджень)</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="283"/> <source>Unconfirmed (%1 of %2 confirmations)</source> <translation>Непідтверджено (%1 із %2 підтверджень)</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="286"/> <source>Confirmed (%1 confirmations)</source> <translation>Підтверджено (%1 підтверджень)</translation> </message> <message numerus="yes"> <location filename="../transactiontablemodel.cpp" line="295"/> <source>Mined balance will be available in %n more blocks</source> <translation><numerusform>Добутими монетами можна буде скористатись через %n блок</numerusform><numerusform>Добутими монетами можна буде скористатись через %n блоки</numerusform><numerusform>Добутими монетами можна буде скористатись через %n блоків</numerusform></translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="301"/> <source>This block was not received by any other nodes and will probably not be accepted!</source> <translation>Цей блок не був отриманий жодними іншими вузлами і, ймовірно, не буде прийнятий!</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="304"/> <source>Generated but not accepted</source> <translation>Згенеровано, але не підтверджено</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="347"/> <source>Received with</source> <translation>Отримано</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="349"/> <source>Received from</source> <translation>Отримано від</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="352"/> <source>Sent to</source> <translation>Відправлено</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="354"/> <source>Payment to yourself</source> <translation>Відправлено собі</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="356"/> <source>Mined</source> <translation>Добуто</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="394"/> <source>(n/a)</source> <translation>(недоступно)</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="593"/> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation>Статус переказу. Наведіть вказівник на це поле, щоб показати кількість підтверджень.</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="595"/> <source>Date and time that the transaction was received.</source> <translation>Дата і час, коли переказ було отримано.</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="597"/> <source>Type of transaction.</source> <translation>Тип переказу.</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="599"/> <source>Destination address of transaction.</source> <translation>Адреса отримувача</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="601"/> <source>Amount removed from or added to balance.</source> <translation>Сума, додана чи знята з балансу.</translation> </message> </context> <context> <name>TransactionView</name> <message> <location filename="../transactionview.cpp" line="55"/> <location filename="../transactionview.cpp" line="71"/> <source>All</source> <translation>Всі</translation> </message> <message> <location filename="../transactionview.cpp" line="56"/> <source>Today</source> <translation>Сьогодні</translation> </message> <message> <location filename="../transactionview.cpp" line="57"/> <source>This week</source> <translation>На цьому тижні</translation> </message> <message> <location filename="../transactionview.cpp" line="58"/> <source>This month</source> <translation>На цьому місяці</translation> </message> <message> <location filename="../transactionview.cpp" line="59"/> <source>Last month</source> <translation>Минулого місяця</translation> </message> <message> <location filename="../transactionview.cpp" line="60"/> <source>This year</source> <translation>Цього року</translation> </message> <message> <location filename="../transactionview.cpp" line="61"/> <source>Range...</source> <translation>Проміжок</translation> </message> <message> <location filename="../transactionview.cpp" line="72"/> <source>Received with</source> <translation>Отримані на</translation> </message> <message> <location filename="../transactionview.cpp" line="74"/> <source>Sent to</source> <translation>Відправлені на</translation> </message> <message> <location filename="../transactionview.cpp" line="76"/> <source>To yourself</source> <translation>Відправлені собі</translation> </message> <message> <location filename="../transactionview.cpp" line="77"/> <source>Mined</source> <translation>Добуті</translation> </message> <message> <location filename="../transactionview.cpp" line="78"/> <source>Other</source> <translation>Інше</translation> </message> <message> <location filename="../transactionview.cpp" line="84"/> <source>Enter address or label to search</source> <translation>Введіть адресу чи мітку для пошуку</translation> </message> <message> <location filename="../transactionview.cpp" line="90"/> <source>Min amount</source> <translation>Мінімальна сума</translation> </message> <message> <location filename="../transactionview.cpp" line="124"/> <source>Copy address</source> <translation>Скопіювати адресу</translation> </message> <message> <location filename="../transactionview.cpp" line="125"/> <source>Copy label</source> <translation>Скопіювати мітку</translation> </message> <message> <location filename="../transactionview.cpp" line="126"/> <source>Copy amount</source> <translation>Копіювати кількість</translation> </message> <message> <location filename="../transactionview.cpp" line="127"/> <source>Edit label</source> <translation>Редагувати мітку</translation> </message> <message> <location filename="../transactionview.cpp" line="128"/> <source>Show details...</source> <translation>Показати деталі...</translation> </message> <message> <location filename="../transactionview.cpp" line="268"/> <source>Export Transaction Data</source> <translation>Експортувати дані переказів</translation> </message> <message> <location filename="../transactionview.cpp" line="269"/> <source>Comma separated file (*.csv)</source> <translation>Файли, розділені комою (*.csv)</translation> </message> <message> <location filename="../transactionview.cpp" line="277"/> <source>Confirmed</source> <translation>Підтверджені</translation> </message> <message> <location filename="../transactionview.cpp" line="278"/> <source>Date</source> <translation>Дата</translation> </message> <message> <location filename="../transactionview.cpp" line="279"/> <source>Type</source> <translation>Тип</translation> </message> <message> <location filename="../transactionview.cpp" line="280"/> <source>Label</source> <translation>Мітка</translation> </message> <message> <location filename="../transactionview.cpp" line="281"/> <source>Address</source> <translation>Адреса</translation> </message> <message> <location filename="../transactionview.cpp" line="282"/> <source>Amount</source> <translation>Кількість</translation> </message> <message> <location filename="../transactionview.cpp" line="283"/> <source>ID</source> <translation>Ідентифікатор</translation> </message> <message> <location filename="../transactionview.cpp" line="287"/> <source>Error exporting</source> <translation>Помилка експорту</translation> </message> <message> <location filename="../transactionview.cpp" line="287"/> <source>Could not write to file %1.</source> <translation>Неможливо записати у файл %1</translation> </message> <message> <location filename="../transactionview.cpp" line="382"/> <source>Range:</source> <translation>Діапазон від:</translation> </message> <message> <location filename="../transactionview.cpp" line="390"/> <source>to</source> <translation>до</translation> </message> </context> <context> <name>WalletModel</name> <message> <location filename="../walletmodel.cpp" line="145"/> <source>Sending...</source> <translation>Відправка...</translation> </message> </context> <context> <name>Negativity-core</name> <message> <location filename="../bitcoinstrings.cpp" line="3"/> <source>Negativity version</source> <translation>Версія</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="4"/> <source>Usage:</source> <translation>Вкористання:</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="5"/> <source>Send command to -server or Negativityd</source> <translation>Відправити команду серверу -server чи демону </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="6"/> <source>List commands</source> <translation>Список команд </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="7"/> <source>Get help for a command</source> <translation>Отримати довідку по команді </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="8"/> <source>Options:</source> <translation>Параметри: </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="9"/> <source>Specify configuration file (default: Negativity.conf)</source> <translation>Вкажіть файл конфігурації (за промовчуванням: Negativity.conf) </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="10"/> <source>Specify pid file (default: Negativityd.pid)</source> <translation>Вкажіть pid-файл (за промовчуванням: Negativityd.pid) </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="11"/> <source>Generate coins</source> <translation>Генерувати монети </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="12"/> <source>Don&apos;t generate coins</source> <translation>Не генерувати монети </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="13"/> <source>Start minimized</source> <translation>Запускати згорнутим </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="14"/> <source>Specify data directory</source> <translation>Вкажіть робочий каталог </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="15"/> <source>Specify connection timeout (in milliseconds)</source> <translation>Вкажіть таймаут з’єднання (в мілісекундах) </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="16"/> <source>Connect through socks4 proxy</source> <translation>Підключитись через SOCKS4-проксі </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="17"/> <source>Allow DNS lookups for addnode and connect</source> <translation>Дозволити пошук в DNS для команд «addnode» і «connect» </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="18"/> <source>Listen for connections on &lt;port&gt; (default: 8333 or testnet: 18333)</source> <translation>Чекати на з&apos;єднання на порту (по замовченню 8333 або тестова мережа 18333)</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="19"/> <source>Maintain at most &lt;n&gt; connections to peers (default: 125)</source> <translation>Підтримувати не більше &lt;n&gt; зв&apos;язків з колегами (за замовчуванням: 125)</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="20"/> <source>Add a node to connect to</source> <translation>Додати вузол для підключення </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="21"/> <source>Connect only to the specified node</source> <translation>Підключитись лише до вказаного вузла </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="22"/> <source>Don&apos;t accept connections from outside</source> <translation>Не приймати підключення ззовні </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="23"/> <source>Don&apos;t bootstrap list of peers using DNS</source> <translation>Не завантажувати список пірів за допомогою DNS</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="24"/> <source>Threshold for disconnecting misbehaving peers (default: 100)</source> <translation>Поріг відключення неправильно підєднаних пірів (за замовчуванням: 100)</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="25"/> <source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source> <translation>Максимальній розмір вхідного буферу на одне з&apos;єднання (за замовчуванням 86400)</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="28"/> <source>Maximum per-connection receive buffer, &lt;n&gt;*1000 bytes (default: 10000)</source> <translation>Максимальоий буфер , &lt;n&gt; * 1000 байт (за умовчанням: 10000)</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="29"/> <source>Maximum per-connection send buffer, &lt;n&gt;*1000 bytes (default: 10000)</source> <translation>Максимальній розмір виіхідного буферу на одне з&apos;єднання (за замовчуванням 10000)</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="30"/> <source>Don&apos;t attempt to use UPnP to map the listening port</source> <translation>Не намагатись використовувати UPnP для відображення порту що прослуховується на роутері </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="31"/> <source>Attempt to use UPnP to map the listening port</source> <translation>Намагатись використовувати UPnP для відображення порту що прослуховується на роутері </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="32"/> <source>Fee per kB to add to transactions you send</source> <translation>Комісія за Кб</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="33"/> <source>Accept command line and JSON-RPC commands</source> <translation>Приймати команди із командного рядка та команди JSON-RPC </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="34"/> <source>Run in the background as a daemon and accept commands</source> <translation>Запустити в фоновому режимі (як демон) та приймати команди </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="35"/> <source>Use the test network</source> <translation>Використовувати тестову мережу </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="36"/> <source>Output extra debugging information</source> <translation>Виводити більше налагоджувальної інформації</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="37"/> <source>Prepend debug output with timestamp</source> <translation>Доповнювати налагоджувальний вивід відміткою часу</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="38"/> <source>Send trace/debug info to console instead of debug.log file</source> <translation>Відсилаті налагоджувальну інформацію на консоль, а не у файл debug.log</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="39"/> <source>Send trace/debug info to debugger</source> <translation>Відсилаті налагоджувальну інформацію до налагоджувача</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="40"/> <source>Username for JSON-RPC connections</source> <translation>Ім’я користувача для JSON-RPC-з’єднань </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="41"/> <source>Password for JSON-RPC connections</source> <translation>Пароль для JSON-RPC-з’єднань </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="42"/> <source>Listen for JSON-RPC connections on &lt;port&gt; (default: 8332)</source> <translation>Прослуховувати &lt;port&gt; для JSON-RPC-з’єднань (за промовчуванням: 8332) </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="43"/> <source>Allow JSON-RPC connections from specified IP address</source> <translation>Дозволити JSON-RPC-з’єднання з вказаної IP-адреси </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="44"/> <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 filename="../bitcoinstrings.cpp" line="45"/> <source>Set key pool size to &lt;n&gt; (default: 100)</source> <translation>Встановити розмір пулу ключів &lt;n&gt; (за промовчуванням: 100) </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="46"/> <source>Rescan the block chain for missing wallet transactions</source> <translation>Пересканувати ланцюжок блоків, в пошуку втрачених переказів </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="47"/> <source> SSL options: (see the Negativity Wiki for SSL setup instructions)</source> <translation> Параметри SSL: (див. Negativity Wiki) </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="50"/> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation>Використовувати OpenSSL (https) для JSON-RPC-з’єднань </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="51"/> <source>Server certificate file (default: server.cert)</source> <translation>Сертифікату сервера (за промовчуванням: server.cert) </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="52"/> <source>Server private key (default: server.pem)</source> <translation>Закритий ключ сервера (за промовчуванням: server.pem) </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="53"/> <source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source> <translation>Допустимі шифри (за промовчуванням: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH) </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="56"/> <source>This help message</source> <translation>Дана довідка </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="57"/> <source>Cannot obtain a lock on data directory %s. Negativity is probably already running.</source> <translation>Неможливо встановити блокування на робочий каталог %s. Можливо, гаманець вже запущено.</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="60"/> <source>Loading addresses...</source> <translation>Завантаження адрес...</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="61"/> <source>Error loading addr.dat</source> <translation>Помилка при завантаженні addr.dat</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="63"/> <source>Error loading blkindex.dat</source> <translation>Помилка при завантаженні blkindex.dat </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="65"/> <source>Error loading wallet.dat: Wallet corrupted</source> <translation>Помилка при завантаженні wallet.dat: Гаманець пошкоджено </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="66"/> <source>Error loading wallet.dat: Wallet requires newer version of Negativity</source> <translation>Помилка при завантаженні wallet.dat: Гаманець потребує новішої версії Біткоін-клієнта</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="67"/> <source>Wallet needed to be rewritten: restart Negativity to complete</source> <translation>Потрібно перезаписати гаманець: перезапустіть Біткоін-клієнт для завершення</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="68"/> <source>Error loading wallet.dat</source> <translation>Помилка при завантаженні wallet.dat</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="62"/> <source>Loading block index...</source> <translation>Завантаження індексу блоків...</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="64"/> <source>Loading wallet...</source> <translation>Завантаження гаманця...</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="69"/> <source>Rescanning...</source> <translation>Сканування...</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="70"/> <source>Done loading</source> <translation>Завантаження завершене</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="71"/> <source>Invalid -proxy address</source> <translation>Помилка в адресі проксі-сервера</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="72"/> <source>Invalid amount for -paytxfee=&lt;amount&gt;</source> <translation>Помилка у величині комісії</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="73"/> <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 filename="../bitcoinstrings.cpp" line="76"/> <source>Error: CreateThread(StartNode) failed</source> <translation>Помилка: CreateThread(StartNode) дала збій</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="77"/> <source>Warning: Disk space is low </source> <translation>Увага: На диску мало вільного місця</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="78"/> <source>Unable to bind to port %d on this computer. Negativity is probably already running.</source> <translation>Неможливо прив’язати до порту %d на цьому комп’ютері. Молживо гаманець вже запущено.</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="81"/> <source>Warning: Please check that your computer&apos;s date and time are correct. If your clock is wrong Negativity will not work properly.</source> <translation>Увага: будь ласка, перевірте дату і час на свому комп’ютері. Якщо ваш годинник йде неправильно, Negativity може працювати некоректно.</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="84"/> <source>beta</source> <translation>бета</translation> </message> </context> </TS>
{ "content_hash": "7df0182268ca0bb219d07e8602f15e90", "timestamp": "", "source": "github", "line_count": 2013, "max_line_length": 434, "avg_line_length": 44.24093392945852, "alnum_prop": 0.650628249323467, "repo_name": "linuxmahara/Negativity5-1", "id": "51f4b724b93539e9ce448a6435ee4e0735114611", "size": "99148", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/qt/locale/bitcoin_uk.ts", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "7765" }, { "name": "C++", "bytes": "14513638" }, { "name": "Groff", "bytes": "12841" }, { "name": "Makefile", "bytes": "69485" }, { "name": "NSIS", "bytes": "5970" }, { "name": "Objective-C++", "bytes": "2463" }, { "name": "Python", "bytes": "50532" }, { "name": "QMake", "bytes": "11037" }, { "name": "Shell", "bytes": "1849" } ], "symlink_target": "" }
**Problem**: We love to talk, we are social animals. The problem is that due to lack of trust and/or communication skills, fear, variety and sensitivity of specific topics and other reasons we are unaware of possible situations to have purposeful connection, even with the closest people surrounding us. **Solution**: Cling shows you interesting and trustful people nearby you and will give you attractive topic to talk with that person. You jump directly to purposeful talk. Average person interact during his/her lifetime with around 80000 people. Imagine how many of them could give you opportunity to make your dreams come true if you could talk with them about THE TOPIC which you had in COMMON, but didn´t know. You could have life changing conversations every day. In the train, on the bus stop, café, even in the elevator, because Cling works decentralized without internet, giving you the freedom of data security, not sharing any of your sensitive topics you would like to share with somebody special. Life if full of interesting people. Discover them clinging.
{ "content_hash": "c5ff7204f186d254075e184d7fa7c721", "timestamp": "", "source": "github", "line_count": 19, "max_line_length": 93, "avg_line_length": 57.10526315789474, "alnum_prop": 0.7963133640552995, "repo_name": "clingonline/clingonline.github.io", "id": "0ad9f4dc01ca711c7b9901d323c072c86444ac4e", "size": "1123", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "ether.camp/idea.md", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "16091" }, { "name": "HTML", "bytes": "12848" }, { "name": "JavaScript", "bytes": "5103" } ], "symlink_target": "" }
.GetTypeInfo().IsPublic. ### Affected APIs * `P:System.Type.IsPublic`
{ "content_hash": "5e4e85b83efea928ad457e7aa3878217", "timestamp": "", "source": "github", "line_count": 4, "max_line_length": 26, "avg_line_length": 17.75, "alnum_prop": 0.704225352112676, "repo_name": "twsouthwick/dotnet-apiport", "id": "02eeeb8ebc5df3e754793bda2b196f3924c19448", "size": "94", "binary": false, "copies": "5", "ref": "refs/heads/master", "path": "docs/RecommendedChanges/System/Use GetTypeInfo.IsPublic.md", "mode": "33188", "license": "mit", "language": [ { "name": "Batchfile", "bytes": "286" }, { "name": "C#", "bytes": "942298" }, { "name": "Groovy", "bytes": "2229" }, { "name": "PowerShell", "bytes": "4887" }, { "name": "Shell", "bytes": "3349" } ], "symlink_target": "" }
import {SignalRef} from 'vega'; import {Field} from '../src/channeldef'; import {buildModel} from '../src/compile/buildmodel'; import {ConcatModel} from '../src/compile/concat'; import {FacetModel} from '../src/compile/facet'; import {LayerModel} from '../src/compile/layer'; import {Model} from '../src/compile/model'; import {parseScales} from '../src/compile/scale/parse'; import {UnitModel} from '../src/compile/unit'; import {initConfig} from '../src/config'; import {normalize} from '../src/normalize'; import { GenericLayerSpec, isLayerSpec, isUnitSpec, NormalizedConcatSpec, NormalizedFacetSpec, NormalizedLayerSpec, NormalizedUnitSpec, TopLevel, TopLevelSpec } from '../src/spec'; import {BaseSpec, FrameMixins} from '../src/spec/base'; import {FacetedUnitSpec} from '../src/spec/unit'; import {contains} from '../src/util'; export type TopLevelNormalizedUnitSpecForTest = TopLevel<NormalizedUnitSpec> & FrameMixins<SignalRef>; export function parseModel(inputSpec: TopLevelSpec): Model { const config = initConfig(inputSpec.config); const spec = normalize(inputSpec, config); return buildModel(spec, null, '', undefined, config); } export function parseModelWithScale(inputSpec: TopLevelSpec): Model { const model = parseModel(inputSpec); model.parseScale(); return model; } export function parseUnitModel(spec: TopLevelNormalizedUnitSpecForTest) { return new UnitModel(spec, null, '', undefined, initConfig(spec.config)); } export function parseUnitModelWithScale(spec: TopLevelNormalizedUnitSpecForTest) { const model = parseUnitModel(spec); model.parseScale(); return model; } export function parseUnitModelWithScaleAndSelection(spec: TopLevelNormalizedUnitSpecForTest) { const model = parseUnitModel(spec); model.parseScale(); model.parseSelections(); return model; } export function parseUnitModelWithScaleExceptRange(spec: TopLevelNormalizedUnitSpecForTest) { const model = parseUnitModel(spec); parseScales(model, {ignoreRange: true}); return model; } export function parseUnitModelWithScaleAndLayoutSize(spec: TopLevelNormalizedUnitSpecForTest) { const model = parseUnitModelWithScale(spec); model.parseLayoutSize(); return model; } export function parseModelWithScaleAndLayoutSize(spec: TopLevelSpec) { const model = parseModelWithScale(spec); model.parseLayoutSize(); return model; } export function parseLayerModel(spec: TopLevel<NormalizedLayerSpec>) { return new LayerModel(spec, null, '', undefined, initConfig(spec.config)); } export function parseFacetModel(spec: TopLevel<NormalizedFacetSpec>) { return new FacetModel(spec, null, '', initConfig(spec.config)); } export function parseFacetModelWithScale(spec: TopLevel<NormalizedFacetSpec>) { const model = parseFacetModel(spec); model.parseScale(); return model; } export function parseConcatModel(spec: TopLevel<NormalizedConcatSpec>) { return new ConcatModel(spec, null, '', initConfig(spec.config)); } export function assertIsUnitSpec(spec: BaseSpec): asserts spec is FacetedUnitSpec<Field> | NormalizedUnitSpec { if (!isUnitSpec(spec)) { throw new Error('Spec is not a unit spec!'); } } export function assertIsLayerSpec(spec: BaseSpec): asserts spec is GenericLayerSpec<any> { if (!isLayerSpec(spec)) { throw new Error('Spec is not a layer spec!'); } } /** Returns the array without the elements in excludedItems */ export function without<T>(array: readonly T[], excludedItems: readonly T[]) { return array.filter(item => !contains(excludedItems, item)); } export function range(start: number, stop: number, step: number) { return Array.from({length: (stop - start) / step}, (_, i) => start + step * i); }
{ "content_hash": "f4d65f6030f314f8da3a05666f3805c2", "timestamp": "", "source": "github", "line_count": 113, "max_line_length": 111, "avg_line_length": 32.76106194690266, "alnum_prop": 0.7525661804430038, "repo_name": "vega/vega-lite", "id": "884c3aa8bc748016d8fc5c5f3f8eac47ff8a2782", "size": "3702", "binary": false, "copies": "1", "ref": "refs/heads/next", "path": "test/util.ts", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "CSS", "bytes": "13726" }, { "name": "HTML", "bytes": "21146" }, { "name": "JavaScript", "bytes": "21018" }, { "name": "Ruby", "bytes": "98" }, { "name": "Shell", "bytes": "10560" }, { "name": "TypeScript", "bytes": "2074775" } ], "symlink_target": "" }
from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('delivery', '0074_auto_20160818_2211'), ] operations = [ migrations.AlterField( model_name='message', name='subject', field=models.ForeignKey(verbose_name='\u0423\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 subject', blank=True, to='delivery.Subject', null=True), ), migrations.AlterField( model_name='message', name='subject_str', field=models.CharField(max_length=256, null=True, verbose_name='\u0421\u0442\u0440\u043e\u043a\u0430 subject', blank=True), ), ]
{ "content_hash": "b0f67f8f6a0371383db52520f8827b98", "timestamp": "", "source": "github", "line_count": 23, "max_line_length": 174, "avg_line_length": 32.56521739130435, "alnum_prop": 0.6275033377837116, "repo_name": "AlexStarov/Shop", "id": "bb64aba2dc2b4b0fe7713268f8fab7a1e0d70b65", "size": "773", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "applications/delivery/migrations/0075_auto_20160818_2228.py", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "268281" }, { "name": "HTML", "bytes": "138853" }, { "name": "JavaScript", "bytes": "10629133" }, { "name": "PHP", "bytes": "14" }, { "name": "Python", "bytes": "1532862" }, { "name": "Shell", "bytes": "2089" } ], "symlink_target": "" }
<?php function _trim($str, $charlist = null) { if ($charlist === null) return trim($str); return UTF8::ltrim(UTF8::rtrim($str, $charlist), $charlist); }
{ "content_hash": "40197b1076cdd883ffdb8bd2b3a32fa2", "timestamp": "", "source": "github", "line_count": 10, "max_line_length": 64, "avg_line_length": 17.2, "alnum_prop": 0.5813953488372093, "repo_name": "kilofox/bootphp", "id": "470593048fee6f0bd836642155d6b21e361ec1c4", "size": "393", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "vendor/kilofox/bootphp/utf8/trim.php", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "30782" }, { "name": "Hack", "bytes": "31074" }, { "name": "JavaScript", "bytes": "32719" }, { "name": "PHP", "bytes": "82548" } ], "symlink_target": "" }
<?php namespace Drupal\family_organization_permissions\Plugin\Menu; use Drupal\Core\Menu\MenuLinkDefault; class FamilyOrganizationLinkContent extends MenuLinkDefault { }
{ "content_hash": "747cf8b5561606d74f1079d304ccbddf", "timestamp": "", "source": "github", "line_count": 8, "max_line_length": 61, "avg_line_length": 21.625, "alnum_prop": 0.838150289017341, "repo_name": "plainlychrist/site-buildbarbuda", "id": "7d12a65703f2217904156c9b1e05ff0ca1889e41", "size": "173", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "filesystem/var/www/html/sites/all/modules/family_organization_permissions/src/Plugin/Menu/FamilyOrganizationLinkContent.php", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "46047" }, { "name": "HTML", "bytes": "36995" }, { "name": "PHP", "bytes": "29755" }, { "name": "Ruby", "bytes": "63696" }, { "name": "Shell", "bytes": "31452" }, { "name": "Vim script", "bytes": "490" } ], "symlink_target": "" }
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Threading; using System.Threading.Tasks; using Gherkin.Ast; using SpecFlow.xUnitAdapter.SpecFlowPlugin.Runners; using Xunit; using Xunit.Abstractions; using Xunit.Sdk; namespace SpecFlow.xUnitAdapter.SpecFlowPlugin.TestArtifacts { public class ScenarioTestCase : LongLivedMarshalByRefObject, ITestMethod, IXunitTestCase, IReflectionMethodInfo { public SpecFlowFeatureTestClass FeatureTestClass { get; private set; } public SpecFlowFeatureTypeInfo FeatureTypeInfo => FeatureTestClass.FeatureTypeInfo; public string Name { get; private set; } public string DisplayName => GetDisplayName(); public string UniqueID => $"{FeatureTypeInfo.RelativePath};{Name};{ExampleId}"; public ISourceInformation SourceInformation { get; set; } public string SkipReason { get; set; } public Dictionary<string, List<string>> Traits { get; set; } public Dictionary<string,string> ScenarioOutlineParameters { get; set; } public string ExampleId { get; set; } public bool IsScenarioOutline => !string.IsNullOrEmpty(ExampleId); object[] ITestCase.TestMethodArguments => ScenarioOutlineParameters?.Cast<object>().ToArray(); public ITestClass TestClass => FeatureTestClass; public ITestMethod TestMethod => this; public IMethodInfo Method => this; public ScenarioTestCase() { Traits = new Dictionary<string, List<string>>(); } private ScenarioTestCase(SpecFlowFeatureTestClass featureTestClass, ScenarioDefinition scenario, string[] featureTags, Location location) { FeatureTestClass = featureTestClass; Name = scenario.Name; SourceInformation = new SourceInformation { FileName = FeatureTypeInfo.FeatureFilePath, LineNumber = location?.Line }; Traits = new Dictionary<string, List<string>>(); Traits.Add("Category", featureTags.Concat(((IHasTags)scenario).Tags.GetTags()).ToList()); } public ScenarioTestCase(SpecFlowFeatureTestClass featureTestClass, Scenario scenario, string[] featureTags) : this(featureTestClass, scenario, featureTags, scenario.Location) { } public ScenarioTestCase(SpecFlowFeatureTestClass featureTestClass, ScenarioOutline scenario, string[] featureTags, Dictionary<string, string> scenarioOutlineParameters, string exampleId, Location exampleLocation) : this(featureTestClass, scenario, featureTags, exampleLocation) { ScenarioOutlineParameters = scenarioOutlineParameters; ExampleId = exampleId; } private string GetDisplayName() { if (ScenarioOutlineParameters != null) { return $"{Name} ({string.Join(", ", ScenarioOutlineParameters.Select(p => $"{p.Key}: {p.Value}"))})"; } return Name; } public void Deserialize(IXunitSerializationInfo data) { FeatureTestClass = data.GetValue<SpecFlowFeatureTestClass>("FeatureTestClass"); Name = data.GetValue<string>("Name"); ExampleId = data.GetValue<string>("ExampleId"); } public void Serialize(IXunitSerializationInfo data) { data.AddValue("FeatureTestClass", FeatureTestClass); data.AddValue("Name", Name); data.AddValue("ExampleId", ExampleId); } public virtual Task<RunSummary> RunAsync(IMessageSink diagnosticMessageSink, IMessageBus messageBus, object[] constructorArguments, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource) { var testOutputHelper = constructorArguments.OfType<TestOutputHelper>().FirstOrDefault(); return new ScenarioTestCaseRunner(this, messageBus, aggregator, cancellationTokenSource, testOutputHelper).RunAsync(); } #region IMethodInfo default implementation bool IMethodInfo.IsAbstract => false; bool IMethodInfo.IsGenericMethodDefinition => false; bool IMethodInfo.IsPublic => true; bool IMethodInfo.IsStatic => false; ITypeInfo IMethodInfo.ReturnType => null; ITypeInfo IMethodInfo.Type => TestClass.Class; IEnumerable<IAttributeInfo> IMethodInfo.GetCustomAttributes(string assemblyQualifiedAttributeTypeName) => Enumerable.Empty<IAttributeInfo>(); IEnumerable<ITypeInfo> IMethodInfo.GetGenericArguments() => Enumerable.Empty<ITypeInfo>(); IEnumerable<IParameterInfo> IMethodInfo.GetParameters() => Enumerable.Empty<IParameterInfo>(); IMethodInfo IMethodInfo.MakeGenericMethod(params ITypeInfo[] typeArguments) { throw new NotSupportedException("ScenarioTestCase.MakeGenericMethod"); } MethodInfo IReflectionMethodInfo.MethodInfo { get { throw new NotSupportedException("MethodInfo is not available for scenarios"); } } #endregion } }
{ "content_hash": "75f7810e0d0fc81114d525a8adf2435c", "timestamp": "", "source": "github", "line_count": 113, "max_line_length": 221, "avg_line_length": 46.849557522123895, "alnum_prop": 0.668870419342652, "repo_name": "gasparnagy/SpecFlow.xUnitAdapter", "id": "0fce7333d0505278ee0fbbd1a6dbcb53b350f4b2", "size": "5296", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/SpecFlow.xUnitAdapter.SpecFlowPlugin/TestArtifacts/ScenarioTestCase.cs", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "910" }, { "name": "C#", "bytes": "51291" }, { "name": "Gherkin", "bytes": "2057" }, { "name": "Smalltalk", "bytes": "532" } ], "symlink_target": "" }
export function validateBoard(board) { for (let row = 0; row < 9; row++) { for (let col = 0; col < 9; col++) { if (board[row][col] !== 0 && !validateCell(row, col, board)) { return false; } } } return true; } export function validateCell(row, col, board) { return ( validateCellValue(row, col, board) && validateCellInRow(row, col, board) && validateCellInColumn(row, col, board) && validateCellInSector(row, col, board) ); } export function isEmpty(errorCells) { return !errorCells.filter(row => row.filter(cell => cell).length >= 1).length >= 1; } function validateCellValue(row, col, board) { return board[row][col] >= 1 && board[row][col] <= 9 && Number.isInteger(board[row][col]); } function validateCellInRow(row, col, board) { return board[row].filter(element => element === board[row][col]).length <= 1; } function validateCellInColumn(row, col, board) { return validateCellInRow(col, row, transpose(board)); } function validateCellInSector(row, col, board) { let rowBase = Math.floor(row / 3) * 3; let colBase = Math.floor(col / 3) * 3; for (let r = rowBase; r < rowBase + 3; r++) { for (let c = colBase; c < colBase + 3; c++) { if (r !== row && c !== col && board[r][c] === board[row][col]) { return false; } } } return true; } function transpose(matrix) { return matrix[0].map(function(col, index) { return matrix.map(function(row) { return row[index]; }); }); }
{ "content_hash": "b5537f566b680a032e716ef5206b8f69", "timestamp": "", "source": "github", "line_count": 57, "max_line_length": 93, "avg_line_length": 28.385964912280702, "alnum_prop": 0.5642768850432633, "repo_name": "JPStrydom/Sudoku-AI", "id": "2a7a9fca46b37fc4bf1c0446a1db9a28e062d3ab", "size": "1618", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/components/sudoku-board/utilities/sudoku-board-validator.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "5124" }, { "name": "HTML", "bytes": "412" }, { "name": "JavaScript", "bytes": "55576" } ], "symlink_target": "" }
package org.hibernate.validator.metadata.aggregated; import java.lang.annotation.Annotation; import java.util.Set; import org.hibernate.validator.metadata.core.ConstraintHelper; import org.hibernate.validator.metadata.core.ConstraintOrigin; import org.hibernate.validator.metadata.core.MetaConstraint; import org.hibernate.validator.metadata.descriptor.ConstraintDescriptorImpl; import org.hibernate.validator.metadata.raw.ConstrainedElement; import static org.hibernate.validator.util.CollectionHelper.newHashSet; /** * Builds {@link ConstraintMetaData} instances for the * {@link ConstrainedElement} objects representing one method or property in a * type's inheritance hierarchy. * * @author Gunnar Morling */ public abstract class MetaDataBuilder { protected final ConstraintHelper constraintHelper; protected MetaDataBuilder(ConstraintHelper constraintHelper) { this.constraintHelper = constraintHelper; } /** * Whether this builder allows to add the given element or not. This is the * case if the specified element relates to the same property or method with * which this builder was instantiated. * * @param constrainedElement The element to check. * * @return <code>true</code> if the given element can be added to this * builder, <code>false</code> otherwise. */ public abstract boolean accepts(ConstrainedElement constrainedElement); /** * Adds the given element to this builder. It must be checked with * {@link #accepts(ConstrainedElement)} before, whether this is allowed or * not. * * @param constrainedElement The element to add. */ public abstract void add(ConstrainedElement constrainedElement); /** * Creates a new, read-only {@link ConstraintMetaData} object with all * constraint information related to the method or property represented by * this builder. * * @return A {@link ConstraintMetaData} object. */ public abstract ConstraintMetaData build(); /** * Adapts the given constraints to the given bean type. In case a constraint * is defined locally at the bean class the original constraint will be * returned without any modifications. If a constraint is defined in the * hierarchy (interface or super class) a new constraint will be returned * with an origin of {@link org.hibernate.validator.metadata.core.ConstraintOrigin#DEFINED_IN_HIERARCHY}. If a * constraint is defined on an interface, the interface type will * additionally be part of the constraint's groups (implicit grouping). * * @param beanClass The bean type to which the constraint shall be adapted. * @param constraints The constraints that shall be adapted. The constraints themselves * will not be altered. * * @return A constraint adapted to the given bean type. */ protected Set<MetaConstraint<?>> adaptOriginsAndImplicitGroups(Class<?> beanClass, Set<MetaConstraint<?>> constraints) { Set<MetaConstraint<?>> adaptedConstraints = newHashSet(); for ( MetaConstraint<?> oneConstraint : constraints ) { adaptedConstraints.add( adaptOriginAndImplicitGroup( beanClass, oneConstraint ) ); } return adaptedConstraints; } private <A extends Annotation> MetaConstraint<A> adaptOriginAndImplicitGroup( Class<?> beanClass, MetaConstraint<A> constraint) { ConstraintOrigin definedIn = definedIn( beanClass, constraint.getLocation().getBeanClass() ); if ( definedIn == ConstraintOrigin.DEFINED_LOCALLY ) { return constraint; } Class<?> constraintClass = constraint.getLocation().getBeanClass(); ConstraintDescriptorImpl<A> descriptor = new ConstraintDescriptorImpl<A>( constraint.getDescriptor().getAnnotation(), constraintHelper, constraintClass.isInterface() ? constraintClass : null, constraint.getElementType(), definedIn ); return new MetaConstraint<A>( descriptor, constraint.getLocation() ); } /** * @param rootClass The root class. That is the class for which we currently * create a {@code BeanMetaData} * @param hierarchyClass The class on which the current constraint is defined on * * @return Returns {@code ConstraintOrigin.DEFINED_LOCALLY} if the * constraint was defined on the root bean, * {@code ConstraintOrigin.DEFINED_IN_HIERARCHY} otherwise. */ private ConstraintOrigin definedIn(Class<?> rootClass, Class<?> hierarchyClass) { if ( hierarchyClass.equals( rootClass ) ) { return ConstraintOrigin.DEFINED_LOCALLY; } else { return ConstraintOrigin.DEFINED_IN_HIERARCHY; } } }
{ "content_hash": "730fe5aad1312308d040bddad99f3b31", "timestamp": "", "source": "github", "line_count": 131, "max_line_length": 111, "avg_line_length": 34.70992366412214, "alnum_prop": 0.7475258412139872, "repo_name": "gastaldi/hibernate-validator", "id": "5ed63fc0f83edc2725f78f1962249fc1dba45ae7", "size": "5344", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "hibernate-validator/src/main/java/org/hibernate/validator/metadata/aggregated/MetaDataBuilder.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "1688385" }, { "name": "Shell", "bytes": "3418" } ], "symlink_target": "" }
package com.ericharlow.DragNDrop; import android.content.Context; import android.graphics.Bitmap; import android.graphics.PixelFormat; import android.util.AttributeSet; import android.view.GestureDetector; import android.view.Gravity; import android.view.MotionEvent; import android.view.View; import android.view.WindowManager; import android.widget.ImageView; import android.widget.ListView; public class DragNDropListView extends ListView { boolean mDragMode; int mStartPosition; int mEndPosition; int mDragPointOffset; //Used to adjust drag view location //Used to recognize a click. private final float SCROLL_THRESHOLD = 10; private boolean isOnClick; ImageView mDragView; GestureDetector mGestureDetector; DropListener mDropListener; RemoveListener mRemoveListener; DragListener mDragListener; public DragNDropListView(Context context, AttributeSet attrs) { super(context, attrs); } public void setDropListener(DropListener l) { mDropListener = l; } public void setRemoveListener(RemoveListener l) { mRemoveListener = l; } public void setDragListener(DragListener l) { mDragListener = l; } @Override public boolean onTouchEvent(MotionEvent ev) { final int action = ev.getAction(); final int x = (int) ev.getX(); final int y = (int) ev.getY(); if (action == MotionEvent.ACTION_DOWN && x < this.getWidth()/4) { mDragMode = true; } if (!mDragMode) { return super.onTouchEvent(ev); } switch (action) { case MotionEvent.ACTION_DOWN: mStartPosition = pointToPosition(x,y); if (mStartPosition != INVALID_POSITION) { int mItemPosition = mStartPosition - getFirstVisiblePosition(); mDragPointOffset = y - getChildAt(mItemPosition).getTop(); mDragPointOffset -= ((int)ev.getRawY()) - y; startDrag(mItemPosition,y); drag(0,y);// replace 0 with x if desired isOnClick = true; } break; case MotionEvent.ACTION_MOVE: if (isOnClick && (Math.abs(x - ev.getX()) > SCROLL_THRESHOLD || Math.abs(y - ev.getY()) > SCROLL_THRESHOLD)) { isOnClick = false; } drag(0,y);// replace 0 with x if desired break; case MotionEvent.ACTION_CANCEL: case MotionEvent.ACTION_UP: if (isOnClick) { mDragMode = false; mEndPosition = pointToPosition(x,y); stopDrag(mStartPosition - getFirstVisiblePosition()); if (mDropListener != null && mStartPosition != INVALID_POSITION && mEndPosition != INVALID_POSITION) { mDropListener.onDrop(mStartPosition, mEndPosition); } return super.onTouchEvent(ev); } default: mDragMode = false; mEndPosition = pointToPosition(x,y); stopDrag(mStartPosition - getFirstVisiblePosition()); if (mDropListener != null && mStartPosition != INVALID_POSITION && mEndPosition != INVALID_POSITION) { mDropListener.onDrop(mStartPosition, mEndPosition); } break; } return true; } // move the drag view private void drag(int x, int y) { if (mDragView != null) { WindowManager.LayoutParams layoutParams = (WindowManager.LayoutParams) mDragView.getLayoutParams(); layoutParams.x = x; layoutParams.y = y - mDragPointOffset; WindowManager mWindowManager = (WindowManager) getContext() .getSystemService(Context.WINDOW_SERVICE); mWindowManager.updateViewLayout(mDragView, layoutParams); if (mDragListener != null) { mDragListener.onDrag(x, y, null);// change null to "this" when ready to use } } } // enable the drag view for dragging private void startDrag(int itemIndex, int y) { stopDrag(itemIndex); View item = getChildAt(itemIndex); if (item == null) { return; } item.setDrawingCacheEnabled(true); if (mDragListener != null) { mDragListener.onStartDrag(item); } // Create a copy of the drawing cache so that it does not get recycled // by the framework when the list tries to clean up memory Bitmap bitmap = Bitmap.createBitmap(item.getDrawingCache()); WindowManager.LayoutParams mWindowParams = new WindowManager.LayoutParams(); mWindowParams.gravity = Gravity.TOP; mWindowParams.x = 0; mWindowParams.y = y - mDragPointOffset; mWindowParams.height = WindowManager.LayoutParams.WRAP_CONTENT; mWindowParams.width = WindowManager.LayoutParams.WRAP_CONTENT; mWindowParams.flags = WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON | WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN | WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS; mWindowParams.format = PixelFormat.TRANSLUCENT; mWindowParams.windowAnimations = 0; Context context = getContext(); ImageView v = new ImageView(context); v.setImageBitmap(bitmap); WindowManager mWindowManager = (WindowManager)context.getSystemService(Context.WINDOW_SERVICE); mWindowManager.addView(v, mWindowParams); mDragView = v; } // destroy drag view private void stopDrag(int itemIndex) { if (mDragView != null) { if (mDragListener != null) { mDragListener.onStopDrag(getChildAt(itemIndex)); } mDragView.setVisibility(GONE); WindowManager wm = (WindowManager)getContext().getSystemService(Context.WINDOW_SERVICE); wm.removeView(mDragView); mDragView.setImageDrawable(null); mDragView = null; } } }
{ "content_hash": "2e7f40f8d3a98339968d140c14f649a8", "timestamp": "", "source": "github", "line_count": 179, "max_line_length": 119, "avg_line_length": 33.12290502793296, "alnum_prop": 0.6493506493506493, "repo_name": "ryosua/SpeechWriter", "id": "931969107646062c90c65cbfe021e631a88dba5a", "size": "6582", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/src/main/java/com/ericharlow/DragNDrop/DragNDropListView.java", "mode": "33261", "license": "mit", "language": [ { "name": "Java", "bytes": "118153" } ], "symlink_target": "" }
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Person Listeners</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" integrity="sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ==" crossorigin="anonymous"> <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.4.min.js"></script> <script type="text/javascript"> var wsocket; var isConnected=false; function openWebSocket() { var wsurl = "ws://localhost:9292/newPersonEvent"; wsocket = new WebSocket(wsurl); isConnected=true; wsocket.onmessage = function(evt) { var person = JSON.parse(evt.data); console.log("onMessage: " + person); addPersonToTable(person); } wsocket.onerror = function(evt) { console.error(evt); alert("Failed to connect to " + wsurl + ". Are you sure that the server has started yet?"); isConnected=false; } waitForSocketConnection(wsocket, function() { console.log("WebSocket connected!"); $("#connectButton").text("Disconnect"); $("#personTable").removeClass("hidden"); isConnected=true; }); } function toogleConnect() { if(isConnected) { wsocket.close(); $("#connectButton").text("Connect"); $("#personTable").addClass("hidden"); isConnected=false; clearPersonTable(); } else { openWebSocket(); } } function addPersonToTable(person) { $('#personTable > tbody:last-child') .append($("<tr>") .append($("<td>") .append(person.id) ) .append($("<td>") .append(person.firstName + " " + person.lastName) ) .append($("<td>") .append(person.age) ) ); } function clearPersonTable() { $('#personTable > tbody').empty(); } function waitForSocketConnection(socket, callback) { setTimeout(function() { if (socket.readyState === 1) { if (callback !== undefined) { callback(); } return; } else { waitForSocketConnection(socket, callback); } }, 5); }; </script> </head> <body style="margin: 20px"> <h1>Camel-jbossdatagrid example</h1> <p>This example uses websockets to listen to events from the JBoss Data Grid via JBoss Fuse. When connected a table will appear below that is populated with events from the Data Grid (via websockets)</p> <p>Persons are added by providing a CSV file that will be processed by JBoss Fuse</p> <p>How to add persons via command line in a *NIX platform:</p> <p> <code>$ echo "99,Diego,Maradona,75" > $incomingFolderPath/sample.csv</code> </p> <p>Or add a list of players in a CSV file like this:</p> <p> <code>$ cp best-footballplayers-2015.csv $incomingFolderPath/</code> </p> <p> <i>Environment varialbe $incomingFolderPath should be set at build time see README.md for more details</i> </p> <button type="button" class="btn btn-default" id="connectButton" onclick="toogleConnect()">Connect</button> <p></p> <table id="personTable" class="table table-striped hidden"> <thead> <tr> <th>ID</th> <th>NAME</th> <th>AGE</th> </thead> <tbody> </tbody> </table> </body> </html>
{ "content_hash": "e82f35466e0a70fe6ecc0fc94bda31a2", "timestamp": "", "source": "github", "line_count": 125, "max_line_length": 108, "avg_line_length": 26.608, "alnum_prop": 0.6250751653638004, "repo_name": "jboss-developer/jboss-jdg-quickstarts", "id": "0f4cbbf25ab553a162d4c1b3bcc81e3a83806269", "size": "3326", "binary": false, "copies": "1", "ref": "refs/heads/jdg-7.3.x", "path": "camel-jbossdatagrid-fuse/index.html", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "7641" }, { "name": "C#", "bytes": "21193" }, { "name": "C++", "bytes": "21981" }, { "name": "CMake", "bytes": "966" }, { "name": "CSS", "bytes": "7102" }, { "name": "HTML", "bytes": "60213" }, { "name": "Java", "bytes": "524567" }, { "name": "JavaScript", "bytes": "5763" }, { "name": "Scala", "bytes": "4400" }, { "name": "Shell", "bytes": "66817" } ], "symlink_target": "" }
function main_feature(G,pid, sid,INDIR,OUTDIR,MODEL) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Copyright 2014 University of Memphis % % Licensed under the Apache License, Version 2.0 (the "License"); % you may not use this file except in compliance with the License. % You may obtain a copy of the License at % % http://www.apache.org/licenses/LICENSE-2.0 % % Unless required by applicable law or agreed to in writing, software % distributed under the License is distributed on an "AS IS" BASIS, % WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. % See the License for the specific language governing permissions and % limitations under the License. %% fprintf('%-6s %-6s %-20s Task (',pid,sid,'main_feature'); indir=[G.DIR.DATA G.DIR.SEP INDIR]; infile=[MODEL.STUDYTYPE '_' pid '_' sid '_' MODEL.NAME '_' G.FILE.WINDOW_MATNAME]; outdir=[G.DIR.DATA G.DIR.SEP OUTDIR]; outfile=[MODEL.STUDYTYPE '_' pid '_' sid '_' MODEL.NAME '_' G.FILE.FEATURE_MATNAME]; load ([indir G.DIR.SEP infile]); if G.RUN.FEATURE.LOADDATA==1 & exist([outdir G.DIR.SEP outfile],'file')==2 load([outdir G.DIR.SEP outfile]); else F=W; end F.NAME=['FEATURE[' G.STUDYNAME ' ' pid ' ' sid ']']; for i=MODEL.SENSORLIST if i==G.SENSOR.R_ACLXID F.FEATURE{G.FEATURE.R_ACLID}.FEATURENAME=G.FEATURE.R_ACL; F.FEATURE{G.FEATURE.R_ACLID}.SENSOR='ACL'; F.window=main_feature_accel(G,F.window); elseif i==G.SENSOR.R_ECGID F.FEATURE{G.FEATURE.R_ECGID}.FEATURENAME=G.FEATURE.R_ECG; F.FEATURE{G.FEATURE.R_ECGID}.SENSOR='ECG'; F.window=main_feature_ecg(G,F.window); elseif i==G.SENSOR.R_RIPID F.FEATURE{G.FEATURE.R_RIPID}.FEATURENAME=G.FEATURE.R_RIP; F.FEATURE{G.FEATURE.R_RIPID}.SENSOR='RIP'; F.window=main_feature_rip(G,F.window); end end %{ if ~isempty(find(MODEL.FEATURE_NORM==FEATURE.RIPID,1)) F=normalize_data(F,FEATURE.RIPID,FEATURE.RIP.NORMALIZE,MODEL); end if ~isempty(find(MODEL.FEATURE_NORM==FEATURE.ECGID,1)) F=normalize_data(F,FEATURE.ECGID,FEATURE.ECG.NORMALIZE,MODEL); end if ~isempty(find(MODEL.FEATURE_NORM==FEATURE.CHESTACCELID,1)) F=normalize_data(F,FEATURE.CHESTACCELID,FEATURE.CHESTACCEL.NORMALIZE,MODEL); end if isfield(W.sensor,'label') % F.sensor(1).feature(:,1)=W.label; %F.label(:,LABEL.PUFFNONPUFFIND)=W.label; F.output(:,LABEL.ACTIVITYIND)=W.sensor(SENSOR.R_ACLXID).label(:,LABEL.ACTIVITYIND); end %} if isempty(dir(outdir)) mkdir(outdir); end save([outdir G.DIR.SEP outfile],'F');
{ "content_hash": "10938109aefc45a5ca805b7e47c43f67", "timestamp": "", "source": "github", "line_count": 70, "max_line_length": 87, "avg_line_length": 36.58571428571429, "alnum_prop": 0.6739554861382272, "repo_name": "MD2Korg/memphis-dataprocessingframework", "id": "3f42d15e4f7dd91052f884bee2756d41a9f29e1f", "size": "2561", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "code/feature/main_feature.m", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "44781" }, { "name": "Matlab", "bytes": "1129961" }, { "name": "Python", "bytes": "112970" } ], "symlink_target": "" }
package com.thoughtworks.go.util; import com.thoughtworks.go.agent.ServerUrlGenerator; import com.thoughtworks.go.domain.JobIdentifier; import org.springframework.stereotype.Component; import java.net.URI; import java.net.URISyntaxException; import static java.lang.String.format; @Component public class URLService implements ServerUrlGenerator{ private String baseRemotingURL; public URLService() { String url = new SystemEnvironment().getServiceUrl(); if (url.endsWith("/")) { url = url.substring(0, url.length() - 1); } baseRemotingURL = url; } public URLService(String baseRemotingURL) { this.baseRemotingURL = baseRemotingURL; } public String baseRemoteURL() { return baseRemotingURL; } public String getBuildRepositoryURL() { return baseRemotingURL + "/remoting/remoteBuildRepository"; } public String getAgentRegistrationURL() { return baseRemotingURL + "/admin/agent"; } public String getAgentLatestStatusUrl() { return baseRemotingURL + "/admin/latest-agent.status"; } public String getUploadUrlOfAgent(JobIdentifier jobIdentifier, String filePath) { return getUploadUrlOfAgent(jobIdentifier, filePath, 1); } public String getComponentVersionsOnServerUrl() { return String.format("%s/%s", baseRemotingURL, "admin/component-versions-on-server"); } // TODO - keep buildId for now because currently we do not support 'jobcounter' // and therefore cannot locate job correctly when it is rescheduled public String getUploadUrlOfAgent(JobIdentifier jobIdentifier, String filePath, int attempt) { return format("%s/%s/%s/%s?attempt=%d&buildId=%d", baseRemotingURL, "remoting", "files", jobIdentifier.artifactLocator(filePath), attempt, jobIdentifier.getBuildId()); } /* * Server will use this method, the base url is in the request. */ public String getRestfulArtifactUrl(JobIdentifier jobIdentifier, String filePath) { return format("/%s/%s", "files", jobIdentifier.artifactLocator(filePath)); } public String getUploadBaseUrlOfAgent(JobIdentifier jobIdentifier) { return format("%s/%s/%s/%s", baseRemotingURL, "remoting", "files", jobIdentifier.artifactLocator("")); } /* * Agent will use this method, the baseUrl will be injected from config xml in agent side. * This is used to fix security issues with the agent uploading artifacts when security is enabled. */ public String getPropertiesUrl(JobIdentifier jobIdentifier, String propertyName) { return format("%s/%s/%s/%s", baseRemotingURL, "remoting", "properties", jobIdentifier.propertyLocator(propertyName)); } public String serverUrlFor(String subPath) { return format("%s/%s", baseRemotingURL, subPath); } public String serverSslBaseUrl(int serverHttpsPort) { return baseRemotingURL; } public String getAgentRemoteWebSocketUrl() { return format("%s/%s", getWebSocketBaseUrl(), "agent-websocket"); } public String getWebSocketBaseUrl() { try { URI uri = new URI(baseRemotingURL); StringBuffer ret = new StringBuffer("wss://"); ret.append(uri.getHost()).append(":").append(uri.getPort()); if (uri.getPath() != null) { ret.append(uri.getPath()); } return ret.toString(); } catch (URISyntaxException e) { throw new RuntimeException("Invalid Go Server url", e); } } public String prefixPartialUrl(String url) { if(url.startsWith("/")) { return format("%s%s", baseRemoteURL(), url); } return url; } }
{ "content_hash": "093951f53db590dc065c8ab7abe36e5a", "timestamp": "", "source": "github", "line_count": 113, "max_line_length": 175, "avg_line_length": 33.61946902654867, "alnum_prop": 0.6635956830744932, "repo_name": "VibyJocke/gocd", "id": "7a35ec79a46b08e4c52e08741ac03af6ad8a4b8e", "size": "4545", "binary": false, "copies": "3", "ref": "refs/heads/master", "path": "common/src/com/thoughtworks/go/util/URLService.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "8248" }, { "name": "CSS", "bytes": "502291" }, { "name": "FreeMarker", "bytes": "182" }, { "name": "HTML", "bytes": "647411" }, { "name": "Java", "bytes": "16221590" }, { "name": "JavaScript", "bytes": "2878258" }, { "name": "NSIS", "bytes": "19386" }, { "name": "PowerShell", "bytes": "743" }, { "name": "Ruby", "bytes": "2954955" }, { "name": "SQLPL", "bytes": "9050" }, { "name": "Shell", "bytes": "240291" }, { "name": "XSLT", "bytes": "153049" } ], "symlink_target": "" }
package cloudesl //Licensed under the Apache License, Version 2.0 (the "License"); //you may not use this file except in compliance with the License. //You may obtain a copy of the License at // //http://www.apache.org/licenses/LICENSE-2.0 // //Unless required by applicable law or agreed to in writing, software //distributed under the License is distributed on an "AS IS" BASIS, //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. //See the License for the specific language governing permissions and //limitations under the License. // // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. import ( "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" ) // DescribeBinders invokes the cloudesl.DescribeBinders API synchronously func (client *Client) DescribeBinders(request *DescribeBindersRequest) (response *DescribeBindersResponse, err error) { response = CreateDescribeBindersResponse() err = client.DoAction(request, response) return } // DescribeBindersWithChan invokes the cloudesl.DescribeBinders API asynchronously func (client *Client) DescribeBindersWithChan(request *DescribeBindersRequest) (<-chan *DescribeBindersResponse, <-chan error) { responseChan := make(chan *DescribeBindersResponse, 1) errChan := make(chan error, 1) err := client.AddAsyncTask(func() { defer close(responseChan) defer close(errChan) response, err := client.DescribeBinders(request) if err != nil { errChan <- err } else { responseChan <- response } }) if err != nil { errChan <- err close(responseChan) close(errChan) } return responseChan, errChan } // DescribeBindersWithCallback invokes the cloudesl.DescribeBinders API asynchronously func (client *Client) DescribeBindersWithCallback(request *DescribeBindersRequest, callback func(response *DescribeBindersResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { var response *DescribeBindersResponse var err error defer close(result) response, err = client.DescribeBinders(request) callback(response, err) result <- 1 }) if err != nil { defer close(result) callback(nil, err) result <- 0 } return result } // DescribeBindersRequest is the request struct for api DescribeBinders type DescribeBindersRequest struct { *requests.RpcRequest ExtraParams string `position:"Body" name:"ExtraParams"` StoreId string `position:"Body" name:"StoreId"` PageNumber requests.Integer `position:"Body" name:"PageNumber"` EslBarCode string `position:"Body" name:"EslBarCode"` PageSize requests.Integer `position:"Body" name:"PageSize"` ItemBarCode string `position:"Body" name:"ItemBarCode"` ItemTitle string `position:"Body" name:"ItemTitle"` } // DescribeBindersResponse is the response struct for api DescribeBinders type DescribeBindersResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` Success bool `json:"Success" xml:"Success"` ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` Code string `json:"Code" xml:"Code"` Message string `json:"Message" xml:"Message"` DynamicMessage string `json:"DynamicMessage" xml:"DynamicMessage"` PageNumber int `json:"PageNumber" xml:"PageNumber"` PageSize int `json:"PageSize" xml:"PageSize"` TotalCount int `json:"TotalCount" xml:"TotalCount"` DynamicCode string `json:"DynamicCode" xml:"DynamicCode"` EslItemBindInfos []EslItemBindInfo `json:"EslItemBindInfos" xml:"EslItemBindInfos"` } // CreateDescribeBindersRequest creates a request to invoke DescribeBinders API func CreateDescribeBindersRequest() (request *DescribeBindersRequest) { request = &DescribeBindersRequest{ RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("cloudesl", "2020-02-01", "DescribeBinders", "", "") request.Method = requests.POST return } // CreateDescribeBindersResponse creates a response to parse from DescribeBinders response func CreateDescribeBindersResponse() (response *DescribeBindersResponse) { response = &DescribeBindersResponse{ BaseResponse: &responses.BaseResponse{}, } return }
{ "content_hash": "f303e6cbc28cb3f603b1b1419f90213d", "timestamp": "", "source": "github", "line_count": 116, "max_line_length": 156, "avg_line_length": 39.12068965517241, "alnum_prop": 0.7238871749669458, "repo_name": "aliyun/alibaba-cloud-sdk-go", "id": "283177effc07b6fc0a69b2586333830967d8f368", "size": "4538", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "services/cloudesl/describe_binders.go", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Go", "bytes": "734307" }, { "name": "Makefile", "bytes": "183" } ], "symlink_target": "" }
package com.ghstudios.android.ui.detail; import android.annotation.SuppressLint; import android.graphics.drawable.Drawable; import android.support.v4.app.ListFragment; import android.support.v4.app.LoaderManager.LoaderCallbacks; import android.content.Context; import android.database.Cursor; import android.os.Bundle; import android.app.Fragment; import android.support.v4.content.Loader; import android.support.v4.widget.CursorAdapter; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.RelativeLayout; import android.widget.TextView; import com.ghstudios.android.data.classes.Habitat; import com.ghstudios.android.data.database.MonsterHabitatCursor; import com.ghstudios.android.loader.MonsterHabitatListCursorLoader; import com.ghstudios.android.mhgendatabase.R; import com.ghstudios.android.ui.ClickListeners.LocationClickListener; import java.io.IOException; /** * A simple {@link Fragment} subclass. * Activities that contain this fragment must implement the * {@link MonsterHabitatFragment.OnFragmentInteractionListener} interface * to handle interaction events. * Use the {@link MonsterHabitatFragment#newInstance} factory method to * create an instance of this fragment. */ public class MonsterHabitatFragment extends ListFragment implements LoaderCallbacks<Cursor> { // the fragment initialization parameters, e.g. ARG_ITEM_NUMBER private static final String ARG_MONSTER_ID = "MONSTER_ID"; /** * Use this factory method to create a new instance of * this fragment using the provided parameters. * * @param mon_id The id of the monster for the fragment * * @return A new instance of fragment MonsterHabitatFragment. */ public static MonsterHabitatFragment newInstance(long mon_id) { MonsterHabitatFragment fragment = new MonsterHabitatFragment(); Bundle args = new Bundle(); args.putLong(ARG_MONSTER_ID, mon_id); fragment.setArguments(args); return fragment; } public MonsterHabitatFragment() { // Required empty public constructor } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Initialize the loader to load the list of monsters getLoaderManager().initLoader(0, getArguments(), this); } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment return inflater.inflate(R.layout.fragment_generic_list, container, false); } @SuppressLint("NewApi") @Override public Loader<Cursor> onCreateLoader(int id, Bundle args) { long itemId = args.getLong(ARG_MONSTER_ID, -1); return new MonsterHabitatListCursorLoader(getActivity(), MonsterHabitatListCursorLoader.FROM_MONSTER, itemId); } @Override public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) { // Create an adapter to point at this cursor MonsterHabitatCursorAdapter adapter = new MonsterHabitatCursorAdapter( getActivity(), (MonsterHabitatCursor) cursor); setListAdapter(adapter); } @Override public void onLoaderReset(Loader<Cursor> loader) { // Stop using the cursor (via the adapter) setListAdapter(null); } /*@Override public void onListItemClick(ListView l, View v, int position, long id) { // The id argument will be the Location ID set by adapter Intent i = new Intent(getActivity(), LocationDetailActivity.class); i.putExtra(LocationDetailActivity.EXTRA_LOCATION_ID, (long) v.getTag()); startActivity(i); }*/ private static class MonsterHabitatCursorAdapter extends CursorAdapter { private MonsterHabitatCursor mHabitatCursor; public MonsterHabitatCursorAdapter(Context context, MonsterHabitatCursor cursor) { super(context, cursor, 0); mHabitatCursor = cursor; } @Override public View newView(Context context, Cursor cursor, ViewGroup parent) { // Use a layout inflater to get a row view LayoutInflater inflater = (LayoutInflater) context .getSystemService(Context.LAYOUT_INFLATER_SERVICE); return inflater.inflate(R.layout.fragment_monster_habitat_listitem, parent, false); } @Override public void bindView(View view, Context context, Cursor cursor) { // Get the item for the current row Habitat habitat = mHabitatCursor.getHabitat(); // Set up the text view RelativeLayout itemLayout = (RelativeLayout) view .findViewById(R.id.listitem); ImageView mapView = (ImageView) view.findViewById(R.id.mapImage); TextView mapTextView = (TextView) view.findViewById(R.id.map); TextView startTextView = (TextView) view.findViewById(R.id.start); TextView areaTextView = (TextView) view.findViewById(R.id.move); TextView restTextView = (TextView) view.findViewById(R.id.rest); String mapName = habitat.getLocation().getName(); long start = habitat.getStart(); long[] area = habitat.getAreas(); long rest = habitat.getRest(); String areas = ""; for(int i = 0; i < area.length; i++) { areas += Long.toString(area[i]); if (i != area.length - 1) { areas += ", "; } } mapTextView.setText(mapName); startTextView.setText(Long.toString(start)); areaTextView.setText(areas); restTextView.setText(Long.toString(rest)); Drawable i = null; String cellImage = "icons_location/" + habitat.getLocation().getFileLocationMini(); try { i = Drawable.createFromStream( context.getAssets().open(cellImage), null); } catch (IOException e) { e.printStackTrace(); } mapView.setImageDrawable(i); // Set id of layout to location so clicking gives us the location itemLayout.setTag(habitat.getLocation().getId()); itemLayout.setOnClickListener(new LocationClickListener(context, habitat.getLocation().getId())); } } }
{ "content_hash": "8fef54176d925b2479aa3c0f160b8b6c", "timestamp": "", "source": "github", "line_count": 186, "max_line_length": 82, "avg_line_length": 36.086021505376344, "alnum_prop": 0.6527115613825983, "repo_name": "jaysonthepirate/MHGenDatabase", "id": "742b2d2182de07e435bdde9478a02d4cfb1a2a2d", "size": "6712", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/src/main/java/com/ghstudios/android/ui/detail/MonsterHabitatFragment.java", "mode": "33188", "license": "mit", "language": [ { "name": "Java", "bytes": "1119497" } ], "symlink_target": "" }
/* */ import java.rmi.*; import java.rmi.server.*; import java.rmi.registry.*; public class HelloImpl extends UnicastRemoteObject implements Hello { public static boolean clientCalledSuccessfully = false; public HelloImpl() throws RemoteException { super(0); } public synchronized String sayHello() { HelloImpl.clientCalledSuccessfully = true; System.out.println("hello method called"); this.notifyAll(); return "hello"; } public static void main(String[] args) { /* * The following line is required with the JDK 1.2 VM so that the * VM can exit gracefully when this test completes. Otherwise, the * conservative garbage collector will find a handle to the server * object on the native stack and not clear the weak reference to * it in the RMI runtime's object table. */ Object dummy = new Object(); Hello hello = null; Registry registry = null; TestLibrary.suggestSecurityManager("java.rmi.RMISecurityManager"); try { String protocol = ""; if (args.length >= 1) protocol = args[0]; registry = java.rmi.registry.LocateRegistry. getRegistry("localhost", TestLibrary.REGISTRY_PORT, new Compress.CompressRMIClientSocketFactory()); UseCustomSocketFactory.checkStub(registry, "RMIClientSocket"); hello = (Hello) registry.lookup("/HelloServer"); /* lookup server */ System.err.println(hello.sayHello() + ", remote greeting."); } catch (Exception e) { System.err.println("EXCEPTION OCCURRED:"); e.printStackTrace(); } finally { hello = null; } } }
{ "content_hash": "b7690da0fd7a086d880816fa76ebe87c", "timestamp": "", "source": "github", "line_count": 63, "max_line_length": 75, "avg_line_length": 29.666666666666668, "alnum_prop": 0.5858747993579454, "repo_name": "rokn/Count_Words_2015", "id": "17cc832fcf9e31470d65084345771eb06a87051b", "size": "2925", "binary": false, "copies": "21", "ref": "refs/heads/master", "path": "testing/openjdk/jdk/test/java/rmi/server/RMISocketFactory/useSocketFactory/registry/HelloImpl.java", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "61802" }, { "name": "Ruby", "bytes": "18888605" } ], "symlink_target": "" }
'use strict'; /** * Module dependencies. */ var should = require('should'), mongoose = require('mongoose'), User = mongoose.model('User'), FabricSaleRegister = mongoose.model('FabricSaleRegister'); /** * Globals */ var user, fabricSaleRegister; /** * Unit tests */ describe('Fabric sale register Model Unit Tests:', function() { beforeEach(function(done) { user = new User({ firstName: 'Full', lastName: 'Name', displayName: 'Full Name', email: 'test@test.com', username: 'username', password: 'password' }); user.save(function() { fabricSaleRegister = new FabricSaleRegister({ name: 'Fabric sale register Name', user: user }); done(); }); }); describe('Method Save', function() { it('should be able to save without problems', function(done) { return fabricSaleRegister.save(function(err) { should.not.exist(err); done(); }); }); it('should be able to show an error when try to save without name', function(done) { fabricSaleRegister.name = ''; return fabricSaleRegister.save(function(err) { should.exist(err); done(); }); }); }); afterEach(function(done) { FabricSaleRegister.remove().exec(); User.remove().exec(); done(); }); });
{ "content_hash": "29864b3e9d4ffd4b11bb031d9339b5cf", "timestamp": "", "source": "github", "line_count": 64, "max_line_length": 87, "avg_line_length": 19.484375, "alnum_prop": 0.6343223736968725, "repo_name": "niranjan21/skt", "id": "6e12c79b388d9ae2e343682f6f7532b185c57c3a", "size": "1247", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/tests/fabric-sale-register.server.model.test.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "165624" }, { "name": "HTML", "bytes": "1130994" }, { "name": "JavaScript", "bytes": "1791769" }, { "name": "Shell", "bytes": "414" } ], "symlink_target": "" }
import React, {Component} from 'react'; import { connect } from 'react-redux'; import { Field, reduxForm } from 'redux-form'; import { Link } from 'react-router-dom'; import { registerUser } from './actions' import { toast } from 'react-toastify'; class Register extends Component { constructor(props){ super(props); this.state = { error: false } } renderField(field) { const { meta: {touched, error} } = field; const className = `text-help ${touched && error ? 'has-danger' : ''}` return ( <div className="form-group"> <label className="control-label" htmlFor={field.name}>{field.label}</label> <div className="controls"> <input type={field.inputType} id={field.name} className="form-control" placeholder={field.label} {...field.input} /> </div> <div className={className}> {touched ? error : ''} </div> </div> ); } onSubmit(values){ this.props.registerUser(values, () => { this.props.history.push('/'); }); } greet(){ return <div>Hello {name}</div>; } render() { const { handleSubmit } = this.props; // if(this.props.status.error) { // console.log(this.props.status.error); // return(<div> Error</div>); // } return( <div className="row"> <div className="col-md-12 col-lg-12"> <div className="panel panel-info"> <div className="panel-heading"> <h3 className="panel-title"><strong>Register</strong></h3> </div> <div className="panel-body"> <form className="form-horizontal col-md-8" onSubmit={handleSubmit(this.onSubmit.bind(this))}> <Field label="Username" inputType="text" name="username" inputClassName="glyphicon glyphicon-user" component={this.renderField}> </Field> <Field label="First Name" inputType="text" name="firstName" inputClassName="glyphicon glyphicon-user" component={this.renderField}> </Field> <Field label="Last Name" inputType="text" name="lastName" inputClassName="glyphicon glyphicon-user" component={this.renderField}> </Field> <Field label="E-mail" inputType="text" name="email" inputClassName="glyphicon glyphicon-user" component={this.renderField}> </Field> {this.props.status.error ? 'Please enter a valid e-mail. An account with that e-mail already exists.': ''} <Field label="Password" inputType="password" name="password" inputClassName="glyphicon glyphicon-lock" component={this.renderField}> </Field> <Field label="Re-enter Password" inputType="password" name="passwordReentered" inputClassName="glyphicon glyphicon-lock" component={this.renderField}> </Field> <div className="btn-toolbar"> <button type="submit" className="btn btn-info">Register</button> <Link className="btn btn-warning pull-right" to="/login">Login</Link> </div> </form> </div> </div> </div> </div> ); } } function validate(values) { const errors = {}; //validate the inputs from 'values' if(!values.username) { errors.username = "Enter a username!"; } if(!values.firstName || values.firstName.length === 0) { errors.firstName = "Enter a first name!"; } if(!values.email || values.email.length === 0 || !values.email.includes("@")) { errors.email= "Enter a valid e-mail!"; } if(!values.password || values.password.length === 0) { errors.password = "Enter a password!"; } if(values.password !== values.passwordReentered){ errors.passwordReentered = "The passwords do not match!" } return errors; } function mapStateToProps(state){ return { status: state.registerStatus } } export default reduxForm({ validate, form: 'registerForm' })( connect(mapStateToProps, { registerUser })(Register) );
{ "content_hash": "d6852f95a76c719f92ad78c0b39a1b58", "timestamp": "", "source": "github", "line_count": 155, "max_line_length": 122, "avg_line_length": 30.06451612903226, "alnum_prop": 0.5221030042918455, "repo_name": "LawynnJana/weneedanidea", "id": "12e072675535fb201483d4cd251fa8e9a60d739c", "size": "4660", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/routes/registerPage/index.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "2279" }, { "name": "HTML", "bytes": "3070" }, { "name": "JavaScript", "bytes": "31138" } ], "symlink_target": "" }
SYNONYM #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name null ### Remarks null
{ "content_hash": "7918d963305d01f9d41567fdc697da32", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 39, "avg_line_length": 10.23076923076923, "alnum_prop": 0.6917293233082706, "repo_name": "mdoering/backbone", "id": "4599ebb8c3ca8579fdf0039234064499bfef5943", "size": "191", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Fungi/Ascomycota/Lecanoromycetes/Lecanorales/Parmeliaceae/Melanelia/Melanelia agnata/ Syn. Cetraria agnata/README.md", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. namespace Microsoft.Azure.Batch.Blast.Databases { public enum DatabaseState { ImportingNotStarted, ImportingWaitingForResources, ImportingRunning, ImportingFailed, Ready, } }
{ "content_hash": "381e764203fe751647e2d9349263c2b7", "timestamp": "", "source": "github", "line_count": 14, "max_line_length": 95, "avg_line_length": 28.571428571428573, "alnum_prop": 0.6775, "repo_name": "djolent/WebApp", "id": "f53bb9f0f3fbec71dec4751070e32c5c6efba3a6", "size": "402", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "LifeSciences/AzureBlast/AzureBlast/Databases/DatabaseState.cs", "mode": "33188", "license": "mit", "language": [ { "name": "ASP", "bytes": "117" }, { "name": "Batchfile", "bytes": "1111" }, { "name": "C#", "bytes": "368441" }, { "name": "CSS", "bytes": "21226" }, { "name": "JavaScript", "bytes": "292456" }, { "name": "PowerShell", "bytes": "3796" }, { "name": "Python", "bytes": "14958" }, { "name": "Shell", "bytes": "6364" } ], "symlink_target": "" }
using System; using System.Collections; namespace Composite { class MainApp { static void Main() { Composite root = new Composite("root"); root.Add(new Leaf("Leaf A")); root.Add(new Leaf("Leaf B")); Composite comp = new Composite("Composite X"); comp.Add(new Leaf("Leaf XA")); comp.Add(new Leaf("Leaf XB")); root.Add(comp); root.Add(new Leaf("Leaf C")); Leaf leaf = new Leaf("Leaf D"); root.Add(leaf); //root.Remove(leaf); root.Display(1); Console.Read(); } } }
{ "content_hash": "61e56d6d34ca1a80efc2981ace3c1195", "timestamp": "", "source": "github", "line_count": 30, "max_line_length": 58, "avg_line_length": 22, "alnum_prop": 0.4803030303030303, "repo_name": "DJBuro/Telerik", "id": "c2dbd042e35cd25200f6850217e1fa9c64883215", "size": "662", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "HighQualityCode/21. Structural Patterns/21. Structural Patterns/Composite/Program.cs", "mode": "33188", "license": "mit", "language": [ { "name": "Batchfile", "bytes": "165" }, { "name": "C#", "bytes": "934132" }, { "name": "CSS", "bytes": "190500" }, { "name": "HTML", "bytes": "225461" }, { "name": "JavaScript", "bytes": "983426" }, { "name": "XSLT", "bytes": "4030" } ], "symlink_target": "" }
<?php /** * WordPress Export Administration API * * @package WordPress * @subpackage Administration */ /** * Version number for the export format. * * Bump this when something changes that might affect compatibility. * * @since 2.5.0 */ define( 'WXR_VERSION', '1.2' ); /** * Generates the WXR export file for download. * * Default behavior is to export all content, however, note that post content will only * be exported for post types with the `can_export` argument enabled. Any posts with the * 'auto-draft' status will be skipped. * * @since 2.1.0 * * @global wpdb $wpdb WordPress database abstraction object. * @global WP_Post $post Global post object. * * @param array $args { * Optional. Arguments for generating the WXR export file for download. Default empty array. * * @type string $content Type of content to export. If set, only the post content of this post type * will be exported. Accepts 'all', 'post', 'page', 'attachment', or a defined * custom post. If an invalid custom post type is supplied, every post type for * which `can_export` is enabled will be exported instead. If a valid custom post * type is supplied but `can_export` is disabled, then 'posts' will be exported * instead. When 'all' is supplied, only post types with `can_export` enabled will * be exported. Default 'all'. * @type string $author Author to export content for. Only used when `$content` is 'post', 'page', or * 'attachment'. Accepts false (all) or a specific author ID. Default false (all). * @type string $category Category (slug) to export content for. Used only when `$content` is 'post'. If * set, only post content assigned to `$category` will be exported. Accepts false * or a specific category slug. Default is false (all categories). * @type string $start_date Start date to export content from. Expected date format is 'Y-m-d'. Used only * when `$content` is 'post', 'page' or 'attachment'. Default false (since the * beginning of time). * @type string $end_date End date to export content to. Expected date format is 'Y-m-d'. Used only when * `$content` is 'post', 'page' or 'attachment'. Default false (latest publish date). * @type string $status Post status to export posts for. Used only when `$content` is 'post' or 'page'. * Accepts false (all statuses except 'auto-draft'), or a specific status, i.e. * 'publish', 'pending', 'draft', 'auto-draft', 'future', 'private', 'inherit', or * 'trash'. Default false (all statuses except 'auto-draft'). * } */ function export_wp( $args = array() ) { global $wpdb, $post; $defaults = array( 'content' => 'all', 'author' => false, 'category' => false, 'start_date' => false, 'end_date' => false, 'status' => false, ); $args = wp_parse_args( $args, $defaults ); /** * Fires at the beginning of an export, before any headers are sent. * * @since 2.3.0 * * @param array $args An array of export arguments. */ do_action( 'export_wp', $args ); $sitename = sanitize_key( get_bloginfo( 'name' ) ); if ( ! empty( $sitename ) ) { $sitename .= '.'; } $date = gmdate( 'Y-m-d' ); $wp_filename = $sitename . 'WordPress.' . $date . '.xml'; /** * Filters the export filename. * * @since 4.4.0 * * @param string $wp_filename The name of the file for download. * @param string $sitename The site name. * @param string $date Today's date, formatted. */ $filename = apply_filters( 'export_wp_filename', $wp_filename, $sitename, $date ); header( 'Content-Description: File Transfer' ); header( 'Content-Disposition: attachment; filename=' . $filename ); header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ), true ); if ( 'all' != $args['content'] && post_type_exists( $args['content'] ) ) { $ptype = get_post_type_object( $args['content'] ); if ( ! $ptype->can_export ) { $args['content'] = 'post'; } $where = $wpdb->prepare( "{$wpdb->posts}.post_type = %s", $args['content'] ); } else { $post_types = get_post_types( array( 'can_export' => true ) ); $esses = array_fill( 0, count( $post_types ), '%s' ); // phpcs:ignore WordPress.DB.PreparedSQLPlaceholders.UnfinishedPrepare $where = $wpdb->prepare( "{$wpdb->posts}.post_type IN (" . implode( ',', $esses ) . ')', $post_types ); } if ( $args['status'] && ( 'post' == $args['content'] || 'page' == $args['content'] ) ) { $where .= $wpdb->prepare( " AND {$wpdb->posts}.post_status = %s", $args['status'] ); } else { $where .= " AND {$wpdb->posts}.post_status != 'auto-draft'"; } $join = ''; if ( $args['category'] && 'post' == $args['content'] ) { $term = term_exists( $args['category'], 'category' ); if ( $term ) { $join = "INNER JOIN {$wpdb->term_relationships} ON ({$wpdb->posts}.ID = {$wpdb->term_relationships}.object_id)"; $where .= $wpdb->prepare( " AND {$wpdb->term_relationships}.term_taxonomy_id = %d", $term['term_taxonomy_id'] ); } } if ( 'post' == $args['content'] || 'page' == $args['content'] || 'attachment' == $args['content'] ) { if ( $args['author'] ) { $where .= $wpdb->prepare( " AND {$wpdb->posts}.post_author = %d", $args['author'] ); } if ( $args['start_date'] ) { $where .= $wpdb->prepare( " AND {$wpdb->posts}.post_date >= %s", gmdate( 'Y-m-d', strtotime( $args['start_date'] ) ) ); } if ( $args['end_date'] ) { $where .= $wpdb->prepare( " AND {$wpdb->posts}.post_date < %s", gmdate( 'Y-m-d', strtotime( '+1 month', strtotime( $args['end_date'] ) ) ) ); } } // Grab a snapshot of post IDs, just in case it changes during the export. $post_ids = $wpdb->get_col( "SELECT ID FROM {$wpdb->posts} $join WHERE $where" ); /* * Get the requested terms ready, empty unless posts filtered by category * or all content. */ $cats = array(); $tags = array(); $terms = array(); if ( isset( $term ) && $term ) { $cat = get_term( $term['term_id'], 'category' ); $cats = array( $cat->term_id => $cat ); unset( $term, $cat ); } elseif ( 'all' == $args['content'] ) { $categories = (array) get_categories( array( 'get' => 'all' ) ); $tags = (array) get_tags( array( 'get' => 'all' ) ); $custom_taxonomies = get_taxonomies( array( '_builtin' => false ) ); $custom_terms = (array) get_terms( array( 'taxonomy' => $custom_taxonomies, 'get' => 'all', ) ); // Put categories in order with no child going before its parent. while ( $cat = array_shift( $categories ) ) { if ( 0 == $cat->parent || isset( $cats[ $cat->parent ] ) ) { $cats[ $cat->term_id ] = $cat; } else { $categories[] = $cat; } } // Put terms in order with no child going before its parent. while ( $t = array_shift( $custom_terms ) ) { if ( 0 == $t->parent || isset( $terms[ $t->parent ] ) ) { $terms[ $t->term_id ] = $t; } else { $custom_terms[] = $t; } } unset( $categories, $custom_taxonomies, $custom_terms ); } /** * Wrap given string in XML CDATA tag. * * @since 2.1.0 * * @param string $str String to wrap in XML CDATA tag. * @return string */ function wxr_cdata( $str ) { if ( ! seems_utf8( $str ) ) { $str = utf8_encode( $str ); } // $str = ent2ncr(esc_html($str)); $str = '<![CDATA[' . str_replace( ']]>', ']]]]><![CDATA[>', $str ) . ']]>'; return $str; } /** * Return the URL of the site * * @since 2.5.0 * * @return string Site URL. */ function wxr_site_url() { if ( is_multisite() ) { // Multisite: the base URL. return network_home_url(); } else { // WordPress (single site): the blog URL. return get_bloginfo_rss( 'url' ); } } /** * Output a cat_name XML tag from a given category object * * @since 2.1.0 * * @param object $category Category Object */ function wxr_cat_name( $category ) { if ( empty( $category->name ) ) { return; } echo '<wp:cat_name>' . wxr_cdata( $category->name ) . "</wp:cat_name>\n"; } /** * Output a category_description XML tag from a given category object * * @since 2.1.0 * * @param object $category Category Object */ function wxr_category_description( $category ) { if ( empty( $category->description ) ) { return; } echo '<wp:category_description>' . wxr_cdata( $category->description ) . "</wp:category_description>\n"; } /** * Output a tag_name XML tag from a given tag object * * @since 2.3.0 * * @param object $tag Tag Object */ function wxr_tag_name( $tag ) { if ( empty( $tag->name ) ) { return; } echo '<wp:tag_name>' . wxr_cdata( $tag->name ) . "</wp:tag_name>\n"; } /** * Output a tag_description XML tag from a given tag object * * @since 2.3.0 * * @param object $tag Tag Object */ function wxr_tag_description( $tag ) { if ( empty( $tag->description ) ) { return; } echo '<wp:tag_description>' . wxr_cdata( $tag->description ) . "</wp:tag_description>\n"; } /** * Output a term_name XML tag from a given term object * * @since 2.9.0 * * @param object $term Term Object */ function wxr_term_name( $term ) { if ( empty( $term->name ) ) { return; } echo '<wp:term_name>' . wxr_cdata( $term->name ) . "</wp:term_name>\n"; } /** * Output a term_description XML tag from a given term object * * @since 2.9.0 * * @param object $term Term Object */ function wxr_term_description( $term ) { if ( empty( $term->description ) ) { return; } echo "\t\t<wp:term_description>" . wxr_cdata( $term->description ) . "</wp:term_description>\n"; } /** * Output term meta XML tags for a given term object. * * @since 4.6.0 * * @param WP_Term $term Term object. */ function wxr_term_meta( $term ) { global $wpdb; $termmeta = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $wpdb->termmeta WHERE term_id = %d", $term->term_id ) ); foreach ( $termmeta as $meta ) { /** * Filters whether to selectively skip term meta used for WXR exports. * * Returning a truthy value to the filter will skip the current meta * object from being exported. * * @since 4.6.0 * * @param bool $skip Whether to skip the current piece of term meta. Default false. * @param string $meta_key Current meta key. * @param object $meta Current meta object. */ if ( ! apply_filters( 'wxr_export_skip_termmeta', false, $meta->meta_key, $meta ) ) { printf( "\t\t<wp:termmeta>\n\t\t\t<wp:meta_key>%s</wp:meta_key>\n\t\t\t<wp:meta_value>%s</wp:meta_value>\n\t\t</wp:termmeta>\n", wxr_cdata( $meta->meta_key ), wxr_cdata( $meta->meta_value ) ); } } } /** * Output list of authors with posts * * @since 3.1.0 * * @global wpdb $wpdb WordPress database abstraction object. * * @param int[] $post_ids Optional. Array of post IDs to filter the query by. */ function wxr_authors_list( array $post_ids = null ) { global $wpdb; if ( ! empty( $post_ids ) ) { $post_ids = array_map( 'absint', $post_ids ); $and = 'AND ID IN ( ' . implode( ', ', $post_ids ) . ')'; } else { $and = ''; } $authors = array(); $results = $wpdb->get_results( "SELECT DISTINCT post_author FROM $wpdb->posts WHERE post_status != 'auto-draft' $and" ); foreach ( (array) $results as $result ) { $authors[] = get_userdata( $result->post_author ); } $authors = array_filter( $authors ); foreach ( $authors as $author ) { echo "\t<wp:author>"; echo '<wp:author_id>' . intval( $author->ID ) . '</wp:author_id>'; echo '<wp:author_login>' . wxr_cdata( $author->user_login ) . '</wp:author_login>'; echo '<wp:author_email>' . wxr_cdata( $author->user_email ) . '</wp:author_email>'; echo '<wp:author_display_name>' . wxr_cdata( $author->display_name ) . '</wp:author_display_name>'; echo '<wp:author_first_name>' . wxr_cdata( $author->first_name ) . '</wp:author_first_name>'; echo '<wp:author_last_name>' . wxr_cdata( $author->last_name ) . '</wp:author_last_name>'; echo "</wp:author>\n"; } } /** * Output all navigation menu terms * * @since 3.1.0 */ function wxr_nav_menu_terms() { $nav_menus = wp_get_nav_menus(); if ( empty( $nav_menus ) || ! is_array( $nav_menus ) ) { return; } foreach ( $nav_menus as $menu ) { echo "\t<wp:term>"; echo '<wp:term_id>' . intval( $menu->term_id ) . '</wp:term_id>'; echo '<wp:term_taxonomy>nav_menu</wp:term_taxonomy>'; echo '<wp:term_slug>' . wxr_cdata( $menu->slug ) . '</wp:term_slug>'; wxr_term_name( $menu ); echo "</wp:term>\n"; } } /** * Output list of taxonomy terms, in XML tag format, associated with a post * * @since 2.3.0 */ function wxr_post_taxonomy() { $post = get_post(); $taxonomies = get_object_taxonomies( $post->post_type ); if ( empty( $taxonomies ) ) { return; } $terms = wp_get_object_terms( $post->ID, $taxonomies ); foreach ( (array) $terms as $term ) { echo "\t\t<category domain=\"{$term->taxonomy}\" nicename=\"{$term->slug}\">" . wxr_cdata( $term->name ) . "</category>\n"; } } /** * @param bool $return_me * @param string $meta_key * @return bool */ function wxr_filter_postmeta( $return_me, $meta_key ) { if ( '_edit_lock' == $meta_key ) { $return_me = true; } return $return_me; } add_filter( 'wxr_export_skip_postmeta', 'wxr_filter_postmeta', 10, 2 ); echo '<?xml version="1.0" encoding="' . get_bloginfo( 'charset' ) . "\" ?>\n"; ?> <!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your site. --> <!-- It contains information about your site's posts, pages, comments, categories, and other content. --> <!-- You may use this file to transfer that content from one site to another. --> <!-- This file is not intended to serve as a complete backup of your site. --> <!-- To import this information into a WordPress site follow these steps: --> <!-- 1. Log in to that site as an administrator. --> <!-- 2. Go to Tools: Import in the WordPress admin panel. --> <!-- 3. Install the "WordPress" importer from the list. --> <!-- 4. Activate & Run Importer. --> <!-- 5. Upload this file using the form provided on that page. --> <!-- 6. You will first be asked to map the authors in this export file to users --> <!-- on the site. For each author, you may choose to map to an --> <!-- existing user on the site or to create a new user. --> <!-- 7. WordPress will then import each of the posts, pages, comments, categories, etc. --> <!-- contained in this file into your site. --> <?php the_generator( 'export' ); ?> <rss version="2.0" xmlns:excerpt="http://wordpress.org/export/<?php echo WXR_VERSION; ?>/excerpt/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:wp="http://wordpress.org/export/<?php echo WXR_VERSION; ?>/" > <channel> <title><?php bloginfo_rss( 'name' ); ?></title> <link><?php bloginfo_rss( 'url' ); ?></link> <description><?php bloginfo_rss( 'description' ); ?></description> <pubDate><?php echo gmdate( 'D, d M Y H:i:s +0000' ); ?></pubDate> <language><?php bloginfo_rss( 'language' ); ?></language> <wp:wxr_version><?php echo WXR_VERSION; ?></wp:wxr_version> <wp:base_site_url><?php echo wxr_site_url(); ?></wp:base_site_url> <wp:base_blog_url><?php bloginfo_rss( 'url' ); ?></wp:base_blog_url> <?php wxr_authors_list( $post_ids ); ?> <?php foreach ( $cats as $c ) : ?> <wp:category> <wp:term_id><?php echo intval( $c->term_id ); ?></wp:term_id> <wp:category_nicename><?php echo wxr_cdata( $c->slug ); ?></wp:category_nicename> <wp:category_parent><?php echo wxr_cdata( $c->parent ? $cats[ $c->parent ]->slug : '' ); ?></wp:category_parent> <?php wxr_cat_name( $c ); wxr_category_description( $c ); wxr_term_meta( $c ); ?> </wp:category> <?php endforeach; ?> <?php foreach ( $tags as $t ) : ?> <wp:tag> <wp:term_id><?php echo intval( $t->term_id ); ?></wp:term_id> <wp:tag_slug><?php echo wxr_cdata( $t->slug ); ?></wp:tag_slug> <?php wxr_tag_name( $t ); wxr_tag_description( $t ); wxr_term_meta( $t ); ?> </wp:tag> <?php endforeach; ?> <?php foreach ( $terms as $t ) : ?> <wp:term> <wp:term_id><?php echo wxr_cdata( $t->term_id ); ?></wp:term_id> <wp:term_taxonomy><?php echo wxr_cdata( $t->taxonomy ); ?></wp:term_taxonomy> <wp:term_slug><?php echo wxr_cdata( $t->slug ); ?></wp:term_slug> <wp:term_parent><?php echo wxr_cdata( $t->parent ? $terms[ $t->parent ]->slug : '' ); ?></wp:term_parent> <?php wxr_term_name( $t ); wxr_term_description( $t ); wxr_term_meta( $t ); ?> </wp:term> <?php endforeach; ?> <?php if ( 'all' == $args['content'] ) { wxr_nav_menu_terms();} ?> <?php /** This action is documented in wp-includes/feed-rss2.php */ do_action( 'rss2_head' ); ?> <?php if ( $post_ids ) { /** * @global WP_Query $wp_query WordPress Query object. */ global $wp_query; // Fake being in the loop. $wp_query->in_the_loop = true; // Fetch 20 posts at a time rather than loading the entire table into memory. while ( $next_posts = array_splice( $post_ids, 0, 20 ) ) { $where = 'WHERE ID IN (' . join( ',', $next_posts ) . ')'; $posts = $wpdb->get_results( "SELECT * FROM {$wpdb->posts} $where" ); // Begin Loop. foreach ( $posts as $post ) { setup_postdata( $post ); /** This filter is documented in wp-includes/feed.php */ $title = apply_filters( 'the_title_rss', $post->post_title ); /** * Filters the post content used for WXR exports. * * @since 2.5.0 * * @param string $post_content Content of the current post. */ $content = wxr_cdata( apply_filters( 'the_content_export', $post->post_content ) ); /** * Filters the post excerpt used for WXR exports. * * @since 2.6.0 * * @param string $post_excerpt Excerpt for the current post. */ $excerpt = wxr_cdata( apply_filters( 'the_excerpt_export', $post->post_excerpt ) ); $is_sticky = is_sticky( $post->ID ) ? 1 : 0; ?> <item> <title><?php echo $title; ?></title> <link><?php the_permalink_rss(); ?></link> <pubDate><?php echo mysql2date( 'D, d M Y H:i:s +0000', get_post_time( 'Y-m-d H:i:s', true ), false ); ?></pubDate> <dc:creator><?php echo wxr_cdata( get_the_author_meta( 'login' ) ); ?></dc:creator> <guid isPermaLink="false"><?php the_guid(); ?></guid> <description></description> <content:encoded><?php echo $content; ?></content:encoded> <excerpt:encoded><?php echo $excerpt; ?></excerpt:encoded> <wp:post_id><?php echo intval( $post->ID ); ?></wp:post_id> <wp:post_date><?php echo wxr_cdata( $post->post_date ); ?></wp:post_date> <wp:post_date_gmt><?php echo wxr_cdata( $post->post_date_gmt ); ?></wp:post_date_gmt> <wp:comment_status><?php echo wxr_cdata( $post->comment_status ); ?></wp:comment_status> <wp:ping_status><?php echo wxr_cdata( $post->ping_status ); ?></wp:ping_status> <wp:post_name><?php echo wxr_cdata( $post->post_name ); ?></wp:post_name> <wp:status><?php echo wxr_cdata( $post->post_status ); ?></wp:status> <wp:post_parent><?php echo intval( $post->post_parent ); ?></wp:post_parent> <wp:menu_order><?php echo intval( $post->menu_order ); ?></wp:menu_order> <wp:post_type><?php echo wxr_cdata( $post->post_type ); ?></wp:post_type> <wp:post_password><?php echo wxr_cdata( $post->post_password ); ?></wp:post_password> <wp:is_sticky><?php echo intval( $is_sticky ); ?></wp:is_sticky> <?php if ( 'attachment' === $post->post_type ) : ?> <wp:attachment_url><?php echo wxr_cdata( wp_get_attachment_url( $post->ID ) ); ?></wp:attachment_url> <?php endif; ?> <?php wxr_post_taxonomy(); ?> <?php $postmeta = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $wpdb->postmeta WHERE post_id = %d", $post->ID ) ); foreach ( $postmeta as $meta ) : /** * Filters whether to selectively skip post meta used for WXR exports. * * Returning a truthy value to the filter will skip the current meta * object from being exported. * * @since 3.3.0 * * @param bool $skip Whether to skip the current post meta. Default false. * @param string $meta_key Current meta key. * @param object $meta Current meta object. */ if ( apply_filters( 'wxr_export_skip_postmeta', false, $meta->meta_key, $meta ) ) { continue; } ?> <wp:postmeta> <wp:meta_key><?php echo wxr_cdata( $meta->meta_key ); ?></wp:meta_key> <wp:meta_value><?php echo wxr_cdata( $meta->meta_value ); ?></wp:meta_value> </wp:postmeta> <?php endforeach; $_comments = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_approved <> 'spam'", $post->ID ) ); $comments = array_map( 'get_comment', $_comments ); foreach ( $comments as $c ) : ?> <wp:comment> <wp:comment_id><?php echo intval( $c->comment_ID ); ?></wp:comment_id> <wp:comment_author><?php echo wxr_cdata( $c->comment_author ); ?></wp:comment_author> <wp:comment_author_email><?php echo wxr_cdata( $c->comment_author_email ); ?></wp:comment_author_email> <wp:comment_author_url><?php echo esc_url_raw( $c->comment_author_url ); ?></wp:comment_author_url> <wp:comment_author_IP><?php echo wxr_cdata( $c->comment_author_IP ); ?></wp:comment_author_IP> <wp:comment_date><?php echo wxr_cdata( $c->comment_date ); ?></wp:comment_date> <wp:comment_date_gmt><?php echo wxr_cdata( $c->comment_date_gmt ); ?></wp:comment_date_gmt> <wp:comment_content><?php echo wxr_cdata( $c->comment_content ); ?></wp:comment_content> <wp:comment_approved><?php echo wxr_cdata( $c->comment_approved ); ?></wp:comment_approved> <wp:comment_type><?php echo wxr_cdata( $c->comment_type ); ?></wp:comment_type> <wp:comment_parent><?php echo intval( $c->comment_parent ); ?></wp:comment_parent> <wp:comment_user_id><?php echo intval( $c->user_id ); ?></wp:comment_user_id> <?php $c_meta = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $wpdb->commentmeta WHERE comment_id = %d", $c->comment_ID ) ); foreach ( $c_meta as $meta ) : /** * Filters whether to selectively skip comment meta used for WXR exports. * * Returning a truthy value to the filter will skip the current meta * object from being exported. * * @since 4.0.0 * * @param bool $skip Whether to skip the current comment meta. Default false. * @param string $meta_key Current meta key. * @param object $meta Current meta object. */ if ( apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta ) ) { continue; } ?> <wp:commentmeta> <wp:meta_key><?php echo wxr_cdata( $meta->meta_key ); ?></wp:meta_key> <wp:meta_value><?php echo wxr_cdata( $meta->meta_value ); ?></wp:meta_value> </wp:commentmeta> <?php endforeach; ?> </wp:comment> <?php endforeach; ?> </item> <?php } } } ?> </channel> </rss> <?php }
{ "content_hash": "977103776a7b9cb5df490373f6accb8a", "timestamp": "", "source": "github", "line_count": 670, "max_line_length": 196, "avg_line_length": 35.23880597014925, "alnum_prop": 0.5892842016094875, "repo_name": "mandino/www.bloggingshakespeare.com", "id": "057e59f3ddf9ff991e8955b45a6cafe73fa6b669", "size": "23610", "binary": false, "copies": "17", "ref": "refs/heads/master", "path": "wp-admin/includes/export.php", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "5211957" }, { "name": "CoffeeScript", "bytes": "552" }, { "name": "HTML", "bytes": "525757" }, { "name": "JavaScript", "bytes": "6055696" }, { "name": "Modelica", "bytes": "10338" }, { "name": "PHP", "bytes": "44197755" }, { "name": "Perl", "bytes": "2554" }, { "name": "Ruby", "bytes": "3917" }, { "name": "Smarty", "bytes": "27821" }, { "name": "XSLT", "bytes": "34552" } ], "symlink_target": "" }
// log use (of browser) var loguse = angular.module('mpm-loguse', ['MuziVisual.socket']); // note: needs uuid.js //socket.io wrapper, exposes on() and emit() loguse.factory('mpmLoguse', ['socket', 'clientid', '$interval', function (socket, clientid, $interval) { console.log('mpmLoguse '+clientid); socket.emit('loguse.client.id', {clientid:clientid}); var userid = null; var fns = []; // callback with userid socket.on('loguse.client.userid', function(msg) { userid = msg.userid; console.log('mpm.cliend.userid '+userid); if (userid) { for (var i in fns) { var fn = fns[i]; try { fn(userid); } catch (err) { console.log('error calling withuserid', err); } } fns = []; } }); //https://stackoverflow.com/questions/1060008/is-there-a-way-to-detect-if-a-browser-window-is-not-currently-active (function() { var hidden = "hidden"; // Standards: if (hidden in document) document.addEventListener("visibilitychange", onchange); else if ((hidden = "mozHidden") in document) document.addEventListener("mozvisibilitychange", onchange); else if ((hidden = "webkitHidden") in document) document.addEventListener("webkitvisibilitychange", onchange); else if ((hidden = "msHidden") in document) document.addEventListener("msvisibilitychange", onchange); // IE 9 and lower: else if ("onfocusin" in document) document.onfocusin = document.onfocusout = onchange; // All others: else window.onpageshow = window.onpagehide = window.onfocus = window.onblur = onchange; var last_hidden_time = null, last_visible_time = null; function onchange (evt) { var v = "visible", h = "hidden", evtMap = { focus:v, focusin:v, pageshow:v, blur:h, focusout:h, pagehide:h }; evt = evt || window.event; var res = null; if (evt.type in evtMap) res = evtMap[evt.type]; else res = this[hidden] ? "hidden" : "visible"; console.log('visible?? '+res); var time = (new Date()).getTime(); if (res=='visible' && last_hidden_time!==null) { socket.emit('loguse.client.visible', {clientid: clientid, clienttime: time, after: time-last_hidden_time}); last_visible_time = time; } else if (res=='visible') { socket.emit('loguse.client.visible', {clientid: clientid, clienttime: time}); last_visible_time = time; } else if (res=='hidden' && last_visible_time!==null) { socket.emit('loguse.client.hidden', {clientid: clientid, clienttime: time, after: time-last_visible_time}); last_hidden_time = time; } else if (res=='hidden') { socket.emit('loguse.client.hidden', {clientid: clientid, clienttime: time}); last_hidden_time = time; } } // set the initial state (but only if browser supports the Page Visibility API) if( document[hidden] !== undefined ) onchange({type: document[hidden] ? "blur" : "focus"}); })(); /* var REPORT_INTERVAL = 5000; var CHECK_INTERVAL = 500; var last_report_time = 0; var check_count = 0; $interval(function() { var time = (new Date()).getTime(); var elapsed = time-last_report_time; if (elapsed>REPORT_INTERVAL) { socket.emit('loguse.client.awake', {clientid: clientid, clienttime: time}); last_report_time = time; check_count = 0; } else if (time-(last_report_time+CHECK_INTERVAL*check_count) > 2*CHECK_INTERVAL) { socket.emit('loguse.client.awake', {clientid: clientid, clienttime: time, aftersleep: time-(last_report_time+CHECK_INTERVAL*check_count)-CHECK_INTERVAL}); last_report_time = time; check_count = 0; } else { check_count++; } }, CHECK_INTERVAL); */ return { withuserid: function(fn) { if (userid===null) fns.push(fn); else { try { fn(userid); } catch (err) { console.log('error calling withuserid', err); } } }, log: function(data) { var time = (new Date()).getTime(); data.clienttime = time; // clientid and userid added by server socket.emit('loguse.client.log', data); }, view: function(path, info) { var time = (new Date()).getTime(); var data = { clienttime: time, path: path, info: info }; // clientid and userid added by server socket.emit('loguse.client.view', data); } }; }]); loguse.factory('clientid', function() { // cookie? // https://stackoverflow.com/questions/14573223/set-cookie-and-get-cookie-with-javascript function createCookie(name,value,days) { var expires = ""; if (days) { var date = new Date(); date.setTime(date.getTime() + (days*24*60*60*1000)); expires = "; expires=" + date.toUTCString(); } document.cookie = name + "=" + value + expires + "; path=/"; } function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } var COOKIE_NAME = 'mpmclientidv1'; var DEFAULT_DAYS = 365; var guid = readCookie(COOKIE_NAME); if (guid===null) { guid = uuid.v1(); console.log('New clientid '+guid); createCookie(COOKIE_NAME, guid, DEFAULT_DAYS); } else { console.log('existing clientid '+guid); } return guid; });
{ "content_hash": "e8004a88f4a167ac15e073fd4716698e", "timestamp": "", "source": "github", "line_count": 167, "max_line_length": 157, "avg_line_length": 32.604790419161674, "alnum_prop": 0.6185491276400368, "repo_name": "littlebugivy/muzivisual", "id": "41d87864a1a2fbe03193dbae3a1d8862ba0301aa", "size": "5445", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/public/js/mpm-loguse.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "5628" }, { "name": "HTML", "bytes": "12664" }, { "name": "JavaScript", "bytes": "79776" }, { "name": "Python", "bytes": "492" }, { "name": "Shell", "bytes": "182" } ], "symlink_target": "" }
namespace jxl { JxlBoxContentDecoder::JxlBoxContentDecoder() {} JxlBoxContentDecoder::~JxlBoxContentDecoder() { if (brotli_dec) { BrotliDecoderDestroyInstance(brotli_dec); } } void JxlBoxContentDecoder::StartBox(bool brob_decode, bool box_until_eof, size_t contents_size) { if (brotli_dec) { BrotliDecoderDestroyInstance(brotli_dec); brotli_dec = nullptr; } header_done_ = false; brob_decode_ = brob_decode; box_until_eof_ = box_until_eof; remaining_ = box_until_eof ? 0 : contents_size; pos_ = 0; } JxlDecoderStatus JxlBoxContentDecoder::Process(const uint8_t* next_in, size_t avail_in, size_t box_pos, uint8_t** next_out, size_t* avail_out) { next_in += pos_ - box_pos; avail_in -= pos_ - box_pos; if (brob_decode_) { if (!header_done_) { if (avail_in < 4) return JXL_DEC_NEED_MORE_INPUT; if (!box_until_eof_) { if (remaining_ < 4) return JXL_DEC_ERROR; remaining_ -= 4; } next_in += 4; avail_in -= 4; pos_ += 4; header_done_ = true; } if (!brotli_dec) { brotli_dec = BrotliDecoderCreateInstance(nullptr, nullptr, nullptr); } const uint8_t* next_in_before = next_in; uint8_t* next_out_before = *next_out; msan::MemoryIsInitialized(next_in, avail_in); BrotliDecoderResult res = BrotliDecoderDecompressStream( brotli_dec, &avail_in, &next_in, avail_out, next_out, nullptr); size_t consumed = next_in - next_in_before; size_t produced = *next_out - next_out_before; if (res == BROTLI_DECODER_RESULT_ERROR) { return JXL_DEC_ERROR; } msan::UnpoisonMemory(next_out_before, produced); pos_ += consumed; if (!box_until_eof_) remaining_ -= consumed; if (res == BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT) { return JXL_DEC_NEED_MORE_INPUT; } if (res == BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT) { return JXL_DEC_BOX_NEED_MORE_OUTPUT; } if (res == BROTLI_DECODER_RESULT_SUCCESS) { return JXL_DEC_SUCCESS; } // unknown Brotli result return JXL_DEC_ERROR; } else { // remaining box bytes as seen from dec->file_pos size_t can_read = avail_in; if (!box_until_eof_) can_read = std::min<size_t>(can_read, remaining_); size_t to_write = std::min<size_t>(can_read, *avail_out); memcpy(*next_out, next_in, to_write); *next_out += to_write; *avail_out -= to_write; if (!box_until_eof_) remaining_ -= to_write; pos_ += to_write; if (to_write < can_read) return JXL_DEC_BOX_NEED_MORE_OUTPUT; if (!box_until_eof_ && remaining_ > 0) return JXL_DEC_NEED_MORE_INPUT; return JXL_DEC_SUCCESS; } } } // namespace jxl
{ "content_hash": "ccc2fb3a205e69e497516194411202d4", "timestamp": "", "source": "github", "line_count": 92, "max_line_length": 79, "avg_line_length": 30.98913043478261, "alnum_prop": 0.5906699403717993, "repo_name": "libjxl/libjxl", "id": "c4cba3a31aee7abe8bf837a26cffe04693f95e07", "size": "3101", "binary": false, "copies": "4", "ref": "refs/heads/main", "path": "lib/jxl/box_content_decoder.cc", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "C", "bytes": "229432" }, { "name": "C++", "bytes": "5126147" }, { "name": "CMake", "bytes": "103726" }, { "name": "HTML", "bytes": "9085" }, { "name": "Java", "bytes": "9842" }, { "name": "JavaScript", "bytes": "8809" }, { "name": "MATLAB", "bytes": "1037" }, { "name": "Python", "bytes": "145049" }, { "name": "Shell", "bytes": "118966" } ], "symlink_target": "" }
/*! * Bootstrap v2.3.2 */ .clearfix { *zoom: 1; } .clearfix:before, .clearfix:after { display: table; content: ""; line-height: 0; } .clearfix:after { clear: both; } .hide-text { font: 0/0 a; color: transparent; text-shadow: none; background-color: transparent; border: 0; } .input-block-level { display: block; width: 100%; min-height: 30px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; } audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; } audio:not([controls]) { display: none; } html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } a:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } a:hover, a:active { outline: 0; } sub, sup { position: relative; font-size: 75%; line-height: 0; vertical-align: baseline; } sup { top: -0.5em; } sub { bottom: -0.25em; } img { /* Responsive images (ensure images don't scale beyond their parents) */ max-width: 100%; /* Part 1: Set a maxium relative to the parent */ width: auto\9; /* IE7-8 need help adjusting responsive images */ height: auto; /* Part 2: Scale the height according to the width, otherwise you get stretching */ vertical-align: middle; border: 0; -ms-interpolation-mode: bicubic; } #map_canvas img, .google-maps img { max-width: none; } button, input, select, textarea { margin: 0; font-size: 100%; vertical-align: middle; } button, input { *overflow: visible; line-height: normal; } button::-moz-focus-inner, input::-moz-focus-inner { padding: 0; border: 0; } button, html input[type="button"], input[type="reset"], input[type="submit"] { -webkit-appearance: button; cursor: pointer; } label, select, button, input[type="button"], input[type="reset"], input[type="submit"], input[type="radio"], input[type="checkbox"] { cursor: pointer; } input[type="search"] { /*.box-sizing(content-box);*/ /*-webkit-appearance: textfield;*/ } input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button { /*-webkit-appearance: none; // Inner-padding issues in Chrome OSX, Safari 5*/ } textarea { overflow: auto; vertical-align: top; } @media print { * { text-shadow: none !important; color: #000 !important; background: transparent !important; box-shadow: none !important; } a, a:visited { text-decoration: underline; } a[href]:after { content: " (" attr(href) ")"; } abbr[title]:after { content: " (" attr(title) ")"; } .ir a:after, a[href^="javascript:"]:after, a[href^="#"]: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; } @page { margin: 0.5cm; } p, h2, h3 { orphans: 3; widows: 3; } h2, h3 { page-break-after: avoid; } } body { margin: 0; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px; color: #333333; background-color: #222222; } a { color: #0088cc; text-decoration: none; } a:hover, a:focus { color: #005580; text-decoration: underline; } .img-rounded { -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; } .img-polaroid { padding: 4px; background-color: #fff; border: 1px solid #ccc; border: 1px solid rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } .img-circle { -webkit-border-radius: 500px; -moz-border-radius: 500px; border-radius: 500px; } .row { margin-left: -20px; *zoom: 1; } .row:before, .row:after { display: table; content: ""; line-height: 0; } .row:after { clear: both; } [class*="span"] { float: left; min-height: 1px; margin-left: 20px; } .container, .navbar-static-top .container, .navbar-fixed-top .container, .navbar-fixed-bottom .container { width: 940px; } .span12 { width: 940px; } .span11 { width: 860px; } .span10 { width: 780px; } .span9 { width: 700px; } .span8 { width: 620px; } .span7 { width: 540px; } .span6 { width: 460px; } .span5 { width: 380px; } .span4 { width: 300px; } .span3 { width: 220px; } .span2 { width: 140px; } .span1 { width: 60px; } .offset12 { margin-left: 980px; } .offset11 { margin-left: 900px; } .offset10 { margin-left: 820px; } .offset9 { margin-left: 740px; } .offset8 { margin-left: 660px; } .offset7 { margin-left: 580px; } .offset6 { margin-left: 500px; } .offset5 { margin-left: 420px; } .offset4 { margin-left: 340px; } .offset3 { margin-left: 260px; } .offset2 { margin-left: 180px; } .offset1 { margin-left: 100px; } .row-fluid { width: 100%; *zoom: 1; } .row-fluid:before, .row-fluid:after { display: table; content: ""; line-height: 0; } .row-fluid:after { clear: both; } .row-fluid [class*="span"] { display: block; width: 100%; min-height: 30px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; float: left; margin-left: 2.12765957%; *margin-left: 2.07446809%; } .row-fluid [class*="span"]:first-child { margin-left: 0; } .row-fluid .controls-row [class*="span"] + [class*="span"] { margin-left: 2.12765957%; } .row-fluid .span12 { width: 100%; *width: 99.94680851%; } .row-fluid .span11 { width: 91.4893617%; *width: 91.43617021%; } .row-fluid .span10 { width: 82.9787234%; *width: 82.92553191%; } .row-fluid .span9 { width: 74.46808511%; *width: 74.41489362%; } .row-fluid .span8 { width: 65.95744681%; *width: 65.90425532%; } .row-fluid .span7 { width: 57.44680851%; *width: 57.39361702%; } .row-fluid .span6 { width: 48.93617021%; *width: 48.88297872%; } .row-fluid .span5 { width: 40.42553191%; *width: 40.37234043%; } .row-fluid .span4 { width: 31.91489362%; *width: 31.86170213%; } .row-fluid .span3 { width: 23.40425532%; *width: 23.35106383%; } .row-fluid .span2 { width: 14.89361702%; *width: 14.84042553%; } .row-fluid .span1 { width: 6.38297872%; *width: 6.32978723%; } .row-fluid .offset12 { margin-left: 104.25531915%; *margin-left: 104.14893617%; } .row-fluid .offset12:first-child { margin-left: 102.12765957%; *margin-left: 102.0212766%; } .row-fluid .offset11 { margin-left: 95.74468085%; *margin-left: 95.63829787%; } .row-fluid .offset11:first-child { margin-left: 93.61702128%; *margin-left: 93.5106383%; } .row-fluid .offset10 { margin-left: 87.23404255%; *margin-left: 87.12765957%; } .row-fluid .offset10:first-child { margin-left: 85.10638298%; *margin-left: 85%; } .row-fluid .offset9 { margin-left: 78.72340426%; *margin-left: 78.61702128%; } .row-fluid .offset9:first-child { margin-left: 76.59574468%; *margin-left: 76.4893617%; } .row-fluid .offset8 { margin-left: 70.21276596%; *margin-left: 70.10638298%; } .row-fluid .offset8:first-child { margin-left: 68.08510638%; *margin-left: 67.9787234%; } .row-fluid .offset7 { margin-left: 61.70212766%; *margin-left: 61.59574468%; } .row-fluid .offset7:first-child { margin-left: 59.57446809%; *margin-left: 59.46808511%; } .row-fluid .offset6 { margin-left: 53.19148936%; *margin-left: 53.08510638%; } .row-fluid .offset6:first-child { margin-left: 51.06382979%; *margin-left: 50.95744681%; } .row-fluid .offset5 { margin-left: 44.68085106%; *margin-left: 44.57446809%; } .row-fluid .offset5:first-child { margin-left: 42.55319149%; *margin-left: 42.44680851%; } .row-fluid .offset4 { margin-left: 36.17021277%; *margin-left: 36.06382979%; } .row-fluid .offset4:first-child { margin-left: 34.04255319%; *margin-left: 33.93617021%; } .row-fluid .offset3 { margin-left: 27.65957447%; *margin-left: 27.55319149%; } .row-fluid .offset3:first-child { margin-left: 25.53191489%; *margin-left: 25.42553191%; } .row-fluid .offset2 { margin-left: 19.14893617%; *margin-left: 19.04255319%; } .row-fluid .offset2:first-child { margin-left: 17.0212766%; *margin-left: 16.91489362%; } .row-fluid .offset1 { margin-left: 10.63829787%; *margin-left: 10.53191489%; } .row-fluid .offset1:first-child { margin-left: 8.5106383%; *margin-left: 8.40425532%; } [class*="span"].hide, .row-fluid [class*="span"].hide { display: none; } [class*="span"].pull-right, .row-fluid [class*="span"].pull-right { float: right; } p { margin: 0 0 10px; } .lead { margin-bottom: 20px; font-size: 21px; font-weight: 200; line-height: 30px; } small { font-size: 85%; } strong { font-weight: bold; } em { font-style: italic; } cite { font-style: normal; } .muted { color: #999999; } a.muted:hover, a.muted:focus { color: #808080; } .text-warning { color: #c09853; } a.text-warning:hover, a.text-warning:focus { color: #a47e3c; } .text-error { color: #b94a48; } a.text-error:hover, a.text-error:focus { color: #953b39; } .text-info { color: #3a87ad; } a.text-info:hover, a.text-info:focus { color: #2d6987; } .text-success { color: #468847; } a.text-success:hover, a.text-success:focus { color: #356635; } .text-left { text-align: left; } .text-right { text-align: right; } .text-center { text-align: center; } h1, h2, h3, h4, h5, h6 { margin: 10px 0; font-family: inherit; font-weight: bold; line-height: 20px; color: inherit; text-rendering: optimizelegibility; } h1 small, h2 small, h3 small, h4 small, h5 small, h6 small { font-weight: normal; line-height: 1; color: #999999; } h1, h2, h3 { line-height: 40px; } h1 { font-size: 38.5px; } h2 { font-size: 31.5px; } h3 { font-size: 24.5px; } h4 { font-size: 17.5px; } h5 { font-size: 14px; } h6 { font-size: 11.9px; } h1 small { font-size: 24.5px; } h2 small { font-size: 17.5px; } h3 small { font-size: 14px; } h4 small { font-size: 14px; } .page-header { padding-bottom: 9px; margin: 20px 0 30px; border-bottom: 1px solid #eeeeee; } ul, ol { padding: 0; margin: 0 0 10px 25px; } ul ul, ul ol, ol ol, ol ul { margin-bottom: 0; } li { line-height: 20px; } ul.unstyled, ol.unstyled { margin-left: 0; list-style: none; } ul.inline, ol.inline { margin-left: 0; list-style: none; } ul.inline > li, ol.inline > li { display: inline-block; *display: inline; /* IE7 inline-block hack */ *zoom: 1; padding-left: 5px; padding-right: 5px; } dl { margin-bottom: 20px; } dt, dd { line-height: 20px; } dt { font-weight: bold; } dd { margin-left: 10px; } .dl-horizontal { *zoom: 1; } .dl-horizontal:before, .dl-horizontal:after { display: table; content: ""; line-height: 0; } .dl-horizontal:after { clear: both; } .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; } hr { margin: 20px 0; border: 0; border-top: 1px solid #eeeeee; border-bottom: 1px solid #ffffff; } abbr[title], abbr[data-original-title] { cursor: help; border-bottom: 1px dotted #999999; } abbr.initialism { font-size: 90%; text-transform: uppercase; } blockquote { padding: 0 0 0 15px; margin: 0 0 20px; border-left: 5px solid #eeeeee; } blockquote p { margin-bottom: 0; font-size: 17.5px; font-weight: 300; line-height: 1.25; } blockquote small { display: block; line-height: 20px; color: #999999; } blockquote small:before { content: '\2014 \00A0'; } blockquote.pull-right { float: right; padding-right: 15px; padding-left: 0; border-right: 5px solid #eeeeee; border-left: 0; } blockquote.pull-right p, blockquote.pull-right small { text-align: right; } blockquote.pull-right small:before { content: ''; } blockquote.pull-right small:after { content: '\00A0 \2014'; } q:before, q:after, blockquote:before, blockquote:after { content: ""; } address { display: block; margin-bottom: 20px; font-style: normal; line-height: 20px; } fieldset { padding: 0; margin: 0; border: 0; } legend { display: block; width: 100%; padding: 0; margin-bottom: 20px; font-size: 21px; line-height: 40px; color: #333333; border: 0; border-bottom: 1px solid #e5e5e5; } legend small { font-size: 15px; color: #999999; } label, input, button, select, textarea { font-size: 14px; font-weight: normal; line-height: 20px; } input, button, select, textarea { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; } label { display: block; margin-bottom: 5px; } select, textarea, input.number, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input { display: inline-block; height: 20px; padding: 4px 6px; margin-bottom: 10px; font-size: 14px; line-height: 20px; color: #555555; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; vertical-align: middle; } input, textarea, .uneditable-input { width: 206px; } textarea { height: auto; } textarea, input.number, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input { background-color: #ffffff; border: 1px solid #cccccc; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-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 linear .2s, box-shadow linear .2s; -moz-transition: border linear .2s, box-shadow linear .2s; -o-transition: border linear .2s, box-shadow linear .2s; transition: border linear .2s, box-shadow linear .2s; } textarea:focus, input.number:focus, input[type="text"]:focus, input[type="password"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="date"]:focus, input[type="month"]:focus, input[type="time"]:focus, input[type="week"]:focus, input[type="number"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="color"]:focus, .uneditable-input:focus { border-color: rgba(82, 168, 236, 0.8); outline: 0; outline: thin dotted \9; /* IE6-9 */ -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6); -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6); box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6); } input[type="radio"], input[type="checkbox"] { margin: 4px 0 0; *margin-top: 0; /* IE7 */ margin-top: 1px \9; /* IE8-9 */ line-height: normal; } input[type="file"], input[type="image"], input[type="submit"], input[type="reset"], input[type="button"], input[type="radio"], input[type="checkbox"] { width: auto; } select, input[type="file"] { height: 30px; /* In IE7, the height of the select element cannot be changed by height, only font-size */ *margin-top: 4px; /* For IE7, add top margin to align select with labels */ line-height: 30px; } select { width: 220px; border: 1px solid #cccccc; background-color: #ffffff; } select[multiple], select[size] { height: auto; } select:focus, input[type="file"]:focus, input[type="radio"]:focus, input[type="checkbox"]:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } .uneditable-input, .uneditable-textarea { color: #999999; background-color: #fcfcfc; border-color: #cccccc; -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); cursor: not-allowed; } .uneditable-input { overflow: hidden; white-space: nowrap; } .uneditable-textarea { width: auto; height: auto; } input:-moz-placeholder, textarea:-moz-placeholder { color: #999999; } input:-ms-input-placeholder, textarea:-ms-input-placeholder { color: #999999; } input::-webkit-input-placeholder, textarea::-webkit-input-placeholder { color: #999999; } .radio, .checkbox { min-height: 20px; padding-left: 20px; } .radio input[type="radio"], .checkbox input[type="checkbox"] { float: left; margin-left: -20px; } .controls > .radio:first-child, .controls > .checkbox:first-child { padding-top: 5px; } .radio.inline, .checkbox.inline { display: inline-block; padding-top: 5px; margin-bottom: 0; vertical-align: middle; } .radio.inline + .radio.inline, .checkbox.inline + .checkbox.inline { margin-left: 10px; } .input-mini { width: 60px; } .input-small { width: 90px; } .input-medium { width: 150px; } .input-large { width: 210px; } .input-xlarge { width: 270px; } .input-xxlarge { width: 530px; } input[class*="span"], select[class*="span"], textarea[class*="span"], .uneditable-input[class*="span"], .row-fluid input[class*="span"], .row-fluid select[class*="span"], .row-fluid textarea[class*="span"], .row-fluid .uneditable-input[class*="span"] { float: none; margin-left: 0; } .input-append input[class*="span"], .input-append .uneditable-input[class*="span"], .input-prepend input[class*="span"], .input-prepend .uneditable-input[class*="span"], .row-fluid input[class*="span"], .row-fluid select[class*="span"], .row-fluid textarea[class*="span"], .row-fluid .uneditable-input[class*="span"], .row-fluid .input-prepend [class*="span"], .row-fluid .input-append [class*="span"] { display: inline-block; } input, textarea, .uneditable-input { margin-left: 0; } .controls-row [class*="span"] + [class*="span"] { margin-left: 20px; } input.span12, textarea.span12, .uneditable-input.span12 { width: 926px; } input.span11, textarea.span11, .uneditable-input.span11 { width: 846px; } input.span10, textarea.span10, .uneditable-input.span10 { width: 766px; } input.span9, textarea.span9, .uneditable-input.span9 { width: 686px; } input.span8, textarea.span8, .uneditable-input.span8 { width: 606px; } input.span7, textarea.span7, .uneditable-input.span7 { width: 526px; } input.span6, textarea.span6, .uneditable-input.span6 { width: 446px; } input.span5, textarea.span5, .uneditable-input.span5 { width: 366px; } input.span4, textarea.span4, .uneditable-input.span4 { width: 286px; } input.span3, textarea.span3, .uneditable-input.span3 { width: 206px; } input.span2, textarea.span2, .uneditable-input.span2 { width: 126px; } input.span1, textarea.span1, .uneditable-input.span1 { width: 46px; } .controls-row { *zoom: 1; } .controls-row:before, .controls-row:after { display: table; content: ""; line-height: 0; } .controls-row:after { clear: both; } .controls-row [class*="span"], .row-fluid .controls-row [class*="span"] { float: left; } .controls-row .checkbox[class*="span"], .controls-row .radio[class*="span"] { padding-top: 5px; } input[disabled], select[disabled], textarea[disabled], input[readonly], select[readonly], textarea[readonly] { cursor: not-allowed; background-color: #eeeeee; } input[type="radio"][disabled], input[type="checkbox"][disabled], input[type="radio"][readonly], input[type="checkbox"][readonly] { background-color: transparent; } .control-group.warning .control-label, .control-group.warning .help-block, .control-group.warning .help-inline { color: #c09853; } .control-group.warning .checkbox, .control-group.warning .radio, .control-group.warning input, .control-group.warning select, .control-group.warning textarea { color: #c09853; } .control-group.warning input, .control-group.warning select, .control-group.warning textarea { border-color: #c09853; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .control-group.warning input:focus, .control-group.warning select:focus, .control-group.warning textarea:focus { border-color: #a47e3c; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e; -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e; } .control-group.warning .input-prepend .add-on, .control-group.warning .input-append .add-on { color: #c09853; background-color: #fcf8e3; border-color: #c09853; } .control-group.error .control-label, .control-group.error .help-block, .control-group.error .help-inline { color: #b94a48; } .control-group.error .checkbox, .control-group.error .radio, .control-group.error input, .control-group.error select, .control-group.error textarea { color: #b94a48; } .control-group.error input, .control-group.error select, .control-group.error textarea { border-color: #b94a48; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .control-group.error input:focus, .control-group.error select:focus, .control-group.error textarea:focus { border-color: #953b39; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392; -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392; } .control-group.error .input-prepend .add-on, .control-group.error .input-append .add-on { color: #b94a48; background-color: #f2dede; border-color: #b94a48; } .control-group.success .control-label, .control-group.success .help-block, .control-group.success .help-inline { color: #468847; } .control-group.success .checkbox, .control-group.success .radio, .control-group.success input, .control-group.success select, .control-group.success textarea { color: #468847; } .control-group.success input, .control-group.success select, .control-group.success textarea { border-color: #468847; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .control-group.success input:focus, .control-group.success select:focus, .control-group.success textarea:focus { border-color: #356635; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b; -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b; } .control-group.success .input-prepend .add-on, .control-group.success .input-append .add-on { color: #468847; background-color: #dff0d8; border-color: #468847; } .control-group.info .control-label, .control-group.info .help-block, .control-group.info .help-inline { color: #3a87ad; } .control-group.info .checkbox, .control-group.info .radio, .control-group.info input, .control-group.info select, .control-group.info textarea { color: #3a87ad; } .control-group.info input, .control-group.info select, .control-group.info textarea { border-color: #3a87ad; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .control-group.info input:focus, .control-group.info select:focus, .control-group.info textarea:focus { border-color: #2d6987; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7ab5d3; -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7ab5d3; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7ab5d3; } .control-group.info .input-prepend .add-on, .control-group.info .input-append .add-on { color: #3a87ad; background-color: #d9edf7; border-color: #3a87ad; } input:focus:invalid, textarea:focus:invalid, select:focus:invalid { color: #b94a48; border-color: #ee5f5b; } input:focus:invalid:focus, textarea:focus:invalid:focus, select:focus:invalid:focus { border-color: #e9322d; -webkit-box-shadow: 0 0 6px #f8b9b7; -moz-box-shadow: 0 0 6px #f8b9b7; box-shadow: 0 0 6px #f8b9b7; } .form-actions { padding: 19px 20px 20px; margin-top: 20px; margin-bottom: 20px; background-color: #f5f5f5; border-top: 1px solid #e5e5e5; *zoom: 1; } .form-actions:before, .form-actions:after { display: table; content: ""; line-height: 0; } .form-actions:after { clear: both; } .help-block, .help-inline { color: #595959; } .help-block { display: block; margin-bottom: 10px; } .help-inline { display: inline-block; *display: inline; /* IE7 inline-block hack */ *zoom: 1; vertical-align: middle; padding-left: 5px; } .input-append, .input-prepend { display: inline-block; margin-bottom: 10px; vertical-align: middle; font-size: 0; white-space: nowrap; } .input-append input, .input-prepend input, .input-append select, .input-prepend select, .input-append .uneditable-input, .input-prepend .uneditable-input, .input-append .dropdown-menu, .input-prepend .dropdown-menu, .input-append .popover, .input-prepend .popover { font-size: 14px; } .input-append input, .input-prepend input, .input-append select, .input-prepend select, .input-append .uneditable-input, .input-prepend .uneditable-input { position: relative; margin-bottom: 0; *margin-left: 0; vertical-align: top; -webkit-border-radius: 0 4px 4px 0; -moz-border-radius: 0 4px 4px 0; border-radius: 0 4px 4px 0; } .input-append input:focus, .input-prepend input:focus, .input-append select:focus, .input-prepend select:focus, .input-append .uneditable-input:focus, .input-prepend .uneditable-input:focus { z-index: 2; } .input-append .add-on, .input-prepend .add-on { display: inline-block; width: auto; height: 20px; min-width: 16px; padding: 4px 5px; font-size: 14px; font-weight: normal; line-height: 20px; text-align: center; text-shadow: 0 1px 0 #ffffff; background-color: #eeeeee; border: 1px solid #ccc; } .input-append .add-on, .input-prepend .add-on, .input-append .btn, .input-prepend .btn, .input-append .btn-group > .dropdown-toggle, .input-prepend .btn-group > .dropdown-toggle { vertical-align: top; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .input-append .active, .input-prepend .active { background-color: #a9dba9; border-color: #46a546; } .input-prepend .add-on, .input-prepend .btn { margin-right: -1px; } .input-prepend .add-on:first-child, .input-prepend .btn:first-child { -webkit-border-radius: 4px 0 0 4px; -moz-border-radius: 4px 0 0 4px; border-radius: 4px 0 0 4px; } .input-append input, .input-append select, .input-append .uneditable-input { -webkit-border-radius: 4px 0 0 4px; -moz-border-radius: 4px 0 0 4px; border-radius: 4px 0 0 4px; } .input-append input + .btn-group .btn:last-child, .input-append select + .btn-group .btn:last-child, .input-append .uneditable-input + .btn-group .btn:last-child { -webkit-border-radius: 0 4px 4px 0; -moz-border-radius: 0 4px 4px 0; border-radius: 0 4px 4px 0; } .input-append .add-on, .input-append .btn, .input-append .btn-group { margin-left: -1px; } .input-append .add-on:last-child, .input-append .btn:last-child, .input-append .btn-group:last-child > .dropdown-toggle { -webkit-border-radius: 0 4px 4px 0; -moz-border-radius: 0 4px 4px 0; border-radius: 0 4px 4px 0; } .input-prepend.input-append input, .input-prepend.input-append select, .input-prepend.input-append .uneditable-input { -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .input-prepend.input-append input + .btn-group .btn, .input-prepend.input-append select + .btn-group .btn, .input-prepend.input-append .uneditable-input + .btn-group .btn { -webkit-border-radius: 0 4px 4px 0; -moz-border-radius: 0 4px 4px 0; border-radius: 0 4px 4px 0; } .input-prepend.input-append .add-on:first-child, .input-prepend.input-append .btn:first-child { margin-right: -1px; -webkit-border-radius: 4px 0 0 4px; -moz-border-radius: 4px 0 0 4px; border-radius: 4px 0 0 4px; } .input-prepend.input-append .add-on:last-child, .input-prepend.input-append .btn:last-child { margin-left: -1px; -webkit-border-radius: 0 4px 4px 0; -moz-border-radius: 0 4px 4px 0; border-radius: 0 4px 4px 0; } .input-prepend.input-append .btn-group:first-child { margin-left: 0; } input.search-query { padding-right: 14px; padding-right: 4px \9; padding-left: 14px; padding-left: 4px \9; /* IE7-8 doesn't have border-radius, so don't indent the padding */ margin-bottom: 0; -webkit-border-radius: 15px; -moz-border-radius: 15px; border-radius: 15px; } /* Allow for input prepend/append in search forms */ .form-search .input-append .search-query, .form-search .input-prepend .search-query { -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .form-search .input-append .search-query { -webkit-border-radius: 14px 0 0 14px; -moz-border-radius: 14px 0 0 14px; border-radius: 14px 0 0 14px; } .form-search .input-append .btn { -webkit-border-radius: 0 14px 14px 0; -moz-border-radius: 0 14px 14px 0; border-radius: 0 14px 14px 0; } .form-search .input-prepend .search-query { -webkit-border-radius: 0 14px 14px 0; -moz-border-radius: 0 14px 14px 0; border-radius: 0 14px 14px 0; } .form-search .input-prepend .btn { -webkit-border-radius: 14px 0 0 14px; -moz-border-radius: 14px 0 0 14px; border-radius: 14px 0 0 14px; } .form-search input, .form-inline input, .form-horizontal input, .form-search textarea, .form-inline textarea, .form-horizontal textarea, .form-search select, .form-inline select, .form-horizontal select, .form-search .help-inline, .form-inline .help-inline, .form-horizontal .help-inline, .form-search .uneditable-input, .form-inline .uneditable-input, .form-horizontal .uneditable-input, .form-search .input-prepend, .form-inline .input-prepend, .form-horizontal .input-prepend, .form-search .input-append, .form-inline .input-append, .form-horizontal .input-append { display: inline-block; *display: inline; /* IE7 inline-block hack */ *zoom: 1; margin-bottom: 0; vertical-align: middle; } .form-search .hide, .form-inline .hide, .form-horizontal .hide { display: none; } .form-search label, .form-inline label, .form-search .btn-group, .form-inline .btn-group { display: inline-block; } .form-search .input-append, .form-inline .input-append, .form-search .input-prepend, .form-inline .input-prepend { margin-bottom: 0; } .form-search .radio, .form-search .checkbox, .form-inline .radio, .form-inline .checkbox { padding-left: 0; margin-bottom: 0; vertical-align: middle; } .form-search .radio input[type="radio"], .form-search .checkbox input[type="checkbox"], .form-inline .radio input[type="radio"], .form-inline .checkbox input[type="checkbox"] { float: left; margin-right: 3px; margin-left: 0; } .control-group { margin-bottom: 10px; } legend + .control-group { margin-top: 20px; -webkit-margin-top-collapse: separate; } .form-horizontal .control-group { margin-bottom: 20px; *zoom: 1; } .form-horizontal .control-group:before, .form-horizontal .control-group:after { display: table; content: ""; line-height: 0; } .form-horizontal .control-group:after { clear: both; } .form-horizontal .control-label { float: left; width: 160px; padding-top: 5px; text-align: right; } .form-horizontal .controls { *display: inline-block; *padding-left: 20px; margin-left: 180px; *margin-left: 0; } .form-horizontal .controls:first-child { *padding-left: 180px; } .form-horizontal .help-block { margin-bottom: 0; } .form-horizontal input + .help-block, .form-horizontal select + .help-block, .form-horizontal textarea + .help-block, .form-horizontal .uneditable-input + .help-block, .form-horizontal .input-prepend + .help-block, .form-horizontal .input-append + .help-block { margin-top: 10px; } .form-horizontal .form-actions { padding-left: 180px; } .dropup, .dropdown { position: relative; } .dropdown-toggle { *margin-bottom: -3px; } .dropdown-toggle:active, .open .dropdown-toggle { outline: 0; } .caret { display: inline-block; width: 0; height: 0; vertical-align: top; border-top: 4px solid #000000; border-right: 4px solid transparent; border-left: 4px solid transparent; content: ""; } .dropdown .caret { margin-top: 8px; margin-left: 2px; } .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; background-color: #ffffff; border: 1px solid #ccc; border: 1px solid rgba(0, 0, 0, 0.2); *border-right-width: 2px; *border-bottom-width: 2px; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); -webkit-background-clip: padding-box; -moz-background-clip: padding; background-clip: padding-box; } .dropdown-menu.pull-right { right: 0; left: auto; } .dropdown-menu .divider { *width: 100%; height: 1px; margin: 9px 1px; *margin: -5px 0 5px; overflow: hidden; background-color: #e5e5e5; border-bottom: 1px solid #ffffff; } .dropdown-menu > li > a { display: block; padding: 3px 20px; clear: both; font-weight: normal; line-height: 20px; color: #333333 !important; white-space: nowrap; } .dropdown-menu.disabled { text-decoration: none !important; background-color: #eeeeee !important; background-image: none; filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); cursor: not-allowed !important; color: black !important; border: solid 1px #cccccc; border-radius: 5px; background: #eeeeee !important; } .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus, .dropdown-submenu:hover > a, .dropdown-submenu:focus > a { text-decoration: none; color: #ffffff !important; background-color: #0081c2; background-image: -moz-linear-gradient(top, #0088cc, #0077b3); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3)); background-image: -webkit-linear-gradient(top, #0088cc, #0077b3); background-image: -o-linear-gradient(top, #0088cc, #0077b3); background-image: linear-gradient(to bottom, #0088cc, #0077b3); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0); } .dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus { color: #ffffff !important; text-decoration: none; outline: 0; background-color: #0081c2; background-image: -moz-linear-gradient(top, #0088cc, #0077b3); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3)); background-image: -webkit-linear-gradient(top, #0088cc, #0077b3); background-image: -o-linear-gradient(top, #0088cc, #0077b3); background-image: linear-gradient(to bottom, #0088cc, #0077b3); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0); } .dropdown-menu > .disabled > li > a, .dropdown-menu > .disabled > li > a:hover, .dropdown-menu > .disabled > li > a:focus { text-decoration: none !important; background-color: #eeeeee !important; background-image: none; filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); cursor: not-allowed !important; color: black !important; border: solid 1px #cccccc; border-radius: 5px; background: #eeeeee !important; } .dropdown-menu > .disabled > li > a:hover, .dropdown-menu > .disabled > li > a:focus { text-decoration: none !important; background-color: #eeeeee !important; background-image: none; filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); cursor: not-allowed !important; color: black !important; border: solid 1px #cccccc; border-radius: 5px; background: #eeeeee !important; } .dropdown-menu.disabled > li > a:hover { text-decoration: none !important; background-color: #eeeeee !important; background-image: none; filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); cursor: not-allowed !important; color: black !important; border: solid 1px #cccccc; border-radius: 5px; background: #eeeeee !important; } .open { *z-index: 1000; } .open > .dropdown-menu { display: block; } .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 solid #000000; content: ""; } .dropup .dropdown-menu, .navbar-fixed-bottom .dropdown .dropdown-menu { top: auto; bottom: 100%; margin-bottom: 1px; } .dropdown-submenu { position: relative; } .dropdown-submenu > .dropdown-menu { top: 0; left: 100%; margin-top: -6px; margin-left: -1px; -webkit-border-radius: 0 6px 6px 6px; -moz-border-radius: 0 6px 6px 6px; border-radius: 0 6px 6px 6px; } .dropdown-submenu:hover > .dropdown-menu { display: block; } .dropup .dropdown-submenu > .dropdown-menu { top: auto; bottom: 0; margin-top: 0; margin-bottom: -2px; -webkit-border-radius: 5px 5px 5px 0; -moz-border-radius: 5px 5px 5px 0; border-radius: 5px 5px 5px 0; } .dropdown-submenu > a:after { display: block; content: " "; float: right; width: 0; height: 0; border-color: transparent; border-style: solid; border-width: 5px 0 5px 5px; border-left-color: #cccccc; margin-top: 5px; margin-right: -10px; } .dropdown-submenu:hover > a:after { border-left-color: #ffffff; } .dropdown-submenu.pull-left { float: none; } .dropdown-submenu.pull-left > .dropdown-menu { left: -100%; margin-left: 10px; -webkit-border-radius: 6px 0 6px 6px; -moz-border-radius: 6px 0 6px 6px; border-radius: 6px 0 6px 6px; } .dropdown .dropdown-menu .nav-header { padding-left: 20px; padding-right: 20px; } .typeahead { z-index: 1051; margin-top: 2px; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } .fade { opacity: 0; -webkit-transition: opacity 0.15s linear; -moz-transition: opacity 0.15s linear; -o-transition: opacity 0.15s linear; transition: opacity 0.15s linear; } .fade.in { opacity: 1; } .collapse { position: relative; height: 0; overflow: hidden; -webkit-transition: height 0.35s ease; -moz-transition: height 0.35s ease; -o-transition: height 0.35s ease; transition: height 0.35s ease; } .collapse.in { height: auto; } .close { font-size: 20px; font-weight: bold; line-height: 20px; color: #000000; text-shadow: 0 1px 0 #ffffff; opacity: 0.2; filter: alpha(opacity=20); } .close:hover, .close:focus { color: #000000; text-decoration: none; cursor: pointer; opacity: 0.4; filter: alpha(opacity=40); } button.close { padding: 0; cursor: pointer; background: transparent; border: 0; -webkit-appearance: none; } /** * bootstrap-multiselect.less * https://github.com/davidstutz/bootstrap-multiselect * * Copyright 2012 - 2014 David Stutz * * Dual licensed under the BSD-3-Clause and the Apache License, Version 2.0. */ .multiselect-container { position: absolute; list-style-type: none; margin: 0; padding: 0; } .multiselect-container .input-group { margin: 5px; } .multiselect-container > li { padding: 0; } .multiselect-container > li > a.multiselect-all label { font-weight: bold; } .multiselect-container > li > label.multiselect-group { margin: 0; padding: 3px 20px 3px 20px; height: 100%; font-weight: bold; } .multiselect-container > li > a { padding: 0; } .multiselect-container > li > a > label { margin: 0; height: 100%; cursor: pointer; font-weight: normal; padding: 3px 20px 3px 40px; } .multiselect-container > li > a > label.radio, .multiselect-container > li > a > label.checkbox { margin: 0; } .multiselect-container > li > a > label > input[type="checkbox"] { margin-bottom: 5px; } .btn-group > .btn-group:nth-child(2) > .multiselect.btn { border-top-left-radius: 4px; border-bottom-left-radius: 4px; } .btn { display: inline-block; *display: inline; /* IE7 inline-block hack */ *zoom: 1; padding: 4px 12px; margin-bottom: 0; font-size: 14px; line-height: 20px; text-align: center; vertical-align: middle; cursor: pointer; color: #333333; text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75); background-color: #f5f5f5; background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6)); background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6); background-image: -o-linear-gradient(top, #ffffff, #e6e6e6); background-image: linear-gradient(to bottom, #ffffff, #e6e6e6); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0); border-color: #e6e6e6 #e6e6e6 #bfbfbf; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); *background-color: #e6e6e6; /* Darken IE7 buttons by default so they stand out more given they won't have borders */ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); border: 1px solid #cccccc; *border: 0; border-bottom-color: #b3b3b3; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; *margin-left: .3em; -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05); -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05); } .btn:hover, .btn:focus, .btn:active, .btn.active, .btn.disabled, .btn[disabled] { color: #333333; background-color: #e6e6e6; *background-color: #d9d9d9; } .btn:active, .btn.active { background-color: #cccccc \9; } .btn:first-child { *margin-left: 0; } .btn:hover, .btn:focus { color: #333333; text-decoration: none; background-position: 0 -15px; -webkit-transition: background-position 0.1s linear; -moz-transition: background-position 0.1s linear; -o-transition: background-position 0.1s linear; transition: background-position 0.1s linear; } .btn:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } .btn.active, .btn:active { background-image: none; background-color: #27aae1; color: #FFFFFF; outline: 0; -webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05); -moz-box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05); box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05); } .btn.disabled, .btn[disabled] { cursor: default; background-image: none; opacity: 0.65; filter: alpha(opacity=65); -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; color: #555555; } .btn-large { padding: 11px 19px; font-size: 17.5px; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; } .btn-large [class^="icon-"], .btn-large [class*=" icon-"] { margin-top: 4px; } .btn-small { padding: 2px 10px; font-size: 11.9px; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } .btn-small [class^="icon-"], .btn-small [class*=" icon-"] { margin-top: 0; } .btn-mini [class^="icon-"], .btn-mini [class*=" icon-"] { margin-top: -1px; } .btn-mini { padding: 0 6px; font-size: 10.5px; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } .btn-block { display: block; width: 100%; padding-left: 0; padding-right: 0; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .btn-block + .btn-block { margin-top: 5px; } input[type="submit"].btn-block, input[type="reset"].btn-block, input[type="button"].btn-block { width: 100%; } .btn-primary.active, .btn-warning.active, .btn-danger.active, .btn-success.active, .btn-info.active, .btn-inverse.active { color: rgba(255, 255, 255, 0.75); } .btn-primary { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #006dcc; background-image: -moz-linear-gradient(top, #0088cc, #0044cc); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc)); background-image: -webkit-linear-gradient(top, #0088cc, #0044cc); background-image: -o-linear-gradient(top, #0088cc, #0044cc); background-image: linear-gradient(to bottom, #0088cc, #0044cc); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0044cc', GradientType=0); border-color: #0044cc #0044cc #002a80; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); *background-color: #0044cc; /* Darken IE7 buttons by default so they stand out more given they won't have borders */ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); } .btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .btn-primary.disabled, .btn-primary[disabled] { color: #ffffff; background-color: #0044cc; *background-color: #003bb3; } .btn-primary:active, .btn-primary.active { background-color: #003399 \9; } .btn-warning { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #faa732; background-image: -moz-linear-gradient(top, #fbb450, #f89406); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406)); background-image: -webkit-linear-gradient(top, #fbb450, #f89406); background-image: -o-linear-gradient(top, #fbb450, #f89406); background-image: linear-gradient(to bottom, #fbb450, #f89406); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450', endColorstr='#fff89406', GradientType=0); border-color: #f89406 #f89406 #ad6704; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); *background-color: #f89406; /* Darken IE7 buttons by default so they stand out more given they won't have borders */ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); } .btn-warning:hover, .btn-warning:focus, .btn-warning:active, .btn-warning.active, .btn-warning.disabled, .btn-warning[disabled] { color: #ffffff; background-color: #f89406; *background-color: #df8505; } .btn-warning:active, .btn-warning.active { background-color: #c67605 \9; } .btn-danger { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #da4f49; background-image: -moz-linear-gradient(top, #ee5f5b, #bd362f); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#bd362f)); background-image: -webkit-linear-gradient(top, #ee5f5b, #bd362f); background-image: -o-linear-gradient(top, #ee5f5b, #bd362f); background-image: linear-gradient(to bottom, #ee5f5b, #bd362f); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b', endColorstr='#ffbd362f', GradientType=0); border-color: #bd362f #bd362f #802420; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); *background-color: #bd362f; /* Darken IE7 buttons by default so they stand out more given they won't have borders */ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); } .btn-danger:hover, .btn-danger:focus, .btn-danger:active, .btn-danger.active, .btn-danger.disabled, .btn-danger[disabled] { color: #ffffff; background-color: #bd362f; *background-color: #a9302a; } .btn-danger:active, .btn-danger.active { background-color: #942a25 \9; } .btn-success { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #5bb75b; background-image: -moz-linear-gradient(top, #62c462, #51a351); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#51a351)); background-image: -webkit-linear-gradient(top, #62c462, #51a351); background-image: -o-linear-gradient(top, #62c462, #51a351); background-image: linear-gradient(to bottom, #62c462, #51a351); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62c462', endColorstr='#ff51a351', GradientType=0); border-color: #51a351 #51a351 #387038; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); *background-color: #51a351; /* Darken IE7 buttons by default so they stand out more given they won't have borders */ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); } .btn-success:hover, .btn-success:focus, .btn-success:active, .btn-success.active, .btn-success.disabled, .btn-success[disabled] { color: #ffffff; background-color: #51a351; *background-color: #499249; } .btn-success:active, .btn-success.active { background-color: #408140 \9; } .btn-info { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #49afcd; background-image: -moz-linear-gradient(top, #5bc0de, #2f96b4); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#2f96b4)); background-image: -webkit-linear-gradient(top, #5bc0de, #2f96b4); background-image: -o-linear-gradient(top, #5bc0de, #2f96b4); background-image: linear-gradient(to bottom, #5bc0de, #2f96b4); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2f96b4', GradientType=0); border-color: #2f96b4 #2f96b4 #1f6377; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); *background-color: #2f96b4; /* Darken IE7 buttons by default so they stand out more given they won't have borders */ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); } .btn-info:hover, .btn-info:focus, .btn-info:active, .btn-info.active, .btn-info.disabled, .btn-info[disabled] { color: #ffffff; background-color: #2f96b4; *background-color: #2a85a0; } .btn-info:active, .btn-info.active { background-color: #24748c \9; } .btn-inverse { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #363636; background-image: -moz-linear-gradient(top, #444444, #222222); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#444444), to(#222222)); background-image: -webkit-linear-gradient(top, #444444, #222222); background-image: -o-linear-gradient(top, #444444, #222222); background-image: linear-gradient(to bottom, #444444, #222222); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff444444', endColorstr='#ff222222', GradientType=0); border-color: #222222 #222222 #000000; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); *background-color: #222222; /* Darken IE7 buttons by default so they stand out more given they won't have borders */ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); } .btn-inverse:hover, .btn-inverse:focus, .btn-inverse:active, .btn-inverse.active, .btn-inverse.disabled, .btn-inverse[disabled] { color: #ffffff; background-color: #222222; *background-color: #151515; } .btn-inverse:active, .btn-inverse.active { background-color: #080808 \9; } button.btn, input[type="submit"].btn { *padding-top: 3px; *padding-bottom: 3px; } button.btn::-moz-focus-inner, input[type="submit"].btn::-moz-focus-inner { padding: 0; border: 0; } button.btn.btn-large, input[type="submit"].btn.btn-large { *padding-top: 7px; *padding-bottom: 7px; } button.btn.btn-small, input[type="submit"].btn.btn-small { *padding-top: 3px; *padding-bottom: 3px; } button.btn.btn-mini, input[type="submit"].btn.btn-mini { *padding-top: 1px; *padding-bottom: 1px; } .btn-link, .btn-link:active, .btn-link[disabled] { background-color: transparent; background-image: none; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .btn-link { border-color: transparent; cursor: pointer; color: #0088cc; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .btn-link:hover, .btn-link:focus { color: #005580; text-decoration: underline; background-color: transparent; } .btn-link[disabled]:hover, .btn-link[disabled]:focus { color: #333333; text-decoration: none; } .btn-group { position: relative; display: inline-block; *display: inline; /* IE7 inline-block hack */ *zoom: 1; font-size: 0; vertical-align: middle; white-space: nowrap; *margin-left: .3em; } .btn-group:first-child { *margin-left: 0; } .btn-group + .btn-group { margin-left: 5px; } .btn-toolbar { font-size: 0; margin-top: 10px; margin-bottom: 10px; } .btn-toolbar > .btn + .btn, .btn-toolbar > .btn-group + .btn, .btn-toolbar > .btn + .btn-group { margin-left: 5px; } .btn-group > .btn { position: relative; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .btn-group > .btn + .btn { margin-left: -1px; } .btn-group > .btn, .btn-group > .dropdown-menu, .btn-group > .popover { font-size: 14px; } .btn-group > .btn-mini { font-size: 10.5px; } .btn-group > .btn-small { font-size: 11.9px; } .btn-group > .btn-large { font-size: 17.5px; } .btn-group > .btn:first-child { margin-left: 0; -webkit-border-top-left-radius: 4px; -moz-border-radius-topleft: 4px; border-top-left-radius: 4px; -webkit-border-bottom-left-radius: 4px; -moz-border-radius-bottomleft: 4px; border-bottom-left-radius: 4px; } .btn-group > .btn:last-child, .btn-group > .dropdown-toggle { -webkit-border-top-right-radius: 4px; -moz-border-radius-topright: 4px; border-top-right-radius: 4px; -webkit-border-bottom-right-radius: 4px; -moz-border-radius-bottomright: 4px; border-bottom-right-radius: 4px; } .btn-group > .btn.large:first-child { margin-left: 0; -webkit-border-top-left-radius: 6px; -moz-border-radius-topleft: 6px; border-top-left-radius: 6px; -webkit-border-bottom-left-radius: 6px; -moz-border-radius-bottomleft: 6px; border-bottom-left-radius: 6px; } .btn-group > .btn.large:last-child, .btn-group > .large.dropdown-toggle { -webkit-border-top-right-radius: 6px; -moz-border-radius-topright: 6px; border-top-right-radius: 6px; -webkit-border-bottom-right-radius: 6px; -moz-border-radius-bottomright: 6px; border-bottom-right-radius: 6px; } .btn-group > .btn:hover, .btn-group > .btn:focus, .btn-group > .btn:active, .btn-group > .btn.active { z-index: 2; } .btn-group .dropdown-toggle:active, .btn-group.open .dropdown-toggle { outline: 0; } .btn-group > .btn + .dropdown-toggle { padding-left: 8px; padding-right: 8px; -webkit-box-shadow: inset 1px 0 0 rgba(255,255,255,.125), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05); -moz-box-shadow: inset 1px 0 0 rgba(255,255,255,.125), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05); box-shadow: inset 1px 0 0 rgba(255,255,255,.125), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05); *padding-top: 5px; *padding-bottom: 5px; } .btn-group > .btn-mini + .dropdown-toggle { padding-left: 5px; padding-right: 5px; *padding-top: 2px; *padding-bottom: 2px; } .btn-group > .btn-small + .dropdown-toggle { *padding-top: 5px; *padding-bottom: 4px; } .btn-group > .btn-large + .dropdown-toggle { padding-left: 12px; padding-right: 12px; *padding-top: 7px; *padding-bottom: 7px; } .btn-group.open .dropdown-toggle { background-image: none; -webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05); -moz-box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05); box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05); } .btn-group.open .btn.dropdown-toggle { background-color: #e6e6e6; } .btn-group.open .btn-primary.dropdown-toggle { background-color: #0044cc; } .btn-group.open .btn-warning.dropdown-toggle { background-color: #f89406; } .btn-group.open .btn-danger.dropdown-toggle { background-color: #bd362f; } .btn-group.open .btn-success.dropdown-toggle { background-color: #51a351; } .btn-group.open .btn-info.dropdown-toggle { background-color: #2f96b4; } .btn-group.open .btn-inverse.dropdown-toggle { background-color: #222222; } .btn .caret { margin-top: 8px; margin-left: 0; } .btn-large .caret { margin-top: 6px; } .btn-large .caret { border-left-width: 5px; border-right-width: 5px; border-top-width: 5px; } .btn-mini .caret, .btn-small .caret { margin-top: 8px; } .dropup .btn-large .caret { border-bottom-width: 5px; } .btn-primary .caret, .btn-warning .caret, .btn-danger .caret, .btn-info .caret, .btn-success .caret, .btn-inverse .caret { border-top-color: #ffffff; border-bottom-color: #ffffff; } .btn-group-vertical { display: inline-block; *display: inline; /* IE7 inline-block hack */ *zoom: 1; } .btn-group-vertical > .btn { display: block; float: none; max-width: 100%; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .btn-group-vertical > .btn + .btn { margin-left: 0; margin-top: -1px; } .btn-group-vertical > .btn:first-child { -webkit-border-radius: 4px 4px 0 0; -moz-border-radius: 4px 4px 0 0; border-radius: 4px 4px 0 0; } .btn-group-vertical > .btn:last-child { -webkit-border-radius: 0 0 4px 4px; -moz-border-radius: 0 0 4px 4px; border-radius: 0 0 4px 4px; } .btn-group-vertical > .btn-large:first-child { -webkit-border-radius: 6px 6px 0 0; -moz-border-radius: 6px 6px 0 0; border-radius: 6px 6px 0 0; } .btn-group-vertical > .btn-large:last-child { -webkit-border-radius: 0 0 6px 6px; -moz-border-radius: 0 0 6px 6px; border-radius: 0 0 6px 6px; } .alert { padding: 8px 35px 8px 14px; /* margin-bottom: @baseLineHeight; */ margin-bottom: 1px; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); background-color: #fcf8e3; border: 1px solid #fbeed5; border-radius: 0; /*.border-radius(@baseBorderRadius);*/ } .alert:last-of-type { border-radius: 0 0 7px 7px; margin-bottom: 5px; } .alert, .alert h4 { color: #c09853; } .alert h4 { margin: 0; } .alert .close { position: absolute; top: 10px; right: 15px; line-height: 20px; } .alert-success { background-color: #dff0d8; border-color: #d6e9c6; color: #468847; } .alert-success h4 { color: #468847; } .alert-danger, .alert-error { background-color: #f2dede; border-color: #eed3d7; color: #b94a48; } .alert-danger h4, .alert-error h4 { color: #b94a48; } .alert-info { background-color: #d9edf7; border-color: #bce8f1; color: #3a87ad; } .alert-info h4 { color: #3a87ad; } .alert-block { padding-top: 14px; padding-bottom: 14px; } .alert-block > p, .alert-block > ul { margin-bottom: 0; } .alert-block p + p { margin-top: 5px; } .alert.notification { position: relative; } .breadcrumb { padding: 8px 15px; margin: 0 0 20px; list-style: none; background-color: #f5f5f5; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } .breadcrumb > li { display: inline-block; *display: inline; /* IE7 inline-block hack */ *zoom: 1; text-shadow: 0 1px 0 #ffffff; } .breadcrumb > li > .divider { padding: 0 5px; color: #ccc; } .breadcrumb > .active { color: #999999; } .pagination { margin: 20px 0; } .pagination ul { display: inline-block; *display: inline; /* IE7 inline-block hack */ *zoom: 1; margin-left: 0; margin-bottom: 0; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); } .pagination ul > li { display: inline; } .pagination ul > li > a, .pagination ul > li > span { float: left; padding: 4px 12px; line-height: 20px; text-decoration: none; background-color: #ffffff; border: 1px solid #dddddd; border-left-width: 0; } .pagination ul > li > a:hover, .pagination ul > li > a:focus, .pagination ul > .active > a, .pagination ul > .active > span { background-color: #f5f5f5; } .pagination ul > .active > a, .pagination ul > .active > span { color: #999999; cursor: default; } .pagination ul > .disabled > span, .pagination ul > .disabled > a, .pagination ul > .disabled > a:hover, .pagination ul > .disabled > a:focus { color: #999999; background-color: transparent; cursor: default; } .pagination ul > li:first-child > a, .pagination ul > li:first-child > span { border-left-width: 1px; -webkit-border-top-left-radius: 4px; -moz-border-radius-topleft: 4px; border-top-left-radius: 4px; -webkit-border-bottom-left-radius: 4px; -moz-border-radius-bottomleft: 4px; border-bottom-left-radius: 4px; } .pagination ul > li:last-child > a, .pagination ul > li:last-child > span { -webkit-border-top-right-radius: 4px; -moz-border-radius-topright: 4px; border-top-right-radius: 4px; -webkit-border-bottom-right-radius: 4px; -moz-border-radius-bottomright: 4px; border-bottom-right-radius: 4px; } .pagination-centered { text-align: center; } .pagination-right { text-align: right; } .pagination-large ul > li > a, .pagination-large ul > li > span { padding: 11px 19px; font-size: 17.5px; } .pagination-large ul > li:first-child > a, .pagination-large ul > li:first-child > span { -webkit-border-top-left-radius: 6px; -moz-border-radius-topleft: 6px; border-top-left-radius: 6px; -webkit-border-bottom-left-radius: 6px; -moz-border-radius-bottomleft: 6px; border-bottom-left-radius: 6px; } .pagination-large ul > li:last-child > a, .pagination-large ul > li:last-child > span { -webkit-border-top-right-radius: 6px; -moz-border-radius-topright: 6px; border-top-right-radius: 6px; -webkit-border-bottom-right-radius: 6px; -moz-border-radius-bottomright: 6px; border-bottom-right-radius: 6px; } .pagination-mini ul > li:first-child > a, .pagination-small ul > li:first-child > a, .pagination-mini ul > li:first-child > span, .pagination-small ul > li:first-child > span { -webkit-border-top-left-radius: 3px; -moz-border-radius-topleft: 3px; border-top-left-radius: 3px; -webkit-border-bottom-left-radius: 3px; -moz-border-radius-bottomleft: 3px; border-bottom-left-radius: 3px; } .pagination-mini ul > li:last-child > a, .pagination-small ul > li:last-child > a, .pagination-mini ul > li:last-child > span, .pagination-small ul > li:last-child > span { -webkit-border-top-right-radius: 3px; -moz-border-radius-topright: 3px; border-top-right-radius: 3px; -webkit-border-bottom-right-radius: 3px; -moz-border-radius-bottomright: 3px; border-bottom-right-radius: 3px; } .pagination-small ul > li > a, .pagination-small ul > li > span { padding: 2px 10px; font-size: 11.9px; } .pagination-mini ul > li > a, .pagination-mini ul > li > span { padding: 0 6px; font-size: 10.5px; } .modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1040; background-color: #000000; } .modal-backdrop.fade { opacity: 0; } .modal-backdrop, .modal-backdrop.fade.in { opacity: 0.8; filter: alpha(opacity=80); } .modal { position: fixed; top: 10%; left: 50%; z-index: 1050; width: 560px; margin-left: -280px; background-color: #ffffff; border: 1px solid #999; border: 1px solid rgba(0, 0, 0, 0.3); *border: 1px solid #999; /* IE6-7 */ -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; -webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); -moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); -webkit-background-clip: padding-box; -moz-background-clip: padding-box; background-clip: padding-box; outline: none; } .modal.fade { -webkit-transition: opacity .3s linear, top .3s ease-out; -moz-transition: opacity .3s linear, top .3s ease-out; -o-transition: opacity .3s linear, top .3s ease-out; transition: opacity .3s linear, top .3s ease-out; top: -25%; } .modal.fade.in { top: 10%; } .modal-header { padding: 9px 15px; border-bottom: 1px solid #eee; } .modal-header .close { margin-top: 2px; } .modal-header h3 { margin: 0; line-height: 30px; } .modal-body { position: relative; overflow-y: auto; max-height: 650px; padding: 15px; } .modal-form { margin-bottom: 0; } .modal-footer { padding: 14px 15px 15px; margin-bottom: 0; text-align: right; background-color: #f5f5f5; border-top: 1px solid #ddd; -webkit-border-radius: 0 0 6px 6px; -moz-border-radius: 0 0 6px 6px; border-radius: 0 0 6px 6px; -webkit-box-shadow: inset 0 1px 0 #ffffff; -moz-box-shadow: inset 0 1px 0 #ffffff; box-shadow: inset 0 1px 0 #ffffff; *zoom: 1; } .modal-footer:before, .modal-footer:after { display: table; content: ""; line-height: 0; } .modal-footer:after { clear: both; } .modal-footer .btn + .btn { margin-left: 5px; margin-bottom: 0; margin-top: 0; } .modal-footer .btn-group .btn + .btn { margin-left: -1px; } .modal-footer .btn-block + .btn-block { margin-left: 0; } .sessionManagerModal { position: fixed; top: 10%; left: 50%; z-index: 1050; width: 560px; margin-left: -280px; background-color: #ffffff; border: 1px solid #999; border: 1px solid rgba(0, 0, 0, 0.3); *border: 1px solid #999; /* IE6-7 */ -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; -webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); -moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); -webkit-background-clip: padding-box; -moz-background-clip: padding-box; background-clip: padding-box; outline: none; text-align: center; padding-bottom: 10px; width: 350px; } .sessionManagerModal.fade { -webkit-transition: opacity .3s linear, top .3s ease-out; -moz-transition: opacity .3s linear, top .3s ease-out; -o-transition: opacity .3s linear, top .3s ease-out; transition: opacity .3s linear, top .3s ease-out; top: -25%; } .sessionManagerModal.fade.in { top: 10%; } .sessionManagerModal.fade.in { top: 30%; } .sessionManagerModal .modal-header { background-color: #e8e8e8; border-top-left-radius: 6px; border-top-right-radius: 6px; font-size: 20px; font-weight: bold; } .sessionManagerModal .btn + .btn { margin-left: 5px; } .tooltip { position: absolute; z-index: 1030; display: block; visibility: visible; font-size: 11px; line-height: 1.4; opacity: 0; filter: alpha(opacity=0); } .tooltip.in { opacity: 0.8; filter: alpha(opacity=80); } .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: 8px; color: #ffffff; text-align: center; text-decoration: none; background-color: #000000; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } .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: #000000; } .tooltip.right .tooltip-arrow { top: 50%; left: 0; margin-top: -5px; border-width: 5px 5px 5px 0; border-right-color: #000000; } .tooltip.left .tooltip-arrow { top: 50%; right: 0; margin-top: -5px; border-width: 5px 0 5px 5px; border-left-color: #000000; } .tooltip.bottom .tooltip-arrow { top: 0; left: 50%; margin-left: -5px; border-width: 0 5px 5px; border-bottom-color: #000000; } .popover { position: absolute; top: 0; left: 0; z-index: 1010; display: none; max-width: 276px; padding: 1px; text-align: left; background-color: #ffffff; -webkit-background-clip: padding-box; -moz-background-clip: padding; background-clip: padding-box; border: 1px solid #ccc; border: 1px solid rgba(0, 0, 0, 0.2); -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); white-space: normal; } .popover.top { margin-top: -10px; } .popover.right { margin-left: 10px; } .popover.bottom { margin-top: 10px; } .popover.left { margin-left: -10px; } .popover-title { margin: 0; padding: 8px 14px; font-size: 14px; font-weight: normal; line-height: 18px; background-color: #f7f7f7; border-bottom: 1px solid #ebebeb; -webkit-border-radius: 5px 5px 0 0; -moz-border-radius: 5px 5px 0 0; border-radius: 5px 5px 0 0; } .popover-title:empty { display: none; } .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: #999; border-top-color: rgba(0, 0, 0, 0.25); bottom: -11px; } .popover.top .arrow:after { bottom: 1px; margin-left: -10px; border-bottom-width: 0; border-top-color: #ffffff; } .popover.right .arrow { top: 50%; left: -11px; margin-top: -11px; border-left-width: 0; border-right-color: #999; border-right-color: rgba(0, 0, 0, 0.25); } .popover.right .arrow:after { left: 1px; bottom: -10px; border-left-width: 0; border-right-color: #ffffff; } .popover.bottom .arrow { left: 50%; margin-left: -11px; border-top-width: 0; border-bottom-color: #999; border-bottom-color: rgba(0, 0, 0, 0.25); top: -11px; } .popover.bottom .arrow:after { top: 1px; margin-left: -10px; border-top-width: 0; border-bottom-color: #ffffff; } .popover.left .arrow { top: 50%; right: -11px; margin-top: -11px; border-right-width: 0; border-left-color: #999; border-left-color: rgba(0, 0, 0, 0.25); } .popover.left .arrow:after { right: 1px; border-right-width: 0; border-left-color: #ffffff; bottom: -10px; } .label, .badge { display: inline-block; padding: 2px 4px; font-size: 11.844px; font-weight: bold; line-height: 14px; color: #ffffff; vertical-align: baseline; white-space: nowrap; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #999999; } .label { -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } .badge { padding-left: 9px; padding-right: 9px; -webkit-border-radius: 9px; -moz-border-radius: 9px; border-radius: 9px; } .label:empty, .badge:empty { display: none; } a.label:hover, a.label:focus, a.badge:hover, a.badge:focus { color: #ffffff; text-decoration: none; cursor: pointer; } .label-important, .badge-important { background-color: #b94a48; } .label-important[href], .badge-important[href] { background-color: #953b39; } .label-warning, .badge-warning { background-color: #f89406; } .label-warning[href], .badge-warning[href] { background-color: #c67605; } .label-success, .badge-success { background-color: #468847; } .label-success[href], .badge-success[href] { background-color: #356635; } .label-info, .badge-info { background-color: #3a87ad; } .label-info[href], .badge-info[href] { background-color: #2d6987; } .label-inverse, .badge-inverse { background-color: #333333; } .label-inverse[href], .badge-inverse[href] { background-color: #1a1a1a; } .btn .label, .btn .badge { position: relative; top: -1px; } .btn-mini .label, .btn-mini .badge { top: 0; } .accordion { margin-bottom: 20px; display: block; } @media only screen and (max-width: 540px) { #assessmentNavigationExpander { max-width: 100% !important; } .overflow { overflow-x: hidden; } } .accordion-group { margin-bottom: -1px; margin-left: 0px; margin-right: 0px; /*border: 1px solid #e5e5e5; .border-radius(@baseBorderRadius);*/ } .accordion-heading { /*height: 34px;*/ /*border-top: 1px solid #717171;*/ /* inner stroke */ border-bottom: 1px solid #5A5A5A; /* inner stroke */ /*border: 1px solid #3693cf;*/ /* inner stroke */ background-color: #1f5a80; /* layer fill content */ background-image: -moz-linear-gradient(90deg, #3693cf 0%, #1f5a80 100%); /* gradient overlay */ background-image: -o-linear-gradient(90deg, #3693cf 0%, #1f5a80 100%); /* gradient overlay */ background-image: -webkit-linear-gradient(90deg, #3693cf 0%, #1f5a80 100%); /* gradient overlay */ background-image: linear-gradient(0deg, #229911 3 F 0%, #98a9b1 0%); /* gradient overlay */ list-style-type: none; } .accordion-heading a { color: #ccc; /* text color */ text-shadow: 0 1px 0 #3b3b3b; /* drop shadow */ text-decoration: none; font-weight: bold; } .accordion-heading a:hover { color: #ffffff; background-color: #4F6675; } .accordion-heading .active { width: 182px; height: 34px; border: 1px solid #3693cf; /* inner stroke */ background-color: #1f5a80; /* layer fill content */ background-image: -moz-linear-gradient(90deg, #3693cf 0%, #1f5a80 100%); /* gradient overlay */ background-image: -o-linear-gradient(90deg, #3693cf 0%, #1f5a80 100%); /* gradient overlay */ background-image: -webkit-linear-gradient(90deg, #3693cf 0%, #1f5a80 100%); /* gradient overlay */ background-image: linear-gradient(90deg, #3693cf 0%, #1f5a80 100%); /* gradient overlay */ } .accordion-heading .accordion-toggle { display: block; padding: 8px 15px; } .accordion-toggle { cursor: pointer; } .accordion-inner { padding: 10px 15px; /*border-top: 1px solid #e5e5e5;*/ } .accordion-inner a { color: #ffffff; padding-right: 5px; } .pull-right { float: right; } .pull-left { float: left; } .hide { display: none; } .show { display: block; } .invisible { visibility: hidden; } .affix { position: fixed; } @-ms-viewport { width: device-width; } /* BASE RULES ---------------------------------------------------------- Base Rules are all default elements that use element selectors, a descendant selector, or child selector, along with pseudo-classes. Base Rules define the default styling for how a base element should look in all occurrences on the page. Do not use class or ID selectors with Base Rules. ----------------------------------------------------------*/ html { position: absolute; top: 0px; right: 0px; bottom: 0px; left: 0px; overflow-x: hidden; overflow-y: hidden; } body { position: absolute; top: 0px; right: 0px; bottom: 0px; left: 0px; overflow-x: hidden; overflow-y: hidden; margin: 0px; padding: 0px; } header { min-height: 48px; /*.main-header-style;*/ } body header { margin-bottom: 10px; } body header .user-profile { margin-top: 10px; position: relative; } body header .user-profile .widget.expanded { margin: 10px 5px; display: inline-block; } body header .user-profile a { color: #ffffff; display: block; background-color: transparent; } body header .user-profile.joyride-focus-element a { color: #0088cc; } p { margin: 0px; padding: 0px; } input[type="search"] { box-sizing: content-box; margin: 5px; } input[type="search"]:focus::-webkit-search-cancel-button:after { content: '\e0fd'; font-family: 'icomoon'; display: block; font-size: 80%; } input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; } /*SMACSS ---------------------------------------------------------- This file is using the Scalable and Modular Architecture for CSS (SMACSS), which facilitates implementation of best practices for organizing and developing CSS rules. Developed by Jonathan Snook 2012 ----------------------------------------------------------*/ /* BRUSHES/THEMES RULES ---------------------------------------------------------- Brushes and Themes are common styles used throughout a project to define colors, backgrounds, borders, fonts, gradients, etc. These shared resources may be used in more than one place so use of variables is recommended. ----------------------------------------------------------*/ @font-face { font-family: 'icomoon'; src: url('/Content/fonts/icomoon.eot'); src: url('/Content/fonts/icomoon.eot?#iefix') format('embedded-opentype'), url('/Content/fonts/icomoon.woff') format('woff'), url('/Content/fonts/icomoon.ttf') format('truetype'), url('/Content/fonts/icomoon.svg#icomoon') format('svg'); font-weight: normal; font-style: normal; } @font-face { font-family: 'procenter'; src: url('/Content/fonts/procenter.eot'); src: url('/Content/fonts/procenter.eot?#iefix') format('embedded-opentype'), url('/Content/fonts/procenter.woff') format('woff'), url('/Content/fonts/procenter.ttf') format('truetype'), url('/Content/fonts/procenter.svg#procenter') format('svg'); font-weight: normal; font-style: normal; } .main-header-border { border-bottom: 1px solid #6e819a; } /*Master Layout*/ .main-header-style { background: -moz-linear-gradient(top, rgba(255, 255, 255, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%), theme-color-1; /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(255, 255, 255, 0.4)), color-stop(100%, rgba(0, 0, 0, 0.4))), theme-color-1; /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%), theme-color-1; /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, rgba(255, 255, 255, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%), theme-color-1; /* Opera 11.10+ */ background: -ms-linear-gradient(top, rgba(255, 255, 255, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%), theme-color-1; /* IE10+ */ background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%), theme-color-1; /* W3C */ border-bottom: 1px solid #6e819a; } .main-tabnavigation-style { background-color: #b4b4b4; border-top: 0px solid #484747; border-right: 0px solid #484747; border-bottom: 1px solid #484747; border-left: 0px solid #484747; } .main-body-style { background-color: #b4b4b4; } .main-footer-style { background-color: #484747; border-top: 0px solid #484747; border-right: 0px solid #484747; border-bottom: 0px solid #484747; border-left: 0px solid #484747; } /*Master-Detail Layout*/ .masterlist-container-style { border-top: 0px solid #484747; border-right: 1px solid #484747; border-bottom: 0px solid #484747; border-left: 0px solid #484747; } .masterlist-header-style { background: -moz-linear-gradient(top, rgba(255, 255, 255, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%), #ffffff; /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(255, 255, 255, 0.4)), color-stop(100%, rgba(0, 0, 0, 0.4))), #ffffff; /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%), #ffffff; /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, rgba(255, 255, 255, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%), #ffffff; /* Opera 11.10+ */ background: -ms-linear-gradient(top, rgba(255, 255, 255, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%), #ffffff; /* IE10+ */ background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%), #ffffff; /* W3C */ border-top: 0px solid #484747; border-right: 0px solid #484747; border-bottom: 1px solid #484747; border-left: 0px solid #484747; } .detail-header-style { background: -moz-linear-gradient(top, rgba(255, 255, 255, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%), #ffffff; /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(255, 255, 255, 0.4)), color-stop(100%, rgba(0, 0, 0, 0.4))), #ffffff; /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%), #ffffff; /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, rgba(255, 255, 255, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%), #ffffff; /* Opera 11.10+ */ background: -ms-linear-gradient(top, rgba(255, 255, 255, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%), #ffffff; /* IE10+ */ background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%), #ffffff; /* W3C */ border-top: 0px solid #484747; border-right: 0px solid #484747; border-bottom: 1px solid #484747; border-left: 0px solid #484747; } /* LAYOUT RULES ---------------------------------------------------------- Layout Rules are elements within a page that define the sections. Usually, Layout elements are like containers that hold other page components. Layout Rules are major components of a page which use ID Selectors when the component is only used once per page or a Class Name, when the component is used more than once per page. ----------------------------------------------------------*/ #skip a { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; } #skip a:focus { position: static; width: auto; height: auto; } #procenter-logo { float: left; font-family: 'Gill Sans', sans-serif; font-weight: 700; font-style: italic; font-size: 2em; color: #ffffff; text-align: center; margin-left: 15px; } #procenter-logo:before { font-family: 'procenter'; font-style: normal; font-weight: normal; font-size: 1.5em; content: '\e000'; speak: none; -webkit-font-smoothing: antialiased; position: relative; top: 10px; line-height: 28px; } .reset-spacing { margin: 0px; padding: 0px; } .reset-style { outline: none !important; color: #333; font-family: "Segoe UI", Verdana, Helvetica, Sans-Serif; } .ui-hide { top: 0px; position: absolute !important; left: -999999px !important; height: 0px !important; width: 0px !important; } .padding-top { padding-top: 20px; } /* Master Layout*/ #mainContent { height: 100%; width: 100%; overflow-y: auto; background-color: #3b4f5a; } #mainContent .dashboard-wrapper .widget .widget-body { padding: 0 0px; } /* MODULE RULES ---------------------------------------------------------- Module are more discrete components that make up the page such as navigation bars, carousels, and widgets etc. Usually these modules live within major layout components of the page such as headers or footers. Modules should use class selectors since they may be used more than once. ADDITIONAL MODULES CAN BE FOUND ON THE "procenter-controls.css" FILE. ----------------------------------------------------------*/ .reportsBackground { background-color: #fff; padding: 5px; } .savedReportsTemplatesTitle { margin-left: 10px; } .reportTypeTitle { margin-left: 5px; margin-bottom: -4px; } .assessment-wrapper .row-fluid { width: 95%; } #mainContent { position: relative; } #contentDiv { background-color: white; border-top: #528491 solid 1px; border-left: #528491 solid 1px; border-radius: 4px; margin: 7px; } .NidaSingleQuestionScreener #contentDiv { margin: 7px 15px !important; } .center { margin-right: auto; margin-left: auto; } .icon-spinner { display: inline-block; color: #777; } .widget { overflow: hidden; background-color: #ffffff; -moz-box-shadow: 4px 4px 20px #505e64; -webkit-box-shadow: 4px 4px 20px #505e64; box-shadow: 4px 4px 20px #505e64; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; border-top: 0px solid #484747; border-right: 0px solid #484747; border-bottom: 0px solid #484747; border-left: 0px solid #484747; } .widget .widget-header { padding: 4px 0px; background: -moz-linear-gradient(top, rgba(255, 255, 255, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%), #dddde2; /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(255, 255, 255, 0.4)), color-stop(100%, rgba(0, 0, 0, 0.4))), #dddde2; /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%), #dddde2; /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, rgba(255, 255, 255, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%), #dddde2; /* Opera 11.10+ */ background: -ms-linear-gradient(top, rgba(255, 255, 255, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%), #dddde2; /* IE10+ */ background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%), #dddde2; /* W3C */ border-top: 0px solid #484747; border-right: 0px solid #484747; border-bottom: 1px solid #484747; border-left: 0px solid #484747; } .widget .widget-header h3 { text-align: center; font-size: 1.15em; line-height: 30px; margin: 0px; padding: 0px; } .widget .widget-header .title [data-icon] { border-right: #57798f solid 2px; margin-right: 3px; padding-right: 3px; padding-top: 8px; padding-bottom: 7px; } .widget .widget-header .title [data-icon]:before { font-weight: normal; } .widget .widget-header .widget-controls-left .btn { margin-left: 10px; } .widget .widget-header .widget-controls-right .btn { float: right; margin-right: 10px; } .widget .widget-body .section { overflow-y: hidden; } .widget .widget-body .section:last-child { overflow-y: visible; } .widget .widget-body .section .group-header { display: block; padding: 4px 12px; /* this is different */ background: gray; color: white; } .widget .widget-body .section .row-fluid.odd { background-color: #E2E4FF; } .widget .widget-body .section .row-fluid span { margin: 0; min-height: 0; vertical-align: middle; text-align: center; line-height: 48px; } .widget .widget-body .section .row-fluid span.last-column { line-height: 23px; } .widget .widget-body .section .row-fluid span .tools a { display: block; margin: 4px; padding: 0px 10px; } .widget .widget-body .section .saved-reports .row-fluid .span4 { line-height: inherit; } .widget .widget-body .column-headers span { display: block; margin: 0; min-height: 22px; border: 1px solid #aed0ea; background: #d7ebf9 50% 50% repeat-x; color: #2779aa; text-align: center; font-weight: bold; } .widget fieldset { margin: 10px 20px; min-width: auto; } .widget .modal.fade.in { top: 35%; } .page-splash { -moz-backface-visibility: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #1f1f1f; opacity: 0.2; -moz-transition: opacity 0.1s linear; -o-transition: opacity 0.1s linear; -webkit-transition: opacity 0.1s linear; transition: opacity 0.1s linear; pointer-events: auto; } .page-splash-message { margin: 10% 0 0 0; padding: 0; color: #F58A00; text-align: center; text-decoration: none; text-transform: uppercase; -webkit-text-shadow: 2px 2px rgba(0, 0, 0, 0.15); text-shadow: 2px 2px rgba(0, 0, 0, 0.15); font-weight: normal; font-size: 400%; font-family: "Segoe UI", Arial, Helvetica, sans-serif, monospace; } .page-progress-bar { margin: 10% 30% 0 30%; } .loader { visibility: hidden; /*margin: 6px 8px 4px 8px;*/ margin: 13px 0 2px 8px; } .loader.active { visibility: visible; } /* Data Tables */ .dataTables_wrapper table tr.even.active, .dataTables_wrapper table tr.odd.active { background-color: darkblue; color: white; } .dataTables_wrapper table td { padding: 1px 5px 1px 10px; text-align: left; } .dataTables_wrapper table th { text-align: left; } .dataTables_wrapper table:hover { cursor: pointer; } .dataTables_wrapper .row-fluid { padding-top: 10px; } .dataTables_wrapper .row-fluid .span6 { margin-left: 5px; } .dataTables_wrapper .dataTables_length { float: left; width: 100%; margin-left: 20px; /* this line changed*/ } .dataTables_wrapper .dataTables_length select { margin-bottom: 0; width: 80px; height: 30px; } .dataTables_wrapper .dataTables_filter { float: right; width: 100%; } .dataTables_wrapper .dataTables_filter input { margin-bottom: 0; width: 160px; } .dataTables_wrapper .dataTables_info { float: left; margin-bottom: 5px; width: 100%; font-size: .9em; color: gray; } .dataTables_wrapper .dataTables_paginate { float: right; margin: 5px 0; width: 100%; /*.first, .previous, .next, .paginate_active, .last, .paginate_button { border-top: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; border-bottom: 1px solid #d9d9d9; border-left: 1px solid #d9d9d9; background: #f9f9f9; background-color: #e6e6e6; background-image: -moz-linear-gradient(top, #f2f2f2, #e6e6e6); background-image: -ms-linear-gradient(top, #f2f2f2, #e6e6e6); background-image: -o-linear-gradient(top, #f2f2f2, #e6e6e6); background-image: -webkit-gradient(linear, left top, left bottom, from(#f2f2f2), to(#e6e6e6)); background-image: -webkit-linear-gradient(top, #f2f2f2, #e6e6e6); background-image: linear-gradient(top, #f2f2f2, #e6e6e6); padding: 7px 10px; } .first:hover, .previous:hover, .next:hover, .paginate_active:hover, .last:hover, .paginate_button:hover{ background: #f9f9f9; cursor: pointer; } .last { border-right: 1px solid #d9d9d9; }*/ } .dataTables_wrapper .dataTables_paginate .paginate_active { background: #f9f9f9; } .dataTable .sorting { background: url(../img/sorting.png) no-repeat center right; cursor: pointer; } .dataTable .sorting_asc { background: url(../img/sorting_asc.png) no-repeat center right; cursor: pointer; } .dataTable .sorting_desc { background: url(../img/sorting_desc.png) no-repeat center right; cursor: pointer; } #changePasswordModal .modal-footer a { display: inline-block; } .system-account .tools { float: right; } .system-account .tools a { float: right; } /* Yes/No Radio Buttons */ .yesno-radiobuttons { display: inline-block; overflow: hidden; margin-bottom: -15px; } .yesno-radiobuttons label { float: left; margin: 3px 7px 3px 0; } .yesno-radiobuttons label span { display: block; padding: 3px 8px; border: 1px solid #D0D0D0; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; background-color: #EFEFEF; color: #a6a6a6; text-align: center; } .yesno-radiobuttons label input { position: absolute; display: none; } .yesno-radiobuttons input[value="False"]:disabled + span { margin-left: -7px; } .yesno-radiobuttons span:hover { background-color: #035d99; color: #F7F7F7; } .yesno-radiobuttons input:checked + span { background-color: #27aae1; color: #F7F7F7; } .yesno-radiobuttons input:disabled + span { display: none; } .yesno-radiobuttons input:checked:disabled + span { display: inline; border: none; background-color: #ebebe4; color: #555555; } /* Styles for validation helpers -----------------------------------------------------------*/ .field-validation-error { color: #f00; } .field-validation-valid { display: none; } .input-validation-error { border: 1px solid #f00; background-color: #fee; } .validation-summary-errors { color: #f00; font-weight: bold; } .validation-summary-valid { display: none; } #form_errors { color: #f00; font-weight: bold; margin-top: -15px; margin-bottom: 10px; } /* Assessment Score */ .score { font-size: larger; } .parameter-spacing { margin-left: 10px; margin-right: 10px; margin-top: 15px; } .parameterSpan { color: black; } .parameterSpanBool { display: inline !important; } /* Bluemoon Button */ a.btn-info { /*margin-top: 20px;*/ margin-left: 14px; color: white; } /* Permissions Button */ .btn-permissions { margin-top: 20px; min-width: 80px; } /* dashboard */ .sr-only { /*position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; */ display: none; } .dashboard { position: relative; } .dashboard .widget.expanded { position: absolute; top: 15px; right: 15px; bottom: 15px; left: 15px; margin: 0 !important; } .dashboard .widget.expanded .widget-body { overflow-y: auto !important; height: 90% !important; } .dashboard .dashboard-close { position: absolute; top: 5px; right: 5px; z-index: 110; padding: 2px 5px; } .dashboard .dashboard-close[data-icon]:before { padding-right: 0; } .percentage-complete { display: inline-block; color: white; margin: 15px 15px; padding: 1px 10px; border-left: solid thin; line-height: 30px; } .assessment-create-dropdown { position: absolute !important; padding: 5px 0 !important; margin: -8px 7px 0 !important; } .assessment-create-dropdown li { float: none !important; margin-top: 0 !important; } .assessment-create-dropdown li a { cursor: pointer !important; padding: 3px 20px !important; clear: both !important; font-weight: normal !important; line-height: 20px !important; white-space: nowrap !important; font-size: 16px !important; margin-top: 2px !important; margin-bottom: 2px !important; } .dashboard-container .top-nav > ul li { width: auto; } .dashboard-container .top-nav > ul li a { padding: 10px; height: auto; font-size: 10pt; } .dashboard-container .top-nav > ul li .close { margin: -20px -5px 0 5px; } .dashboard-container .top-nav .dropdown-wrapper { float: left; width: 100%; border-bottom: rgba(255, 255, 255, 0) solid 2px; } .dashboard-container .top-nav .dropdown-wrapper .dropdown-menu { width: 100%; } .dashboard-container .top-nav .dropdown-wrapper > a { display: inline-block; padding: 7px; width: auto; height: auto; background: #3693cf; color: white; text-decoration: none; -webkit-text-shadow: 1px 1px 1px #1f5a80; text-shadow: 1px 1px 1px #1f5a80; font-size: 12pt; } .dashboard-container .top-nav .dropdown-wrapper > a .tabs-dropdown-caret { position: absolute; top: 0; right: 0; bottom: 0; padding: 7px; background: rgba(54, 147, 207, 0.64); color: white; } .dashboard-container .top-nav .dropdown-wrapper > a .tabs-dropdown-caret:hover { color: white; } .dashboard-container .top-nav .dropdown-wrapper > a .tabs-dropdown-caret[data-icon]:before { padding-right: 0; } .dashboard-container .top-nav .dropdown-wrapper li { width: 100%; } .dashboard-container .top-nav .dropdown-wrapper li a { display: inline-block; padding: 10px; width: 100%; height: auto; border-radius: 0; text-align: left; font-size: 12pt; } .dashboard-container .top-nav .dropdown-wrapper li .close { margin: 0 20px 0 0; } .dashboard-container .sub-nav { min-height: 56px; height: auto; } .dashboard-container .sub-nav .input-search { float: left; margin-bottom: 15px; margin-left: 15px; background-color: white; } .dashboard-container .sub-nav .input-search::-webkit-input-placeholder { /* WebKit browsers */ color: #999; } .dashboard-container .sub-nav .input-search:-moz-placeholder { /* Mozilla Firefox 4 to 18 */ color: #999; opacity: 1; } .dashboard-container .sub-nav .input-search::-moz-placeholder { /* Mozilla Firefox 19+ */ color: #999; opacity: 1; } .dashboard-container .sub-nav .input-search:-ms-input-placeholder { /* Internet Explorer 10+ */ color: #999; } .dashboard-container .sub-nav .input-search + .btn { margin: -5px 0 0 15px; color: white; font-size: 16px; } .dashboard-container .sub-nav .input-search + .btn [data-icon]:before { padding-right: 10px; } .dashboard-container .sub-nav select { margin-top: 5px; vertical-align: middle; } #patientHelpModal .close { float: right; } .dashboard-container .sub-nav .assessment-header .title { float: left; margin-left: 15px; color: #ffffff; } .dashboard-container .sub-nav .assessment-header .patient-help-btn { margin: 10px 5px; color: #ffffff; } .dashboard-container .sub-nav .assessment-header .patient-help-btn:visited, .dashboard-container .sub-nav .assessment-header .patient-help-btn:hover { text-decoration: none; } .dashboard-container .sub-nav .assessment-header .patient-help-btn .info-icon { padding-right: 5px; } .dashboard-container .sub-nav .assessment-header .patient-help-btn .info-icon:before { font-size: 18px; font-family: 'icomoon'; content: '\e0f7'; -webkit-font-smoothing: antialiased; } .dashboard-container .sub-nav .assessment-header .patient-help-btn .info-icon:hover:before { content: '\e0f8'; } .dashboard-container .sub-nav .assessment-header .patient-help-btn .info-icon:focus { outline: none; } .dashboard-container .sub-nav .assessment-header .btn { float: right; margin: 15px 25px 0 0; } /* Charts */ .pie-chart { position: relative; } .pie-chart .percentage { position: absolute; left: 50%; font-weight: bold; font-size: 130%; } .pie-chart .percentage span { margin-left: -50%; } /* Home */ .home-dashboard .dataTables_wrapper .dataTables_filter { display: none; } .home-dashboard input[type=checkbox] { float: left; margin-right: 10px; } #ajax-loader { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(144, 144, 144, 0.5) url(../images/loading.gif) center center no-repeat; } /* Patient */ .patient-header { padding: 15px; } .patient-header > div:not(.clear) { float: left; } .patient-header .finder-wrapper .finder-all-button { margin-top: 5px; margin-left: -5px; } .patient-header .patient-details { margin-right: 30px; padding-right: 10px; min-width: 225px; border-right: 2px darkgray solid; } .patient-header .patient-details .btn { color: black; } .patient-header .patient-details .btn:visited { color: black; } .patient-header .assessment-tools .btn { margin: 4px 0 0 7px; padding-right: 8px; color: white; vertical-align: top; font-size: 16px; } .patient-header .tools { position: relative; bottom: -40px; left: -8px; } .patient-details { color: #ffffff; line-height: normal; } .patient-details img { float: left; height: 60px; } .patient-details .info { margin: 0 15px; } .patient-details .info h5 { margin: 0 0 5px 0; } .patient-details > div { float: left; } .patient-details span { display: block; } #customizeReportModal { bottom: 10%; } #customizeReportModal form { position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin-top: 50px; } #customizeReportModal form .modal-body { position: absolute; top: 0; right: 0; bottom: 0; left: 0; max-height: none; } #customizeReportModal form .modal-body a { float: right; } #customizeReportModal textarea { max-width: 90%; width: 90%; } #customizeReportModal ul { margin-left: 50px; list-style: none; } #customizeReportModal input[type=checkbox] { float: left; margin-right: 10px; } #customizeReportModal .report-customizer .report-item-wrapper { position: relative; } #customizeReportModal .report-customizer .ajax-loading-indicator { right: 0; } .hover-only { opacity: 0; } .hover-only:hover { opacity: 1; } .dashboard-wrapper .patient-dashboard .right { float: right; width: 50%; } .dashboard-wrapper .patient-dashboard .right .widget { width: 97%; } .dashboard-wrapper .patient-dashboard #patientReportsDataTable .tools a { margin: 0 0 2px 0; width: 66px; text-align: left; } .dashboard-wrapper .patient-dashboard .patient-feed { float: left; height: auto; border: 0 transparent; border-radius: 7px; background: white; -webkit-box-shadow: none; box-shadow: none; color: #57798f; } .dashboard-wrapper .patient-dashboard .patient-feed .title { display: inline; font-weight: bold; font-size: 120%; } .dashboard-wrapper .patient-dashboard .patient-feed .info { display: block; } .dashboard-wrapper .patient-dashboard .patient-feed .assessment-summary { color: #00aeef; } .dashboard-wrapper .patient-dashboard .patient-feed .assessment-summary .feed-right { max-width: 625px; } .dashboard-wrapper .patient-dashboard .patient-feed .assessment-summary .feed-right span:after { display: inline-block; content: " "; } .dashboard-wrapper .patient-dashboard .patient-feed .assessment-summary .feed-right .title { padding: 30px 0 0 0; } .dashboard-wrapper .patient-dashboard .patient-feed .assessment-summary .feed-right .emailnotifier-error { font-weight: bold; color: #f00; } .dashboard-wrapper .patient-dashboard .patient-feed .assessment-summary .feed-right .btn { float: right; margin: -15px 0 0 0; padding: 2px 0 2px 7px; border-radius: 15px; } .dashboard-wrapper .patient-dashboard .patient-feed .btn-sendemail { display: inline-block; *display: inline; /* IE7 inline-block hack */ *zoom: 1; padding: 4px 12px; margin-bottom: 0; font-size: 14px; line-height: 20px; text-align: center; vertical-align: middle; cursor: pointer; color: #333333; text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75); background-color: #f5f5f5; background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6)); background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6); background-image: -o-linear-gradient(top, #ffffff, #e6e6e6); background-image: linear-gradient(to bottom, #ffffff, #e6e6e6); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0); border-color: #e6e6e6 #e6e6e6 #bfbfbf; *background-color: #e6e6e6; /* Darken IE7 buttons by default so they stand out more given they won't have borders */ border: 1px solid #cccccc; *border: 0; border-bottom-color: #b3b3b3; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; *margin-left: .3em; -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05); -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05); color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #5bb75b; background-image: -moz-linear-gradient(top, #62c462, #51a351); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#51a351)); background-image: -webkit-linear-gradient(top, #62c462, #51a351); background-image: -o-linear-gradient(top, #62c462, #51a351); background-image: linear-gradient(to bottom, #62c462, #51a351); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62c462', endColorstr='#ff51a351', GradientType=0); border-color: #51a351 #51a351 #387038; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); *background-color: #51a351; /* Darken IE7 buttons by default so they stand out more given they won't have borders */ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); } .dashboard-wrapper .patient-dashboard .patient-feed .btn-sendemail:hover, .dashboard-wrapper .patient-dashboard .patient-feed .btn-sendemail:focus, .dashboard-wrapper .patient-dashboard .patient-feed .btn-sendemail:active, .dashboard-wrapper .patient-dashboard .patient-feed .btn-sendemail.active, .dashboard-wrapper .patient-dashboard .patient-feed .btn-sendemail.disabled, .dashboard-wrapper .patient-dashboard .patient-feed .btn-sendemail[disabled] { color: #333333; background-color: #e6e6e6; *background-color: #d9d9d9; } .dashboard-wrapper .patient-dashboard .patient-feed .btn-sendemail:active, .dashboard-wrapper .patient-dashboard .patient-feed .btn-sendemail.active { background-color: #cccccc \9; } .dashboard-wrapper .patient-dashboard .patient-feed .btn-sendemail:first-child { *margin-left: 0; } .dashboard-wrapper .patient-dashboard .patient-feed .btn-sendemail:hover, .dashboard-wrapper .patient-dashboard .patient-feed .btn-sendemail:focus { color: #333333; text-decoration: none; background-position: 0 -15px; -webkit-transition: background-position 0.1s linear; -moz-transition: background-position 0.1s linear; -o-transition: background-position 0.1s linear; transition: background-position 0.1s linear; } .dashboard-wrapper .patient-dashboard .patient-feed .btn-sendemail:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } .dashboard-wrapper .patient-dashboard .patient-feed .btn-sendemail.active, .dashboard-wrapper .patient-dashboard .patient-feed .btn-sendemail:active { background-image: none; background-color: #27aae1; color: #FFFFFF; outline: 0; -webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05); -moz-box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05); box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05); } .dashboard-wrapper .patient-dashboard .patient-feed .btn-sendemail.disabled, .dashboard-wrapper .patient-dashboard .patient-feed .btn-sendemail[disabled] { cursor: default; background-image: none; opacity: 0.65; filter: alpha(opacity=65); -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; color: #555555; } .dashboard-wrapper .patient-dashboard .patient-feed .btn-sendemail .label, .dashboard-wrapper .patient-dashboard .patient-feed .btn-sendemail .badge { position: relative; top: -1px; } .dashboard-wrapper .patient-dashboard .patient-feed .btn-sendemail:hover, .dashboard-wrapper .patient-dashboard .patient-feed .btn-sendemail:focus, .dashboard-wrapper .patient-dashboard .patient-feed .btn-sendemail:active, .dashboard-wrapper .patient-dashboard .patient-feed .btn-sendemail.active, .dashboard-wrapper .patient-dashboard .patient-feed .btn-sendemail.disabled, .dashboard-wrapper .patient-dashboard .patient-feed .btn-sendemail[disabled] { color: #ffffff; background-color: #51a351; *background-color: #499249; } .dashboard-wrapper .patient-dashboard .patient-feed .btn-sendemail:active, .dashboard-wrapper .patient-dashboard .patient-feed .btn-sendemail.active { background-color: #408140 \9; } .dashboard-wrapper .patient-dashboard .patient-feed .btn-sendemail .caret { border-top-color: #ffffff; border-bottom-color: #ffffff; } .dashboard-wrapper .patient-dashboard .patient-feed .total-assessments { margin-left: 15px; } .dashboard-wrapper .patient-dashboard .patient-feed .total-assessments .feed-left { font-weight: bold; font-size: 200%; } .dashboard-wrapper .patient-dashboard .patient-feed .total-assessments .title { display: block; } .dashboard-wrapper .patient-dashboard .patient-feed .total-assessments .info { padding-left: 40px; } .dashboard-wrapper .patient-dashboard .patient-feed .workflow-message { margin-left: 50px; } .dashboard-wrapper .patient-dashboard .patient-feed .workflow-message [data-icon]:before { position: relative; top: 20px; left: -40px; font-size: 200%; } .dashboard-wrapper .patient-dashboard .patient-feed .workflow-message .title { margin-top: -30px; float: left; } .dashboard-wrapper .patient-dashboard .patient-feed .workflow-message .tools { margin-top: 10px; text-align: right; } .dashboard-wrapper .patient-dashboard .patient-feed .reminder-message { margin-left: 50px; } .dashboard-wrapper .patient-dashboard .patient-feed .reminder-message .feed-right[data-icon]:before { position: relative; top: 20px; left: -40px; font-size: 200%; } .dashboard-wrapper .patient-dashboard .patient-feed .reminder-message .title { display: block; margin-top: -23px; padding-left: 20px; } .dashboard-wrapper .patient-dashboard .patient-feed .reminder-message .tools { float: left; margin-top: 10px; margin-left: 20px; } .dashboard-wrapper .patient-dashboard .patient-feed .reminder-message .btn-acknowledge { display: inline; float: right; margin-right: 10px; margin-top: 10px; } .patient-editor { overflow-y: hidden; height: 100%; } .patient-editor form { height: 100%; } .patient-editor .patient-editor-footer { height: auto; -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0; line-height: 100%; } .patient-editor .patient-editor-footer .buttons { padding: 10px 10px 10px 50px; } .patient-editor .Prefix, .patient-editor .Suffix { width: 70px; } .patient-editor .DateOfBirth, .patient-editor .Gender, .patient-editor .Ethnicity, .patient-editor .Religion, .patient-editor .Email, .patient-editor .UniqueIdentifier { float: left; width: 45%; } .patient-editor .Key { display: none; } .patient-reports .section { min-height: 60px; max-height: 142px; overflow-y: auto; } .patient-reports .widget-body { overflow-y: hidden !important; } .patient-reports .widget-body .section:last-child { overflow-y: auto; } .patient-reports .widget-body .section { overflow-y: auto; } .patient-reports .widget-body .expanded-content { display: none; height: 100%; } .patient-reports .widget-body .expanded-content > div { height: 100%; } .patient-reports .widget-body .expanded-content > div label { font-weight: bold; color: black; } .patient-reports .widget-body .expanded-content .expanded { padding: 5px; } label { font-size: 12pt; } input, select, textarea { margin-top: 5px; } input.number, input[type="number"] { width: 70px; } /* Organization */ .organization-dashboard .dataTables_wrapper .dataTables_filter { display: none; } .organization-summary { float: left; margin: 10px 15px 15px 15px; padding-right: 20px; border-right: 2px darkgray solid; color: white; line-height: normal; } .organization-summary h4 { margin: 0; font-size: 15px; } .organization-summary .address { margin-top: 5px; margin-left: 12px; } .organization-summary .phone { margin-left: 2px; } .organization-summary .left { float: left; } .organization-summary .btn { margin-top: 15px; margin-left: 10px; padding-right: 10px; color: black; } .organization-summary .btn:visited { color: black; } .organizationname-header { color: white; } .organization-header .input-search { margin-top: 15px; } .organization-editor input[type=checkbox] { float: none; margin: 0 5px 0 5px; } .organization-editor .list .field-validation-error { display: inherit; } .address input[name$='FirstStreetAddress'], .address input[name$='SecondStreetAddress'], .address .first, .address .second { display: block; } .address select[name$='StateProvince.Code'] { width: 75px; } .address input[name$='PostalCode'] { width: 100px; } .address label { height: 20px; } .sub-question label { display: inline; float: none; font-size: 12px; } .phone input[type='number'] { width: 75px; } .select { width: 500px; height: 200px; } .available-items-section { float: left; } .available-items-section select { width: 500px; height: 200px; } .add-remove-items-btn-section { float: left; margin: 60px 10px 0 10px; vertical-align: middle; } .add-remove-items-btn-section .btn { margin-top: 20px; width: 80px; } .add-remove-items-btn-section .btn-primary { margin-top: 20px; width: 80px; } .add-remove-items-btn-section .disabled { margin-top: 20px; } .current-items-section { float: left; } .current-items-section select { width: 500px; height: 200px; } .dashboard-wrapper .team-editor .dataTables_wrapper .dataTables_filter { display: inline-block; } .dashboard-wrapper .recent-reports { height: 205px !important; } #recentReportsDataTable_wrapper .dataTables_scroll { height: 150px !important; } #recentReportsDataTable_wrapper .dataTables_scroll .dataTables_scrollBody { overflow: visible !important; } .staff-list-editor .dataTable-wrapper { max-width: 100%; } .staff-list-editor .add { float: right; } .patient-list-editor .dataTable-wrapper { max-width: 100%; } .patient-list-editor .add { float: right; } .remove-btn { float: right; color: black; margin: -10px; padding: 10px; text-decoration: none; cursor: pointer; } .remove-btn:hover { color: red; } .remove-btn_editor { display: block; float: right; color: black; padding: -10px, 10px, -10px, -10px; margin-right: 10px; text-decoration: none; cursor: pointer; } .remove-btn_editor:hover { color: red; } .teams .add-btn { position: relative; left: 10px; padding: 3px 9px 4px 9px; vertical-align: top; } .teams .add-btn[data-icon]:before { padding-right: 3px; } .teams .current-teams { display: inline-block; margin: 0; padding: 10px; min-width: 285px; border: darkgray solid 1px; background: white; list-style: none; } .teams .current-teams li { position: relative; display: block; padding: 8px 0; border-bottom: darkgray solid 1px; background: transparent; } /* Questions */ .question-root { position: relative; padding: 10px !important; } .question-root:hover .question-label-wrapper label { font-weight: bold; } .editor-content { overflow-y: auto; padding-right: 20px; background-color: white; } .questions { margin: 30px; padding: 20px 10px 20px 30px; border-width: 1px; border-style: solid; border-color: #d5d5d5; background-color: white; } .questions label { margin-bottom: -4px; font-weight: 500; font-size: 14px; } .questions .list ul { margin: 0; padding: 0; list-style: none; } .questions .list .header { max-width: 400px; } .questions .list .header a { float: right; } .questions .list .header [data-icon]:before { padding-right: 2px; } .questions .list .header > label { float: left; } .questions .list .question-answer-wrapper { display: inline-block; } .questions .list .ajax-loading-indicator { right: -30px; } #assessmentNavigationExpander { max-width: 25%; height: 100%; } #assessmentNavigationExpander.expander-root { margin-bottom: 0; } #assessmentNavigationExpander .expand-content { padding: 0; } #assessmentNavigationExpander .expander-summary { padding: 0; } #assessmentNavigation { min-height: 100%; margin-bottom: 0; } #assessmentNavigation ul { margin: 0 0 5px 15px !important; } #assessmentNavigation .accordion-percentage-indicator { width: auto; padding: 4px 10px; background-color: #00b8ff; border-radius: 24px; } #assessmentNavigation .accordion-heading { height: auto; /*border-top: 1px solid #717171;*/ /* inner stroke */ border-bottom: 1px solid #5A5A5A; /* inner stroke */ /*border: 1px solid #3693cf;*/ /* inner stroke */ background-color: #1f5a80; /* layer fill content */ background-image: -moz-linear-gradient(0deg, #3b4f5a 100%, #000000 0%); /* gradient overlay */ background-image: -o-linear-gradient(0deg, #3b4f5a 100%, #000000 0%); /* gradient overlay */ background-image: -webkit-linear-gradient(0deg, #3b4f5a 100%, #000000 0%); /* gradient overlay */ background-image: linear-gradient(0deg, #3b4f5a 100%, #000000 0%); /* gradient overlay */ list-style-type: none; } #assessmentNavigation .list-group { list-style: none; } #assessmentNavigation .list-group .percent-complete { /*float: right;*/ color: white; } #assessmentNavigation .accordion-inner { background-color: #6f8692; } .assessment-wrapper { overflow-y: hidden; } .assessment-wrapper .content { overflow-y: auto; } .assessment-wrapper .instructions { padding: 15px; } .assessment-wrapper fieldset { padding: 15px; } .assessment-wrapper fieldset legend:empty { display: none; } .assessment-wrapper section { padding: 20px !important; margin-bottom: 7px; border: 1px rgba(143, 165, 176, 0.5) solid; border-radius: 10px; background-color: rgba(255, 252, 226, 0.15); } .assessment-wrapper section:nth-of-type(odd) { background-color: rgba(216, 219, 219, 0.2); } .assessment-wrapper section:hover { border: 1px #8fa5b0 solid; } .assessment-wrapper section:not(.group):hover { background-color: #aceaff; } .assessment-wrapper section .grouping { margin: 0 -10px; padding: 10px; } .assessment-wrapper section .grouping .header-text { margin-bottom: 10px; text-decoration: underline; } .assessment-wrapper section .grouping:hover { border-radius: 10px; background-color: #aceaff; } .assessment-wrapper section .instructions { font-size: 12pt; font-weight: bold; padding: 10px 0; } .assessment-wrapper .grouping .header-text { font-size: 12pt; font-weight: bold; } .assessment-wrapper[data-disabled="true"] span.field-validation-valid { display: none !important; } .assessment-wrapper[data-disabled="true"] span:before { display: none !important; } .modal-loading-indicator { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(144, 144, 144, 0.5) url(../images/loading.gif) center center no-repeat; } .question-answer-wrapper { position: relative; } /* Finders */ .finder-wrapper { position: relative; display: inline-block; margin-bottom: -2px; } .finder-wrapper.open .finder-popover { display: inline-block; } .finder-wrapper input { margin-top: 0; border-radius: 4px 0 0 4px; } .finder-wrapper .finder-all-button { float: right; padding: 1px 5px 2px 5px; margin-left: -3px; border-radius: 0 4px 4px 0; background-color: transparent; color: black; display: inline-block; *display: inline; /* IE7 inline-block hack */ *zoom: 1; padding: 4px 12px; margin-bottom: 0; font-size: 14px; line-height: 20px; text-align: center; vertical-align: middle; cursor: pointer; color: #333333; text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75); background-color: #f5f5f5; background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6)); background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6); background-image: -o-linear-gradient(top, #ffffff, #e6e6e6); background-image: linear-gradient(to bottom, #ffffff, #e6e6e6); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0); border-color: #e6e6e6 #e6e6e6 #bfbfbf; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); *background-color: #e6e6e6; /* Darken IE7 buttons by default so they stand out more given they won't have borders */ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); border: 1px solid #cccccc; *border: 0; border-bottom-color: #b3b3b3; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; *margin-left: .3em; -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05); -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05); line-height: 15px; } .finder-wrapper .finder-all-button:hover, .finder-wrapper .finder-all-button:focus, .finder-wrapper .finder-all-button:active, .finder-wrapper .finder-all-button.active, .finder-wrapper .finder-all-button.disabled, .finder-wrapper .finder-all-button[disabled] { color: #333333; background-color: #e6e6e6; *background-color: #d9d9d9; } .finder-wrapper .finder-all-button:active, .finder-wrapper .finder-all-button.active { background-color: #cccccc \9; } .finder-wrapper .finder-all-button:first-child { *margin-left: 0; } .finder-wrapper .finder-all-button:hover, .finder-wrapper .finder-all-button:focus { color: #333333; text-decoration: none; background-position: 0 -15px; -webkit-transition: background-position 0.1s linear; -moz-transition: background-position 0.1s linear; -o-transition: background-position 0.1s linear; transition: background-position 0.1s linear; } .finder-wrapper .finder-all-button:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } .finder-wrapper .finder-all-button.active, .finder-wrapper .finder-all-button:active { background-image: none; background-color: #27aae1; color: #FFFFFF; outline: 0; -webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05); -moz-box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05); box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05); } .finder-wrapper .finder-all-button.disabled, .finder-wrapper .finder-all-button[disabled] { cursor: default; background-image: none; opacity: 0.65; filter: alpha(opacity=65); -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; color: #555555; } .finder-wrapper .finder-all-button .label, .finder-wrapper .finder-all-button .badge { position: relative; top: -1px; } .finder-wrapper .finder-all-button:before { -webkit-font-smoothing: antialiased; content: '\e0b7'; font-size: 150%; font-family: 'icomoon'; } .finder-wrapper .finder-loading-indicator { padding: 5px 15px; border-top: darkgray solid 1px; } .finder-wrapper[data-finder-ajax='loading'] .finder-loading-indicator:after { content: 'Loading...'; } .finder-wrapper .finder-popover { position: absolute; top: 30px; left: 0; z-index: 2000; display: none; padding: 15px 5px 0 5px; width: 308px; border: darkgray solid 1px; background: white; color: black; } .finder-wrapper .finder-list { z-index: 2000; overflow-y: auto; margin: 0; max-height: 200px; list-style: none; } .finder-wrapper .finder-list .selected { background-color: #3693cf; } .finder-wrapper .finder-list .finder-item { float: none; margin: 0; padding: 5px; border: none; } .finder-wrapper .finder-list .finder-item a { padding: 0; color: black; } .finder-wrapper .finder-list .finder-item a:hover { color: white; opacity: 1; } .finder-wrapper .finder-list .finder-item:hover { background-color: #3693cf; } .finder-wrapper .finder-list .finder-value { display: block; text-decoration: none; } .finder-wrapper .finder-list .finder-value:visited { color: inherit; } #reports-center-report-filter { width: 150px !important; margin-left: 10px; } #report-builder-link { margin-top: -5px; margin-left: 12px; } /* Calendar */ /* To display delete button https://code.google.com/p/fullcalendar/issues/attachmentText?id=210&aid=-166241222149182113&name=hoverDeleteButton.txt&token=P3hYrecpBYAM3kgNIu0n55fYn14%3A1375965780277 */ .fc-transparent, .fc-agenda .fc-transparent .fc-event-time, .fc-transparent a { padding-left: 1px; border-color: transparent; background-color: transparent; color: #3693cf; text-decoration: none !important; } .fc-transparent { position: absolute; top: -1px; z-index: 100; width: 100%; height: 100%; text-align: right; } table.fc-agenda-slots { display: none; } .ui-icon-circle-triangle-w:after { -webkit-font-smoothing: antialiased; display: block; margin-top: -5px; content: '\e126'; text-indent: 0; font-size: 100%; font-family: 'icomoon'; } .ui-icon-circle-triangle-e:after { -webkit-font-smoothing: antialiased; display: block; margin-top: -5px; content: '\e122'; text-indent: 0; font-size: 100%; font-family: 'icomoon'; } .fc-agenda-allday, .fc-agenda-divider { display: none; } .fc-header tr { text-align: center; } .fc-header tr td { display: inline-block; width: auto; } .fc-header-title h2 { margin: -6px 13px; font-size: 1.5em; } .fc-view.fc-view-agendaDay > table tbody tr td { width: 100%; } .fc-view.fc-view-agendaDay > table tbody tr td div { min-height: 230px; height: auto !important; } .fc-view.fc-view-agendaDay > div > div:last-child { display: none; } /* Report Builder */ .report-builder { height: 100%; background-color: #fff; } .report-builder .right-nav { overflow-y: auto; height: 100%; border-left: lightgray solid 2px; background-color: #EAF0F3; } .report-builder .right-nav > div { max-height: 50%; } .report-builder .right-nav .title { background-color: #aed0ea; } .report-builder .right-nav h5 { display: block; margin: 0; padding: 5px; border-top: lightgray solid 1px; border-bottom: black solid 1px; } .report-builder .main-content { overflow-y: auto; height: 100%; } .report-builder .main-content #specify-range div { float: left; } .report-builder .main-content #specify-range div:first-child { margin-right: 10px; } .report-builder .main-content .seperator { border-bottom: darkgray solid 1px; background-color: lightgray; padding: 4px 4px 4px 10px; } .report-builder .main-content .tools { float: right; } .report-builder .main-content .parameters-expander .expand-content { padding: 0px; border-bottom: lightgrey solid 1px; background: white; box-shadow: none; } .report-builder .main-content .parameters-expander .expander-button { bottom: -13px; left: 45%; width: 40px; height: 13px; border-radius: 0; background: lightgray; cursor: pointer; } .report-builder .main-content .parameters-expander .expander-button:before { position: relative; top: 7px; margin-left: 14px; padding: 0; border-top: 7px solid gray; border-right: 6px solid transparent; border-left: 6px solid transparent; content: ''; opacity: 0.5; } .report-builder .main-content .parameters-expander .expander-summary { padding: 2px 15px; border-bottom: lightgrey solid 1px; background: transparent; box-shadow: none; color: darkgray; } .report-builder .main-content .parameters-expander label { margin: 0; padding: 0; color: black; font-size: 90%; } /* Patient Portal */ .btn-portal-guide { position: absolute; top: 0; left: 45%; border-radius: 0 0 5px 5px; border-color: rgba(255, 165, 0, 0.89); background-color: rgba(255, 165, 0, 0.89); color: white; background-image: none; } .btn-portal-guide:hover { border-color: rgba(255, 165, 0, 0.89); background-color: rgba(255, 165, 0, 0.89); color: white; background-image: none; } #patientPortalTour { display: none; } [data-role='multiselect'] + .btn-group > button { display: none; } [data-role='multiselect'] + .btn-group .multiselect-container { display: block; position: relative; background: transparent; border: solid 1px #cccccc; border-radius: 5px; box-shadow: none; margin-top: 3px; } [data-role='multiselect'] + .btn-group ul.disabled { background: #eeeeee !important; background-color: #eeeeee !important; background-image: none; } [data-role='multiselect'] + .btn-group ul.disabled a { text-decoration: none !important; color: black !important; cursor: not-allowed !important; } [data-role='multiselect'] + .btn-group ul.disabled a label { cursor: not-allowed !important; } .dateRangeOptions { color: black; padding-left: 8px; margin-top: 2px; position: absolute; cursor: pointer; } .dateRangeOptionGroup { padding-bottom: 10px; } .intRange { display: inline-block; } .intRangeTo { display: inline-block; padding-left: 10px; padding-right: 10px; } .removeButton-questionLookup { vertical-align: top; margin-top: 5px; } .question-group { font-weight: 700; font-size: larger; } .question-lookup-section { background-color: darkgray; } .question-lookup-group { font-weight: bold; padding: 7px 0; background-color: darkgray; } .question-lookup-question { background-color: #fff; cursor: pointer; padding: 7px 0; border-bottom: 1px solid lightgray; } .question-lookup-question a { text-decoration: none; } .question-lookup-question a:hover { text-decoration: none; color: #fff; } .question-lookup-question:hover, .question-lookup-question:hover a { background-color: #0081c2; color: #fff; } .question-lookup-container { position: relative; display: inline-block; margin-bottom: -2px; } .question-lookup-container .question-lookup, .question-lookup-container .question-lookup-no-results-found { position: absolute; top: 55px; left: 0; z-index: 1001; width: 600px; background: white; color: black; overflow-y: auto; max-height: 200px; border: 1px solid darkgray; } .question-lookup-container .question-lookup-no-results-found { width: 300px; padding: 10px; } .assessmentInfoContainer { color: #000; float: left; } .assessmentInfoContainer label { color: #000; font-weight: bold; display: inline-block; } .assessmentClose { color: #000; float: right; } .assessmentQuestionContainer { border: 1px solid #000000; margin-bottom: 8px; padding: 8px; } .btn-remove-assessment-questions-group { font-size: 14pt; color: #000; text-decoration: none; } .btn-remove-assessment-questions-group:hover { font-size: 14pt; color: #000; text-decoration: none; } .btn-remove-assessment-question, .btn-remove-assessment-question:hover { font-size: 14pt; color: #000; text-decoration: none; font-size: 13pt; } /* STATE RULES ---------------------------------------------------------- State rules describe how a module or layout will look when in a particular state (for example, selected, focus, hidden etc.) or in a particular part of the screen or system. States should be made to stand alone and are usually built of a single class selector. ----------------------------------------------------------*/ /* CHANGING STATE RULES ---------------------------------------------------------- State Changes can be implemented in three different ways: Class Name - when a class changes with JavaScript Pseudo-Class - a change is applied using a number of Pseudo-Classes Media Query - defines how things should be styles under defined criteria ----------------------------------------------------------*/ @media screen and (max-width: 648px) { .assessment-header h3 { font-size: 18.5px; } .modal { width: 100%; left: 0; margin-left: 0; } .modal .modal-body { width: 100%; } .dashboard-wrapper .patient-dashboard .right { width: 100%; } .dashboard-wrapper .widget { width: 97% !important; height: auto !important; float: left !important; } .dashboard-wrapper .widget fieldset { margin: 0; } .dashboard-wrapper .widget.expanded { top: 0; left: 0; right: 0; bottom: 0; } .dashboard-wrapper .widget .widget-body { overflow: initial !important; } .top-nav .dropdown-wrapper { display: block; } .top-nav > ul { display: none; } #procenter-logo { font-size: 1.2em; line-height: 28px; margin-left: 5px; } #procenter-logo:before { font-size: 1em; top: 0; } #main-add-patient { display: none; visibility: hidden; } #reports-center-report-filter { display: none; visibility: hidden; } #dashboard-filter { width: 75px; } body header { min-height: 0; margin-bottom: 0; line-height: 28px; height: 28px; } body header .mini-nav { height: 28px; } body header .mini-nav li { padding: 0 15px; } body header .mini-nav li .fs1 { padding-top: 0; line-height: 28px; height: 28px; } body header .mini-nav li .info-label { right: 0; } body header .user-profile { margin-top: 3px; line-height: 16px; } .patient-header { padding: 5px; } .patient-details { float: none; display: block; width: 100%; border-right: none; border-bottom: 2px darkgray solid; margin-left: -15px; } .patient-details .info h5, .patient-details img { display: none; } .patient-details span { display: inline-block; margin-right: 15px; } .patient-details .tools { float: right; bottom: 3px; padding-right: 15px; } .assessment-wrapper .row-fluid .offset1:first-child { margin-left: 0; } .assessment-wrapper .row-fluid [class*="span"] { width: 98%; } .assessment-wrapper .row-fluid .question-answer-wrapper { text-align: left; padding-right: 15px; } .organization-summary { float: none; } .organization-summary h4 { display: inline; font-size: 15.5px; } .organization-summary .btn { margin-top: 0; } .organization-summary .address { display: none; } .editor-content { padding: 0; } .dashboard-wrapper .team-editor .dataTables_wrapper .dataTables_filter { display: none; } label { font-size: 10pt; } body { font-size: 10pt; } .dataTable_length { display: none; } .dataTables_wrapper .dataTables_paginate, .dataTables_wrapper .invisible-column-max648 { display: none; } .assessment-definition { display: none; } } @media screen and (max-width: 880px) { .dataTables_wrapper .dataTables_paginate { display: none; } .assessment-definition { display: none; } .team-editor .dataTable-wrapper { width: 100%; } .team-editor .buttons-row { display: none; visibility: hidden; } .team-editor .remove.hidden, .team-editor .add.hidden { display: inline-block; visibility: visible; } .team-editor .remove { float: right; } label { font-size: 10pt; } body { font-size: 10pt; } } @media screen and (max-width: 1125px) { .assessment-definition { display: none; } } .hidden { display: none; visibility: hidden; } /* Bluemoon Button */ .btn:visited { color: #ffffff; } [data-icon]:before { padding-right: 5px; font-family: 'icomoon'; content: attr(data-icon); -webkit-font-smoothing: antialiased; } [data-icon-after]:after { padding-left: 5px; font-family: 'icomoon'; content: attr(data-icon); -webkit-font-smoothing: antialiased; } .ui-state-focus { background: #c2dcf0; border: none; border-radius: 5px; margin: 0px 0px 0px 0px; padding-bottom: 0px; } .question-root:hover { background-color: #e5f2fd; border-radius: 5px; } /* Data Ajax Indicators */ [data-ajax-status='loading'] .ajax-loading-indicator { width: 25px; height: 15px; display: inline-block; position: absolute; } [data-ajax-status='loading'] .ajax-loading-indicator:before { content: ' '; width: 5px; height: 5px; background: gray; -moz-border-radius: 5px; -o-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; left: 5px; -moz-animation: loading 1s infinite; -o-animation: loading 1s infinite; -webkit-animation: loading 1s infinite; animation: loading 1s infinite; } [data-ajax-status='loading'] .ajax-loading-indicator:after { content: ' '; display: inline-block; width: 5px; height: 5px; background: lightgrey; -moz-border-radius: 5px; -o-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; margin-left: -5px; position: absolute; left: 5px; top: 0; -moz-animation: loading1 1s infinite; -o-animation: loading1 1s infinite; -webkit-animation: loading1 1s infinite; animation: loading1 1s infinite; } [data-ajax-status='success'] .ajax-loading-indicator { width: 4px; height: 11px; border: solid green; border-width: 0 4px 4px 0; -moz-transform: rotate(45deg); -o-transform: rotate(45deg); -ms-transform: rotate(45deg); -webkit-transform: rotate(45deg); transform: rotate(45deg); } .ajax-loading-indicator { display: inline-block; margin-left: 15px; top: 30%; } .person-name label { float: left; } .person-name .ajax-loading-indicator { top: 0; } .ajax-loading-indicator span { display: none; margin-left: 20px; } [data-ajax-status='loading'] .ajax-loading-indicator span { display: inline; } div[data-placeholder-wrapper] { position: relative; display: inline; } div[data-placeholder-hide]:before { display: none; } div[data-placeholder-wrapper]:before { content: attr(data-placeholder-wrapper); position: absolute; top: -2px; left: 5px; color: darkgray; font-style: italic; } .sub-nav div[data-placeholder-wrapper]:before { position: relative; left: -215px; } /* Keyframes Loading */ @keyframes loading { 0% { left: 5px; top: 0; } 3.57% { left: 6px; top: 0; } 7.14% { left: 7px; top: 0; } 10.71% { left: 8px; top: 1px; } 14.28% { left: 9px; top: 2px; } 17.85% { left: 10px; top: 3px; } 21.42% { left: 10px; top: 4px; } 24.99% { left: 10px; top: 5px; } 28.56% { left: 10px; top: 6px; } 32.13% { left: 10px; top: 7px; } 35.7% { left: 9px; top: 8px; } 39.27% { left: 8px; top: 9px; } 42.84% { left: 7px; top: 10px; } 46.41% { left: 6px; top: 10px; } 49.98% { left: 5px; top: 10px; } 53.55% { left: 4px; top: 10px; } 57.12% { left: 3px; top: 10px; } 60.69% { left: 2px; top: 9px; } 64.26% { left: 1px; top: 8px; } 67.83% { left: 0; top: 7px; } 71.4% { left: 0; top: 6px; } 74.97% { left: 0; top: 5px; } 78.54% { left: 0; top: 4px; } 82.11% { left: 0; top: 3px; } 85.68% { left: 1px; top: 2px; } 89.25% { left: 2px; top: 1px; } 95.82% { left: 3px; top: 0; } 100% { left: 4px; top: 0; } } @-webkit-keyframes loading { 0% { left: 5px; top: 0; } 3.57% { left: 6px; top: 0; } 7.14% { left: 7px; top: 0; } 10.71% { left: 8px; top: 1px; } 14.28% { left: 9px; top: 2px; } 17.85% { left: 10px; top: 3px; } 21.42% { left: 10px; top: 4px; } 24.99% { left: 10px; top: 5px; } 28.56% { left: 10px; top: 6px; } 32.13% { left: 10px; top: 7px; } 35.7% { left: 9px; top: 8px; } 39.27% { left: 8px; top: 9px; } 42.84% { left: 7px; top: 10px; } 46.41% { left: 6px; top: 10px; } 49.98% { left: 5px; top: 10px; } 53.55% { left: 4px; top: 10px; } 57.12% { left: 3px; top: 10px; } 60.69% { left: 2px; top: 9px; } 64.26% { left: 1px; top: 8px; } 67.83% { left: 0; top: 7px; } 71.4% { left: 0; top: 6px; } 74.97% { left: 0; top: 5px; } 78.54% { left: 0; top: 4px; } 82.11% { left: 0; top: 3px; } 85.68% { left: 1px; top: 2px; } 89.25% { left: 2px; top: 1px; } 95.82% { left: 3px; top: 0; } 100% { left: 4px; top: 0; } } @-moz-keyframes loading { 0% { left: 5px; top: 0; } 3.57% { left: 6px; top: 0; } 7.14% { left: 7px; top: 0; } 10.71% { left: 8px; top: 1px; } 14.28% { left: 9px; top: 2px; } 17.85% { left: 10px; top: 3px; } 21.42% { left: 10px; top: 4px; } 24.99% { left: 10px; top: 5px; } 28.56% { left: 10px; top: 6px; } 32.13% { left: 10px; top: 7px; } 35.7% { left: 9px; top: 8px; } 39.27% { left: 8px; top: 9px; } 42.84% { left: 7px; top: 10px; } 46.41% { left: 6px; top: 10px; } 49.98% { left: 5px; top: 10px; } 53.55% { left: 4px; top: 10px; } 57.12% { left: 3px; top: 10px; } 60.69% { left: 2px; top: 9px; } 64.26% { left: 1px; top: 8px; } 67.83% { left: 0; top: 7px; } 71.4% { left: 0; top: 6px; } 74.97% { left: 0; top: 5px; } 78.54% { left: 0; top: 4px; } 82.11% { left: 0; top: 3px; } 85.68% { left: 1px; top: 2px; } 89.25% { left: 2px; top: 1px; } 95.82% { left: 3px; top: 0; } 100% { left: 4px; top: 0; } } @keyframes loading1 { 0% { left: 0; top: 4px; } 3.57% { left: 0; top: 3px; } 7.14% { left: 1px; top: 2px; } 10.71% { left: 2px; top: 1px; } 14.28% { left: 3px; top: 0; } 17.85% { left: 4px; top: 0; } 21.42% { left: 5px; top: 0; } 24.99% { left: 6px; top: 0; } 28.56% { left: 7px; top: 0; } 32.13% { left: 8px; top: 1px; } 35.7% { left: 9px; top: 2px; } 39.27% { left: 10px; top: 3px; } 42.84% { left: 10px; top: 4px; } 46.41% { left: 10px; top: 5px; } 49.98% { left: 10px; top: 6px; } 53.55% { left: 10px; top: 7px; } 57.12% { left: 9px; top: 8px; } 60.69% { left: 8px; top: 9px; } 64.26% { left: 7px; top: 10px; } 67.83% { left: 6px; top: 10px; } 71.4% { left: 5px; top: 10px; } 74.97% { left: 4px; top: 10px; } 78.54% { left: 3px; top: 10px; } 82.11% { left: 2px; top: 9px; } 85.68% { left: 1px; top: 8px; } 89.25% { left: 0; top: 7px; } 95.82% { left: 0; top: 6px; } 100% { left: 0; top: 5px; } } @-webkit-keyframes loading1 { 0% { left: 0; top: 4px; } 3.57% { left: 0; top: 3px; } 7.14% { left: 1px; top: 2px; } 10.71% { left: 2px; top: 1px; } 14.28% { left: 3px; top: 0; } 17.85% { left: 4px; top: 0; } 21.42% { left: 5px; top: 0; } 24.99% { left: 6px; top: 0; } 28.56% { left: 7px; top: 0; } 32.13% { left: 8px; top: 1px; } 35.7% { left: 9px; top: 2px; } 39.27% { left: 10px; top: 3px; } 42.84% { left: 10px; top: 4px; } 46.41% { left: 10px; top: 5px; } 49.98% { left: 10px; top: 6px; } 53.55% { left: 10px; top: 7px; } 57.12% { left: 9px; top: 8px; } 60.69% { left: 8px; top: 9px; } 64.26% { left: 7px; top: 10px; } 67.83% { left: 6px; top: 10px; } 71.4% { left: 5px; top: 10px; } 74.97% { left: 4px; top: 10px; } 78.54% { left: 3px; top: 10px; } 82.11% { left: 2px; top: 9px; } 85.68% { left: 1px; top: 8px; } 89.25% { left: 0; top: 7px; } 95.82% { left: 0; top: 6px; } 100% { left: 0; top: 5px; } } @-moz-keyframes loading1 { 0% { left: 0; top: 4px; } 3.57% { left: 0; top: 3px; } 7.14% { left: 1px; top: 2px; } 10.71% { left: 2px; top: 1px; } 14.28% { left: 3px; top: 0; } 17.85% { left: 4px; top: 0; } 21.42% { left: 5px; top: 0; } 24.99% { left: 6px; top: 0; } 28.56% { left: 7px; top: 0; } 32.13% { left: 8px; top: 1px; } 35.7% { left: 9px; top: 2px; } 39.27% { left: 10px; top: 3px; } 42.84% { left: 10px; top: 4px; } 46.41% { left: 10px; top: 5px; } 49.98% { left: 10px; top: 6px; } 53.55% { left: 10px; top: 7px; } 57.12% { left: 9px; top: 8px; } 60.69% { left: 8px; top: 9px; } 64.26% { left: 7px; top: 10px; } 67.83% { left: 6px; top: 10px; } 71.4% { left: 5px; top: 10px; } 74.97% { left: 4px; top: 10px; } 78.54% { left: 3px; top: 10px; } 82.11% { left: 2px; top: 9px; } 85.68% { left: 1px; top: 8px; } 89.25% { left: 0; top: 7px; } 95.82% { left: 0; top: 6px; } 100% { left: 0; top: 5px; } } .field-validation-valid { display: inline !important; } .yesno-radiobuttons [data-val-completeness-report] + span:before { padding: 1px 3px 1px 3px; border-radius: 3px 0 0 3px; font-size: .75em; margin-top: 2px; } select.multiselect[data-val-completeness-report] + div + span:before, select[data-val-completeness-report] + span:before { content: "R"; color: white; background: red; position: absolute; top: 4px; left: -13px; padding: 1px 2px 1px 3px; z-index: 1; border-radius: 3px 0 0 3px; font-size: .9em; font-family: "Segoe UI", Verdana, Helvetica, Sans-Serif; } [data-val-completeness-report] + div + span:before, [data-val-completeness-report] + span:before { content: 'R'; color: white; background: red; position: absolute; top: 0; left: -13px; padding: 0px 3px 0px 3px; z-index: 1; border-radius: 3px; font-size: .9em; font-family: "Segoe UI", Verdana, Helvetica, Sans-Serif; } .patient-feed-content { border-bottom: solid 1px lightgray; margin: 15px; padding-bottom: 10px; } .patient-feed-content:last-child { border-bottom: solid 0px lightgray; } .feed-left { float: left; font-size: 150%; padding-right: 20px; } /* Loaders */ #section-loader, #submit-loader { display: none; position: absolute; top: 0; left: 0; height: 100%; width: 100%; z-index: 1000; text-align: center; background: lightgrey; background: rgba(155, 155, 155, 0.4); } #section-loader span, #submit-loader span { position: relative; top: 50%; font-size: 16pt; color: white; } .modal-error { padding: 5px 10px 5px 10px; } .patient-reports .status_1, #patientReportsDataTable_wrapper .status_1 { background-color: rgba(15, 185, 15, 0.74); color: #003600; } .patient-reports .status_2, #patientReportsDataTable_wrapper .status_2 { background-color: rgba(238, 211, 11, 0.63); color: #3b3c00; } .patient-reports .status_3, #patientReportsDataTable_wrapper .status_3 { background-color: rgba(238, 9, 9, 0.81); color: #ffeded; } .row-fluid [class*="span"].hidden { display: none; } body { background-color: #2b6588; } /* Header starts */ header { /*border-top: 4px solid @tab-color; .shadow-gradient(#333333,@background-color,#0d0d0d);*/ line-height: 48px; vertical-align: middle; width: 100%; } header .logo { max-width: 360px; padding-left: 10px; } header .logo:hover { opacity: 0.7; } header .mini-nav { float: right; height: 48px; margin: 0px 20px 0 0; } header .mini-nav li { /*.shadow-gradient(#333333,@background-color,black); -webkit-box-shadow: 0 0 30px black inset; box-shadow: 0 0 30px black inset;*/ padding: 0px 30px; float: left; position: relative; height: 100%; border-right: 1px solid #0daed3; display: block; cursor: pointer; } header .mini-nav li a { color: #eeeeee; font-size: 11px; } header .mini-nav li a:hover { text-decoration: none; } header .mini-nav li .fs1 { font-size: large; padding-top: 10px; line-height: 38px; color: white; } header .mini-nav li .info-label { display: inline-block; position: absolute; top: 5px; right: 15px; width: 18px; text-align: center; background: #0daed3; color: white; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; z-index: 1000; line-height: 16px; } header .mini-nav li:hover { background-color: #0daed3; background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0daed3), color-stop(85%, #0daed3), to(#0daed3)); background-image: -webkit-linear-gradient(#0daed3, #0daed3 85%, #0daed3); background-image: -moz-linear-gradient(top, #0daed3, #0daed3 85%, #0daed3); background-image: -o-linear-gradient(#0daed3, #0daed3 85%, #0daed3); background-image: linear-gradient(#0daed3, #0daed3 85%, #0daed3); background-repeat: no-repeat; -webkit-box-shadow: 0 0 10px #0daed3 inset; -moz-box-shadow: 0 0 10px #0daed3 inset; box-shadow: 0 0 10px #0daed3 inset; } header .mini-nav li:first-child { border-left: 1px solid #0daed3; } header .user-profile { float: right; cursor: pointer; line-height: 24px; margin: 4px 10px 0 0; } header .user-profile img { width: 32px; height: 32px; border: 2px solid white; } header .user-profile .caret { border-top: 4px solid white; margin-top: 2px; display: block; margin: auto; } /* Main Navigation starts */ .top-nav { margin-bottom: 0px; } .top-nav ul { margin: 0; padding: 0; list-style: none; } .top-nav ul li { width: 95px; float: left; margin-right: 1px; } .top-nav ul li a { -webkit-border-radius: 4px 4px 0 0; -moz-border-radius: 4px 4px 0 0; border-radius: 4px 4px 0 0; background-color: #ebebeb; background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f2f2f2), color-stop(85%, #ebebeb), to(#cccccc)); background-image: -webkit-linear-gradient(#f2f2f2, #ebebeb 85%, #cccccc); background-image: -moz-linear-gradient(top, #f2f2f2, #ebebeb 85%, #cccccc); background-image: -o-linear-gradient(#f2f2f2, #ebebeb 85%, #cccccc); background-image: linear-gradient(#f2f2f2, #ebebeb 85%, #cccccc); background-repeat: no-repeat; text-align: center; -webkit-transition: All 0.2s ease; -moz-transition: All 0.2s ease; -ms-transition: All 0.2s ease; -o-transition: All 0.2s ease; transition: All 0.2s ease; height: 38px; display: block; padding: 20px 10px 10px 10px; text-transform: uppercase; color: #666666; font-size: 11px; } .top-nav ul li a:hover { background: #5bb2d5; color: white; text-decoration: none; } .top-nav ul li a:hover .icon { background: #5fa9d9; border: 4px solid #246895; } .top-nav ul li .selected { -webkit-border-radius: 4px 4px 0 0; -moz-border-radius: 4px 4px 0 0; border-radius: 4px 4px 0 0; background: #5bb2d5; color: white; -webkit-text-shadow: 1px 1px 1px #1f5a80; text-shadow: 1px 1px 1px #1f5a80; } .top-nav ul li .selected:hover { background: #5bb2d5; color: white; -webkit-text-shadow: 1px 1px 1px #1f5a80; text-shadow: 1px 1px 1px #1f5a80; } /* Sub Navigation starts */ .sub-nav { background-color: #5bb2d5; background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5bb2d5), color-stop(85%, #5bb2d5), to(#0d749c)); background-image: -webkit-linear-gradient(#5bb2d5, #5bb2d5 85%, #0d749c); background-image: -moz-linear-gradient(top, #5bb2d5, #5bb2d5 85%, #0d749c); background-image: -o-linear-gradient(#5bb2d5, #5bb2d5 85%, #0d749c); background-image: linear-gradient(#5bb2d5, #5bb2d5 85%, #0d749c); background-repeat: no-repeat; -webkit-border-radius: 0 4px 0 0; -moz-border-radius: 0 4px 0 0; border-radius: 0 4px 0 0; border-bottom: white solid 1px; height: 48px; line-height: 48px; } .sub-nav li { float: left; margin-top: 14px; line-height: 100%; border-right: 1px solid rgba(0, 0, 0, 0.2); } .sub-nav li a { color: white; font-size: 12px; -webkit-text-shadow: none; text-shadow: none; line-height: 18px; height: 18px; padding: 2px 20px; } .sub-nav li a:hover { opacity: 0.7; } .sub-nav li .selected { color: black; } .sub-nav li .heading { font-size: 16px; line-height: 16px; padding-right: 10px; color: white; opacity: 1; } .sub-nav li:last-of-type { border-right: none; } .sub-nav li:first-of-type { border-right: none; } .sub-nav .input-search { float: right; margin: 8px 5px 0 0; background: rgba(0, 0, 0, 0.3); border: 1px solid #5fa9d9; } .sub-nav ::-webkit-input-placeholder { color: #c6e0f1; } .sub-nav ::-moz-placeholder { color: #c6e0f1; } .sub-nav :-ms-input-placeholder { color: #c6e0f1; } .sub-nav .btn-group { line-height: 24px; display: none; float: right; margin-top: 8px; margin-right: 20px; } .sub-nav .btn-group li { float: none; margin-top: 0; border-right: none; } .sub-nav .btn-group li a:hover { opacity: 1; } /* DASHBOARD CSS Starts here */ .dashboard-wrapper { position: relative; background: #95a4ac; -webkit-border-radius: 0 0 4px 4px; -moz-border-radius: 0 0 4px 4px; border-radius: 0 0 4px 4px; margin: 0; padding: 0; min-height: 100%; } .dashboard-wrapper .widget { background: #fafafa; border: 1px solid #e8f0f5; color: #57798f; -webkit-border-radius: 7px; -moz-border-radius: 7px; border-radius: 7px; margin: 10px 1%; float: left; width: 47%; min-width: 300px; height: 350px; } .dashboard-wrapper .widget .widget-header { background-color: #e8e8e8; /* Fallback Color */ background-image: -webkit-gradient(linear, left top, left bottom, from(#ccdbe2), to(#ccdbe2)); /* Saf4+, Chrome */ background-image: -webkit-linear-gradient(top, #ccdbe2, #ccdbe2); /* Chrome 10+, Saf5.1+, iOS 5+ */ background-image: -moz-linear-gradient(top, #ccdbe2, #ccdbe2); /* FF3.6 */ background-image: -ms-linear-gradient(top, #ccdbe2, #ccdbe2); /* IE10 */ background-image: -o-linear-gradient(top, #ccdbe2, #ccdbe2); /* Opera 11.10+ */ background-image: linear-gradient(top, #ccdbe2, #ccdbe2); -webkit-border-radius: 2px 2px 0 0; -moz-border-radius: 2px 2px 0 0; border-radius: 2px 2px 0 0; border-bottom: 1px solid #cfcfcf; height: 24px; line-height: 24px; padding: 10px; } .dashboard-wrapper .widget .widget-header .title { color: #57798f; float: left; font-weight: bold; font-size: 16px; } .dashboard-wrapper .widget .widget-header .title .mini-title { font-size: 11px; padding-left: 4px; color: #b3b3b3; font-weight: normal; } .dashboard-wrapper .widget .widget-header span.tools { padding: 0 2px 0 0; float: right; margin: -3px 0 0 0; } .dashboard-wrapper .widget .widget-header span.tools > a { display: inline-block; margin-right: 5px; color: #57798f; margin-top: 3px; vertical-align: top; } .dashboard-wrapper .widget .widget-header span.tools > a:hover { text-decoration: none; opacity: .6; } .dashboard-wrapper .widget .widget-header span.tools > a.btn { color: white; margin-top: 0; } .dashboard-wrapper .widget .widget-body { padding: 0 10px; overflow-y: auto; border-bottom: 1px solid #b3b3b3; -webkit-border-radius: 0 0 2px 2px; -moz-border-radius: 0 0 2px 2px; border-radius: 0 0 2px 2px; } .dashboard-wrapper .widget .widget-body .dataTable_wrapper { height: 100%; } .dashboard-wrapper .widget .widget-body .dataTable_wrapper .dataTables_wrapper { height: 100%; } .dashboard-wrapper .widget .widget-body .dataTable_wrapper .dataTables_wrapper .dataTables_scroll { overflow-y: hidden; } .expander-root { position: relative; margin-bottom: 15px; color: #ffffff; } .expander-root .expand-content { /* background: @background-color; */ background-color: #3b4f5a; padding: 15px; /* -o-box-shadow: inset 0.1px -0.5px 10px 0.1px #000000; -moz-box-shadow: inset 0.1px -0.5px 10px 0.1px #000000; -webkit-box-shadow: inset 0.1px -0.5px 10px 0.1px #000000; box-shadow: inset 0.1px -0.5px 10px 0.1px #000000; */ } .expander-root .expander-summary { /* background: @background-color; */ background-color: #3b4f5a; padding: 5px 15px; /* -o-box-shadow: inset 0.1px -0.5px 10px 0.1px #000000; -moz-box-shadow: inset 0.1px -0.5px 10px 0.1px #000000; -webkit-box-shadow: inset 0.1px -0.5px 10px 0.1px #000000; box-shadow: inset 0.1px -0.5px 10px 0.1px #000000; */ } .expander-root .expander-summary .left-summary { float: left; } .expander-root .expander-summary .right-summary { float: right; } .expander-root .expander-button { position: absolute; background-color: #3b4f5a; /* layer fill content */ border: none; height: 15px; width: 80px; -webkit-border-radius: 0 0 15px 15px; border-radius: 0 0 15px 15px; z-index: 1000; cursor: pointer; } .expander-root .expander-button.down { left: 40%; } .expander-root .expander-button.right { top: 40%; right: -47px; transform: rotate(-90deg); -ms-transform: rotate(-90deg); /* IE 9 */ -webkit-transform: rotate(-90deg); /* Opera, Chrome, and Safari */ } .expander-root .expander-button:before { font-family: 'icomoon'; content: "\e065"; padding-left: 34px; } .simpleTabs-container .tabs { list-style: none; margin: 12px 0px 0px 0px; padding: 0 0 3px 0; border-bottom: #2b6588 solid 2px; } .simpleTabs-container .tabs li { float: left; margin-left: 1px; } .simpleTabs-container .tabs li:first-child { margin-left: 0; } .simpleTabs-container .tabs li.clearfix { float: none; } .simpleTabs-container .tabs li a { background: #c8e4f7; padding: 5px; margin-left: 4px; text-decoration: none; } .simpleTabs-container .tabs li a span { color: #2b6588; } .simpleTabs-container .tabs li a.selected, .simpleTabs-container .tabs li a:hover { background: #2b6588; } .simpleTabs-container .tabs li a.selected span, .simpleTabs-container .tabs li a:hover span { color: white; } .height-container { display: inline; } .height-container .heightFeet { margin-right: 5px; color: #000; } .height-container .heightInches { margin-left: 8px; margin-right: -3px; color: #000; } .info-buttons-btn { float: right; margin: 10px 5px; color: inherit; } .info-buttons-btn:hover { text-decoration: none; } .info-buttons-btn .info-icon { padding-right: 18px; } .info-buttons-btn .info-icon:before { font-size: 18px; font-family: 'icomoon'; content: '\e0f7'; -webkit-font-smoothing: antialiased; } .info-buttons-btn .info-icon:hover:before { content: '\e0f8'; } .popover.left.shift { right: 68px; left: initial !important; } .popover.left.shift .arrow { top: 40%; }
{ "content_hash": "987f50b29a4df909a99416fefd9bad57", "timestamp": "", "source": "github", "line_count": 6990, "max_line_length": 248, "avg_line_length": 22.450786838340488, "alnum_prop": 0.6621317649157911, "repo_name": "OBHITA/PROCenter", "id": "dd37dd8864062ced7417c12eae0f3ad4de0737e5", "size": "156931", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "ProCenter.Mvc/Content/less/procenter-style.css", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "ASP", "bytes": "5171" }, { "name": "Batchfile", "bytes": "8423" }, { "name": "C#", "bytes": "5709857" }, { "name": "CSS", "bytes": "6068607" }, { "name": "CoffeeScript", "bytes": "808" }, { "name": "HTML", "bytes": "2093418" }, { "name": "JavaScript", "bytes": "4650209" }, { "name": "PHP", "bytes": "611" }, { "name": "PowerShell", "bytes": "188034" }, { "name": "Ruby", "bytes": "25242" } ], "symlink_target": "" }
@interface WGClientServiceCenterViewController : WGViewController @end
{ "content_hash": "a85f5475d117ce2a22dad1ce68a52518", "timestamp": "", "source": "github", "line_count": 3, "max_line_length": 65, "avg_line_length": 24, "alnum_prop": 0.875, "repo_name": "mumabinggan/WeygoIPhone", "id": "927f09c74e1f02b2205eeb5bfe9485871bf7559f", "size": "260", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "WeygoIPhone/Mine/ClientServiceCenter/WGClientServiceCenterViewController.h", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Objective-C", "bytes": "1749875" }, { "name": "Shell", "bytes": "2569" } ], "symlink_target": "" }
using System; namespace BME.MIT.SETTE.Objects.Dependencies { /** * The object type used by the code snippets O1-O4. */ //@SetteDependency public class SimpleObject { protected int result = 0; protected int operationCount = 0; public virtual void addAbs(int x) { if (x > 0) { result += x; } else { result -= x; } operationCount++; } public SimpleObject chainedAddAbs(int x) { addAbs(x); return this; } public int getResult() { return result; } public int getOperationCount() { return operationCount; } } }
{ "content_hash": "f17b49d496ba2c1d035accdbdaeb8062", "timestamp": "", "source": "github", "line_count": 46, "max_line_length": 55, "avg_line_length": 17.782608695652176, "alnum_prop": 0.44376528117359415, "repo_name": "SETTE-Testing/sette-snippets", "id": "944d288090e17f83a04c2354a2b74a05ebf82525", "size": "1746", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "dotnet/sette-snippets-core/_3_objects/dependencies/SimpleObject.cs", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "245" }, { "name": "C", "bytes": "2840" }, { "name": "C#", "bytes": "280029" }, { "name": "Java", "bytes": "596788" }, { "name": "Shell", "bytes": "2217" } ], "symlink_target": "" }
ACCEPTED #### According to Index Fungorum #### Published in null #### Original name Helvella sulcata var. gracilior Grelet ### Remarks null
{ "content_hash": "24c9cd5e91f24c0ee2009c4692d9d609", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 38, "avg_line_length": 11, "alnum_prop": 0.7202797202797203, "repo_name": "mdoering/backbone", "id": "3e952194c57852471eae7c29ee28991aa27a7fd3", "size": "205", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Fungi/Ascomycota/Pezizomycetes/Pezizales/Helvellaceae/Helvella/Helvella lacunosa/Helvella sulcata gracilior/README.md", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>reglang: 1 m 20 s 🏆</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.10.1 / reglang - 1.1.3</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> reglang <small> 1.1.3 <span class="label label-success">1 m 20 s 🏆</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-10-16 14:17:11 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-10-16 14:17:11 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-num base Num library distributed with the OCaml compiler base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils coq 8.10.1 Formal proof management system num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.05.0 The OCaml compiler (virtual package) ocaml-base-compiler 4.05.0 Official 4.05.0 release ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.5 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;palmskog@gmail.com&quot; homepage: &quot;https://github.com/coq-community/reglang&quot; dev-repo: &quot;git+https://github.com/coq-community/reglang.git&quot; bug-reports: &quot;https://github.com/coq-community/reglang/issues&quot; doc: &quot;https://coq-community.github.io/reglang/&quot; license: &quot;CECILL-B&quot; synopsis: &quot;Representations of regular languages (i.e., regexps, various types of automata, and WS1S) with equivalence proofs, in Coq and MathComp&quot; description: &quot;&quot;&quot; This library provides definitions and verified translations between different representations of regular languages: various forms of automata (deterministic, nondeterministic, one-way, two-way), regular expressions, and the logic WS1S. It also contains various decidability results and closure properties of regular languages.&quot;&quot;&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] depends: [ &quot;coq&quot; {&gt;= &quot;8.10&quot; &amp; &lt; &quot;8.17~&quot;} &quot;coq-mathcomp-ssreflect&quot; {&gt;= &quot;1.11&quot; &amp; &lt; &quot;1.16~&quot;} ] tags: [ &quot;category:Computer Science/Formal Languages Theory and Automata&quot; &quot;keyword:regular languages&quot; &quot;keyword:regular expressions&quot; &quot;keyword:finite automata&quot; &quot;keyword:two-way automata&quot; &quot;keyword:monadic second-order logic&quot; &quot;logpath:RegLang&quot; &quot;date:2021-01-20&quot; ] authors: [ &quot;Christian Doczkal&quot; &quot;Jan-Oliver Kaiser&quot; &quot;Gert Smolka&quot; ] url { src: &quot;https://github.com/coq-community/reglang/archive/v1.1.3.tar.gz&quot; checksum: &quot;sha512=45085423899a0957922198c24c54c496cc4d4f9f02bd9ed6db72854436982acc9994487b0381bad8046eec5be0252a6fdc2ef0f001e48a0f58c323f1e46ee143&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install 🏜️</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-reglang.1.1.3 coq.8.10.1</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam list; echo; ulimit -Sv 4000000; timeout 4h opam install -y --deps-only coq-reglang.1.1.3 coq.8.10.1</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>2 m 6 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam list; echo; ulimit -Sv 16000000; timeout 4h opam install -y -v coq-reglang.1.1.3 coq.8.10.1</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>1 m 20 s</dd> </dl> <h2>Installation size</h2> <p>Total: 17 M</p> <ul> <li>15 M <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/shepherdson.vo</code></li> <li>397 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/wmso.vo</code></li> <li>227 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/regexp.vo</code></li> <li>224 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/wmso.glob</code></li> <li>198 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/nfa.vo</code></li> <li>159 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/dfa.vo</code></li> <li>148 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/shepherdson.glob</code></li> <li>122 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/two_way.vo</code></li> <li>117 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/minimization.vo</code></li> <li>115 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/vardi.vo</code></li> <li>110 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/regexp.glob</code></li> <li>91 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/dfa.glob</code></li> <li>86 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/misc.vo</code></li> <li>79 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/languages.vo</code></li> <li>74 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/myhill_nerode.vo</code></li> <li>65 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/nfa.glob</code></li> <li>62 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/vardi.glob</code></li> <li>56 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/two_way.glob</code></li> <li>53 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/minimization.glob</code></li> <li>45 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/misc.glob</code></li> <li>43 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/setoid_leq.vo</code></li> <li>37 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/wmso.v</code></li> <li>30 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/languages.glob</code></li> <li>23 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/myhill_nerode.glob</code></li> <li>18 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/regexp.v</code></li> <li>18 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/dfa.v</code></li> <li>17 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/shepherdson.v</code></li> <li>16 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/nfa.v</code></li> <li>11 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/minimization.v</code></li> <li>8 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/misc.v</code></li> <li>8 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/setoid_leq.glob</code></li> <li>8 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/two_way.v</code></li> <li>7 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/myhill_nerode.v</code></li> <li>7 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/languages.v</code></li> <li>6 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/vardi.v</code></li> <li>2 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RegLang/setoid_leq.v</code></li> </ul> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq-reglang.1.1.3</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
{ "content_hash": "56f72c9bf9466d29e4bc83d241bf27cc", "timestamp": "", "source": "github", "line_count": 209, "max_line_length": 159, "avg_line_length": 54.10526315789474, "alnum_prop": 0.5824195259992926, "repo_name": "coq-bench/coq-bench.github.io", "id": "be70f7d447db102daead6ca587ca31d956e04ae1", "size": "11333", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "clean/Linux-x86_64-4.05.0-2.0.1/released/8.10.1/reglang/1.1.3.html", "mode": "33188", "license": "mit", "language": [], "symlink_target": "" }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_144) on Wed Jan 24 19:09:06 CST 2018 --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Uses of Class com.cyc.session.exception.UnsupportedCycOperationException (Core API 1.1.1 API)</title> <meta name="date" content="2018-01-24"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../../script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Class com.cyc.session.exception.UnsupportedCycOperationException (Core API 1.1.1 API)"; } } catch(err) { } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../com/cyc/session/exception/UnsupportedCycOperationException.html" title="class in com.cyc.session.exception">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../index-all.html">Index</a></li> <li><a href="../../../../../help-doc.html">Help</a></li> </ul> <div class="aboutLanguage"><a href="http://dev.cyc.com/api/core" target="_top">Cyc Core API<a></div> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../index.html?com/cyc/session/exception/class-use/UnsupportedCycOperationException.html" target="_top">Frames</a></li> <li><a href="UnsupportedCycOperationException.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <div class="header"> <h2 title="Uses of Class com.cyc.session.exception.UnsupportedCycOperationException" class="title">Uses of Class<br>com.cyc.session.exception.UnsupportedCycOperationException</h2> </div> <div class="classUseContainer"> <ul class="blockList"> <li class="blockList"> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation"> <caption><span>Packages that use <a href="../../../../../com/cyc/session/exception/UnsupportedCycOperationException.html" title="class in com.cyc.session.exception">UnsupportedCycOperationException</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Package</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><a href="#com.cyc.query">com.cyc.query</a></td> <td class="colLast"> <div class="block">Interfaces for asking arbitrarily complex queries of a Cyc server, and processing the answers.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#com.cyc.query.spi">com.cyc.query.spi</a></td> <td class="colLast"> <div class="block">All Query API service provider interfaces.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#com.cyc.session.exception">com.cyc.session.exception</a></td> <td class="colLast"> <div class="block">Session API exception hierarchy.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"> <ul class="blockList"> <li class="blockList"><a name="com.cyc.query"> <!-- --> </a> <h3>Uses of <a href="../../../../../com/cyc/session/exception/UnsupportedCycOperationException.html" title="class in com.cyc.session.exception">UnsupportedCycOperationException</a> in <a href="../../../../../com/cyc/query/package-summary.html">com.cyc.query</a></h3> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../com/cyc/query/package-summary.html">com.cyc.query</a> that throw <a href="../../../../../com/cyc/session/exception/UnsupportedCycOperationException.html" title="class in com.cyc.session.exception">UnsupportedCycOperationException</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../../../com/cyc/query/Query.html" title="interface in com.cyc.query">Query</a></code></td> <td class="colLast"><span class="typeNameLabel">Query.</span><code><span class="memberNameLink"><a href="../../../../../com/cyc/query/Query.html#get-com.cyc.kb.KbIndividual-">get</a></span>(<a href="../../../../../com/cyc/kb/KbIndividual.html" title="interface in com.cyc.kb">KbIndividual</a>&nbsp;id)</code> <div class="block">Constructs a Query from a KbIndividual corresponding to #$CycLQuerySpecification.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static <a href="../../../../../com/cyc/query/Query.html" title="interface in com.cyc.query">Query</a></code></td> <td class="colLast"><span class="typeNameLabel">Query.</span><code><span class="memberNameLink"><a href="../../../../../com/cyc/query/Query.html#get-com.cyc.kb.KbIndividual-java.util.Map-">get</a></span>(<a href="../../../../../com/cyc/kb/KbIndividual.html" title="interface in com.cyc.kb">KbIndividual</a>&nbsp;id, <a href="http://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../../com/cyc/kb/KbObject.html" title="interface in com.cyc.kb">KbObject</a>,<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;&nbsp;indexicals)</code> <div class="block">Returns a new Query loaded from a term in Cyc specifying its properties.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../../../com/cyc/query/Query.html" title="interface in com.cyc.query">Query</a></code></td> <td class="colLast"><span class="typeNameLabel">Query.</span><code><span class="memberNameLink"><a href="../../../../../com/cyc/query/Query.html#get-java.lang.String-java.util.Map-">get</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;idStr, <a href="http://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;indexicals)</code> <div class="block">Returns a Query object defined by a CycLQuerySpecification term, and substitutes in relevant values from the indexicals Map.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="com.cyc.query.spi"> <!-- --> </a> <h3>Uses of <a href="../../../../../com/cyc/session/exception/UnsupportedCycOperationException.html" title="class in com.cyc.session.exception">UnsupportedCycOperationException</a> in <a href="../../../../../com/cyc/query/spi/package-summary.html">com.cyc.query.spi</a></h3> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../com/cyc/query/spi/package-summary.html">com.cyc.query.spi</a> that throw <a href="../../../../../com/cyc/session/exception/UnsupportedCycOperationException.html" title="class in com.cyc.session.exception">UnsupportedCycOperationException</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../com/cyc/query/Query.html" title="interface in com.cyc.query">Query</a></code></td> <td class="colLast"><span class="typeNameLabel">QueryService.</span><code><span class="memberNameLink"><a href="../../../../../com/cyc/query/spi/QueryService.html#getQuery-com.cyc.kb.KbIndividual-">getQuery</a></span>(<a href="../../../../../com/cyc/kb/KbIndividual.html" title="interface in com.cyc.kb">KbIndividual</a>&nbsp;id)</code> <div class="block">Constructs a Query from a KbIndividual corresponding to a <tt>#$CycLQuerySpecification</tt>.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../com/cyc/query/Query.html" title="interface in com.cyc.query">Query</a></code></td> <td class="colLast"><span class="typeNameLabel">QueryService.</span><code><span class="memberNameLink"><a href="../../../../../com/cyc/query/spi/QueryService.html#getQuery-com.cyc.kb.KbIndividual-java.util.Map-">getQuery</a></span>(<a href="../../../../../com/cyc/kb/KbIndividual.html" title="interface in com.cyc.kb">KbIndividual</a>&nbsp;id, <a href="http://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../../com/cyc/kb/KbObject.html" title="interface in com.cyc.kb">KbObject</a>,<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;&nbsp;indexicals)</code> <div class="block">Returns a new Query loaded from a term in Cyc specifying its properties.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../com/cyc/query/Query.html" title="interface in com.cyc.query">Query</a></code></td> <td class="colLast"><span class="typeNameLabel">QueryService.</span><code><span class="memberNameLink"><a href="../../../../../com/cyc/query/spi/QueryService.html#getQuery-java.lang.String-java.util.Map-">getQuery</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;idStr, <a href="http://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;indexicals)</code> <div class="block">Returns a Query object defined by a CycLQuerySpecification term, and substitutes in relevant values from the indexicals Map.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="com.cyc.session.exception"> <!-- --> </a> <h3>Uses of <a href="../../../../../com/cyc/session/exception/UnsupportedCycOperationException.html" title="class in com.cyc.session.exception">UnsupportedCycOperationException</a> in <a href="../../../../../com/cyc/session/exception/package-summary.html">com.cyc.session.exception</a></h3> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing subclasses, and an explanation"> <caption><span>Subclasses of <a href="../../../../../com/cyc/session/exception/UnsupportedCycOperationException.html" title="class in com.cyc.session.exception">UnsupportedCycOperationException</a> in <a href="../../../../../com/cyc/session/exception/package-summary.html">com.cyc.session.exception</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>class&nbsp;</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/cyc/session/exception/OpenCycUnsupportedFeatureException.html" title="class in com.cyc.session.exception">OpenCycUnsupportedFeatureException</a></span></code> <div class="block">Indicates that a particular piece of functionality is categorically unsupported by OpenCyc servers.</div> </td> </tr> </tbody> </table> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../com/cyc/session/exception/package-summary.html">com.cyc.session.exception</a> that return <a href="../../../../../com/cyc/session/exception/UnsupportedCycOperationException.html" title="class in com.cyc.session.exception">UnsupportedCycOperationException</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../../../com/cyc/session/exception/UnsupportedCycOperationException.html" title="class in com.cyc.session.exception">UnsupportedCycOperationException</a></code></td> <td class="colLast"><span class="typeNameLabel">UnsupportedCycOperationException.</span><code><span class="memberNameLink"><a href="../../../../../com/cyc/session/exception/UnsupportedCycOperationException.html#fromThrowable-java.lang.String-java.lang.Throwable-">fromThrowable</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;message, <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;cause)</code> <div class="block">Converts a Throwable to a UnsupportedCycOperationException with the specified detail message.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static <a href="../../../../../com/cyc/session/exception/UnsupportedCycOperationException.html" title="class in com.cyc.session.exception">UnsupportedCycOperationException</a></code></td> <td class="colLast"><span class="typeNameLabel">UnsupportedCycOperationException.</span><code><span class="memberNameLink"><a href="../../../../../com/cyc/session/exception/UnsupportedCycOperationException.html#fromThrowable-java.lang.Throwable-">fromThrowable</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;cause)</code> <div class="block">Converts a Throwable to a UnsupportedCycOperationException.</div> </td> </tr> </tbody> </table> </li> </ul> </li> </ul> </div> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../com/cyc/session/exception/UnsupportedCycOperationException.html" title="class in com.cyc.session.exception">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../index-all.html">Index</a></li> <li><a href="../../../../../help-doc.html">Help</a></li> </ul> <div class="aboutLanguage"><a href="http://dev.cyc.com/api/core" target="_top">Cyc Core API<a></div> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../index.html?com/cyc/session/exception/class-use/UnsupportedCycOperationException.html" target="_top">Frames</a></li> <li><a href="UnsupportedCycOperationException.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> <p class="legalCopy"><small>Copyright &#169; 2015&#x2013;2018 <a href="http://www.cyc.com">Cycorp, Inc</a>. All rights reserved.</small></p> </body> </html>
{ "content_hash": "d9fa06e5298cff94c11dc930c4ab70d7", "timestamp": "", "source": "github", "line_count": 277, "max_line_length": 455, "avg_line_length": 63.3826714801444, "alnum_prop": 0.6871333371304893, "repo_name": "cycorp/cycorp.github.io", "id": "0cfa3eb1aa01fb62cec9dfd985bfbb93969c472d", "size": "17557", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "api/core/apidocs/com/cyc/session/exception/class-use/UnsupportedCycOperationException.html", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "47394" }, { "name": "HTML", "bytes": "35513494" }, { "name": "XSLT", "bytes": "7812" } ], "symlink_target": "" }
/*************************************************************************/ /* line_edit.h */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ /* http://www.godotengine.org */ /*************************************************************************/ /* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur. */ /* */ /* 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. */ /*************************************************************************/ #ifndef LINE_EDIT_H #define LINE_EDIT_H #include "scene/gui/control.h" #include "scene/gui/popup_menu.h" /** @author Juan Linietsky <reduzio@gmail.com> */ class LineEdit : public Control { OBJ_TYPE( LineEdit, Control ); public: enum Align { ALIGN_LEFT, ALIGN_CENTER, ALIGN_RIGHT, ALIGN_FILL }; enum MenuItems { MENU_CUT, MENU_COPY, MENU_PASTE, MENU_CLEAR, MENU_SELECT_ALL, MENU_UNDO, MENU_MAX }; private: Align align; bool editable; bool pass; String undo_text; String text; String placeholder; float placeholder_alpha; PopupMenu *menu; int cursor_pos; int window_pos; int max_length; // 0 for no maximum int cached_width; struct Selection { int begin; int end; int cursor_start; bool enabled; bool creating; bool doubleclick; bool drag_attempt; } selection; Timer *caret_blink_timer; void _text_changed(); bool expand_to_text_length; bool caret_blink_enabled; bool draw_caret; bool window_has_focus; void shift_selection_check_pre(bool); void shift_selection_check_post(bool); void selection_clear(); void selection_fill_at_cursor(); void selection_delete(); void set_window_pos(int p_pos); void set_cursor_at_pixel_pos(int p_x); void _reset_caret_blink_timer(); void _toggle_draw_caret(); void clear_internal(); void changed_internal(); #ifdef TOOLS_ENABLED void _editor_settings_changed(); #endif void _input_event(InputEvent p_event); void _notification(int p_what); protected: static void _bind_methods(); public: void set_align(Align p_align); Align get_align() const; virtual Variant get_drag_data(const Point2& p_point); virtual bool can_drop_data(const Point2& p_point,const Variant& p_data) const; virtual void drop_data(const Point2& p_point,const Variant& p_data); void menu_option(int p_option); PopupMenu *get_menu() const; void select_all(); void delete_char(); void delete_text(int p_from_column, int p_to_column); void set_text(String p_text); String get_text() const; void set_placeholder(String p_text); String get_placeholder() const; void set_placeholder_alpha(float p_alpha); float get_placeholder_alpha() const; void set_cursor_pos(int p_pos); int get_cursor_pos() const; void set_max_length(int p_max_length); int get_max_length() const; void append_at_cursor(String p_text); void clear(); bool cursor_get_blink_enabled() const; void cursor_set_blink_enabled(const bool p_enabled); float cursor_get_blink_speed() const; void cursor_set_blink_speed(const float p_speed); void copy_text(); void cut_text(); void paste_text(); void undo(); void set_editable(bool p_editable); bool is_editable() const; void set_secret(bool p_secret); bool is_secret() const; void select(int p_from=0, int p_to=-1); virtual Size2 get_minimum_size() const; void set_expand_to_text_length(bool p_len); bool get_expand_to_text_length() const; virtual bool is_text_field() const; LineEdit(); ~LineEdit(); }; VARIANT_ENUM_CAST(LineEdit::Align); #endif
{ "content_hash": "ddcd99862e9740a7cf1b20ee450ef597", "timestamp": "", "source": "github", "line_count": 189, "max_line_length": 79, "avg_line_length": 27.201058201058203, "alnum_prop": 0.5944368799844388, "repo_name": "rollenrolm/godot", "id": "47d5706bbeb51f03ba41ef693b8c1ae8d880f4a1", "size": "5141", "binary": false, "copies": "6", "ref": "refs/heads/master", "path": "scene/gui/line_edit.h", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "471707" }, { "name": "C++", "bytes": "11879226" }, { "name": "Java", "bytes": "493485" }, { "name": "Objective-C", "bytes": "28194" }, { "name": "Objective-C++", "bytes": "143453" }, { "name": "Python", "bytes": "129866" }, { "name": "Shell", "bytes": "266" } ], "symlink_target": "" }
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef nsHyphenator_h__ #define nsHyphenator_h__ #include "nsCOMPtr.h" #include "nsString.h" #include "nsTArray.h" class nsIURI; class nsHyphenator { public: explicit nsHyphenator(nsIURI *aURI); NS_INLINE_DECL_REFCOUNTING(nsHyphenator) bool IsValid(); nsresult Hyphenate(const nsAString& aText, FallibleTArray<bool>& aHyphens); private: ~nsHyphenator(); protected: void *mDict; }; #endif // nsHyphenator_h__
{ "content_hash": "a68b3ef28fd2ef7f5803aae46cca1873", "timestamp": "", "source": "github", "line_count": 33, "max_line_length": 79, "avg_line_length": 22.333333333333332, "alnum_prop": 0.6811397557666214, "repo_name": "andrasigneczi/TravelOptimizer", "id": "37b5613da945b06588bf7ae4ad740ee2f1d45b4b", "size": "737", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "DataCollector/mozilla/xulrunner-sdk/include/nsHyphenator.h", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C", "bytes": "3443874" }, { "name": "C++", "bytes": "33624518" }, { "name": "CSS", "bytes": "1225" }, { "name": "HTML", "bytes": "13117" }, { "name": "IDL", "bytes": "1110940" }, { "name": "Java", "bytes": "562163" }, { "name": "JavaScript", "bytes": "1480" }, { "name": "Makefile", "bytes": "360" }, { "name": "Objective-C", "bytes": "3166" }, { "name": "Python", "bytes": "322743" }, { "name": "Shell", "bytes": "2539" } ], "symlink_target": "" }
const webpack = require('webpack'); module.exports = { entry: './src/Affix.js', module: { rules: [{ test: /\.js$/, exclude: /(node_modules)/, use: { loader: 'babel-loader', options: { compact: false, presets: ['babel-preset-es2015'] } } }] }, output: { library: 'metal', libraryTarget: 'this', filename: './build/globals/affix.js' }, plugins: [ new webpack.optimize.ModuleConcatenationPlugin() ] };
{ "content_hash": "f6fa9730d694d36f0e580c669eae47da", "timestamp": "", "source": "github", "line_count": 26, "max_line_length": 50, "avg_line_length": 17.423076923076923, "alnum_prop": 0.5827814569536424, "repo_name": "metal/metal-affix", "id": "f3b7baf9ffd81295dd7f23ce85055dcbe4bef86e", "size": "453", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "webpack.config.js", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "JavaScript", "bytes": "8450" } ], "symlink_target": "" }
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = require('babel-runtime/helpers/defineProperty'); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); var _createClass2 = require('babel-runtime/helpers/createClass'); var _createClass3 = _interopRequireDefault(_createClass2); var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn'); var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); var _inherits2 = require('babel-runtime/helpers/inherits'); var _inherits3 = _interopRequireDefault(_inherits2); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _propTypes = require('prop-types'); var _propTypes2 = _interopRequireDefault(_propTypes); var _classnames = require('classnames'); var _classnames2 = _interopRequireDefault(_classnames); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var ROW = 4; var COL = 3; function goYear(direction) { var next = this.state.value.clone(); next.add(direction, 'years'); this.setState({ value: next }); } function chooseDecade(year, event) { var next = this.state.value.clone(); next.year(year); next.month(this.state.value.month()); this.props.onSelect(next); event.preventDefault(); } var DecadePanel = function (_React$Component) { (0, _inherits3['default'])(DecadePanel, _React$Component); function DecadePanel(props) { (0, _classCallCheck3['default'])(this, DecadePanel); var _this = (0, _possibleConstructorReturn3['default'])(this, (DecadePanel.__proto__ || Object.getPrototypeOf(DecadePanel)).call(this, props)); _this.state = { value: props.value || props.defaultValue }; // bind methods _this.prefixCls = props.rootPrefixCls + '-decade-panel'; _this.nextCentury = goYear.bind(_this, 100); _this.previousCentury = goYear.bind(_this, -100); return _this; } (0, _createClass3['default'])(DecadePanel, [{ key: 'render', value: function render() { var _this2 = this; var value = this.state.value; var locale = this.props.locale; var currentYear = value.year(); var startYear = parseInt(currentYear / 100, 10) * 100; var preYear = startYear - 10; var endYear = startYear + 99; var decades = []; var index = 0; var prefixCls = this.prefixCls; for (var rowIndex = 0; rowIndex < ROW; rowIndex++) { decades[rowIndex] = []; for (var colIndex = 0; colIndex < COL; colIndex++) { var startDecade = preYear + index * 10; var endDecade = preYear + index * 10 + 9; decades[rowIndex][colIndex] = { startDecade: startDecade, endDecade: endDecade }; index++; } } var decadesEls = decades.map(function (row, decadeIndex) { var tds = row.map(function (decadeData) { var _classNameMap; var dStartDecade = decadeData.startDecade; var dEndDecade = decadeData.endDecade; var isLast = dStartDecade < startYear; var isNext = dEndDecade > endYear; var classNameMap = (_classNameMap = {}, (0, _defineProperty3['default'])(_classNameMap, prefixCls + '-cell', 1), (0, _defineProperty3['default'])(_classNameMap, prefixCls + '-selected-cell', dStartDecade <= currentYear && currentYear <= dEndDecade), (0, _defineProperty3['default'])(_classNameMap, prefixCls + '-last-century-cell', isLast), (0, _defineProperty3['default'])(_classNameMap, prefixCls + '-next-century-cell', isNext), _classNameMap); var content = dStartDecade + '-' + dEndDecade; var clickHandler = void 0; if (isLast) { clickHandler = _this2.previousCentury; } else if (isNext) { clickHandler = _this2.nextCentury; } else { clickHandler = chooseDecade.bind(_this2, dStartDecade); } return _react2['default'].createElement( 'td', { key: dStartDecade, onClick: clickHandler, role: 'gridcell', className: (0, _classnames2['default'])(classNameMap) }, _react2['default'].createElement( 'a', { className: prefixCls + '-decade' }, content ) ); }); return _react2['default'].createElement( 'tr', { key: decadeIndex, role: 'row' }, tds ); }); return _react2['default'].createElement( 'div', { className: this.prefixCls }, _react2['default'].createElement( 'div', { className: prefixCls + '-header' }, _react2['default'].createElement('a', { className: prefixCls + '-prev-century-btn', role: 'button', onClick: this.previousCentury, title: locale.previousCentury }), _react2['default'].createElement( 'div', { className: prefixCls + '-century' }, startYear, '-', endYear ), _react2['default'].createElement('a', { className: prefixCls + '-next-century-btn', role: 'button', onClick: this.nextCentury, title: locale.nextCentury }) ), _react2['default'].createElement( 'div', { className: prefixCls + '-body' }, _react2['default'].createElement( 'table', { className: prefixCls + '-table', cellSpacing: '0', role: 'grid' }, _react2['default'].createElement( 'tbody', { className: prefixCls + '-tbody' }, decadesEls ) ) ) ); } }]); return DecadePanel; }(_react2['default'].Component); exports['default'] = DecadePanel; DecadePanel.propTypes = { locale: _propTypes2['default'].object, value: _propTypes2['default'].object, defaultValue: _propTypes2['default'].object, rootPrefixCls: _propTypes2['default'].string }; DecadePanel.defaultProps = { onSelect: function onSelect() {} }; module.exports = exports['default'];
{ "content_hash": "b4e839ac35d756da2f8d05168ab4fa15", "timestamp": "", "source": "github", "line_count": 208, "max_line_length": 457, "avg_line_length": 31.283653846153847, "alnum_prop": 0.5921315506377747, "repo_name": "RisenEsports/RisenEsports.github.io", "id": "6089f940040665ffe574a4bf77bc21250acefd71", "size": "6507", "binary": false, "copies": "6", "ref": "refs/heads/master", "path": "Console/app/node_modules/rc-calendar/lib/decade/DecadePanel.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "583" }, { "name": "HTML", "bytes": "8106" }, { "name": "JavaScript", "bytes": "25228" } ], "symlink_target": "" }
package jdepend.model.component.modelconf; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.LinkedHashMap; import java.util.Map; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import jdepend.framework.context.JDependContext; import jdepend.framework.exception.JDependException; import jdepend.framework.util.FileUtil; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.Node; import org.w3c.dom.NodeList; import org.xml.sax.SAXException; import com.sun.org.apache.xml.internal.serialize.OutputFormat; import com.sun.org.apache.xml.internal.serialize.XMLSerializer; /** * 一个命令组配置的组件模型信息(一个组可以配置多个组件模型) * * @author wangdg * */ public final class GroupComponentModelConf { private String group; private Map<String, ComponentModelConf> componentModelConfs; public static final String DEFAULT_PROPERTY_DIR = "conf\\componentconf"; public GroupComponentModelConf(String group) throws ComponentConfException { this.group = group; this.componentModelConfs = this.loadComponentModelConfs(); } public GroupComponentModelConf(String group, Map<String, ComponentModelConf> componentModelConfs) { super(); this.group = group; this.componentModelConfs = componentModelConfs; } private Map<String, ComponentModelConf> loadComponentModelConfs() throws ComponentConfException { Map<String, ComponentModelConf> componentModelConfs = new LinkedHashMap<String, ComponentModelConf>(); ComponentModelConf componentModelConf; if (!(new File(getComponentFilePath(group))).exists()) return componentModelConfs; try { DocumentBuilder domBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); InputStream input = new FileInputStream(getComponentFilePath(group)); Document doc = domBuilder.parse(input); Element root = doc.getDocumentElement(); NodeList componentModels = root.getChildNodes(); if (componentModels != null) { for (int i = 0; i < componentModels.getLength(); i++) { Node componentModel = componentModels.item(i); if (componentModel.getNodeType() == Node.ELEMENT_NODE) { Node componentModelType = componentModel.getAttributes().getNamedItem("type"); if (componentModelType == null || componentModelType.getNodeValue().equals( ComponentModelConf.ComponentModelType_Package)) { componentModelConf = new JavaPackageComponentModelConf().load(componentModel); } else { componentModelConf = new JavaClassComponentModelConf().load(componentModel); } componentModelConfs.put(componentModelConf.getName(), componentModelConf); } } } } catch (FileNotFoundException e) { e.printStackTrace(); } catch (ParserConfigurationException e) { e.printStackTrace(); } catch (SAXException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } return componentModelConfs; } public void save() throws ComponentConfException { if (componentModelConfs != null && componentModelConfs.size() > 0) { try { Document document = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument(); Element root = document.createElement("componentModels"); root.setAttribute("group", group);// 添加group属性 for (String componentModelName : componentModelConfs.keySet()) { root.appendChild(componentModelConfs.get(componentModelName).save(document)); } output(root, getComponentFilePath(group)); } catch (ParserConfigurationException e) { throw new ComponentConfException(e); } } else { try { FileUtil.deleteFile(getComponentFilePath(group)); } catch (JDependException e) { throw new ComponentConfException(e); } } } private static void output(Node node, String filename) { try { PrintWriter pWriter = new PrintWriter(new java.io.FileOutputStream(filename)); XMLSerializer serl = new XMLSerializer(pWriter, new OutputFormat("xml", "UTF-8", true));// 这里的参数(TRUE)表示格式化为自动换行 serl.serialize(node); pWriter.close(); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } } private String getComponentFilePath(String group) { return JDependContext.getWorkspacePath() + "\\" + GroupComponentModelConf.DEFAULT_PROPERTY_DIR + "\\component_" + group + ".xml"; } public String getGroup() { return group; } public Map<String, ComponentModelConf> getComponentModelConfs() { return componentModelConfs; } public void setComponentModelConfs(Map<String, ComponentModelConf> componentModelConfs) { this.componentModelConfs = componentModelConfs; } public void addComponentModelConf(ComponentModelConf componentModelConf) throws ComponentConfException { if (this.componentModelConfs.containsKey(componentModelConf.getName())) { throw new ComponentConfException("组件模型[" + componentModelConf.getName() + "]重复"); } this.componentModelConfs.put(componentModelConf.getName(), componentModelConf); } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((group == null) ? 0 : group.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; final GroupComponentModelConf other = (GroupComponentModelConf) obj; if (group == null) { if (other.group != null) return false; } else if (!group.equals(other.group)) return false; return true; } }
{ "content_hash": "ffbac74bf284d79bce07e7f479e9ba2d", "timestamp": "", "source": "github", "line_count": 184, "max_line_length": 115, "avg_line_length": 32.30978260869565, "alnum_prop": 0.7194280908326325, "repo_name": "jdepend/cooper", "id": "6f88b2698be6c1acab353d706e88cf90313aa6c3", "size": "6057", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "cooper-model/cooper-model-core/src/main/java/jdepend/model/component/modelconf/GroupComponentModelConf.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "4321" }, { "name": "CSS", "bytes": "44511" }, { "name": "HTML", "bytes": "175873" }, { "name": "Java", "bytes": "2383877" }, { "name": "JavaScript", "bytes": "146288" } ], "symlink_target": "" }
@interface PositionStreamHandler() @property (strong, nonatomic, nonnull) GeolocationHandler *geolocationHandler; @end @implementation PositionStreamHandler { FlutterEventSink _eventSink; } - (id) initWithGeolocationHandler: (GeolocationHandler * _Nonnull)geolocationHandler { self = [super init]; if (!self) { return nil; } self.geolocationHandler = geolocationHandler; return self; } - (FlutterError *_Nullable)onListenWithArguments:(id _Nullable)arguments eventSink:(FlutterEventSink)eventSink { // When there is already an instance of the _eventSink it means there is already an active stream and // return an error indicating the active stream. if (_eventSink) { return [FlutterError errorWithCode: GeolocatorErrorLocationSubscriptionActive message: @"Already listening for location updates. If you want to restart listening please cancel other subscriptions first." details: nil]; } _eventSink = eventSink; __weak typeof(self) weakSelf = self; CLLocationAccuracy accuracy = [LocationAccuracyMapper toCLLocationAccuracy:(NSNumber *)arguments[@"accuracy"]]; CLLocationDistance distanceFilter = [LocationDistanceMapper toCLLocationDistance:(NSNumber *)arguments[@"distanceFilter"]]; NSNumber* pauseLocationUpdatesAutomatically = arguments[@"pauseLocationUpdatesAutomatically"]; CLActivityType activityType = [ActivityTypeMapper toCLActivityType:(NSNumber *)arguments[@"activityType"]]; NSNumber* allowBackgroundLocationUpdates = arguments[@"allowBackgroundLocationUpdates"]; NSNumber* showBackgroundLocationIndicator = arguments[@"showBackgroundLocationIndicator"]; [[weakSelf geolocationHandler] startListeningWithDesiredAccuracy:accuracy distanceFilter:distanceFilter pauseLocationUpdatesAutomatically:pauseLocationUpdatesAutomatically && [pauseLocationUpdatesAutomatically boolValue] showBackgroundLocationIndicator:showBackgroundLocationIndicator && [showBackgroundLocationIndicator boolValue] activityType:activityType allowBackgroundLocationUpdates:[allowBackgroundLocationUpdates boolValue] resultHandler:^(CLLocation *location) { [weakSelf onLocationDidChange: location]; } errorHandler:^(NSString *errorCode, NSString *errorDescription){ [weakSelf onLocationFailureWithErrorCode:errorCode errorDescription:errorDescription]; }]; return nil; } - (FlutterError *_Nullable)onCancelWithArguments:(id _Nullable)arguments { [_geolocationHandler stopListening]; _eventSink = nil; return nil; } - (void)onLocationDidChange:(CLLocation *_Nullable)location { if (!_eventSink) return; _eventSink([LocationMapper toDictionary:location]); } - (void)onLocationFailureWithErrorCode:(NSString *_Nonnull)errorCode errorDescription:(NSString *_Nonnull)errorDescription { if (!_eventSink) return; _eventSink([FlutterError errorWithCode:errorCode message:errorDescription details:nil]); } @end
{ "content_hash": "16caf3dbd939a4f977eccaed530e539f", "timestamp": "", "source": "github", "line_count": 79, "max_line_length": 156, "avg_line_length": 43.075949367088604, "alnum_prop": 0.6796943873053188, "repo_name": "Baseflow/flutter-geolocator", "id": "1326ea142b7241d5a5d7ef3c8a5f9880717abc2b", "size": "3772", "binary": false, "copies": "1", "ref": "refs/heads/main", "path": "geolocator_apple/ios/Classes/Handlers/PositionStreamHandler.m", "mode": "33188", "license": "mit", "language": [ { "name": "C++", "bytes": "39462" }, { "name": "CMake", "bytes": "26965" }, { "name": "Dart", "bytes": "521526" }, { "name": "HTML", "bytes": "3006" }, { "name": "Ruby", "bytes": "7564" } ], "symlink_target": "" }
from copy import deepcopy from typing import Optional from plenum.common.constants import TXN_TYPE from common.error import error from plenum.common.exceptions import NoAuthenticatorFound from plenum.common.types import OPERATION, f from plenum.server.client_authn import ClientAuthNr class ReqAuthenticator: """ Maintains a list of authenticators. The first authenticator in the list of authenticators is the core authenticator """ def __init__(self): self._authenticators = [] self._verified_reqs = {} # type: Dict[str, Dict[str, List[str]]] def register_authenticator(self, authenticator: ClientAuthNr): self._authenticators.append(authenticator) def authenticate(self, req_data, key=None): """ Authenticates a given request data by verifying signatures from any registered authenticators. If the request is a query returns immediately, if no registered authenticator can authenticate then an exception is raised. :param req_data: :return: """ identifiers = set() typ = req_data.get(OPERATION, {}).get(TXN_TYPE) if key and self._check_and_verify_existing_req(req_data, key): return self._verified_reqs[key]['identifiers'] for authenticator in self._authenticators: if authenticator.is_query(typ): return set() if not (authenticator.is_write(typ) or authenticator.is_action(typ)): continue rv = authenticator.authenticate(deepcopy(req_data)) or set() identifiers.update(rv) if not identifiers: raise NoAuthenticatorFound if key: self._verified_reqs[key] = {'signature': req_data.get(f.SIG.nm)} self._verified_reqs[key]['identifiers'] = identifiers return identifiers def _check_and_verify_existing_req(self, req_data: dict, key: str): if key in self._verified_reqs: if req_data.get(f.SIG.nm) == self._verified_reqs[key]['signature']: return True return False @property def core_authenticator(self): if not self._authenticators: error('No authenticator registered yet', RuntimeError) return self._authenticators[0] def get_authnr_by_type(self, authnr_type) -> Optional[ClientAuthNr]: for authnr in self._authenticators: if isinstance(authnr, authnr_type): return authnr def clean_from_verified(self, key): if key in self._verified_reqs: self._verified_reqs.pop(key)
{ "content_hash": "e16b33469f3f1521225b0c4b3c533d4e", "timestamp": "", "source": "github", "line_count": 72, "max_line_length": 79, "avg_line_length": 36.791666666666664, "alnum_prop": 0.6383540958852397, "repo_name": "evernym/plenum", "id": "72f84b5e2df7a67a4a4544f0604ea9e9ad6c9ddc", "size": "2649", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "plenum/server/req_authenticator.py", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Python", "bytes": "1537915" } ], "symlink_target": "" }
<!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title></title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Place favicon.ico and apple-touch-icon.png in the root directory --> <link rel="stylesheet" href="css/normalize.css"> <link rel="stylesheet" href="css/bootstrap.min.css"> <style> body{ padding-top: 60px; } </style> <script src="js/modernizr.min.js"></script> <!--<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular.min.js"></script>--> <!--<script src="js/angular.min.js"></script>--> </head> <body> <!--[if lt IE 7]> <p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p> <![endif]--> <!-- Add your site or application content here --> <div class="navbar navbar-inverse navbar-fixed-top"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#">ICE</a> </div> <div class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="#about">About</a></li> </ul> </div><!--/.nav-collapse --> </div> </div><!--/.navbar --> <div class="container"> <h1>Hello, Grunt-init ICE</h1> <canvas id='cv' width='600' height='600'></canvas> </div> <!--<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>--> <script src="js/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> <script> var canvas = document.getElementById('cv'); var ctx = canvas.getContext('2d'); var x = canvas.width / 2; var y = canvas.height / 2; ctx.beginPath(); ctx.moveTo(x, 0); ctx.lineTo(x, canvas.height); ctx.strokeStyle = 'red'; ctx.stroke(); ctx.font = '30pt Calibri' ; ctx.textAlign = 'start'; // start end center left right ctx.fillStyle = 'blue'; ctx.fillText('Start', x, y - 40); ctx.textAlign = 'end'; // start end center left right ctx.fillStyle = 'blue'; ctx.fillText('End', x, y ); ctx.textAlign = 'center'; // start end center left right ctx.fillStyle = 'blue'; ctx.fillText('Center', x, y + 40); ctx.textAlign = 'left'; // start end center left right ctx.fillStyle = 'blue'; ctx.fillText('Left', x, y + 80); ctx.textAlign = 'right'; // start end center left right ctx.fillStyle = 'blue'; ctx.fillText('Right', x, y + 120); </script> <!-- Google Analytics: change UA-XXXXX-X to be your site's ID. --> <script> (function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]= function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date; e=o.createElement(i);r=o.getElementsByTagName(i)[0]; e.src='//www.google-analytics.com/analytics.js'; r.parentNode.insertBefore(e,r)}(window,document,'script','ga')); ga('create','UA-XXXXX-X');ga('send','pageview'); </script> </body> </html>
{ "content_hash": "00d20d1fbcd7ea8c757751760bedec7d", "timestamp": "", "source": "github", "line_count": 101, "max_line_length": 184, "avg_line_length": 40.37623762376238, "alnum_prop": 0.5262383521333988, "repo_name": "andyyou/learn-canvas", "id": "cb67773db94aac86988fe9ce1304e6e12186bf71", "size": "4078", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "22.fontAlign.html", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "318619" }, { "name": "CoffeeScript", "bytes": "9892" }, { "name": "JavaScript", "bytes": "427715" } ], "symlink_target": "" }
using Abp.Application.Features; using Abp.Domain.Repositories; using Abp.Domain.Uow; using Abp.MultiTenancy; using Abp.Runtime.Caching; using AbpODataDemo.Authorization.Users; using AbpODataDemo.MultiTenancy; namespace AbpODataDemo.Features { public class FeatureValueStore : AbpFeatureValueStore<Tenant, User> { public FeatureValueStore( ICacheManager cacheManager, IRepository<TenantFeatureSetting, long> tenantFeatureRepository, IRepository<Tenant> tenantRepository, IRepository<EditionFeatureSetting, long> editionFeatureRepository, IFeatureManager featureManager, IUnitOfWorkManager unitOfWorkManager) : base( cacheManager, tenantFeatureRepository, tenantRepository, editionFeatureRepository, featureManager, unitOfWorkManager) { } } }
{ "content_hash": "0526303ca8ca43a8ed31503ee97fdbd1", "timestamp": "", "source": "github", "line_count": 30, "max_line_length": 79, "avg_line_length": 32.7, "alnum_prop": 0.6483180428134556, "repo_name": "aspnetboilerplate/sample-odata", "id": "8c3071cf31ea508f1fadc8b28c39ab45b8efb6f2", "size": "981", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "AbpODataDemo-Core-vNext/aspnet-core/src/AbpODataDemo.Core/Features/FeatureValueStore.cs", "mode": "33188", "license": "mit", "language": [ { "name": "ASP.NET", "bytes": "103" }, { "name": "C#", "bytes": "685773" }, { "name": "CSS", "bytes": "260842" }, { "name": "Dockerfile", "bytes": "347" }, { "name": "HTML", "bytes": "158243" }, { "name": "JavaScript", "bytes": "39324" }, { "name": "Less", "bytes": "336" }, { "name": "PowerShell", "bytes": "1194" }, { "name": "SCSS", "bytes": "158121" } ], "symlink_target": "" }
package com.example.hotpot; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.AdapterView; import android.widget.AdapterView.OnItemSelectedListener; import android.widget.Button; import android.widget.Spinner; public class Uyegiris extends Activity { Button buttungir; Spinner spin; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_uyegiris); buttungir = (Button) findViewById(R.id.btnLogin); spin = (Spinner) findViewById(R.id.spinner1); addListenerOnSpinnerItemSelection(); } public void addListenerOnSpinnerItemSelection() { spin.setOnItemSelectedListener(new OnItemSelectedListener() { @Override public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) { if (pos == 1) { buttungir.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Intent i = new Intent(Uyegiris.this, MainActivitySatici.class); startActivity(i); } }); } else if (pos == 0) { buttungir.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Intent i = new Intent(Uyegiris.this, MainActivityUye.class); startActivity(i); } }); } } @Override public void onNothingSelected(AdapterView<?> parent) { } }); } }
{ "content_hash": "35b1b132ef384c59e46b405e89c69645", "timestamp": "", "source": "github", "line_count": 74, "max_line_length": 63, "avg_line_length": 20.905405405405407, "alnum_prop": 0.6987718164188752, "repo_name": "genciii/Android", "id": "3460a7e92eb067df32e99fabd9a88cd542326016", "size": "1547", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "HotPot/src/com/example/hotpot/Uyegiris.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "30350" }, { "name": "Perl", "bytes": "1316" } ], "symlink_target": "" }
/* * class called by ej.lop * lucky me, this is automatically generated :-) * */ package ej; /** * ListAtodb: * interface used to perform ListAtodb math operation * @author jourdan * @version $Revision: 1.3 $ * @see ej.lop */ public class ListAtodb implements ListOperator { /** * perform the ListAtodb math operation * @param a floating point value from the leftmost input * @param b list from the rightmost input */ public float[] operate(float a, float b[]) { float[] resultat = new float[b.length]; for (int i = 0; i < b.length; i++) resultat[i] = (float) (20 * (Math.log(a) / Math.log(10))); return resultat; } /** * perform the ListAtodb math operation * @param a list from the leftmost input * @param b floating point value from the rightmost input */ public float[] operate(float a[], float b) { float[] resultat = new float[a.length]; for (int i = 0; i < a.length; i++) resultat[i] = (float) (20 * (Math.log(a[i]) / Math.log(10))); return resultat; } /** * perform the ListAtodb math operation * @param a list from the leftmost input * @param b list from the rightmost input */ public float[] operate(float a[], float b[]) { int listLength = Math.min(a.length, b.length); float resultat[] = new float[listLength]; for (int i = 0; i < listLength; i++) resultat[i] = (float) (20 * (Math.log(a[i]) / Math.log(10))); return resultat; } }
{ "content_hash": "3ccac358e38d99ba52bae043e3828d43", "timestamp": "", "source": "github", "line_count": 63, "max_line_length": 64, "avg_line_length": 22.92063492063492, "alnum_prop": 0.6301939058171745, "repo_name": "emmanueljourdan/ejies", "id": "b47db452ca752a2f5ffead4b88e7af2479631caa", "size": "1444", "binary": false, "copies": "1", "ref": "refs/heads/main", "path": "java-classes/ej/ListAtodb.java", "mode": "33188", "license": "mit", "language": [ { "name": "Java", "bytes": "206260" }, { "name": "JavaScript", "bytes": "167260" }, { "name": "Max", "bytes": "2792381" }, { "name": "Shell", "bytes": "2358" } ], "symlink_target": "" }
require('./candidate');
{ "content_hash": "549eaa5f958b3f5a20f142e5eabead23", "timestamp": "", "source": "github", "line_count": 1, "max_line_length": 23, "avg_line_length": 24, "alnum_prop": 0.6666666666666666, "repo_name": "hanjo77/help-me", "id": "fc673e774548bc86b4f1f289e35428a2ad259787", "size": "24", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "node_modules/rtc-quickconnect/node_modules/rtc-tools/node_modules/rtc-taskqueue/node_modules/rtc-validator/test/all.js", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "4084" }, { "name": "JavaScript", "bytes": "20127" }, { "name": "Ruby", "bytes": "160" }, { "name": "Shell", "bytes": "392" } ], "symlink_target": "" }
<?php namespace backend\modules\masters\controllers; use Yii; use common\models\StageCategorys; use common\models\StageCategorysSearch; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; /** * StageCategorysController implements the CRUD actions for StageCategorys model. */ class StageCategorysController extends Controller { public function init() { if (Yii::$app->user->isGuest) $this->redirect(['/site/index']); if (Yii::$app->session['post']['admin'] != 1) $this->redirect(['/site/home']); } /** * @inheritdoc */ public function behaviors() { return [ 'verbs' => [ 'class' => VerbFilter::className(), 'actions' => [ 'delete' => ['POST'], ], ], ]; } /** * Lists all StageCategorys models. * @return mixed */ public function actionIndex() { $searchModel = new StageCategorysSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); return $this->render('index', [ 'searchModel' => $searchModel, 'dataProvider' => $dataProvider, ]); } /** * Displays a single StageCategorys model. * @param integer $id * @return mixed */ public function actionView($id) { return $this->render('view', [ 'model' => $this->findModel($id), ]); } /** * Creates a new StageCategorys model. * If creation is successful, the browser will be redirected to the 'view' page. * @return mixed */ public function actionCreate() { $model = new StageCategorys(); if ($model->load(Yii::$app->request->post()) && Yii::$app->SetValues->Attributes($model) && $model->save()) { return $this->redirect(['view', 'id' => $model->id]); } else { return $this->render('create', [ 'model' => $model, ]); } } /** * Updates an existing StageCategorys model. * If update is successful, the browser will be redirected to the 'view' page. * @param integer $id * @return mixed */ public function actionUpdate($id) { $model = $this->findModel($id); if ($model->load(Yii::$app->request->post()) && Yii::$app->SetValues->Attributes($model) && $model->save()) { return $this->redirect(['view', 'id' => $model->id]); } else { return $this->render('update', [ 'model' => $model, ]); } } /** * Deletes an existing StageCategorys model. * If deletion is successful, the browser will be redirected to the 'index' page. * @param integer $id * @return mixed */ public function actionDelete($id) { $this->findModel($id)->delete(); return $this->redirect(['index']); } /** * Finds the StageCategorys model based on its primary key value. * If the model is not found, a 404 HTTP exception will be thrown. * @param integer $id * @return StageCategorys the loaded model * @throws NotFoundHttpException if the model cannot be found */ protected function findModel($id) { if (($model = StageCategorys::findOne($id)) !== null) { return $model; } else { throw new NotFoundHttpException('The requested page does not exist.'); } } }
{ "content_hash": "994046a6a0f8572e02b9134ed93d04f0", "timestamp": "", "source": "github", "line_count": 126, "max_line_length": 125, "avg_line_length": 33.25396825396825, "alnum_prop": 0.46467780429594274, "repo_name": "jithinazryah/emperor", "id": "c6d7c9f171d1d1d04deed49c8e331627813ce455", "size": "4190", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "backend/modules/masters/controllers/StageCategorysController.php", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "ApacheConf", "bytes": "428" }, { "name": "Batchfile", "bytes": "1580" }, { "name": "CSS", "bytes": "4452789" }, { "name": "HTML", "bytes": "207906" }, { "name": "JavaScript", "bytes": "24854427" }, { "name": "PHP", "bytes": "1176127" }, { "name": "Shell", "bytes": "3257" } ], "symlink_target": "" }
Railscasts::Application.configure do # Settings specified here will take precedence over those in config/application.rb # The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test suite and is wiped # and recreated between test runs. Don't rely on the data there! config.cache_classes = true # Log error messages when you accidentally call methods on nil. config.whiny_nils = true # Show full error reports and disable caching config.consider_all_requests_local = true config.action_controller.perform_caching = false # Raise exceptions instead of rendering exception templates config.action_dispatch.show_exceptions = false # Disable request forgery protection in test environment config.action_controller.allow_forgery_protection = false # Tell Action Mailer not to deliver emails to the real world. # The :test delivery method accumulates sent emails in the # ActionMailer::Base.deliveries array. config.action_mailer.delivery_method = :test # Use SQL instead of Active Record's schema dumper when creating the test database. # This is necessary if your schema can't be completely dumped by the schema dumper, # like if you have constraints or database-specific column types # config.active_record.schema_format = :sql # Print deprecation notices to the stderr config.active_support.deprecation = :stderr config.action_mailer.default_url_options = { :host => "www.example.com" } end
{ "content_hash": "9f30207ff332a8c2eb382bcebe83e8aa", "timestamp": "", "source": "github", "line_count": 37, "max_line_length": 85, "avg_line_length": 43, "alnum_prop": 0.7617850408548082, "repo_name": "lym/railscasts", "id": "9500b3d78ebd3163f344b414ca751d476aaa5c40", "size": "1591", "binary": false, "copies": "6", "ref": "refs/heads/master", "path": "config/environments/test.rb", "mode": "33188", "license": "mit", "language": [], "symlink_target": "" }
package org.owasp.dependencycheck.analyzer; import org.owasp.dependencycheck.Engine; import org.owasp.dependencycheck.analyzer.exception.AnalysisException; import org.owasp.dependencycheck.data.nuget.NugetPackage; import org.owasp.dependencycheck.data.nuget.NuspecParseException; import org.owasp.dependencycheck.data.nuget.NuspecParser; import org.owasp.dependencycheck.data.nuget.XPathNuspecParser; import org.owasp.dependencycheck.dependency.Confidence; import org.owasp.dependencycheck.dependency.Dependency; import org.owasp.dependencycheck.utils.FileFilterBuilder; import org.owasp.dependencycheck.utils.Settings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.FileFilter; import java.io.FileInputStream; import java.io.FileNotFoundException; import org.owasp.dependencycheck.exception.InitializationException; /** * Analyzer which will parse a Nuspec file to gather module information. * * @author colezlaw */ public class NuspecAnalyzer extends AbstractFileTypeAnalyzer { /** * The logger. */ private static final Logger LOGGER = LoggerFactory.getLogger(NuspecAnalyzer.class); /** * The name of the analyzer. */ private static final String ANALYZER_NAME = "Nuspec Analyzer"; /** * The phase in which the analyzer runs. */ private static final AnalysisPhase ANALYSIS_PHASE = AnalysisPhase.INFORMATION_COLLECTION; /** * The types of files on which this will work. */ private static final String SUPPORTED_EXTENSIONS = "nuspec"; /** * The file filter used to determine which files this analyzer supports. */ private static final FileFilter FILTER = FileFilterBuilder.newInstance().addExtensions(SUPPORTED_EXTENSIONS).build(); /** * Initializes the analyzer once before any analysis is performed. * * @throws InitializationException if there's an error during initialization */ @Override public void initializeFileTypeAnalyzer() throws InitializationException { //nothing to initialize } /** * Returns the analyzer's name. * * @return the name of the analyzer */ @Override public String getName() { return ANALYZER_NAME; } /** * Returns the key used in the properties file to reference the analyzer's * enabled property. * * @return the analyzer's enabled property setting key */ @Override protected String getAnalyzerEnabledSettingKey() { return Settings.KEYS.ANALYZER_NUSPEC_ENABLED; } /** * Returns the analysis phase under which the analyzer runs. * * @return the phase under which this analyzer runs */ @Override public AnalysisPhase getAnalysisPhase() { return ANALYSIS_PHASE; } /** * Returns the FileFilter * * @return the FileFilter */ @Override protected FileFilter getFileFilter() { return FILTER; } /** * Performs the analysis. * * @param dependency the dependency to analyze * @param engine the engine * @throws AnalysisException when there's an exception during analysis */ @Override public void analyzeDependency(Dependency dependency, Engine engine) throws AnalysisException { LOGGER.debug("Checking Nuspec file {}", dependency); try { final NuspecParser parser = new XPathNuspecParser(); NugetPackage np = null; try (FileInputStream fis = new FileInputStream(dependency.getActualFilePath())) { np = parser.parse(fis); } catch (NuspecParseException | FileNotFoundException ex) { throw new AnalysisException(ex); } if (np.getOwners() != null) { dependency.getVendorEvidence().addEvidence("nuspec", "owners", np.getOwners(), Confidence.HIGHEST); } dependency.getVendorEvidence().addEvidence("nuspec", "authors", np.getAuthors(), Confidence.HIGH); dependency.getVersionEvidence().addEvidence("nuspec", "version", np.getVersion(), Confidence.HIGHEST); dependency.getProductEvidence().addEvidence("nuspec", "id", np.getId(), Confidence.HIGHEST); if (np.getTitle() != null) { dependency.getProductEvidence().addEvidence("nuspec", "title", np.getTitle(), Confidence.MEDIUM); } } catch (Throwable e) { throw new AnalysisException(e); } } }
{ "content_hash": "d6aefb849a16673bba2bafc3e74a888b", "timestamp": "", "source": "github", "line_count": 136, "max_line_length": 121, "avg_line_length": 33.14705882352941, "alnum_prop": 0.6763531499556344, "repo_name": "stevespringett/DependencyCheck", "id": "1aefe1129d273156380c8867f346afd2bf1e1fe4", "size": "5178", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "dependency-check-core/src/main/java/org/owasp/dependencycheck/analyzer/NuspecAnalyzer.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "287" }, { "name": "C", "bytes": "3939" }, { "name": "C++", "bytes": "2713" }, { "name": "CMake", "bytes": "427624" }, { "name": "Cuda", "bytes": "384" }, { "name": "Groovy", "bytes": "12519" }, { "name": "Java", "bytes": "1827771" }, { "name": "M4", "bytes": "66845" }, { "name": "PLSQL", "bytes": "2981" }, { "name": "Python", "bytes": "7490" }, { "name": "Ruby", "bytes": "25386" }, { "name": "SQLPL", "bytes": "2470" }, { "name": "Shell", "bytes": "6778" }, { "name": "Swift", "bytes": "1221" } ], "symlink_target": "" }
package ru.job4j.array; import org.junit.Test; import static org.hamcrest.core.Is.is; import static org.junit.Assert.assertThat; /** * Test. * * @author Vitaly Zubov (mailto:Zubov.VP@yandex.ru). * @version $Id$ * @since 0.1 */ public class AdditionArraysTest { /** * Test add. */ @Test public void whenFirstArrayplusSecondArray() { int[] first = {1, 3, 5, 7}; int[] second = {2, 4, 6}; AdditionArrays addition = new AdditionArrays(); int[] result = addition.additionsAndSort(first, second); int[] expected = {1, 2, 3, 4, 5, 6, 7}; assertThat(result, is(expected)); } }
{ "content_hash": "ebbdbf7207580f743bb4d03622c3e613", "timestamp": "", "source": "github", "line_count": 27, "max_line_length": 58, "avg_line_length": 21.77777777777778, "alnum_prop": 0.6666666666666666, "repo_name": "ZubovVP/ZubovVP", "id": "04e14ea12160be6aa8f9cb7daa653b52c2f79aa5", "size": "588", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "chapter_001/src/test/java/ru/job4j/array/AdditionArraysTest.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "HTML", "bytes": "21857" }, { "name": "Java", "bytes": "684089" }, { "name": "TSQL", "bytes": "1638" } ], "symlink_target": "" }
// Copyright 2017 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. using Google.Cloud.ClientTesting; using System.IO; using System.Text; using Xunit; namespace Google.Cloud.Storage.V1.IntegrationTests { /// <summary> /// Tests that ensure the client does *not* perform any normalization. /// The bucket <see cref="StorageFixture.CrossLanguageTestBucket"/> contains two files named "Café" /// but using different normalization. The client should be able to retrieve both. /// </summary> [FileLoggerBeforeAfterTest] public class NormalizationTest { [SkippableTheory] // Normalization Form C: a single character for e-acute. // URL should end with Caf%C3%A9 [InlineData("Caf\u00e9", "Normalization Form C")] // Normalization Form D: an ASCII e followed by U+0301 combining character // URL should end with Cafe%CC%81 [InlineData("Cafe\u0301", "Normalization Form D")] public void FetchObjectAndCheckContent(string name, string expectedContent) { TestEnvironment.SkipIfVpcSc(); var client = StorageClient.Create(); var obj = client.GetObject(StorageFixture.CrossLanguageTestBucket, name); Assert.Equal(name, obj.Name); var stream = new MemoryStream(); client.DownloadObject(StorageFixture.CrossLanguageTestBucket, name, stream); string text = Encoding.UTF8.GetString(stream.ToArray()); Assert.Equal(expectedContent, text); } } }
{ "content_hash": "4d84c9fba8074f99d74b9c88ceb99adc", "timestamp": "", "source": "github", "line_count": 50, "max_line_length": 103, "avg_line_length": 41.72, "alnum_prop": 0.6893576222435283, "repo_name": "jskeet/google-cloud-dotnet", "id": "38fa5a52a9028a2a0f1f82f74e9c32cd470641ff", "size": "2089", "binary": false, "copies": "3", "ref": "refs/heads/main", "path": "apis/Google.Cloud.Storage.V1/Google.Cloud.Storage.V1.IntegrationTests/NormalizationTest.cs", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "767" }, { "name": "C#", "bytes": "268415427" }, { "name": "CSS", "bytes": "1346" }, { "name": "Dockerfile", "bytes": "3173" }, { "name": "HTML", "bytes": "3823" }, { "name": "JavaScript", "bytes": "226" }, { "name": "PowerShell", "bytes": "3303" }, { "name": "Python", "bytes": "2744" }, { "name": "Shell", "bytes": "65260" }, { "name": "sed", "bytes": "1030" } ], "symlink_target": "" }
using System; using System.Runtime.Serialization; namespace Microsoft.IdentityModel.Tokens.Saml { /// <summary> /// This exception is thrown when a security is missing an ExpirationTime. /// </summary> [Serializable] public class SamlSecurityTokenException : SecurityTokenException { /// <summary> /// Initializes a new instance of the <see cref="SamlSecurityTokenException"/> class. /// </summary> public SamlSecurityTokenException() : base() {} /// <summary> /// Initializes a new instance of the <see cref="SamlSecurityTokenException"/> class. /// </summary> /// <param name="message">Addtional information to be included in the exception and displayed to user.</param> public SamlSecurityTokenException(string message) : base(message) {} /// <summary> /// Initializes a new instance of the <see cref="SamlSecurityTokenException"/> class. /// </summary> /// <param name="message">Addtional information to be included in the exception and displayed to user.</param> /// <param name="innerException">A <see cref="Exception"/> that represents the root cause of the exception.</param> public SamlSecurityTokenException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Initializes a new instance of the <see cref="SamlSecurityTokenException"/> class. /// </summary> /// <param name="info">the <see cref="SerializationInfo"/> that holds the serialized object data.</param> /// <param name="context">The contextual information about the source or destination.</param> protected SamlSecurityTokenException(SerializationInfo info, StreamingContext context) : base(info, context) {} } }
{ "content_hash": "f4a984c9cf390bd06e70d2cf1967f91a", "timestamp": "", "source": "github", "line_count": 45, "max_line_length": 123, "avg_line_length": 42.355555555555554, "alnum_prop": 0.6453305351521511, "repo_name": "AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet", "id": "14e33522763d07b5b114fb798ad89ddb6e558645", "size": "2003", "binary": false, "copies": "1", "ref": "refs/heads/dev", "path": "src/Microsoft.IdentityModel.Tokens.Saml/Saml/Exceptions/SamlSecurityTokenException.cs", "mode": "33188", "license": "mit", "language": [ { "name": "Batchfile", "bytes": "993" }, { "name": "C#", "bytes": "9081143" }, { "name": "HTML", "bytes": "128929" }, { "name": "Perl", "bytes": "8993" }, { "name": "PowerShell", "bytes": "35415" }, { "name": "Shell", "bytes": "2696" } ], "symlink_target": "" }
package Graficos; import java.awt.*; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import javax.swing.*; import Jogo.Jogador; /** * Batalha Naval (Projeto GeracaoTec) v1.0 - Versao 2.2 de Interface Grafica * Classe: telaPlayer * Essa classe eh responsavel pela Tela do Jogador, apresenta todos * os dados do jogador como imgem, nome, barra de vida, quantidade de barcos, * quantidade de medalhas, numero de vitorias, derrotas e total de jogos * Autor: Henrique W. */ public class TelaJogador { // Declara tela Principal private JPanel panelPlayer; // Declara Sub-Telas private JPanel telaImg; private JPanel telaMenu; private JPanel telaVida; private JPanel telaNavios; private JPanel telaMedalhas; private JPanel telaOutros; // Declara Sub-sub-Telas private JPanel caixaVida; private JPanel caixaNavios; private JPanel caixaMedalhas; // Declara Componentes private JLabel vidaText; private JLabel naviosText; private JLabel medalhasText; private JLabel vitoriasText; private JLabel derrotasText; private JLabel totalText; // Declara Componentes private JLabel img; private JLabel nome; private JLabel vida[]; private JLabel navios[]; private JLabel medalhas[]; private JLabel derrotas; private JLabel total; private Jogador jogador; boolean status; // Construtor, recebe Jogador public TelaJogador(Jogador jogador) { this.jogador = jogador; // Instancia Tela this.panelPlayer = new JPanel(new BorderLayout()); // Instancia Sub-telas this.telaImg = new JPanel(); this.telaMenu = new JPanel(new GridLayout(2,4)); this.telaImg.setLayout(new BoxLayout(telaImg,BoxLayout.Y_AXIS)); this.telaVida = new JPanel(new FlowLayout()); this.telaNavios = new JPanel(new BorderLayout()); this.telaMedalhas = new JPanel(new BorderLayout()); this.telaOutros = new JPanel(new BorderLayout()); // Instancia Sub-sub-Telas this.caixaVida = new JPanel(new GridLayout(1,15)); this.caixaNavios = new JPanel(new GridLayout(1,5)); this.caixaMedalhas = new JPanel(new GridLayout(1,jogador.getVitorias())); // Instancia Componentes (Labels) this.img = new JLabel(); this.nome = new JLabel("nome"); this.nome.setFont(new Font("Verdana", Font.BOLD, 14)); this.nome.setForeground(Color.RED); this.vidaText = new JLabel("Vida"); this.vidaText.setFont(new Font("Verdana", Font.BOLD, 22)); this.naviosText = new JLabel("Navios"); this.naviosText.setFont(new Font("Verdana", Font.BOLD, 22)); this.medalhasText = new JLabel("Medalhas"); this.medalhasText.setFont(new Font("Verdana", Font.BOLD, 22)); this.vitoriasText = new JLabel("Vitorias"); this.vitoriasText.setFont(new Font("Verdana", Font.BOLD, 12)); this.derrotasText = new JLabel("Derrotas"); this.derrotasText.setFont(new Font("Verdana", Font.BOLD, 12)); this.totalText = new JLabel("Total"); this.totalText.setFont(new Font("Verdana", Font.BOLD, 12)); // Cria e Instancia Sub-Telas this.vida = new JLabel[15]; for (int i =0; i<vida.length; i++){ this.vida[i] = new JLabel(new ImageIcon("img/vida/vida1.jpg")); this.caixaVida.add(this.vida[i]); } this.navios = new JLabel[5]; for (int i =0; i<navios.length; i++){ this.navios[i] = new JLabel(); this.caixaNavios.add(this.navios[i]); } this.medalhas = new JLabel[jogador.getMedalhas()]; for (int i =0; i<medalhas.length; i++){ String dirMedalha = "img/medalhas/medalha" + Integer.toString((i+1)) + ".jpg"; this.medalhas[i] = new JLabel(new ImageIcon(dirMedalha)); this.caixaMedalhas.add(this.medalhas[i]); } // Adicionando Componentes as Sub-Telas this.telaVida.add(this.vidaText); this.telaVida.add(this.caixaVida); // Adicionando Sub-sub-telas a sub-Telas this.telaMedalhas.add(this.medalhasText, BorderLayout.WEST); this.telaMedalhas.add(this.caixaMedalhas, BorderLayout.CENTER); this.telaNavios.add(this.naviosText, BorderLayout.WEST); this.telaNavios.add(this.caixaNavios, BorderLayout.CENTER); this.telaOutros.add(this.vitoriasText, BorderLayout.NORTH); this.telaOutros.add(this.derrotasText, BorderLayout.CENTER); this.telaOutros.add(this.totalText, BorderLayout.SOUTH); // Adicionando Sub-telas a Telas this.telaMenu.add(this.telaVida); this.telaMenu.add(this.telaMedalhas); this.telaMenu.add(this.telaNavios); this.telaMenu.add(this.telaOutros); this.telaImg.add(this.img); this.telaImg.add(this.nome); // Adicionando Telas a Tela Principal this.panelPlayer.add(telaMenu, BorderLayout.CENTER); this.panelPlayer.add(telaImg, BorderLayout.WEST); } // Getters and Setters public JPanel getPanelPlayer() { return panelPlayer; } public void setPanelPlayer(JPanel panelPlayer) { this.panelPlayer = panelPlayer; } public JPanel getTelaImg() { return telaImg; } public void setTelaImg(JPanel telaImg) { this.telaImg = telaImg; } public JPanel getTelaMenu() { return telaMenu; } public void setTelaMenu(JPanel telaMenu) { this.telaMenu = telaMenu; } public JPanel getTelaVida() { return telaVida; } public void setTelaVida(JPanel telaVida) { this.telaVida = telaVida; } public JPanel getTelaNavios() { return telaNavios; } public void setTelaNavios(JPanel telaNavios) { this.telaNavios = telaNavios; } public JPanel getTelaVitorias() { return telaMedalhas; } public void setTelaVitorias(JPanel telaVitorias) { this.telaMedalhas = telaVitorias; } public JPanel getTelaOutros() { return telaOutros; } public void setTelaOutros(JPanel telaOutros) { this.telaOutros = telaOutros; } public JPanel getCaixaVida() { return caixaVida; } public void setCaixaVida(JPanel caixaVida) { this.caixaVida = caixaVida; } public JPanel getCaixaNavios() { return caixaNavios; } public void setCaixaNavios(JPanel caixaNavios) { this.caixaNavios = caixaNavios; } public JPanel getCaixaMedalhas() { return caixaMedalhas; } public void setCaixaMedalhas(JPanel caixaVitorias) { this.caixaMedalhas = caixaVitorias; } public JLabel getVidaText() { return vidaText; } public void setVidaText(JLabel vidaText) { this.vidaText = vidaText; } public JLabel getNaviosText() { return naviosText; } public void setNaviosText(JLabel naviosText) { this.naviosText = naviosText; } public JLabel getVitoriasText() { return vitoriasText; } public void setVitoriasText(JLabel vitoriasText) { this.vitoriasText = vitoriasText; } public JLabel getDerrotasText() { return derrotasText; } public void setDerrotasText(JLabel derrotasText) { this.derrotasText = derrotasText; } public JLabel getTotalText() { return totalText; } public void setTotalText(JLabel totalText) { this.totalText = totalText; } public JLabel getImg() { return img; } public void setImg(JLabel img) { this.img = img; } public JLabel getNome() { return nome; } public void setNome(JLabel nome) { this.nome = nome; } public JLabel[] getVida() { return vida; } public void setVida(JLabel[] vida) { this.vida = vida; } public JLabel[] getNavios() { return navios; } public void setNavios(JLabel[] navios) { this.navios = navios; } public JLabel[] getMedalhas() { return medalhas; } public void setMedalhas(JLabel[] medalhas) { this.medalhas = medalhas; } public JLabel getDerrotas() { return derrotas; } public void setDerrotas(JLabel derrotas) { this.derrotas = derrotas; } public JLabel getTotal() { return total; } public void setTotal(JLabel total) { this.total = total; } public boolean isStatus() { return status; } public void setStatus(boolean status) { this.status = status; } public Jogador getJogador() { return jogador; } public void setJogador(Jogador jogador) { this.jogador = jogador; } }
{ "content_hash": "15973c7be5eee87492b49cfdd3c4ddad", "timestamp": "", "source": "github", "line_count": 271, "max_line_length": 81, "avg_line_length": 28.47970479704797, "alnum_prop": 0.7282974863954392, "repo_name": "carlosedusousa/curso-java-fonts", "id": "8cc1dadc212a2c95be8a2b0266234001e3bf52bc", "size": "7718", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "BatalhaNaval/src/Graficos/TelaJogador.java", "mode": "33188", "license": "mit", "language": [ { "name": "Java", "bytes": "665839" } ], "symlink_target": "" }
title: Two Short Papers from AAAI Fall Symposia Series Now Available date: 2018-10-07 18:35 -0500 type: blog categories: news ut published: true --- We put down some of our thoughts after more than a year of thinking about RoboCup@Home. {% cite_details jiang2018fss --text LAAIR %} gives the outline of how we've put together a general purpose reasoning system and more conventional robotics components to address the challenge of building a general-purpose service robot. {% cite_details hart2018fss --text The second%} argues that there are synergies in domestic and office service robotics research efforts, and highlights what the @Home competition has to offer for researchers interested in service robots.
{ "content_hash": "22959fbe67119d6371bbecb49b4e9fb0", "timestamp": "", "source": "github", "line_count": 8, "max_line_length": 563, "avg_line_length": 89.125, "alnum_prop": 0.8008415147265077, "repo_name": "nickswalker/nickwalker.us", "id": "23054d4cda8788106e1dcad6df08da8978f82a41", "size": "717", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "collections/_posts/2018-10-01-aaai-fss-papers.md", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "9228" }, { "name": "HTML", "bytes": "32245" }, { "name": "JavaScript", "bytes": "187" }, { "name": "Python", "bytes": "2751" }, { "name": "Ruby", "bytes": "889" }, { "name": "SCSS", "bytes": "33913" }, { "name": "Shell", "bytes": "1784" }, { "name": "TeX", "bytes": "32640" } ], "symlink_target": "" }
<?xml version="1.0" ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <!-- saved from url=(0017)http://localhost/ --> <script language="JavaScript" src="../displayToc.js"></script> <script language="JavaScript" src="../tocParas.js"></script> <script language="JavaScript" src="../tocTab.js"></script> <link rel="stylesheet" type="text/css" href="../scineplex.css"> <title></title> <link rel="stylesheet" href="../Active.css" type="text/css" /> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link rev="made" href="mailto:" /> </head> <body> <ul id="index"> <li><a href="#NAME">NAME</a></li> <li><a href="#SYNOPSIS">SYNOPSIS</a></li> <li><a href="#DESCRIPTION">DESCRIPTION</a></li> <li><a href="#OPTIONS">OPTIONS</a></li> <li><a href="#SEE-ALSO">SEE ALSO</a></li> <li><a href="#COPYRIGHT">COPYRIGHT</a></li> </ul> <h1 id="NAME">NAME</h1> <p>reloc_perl - copy a perl installation to a new location</p> <h1 id="SYNOPSIS">SYNOPSIS</h1> <pre><code><code> reloc_perl [-a] [-b] [-d] [-e path] [-f file] [-i] [-t] [-r] [-v] topath [frompath]</code></code></pre> <h1 id="DESCRIPTION">DESCRIPTION</h1> <p>The <b>reloc_perl</b> program will copy a perl installation wholesale to a new location. During the copy it edits path names in the copied files to reflect the new location.</p> <p>The <i>topath</i> is the file system location where the perl installation should be copied to. This location should normally not already exists. A directory will be created at <i>topath</i> and then populated with the <i>bin</i>, <i>lib</i>, <i>html</i> and <i>man</i> directories of the perl installation.</p> <p>The perl installation copied is the one where <b>reloc_perl</b> itself resides, but this can be overridden by providing a <i>frompath</i>. Running <b>reloc_perl</b> without arguments will show what this path is, as well as a short usage message.</p> <h1 id="OPTIONS">OPTIONS</h1> <p>The following options are recognized by the <code><code>reloc_perl</code></code> program:</p> <dl> <dt id="a"><b>-a</b></dt> <dd> <p>The <b>reloc_perl</b> program will refuse to copy if <i>topath</i> is longer than <i>frompath</i>. This option overrides this restriction. The <i>topath</i> must still be shorter than the path built into the perl binary.</p> </dd> <dt id="b"><b>-b</b></dt> <dd> <p>Don&#39;t delete the backups created during the edits performed in <i>topath</i>.</p> </dd> <dt id="d"><b>-d</b></dt> <dd> <p>Delete the perl installation that was copied. Use with care!</p> </dd> <dt id="e-path"><b>-e</b> <i>path</i></dt> <dd> <p>Edit files to contain this path instead of the <i>topath</i>. This allow relocation to a different location than where the files themselves are copied.</p> </dd> <dt id="f-logfile"><b>-f</b> <i>logfile</i></dt> <dd> <p>Creates <i>logfile</i> and writes the full path name of each file that was modified (one line per file).</p> </dd> <dt id="i"><b>-i</b></dt> <dd> <p>Edit perl installation at <i>topath</i> in-place. Makes no attempt to move tree and the <b>-d</b> is ignored. This option is assumed if <i>topath</i> exists, is a directory, and <i>frompath</i> doesn&#39;t exist.</p> </dd> <dt id="t"><b>-t</b></dt> <dd> <p>Only edit the text files. When this option is used, the restriction that <i>topath</i> must not be longer than <i>frompath</i> is relaxed.</p> </dd> <dt id="r"><b>-r</b></dt> <dd> <p>Do not run <i>ranlib</i> any <i>*.a</i> files that were edited.</p> </dd> <dt id="v"><b>-v</b></dt> <dd> <p>Print a trace of what&#39;s going on.</p> </dd> </dl> <h1 id="SEE-ALSO">SEE ALSO</h1> <p><a href="../lib/ActiveState/RelocateTree.html">ActiveState::RelocateTree</a></p> <h1 id="COPYRIGHT">COPYRIGHT</h1> <p>Copyright 1999-2001 ActiveState Software Inc. All rights reserved.</p> </body> </html>
{ "content_hash": "6245af1913ff760a5cdd11e187e0735d", "timestamp": "", "source": "github", "line_count": 121, "max_line_length": 313, "avg_line_length": 31.826446280991735, "alnum_prop": 0.6556738509478057, "repo_name": "amidoimidazol/bio_info", "id": "ea54de05365e6b8530484d38c0349b6eff400800", "size": "3851", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Beginning Perl for Bioinformatics/html/bin/reloc_perl.html", "mode": "33188", "license": "mit", "language": [ { "name": "ASP", "bytes": "59131" }, { "name": "C", "bytes": "6411096" }, { "name": "C++", "bytes": "948727" }, { "name": "CSS", "bytes": "19636" }, { "name": "Groff", "bytes": "729471" }, { "name": "HTML", "bytes": "36592112" }, { "name": "JavaScript", "bytes": "276009" }, { "name": "Objective-C", "bytes": "9782" }, { "name": "Perl", "bytes": "35025376" }, { "name": "Perl6", "bytes": "474376" }, { "name": "Prolog", "bytes": "2605820" }, { "name": "Python", "bytes": "1276815" }, { "name": "Tcl", "bytes": "226362" }, { "name": "Visual Basic", "bytes": "269" } ], "symlink_target": "" }
<!DOCTYPE html> <head> <title>BoonDockr</title> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="css/app.css"/> <link href="../node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"/> <script src="../bower_components/html5-boilerplate/js/vendor/modernizr-2.6.2.min.js"></script> <script src="../node_modules/bootstrap/docs/assets/js/ie-emulation-modes-warning.js"></script> <script data-main="/app/js/main.js" src="/app/contrib/require.js"></script> <style type="text/css"> body { min-height: 2000px; padding-top: 70px; } </style> </head> <body> <ng-include src="'core/header.html'"></ng-include> <!--[if lt IE 7]> <p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p> <![endif]--> <div ng-view></div> <!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <!-- IE10 viewport hack for Surface/desktop Windows 8 bug --> <!-- <script src="../node_modules/bootstrap/docs/assets/js/ie10-viewport-bug-workaround.js"></script>--> </body> </html>
{ "content_hash": "60ca7a1595fb9b69005c68085b77b880", "timestamp": "", "source": "github", "line_count": 40, "max_line_length": 178, "avg_line_length": 35.25, "alnum_prop": 0.6390070921985815, "repo_name": "justinburger/BoonDockr-website", "id": "21b002648846ee5f7043f17071466b7b86dd0f43", "size": "1410", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/index.html", "mode": "33261", "license": "mit", "language": [ { "name": "CSS", "bytes": "366" }, { "name": "HTML", "bytes": "65006" }, { "name": "JavaScript", "bytes": "115485" } ], "symlink_target": "" }
class MigrateBuildStageReference < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers DOWNTIME = false ## # This is an empty migration, content has been moved to a new one: # post migrate 20170526190000 MigrateBuildStageReferenceAgain # # See gitlab-org/gitlab-ce!12337 for more details. def up # noop end def down # noop end end
{ "content_hash": "4da8e50190da957b867ebbc4925438c1", "timestamp": "", "source": "github", "line_count": 19, "max_line_length": 68, "avg_line_length": 20.263157894736842, "alnum_prop": 0.7220779220779221, "repo_name": "axilleas/gitlabhq", "id": "a9b392314fab55887a1891da39d48a9f1d7bc323", "size": "385", "binary": false, "copies": "3", "ref": "refs/heads/master", "path": "db/post_migrate/20170526185921_migrate_build_stage_reference.rb", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "683690" }, { "name": "Clojure", "bytes": "79" }, { "name": "Dockerfile", "bytes": "1907" }, { "name": "HTML", "bytes": "1340167" }, { "name": "JavaScript", "bytes": "4309733" }, { "name": "Ruby", "bytes": "19732082" }, { "name": "Shell", "bytes": "44575" }, { "name": "Vue", "bytes": "1040466" } ], "symlink_target": "" }
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>SingleIterator xref</title> <link type="text/css" rel="stylesheet" href="../../../stylesheet.css" /> </head> <body> <div id="overview"><a href="../../../../apidocs/org/dom4j/tree/SingleIterator.html">View Javadoc</a></div><pre> <a name="1" href="#1">1</a> <em class="comment"></em> <a name="7" href="#7">7</a> <a name="8" href="#8">8</a> <strong>package</strong> <a href="../../../org/dom4j/tree/package-summary.html">org.dom4j.tree</a>; <a name="9" href="#9">9</a> <a name="10" href="#10">10</a> <strong>import</strong> java.util.Iterator; <a name="11" href="#11">11</a> <a name="12" href="#12">12</a> <em>/**<em>*</em></em> <a name="13" href="#13">13</a> <em> * &lt;p></em> <a name="14" href="#14">14</a> <em> * &lt;code>SingleIterator&lt;/code> is an {@link Iterator}over a single object</em> <a name="15" href="#15">15</a> <em> * instance.</em> <a name="16" href="#16">16</a> <em> * &lt;/p></em> <a name="17" href="#17">17</a> <em> * </em> <a name="18" href="#18">18</a> <em> * @author &lt;a href="<a href="mailto:james.strachan@metastuff.com" target="alexandria_uri">mailto:james.strachan@metastuff.com</a>">James Strachan &lt;/a></em> <a name="19" href="#19">19</a> <em> * @version $Revision: 1.9 $</em> <a name="20" href="#20">20</a> <em> */</em> <a name="21" href="#21">21</a> <strong>public</strong> <strong>class</strong> <a href="../../../org/dom4j/tree/SingleIterator.html">SingleIterator</a> implements Iterator { <a name="22" href="#22">22</a> <strong>private</strong> <strong>boolean</strong> first = <strong>true</strong>; <a name="23" href="#23">23</a> <a name="24" href="#24">24</a> <strong>private</strong> Object object; <a name="25" href="#25">25</a> <a name="26" href="#26">26</a> <strong>public</strong> <a href="../../../org/dom4j/tree/SingleIterator.html">SingleIterator</a>(Object object) { <a name="27" href="#27">27</a> <strong>this</strong>.object = object; <a name="28" href="#28">28</a> } <a name="29" href="#29">29</a> <a name="30" href="#30">30</a> <strong>public</strong> <strong>boolean</strong> hasNext() { <a name="31" href="#31">31</a> <strong>return</strong> first; <a name="32" href="#32">32</a> } <a name="33" href="#33">33</a> <a name="34" href="#34">34</a> <strong>public</strong> Object next() { <a name="35" href="#35">35</a> Object answer = object; <a name="36" href="#36">36</a> object = <strong>null</strong>; <a name="37" href="#37">37</a> first = false; <a name="38" href="#38">38</a> <a name="39" href="#39">39</a> <strong>return</strong> answer; <a name="40" href="#40">40</a> } <a name="41" href="#41">41</a> <a name="42" href="#42">42</a> <strong>public</strong> <strong>void</strong> remove() { <a name="43" href="#43">43</a> <strong>throw</strong> <strong>new</strong> UnsupportedOperationException(<span class="string">"remove() is not supported by "</span> <a name="44" href="#44">44</a> + <span class="string">"this iterator"</span>); <a name="45" href="#45">45</a> } <a name="46" href="#46">46</a> } <a name="47" href="#47">47</a> <a name="48" href="#48">48</a> <em class="comment">/*</em> <a name="49" href="#49">49</a> <em class="comment"> * Redistribution and use of this software and associated documentation</em> <a name="50" href="#50">50</a> <em class="comment"> * ("Software"), with or without modification, are permitted provided that the</em> <a name="51" href="#51">51</a> <em class="comment"> * following conditions are met:</em> <a name="52" href="#52">52</a> <em class="comment"> * </em> <a name="53" href="#53">53</a> <em class="comment"> * 1. Redistributions of source code must retain copyright statements and</em> <a name="54" href="#54">54</a> <em class="comment"> * notices. Redistributions must also contain a copy of this document.</em> <a name="55" href="#55">55</a> <em class="comment"> * </em> <a name="56" href="#56">56</a> <em class="comment"> * 2. Redistributions in binary form must reproduce the above copyright notice,</em> <a name="57" href="#57">57</a> <em class="comment"> * this list of conditions and the following disclaimer in the documentation</em> <a name="58" href="#58">58</a> <em class="comment"> * and/or other materials provided with the distribution.</em> <a name="59" href="#59">59</a> <em class="comment"> * </em> <a name="60" href="#60">60</a> <em class="comment"> * 3. The name "DOM4J" must not be used to endorse or promote products derived</em> <a name="61" href="#61">61</a> <em class="comment"> * from this Software without prior written permission of MetaStuff, Ltd. For</em> <a name="62" href="#62">62</a> <em class="comment"> * written permission, please contact dom4j-info@metastuff.com.</em> <a name="63" href="#63">63</a> <em class="comment"> * </em> <a name="64" href="#64">64</a> <em class="comment"> * 4. Products derived from this Software may not be called "DOM4J" nor may</em> <a name="65" href="#65">65</a> <em class="comment"> * "DOM4J" appear in their names without prior written permission of MetaStuff,</em> <a name="66" href="#66">66</a> <em class="comment"> * Ltd. DOM4J is a registered trademark of MetaStuff, Ltd.</em> <a name="67" href="#67">67</a> <em class="comment"> * </em> <a name="68" href="#68">68</a> <em class="comment"> * 5. Due credit should be given to the DOM4J Project - <a href="http://www.dom4j.org" target="alexandria_uri">http://www.dom4j.org</a></em> <a name="69" href="#69">69</a> <em class="comment"> * </em> <a name="70" href="#70">70</a> <em class="comment"> * THIS SOFTWARE IS PROVIDED BY METASTUFF, LTD. AND CONTRIBUTORS ``AS IS'' AND</em> <a name="71" href="#71">71</a> <em class="comment"> * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</em> <a name="72" href="#72">72</a> <em class="comment"> * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE</em> <a name="73" href="#73">73</a> <em class="comment"> * ARE DISCLAIMED. IN NO EVENT SHALL METASTUFF, LTD. OR ITS CONTRIBUTORS BE</em> <a name="74" href="#74">74</a> <em class="comment"> * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR</em> <a name="75" href="#75">75</a> <em class="comment"> * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF</em> <a name="76" href="#76">76</a> <em class="comment"> * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS</em> <a name="77" href="#77">77</a> <em class="comment"> * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN</em> <a name="78" href="#78">78</a> <em class="comment"> * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)</em> <a name="79" href="#79">79</a> <em class="comment"> * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE</em> <a name="80" href="#80">80</a> <em class="comment"> * POSSIBILITY OF SUCH DAMAGE.</em> <a name="81" href="#81">81</a> <em class="comment"> * </em> <a name="82" href="#82">82</a> <em class="comment"> * Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved.</em> <a name="83" href="#83">83</a> <em class="comment"> */</em> </pre> <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body> </html>
{ "content_hash": "65704e5e84951b32e7d590e8c7e98b60", "timestamp": "", "source": "github", "line_count": 91, "max_line_length": 197, "avg_line_length": 84.7032967032967, "alnum_prop": 0.6190970420342501, "repo_name": "teslaworksumn/lightshow-visualizer", "id": "76885c622b5186e9630475da8d925388511ac773", "size": "8142", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "lib/dom4j-1.6.1/docs/xref/org/dom4j/tree/SingleIterator.html", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "30882" }, { "name": "HTML", "bytes": "32645056" }, { "name": "Java", "bytes": "2249039" }, { "name": "XSLT", "bytes": "7439" } ], "symlink_target": "" }
from setuptools import setup setup()
{ "content_hash": "d185c9b85c554475177985b10a676d0f", "timestamp": "", "source": "github", "line_count": 3, "max_line_length": 28, "avg_line_length": 12.666666666666666, "alnum_prop": 0.7894736842105263, "repo_name": "algolia/algoliasearch-client-python", "id": "8b95793a101584ac531fb8abcb5be5ecf517e515", "size": "85", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "setup.py", "mode": "33188", "license": "mit", "language": [ { "name": "Dockerfile", "bytes": "225" }, { "name": "Python", "bytes": "239410" } ], "symlink_target": "" }
<!DOCTYPE HTML> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (11.0.4) on Mon Feb 24 17:14:03 EST 2020 --> <title>Hardware (Library-of-Gongolierium 4.0.7 API)</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2020-02-24"> <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../jquery/jquery-ui.css" title="Style"> <script type="text/javascript" src="../../../script.js"></script> <script type="text/javascript" src="../../../jquery/jszip/dist/jszip.min.js"></script> <script type="text/javascript" src="../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script> <!--[if IE]> <script type="text/javascript" src="../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script> <![endif]--> <script type="text/javascript" src="../../../jquery/jquery-3.3.1.js"></script> <script type="text/javascript" src="../../../jquery/jquery-migrate-3.0.1.js"></script> <script type="text/javascript" src="../../../jquery/jquery-ui.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Hardware (Library-of-Gongolierium 4.0.7 API)"; } } catch(err) { } //--> var data = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9}; var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; var tableTab = "tableTab"; var activeTableTab = "activeTableTab"; var pathtoroot = "../../../"; var useModuleDirectories = true; loadScripts(document, 'script');</script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <header role="banner"> <nav role="navigation"> <div class="fixedNav"> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a id="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a id="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../index.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-all.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../allclasses.html">All&nbsp;Classes</a></li> </ul> <ul class="navListSearch"> <li><label for="search">SEARCH:</label> <input type="text" id="search" value="search" disabled="disabled"> <input type="reset" id="reset" value="reset" disabled="disabled"> </li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> </div> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li>Nested&nbsp;|&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a id="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> </div> <div class="navPadding">&nbsp;</div> <script type="text/javascript"><!-- $('.navPadding').css('padding-top', $('.fixedNav').css("height")); //--> </script> </nav> </header> <!-- ======== START OF CLASS DATA ======== --> <main role="main"> <div class="header"> <div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">com.thegongoliers.hardware</a></div> <h2 title="Class Hardware" class="title">Class Hardware</h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li>java.lang.Object</li> <li> <ul class="inheritance"> <li>com.thegongoliers.hardware.Hardware</li> </ul> </li> </ul> <div class="description"> <ul class="blockList"> <li class="blockList"> <hr> <pre>public class <span class="typeNameLabel">Hardware</span> extends java.lang.Object</pre> <div class="block">Miscellaneous hardware functions.</div> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <section role="region"> <ul class="blockList"> <li class="blockList"><a id="constructor.summary"> <!-- --> </a> <h3>Constructor Summary</h3> <table class="memberSummary"> <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Constructor</th> <th class="colLast" scope="col">Description</th> </tr> <tr class="altColor"> <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E()">Hardware</a></span>()</code></th> <td class="colLast">&nbsp;</td> </tr> </table> </li> </ul> </section> <!-- ========== METHOD SUMMARY =========== --> <section role="region"> <ul class="blockList"> <li class="blockList"><a id="method.summary"> <!-- --> </a> <h3>Method Summary</h3> <table class="memberSummary"> <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colSecond" scope="col">Method</th> <th class="colLast" scope="col">Description</th> </tr> <tr id="i0" class="altColor"> <td class="colFirst"><code>static edu.wpi.first.wpilibj.buttons.Button</code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#combineButtons(edu.wpi.first.wpilibj.buttons.Button,edu.wpi.first.wpilibj.buttons.Button...)">combineButtons</a></span>&#8203;(edu.wpi.first.wpilibj.buttons.Button&nbsp;button1, edu.wpi.first.wpilibj.buttons.Button...&nbsp;buttons)</code></th> <td class="colLast"> <div class="block">Combines multiple buttons into a single button.</div> </td> </tr> <tr id="i1" class="rowColor"> <td class="colFirst"><code>static edu.wpi.first.wpilibj.interfaces.Potentiometer</code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#create10TurnPotentiometer(int,double)">create10TurnPotentiometer</a></span>&#8203;(int&nbsp;port, double&nbsp;zeroPoint)</code></th> <td class="colLast"> <div class="block">Creates a 10 turn potentiometer as sold by Andymark.</div> </td> </tr> <tr id="i2" class="altColor"> <td class="colFirst"><code>static <a href="../output/interfaces/Drivetrain.html" title="interface in com.thegongoliers.output.interfaces">Drivetrain</a></code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createDrivetrain(edu.wpi.first.wpilibj.drive.DifferentialDrive)">createDrivetrain</a></span>&#8203;(edu.wpi.first.wpilibj.drive.DifferentialDrive&nbsp;robotDrive)</code></th> <td class="colLast">&nbsp;</td> </tr> <tr id="i3" class="rowColor"> <td class="colFirst"><code>static edu.wpi.first.wpilibj.interfaces.Potentiometer</code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createPotentiometer(int,double,double)">createPotentiometer</a></span>&#8203;(int&nbsp;port, double&nbsp;degreeRange, double&nbsp;zeroPoint)</code></th> <td class="colLast"> <div class="block">Creates potentiometer.</div> </td> </tr> <tr id="i4" class="altColor"> <td class="colFirst"><code>static edu.wpi.first.wpilibj.interfaces.Gyro</code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#invertGyro(edu.wpi.first.wpilibj.interfaces.Gyro)">invertGyro</a></span>&#8203;(edu.wpi.first.wpilibj.interfaces.Gyro&nbsp;gyro)</code></th> <td class="colLast"> <div class="block">Invert the direction of the Gyro.</div> </td> </tr> <tr id="i5" class="rowColor"> <td class="colFirst"><code>static edu.wpi.first.wpilibj.interfaces.Potentiometer</code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#invertPotentiometer(edu.wpi.first.wpilibj.interfaces.Potentiometer)">invertPotentiometer</a></span>&#8203;(edu.wpi.first.wpilibj.interfaces.Potentiometer&nbsp;potentiometer)</code></th> <td class="colLast"> <div class="block">Inverts a potentiometer.</div> </td> </tr> <tr id="i6" class="altColor"> <td class="colFirst"><code>static edu.wpi.first.wpilibj.buttons.Button</code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeButton(java.util.function.BooleanSupplier)">makeButton</a></span>&#8203;(java.util.function.BooleanSupplier&nbsp;booleanSupplier)</code></th> <td class="colLast"> <div class="block">Creates a button from a boolean supplier.</div> </td> </tr> <tr id="i7" class="rowColor"> <td class="colFirst"><code>static <a href="../input/switches/ResettableSwitch.html" title="interface in com.thegongoliers.input.switches">ResettableSwitch</a></code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeResettableSwitch(com.thegongoliers.input.switches.Switch)">makeResettableSwitch</a></span>&#8203;(<a href="../input/switches/Switch.html" title="interface in com.thegongoliers.input.switches">Switch</a>&nbsp;aSwitch)</code></th> <td class="colLast"> <div class="block">Creates a resettable switch from a switch.</div> </td> </tr> <tr id="i8" class="altColor"> <td class="colFirst"><code>static <a href="../input/switches/Switch.html" title="interface in com.thegongoliers.input.switches">Switch</a></code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeSwitch(java.util.function.BooleanSupplier)">makeSwitch</a></span>&#8203;(java.util.function.BooleanSupplier&nbsp;booleanSupplier)</code></th> <td class="colLast"> <div class="block">Creates a switch from a boolean supplier.</div> </td> </tr> <tr id="i9" class="rowColor"> <td class="colFirst"><code>static edu.wpi.first.wpilibj.buttons.Trigger</code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeTrigger(java.util.function.BooleanSupplier)">makeTrigger</a></span>&#8203;(java.util.function.BooleanSupplier&nbsp;booleanSupplier)</code></th> <td class="colLast"> <div class="block">Creates a trigger from a boolean supplier.</div> </td> </tr> <tr id="i10" class="altColor"> <td class="colFirst"><code>static edu.wpi.first.wpilibj.buttons.Trigger</code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#switchToTrigger(com.thegongoliers.input.switches.Switch)">switchToTrigger</a></span>&#8203;(<a href="../input/switches/Switch.html" title="interface in com.thegongoliers.input.switches">Switch</a>&nbsp;aSwitch)</code></th> <td class="colLast"> <div class="block">Creates a trigger from a switch.</div> </td> </tr> <tr id="i11" class="rowColor"> <td class="colFirst"><code>static edu.wpi.first.wpilibj.buttons.Button</code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#triggerToButton(edu.wpi.first.wpilibj.buttons.Trigger)">triggerToButton</a></span>&#8203;(edu.wpi.first.wpilibj.buttons.Trigger&nbsp;trigger)</code></th> <td class="colLast"> <div class="block">Creates a button from a trigger.</div> </td> </tr> <tr id="i12" class="altColor"> <td class="colFirst"><code>static double</code></td> <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#voltageToPWM(double,com.thegongoliers.input.voltage.VoltageSensor)">voltageToPWM</a></span>&#8203;(double&nbsp;voltage, <a href="../input/voltage/VoltageSensor.html" title="interface in com.thegongoliers.input.voltage">VoltageSensor</a>&nbsp;batteryVoltageSensor)</code></th> <td class="colLast"> <div class="block">Convert a voltage to a PWM signal (percent power) based on the current voltage of the battery</div> </td> </tr> </table> <ul class="blockList"> <li class="blockList"><a id="methods.inherited.from.class.java.lang.Object"> <!-- --> </a> <h3>Methods inherited from class&nbsp;java.lang.Object</h3> <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li> </ul> </li> </ul> </section> </li> </ul> </div> <div class="details"> <ul class="blockList"> <li class="blockList"> <!-- ========= CONSTRUCTOR DETAIL ======== --> <section role="region"> <ul class="blockList"> <li class="blockList"><a id="constructor.detail"> <!-- --> </a> <h3>Constructor Detail</h3> <a id="&lt;init&gt;()"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>Hardware</h4> <pre>public&nbsp;Hardware()</pre> </li> </ul> </li> </ul> </section> <!-- ============ METHOD DETAIL ========== --> <section role="region"> <ul class="blockList"> <li class="blockList"><a id="method.detail"> <!-- --> </a> <h3>Method Detail</h3> <a id="combineButtons(edu.wpi.first.wpilibj.buttons.Button,edu.wpi.first.wpilibj.buttons.Button...)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>combineButtons</h4> <pre class="methodSignature">public static&nbsp;edu.wpi.first.wpilibj.buttons.Button&nbsp;combineButtons&#8203;(edu.wpi.first.wpilibj.buttons.Button&nbsp;button1, edu.wpi.first.wpilibj.buttons.Button...&nbsp;buttons)</pre> <div class="block">Combines multiple buttons into a single button.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>button1</code> - The first button.</dd> <dd><code>buttons</code> - The rest of the buttons.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>A Button which is pressed only when ALL of the buttons are pressed.</dd> </dl> </li> </ul> <a id="makeButton(java.util.function.BooleanSupplier)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>makeButton</h4> <pre class="methodSignature">public static&nbsp;edu.wpi.first.wpilibj.buttons.Button&nbsp;makeButton&#8203;(java.util.function.BooleanSupplier&nbsp;booleanSupplier)</pre> <div class="block">Creates a button from a boolean supplier.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>booleanSupplier</code> - The boolean supplier to become a button.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>The button which is pressed when the boolean supplier is true.</dd> </dl> </li> </ul> <a id="triggerToButton(edu.wpi.first.wpilibj.buttons.Trigger)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>triggerToButton</h4> <pre class="methodSignature">public static&nbsp;edu.wpi.first.wpilibj.buttons.Button&nbsp;triggerToButton&#8203;(edu.wpi.first.wpilibj.buttons.Trigger&nbsp;trigger)</pre> <div class="block">Creates a button from a trigger.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>trigger</code> - The trigger to become a button.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>The button which is pressed when the trigger is triggered.</dd> </dl> </li> </ul> <a id="switchToTrigger(com.thegongoliers.input.switches.Switch)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>switchToTrigger</h4> <pre class="methodSignature">public static&nbsp;edu.wpi.first.wpilibj.buttons.Trigger&nbsp;switchToTrigger&#8203;(<a href="../input/switches/Switch.html" title="interface in com.thegongoliers.input.switches">Switch</a>&nbsp;aSwitch)</pre> <div class="block">Creates a trigger from a switch.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>aSwitch</code> - The switch to become a trigger.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>The trigger which is triggered when the switch is triggered.</dd> </dl> </li> </ul> <a id="makeTrigger(java.util.function.BooleanSupplier)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>makeTrigger</h4> <pre class="methodSignature">public static&nbsp;edu.wpi.first.wpilibj.buttons.Trigger&nbsp;makeTrigger&#8203;(java.util.function.BooleanSupplier&nbsp;booleanSupplier)</pre> <div class="block">Creates a trigger from a boolean supplier.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>booleanSupplier</code> - The boolean supplier to become a trigger.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>The trigger which is triggered when the boolean supplier is true.</dd> </dl> </li> </ul> <a id="makeSwitch(java.util.function.BooleanSupplier)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>makeSwitch</h4> <pre class="methodSignature">public static&nbsp;<a href="../input/switches/Switch.html" title="interface in com.thegongoliers.input.switches">Switch</a>&nbsp;makeSwitch&#8203;(java.util.function.BooleanSupplier&nbsp;booleanSupplier)</pre> <div class="block">Creates a switch from a boolean supplier.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>booleanSupplier</code> - The boolean supplier to become a switch.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>The switch which is triggered when the boolean supplier is true.</dd> </dl> </li> </ul> <a id="makeResettableSwitch(com.thegongoliers.input.switches.Switch)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>makeResettableSwitch</h4> <pre class="methodSignature">public static&nbsp;<a href="../input/switches/ResettableSwitch.html" title="interface in com.thegongoliers.input.switches">ResettableSwitch</a>&nbsp;makeResettableSwitch&#8203;(<a href="../input/switches/Switch.html" title="interface in com.thegongoliers.input.switches">Switch</a>&nbsp;aSwitch)</pre> <div class="block">Creates a resettable switch from a switch.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>aSwitch</code> - The switch to become a resettable switch.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>The resettable switch, which will remain true if the switch becomes triggered.</dd> </dl> </li> </ul> <a id="invertGyro(edu.wpi.first.wpilibj.interfaces.Gyro)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>invertGyro</h4> <pre class="methodSignature">public static&nbsp;edu.wpi.first.wpilibj.interfaces.Gyro&nbsp;invertGyro&#8203;(edu.wpi.first.wpilibj.interfaces.Gyro&nbsp;gyro)</pre> <div class="block">Invert the direction of the Gyro.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>gyro</code> - The Gyro to invert.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>The inverted Gyro.</dd> </dl> </li> </ul> <a id="invertPotentiometer(edu.wpi.first.wpilibj.interfaces.Potentiometer)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>invertPotentiometer</h4> <pre class="methodSignature">public static&nbsp;edu.wpi.first.wpilibj.interfaces.Potentiometer&nbsp;invertPotentiometer&#8203;(edu.wpi.first.wpilibj.interfaces.Potentiometer&nbsp;potentiometer)</pre> <div class="block">Inverts a potentiometer. If a potentiometer goes from 0 to -100 degrees (after scale and zero point), but should be 0 to 100, use this method.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>potentiometer</code> - The potentiometer to invert.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>The inverted potentiometer.</dd> </dl> </li> </ul> <a id="createPotentiometer(int,double,double)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>createPotentiometer</h4> <pre class="methodSignature">public static&nbsp;edu.wpi.first.wpilibj.interfaces.Potentiometer&nbsp;createPotentiometer&#8203;(int&nbsp;port, double&nbsp;degreeRange, double&nbsp;zeroPoint)</pre> <div class="block">Creates potentiometer.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>port</code> - The analog port that the potentiometer is plugged into.</dd> <dd><code>degreeRange</code> - The total range in degrees that the potentiometer can turn</dd> <dd><code>zeroPoint</code> - The zero point of the potentiometer. If you expect a position to be 0, but it is reading X degrees, put X here. (ex. actual 1000 to 1100 degrees, expected 0 to 100 degrees. Put 1000 here.)</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>A potentiometer.</dd> </dl> </li> </ul> <a id="create10TurnPotentiometer(int,double)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>create10TurnPotentiometer</h4> <pre class="methodSignature">public static&nbsp;edu.wpi.first.wpilibj.interfaces.Potentiometer&nbsp;create10TurnPotentiometer&#8203;(int&nbsp;port, double&nbsp;zeroPoint)</pre> <div class="block">Creates a 10 turn potentiometer as sold by Andymark.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>port</code> - The analog port that the potentiometer is plugged into.</dd> <dd><code>zeroPoint</code> - The zero point of the potentiometer. If you expect a position to be 0, but it is reading X degrees, put X here. (ex. actual 1000 to 1100 degrees, expected 0 to 100 degrees. Put 1000 here.)</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>A 10 turn potentiometer.</dd> </dl> </li> </ul> <a id="createDrivetrain(edu.wpi.first.wpilibj.drive.DifferentialDrive)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>createDrivetrain</h4> <pre class="methodSignature">public static&nbsp;<a href="../output/interfaces/Drivetrain.html" title="interface in com.thegongoliers.output.interfaces">Drivetrain</a>&nbsp;createDrivetrain&#8203;(edu.wpi.first.wpilibj.drive.DifferentialDrive&nbsp;robotDrive)</pre> </li> </ul> <a id="voltageToPWM(double,com.thegongoliers.input.voltage.VoltageSensor)"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>voltageToPWM</h4> <pre class="methodSignature">public static&nbsp;double&nbsp;voltageToPWM&#8203;(double&nbsp;voltage, <a href="../input/voltage/VoltageSensor.html" title="interface in com.thegongoliers.input.voltage">VoltageSensor</a>&nbsp;batteryVoltageSensor)</pre> <div class="block">Convert a voltage to a PWM signal (percent power) based on the current voltage of the battery</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>voltage</code> - the desired voltage</dd> <dd><code>batteryVoltageSensor</code> - the battery voltage sensor</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the PWM signal [-1, 1] which delivers the desired voltage</dd> </dl> </li> </ul> </li> </ul> </section> </li> </ul> </div> </div> </main> <!-- ========= END OF CLASS DATA ========= --> <footer role="contentinfo"> <nav role="navigation"> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a id="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a id="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../index.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-all.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../allclasses.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> </div> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li>Nested&nbsp;|&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a id="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> </nav> </footer> </body> </html>
{ "content_hash": "73bd34f4d162ba1786f1859f73a8e0bc", "timestamp": "", "source": "github", "line_count": 597, "max_line_length": 389, "avg_line_length": 42.278056951423785, "alnum_prop": 0.681418383518225, "repo_name": "Gongoliers/Library-of-Gongolierium", "id": "3323426cdfcedeee24eefbcae895094b694c1565", "size": "25240", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "docs/com/thegongoliers/hardware/Hardware.html", "mode": "33188", "license": "mit", "language": [ { "name": "Java", "bytes": "303564" } ], "symlink_target": "" }
var Tmpl = (function(window, document) { var fProto = Function.prototype; var cache = {}; /** * List of regular expressions used to transform XHTML/jQuery syntax into pure * JavaScript syntax. */ var CHANGE_SHORT_SYNTAX = /\$\{([^\}]*)\}/g; var END_CHARACTERS = /[\n\r\t]+/g; var COLLAPSE_SPACE = /\s+/g; var ESCAPE_CHARACTERS = /\{\{[\s\S]+?\}\}|(["\\])/g; var REPLACE_SYNTAX = /\{\{(\/?[a-z]+|[!=])(?:\(([^\)]+)\))?(?:\s+([\S\s]+?))?\}\}/g; var REMOVE_EMPTY_PUSHES = /"(?:\\"|[^"])*"|(this\.push\(""(?:\s*,\s*"")*\));/g; /** * HTML wrappers used to enclose the resulting HTML into some needed tags to avoid * incorrect parsing. */ var WRAP = { 'area': [1, '<map>', '</map>'], 'caption': [1, '<table>', '</table>'], 'col': [2, '<table><colgroup>', '</colgroup><tbody></tbody></table>'], 'colgroup': [1, '<table>', '</table>'], 'option': [1, '<select multiple="multiple">', '</select>'], 'optgroup': [1, '<select multiple="multiple">', '</select>'], 'legend': [1, '<fieldset>', '</fieldset>'], 'tbody': [1, '<table>', '</table>'], 'td': [3, '<table><tbody><tr>', '</tr></tbody></table>'], 'tfoot': [1, '<table>', '</table>'], 'th': [3, '<table><tbody><tr>', '</tr></tbody></table>'], 'thead': [1, '<table>', '</table>'], 'tr': [2, '<table><tbody>', '</tbody></table>'] }; /** * DIV node belonging to a document fragment that has HTML5 nodes enabled in IE. Used * for parsing HTML into objects. */ var PARSER = (function() { var fragment = document.createDocumentFragment(); var parser = document.createElement('div'); var html5 = 'abbr article aside audio canvas datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video'.split(' '); //Enable HTML5 elements in IE. if ('createElement' in fragment) { for (var i = html5.length; i--; ) { fragment.createElement(html5[i]); } } return fragment.appendChild(parser); })(); /** * Define 'Function.prototype.bind' if not exists. */ fProto.bind = fProto.bind || function(scope) { var method = this; return function() { return method.apply(scope, arguments); } }; /** * Loads a template from a given JavaScript syntax, by compiling it and storing the * function in the cache. */ function load(name, template) { cache[name] = (new Function('$data', compile(template))).bind(tplScope); } /** * Loads a template through an XHR connection. Templates can have the 'tpl' extension, * to indicate that the template is a source template; 'tpc', to indicate that it is * already compiled as JavaScript code; or 'tpx' to indicate a collection of * templates. */ function loadXhr(src, name) { var extension = src.substr(src.lastIndexOf('.') + 1); var xhr = window.XMLHttpRequest? new XMLHttpRequest() : new ActiveXObject('Microsoft.XMLHTTP'); var xhrHandler; //Define handler. xhrHandler = function() { if ((xhr.readyState === 4) && (xhr.status === 200)) { //Switch depending on the extension. switch (extension) { case 'tpl': //Source template. load(name, xhr.responseText); break; case 'tpc': //Compiled template. cache[name] = (new Function('$data', xhr.responseText)).bind(tplScope); break; case 'tpx': //Collection of compiled templates. tplCollection(xhr.responseText); break; default: throw new Error('Invalid template format detected: ' + extension); } //Ensure that the resources are freed. xhr.onreadystatechange = null; xhr = null; } }; //Perform the HTTP request. xhr.open('GET', src, true); xhr.onreadystatechange = xhrHandler; xhr.send(null); } /** * Parses a collection of compiled templates. Useful to use when templates are * transformed at build time, and bundled into a one, single file. */ function tplCollection(templates) { var splitted = templates.split(END_CHARACTERS); var template; var position; var name; for (var i = splitted.length; i--; ) { template = splitted[i]; position = template.indexOf('='); cache[template.substr(0, position)] = (new Function('$data', template.substr(position + 1))).bind(tplScope); } } /** * Returns a template, given its name. */ function template(name) { return cache[name] || null; } /** * List of the default parameters to be used in case they are not provided. */ var defaultParams = { 'for': ['$index'], 'each': ['$index', '$value'], 'tmpl': ['{}'] }; /** * Compiles a template, transforming HTML and jQuery templates code into valid * JavaScript syntax. Returns the piece of code ready to be inserted inside a * function. */ function compile(template) { var blocks = []; var compiled = [ 'var $control={},$$=[];$$.n={};with($data){$$.push("', template .replace(CHANGE_SHORT_SYNTAX, '{{= $1}}') .replace(END_CHARACTERS, '') .replace(COLLAPSE_SPACE, ' ') .replace(ESCAPE_CHARACTERS, function(match, character) { return character? '\\' + character : match; }) .replace(REPLACE_SYNTAX, function(match, op, param, arg) { var params; var p1, p2; var code; //Create params list. params = (param && param.split(/\s*,\s*/g)) || []; params = params.concat((defaultParams[op] || []).slice(params.length)); //Extract params. p1 = params[0]; p2 = params[1]; //Switch depending on the operator. switch (op) { case '!': code = ''; break; case '=': code = 'try{$$.push(this.i((' + arg + ')))}catch(e){this.w("${}: ' + arg + ' is undefined")}'; break; case 'html': code = 'try{$$.push(' + arg + ')}catch(e){this.w("Html: ' + arg + ' is undefined")}'; break; case 'tmpl': code = 'try{$$.push(this.i(this.t("' + arg + '")(' + p1 + '),$$.n))}catch(e){console.log(e);this.w("Tmpl: ' + arg + ' does not exist")}'; break; case 'if': code = 'if(' + arg + '){'; break; case 'else': code = (arg? '}else if(' + arg + '){' : '}else{'); break; case 'switch': code = 'try{switch(' + (blocks.push(arg), arg) + '){case void 0:'; break; case 'case': code = 'break;case(' + arg + '):'; break; case 'for': code = 'for(' + p1 + '=' + (arg = arg.split(';'), arg[0]) + ';' + p1 + (((arg[2] || 1) > 0)? '<=' : '>=') + arg[1] + ';' + p1 + '+=' + (arg[2] || 1) + '){'; break; case 'each': code = 'try{for(' + p1 + ' in ' + (blocks.push(arg), arg) + '){if(' + arg + '.hasOwnProperty(' + p1 + ')){var ' + p2 + '=' + arg + '[' + p1 + ']' + ';with(' + p2 + '){'; break; case 'default': code = 'break;default:'; break; case '/if': code = '}'; break; case '/for': code = '}'; break; case '/switch': code = '}}catch(e){this.w("Switch: ' + blocks.pop() + ' is undefined")}'; break; case '/each': code = '}}}}catch(e){this.w("Each: ' + blocks.pop() + ' is undefined")}'; break; default: throw new SyntaxError('Invalid operation: ' + op); } return '");' + code + '$$.push("'; }), '")}return this.c(this.p($$.join("")), $$.n);' ].join('').replace(REMOVE_EMPTY_PUSHES, function(match, empty) { return empty? '' : match; }); //Return compiled code. return compiled; } /** * Returns a document fragment with the HTML parsed. Uses an improved implementation * of the innerShiv script. */ function parse(html, nodes) { var fragment = document.createDocumentFragment(); var node = html.match(/<([A-Za-z][A-Za-z0-9]*)/); var wrap = WRAP[(node && node[1]) || '']; var sandbox = PARSER; var el; //Set HTML. PARSER.innerHTML = wrap? [wrap[1], html, wrap[2]].join('') : html; //Look for the node. for (var i = (wrap && wrap[0]) || 0; i--; ) { sandbox = sandbox.firstChild; } //Extract children. while (el = sandbox.firstChild) { fragment.appendChild(el); } //Empty parser and free memory. PARSER.innerHTML = ''; el = null; //Return fragment. return fragment; } /** * Prepares a value to be inserted. If the value inserted is a node, or an instance * of it, a placeholder (a comment node) is inserted. This placeholder will be removed * after by the 'make' function. */ function insert(value, nodes) { var uid; if (value.nodeType && typeof (value.nodeName === 'string')) { nodes[uid = (+new Date()) + '' + Math.random()] = value; return '<!--' + uid + '-->'; } else { return ('' + value).replace(/[<>"']/g, function(chr) { return '&#' + chr.charCodeAt(0) + ';'; }); } } /** * Replaces comment nodes used as a placeholder with the node to be inserted. */ function replaceComments(el, nodes) { var child = el.firstChild; var inserted; if (child) { do { if ((child.nodeName === '#comment') && (inserted = nodes[child.nodeValue])) { el.replaceChild(inserted, child); child = inserted; } else { replaceComments(child, nodes); } } while (child = child.nextSibling); } return el; } /** * Default function to warn about errors found in a template. It can be overwritten * by other pieces of code, (for supressing warnings, logging errors...) */ function warn(data) { if (window.console && window.console.warn) { console.warn(data); } } /** * Public method exposed for being able to change the warning method. Specially * useful for logging errors in production; or for testing purposes. */ function setWarn(method) { if (typeof method === 'function') { tplScope['w'] = method; } else { tplScope['w'] = warn; } } //Create private special scope for template functions. var tplScope = { 't': template, 'p': parse, 'i': insert, 'c': replaceComments, 'w': warn }; //Export public methods outside. return { load: load, loadXhr: loadXhr, template: template, compile: compile, setWarn: setWarn }; })(window, document);
{ "content_hash": "15dfabe26cd1e9f0e592311925eae9a2", "timestamp": "", "source": "github", "line_count": 384, "max_line_length": 175, "avg_line_length": 26.739583333333332, "alnum_prop": 0.5642773665757694, "repo_name": "mjesun/jsTmpl", "id": "4297f5071cbf1e3142eea10b5d88b1563125528e", "size": "10268", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Tmpl.js", "mode": "33188", "license": "mit", "language": [ { "name": "JavaScript", "bytes": "10268" } ], "symlink_target": "" }
package com.felhr.usbserial; import java.nio.BufferOverflowException; import java.nio.ByteBuffer; import java.util.Arrays; public class SerialBuffer { public static final int DEFAULT_READ_BUFFER_SIZE = 16 * 1024; public static final int DEFAULT_WRITE_BUFFER_SIZE = 16 * 1024; private ByteBuffer readBuffer; private SynchronizedBuffer writeBuffer; private byte[] readBuffer_compatible; // Read buffer for android < 4.2 private boolean debugging = false; public SerialBuffer(boolean version) { writeBuffer = new SynchronizedBuffer(); if(version) { readBuffer = ByteBuffer.allocate(DEFAULT_READ_BUFFER_SIZE); }else { readBuffer_compatible = new byte[DEFAULT_READ_BUFFER_SIZE]; } } /* * Print debug messages */ public void debug(boolean value) { debugging = value; } public void putReadBuffer(ByteBuffer data) { synchronized(this) { try { readBuffer.put(data); }catch(BufferOverflowException e) { // TO-DO } } } public ByteBuffer getReadBuffer() { synchronized(this) { return readBuffer; } } public byte[] getDataReceived() { synchronized(this) { byte[] dst = new byte[readBuffer.position()]; readBuffer.position(0); readBuffer.get(dst, 0, dst.length); if(debugging) UsbSerialDebugger.printReadLogGet(dst, true); return dst; } } public void clearReadBuffer() { synchronized(this) { readBuffer.clear(); } } public byte[] getWriteBuffer() { return writeBuffer.get(); } public void putWriteBuffer(byte[]data) { writeBuffer.put(data); } public void resetWriteBuffer() { writeBuffer.reset(); } public byte[] getBufferCompatible() { return readBuffer_compatible; } public byte[] getDataReceivedCompatible(int numberBytes) { byte[] tempBuff = Arrays.copyOfRange(readBuffer_compatible, 0, numberBytes); return tempBuff; } private class SynchronizedBuffer { private byte[] buffer; private int position; public SynchronizedBuffer() { this.buffer = new byte[DEFAULT_WRITE_BUFFER_SIZE]; position = -1; } public synchronized void put(byte[] src) { if(position == -1) position = 0; if(debugging) UsbSerialDebugger.printLogPut(src, true); if(position + src.length > DEFAULT_WRITE_BUFFER_SIZE - 1) //Checking bounds. Source data does not fit in buffer { if(position < DEFAULT_WRITE_BUFFER_SIZE) System.arraycopy(src, 0, buffer, position, DEFAULT_WRITE_BUFFER_SIZE - position); position = DEFAULT_WRITE_BUFFER_SIZE; notify(); }else // Source data fits in buffer { System.arraycopy(src, 0, buffer, position, src.length); position += src.length; notify(); } } public synchronized byte[] get() { if(position == -1) { try { wait(); } catch (InterruptedException e) { e.printStackTrace(); } } byte[] dst = Arrays.copyOfRange(buffer, 0, position); if(debugging) UsbSerialDebugger.printLogGet(dst, true); position = -1; return dst; } public synchronized void reset() { position = -1; } } }
{ "content_hash": "9c2de21539ce96dfcc15cb13e5e4e4b2", "timestamp": "", "source": "github", "line_count": 164, "max_line_length": 114, "avg_line_length": 18.99390243902439, "alnum_prop": 0.6670947030497593, "repo_name": "zodsoft/UsbSerial", "id": "12e6ccb05643da4418d86b46c1449a8830e582c8", "size": "3115", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/com/felhr/usbserial/SerialBuffer.java", "mode": "33188", "license": "mit", "language": [ { "name": "Java", "bytes": "107465" } ], "symlink_target": "" }
// Copyright (c) 2009-2016 Satoshi Nakamoto // Copyright (c) 2009-2016 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "txdb.h" #include "walletdb.h" #include "Electrarpc.h" #include "net.h" #include "init.h" #include "util.h" #include "ui_interface.h" #include "checkpoints.h" #include "zerocoin/ZeroTest.h" #include <boost/filesystem.hpp> #include <boost/filesystem/fstream.hpp> #include <boost/filesystem/convenience.hpp> #include <boost/interprocess/sync/file_lock.hpp> #include <boost/algorithm/string/predicate.hpp> #include <openssl/crypto.h> #ifndef WIN32 #include <signal.h> #endif using namespace std; using namespace boost; CWallet* pwalletMain; CClientUIInterface uiInterface; std::string strWalletFileName; bool fConfChange; bool fEnforceCanonical; unsigned int nNodeLifespan; unsigned int nDerivationMethodIndex; unsigned int nMinerSleep; bool fUseFastIndex; enum Checkpoints::CPMode CheckpointsMode; ////////////////////////////////////////////////////////////////////////////// // // Shutdown // void ExitTimeout(void* parg) { #ifdef WIN32 MilliSleep(5000); ExitProcess(0); #endif } void StartShutdown() { #ifdef QT_GUI // ensure we leave the Qt main loop for a clean GUI exit (Shutdown() is called in Electra.cpp afterwards) uiInterface.QueueShutdown(); #else // Without UI, Shutdown() can simply be started in a new thread NewThread(Shutdown, NULL); #endif } void Shutdown(void* parg) { static CCriticalSection cs_Shutdown; static bool fTaken; // Make this thread recognisable as the shutdown thread RenameThread("Electra-shutoff"); bool fFirstThread = false; { TRY_LOCK(cs_Shutdown, lockShutdown); if (lockShutdown) { fFirstThread = !fTaken; fTaken = true; } } static bool fExit; if (fFirstThread) { fShutdown = true; nTransactionsUpdated++; // CTxDB().Close(); bitdb.Flush(false); StopNode(); bitdb.Flush(true); boost::filesystem::remove(GetPidFile()); UnregisterWallet(pwalletMain); delete pwalletMain; NewThread(ExitTimeout, NULL); MilliSleep(50); printf("Electra exited\n\n"); fExit = true; #ifndef QT_GUI // ensure non-UI client gets exited here, but let Electra-Qt reach 'return 0;' in Electra.cpp exit(0); #endif } else { while (!fExit) MilliSleep(500); MilliSleep(100); ExitThread(0); } } void HandleSIGTERM(int) { fRequestShutdown = true; } void HandleSIGHUP(int) { fReopenDebugLog = true; } ////////////////////////////////////////////////////////////////////////////// // // Start // #if !defined(QT_GUI) bool AppInit(int argc, char* argv[]) { bool fRet = false; try { // // Parameters // // If Qt is used, parameters/Electra.conf are parsed in qt/Electra.cpp's main() ParseParameters(argc, argv); if (!boost::filesystem::is_directory(GetDataDir(false))) { fprintf(stderr, "Error: Specified directory does not exist\n"); Shutdown(NULL); } ReadConfigFile(mapArgs, mapMultiArgs); if (mapArgs.count("-?") || mapArgs.count("--help")) { // First part of help message is specific to Electrad / RPC client std::string strUsage = _("Electra version") + " " + FormatFullVersion() + "\n\n" + _("Usage:") + "\n" + " Electrad [options] " + "\n" + " Electrad [options] <command> [params] " + _("Send command to -server or Electrad") + "\n" + " Electrad [options] help " + _("List commands") + "\n" + " Electrad [options] help <command> " + _("Get help for a command") + "\n"; strUsage += "\n" + HelpMessage(); fprintf(stdout, "%s", strUsage.c_str()); return false; } // Command-line RPC for (int i = 1; i < argc; i++) if (!IsSwitchChar(argv[i][0]) && !boost::algorithm::istarts_with(argv[i], "Electra:")) fCommandLine = true; if (fCommandLine) { int ret = CommandLineRPC(argc, argv); exit(ret); } fRet = AppInit2(); } catch (std::exception& e) { PrintException(&e, "AppInit()"); } catch (...) { PrintException(NULL, "AppInit()"); } if (!fRet) Shutdown(NULL); return fRet; } extern void noui_connect(); int main(int argc, char* argv[]) { bool fRet = false; // Connect Electrad signal handlers noui_connect(); fRet = AppInit(argc, argv); if (fRet && fDaemon) return 0; return 1; } #endif bool static InitError(const std::string &str) { uiInterface.ThreadSafeMessageBox(str, _("Electra"), CClientUIInterface::OK | CClientUIInterface::MODAL); return false; } bool static InitWarning(const std::string &str) { uiInterface.ThreadSafeMessageBox(str, _("Electra"), CClientUIInterface::OK | CClientUIInterface::ICON_EXCLAMATION | CClientUIInterface::MODAL); return true; } bool static Bind(const CService &addr, bool fError = true) { if (IsLimited(addr)) return false; std::string strError; if (!BindListenPort(addr, strError)) { if (fError) return InitError(strError); return false; } return true; } // Core-specific options shared between UI and daemon std::string HelpMessage() { string strUsage = _("Options:") + "\n" + " -? " + _("This help message") + "\n" + " -conf=<file> " + _("Specify configuration file (default: Electra.conf)") + "\n" + " -pid=<file> " + _("Specify pid file (default: Electrad.pid)") + "\n" + " -datadir=<dir> " + _("Specify data directory") + "\n" + " -wallet=<dir> " + _("Specify wallet file (within data directory)") + "\n" + " -dbcache=<n> " + _("Set database cache size in megabytes (default: 25)") + "\n" + " -dblogsize=<n> " + _("Set database disk log size in megabytes (default: 100)") + "\n" + " -timeout=<n> " + _("Specify connection timeout in milliseconds (default: 5000)") + "\n" + " -proxy=<ip:port> " + _("Connect through socks proxy") + "\n" + " -socks=<n> " + _("Select the version of socks proxy to use (4-5, default: 5)") + "\n" + " -tor=<ip:port> " + _("Use proxy to reach tor hidden services (default: same as -proxy)") + "\n" " -dns " + _("Allow DNS lookups for -addnode, -seednode and -connect") + "\n" + " -port=<port> " + _("Listen for connections on <port> (default: 5817 or testnet: 15817)") + "\n" + " -maxconnections=<n> " + _("Maintain at most <n> connections to peers (default: 125)") + "\n" + " -addnode=<ip> " + _("Add a node to connect to and attempt to keep the connection open") + "\n" + " -connect=<ip> " + _("Connect only to the specified node(s)") + "\n" + " -seednode=<ip> " + _("Connect to a node to retrieve peer addresses, and disconnect") + "\n" + " -externalip=<ip> " + _("Specify your own public address") + "\n" + " -onlynet=<net> " + _("Only connect to nodes in network <net> (IPv4, IPv6 or Tor)") + "\n" + " -discover " + _("Discover own IP address (default: 1 when listening and no -externalip)") + "\n" + " -irc " + _("Find peers using internet relay chat (default: 0)") + "\n" + " -listen " + _("Accept connections from outside (default: 1 if no -proxy or -connect)") + "\n" + " -bind=<addr> " + _("Bind to given address. Use [host]:port notation for IPv6") + "\n" + " -dnsseed " + _("Find peers using DNS lookup (default: 1)") + "\n" + " -staking " + _("Stake your coins to support network and gain reward (default: 1)") + "\n" + " -synctime " + _("Sync time with other nodes. Disable if time on your system is precise e.g. syncing with NTP (default: 1)") + "\n" + " -cppolicy " + _("Sync checkpoints policy (default: strict)") + "\n" + " -banscore=<n> " + _("Threshold for disconnecting misbehaving peers (default: 100)") + "\n" + " -bantime=<n> " + _("Number of seconds to keep misbehaving peers from reconnecting (default: 86400)") + "\n" + " -maxreceivebuffer=<n> " + _("Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)") + "\n" + " -maxsendbuffer=<n> " + _("Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)") + "\n" + #ifdef USE_UPNP #if USE_UPNP " -upnp " + _("Use UPnP to map the listening port (default: 1 when listening)") + "\n" + #else " -upnp " + _("Use UPnP to map the listening port (default: 0)") + "\n" + #endif #endif " -detachdb " + _("Detach block and address databases. Increases shutdown time (default: 0)") + "\n" + " -paytxfee=<amt> " + _("Fee per KB to add to transactions you send") + "\n" + " -mininput=<amt> " + _("When creating transactions, ignore inputs with value less than this (default: 0.01)") + "\n" + #ifdef QT_GUI " -server " + _("Accept command line and JSON-RPC commands") + "\n" + #endif #if !defined(WIN32) && !defined(QT_GUI) " -daemon " + _("Run in the background as a daemon and accept commands") + "\n" + #endif " -testnet " + _("Use the test network") + "\n" + " -debug " + _("Output extra debugging information. Implies all other -debug* options") + "\n" + " -debugnet " + _("Output extra network debugging information") + "\n" + " -logtimestamps " + _("Prepend debug output with timestamp") + "\n" + " -shrinkdebugfile " + _("Shrink debug.log file on client startup (default: 1 when no -debug)") + "\n" + " -printtoconsole " + _("Send trace/debug info to console instead of debug.log file") + "\n" + #ifdef WIN32 " -printtodebugger " + _("Send trace/debug info to debugger") + "\n" + #endif " -rpcuser=<user> " + _("Username for JSON-RPC connections") + "\n" + " -rpcpassword=<pw> " + _("Password for JSON-RPC connections") + "\n" + " -rpcport=<port> " + _("Listen for JSON-RPC connections on <port> (default: 5788 or testnet: 15788)") + "\n" + " -rpcallowip=<ip> " + _("Allow JSON-RPC connections from specified IP address") + "\n" + " -rpcconnect=<ip> " + _("Send commands to node running on <ip> (default: 127.0.0.1)") + "\n" + " -blocknotify=<cmd> " + _("Execute command when the best block changes (%s in cmd is replaced by block hash)") + "\n" + " -walletnotify=<cmd> " + _("Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)") + "\n" + " -confchange " + _("Require a confirmations for change (default: 0)") + "\n" + " -enforcecanonical " + _("Enforce transaction scripts to use canonical PUSH operators (default: 1)") + "\n" + " -alertnotify=<cmd> " + _("Execute command when a relevant alert is received (%s in cmd is replaced by message)") + "\n" + " -upgradewallet " + _("Upgrade wallet to latest format") + "\n" + " -keypool=<n> " + _("Set key pool size to <n> (default: 100)") + "\n" + " -rescan " + _("Rescan the block chain for missing wallet transactions") + "\n" + " -salvagewallet " + _("Attempt to recover private keys from a corrupt wallet.dat") + "\n" + " -checkblocks=<n> " + _("How many blocks to check at startup (default: 2500, 0 = all)") + "\n" + " -checklevel=<n> " + _("How thorough the block verification is (0-6, default: 1)") + "\n" + " -loadblock=<file> " + _("Imports blocks from external blk000?.dat file") + "\n" + "\n" + _("Block creation options:") + "\n" + " -blockminsize=<n> " + _("Set minimum block size in bytes (default: 0)") + "\n" + " -blockmaxsize=<n> " + _("Set maximum block size in bytes (default: 250000)") + "\n" + " -blockprioritysize=<n> " + _("Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)") + "\n" + "\n" + _("SSL options: (see the Electra Wiki for SSL setup instructions)") + "\n" + " -rpcssl " + _("Use OpenSSL (https) for JSON-RPC connections") + "\n" + " -rpcsslcertificatechainfile=<file.cert> " + _("Server certificate file (default: server.cert)") + "\n" + " -rpcsslprivatekeyfile=<file.pem> " + _("Server private key (default: server.pem)") + "\n" + " -rpcsslciphers=<ciphers> " + _("Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)") + "\n"; return strUsage; } /** Initialize Electra. * @pre Parameters should be parsed and config file should be read. */ bool AppInit2() { // ********************************************************* Step 1: setup #ifdef _MSC_VER // Turn off Microsoft heap dump noise _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE); _CrtSetReportFile(_CRT_WARN, CreateFileA("NUL", GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, 0)); #endif #if _MSC_VER >= 1400 // Disable confusing "helpful" text message on abort, Ctrl-C _set_abort_behavior(0, _WRITE_ABORT_MSG | _CALL_REPORTFAULT); #endif #ifdef WIN32 // Enable Data Execution Prevention (DEP) // Minimum supported OS versions: WinXP SP3, WinVista >= SP1, Win Server 2008 // A failure is non-critical and needs no further attention! #ifndef PROCESS_DEP_ENABLE // We define this here, because GCCs winbase.h limits this to _WIN32_WINNT >= 0x0601 (Windows 7), // which is not correct. Can be removed, when GCCs winbase.h is fixed! #define PROCESS_DEP_ENABLE 0x00000001 #endif typedef BOOL (WINAPI *PSETPROCDEPPOL)(DWORD); PSETPROCDEPPOL setProcDEPPol = (PSETPROCDEPPOL)GetProcAddress(GetModuleHandleA("Kernel32.dll"), "SetProcessDEPPolicy"); if (setProcDEPPol != NULL) setProcDEPPol(PROCESS_DEP_ENABLE); #endif #ifndef WIN32 umask(077); // Clean shutdown on SIGTERM struct sigaction sa; sa.sa_handler = HandleSIGTERM; sigemptyset(&sa.sa_mask); sa.sa_flags = 0; sigaction(SIGTERM, &sa, NULL); sigaction(SIGINT, &sa, NULL); // Reopen debug.log on SIGHUP struct sigaction sa_hup; sa_hup.sa_handler = HandleSIGHUP; sigemptyset(&sa_hup.sa_mask); sa_hup.sa_flags = 0; sigaction(SIGHUP, &sa_hup, NULL); #endif // ********************************************************* Step 2: parameter interactions nNodeLifespan = GetArg("-addrlifespan", 7); fUseFastIndex = GetBoolArg("-fastindex", true); nMinerSleep = GetArg("-minersleep", 500); CheckpointsMode = Checkpoints::STRICT; std::string strCpMode = GetArg("-cppolicy", "strict"); if(strCpMode == "strict") CheckpointsMode = Checkpoints::STRICT; if(strCpMode == "advisory") CheckpointsMode = Checkpoints::ADVISORY; if(strCpMode == "permissive") CheckpointsMode = Checkpoints::PERMISSIVE; nDerivationMethodIndex = 0; fTestNet = GetBoolArg("-testnet"); //fTestNet = true; if (fTestNet) { SoftSetBoolArg("-irc", true); } if (mapArgs.count("-bind")) { // when specifying an explicit binding address, you want to listen on it // even when -connect or -proxy is specified SoftSetBoolArg("-listen", true); } if (mapArgs.count("-connect") && mapMultiArgs["-connect"].size() > 0) { // when only connecting to trusted nodes, do not seed via DNS, or listen by default SoftSetBoolArg("-dnsseed", false); SoftSetBoolArg("-listen", false); } if (mapArgs.count("-proxy")) { // to protect privacy, do not listen by default if a proxy server is specified SoftSetBoolArg("-listen", false); } if (!GetBoolArg("-listen", true)) { // do not map ports or try to retrieve public IP when not listening (pointless) SoftSetBoolArg("-upnp", false); SoftSetBoolArg("-discover", false); } if (mapArgs.count("-externalip")) { // if an explicit public IP is specified, do not try to find others SoftSetBoolArg("-discover", false); } if (GetBoolArg("-salvagewallet")) { // Rewrite just private keys: rescan to find transactions SoftSetBoolArg("-rescan", true); } // ********************************************************* Step 3: parameter-to-internal-flags fDebug = GetBoolArg("-debug"); // -debug implies fDebug* if (fDebug) fDebugNet = true; else fDebugNet = GetBoolArg("-debugnet"); bitdb.SetDetach(GetBoolArg("-detachdb", false)); #if !defined(WIN32) && !defined(QT_GUI) fDaemon = GetBoolArg("-daemon"); #else fDaemon = false; #endif if (fDaemon) fServer = true; else fServer = GetBoolArg("-server"); /* force fServer when running without GUI */ #if !defined(QT_GUI) fServer = true; #endif fPrintToConsole = GetBoolArg("-printtoconsole"); fPrintToDebugger = GetBoolArg("-printtodebugger"); fLogTimestamps = GetBoolArg("-logtimestamps"); if (mapArgs.count("-timeout")) { int nNewTimeout = GetArg("-timeout", 5000); if (nNewTimeout > 0 && nNewTimeout < 600000) nConnectTimeout = nNewTimeout; } if (mapArgs.count("-paytxfee")) { if (!ParseMoney(mapArgs["-paytxfee"], nTransactionFee)) return InitError(strprintf(_("Invalid amount for -paytxfee=<amount>: '%s'"), mapArgs["-paytxfee"].c_str())); if (nTransactionFee > 0.25 * COIN) InitWarning(_("Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.")); } fConfChange = GetBoolArg("-confchange", false); fEnforceCanonical = GetBoolArg("-enforcecanonical", true); if (mapArgs.count("-mininput")) { if (!ParseMoney(mapArgs["-mininput"], nMinimumInputValue)) return InitError(strprintf(_("Invalid amount for -mininput=<amount>: '%s'"), mapArgs["-mininput"].c_str())); } // ********************************************************* Step 4: application initialization: dir lock, daemonize, pidfile, debug log std::string strDataDir = GetDataDir().string(); std::string strWalletFileName = GetArg("-wallet", "wallet.dat"); // strWalletFileName must be a plain filename without a directory if (strWalletFileName != boost::filesystem::basename(strWalletFileName) + boost::filesystem::extension(strWalletFileName)) return InitError(strprintf(_("Wallet %s resides outside data directory %s."), strWalletFileName.c_str(), strDataDir.c_str())); // Make sure only a single Electra process is using the data directory. boost::filesystem::path pathLockFile = GetDataDir() / ".lock"; FILE* file = fopen(pathLockFile.string().c_str(), "a"); // empty lock file; created if it doesn't exist. if (file) fclose(file); static boost::interprocess::file_lock lock(pathLockFile.string().c_str()); if (!lock.try_lock()) return InitError(strprintf(_("Cannot obtain a lock on data directory %s. Electra is probably already running."), strDataDir.c_str())); #if !defined(WIN32) && !defined(QT_GUI) if (fDaemon) { // Daemonize pid_t pid = fork(); if (pid < 0) { fprintf(stderr, "Error: fork() returned %d errno %d\n", pid, errno); return false; } if (pid > 0) { CreatePidFile(GetPidFile(), pid); return true; } pid_t sid = setsid(); if (sid < 0) fprintf(stderr, "Error: setsid() returned %d errno %d\n", sid, errno); } #endif if (GetBoolArg("-shrinkdebugfile", !fDebug)) ShrinkDebugFile(); printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"); printf("Electra version %s (%s)\n", FormatFullVersion().c_str(), CLIENT_DATE.c_str()); printf("Using OpenSSL version %s\n", SSLeay_version(SSLEAY_VERSION)); if (!fLogTimestamps) printf("Startup time: %s\n", DateTimeStrFormat("%x %H:%M:%S", GetTime()).c_str()); printf("Default data directory %s\n", GetDefaultDataDir().string().c_str()); printf("Used data directory %s\n", strDataDir.c_str()); std::ostringstream strErrors; if (fDaemon) fprintf(stdout, "Electra server starting\n"); int64_t nStart; // ********************************************************* Step 5: verify database integrity uiInterface.InitMessage(_("Verifying database integrity...")); if (!bitdb.Open(GetDataDir())) { string msg = strprintf(_("Error initializing database environment %s!" " To recover, BACKUP THAT DIRECTORY, then remove" " everything from it except for wallet.dat."), strDataDir.c_str()); return InitError(msg); } if (GetBoolArg("-salvagewallet")) { // Recover readable keypairs: if (!CWalletDB::Recover(bitdb, strWalletFileName, true)) return false; } if (filesystem::exists(GetDataDir() / strWalletFileName)) { CDBEnv::VerifyResult r = bitdb.Verify(strWalletFileName, CWalletDB::Recover); if (r == CDBEnv::RECOVER_OK) { string msg = strprintf(_("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."), strDataDir.c_str()); uiInterface.ThreadSafeMessageBox(msg, _("Electra"), CClientUIInterface::OK | CClientUIInterface::ICON_EXCLAMATION | CClientUIInterface::MODAL); } if (r == CDBEnv::RECOVER_FAIL) return InitError(_("wallet.dat corrupt, salvage failed")); } // ********************************************************* Step 6: network initialization int nSocksVersion = GetArg("-socks", 5); if (nSocksVersion != 4 && nSocksVersion != 5) return InitError(strprintf(_("Unknown -socks proxy version requested: %i"), nSocksVersion)); if (mapArgs.count("-onlynet")) { std::set<enum Network> nets; BOOST_FOREACH(std::string snet, mapMultiArgs["-onlynet"]) { enum Network net = ParseNetwork(snet); if (net == NET_UNROUTABLE) return InitError(strprintf(_("Unknown network specified in -onlynet: '%s'"), snet.c_str())); nets.insert(net); } for (int n = 0; n < NET_MAX; n++) { enum Network net = (enum Network)n; if (!nets.count(net)) SetLimited(net); } } #if defined(USE_IPV6) #if ! USE_IPV6 else SetLimited(NET_IPV6); #endif #endif CService addrProxy; bool fProxy = false; if (mapArgs.count("-proxy")) { addrProxy = CService(mapArgs["-proxy"], 9050); if (!addrProxy.IsValid()) return InitError(strprintf(_("Invalid -proxy address: '%s'"), mapArgs["-proxy"].c_str())); if (!IsLimited(NET_IPV4)) SetProxy(NET_IPV4, addrProxy, nSocksVersion); if (nSocksVersion > 4) { #ifdef USE_IPV6 if (!IsLimited(NET_IPV6)) SetProxy(NET_IPV6, addrProxy, nSocksVersion); #endif SetNameProxy(addrProxy, nSocksVersion); } fProxy = true; } // -tor can override normal proxy, -notor disables tor entirely if (!(mapArgs.count("-tor") && mapArgs["-tor"] == "0") && (fProxy || mapArgs.count("-tor"))) { CService addrOnion; if (!mapArgs.count("-tor")) addrOnion = addrProxy; else addrOnion = CService(mapArgs["-tor"], 9050); if (!addrOnion.IsValid()) return InitError(strprintf(_("Invalid -tor address: '%s'"), mapArgs["-tor"].c_str())); SetProxy(NET_TOR, addrOnion, 5); SetReachable(NET_TOR); } // see Step 2: parameter interactions for more information about these fNoListen = !GetBoolArg("-listen", true); fDiscover = GetBoolArg("-discover", true); fNameLookup = GetBoolArg("-dns", true); #ifdef USE_UPNP fUseUPnP = GetBoolArg("-upnp", USE_UPNP); #endif bool fBound = false; if (!fNoListen) { std::string strError; if (mapArgs.count("-bind")) { BOOST_FOREACH(std::string strBind, mapMultiArgs["-bind"]) { CService addrBind; if (!Lookup(strBind.c_str(), addrBind, GetListenPort(), false)) return InitError(strprintf(_("Cannot resolve -bind address: '%s'"), strBind.c_str())); fBound |= Bind(addrBind); } } else { struct in_addr inaddr_any; inaddr_any.s_addr = INADDR_ANY; #ifdef USE_IPV6 if (!IsLimited(NET_IPV6)) fBound |= Bind(CService(in6addr_any, GetListenPort()), false); #endif if (!IsLimited(NET_IPV4)) fBound |= Bind(CService(inaddr_any, GetListenPort()), !fBound); } if (!fBound) return InitError(_("Failed to listen on any port. Use -listen=0 if you want this.")); } if (mapArgs.count("-externalip")) { BOOST_FOREACH(string strAddr, mapMultiArgs["-externalip"]) { CService addrLocal(strAddr, GetListenPort(), fNameLookup); if (!addrLocal.IsValid()) return InitError(strprintf(_("Cannot resolve -externalip address: '%s'"), strAddr.c_str())); AddLocal(CService(strAddr, GetListenPort(), fNameLookup), LOCAL_MANUAL); } } if (mapArgs.count("-reservebalance")) // Electra: reserve balance amount { if (!ParseMoney(mapArgs["-reservebalance"], nReserveBalance)) { InitError(_("Invalid amount for -reservebalance=<amount>")); return false; } } if (mapArgs.count("-checkpointkey")) // Electra: checkpoint master priv key { if (!Checkpoints::SetCheckpointPrivKey(GetArg("-checkpointkey", ""))) InitError(_("Unable to sign checkpoint, wrong checkpointkey?\n")); } BOOST_FOREACH(string strDest, mapMultiArgs["-seednode"]) AddOneShot(strDest); // ********************************************************* Step 7: load blockchain if (!bitdb.Open(GetDataDir())) { string msg = strprintf(_("Error initializing database environment %s!" " To recover, BACKUP THAT DIRECTORY, then remove" " everything from it except for wallet.dat."), strDataDir.c_str()); return InitError(msg); } if (GetBoolArg("-loadblockindextest")) { CTxDB txdb("r"); txdb.LoadBlockIndex(); PrintBlockTree(); return false; } uiInterface.InitMessage(_("Loading block index...")); printf("Loading block index...\n"); nStart = GetTimeMillis(); if (!LoadBlockIndex()) return InitError(_("Error loading blkindex.dat")); // as LoadBlockIndex can take several minutes, it's possible the user // requested to kill Electra-qt during the last operation. If so, exit. // As the program has not fully started yet, Shutdown() is possibly overkill. if (fRequestShutdown) { printf("Shutdown requested. Exiting.\n"); return false; } printf(" block index %15"PRId64"ms\n", GetTimeMillis() - nStart); if (GetBoolArg("-printblockindex") || GetBoolArg("-printblocktree")) { PrintBlockTree(); return false; } if (mapArgs.count("-printblock")) { string strMatch = mapArgs["-printblock"]; int nFound = 0; for (map<uint256, CBlockIndex*>::iterator mi = mapBlockIndex.begin(); mi != mapBlockIndex.end(); ++mi) { uint256 hash = (*mi).first; if (strncmp(hash.ToString().c_str(), strMatch.c_str(), strMatch.size()) == 0) { CBlockIndex* pindex = (*mi).second; CBlock block; block.ReadFromDisk(pindex); block.BuildMerkleTree(); block.print(); printf("\n"); nFound++; } } if (nFound == 0) printf("No blocks matching %s were found\n", strMatch.c_str()); return false; } // ********************************************************* Testing Zerocoin if (GetBoolArg("-zerotest", false)) { printf("\n=== ZeroCoin tests start ===\n"); Test_RunAllTests(); printf("=== ZeroCoin tests end ===\n\n"); } // ********************************************************* Step 8: load wallet uiInterface.InitMessage(_("Loading wallet...")); printf("Loading wallet...\n"); nStart = GetTimeMillis(); bool fFirstRun = true; pwalletMain = new CWallet(strWalletFileName); DBErrors nLoadWalletRet = pwalletMain->LoadWallet(fFirstRun); if (nLoadWalletRet != DB_LOAD_OK) { if (nLoadWalletRet == DB_CORRUPT) strErrors << _("Error loading wallet.dat: Wallet corrupted") << "\n"; else if (nLoadWalletRet == DB_NONCRITICAL_ERROR) { string msg(_("Warning: error reading wallet.dat! All keys read correctly, but transaction data" " or address book entries might be missing or incorrect.")); uiInterface.ThreadSafeMessageBox(msg, _("Electra"), CClientUIInterface::OK | CClientUIInterface::ICON_EXCLAMATION | CClientUIInterface::MODAL); } else if (nLoadWalletRet == DB_TOO_NEW) strErrors << _("Error loading wallet.dat: Wallet requires newer version of Electra") << "\n"; else if (nLoadWalletRet == DB_NEED_REWRITE) { strErrors << _("Wallet needed to be rewritten: restart Electra to complete") << "\n"; printf("%s", strErrors.str().c_str()); return InitError(strErrors.str()); } else strErrors << _("Error loading wallet.dat") << "\n"; } if (GetBoolArg("-upgradewallet", fFirstRun)) { int nMaxVersion = GetArg("-upgradewallet", 0); if (nMaxVersion == 0) // the -upgradewallet without argument case { printf("Performing wallet upgrade to %i\n", FEATURE_LATEST); nMaxVersion = CLIENT_VERSION; pwalletMain->SetMinVersion(FEATURE_LATEST); // permanently upgrade the wallet immediately } else printf("Allowing wallet upgrade up to %i\n", nMaxVersion); if (nMaxVersion < pwalletMain->GetVersion()) strErrors << _("Cannot downgrade wallet") << "\n"; pwalletMain->SetMaxVersion(nMaxVersion); } if (fFirstRun) { // Create new keyUser and set as default key RandAddSeedPerfmon(); CPubKey newDefaultKey; if (!pwalletMain->GetKeyFromPool(newDefaultKey, false)) strErrors << _("Cannot initialize keypool") << "\n"; pwalletMain->SetDefaultKey(newDefaultKey); if (!pwalletMain->SetAddressBookName(pwalletMain->vchDefaultKey.GetID(), "")) strErrors << _("Cannot write default address") << "\n"; } printf("%s", strErrors.str().c_str()); printf(" wallet %15"PRId64"ms\n", GetTimeMillis() - nStart); RegisterWallet(pwalletMain); CBlockIndex *pindexRescan = pindexBest; if (GetBoolArg("-rescan")) pindexRescan = pindexGenesisBlock; else { CWalletDB walletdb(strWalletFileName); CBlockLocator locator; if (walletdb.ReadBestBlock(locator)) pindexRescan = locator.GetBlockIndex(); } if (pindexBest != pindexRescan && pindexBest && pindexRescan && pindexBest->nHeight > pindexRescan->nHeight) { uiInterface.InitMessage(_("Rescanning...")); printf("Rescanning last %i blocks (from block %i)...\n", pindexBest->nHeight - pindexRescan->nHeight, pindexRescan->nHeight); nStart = GetTimeMillis(); pwalletMain->ScanForWalletTransactions(pindexRescan, true); printf(" rescan %15"PRId64"ms\n", GetTimeMillis() - nStart); } // ********************************************************* Step 9: import blocks if (mapArgs.count("-loadblock")) { uiInterface.InitMessage(_("Importing blockchain data file.")); BOOST_FOREACH(string strFile, mapMultiArgs["-loadblock"]) { FILE *file = fopen(strFile.c_str(), "rb"); if (file) LoadExternalBlockFile(file); } exit(0); } filesystem::path pathBootstrap = GetDataDir() / "bootstrap.dat"; if (filesystem::exists(pathBootstrap)) { uiInterface.InitMessage(_("Importing bootstrap blockchain data file.")); FILE *file = fopen(pathBootstrap.string().c_str(), "rb"); if (file) { filesystem::path pathBootstrapOld = GetDataDir() / "bootstrap.dat.old"; LoadExternalBlockFile(file); RenameOver(pathBootstrap, pathBootstrapOld); } } // ********************************************************* Step 10: load peers uiInterface.InitMessage(_("Loading addresses...")); printf("Loading addresses...\n"); nStart = GetTimeMillis(); { CAddrDB adb; if (!adb.Read(addrman)) printf("Invalid or missing peers.dat; recreating\n"); } printf("Loaded %i addresses from peers.dat %"PRId64"ms\n", addrman.size(), GetTimeMillis() - nStart); // ********************************************************* Step 11: start node if (!CheckDiskSpace()) return false; RandAddSeedPerfmon(); //// debug print printf("mapBlockIndex.size() = %"PRIszu"\n", mapBlockIndex.size()); printf("nBestHeight = %d\n", nBestHeight); printf("setKeyPool.size() = %"PRIszu"\n", pwalletMain->setKeyPool.size()); printf("mapWallet.size() = %"PRIszu"\n", pwalletMain->mapWallet.size()); printf("mapAddressBook.size() = %"PRIszu"\n", pwalletMain->mapAddressBook.size()); if (!NewThread(StartNode, NULL)) InitError(_("Error: could not start node")); if (fServer) NewThread(ThreadRPCServer, NULL); // ********************************************************* Step 12: finished uiInterface.InitMessage(_("Done loading")); printf("Done loading\n"); if (!strErrors.str().empty()) return InitError(strErrors.str()); // Add wallet transactions that aren't already in a block to mapTransactions pwalletMain->ReacceptWalletTransactions(); #if !defined(QT_GUI) // Loop until process is exit()ed from shutdown() function, // called from ThreadRPCServer thread when a "stop" command is received. while (1) MilliSleep(5000); #endif return true; }
{ "content_hash": "e126f58dce2f8b67d97115b0a7dfc55c", "timestamp": "", "source": "github", "line_count": 929, "max_line_length": 156, "avg_line_length": 38.63832077502691, "alnum_prop": 0.5678785346148488, "repo_name": "electra01/Electra", "id": "e8d467c3e6944fccab74dbc3b3a561f1e74c2f2a", "size": "35895", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/init.cpp", "mode": "33188", "license": "mit", "language": [ { "name": "Assembly", "bytes": "51312" }, { "name": "C", "bytes": "428581" }, { "name": "C++", "bytes": "2617622" }, { "name": "CSS", "bytes": "1127" }, { "name": "HTML", "bytes": "50615" }, { "name": "Makefile", "bytes": "12339" }, { "name": "Objective-C", "bytes": "1108" }, { "name": "Objective-C++", "bytes": "7225" }, { "name": "Python", "bytes": "35268" }, { "name": "QMake", "bytes": "15875" }, { "name": "Shell", "bytes": "8197" } ], "symlink_target": "" }
using NBitcoin; using NBitcoin.Secp256k1; using WalletWasabi.Crypto.Groups; namespace WalletWasabi.WabiSabi.Crypto { public class IssuanceValidationData { internal IssuanceValidationData(Money amount, Scalar r, GroupElement ma) { Amount = amount; Randomness = r; Ma = ma; } /// <summary> /// Amount committed in the pedersen commitment (<see cref="Ma">Ma</see>). /// </summary> public Money Amount { get; } /// <summary> /// Randomness used as blinding factor in the pedersen commitment (<see cref="Ma">Ma</see>). /// </summary> public Scalar Randomness { get; } /// <summary> /// Pedersen commitment to the amount used to request the credential. /// </summary> public GroupElement Ma { get; } } }
{ "content_hash": "213d014ec0a4b00b01c69d66f3191314", "timestamp": "", "source": "github", "line_count": 31, "max_line_length": 94, "avg_line_length": 24, "alnum_prop": 0.678763440860215, "repo_name": "nopara73/HiddenWallet", "id": "30a16ff17375355c7c8e9ac0a4c62dcc59424a0f", "size": "744", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "WalletWasabi/WabiSabi/Crypto/IssuanceValidationData.cs", "mode": "33188", "license": "mit", "language": [ { "name": "C#", "bytes": "377356" }, { "name": "CSS", "bytes": "5519" }, { "name": "HTML", "bytes": "25564" }, { "name": "JavaScript", "bytes": "11864" }, { "name": "TypeScript", "bytes": "60661" } ], "symlink_target": "" }
#include <linux/module.h> #include <linux/input.h> #include <linux/serio.h> #include <linux/interrupt.h> #include <linux/platform_device.h> #include <linux/io.h> #include <linux/slab.h> #include <linux/of.h> #define DRV_NAME "altera_ps2" struct ps2if { struct serio *io; struct resource *iomem_res; void __iomem *base; unsigned irq; }; /* * Read all bytes waiting in the PS2 port. There should be * at the most one, but we loop for safety. */ static irqreturn_t altera_ps2_rxint(int irq, void *dev_id) { struct ps2if *ps2if = dev_id; unsigned int status; int handled = IRQ_NONE; while ((status = readl(ps2if->base)) & 0xffff0000) { serio_interrupt(ps2if->io, status & 0xff, 0); handled = IRQ_HANDLED; } return handled; } /* * Write a byte to the PS2 port. */ static int altera_ps2_write(struct serio *io, unsigned char val) { struct ps2if *ps2if = io->port_data; writel(val, ps2if->base); return 0; } static int altera_ps2_open(struct serio *io) { struct ps2if *ps2if = io->port_data; /* clear fifo */ while (readl(ps2if->base) & 0xffff0000) /* empty */; writel(1, ps2if->base + 4); /* enable rx irq */ return 0; } static void altera_ps2_close(struct serio *io) { struct ps2if *ps2if = io->port_data; writel(0, ps2if->base); /* disable rx irq */ } /* * Add one device to this driver. */ static int altera_ps2_probe(struct platform_device *pdev) { struct ps2if *ps2if; struct serio *serio; int error, irq; ps2if = kzalloc(sizeof(struct ps2if), GFP_KERNEL); serio = kzalloc(sizeof(struct serio), GFP_KERNEL); if (!ps2if || !serio) { error = -ENOMEM; goto err_free_mem; } serio->id.type = SERIO_8042; serio->write = altera_ps2_write; serio->open = altera_ps2_open; serio->close = altera_ps2_close; strlcpy(serio->name, dev_name(&pdev->dev), sizeof(serio->name)); strlcpy(serio->phys, dev_name(&pdev->dev), sizeof(serio->phys)); serio->port_data = ps2if; serio->dev.parent = &pdev->dev; ps2if->io = serio; ps2if->iomem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); if (ps2if->iomem_res == NULL) { error = -ENOENT; goto err_free_mem; } irq = platform_get_irq(pdev, 0); if (irq < 0) { error = -ENXIO; goto err_free_mem; } ps2if->irq = irq; if (!request_mem_region(ps2if->iomem_res->start, resource_size(ps2if->iomem_res), pdev->name)) { error = -EBUSY; goto err_free_mem; } ps2if->base = ioremap(ps2if->iomem_res->start, resource_size(ps2if->iomem_res)); if (!ps2if->base) { error = -ENOMEM; goto err_free_res; } error = request_irq(ps2if->irq, altera_ps2_rxint, 0, pdev->name, ps2if); if (error) { dev_err(&pdev->dev, "could not allocate IRQ %d: %d\n", ps2if->irq, error); goto err_unmap; } dev_info(&pdev->dev, "base %p, irq %d\n", ps2if->base, ps2if->irq); serio_register_port(ps2if->io); platform_set_drvdata(pdev, ps2if); return 0; err_unmap: iounmap(ps2if->base); err_free_res: release_mem_region(ps2if->iomem_res->start, resource_size(ps2if->iomem_res)); err_free_mem: kfree(ps2if); kfree(serio); return error; } /* * Remove one device from this driver. */ static int altera_ps2_remove(struct platform_device *pdev) { struct ps2if *ps2if = platform_get_drvdata(pdev); serio_unregister_port(ps2if->io); free_irq(ps2if->irq, ps2if); iounmap(ps2if->base); release_mem_region(ps2if->iomem_res->start, resource_size(ps2if->iomem_res)); kfree(ps2if); return 0; } #ifdef CONFIG_OF static const struct of_device_id altera_ps2_match[] = { { .compatible = "ALTR,ps2-1.0", }, { .compatible = "altr,ps2-1.0", }, {}, }; MODULE_DEVICE_TABLE(of, altera_ps2_match); #endif /* CONFIG_OF */ /* * Our device driver structure */ static struct platform_driver altera_ps2_driver = { .probe = altera_ps2_probe, .remove = altera_ps2_remove, .driver = { .name = DRV_NAME, .owner = THIS_MODULE, .of_match_table = of_match_ptr(altera_ps2_match), }, }; module_platform_driver(altera_ps2_driver); MODULE_DESCRIPTION("Altera University Program PS2 controller driver"); MODULE_AUTHOR("Thomas Chou <thomas@wytron.com.tw>"); MODULE_LICENSE("GPL"); MODULE_ALIAS("platform:" DRV_NAME);
{ "content_hash": "e009bf22f7fb27d6f1cf3542980d381d", "timestamp": "", "source": "github", "line_count": 190, "max_line_length": 73, "avg_line_length": 21.857894736842105, "alnum_prop": 0.6648206116060679, "repo_name": "lokeshjindal15/pd-gem5", "id": "cce69d6b95871107e9540363a15256f360ef8723", "size": "4533", "binary": false, "copies": "461", "ref": "refs/heads/master", "path": "kernel_dvfs/linux-linaro-tracking-gem5/drivers/input/serio/altera_ps2.c", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "Assembly", "bytes": "10138943" }, { "name": "Awk", "bytes": "19269" }, { "name": "C", "bytes": "469972635" }, { "name": "C++", "bytes": "18163034" }, { "name": "CMake", "bytes": "2202" }, { "name": "Clojure", "bytes": "333" }, { "name": "Emacs Lisp", "bytes": "1969" }, { "name": "Groff", "bytes": "63956" }, { "name": "HTML", "bytes": "136898" }, { "name": "Hack", "bytes": "2489" }, { "name": "Java", "bytes": "3096" }, { "name": "Jupyter Notebook", "bytes": "1231954" }, { "name": "Lex", "bytes": "59257" }, { "name": "M4", "bytes": "52982" }, { "name": "Makefile", "bytes": "1453704" }, { "name": "Objective-C", "bytes": "1315749" }, { "name": "Perl", "bytes": "716374" }, { "name": "Perl6", "bytes": "3727" }, { "name": "Protocol Buffer", "bytes": "3246" }, { "name": "Python", "bytes": "4102365" }, { "name": "Scilab", "bytes": "21433" }, { "name": "Shell", "bytes": "512873" }, { "name": "SourcePawn", "bytes": "4687" }, { "name": "UnrealScript", "bytes": "10556" }, { "name": "Visual Basic", "bytes": "2884" }, { "name": "XS", "bytes": "1239" }, { "name": "Yacc", "bytes": "121715" } ], "symlink_target": "" }
namespace sheaf { // ============================================================================= // IMPLICIT_ENTRY_MAP FACET // ============================================================================= // PUBLIC MEMBER FUNCTIONS template <typename E, typename I> implicit_entry_map<E, I>:: implicit_entry_map() : _ct(0), _begin(invalid_pod_index()), _end(invalid_pod_index()) { // Preconditions: // Body: // Nothing to do. // Postconditions: // Exit: return; }; template <typename E, typename I> implicit_entry_map<E, I>:: ~implicit_entry_map() { // Preconditions: // Body: // Delete the explicit value reference counted pointers. typename explicit_value_map_type::iterator lexplicit_value_itr = _explicit_value_map.begin(); while(lexplicit_value_itr != _explicit_value_map.end()) { // Delete reference counted pointer. if(lexplicit_value_itr->second != 0) { delete lexplicit_value_itr->second; } // Move to the next entry. lexplicit_value_itr++; } // Delete the implicit interval reference counted pointers. typename interval_map_type::iterator linterval_itr = _interval_map.begin(); while(linterval_itr != _interval_map.end()) { // Delete reference counted pointer. if(linterval_itr->second != 0) { delete linterval_itr->second; } // Move to the next entry. linterval_itr++; } // Postconditions: // Exit: return; }; template <typename E, typename I> bool implicit_entry_map<E, I>:: contains_explicit_entry(pod_type xid) const { // Preconditions: // Body: typename explicit_value_map_type::const_iterator litr = _explicit_value_map.find(xid); bool result = (litr != _explicit_value_map.end()); // Postconditions: // Exit: return result; }; template <typename E, typename I> bool implicit_entry_map<E, I>:: contains_implicit_entry(pod_type xid) const { // Preconditions: // Body: typename interval_map_type::const_iterator litr = _interval_map.upper_bound(xid); bool result = (litr != _interval_map.end()) && (litr->second != 0); // Postconditions: // Exit: return result; }; template <typename E, typename I> bool implicit_entry_map<E, I>:: contains_entry(pod_type xid) const { // Preconditions: // Body: bool result = (contains_explicit_entry(xid) || contains_implicit_entry(xid)); // Postconditions: // Exit: return result; }; template <typename E, typename I> E& implicit_entry_map<E, I>:: value(pod_type xid) const { // Preconditions: require(contains_entry(xid)); // Body: E* result; const explicit_value_type& lexplicit_value = explicit_value(xid); if(!lexplicit_value) { // No explicit value found, get the value from the implicit interval. result = &implicit_interval(xid)->value(xid); } else { // Explicit value found, get the value from the reference // counted pointer. result = &*lexplicit_value; } // Postconditions: // Exit: return *result; }; template <typename E, typename I> E& implicit_entry_map<E, I>:: operator [] (pod_type xid) const { // Preconditions: require(contains_entry(xid)); // Body: E& result = value(xid); // Postconditions: // Exit: return result; }; template <typename E, typename I> void implicit_entry_map<E, I>:: insert_explicit_entry(pod_type xid, E& xvalue) { // Preconditions: require(!contains_explicit_entry(xid)); // Body: define_old_variable(size_type old_ct = ct()); _explicit_value_map[xid] = new explicit_value_type(&xvalue); // Update count. _ct++; // Update extrema. update_extrema_for_insert(xid, xid+1); // Postconditions: ensure(contains_explicit_entry(xid)); ensure(ct() == old_ct+1); ensure(begin() <= xid); ensure(end() >= xid+1); // Exit: return; }; template <typename E, typename I> void implicit_entry_map<E, I>:: insert_implicit_interval(I& xinterval) { // Preconditions: /// @todo Make precondition executable. require(unexecutable("interval is empty")); // Body: define_old_variable(size_type old_ct = ct()); pod_type lbegin = xinterval.begin(); pod_type lend = xinterval.end(); _interval_map[lend] = new interval_type(&xinterval); if(_interval_map.find(lbegin) == _interval_map.end()) { // The beginning of the interval is not the end of some other // interval. _interval_map[lbegin] = 0; } // Update count. _ct += xinterval.ct(); // Update extrema. update_extrema_for_insert(lbegin, lend); // Postconditions: /// @todo Make postcondition executable. ensure(unexecutable("interval is full")); ensure(ct() == old_ct + xinterval.ct()); ensure(begin() <= xinterval.begin()); ensure(end() >= xinterval.end()); // Exit: return; }; template <typename E, typename I> void implicit_entry_map<E, I>:: remove_explicit_entry(pod_type xid) { // Preconditions: require(contains_explicit_entry(xid)); // Body: define_old_variable(size_type old_ct = ct()); define_old_variable(pod_type old_begin = begin()); define_old_variable(pod_type old_end = end()); explicit_value_type* lrc_ptr = _explicit_value_map.find(xid)->second; // Erase from data structure. _explicit_value_map.erase(xid); // Delete the reference counted pointer. delete lrc_ptr; // Update the count. _ct--; // Update the extrema. update_extrema_for_remove(xid, xid+1); // Postconditions: ensure(!contains_explicit_entry(xid)); ensure(ct() == old_ct - 1); ensure((ct() == 0) ? !is_valid(begin()) : true); ensure((ct() == 0) ? !is_valid(end()) : true); ensure(((ct() > 0) && (xid == old_begin)) ? begin() > xid : true); ensure(((ct() > 0) && ((xid + 1) == old_end)) ? end() <= xid : true); // Exit: return; }; template <typename E, typename I> void implicit_entry_map<E, I>:: remove_implicit_interval(pod_type xid) { // Preconditions: require(contains_implicit_entry(xid)); // Body: typename interval_map_type::iterator litr = _interval_map.upper_bound(xid); pod_type lend = litr->first; typename interval_map_type::iterator lprevious = litr; lprevious--; pod_type lbegin = lprevious->first; typename interval_map_type::iterator lnext = litr; lnext++; if(lprevious->second == 0) { if((lnext == _interval_map.end()) || (lnext->second == 0)) { // Remove previous so that no void value is at the end or // back-to-back void values. _interval_map.erase(litr); if(litr->second != 0) delete litr->second; _interval_map.erase(lprevious); } else { // Adjust the void value to be the beginning of the next. _interval_map[lend] = 0; _interval_map.erase(lprevious); } } else { if((lnext == _interval_map.end()) || (lnext->second == 0)) { // The void value is in the correct spot, erase current entry. _interval_map.erase(litr); if(litr->second != 0) delete litr->second; } else { // A void value needs inserted at the current entry. _interval_map[lend] = 0; } } // Update the count. _ct -= (lend-lbegin); // Update the extrema. update_extrema_for_remove(lbegin, lend); // Postconditions: ensure(!contains_implicit_entry(xid)); /// @todo Implement a set of functions which allow the postconditions /// for the count and extrema to be properly represented. /// Ex: interval_ct(xid), interval_begin(xid), interval_end(xid). // Exit: return; }; template <typename E, typename I> void implicit_entry_map<E, I>:: remove_entry(pod_type xid, bool xremove_interval) { // Preconditions: // Body: /// @issue This can be more efficient. The calls to contains_* can /// be replaced with access to the data structures which can /// be used for the removal. if(contains_explicit_entry(xid)) { // Remove the explicit entry. remove_explicit_entry(xid); } if(contains_implicit_entry(xid)) { // Remove the implicit entry. if(xremove_interval) { // Remove the entire implicit interval. remove_implicit_interval(xid); } else { // Remove the implicit entry. typename interval_map_type::iterator litr = _interval_map.upper_bound(xid); pod_type lend = litr->first; typename interval_map_type::iterator lprevious = litr; lprevious--; pod_type lbegin = lprevious->first; interval_type* linterval = litr->second; if(lbegin == lend-1) { // Removing the only entry in the interval; remove the entire interval. /// @issue This could be done more efficiently since we already /// found the previous and next pointers (see the implementation /// of remove_implicit_interval). remove_implicit_interval(xid); } else if(xid == lbegin) { // Removing the first entry. if(lprevious->second == 0) { // The previous interval is void, remove it. _interval_map.erase(lprevious); } // Add a void interval. _interval_map[xid+1] = 0; // Update the count. _ct--; // Update the extrema; the beginning extrema may have increased by one. if(xid == _begin) _begin++; } else if(xid == lend-1) { // Removing the last entry. typename interval_map_type::iterator lnext = litr; lnext++; // Adjust the current interval. _interval_map.erase(litr); _interval_map[xid] = linterval; if((lnext != _interval_map.end()) && (lnext->second != 0)) { // The next interval is not void, add void interval. _interval_map[lend] = 0; } // Update the count. _ct--; // Update the extrema; the ending extrema may have decreased by one. if(xid == _end-1) _end--; } else { // Removing an entry in the middle of the interval. _interval_map[xid] = new interval_type(*linterval); _interval_map[xid+1] = 0; // Update the count. _ct--; // No need to update the extrema. } } } // Postconditions: ensure(!contains_entry(xid)); // Exit: return; }; template <typename E, typename I> implicit_entry_map_iterator<E, I>* implicit_entry_map<E, I>:: iterator() const { // Preconditions: // Body: iterator_type* result = new iterator_type(*this); // Postconditions: ensure(result != 0); // Exit: return result; }; template <typename E, typename I> pod_index_type implicit_entry_map<E, I>:: begin() const { return _begin; }; template <typename E, typename I> pod_index_type implicit_entry_map<E, I>:: end() const { return _end; }; template <typename E, typename I> size_type implicit_entry_map<E, I>:: ct() const { return _ct; }; // PROTECTED MEMBER FUNCTIONS template <typename E, typename I> const typename implicit_entry_map<E, I>::explicit_value_type& implicit_entry_map<E, I>:: null_explicit_value() { static const explicit_value_type result; return result; } template <typename E, typename I> const typename implicit_entry_map<E, I>::interval_type& implicit_entry_map<E, I>:: null_interval() { static const interval_type result; return result; } template <typename E, typename I> const typename implicit_entry_map<E, I>::explicit_value_type& implicit_entry_map<E, I>:: explicit_value(pod_type xid) const { // Preconditions: // Body: typename explicit_value_map_type::const_iterator litr = _explicit_value_map.find(xid); const explicit_value_type& result = ((litr != _explicit_value_map.end()) ? *litr->second : null_explicit_value()); // Postconditions: // Exit: return result; }; template <typename E, typename I> const typename implicit_entry_map<E, I>::interval_type& implicit_entry_map<E, I>:: implicit_interval(pod_type xid) const { // Preconditions: // Body: typename interval_map_type::const_iterator litr = _interval_map.upper_bound(xid); const interval_type& result = (((litr != _interval_map.end()) && (litr->second != 0)) ? *litr->second : null_interval()); // Postconditions: // Exit: return result; }; // PRIVATE MEMBER FUNCTIONS template <typename E, typename I> void implicit_entry_map<E, I>:: update_extrema_for_insert(pod_type xbegin, pod_type xend) { // Preconditions: // Body: // Update the begin. if(!is_valid(_begin) || (xbegin < _begin)) { _begin = xbegin; } // Update the end. if(!is_valid(_end) || (xend > _end)) { _end = xend; } // Postconditions: ensure(begin() <= xbegin); ensure(end() >= xend); // Exit: return; }; template <typename E, typename I> void implicit_entry_map<E, I>:: update_extrema_for_remove(pod_type xbegin, pod_type xend) { // Preconditions: require(unexecutable("containers have been updated.")); require(unexecutable("ct() has been updated.")); // Body: define_old_variable(pod_type old_begin = begin()); define_old_variable(pod_type old_end = end()); if(_ct == 0) { // No more entries, invalid the extrema. _begin = invalid_pod_index(); _end = invalid_pod_index(); } else if(xbegin == _begin) { // The id is the beginning, find new beginning. for(pod_type i = _begin; i < _end; i++) { if(contains_entry(i)) { _begin = i; break; } } } else if(xend == _end) { // The id is the end, find new end. for(pod_type i = xend - 1; i >= _begin; i--) { if(contains_entry(i)) { _end = i+1; break; } } } // Postconditions: ensure((ct() == 0) ? !is_valid(begin()) : true); ensure((ct() == 0) ? !is_valid(end()) : true); ensure(((ct() > 0) && (xbegin == old_begin)) ? begin() > xbegin : true); ensure(((ct() > 0) && (xend == old_end)) ? end() < xend : true); // Exit: return; }; // ============================================================================= // IMPLICIT_ENTRY_MAP FACET // ============================================================================= // PUBLIC MEMBER FUNCTIONS template <typename E, typename I> bool implicit_entry_map<E, I>:: is_ancestor_of(const any* other) const { // Preconditions: require(other != 0); // Body: bool result = dynamic_cast< const implicit_entry_map<E, I>* >(other) != 0; // Postconditions: // Exit: return result; }; template <typename E, typename I> implicit_entry_map<E, I>* implicit_entry_map<E, I>:: clone() const { // Preconditions: // Body: implicit_entry_map<E, I>* result = new implicit_entry_map<E, I>(); // Postconditions: ensure(result != 0); ensure(is_same_type(result)); // Exit: return result; }; template <typename E, typename I> bool implicit_entry_map<E, I>:: invariant() const { bool result = true; if(invariant_check()) { // Must satisfy base class invariant invariance(any::invariant()); // Prevent recursive calls to invariant disable_invariant_check(); // Invariances for this class: ensure((ct() > 0) == is_valid(begin())); ensure((ct() > 0) == is_valid(end())); // Finished, turn invariant checking back on. enable_invariant_check(); } // Exit return result; }; // PROTECTED MEMBER FUNCTIONS // PRIVATE MEMBER FUNCTIONS // ============================================================================= // NON-MEMBER FUNCTIONS // ============================================================================= template <typename E, typename I> size_t deep_size(const implicit_entry_map<E, I>& xmap, bool xinclude_shallow) { // Preconditions: // Body: size_t result = xinclude_shallow ? sizeof(xmap) : 0; /// @issue Since the deletion will be handled by this map should /// the deep_size? /// @todo Implement deep_size for rc_ptr. // // Add contribution from member _explicit_value_map. // typedef no_deep_size_policy<typename implicit_entry_map<E, I>::explicit_value_map_type> explicit_policy_type; // result += deep_size<pod_index_type, E*, explicit_policy_type>(xmap._explicit_value_map, false); // // Add contribution from member _interval_map. // typedef no_deep_size_policy<typename implicit_entry_map<E, I>::interval_map_type> interval_policy_type; // result += deep_size<pod_index_type, I*, interval_policy_type>(xmap._interval_map, false); // Postconditions: ensure(result >= 0); // Exit: return result; }; } // namespace sheaf #endif // ifndef IMPLICIT_ENTRY_MAP_IMPL_H
{ "content_hash": "b824c964087f2fe61add7bd7a1c54989", "timestamp": "", "source": "github", "line_count": 873, "max_line_length": 114, "avg_line_length": 18.7709049255441, "alnum_prop": 0.6120095197412583, "repo_name": "LimitPointSystems/SheafSystem", "id": "6d4ca04ae89e0c279687d68c4ce4fe241849d8a8", "size": "17512", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "sheaves/support/implicit_entry_map.impl.h", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C", "bytes": "18787" }, { "name": "C#", "bytes": "3327" }, { "name": "C++", "bytes": "14596125" }, { "name": "CMake", "bytes": "523718" }, { "name": "CSS", "bytes": "21385" }, { "name": "HTML", "bytes": "231127" }, { "name": "Java", "bytes": "46572" }, { "name": "Python", "bytes": "121781" } ], "symlink_target": "" }
package play.db.evolutions; import java.util.Collection; import java.util.List; import java.util.Map; /** A simple evolutions reader that uses a map to store evolutions */ public class SimpleEvolutionsReader extends EvolutionsReader { private final Map<String, List<Evolution>> evolutions; public SimpleEvolutionsReader(Map<String, List<Evolution>> evolutions) { this.evolutions = evolutions; } @Override public Collection<Evolution> getEvolutions(String db) { return evolutions.get(db); } }
{ "content_hash": "3e9aabf8b18e2e251d8d116d32e60d00", "timestamp": "", "source": "github", "line_count": 21, "max_line_length": 74, "avg_line_length": 24.666666666666668, "alnum_prop": 0.7586872586872587, "repo_name": "playframework/playframework", "id": "0ad732e0a79303cfd6af0533339c32064c346844", "size": "672", "binary": false, "copies": "1", "ref": "refs/heads/main", "path": "persistence/play-jdbc-evolutions/src/main/java/play/db/evolutions/SimpleEvolutionsReader.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "86" }, { "name": "HTML", "bytes": "44899" }, { "name": "Java", "bytes": "1547751" }, { "name": "JavaScript", "bytes": "9846" }, { "name": "Less", "bytes": "1577" }, { "name": "Roff", "bytes": "6187" }, { "name": "Scala", "bytes": "3648741" } ], "symlink_target": "" }
<?php class Alat_model extends CI_Model { public function __construct() { // Call the CI_Model constructor $this->load->database(); } public function get_all_alat() { $query = $this->db->query('SELECT * FROM MASTER_ALAT WHERE STATUS = 1 ORDER BY ID_ALAT ASC'); return $query->result(); } public function get_last_id_alat() { $query = $this->db->query('SELECT MAX(ID_ALAT) ID_ALAT FROM MASTER_ALAT'); return $query->row(); } public function insert_alat($data) { $this->db->insert('MASTER_ALAT',$data,FALSE); } public function get_alat($data) { $this->db->from('MASTER_ALAT',FALSE); $this->db->where('ID_ALAT',$data,FALSE); $query = $this->db->get(); return $query->row(); } public function update_alat($id_alat,$data) { $this->db->where('id_alat',$id_alat,FALSE); $this->db->update('MASTER_ALAT',$data,NULL,FALSE); } public function delete_alat($id_alat,$data) { $this->db->where('id_alat',$id_alat,FALSE); $this->db->update('MASTER_ALAT',$data,NULL,FALSE); } }
{ "content_hash": "1ebb365930a5cd9c29693c401eef9e81", "timestamp": "", "source": "github", "line_count": 50, "max_line_length": 109, "avg_line_length": 28.86, "alnum_prop": 0.44975744975744975, "repo_name": "samsyir/ttl-excel-uploader", "id": "4385646420054969e0f619c8ceabadea34268c2f", "size": "1443", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "application/models/Alat_model.php", "mode": "33188", "license": "mit", "language": [ { "name": "ActionScript", "bytes": "16386" }, { "name": "ApacheConf", "bytes": "381" }, { "name": "CSS", "bytes": "675716" }, { "name": "HTML", "bytes": "5633" }, { "name": "JavaScript", "bytes": "2176658" }, { "name": "PHP", "bytes": "1985220" }, { "name": "Shell", "bytes": "1628" } ], "symlink_target": "" }
package info.ipeanut.googletrainingcoursedemos.scheduler; import android.app.AlarmManager; import android.app.PendingIntent; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.support.v4.content.WakefulBroadcastReceiver; import java.util.Calendar; /** * When the alarm fires, this WakefulBroadcastReceiver receives the broadcast Intent * and then starts the IntentService {@code SampleSchedulingService} to do some work. */ public class SampleAlarmReceiver extends WakefulBroadcastReceiver { // The app's AlarmManager, which provides access to the system alarm services. private AlarmManager alarmMgr; // The pending intent that is triggered when the alarm fires. private PendingIntent alarmIntent; @Override public void onReceive(Context context, Intent intent) { // BEGIN_INCLUDE(alarm_onreceive) /* * If your receiver intent includes extras that need to be passed along to the * service, use setComponent() to indicate that the service should handle the * receiver's intent. For example: * * ComponentName comp = new ComponentName(context.getPackageName(), * MyService.class.getName()); * * // This intent passed in this call will include the wake lock extra as well as * // the receiver intent contents. * startWakefulService(context, (intent.setComponent(comp))); * * In this example, we simply create a new intent to deliver to the service. * This intent holds an extra identifying the wake lock. */ Intent service = new Intent(context, SampleSchedulingService.class); // Start the service, keeping the device awake while it is launching. startWakefulService(context, service); // END_INCLUDE(alarm_onreceive) } // BEGIN_INCLUDE(set_alarm) /** * Sets a repeating alarm that runs once a day at approximately 8:30 a.m. When the * alarm fires, the app broadcasts an Intent to this WakefulBroadcastReceiver. * @param context */ public void setAlarm(Context context) { alarmMgr = (AlarmManager)context.getSystemService(Context.ALARM_SERVICE); Intent intent = new Intent(context, SampleAlarmReceiver.class); alarmIntent = PendingIntent.getBroadcast(context, 0, intent, 0); Calendar calendar = Calendar.getInstance(); calendar.setTimeInMillis(System.currentTimeMillis()); // Set the alarm's trigger time to 8:30 a.m. calendar.set(Calendar.HOUR_OF_DAY, 8); calendar.set(Calendar.MINUTE, 30); /* * If you don't have precise time requirements, use an inexact repeating alarm * the minimize the drain on the device battery. * * The call below specifies the alarm type, the trigger time, the interval at * which the alarm is fired, and the alarm's associated PendingIntent. * It uses the alarm type RTC_WAKEUP ("Real Time Clock" wake up), which wakes up * the device and triggers the alarm according to the time of the device's clock. * * Alternatively, you can use the alarm type ELAPSED_REALTIME_WAKEUP to trigger * an alarm based on how much time has elapsed since the device was booted. This * is the preferred choice if your alarm is based on elapsed time--for example, if * you simply want your alarm to fire every 60 minutes. You only need to use * RTC_WAKEUP if you want your alarm to fire at a particular date/time. Remember * that clock-based time may not translate well to other locales, and that your * app's behavior could be affected by the user changing the device's time setting. * * Here are some examples of ELAPSED_REALTIME_WAKEUP: * * // Wake up the device to fire a one-time alarm in one minute. * alarmMgr.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, * SystemClock.elapsedRealtime() + * 60*1000, alarmIntent); * * // Wake up the device to fire the alarm in 30 minutes, and every 30 minutes * // after that. * alarmMgr.setInexactRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP, * AlarmManager.INTERVAL_HALF_HOUR, * AlarmManager.INTERVAL_HALF_HOUR, alarmIntent); */ // Set the alarm to fire at approximately 8:30 a.m., according to the device's // clock, and to repeat once a day. alarmMgr.setInexactRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), AlarmManager.INTERVAL_DAY, alarmIntent); // Enable {@code SampleBootReceiver} to automatically restart the alarm when the // device is rebooted. ComponentName receiver = new ComponentName(context, SampleBootReceiver.class); PackageManager pm = context.getPackageManager(); pm.setComponentEnabledSetting(receiver, PackageManager.COMPONENT_ENABLED_STATE_ENABLED, PackageManager.DONT_KILL_APP); } // END_INCLUDE(set_alarm) /** * Cancels the alarm. * @param context */ // BEGIN_INCLUDE(cancel_alarm) public void cancelAlarm(Context context) { // If the alarm has been set, cancel it. if (alarmMgr!= null) { alarmMgr.cancel(alarmIntent); } // Disable {@code SampleBootReceiver} so that it doesn't automatically restart the // alarm when the device is rebooted. ComponentName receiver = new ComponentName(context, SampleBootReceiver.class); PackageManager pm = context.getPackageManager(); pm.setComponentEnabledSetting(receiver, PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP); } // END_INCLUDE(cancel_alarm) }
{ "content_hash": "73e9259579be65203228ce9f7d642033", "timestamp": "", "source": "github", "line_count": 133, "max_line_length": 91, "avg_line_length": 45.744360902255636, "alnum_prop": 0.6597633136094675, "repo_name": "YoungPeanut/GoogleTrainingCourseDemos", "id": "b7636f1583c9ffad0727345fccbc4d3d2c62e05e", "size": "6084", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/src/main/java/info/ipeanut/googletrainingcoursedemos/scheduler/SampleAlarmReceiver.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "1115970" } ], "symlink_target": "" }
"""Unit tests for the PValue and PCollection classes.""" # pytype: skip-file from __future__ import absolute_import import unittest # patches unittest.TestCase to be python3 compatible import future.tests.base # pylint: disable=unused-import from apache_beam.pvalue import AsSingleton from apache_beam.pvalue import PValue from apache_beam.pvalue import TaggedOutput from apache_beam.testing.test_pipeline import TestPipeline class PValueTest(unittest.TestCase): def test_pvalue_expected_arguments(self): pipeline = TestPipeline() value = PValue(pipeline) self.assertEqual(pipeline, value.pipeline) def test_assingleton_multi_element(self): with self.assertRaisesRegex( ValueError, 'PCollection of size 2 with more than one element accessed as a ' 'singleton view. First two elements encountered are \"1\", \"2\".'): AsSingleton._from_runtime_iterable([1, 2], {}) class TaggedValueTest(unittest.TestCase): def test_passed_tuple_as_tag(self): with self.assertRaisesRegex( TypeError, r'Attempting to create a TaggedOutput with non-string tag \(1, 2, 3\)'): TaggedOutput((1, 2, 3), 'value') if __name__ == '__main__': unittest.main()
{ "content_hash": "9b6776cf2951429e849eb0f552d7038a", "timestamp": "", "source": "github", "line_count": 41, "max_line_length": 80, "avg_line_length": 29.853658536585368, "alnum_prop": 0.7148692810457516, "repo_name": "iemejia/incubator-beam", "id": "fbe90f5425cc2c92b300c6d080b46e1e3d1a36ed", "size": "2009", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "sdks/python/apache_beam/pvalue_test.py", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Groovy", "bytes": "22216" }, { "name": "Java", "bytes": "9687045" }, { "name": "Protocol Buffer", "bytes": "1407" }, { "name": "Shell", "bytes": "10104" } ], "symlink_target": "" }
package com.github.addon.metrics; import com.codahale.metrics.Clock; import java.time.Duration; import java.util.Objects; import java.util.concurrent.locks.StampedLock; import java.util.function.Supplier; public class CachedValue<T> { private final StampedLock stampedLock; private final long maxAgeMillis; private final Clock clock; private final Supplier<T> supplier; private T value; private long expirationTimestamp; public CachedValue(Duration cachingDuration, Supplier<T> supplier) { this(cachingDuration, supplier, Clock.defaultClock()); } public CachedValue(Duration cachingDuration, Supplier<T> supplier, Clock clock) { this.maxAgeMillis = cachingDuration.toMillis(); this.supplier = Objects.requireNonNull(supplier); this.clock = Objects.requireNonNull(clock); this.stampedLock = new StampedLock(); } public T get() { long currentTimeMillis = clock.getTime(); // try optimistic read long stamp = stampedLock.tryOptimisticRead(); if (stamp != 0) { T valueLocal = this.value; long expirationTimestampLocal = this.expirationTimestamp; if (valueLocal != null && currentTimeMillis <= expirationTimestampLocal && stampedLock.validate(stamp)) { return valueLocal; } } // conditionally update stamp = stampedLock.readLock(); try { while (this.value == null || currentTimeMillis > this.expirationTimestamp) { long writeStamp = stampedLock.tryConvertToWriteLock(stamp); if (writeStamp != 0) { stamp = writeStamp; this.value = supplier.get(); this.expirationTimestamp = currentTimeMillis + maxAgeMillis; return this.value; } else { stampedLock.unlockRead(stamp); stamp = stampedLock.writeLock(); } } return value; } finally { stampedLock.unlock(stamp); } } }
{ "content_hash": "7849a4e603a556b184650dea36c28de8", "timestamp": "", "source": "github", "line_count": 65, "max_line_length": 117, "avg_line_length": 32.815384615384616, "alnum_prop": 0.6090014064697609, "repo_name": "hellamps/metrics-core-addons", "id": "bd25bd5e5afbf6df4045df22f636a70b86e341e5", "size": "2133", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/main/java/com/github/addon/metrics/CachedValue.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "64390" } ], "symlink_target": "" }
package com.sleepycat.db; import com.sleepycat.db.internal.DbEnv; /** Thrown when a database handle has been invalidated because a replication election unrolled a committed transaction. When this happens the handle is no longer able to be used and the application must close the handle using the {@link com.sleepycat.db.Database#close Database.close} method and open a new handle. This exception is thrown when a client unrolls a transaction in order to synchronize with a new master. If the application was permitted to use the original handle, it's possible the handle might attempt to access nonexistent resources. */ public class ReplicationHandleDeadException extends DatabaseException { /* package */ ReplicationHandleDeadException(final String s, final int errno, final DbEnv dbenv) { super(s, errno, dbenv); } }
{ "content_hash": "6fed40a9be554078f5a24f8a1255c847", "timestamp": "", "source": "github", "line_count": 22, "max_line_length": 108, "avg_line_length": 41.31818181818182, "alnum_prop": 0.7282728272827282, "repo_name": "djsedulous/namecoind", "id": "67cf5da775087a45b320153569b67312bbcd59bf", "size": "1116", "binary": false, "copies": "3", "ref": "refs/heads/master", "path": "libs/db-4.7.25.NC/java/src/com/sleepycat/db/ReplicationHandleDeadException.java", "mode": "33188", "license": "mit", "language": [ { "name": "Assembly", "bytes": "843598" }, { "name": "Awk", "bytes": "90447" }, { "name": "C", "bytes": "19896147" }, { "name": "C#", "bytes": "121901" }, { "name": "C++", "bytes": "132199970" }, { "name": "CSS", "bytes": "336528" }, { "name": "Emacs Lisp", "bytes": "1639" }, { "name": "IDL", "bytes": "11976" }, { "name": "Java", "bytes": "3955488" }, { "name": "JavaScript", "bytes": "22346" }, { "name": "Max", "bytes": "36857" }, { "name": "Objective-C", "bytes": "23505" }, { "name": "Objective-C++", "bytes": "2450" }, { "name": "PHP", "bytes": "55712" }, { "name": "Perl", "bytes": "4194947" }, { "name": "Python", "bytes": "761429" }, { "name": "R", "bytes": "4009" }, { "name": "Rebol", "bytes": "354" }, { "name": "Scheme", "bytes": "6073" }, { "name": "Shell", "bytes": "550004" }, { "name": "Tcl", "bytes": "2268735" }, { "name": "TeX", "bytes": "13404" }, { "name": "TypeScript", "bytes": "5318296" }, { "name": "XSLT", "bytes": "757548" }, { "name": "eC", "bytes": "5079" } ], "symlink_target": "" }
#ifndef _LINUX_NTFS_FS_I_H #define _LINUX_NTFS_FS_I_H #include <linux/types.h> /* Forward declarations, to keep number of mutual includes low */ struct ntfs_attribute; struct ntfs_sb_info; /* Duplicate definitions from ntfs/ntfstypes.h */ #ifndef NTFS_INTEGRAL_TYPES #define NTFS_INTEGRAL_TYPES typedef u8 ntfs_u8; typedef u16 ntfs_u16; typedef u32 ntfs_u32; typedef u64 ntfs_u64; typedef s8 ntfs_s8; typedef s16 ntfs_s16; typedef s32 ntfs_s32; typedef s64 ntfs_s64; #endif #ifndef NTMODE_T #define NTMODE_T typedef __kernel_mode_t ntmode_t; #endif #ifndef NTFS_UID_T #define NTFS_UID_T typedef uid_t ntfs_uid_t; #endif #ifndef NTFS_GID_T #define NTFS_GID_T typedef gid_t ntfs_gid_t; #endif #ifndef NTFS_SIZE_T #define NTFS_SIZE_T typedef __kernel_size_t ntfs_size_t; #endif #ifndef NTFS_TIME_T #define NTFS_TIME_T typedef __kernel_time_t ntfs_time_t; #endif /* unicode character type */ #ifndef NTFS_WCHAR_T #define NTFS_WCHAR_T typedef u16 ntfs_wchar_t; #endif /* file offset */ #ifndef NTFS_OFFSET_T #define NTFS_OFFSET_T typedef s64 ntfs_offset_t; #endif /* UTC */ #ifndef NTFS_TIME64_T #define NTFS_TIME64_T typedef u64 ntfs_time64_t; #endif /* * This is really signed long long. So we support only volumes up to 2Tb. This * is ok as Win2k also only uses 32-bits to store clusters. * Whatever you do keep this a SIGNED value or a lot of NTFS users with * corrupted filesystems will lynch you! It causes massive fs corruption when * unsigned due to the nature of many checks relying on being performed on * signed quantities. (AIA) */ #ifndef NTFS_CLUSTER_T #define NTFS_CLUSTER_T typedef s32 ntfs_cluster_t; #endif /* Definition of the NTFS in-memory inode structure. */ struct ntfs_inode_info { struct ntfs_sb_info *vol; unsigned long i_number; /* Should be really 48 bits. */ __u16 sequence_number; /* The current sequence number. */ unsigned char *attr; /* Array of the attributes. */ int attr_count; /* Size of attrs[]. */ struct ntfs_attribute *attrs; int record_count; /* Size of records[]. */ int *records; /* Array of the record numbers of the $Mft whose * attributes have been inserted in the inode. */ union { struct { int recordsize; int clusters_per_record; } index; } u; }; #endif
{ "content_hash": "f63a99bed3ee731fb892d9228e2f3d21", "timestamp": "", "source": "github", "line_count": 91, "max_line_length": 78, "avg_line_length": 24.747252747252748, "alnum_prop": 0.7206927175843695, "repo_name": "grea09/wipos", "id": "8789aaa5aa14234f5b1069188955b4d58297b27d", "size": "2252", "binary": false, "copies": "27", "ref": "refs/heads/master", "path": "router/platform/include/linux/ntfs_fs_i.h", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "10785072" }, { "name": "C++", "bytes": "1918596" }, { "name": "Java", "bytes": "23468" }, { "name": "Logos", "bytes": "52685" }, { "name": "Objective-C", "bytes": "33637" }, { "name": "OpenEdge ABL", "bytes": "3643" }, { "name": "Shell", "bytes": "12883" }, { "name": "XC", "bytes": "49361" } ], "symlink_target": "" }
UP_DIR="$$(dirname $$PWD)" links: node_modules \ node_modules/docvy-cache \ node_modules/docvy-plugin-installer \ node_modules/docvy-utils node_modules: mkdir -p node_modules node_modules/docvy-cache: ln -sf ${UP_DIR}/cache $$PWD/$@ node_modules/docvy-plugin-installer: ln -sf ${UP_DIR}/plugin-installer $$PWD/$@ node_modules/docvy-utils: ln -sf ${UP_DIR}/utils $$PWD/$@ clean: rm -rf ~/.docvy/plugins/DocvyTest*
{ "content_hash": "fb6fa7d2dd054cd7c9d883952408ee02", "timestamp": "", "source": "github", "line_count": 26, "max_line_length": 43, "avg_line_length": 16.73076923076923, "alnum_prop": 0.6804597701149425, "repo_name": "docvy/server", "id": "5e59069fcf6b6c5170988ac7dd893d6214644520", "size": "504", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Makefile", "mode": "33188", "license": "mit", "language": [ { "name": "JavaScript", "bytes": "25296" }, { "name": "Makefile", "bytes": "504" } ], "symlink_target": "" }
Invokes a Callable/ExceptionalRunnable until it runs without Exception, will be retried for a specified amount and time between the retries. # Examples ## Invoking Callable<String> for at least 10 times String result = Retryable.retry(10L).timeToWait("100ms").call(()->...); ## Invoking Callable<String> for at least 10 times, providing custom message String result = Retryable.retry(10L).timeToWait("100ms").message("connection").call(()->...); ## Invoking ExceptionalRunnable Retryable.run(()->...); ## Infinite retries with 5s between Retryable.infinite().timeToWait("5s").run(()->...);
{ "content_hash": "590e3bafab6af0778646101913d84500", "timestamp": "", "source": "github", "line_count": 19, "max_line_length": 140, "avg_line_length": 32.36842105263158, "alnum_prop": 0.7121951219512195, "repo_name": "galan/commons", "id": "a96f1fa2fb4e4b5e73dd1c08b8ac92496caec582", "size": "626", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "documentation/util.Retryable.md", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "340711" } ], "symlink_target": "" }
package com.google.api.ads.dfp.jaxws.v201306; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * * Captures a page of {@link Contact} objects. * * * <p>Java class for ContactPage complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="ContactPage"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="totalResultSetSize" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/> * &lt;element name="startIndex" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/> * &lt;element name="results" type="{https://www.google.com/apis/ads/publisher/v201306}Contact" maxOccurs="unbounded" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ContactPage", propOrder = { "totalResultSetSize", "startIndex", "results" }) public class ContactPage { protected Integer totalResultSetSize; protected Integer startIndex; protected List<Contact> results; /** * Gets the value of the totalResultSetSize property. * * @return * possible object is * {@link Integer } * */ public Integer getTotalResultSetSize() { return totalResultSetSize; } /** * Sets the value of the totalResultSetSize property. * * @param value * allowed object is * {@link Integer } * */ public void setTotalResultSetSize(Integer value) { this.totalResultSetSize = value; } /** * Gets the value of the startIndex property. * * @return * possible object is * {@link Integer } * */ public Integer getStartIndex() { return startIndex; } /** * Sets the value of the startIndex property. * * @param value * allowed object is * {@link Integer } * */ public void setStartIndex(Integer value) { this.startIndex = value; } /** * Gets the value of the results property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the results property. * * <p> * For example, to add a new item, do as follows: * <pre> * getResults().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link Contact } * * */ public List<Contact> getResults() { if (results == null) { results = new ArrayList<Contact>(); } return this.results; } }
{ "content_hash": "67e9edaf5e992cc59e2d341ba6e639f9", "timestamp": "", "source": "github", "line_count": 125, "max_line_length": 141, "avg_line_length": 25.648, "alnum_prop": 0.5923268870867124, "repo_name": "nafae/developer", "id": "8ef448324ad095d4699459a36c42994679f57ccd", "size": "3206", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201306/ContactPage.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "127846798" }, { "name": "Perl", "bytes": "28418" } ], "symlink_target": "" }
package org.springframework.cloud.reactive.socket; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.concurrent.ArrayBlockingQueue; import io.rsocket.util.PayloadImpl; import org.junit.Before; import org.junit.Test; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; import org.springframework.cloud.reactive.socket.annotation.OneWayMapping; import org.springframework.cloud.reactive.socket.annotation.Payload; import org.springframework.cloud.reactive.socket.annotation.RequestManyMapping; import org.springframework.cloud.reactive.socket.annotation.RequestOneMapping; import org.springframework.cloud.reactive.socket.annotation.RequestStreamMapping; import org.springframework.cloud.reactive.socket.common.User; import org.springframework.cloud.reactive.socket.converter.JacksonConverter; import org.springframework.cloud.reactive.socket.converter.SerializableConverter; import org.springframework.context.support.GenericApplicationContext; import org.springframework.util.MimeType; import static org.assertj.core.api.Assertions.assertThat; /** * @author Vinicius Carvalho */ public class DispatchHandlerTests { private DispatcherHandler handler = new DispatcherHandler(); private JacksonConverter converter = new JacksonConverter(); private ArrayBlockingQueue resultsQueue = new ArrayBlockingQueue(10); @Before public void setup() throws Exception{ GenericApplicationContext context = new GenericApplicationContext(); context.getBeanFactory().registerSingleton("simpleService",new SimpleReactiveService()); context.refresh(); this.handler.setApplicationContext(context); this.handler.afterPropertiesSet(); } @Test public void oneWayHandler() throws Exception{ User user = new User("Mary", "blue"); Mono<Void> result = this.handler.fireAndForget(new PayloadImpl(converter.write(user), getMetadataBytes(MimeType.valueOf("application/json") ,"/oneway"))); User output = (User) resultsQueue.poll(); assertThat(output).isEqualTo(user); } @Test public void oneWaySerializable() throws Exception { User user = new User("Mary", "blue"); SerializableConverter serializableConverter = new SerializableConverter(); Mono<Void> result = this.handler.fireAndForget(new PayloadImpl(serializableConverter.write(user), getMetadataBytes(MimeType.valueOf("application/java-serialized-object") ,"/onewaybinary"))); User output = (User) resultsQueue.poll(); assertThat(output).isEqualTo(user); } @Test public void oneWayWrongMimeType() throws Exception { User user = new User("Mary", "blue"); Mono<Void> result = this.handler.fireAndForget(new PayloadImpl(converter.write(user), getMetadataBytes(MimeType.valueOf("application/binary") ,"/oneway"))); result.doOnError(throwable -> resultsQueue.offer(throwable)).subscribe(); assertThat(resultsQueue.poll()).isInstanceOf(Throwable.class); } @Test public void requestOneHandler() throws Exception { User user = new User("Mary", "red"); Mono<io.rsocket.Payload> invocationResult = this.handler.requestResponse(new PayloadImpl(converter.write(user), getMetadataBytes(MimeType.valueOf("application/json") ,"/redblue"))); User result = invocationResult.map(payload -> { return (User)converter.read(payload.getDataUtf8().getBytes(), User.class); }).block(); assertThat("blue").isEqualTo(result.getFavoriteColor()); } @Test public void requestOneWrongPath() throws Exception { User user = new User("Mary", "red"); Mono<io.rsocket.Payload> invocationResult = this.handler.requestResponse(new PayloadImpl(converter.write(user), getMetadataBytes(MimeType.valueOf("application/json") ,"/notfound"))); invocationResult.doOnError(throwable -> { resultsQueue.offer(throwable);}).subscribe(); assertThat(resultsQueue.poll()).isInstanceOf(Throwable.class); } @Test public void requestMany() throws Exception { Integer count = 10; Flux<io.rsocket.Payload> invocationResult = this.handler.requestStream(new PayloadImpl(converter.write(count), getMetadataBytes(MimeType.valueOf("application/json") ,"/requestMany"))); List<Integer> results = invocationResult.map(payload -> (Integer)converter.read(payload.getDataUtf8().getBytes(), Integer.class) ).collectList().block(); assertThat(results).size().isEqualTo(10); } @Test public void requestStream() throws Exception { Flux<Integer> from = Flux.range(0,10); Flux<io.rsocket.Payload> payloadFlux = from.map(integer -> { return new PayloadImpl(converter.write(integer), getMetadataBytes(MimeType.valueOf("application/json") ,"/requestStream")); }); Flux<io.rsocket.Payload> invocationResult = this.handler.requestChannel(payloadFlux); List<Integer> results = invocationResult.map(payload -> { return (Integer)converter.read(payload.getDataUtf8().getBytes(),Integer.class); }).take(10).collectList().block(); assertThat(results).size().isEqualTo(10); } private byte[] getMetadataBytes(MimeType mimeType, String path) { Map<String, String> metadata = new HashMap<>(); metadata.put("PATH", path); metadata.put("MIME_TYPE", mimeType.toString()); return converter.write(metadata); } class SimpleReactiveService { @OneWayMapping(value = "/oneway", mimeType = "application/json") public void oneWay(User user){ DispatchHandlerTests.this.resultsQueue.offer(user); } @OneWayMapping("/onewaybinary") public void oneWayBinary(User user){ DispatchHandlerTests.this.resultsQueue.offer(user); } @RequestOneMapping(value = "/redblue", mimeType = "application/json") public User redOrBlue(String nothing, @Payload User user){ user.setFavoriteColor("blue"); return user; } @RequestManyMapping(value = "/requestMany", mimeType = "application/json") public Flux<Integer> range(Integer count){ return Flux.range(0, count); } @RequestStreamMapping(value = "/requestStream", mimeType = "application/json") public Flux<Integer> adder(Flux<Integer> input){ return input.map(integer -> integer+1); } } }
{ "content_hash": "b251f1f2ef0f276c6be0c4361ff7c52f", "timestamp": "", "source": "github", "line_count": 157, "max_line_length": 192, "avg_line_length": 38.254777070063696, "alnum_prop": 0.7668997668997669, "repo_name": "viniciusccarvalho/spring-cloud-sockets", "id": "8cee144db9b3de7fc221e25db33f2614de7ce97b", "size": "6630", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "spring-cloud-sockets/src/test/java/org/springframework/cloud/reactive/socket/DispatchHandlerTests.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "5150" }, { "name": "Java", "bytes": "73847" }, { "name": "Shell", "bytes": "7654" } ], "symlink_target": "" }
#pragma once #include <aws/ec2/EC2_EXPORTS.h> #include <aws/ec2/EC2Request.h> #include <aws/core/utils/memory/stl/AWSVector.h> #include <aws/core/utils/memory/stl/AWSString.h> namespace Aws { namespace EC2 { namespace Model { /* <p>Contains the parameters for CancelSpotInstanceRequests.</p> */ class AWS_EC2_API CancelSpotInstanceRequestsRequest : public EC2Request { public: CancelSpotInstanceRequestsRequest(); Aws::String SerializePayload() const override; /* <p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p> */ inline bool GetDryRun() const{ return m_dryRun; } /* <p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p> */ inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } /* <p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p> */ inline CancelSpotInstanceRequestsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} /* <p>One or more Spot Instance request IDs.</p> */ inline const Aws::Vector<Aws::String>& GetSpotInstanceRequestIds() const{ return m_spotInstanceRequestIds; } /* <p>One or more Spot Instance request IDs.</p> */ inline void SetSpotInstanceRequestIds(const Aws::Vector<Aws::String>& value) { m_spotInstanceRequestIdsHasBeenSet = true; m_spotInstanceRequestIds = value; } /* <p>One or more Spot Instance request IDs.</p> */ inline void SetSpotInstanceRequestIds(Aws::Vector<Aws::String>&& value) { m_spotInstanceRequestIdsHasBeenSet = true; m_spotInstanceRequestIds = value; } /* <p>One or more Spot Instance request IDs.</p> */ inline CancelSpotInstanceRequestsRequest& WithSpotInstanceRequestIds(const Aws::Vector<Aws::String>& value) { SetSpotInstanceRequestIds(value); return *this;} /* <p>One or more Spot Instance request IDs.</p> */ inline CancelSpotInstanceRequestsRequest& WithSpotInstanceRequestIds(Aws::Vector<Aws::String>&& value) { SetSpotInstanceRequestIds(value); return *this;} /* <p>One or more Spot Instance request IDs.</p> */ inline CancelSpotInstanceRequestsRequest& AddSpotInstanceRequestIds(const Aws::String& value) { m_spotInstanceRequestIdsHasBeenSet = true; m_spotInstanceRequestIds.push_back(value); return *this; } /* <p>One or more Spot Instance request IDs.</p> */ inline CancelSpotInstanceRequestsRequest& AddSpotInstanceRequestIds(Aws::String&& value) { m_spotInstanceRequestIdsHasBeenSet = true; m_spotInstanceRequestIds.push_back(value); return *this; } /* <p>One or more Spot Instance request IDs.</p> */ inline CancelSpotInstanceRequestsRequest& AddSpotInstanceRequestIds(const char* value) { m_spotInstanceRequestIdsHasBeenSet = true; m_spotInstanceRequestIds.push_back(value); return *this; } private: bool m_dryRun; bool m_dryRunHasBeenSet; Aws::Vector<Aws::String> m_spotInstanceRequestIds; bool m_spotInstanceRequestIdsHasBeenSet; }; } // namespace Model } // namespace EC2 } // namespace Aws
{ "content_hash": "dfe59585005c05c3760555090c15e7c4", "timestamp": "", "source": "github", "line_count": 89, "max_line_length": 288, "avg_line_length": 42.06741573033708, "alnum_prop": 0.7297008547008547, "repo_name": "zeliard/aws-sdk-cpp", "id": "d48928f4a1dcc672200754e743987b02f74f4db2", "size": "4315", "binary": false, "copies": "3", "ref": "refs/heads/windows-custom", "path": "windows-build/include/aws/ec2/model/CancelSpotInstanceRequestsRequest.h", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C", "bytes": "13169" }, { "name": "C++", "bytes": "65046472" }, { "name": "CMake", "bytes": "266341" }, { "name": "Java", "bytes": "214644" }, { "name": "Python", "bytes": "45989" } ], "symlink_target": "" }
<div> <h1 class="no-margin">{{ name }}</h1> <h2 class="no-margin pad-left">assisted by {{ sidekick }}</h2> <p>Days without a civilian casualty: {{ days | number:'1.0-0' }}</p> <p>Main vulnerability: {{ vulnerability }}</p> </div>
{ "content_hash": "f299f8f1a278f2b44c6cd67160d8c770", "timestamp": "", "source": "github", "line_count": 8, "max_line_length": 70, "avg_line_length": 29.875, "alnum_prop": 0.602510460251046, "repo_name": "swingmicro/AngularLazyLoad", "id": "4fa787fc4482a8def577f65999150dbbbd245ea0", "size": "239", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/info/info.html", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "1143" }, { "name": "HTML", "bytes": "1751" }, { "name": "JavaScript", "bytes": "3605" }, { "name": "TypeScript", "bytes": "9580" } ], "symlink_target": "" }
local P = {} projectLootTimer = P local _G = _G -- imports local random = random local CreateFrame = CreateFrame local UIParent = UIParent setfenv(1, P) frame = CreateFrame("FRAME", "ProjectLootTimerFrame") --timers = {} --RANDOM_MAX = 2^31-1 function createUpdateHandler(duration, callback) local totalElapsed = 0 return function (self, elapsed) totalElapsed = totalElapsed + elapsed if totalElapsed > duration then destroyHandler() callback(totalElapsed) end end end function destroyHandler() frame:SetScript("OnUpdate", nil) end function create(duration, callback) frame:SetScript("OnUpdate", createUpdateHandler(duration, callback)) end
{ "content_hash": "a33d7529c2b5f43f2fbbad142c52d79b", "timestamp": "", "source": "github", "line_count": 36, "max_line_length": 71, "avg_line_length": 19.47222222222222, "alnum_prop": 0.7104136947218259, "repo_name": "WarcraftWriting/ProjectLoot", "id": "c62d779c35ff2ba5006c964ef6ea23ff7ab2b0dd", "size": "1894", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Timer.lua", "mode": "33188", "license": "mit", "language": [ { "name": "Lua", "bytes": "13249" }, { "name": "TeX", "bytes": "1474" } ], "symlink_target": "" }
For ultimate flexability, the tests are written to be able to run from both Node.js and a browser. ## Running the tests Ensure you have access to a running instance of Atlas App Services. To run it locally, ensure you have Docker and your Realm AWS credentials installed and run ``` docker run --rm -p 9090:9090 -it ghcr.io/realm/ci/mongodb-realm-test-server:latest ``` ## Running the tests from Node.js To enable a short feedback loop the integration tests can be run from Node.js (via the Mocha CLI): ``` npm start ``` This will start the tests with Mocha in --watch mode. To narrow in and run a single test, use the --grep runtime argument: ``` npm start -- --grep Credentials ``` ## Running the tests from a browser To start the harness, opening a headless Chromium browser (via Puppeteer), run: ``` npm test ``` To enable a long timeout and open developer tools, run this with the DEV_TOOLS environment variable. ``` DEV_TOOLS=1 npm test ``` ## Running the OAuth integration tests Currently, these are only available when running in a browser. Before running tests which depends on a specific authentication provider: 1. Run once to import the app, 2. Go to http://localhost:9090 (or wherever your Atlas App Services server is listening) 3. Setup the appropriate authentication providers. To enable testing credentials that require interaction, run with DEV_TOOLS and TEST_CREDENTIALS set to a comma-separated list of credentials. ``` DEV_TOOLS=1 TEST_CREDENTIALS=anonymous,email-password,google npm test ``` ## Running the Google Sign-In integration test Run the tests once to import a test app into the Atlas App Services server you're testing against. Take note of the app id that it gets assigned and navigate to the Admin UI of the server to setup the Google Authentication Provider. Make sure to toggle on "OpenID Connect". Start the integration tests dev server with dev tools enabled (to keep the browser opened) and provide both the app id and your Google client id: ``` GOOGLE_CLIENT_ID=414565162824-bqn7utq2u2hue0qum7eu7lfpmmq8p4qg.apps.googleusercontent.com MDB_REALM_APP_ID=my-test-app-fwoue DEV_TOOLS=1 npm test ``` After the tests have run, navigate the browser window to http://localhost:8080/google-login, click the button to "Sign in with Google" and complete the authentication flow. ## Additional environment variables To skip importing the app or use a different server, specify one or more of the following environment variables: - `MDB_REALM_APP_ID` - `MDB_REALM_BASE_URL` - `MDB_REALM_USERNAME` - `MDB_REALM_PASSWORD` If you want to communicate with the server using the credentials created by the test harness, you can run the test with the following environment variable: ``` MDB_REALM_SKIP_CLEANUP=true ``` This will skip the clean-up, leaving the app derived from the `./my-test-app-template` and the `./realm-config` file containing access and refresh tokens. ``` npx realm-cli export --base-url http://localhost:9090 --config-path ./realm-config --app-id my-test-app-kuxuo ```
{ "content_hash": "8cbe6e11efd2e0a9db9c65af90f8e057", "timestamp": "", "source": "github", "line_count": 90, "max_line_length": 172, "avg_line_length": 33.81111111111111, "alnum_prop": 0.7656917515609596, "repo_name": "realm/realm-js", "id": "07c8b9a2e6fb26d0aa149f4fabc797bdc5c92c2a", "size": "3074", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "packages/realm-web-integration-tests/README.md", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "399" }, { "name": "C", "bytes": "846" }, { "name": "C++", "bytes": "745104" }, { "name": "CMake", "bytes": "10467" }, { "name": "Dockerfile", "bytes": "3119" }, { "name": "HTML", "bytes": "31" }, { "name": "Java", "bytes": "75283" }, { "name": "JavaScript", "bytes": "693446" }, { "name": "Makefile", "bytes": "3066" }, { "name": "Objective-C", "bytes": "11784" }, { "name": "Objective-C++", "bytes": "28861" }, { "name": "PowerShell", "bytes": "1161" }, { "name": "Ruby", "bytes": "12032" }, { "name": "Shell", "bytes": "26024" }, { "name": "Starlark", "bytes": "2408" }, { "name": "Swift", "bytes": "762" }, { "name": "TypeScript", "bytes": "866205" } ], "symlink_target": "" }
// The MIT License // // Copyright (c) 2014 Gwendal Roué // // 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. #import "GRMustacheJavascriptLibrary_private.h" #import "GRMustacheTag_private.h" #import "GRMustacheContext_private.h" #import "GRMustache_private.h" // ============================================================================= #pragma mark - GRMustacheJavascriptEscaper @interface GRMustacheJavascriptEscaper() - (NSString *)escape:(NSString *)string; @end @implementation GRMustacheJavascriptEscaper #pragma mark <GRMustacheFilter> /** * Support for {{ javascript.escape(value) }} */ - (id)transformedValue:(id)object { // Specific case for [NSNull null] if (object == [NSNull null]) { return @""; } // Turns other objects into strings, and escape NSString *string = [object description]; return [self escape:string]; } #pragma mark - <GRMustacheRendering> /** * Support for {{# javascript.escape }}...{{ value }}...{{ value }}...{{/ javascript.escape }} */ - (NSString *)renderForMustacheTag:(GRMustacheTag *)tag context:(GRMustacheContext *)context HTMLSafe:(BOOL *)HTMLSafe error:(NSError **)error { switch (tag.type) { case GRMustacheTagTypeVariable: // {{ javascript.escape }} // Behave as a regular object: render self's description if (HTMLSafe != NULL) { *HTMLSafe = NO; } return [self description]; case GRMustacheTagTypeInvertedSection: // {{^ javascript.escape }}...{{/ javascript.escape }} // Behave as a truthy object: don't render for inverted sections return nil; case GRMustacheTagTypeSection: // {{# javascript.escape }}...{{/ javascript.escape }} // Render normally, but listen to all inner tags rendering, so that // we can format them. See mustacheTag:willRenderObject: below. context = [context contextByAddingTagDelegate:self]; return [tag renderContentWithContext:context HTMLSafe:HTMLSafe error:error]; } } #pragma mark - <GRMustacheTagDelegate> /** * Support for {{# javascript.escape }}...{{ value }}...{{ value }}...{{/ javascript.escape }} */ -(id)mustacheTag:(GRMustacheTag *)tag willRenderObject:(id)object { // Process {{ value }} if (tag.type == GRMustacheTagTypeVariable) { // We can not escape `object`, because it is not a string. // We want to escape its rendering. // So return a rendering object that will eventually render `object`, // and escape its rendering. return [GRMustacheRendering renderingObjectWithBlock:^NSString *(GRMustacheTag *tag, GRMustacheContext *context, BOOL *HTMLSafe, NSError **error) { id<GRMustacheRendering> renderingObject = [GRMustacheRendering renderingObjectForObject:object]; NSString *rendering = [renderingObject renderForMustacheTag:tag context:context HTMLSafe:HTMLSafe error:error]; return [self escape:rendering]; }]; } // Don't process {{# value }}, {{^ value }}, {{$ value }} return object; } #pragma mark - Private - (NSString *)escape:(NSString *)string { NSUInteger length = [string length]; if (length == 0) { return string; } // Extract characters const UniChar *characters = CFStringGetCharactersPtr((CFStringRef)string); if (!characters) { NSMutableData *data = [NSMutableData dataWithLength:length * sizeof(UniChar)]; [string getCharacters:[data mutableBytes] range:(NSRange){ .location = 0, .length = length }]; characters = [data bytes]; } // Set up the translation table static const NSString *escapeForCharacter[] = { // This table comes from https://github.com/django/django/commit/8c4a525871df19163d5bfdf5939eff33b544c2e2#django/template/defaultfilters.py // // Quoting Malcolm Tredinnick: // > Added extra robustness to the escapejs filter so that all invalid // > characters are correctly escaped. This avoids any chance to inject // > raw HTML inside <script> tags. Thanks to Mike Wiacek for the patch // > and Collin Grady for the tests. // // Quoting Mike Wiacek from https://code.djangoproject.com/ticket/7177 // > The escapejs filter currently escapes a small subset of characters // > to prevent JavaScript injection. However, the resulting strings can // > still contain valid HTML, leading to XSS vulnerabilities. Using hex // > encoding as opposed to backslash escaping, effectively prevents // > Javascript injection and also helps prevent XSS. Attached is a // > small patch that modifies the _js_escapes tuple to use hex encoding // > on an expanded set of characters. // // The initial django commit used `\xNN` syntax. The \u syntax was // introduced later for JSON compatibility. [0x00] = @"\\u0000", [0x01] = @"\\u0001", [0x02] = @"\\u0002", [0x03] = @"\\u0003", [0x04] = @"\\u0004", [0x05] = @"\\u0005", [0x06] = @"\\u0006", [0x07] = @"\\u0007", [0x08] = @"\\u0008", [0x09] = @"\\u0009", [0x0A] = @"\\u000A", [0x0B] = @"\\u000B", [0x0C] = @"\\u000C", [0x0D] = @"\\u000D", [0x0E] = @"\\u000E", [0x0F] = @"\\u000F", [0x10] = @"\\u0010", [0x11] = @"\\u0011", [0x12] = @"\\u0012", [0x13] = @"\\u0013", [0x14] = @"\\u0014", [0x15] = @"\\u0015", [0x16] = @"\\u0016", [0x17] = @"\\u0017", [0x18] = @"\\u0018", [0x19] = @"\\u0019", [0x1A] = @"\\u001A", [0x1B] = @"\\u001B", [0x1C] = @"\\u001C", [0x1D] = @"\\u001D", [0x1E] = @"\\u001E", [0x1F] = @"\\u001F", ['\\'] = @"\\u005C", ['\''] = @"\\u0027", ['"'] = @"\\u0022", ['>'] = @"\\u003E", ['<'] = @"\\u003C", ['&'] = @"\\u0026", ['='] = @"\\u003D", ['-'] = @"\\u002D", [';'] = @"\\u003B", // 0x2028 and 0x2029 are not included in this table, that would be too // big. See below. }; static const int escapeForCharacterLength = sizeof(escapeForCharacter) / sizeof(NSString *); // Translate NSMutableString *buffer = nil; const UniChar *unescapedStart = characters; CFIndex unescapedLength = 0; for (NSUInteger i=0; i<length; ++i, ++characters) { const NSString *escape = nil; if (*characters == 0x2028) { escape = @"\\u2028"; } else if (*characters == 0x2029) { escape = @"\\u2029"; } else { escape = (*characters < escapeForCharacterLength) ? escapeForCharacter[*characters] : nil; } if (escape) { if (!buffer) { buffer = [NSMutableString stringWithCapacity:length]; } CFStringAppendCharacters((CFMutableStringRef)buffer, unescapedStart, unescapedLength); CFStringAppend((CFMutableStringRef)buffer, (CFStringRef)escape); unescapedStart = characters+1; unescapedLength = 0; } else { ++unescapedLength; } } if (!buffer) { return string; } if (unescapedLength > 0) { CFStringAppendCharacters((CFMutableStringRef)buffer, unescapedStart, unescapedLength); } return buffer; } @end
{ "content_hash": "aae841ec4681d0d9f985d5f97324b2a1", "timestamp": "", "source": "github", "line_count": 244, "max_line_length": 155, "avg_line_length": 35.635245901639344, "alnum_prop": 0.5921794134560092, "repo_name": "balazspete/PVGeoVisualisation-Mobile", "id": "63ad287184358899bb71179e5c82b940f9ee966e", "size": "8696", "binary": false, "copies": "3", "ref": "refs/heads/master", "path": "Pods/GRMustache/src/classes/GRMustacheJavascriptLibrary.m", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "1020" }, { "name": "Objective-C", "bytes": "289726" }, { "name": "Ruby", "bytes": "138" } ], "symlink_target": "" }
<?php namespace Homie\Sensors\Sensors\System; use Homie\Sensors\Annotation\Sensor; use Homie\Sensors\Definition; use Homie\Sensors\Formatter\Load as Formatter; use Homie\Sensors\Sensors\AbstractSensor; use Homie\Sensors\SensorVO; /** * @Sensor */ class Load extends AbstractSensor { const TYPE = 'system.load'; /** * {@inheritdoc} */ public function getValue(SensorVO $sensor) : float { unset($sensor); return (float)sys_getloadavg()[0]; } /** * {@inheritdoc} */ public function isSupported(SensorVO $sensorVO) : bool { return true; } /** * @return Definition */ public function getDefinition() : Definition { $definition = new Definition(); $definition->type = Definition::TYPE_LOAD; $definition->formatter = Formatter::TYPE; return $definition; } }
{ "content_hash": "ac0e6066d5abeb1e5f2120036137babb", "timestamp": "", "source": "github", "line_count": 48, "max_line_length": 58, "avg_line_length": 18.895833333333332, "alnum_prop": 0.6108048511576626, "repo_name": "brainexe/homie", "id": "5494726766fc1b068fa14abf99d7bd60eeb315f6", "size": "907", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/Sensors/Sensors/System/Load.php", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "13970" }, { "name": "Dockerfile", "bytes": "1344" }, { "name": "HTML", "bytes": "108322" }, { "name": "JavaScript", "bytes": "150477" }, { "name": "Lua", "bytes": "356" }, { "name": "PHP", "bytes": "736276" }, { "name": "Shell", "bytes": "140" } ], "symlink_target": "" }
var url = arguments[0].url; // "http://earth.eo.esa.int/ml3/a550/2009/L3_ENV_MER_A550_m__20090101_GLOB_SI_ESA_9277x9277_-90+90+-180+180_0000.xml"; var net = require('net'); if(OS_ANDROID){ $.WebViewer.addEventListener('open', function() { var actionBar; if (! $.WebViewer.activity) { Ti.API.error("Can't access action bar on a lightweight window."); } else { actionBar = $.WebViewer.activity.actionBar; if (actionBar) { actionBar.displayHomeAsUp = true; actionBar.onHomeIconItemSelected = function() { //Ti.API.info("Home icon clicked!"); $.WebViewer.close(); }; }; }; }); }; $.pbar.show(); var xhr = Ti.Network.createHTTPClient({timeout: 3000}); xhr.onload = function() { Ti.API.info("redirect found"); Ti.API.info(xhr.location); var redirectUrl = xhr.getResponseHeader("Location"); Ti.API.info(redirectUrl); var urlTokens = url.split("/"); var filename = urlTokens[urlTokens.length-2]; if (redirectUrl) { //$.pbar.show(); download(redirectUrl, filename); } else { $.pbar.hide(); $.wv.show(); $.wv.data = xhr.responseData; } }; xhr.ondatastream = function(e) { Ti.API.info(e.progress); $.pbar.value = e.progress; }; xhr.onerror = function(e) { Ti.API.info(JSON.stringify(e)); Ti.API.info(xhr.responseText); Ti.API.info(xhr.location); //Ti.API.info(xhr.responseData); alert("Please check your internet connectivity"); }; xhr.open('GET', url.replace(/\"/g,"")); //Ti.API.info("URL : " + url); //Ti.API.info("cookie : " + net.shibCookie); xhr.setRequestHeader("Cookie", net.shibCookie); xhr.send(); function download(url, filename) { var xhr = Ti.Network.createHTTPClient({timeout: 10000}); xhr.onload = function() { var f = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, filename); //Ti.API.info(Ti.Filesystem.applicationDataDirectory); f.write(this.responseData); $.pbar.hide(); Ti.API.info(Ti.Filesystem.applicationDataDirectory + filename); $.wv.show(); $.wv.url = Ti.Filesystem.applicationDataDirectory + filename; }; xhr.ondatastream = function(e) { Ti.API.info(e.progress); $.pbar.value = e.progress; }; xhr.onerror = function(e) { Ti.API.info(JSON.stringify(e)); Ti.API.info(xhr.responseText); Ti.API.info(xhr.location); //Ti.API.info(xhr.responseData); alert("Please check your internet connectivity"); }; xhr.open('GET', url); Ti.API.info("URL : " + url); Ti.API.info("cookie : " + net.shibCookie); xhr.setRequestHeader("Cookie", net.shibCookie); xhr.send(); } //$.wv.evalJS("document.cookie='" + net.shibCookie + "';"); //$.wv.url = url;
{ "content_hash": "1cf0e56cfcb6696f0c9f380ae234e6f0", "timestamp": "", "source": "github", "line_count": 107, "max_line_length": 146, "avg_line_length": 25.35514018691589, "alnum_prop": 0.6361960928861039, "repo_name": "csgf/earthserver-sg-mobile", "id": "04a7ca79fc95985aa8669f821234fb45481771d7", "size": "2713", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/controllers/WebViewer.js", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "1276" }, { "name": "HTML", "bytes": "273062" }, { "name": "JavaScript", "bytes": "1953266" }, { "name": "Python", "bytes": "5251" } ], "symlink_target": "" }
jupyter: kernelspec: display_name: Bash language: bash name: bash --- ```bash ls ``` ```bash # https://coderwall.com/p/euwpig/a-better-git-log git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" ``` ```bash git lg ```
{ "content_hash": "65676fb48fbf98d4e87319554bb327b4", "timestamp": "", "source": "github", "line_count": 19, "max_line_length": 162, "avg_line_length": 18.210526315789473, "alnum_prop": 0.630057803468208, "repo_name": "mwouts/jupytext", "id": "bc41ad8144d4297c16e06f4f8cf13badb2635c73", "size": "350", "binary": false, "copies": "1", "ref": "refs/heads/main", "path": "tests/notebooks/mirror/ipynb_to_md/sample_bash_notebook.md", "mode": "33188", "license": "mit", "language": [ { "name": "Batchfile", "bytes": "752" }, { "name": "C#", "bytes": "2752" }, { "name": "C++", "bytes": "26237" }, { "name": "Clojure", "bytes": "7920" }, { "name": "F#", "bytes": "1449" }, { "name": "Gnuplot", "bytes": "2067" }, { "name": "Groovy", "bytes": "6195" }, { "name": "Haskell", "bytes": "930" }, { "name": "Java", "bytes": "1670" }, { "name": "JavaScript", "bytes": "21654" }, { "name": "Julia", "bytes": "25322" }, { "name": "Jupyter Notebook", "bytes": "630468" }, { "name": "MATLAB", "bytes": "1316" }, { "name": "Makefile", "bytes": "581" }, { "name": "OCaml", "bytes": "1049" }, { "name": "PowerShell", "bytes": "8962" }, { "name": "Prolog", "bytes": "12028" }, { "name": "Python", "bytes": "832380" }, { "name": "R", "bytes": "6011" }, { "name": "RobotFramework", "bytes": "1275" }, { "name": "Rust", "bytes": "15459" }, { "name": "Sage", "bytes": "418" }, { "name": "Scala", "bytes": "1000" }, { "name": "Scheme", "bytes": "54543" }, { "name": "Shell", "bytes": "1014" }, { "name": "Tcl", "bytes": "791" }, { "name": "TypeScript", "bytes": "17816" }, { "name": "q", "bytes": "1866" } ], "symlink_target": "" }
@interface Currency : NSObject @property (nonatomic, retain) NSNumber * cid; @property (nonatomic, retain) NSString * code; @property (nonatomic, retain) NSString * name; @property (nonatomic, retain) NSNumber * rate; @property (nonatomic, retain) NSString * sign; -(void) parseCurrencyWith :(NSDictionary *)currencyDict; -(id) initWithDict:(NSDictionary *)userDict; - (NSString *) formattedCurrency; +(double) getCurrencyRateFor:(NSNumber *)forCid againstCurrency:(NSNumber *)againstCid; @end
{ "content_hash": "76d63306a58f9dd1997c8cacdfbdc8cf", "timestamp": "", "source": "github", "line_count": 17, "max_line_length": 87, "avg_line_length": 29.41176470588235, "alnum_prop": 0.754, "repo_name": "yunas/TMG-SampleCode", "id": "a8635711ea22d307895d1bd57691a10deed1efc4", "size": "673", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "TestProject/Backend/Models/Currency.h", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "421" }, { "name": "Objective-C", "bytes": "394583" } ], "symlink_target": "" }
package com.hazelcast.internal.networking.nio.iobalancer; import com.hazelcast.instance.BuildInfoProvider; import com.hazelcast.internal.networking.nio.MigratablePipeline; import com.hazelcast.internal.networking.nio.NioThread; import com.hazelcast.logging.LoggingService; import com.hazelcast.logging.LoggingServiceImpl; import com.hazelcast.test.HazelcastParallelClassRunner; import com.hazelcast.test.annotation.ParallelTest; import com.hazelcast.test.annotation.QuickTest; import org.junit.Test; import org.junit.experimental.categories.Category; import org.junit.runner.RunWith; import static org.junit.Assert.assertTrue; import static org.mockito.Mockito.mock; @RunWith(HazelcastParallelClassRunner.class) @Category({QuickTest.class, ParallelTest.class}) public class IOBalancerTest { private final LoggingService loggingService = new LoggingServiceImpl("somegroup", "log4j2", BuildInfoProvider.getBuildInfo()); // https://github.com/hazelcast/hazelcast/issues/11501 @Test public void whenChannelAdded_andDisabled_thenSkipTaskCreation() { IOBalancer ioBalancer = new IOBalancer(new NioThread[1], new NioThread[1], "foo", 1, loggingService); MigratablePipeline inboundPipeline = mock(MigratablePipeline.class); MigratablePipeline outboundPipeline = mock(MigratablePipeline.class); ioBalancer.channelAdded(inboundPipeline, outboundPipeline); assertTrue(ioBalancer.getWorkQueue().isEmpty()); } // https://github.com/hazelcast/hazelcast/issues/11501 @Test public void whenChannelRemoved_andDisabled_thenSkipTaskCreation() { IOBalancer ioBalancer = new IOBalancer(new NioThread[1], new NioThread[1], "foo", 1, loggingService); MigratablePipeline inboundPipeline = mock(MigratablePipeline.class); MigratablePipeline outboundPipelines = mock(MigratablePipeline.class); ioBalancer.channelRemoved(inboundPipeline, outboundPipelines); assertTrue(ioBalancer.getWorkQueue().isEmpty()); } }
{ "content_hash": "9f4bfe711e216ccb65f6306c67b33098", "timestamp": "", "source": "github", "line_count": 48, "max_line_length": 130, "avg_line_length": 41.895833333333336, "alnum_prop": 0.783689706613625, "repo_name": "tkountis/hazelcast", "id": "6e6eb4926b8cc47838d94f4d3461d09378b665f3", "size": "2636", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "hazelcast/src/test/java/com/hazelcast/internal/networking/nio/iobalancer/IOBalancerTest.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "1438" }, { "name": "C", "bytes": "344" }, { "name": "Java", "bytes": "39789402" }, { "name": "Shell", "bytes": "15150" } ], "symlink_target": "" }
// grunt-move // https://github.com/prantlf/grunt-move // // Copyright (c) 2017-2022 Ferdinand Prantl // Licensed under the MIT license. // // Grunt task for moving and renaming files and directories 'use strict'; var fs = require('fs'), path = require('path'), colorette = require('colorette'), async = require('async'); module.exports = function (grunt) { grunt.registerMultiTask('move', 'Moves and renames files and directories.', function () { var done = this.async(), options = this.options({ ignoreMissing: false, moveAcrossVolumes: false }), files = this.files, moved = 0, failed = 0; if (!files.length) { if (!options.ignoreMissing) { grunt.fail.warn('No files or directories specified.'); } return done(); } function moveAll(file, allDone) { if (!file.src.length) { if (!options.ignoreMissing) { grunt.fail.warn('No files or directories found at ' + colorette.cyan(file.orig.src) + '.'); } return allDone(); } function moveOne(src, oneDone) { var dest = file.dest, trailingChar = dest[dest.length - 1], dir; if ((trailingChar === '/' || trailingChar === path.sep) && !file.orig.expand) { dir = dest.substring(0, dest.length - 1); dest = path.join(dest, path.basename(src)); } else { dir = path.dirname(dest); } grunt.file.mkdir(dir); if (dir === path.dirname(src)) { grunt.verbose.writeln('Renaming ' + colorette.cyan(src) + ' to ' + colorette.cyan(path.basename(dest)) + '.'); } else { grunt.verbose.writeln('Moving ' + colorette.cyan(src) + ' to ' + colorette.cyan(dest) + '.'); } fs.rename(src, dest, function (err) { /* c8 ignore next 21 */ if (err) { if (err.code === 'EXDEV') { if (options.moveAcrossVolumes) { grunt.verbose.writeln('Copying ' + colorette.cyan(src) + ' across devices.'); grunt.file.copy(src, dest); grunt.verbose.writeln('Deleting ' + colorette.cyan(src) + '.'); grunt.file.delete(src); ++moved; } else { grunt.verbose.error(); grunt.log.error(err); grunt.fail.warn('Moving files across devices has not been enabled.'); ++failed; } } else { grunt.verbose.error(); grunt.log.error(err); grunt.fail.warn('Moving failed.'); ++failed; } } else { ++moved; } oneDone(); }); } async.eachSeries(file.src, moveOne, allDone); } async.eachSeries(files, moveAll, function (err) { grunt.log.ok(moved + ' ' + grunt.util.pluralize(moved, 'file/files') + ' or ' + grunt.util.pluralize(moved, 'directory/directories') + ' moved, ' + failed + ' failed.'); done(err); }); }); };
{ "content_hash": "5765f530f97092902ff8cba3d1e10143", "timestamp": "", "source": "github", "line_count": 106, "max_line_length": 93, "avg_line_length": 29.943396226415093, "alnum_prop": 0.5094517958412098, "repo_name": "prantlf/grunt-move", "id": "c426fb60f6d2435dc8cb75a4151ccf84e84f2770", "size": "3174", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "tasks/move.js", "mode": "33188", "license": "mit", "language": [ { "name": "JavaScript", "bytes": "13730" } ], "symlink_target": "" }
import {Layer} from '../Layer'; import {IconDefault} from './Icon.Default'; import * as Util from '../../core/Util'; import {toLatLng as latLng} from '../../geo/LatLng'; import * as DomUtil from '../../dom/DomUtil'; import {MarkerDrag} from './Marker.Drag'; /* * @class Marker * @inherits Interactive layer * @aka L.Marker * L.Marker is used to display clickable/draggable icons on the map. Extends `Layer`. * * @example * * ```js * L.marker([50.5, 30.5]).addTo(map); * ``` */ export var Marker = Layer.extend({ // @section // @aka Marker options options: { // @option icon: Icon = * // Icon instance to use for rendering the marker. // See [Icon documentation](#L.Icon) for details on how to customize the marker icon. // If not specified, a common instance of `L.Icon.Default` is used. icon: new IconDefault(), // Option inherited from "Interactive layer" abstract class interactive: true, // @option draggable: Boolean = false // Whether the marker is draggable with mouse/touch or not. draggable: false, // @option keyboard: Boolean = true // Whether the marker can be tabbed to with a keyboard and clicked by pressing enter. keyboard: true, // @option title: String = '' // Text for the browser tooltip that appear on marker hover (no tooltip by default). title: '', // @option alt: String = '' // Text for the `alt` attribute of the icon image (useful for accessibility). alt: '', // @option zIndexOffset: Number = 0 // By default, marker images zIndex is set automatically based on its latitude. Use this option if you want to put the marker on top of all others (or below), specifying a high value like `1000` (or high negative value, respectively). zIndexOffset: 0, // @option opacity: Number = 1.0 // The opacity of the marker. opacity: 1, // @option riseOnHover: Boolean = false // If `true`, the marker will get on top of others when you hover the mouse over it. riseOnHover: false, // @option riseOffset: Number = 250 // The z-index offset used for the `riseOnHover` feature. riseOffset: 250, // @option pane: String = 'markerPane' // `Map pane` where the markers icon will be added. pane: 'markerPane', // @option bubblingMouseEvents: Boolean = false // When `true`, a mouse event on this marker will trigger the same event on the map // (unless [`L.DomEvent.stopPropagation`](#domevent-stoppropagation) is used). bubblingMouseEvents: false }, /* @section * * In addition to [shared layer methods](#Layer) like `addTo()` and `remove()` and [popup methods](#Popup) like bindPopup() you can also use the following methods: */ initialize: function (latlng, options) { Util.setOptions(this, options); this._latlng = latLng(latlng); }, onAdd: function (map) { this._zoomAnimated = this._zoomAnimated && map.options.markerZoomAnimation; if (this._zoomAnimated) { map.on('zoomanim', this._animateZoom, this); } this._initIcon(); this.update(); }, onRemove: function (map) { if (this.dragging && this.dragging.enabled()) { this.options.draggable = true; this.dragging.removeHooks(); } delete this.dragging; if (this._zoomAnimated) { map.off('zoomanim', this._animateZoom, this); } this._removeIcon(); this._removeShadow(); }, getEvents: function () { return { zoom: this.update, viewreset: this.update }; }, // @method getLatLng: LatLng // Returns the current geographical position of the marker. getLatLng: function () { return this._latlng; }, // @method setLatLng(latlng: LatLng): this // Changes the marker position to the given point. setLatLng: function (latlng) { var oldLatLng = this._latlng; this._latlng = latLng(latlng); this.update(); // @event move: Event // Fired when the marker is moved via [`setLatLng`](#marker-setlatlng) or by [dragging](#marker-dragging). Old and new coordinates are included in event arguments as `oldLatLng`, `latlng`. return this.fire('move', {oldLatLng: oldLatLng, latlng: this._latlng}); }, // @method setZIndexOffset(offset: Number): this // Changes the [zIndex offset](#marker-zindexoffset) of the marker. setZIndexOffset: function (offset) { this.options.zIndexOffset = offset; return this.update(); }, // @method setIcon(icon: Icon): this // Changes the marker icon. setIcon: function (icon) { this.options.icon = icon; if (this._map) { this._initIcon(); this.update(); } if (this._popup) { this.bindPopup(this._popup, this._popup.options); } return this; }, getElement: function () { return this._icon; }, update: function () { if (this._icon) { var pos = this._map.latLngToLayerPoint(this._latlng).round(); this._setPos(pos); } return this; }, _initIcon: function () { var options = this.options, classToAdd = 'leaflet-zoom-' + (this._zoomAnimated ? 'animated' : 'hide'); var icon = options.icon.createIcon(this._icon), addIcon = false; // if we're not reusing the icon, remove the old one and init new one if (icon !== this._icon) { if (this._icon) { this._removeIcon(); } addIcon = true; if (options.title) { icon.title = options.title; } if (options.alt) { icon.alt = options.alt; } } DomUtil.addClass(icon, classToAdd); if (options.keyboard) { icon.tabIndex = '0'; } this._icon = icon; if (options.riseOnHover) { this.on({ mouseover: this._bringToFront, mouseout: this._resetZIndex }); } var newShadow = options.icon.createShadow(this._shadow), addShadow = false; if (newShadow !== this._shadow) { this._removeShadow(); addShadow = true; } if (newShadow) { DomUtil.addClass(newShadow, classToAdd); newShadow.alt = ''; } this._shadow = newShadow; if (options.opacity < 1) { this._updateOpacity(); } if (addIcon) { this.getPane().appendChild(this._icon); } this._initInteraction(); if (newShadow && addShadow) { this.getPane('shadowPane').appendChild(this._shadow); } }, _removeIcon: function () { if (this.options.riseOnHover) { this.off({ mouseover: this._bringToFront, mouseout: this._resetZIndex }); } DomUtil.remove(this._icon); this.removeInteractiveTarget(this._icon); this._icon = null; }, _removeShadow: function () { if (this._shadow) { DomUtil.remove(this._shadow); } this._shadow = null; }, _setPos: function (pos) { DomUtil.setPosition(this._icon, pos); if (this._shadow) { DomUtil.setPosition(this._shadow, pos); } this._zIndex = pos.y + this.options.zIndexOffset; this._resetZIndex(); }, _updateZIndex: function (offset) { this._icon.style.zIndex = this._zIndex + offset; }, _animateZoom: function (opt) { var pos = this._map._latLngToNewLayerPoint(this._latlng, opt.zoom, opt.center).round(); this._setPos(pos); }, _initInteraction: function () { if (!this.options.interactive) { return; } DomUtil.addClass(this._icon, 'leaflet-interactive'); this.addInteractiveTarget(this._icon); if (MarkerDrag) { var draggable = this.options.draggable; if (this.dragging) { draggable = this.dragging.enabled(); this.dragging.disable(); } this.dragging = new MarkerDrag(this); if (draggable) { this.dragging.enable(); } } }, // @method setOpacity(opacity: Number): this // Changes the opacity of the marker. setOpacity: function (opacity) { this.options.opacity = opacity; if (this._map) { this._updateOpacity(); } return this; }, _updateOpacity: function () { var opacity = this.options.opacity; DomUtil.setOpacity(this._icon, opacity); if (this._shadow) { DomUtil.setOpacity(this._shadow, opacity); } }, _bringToFront: function () { this._updateZIndex(this.options.riseOffset); }, _resetZIndex: function () { this._updateZIndex(0); }, _getPopupAnchor: function () { return this.options.icon.options.popupAnchor || [0, 0]; }, _getTooltipAnchor: function () { return this.options.icon.options.tooltipAnchor || [0, 0]; } }); // factory L.marker(latlng: LatLng, options? : Marker options) // @factory L.marker(latlng: LatLng, options? : Marker options) // Instantiates a Marker object given a geographical point and optionally an options object. export function marker(latlng, options) { return new Marker(latlng, options); }
{ "content_hash": "6625f4ad883f8359b5612858bb6e660c", "timestamp": "", "source": "github", "line_count": 354, "max_line_length": 236, "avg_line_length": 23.672316384180792, "alnum_prop": 0.6607398568019093, "repo_name": "laurengulland/009yellow-beacon", "id": "dc71262413c093daffc934e98f30441a6f7c9758", "size": "8380", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "v3_Final/leaflet_test/leaflet/src/layer/marker/Marker.js", "mode": "33188", "license": "mit", "language": [ { "name": "Arduino", "bytes": "357115" }, { "name": "C", "bytes": "171890" }, { "name": "C++", "bytes": "430809" }, { "name": "CSS", "bytes": "235575" }, { "name": "CoffeeScript", "bytes": "38416" }, { "name": "Elixir", "bytes": "391" }, { "name": "HTML", "bytes": "1343864" }, { "name": "JavaScript", "bytes": "1232561" }, { "name": "Makefile", "bytes": "5353" }, { "name": "Processing", "bytes": "78919" }, { "name": "Python", "bytes": "106697" }, { "name": "Shell", "bytes": "588" }, { "name": "TypeScript", "bytes": "5111" }, { "name": "Visual Basic", "bytes": "1076" }, { "name": "XSLT", "bytes": "2042" } ], "symlink_target": "" }
var terminalContainer = document.getElementById('terminal-container'), term = new Terminal(), shellprompt = '> '; term.open(terminalContainer); term.fit(); term.prompt = function () { term.write('\r\n' + shellprompt); }; term.writeln('Welcome to xterm.js'); term.writeln('Just type some keys in the prompt below.'); term.writeln(''); term.prompt(); term.on('key', function (key, ev) { var printable = (!ev.altKey && !ev.altGraphKey && !ev.ctrlKey && !ev.metaKey); if (ev.keyCode == 13) { term.prompt(); } else if (ev.keyCode == 8) { /* * Do not delete the prompt */ if (term.x > 2) { term.write('\b \b'); } } else if (printable) { term.write(key); } });
{ "content_hash": "f15ba3658e40d2d8469a88bbe29f6458", "timestamp": "", "source": "github", "line_count": 32, "max_line_length": 80, "avg_line_length": 22.34375, "alnum_prop": 0.5958041958041959, "repo_name": "rwos/xterm.js", "id": "d9bc9284fe218bd6ee2850e8083de036fc1199d7", "size": "715", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "demo/main.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "33059" }, { "name": "HTML", "bytes": "4911" }, { "name": "JavaScript", "bytes": "160096" } ], "symlink_target": "" }
<?php require_once 'unit/SyndNodeTestCase.class.inc'; class _model_Node_Interface extends SyndNodeTestCase { function testEncodeIP() { $interface = SyndNodeLib::factory('interface'); $interface->setIpAddress('192.168.1.1'); $expected = 'c0a80101'; $this->assertEquals($expected, dechex($interface->data['INFO_IP_ENCODED'])); $interface = SyndNodeLib::factory('interface'); $interface->merge(array('INFO_IP_ADDRESS' => '192.168.1.1')); $expected = 3232235777; $this->assertEquals($expected, $interface->data['INFO_IP_ENCODED']); } }
{ "content_hash": "847f27f10216cdfbf1de5ff43d77cbfa", "timestamp": "", "source": "github", "line_count": 16, "max_line_length": 78, "avg_line_length": 34.5625, "alnum_prop": 0.7034358047016275, "repo_name": "mikljohansson/syndicate", "id": "a1f31b34e8b559b344487bfce3d04bbe46f78d74", "size": "553", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "unit/model/node/Interface.php", "mode": "33188", "license": "mit", "language": [ { "name": "C#", "bytes": "45323" }, { "name": "CSS", "bytes": "30510" }, { "name": "HTML", "bytes": "21023" }, { "name": "JavaScript", "bytes": "160010" }, { "name": "PHP", "bytes": "2813504" }, { "name": "PostScript", "bytes": "362" }, { "name": "Shell", "bytes": "20534" } ], "symlink_target": "" }
package com.bumptech.glide.resize.load; import static com.google.common.truth.Truth.assertThat; import static org.junit.Assert.assertEquals; import com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool; import com.bumptech.glide.load.engine.bitmap_recycle.LruArrayPool; import com.bumptech.glide.load.resource.bitmap.DefaultImageHeaderParser; import com.bumptech.glide.testutil.TestResourceUtil; import java.io.IOException; import java.io.InputStream; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.robolectric.RobolectricTestRunner; import org.robolectric.annotation.Config; @RunWith(RobolectricTestRunner.class) @Config(manifest = Config.NONE, sdk = 18) public class ExifTest { private ArrayPool byteArrayPool; private InputStream open(String imageName) { return TestResourceUtil.openResource(getClass(), "exif-orientation-examples/" + imageName); } private void assertOrientation(String filePrefix, int expectedOrientation) { InputStream is = null; try { is = open(filePrefix + "_" + expectedOrientation + ".jpg"); assertEquals(new DefaultImageHeaderParser().getOrientation(is, byteArrayPool), expectedOrientation); } catch (IOException e) { throw new RuntimeException(e); } finally { if (is != null) { try { is.close(); } catch (IOException e) { // Do nothing. } } } } @Before public void setUp() { byteArrayPool = new LruArrayPool(); } @Test public void testIssue387() throws IOException { InputStream is = TestResourceUtil.openResource(getClass(), "issue387_rotated_jpeg.jpg"); assertThat(new DefaultImageHeaderParser().getOrientation(is, byteArrayPool)).isEqualTo(6); } @Test public void testLandscape() throws IOException { for (int i = 1; i <= 8; i++) { assertOrientation("Landscape", i); } } @Test public void testPortrait() throws IOException { for (int i = 1; i <= 8; i++) { assertOrientation("Portrait", i); } } @Test public void testHandlesInexactSizesInByteArrayPools() { for (int i = 1; i <= 8; i++) { byteArrayPool.put(new byte[ArrayPool.STANDARD_BUFFER_SIZE_BYTES]); assertOrientation("Portrait", i); } for (int i = 1; i <= 8; i++) { byteArrayPool.put(new byte[ArrayPool.STANDARD_BUFFER_SIZE_BYTES]); assertOrientation("Landscape", i); } } }
{ "content_hash": "f48800b776f5357c804e1e4c5fad39d4", "timestamp": "", "source": "github", "line_count": 83, "max_line_length": 95, "avg_line_length": 29.46987951807229, "alnum_prop": 0.6913327882256746, "repo_name": "weiwenqiang/GitHub", "id": "1efd9b736a64c469b145100507809cc252e1059f", "size": "2446", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "expert/glide/library/src/test/java/com/bumptech/glide/resize/load/ExifTest.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "87" }, { "name": "C", "bytes": "42062" }, { "name": "C++", "bytes": "12137" }, { "name": "CMake", "bytes": "202" }, { "name": "CSS", "bytes": "75087" }, { "name": "Clojure", "bytes": "12036" }, { "name": "FreeMarker", "bytes": "21704" }, { "name": "Groovy", "bytes": "55083" }, { "name": "HTML", "bytes": "61549" }, { "name": "Java", "bytes": "42222825" }, { "name": "JavaScript", "bytes": "216823" }, { "name": "Kotlin", "bytes": "24319" }, { "name": "Makefile", "bytes": "19490" }, { "name": "Perl", "bytes": "280" }, { "name": "Prolog", "bytes": "1030" }, { "name": "Python", "bytes": "13032" }, { "name": "Scala", "bytes": "310450" }, { "name": "Shell", "bytes": "27802" } ], "symlink_target": "" }
<?xml version="1.0" encoding="EUC-KR"?> <!-- edited with XMLSpy v2006 U (http://www.altova.com) by ÀÌÁ¤Çö (EMBRACE) --> <!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by IMC_GE (IMCGames Co., Ltd) --> <uiframe name="<$>66716</>" class="mwr2a3" x="0" y="0" width="785" height="420" align="center center" drawtitlebar="true" enablehide="false"> <labelbox name="bg" rect="5 30 775 385"/> <text name="Title_Time" caption="<$>66717</>" rect="125 70 10 10" fontname="white_gray_13_ol"/> <timer name="Time" caption="%s" param1="remain_time" target="Title_Time" alignx="right" aligny="center" rect="5 0 10 10" font="white_11_ol"/> <text name="Title_Name" caption="%s" param1="gamename" rect="20 40 10 10" fontname="white_gray_18_ol"/> <imgbutton name="gotoblue" rect="43 95 152 41" img="\skin\button.tga" imgrect="0 0 152 41" LBtnUpScp="RoomSelectTeam(0)"/> <text name="Title_Blue" caption="<$>27455</>" parent="gotoblue" alignx="center" aligny="center" rect="0 0 10 10" fontname="brightsky20_ol"/> <text name="Title_Blue1" caption="1" rect="25 143 10 10" fontname="bright_brown_12_ol"/> <text name="Title_Blue2" caption="2" rect="25 164 10 10" fontname="bright_brown_12_ol"/> <text name="Title_Blue3" caption="3" rect="25 185 10 10" fontname="bright_brown_12_ol"/> <droplist name="slot_1_1" rect="42 140 200 21" SelectScp="ROOM_CHANGE_SLOT_STATE"/> <droplist name="slot_1_2" rect="42 161 200 21" SelectScp="ROOM_CHANGE_SLOT_STATE"/> <droplist name="slot_1_3" rect="42 182 200 21" SelectScp="ROOM_CHANGE_SLOT_STATE"/> <imgbutton name="gotoyellow" rect="43 250 152 41" img="\skin\button.tga" imgrect="0 293 152 41" LBtnUpScp="RoomSelectTeam(1)"/> <text name="Title_yellow" caption="<$>66721</>" parent="gotoyellow" alignx="center" aligny="center" rect="0 0 10 10" fontname="dirtyyellow20_ol"/> <text name="Title_Yellow1" caption="1" rect="25 297 10 10" fontname="bright_brown_12_ol"/> <text name="Title_Yellow2" caption="2" rect="25 320 10 10" fontname="bright_brown_12_ol"/> <text name="Title_Yellow3" caption="3" rect="25 341 10 10" fontname="bright_brown_12_ol"/> <droplist name="slot_2_1" rect="42 294 200 21" SelectScp="ROOM_CHANGE_SLOT_STATE"/> <droplist name="slot_2_2" rect="42 317 200 21" SelectScp="ROOM_CHANGE_SLOT_STATE"/> <droplist name="slot_2_3" rect="42 338 200 21" SelectScp="ROOM_CHANGE_SLOT_STATE"/> <labelbox name="chathisbg" rect="260 40 240 364"/> <labelbox name="chatbg" rect="260 328 240 18"/> <chathis name="chathis" rect="260 40 240 346" transparent="false"/> <chatedit name="missionchat" rect="260 387 240 16"/> <picture name="mapimage" rect="515 40 256 256" image="blank" imgrect="0 0 256 256"/> <labelbox name="tooltipbg" rect="515 300 256 65"/> <chathis name="tooltiphis" rect="515 300 256 65" transparent="false"/> <imgbutton name="Go" rect="-146 -12 125 41" alignx="right" aligny="bottom" img="\skin\button.tga" imgrect="0 437 125 41" LBtnUpScp="ROOM_START_MISSION"/> <text name="Title_Go" caption="<$>66720</>" parent="Go" alignx="center" aligny="center" rect="0 0 10 10" fontname="white_gray_18_ol"/> <imgbutton name="EXIT" rect="-15 -12 125 41" alignx="right" aligny="bottom" img="\skin\button.tga" imgrect="0 437 125 41" LBtnUpScp="ROOM_EXIT"/> <text name="Title_EXIT" caption="<$>66658</>" parent="EXIT" alignx="center" aligny="center" rect="0 0 10 10" fontname="white_gray_18_ol"/> <imgbutton name="Ready" rect="-145 -12 125 41" alignx="right" aligny="bottom" img="\skin\button.tga" imgrect="0 437 125 41" LBtnUpScp="ROOM_READY"/> <text name="Title_Ready" caption="<$>140386</>" parent="Ready" alignx="center" aligny="center" rect="0 0 10 10" fontname="white_gray_18_ol"/> <tooltip name="gotoblue_tip" parent="gotoblue" caption="<$>66722</>" width="256"/> <tooltip name="gotoyellow_tip" parent="gotoyellow" caption="<$>66723</>" width="256"/> <setfocus name="missionchat"/> </uiframe>
{ "content_hash": "798d65b65efd55d65729983ba94b1c3d", "timestamp": "", "source": "github", "line_count": 41, "max_line_length": 157, "avg_line_length": 96.8780487804878, "alnum_prop": 0.6701913393756294, "repo_name": "huytrongnguyen/royal-road", "id": "4e24082b7bb436ece41e78f11f2ccd9f70ee3ec1", "size": "3972", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/RoyalRoad.Resources/uixml/mwr2a3.xml", "mode": "33188", "license": "mit", "language": [ { "name": "C#", "bytes": "67494" }, { "name": "CSS", "bytes": "12259" }, { "name": "JavaScript", "bytes": "71347" } ], "symlink_target": "" }
from pyduel_engine.content.default_squads import SQUADS from pyduel_engine.model.squad import Squad ############################################################################### # Squad and Character Setup Methods ############################################################################### def create_deck(cards, owner): for card in cards: card.owner = owner card.print_card(True) return cards def character_initializer(char, side): char.side = side char.deck = create_deck(char.deck, char.type) return char def setup_squad(player_number, char_type, side): """Builds squads""" chars = SQUADS[char_type] for index, char in enumerate(chars): character_initializer(char, side) if index > 0: char.name = "{0} {1}".format(char.name, index) squad = Squad({'player_num': player_number, 'side': side, 'chars': chars, 'deck': chars[0].deck + chars[1].deck}) return squad if __name__ == '__main__': from pyduel_engine.content.engine_states import SqState from pyduel_engine.epic_plugin.epic_states import Main test = setup_squad(1, Main.mace, SqState.dark) print(test.json_format()) print(test.chars[0]) print(test.chars[1]) print(test.chars[2])
{ "content_hash": "d420c1de373eb00dbeb9914fa258a487", "timestamp": "", "source": "github", "line_count": 41, "max_line_length": 79, "avg_line_length": 31.70731707317073, "alnum_prop": 0.5592307692307692, "repo_name": "aelkikhia/pyduel_engine", "id": "d29bd814744355a910982a4eb9d55ce01c01c2bc", "size": "1301", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "pyduel_engine/utilities/squad_utilities.py", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Python", "bytes": "246950" } ], "symlink_target": "" }
#ifndef __VIDEO_EMAP_CAM_H__ #define __VIDEO_EMAP_CAM_H__ #include <QWidget> #include <QMenu> #include <QTimer> #include "utility.hpp" #include "client/clientfactory.hpp" #define NOMINMAX #define NOMINMAX #include "tinythread.h" #include "fast_mutex.h" #include "utility.hpp" #include "ui_vscemapcam.h" using namespace tthread; class VSCEmapCam : public QWidget { Q_OBJECT public: VSCEmapCam(VidEmapCamera &cCam, ClientFactory &pFactory, QWidget *parent = 0, Qt::WindowFlags flags = 0); ~VSCEmapCam(); void contextMenuEvent(QContextMenuEvent* e); void mousePressEvent(QMouseEvent *event); void DragCommon(); void OnDeviceEvent(int deviceId, int type); public slots: void PlayVideo(); void PlaybackVideo(); void EmapDelete(); void DragEmap(); void showAlarm(); signals: void signalFocus(); void EmapCamDel(std::string strCam); public: Ui::VSCEmapCam ui; private: bool m_isRunning; ClientFactory &m_pFactory; VidEmapCamera m_cCam; QAction *m_pDelete; QAction *m_pPlay; QAction *m_pPlayback; QTimer *m_TimerAlarm; bool m_alarm; int m_alarmCnt; }; #endif // __VIDEO_EMAP_CAM_H__
{ "content_hash": "bfb8c029632c98b9a0f3aa99b804447b", "timestamp": "", "source": "github", "line_count": 59, "max_line_length": 106, "avg_line_length": 18.89830508474576, "alnum_prop": 0.7282511210762331, "repo_name": "xsmart/opencvr", "id": "f52278efc97a11dd6a0af75910060250909c8fd6", "size": "2041", "binary": false, "copies": "3", "ref": "refs/heads/master", "path": "veuilib/src/emap/vscemapcam.h", "mode": "33188", "license": "mit", "language": [ { "name": "Batchfile", "bytes": "22997" }, { "name": "C", "bytes": "52278" }, { "name": "C++", "bytes": "2433166" }, { "name": "CSS", "bytes": "1156" }, { "name": "JavaScript", "bytes": "13654" }, { "name": "Makefile", "bytes": "3705541" }, { "name": "Objective-C", "bytes": "1821" }, { "name": "Prolog", "bytes": "2697" }, { "name": "Protocol Buffer", "bytes": "5494" }, { "name": "Python", "bytes": "18441" }, { "name": "QMake", "bytes": "12789" }, { "name": "Shell", "bytes": "4704" } ], "symlink_target": "" }
""" This module implements a :class:`skosprovider.providers.VocabularyProvider` for Atramhasis """ import logging import requests from dogpile.cache import make_region from requests.exceptions import ConnectionError from requests.exceptions import Timeout from skosprovider.exceptions import ProviderUnavailableException from skosprovider.providers import VocabularyProvider from skosprovider.skos import ConceptScheme from skosprovider.skos import Label from skosprovider.skos import Note from skosprovider.skos import dict_to_source from skosprovider_atramhasis.cache_utils import _cache_on_arguments from skosprovider_atramhasis.utils import dict_to_thing log = logging.getLogger(__name__) class AtramhasisProvider(VocabularyProvider): """A provider that can work with the Atramhasis REST services""" base_url = None '''Base URL of an Atramhasis instance.''' scheme_id = None '''Identifier of the ConceptScheme this provider is managing.''' session = None ''' The :class:`requests.Session` being used to make HTTP requests. ''' # noinspection PyMissingConstructor # intentionally does not call super. def __init__(self, metadata, **kwargs): """Create a new AtramhasisProvider :param (dict) metadata: metadata of the provider :param kwargs: arguments defining the provider. * `base_url` and `scheme_id` are required. * `session` is optional and can be used to pass a custom :class:`requests.Session`, eg. to configure caching strategies. * `cache_config` is an optional dict. Only keys starting with "cache." are relevant. """ if 'subject' not in metadata: metadata['subject'] = [] if 'uri' not in metadata: log.warning( "AtramhasisProvider: 'uri' is not present in the metadata. " "This will result in a http call to fetch the conceptscheme " "and extract the uri." ) self.metadata = metadata self._conceptscheme = None self.allowed_instance_scopes = kwargs.get( 'allowed_instance_scopes', ['single', 'threaded_thread'] ) if 'base_url' in kwargs: self.base_url = kwargs['base_url'] else: raise ValueError("Please provide a base_url for the provider") if 'scheme_id' in kwargs: self.scheme_id = kwargs['scheme_id'] else: raise ValueError("Please provide a scheme_id for the provider") if 'session' in kwargs: self.session = kwargs['session'] else: self.session = requests.Session() self.caches = { 'cache': make_region() } if not self.caches['cache'].is_configured: self.caches['cache'].configure_from_config( kwargs.get( 'cache_config', {'cache.backend': 'dogpile.cache.null'} ), prefix='cache.' ) @property def concept_scheme(self): if self._conceptscheme is None: self._conceptscheme = self._get_concept_scheme() return self._conceptscheme def _get_concept_scheme(self): request = f'{self.base_url}/conceptschemes/{self.scheme_id}' response = self._request(request, {'Accept': 'application/json'}) if response.status_code == 404: raise ProviderUnavailableException( "Conceptscheme %s not found. Check your configuration." % request ) cs = response.json() return ConceptScheme( cs['uri'], labels=[ Label( label.get('label', '<no label>'), label.get('type', 'prefLabel'), label.get('language', 'und'), ) for label in cs['labels'] ], notes=[ Note( note.get('note', '<no note>'), note.get('type', 'note'), note.get('language', 'und'), note.get('markup'), ) for note in cs['notes'] ], sources=[dict_to_source(s) for s in cs['sources']], languages=cs['languages'] ) @_cache_on_arguments(cache_name='cache') def get_by_id(self, id_): request = f'{self.base_url}/conceptschemes/{self.scheme_id}/c/{id_}' response = self._request(request, {'Accept': 'application/json'}) if response.status_code == 404: return False answer = dict_to_thing(response.json()) return answer @_cache_on_arguments(cache_name='cache') def get_by_uri(self, uri): request = f'{self.base_url}/uris' params = {'uri': uri} response = self._request(request, {'Accept': 'application/json'}, params) if response.status_code == 404: return False if response.json()['concept_scheme']['id'] != self.scheme_id: return False return self.get_by_id(response.json()['id']) @_cache_on_arguments(cache_name='cache') def find(self, query, **kwargs): # interprete and validate query parameters params = {'language': self._get_language(**kwargs)} params.update(self._get_sort_params(**kwargs)) # Label if 'label' in query: params['label'] = query['label'] # Type: 'collection' or 'concept' or 'all' if 'type' in query and query['type'] in ['concept', 'collection']: params['type'] = query['type'] # Collection to search in (optional) if 'collection' in query: collection = query['collection'] if 'id' not in collection: raise ValueError( "collection: 'id' is required key if a collection-dictionary is given" ) params['collection'] = collection['id'] if 'depth' in collection and collection['depth'] != 'all': raise ValueError( "collection - 'depth': only 'all' is supported by Atramhasis" ) # Match if 'matches' in query: match_uri = query['matches'].get('uri', None) if not match_uri: raise ValueError('Please provide a URI to match with.') else: params['match'] = match_uri match_type = query['matches'].get('type', None) if match_type: params['match_type'] = match_type search_url = f'{self.base_url}/conceptschemes/{self.scheme_id}/c/' response = self._request(search_url, {'Accept': 'application/json'}, params) if response.status_code == 404: return False return response.json() @_cache_on_arguments(cache_name='cache') def get_all(self, **kwargs): request = f'{self.base_url}/conceptschemes/{self.scheme_id}/c/' params = {'language': self._get_language(**kwargs)} params.update(self._get_sort_params(**kwargs)) response = self._request(request, {'Accept': 'application/json'}, params) if response.status_code == 404: return False return response.json() @_cache_on_arguments(cache_name='cache') def get_top_concepts(self, **kwargs): request = f'{self.base_url}/conceptschemes/{self.scheme_id}/topconcepts' params = {'language': self._get_language(**kwargs)} params.update(self._get_sort_params(**kwargs)) response = self._request(request, {'Accept': 'application/json'}, params) if response.status_code == 404: return False return response.json() @_cache_on_arguments(cache_name='cache') def get_top_display(self, **kwargs): request = f'{self.base_url}/conceptschemes/{self.scheme_id}/displaytop' params = {'language': self._get_language(**kwargs)} params.update(self._get_sort_params(**kwargs)) response = self._request(request, {'Accept': 'application/json'}, params) if response.status_code == 404: return False return response.json() @_cache_on_arguments(cache_name='cache') def get_children_display(self, id_, **kwargs): request = ( f'{self.base_url}/conceptschemes/{self.scheme_id}/c/{id_}/displaychildren' ) params = dict() params['language'] = self._get_language(**kwargs) params.update(self._get_sort_params(**kwargs)) response = self._request(request, {'Accept': 'application/json'}, params) if response.status_code == 404: return False return response.json() @_cache_on_arguments(cache_name='cache') def expand(self, id_): request = f'{self.base_url}/conceptschemes/{self.scheme_id}/c/{id_}/expand' response = self._request(request, {'Accept': 'application/json'}) if response.status_code != 200: return False return response.json() def _get_sort_params(self, **kwargs): if 'sort' in kwargs: sort = kwargs.get('sort') if kwargs.get('sort_order', 'asc') == 'desc': sort = '-' + sort return {'sort': sort} return {} def _request(self, request, headers=None, params=None): response = None for _ in range(5): try: response = self.session.get( request, headers=headers, params=params, timeout=10 ) except (ConnectionError, Timeout) as e: log.debug(f"Failed to execute request {request}: {e}") continue if response.status_code >= 500: log.debug(f"Failed to execute request {request}: {response}") continue return response raise ProviderUnavailableException( f"Request could not be rexecuted - " f"Request: {request} - Response: {response}" )
{ "content_hash": "08d0b199abb032c86cbb33e994a38131", "timestamp": "", "source": "github", "line_count": 267, "max_line_length": 90, "avg_line_length": 37.95880149812734, "alnum_prop": 0.5708929452392698, "repo_name": "OnroerendErfgoed/skosprovider_atramhasis", "id": "e7afa69d79ad2df070f05204fca72318dd4b3c1a", "size": "10135", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "skosprovider_atramhasis/providers.py", "mode": "33188", "license": "mit", "language": [ { "name": "Python", "bytes": "85871" } ], "symlink_target": "" }
<?php namespace Drupal\search\Plugin; use Drupal\Component\Plugin\PluginInspectionInterface; use Drupal\Core\Form\FormStateInterface; /** * Defines a common interface for all SearchPlugin objects. */ interface SearchInterface extends PluginInspectionInterface { /** * Sets the keywords, parameters, and attributes to be used by execute(). * * @param string $keywords * The keywords to use in a search. * @param array $parameters * Array of parameters as an associative array. This is expected to * be the query string from the current request. * @param array $attributes * Array of attributes, usually from the current request object. * * @return $this * A search plugin object for chaining. */ public function setSearch($keywords, array $parameters, array $attributes); /** * Returns the currently set keywords of the plugin instance. * * @return string * The keywords. */ public function getKeywords(); /** * Returns the current parameters set using setSearch(). * * @return array * The parameters. */ public function getParameters(); /** * Returns the currently set attributes (from the request). * * @return array * The attributes. */ public function getAttributes(); /** * Verifies if the values set via setSearch() are valid and sufficient. * * @return bool * TRUE if the search settings are valid and sufficient to execute a search, * and FALSE if not. */ public function isSearchExecutable(); /** * Returns the search index type this plugin uses. * * @return string|null * The type used by this search plugin in the search index, or NULL if this * plugin does not use the search index. * * @see \Drupal\search\SearchIndexInterface::index() * @see \Drupal\search\SearchIndexInterface::clear() */ public function getType(); /** * Executes the search. * * @return array * A structured list of search results. */ public function execute(); /** * Executes the search and builds render arrays for the result items. * * @return array * An array of render arrays of search result items (generally each item * has '#theme' set to 'search_result'), or an empty array if there are no * results. */ public function buildResults(); /** * Provides a suggested title for a page of search results. * * @return string * The translated suggested page title. */ public function suggestedTitle(); /** * Returns the searching help. * * @return array * Render array for the searching help. */ public function getHelp(); /** * Alters the search form when being built for a given plugin. * * The core search module only invokes this method on active module plugins * when building a form for them in * \Drupal\search\Form\SearchPageForm::buildForm(). A plugin implementing this * will also need to implement the buildSearchUrlQuery() method. * * @param array $form * Nested array of form elements that comprise the form. * @param \Drupal\Core\Form\FormStateInterface $form_state * The current state of the form. The arguments that * \Drupal::formBuilder()->getForm() was originally called with are * available in the array $form_state->getBuildInfo()['args']. * * @see SearchInterface::buildSearchUrlQuery() */ public function searchFormAlter(array &$form, FormStateInterface $form_state); /** * Builds the URL GET query parameters array for search. * * When the search form is submitted, a redirect is generated with the * search input as GET query parameters. Plugins using the searchFormAlter() * method to add form elements to the search form will need to override this * method to gather the form input and add it to the GET query parameters. * * @param \Drupal\Core\Form\FormStateInterface $form_state * The form state, with submitted form information. * * @return array * An array of GET query parameters containing all relevant form values * to process the search. The 'keys' element must be present in order to * trigger generation of search results, even if it is empty or unused by * the search plugin. * * @see SearchInterface::searchFormAlter() */ public function buildSearchUrlQuery(FormStateInterface $form_state); /** * Returns whether or not search results should be displayed in admin theme. * * @return bool * TRUE if search results should be displayed in the admin theme, and FALSE * otherwise. * * @see \Drupal\search\Annotation\SearchPlugin::$use_admin_theme */ public function usesAdminTheme(); }
{ "content_hash": "bddfdbc4facc835f84fc03d26b80e88e", "timestamp": "", "source": "github", "line_count": 159, "max_line_length": 80, "avg_line_length": 29.89937106918239, "alnum_prop": 0.6825830879259571, "repo_name": "electric-eloquence/fepper-drupal", "id": "3dee690ff384151f720674bee503b1bc9831000d", "size": "4754", "binary": false, "copies": "11", "ref": "refs/heads/dev", "path": "backend/drupal/core/modules/search/src/Plugin/SearchInterface.php", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "2300765" }, { "name": "HTML", "bytes": "68444" }, { "name": "JavaScript", "bytes": "2453602" }, { "name": "Mustache", "bytes": "40698" }, { "name": "PHP", "bytes": "41684915" }, { "name": "PowerShell", "bytes": "755" }, { "name": "Shell", "bytes": "72896" }, { "name": "Stylus", "bytes": "32803" }, { "name": "Twig", "bytes": "1820730" }, { "name": "VBScript", "bytes": "466" } ], "symlink_target": "" }
package org.gradle.workers; import org.gradle.api.Incubating; /** * Isolation mode for workers. * * @since 4.0 */ @Incubating public enum IsolationMode { /** * Let Gradle decide, this is the default. */ AUTO, /** * Don't attempt to isolate the work, use in-process workers. */ NONE, /** * Isolate the work in it's own classloader, use in-process workers. */ CLASSLOADER, /** * Isolate the work in a separate process, use out-of-process workers. */ PROCESS }
{ "content_hash": "524ffea6587f03e8cf9a12dd5b14fe08", "timestamp": "", "source": "github", "line_count": 30, "max_line_length": 74, "avg_line_length": 17.933333333333334, "alnum_prop": 0.6003717472118959, "repo_name": "lsmaira/gradle", "id": "34cd438a8ae593a416fc28be041800de5b9ff326", "size": "1153", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "subprojects/workers/src/main/java/org/gradle/workers/IsolationMode.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Assembly", "bytes": "277" }, { "name": "Brainfuck", "bytes": "54" }, { "name": "C", "bytes": "98577" }, { "name": "C++", "bytes": "1805943" }, { "name": "CSS", "bytes": "169594" }, { "name": "CoffeeScript", "bytes": "620" }, { "name": "GAP", "bytes": "424" }, { "name": "Gherkin", "bytes": "191" }, { "name": "Groovy", "bytes": "23143304" }, { "name": "HTML", "bytes": "90514" }, { "name": "Java", "bytes": "22751766" }, { "name": "JavaScript", "bytes": "206201" }, { "name": "Kotlin", "bytes": "661239" }, { "name": "Objective-C", "bytes": "840" }, { "name": "Objective-C++", "bytes": "441" }, { "name": "Perl", "bytes": "37849" }, { "name": "Python", "bytes": "57" }, { "name": "Ruby", "bytes": "16" }, { "name": "Scala", "bytes": "27838" }, { "name": "Shell", "bytes": "6768" }, { "name": "XSLT", "bytes": "58117" } ], "symlink_target": "" }
<?xml version='1.0' encoding='UTF-8'?> <hudson> <disabledAdministrativeMonitors/> <version>1.609.2</version> <numExecutors>4</numExecutors> <mode>NORMAL</mode> <useSecurity>true</useSecurity> <authorizationStrategy class="hudson.security.AuthorizationStrategy$Unsecured"/> <securityRealm class="hudson.security.SecurityRealm$None"/> <disableRememberMe>false</disableRememberMe> <projectNamingStrategy class="jenkins.model.ProjectNamingStrategy$DefaultProjectNamingStrategy"/> <workspaceDir>${ITEM_ROOTDIR}/workspace</workspaceDir> <buildsDir>${ITEM_ROOTDIR}/builds</buildsDir> <jdks/> <viewsTabBar class="hudson.views.DefaultViewsTabBar"/> <myViewsTabBar class="hudson.views.DefaultMyViewsTabBar"/> <clouds/> <quietPeriod>1</quietPeriod> <scmCheckoutRetryCount>0</scmCheckoutRetryCount> <views> <hudson.model.AllView> <owner class="hudson" reference="../../.."/> <name>All</name> <filterExecutors>false</filterExecutors> <filterQueue>false</filterQueue> <properties class="hudson.model.View$PropertyList"/> </hudson.model.AllView> </views> <primaryView>All</primaryView> <slaveAgentPort>50000</slaveAgentPort> <label></label> <nodeProperties/> <globalNodeProperties/> </hudson>
{ "content_hash": "ab1df0011e289c34dcb2d245daf11760", "timestamp": "", "source": "github", "line_count": 34, "max_line_length": 99, "avg_line_length": 37.14705882352941, "alnum_prop": 0.7379255740300871, "repo_name": "svanoort/gerrit-workflow-demo", "id": "9c94021cd118c01d5cd8d8fc9f43a018b0f99596", "size": "1263", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "jenkins/jenkins_home/config.xml", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Groovy", "bytes": "5545" }, { "name": "Java", "bytes": "3747" }, { "name": "Shell", "bytes": "2432" } ], "symlink_target": "" }
<?php use_helper('Text'); use_helper('Pagination'); slot('page_type', 'post/index'); slot('robots', 'noindex, follow'); // fix for locales setlocale(LC_ALL, sfConfig::get('app_view_locale', null)); ?> <?php if ($searchQuery = sfContext::getInstance()->getRequest()->getGetParameter('query')) : ?> <div class="row"><div class="span12"> <h1> <?php echo __('Your Search for'); ?> <em><?php echo $searchQuery; ?></em> <small><?php echo sizeof($posts); ?> <?php echo __('results'); ?></small> </h1> </div></div> <?php endif; ?> <?php if ($archive = sfContext::getInstance()->getRequest()->getGetParameter('year')) : ?> <div class="row"><div class="span12"> <h1> <?php echo __('Archive for'); ?> <?php echo $archive; ?> </h1> </div></div> <?php endif; ?> <?php // posts if (empty($posts) || sizeof($posts) == 0) { ?> <div class="alert alert-error"> <p><strong><?php echo __('No posts found.'); ?></strong> <?php echo __('It seemes no posts match your criteria. Reasons may be'); ?></p> <ul> <li><?php echo __('You have selected an archive with no posts. I promise to write more in the future!'); ?></li> <li><?php echo __('There are no posts matching your search criteria. Just ask me to write about the topic you are such curious about!'); ?></li> </ul> <div class="alert-actions"> <a class="btn small" href="<?php echo url_for('post/index'); ?>"><?php echo __('Return to index'); ?></a> </div> </div> <?php } else { $rowItems = 0; foreach ($posts as $post) { if ($post->isMicropost()) { if ($rowItems == 0) { echo '<div class="row">'; } if ($rowItems == 2) { $rowItems = 0; echo '</div><div class="row">'; } $rowItems++; echo '<div class="span6 micropost" id="post-'.$post->getId().'">'; include_partial('post', array('post' => $post)); include_partial('meta', array('post' => $post)); echo '</div>'; } else { if ($rowItems > 0) { $rowItems = 0; echo '</div>'; } echo '<div class="row"><div class="span12 post" id="post-'.$post->getId().'">'; include_partial('post', array('post' => $post)); include_partial('meta', array('post' => $post)); echo '</div></div>'; } } } ?> <br clear="both" />
{ "content_hash": "ed9d26929cd03a648f3bd20ccfe8c5b3", "timestamp": "", "source": "github", "line_count": 80, "max_line_length": 156, "avg_line_length": 33.3375, "alnum_prop": 0.4746906636670416, "repo_name": "acetous/NeatBlog", "id": "c7a8373c423ef4418f742e0a2b68956d0d3b7972", "size": "2667", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "themes/modern/frontend/post/indexSuccess.php", "mode": "33188", "license": "mit", "language": [ { "name": "JavaScript", "bytes": "794536" }, { "name": "PHP", "bytes": "121184" } ], "symlink_target": "" }
layout: post title: Welcome date: 2015-07-02 14:35 permalink: /post/welcome published: true share: y sitemap: lastmod: 2015-07-07 priority: 0.7 changefreq: 'monthly' exclude: 'no' --- ...to the newly updated sebie.net. It is built on with Jekyll and GitHub pages and can be edited by just changing the relevant files in the `source` branch. This is a near perfect solution for websites (like mine) that do not need their own server or VPS to run off. Before running Jekyll, I *tried* Ghost. It aims to be a simplistic blogging platform for those who do not want to manage a fully fledged website / blog or want to have it done quickly; By putting everything into a simplistic UI. Due to the fact that is runs of `node.js` you cannot just put on GitHub pages. People have made work-arounds for all Operating Systems (like [Buster](https://github.com/axitkhurana/buster)), but I didn't want to use that everytime I edited the website. [WordPress](https://wordpress.org) was used before Ghost and well even though the administrator inferface was *nice*, I am happy I switched away. The advantages over a staic generator like Jekyll are obvious, however the fear that it WordPress could get hacked whilst you were asleep or the chance that there would be *another* WordPress exploit was lurking around. <div class="a-c"><img alt="Kudos to you" src="https://media3.giphy.com/media/136dgbul9Tk8Rq/200.gif"><br> <i>Kudos to you, Jekyll!</i></div>
{ "content_hash": "53b219e28bb8430c5c0ee7561e6a57bd", "timestamp": "", "source": "github", "line_count": 21, "max_line_length": 481, "avg_line_length": 69.95238095238095, "alnum_prop": 0.7528931245745405, "repo_name": "sebie/sebie.github.io", "id": "73ee36a1b0faeb56fe767691a62f4682e0ea1eb1", "size": "1473", "binary": false, "copies": "2", "ref": "refs/heads/source", "path": "_posts/2015-07-02-welcome.md", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "23" }, { "name": "HTML", "bytes": "124" } ], "symlink_target": "" }
@interface ViewController () @property (nonatomic, strong) KYSegmentView * segment; @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; FirstViewController * First=[[FirstViewController alloc]init]; SecondViewController * Second=[[SecondViewController alloc]init]; ThirdViewController * Third=[[ThirdViewController alloc]init]; NSArray *controllers=@[First,Second,Third]; NSArray *titleArray =@[@"AddMoney",@"Mining",@"Withdraw"]; UIView *view1 = [[UIView alloc]init]; view1.backgroundColor = [UIColor greenColor]; UIView *view2 = [[UIView alloc]init]; view2.backgroundColor = [UIColor blueColor]; UIView *view3 = [[UIView alloc]init]; view3.backgroundColor = [UIColor orangeColor]; NSArray *headViews = @[view1,view2,view3]; CGRect rect = [UIScreen mainScreen].bounds; self.segment=[[KYSegmentView alloc]initWithFrame:CGRectMake(0, 0, rect.size.width, rect.size.height) controllers:controllers titleArray:titleArray headScrollVoews:headViews ParentController:self]; self.segment.backgroundColor = [UIColor greenColor]; [self.view addSubview:self.segment]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(SelectVCClick:) name:@"selectView" object:nil]; } - (void)SelectVCClick:(NSNotification *)not { UIButton * btn=not.object; NSLog(@"-=-=-=-=-=-%ld",(long)btn.tag); if (btn.tag == 1) { self.segment.backgroundColor = [UIColor greenColor]; }else if (btn.tag == 2){ self.segment.backgroundColor = [UIColor blueColor]; }else if (btn.tag == 3){ self.segment.backgroundColor = [UIColor orangeColor]; }else{} } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. } @end
{ "content_hash": "dcfe3f409adfc27006bdfcef013434fd", "timestamp": "", "source": "github", "line_count": 50, "max_line_length": 200, "avg_line_length": 36.68, "alnum_prop": 0.702835332606325, "repo_name": "KY-zero/KY_CircleFrame", "id": "4dbda1c3bdfd640feab0a3c9355b13393b29b5bc", "size": "2128", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "KYLinkageFrame/KYLinkageFrame/ViewController.m", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Objective-C", "bytes": "17129" } ], "symlink_target": "" }
from django.apps import AppConfig class ConsultaConfig(AppConfig): name = 'consulta'
{ "content_hash": "2d13848c70f5456ae1b49cec8b6c3c26", "timestamp": "", "source": "github", "line_count": 5, "max_line_length": 33, "avg_line_length": 18.2, "alnum_prop": 0.7582417582417582, "repo_name": "hugo-lorenzo-mato/meteo-galicia-db", "id": "4f3ec9f1ca6086736a3535321f7d334af5c0e1c4", "size": "91", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "django/www/MeteoGaliciaDB/consulta/apps.py", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "33" }, { "name": "CSS", "bytes": "9983" }, { "name": "HTML", "bytes": "36873" }, { "name": "JavaScript", "bytes": "8703" }, { "name": "Python", "bytes": "193967" } ], "symlink_target": "" }