text
stringlengths
2
1.04M
meta
dict
{% extends "base_new.html" %}
{ "content_hash": "12b5eecb5765024a96fd8898fca74bf6", "timestamp": "", "source": "github", "line_count": 1, "max_line_length": 29, "avg_line_length": 29, "alnum_prop": 0.6206896551724138, "repo_name": "nikkomidoy/project_soa", "id": "050cfc564ae3faf9ac6a743d530f70dd56651bb7", "size": "29", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "project_soa/templates/pages/home.html", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "1775" }, { "name": "HTML", "bytes": "57470" }, { "name": "JavaScript", "bytes": "68379" }, { "name": "Nginx", "bytes": "1095" }, { "name": "Python", "bytes": "63453" }, { "name": "Shell", "bytes": "6976" } ], "symlink_target": "" }
#include "unittest.h" // test another instantiation of RapidJSON in a different namespace #define RAPIDJSON_NAMESPACE my::rapid::json #define RAPIDJSON_NAMESPACE_BEGIN namespace my { namespace rapid { namespace json { #define RAPIDJSON_NAMESPACE_END } } } // include lots of RapidJSON files #include "rapidjson/document.h" #include "rapidjson/writer.h" #include "rapidjson/filereadstream.h" #include "rapidjson/filewritestream.h" #include "rapidjson/encodedstream.h" #include "rapidjson/stringbuffer.h" static const char json[] = "{\"hello\":\"world\",\"t\":true,\"f\":false,\"n\":null,\"i\":123,\"pi\":3.1416,\"a\":[1,2,3,4]}"; TEST(NamespaceTest,Using) { using namespace RAPIDJSON_NAMESPACE; typedef GenericDocument<UTF8<>, CrtAllocator> DocumentType; DocumentType doc; doc.Parse(json); EXPECT_TRUE(!doc.HasParseError()); } TEST(NamespaceTest,Direct) { typedef RAPIDJSON_NAMESPACE::Document Document; typedef RAPIDJSON_NAMESPACE::Reader Reader; typedef RAPIDJSON_NAMESPACE::StringStream StringStream; typedef RAPIDJSON_NAMESPACE::StringBuffer StringBuffer; typedef RAPIDJSON_NAMESPACE::Writer<StringBuffer> WriterType; StringStream s(json); StringBuffer buffer; WriterType writer(buffer); buffer.ShrinkToFit(); Reader reader; reader.Parse(s, writer); EXPECT_STREQ(json, buffer.GetString()); EXPECT_EQ(sizeof(json)-1, buffer.GetSize()); EXPECT_TRUE(writer.IsComplete()); Document doc; doc.Parse(buffer.GetString()); EXPECT_TRUE(!doc.HasParseError()); buffer.Clear(); writer.Reset(buffer); doc.Accept(writer); EXPECT_STREQ(json, buffer.GetString()); EXPECT_TRUE(writer.IsComplete()); }
{ "content_hash": "0da8fcf9b92b51736390ba19bd573e0c", "timestamp": "", "source": "github", "line_count": 57, "max_line_length": 125, "avg_line_length": 30.964912280701753, "alnum_prop": 0.6906515580736544, "repo_name": "DavidNemeskey/keyvi", "id": "5db83cca5422a79a69e8d477344e670bcf0e54b4", "size": "2492", "binary": false, "copies": "18", "ref": "refs/heads/master", "path": "keyvi/3rdparty/rapidjson/test/unittest/namespacetest.cpp", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C", "bytes": "7256" }, { "name": "C++", "bytes": "455845" }, { "name": "Python", "bytes": "73622" }, { "name": "Shell", "bytes": "484" } ], "symlink_target": "" }
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $model backend\models\StokBahanBaku */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="stok-bahan-baku-form"> <?php $form = ActiveForm::begin(); ?> <?= $form->field($model, 'Id_Bahan_Baku')->textInput(['maxlength' => 8]) ?> <?= $form->field($model, 'Jumlah')->textInput() ?> <div class="form-group"> <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> </div> <?php ActiveForm::end(); ?> </div>
{ "content_hash": "d09b764d67fa037d972ab7677925b236", "timestamp": "", "source": "github", "line_count": 25, "max_line_length": 150, "avg_line_length": 25.08, "alnum_prop": 0.5917065390749602, "repo_name": "propensic7/propensic7", "id": "3d21f1e382dbe5e10108b6858164a5d7bca4dbe8", "size": "627", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "backend/views/stok-bahan-baku/_form.php", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "Batchfile", "bytes": "1541" }, { "name": "CSS", "bytes": "3332" }, { "name": "PHP", "bytes": "214410" } ], "symlink_target": "" }
layout: doc permalink: /ja/mobile-mapping/ lang: ja title: スマートフォンを使ったマッピング category: mobile-mapping cover: yes nosearch: true --- スマートフォンを使ったマッピング ============================= This guide is only available in [English](/en/mobile-mapping/) or [Español](/es/mobile-mapping/). It is being translated. To help produce translations for this site, go to [https://www.transifex.com](https://www.transifex.com) and search for **HOT-OSM**.
{ "content_hash": "cc852768f744ac6a01c69a0e30e74d59", "timestamp": "", "source": "github", "line_count": 15, "max_line_length": 132, "avg_line_length": 29.066666666666666, "alnum_prop": 0.7018348623853211, "repo_name": "hotosm/learnosm-staging", "id": "574a2aa8959e1c9c595bb037003dcafb53490400", "size": "505", "binary": false, "copies": "6", "ref": "refs/heads/gh-pages", "path": "_posts/ja/mobile-mapping/0900-12-30-mobile_mapping.md", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "18167" }, { "name": "HTML", "bytes": "21833" }, { "name": "JavaScript", "bytes": "838" }, { "name": "Python", "bytes": "9017" }, { "name": "Ruby", "bytes": "2765" } ], "symlink_target": "" }
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>QUnit Example</title> <link rel="stylesheet" href="http://code.jquery.com/qunit/qunit-1.14.0.css"> </head> <body> <div id="qunit"></div> <div id="qunit-fixture"></div> <script src="http://code.jquery.com/qunit/qunit-1.14.0.js"></script> <script src="../src/Person.js"></script> <script src="PersonQunitTest.js"></script> </body> </html>
{ "content_hash": "2ef95686c648f6bab4b638d3c3c7442a", "timestamp": "", "source": "github", "line_count": 15, "max_line_length": 80, "avg_line_length": 29.133333333333333, "alnum_prop": 0.6086956521739131, "repo_name": "gramer/js-code-inspection", "id": "fbd46a50a3332f3daa90d4ad6d86f2ed87748815", "size": "437", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "test/qunit_index.html", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "4599" }, { "name": "JavaScript", "bytes": "66654" }, { "name": "Shell", "bytes": "19" } ], "symlink_target": "" }
using dioptre::graphics::opengl::BufferManager; namespace dioptre { namespace graphics { namespace opengl { PlaneGeometry::PlaneGeometry(glm::float32 width, glm::float32 depth) : dioptre::graphics::PlaneGeometry(width, depth) { bufferManager_ = std::unique_ptr<BufferManager>(new BufferManager(this)); } void PlaneGeometry::initialize() { bufferManager_->initializeVertexBuffer(); bufferManager_->initializeUVBuffer(); bufferManager_->initializeNormalBuffer(); bufferManager_->initializeIndexBuffer(); } void PlaneGeometry::update() { bufferManager_->setVertexBuffer(); bufferManager_->setUVBuffer(); bufferManager_->setNormalBuffer(); bufferManager_->setIndexBuffer(); if (faces_.size() > 0) { auto data = getFaceData(); glDrawElements(GL_TRIANGLES, data.size() * 3, GL_UNSIGNED_INT, (void *)0); } else { auto data = getData(); glDrawArrays(GL_TRIANGLES, 0, data.size()); } bufferManager_->disableVertexBuffer(); bufferManager_->disableUVBuffer(); bufferManager_->disableNormalBuffer(); } void PlaneGeometry::destroy() { bufferManager_->destroyVertexBuffer(); bufferManager_->destroyUVBuffer(); bufferManager_->destroyNormalBuffer(); bufferManager_->destroyIndexBuffer(); } } // opengl } // graphics } // dioptre
{ "content_hash": "fce7fab308a84f9dbf5dd7999f6e7b6e", "timestamp": "", "source": "github", "line_count": 48, "max_line_length": 78, "avg_line_length": 26.6875, "alnum_prop": 0.7220921155347385, "repo_name": "tobscher/rts", "id": "c0245e173bbf994d9bbf6872861cc46a404cbc2a", "size": "1435", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/dioptre/graphics/opengl/plane_geometry.cpp", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "150" }, { "name": "C++", "bytes": "237176" }, { "name": "CMake", "bytes": "11951" }, { "name": "GLSL", "bytes": "6969" }, { "name": "Makefile", "bytes": "965" }, { "name": "QMake", "bytes": "365" }, { "name": "Shell", "bytes": "910" } ], "symlink_target": "" }
/** * ExchangeRateServiceLocator.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter. */ package com.google.api.ads.dfp.axis.v201505; public class ExchangeRateServiceLocator extends org.apache.axis.client.Service implements com.google.api.ads.dfp.axis.v201505.ExchangeRateService { public ExchangeRateServiceLocator() { } public ExchangeRateServiceLocator(org.apache.axis.EngineConfiguration config) { super(config); } public ExchangeRateServiceLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException { super(wsdlLoc, sName); } // Use to get a proxy class for ExchangeRateServiceInterfacePort private java.lang.String ExchangeRateServiceInterfacePort_address = "https://ads.google.com/apis/ads/publisher/v201505/ExchangeRateService"; public java.lang.String getExchangeRateServiceInterfacePortAddress() { return ExchangeRateServiceInterfacePort_address; } // The WSDD service name defaults to the port name. private java.lang.String ExchangeRateServiceInterfacePortWSDDServiceName = "ExchangeRateServiceInterfacePort"; public java.lang.String getExchangeRateServiceInterfacePortWSDDServiceName() { return ExchangeRateServiceInterfacePortWSDDServiceName; } public void setExchangeRateServiceInterfacePortWSDDServiceName(java.lang.String name) { ExchangeRateServiceInterfacePortWSDDServiceName = name; } public com.google.api.ads.dfp.axis.v201505.ExchangeRateServiceInterface getExchangeRateServiceInterfacePort() throws javax.xml.rpc.ServiceException { java.net.URL endpoint; try { endpoint = new java.net.URL(ExchangeRateServiceInterfacePort_address); } catch (java.net.MalformedURLException e) { throw new javax.xml.rpc.ServiceException(e); } return getExchangeRateServiceInterfacePort(endpoint); } public com.google.api.ads.dfp.axis.v201505.ExchangeRateServiceInterface getExchangeRateServiceInterfacePort(java.net.URL portAddress) throws javax.xml.rpc.ServiceException { try { com.google.api.ads.dfp.axis.v201505.ExchangeRateServiceSoapBindingStub _stub = new com.google.api.ads.dfp.axis.v201505.ExchangeRateServiceSoapBindingStub(portAddress, this); _stub.setPortName(getExchangeRateServiceInterfacePortWSDDServiceName()); return _stub; } catch (org.apache.axis.AxisFault e) { return null; } } public void setExchangeRateServiceInterfacePortEndpointAddress(java.lang.String address) { ExchangeRateServiceInterfacePort_address = address; } /** * For the given interface, get the stub implementation. * If this service has no port for the given interface, * then ServiceException is thrown. */ public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { try { if (com.google.api.ads.dfp.axis.v201505.ExchangeRateServiceInterface.class.isAssignableFrom(serviceEndpointInterface)) { com.google.api.ads.dfp.axis.v201505.ExchangeRateServiceSoapBindingStub _stub = new com.google.api.ads.dfp.axis.v201505.ExchangeRateServiceSoapBindingStub(new java.net.URL(ExchangeRateServiceInterfacePort_address), this); _stub.setPortName(getExchangeRateServiceInterfacePortWSDDServiceName()); return _stub; } } catch (java.lang.Throwable t) { throw new javax.xml.rpc.ServiceException(t); } throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName())); } /** * For the given interface, get the stub implementation. * If this service has no port for the given interface, * then ServiceException is thrown. */ public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { if (portName == null) { return getPort(serviceEndpointInterface); } java.lang.String inputPortName = portName.getLocalPart(); if ("ExchangeRateServiceInterfacePort".equals(inputPortName)) { return getExchangeRateServiceInterfacePort(); } else { java.rmi.Remote _stub = getPort(serviceEndpointInterface); ((org.apache.axis.client.Stub) _stub).setPortName(portName); return _stub; } } public javax.xml.namespace.QName getServiceName() { return new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201505", "ExchangeRateService"); } private java.util.HashSet ports = null; public java.util.Iterator getPorts() { if (ports == null) { ports = new java.util.HashSet(); ports.add(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201505", "ExchangeRateServiceInterfacePort")); } return ports.iterator(); } /** * Set the endpoint address for the specified port name. */ public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException { if ("ExchangeRateServiceInterfacePort".equals(portName)) { setExchangeRateServiceInterfacePortEndpointAddress(address); } else { // Unknown Port Name throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName); } } /** * Set the endpoint address for the specified port name. */ public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException { setEndpointAddress(portName.getLocalPart(), address); } }
{ "content_hash": "d7c26fe618517e0028d1ba7c2a0d56d7", "timestamp": "", "source": "github", "line_count": 142, "max_line_length": 236, "avg_line_length": 42.605633802816904, "alnum_prop": 0.7064462809917356, "repo_name": "stoksey69/googleads-java-lib", "id": "44d3db7357f81392a9e24fb40b1d0af3d1e2ec9e", "size": "6050", "binary": false, "copies": "6", "ref": "refs/heads/master", "path": "modules/dfp_axis/src/main/java/com/google/api/ads/dfp/axis/v201505/ExchangeRateServiceLocator.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "93553686" } ], "symlink_target": "" }
package org.apache.hyracks.storage.common.file; import org.apache.hyracks.api.exceptions.HyracksDataException; import org.apache.hyracks.api.io.FileReference; /** * Maintains the mapping between file names and file ids. * * @author vinayakb */ public interface IFileMapManager extends IFileMapProvider { /** * Register a new file name. * * @param fileRef * - file reference to register * @throws HyracksDataException * - if a mapping for the file already exists. */ public void registerFile(FileReference fileRef) throws HyracksDataException; /** * Unregister a file mapping * * @param fileId * - The file id whose mapping is to be unregistered. * @throws HyracksDataException * - If the fileid is not mapped currently in this manager. */ public void unregisterFile(int fileId) throws HyracksDataException; }
{ "content_hash": "9a43b1826f4b95882d5970a655645f5a", "timestamp": "", "source": "github", "line_count": 33, "max_line_length": 80, "avg_line_length": 28.78787878787879, "alnum_prop": 0.6631578947368421, "repo_name": "waans11/incubator-asterixdb", "id": "0d8177642c1aee2390a04312485b66b26a5d97c1", "size": "1757", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "hyracks-fullstack/hyracks/hyracks-storage-common/src/main/java/org/apache/hyracks/storage/common/file/IFileMapManager.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "16145" }, { "name": "C", "bytes": "421" }, { "name": "CSS", "bytes": "17665" }, { "name": "Crystal", "bytes": "453" }, { "name": "FreeMarker", "bytes": "68104" }, { "name": "Gnuplot", "bytes": "89" }, { "name": "HTML", "bytes": "131935" }, { "name": "Java", "bytes": "20780094" }, { "name": "JavaScript", "bytes": "636055" }, { "name": "Python", "bytes": "281315" }, { "name": "Ruby", "bytes": "3078" }, { "name": "Scheme", "bytes": "1105" }, { "name": "Shell", "bytes": "232529" }, { "name": "Smarty", "bytes": "31412" }, { "name": "TeX", "bytes": "1059" } ], "symlink_target": "" }
package com.alibaba.rocketmq.filtersrv.filter; import com.alibaba.rocketmq.common.constant.LoggerName; import com.alibaba.rocketmq.common.utils.HttpTinyClient; import com.alibaba.rocketmq.common.utils.HttpTinyClient.HttpResult; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class HttpFilterClassFetchMethod implements FilterClassFetchMethod { private static final Logger log = LoggerFactory.getLogger(LoggerName.FiltersrvLoggerName); private final String url; public HttpFilterClassFetchMethod(String url) { this.url = url; } @Override public String fetch(String topic, String consumerGroup, String className) { String thisUrl = String.format("%s/%s.java", this.url, className); try { HttpResult result = HttpTinyClient.httpGet(thisUrl, null, null, "UTF-8", 5000); if (200 == result.code) { return result.content; } } catch (Exception e) { log.error( String.format("call <%s> exception, Topic: %s Group: %s", thisUrl, topic, consumerGroup), e); } return null; } }
{ "content_hash": "534ac69d37bbd42336cd9a6f0680034d", "timestamp": "", "source": "github", "line_count": 38, "max_line_length": 113, "avg_line_length": 31.342105263157894, "alnum_prop": 0.6490344248530646, "repo_name": "lusong1986/RocketMQExt", "id": "a45361c5c309007226d140cd989cc6dc6192d204", "size": "2013", "binary": false, "copies": "3", "ref": "refs/heads/master", "path": "rocketmq-filtersrv/src/main/java/com/alibaba/rocketmq/filtersrv/filter/HttpFilterClassFetchMethod.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "118" }, { "name": "Java", "bytes": "2778466" }, { "name": "Shell", "bytes": "37927" } ], "symlink_target": "" }
package io.github.greyp9.arwo.app.mail.pop3.view; import io.github.greyp9.arwo.app.core.state.AppUserState; import io.github.greyp9.arwo.core.app.App; import io.github.greyp9.arwo.core.bundle.Bundle; import io.github.greyp9.arwo.core.config.CursorPOP3; import io.github.greyp9.arwo.core.config.CursorSetPOP3; import io.github.greyp9.arwo.core.glyph.UTF16; import io.github.greyp9.arwo.core.http.servlet.ServletHttpRequest; import io.github.greyp9.arwo.core.locus.Locus; import io.github.greyp9.arwo.core.resource.PathU; import io.github.greyp9.arwo.core.table.cell.TableViewLink; import io.github.greyp9.arwo.core.table.core.TableU; import io.github.greyp9.arwo.core.table.html.TableView; import io.github.greyp9.arwo.core.table.insert.InsertRow; import io.github.greyp9.arwo.core.table.metadata.ColumnMetaData; import io.github.greyp9.arwo.core.table.metadata.RowSetMetaData; import io.github.greyp9.arwo.core.table.model.Table; import io.github.greyp9.arwo.core.table.model.TableContext; import io.github.greyp9.arwo.core.table.row.RowSet; import io.github.greyp9.arwo.core.table.state.ViewState; import io.github.greyp9.arwo.core.xed.action.XedActionFilter; import io.github.greyp9.arwo.core.xed.cursor.XedCursor; import io.github.greyp9.arwo.core.xed.model.Xed; import org.w3c.dom.Element; import java.io.IOException; import java.sql.Types; import java.util.Collection; public class POP3InventoryView { private final ServletHttpRequest httpRequest; private final AppUserState userState; private final String offsetURI; public POP3InventoryView( final ServletHttpRequest httpRequest, final AppUserState userState, final String offsetURI) { this.httpRequest = httpRequest; this.userState = userState; this.offsetURI = offsetURI; } public final void addContent(final Element html) throws IOException { final Xed xed = userState.getDocumentState().getSession(App.Servlet.SETTINGS).getXed(); final Xed xedX = userState.getXedFactory().getXedUI(xed, userState.getLocale()); final RowSetMetaData metaData = createMetaData(); final RowSet rowSet = createRowSet(metaData, xedX); final Bundle bundle = xedX.getBundle(); final Locus locus = userState.getLocus(); final ViewState viewState = userState.getViewStates().getViewState(metaData, bundle, locus); final Table table = new Table(rowSet, viewState.getSorts(), viewState.getFilters(), null, null); TableU.addFooterStandard(table, bundle); final XedActionFilter filter = new XedActionFilter(userState.getXedFactory(), userState.getLocale()); final TableContext tableContext = new TableContext( viewState, filter, userState.getSubmitID(), App.CSS.TABLE, bundle, locus); final TableView tableView = new TableView(table, tableContext); tableView.addContentTo(html); } private RowSetMetaData createMetaData() { final ColumnMetaData[] columns = new ColumnMetaData[] { new ColumnMetaData(App.Action.SELECT, Types.VARCHAR), new ColumnMetaData(App.Settings.NAME, Types.VARCHAR, true), new ColumnMetaData(App.Settings.COMMENT, Types.VARCHAR), new ColumnMetaData(App.Settings.PROTOCOL, Types.VARCHAR), new ColumnMetaData(App.Settings.HOST, Types.VARCHAR), new ColumnMetaData(App.Settings.PORT, Types.INTEGER), new ColumnMetaData(App.Settings.USER, Types.VARCHAR), }; return new RowSetMetaData("server.pop3ServerType", columns); } private RowSet createRowSet(final RowSetMetaData metaData, final Xed xed) throws IOException { final RowSet rowSet = new RowSet(metaData, null, null); final String baseURI = PathU.toPath(httpRequest.getBaseURI(), offsetURI); final Collection<XedCursor> cursors = new CursorSetPOP3(xed).getCursors(); for (final XedCursor cursor : cursors) { createRow(rowSet, baseURI, cursor); } return rowSet; } private void createRow(final RowSet rowSet, final String baseURI, final XedCursor cursor) { final CursorPOP3 cursorIt = new CursorPOP3(cursor); final boolean enabled = cursorIt.isEnabled(); if (enabled) { final String href = PathU.toDir(baseURI, cursorIt.getName()); final InsertRow insertRow = new InsertRow(rowSet); insertRow.setNextColumn(new TableViewLink(UTF16.SELECT, null, href)); insertRow.setNextColumn(cursorIt.getName()); insertRow.setNextColumn(cursorIt.getComment()); insertRow.setNextColumn(cursorIt.getProtocol()); insertRow.setNextColumn(cursorIt.getHost()); insertRow.setNextColumn(cursorIt.getPort()); insertRow.setNextColumn(cursorIt.getUser()); rowSet.add(insertRow.getRow()); } } }
{ "content_hash": "72973f22c8032ad64b1666d4cba3875f", "timestamp": "", "source": "github", "line_count": 100, "max_line_length": 109, "avg_line_length": 49.31, "alnum_prop": 0.7158791320219022, "repo_name": "greyp9/arwo", "id": "1dba4640ba6a92fde414e6ff5c93271315c112ca", "size": "4931", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/main/app/java/io/github/greyp9/arwo/app/mail/pop3/view/POP3InventoryView.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "7897" }, { "name": "HTML", "bytes": "26765" }, { "name": "Java", "bytes": "2570281" }, { "name": "XSLT", "bytes": "25589" } ], "symlink_target": "" }
<lift:surround with="default" at="content"> Submenu Page 2-1 </lift:surround>
{ "content_hash": "b7ae3bb9da3dd7541daa9808ddd86efd", "timestamp": "", "source": "github", "line_count": 3, "max_line_length": 43, "avg_line_length": 26.666666666666668, "alnum_prop": 0.7125, "repo_name": "wsaccaco/lift", "id": "6d2f9e9895e0f5e3d6b1709a6e4da25a98197002", "size": "80", "binary": false, "copies": "5", "ref": "refs/heads/master", "path": "examples/example/src/main/webapp/menu/two_one.html", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "87354" }, { "name": "Groovy", "bytes": "700" }, { "name": "HTML", "bytes": "203223" }, { "name": "JavaScript", "bytes": "770975" }, { "name": "Scala", "bytes": "3515416" }, { "name": "Shell", "bytes": "351" } ], "symlink_target": "" }
<!DOCTYPE html> <html lang="en" ng-app="myApp" class="no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>My AngularJS App</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="bower_components/html5-boilerplate/css/normalize.css"> <link rel="stylesheet" href="bower_components/html5-boilerplate/css/main.css"> <link rel="stylesheet" href="app.css"> <link rel="stylesheet" href="blog.css"> <script src="bower_components/html5-boilerplate/js/vendor/modernizr-2.6.2.min.js"></script> </head> <body> <div ng-view></div> <script src="bower_components/angular/angular.js"></script> <script src="http://code.angularjs.org/1.2.6/angular.js"></script> <script src="bower_components/angular-route/angular-route.js"></script> <script src="https://cdn.firebase.com/js/client/2.0.4/firebase.js"></script> <script src="https://cdn.firebase.com/js/simple-login/1.6.2/firebase-simple-login.js"></script> <script src="https://cdn.firebase.com/libs/angularfire/0.9.0/angularfire.min.js"></script> <script src="app.js"></script> <script src="home/home.js"></script> <script src="register/register.js"></script> <script src="welcome/welcome.js"></script> <script src="addPost/addPost.js"></script> <script src="components/version/version.js"></script> <script src="components/version/version-directive.js"></script> <script src="components/version/interpolate-filter.js"></script> </body> </html>
{ "content_hash": "d40f7868aef757a9cf027ab56881f2c3", "timestamp": "", "source": "github", "line_count": 34, "max_line_length": 97, "avg_line_length": 45.94117647058823, "alnum_prop": 0.7093469910371318, "repo_name": "jenniferpham/AngularBlog", "id": "6b5dfc7f99eedafcb6bb23f86db97e7db366e21f", "size": "1562", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/index.html", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "7516" }, { "name": "HTML", "bytes": "10748" }, { "name": "JavaScript", "bytes": "9290" } ], "symlink_target": "" }
<?php /** * @see Zend_Service_WindowsAzure_Diagnostics_Exception */ // require_once 'Zend/Service/WindowsAzure/Diagnostics/Exception.php'; /** * @see Zend_Service_WindowsAzure_Diagnostics_ConfigurationObjectBaseAbstract */ // require_once 'Zend/Service/WindowsAzure/Diagnostics/ConfigurationObjectBaseAbstract.php'; /** * @see Zend_Service_WindowsAzure_Diagnostics_ConfigurationLogs */ // require_once 'Zend/Service/WindowsAzure/Diagnostics/ConfigurationLogs.php'; /** * @see Zend_Service_WindowsAzure_Diagnostics_ConfigurationDiagnosticInfrastructureLogs */ // require_once 'Zend/Service/WindowsAzure/Diagnostics/ConfigurationDiagnosticInfrastructureLogs.php'; /** * @see Zend_Service_WindowsAzure_Diagnostics_ConfigurationPerformanceCounters */ // require_once 'Zend/Service/WindowsAzure/Diagnostics/ConfigurationPerformanceCounters.php'; /** * @see Zend_Service_WindowsAzure_Diagnostics_ConfigurationWindowsEventLog */ // require_once 'Zend/Service/WindowsAzure/Diagnostics/ConfigurationWindowsEventLog.php'; /** * @see Zend_Service_WindowsAzure_Diagnostics_ConfigurationDirectories */ // require_once 'Zend/Service/WindowsAzure/Diagnostics/ConfigurationDirectories.php'; /** * @category Zend * @package Zend_Service_WindowsAzure * @subpackage Diagnostics * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License * * @property int OverallQuotaInMB Overall quota in MB * @property Zend_Service_WindowsAzure_Diagnostics_ConfigurationLogs Logs Logs * @property Zend_Service_WindowsAzure_Diagnostics_ConfigurationDiagnosticInfrastructureLogs DiagnosticInfrastructureLogs Diagnostic infrastructure logs * @property Zend_Service_WindowsAzure_Diagnostics_ConfigurationPerformanceCounters PerformanceCounters Performance counters * @property Zend_Service_WindowsAzure_Diagnostics_ConfigurationWindowsEventLog WindowsEventLog Windows Event Log * @property Zend_Service_WindowsAzure_Diagnostics_ConfigurationDirectories Directories Directories */ class Zend_Service_WindowsAzure_Diagnostics_ConfigurationDataSources extends Zend_Service_WindowsAzure_Diagnostics_ConfigurationObjectBaseAbstract { /** * Constructor * * @param int $overallQuotaInMB Overall quota in MB */ public function __construct($overallQuotaInMB = 0) { $this->_data = array( 'overallquotainmb' => $overallQuotaInMB, 'logs' => new Zend_Service_WindowsAzure_Diagnostics_ConfigurationLogs(), 'diagnosticinfrastructurelogs' => new Zend_Service_WindowsAzure_Diagnostics_ConfigurationDiagnosticInfrastructureLogs(), 'performancecounters' => new Zend_Service_WindowsAzure_Diagnostics_ConfigurationPerformanceCounters(), 'windowseventlog' => new Zend_Service_WindowsAzure_Diagnostics_ConfigurationWindowsEventLog(), 'directories' => new Zend_Service_WindowsAzure_Diagnostics_ConfigurationDirectories(), ); } }
{ "content_hash": "38a7ff68d506e2667b012353b2cad627", "timestamp": "", "source": "github", "line_count": 72, "max_line_length": 161, "avg_line_length": 47.208333333333336, "alnum_prop": 0.6957928802588996, "repo_name": "Chatventure/zf1", "id": "da4275e2828e6bb7a3dd5e43566104ca5586d878", "size": "4132", "binary": false, "copies": "5", "ref": "refs/heads/master", "path": "library/Zend/Service/WindowsAzure/Diagnostics/ConfigurationDataSources.php", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "PHP", "bytes": "15045100" }, { "name": "Shell", "bytes": "1409" } ], "symlink_target": "" }
package mu.nu.nullpo.gui.slick; import org.newdawn.slick.GameContainer; import org.newdawn.slick.Graphics; import org.newdawn.slick.SlickException; import org.newdawn.slick.state.BasicGameState; import org.newdawn.slick.state.StateBasedGame; /** * Base state */ public abstract class BaseGameState extends BasicGameState { /** Screen Shot flag (Declared in BaseGameState; Don't override it!) */ protected boolean screenShotFlag = false; /* * Fetch this state's ID */ @Override public int getID() { return 0; } /* * State initialization */ public void init(GameContainer container, StateBasedGame game) throws SlickException { } /** * Draw the screen. BaseGameState will do the common things (such as Framerate Cap or Screen Shot) here. * Your code will be in renderImpl, unless if you want do something special. */ public void render(GameContainer container, StateBasedGame game, Graphics g) throws SlickException { // Lost the focus if(!container.hasFocus()) { if(!NullpoMinoSlick.alternateFPSTiming) NullpoMinoSlick.alternateFPSSleep(); return; } // Do user's code renderImpl(container, game, g); // Do common things NullpoMinoSlick.drawFPS(container); // FPS counter NullpoMinoSlick.drawObserverClient(); // Observer if(screenShotFlag) { // Create a screenshot NullpoMinoSlick.saveScreenShot(container, g); screenShotFlag = false; } // Framerate Cap if(!NullpoMinoSlick.alternateFPSTiming) NullpoMinoSlick.alternateFPSSleep(); } /** * Update the game. BaseGameState will do the common things (such as Framerate Cap or Screen Shot) here. * Your code will be in updateImpl, unless if you want do something special. */ public void update(GameContainer container, StateBasedGame game, int delta) throws SlickException { // Lost the focus if(!container.hasFocus()) { GameKeySlick.gamekey[0].clear(); GameKeySlick.gamekey[1].clear(); if(NullpoMinoSlick.alternateFPSTiming) NullpoMinoSlick.alternateFPSSleep(); return; } // Do user's code updateImpl(container, game, delta); // Screenshot button if(GameKeySlick.gamekey[0].isPushKey(GameKeySlick.BUTTON_SCREENSHOT)) screenShotFlag = true; // Exit button if(GameKeySlick.gamekey[0].isPushKey(GameKeySlick.BUTTON_QUIT)) container.exit(); // Framerate Cap if(NullpoMinoSlick.alternateFPSTiming) NullpoMinoSlick.alternateFPSSleep(); } /** * Draw the screen. Your code will be here, unless if you want do something special. * @param container GameContainer * @param game StateBasedGame * @param g Graphics * @throws SlickException Something failed */ protected void renderImpl(GameContainer container, StateBasedGame game, Graphics g) throws SlickException { } /** * Update the game. Your code will be here, unless if you want do something special. * @param container GameContainer * @param game StateBasedGame * @param delta Time passed since the last execution * @throws SlickException Something failed */ protected void updateImpl(GameContainer container, StateBasedGame game, int delta) throws SlickException { } }
{ "content_hash": "afcf199067bf0be56b8bed419b7d9963", "timestamp": "", "source": "github", "line_count": 101, "max_line_length": 108, "avg_line_length": 31.861386138613863, "alnum_prop": 0.7212554381603481, "repo_name": "PoochyEXE/nullpomino", "id": "4322ff85424884bbd4a87d8c9d9065b41987abaa", "size": "3218", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "src/mu/nu/nullpo/gui/slick/BaseGameState.java", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "Inno Setup", "bytes": "1825" }, { "name": "Java", "bytes": "4001549" }, { "name": "Shell", "bytes": "2957" } ], "symlink_target": "" }
import { NavigationExperimental, Platform } from 'react-native'; const { Reducer: NavigationReducer } = NavigationExperimental; const tabsAndroid = [ { key: 'best', icon:"star", title: 'Best' }, { key: 'alerts', icon:"alarm", title: 'Alerts' }, { key: 'friends', icon:"people", title: 'Friends' }, { key: 'me', icon:"person", title: 'Me' }, ]; const tabsIOS = [ { key: 'best',icon:"ios-star-outline", selectedIcon:"ios-star", title: 'Best' }, { key: 'alerts', icon:"ios-bell-outline", selectedIcon:"ios-bell", title: 'Alerts' }, { key: 'friends', icon:"ios-people-outline", selectedIcon:"ios-people", title: 'Friends' }, { key: 'me', icon:"ios-person-outline", selectedIcon:"ios-person", title: 'Me' }, ]; const tabs = Platform.OS==='android' ? tabsAndroid : tabsIOS; const tabsReducer = NavigationReducer.TabsReducer({ key: 'mainTabs', initialIndex: 0, tabReducers: tabs.map(t => (lastRoute) => lastRoute || t), }); module.exports = tabsReducer;
{ "content_hash": "1d505b36208a10749dd03871853d830a", "timestamp": "", "source": "github", "line_count": 26, "max_line_length": 93, "avg_line_length": 37.65384615384615, "alnum_prop": 0.6506639427987743, "repo_name": "S4KH/react-native-nav-exp", "id": "18d1af2ffec4e9f32a3b3ce6f674e740b6d641cb", "size": "979", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/reducers/tabs.js", "mode": "33188", "license": "mit", "language": [ { "name": "Java", "bytes": "1109" }, { "name": "JavaScript", "bytes": "20934" }, { "name": "Objective-C", "bytes": "5111" }, { "name": "Python", "bytes": "1630" } ], "symlink_target": "" }
#region Using using System; using System.Runtime.InteropServices; using SharpFont.Internal; #endregion namespace SharpFont { /// <summary> /// This structure is used to describe an outline to the scan-line converter. /// </summary> /// <remarks> /// The B/W rasterizer only checks bit 2 in the ‘tags’ array for the first point of each contour. The drop-out mode /// as given with <see cref="OutlineFlags.IgnoreDropouts" />, <see cref="OutlineFlags.SmartDropouts" />, and /// <see cref="OutlineFlags.IncludeStubs" /> in ‘flags’ is then overridden. /// </remarks> public sealed class Outline : IDisposable { #region Fields private bool duplicate; private IntPtr reference; private OutlineRec rec; private Library parentLibrary; private Memory parentMemory; #endregion #region Constructor /// <summary> /// Initializes a new instance of the <see cref="Outline" /> class. /// </summary> /// <remarks> /// The reason why this function takes a ‘library’ parameter is simply to use the library's memory allocator. /// </remarks> /// <param name="library"> /// A handle to the library object from where the outline is allocated. Note however that the new outline will /// not necessarily be freed, when destroying the library, by <see cref="Library.Finalize" />. /// </param> /// <param name="pointsCount">The maximum number of points within the outline.</param> /// <param name="contoursCount">The maximum number of contours within the outline.</param> public Outline(Library library, uint pointsCount, int contoursCount) { IntPtr reference; Error err = FT.FT_Outline_New(library.Reference, pointsCount, contoursCount, out reference); if (err != Error.Ok) throw new FreeTypeException(err); parentLibrary = library; parentLibrary.AddChildOutline(this); } /// <summary> /// Initializes a new instance of the <see cref="Outline" /> class. /// </summary> /// <param name="memory">A handle to the memory object from where the outline is allocated.</param> /// <param name="pointsCount">The maximum number of points within the outline.</param> /// <param name="contoursCount">The maximum number of contours within the outline.</param> public Outline(Memory memory, uint pointsCount, int contoursCount) { IntPtr reference; Error err = FT.FT_Outline_New_Internal(memory.Reference, pointsCount, contoursCount, out reference); if (err != Error.Ok) throw new FreeTypeException(err); parentMemory = memory; //TODO Should Memory be disposable as well? } internal Outline(IntPtr reference, OutlineRec outlineInt) { rec = outlineInt; this.reference = reference; duplicate = true; } /// <summary> /// Finalizes an instance of the <see cref="Outline" /> class. /// </summary> ~Outline() { Dispose(false); } #endregion #region Properties /// <summary> /// Gets a value indicating whether the <see cref="Outline" /> has been disposed. /// </summary> public bool IsDisposed { get; private set; } /// <summary> /// Gets the number of contours in the outline. /// </summary> public short ContoursCount { get { if (IsDisposed) throw new ObjectDisposedException("ContoursCount", "Cannot access a disposed object."); return rec.n_contours; } } /// <summary> /// Gets the number of points in the outline. /// </summary> public short PointsCount { get { if (IsDisposed) throw new ObjectDisposedException("PointsCount", "Cannot access a disposed object."); return rec.n_points; } } /// <summary> /// Gets a pointer to an array of ‘PointsCount’ <see cref="FTVector" /> elements, giving the outline's point /// coordinates. /// </summary> public FTVector[] Points { get { if (IsDisposed) throw new ObjectDisposedException("Points", "Cannot access a disposed object."); int count = PointsCount; if (count == 0) return null; FTVector[] points = new FTVector[count]; IntPtr array = rec.points; for (int i = 0; i < count; i++) { points[i] = new FTVector(new IntPtr(array.ToInt64() + IntPtr.Size * i * 2)); } return points; } } /// <summary> /// <para> /// Gets a pointer to an array of ‘PointsCount’ chars, giving each outline point's type. /// </para> /// <para> /// If bit 0 is unset, the point is ‘off’ the curve, i.e., a Bézier control point, while it is ‘on’ if set. /// </para> /// <para> /// Bit 1 is meaningful for ‘off’ points only. If set, it indicates a third-order Bézier arc control point; and /// a second-order control point if unset. /// </para> /// <para> /// If bit 2 is set, bits 5-7 contain the drop-out mode (as defined in the OpenType specification; the value is /// the same as the argument to the SCANMODE instruction). /// </para> /// <para> /// Bits 3 and 4 are reserved for internal purposes. /// </para> /// </summary> public byte[] Tags { get { if (IsDisposed) throw new ObjectDisposedException("Tags", "Cannot access a disposed object."); int count = PointsCount; if (count == 0) return null; byte[] tags = new byte[count]; IntPtr array = rec.tags; for (int i = 0; i < count; i++) { tags[i] = Marshal.ReadByte(array, sizeof(byte) * i); } return tags; } } /// <summary> /// Gets an array of ‘ContoursCount’ shorts, giving the end point of each contour within the outline. For /// example, the first contour is defined by the points ‘0’ to ‘Contours[0]’, the second one is defined by the /// points ‘Contours[0]+1’ to ‘Contours[1]’, etc. /// </summary> public short[] Contours { get { if (IsDisposed) throw new ObjectDisposedException("Contours", "Cannot access a disposed object."); int count = ContoursCount; if (count == 0) return null; short[] contours = new short[count]; IntPtr array = rec.contours; for (int i = 0; i < count; i++) { contours[i] = Marshal.ReadInt16(array, sizeof(short) * i); } return contours; } } /// <summary> /// Gets a set of bit flags used to characterize the outline and give hints to the scan-converter and hinter on /// how to convert/grid-fit it. /// </summary> /// <see cref="OutlineFlags" /> public OutlineFlags Flags { get { if (IsDisposed) throw new ObjectDisposedException("Flags", "Cannot access a disposed object."); return rec.flags; } } internal IntPtr Reference { get { if (IsDisposed) throw new ObjectDisposedException("Reference", "Cannot access a disposed object."); return reference; } set { if (IsDisposed) throw new ObjectDisposedException("Reference", "Cannot access a disposed object."); reference = value; rec = PInvokeHelper.PtrToStructure<OutlineRec>(reference); } } #endregion #region Methods #region Outline Processing /// <summary> /// Copy an outline into another one. Both objects must have the same sizes (number of points &amp; number of /// contours) when this function is called. /// </summary> /// <param name="target">A handle to the target outline.</param> public void Copy(Outline target) { if (IsDisposed) throw new ObjectDisposedException("Outline", "Cannot access a disposed object."); if (target == null) throw new ArgumentNullException("target"); IntPtr targetRef = target.Reference; Error err = FT.FT_Outline_Copy(reference, ref targetRef); target.Reference = reference; if (err != Error.Ok) throw new FreeTypeException(err); } /// <summary> /// Apply a simple translation to the points of an outline. /// </summary> /// <param name="offsetX">The horizontal offset.</param> /// <param name="offsetY">The vertical offset.</param> public void Translate(int offsetX, int offsetY) { if (IsDisposed) throw new ObjectDisposedException("Outline", "Cannot access a disposed object."); FT.FT_Outline_Translate(reference, offsetX, offsetY); } /// <summary> /// Apply a simple 2x2 matrix to all of an outline's points. Useful for applying rotations, slanting, flipping, /// etc. /// </summary> /// <remarks> /// You can use <see cref="Translate" /> if you need to translate the outline's points. /// </remarks> /// <param name="matrix">A pointer to the transformation matrix.</param> public void Transform(FTMatrix matrix) { if (IsDisposed) throw new ObjectDisposedException("Outline", "Cannot access a disposed object."); FT.FT_Outline_Transform(reference, ref matrix); } /// <summary> /// <para> /// Embolden an outline. The new outline will be at most 4 times ‘strength’ pixels wider and higher. You may /// think of the left and bottom borders as unchanged. /// </para> /// <para> /// Negative ‘strength’ values to reduce the outline thickness are possible also. /// </para> /// </summary> /// <remarks> /// <para> /// The used algorithm to increase or decrease the thickness of the glyph doesn't change the number of points; /// this means that certain situations like acute angles or intersections are sometimes handled incorrectly. /// </para> /// <para> /// If you need ‘better’ metrics values you should call <see cref="GetCBox" /> or <see cref="GetBBox" />. /// </para> /// </remarks> /// <example> /// FT_Load_Glyph( face, index, FT_LOAD_DEFAULT ); /// if ( face-&gt;slot-&gt;format == FT_GLYPH_FORMAT_OUTLINE ) /// FT_Outline_Embolden( &amp;face-&gt;slot-&gt;outline, strength ); /// </example> /// <param name="strength">How strong the glyph is emboldened. Expressed in 26.6 pixel format.</param> public void Embolden(Fixed26Dot6 strength) { if (IsDisposed) throw new ObjectDisposedException("Outline", "Cannot access a disposed object."); Error err = FT.FT_Outline_Embolden(reference, (IntPtr) strength.Value); if (err != Error.Ok) throw new FreeTypeException(err); } /// <summary> /// Embolden an outline. The new outline will be ‘xstrength’ pixels wider and ‘ystrength’ pixels higher. /// Otherwise, it is similar to <see cref="Embolden" />, which uses the same strength in both directions. /// </summary> /// <param name="strengthX"> /// How strong the glyph is emboldened in the X direction. Expressed in 26.6 pixel format. /// </param> /// <param name="strengthY"> /// How strong the glyph is emboldened in the Y direction. Expressed in 26.6 pixel format. /// </param> public void EmboldenXY(int strengthX, int strengthY) { if (IsDisposed) throw new ObjectDisposedException("Outline", "Cannot access a disposed object."); Error err = FT.FT_Outline_EmboldenXY(reference, strengthX, strengthY); if (err != Error.Ok) throw new FreeTypeException(err); } /// <summary> /// Reverse the drawing direction of an outline. This is used to ensure consistent fill conventions for /// mirrored glyphs. /// </summary> /// <remarks> /// <para> /// This function toggles the bit flag <see cref="OutlineFlags.ReverseFill" /> in the outline's ‘flags’ field. /// </para> /// <para> /// It shouldn't be used by a normal client application, unless it knows what it is doing. /// </para> /// </remarks> public void Reverse() { if (IsDisposed) throw new ObjectDisposedException("Outline", "Cannot access a disposed object."); FT.FT_Outline_Reverse(reference); } /// <summary> /// Check the contents of an outline descriptor. /// </summary> public void Check() { if (IsDisposed) throw new ObjectDisposedException("Outline", "Cannot access a disposed object."); Error err = FT.FT_Outline_Check(reference); if (err != Error.Ok) throw new FreeTypeException(err); } /// <summary> /// Compute the exact bounding box of an outline. This is slower than computing the control box. However, it /// uses an advanced algorithm which returns very quickly when the two boxes coincide. Otherwise, the outline /// Bézier arcs are traversed to extract their extrema. /// </summary> /// <remarks> /// If the font is tricky and the glyph has been loaded with <see cref="LoadFlags.NoScale" />, the resulting /// BBox is meaningless. To get reasonable values for the BBox it is necessary to load the glyph at a large /// ppem value (so that the hinting instructions can properly shift and scale the subglyphs), then extracting /// the BBox which can be eventually converted back to font units. /// </remarks> /// <returns>The outline's exact bounding box.</returns> public BBox GetBBox() { if (IsDisposed) throw new ObjectDisposedException("Outline", "Cannot access a disposed object."); BBox bbox; Error err = FT.FT_Outline_Get_BBox(reference, out bbox); if (err != Error.Ok) throw new FreeTypeException(err); return bbox; } /// <summary> /// Walk over an outline's structure to decompose it into individual segments and Bézier arcs. This function /// also emits ‘move to’ operations to indicate the start of new contours in the outline. /// </summary> /// <param name="funcInterface"> /// A table of ‘emitters’, i.e., function pointers called during decomposition to indicate path operations. /// </param> /// <param name="user"> /// A typeless pointer which is passed to each emitter during the decomposition. It can be used to store the /// state during the decomposition. /// </param> public void Decompose(OutlineFuncs funcInterface, IntPtr user) { if (IsDisposed) throw new ObjectDisposedException("Outline", "Cannot access a disposed object."); if (funcInterface == null) throw new ArgumentNullException("funcInterface"); OutlineFuncsRec ofRec = funcInterface.Record; Error err = FT.FT_Outline_Decompose(reference, ref ofRec, user); if (err != Error.Ok) throw new FreeTypeException(err); } /// <summary> /// <para> /// Return an outline's ‘control box’. The control box encloses all the outline's points, including Bézier /// control points. Though it coincides with the exact bounding box for most glyphs, it can be slightly larger /// in some situations (like when rotating an outline which contains Bézier outside arcs). /// </para> /// <para> /// Computing the control box is very fast, while getting the bounding box can take much more time as it needs /// to walk over all segments and arcs in the outline. To get the latter, you can use the ‘ftbbox’ component /// which is dedicated to this single task. /// </para> /// </summary> /// <remarks>See <see cref="Glyph.GetCBox" /> for a discussion of tricky fonts.</remarks> /// <returns>The outline's control box.</returns> public BBox GetCBox() { if (IsDisposed) throw new ObjectDisposedException("Outline", "Cannot access a disposed object."); BBox cbox; FT.FT_Outline_Get_CBox(reference, out cbox); return cbox; } /// <summary> /// Render an outline within a bitmap. The outline's image is simply OR-ed to the target bitmap. /// </summary> /// <remarks> /// <para> /// This function does NOT CREATE the bitmap, it only renders an outline image within the one you pass to it! /// Consequently, the various fields in ‘abitmap’ should be set accordingly. /// </para> /// <para> /// It will use the raster corresponding to the default glyph format. /// </para> /// <para> /// The value of the ‘num_grays’ field in ‘abitmap’ is ignored. If you select the gray-level rasterizer, and /// you want less than 256 gray levels, you have to use <see cref="Render(RasterParams)" /> directly. /// </para> /// </remarks> /// <param name="bitmap">A pointer to the target bitmap descriptor.</param> public void GetBitmap(FTBitmap bitmap) { if (IsDisposed) throw new ObjectDisposedException("Outline", "Cannot access a disposed object."); Error err = FT.FT_Outline_Get_Bitmap(parentLibrary.Reference, reference, bitmap.Reference); if (err != Error.Ok) throw new FreeTypeException(err); } /// <summary> /// Render an outline within a bitmap. The outline's image is simply OR-ed to the target bitmap. /// </summary> /// <remarks> /// <para> /// This function does NOT CREATE the bitmap, it only renders an outline image within the one you pass to it! /// Consequently, the various fields in ‘abitmap’ should be set accordingly. /// </para> /// <para> /// It will use the raster corresponding to the default glyph format. /// </para> /// <para> /// The value of the ‘num_grays’ field in ‘abitmap’ is ignored. If you select the gray-level rasterizer, and /// you want less than 256 gray levels, you have to use <see cref="Render(Library, RasterParams)" /> directly. /// </para> /// </remarks> /// <param name="library">A handle to a FreeType library object.</param> /// <param name="bitmap">A pointer to the target bitmap descriptor.</param> public void GetBitmap(Library library, FTBitmap bitmap) { if (IsDisposed) throw new ObjectDisposedException("Outline", "Cannot access a disposed object."); if (library == null) throw new ArgumentNullException("library"); if (bitmap == null) throw new ArgumentNullException("bitmap"); Error err = FT.FT_Outline_Get_Bitmap(library.Reference, reference, bitmap.Reference); if (err != Error.Ok) throw new FreeTypeException(err); } /// <summary> /// Render an outline within a bitmap using the current scan-convert. This function uses an /// <see cref="RasterParams" /> structure as an argument, allowing advanced features like direct composition, /// translucency, etc. /// </summary> /// <remarks> /// <para> /// You should know what you are doing and how <see cref="RasterParams" /> works to use this function. /// </para> /// <para> /// The field ‘params.source’ will be set to ‘outline’ before the scan converter is called, which means that /// the value you give to it is actually ignored. /// </para> /// <para> /// The gray-level rasterizer always uses 256 gray levels. If you want less gray levels, you have to provide /// your own span callback. See the <see cref="RasterFlags.Direct" /> value of the ‘flags’ field in the /// <see cref="RasterParams" /> structure for more details. /// </para> /// </remarks> /// <param name="parameters"> /// A pointer to an <see cref="RasterParams" /> structure used to describe the rendering operation. /// </param> public void Render(RasterParams parameters) { if (IsDisposed) throw new ObjectDisposedException("Outline", "Cannot access a disposed object."); if (parameters == null) throw new ArgumentNullException("parameters"); Error err = FT.FT_Outline_Render(parentLibrary.Reference, reference, parameters.Reference); if (err != Error.Ok) throw new FreeTypeException(err); } /// <summary> /// Render an outline within a bitmap using the current scan-convert. This function uses an /// <see cref="RasterParams" /> structure as an argument, allowing advanced features like direct composition, /// translucency, etc. /// </summary> /// <remarks> /// <para> /// You should know what you are doing and how <see cref="RasterParams" /> works to use this function. /// </para> /// <para> /// The field ‘params.source’ will be set to ‘outline’ before the scan converter is called, which means that /// the value you give to it is actually ignored. /// </para> /// <para> /// The gray-level rasterizer always uses 256 gray levels. If you want less gray levels, you have to provide /// your own span callback. See the <see cref="RasterFlags.Direct" /> value of the ‘flags’ field in the /// <see cref="RasterParams" /> structure for more details. /// </para> /// </remarks> /// <param name="library">A handle to a FreeType library object.</param> /// <param name="parameters"> /// A pointer to an <see cref="RasterParams" /> structure used to describe the rendering operation. /// </param> public void Render(Library library, RasterParams parameters) { if (IsDisposed) throw new ObjectDisposedException("Outline", "Cannot access a disposed object."); if (library == null) throw new ArgumentNullException("library"); if (parameters == null) throw new ArgumentNullException("parameters"); Error err = FT.FT_Outline_Render(library.Reference, reference, parameters.Reference); if (err != Error.Ok) throw new FreeTypeException(err); } /// <summary> /// <para> /// This function analyzes a glyph outline and tries to compute its fill orientation (see /// <see cref="Orientation" />). This is done by computing the direction of each global horizontal and/or /// vertical extrema within the outline. /// </para> /// <para> /// Note that this will return <see cref="Orientation.TrueType" /> for empty outlines. /// </para> /// </summary> /// <returns>The orientation.</returns> public Orientation GetOrientation() { if (IsDisposed) throw new ObjectDisposedException("Outline", "Cannot access a disposed object."); return FT.FT_Outline_Get_Orientation(reference); } #endregion #region Glyph Stroker /// <summary> /// Retrieve the <see cref="StrokerBorder" /> value corresponding to the ‘inside’ borders of a given outline. /// </summary> /// <returns>The border index. <see cref="StrokerBorder.Right" /> for empty or invalid outlines.</returns> public StrokerBorder GetInsideBorder() { return FT.FT_Outline_GetInsideBorder(Reference); } /// <summary> /// Retrieve the <see cref="StrokerBorder" /> value corresponding to the ‘outside’ borders of a given outline. /// </summary> /// <returns>The border index. <see cref="StrokerBorder.Left" /> for empty or invalid outlines.</returns> public StrokerBorder GetOutsideBorder() { return FT.FT_Outline_GetOutsideBorder(Reference); } #endregion /// <summary> /// Disposes an instance of the <see cref="Outline" /> class. /// </summary> public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } private void Dispose(bool disposing) { if (!IsDisposed) { IsDisposed = true; if (!duplicate) { if (parentLibrary != null) FT.FT_Outline_Done(parentLibrary.Reference, reference); else FT.FT_Outline_Done_Internal(parentMemory.Reference, reference); // removes itself from the parent Library, with a check to prevent this from happening when Library is // being disposed (Library disposes all it's children with a foreach loop, this causes an // InvalidOperationException for modifying a collection during enumeration) if (!parentLibrary.IsDisposed) parentLibrary.RemoveChildOutline(this); } reference = IntPtr.Zero; rec = default; } } #endregion } }
{ "content_hash": "2d8399ec4040c52e2f26b00d3eed352d", "timestamp": "", "source": "github", "line_count": 706, "max_line_length": 123, "avg_line_length": 39.375354107648725, "alnum_prop": 0.5546962120939603, "repo_name": "Cryru/SoulEngine", "id": "03438ed366884ce5d78b77b10e4f8ada88e701f9", "size": "27955", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "ZZZ_Plugins/Emotion.Standard.TrueType/SharpFont/Outline.cs", "mode": "33188", "license": "mit", "language": [ { "name": "C#", "bytes": "768465" } ], "symlink_target": "" }
iServer ======= iServer-Needs a Host. and Guests ..what next? GitHub Recommended i Get-a-scaling-robot.IllStart By LookingFor 'A-Host'.Me
{ "content_hash": "a565e1cdd63fd1b208249b228227833d", "timestamp": "", "source": "github", "line_count": 4, "max_line_length": 121, "avg_line_length": 34.75, "alnum_prop": 0.7338129496402878, "repo_name": "iDestiny/iServer", "id": "be838509bf8306013656d87cec317610db12a4cf", "size": "139", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "README.md", "mode": "33188", "license": "mit", "language": [], "symlink_target": "" }
namespace Google.Analytics.Admin.V1Alpha.Snippets { // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataStream_async] using Google.Analytics.Admin.V1Alpha; using Google.Protobuf.WellKnownTypes; using System.Threading.Tasks; public sealed partial class GeneratedAnalyticsAdminServiceClientSnippets { /// <summary>Snippet for UpdateDataStreamAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task UpdateDataStreamRequestObjectAsync() { // Create client AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync(); // Initialize request argument(s) UpdateDataStreamRequest request = new UpdateDataStreamRequest { DataStream = new DataStream(), UpdateMask = new FieldMask(), }; // Make the request DataStream response = await analyticsAdminServiceClient.UpdateDataStreamAsync(request); } } // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataStream_async] }
{ "content_hash": "4784440196b17cec24789dd91a90c4e8", "timestamp": "", "source": "github", "line_count": 30, "max_line_length": 118, "avg_line_length": 44.03333333333333, "alnum_prop": 0.6850870552611658, "repo_name": "jskeet/gcloud-dotnet", "id": "1084d52a3dccf9087eb7d77642ce648ae59b4a09", "size": "1943", "binary": false, "copies": "2", "ref": "refs/heads/bq-migration", "path": "apis/Google.Analytics.Admin.V1Alpha/Google.Analytics.Admin.V1Alpha.GeneratedSnippets/AnalyticsAdminServiceClient.UpdateDataStreamRequestObjectAsyncSnippet.g.cs", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "1725" }, { "name": "C#", "bytes": "1829733" } ], "symlink_target": "" }
import os from 'os'; import path from 'path'; import {app, Notification} from 'electron'; import Utils from 'common/utils/util'; import {localizeMessage} from 'main/i18nManager'; const assetsDir = path.resolve(app.getAppPath(), 'assets'); const appIconURL = path.resolve(assetsDir, 'appicon_48.png'); const defaultOptions = { title: localizeMessage('main.notifications.download.complete.title', 'Download Complete'), silent: false, icon: appIconURL, urgency: 'normal' as Notification['urgency'], body: '', }; export class DownloadNotification extends Notification { constructor(fileName: string, serverName: string) { const options = {...defaultOptions}; if (process.platform === 'darwin' || (process.platform === 'win32' && Utils.isVersionGreaterThanOrEqualTo(os.release(), '10.0'))) { // Notification Center shows app's icon, so there were two icons on the notification. Reflect.deleteProperty(options, 'icon'); } options.title = process.platform === 'win32' ? serverName : localizeMessage('main.notifications.download.complete.title', 'Download Complete'); options.body = process.platform === 'win32' ? localizeMessage('main.notifications.download.complete.body', 'Download Complete \n {fileName}', {fileName}) : fileName; super(options); } }
{ "content_hash": "ee4fcb7bc566272d428ff8557f6d6f34", "timestamp": "", "source": "github", "line_count": 34, "max_line_length": 173, "avg_line_length": 39.8235294117647, "alnum_prop": 0.689807976366322, "repo_name": "mattermost/desktop", "id": "fbd6fa9f0c2c4681c45193692e3b18c0ad849fe8", "size": "1467", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/main/notifications/Download.ts", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "35649" }, { "name": "HTML", "bytes": "738" }, { "name": "JavaScript", "bytes": "575341" }, { "name": "Makefile", "bytes": "1629" }, { "name": "PowerShell", "bytes": "31273" }, { "name": "Ruby", "bytes": "1211" }, { "name": "SCSS", "bytes": "63942" }, { "name": "Shell", "bytes": "16226" }, { "name": "TypeScript", "bytes": "678394" }, { "name": "XSLT", "bytes": "1327" } ], "symlink_target": "" }
/** * @namespace Phaser.Types.GameObjects.TileSprite */
{ "content_hash": "c51a82aa26f39df4eb74b0082b183ca5", "timestamp": "", "source": "github", "line_count": 5, "max_line_length": 49, "avg_line_length": 12, "alnum_prop": 0.6833333333333333, "repo_name": "BeanSeed/phaser", "id": "b466fbd422143822b43d795401bb67e6163557e3", "size": "234", "binary": false, "copies": "3", "ref": "refs/heads/master", "path": "src/gameobjects/tilesprite/typedefs/index.js", "mode": "33188", "license": "mit", "language": [ { "name": "GLSL", "bytes": "10989" }, { "name": "JavaScript", "bytes": "8903660" }, { "name": "TypeScript", "bytes": "25049" } ], "symlink_target": "" }
using Lucene.Net.Support; using System; using System.Collections.Generic; using System.Diagnostics; using System.Text; namespace Lucene.Net.Search { using AtomicReaderContext = Lucene.Net.Index.AtomicReaderContext; using IBits = Lucene.Net.Util.IBits; using IndexReader = Lucene.Net.Index.IndexReader; using Term = Lucene.Net.Index.Term; using ToStringUtils = Lucene.Net.Util.ToStringUtils; /// <summary> /// A query that wraps another query or a filter and simply returns a constant score equal to the /// query boost for every document that matches the filter or query. /// For queries it therefore simply strips of all scores and returns a constant one. /// </summary> public class ConstantScoreQuery : Query { protected readonly Filter m_filter; protected readonly Query m_query; /// <summary> /// Strips off scores from the passed in <see cref="Search.Query"/>. The hits will get a constant score /// dependent on the boost factor of this query. /// </summary> public ConstantScoreQuery(Query query) { this.m_filter = null; this.m_query = query ?? throw new NullReferenceException("Query may not be null"); } /// <summary> /// Wraps a <see cref="Search.Filter"/> as a <see cref="Search.Query"/>. The hits will get a constant score /// dependent on the boost factor of this query. /// If you simply want to strip off scores from a <see cref="Search.Query"/>, no longer use /// <c>new ConstantScoreQuery(new QueryWrapperFilter(query))</c>, instead /// use <see cref="ConstantScoreQuery(Query)"/>! /// </summary> public ConstantScoreQuery(Filter filter) { this.m_filter = filter ?? throw new NullReferenceException("Filter may not be null"); this.m_query = null; } /// <summary> /// Returns the encapsulated filter, returns <c>null</c> if a query is wrapped. </summary> public virtual Filter Filter => m_filter; /// <summary> /// Returns the encapsulated query, returns <c>null</c> if a filter is wrapped. </summary> public virtual Query Query => m_query; public override Query Rewrite(IndexReader reader) { if (m_query != null) { Query rewritten = m_query.Rewrite(reader); if (rewritten != m_query) { rewritten = new ConstantScoreQuery(rewritten); rewritten.Boost = this.Boost; return rewritten; } } else { Debug.Assert(m_filter != null); // Fix outdated usage pattern from Lucene 2.x/early-3.x: // because ConstantScoreQuery only accepted filters, // QueryWrapperFilter was used to wrap queries. if (m_filter is QueryWrapperFilter) { QueryWrapperFilter qwf = (QueryWrapperFilter)m_filter; Query rewritten = new ConstantScoreQuery(qwf.Query.Rewrite(reader)); rewritten.Boost = this.Boost; return rewritten; } } return this; } public override void ExtractTerms(ISet<Term> terms) { // TODO: OK to not add any terms when wrapped a filter // and used with MultiSearcher, but may not be OK for // highlighting. // If a query was wrapped, we delegate to query. if (m_query != null) { m_query.ExtractTerms(terms); } } protected class ConstantWeight : Weight { private readonly ConstantScoreQuery outerInstance; private readonly Weight innerWeight; private float queryNorm; private float queryWeight; public ConstantWeight(ConstantScoreQuery outerInstance, IndexSearcher searcher) { this.outerInstance = outerInstance; this.innerWeight = (outerInstance.m_query == null) ? null : outerInstance.m_query.CreateWeight(searcher); } public override Query Query => outerInstance; public override float GetValueForNormalization() { // we calculate sumOfSquaredWeights of the inner weight, but ignore it (just to initialize everything) if (innerWeight != null) { innerWeight.GetValueForNormalization(); } queryWeight = outerInstance.Boost; return queryWeight * queryWeight; } public override void Normalize(float norm, float topLevelBoost) { this.queryNorm = norm * topLevelBoost; queryWeight *= this.queryNorm; // we normalize the inner weight, but ignore it (just to initialize everything) if (innerWeight != null) { innerWeight.Normalize(norm, topLevelBoost); } } public override BulkScorer GetBulkScorer(AtomicReaderContext context, bool scoreDocsInOrder, IBits acceptDocs) { //DocIdSetIterator disi; if (outerInstance.m_filter != null) { Debug.Assert(outerInstance.m_query == null); return base.GetBulkScorer(context, scoreDocsInOrder, acceptDocs); } else { Debug.Assert(outerInstance.m_query != null && innerWeight != null); BulkScorer bulkScorer = innerWeight.GetBulkScorer(context, scoreDocsInOrder, acceptDocs); if (bulkScorer == null) { return null; } return new ConstantBulkScorer(outerInstance, bulkScorer, this, queryWeight); } } public override Scorer GetScorer(AtomicReaderContext context, IBits acceptDocs) { DocIdSetIterator disi; if (outerInstance.m_filter != null) { Debug.Assert(outerInstance.m_query == null); DocIdSet dis = outerInstance.m_filter.GetDocIdSet(context, acceptDocs); if (dis == null) { return null; } disi = dis.GetIterator(); } else { Debug.Assert(outerInstance.m_query != null && innerWeight != null); disi = innerWeight.GetScorer(context, acceptDocs); } if (disi == null) { return null; } return new ConstantScorer(outerInstance, disi, this, queryWeight); } public override bool ScoresDocsOutOfOrder => (innerWeight != null) ? innerWeight.ScoresDocsOutOfOrder : false; public override Explanation Explain(AtomicReaderContext context, int doc) { Scorer cs = GetScorer(context, (context.AtomicReader).LiveDocs); bool exists = (cs != null && cs.Advance(doc) == doc); ComplexExplanation result = new ComplexExplanation(); if (exists) { result.Description = outerInstance.ToString() + ", product of:"; result.Value = queryWeight; result.Match = true; result.AddDetail(new Explanation(outerInstance.Boost, "boost")); result.AddDetail(new Explanation(queryNorm, "queryNorm")); } else { result.Description = outerInstance.ToString() + " doesn't match id " + doc; result.Value = 0; result.Match = false; } return result; } } /// <summary> /// We return this as our <see cref="BulkScorer"/> so that if the CSQ /// wraps a query with its own optimized top-level /// scorer (e.g. <see cref="BooleanScorer"/>) we can use that /// top-level scorer. /// </summary> protected class ConstantBulkScorer : BulkScorer { private readonly ConstantScoreQuery outerInstance; internal readonly BulkScorer bulkScorer; internal readonly Weight weight; internal readonly float theScore; public ConstantBulkScorer(ConstantScoreQuery outerInstance, BulkScorer bulkScorer, Weight weight, float theScore) { this.outerInstance = outerInstance; this.bulkScorer = bulkScorer; this.weight = weight; this.theScore = theScore; } public override bool Score(ICollector collector, int max) { return bulkScorer.Score(WrapCollector(collector), max); } private ICollector WrapCollector(ICollector collector) { return new CollectorAnonymousInnerClassHelper(this, collector); } private class CollectorAnonymousInnerClassHelper : ICollector { private readonly ConstantBulkScorer outerInstance; private ICollector collector; public CollectorAnonymousInnerClassHelper(ConstantBulkScorer outerInstance, Lucene.Net.Search.ICollector collector) { this.outerInstance = outerInstance; this.collector = collector; } public virtual void SetScorer(Scorer scorer) { // we must wrap again here, but using the value passed in as parameter: collector.SetScorer(new ConstantScorer(outerInstance.outerInstance, scorer, outerInstance.weight, outerInstance.theScore)); } public virtual void Collect(int doc) { collector.Collect(doc); } public virtual void SetNextReader(AtomicReaderContext context) { collector.SetNextReader(context); } public virtual bool AcceptsDocsOutOfOrder => collector.AcceptsDocsOutOfOrder; } } // LUCENENET NOTE: Marked internal for testing protected internal class ConstantScorer : Scorer { private readonly ConstantScoreQuery outerInstance; internal readonly DocIdSetIterator docIdSetIterator; internal readonly float theScore; public ConstantScorer(ConstantScoreQuery outerInstance, DocIdSetIterator docIdSetIterator, Weight w, float theScore) : base(w) { this.outerInstance = outerInstance; this.theScore = theScore; this.docIdSetIterator = docIdSetIterator; } public override int NextDoc() { return docIdSetIterator.NextDoc(); } public override int DocID => docIdSetIterator.DocID; public override float GetScore() { Debug.Assert(docIdSetIterator.DocID != NO_MORE_DOCS); return theScore; } public override int Freq => 1; public override int Advance(int target) { return docIdSetIterator.Advance(target); } public override long GetCost() { return docIdSetIterator.GetCost(); } public override ICollection<ChildScorer> GetChildren() { if (outerInstance.m_query != null) { return new[] { new ChildScorer((Scorer)docIdSetIterator, "constant") }; } else { return Collections.EmptyList<ChildScorer>(); } } } public override Weight CreateWeight(IndexSearcher searcher) { return new ConstantScoreQuery.ConstantWeight(this, searcher); } public override string ToString(string field) { return (new StringBuilder("ConstantScore(")).Append((m_query == null) ? m_filter.ToString() : m_query.ToString(field)).Append(')').Append(ToStringUtils.Boost(Boost)).ToString(); } public override bool Equals(object o) { if (this == o) { return true; } if (!base.Equals(o)) { return false; } if (o is ConstantScoreQuery) { ConstantScoreQuery other = (ConstantScoreQuery)o; return ((this.m_filter == null) ? other.m_filter == null : this.m_filter.Equals(other.m_filter)) && ((this.m_query == null) ? other.m_query == null : this.m_query.Equals(other.m_query)); } return false; } public override int GetHashCode() { return 31 * base.GetHashCode() + ((m_query == null) ? (object)m_filter : m_query).GetHashCode(); } } }
{ "content_hash": "f96b425ffb1d37ee9871dacabd7d7d9e", "timestamp": "", "source": "github", "line_count": 360, "max_line_length": 202, "avg_line_length": 38.03611111111111, "alnum_prop": 0.5385233330899, "repo_name": "Ref12/Codex", "id": "1f73ff97ebbda1ffbf09c9eab9fa3845b538afdd", "size": "14554", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "lucenenet/src/Lucene.Net/Search/ConstantScoreQuery.cs", "mode": "33188", "license": "mit", "language": [ { "name": "ASP.NET", "bytes": "191" }, { "name": "Batchfile", "bytes": "6492" }, { "name": "C#", "bytes": "27195570" }, { "name": "CSS", "bytes": "149021" }, { "name": "Dockerfile", "bytes": "4544" }, { "name": "Gnuplot", "bytes": "2444" }, { "name": "HTML", "bytes": "92908" }, { "name": "Java", "bytes": "1891" }, { "name": "JavaScript", "bytes": "163538" }, { "name": "PowerShell", "bytes": "77482" }, { "name": "Shell", "bytes": "3436" }, { "name": "TypeScript", "bytes": "102306" } ], "symlink_target": "" }
package com.cdancy.etcd.rest.filters; import static com.google.common.base.Preconditions.checkNotNull; import static com.google.common.io.BaseEncoding.base64; import javax.inject.Inject; import javax.inject.Singleton; import org.jclouds.domain.Credentials; import org.jclouds.http.HttpException; import org.jclouds.http.HttpRequest; import org.jclouds.http.HttpRequestFilter; import org.jclouds.location.Provider; import com.google.common.base.Supplier; import com.google.common.net.HttpHeaders; @Singleton public class EtcdAuthentication implements HttpRequestFilter { private final Supplier<Credentials> creds; private static final String REGEX = "^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)$"; @Inject EtcdAuthentication(@Provider Supplier<Credentials> creds) { this.creds = creds; } @Override public HttpRequest filter(HttpRequest request) throws HttpException { Credentials currentCreds = checkNotNull(creds.get(), "credential supplier returned null"); if (currentCreds.credential != null && currentCreds.credential.trim().length() > 0) { /* * client can pass in credential string in 1 of 2 ways: 1.) As colon * delimited username and password: admin:password 2.) As base64 * encoded value of colon delimited username and password: * YWRtaW46cGFzc3dvcmQ= */ String foundCredential = currentCreds.credential; if (foundCredential.contains(":")) { foundCredential = base64().encode(foundCredential.getBytes()); } if (isBase64Encoded(foundCredential)) { return request.toBuilder().addHeader(HttpHeaders.AUTHORIZATION, "Basic " + foundCredential).build(); } else { throw new IllegalArgumentException("Credential is not in base64 format: credential=" + foundCredential); } } else { return request.toBuilder().build(); } } private boolean isBase64Encoded(String possiblyEncodedString) { return possiblyEncodedString.matches(REGEX) ? true : false; } }
{ "content_hash": "8887c43feda96b9f647c7523bff80bdc", "timestamp": "", "source": "github", "line_count": 59, "max_line_length": 120, "avg_line_length": 37.11864406779661, "alnum_prop": 0.6698630136986301, "repo_name": "cdancy/etcd-rest", "id": "a997f13708eeb29026af5a85c5888bb637edfbb6", "size": "2991", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/main/java/com/cdancy/etcd/rest/filters/EtcdAuthentication.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "183777" } ], "symlink_target": "" }
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.ApplicationModel; using Windows.ApplicationModel.Activation; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Controls.Primitives; using Windows.UI.Xaml.Data; using Windows.UI.Xaml.Input; using Windows.UI.Xaml.Media; using Windows.UI.Xaml.Navigation; namespace H09T1 { /// <summary> /// Provides application-specific behavior to supplement the default Application class. /// </summary> sealed partial class App : Application { /// <summary> /// Initializes the singleton application object. This is the first line of authored code /// executed, and as such is the logical equivalent of main() or WinMain(). /// </summary> public App() { this.InitializeComponent(); this.Suspending += OnSuspending; } /// <summary> /// Invoked when the application is launched normally by the end user. Other entry points /// will be used such as when the application is launched to open a specific file. /// </summary> /// <param name="e">Details about the launch request and process.</param> protected override void OnLaunched(LaunchActivatedEventArgs e) { #if DEBUG if (System.Diagnostics.Debugger.IsAttached) { this.DebugSettings.EnableFrameRateCounter = true; } #endif Frame rootFrame = Window.Current.Content as Frame; // Do not repeat app initialization when the Window already has content, // just ensure that the window is active if (rootFrame == null) { // Create a Frame to act as the navigation context and navigate to the first page rootFrame = new Frame(); rootFrame.NavigationFailed += OnNavigationFailed; if (e.PreviousExecutionState == ApplicationExecutionState.Terminated) { //TODO: Load state from previously suspended application } // Place the frame in the current Window Window.Current.Content = rootFrame; } if (e.PrelaunchActivated == false) { if (rootFrame.Content == null) { // When the navigation stack isn't restored navigate to the first page, // configuring the new page by passing required information as a navigation // parameter rootFrame.Navigate(typeof(MainPage), e.Arguments); } // Ensure the current window is active Window.Current.Activate(); } } /// <summary> /// Invoked when Navigation to a certain page fails /// </summary> /// <param name="sender">The Frame which failed navigation</param> /// <param name="e">Details about the navigation failure</param> void OnNavigationFailed(object sender, NavigationFailedEventArgs e) { throw new Exception("Failed to load Page " + e.SourcePageType.FullName); } /// <summary> /// Invoked when application execution is being suspended. Application state is saved /// without knowing whether the application will be terminated or resumed with the contents /// of memory still intact. /// </summary> /// <param name="sender">The source of the suspend request.</param> /// <param name="e">Details about the suspend request.</param> private void OnSuspending(object sender, SuspendingEventArgs e) { var deferral = e.SuspendingOperation.GetDeferral(); //TODO: Save application state and stop any background activity deferral.Complete(); } } }
{ "content_hash": "8579786d7d2f868613d2d3cb839eec72", "timestamp": "", "source": "github", "line_count": 106, "max_line_length": 99, "avg_line_length": 38.528301886792455, "alnum_prop": 0.6111655239960823, "repo_name": "AskoVaananen/Csharp-ohjelmointi", "id": "bf234ab5e7c057f0d95250a634f5ba54bc3c385a", "size": "4086", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "H09/H09T1/App.xaml.cs", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C#", "bytes": "282745" }, { "name": "HTML", "bytes": "14525" } ], "symlink_target": "" }
namespace ChilliSource { //------------------------------------------------------------------- TextEntryType ParseKeyboardInputType(const std::string& string) noexcept { std::string keyboardInputString = string; StringUtils::ToLowerCase(keyboardInputString); StringUtils::ToLowerCase(keyboardInputString); if (keyboardInputString == "text") { return TextEntryType::k_text; } else if (keyboardInputString == "numeric") { return TextEntryType::k_numeric; } CS_LOG_FATAL("Invalid keyboard input type."); return TextEntryType::k_text; } }
{ "content_hash": "1b211788469d80e439bea15e2e0f5edf", "timestamp": "", "source": "github", "line_count": 23, "max_line_length": 76, "avg_line_length": 28.91304347826087, "alnum_prop": 0.5503759398496241, "repo_name": "ChilliWorks/ChilliSource", "id": "4ccd452d35b7f47102018bb0f2c731ef9be7e9c9", "size": "1936", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Source/ChilliSource/Input/TextEntry/TextEntryType.cpp", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "9371694" }, { "name": "C++", "bytes": "9942473" }, { "name": "Java", "bytes": "1911615" }, { "name": "Makefile", "bytes": "18869" }, { "name": "Objective-C", "bytes": "210639" }, { "name": "Objective-C++", "bytes": "280471" }, { "name": "Python", "bytes": "53174" } ], "symlink_target": "" }
package com.asakusafw.utils.java.internal.model.syntax; import com.asakusafw.utils.java.model.syntax.Expression; import com.asakusafw.utils.java.model.syntax.FieldAccessExpression; import com.asakusafw.utils.java.model.syntax.ModelKind; import com.asakusafw.utils.java.model.syntax.SimpleName; import com.asakusafw.utils.java.model.syntax.Visitor; /** * An implementation of {@link FieldAccessExpression}. */ public final class FieldAccessExpressionImpl extends ModelRoot implements FieldAccessExpression { private Expression qualifier; private SimpleName name; @Override public Expression getQualifier() { return this.qualifier; } /** * Sets the qualifier expression. * @param qualifier the qualifier expression * @throws IllegalArgumentException if {@code qualifier} was {@code null} */ public void setQualifier(Expression qualifier) { Util.notNull(qualifier, "qualifier"); //$NON-NLS-1$ this.qualifier = qualifier; } @Override public SimpleName getName() { return this.name; } /** * Sets the field name. * @param name the field name * @throws IllegalArgumentException if {@code name} was {@code null} */ public void setName(SimpleName name) { Util.notNull(name, "name"); //$NON-NLS-1$ this.name = name; } /** * Returns {@link ModelKind#FIELD_ACCESS_EXPRESSION} which represents this element kind. * @return {@link ModelKind#FIELD_ACCESS_EXPRESSION} */ @Override public ModelKind getModelKind() { return ModelKind.FIELD_ACCESS_EXPRESSION; } @Override public <R, C, E extends Throwable> R accept(Visitor<R, C, E> visitor, C context) throws E { Util.notNull(visitor, "visitor"); //$NON-NLS-1$ return visitor.visitFieldAccessExpression(this, context); } }
{ "content_hash": "7e4f0e4cd4a7097be18c02e07388788f", "timestamp": "", "source": "github", "line_count": 63, "max_line_length": 97, "avg_line_length": 29.825396825396826, "alnum_prop": 0.6822778073443321, "repo_name": "asakusafw/asakusafw", "id": "c732983dd4b5af0d3de8bb82b074d8d7402285c4", "size": "2491", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "utils-project/java-dom/src/main/java/com/asakusafw/utils/java/internal/model/syntax/FieldAccessExpressionImpl.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "31" }, { "name": "CSS", "bytes": "650" }, { "name": "Groovy", "bytes": "277016" }, { "name": "Java", "bytes": "12812573" }, { "name": "Lex", "bytes": "12506" }, { "name": "Shell", "bytes": "10149" } ], "symlink_target": "" }
var displayObj; var systemObj; var infoTable; var originalDate; var inputFieldList = [ '#tournamentName', '#tournamentDate', '#tournamentSystem', '#leftImageURL', '#rightImageURL']; //var allSelectList = [ '#dickbuttURL', '#dogeURL', '#pepeURL' ]; var allSelectList = [ 'input' ]; // Figure out a better way to do this var GAME_SYSTEM_OBJECTS = {}; // Guild Ball var guildBallObj = {}; guildBallObj.name = 'Guild Ball'; guildBallObj.tiebreaks = ['Goals','Body<br>Count','Total VPs']; guildBallObj.faction_name = 'Guild'; guildBallObj.slug = 'guildball'; GAME_SYSTEM_OBJECTS[guildBallObj.slug] = guildBallObj; var otherSystemObj = {}; otherSystemObj.name = 'Other'; otherSystemObj.faction_name = 'Faction'; otherSystemObj.slug = 'other'; GAME_SYSTEM_OBJECTS[otherSystemObj.slug] = otherSystemObj; // ============== // Document.Ready // ============== $(document).ready(function() { common.getTournamentKey(false, true) if (common.tournamentKey) { $( '#outstream' ).html( 'Loading tournament information.' ); socket.emit( 'pullAllTournamentInfo', common.tournamentKey, 'misc' ); }; common.setSelectOnClick(allSelectList); }); // $(document).ready(function() { $( '#tournamentDetailsForm' ).submit(function() { if ($( '#tournamentName' ).val() != infoTable.name) { socket.emit( 'updateTournamentDetails', common.tournamentKey, 'infoTable.name', $( '#tournamentName' ).val()); }; if ($( '#tournamentDate' ).datepicker( 'getDate' ) != originalDate) { socket.emit( 'updateTournamentDetails', common.tournamentKey, 'infoTable.date', $( '#tournamentDate' ).val()); } if ($( '#tournamentSystem' ).val() != systemObj.name) { systemObj = common.chooseSystemObject($( '#tournamentSystem' ).val()) socket.emit( 'updateTournamentDetails', common.tournamentKey, 'systemObj.name', systemObj); } if ($( '#leftImageURL' ).val() != displayObj.left_image_url) { socket.emit( 'updateTournamentDetails', common.tournamentKey, 'displayObj.left_image_url', $( '#leftImageURL' ).val()); } if ($( '#rightImageURL' ).val() != displayObj.right_image_url) { socket.emit( 'updateTournamentDetails', common.tournamentKey, 'displayObj.right_image_url', $( '#rightImageURL' ).val()); } return false; }); $( '#detailsRevertButton' ).click(function() { fieldsFromObj(); return }); $( '#exampleURLsButton' ).click(function() { if ($( '#exampleURLs' ).hasClass( 'hidden' )) { $( '#exampleURLs' ).removeClass( 'hidden' ); $( '#exampleURLsButton' ).text( 'Hide Example Image URLs' ); } else { $( '#exampleURLs' ).addClass( 'hidden' ); $( '#exampleURLsButton' ).text( 'Show Example Image URLs' ); } }); $( '#leftImageURL' ).blur(function() { updateImages(); }); $( '#rightImageURL' ).blur(function() { updateImages(); }); function updateImages() { var leftURL = $( '#leftImageURL' ).val(); if (common.urlIsSafe(leftURL)) { if (leftURL.length > 1) { $( '#leftImageDiv' ).html('<img class="img-responsive center-block" src="' + leftURL + '"><h4 class="text-center">Left Image</h4>'); } else { $( '#leftImageDiv' ).html( '' ); }; }; var rightURL = $( '#rightImageURL' ).val(); if (common.urlIsSafe(rightURL)) { if (rightURL.length > 1) { $( '#rightImageDiv' ).html('<img class="img-responsive center-block" src="' + rightURL + '"><h4 class="text-center">Right Image</h4>'); } else { $( '#rightImageDiv' ).html( '' ); }; }; } common.urlIsSafe function fieldsFromObj() { $( '#tournamentName' ).val(infoTable.name); $( '#tournamentDate' ).datepicker( 'update', infoTable.date); originalDate = $( '#tournamentDate' ).datepicker( 'getDate' ); $( '#tournamentSystem' ).val(systemObj.name); $( '#leftImageURL' ).val(displayObj.left_image_url); $( '#rightImageURL' ).val(displayObj.right_image_url); }; $( '#tournamentDate' ).datepicker({ format: "d-M-yyyy", todayBtn: true, language: "en-GB", autoclose: true }); socket.on( 'pushAllTournamentInfo', function(playerList, infoTableIn, instructions) { if (infoTableIn) { infoTable = infoTableIn; displayObj = JSON.parse(infoTable.display_json); systemObj = JSON.parse(infoTable.system_json); fieldsFromObj(); updateImages() } $( '#outstream' ).html( '' ); $( '#allPageContent' ).removeClass( 'hidden' ); });
{ "content_hash": "f34fec62be120e96c062363d5bb2cc8a", "timestamp": "", "source": "github", "line_count": 131, "max_line_length": 141, "avg_line_length": 33.030534351145036, "alnum_prop": 0.6466373931130113, "repo_name": "nick-ng/NickTTnjs", "id": "961cc9d90112b7eb6d72cde8f4115c3fc45e5437", "size": "4327", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "js/misc.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "348" }, { "name": "HTML", "bytes": "40074" }, { "name": "JavaScript", "bytes": "121574" } ], "symlink_target": "" }
package org.apache.flink.runtime.highavailability.zookeeper; import org.apache.flink.api.common.JobID; import org.apache.flink.configuration.Configuration; import org.apache.flink.configuration.HighAvailabilityOptions; import org.apache.flink.runtime.highavailability.RunningJobsRegistry; import org.apache.flink.shaded.curator4.org.apache.curator.framework.CuratorFramework; import org.apache.flink.shaded.zookeeper3.org.apache.zookeeper.data.Stat; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.IOException; import java.nio.charset.Charset; import java.util.Arrays; import static org.apache.flink.util.Preconditions.checkNotNull; /** * A zookeeper based registry for running jobs, highly available. */ public class ZooKeeperRunningJobsRegistry implements RunningJobsRegistry { private static final Logger LOG = LoggerFactory.getLogger(ZooKeeperRunningJobsRegistry.class); private static final Charset ENCODING = Charset.forName("utf-8"); /** The ZooKeeper client to use. */ private final CuratorFramework client; private final String runningJobPath; public ZooKeeperRunningJobsRegistry(final CuratorFramework client, final Configuration configuration) { this.client = checkNotNull(client, "client"); this.runningJobPath = configuration.getString(HighAvailabilityOptions.ZOOKEEPER_RUNNING_JOB_REGISTRY_PATH); } @Override public void setJobRunning(JobID jobID) throws IOException { checkNotNull(jobID); try { writeEnumToZooKeeper(jobID, JobSchedulingStatus.RUNNING); } catch (Exception e) { throw new IOException("Failed to set RUNNING state in ZooKeeper for job " + jobID, e); } } @Override public void setJobFinished(JobID jobID) throws IOException { checkNotNull(jobID); try { writeEnumToZooKeeper(jobID, JobSchedulingStatus.DONE); } catch (Exception e) { throw new IOException("Failed to set DONE state in ZooKeeper for job " + jobID, e); } } @Override public JobSchedulingStatus getJobSchedulingStatus(JobID jobID) throws IOException { checkNotNull(jobID); try { final String zkPath = createZkPath(jobID); final Stat stat = client.checkExists().forPath(zkPath); if (stat != null) { // found some data, try to parse it final byte[] data = client.getData().forPath(zkPath); if (data != null) { try { final String name = new String(data, ENCODING); return JobSchedulingStatus.valueOf(name); } catch (IllegalArgumentException e) { throw new IOException("Found corrupt data in ZooKeeper: " + Arrays.toString(data) + " is no valid job status"); } } } // nothing found, yet, must be in status 'PENDING' return JobSchedulingStatus.PENDING; } catch (Exception e) { throw new IOException("Get finished state from zk fail for job " + jobID.toString(), e); } } @Override public void clearJob(JobID jobID) throws IOException { checkNotNull(jobID); try { final String zkPath = createZkPath(jobID); this.client.newNamespaceAwareEnsurePath(zkPath).ensure(client.getZookeeperClient()); this.client.delete().forPath(zkPath); } catch (Exception e) { throw new IOException("Failed to clear job state from ZooKeeper for job " + jobID, e); } } private String createZkPath(JobID jobID) { return runningJobPath + jobID.toString(); } private void writeEnumToZooKeeper(JobID jobID, JobSchedulingStatus status) throws Exception { LOG.debug("Setting scheduling state for job {} to {}.", jobID, status); final String zkPath = createZkPath(jobID); this.client.newNamespaceAwareEnsurePath(zkPath).ensure(client.getZookeeperClient()); this.client.setData().forPath(zkPath, status.name().getBytes(ENCODING)); } }
{ "content_hash": "994a3a10b7c75b23e85d1bf02b62c8e3", "timestamp": "", "source": "github", "line_count": 119, "max_line_length": 109, "avg_line_length": 31.26050420168067, "alnum_prop": 0.7481182795698925, "repo_name": "greghogan/flink", "id": "2fe5ff386a0ded8b258cf1c2c7e015cf00e0332d", "size": "4525", "binary": false, "copies": "9", "ref": "refs/heads/master", "path": "flink-runtime/src/main/java/org/apache/flink/runtime/highavailability/zookeeper/ZooKeeperRunningJobsRegistry.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "4588" }, { "name": "CSS", "bytes": "58146" }, { "name": "Clojure", "bytes": "93329" }, { "name": "Dockerfile", "bytes": "12142" }, { "name": "FreeMarker", "bytes": "25294" }, { "name": "HTML", "bytes": "108358" }, { "name": "Java", "bytes": "52179549" }, { "name": "JavaScript", "bytes": "1829" }, { "name": "Makefile", "bytes": "5134" }, { "name": "Python", "bytes": "1015013" }, { "name": "Scala", "bytes": "13763923" }, { "name": "Shell", "bytes": "513745" }, { "name": "TSQL", "bytes": "123113" }, { "name": "TypeScript", "bytes": "246974" } ], "symlink_target": "" }
import { Protocol } from 'devtools-protocol'; import { CDPSession } from './Connection.js'; import { ConsoleMessageType } from './ConsoleMessage.js'; import { EvaluateFunc, HandleFor } from './types.js'; import { EventEmitter } from './EventEmitter.js'; import { ExecutionContext } from './ExecutionContext.js'; import { JSHandle } from './JSHandle.js'; /** * @internal */ export declare type ConsoleAPICalledCallback = (eventType: ConsoleMessageType, handles: JSHandle[], trace: Protocol.Runtime.StackTrace) => void; /** * @internal */ export declare type ExceptionThrownCallback = (details: Protocol.Runtime.ExceptionDetails) => void; /** * This class represents a * {@link https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API | WebWorker}. * * @remarks * The events `workercreated` and `workerdestroyed` are emitted on the page * object to signal the worker lifecycle. * * @example * * ```ts * page.on('workercreated', worker => * console.log('Worker created: ' + worker.url()) * ); * page.on('workerdestroyed', worker => * console.log('Worker destroyed: ' + worker.url()) * ); * * console.log('Current workers:'); * for (const worker of page.workers()) { * console.log(' ' + worker.url()); * } * ``` * * @public */ export declare class WebWorker extends EventEmitter { #private; /** * @internal */ constructor(client: CDPSession, url: string, consoleAPICalled: ConsoleAPICalledCallback, exceptionThrown: ExceptionThrownCallback); /** * @internal */ executionContext(): Promise<ExecutionContext>; /** * @returns The URL of this web worker. */ url(): string; /** * If the function passed to the `worker.evaluate` returns a Promise, then * `worker.evaluate` would wait for the promise to resolve and return its * value. If the function passed to the `worker.evaluate` returns a * non-serializable value, then `worker.evaluate` resolves to `undefined`. * DevTools Protocol also supports transferring some additional values that * are not serializable by `JSON`: `-0`, `NaN`, `Infinity`, `-Infinity`, and * bigint literals. * Shortcut for `await worker.executionContext()).evaluate(pageFunction, ...args)`. * * @param pageFunction - Function to be evaluated in the worker context. * @param args - Arguments to pass to `pageFunction`. * @returns Promise which resolves to the return value of `pageFunction`. */ evaluate<Params extends unknown[], Func extends EvaluateFunc<Params> = EvaluateFunc<Params>>(pageFunction: Func | string, ...args: Params): Promise<Awaited<ReturnType<Func>>>; /** * The only difference between `worker.evaluate` and `worker.evaluateHandle` * is that `worker.evaluateHandle` returns in-page object (JSHandle). If the * function passed to the `worker.evaluateHandle` returns a `Promise`, then * `worker.evaluateHandle` would wait for the promise to resolve and return * its value. Shortcut for * `await worker.executionContext()).evaluateHandle(pageFunction, ...args)` * * @param pageFunction - Function to be evaluated in the page context. * @param args - Arguments to pass to `pageFunction`. * @returns Promise which resolves to the return value of `pageFunction`. */ evaluateHandle<Params extends unknown[], Func extends EvaluateFunc<Params> = EvaluateFunc<Params>>(pageFunction: Func | string, ...args: Params): Promise<HandleFor<Awaited<ReturnType<Func>>>>; } //# sourceMappingURL=WebWorker.d.ts.map
{ "content_hash": "98affa31bb8d5a7f9d6c5e6fe44d9207", "timestamp": "", "source": "github", "line_count": 86, "max_line_length": 196, "avg_line_length": 41.51162790697674, "alnum_prop": 0.6871148459383754, "repo_name": "ChromeDevTools/devtools-frontend", "id": "bd1263e14986dbd536bec83c926f13d7bad80f57", "size": "4186", "binary": false, "copies": "4", "ref": "refs/heads/main", "path": "front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.d.ts", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "CSS", "bytes": "615241" }, { "name": "Dart", "bytes": "205" }, { "name": "HTML", "bytes": "317251" }, { "name": "JavaScript", "bytes": "1401177" }, { "name": "LLVM", "bytes": "1918" }, { "name": "Makefile", "bytes": "687" }, { "name": "Python", "bytes": "133111" }, { "name": "Shell", "bytes": "1122" }, { "name": "TypeScript", "bytes": "15230731" }, { "name": "WebAssembly", "bytes": "921" } ], "symlink_target": "" }
<?php if(is_null($intQuestionExampleSeq)){ $strQuery = sprintf("INSERT INTO question_example_type1 SET question_seq=%d, contents='%s', create_date=now(), modify_date=default, answer_flg=0, delete_flg=default", $intQuestionSeq, $strContents, $intAnswerFlg ); }else{ $strQuery = sprintf("UPDATE question_example_type1 SET question_seq=%d, contents='%s', modify_date=now(), answer_flg=%d WHERE seq=%d", $intQuestionSeq, $strContents, $intAnswerFlg, $intQuestionExampleSeq ); } ?>
{ "content_hash": "6c8ed133b7bfc1bb7a57b16e1dc8e6a5", "timestamp": "", "source": "github", "line_count": 27, "max_line_length": 56, "avg_line_length": 23.74074074074074, "alnum_prop": 0.5507020280811232, "repo_name": "inkukyang/MamaOMR", "id": "70042956dcec662963ec90ce18886de68eb1c319", "size": "641", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "Model/Tests/SQL/MySQL/Question/setQuestionExampleType1.php", "mode": "33261", "license": "mit", "language": [ { "name": "CSS", "bytes": "721406" }, { "name": "HTML", "bytes": "5867" }, { "name": "JavaScript", "bytes": "711879" }, { "name": "PHP", "bytes": "646163" } ], "symlink_target": "" }
class Fash < File # rack_multipart is what you get when # a multipart-encoded form is submitted # # converts a standard rack multipart file upload # to an object paperclip will understand def initialize(rack_multipart) @original = rack_multipart super(rack_multipart.is_a?(String) ? rack_multipath : @original[:tempfile].path) end def to_tempfile @original[:tempfile] || @original end alias :paperclip_original_filename :original_filename def original_filename @original[:filename] || paperclip_original_filename end alias :paperclip_content_type :content_type def content_type @original[:type] || paperclip_content_type end end
{ "content_hash": "a3f0d44b77be13e067faa43c581ab534", "timestamp": "", "source": "github", "line_count": 25, "max_line_length": 84, "avg_line_length": 27.6, "alnum_prop": 0.7159420289855073, "repo_name": "crhym3/rmce_uploadr", "id": "4b51ab91041b16fc870c1ff81688c69783611fcc", "size": "911", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "lib/rmce_uploadr/core/fash.rb", "mode": "33188", "license": "mit", "language": [ { "name": "JavaScript", "bytes": "73510" }, { "name": "Ruby", "bytes": "81917" } ], "symlink_target": "" }
package org.finos.waltz.model.entity_workflow; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import org.finos.waltz.model.EntityReference; import org.finos.waltz.model.LastUpdatedProvider; import org.finos.waltz.model.Nullable; import org.finos.waltz.model.ProvenanceProvider; import org.immutables.value.Value; @Value.Immutable @JsonSerialize(as = ImmutableEntityWorkflowTransition.class) @JsonDeserialize(as = ImmutableEntityWorkflowTransition.class) public abstract class EntityWorkflowTransition implements LastUpdatedProvider, ProvenanceProvider { public abstract long workflowId(); public abstract EntityReference entityReference(); @Nullable public abstract String fromState(); public abstract String toState(); @Nullable public abstract String reason(); }
{ "content_hash": "d55f296b8a75a1eef8238aa274d37e69", "timestamp": "", "source": "github", "line_count": 30, "max_line_length": 65, "avg_line_length": 30, "alnum_prop": 0.8, "repo_name": "khartec/waltz", "id": "8828296151de35ecc97dde7beaf99af129d27367", "size": "1537", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "waltz-model/src/main/java/org/finos/waltz/model/entity_workflow/EntityWorkflowTransition.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "154584" }, { "name": "HTML", "bytes": "1387746" }, { "name": "Java", "bytes": "3415267" }, { "name": "JavaScript", "bytes": "2270186" }, { "name": "Shell", "bytes": "305" } ], "symlink_target": "" }
/** ****************************************************************************** * @attention * * Licensed under MCD-ST Liberty SW License Agreement V2, (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.st.com/software_license_agreement_liberty_v2 * * 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. * ****************************************************************************** */ #ifndef RADIO_H #define RADIO_H #include "WM.h" #include "DIALOG_Intern.h" /* Req. for Create indirect data structure */ #include "WIDGET.h" #if GUI_WINSUPPORT #if defined(__cplusplus) extern "C" { /* Make sure we have C-declarations in C++ programs */ #endif /********************************************************************* * * Bitmap indices */ #define RADIO_BI_INACTIV 0 #define RADIO_BI_ACTIV 1 #define RADIO_BI_CHECK 2 /********************************************************************* * * Skinning property indices */ #define RADIO_SKINFLEX_PI_PRESSED 0 #define RADIO_SKINFLEX_PI_UNPRESSED 1 /********************************************************************* * * Defaults for public configuration switches * ********************************************************************** The following are defaults for config switches which affect the interface specified in this module */ /********************************************************************* * * Defines * ********************************************************************** */ #define RADIO_TEXTPOS_RIGHT 0 #define RADIO_TEXTPOS_LEFT WIDGET_STATE_USER0 /* Not implemented, TBD */ /********************************************************************* * * Public Types * ********************************************************************** */ typedef WM_HMEM RADIO_Handle; typedef struct { GUI_COLOR aColorButton[4]; int ButtonSize; } RADIO_SKINFLEX_PROPS; /********************************************************************* * * Create functions * ********************************************************************** */ RADIO_Handle RADIO_Create (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int Id, int Flags, unsigned Para); RADIO_Handle RADIO_CreateEx (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int WinFlags, int ExFlags, int Id, int NumItems, int Spacing); RADIO_Handle RADIO_CreateUser (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int WinFlags, int ExFlags, int Id, int NumItems, int Spacing, int NumExtraBytes); RADIO_Handle RADIO_CreateIndirect(const GUI_WIDGET_CREATE_INFO * pCreateInfo, WM_HWIN hWinParent, int x0, int y0, WM_CALLBACK * cb); /********************************************************************* * * The callback ... * * Do not call it directly ! It is only to be used from within an * overwritten callback. */ void RADIO_Callback(WM_MESSAGE * pMsg); /********************************************************************* * * Standard member functions * ********************************************************************** */ void RADIO_SetDefaultFont (const GUI_FONT GUI_UNI_PTR* pFont); GUI_COLOR RADIO_SetDefaultFocusColor(GUI_COLOR Color); void RADIO_SetDefaultImage (const GUI_BITMAP * pBitmap, unsigned int Index); void RADIO_SetDefaultTextColor (GUI_COLOR TextColor); const GUI_FONT GUI_UNI_PTR* RADIO_GetDefaultFont (void); GUI_COLOR RADIO_GetDefaultTextColor (void); /********************************************************************* * * Member functions * ********************************************************************** */ void RADIO_AddValue (RADIO_Handle hObj, int Add); void RADIO_Dec (RADIO_Handle hObj); int RADIO_GetText (RADIO_Handle hObj, unsigned Index, char * pBuffer, int MaxLen); int RADIO_GetUserData (RADIO_Handle hObj, void * pDest, int NumBytes); void RADIO_Inc (RADIO_Handle hObj); void RADIO_SetBkColor (RADIO_Handle hObj, GUI_COLOR Color); GUI_COLOR RADIO_SetFocusColor(RADIO_Handle hObj, GUI_COLOR Color); void RADIO_SetFont (RADIO_Handle hObj, const GUI_FONT GUI_UNI_PTR* pFont); void RADIO_SetGroupId (RADIO_Handle hObj, U8 GroupId); void RADIO_SetImage (RADIO_Handle hObj, const GUI_BITMAP * pBitmap, unsigned int Index); void RADIO_SetText (RADIO_Handle hObj, const char* pText, unsigned Index); void RADIO_SetTextColor (RADIO_Handle hObj, GUI_COLOR Color); void RADIO_SetValue (RADIO_Handle hObj, int v); int RADIO_SetUserData (RADIO_Handle hObj, const void * pSrc, int NumBytes); const GUI_BITMAP * RADIO_GetImage(RADIO_Handle hObj, unsigned int Index); /********************************************************************* * * Member functions: Skinning * ********************************************************************** */ void RADIO_GetSkinFlexProps (RADIO_SKINFLEX_PROPS * pProps, int Index); void RADIO_SetSkinClassic (RADIO_Handle hObj); void RADIO_SetSkin (RADIO_Handle hObj, WIDGET_DRAW_ITEM_FUNC * pfDrawSkin); int RADIO_DrawSkinFlex (const WIDGET_ITEM_DRAW_INFO * pDrawItemInfo); void RADIO_SetSkinFlexProps (const RADIO_SKINFLEX_PROPS * pProps, int Index); void RADIO_SetDefaultSkinClassic(void); WIDGET_DRAW_ITEM_FUNC * RADIO_SetDefaultSkin(WIDGET_DRAW_ITEM_FUNC * pfDrawSkin); #define RADIO_SKIN_FLEX RADIO_DrawSkinFlex /********************************************************************* * * Query state * ********************************************************************** */ int RADIO_GetValue(RADIO_Handle hObj); #if defined(__cplusplus) } #endif #endif // GUI_WINSUPPORT #endif // RADIO_H /*************************** End of file ****************************/
{ "content_hash": "5ebfd6f910154783003ba2f82af1bf01", "timestamp": "", "source": "github", "line_count": 173, "max_line_length": 170, "avg_line_length": 37.05780346820809, "alnum_prop": 0.503665574793324, "repo_name": "james54068/stm32f429_learning", "id": "56436548201a17a1a04c1db76a7ce3da4a7ee0ff", "size": "8334", "binary": false, "copies": "13", "ref": "refs/heads/master", "path": "USB_MSC_HOST/Libraries/STemWinLibrary522_4x9i/inc/RADIO.h", "mode": "33188", "license": "mit", "language": [ { "name": "Assembly", "bytes": "1781117" }, { "name": "C", "bytes": "39049950" }, { "name": "C++", "bytes": "2532831" }, { "name": "CSS", "bytes": "270876" }, { "name": "JavaScript", "bytes": "996886" }, { "name": "Makefile", "bytes": "24127" }, { "name": "Objective-C", "bytes": "11759" }, { "name": "Shell", "bytes": "9891" } ], "symlink_target": "" }
#ifndef _IDCACHE_H_ #define _IDCACHE_H_ #include <sys/types.h> void idcache_init(void); void idcache_fini(void); char *getuserbyid(uid_t); char *getgroupbyid(gid_t); int getuidbyname(const char *, uid_t *); int getgidbyname(const char *, gid_t *); #endif /* !_IDCACHE_H_ */
{ "content_hash": "41f5a015c069fffc2c02756a16e7e1fd", "timestamp": "", "source": "github", "line_count": 15, "max_line_length": 41, "avg_line_length": 18.866666666666667, "alnum_prop": 0.6713780918727915, "repo_name": "jrobhoward/SCADAbase", "id": "558af0ce115f8c226330cf0bb323b913adcee1b2", "size": "1673", "binary": false, "copies": "2", "ref": "refs/heads/SCADAbase", "path": "usr.bin/csup/idcache.h", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "AGS Script", "bytes": "62471" }, { "name": "Assembly", "bytes": "4615704" }, { "name": "Awk", "bytes": "273794" }, { "name": "Batchfile", "bytes": "20333" }, { "name": "C", "bytes": "457666547" }, { "name": "C++", "bytes": "91495356" }, { "name": "CMake", "bytes": "17632" }, { "name": "CSS", "bytes": "104220" }, { "name": "ChucK", "bytes": "39" }, { "name": "D", "bytes": "6321" }, { "name": "DIGITAL Command Language", "bytes": "10638" }, { "name": "DTrace", "bytes": "1904158" }, { "name": "Emacs Lisp", "bytes": "32010" }, { "name": "EmberScript", "bytes": "286" }, { "name": "Forth", "bytes": "204603" }, { "name": "GAP", "bytes": "72078" }, { "name": "Groff", "bytes": "32376243" }, { "name": "HTML", "bytes": "5776268" }, { "name": "Haskell", "bytes": "2458" }, { "name": "IGOR Pro", "bytes": "6510" }, { "name": "Java", "bytes": "112547" }, { "name": "KRL", "bytes": "4950" }, { "name": "Lex", "bytes": "425858" }, { "name": "Limbo", "bytes": "4037" }, { "name": "Logos", "bytes": "179088" }, { "name": "Makefile", "bytes": "12750766" }, { "name": "Mathematica", "bytes": "21782" }, { "name": "Max", "bytes": "4105" }, { "name": "Module Management System", "bytes": "816" }, { "name": "Objective-C", "bytes": "1571960" }, { "name": "PHP", "bytes": "2471" }, { "name": "PLSQL", "bytes": "96552" }, { "name": "PLpgSQL", "bytes": "2212" }, { "name": "Perl", "bytes": "3947402" }, { "name": "Perl6", "bytes": "122803" }, { "name": "PostScript", "bytes": "152255" }, { "name": "Prolog", "bytes": "42792" }, { "name": "Protocol Buffer", "bytes": "54964" }, { "name": "Python", "bytes": "381066" }, { "name": "R", "bytes": "764" }, { "name": "Rebol", "bytes": "738" }, { "name": "Ruby", "bytes": "67015" }, { "name": "Scheme", "bytes": "5087" }, { "name": "Scilab", "bytes": "196" }, { "name": "Shell", "bytes": "10963470" }, { "name": "SourcePawn", "bytes": "2293" }, { "name": "SuperCollider", "bytes": "80208" }, { "name": "Tcl", "bytes": "7102" }, { "name": "TeX", "bytes": "720582" }, { "name": "VimL", "bytes": "19597" }, { "name": "XS", "bytes": "17496" }, { "name": "XSLT", "bytes": "4564" }, { "name": "Yacc", "bytes": "1881915" } ], "symlink_target": "" }
'use strict'; /** * Capitalize Filter * Capitalizes all the words of a given sentence. * If the format parameter is set to 'team', uppercase the team abbreviation. * i.e. CLUB DEPORTIVO LOGROÑÉS => Club Deportivo Logroñés * i.e. sd logroñés => SD Logroñés * @author Pablo Villoslada Puigcerber <[email protected]> * * @param {string} input The string to be formatted. * @param {string} [format] The format to be applied being the options 'all', 'first' or 'team'. * If not specified, 'all' is used. * @param {string} [separator] The character(s) to be used for separating the string. * If not specified, space is used. * @returns {string} Formatted string. */ angular.module('puigcerber.capitalize',[]) .filter('capitalize', function () { return function (input, format, separator) { if (!input) { return input; } format = format || 'all'; separator = separator || ' '; if (format === 'first') { // Capitalize the first letter of a sentence var output = input.charAt(0).toUpperCase() + input.slice(1).toLowerCase(); if (separator === ' ') { return output; } else { return output.split(separator).join(' '); } } else { return input.split(separator).map(function(word) { if (word.length === 2 && format === 'team') { // Uppercase team abbreviations like FC, CD, SD return word.toUpperCase(); } else { return word.charAt(0).toUpperCase() + word.slice(1).toLowerCase(); } }).join(' '); } }; });
{ "content_hash": "c1c478606da0cd591c93a174a078c859", "timestamp": "", "source": "github", "line_count": 44, "max_line_length": 96, "avg_line_length": 36.56818181818182, "alnum_prop": 0.5960223741454319, "repo_name": "Puigcerber/angular-capitalize-filter", "id": "cf02a652752e2f9305349e8374102dade27d5942", "size": "1617", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "capitalize.js", "mode": "33188", "license": "mit", "language": [ { "name": "JavaScript", "bytes": "5635" } ], "symlink_target": "" }
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("MVCMasterLayoutShare.Web.Primary")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("MVCMasterLayoutShare.Web.Primary")] [assembly: AssemblyCopyright("Copyright © 2013")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("65870343-d05c-4e5c-b27a-3ab32475202a")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
{ "content_hash": "837594dadda9069ad7617ea41c6eb75b", "timestamp": "", "source": "github", "line_count": 35, "max_line_length": 84, "avg_line_length": 39.91428571428571, "alnum_prop": 0.753042233357194, "repo_name": "Amadiere/MVCMasterLayoutShare", "id": "2ec8fae45a24f00b406a70b5531bc4995cc152c4", "size": "1400", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "MVCMasterLayoutShare.Web.Primary/Properties/AssemblyInfo.cs", "mode": "33188", "license": "mit", "language": [ { "name": "ASP", "bytes": "248" }, { "name": "C#", "bytes": "41861" }, { "name": "JavaScript", "bytes": "761765" } ], "symlink_target": "" }
package org.xlrnet.tibaija.processor; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.runners.MockitoJUnitRunner; import org.xlrnet.tibaija.commons.Value; import org.xlrnet.tibaija.exception.TIArgumentException; import org.xlrnet.tibaija.memory.NumberVariable; import static org.mockito.Mockito.when; /** * Tests that concern simple arithmetics. No trigonomy or logic. */ @RunWith(MockitoJUnitRunner.class) public class SimpleArithmeticsTest extends AbstractTI83PlusTest { @Test(expected = TIArgumentException.class) public void testInterpret_invalidProgram_factorial_complex() throws Exception { getEnvironment().interpret("4i!"); } @Test(expected = TIArgumentException.class) public void testInterpret_invalidProgram_factorial_minus_1() throws Exception { getEnvironment().interpret("(‾.6)!"); } @Test(expected = TIArgumentException.class) public void testInterpret_invalidProgram_factorial_minus_2() throws Exception { getEnvironment().interpret("(‾1)!"); } /** * Faculty on complex numbers is not allowed! */ @Test(expected = Exception.class) public void testInterpret_invalidProgram_faculty_complex() throws Exception { getEnvironment().interpret("4i!"); } @Test public void testInterpret_validProgram_addition_1() throws Exception { getEnvironment().interpret("1+2"); verifyLastResultValue(3.0); } @Test public void testInterpret_validProgram_addition_2() throws Exception { getEnvironment().interpret("123+456"); verifyLastResultValue(579); } @Test public void testInterpret_validProgram_addition_complex() throws Exception { getEnvironment().interpret("1+2+3i+4i"); verifyLastResultValue(3.0, 7.0); } @Test public void testInterpret_validProgram_complex_number() throws Exception { getEnvironment().interpret("456i"); verifyLastResultValue(0, 456); } @Test public void testInterpret_validProgram_cubicroot() throws Exception { getEnvironment().interpret("3∛(54"); verifyLastResultValue(11.339289449053858); } @Test public void testInterpret_validProgram_cubicroot_1() throws Exception { getEnvironment().interpret("∛(27"); verifyLastResultValue(3); } @Test public void testInterpret_validProgram_cubicroot_2() throws Exception { getEnvironment().interpret("∛(√(729"); verifyLastResultValue(3); } @Test public void testInterpret_validProgram_cubicroot_ambiguity() throws Exception { getEnvironment().interpret("3³√(9"); verifyLastResultValue(81); } @Test public void testInterpret_validProgram_cubicroot_complex_1() throws Exception { getEnvironment().interpret("∛(27i"); verifyLastResultValue(2.598076211, 1.5); } @Test public void testInterpret_validProgram_cubicroot_complex_2() throws Exception { getEnvironment().interpret("∛(27)i"); verifyLastResultValue(0, 3); } @Test public void testInterpret_validProgram_cubicroot_power() throws Exception { getEnvironment().interpret("∛(81^3"); verifyLastResultValue(81); } @Test public void testInterpret_validProgram_factorial_1() throws Exception { getEnvironment().interpret("4!"); verifyLastResultValue(24); } @Test public void testInterpret_validProgram_factorial_2() throws Exception { getEnvironment().interpret("5.5!"); verifyLastResultValue(287.8852778); } @Test public void testInterpret_validProgram_factorial_minus_1() throws Exception { getEnvironment().interpret("‾.5!"); // Should be interpreted as -(0.5!) verifyLastResultValue(-0.8862269255); } @Test public void testInterpret_validProgram_factorial_minus_2() throws Exception { getEnvironment().interpret("(‾.5)!"); verifyLastResultValue(1.772453851); } /** * -> 3i² must be interpreted as 3*(i²) = -3 */ @Test public void testInterpret_validProgram_imaginary_precedence_1() throws Exception { getEnvironment().interpret("3i²"); verifyLastResultValue(-3); } /** * -> ii² must be interpreted as i*(i²) */ @Test public void testInterpret_validProgram_imaginary_precedence_2() throws Exception { getEnvironment().interpret("ii²"); verifyLastResultValue(0, -1); } @Test public void testInterpret_validProgram_implicitMultiplication_numberVariable() { when(this.mockedMemory.getNumberVariableValue(NumberVariable.A)).thenReturn(Value.of(123)); when(this.mockedMemory.getNumberVariableValue(NumberVariable.B)).thenReturn(Value.of(456)); getEnvironment().interpret("ABA"); verifyLastResultValue(123 * 456 * 123); } @Test public void testInterpret_validProgram_memory_read_numberVariable_single() { when(this.mockedMemory.getNumberVariableValue(NumberVariable.A)).thenReturn(Value.of(123)); getEnvironment().interpret("A"); verifyLastResultValue(123); } @Test public void testInterpret_validProgram_multiplication_precedence() throws Exception { getEnvironment().interpret("1+4*5"); verifyLastResultValue(21); } @Test public void testInterpret_validProgram_multiplication_precedence_complex() throws Exception { getEnvironment().interpret("1+4*5i+2.5"); verifyLastResultValue(3.5, 20.0); } @Test public void testInterpret_validProgram_nCr_1() throws Exception { getEnvironment().interpret("40 nCr 8"); verifyLastResultValueWithBigTolerance(76904685L); } @Test public void testInterpret_validProgram_nCr_2() throws Exception { getEnvironment().interpret("8 nCr 70"); verifyLastResultValue(0); } @Test public void testInterpret_validProgram_nPr_1() throws Exception { getEnvironment().interpret("8 nPr 4"); verifyLastResultValue(1680); } @Test public void testInterpret_validProgram_nPr_2() throws Exception { getEnvironment().interpret("4 nPr 80"); verifyLastResultValue(0); } /** * Make sure that "8 nPr 4i" is interpreted as "(8 nPr 4)*i" i.e. no Exception may be thrown. */ @Test public void testInterpret_validProgram_nPr_complex_precedence() throws Exception { getEnvironment().interpret("8 nPr 4i"); verifyLastResultValue(0, 1680); } @Test public void testInterpret_validProgram_negation() throws Exception { getEnvironment().interpret("4-‾5"); verifyLastResultValue(9); } @Test public void testInterpret_validProgram_parentheses_1() throws Exception { getEnvironment().interpret("(1)"); verifyLastResultValue(1); } @Test public void testInterpret_validProgram_parentheses_2() throws Exception { getEnvironment().interpret("2(1+2)"); verifyLastResultValue(6); } @Test public void testInterpret_validProgram_parentheses_3() throws Exception { getEnvironment().interpret("((2(3))"); verifyLastResultValue(6); } @Test public void testInterpret_validProgram_power() throws Exception { getEnvironment().interpret("5^2*3^4"); verifyLastResultValue(2025); } @Test public void testInterpret_validProgram_power_complex() throws Exception { getEnvironment().interpret("5^3i*9"); verifyLastResultValue(0, 1125); } @Test public void testInterpret_validProgram_simple_number() throws Exception { getEnvironment().interpret("123"); verifyLastResultValue(123); } @Test public void testInterpret_validProgram_squared_1() throws Exception { getEnvironment().interpret("4²"); verifyLastResultValue(16); } @Test public void testInterpret_validProgram_squared_2() throws Exception { getEnvironment().interpret("4²²"); verifyLastResultValue(256); } @Test public void testInterpret_validProgram_squared_imaginary_1() throws Exception { getEnvironment().interpret("5i²"); verifyLastResultValue(-5); } @Test public void testInterpret_validProgram_squared_imaginary_2() throws Exception { getEnvironment().interpret("5²i"); verifyLastResultValue(0, 25); } @Test public void testInterpret_validProgram_squareroot_1() throws Exception { getEnvironment().interpret("√(4"); verifyLastResultValue(2); } @Test public void testInterpret_validProgram_squareroot_2() throws Exception { getEnvironment().interpret("√(√(16"); verifyLastResultValue(2); } @Test public void testInterpret_validProgram_squareroot_3() throws Exception { getEnvironment().interpret("√(√(16)4"); verifyLastResultValue(4); } @Test public void testInterpret_validProgram_squareroot_minus() throws Exception { getEnvironment().interpret("√(‾1"); verifyLastResultValue(0, 1); } @Test public void testInterpret_validProgram_subtraction() throws Exception { getEnvironment().interpret("1-2"); verifyLastResultValue(-1.0); } @Test public void testInterpret_validProgram_subtraction_complex() throws Exception { getEnvironment().interpret("1-2+3i-4i"); verifyLastResultValue(-1.0, -1.0); } @Test public void testInterpret_validProgram_xroot() throws Exception { getEnvironment().interpret("3×√27"); verifyLastResultValue(3); } @Test public void testInterpret_validProgram_xroot_complex_lhs_normal() throws Exception { getEnvironment().interpret("3i×√27"); verifyLastResultValue(-2.964383781, 0.4608999853); } @Test public void testInterpret_validProgram_xroot_complex_lhs_parentheses() throws Exception { getEnvironment().interpret("(3i)×√27"); verifyLastResultValue(0.4548324228, -0.8905770417); } @Test public void testInterpret_validProgram_xroot_complex_rhs_normal() throws Exception { getEnvironment().interpret("3×√27i"); verifyLastResultValue(0, 3); } @Test public void testInterpret_validProgram_xroot_complex_rhs_parentheses() throws Exception { getEnvironment().interpret("3×√(27i)"); verifyLastResultValue(2.598076211, 1.5); } @Test public void testInterpret_validProgram_xroot_decimal() throws Exception { getEnvironment().interpret("2.5×√5.6568542"); verifyLastResultValue(2); } }
{ "content_hash": "70d9b68e1a1e99ef563a968d47b19dca", "timestamp": "", "source": "github", "line_count": 348, "max_line_length": 99, "avg_line_length": 30.951149425287355, "alnum_prop": 0.66771887475629, "repo_name": "jhendess/tibaija", "id": "418f87c4a1bfdf3325b68858e9dd24aee36786e6", "size": "11957", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/test/java/org/xlrnet/tibaija/processor/SimpleArithmeticsTest.java", "mode": "33188", "license": "mit", "language": [ { "name": "ANTLR", "bytes": "13801" }, { "name": "Java", "bytes": "482160" } ], "symlink_target": "" }
class CreateLocations < ActiveRecord::Migration def change create_table :locations do |t| t.integer :parent_id t.string :name t.timestamps null: false end end end
{ "content_hash": "98c748a92fa267b7ee09abde3350d965", "timestamp": "", "source": "github", "line_count": 10, "max_line_length": 47, "avg_line_length": 19.4, "alnum_prop": 0.6649484536082474, "repo_name": "tamuundangan/priecer", "id": "be08c17d303b586147ea526962fe402e97085c0c", "size": "194", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "db/migrate/20150822084304_create_locations.rb", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "686" }, { "name": "HTML", "bytes": "4885" }, { "name": "JavaScript", "bytes": "661" }, { "name": "Ruby", "bytes": "22559" } ], "symlink_target": "" }
/* * The text above constitutes the entire PortAudio license; however, * the PortAudio community also makes the following non-binding requests: * * Any person wishing to distribute modifications to the Software is * requested to send the modifications to the original developer so that * they can be incorporated into the canonical version. It is also * requested that these non-binding requests be included along with the * license above. */ /** @file pa_mac_core @ingroup hostapi_src @author Bjorn Roche @brief AUHAL implementation of PortAudio */ #ifndef PA_MAC_CORE_INTERNAL_H__ #define PA_MAC_CORE_INTERNAL_H__ #include <AudioUnit/AudioUnit.h> #include <AudioToolbox/AudioToolbox.h> #include "portaudio.h" #include "pa_util.h" #include "pa_hostapi.h" #include "pa_stream.h" #include "pa_allocation.h" #include "pa_cpuload.h" #include "pa_process.h" #include "pa_ringbuffer.h" #include "pa_mac_core_blocking.h" /* function prototypes */ #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ PaError PaMacCore_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index ); #ifdef __cplusplus } #endif /* __cplusplus */ #define RING_BUFFER_ADVANCE_DENOMINATOR (4) PaError ReadStream( PaStream* stream, void *buffer, unsigned long frames ); PaError WriteStream( PaStream* stream, const void *buffer, unsigned long frames ); signed long GetStreamReadAvailable( PaStream* stream ); signed long GetStreamWriteAvailable( PaStream* stream ); /* PaMacAUHAL - host api datastructure specific to this implementation */ typedef struct { PaUtilHostApiRepresentation inheritedHostApiRep; PaUtilStreamInterface callbackStreamInterface; PaUtilStreamInterface blockingStreamInterface; PaUtilAllocationGroup *allocations; /* implementation specific data goes here */ long devCount; AudioDeviceID *devIds; /*array of all audio devices*/ AudioDeviceID defaultIn; AudioDeviceID defaultOut; } PaMacAUHAL; /* stream data structure specifically for this implementation */ typedef struct PaMacCoreStream { PaUtilStreamRepresentation streamRepresentation; PaUtilCpuLoadMeasurer cpuLoadMeasurer; PaUtilBufferProcessor bufferProcessor; /* implementation specific data goes here */ bool bufferProcessorIsInitialized; AudioUnit inputUnit; AudioUnit outputUnit; AudioDeviceID inputDevice; AudioDeviceID outputDevice; size_t userInChan; size_t userOutChan; size_t inputFramesPerBuffer; size_t outputFramesPerBuffer; PaMacBlio blio; /* We use this ring buffer when input and out devs are different. */ PaUtilRingBuffer inputRingBuffer; /* We may need to do SR conversion on input. */ AudioConverterRef inputSRConverter; /* We need to preallocate an inputBuffer for reading data. */ AudioBufferList inputAudioBufferList; AudioTimeStamp startTime; volatile PaStreamCallbackFlags xrunFlags; volatile bool isTimeSet; volatile enum { STOPPED = 0, /* playback is completely stopped, and the user has called StopStream(). */ CALLBACK_STOPPED = 1, /* callback has requested stop, but user has not yet called StopStream(). */ STOPPING = 2, /* The stream is in the process of closing. This state is just used internally; externally it is indistinguishable from ACTIVE.*/ ACTIVE = 3 /* The stream is active and running. */ } state; double sampleRate; //these may be different from the stream sample rate due to SR conversion: double outDeviceSampleRate; double inDeviceSampleRate; } PaMacCoreStream; #endif /* PA_MAC_CORE_INTERNAL_H__ */
{ "content_hash": "8cc9e1a1650fb3172fc22bb087882376", "timestamp": "", "source": "github", "line_count": 122, "max_line_length": 92, "avg_line_length": 31.295081967213115, "alnum_prop": 0.7090099528548979, "repo_name": "pikoro/sharpsdr", "id": "998b819ce0c5b41e0ad3e54cb0b5014be602bd7f", "size": "5636", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "PortAudio/branches/users/davidv/v19-devel-debugprint-sept-06/src/hostapi/coreaudio/pa_mac_core_internal.h", "mode": "33188", "license": "mit", "language": [ { "name": "Batchfile", "bytes": "11088" }, { "name": "C", "bytes": "30751426" }, { "name": "C#", "bytes": "760314" }, { "name": "C++", "bytes": "6618685" }, { "name": "CMake", "bytes": "61471" }, { "name": "HTML", "bytes": "604536" }, { "name": "Java", "bytes": "173104" }, { "name": "Makefile", "bytes": "24601" }, { "name": "Python", "bytes": "215120" }, { "name": "Shell", "bytes": "9763913" } ], "symlink_target": "" }
macro(doxygen_exclude FOLDER) set(DOXYGEN_EXCLUDE "${DOXYGEN_EXCLUDE} ${CMAKE_CURRENT_SOURCE_DIR}/src/CGUL/${FOLDER}") endmacro() if(DOXYGEN_ENABLE) # Find the doxygen executable find_package(Doxygen) if(DOXYGEN_FOUND) # Control doxygen output messages set(DOXYGEN_SHOW_WARNINGS "NO") set(DOXYGEN_QUIET "YES") if(DOXYGEN_WARNINGS) set(DOXYGEN_SHOW_WARNINGS "YES") set(DOXYGEN_QUIET "NO") endif() # Use a different doxyfile depending on the doxygen version available if(${DOXYGEN_VERSION} VERSION_LESS 1.7) set(DOXYGEN_IN "Doxyfile-1.6.in") elseif(${DOXYGEN_VERSION} VERSION_GREATER 1.6.1) set(DOXYGEN_IN "Doxyfile.in") else() message(SEND_ERROR "Invalid Doxygen version. Requires version 1.6.1 or higher. Set DOXYGEN_ENABLE to OFF to disable this error.") endif() # Make sure the doxygen version is compatible if(NOT "${DOXYGEN_IN}" STREQUAL "") # Setup doxygen defines set(DOXYGEN_DEFINES "") # Setup doxygen excludes if(NOT Assimp_FOUND) doxygen_exclude(Assimp) endif() if(NOT PortAudio_FOUND) doxygen_exclude(PortAudio) endif() if(NOT CGUL_USE_OPENGL) doxygen_exclude(OpenGL) endif() # Configure the doxygen file configure_file(${CMAKE_CURRENT_SOURCE_DIR}/resources/${DOXYGEN_IN} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY) # Add a build step to build doxygen add_custom_target(doc ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Generating API documentation with Doxygen" VERBATIM) endif() endif() else() set(DOXYGEN_FOUND OFF) endif()
{ "content_hash": "74bcb5fc16e93c89022befddf5c95749", "timestamp": "", "source": "github", "line_count": 55, "max_line_length": 142, "avg_line_length": 35.527272727272724, "alnum_prop": 0.5910951893551689, "repo_name": "Zethes/CGUL", "id": "fe311c634ced38ac6bee0eaf2cea77ac34153705", "size": "1954", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "cmake/Programs/Doxygen.cmake", "mode": "33188", "license": "bsd-2-clause", "language": [ { "name": "C", "bytes": "886001" }, { "name": "C++", "bytes": "985940" }, { "name": "Objective-C++", "bytes": "13097" }, { "name": "Shell", "bytes": "2071" } ], "symlink_target": "" }
package uk.gov.dvsa.ui.pages.cpms; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import uk.gov.dvsa.domain.navigation.MotPageFactory; import uk.gov.dvsa.framework.config.webdriver.MotAppDriver; import uk.gov.dvsa.helper.FormDataHelper; import uk.gov.dvsa.helper.PageInteractionHelper; import uk.gov.dvsa.ui.pages.Page; public class ReferenceSearchPage extends Page { private static final String PAGE_TITLE = "Reference search"; public static final String PATH = "/payment/search"; @FindBy(xpath = "//*[contains(text(), 'Payment reference')]/input") private WebElement paymentReferenceButton; @FindBy(xpath = "//*[contains(text(), 'Invoice reference')]/input") private WebElement invoiceReferenceButton; @FindBy(id = "inputReference") private WebElement referenceInputElement; @FindBy(id = "submitAeSearch") private WebElement searchButton; public ReferenceSearchPage(MotAppDriver driver) { super(driver); selfVerify(); } @Override protected boolean selfVerify() { return PageInteractionHelper.verifyTitle(this.getTitle(), PAGE_TITLE); } public ReferenceSearchPage choosePaymentReference() { paymentReferenceButton.click(); return this; } public ReferenceSearchPage chooseInvoiceReference() { invoiceReferenceButton.click(); return this; } public ReferenceSearchResultsPage searchForReference(String value) { FormDataHelper.enterText(referenceInputElement, value); searchButton.click(); return new ReferenceSearchResultsPage(driver); } }
{ "content_hash": "f2ec50e36e6f5558b16472edb9bc984c", "timestamp": "", "source": "github", "line_count": 45, "max_line_length": 114, "avg_line_length": 36.2, "alnum_prop": 0.7329650092081031, "repo_name": "dvsa/mot", "id": "de869cee2701b720eb5cf6bcff62e76823d27028", "size": "1629", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "mot-selenium/src/main/java/uk/gov/dvsa/ui/pages/cpms/ReferenceSearchPage.java", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "604618" }, { "name": "Dockerfile", "bytes": "2693" }, { "name": "Gherkin", "bytes": "189981" }, { "name": "HTML", "bytes": "1579702" }, { "name": "Java", "bytes": "1631717" }, { "name": "JavaScript", "bytes": "156823" }, { "name": "Makefile", "bytes": "2877" }, { "name": "PHP", "bytes": "20142004" }, { "name": "PLpgSQL", "bytes": "61098" }, { "name": "Python", "bytes": "3354" }, { "name": "Ruby", "bytes": "72" }, { "name": "SQLPL", "bytes": "1739266" }, { "name": "Shell", "bytes": "203709" } ], "symlink_target": "" }
/* Public domain */ #include <agar/config/ag_debug.h> #include <agar/config/ag_legacy.h> #include <agar/config/ag_threads.h> #include <agar/core/threads.h> #include <agar/config/_mk_have_stdlib_h.h> #ifdef _MK_HAVE_STDLIB_H # include <stdlib.h> #endif #include <agar/config/_mk_have_unistd_h.h> #ifdef _MK_HAVE_UNISTD_H # include <unistd.h> #endif #include <string.h> #include <stdio.h> #include <agar/core/limits.h> #include <agar/core/queue.h> #include <agar/core/cpuinfo.h> #if !defined(AG_BIG_ENDIAN) && !defined(AG_LITTLE_ENDIAN) # define AG_BIG_ENDIAN 4321 # define AG_LITTLE_ENDIAN 1234 # include <agar/config/_mk_big_endian.h> # include <agar/config/_mk_little_endian.h> # if defined(_MK_BIG_ENDIAN) # define AG_BYTEORDER AG_BIG_ENDIAN # elif defined(_MK_LITTLE_ENDIAN) # define AG_BYTEORDER AG_LITTLE_ENDIAN # else # error "Byte order is unknown" # endif # undef _MK_BIG_ENDIAN # undef _MK_LITTLE_ENDIAN #endif /* !AG_BIG_ENDIAN && !AG_LITTLE_ENDIAN */
{ "content_hash": "c25efe92335bf7d9750a4c16709d61f4", "timestamp": "", "source": "github", "line_count": 40, "max_line_length": 57, "avg_line_length": 24.3, "alnum_prop": 0.7098765432098766, "repo_name": "adsr/agar", "id": "5e6741c60d11bae3b4be6e295327a3c2d5e7d15e", "size": "972", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "core/core_begin.h", "mode": "33188", "license": "bsd-2-clause", "language": [ { "name": "Ada", "bytes": "475833" }, { "name": "C", "bytes": "4138541" }, { "name": "C++", "bytes": "24584" }, { "name": "Groff", "bytes": "908930" }, { "name": "Lua", "bytes": "24529" }, { "name": "Makefile", "bytes": "335081" }, { "name": "Perl", "bytes": "96261" }, { "name": "Perl6", "bytes": "194" }, { "name": "Scheme", "bytes": "1613" }, { "name": "Shell", "bytes": "578379" }, { "name": "XS", "bytes": "143008" } ], "symlink_target": "" }
FROM balenalib/jetson-xavier-nx-devkit-emmc-alpine:3.13-build # remove several traces of python RUN apk del python* # http://bugs.python.org/issue19846 # > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK. ENV LANG C.UTF-8 # key 63C7CC90: public key "Simon McVittie <[email protected]>" imported # key 3372DCFA: public key "Donald Stufft (dstufft) <[email protected]>" imported RUN gpg --keyserver keyring.debian.org --recv-keys 4DE8FF2A63C7CC90 \ && gpg --keyserver keyserver.ubuntu.com --recv-key 6E3CBCE93372DCFA \ && gpg --keyserver keyserver.ubuntu.com --recv-keys 0x52a43a1e4b77b059 # point Python at a system-provided certificate database. Otherwise, we might hit CERTIFICATE_VERIFY_FAILED. # https://www.python.org/dev/peps/pep-0476/#trust-database ENV SSL_CERT_FILE /etc/ssl/certs/ca-certificates.crt ENV PYTHON_VERSION 3.10.2 # if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'" ENV PYTHON_PIP_VERSION 21.3.1 ENV SETUPTOOLS_VERSION 60.5.4 RUN set -x \ && curl -SLO "http://resin-packages.s3.amazonaws.com/python/v$PYTHON_VERSION/Python-$PYTHON_VERSION.linux-alpine-aarch64-libffi3.3.tar.gz" \ && echo "3d327fa89bc66d2ded976202d98f7b0f365d615dd29ca5dee3db626f42731d08 Python-$PYTHON_VERSION.linux-alpine-aarch64-libffi3.3.tar.gz" | sha256sum -c - \ && tar -xzf "Python-$PYTHON_VERSION.linux-alpine-aarch64-libffi3.3.tar.gz" --strip-components=1 \ && rm -rf "Python-$PYTHON_VERSION.linux-alpine-aarch64-libffi3.3.tar.gz" \ && if [ ! -e /usr/local/bin/pip3 ]; then : \ && curl -SLO "https://raw.githubusercontent.com/pypa/get-pip/430ba37776ae2ad89f794c7a43b90dc23bac334c/get-pip.py" \ && echo "19dae841a150c86e2a09d475b5eb0602861f2a5b7761ec268049a662dbd2bd0c get-pip.py" | sha256sum -c - \ && python3 get-pip.py \ && rm get-pip.py \ ; fi \ && pip3 install --no-cache-dir --upgrade --force-reinstall pip=="$PYTHON_PIP_VERSION" setuptools=="$SETUPTOOLS_VERSION" \ && find /usr/local \ \( -type d -a -name test -o -name tests \) \ -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \ -exec rm -rf '{}' + \ && cd / \ && rm -rf /usr/src/python ~/.cache # install "virtualenv", since the vast majority of users of this image will want it RUN pip3 install --no-cache-dir virtualenv ENV PYTHON_DBUS_VERSION 1.2.18 # install dbus-python dependencies RUN apk add --no-cache \ dbus-dev \ dbus-glib-dev # install dbus-python RUN set -x \ && mkdir -p /usr/src/dbus-python \ && curl -SL "http://dbus.freedesktop.org/releases/dbus-python/dbus-python-$PYTHON_DBUS_VERSION.tar.gz" -o dbus-python.tar.gz \ && curl -SL "http://dbus.freedesktop.org/releases/dbus-python/dbus-python-$PYTHON_DBUS_VERSION.tar.gz.asc" -o dbus-python.tar.gz.asc \ && gpg --verify dbus-python.tar.gz.asc \ && tar -xzC /usr/src/dbus-python --strip-components=1 -f dbus-python.tar.gz \ && rm dbus-python.tar.gz* \ && cd /usr/src/dbus-python \ && PYTHON_VERSION=$(expr match "$PYTHON_VERSION" '\([0-9]*\.[0-9]*\)') ./configure \ && make -j$(nproc) \ && make install -j$(nproc) \ && cd / \ && rm -rf /usr/src/dbus-python # make some useful symlinks that are expected to exist RUN cd /usr/local/bin \ && ln -sf pip3 pip \ && { [ -e easy_install ] || ln -s easy_install-* easy_install; } \ && ln -sf idle3 idle \ && ln -sf pydoc3 pydoc \ && ln -sf python3 python \ && ln -sf python3-config python-config CMD ["echo","'No CMD command was set in Dockerfile! Details about CMD command could be found in Dockerfile Guide section in our Docs. Here's the link: https://balena.io/docs"] RUN curl -SLO "https://raw.githubusercontent.com/balena-io-library/base-images/8accad6af708fca7271c5c65f18a86782e19f877/scripts/assets/tests/[email protected]" \ && echo "Running test-stack@python" \ && chmod +x [email protected] \ && bash [email protected] \ && rm -rf [email protected] RUN [ ! -d /.balena/messages ] && mkdir -p /.balena/messages; echo $'Here are a few details about this Docker image (For more information please visit https://www.balena.io/docs/reference/base-images/base-images/): \nArchitecture: ARM v8 \nOS: Alpine Linux 3.13 \nVariant: build variant \nDefault variable(s): UDEV=off \nThe following software stack is preinstalled: \nPython v3.10.2, Pip v21.3.1, Setuptools v60.5.4 \nExtra features: \n- Easy way to install packages with `install_packages <package-name>` command \n- Run anywhere with cross-build feature (for ARM only) \n- Keep the container idling with `balena-idle` command \n- Show base image details with `balena-info` command' > /.balena/messages/image-info RUN echo $'#!/bin/bash\nbalena-info\nbusybox ln -sf /bin/busybox /bin/sh\n/bin/sh "$@"' > /bin/sh-shim \ && chmod +x /bin/sh-shim \ && ln -f /bin/sh /bin/sh.real \ && ln -f /bin/sh-shim /bin/sh
{ "content_hash": "d33fa7727a768b1343ae6888785789cb", "timestamp": "", "source": "github", "line_count": 93, "max_line_length": 716, "avg_line_length": 51.96774193548387, "alnum_prop": 0.7080488309538588, "repo_name": "resin-io-library/base-images", "id": "0f3251f7f7d63147c1300ef0781b89bc9d988050", "size": "4854", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "balena-base-images/python/jetson-xavier-nx-devkit-emmc/alpine/3.13/3.10.2/build/Dockerfile", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Dockerfile", "bytes": "71234697" }, { "name": "JavaScript", "bytes": "13096" }, { "name": "Shell", "bytes": "12051936" }, { "name": "Smarty", "bytes": "59789" } ], "symlink_target": "" }
using System; using System.Collections; using Alphora.Dataphor.DAE.Client.Controls; using System.ComponentModel.Design.Serialization; namespace Alphora.Dataphor.DAE.Client.Design { /// <summary> Excludes default columns from serialization. </summary> public class GridColumnsSerializer : CodeDomSerializer { public GridColumnsSerializer() {} public override object Serialize(IDesignerSerializationManager AManager, object AValue) { CodeDomSerializer LBaseSerializer = (CodeDomSerializer)AManager.GetSerializer ( typeof(System.Collections.ArrayList), typeof(CodeDomSerializer) ); GridColumns LColumns = (GridColumns)AValue; if ((LColumns.Count > 0) && (LColumns[0].IsDefaultGridColumn)) { ArrayList LSerializeColumns = new ArrayList(); return LBaseSerializer.Serialize(AManager, LSerializeColumns); } else return LBaseSerializer.Serialize(AManager, AValue); } public override object Deserialize(IDesignerSerializationManager AManager, object AValue) { CodeDomSerializer LBaseSerializer = (CodeDomSerializer)AManager.GetSerializer ( typeof(Alphora.Dataphor.DAE.Client.Controls.GridColumns).BaseType, typeof(CodeDomSerializer) ); return LBaseSerializer.Deserialize(AManager, AValue); } } }
{ "content_hash": "e48410f030a6e6b5f02faefdc5761a7b", "timestamp": "", "source": "github", "line_count": 41, "max_line_length": 92, "avg_line_length": 32.170731707317074, "alnum_prop": 0.7445034116755117, "repo_name": "JClingo/gitbook", "id": "f25ac2c27ced44b7005bf0e9dc9917d94da514b3", "size": "1488", "binary": false, "copies": "3", "ref": "refs/heads/master", "path": "Dataphor/DAE.Client.Controls/Design/GridColumnsSerializer.cs", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "ASP", "bytes": "10945" }, { "name": "Batchfile", "bytes": "3315" }, { "name": "C", "bytes": "119340" }, { "name": "C#", "bytes": "12350872" }, { "name": "C++", "bytes": "12364" }, { "name": "CSS", "bytes": "70313" }, { "name": "HTML", "bytes": "17417" }, { "name": "JavaScript", "bytes": "24437" }, { "name": "PLSQL", "bytes": "10915" }, { "name": "PLpgSQL", "bytes": "19912" }, { "name": "TypeScript", "bytes": "1" } ], "symlink_target": "" }
'use strict'; /** * @ngdoc function * @name inflightHubApp.controller:AboutCtrl * @description * # AboutCtrl * Controller of the inflightHubApp */ angular.module('inflightHubApp') .controller('dailyExcludedCtrl', function () { this.awesomeThings = [ 'HTML5 Boilerplate', 'AngularJS', 'Karma' ]; });
{ "content_hash": "898dc5467433ad5849a613c2aa0f95cc", "timestamp": "", "source": "github", "line_count": 17, "max_line_length": 48, "avg_line_length": 19.764705882352942, "alnum_prop": 0.6458333333333334, "repo_name": "Sirintra1/FlightHub", "id": "56c5557993d7f3b980a57c6f6e8efe33543c277e", "size": "336", "binary": false, "copies": "3", "ref": "refs/heads/master", "path": "app/scripts/controllers/dailyExcluded.js", "mode": "33261", "license": "mit", "language": [ { "name": "ApacheConf", "bytes": "24139" }, { "name": "CSS", "bytes": "120185" }, { "name": "HTML", "bytes": "117659" }, { "name": "JavaScript", "bytes": "340210" } ], "symlink_target": "" }
package io.shardingsphere.core.rewrite.placeholder; import lombok.Getter; import lombok.RequiredArgsConstructor; /** * Schema placeholder for rewrite. * * @author zhangliang */ @RequiredArgsConstructor @Getter public final class SchemaPlaceholder implements ShardingPlaceholder { private final String logicSchemaName; private final String logicTableName; @Override public String toString() { return logicSchemaName; } }
{ "content_hash": "cfce23f98a22102661cbc48e60fedcad", "timestamp": "", "source": "github", "line_count": 25, "max_line_length": 69, "avg_line_length": 18.84, "alnum_prop": 0.7346072186836518, "repo_name": "dangdangdotcom/sharding-jdbc", "id": "33eb82f0908a3fa415ea63406aab565b1e476991", "size": "1089", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "sharding-core/src/main/java/io/shardingsphere/core/rewrite/placeholder/SchemaPlaceholder.java", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.keyboard_accessory.sheet_tabs; import static org.hamcrest.Matchers.instanceOf; import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.not; import static org.hamcrest.Matchers.nullValue; import static org.junit.Assert.assertThat; import android.support.test.filters.MediumTest; import android.view.View; import android.view.ViewGroup; import android.widget.LinearLayout; import android.widget.TextView; import androidx.annotation.IdRes; import androidx.recyclerview.widget.RecyclerView; import org.junit.After; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; import org.chromium.base.test.util.CommandLineFlags; import org.chromium.chrome.browser.flags.ChromeSwitches; import org.chromium.chrome.browser.keyboard_accessory.AccessoryTabType; import org.chromium.chrome.browser.keyboard_accessory.R; import org.chromium.chrome.browser.keyboard_accessory.data.KeyboardAccessoryData; import org.chromium.chrome.browser.keyboard_accessory.data.KeyboardAccessoryData.UserInfo; import org.chromium.chrome.browser.keyboard_accessory.data.UserInfoField; import org.chromium.chrome.browser.keyboard_accessory.sheet_component.AccessorySheetCoordinator; import org.chromium.chrome.browser.keyboard_accessory.sheet_tabs.AccessorySheetTabModel.AccessorySheetDataPiece; import org.chromium.chrome.test.ChromeJUnit4ClassRunner; import org.chromium.chrome.test.ChromeTabbedActivityTestRule; import org.chromium.content_public.browser.test.util.Criteria; import org.chromium.content_public.browser.test.util.CriteriaHelper; import org.chromium.content_public.browser.test.util.TestThreadUtils; import org.chromium.ui.widget.ChipView; import java.util.concurrent.ExecutionException; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicReference; /** * View tests for the address accessory sheet. */ @RunWith(ChromeJUnit4ClassRunner.class) @CommandLineFlags.Add({ChromeSwitches.DISABLE_FIRST_RUN_EXPERIENCE}) public class AddressAccessorySheetViewTest { private final AccessorySheetTabModel mModel = new AccessorySheetTabModel(); private AtomicReference<RecyclerView> mView = new AtomicReference<>(); @Rule public ChromeTabbedActivityTestRule mActivityTestRule = new ChromeTabbedActivityTestRule(); @Before public void setUp() throws InterruptedException { mActivityTestRule.startMainActivityOnBlankPage(); TestThreadUtils.runOnUiThreadBlocking(() -> { AccessorySheetCoordinator accessorySheet = new AccessorySheetCoordinator(mActivityTestRule.getActivity().findViewById( R.id.keyboard_accessory_sheet_stub)); accessorySheet.setTabs(new KeyboardAccessoryData.Tab[] {new KeyboardAccessoryData.Tab( "Addresses", null, null, R.layout.address_accessory_sheet, AccessoryTabType.ADDRESSES, new KeyboardAccessoryData.Tab.Listener() { @Override public void onTabCreated(ViewGroup view) { mView.set((RecyclerView) view); AccessorySheetTabViewBinder.initializeView(mView.get(), null); AddressAccessorySheetViewBinder.initializeView(mView.get(), mModel); } @Override public void onTabShown() {} })}); accessorySheet.setHeight( mActivityTestRule.getActivity().getResources().getDimensionPixelSize( R.dimen.keyboard_accessory_sheet_height)); accessorySheet.show(); }); CriteriaHelper.pollUiThread(Criteria.equals(true, () -> mView.get() != null)); } @After public void tearDown() { mView.set(null); } @Test @MediumTest public void testAddingCaptionsToTheModelRendersThem() { assertThat(mView.get().getChildCount(), is(0)); TestThreadUtils.runOnUiThreadBlocking(() -> { mModel.add( new AccessorySheetDataPiece("Addresses", AccessorySheetDataPiece.Type.TITLE)); }); CriteriaHelper.pollUiThread(Criteria.equals(1, () -> mView.get().getChildCount())); View title = mView.get().findViewById(R.id.tab_title); assertThat(title, is(not(nullValue()))); assertThat(title, instanceOf(TextView.class)); assertThat(((TextView) title).getText(), is("Addresses")); } @Test @MediumTest public void testAddingUserInfoToTheModelRendersClickableActions() throws ExecutionException { final AtomicBoolean clicked = new AtomicBoolean(); assertThat(mView.get().getChildCount(), is(0)); TestThreadUtils.runOnUiThreadBlocking(() -> { mModel.add(new AccessorySheetDataPiece( createInfo( /*nameFull=*/"Maya J. Park", /*companyName=*/"", /*addressHomeLine1=*/"100 Test Str.", /*addressHomeLine2=*/"", /*addressHomeZip=*/"14482", /*addressHomeCity=*/"Potsdam", /*addressHomeState=*/"CO", /*addressHomeCountry=*/"France", /*phoneHomeWholeNumber=*/"+4917802048383", /*emailAddress=*/"[email protected]", clicked), AccessorySheetDataPiece.Type.ADDRESS_INFO)); mModel.add(new AccessorySheetDataPiece( new KeyboardAccessoryData.FooterCommand("Manage addresses", null), AccessorySheetDataPiece.Type.FOOTER_COMMAND)); }); // Wait until at least one element is rendered. Test devices with small screens will cause // the footer to not be created. Instantiating a footer still covers potential crashes. CriteriaHelper.pollUiThread(() -> mView.get().getChildCount() > 0); // Check that the titles are correct: assertThat(getChipText(R.id.name_full), is("Maya J. Park")); assertThat(getChipText(R.id.company_name), is("")); assertThat(getChipText(R.id.address_home_line_1), is("100 Test Str.")); assertThat(getChipText(R.id.address_home_line_2), is("")); assertThat(getChipText(R.id.address_home_zip), is("14482")); assertThat(getChipText(R.id.address_home_city), is("Potsdam")); assertThat(getChipText(R.id.address_home_state), is("CO")); assertThat(getChipText(R.id.address_home_country), is("France")); assertThat(getChipText(R.id.phone_home_whole_number), is("+4917802048383")); assertThat(getChipText(R.id.email_address), is("[email protected]")); // Chips without content shouldn't be visible: assertThat(findChipView(R.id.company_name).isShown(), is(false)); // Chips are clickable: TestThreadUtils.runOnUiThreadBlocking(findChipView(R.id.name_full)::performClick); assertThat(clicked.get(), is(true)); clicked.set(false); TestThreadUtils.runOnUiThreadBlocking(findChipView(R.id.email_address)::performClick); assertThat(clicked.get(), is(true)); } private UserInfo createInfo(String nameFull, String companyName, String addressHomeLine1, String addressHomeLine2, String addressHomeZip, String addressHomeCity, String addressHomeState, String addressHomeCountry, String phoneHomeWholeNumber, String emailAddress, AtomicBoolean clickRecorder) { UserInfo info = new UserInfo("", false); info.addField( new UserInfoField(nameFull, nameFull, "", false, item -> clickRecorder.set(true))); info.addField(new UserInfoField( companyName, companyName, "", false, item -> clickRecorder.set(true))); info.addField(new UserInfoField( addressHomeLine1, addressHomeLine1, "", false, item -> clickRecorder.set(true))); info.addField(new UserInfoField( addressHomeLine2, addressHomeLine2, "", false, item -> clickRecorder.set(true))); info.addField(new UserInfoField( addressHomeZip, addressHomeZip, "", false, item -> clickRecorder.set(true))); info.addField(new UserInfoField( addressHomeCity, addressHomeCity, "", false, item -> clickRecorder.set(true))); info.addField(new UserInfoField( addressHomeState, addressHomeState, "", false, item -> clickRecorder.set(true))); info.addField(new UserInfoField(addressHomeCountry, addressHomeCountry, "", false, item -> clickRecorder.set(true))); info.addField(new UserInfoField(phoneHomeWholeNumber, phoneHomeWholeNumber, "", false, item -> clickRecorder.set(true))); info.addField(new UserInfoField( emailAddress, emailAddress, "", false, item -> clickRecorder.set(true))); return info; } private ChipView findChipView(@IdRes int id) { assertThat(mView.get().getChildAt(0), instanceOf(LinearLayout.class)); LinearLayout layout = (LinearLayout) mView.get().getChildAt(0); View view = layout.findViewById(id); assertThat(view, is(not(nullValue()))); assertThat(view, instanceOf(ChipView.class)); return ((ChipView) view); } private CharSequence getChipText(@IdRes int id) { return findChipView(id).getPrimaryTextView().getText(); } }
{ "content_hash": "5024b448dbfeae407ebeae49d6a07bee", "timestamp": "", "source": "github", "line_count": 202, "max_line_length": 112, "avg_line_length": 48.67821782178218, "alnum_prop": 0.6678531475643242, "repo_name": "endlessm/chromium-browser", "id": "58acb8fe86de4241afc765d2a07adb1c5b3142dc", "size": "9833", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "chrome/android/features/keyboard_accessory/javatests/src/org/chromium/chrome/browser/keyboard_accessory/sheet_tabs/AddressAccessorySheetViewTest.java", "mode": "33188", "license": "bsd-3-clause", "language": [], "symlink_target": "" }
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <link rel="stylesheet" href="css/bootstrap.min.css"> <link rel="stylesheet" href="css/bootstrap-theme.min.css"> <link rel="stylesheet" href="css/styles.css"> <!-- Notice the use of %PUBLIC_URL% in the tag above. It will be replaced with the URL of the `public` folder during the build. Only files inside the `public` folder can be referenced from the HTML. Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will work correctly both with client-side routing and a non-root public URL. Learn how to configure a non-root public URL by running `npm run build`. --> <title>React dApp</title> </head> <body> <div class="container"> <div id="root"></div> </div> <!-- This HTML file is a template. If you open it directly in the browser, you will see an empty page. You can add webfonts, meta tags, or analytics to this file. The build step will place the bundled scripts into the <body> tag. To begin the development, run `npm start`. To create a production bundle, use `npm run build`. --> <script type="text/javascript" src="js/jquery.min.js"></script> <script type="text/javascript" src="js/bootstrap.min.js"></script> </body> </html>
{ "content_hash": "f33e8f146844408dbd13110d88e0b85f", "timestamp": "", "source": "github", "line_count": 36, "max_line_length": 79, "avg_line_length": 37.55555555555556, "alnum_prop": 0.6479289940828402, "repo_name": "davidoevans/react-redux-dapp", "id": "52083ce9ce256db006b34b860c056ed9382199e3", "size": "1352", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "public/index.html", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "31" }, { "name": "HTML", "bytes": "1352" }, { "name": "JavaScript", "bytes": "73945" } ], "symlink_target": "" }
using System; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Zergatul.Security.Tests.MessageDigest { [TestClass] public class BLAKE2sTests { private static SecurityProvider[] _providers = new SecurityProvider[] { new DefaultSecurityProvider() }; [TestMethod] public void BasicTest() { foreach (var provider in _providers) { var md = provider.GetMessageDigest(MessageDigests.BLAKE2s); var digest = md.Digest(Encoding.ASCII.GetBytes("abc")); Assert.IsTrue(BitHelper.BytesToHex(digest) == "508c5e8c327c14e2e1a72ba34eeb452f37458b209ed63a294d999b4c86675982"); md.Reset(); digest = md.Digest(); Assert.IsTrue(BitHelper.BytesToHex(digest) == "69217a3079908094e11121d042354a7c1f55b6482ca1a51e1b250dfd1ed0eef9"); md.Reset(); digest = md.Digest(Encoding.ASCII.GetBytes("The quick brown fox jumps over the lazy dog")); Assert.IsTrue(BitHelper.BytesToHex(digest) == "606beeec743ccbeff6cbcdf5d5302aa855c256c29b88c8ed331ea1a6bf3c8812"); md.Reset(); }; } [TestMethod] public void DifferentHashSizeTest() { foreach (var provider in _providers) { var md = provider.GetMessageDigest(MessageDigests.BLAKE2s); md.Init(new BLAKE2Parameters { HashSizeBytes = 16 }); var digest = md.Digest(); Assert.IsTrue(BitHelper.BytesToHex(digest) == "64550d6ffe2c0a01a14aba1eade0200c"); md.Reset(); digest = md.Digest(Encoding.ASCII.GetBytes("The quick brown fox jumps over the lazy dog")); Assert.IsTrue(BitHelper.BytesToHex(digest) == "96fd07258925748a0d2fb1c8a1167a73"); md.Reset(); }; } [TestMethod] public void VectorsTest() { var text = File.ReadAllText("MessageDigest/BLAKE2s.txt"); var r = new Regex("in:\\s+(?<data>[0-9a-f]*)\\s+hash:\\s+(?<hash>[0-9a-f]+)", RegexOptions.Multiline); foreach (var provider in _providers) { var md = provider.GetMessageDigest(MessageDigests.BLAKE2s); var matches = r.Matches(text); Assert.IsTrue(matches.Count == 99); foreach (Match m in matches) { var digest = md.Digest(BitHelper.HexToBytes(m.Groups["data"].Value)); Assert.IsTrue(BitHelper.BytesToHex(digest) == m.Groups["hash"].Value); md.Reset(); } }; } [TestMethod] public void KeyVectorsTest() { var text = File.ReadAllText("MessageDigest/BLAKE2sKey.txt"); var r = new Regex("in:\\s+(?<data>[0-9a-f]*)\\s+key:\\s+(?<key>[0-9a-f]+)\\s+hash:\\s+(?<hash>[0-9a-f]+)", RegexOptions.Multiline); foreach (var provider in _providers) { var md = provider.GetMessageDigest(MessageDigests.BLAKE2s); var matches = r.Matches(text); Assert.IsTrue(matches.Count == 256); foreach (Match m in matches) { md.Init(new BLAKE2Parameters { Key = BitHelper.HexToBytes(m.Groups["key"].Value) }); var digest = md.Digest(BitHelper.HexToBytes(m.Groups["data"].Value)); Assert.IsTrue(BitHelper.BytesToHex(digest) == m.Groups["hash"].Value); } }; } [TestMethod] public void VergeBlock2373791Test() { byte[] header = // version BitHelper.GetBytes(8196, ByteOrder.LittleEndian) // prev block .Concat(BitHelper.HexToBytes("ccab8766651abb8ecd690f1008827157ad3e36977b247ac2a4e765a2a37ab1cf").Reverse()) // merkle .Concat(BitHelper.HexToBytes("9379635ff782f2850db554b235e3eadd896f299c848a30fb02f7f4a3d32cd4c2").Reverse()) // time .Concat(BitHelper.GetBytes(1532615300, ByteOrder.LittleEndian)) // bits .Concat(BitHelper.HexToBytes("1a024a8a").Reverse()) // nonce .Concat(BitHelper.GetBytes(835507996, ByteOrder.LittleEndian)) .ToArray(); foreach (var provider in _providers) { var md = provider.GetMessageDigest(MessageDigests.BLAKE2s); var digest = md.Digest(header); var hash = BitHelper.BytesToHex(digest.Reverse().ToArray()); Assert.IsTrue(hash == "00000000000000702dc521d00f507e737b338a483251d3151ed3d64556ac18e3"); } } } }
{ "content_hash": "6c3480f924bd5a1e7a6c01757d6bf010", "timestamp": "", "source": "github", "line_count": 132, "max_line_length": 143, "avg_line_length": 38.803030303030305, "alnum_prop": 0.549199531433034, "repo_name": "Zergatul/ZergatulLib", "id": "4e0b83d1d9280ca8b2b1ca66e8a21e9e0e174b15", "size": "5124", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Zergatul.Security.Tests/MessageDigest/BLAKE2sTests.cs", "mode": "33188", "license": "mit", "language": [ { "name": "C#", "bytes": "4715963" }, { "name": "PowerShell", "bytes": "5379" } ], "symlink_target": "" }
import 'babel-core/polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import history from './core/History'; import Router from './core/Router'; import routes from './routes'; let cssContainer = document.getElementById('css'); const appContainer = document.getElementById('app'); const context = { onSetTitle: value => document.title = value, onSetMeta: (name, content) => { // Remove and create a new <meta /> tag in order to make it work // with bookmarks in Safari const elements = document.getElementsByTagName('meta'); [...elements].forEach((element) => { if (element.getAttribute('name') === name) { element.parentNode.removeChild(element); } }); const meta = document.createElement('meta'); meta.setAttribute('name', name); meta.setAttribute('content', content); document.getElementsByTagName('head')[0].appendChild(meta); } }; const router = <Router routes={routes} history={history} context={context} />; ReactDOM.render(router, appContainer, () => { // Remove the pre-rendered CSS because it's no longer used // after the React app is launched if (cssContainer) { cssContainer.parentNode.removeChild(cssContainer); cssContainer = null; } });
{ "content_hash": "bc346c53cae9bab37033cdd53540db9a", "timestamp": "", "source": "github", "line_count": 38, "max_line_length": 78, "avg_line_length": 35.05263157894737, "alnum_prop": 0.6456456456456456, "repo_name": "chayn1k/social-monitor", "id": "9a28eb98e721fac3c8bf3fcdad8a8645f64bdfe4", "size": "1332", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/app.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "15180" }, { "name": "JavaScript", "bytes": "70468" } ], "symlink_target": "" }
<!DOCTYPE html> <html> <head> </head> <body> <p> <?php // From within the PHP tags put your first and last name // in variables and use concatination to render your full name ?> </p> </body> </html>
{ "content_hash": "878f4357bfb46a52d51e652729e3e1ca", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 74, "avg_line_length": 20.384615384615383, "alnum_prop": 0.5018867924528302, "repo_name": "steare573/Curriculum", "id": "7c6006a067600892b2a6ecfb63de75072d4a723f", "size": "265", "binary": false, "copies": "7", "ref": "refs/heads/master", "path": "Week_1/Day_1/Exercises/Intro/variable concatination.php", "mode": "33188", "license": "mit", "language": [ { "name": "PHP", "bytes": "60837" } ], "symlink_target": "" }
require 'test_helper' class FulFillmentRequestTest < Test::Unit::TestCase def setup fake "orders/450789469/fulfillment_requests/695890229", method: :get, body: load_fixture('fulfillment_request') end context "#mark_as_failed" do should "be able to mark_as_failed a fulfillment request" do fulfillment_request = ShopifyAPI::FulfillmentRequest.find(255858046, params: { order_id: 450789469 }) cancelled = ActiveSupport::JSON.decode(load_fixture('fulfillment_request')) cancelled['failure_message'] = 'failure reason' fake "orders/450789469/fulfillment_requests/695890229/mark_as_failed", method: :put, body: ActiveSupport::JSON.encode(cancelled) assert fulfillment_request.failure_message.blank? assert fulfillment_request.mark_as_failed assert_equal 'failure reason', fulfillment_request.failure_message end end context "#find" do should "be able to find fulfillment request" do fulfillment_request = ShopifyAPI::FulfillmentRequest.find(255858046, params: { order_id: 450789469 }) assert_equal 695890229, fulfillment_request.id assert_equal 450789469, fulfillment_request.order_id end end end
{ "content_hash": "6973f3338bf4b2311ce1035130f12e3a", "timestamp": "", "source": "github", "line_count": 29, "max_line_length": 134, "avg_line_length": 41, "alnum_prop": 0.7375946173254836, "repo_name": "DanielVartanov/shopify_api", "id": "0615d5a457c8131de42690b8c664010fd37b3037", "size": "1189", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "test/fulfillment_request_test.rb", "mode": "33188", "license": "mit", "language": [ { "name": "Ruby", "bytes": "98203" } ], "symlink_target": "" }
/** */ package CIM15.IEC61970.Informative.InfTypeAsset.util; import CIM15.Element; import CIM15.IEC61968.Assets.AssetModel; import CIM15.IEC61970.Core.IdentifiedObject; import CIM15.IEC61970.Informative.InfAssets.GenericAssetModelOrMaterial; import CIM15.IEC61970.Informative.InfTypeAsset.*; import org.eclipse.emf.common.notify.Adapter; import org.eclipse.emf.common.notify.Notifier; import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; import org.eclipse.emf.ecore.EObject; /** * <!-- begin-user-doc --> * The <b>Adapter Factory</b> for the model. * It provides an adapter <code>createXXX</code> method for each class of the model. * <!-- end-user-doc --> * @see CIM15.IEC61970.Informative.InfTypeAsset.InfTypeAssetPackage * @generated */ public class InfTypeAssetAdapterFactory extends AdapterFactoryImpl { /** * The cached model package. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected static InfTypeAssetPackage modelPackage; /** * Creates an instance of the adapter factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public InfTypeAssetAdapterFactory() { if (modelPackage == null) { modelPackage = InfTypeAssetPackage.eINSTANCE; } } /** * Returns whether this factory is applicable for the type of the object. * <!-- begin-user-doc --> * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. * <!-- end-user-doc --> * @return whether this factory is applicable for the type of the object. * @generated */ @Override public boolean isFactoryForType(Object object) { if (object == modelPackage) { return true; } if (object instanceof EObject) { return ((EObject)object).eClass().getEPackage() == modelPackage; } return false; } /** * The switch that delegates to the <code>createXXX</code> methods. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected InfTypeAssetSwitch<Adapter> modelSwitch = new InfTypeAssetSwitch<Adapter>() { @Override public Adapter caseTypeAssetCatalogue(TypeAssetCatalogue object) { return createTypeAssetCatalogueAdapter(); } @Override public Adapter caseGeneratorTypeAsset(GeneratorTypeAsset object) { return createGeneratorTypeAssetAdapter(); } @Override public Adapter caseElement(Element object) { return createElementAdapter(); } @Override public Adapter caseIdentifiedObject(IdentifiedObject object) { return createIdentifiedObjectAdapter(); } @Override public Adapter caseAssetModel(AssetModel object) { return createAssetModelAdapter(); } @Override public Adapter caseGenericAssetModelOrMaterial(GenericAssetModelOrMaterial object) { return createGenericAssetModelOrMaterialAdapter(); } @Override public Adapter defaultCase(EObject object) { return createEObjectAdapter(); } }; /** * Creates an adapter for the <code>target</code>. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param target the object to adapt. * @return the adapter for the <code>target</code>. * @generated */ @Override public Adapter createAdapter(Notifier target) { return modelSwitch.doSwitch((EObject)target); } /** * Creates a new adapter for an object of class '{@link CIM15.IEC61970.Informative.InfTypeAsset.TypeAssetCatalogue <em>Type Asset Catalogue</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see CIM15.IEC61970.Informative.InfTypeAsset.TypeAssetCatalogue * @generated */ public Adapter createTypeAssetCatalogueAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link CIM15.IEC61970.Informative.InfTypeAsset.GeneratorTypeAsset <em>Generator Type Asset</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see CIM15.IEC61970.Informative.InfTypeAsset.GeneratorTypeAsset * @generated */ public Adapter createGeneratorTypeAssetAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link CIM15.Element <em>Element</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see CIM15.Element * @generated */ public Adapter createElementAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link CIM15.IEC61970.Core.IdentifiedObject <em>Identified Object</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see CIM15.IEC61970.Core.IdentifiedObject * @generated */ public Adapter createIdentifiedObjectAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link CIM15.IEC61968.Assets.AssetModel <em>Asset Model</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see CIM15.IEC61968.Assets.AssetModel * @generated */ public Adapter createAssetModelAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link CIM15.IEC61970.Informative.InfAssets.GenericAssetModelOrMaterial <em>Generic Asset Model Or Material</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see CIM15.IEC61970.Informative.InfAssets.GenericAssetModelOrMaterial * @generated */ public Adapter createGenericAssetModelOrMaterialAdapter() { return null; } /** * Creates a new adapter for the default case. * <!-- begin-user-doc --> * This default implementation returns null. * <!-- end-user-doc --> * @return the new adapter. * @generated */ public Adapter createEObjectAdapter() { return null; } } //InfTypeAssetAdapterFactory
{ "content_hash": "3855abb3d9a5d9c34da480d538acf047", "timestamp": "", "source": "github", "line_count": 218, "max_line_length": 165, "avg_line_length": 30.990825688073393, "alnum_prop": 0.7067791592658378, "repo_name": "SES-fortiss/SmartGridCoSimulation", "id": "248291ea60c2d83c0a7025432f1d6d6cbe2fa6df", "size": "6756", "binary": false, "copies": "1", "ref": "refs/heads/development", "path": "core/cim15/src/CIM15/IEC61970/Informative/InfTypeAsset/util/InfTypeAssetAdapterFactory.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "494" }, { "name": "C++", "bytes": "68972" }, { "name": "CSS", "bytes": "10495" }, { "name": "HTML", "bytes": "27854" }, { "name": "Java", "bytes": "23777284" }, { "name": "JavaScript", "bytes": "144441" }, { "name": "Processing", "bytes": "16761" }, { "name": "Shell", "bytes": "1069" }, { "name": "Solidity", "bytes": "18269" } ], "symlink_target": "" }
from __future__ import unicode_literals from moto.core.responses import BaseResponse from moto.ec2.utils import sequence_from_querystring class ElasticIPAddresses(BaseResponse): def allocate_address(self): if "Domain" in self.querystring: domain = self.querystring.get('Domain')[0] else: domain = "standard" if self.is_not_dryrun('AllocateAddress'): address = self.ec2_backend.allocate_address(domain) template = self.response_template(ALLOCATE_ADDRESS_RESPONSE) return template.render(address=address) def associate_address(self): instance = eni = None if "InstanceId" in self.querystring: instance = self.ec2_backend.get_instance( self.querystring['InstanceId'][0]) elif "NetworkInterfaceId" in self.querystring: eni = self.ec2_backend.get_network_interface( self.querystring['NetworkInterfaceId'][0]) else: self.ec2_backend.raise_error( "MissingParameter", "Invalid request, expect InstanceId/NetworkId parameter.") reassociate = False if "AllowReassociation" in self.querystring: reassociate = self.querystring['AllowReassociation'][0] == "true" if self.is_not_dryrun('AssociateAddress'): if instance or eni: if "PublicIp" in self.querystring: eip = self.ec2_backend.associate_address(instance=instance, eni=eni, address=self.querystring[ 'PublicIp'][0], reassociate=reassociate) elif "AllocationId" in self.querystring: eip = self.ec2_backend.associate_address(instance=instance, eni=eni, allocation_id=self.querystring[ 'AllocationId'][0], reassociate=reassociate) else: self.ec2_backend.raise_error( "MissingParameter", "Invalid request, expect PublicIp/AllocationId parameter.") else: self.ec2_backend.raise_error( "MissingParameter", "Invalid request, expect either instance or ENI.") template = self.response_template(ASSOCIATE_ADDRESS_RESPONSE) return template.render(address=eip) def describe_addresses(self): template = self.response_template(DESCRIBE_ADDRESS_RESPONSE) if "Filter.1.Name" in self.querystring: filter_by = sequence_from_querystring( "Filter.1.Name", self.querystring)[0] filter_value = sequence_from_querystring( "Filter.1.Value", self.querystring) if filter_by == 'instance-id': addresses = filter(lambda x: x.instance.id == filter_value[ 0], self.ec2_backend.describe_addresses()) else: raise NotImplementedError( "Filtering not supported in describe_address.") elif "PublicIp.1" in self.querystring: public_ips = sequence_from_querystring( "PublicIp", self.querystring) addresses = self.ec2_backend.address_by_ip(public_ips) elif "AllocationId.1" in self.querystring: allocation_ids = sequence_from_querystring( "AllocationId", self.querystring) addresses = self.ec2_backend.address_by_allocation(allocation_ids) else: addresses = self.ec2_backend.describe_addresses() return template.render(addresses=addresses) def disassociate_address(self): if self.is_not_dryrun('DisAssociateAddress'): if "PublicIp" in self.querystring: self.ec2_backend.disassociate_address( address=self.querystring['PublicIp'][0]) elif "AssociationId" in self.querystring: self.ec2_backend.disassociate_address( association_id=self.querystring['AssociationId'][0]) else: self.ec2_backend.raise_error( "MissingParameter", "Invalid request, expect PublicIp/AssociationId parameter.") return self.response_template(DISASSOCIATE_ADDRESS_RESPONSE).render() def release_address(self): if self.is_not_dryrun('ReleaseAddress'): if "PublicIp" in self.querystring: self.ec2_backend.release_address( address=self.querystring['PublicIp'][0]) elif "AllocationId" in self.querystring: self.ec2_backend.release_address( allocation_id=self.querystring['AllocationId'][0]) else: self.ec2_backend.raise_error( "MissingParameter", "Invalid request, expect PublicIp/AllocationId parameter.") return self.response_template(RELEASE_ADDRESS_RESPONSE).render() ALLOCATE_ADDRESS_RESPONSE = """<AllocateAddressResponse xmlns="http://ec2.amazonaws.com/doc/2013-10-15/"> <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> <publicIp>{{ address.public_ip }}</publicIp> <domain>{{ address.domain }}</domain> {% if address.allocation_id %} <allocationId>{{ address.allocation_id }}</allocationId> {% endif %} </AllocateAddressResponse>""" ASSOCIATE_ADDRESS_RESPONSE = """<AssociateAddressResponse xmlns="http://ec2.amazonaws.com/doc/2013-10-15/"> <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> <return>true</return> {% if address.association_id %} <associationId>{{ address.association_id }}</associationId> {% endif %} </AssociateAddressResponse>""" DESCRIBE_ADDRESS_RESPONSE = """<DescribeAddressesResponse xmlns="http://ec2.amazonaws.com/doc/2013-10-15/"> <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> <addressesSet> {% for address in addresses %} <item> <publicIp>{{ address.public_ip }}</publicIp> <domain>{{ address.domain }}</domain> {% if address.instance %} <instanceId>{{ address.instance.id }}</instanceId> {% else %} <instanceId/> {% endif %} {% if address.eni %} <networkInterfaceId>{{ address.eni.id }}</networkInterfaceId> {% else %} <networkInterfaceId/> {% endif %} {% if address.allocation_id %} <allocationId>{{ address.allocation_id }}</allocationId> {% endif %} {% if address.association_id %} <associationId>{{ address.association_id }}</associationId> {% endif %} </item> {% endfor %} </addressesSet> </DescribeAddressesResponse>""" DISASSOCIATE_ADDRESS_RESPONSE = """<DisassociateAddressResponse xmlns="http://ec2.amazonaws.com/doc/2013-10-15/"> <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> <return>true</return> </DisassociateAddressResponse>""" RELEASE_ADDRESS_RESPONSE = """<ReleaseAddressResponse xmlns="http://ec2.amazonaws.com/doc/2013-10-15/"> <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> <return>true</return> </ReleaseAddressResponse>"""
{ "content_hash": "6929b1211559f16c235f75cb335ce3e7", "timestamp": "", "source": "github", "line_count": 161, "max_line_length": 120, "avg_line_length": 44.82608695652174, "alnum_prop": 0.6128585284744353, "repo_name": "gjtempleton/moto", "id": "a64a33bb5dcbd2dcb3ee2abf8b0110ca90495458", "size": "7217", "binary": false, "copies": "4", "ref": "refs/heads/master", "path": "moto/ec2/responses/elastic_ip_addresses.py", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "HTML", "bytes": "5848" }, { "name": "Java", "bytes": "1688" }, { "name": "JavaScript", "bytes": "756" }, { "name": "Makefile", "bytes": "630" }, { "name": "Python", "bytes": "2603223" }, { "name": "Ruby", "bytes": "188" } ], "symlink_target": "" }
package hu.javakurzus.bytemap; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.equalTo; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; public class BytemapTest { private Bytemap classUnderTest; @Rule public ExpectedException expectedException = ExpectedException.none(); @Before public void setup() { classUnderTest = new Bytemap(15, 1); classUnderTest.setRow(0, "000001111122222"); } @Test public void testWidthAndHeightSetting() { Bytemap map = new Bytemap(1, 2); assertThat(map.getHeigth(), equalTo(2)); assertThat(map.getWidth(), equalTo(1)); } @Test public void setRowShouldThrowExceptionForNonDigits() { expectedException.expect(IllegalArgumentException.class); expectedException.expectMessage("Invalid pattern"); classUnderTest.setRow(0, "000X000"); } @Test public void setRowShouldThrowExceptionForEmptyString() { expectedException.expect(IllegalArgumentException.class); expectedException.expectMessage("Invalid pattern"); classUnderTest.setRow(0, ""); } @Test public void setRowShouldJustWork() { classUnderTest.setRow(0, "000001111122222"); assertThat(classUnderTest.printRow(0), equalTo("000001111122222")); } @Test public void testGetHomoLineForValuesThatFit24bits() { int[] line = classUnderTest.getHomoLine(100, (byte) 1); assertThat(line.length, equalTo(1)); assertThat(classUnderTest.parseLength(line[0]), equalTo(100)); assertThat(classUnderTest.parseValue(line[0]), equalTo((byte) 1)); line = classUnderTest.getHomoLine(0, (byte) 0); assertThat(line.length, equalTo(1)); assertThat(classUnderTest.parseLength(line[0]), equalTo(0)); assertThat(classUnderTest.parseValue(line[0]), equalTo((byte) 0)); line = classUnderTest.getHomoLine(42, (byte) 13); assertThat(line.length, equalTo(1)); assertThat(classUnderTest.parseLength(line[0]), equalTo(42)); assertThat(classUnderTest.parseValue(line[0]), equalTo((byte) 13)); } @Test public void testGetHomoLineForValuesThatExceeds24bits() { int biglength = 16777216; int[] line = classUnderTest.getHomoLine(biglength, (byte) 1); assertThat(line.length, equalTo(2)); int segment1 = classUnderTest.parseLength(line[0]); int segment2 = classUnderTest.parseLength(line[1]); assertThat(segment1 + segment2, equalTo(16777216)); assertThat(classUnderTest.parseValue(line[0]), equalTo((byte) 1)); assertThat(classUnderTest.parseValue(line[1]), equalTo((byte) 1)); } @Test public void setValueWithIntArgumentShouldNotAcceptNegatives() { expectedException.expect(IllegalArgumentException.class); expectedException.expectMessage("setValue can only handle values in 0..255 range"); classUnderTest.setValue(0, 0, 0, -1); } @Test public void setValueWithIntArgumentShouldNotAcceptValuesGreaterThan255() { expectedException.expect(IllegalArgumentException.class); expectedException.expectMessage("setValue can only handle values in 0..255 range"); classUnderTest.setValue(0, 0, 0, 256); } @Test public void setValueWhenExactlyOneFullBlockIsModified() { assertThat(classUnderTest.printRow(0), equalTo("000001111122222")); classUnderTest.setValue(5, 0, 5, 9); assertThat(classUnderTest.printRow(0), equalTo("000009999922222")); classUnderTest.setValue(0, 0, 5, 7); assertThat(classUnderTest.printRow(0), equalTo("777779999922222")); classUnderTest.setValue(10, 0, 5, 8); assertThat(classUnderTest.printRow(0), equalTo("777779999988888")); } @Test public void setValueWhenChangeFitsIntoOneBlockAndIsAlignedToBlockStart() { assertThat(classUnderTest.printRow(0), equalTo("000001111122222")); classUnderTest.setValue(0, 0, 2, 9); assertThat(classUnderTest.printRow(0), equalTo("990001111122222")); classUnderTest.setValue(5, 0, 3, 8); assertThat(classUnderTest.printRow(0), equalTo("990008881122222")); classUnderTest.setValue(10, 0, 1, 3); assertThat(classUnderTest.printRow(0), equalTo("990008881132222")); } @Test public void setValueWhenChangeSpansOverMultipleBlocksAndIsAlignedToBlockStart_first() { classUnderTest = new Bytemap(20, 1); classUnderTest.setRow(0, "00000111112222233333"); classUnderTest.setValue(0, 0, 10, 9); assertThat(classUnderTest.printRow(0), equalTo("99999999992222233333")); } @Test public void setValueWhenChangeSpansOverMultipleBlocksAndIsAlignedToBlockStart_middle() { classUnderTest = new Bytemap(20, 1); classUnderTest.setRow(0, "00000111112222233333"); classUnderTest.setValue(5, 0, 10, 7); assertThat(classUnderTest.printRow(0), equalTo("00000777777777733333")); } @Test public void setValueWhenChangeSpansOverMultipleBlocksAndIsAlignedToBlockStart_last() { classUnderTest = new Bytemap(20, 1); classUnderTest.setRow(0, "00000111112222233333"); classUnderTest.setValue(10, 0, 10, 7); assertThat(classUnderTest.printRow(0), equalTo("00000111117777777777")); } @Test public void setValueWhenChangeSpansOverMultipleBlocksAndIsAlignedToBlockStartButEndsInsideEndblock_first() { classUnderTest = new Bytemap(10, 1); classUnderTest.setRow(0, "0000011111"); classUnderTest.setValue(0, 0, 7, 7); assertThat(classUnderTest.printRow(0), equalTo("7777777111")); } @Test public void setValueWhenChangeSpansOverMultipleBlocksAndIsAlignedToBlockStartButEndsInsideEndblock_middle() { assertThat(classUnderTest.printRow(0), equalTo("000001111122222")); classUnderTest.setValue(5, 0, 7, 3); assertThat(classUnderTest.printRow(0), equalTo("000003333333222")); } @Test public void setValueWhenStartsInsideABlockAndEndsInsideABlock_middle() { assertThat(classUnderTest.printRow(0), equalTo("000001111122222")); classUnderTest.setValue(2, 0, 5, 3); assertThat(classUnderTest.printRow(0), equalTo("003333311122222")); } @Test public void addValueNotAtStartOverlappingTwoBlocks() { assertThat(classUnderTest.printRow(0), equalTo("000001111122222")); classUnderTest.addValue(2, 0, 5, 1); assertThat(classUnderTest.printRow(0), equalTo("001112211122222")); } @Test public void addValueAtStartOverlappingNextBlocks() { assertThat(classUnderTest.printRow(0), equalTo("000001111122222")); classUnderTest.addValue(0, 0, 6, 1); assertThat(classUnderTest.printRow(0), equalTo("111112111122222")); } @Test public void addValueFromStartToEnd() { assertThat(classUnderTest.printRow(0), equalTo("000001111122222")); classUnderTest.addValue(0, 0, 15, 1); assertThat(classUnderTest.printRow(0), equalTo("111112222233333")); } @Test public void addValueInTheMiddleOfASingleBlock() { classUnderTest = new Bytemap(10, 1); classUnderTest.setRow(0, "0000000000"); classUnderTest.addValue(3, 0, 4, 1); assertThat(classUnderTest.printRow(0), equalTo("0001111000")); } }
{ "content_hash": "7aa4a93b0d419e6f8092d344c61a2864", "timestamp": "", "source": "github", "line_count": 218, "max_line_length": 110, "avg_line_length": 31.21559633027523, "alnum_prop": 0.7639970609845702, "repo_name": "jantekb/compressed-bytemap", "id": "f6398417ac8c9fac77c9f47552e19d0b188289ab", "size": "6805", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/test/java/hu/javakurzus/bytemap/BytemapTest.java", "mode": "33188", "license": "mit", "language": [ { "name": "Groovy", "bytes": "238" }, { "name": "Java", "bytes": "15629" } ], "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"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.4"/> <title>LIIS - Laboratory Information Indexing System: application/views/help Directory Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectlogo"><img alt="Logo" src="liislogo.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">LIIS - Laboratory Information Indexing System &#160;<span id="projectnumber">0.10.2</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.4 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Related&#160;Pages</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="dir_d75c23162a2652451dce46d2e7e8aead.html">application</a></li><li class="navelem"><a class="el" href="dir_47696c67d24d00a376c580718bcb3d63.html">views</a></li><li class="navelem"><a class="el" href="dir_11b4fb7a8b419839f194d28b63b1862c.html">help</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">help Directory Reference</div> </div> </div><!--header--> <div class="contents"> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="files"></a> Files</h2></td></tr> <tr class="memitem:help__main_8php"><td class="memItemLeft" align="right" valign="top">file &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="help__main_8php.html">help_main.php</a></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:help__user_8php"><td class="memItemLeft" align="right" valign="top">file &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="help__user_8php.html">help_user.php</a></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr> </table> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Mon Mar 17 2014 19:50:07 for LIIS - Laboratory Information Indexing System by &#160;<a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.4 </small></address> </body> </html>
{ "content_hash": "b40706b306b00bcfb9cce2be8bc3a107", "timestamp": "", "source": "github", "line_count": 103, "max_line_length": 818, "avg_line_length": 54.09708737864078, "alnum_prop": 0.6715721464465183, "repo_name": "forstermatth/LIIS", "id": "7f89929ec9ccd680e1c9e5ca07698b0b7b482d31", "size": "5572", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "refman/dir_11b4fb7a8b419839f194d28b63b1862c.html", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "34807" }, { "name": "JavaScript", "bytes": "73862" }, { "name": "PHP", "bytes": "1602197" } ], "symlink_target": "" }
package id.gits.dprkita.utils.view; import android.content.Context; import android.graphics.Typeface; import android.support.v4.view.PagerAdapter; import android.support.v4.view.ViewPager; import android.util.AttributeSet; import android.util.SparseArray; import android.util.TypedValue; import android.view.Gravity; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.HorizontalScrollView; import android.widget.LinearLayout; import android.widget.TextView; import id.gits.dprkita.R; /** * To be used with ViewPager to provide a tab indicator component which give constant feedback as to * the user's scroll progress. * <p/> * To use the component, simply add it to your view hierarchy. Then in your * {@link android.app.Activity} or {@link android.support.v4.app.Fragment} call * {@link #setViewPager(ViewPager)} providing it the ViewPager this layout is being used for. * <p/> * The colors can be customized in two ways. The first and simplest is to provide an array of colors * via {@link #setSelectedIndicatorColors(int...)}. The * alternative is via the {@link TabColorizer} interface which provides you complete control over * which color is used for any individual position. * <p/> * The views used as tabs can be customized by calling {@link #setCustomTabView(int, int)}, * providing the layout ID of your custom layout. */ public class SlidingTabLayout extends HorizontalScrollView { private static final int TITLE_OFFSET_DIPS = 24; private static final int TAB_VIEW_PADDING_DIPS = 16; private static final int TAB_VIEW_TEXT_SIZE_SP = 18; private final SlidingTabStrip mTabStrip; private int mTitleOffset; private int mTabViewLayoutId; private int mTabViewTextViewId; private boolean mDistributeEvenly; private ViewPager mViewPager; private SparseArray<String> mContentDescriptions = new SparseArray<String>(); private ViewPager.OnPageChangeListener mViewPagerPageChangeListener; public SlidingTabLayout(Context context) { this(context, null); } public SlidingTabLayout(Context context, AttributeSet attrs) { this(context, attrs, 0); } public SlidingTabLayout(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); // Disable the Scroll Bar setHorizontalScrollBarEnabled(false); // Make sure that the Tab Strips fills this View setFillViewport(true); mTitleOffset = (int) (TITLE_OFFSET_DIPS * getResources().getDisplayMetrics().density); mTabStrip = new SlidingTabStrip(context); addView(mTabStrip, LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT); } /** * Set the custom {@link TabColorizer} to be used. * <p/> * If you only require simple custmisation then you can use * {@link #setSelectedIndicatorColors(int...)} to achieve * similar effects. */ public void setCustomTabColorizer(TabColorizer tabColorizer) { mTabStrip.setCustomTabColorizer(tabColorizer); } public void setDistributeEvenly(boolean distributeEvenly) { mDistributeEvenly = distributeEvenly; } /** * Sets the colors to be used for indicating the selected tab. These colors are treated as a * circular array. Providing one color will mean that all tabs are indicated with the same color. */ public void setSelectedIndicatorColors(int... colors) { mTabStrip.setSelectedIndicatorColors(colors); } /** * Set the {@link ViewPager.OnPageChangeListener}. When using {@link SlidingTabLayout} you are * required to set any {@link ViewPager.OnPageChangeListener} through this method. This is so * that the layout can update it's scroll position correctly. * * @see ViewPager#setOnPageChangeListener(ViewPager.OnPageChangeListener) */ public void setOnPageChangeListener(ViewPager.OnPageChangeListener listener) { mViewPagerPageChangeListener = listener; } /** * Set the custom layout to be inflated for the tab views. * * @param layoutResId Layout id to be inflated * @param textViewId id of the {@link TextView} in the inflated view */ public void setCustomTabView(int layoutResId, int textViewId) { mTabViewLayoutId = layoutResId; mTabViewTextViewId = textViewId; } /** * Sets the associated view pager. Note that the assumption here is that the pager content * (number of tabs and tab titles) does not change after this call has been made. */ public void setViewPager(ViewPager viewPager) { mTabStrip.removeAllViews(); mViewPager = viewPager; if (viewPager != null) { viewPager.setOnPageChangeListener(new InternalViewPagerListener()); populateTabStrip(); } } /** * Create a default view to be used for tabs. This is called if a custom tab view is not set via * {@link #setCustomTabView(int, int)}. */ protected TextView createDefaultTabView(Context context) { TextView textView = new TextView(context); textView.setGravity(Gravity.CENTER); textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, TAB_VIEW_TEXT_SIZE_SP); textView.setTypeface(Typeface.DEFAULT_BOLD); textView.setLayoutParams(new LinearLayout.LayoutParams( ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT)); TypedValue outValue = new TypedValue(); getContext().getTheme().resolveAttribute(android.R.attr.selectableItemBackground, outValue, true); textView.setBackgroundResource(outValue.resourceId); textView.setAllCaps(true); int padding = (int) (TAB_VIEW_PADDING_DIPS * getResources().getDisplayMetrics().density); textView.setPadding(padding, padding, padding, padding); return textView; } private void populateTabStrip() { final PagerAdapter adapter = mViewPager.getAdapter(); final View.OnClickListener tabClickListener = new TabClickListener(); for (int i = 0; i < adapter.getCount(); i++) { View tabView = null; TextView tabTitleView = null; if (mTabViewLayoutId != 0) { // If there is a custom tab view layout id set, try and inflate it tabView = LayoutInflater.from(getContext()).inflate(mTabViewLayoutId, mTabStrip, false); tabTitleView = (TextView) tabView.findViewById(mTabViewTextViewId); } if (tabView == null) { tabView = createDefaultTabView(getContext()); } if (tabTitleView == null && TextView.class.isInstance(tabView)) { tabTitleView = (TextView) tabView; } if (mDistributeEvenly) { LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) tabView.getLayoutParams(); lp.width = 0; lp.weight = 1; } tabTitleView.setText(adapter.getPageTitle(i)); tabView.setOnClickListener(tabClickListener); String desc = mContentDescriptions.get(i, null); if (desc != null) { tabView.setContentDescription(desc); } mTabStrip.addView(tabView); if (i == mViewPager.getCurrentItem()) { tabView.setSelected(true); } tabTitleView.setTextColor(getResources().getColorStateList(R.color.selector)); tabTitleView.setTextSize(14); } } public void setContentDescription(int i, String desc) { mContentDescriptions.put(i, desc); } @Override protected void onAttachedToWindow() { super.onAttachedToWindow(); if (mViewPager != null) { scrollToTab(mViewPager.getCurrentItem(), 0); } } private void scrollToTab(int tabIndex, int positionOffset) { final int tabStripChildCount = mTabStrip.getChildCount(); if (tabStripChildCount == 0 || tabIndex < 0 || tabIndex >= tabStripChildCount) { return; } View selectedChild = mTabStrip.getChildAt(tabIndex); if (selectedChild != null) { int targetScrollX = selectedChild.getLeft() + positionOffset; if (tabIndex > 0 || positionOffset > 0) { // If we're not at the first child and are mid-scroll, make sure we obey the offset targetScrollX -= mTitleOffset; } scrollTo(targetScrollX, 0); } } /** * Allows complete control over the colors drawn in the tab layout. Set with * {@link #setCustomTabColorizer(TabColorizer)}. */ public interface TabColorizer { /** * @return return the color of the indicator used when {@code position} is selected. */ int getIndicatorColor(int position); } private class InternalViewPagerListener implements ViewPager.OnPageChangeListener { private int mScrollState; @Override public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { int tabStripChildCount = mTabStrip.getChildCount(); if ((tabStripChildCount == 0) || (position < 0) || (position >= tabStripChildCount)) { return; } mTabStrip.onViewPagerPageChanged(position, positionOffset); View selectedTitle = mTabStrip.getChildAt(position); int extraOffset = (selectedTitle != null) ? (int) (positionOffset * selectedTitle.getWidth()) : 0; scrollToTab(position, extraOffset); if (mViewPagerPageChangeListener != null) { mViewPagerPageChangeListener.onPageScrolled(position, positionOffset, positionOffsetPixels); } } @Override public void onPageScrollStateChanged(int state) { mScrollState = state; if (mViewPagerPageChangeListener != null) { mViewPagerPageChangeListener.onPageScrollStateChanged(state); } } @Override public void onPageSelected(int position) { if (mScrollState == ViewPager.SCROLL_STATE_IDLE) { mTabStrip.onViewPagerPageChanged(position, 0f); scrollToTab(position, 0); } for (int i = 0; i < mTabStrip.getChildCount(); i++) { mTabStrip.getChildAt(i).setSelected(position == i); } if (mViewPagerPageChangeListener != null) { mViewPagerPageChangeListener.onPageSelected(position); } } } private class TabClickListener implements View.OnClickListener { @Override public void onClick(View v) { for (int i = 0; i < mTabStrip.getChildCount(); i++) { if (v == mTabStrip.getChildAt(i)) { mViewPager.setCurrentItem(i); return; } } } } }
{ "content_hash": "9cc664280d33915939e38e0b895c6355", "timestamp": "", "source": "github", "line_count": 310, "max_line_length": 101, "avg_line_length": 36.28064516129032, "alnum_prop": 0.644082866542189, "repo_name": "perludem/DPR-KITA", "id": "5a6eff9c830288c9555fbb0fd4c1902998d71887", "size": "11866", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/src/main/java/id/gits/dprkita/utils/view/SlidingTabLayout.java", "mode": "33261", "license": "mit", "language": [ { "name": "Java", "bytes": "1610616" } ], "symlink_target": "" }
function dig(obj, selector) { var result = obj; const splitter = selector.split('.'); for (let i = 0; i < splitter.length; i++){ if (result == undefined) return undefined; result = result[splitter[i]]; } return result; } export function collect(obj, field) { if (typeof(field) === 'function') return field(obj); else if (typeof(field) === 'string') return dig(obj, field); else return undefined; } export function exportExcel(columns, rows, title) { const mimeType = 'data:application/vnd.ms-excel'; const html = renderTable(columns, rows).replace(/ /g, '%20'); const documentPrefix = title != '' ? title.replace(/ /g, '-') : 'Sheet' const d = new Date(); var dummy = document.createElement('a'); dummy.href = mimeType + ', ' + html; dummy.download = documentPrefix + '-' + d.getFullYear() + '-' + (d.getMonth()+1) + '-' + d.getDate() + '-' + d.getHours() + '-' + d.getMinutes() + '-' + d.getSeconds() +'.xls'; dummy.click(); } export function print(columns, rows) { let win = window.open(""); win.document.write(renderTable(columns, rows)); win.print(); win.close(); } function renderTable(columns, rows) { let table = '<table><thead>'; table += '<tr>'; for (let i = 0; i < columns.length; i++) { const column = columns[i]; table += '<th>'; table += column.label; table += '</th>'; } table += '</tr>'; table += '</thead><tbody>'; for (let i = 0; i < rows.length; i++) { const row = rows[i]; table += '<tr>'; for (let j = 0; j < columns.length; j++) { const column = columns[j]; table += '<td>'; table += collect(row, column.field); table += '</td>'; } table += '</tr>'; } table += '</tbody></table>'; return table; }
{ "content_hash": "f77242b2dc6042435cff3dcf78b7db1a", "timestamp": "", "source": "github", "line_count": 74, "max_line_length": 76, "avg_line_length": 27.554054054054053, "alnum_prop": 0.49190779794016676, "repo_name": "Kiho/svelte-datatable", "id": "813f37eca4c3d82f6ebd662c93aa27e17f55adf0", "size": "2039", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/data-grid.js", "mode": "33188", "license": "mit", "language": [ { "name": "HTML", "bytes": "7916" }, { "name": "JavaScript", "bytes": "12067" }, { "name": "Svelte", "bytes": "20641" } ], "symlink_target": "" }
AUTHFAILURE = 'AuthFailure' # DryRun 操作,代表请求将会是成功的,只是多传了 DryRun 参数。 DRYRUNOPERATION = 'DryRunOperation' # 操作失败。 FAILEDOPERATION = 'FailedOperation' # 内部错误。 INTERNALERROR = 'InternalError' # 参数错误。 INVALIDPARAMETER = 'InvalidParameter' # 参数取值错误。 INVALIDPARAMETERVALUE = 'InvalidParameterValue' # 超过配额限制。 LIMITEXCEEDED = 'LimitExceeded' # 缺少参数错误。 MISSINGPARAMETER = 'MissingParameter' # 操作被拒绝。 OPERATIONDENIED = 'OperationDenied' # 请求的次数超过了频率限制。 REQUESTLIMITEXCEEDED = 'RequestLimitExceeded' # 资源被占用。 RESOURCEINUSE = 'ResourceInUse' # 资源不足。 RESOURCEINSUFFICIENT = 'ResourceInsufficient' # 资源不存在。 RESOURCENOTFOUND = 'ResourceNotFound' # 资源不可用。 RESOURCEUNAVAILABLE = 'ResourceUnavailable' # 资源售罄。 RESOURCESSOLDOUT = 'ResourcesSoldOut' # 未授权操作。 UNAUTHORIZEDOPERATION = 'UnauthorizedOperation' # 未开通权限/无有效套餐包/账号已欠费。 UNAUTHORIZEDOPERATION_UNAUTHORIZED = 'UnauthorizedOperation.Unauthorized' # 未知参数错误。 UNKNOWNPARAMETER = 'UnknownParameter' # 操作不支持。 UNSUPPORTEDOPERATION = 'UnsupportedOperation'
{ "content_hash": "7d986fe5f2f818673a8ce0f8bea30d5e", "timestamp": "", "source": "github", "line_count": 55, "max_line_length": 73, "avg_line_length": 18.254545454545454, "alnum_prop": 0.7878486055776892, "repo_name": "tzpBingo/github-trending", "id": "94a1c8ef71f603c85dd9fbed3f02d0c8a5f5eba6", "size": "1967", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "codespace/python/tencentcloud/vm/v20201229/errorcodes.py", "mode": "33188", "license": "mit", "language": [ { "name": "Go", "bytes": "11470" }, { "name": "HTML", "bytes": "1543" }, { "name": "Python", "bytes": "49985109" }, { "name": "Shell", "bytes": "18039" } ], "symlink_target": "" }
/* =============================================================================== Definitions for information that is related to a licensee's game name and location. =============================================================================== */ #define GAME_NAME "DOOM 3: BFG Edition" // appears on window titles and errors #define SAVE_PATH "\\id Software\\DOOM 3 BFG" #define ENGINE_VERSION "D3BFG 1" // printed in console #define BASE_GAMEDIR "base" #define CONFIG_FILE "D3BFGConfig.cfg" // see ASYNC_PROTOCOL_VERSION // use a different major for each game #define ASYNC_PROTOCOL_MAJOR 1 // <= Doom v1.1: 1. no DS_VERSION token ( default ) // Doom v1.2: 2 // Doom 3 BFG: 3 #define RENDERDEMO_VERSION 3 // win32 info #define WIN32_CONSOLE_CLASS "D3BFG_WinConsole" #define WIN32_WINDOW_CLASS_NAME "D3BFG" #define WIN32_FAKE_WINDOW_CLASS_NAME "D3BFG_WGL_FAKE"
{ "content_hash": "5f4e769c22e9633bc8a926e287992e22", "timestamp": "", "source": "github", "line_count": 32, "max_line_length": 84, "avg_line_length": 28.5, "alnum_prop": 0.5712719298245614, "repo_name": "Nekel-Seyew/OregonState-idTech4", "id": "695faa4498a8ae5bec947d1d5a582a949d61c1b1", "size": "2500", "binary": false, "copies": "26", "ref": "refs/heads/master", "path": "neo/framework/Licensee.h", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C", "bytes": "2131263" }, { "name": "C++", "bytes": "15257408" }, { "name": "Objective-C", "bytes": "190411" } ], "symlink_target": "" }
/**************************************************************************** * PROJECT: Mac directory logic * FILE: sqMacDirectory.c * CONTENT: * * AUTHOR: John McIntosh, and others. * ADDRESS: * EMAIL: [email protected] * RCSID: $Id: sqMacDirectory.c 1197 2005-05-31 05:51:16Z johnmci $ * * NOTES: See change log below. * Feb 2nd 2001, JMM rewrote, using more current file manager logic. 3.0.7 return correct response on findimage 3.0.10 Mimimal VM logic 3.0.11 April 4th fix bug in lookupPath (users never saw it) 3.0.14 May 2001 lookupPath needs to abort on :: can't do hardway lookup, too complicated 3.0.17 May 24th 2001 JMM add flush vol on flush file (needed according to apple tech notes) 3.0.19 Aug 2001 JMM make it a real plugin 3.2.1 Nov 2001 JMM build with Apple's project builder and convert to use StdCLib. 3.2.1B5 Dec 27,2001 JMM alter mkdir def to make cw pro 5 happy 3.2.1B6 Jan 2,2002 JMM make lookup faster 3.2.2B1 Jan 18th,2002 JMM check macroman, fix issues with squeak file offset 3.2.8b1 July 24th, 2002 JMM support for os-x plugin under IE 5.x 3.5.1b1 May 20th, 2003 JMM isDirectory ? ENTRY_FOUND versus always found because path could be a file. 3.7.0bx Nov 24th, 2003 JMM gCurrentVMEncoding */ #include "sq.h" #include "FilePlugin.h" #include "sqMacUnixFileInterface.h" #if TARGET_API_MAC_CARBON #include <Carbon/Carbon.h> #include <unistd.h> #include <sys/stat.h> extern CFStringEncoding gCurrentVMEncoding; #else #if defined(__MWERKS__) && !defined(__APPLE__) && !defined(__MACH__) #include <unistd.h> int mkdir(const char *,int); int ftruncate(short int file,int offset); #endif #include <Files.h> #include <Strings.h> #endif /*** The interface to the directory primitive is path based. That is, the client supplies a Squeak string describing the path to the directory on every call. To avoid traversing this path on every call, a cache is maintained of the last path seen, along with the Mac volume and folder reference numbers corresponding to that path. ***/ /*** Constants ***/ #define ENTRY_FOUND 0 #define NO_MORE_ENTRIES 1 #define BAD_PATH 2 #define DELIMITOR ':' #define MAX_PATH 2000 /*** Variables ***/ char lastPath[MAX_PATH + 1]; int lastPathValid = false; FSSpec lastSpec; /*** Functions ***/ int convertToSqueakTime(int macTime); int equalsLastPath(char *pathString, int pathStringLength); int recordPath(char *pathString, int pathStringLength, FSSpec *spec); OSErr getSpecAndFInfo(char *filename, int filenameSize,FSSpec *spec,FInfo *finderInfo); int convertToSqueakTime(int macTime) { /* Squeak epoch is Jan 1, 1901, 3 non-leap years earlier than Mac one */ return macTime + (3 * 365 * 24 * 60 * 60); } #if TARGET_API_MAC_CARBON int dir_Create(char *pathString, int pathStringLength) { /* Create a new directory with the given path. By default, this directory is created in the current directory. Use a full path name such as "MyDisk:Working:New Folder" to create folders elsewhere. */ char cFileName[1001]; if (pathStringLength >= 1000) { return false; } /* copy the file name into a null-terminated C string */ sqFilenameFromString((char *) cFileName, (int) pathString, pathStringLength); #if defined(__MWERKS__) { CFStringRef filePath,lastFilePath; CFURLRef sillyThing,sillyThing2; FSRef parentFSRef; UniChar buffer[1024]; long tokenLength; int err; filePath = CFStringCreateWithBytes(kCFAllocatorDefault,(UInt8 *)cFileName,strlen(cFileName),gCurrentVMEncoding,false); if (filePath == nil) return false; sillyThing = CFURLCreateWithFileSystemPath (kCFAllocatorDefault,filePath,kCFURLHFSPathStyle,true); CFRelease(filePath); lastFilePath = CFURLCopyLastPathComponent(sillyThing); tokenLength = CFStringGetLength(lastFilePath); if (tokenLength > 1024) return false; CFStringGetCharacters(lastFilePath,CFRangeMake(0,tokenLength),buffer); CFRelease(lastFilePath); sillyThing2 = CFURLCreateCopyDeletingLastPathComponent(kCFAllocatorDefault,sillyThing); err = CFURLGetFSRef(sillyThing2,&parentFSRef); CFRelease(sillyThing); CFRelease(sillyThing2); if (err == 0) { return false; } err = FSCreateDirectoryUnicode(&parentFSRef,tokenLength,buffer,kFSCatInfoNone,NULL,NULL,NULL,NULL); return (err == noErr ? 1 : 0); } #else return mkdir(cFileName, 0777) == 0; #endif } int dir_Delete(char *pathString, int pathStringLength) { /* Delete the existing directory with the given path. */ char cFileName[1000]; if (pathStringLength >= 1000) { return false; } if (equalsLastPath(pathString, pathStringLength)) lastPathValid = false; #if defined(__MWERKS__) { /* Delete the existing directory with the given path. */ FSSpec spec; OSErr err; if ((err = makeFSSpec(pathString, pathStringLength,&spec)) != noErr) return false; return FSpDelete(&spec) == noErr; } #else /* copy the file name into a null-terminated C string */ sqFilenameFromString(cFileName, (int) pathString, pathStringLength); return rmdir(cFileName) == 0; #endif } #else int dir_Create(char *pathString, int pathStringLength) { FSSpec spec; OSErr err; long createdDirID; if ((err = makeFSSpec(pathString, pathStringLength,&spec)) == -1) return false; return FSpDirCreate(&spec,smSystemScript,&createdDirID) == noErr; } int dir_Delete(char *pathString, int pathStringLength) { /* Delete the existing directory with the given path. */ FSSpec spec; OSErr err; if ((err = makeFSSpec(pathString, pathStringLength,&spec)) == -1) return false; return FSpDelete(&spec) == noErr; } #endif int dir_Delimitor(void) { return DELIMITOR; } #if TARGET_API_MAC_CARBON int dir_Lookup(char *pathString, int pathStringLength, int index, /* outputs: */ char *name, int *nameLength, int *creationDate, int *modificationDate, int *isDirectory, squeakFileOffsetType *sizeIfFile) { /* Lookup the index-th entry of the directory with the given path, starting at the root of the file system. Set the name, name length, creation date, creation time, directory flag, and file size (if the entry is a file). Return: 0 if a entry is found at the given index 1 if the directory has fewer than index entries 2 if the given path has bad syntax or does not reach a directory */ int okay; FSSpec spec; long parentDirectory; OSErr err; Str255 longFileName; FSVolumeInfoParam fsVolumeParam; HFSUniStr255 uniStr; FSVolumeInfo volumeInfo; /* default return values */ *name = 0; *nameLength = 0; *creationDate = 0; *modificationDate = 0; *isDirectory = false; *sizeIfFile = 0; if ((pathStringLength == 0)) { /* get volume info */ fsVolumeParam.volumeName = &uniStr; fsVolumeParam.ioVRefNum = kFSInvalidVolumeRefNum; fsVolumeParam.volumeIndex = index; fsVolumeParam.whichInfo = 0; fsVolumeParam.volumeInfo = &volumeInfo; fsVolumeParam.ref = NULL; fsVolumeParam.whichInfo = kFSVolInfoCreateDate + kFSVolInfoModDate; okay = PBGetVolumeInfoSync( &fsVolumeParam) == noErr; /* FSGetVolumeInfo (kFSInvalidVolumeRefNum, index, NULL, ) */ if (okay) { CFStringRef strRef = CFStringCreateWithCharacters( kCFAllocatorDefault, uniStr.unicode, uniStr.length ); CFMutableStringRef mStr = CFStringCreateMutableCopy(NULL, 0, strRef); // HFS+ imposes Unicode2.1 decomposed UTF-8 encoding on all path elements if (gCurrentVMEncoding == kCFStringEncodingUTF8) CFStringNormalize(mStr, kCFStringNormalizationFormKC); // pre-combined Boolean result = CFStringGetCString(mStr, name, 256, gCurrentVMEncoding); // buffer size is to see primitiveDirectoryLookup CFRelease(strRef); CFRelease(mStr); if (result == true) { // strncpy(name, &(uniStr.unicode), uniStr.length); // *nameLength = uniStr.length; *nameLength = strlen(name); { LocalDateTime local; ConvertUTCToLocalDateTime(&fsVolumeParam.volumeInfo->createDate,&local); *creationDate = convertToSqueakTime(local.lowSeconds); } { LocalDateTime local; ConvertUTCToLocalDateTime(&fsVolumeParam.volumeInfo->modifyDate,&local); *modificationDate = convertToSqueakTime(local.lowSeconds); } *isDirectory = true; *sizeIfFile = 0; return ENTRY_FOUND; } else { return NO_MORE_ENTRIES; } } else { return NO_MORE_ENTRIES; } } else { /* get file or directory info */ if (!equalsLastPath(pathString, pathStringLength)) { /* lookup and cache the refNum for this path */ err = lookupPath(pathString, pathStringLength, &spec,false,true); if (err == noErr) recordPath(pathString, pathStringLength, &spec); else return BAD_PATH; } spec = lastSpec; *sizeIfFile = 0; okay = fetchFileInfo(index,&spec,(unsigned char *) name,true, &parentDirectory,isDirectory,creationDate, modificationDate,sizeIfFile,&longFileName); if (okay == noErr) { CFStringRef cfs= CFStringCreateWithPascalString(NULL, longFileName, gCurrentVMEncoding); CFMutableStringRef mStr= CFStringCreateMutableCopy(NULL, 0, cfs); CFRelease(cfs); // HFS+ imposes Unicode2.1 decomposed UTF-8 encoding on all path elements if (gCurrentVMEncoding == kCFStringEncodingUTF8) CFStringNormalize(mStr, kCFStringNormalizationFormKC); // pre-combined CFStringGetCString(mStr, name, 256, gCurrentVMEncoding); CFRelease(mStr); *nameLength = strlen(name); *creationDate = convertToSqueakTime(*creationDate); *modificationDate = convertToSqueakTime(*modificationDate); return ENTRY_FOUND; } else return okay == fnfErr ? NO_MORE_ENTRIES : BAD_PATH; } } #else int dir_Lookup(char *pathString, int pathStringLength, int index, /* outputs: */ char *name, int *nameLength, int *creationDate, int *modificationDate, int *isDirectory, squeakFileOffsetType *sizeIfFile) { /* Lookup the index-th entry of the directory with the given path, starting at the root of the file system. Set the name, name length, creation date, creation time, directory flag, and file size (if the entry is a file). Return: 0 if a entry is found at the given index 1 if the directory has fewer than index entries 2 if the given path has bad syntax or does not reach a directory */ int okay; HVolumeParam volumeParams; FSSpec spec; long parentDirectory; OSErr err; Str255 longFileName; /* default return values */ *name = 0; *nameLength = 0; *creationDate = 0; *modificationDate = 0; *isDirectory = false; *sizeIfFile = 0; if ((pathStringLength == 0)) { /* get volume info */ volumeParams.ioNamePtr = (unsigned char *) name; volumeParams.ioVRefNum = 0; volumeParams.ioVolIndex = index; okay = PBHGetVInfoSync((HParmBlkPtr) &volumeParams) == noErr; if (okay) { CopyPascalStringToC((ConstStr255Param) name,name); *nameLength = strlen(name); *creationDate = convertToSqueakTime(volumeParams.ioVCrDate); *modificationDate = convertToSqueakTime(volumeParams.ioVLsMod); *isDirectory = true; *sizeIfFile = 0; return ENTRY_FOUND; } else { return NO_MORE_ENTRIES; } } else { /* get file or directory info */ if (!equalsLastPath(pathString, pathStringLength)) { /* lookup and cache the refNum for this path */ err = lookupPath(pathString, pathStringLength, &spec,false,true); if (err == noErr) recordPath(pathString, pathStringLength, &spec); else return BAD_PATH; } spec = lastSpec; *sizeIfFile = 0; okay = fetchFileInfo(index,&spec,(unsigned char *) name,true,&parentDirectory,isDirectory,creationDate,modificationDate,sizeIfFile,&longFileName); if (okay == noErr) { CopyPascalStringToC((ConstStr255Param) longFileName,name); *nameLength = strlen(name); *creationDate = convertToSqueakTime(*creationDate); *modificationDate = convertToSqueakTime(*modificationDate); return ENTRY_FOUND; } else return okay == fnfErr ? NO_MORE_ENTRIES : BAD_PATH; } } #endif OSErr getSpecAndFInfo(char *filename, int filenameSize,FSSpec *spec,FInfo *finderInfo) { OSErr err; if ((err = makeFSSpec(filename, filenameSize,spec)) != noErr) return err; if ((err= FSpGetFInfo(spec,finderInfo)) != noErr) return err; return noErr; } int dir_SetMacFileTypeAndCreator(char *filename, int filenameSize, char *fType, char *fCreator) { /* Set the Macintosh type and creator of the given file. */ /* Note: On other platforms, this is just a noop. */ FSSpec spec; FInfo finderInfo; if (getSpecAndFInfo(filename,filenameSize,&spec,&finderInfo) != noErr) return false; finderInfo.fdType = *((int *) fType); finderInfo.fdCreator = *((int *) fCreator); return FSpSetFInfo(&spec,&finderInfo) == noErr; } int dir_GetMacFileTypeAndCreator(char *filename, int filenameSize, char *fType, char *fCreator) { /* Get the Macintosh type and creator of the given file. */ /* Note: On other platforms, this is just a noop. */ FSSpec spec; FInfo finderInfo; if (getSpecAndFInfo(filename,filenameSize,&spec,&finderInfo) != noErr) return false; *((int *) fType) = finderInfo.fdType; *((int *) fCreator) = finderInfo.fdCreator; return true; } int equalsLastPath(char *pathString, int pathStringLength) { /* Return true if the lastPath cache is valid and the given Squeak string equals it. */ int i, ch; if (!lastPathValid || (pathStringLength > MAX_PATH)) { return false; } for (i = 0; i < pathStringLength; i++) { ch = lastPath[i]; if ((ch == 0) || (ch != pathString[i])) return false; } return lastPath[i] == 0; } int recordPath(char *pathString, int pathStringLength, FSSpec *spec) { /* Copy the given Squeak string into the lastPath cache. */ if (pathStringLength > MAX_PATH) { lastPath[0] = 0; /* set to empty string */ lastPathValid = false; lastSpec = *spec; return 0; } strncpy(lastPath,pathString,pathStringLength); lastPath[pathStringLength] = 0; /* string terminator */ lastPathValid = true; lastSpec = *spec; return 0; } #if defined(__MWERKS__) int ftruncate(short int file,int offset) { ParamBlockRec pb; OSErr error; //JMM Foo FSSetForkSize FSSetForkPosition FSGetForkPosition pb.ioParam.ioRefNum = file; pb.ioParam.ioMisc = (char *) offset; error = PBSetEOFSync(&pb); return error; } #endif #if defined(__MWERKS__) #include <ansi_files.h> #include <buffer_io.h> int fflush(FILE * file) { fpos_t position; /* mm 970708 */ ParamBlockRec pb; OSErr error; if (!file) return(__flush_all()); if (file->state.error || file->mode.file_kind == __closed_file) return(EOF); if (file->mode.io_mode == __read) /* mm 980430 */ return 0; /* mm 980430 */ if (file->state.io_state >= __rereading) file->state.io_state = __reading; if (file->state.io_state == __reading) file->buffer_len = 0; if (file->state.io_state != __writing) { file->state.io_state = __neutral; /* mm 970905 */ return(0); } #ifndef _No_Disk_File_OS_Support if (file->mode.file_kind != __disk_file || (position = ftello(file)) < 0) position = 0; #else position = 0; #endif if (__flush_buffer(file, NULL)) { set_error(file); return(EOF); } file->state.io_state = __neutral; file->position = position; file->buffer_len = 0; pb.ioParam.ioRefNum = file->handle; error = PBFlushFileSync(&pb); error = GetVRefNum(pb.ioParam.ioRefNum,&pb.volumeParam.ioVRefNum); pb.volumeParam.ioNamePtr = nil; error = PBFlushVolSync(&pb); return(0); } extern __system7present(); extern long __getcreator(long isbinary); extern long __gettype(long isbinary); static void set_file_type(FSSpec * spec, int binary_file) { CInfoPBRec pb; OSErr ioResult; pb.hFileInfo.ioNamePtr = spec->name; pb.hFileInfo.ioVRefNum = spec->vRefNum; pb.hFileInfo.ioFDirIndex = 0; pb.hFileInfo.ioDirID = spec->parID; if (!(ioResult = PBGetCatInfoSync(&pb))) { pb.hFileInfo.ioFlFndrInfo.fdType = __gettype(binary_file); /*mm-960729*/ pb.hFileInfo.ioFlFndrInfo.fdCreator = __getcreator(binary_file); /*mm-960729*/ pb.hFileInfo.ioDirID = spec->parID; ioResult = PBSetCatInfoSync(&pb); } } int __open_file (const char * name, __std(__file_modes) mode, __std(__file_handle) * handle); OSErr __path2fss(const char * pathName, FSSpecPtr spec); extern OSErr gSqueakFileLastError; int __open_file(const char * name, __file_modes mode, __file_handle * handle) { FSSpec spec; OSErr ioResult; HParamBlockRec pb; ioResult = __path2fss(name, &spec); if (ioResult) gSqueakFileLastError = ioResult; if (__system7present()) /* mm 980424 */ { /* mm 980424 */ Boolean targetIsFolder, wasAliased; /* mm 980424 */ ResolveAliasFile(&spec, true, &targetIsFolder, &wasAliased); /* mm 980424 */ } /* mm 980424 */ if (ioResult && (ioResult != fnfErr || mode.open_mode == __must_exist)) return(__io_error); #if TARGET_API_MAC_CARBON if (ioResult) { CFStringRef filePath; CFURLRef sillyThing, sillyThing2; FSRef parentFSRef; short int fileRefNum; OSErr err; UniChar buffer[1024]; long tokenLength; filePath = CFStringCreateWithBytes(kCFAllocatorDefault,(UInt8 *)name,strlen(name),gCurrentVMEncoding,false); if (filePath == nil) return __io_error; sillyThing = CFURLCreateWithFileSystemPath (kCFAllocatorDefault,filePath,kCFURLHFSPathStyle,false); CFRelease(filePath); sillyThing2 = CFURLCreateCopyDeletingLastPathComponent(kCFAllocatorDefault,sillyThing); err = CFURLGetFSRef(sillyThing2,&parentFSRef); if (err == 0) { CFRelease(sillyThing); CFRelease(sillyThing2); return fnfErr; } filePath = CFURLCopyLastPathComponent(sillyThing); tokenLength = CFStringGetLength(filePath); if (tokenLength > 1024) { CFRelease(filePath); CFRelease(sillyThing); CFRelease(sillyThing2); return(__io_error); } CFStringGetCharacters(filePath,CFRangeMake(0,tokenLength),buffer); CFRelease(filePath); CFRelease(sillyThing); CFRelease(sillyThing2); ioResult = FSCreateFileUnicode(&parentFSRef,tokenLength,buffer,kFSCatInfoNone,NULL,NULL,&spec); if (ioResult) gSqueakFileLastError = ioResult; if (ioResult) return(__io_error); pb.ioParam.ioNamePtr = spec.name; pb.ioParam.ioVRefNum = spec.vRefNum; pb.ioParam.ioPermssn = (mode.io_mode == __read) ? fsRdPerm : fsRdWrPerm; pb.ioParam.ioMisc = 0; pb.fileParam.ioFVersNum = 0; pb.fileParam.ioDirID = spec.parID; set_file_type(&spec, mode.binary_io); ioResult = PBHOpenDFSync(&pb); /* HH 10/25/97 was PBHOpenSync */ if (ioResult) return(__io_error); *handle = pb.ioParam.ioRefNum; return(__no_io_error); } #endif pb.ioParam.ioNamePtr = spec.name; pb.ioParam.ioVRefNum = spec.vRefNum; pb.ioParam.ioPermssn = (mode.io_mode == __read) ? fsRdPerm : fsRdWrPerm; pb.ioParam.ioMisc = 0; pb.fileParam.ioFVersNum = 0; pb.fileParam.ioDirID = spec.parID; if (ioResult) { if (!(ioResult = PBHCreateSync(&pb))) { if (ioResult) gSqueakFileLastError = ioResult; set_file_type(&spec, mode.binary_io); ioResult = PBHOpenDFSync(&pb); /* HH 10/25/97 was PBHOpenSync */ if (ioResult) gSqueakFileLastError = ioResult; } } else { if (!(ioResult = PBHOpenDFSync(&pb)) && mode.open_mode == __create_or_truncate) /* HH 10/25/97 was PBHOpenSync */ { pb.ioParam.ioMisc = 0; ioResult = PBSetEOFSync((ParmBlkPtr) &pb); if (ioResult) gSqueakFileLastError = ioResult; if (ioResult) PBCloseSync((ParmBlkPtr) &pb); } else { if (ioResult) gSqueakFileLastError = ioResult; } } if (ioResult) return(__io_error); *handle = pb.ioParam.ioRefNum; return(__no_io_error); } #endif
{ "content_hash": "7118a3fc69a523f1d03c87f2d0b73923", "timestamp": "", "source": "github", "line_count": 694, "max_line_length": 148, "avg_line_length": 30.011527377521613, "alnum_prop": 0.6612252736700596, "repo_name": "bencoman/pharo-vm", "id": "5619dbf63965bf9e74ded079aba5871fe25e3365", "size": "20828", "binary": false, "copies": "4", "ref": "refs/heads/master", "path": "opensmalltalk-vm/platforms/Mac OS/plugins/FilePlugin/sqMacDirectory.c", "mode": "33188", "license": "mit", "language": [ { "name": "AppleScript", "bytes": "2412" }, { "name": "Assembly", "bytes": "347403" }, { "name": "Awk", "bytes": "3027" }, { "name": "Batchfile", "bytes": "1909" }, { "name": "C", "bytes": "12684902" }, { "name": "C++", "bytes": "6443388" }, { "name": "CMake", "bytes": "41" }, { "name": "CSS", "bytes": "1703" }, { "name": "DTrace", "bytes": "1790" }, { "name": "Elixir", "bytes": "4977" }, { "name": "Emacs Lisp", "bytes": "718" }, { "name": "Groff", "bytes": "743994" }, { "name": "HTML", "bytes": "556382" }, { "name": "JavaScript", "bytes": "5743" }, { "name": "Lex", "bytes": "14360" }, { "name": "Makefile", "bytes": "63728" }, { "name": "NSIS", "bytes": "9014" }, { "name": "Objective-C", "bytes": "885776" }, { "name": "OpenEdge ABL", "bytes": "57017" }, { "name": "PHP", "bytes": "82657" }, { "name": "Perl", "bytes": "14099" }, { "name": "Python", "bytes": "28322" }, { "name": "R", "bytes": "306544" }, { "name": "Rebol", "bytes": "1135" }, { "name": "Shell", "bytes": "460215" }, { "name": "Smalltalk", "bytes": "8579864" }, { "name": "Yacc", "bytes": "34115" } ], "symlink_target": "" }
using System; using System.Collections.Generic; using System.Linq; using Foundation; using UIKit; namespace ZUMOAPPNAME.iOS { [Register ("AppDelegate")] public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate { public override bool FinishedLaunching (UIApplication app, NSDictionary options) { global::Xamarin.Forms.Forms.Init (); Microsoft.WindowsAzure.MobileServices.CurrentPlatform.Init(); LoadApplication (new App ()); return base.FinishedLaunching (app, options); } } }
{ "content_hash": "9075a9adcd6dc0430873fdf8e3020a09", "timestamp": "", "source": "github", "line_count": 25, "max_line_length": 95, "avg_line_length": 21.72, "alnum_prop": 0.7605893186003683, "repo_name": "shrishrirang/azure-mobile-services-quickstarts", "id": "93e622e5b1f78a27143ea5a79dc30729040267a7", "size": "545", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "client/xamarin.forms/iOS/AppDelegate.cs", "mode": "33261", "license": "apache-2.0", "language": [ { "name": "ASP", "bytes": "112" }, { "name": "Batchfile", "bytes": "474" }, { "name": "C#", "bytes": "75529" }, { "name": "CSS", "bytes": "12364" }, { "name": "HTML", "bytes": "10453" }, { "name": "Java", "bytes": "18908" }, { "name": "JavaScript", "bytes": "575368" }, { "name": "Objective-C", "bytes": "25098" }, { "name": "PowerShell", "bytes": "814" }, { "name": "Shell", "bytes": "1120" }, { "name": "Swift", "bytes": "19529" } ], "symlink_target": "" }
/* Datamodel license. * Exclusive rights on this code in any form * are belong to it's author. This code was * developed for commercial purposes only. * For any questions and any actions with this * code in any form you have to contact to it's * author. * All rights reserved. */ package com.eas.client.model.gui.edits.fields; import com.eas.client.metadata.Field; import com.eas.client.model.Entity; /** * * @author mg */ public class NewFieldEdit<E extends Entity<?, ?, E>> extends DeleteFieldEdit<E> { public NewFieldEdit(E aEntity) { super(aEntity, (Field) null); } public NewFieldEdit(E aEntity, Field aField) { super(aEntity, aField); } @Override protected void redoWork() { super.undoWork(); } @Override protected void undoWork() { super.redoWork(); } public void setFieldIndex(int aIndex) { fieldIndex = aIndex; } }
{ "content_hash": "45dc673226c1ba30929fbeaa96fc22de", "timestamp": "", "source": "github", "line_count": 42, "max_line_length": 81, "avg_line_length": 23.166666666666668, "alnum_prop": 0.6258992805755396, "repo_name": "AlexeyKashintsev/PlatypusJS", "id": "e201f5e48548ae2ffc192b11ecd64df321a9c15a", "size": "973", "binary": false, "copies": "3", "ref": "refs/heads/master", "path": "designer/PlatypusDatamodel/src/com/eas/client/model/gui/edits/fields/NewFieldEdit.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "953" }, { "name": "CSS", "bytes": "3413" }, { "name": "HTML", "bytes": "37724" }, { "name": "IDL", "bytes": "14970" }, { "name": "Java", "bytes": "9812973" }, { "name": "JavaScript", "bytes": "1360738" }, { "name": "Pascal", "bytes": "5482" }, { "name": "Pure Data", "bytes": "125" }, { "name": "Shell", "bytes": "2193" } ], "symlink_target": "" }
from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Dialog(object): def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.resize(1375, 827) self.verticalLayout = QtWidgets.QVBoxLayout(Dialog) self.verticalLayout.setObjectName("verticalLayout") self.tabWidget = QtWidgets.QTabWidget(Dialog) self.tabWidget.setObjectName("tabWidget") self.specular_tab = QtWidgets.QWidget() self.specular_tab.setObjectName("specular_tab") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.specular_tab) self.verticalLayout_2.setContentsMargins(0, 0, 0, 0) self.verticalLayout_2.setObjectName("verticalLayout_2") self.specular_compare_widget = CompareWidget(self.specular_tab) self.specular_compare_widget.setObjectName("specular_compare_widget") self.verticalLayout_2.addWidget(self.specular_compare_widget) self.tabWidget.addTab(self.specular_tab, "") self.offspecular_tab = QtWidgets.QWidget() self.offspecular_tab.setObjectName("offspecular_tab") self.gridLayout = QtWidgets.QGridLayout(self.offspecular_tab) self.gridLayout.setContentsMargins(0, 0, 0, 0) self.gridLayout.setObjectName("gridLayout") self.gridLayout_2 = QtWidgets.QGridLayout() self.gridLayout_2.setVerticalSpacing(6) self.gridLayout_2.setObjectName("gridLayout_2") self.offspec_mm_plot = MPLWidget(self.offspecular_tab) self.offspec_mm_plot.setObjectName("offspec_mm_plot") self.gridLayout_2.addWidget(self.offspec_mm_plot, 0, 1, 1, 1) self.offspec_pp_plot = MPLWidget(self.offspecular_tab) self.offspec_pp_plot.setObjectName("offspec_pp_plot") self.gridLayout_2.addWidget(self.offspec_pp_plot, 0, 0, 1, 1) self.offspec_pm_plot = MPLWidget(self.offspecular_tab) self.offspec_pm_plot.setObjectName("offspec_pm_plot") self.gridLayout_2.addWidget(self.offspec_pm_plot, 1, 0, 1, 1) self.offspec_mp_plot = MPLWidget(self.offspecular_tab) self.offspec_mp_plot.setObjectName("offspec_mp_plot") self.gridLayout_2.addWidget(self.offspec_mp_plot, 1, 1, 1, 1) self.gridLayout.addLayout(self.gridLayout_2, 1, 0, 1, 1) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setSizeConstraint(QtWidgets.QLayout.SetMinimumSize) self.horizontalLayout.setContentsMargins(5, 5, 5, 5) self.horizontalLayout.setObjectName("horizontalLayout") self.label = QtWidgets.QLabel(self.offspecular_tab) self.label.setObjectName("label") self.horizontalLayout.addWidget(self.label) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.label_2 = QtWidgets.QLabel(self.offspecular_tab) self.label_2.setObjectName("label_2") self.horizontalLayout.addWidget(self.label_2) self.offspec_intensity_min = QtWidgets.QDoubleSpinBox(self.offspecular_tab) self.offspec_intensity_min.setMinimum(-20.0) self.offspec_intensity_min.setMaximum(2.0) self.offspec_intensity_min.setSingleStep(0.25) self.offspec_intensity_min.setProperty("value", -6.0) self.offspec_intensity_min.setObjectName("offspec_intensity_min") self.horizontalLayout.addWidget(self.offspec_intensity_min) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem1) self.label_3 = QtWidgets.QLabel(self.offspecular_tab) self.label_3.setObjectName("label_3") self.horizontalLayout.addWidget(self.label_3) self.offspec_intensity_max = QtWidgets.QDoubleSpinBox(self.offspecular_tab) self.offspec_intensity_max.setMinimum(-10.0) self.offspec_intensity_max.setMaximum(10.0) self.offspec_intensity_max.setSingleStep(0.25) self.offspec_intensity_max.setObjectName("offspec_intensity_max") self.horizontalLayout.addWidget(self.offspec_intensity_max) spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem2) self.offspec_apply_crop_button = QtWidgets.QPushButton(self.offspecular_tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.offspec_apply_crop_button.sizePolicy().hasHeightForWidth()) self.offspec_apply_crop_button.setSizePolicy(sizePolicy) self.offspec_apply_crop_button.setObjectName("offspec_apply_crop_button") self.horizontalLayout.addWidget(self.offspec_apply_crop_button) self.offset_reset_crop_button = QtWidgets.QPushButton(self.offspecular_tab) self.offset_reset_crop_button.setObjectName("offset_reset_crop_button") self.horizontalLayout.addWidget(self.offset_reset_crop_button) self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1) self.tabWidget.addTab(self.offspecular_tab, "") self.gisans_tab = QtWidgets.QWidget() self.gisans_tab.setObjectName("gisans_tab") self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.gisans_tab) self.verticalLayout_4.setContentsMargins(0, 0, 0, 0) self.verticalLayout_4.setObjectName("verticalLayout_4") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint) self.horizontalLayout_2.setContentsMargins(5, 5, 5, 5) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label_6 = QtWidgets.QLabel(self.gisans_tab) self.label_6.setObjectName("label_6") self.horizontalLayout_2.addWidget(self.label_6) spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem3) self.label_5 = QtWidgets.QLabel(self.gisans_tab) self.label_5.setObjectName("label_5") self.horizontalLayout_2.addWidget(self.label_5) self.gisans_intensity_min = QtWidgets.QDoubleSpinBox(self.gisans_tab) self.gisans_intensity_min.setMinimum(-20.0) self.gisans_intensity_min.setMaximum(2.0) self.gisans_intensity_min.setSingleStep(0.25) self.gisans_intensity_min.setProperty("value", -6.0) self.gisans_intensity_min.setObjectName("gisans_intensity_min") self.horizontalLayout_2.addWidget(self.gisans_intensity_min) spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem4) self.label_4 = QtWidgets.QLabel(self.gisans_tab) self.label_4.setObjectName("label_4") self.horizontalLayout_2.addWidget(self.label_4) self.gisans_intensity_max = QtWidgets.QDoubleSpinBox(self.gisans_tab) self.gisans_intensity_max.setMinimum(-10.0) self.gisans_intensity_max.setMaximum(10.0) self.gisans_intensity_max.setSingleStep(0.25) self.gisans_intensity_max.setObjectName("gisans_intensity_max") self.horizontalLayout_2.addWidget(self.gisans_intensity_max) spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem5) self.gisans_apply_crop_button = QtWidgets.QPushButton(self.gisans_tab) self.gisans_apply_crop_button.setObjectName("gisans_apply_crop_button") self.horizontalLayout_2.addWidget(self.gisans_apply_crop_button) self.gisans_reset_crop_button = QtWidgets.QPushButton(self.gisans_tab) self.gisans_reset_crop_button.setObjectName("gisans_reset_crop_button") self.horizontalLayout_2.addWidget(self.gisans_reset_crop_button) self.verticalLayout_4.addLayout(self.horizontalLayout_2) self.scrollArea = QtWidgets.QScrollArea(self.gisans_tab) self.scrollArea.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn) self.scrollArea.setWidgetResizable(True) self.scrollArea.setObjectName("scrollArea") self.scrollAreaWidgetContents = QtWidgets.QWidget() self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 1319, 685)) self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents") self.gridLayout_6 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents) self.gridLayout_6.setContentsMargins(0, 0, 0, 0) self.gridLayout_6.setObjectName("gridLayout_6") self.gridLayout_4 = QtWidgets.QGridLayout() self.gridLayout_4.setObjectName("gridLayout_4") self.gisans_pp_frame = QtWidgets.QFrame(self.scrollAreaWidgetContents) self.gisans_pp_frame.setFrameShape(QtWidgets.QFrame.StyledPanel) self.gisans_pp_frame.setFrameShadow(QtWidgets.QFrame.Raised) self.gisans_pp_frame.setObjectName("gisans_pp_frame") self.gridLayout_7 = QtWidgets.QGridLayout(self.gisans_pp_frame) self.gridLayout_7.setObjectName("gridLayout_7") self.gisans_pp_layout = QtWidgets.QGridLayout() self.gisans_pp_layout.setObjectName("gisans_pp_layout") self.gridLayout_7.addLayout(self.gisans_pp_layout, 0, 0, 1, 1) self.gridLayout_4.addWidget(self.gisans_pp_frame, 0, 0, 1, 1) self.gisans_mm_frame = QtWidgets.QFrame(self.scrollAreaWidgetContents) self.gisans_mm_frame.setFrameShape(QtWidgets.QFrame.StyledPanel) self.gisans_mm_frame.setFrameShadow(QtWidgets.QFrame.Raised) self.gisans_mm_frame.setObjectName("gisans_mm_frame") self.gridLayout_8 = QtWidgets.QGridLayout(self.gisans_mm_frame) self.gridLayout_8.setObjectName("gridLayout_8") self.gisans_mm_layout = QtWidgets.QGridLayout() self.gisans_mm_layout.setObjectName("gisans_mm_layout") self.gridLayout_8.addLayout(self.gisans_mm_layout, 0, 0, 1, 1) self.gridLayout_4.addWidget(self.gisans_mm_frame, 0, 1, 1, 1) self.gisans_pm_frame = QtWidgets.QFrame(self.scrollAreaWidgetContents) self.gisans_pm_frame.setFrameShape(QtWidgets.QFrame.StyledPanel) self.gisans_pm_frame.setFrameShadow(QtWidgets.QFrame.Raised) self.gisans_pm_frame.setObjectName("gisans_pm_frame") self.gridLayout_11 = QtWidgets.QGridLayout(self.gisans_pm_frame) self.gridLayout_11.setObjectName("gridLayout_11") self.gisans_pm_layout = QtWidgets.QGridLayout() self.gisans_pm_layout.setObjectName("gisans_pm_layout") self.gridLayout_11.addLayout(self.gisans_pm_layout, 0, 0, 1, 1) self.gridLayout_4.addWidget(self.gisans_pm_frame, 1, 0, 1, 1) self.gisans_mp_frame = QtWidgets.QFrame(self.scrollAreaWidgetContents) self.gisans_mp_frame.setFrameShape(QtWidgets.QFrame.StyledPanel) self.gisans_mp_frame.setFrameShadow(QtWidgets.QFrame.Raised) self.gisans_mp_frame.setObjectName("gisans_mp_frame") self.gridLayout_12 = QtWidgets.QGridLayout(self.gisans_mp_frame) self.gridLayout_12.setObjectName("gridLayout_12") self.gisans_mp_layout = QtWidgets.QGridLayout() self.gisans_mp_layout.setObjectName("gisans_mp_layout") self.gridLayout_12.addLayout(self.gisans_mp_layout, 0, 0, 1, 1) self.gridLayout_4.addWidget(self.gisans_mp_frame, 1, 1, 1, 1) self.gridLayout_6.addLayout(self.gridLayout_4, 0, 0, 1, 1) self.scrollArea.setWidget(self.scrollAreaWidgetContents) self.verticalLayout_4.addWidget(self.scrollArea) self.tabWidget.addTab(self.gisans_tab, "") self.verticalLayout.addWidget(self.tabWidget) self.buttonBox = QtWidgets.QDialogButtonBox(Dialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Close) self.buttonBox.setObjectName("buttonBox") self.verticalLayout.addWidget(self.buttonBox) self.retranslateUi(Dialog) self.tabWidget.setCurrentIndex(0) self.buttonBox.accepted.connect(Dialog.accept) self.buttonBox.rejected.connect(Dialog.reject) self.tabWidget.currentChanged['int'].connect(Dialog.update_active_tab) self.offset_reset_crop_button.clicked.connect(Dialog.reset_offspec_crop) self.offspec_apply_crop_button.clicked.connect(Dialog.apply_offspec_crop) self.gisans_apply_crop_button.clicked.connect(Dialog.apply_gisans_crop) self.gisans_reset_crop_button.clicked.connect(Dialog.reset_gisans_crop) QtCore.QMetaObject.connectSlotsByName(Dialog) def retranslateUi(self, Dialog): _translate = QtCore.QCoreApplication.translate Dialog.setWindowTitle(_translate("Dialog", "Result Viewer")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.specular_tab), _translate("Dialog", "Specular")) self.label.setText(_translate("Dialog", "Intensity range:")) self.label_2.setText(_translate("Dialog", "I_min 10^")) self.label_3.setText(_translate("Dialog", "I_max 10^")) self.offspec_apply_crop_button.setText(_translate("Dialog", "Apply cropping to all")) self.offset_reset_crop_button.setText(_translate("Dialog", "Refresh")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.offspecular_tab), _translate("Dialog", "Off-Specular")) self.label_6.setText(_translate("Dialog", "Intensity range:")) self.label_5.setText(_translate("Dialog", "I_min 10^")) self.label_4.setText(_translate("Dialog", "I_max 10^")) self.gisans_apply_crop_button.setText(_translate("Dialog", "Apply cropping to all")) self.gisans_reset_crop_button.setText(_translate("Dialog", "Refresh")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.gisans_tab), _translate("Dialog", "GISANS")) from .compare_plots import CompareWidget from .mplwidget import MPLWidget
{ "content_hash": "e86cdd3dd0fb0886d0744855e4de6dba", "timestamp": "", "source": "github", "line_count": 222, "max_line_length": 117, "avg_line_length": 63.9054054054054, "alnum_prop": 0.7168534573905688, "repo_name": "mdoucet/reflectivity_ui", "id": "b77f9d2c37ba1bb310c6c3884b806c38da89ce78", "size": "14398", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "reflectivity_ui/interfaces/generated/ui_result_viewer.py", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Jupyter Notebook", "bytes": "13410291" }, { "name": "Makefile", "bytes": "331" }, { "name": "Python", "bytes": "1158055" }, { "name": "Shell", "bytes": "208" } ], "symlink_target": "" }
<?php namespace born05\twofactorauthentication\controllers; use Craft; use craft\web\Controller; use craft\elements\User; use craft\helpers\UrlHelper; use born05\twofactorauthentication\Plugin as TwoFactorAuth; use born05\twofactorauthentication\web\assets\verify\VerifyAsset; class SettingsController extends Controller { /** * Show the settings form. */ public function actionIndex() { Craft::$app->view->registerAssetBundle(VerifyAsset::class); return $this->renderTemplate('two-factor-authentication/index'); } /** * Show the settings form. */ public function actionForce() { $user = Craft::$app->getUser()->getIdentity(); if (TwoFactorAuth::$plugin->verify->isVerified($user)) { return Craft::$app->getResponse()->redirect(UrlHelper::cpUrl()); } Craft::$app->view->registerAssetBundle(VerifyAsset::class); return $this->renderTemplate('two-factor-authentication/_force'); } /** * Turn on 2-factor for current user. */ public function actionTurnOn() { $this->requirePostRequest(); $user = Craft::$app->getUser()->getIdentity(); $request = Craft::$app->getRequest(); $authenticationCode = $request->getBodyParam('authenticationCode'); if (TwoFactorAuth::$plugin->verify->verify($user, $authenticationCode)) { $returnUrl = TwoFactorAuth::$plugin->response->getReturnUrl(); if ($request->getAcceptsJson()) { return $this->asJson([ 'success' => true, 'returnUrl' => $returnUrl ]); } else { return $this->redirect($returnUrl); } } else { $errorCode = User::AUTH_INVALID_CREDENTIALS; $errorMessage = Craft::t('two-factor-authentication', 'Authentication code is invalid.'); if ($request->getAcceptsJson()) { return $this->asJson([ 'errorCode' => $errorCode, 'error' => $errorMessage ]); } else { Craft::$app->getSession()->setError($errorMessage); Craft::$app->getUrlManager()->setRouteParams([ 'errorCode' => $errorCode, 'errorMessage' => $errorMessage, ]); $returnUrl = TwoFactorAuth::$plugin->response->getReturnUrl(); if (!Craft::$app->getRequest()->getIsCpRequest()) { $settings = TwoFactorAuth::$plugin->getSettings(); $returnUrl = $settings->settingsPath; } return $this->redirect($returnUrl); } } } /** * Disable 2-factor for current user. */ public function actionTurnOff() { $this->requirePostRequest(); $user = Craft::$app->getUser()->getIdentity(); TwoFactorAuth::$plugin->verify->disableUser($user); if (Craft::$app->getRequest()->getIsCpRequest() && Craft::$app->getUser()->checkPermission('accessCp')) { $returnUrl = UrlHelper::cpUrl('two-factor-authentication'); } else { $returnUrl = TwoFactorAuth::$plugin->response->getReturnUrl(); } return $this->redirect($returnUrl); } }
{ "content_hash": "2b609962d58204d2289e6c3bd985c233", "timestamp": "", "source": "github", "line_count": 106, "max_line_length": 113, "avg_line_length": 31.91509433962264, "alnum_prop": 0.5577889447236181, "repo_name": "born05/craft-twofactorauthentication", "id": "78d50a22035a91a43b97d256a36ecbb8cdff9096", "size": "3383", "binary": false, "copies": "1", "ref": "refs/heads/craft-4", "path": "src/controllers/SettingsController.php", "mode": "33188", "license": "mit", "language": [ { "name": "PHP", "bytes": "41884" }, { "name": "Twig", "bytes": "8576" } ], "symlink_target": "" }
using namespace std; class TreeUtil { public: static bool isBST(vector<int> values); static bool upperValues(vector<int> &values, int index, int value); static void printMaximumPath(const vector<int> &values); static int calculateMaximumPath(vector<int> values, int index); }; bool TreeUtil::upperValues(vector<int> &values, int index, int value) { // Abbruchbedingung if (index <= 0) return true; if (index % 2 == 0) { // I am right Element index = (index - 2) / 2; if (values[index] > value) { return false; } } else { // I am the left Element index = (index - 1) / 2; if (values[index] <= value) { return false; } } return upperValues(values, index, values[index]); } bool TreeUtil::isBST(vector<int> values) { for (int i = 1; i < values.size(); i++) { if (!upperValues(values, i, values[i])) return false; } return true; } int TreeUtil::calculateMaximumPath(vector<int> values, int index) { //Abbruchbedingung if (index >= values.size()) return 0; int indexL = index * 2 + 1; int indexR = index * 2 + 2; // cout << "L: " << indexL << endl; // cout << "R: " << indexR << endl; int leftSum = calculateMaximumPath(values, indexL); int rightSum = calculateMaximumPath(values, indexR); int pathSum = values[index] + std::max(leftSum, rightSum); // cout << pathSum << "\t"; return pathSum; } void TreeUtil::printMaximumPath(const vector<int> &values) { int maxVal(0), tempVal(0); for (int i = 0; i < values.size(); ++i) { tempVal = calculateMaximumPath(values, i); cout << tempVal << "\t"; if (maxVal < tempVal) { // cout << values[i] << endl; maxVal = tempVal; } } cout << "Max Path: " << maxVal; } int main() { vector<int> BST = {20, 12, 34, 9, 19, 29}; bool result = TreeUtil::isBST(BST); // if(result) { // cout << "it's a BST" << endl; // } else { // cout << "it's not a BST" << endl; // } BST = {40, 100, 200, 20, 40, 70, 80, 50, 10}; // result = TreeUtil::isBST(BST); // // if(result) { // cout << "it's a BST" << endl; // } else { // cout << "it's not a BST" << endl; // } TreeUtil::printMaximumPath(BST); return 0; }
{ "content_hash": "a9c1e67ccb37e326be6935262d31d80f", "timestamp": "", "source": "github", "line_count": 99, "max_line_length": 71, "avg_line_length": 23.96969696969697, "alnum_prop": 0.5457227138643068, "repo_name": "theroyalcoder/HF-ICT-AAD-1-SEM", "id": "41a45d4bcb28668037e4190e61dfb771a4192f3d", "size": "2411", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "12_testvorbereitung/BST/main.cpp", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "1749" }, { "name": "C++", "bytes": "205555" }, { "name": "CMake", "bytes": "10892" }, { "name": "QMake", "bytes": "3138" } ], "symlink_target": "" }
package org.springframework.web.portlet; import java.util.Map; import javax.portlet.MimeResponse; import javax.portlet.PortletRequest; import org.springframework.web.servlet.View; import org.springframework.web.servlet.ViewRendererServlet; public class ForwardingDispatcherPortlet extends DispatcherPortlet { /** URL that points to the ViewRendererServlet */ private String viewRendererUrl = DispatcherPortlet.DEFAULT_VIEW_RENDERER_URL; @Override public void setViewRendererUrl(String viewRendererUrl) { this.viewRendererUrl = viewRendererUrl; super.setViewRendererUrl(viewRendererUrl); } @Override protected void doRender(View view, Map model, PortletRequest request, MimeResponse response) throws Exception { // Expose Portlet ApplicationContext to view objects. request.setAttribute( ViewRendererServlet.WEB_APPLICATION_CONTEXT_ATTRIBUTE, getPortletApplicationContext()); // These attributes are required by the ViewRendererServlet. request.setAttribute(ViewRendererServlet.VIEW_ATTRIBUTE, view); request.setAttribute(ViewRendererServlet.MODEL_ATTRIBUTE, model); // Forward to the view in the resource response. if (PortletRequest.RESOURCE_PHASE.equals( request.getAttribute(PortletRequest.LIFECYCLE_PHASE))) { getPortletContext() .getRequestDispatcher(this.viewRendererUrl) .forward(request, response); } else { getPortletContext() .getRequestDispatcher(this.viewRendererUrl) .include(request, response); } } }
{ "content_hash": "f8a534587c764775b51fcb35407e0148", "timestamp": "", "source": "github", "line_count": 44, "max_line_length": 96, "avg_line_length": 38.77272727272727, "alnum_prop": 0.6928487690504103, "repo_name": "mgillian/uPortal", "id": "a53de9dc5e355e9750ab78d7010b7907b3915aff", "size": "2495", "binary": false, "copies": "11", "ref": "refs/heads/master", "path": "uPortal-spring/src/main/java/org/springframework/web/portlet/ForwardingDispatcherPortlet.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "1744" }, { "name": "Groovy", "bytes": "56524" }, { "name": "HTML", "bytes": "219389" }, { "name": "Java", "bytes": "10251304" }, { "name": "JavaScript", "bytes": "288203" }, { "name": "Less", "bytes": "138521" }, { "name": "StringTemplate", "bytes": "1107" }, { "name": "XSLT", "bytes": "255894" } ], "symlink_target": "" }
ACCEPTED #### According to International Plant Names Index #### Published in null #### Original name null ### Remarks null
{ "content_hash": "83181fa9fab0937f39dc6eb188baaf21", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 31, "avg_line_length": 9.692307692307692, "alnum_prop": 0.7063492063492064, "repo_name": "mdoering/backbone", "id": "c719f0392ca42ebd2daea116baf6eae630c1efe4", "size": "180", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Plantae/Magnoliophyta/Magnoliopsida/Ericales/Balsaminaceae/Impatiens/Impatiens rangoonensis/README.md", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
.class Lcom/android/settings/DeviceInfoSettings$6; .super Ljava/lang/Object; .source "DeviceInfoSettings.java" # interfaces .implements Landroid/support/v7/preference/Preference$OnPreferenceClickListener; # annotations .annotation system Ldalvik/annotation/EnclosingMethod; value = Lcom/android/settings/DeviceInfoSettings;->InitSecTopAddtionalPreferences()V .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x0 name = null .end annotation # instance fields .field final synthetic this$0:Lcom/android/settings/DeviceInfoSettings; # direct methods .method constructor <init>(Lcom/android/settings/DeviceInfoSettings;)V .locals 0 iput-object p1, p0, Lcom/android/settings/DeviceInfoSettings$6;->this$0:Lcom/android/settings/DeviceInfoSettings; invoke-direct {p0}, Ljava/lang/Object;-><init>()V return-void .end method # virtual methods .method public onPreferenceClick(Landroid/support/v7/preference/Preference;)Z .locals 1 iget-object v0, p0, Lcom/android/settings/DeviceInfoSettings$6;->this$0:Lcom/android/settings/DeviceInfoSettings; invoke-static {v0}, Lcom/android/settings/DeviceInfoSettings;->-get2(Lcom/android/settings/DeviceInfoSettings;)Landroid/support/v7/preference/Preference; move-result-object v0 if-eqz v0, :cond_0 iget-object v0, p0, Lcom/android/settings/DeviceInfoSettings$6;->this$0:Lcom/android/settings/DeviceInfoSettings; invoke-static {v0}, Lcom/android/settings/DeviceInfoSettings;->-get2(Lcom/android/settings/DeviceInfoSettings;)Landroid/support/v7/preference/Preference; move-result-object v0 invoke-virtual {v0}, Landroid/support/v7/preference/Preference;->getIntent()Landroid/content/Intent; move-result-object v0 if-eqz v0, :cond_0 invoke-static {}, Lcom/android/settings/Utils;->isChinaModel()Z move-result v0 if-eqz v0, :cond_0 iget-object v0, p0, Lcom/android/settings/DeviceInfoSettings$6;->this$0:Lcom/android/settings/DeviceInfoSettings; invoke-virtual {v0}, Lcom/android/settings/DeviceInfoSettings;->showOnlineHelpDialog()V const/4 v0, 0x1 return v0 :cond_0 const/4 v0, 0x0 return v0 .end method
{ "content_hash": "a4a621f9859a3c914d1276df33ebfbd3", "timestamp": "", "source": "github", "line_count": 78, "max_line_length": 157, "avg_line_length": 28.333333333333332, "alnum_prop": 0.7615384615384615, "repo_name": "BatMan-Rom/ModdedFiles", "id": "9c99f882a7276a2b1a708cc68850b4e62b01a1ab", "size": "2210", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "SecSettings/smali/com/android/settings/DeviceInfoSettings$6.smali", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "GLSL", "bytes": "15069" }, { "name": "HTML", "bytes": "139176" }, { "name": "Smali", "bytes": "541934400" } ], "symlink_target": "" }
<?xml version="1.0" ?><!DOCTYPE TS><TS language="de" version="2.0"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Bitcoin</source> <translation>Über Bitcoin</translation> </message> <message> <location line="+39"/> <source>&lt;b&gt;Bitcoin&lt;/b&gt; version</source> <translation>&lt;b&gt;Bitcoin&lt;/b&gt;-Version</translation> </message> <message> <location line="+57"/> <source> This is experimental software. Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young ([email protected]) and UPnP software written by Thomas Bernard.</source> <translation> Dies ist experimentelle Software. Veröffentlicht unter der MIT/X11-Softwarelizenz, siehe beiligende Datei COPYING oder http://www.opensource.org/licenses/mit-license.php. Dieses Produkt enthält Software, die vom OpenSSL-Projekt zur Verwendung im OpenSSL-Toolkit (http://www.openssl.org/) entwickelt wurde, sowie kryptographische Software geschrieben von Eric Young ([email protected]) und UPnP-Software geschrieben von Thomas Bernard.</translation> </message> <message> <location filename="../aboutdialog.cpp" line="+14"/> <source>Copyright</source> <translation>Copyright</translation> </message> <message> <location line="+0"/> <source>The Bitcoin developers</source> <translation>Die Bitcoinentwickler</translation> </message> </context> <context> <name>AddressBookPage</name> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>Address Book</source> <translation>Adressbuch</translation> </message> <message> <location line="+19"/> <source>Double-click to edit address or label</source> <translation>Doppelklicken, um die Adresse oder die Bezeichnung zu bearbeiten</translation> </message> <message> <location line="+27"/> <source>Create a new address</source> <translation>Eine neue Adresse erstellen</translation> </message> <message> <location line="+14"/> <source>Copy the currently selected address to the system clipboard</source> <translation>Ausgewählte Adresse in die Zwischenablage kopieren</translation> </message> <message> <location line="-11"/> <source>&amp;New Address</source> <translation>&amp;Neue Adresse</translation> </message> <message> <location filename="../addressbookpage.cpp" line="+63"/> <source>These are your Pangubi 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>Dies sind Ihre Bitcoin-Adressen zum Empfangen von Zahlungen. Es steht Ihnen frei, jedem Absender eine Andere mitzuteilen, um einen besseren Überblick über eingehende Zahlungen zu erhalten.</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>&amp;Copy Address</source> <translation>Adresse &amp;kopieren</translation> </message> <message> <location line="+11"/> <source>Show &amp;QR Code</source> <translation>&amp;QR-Code anzeigen</translation> </message> <message> <location line="+11"/> <source>Sign a message to prove you own a Pangubi address</source> <translation>Eine Nachricht signieren, um den Besitz einer Bitcoin-Adresse zu beweisen</translation> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation>Nachricht &amp;signieren</translation> </message> <message> <location line="+25"/> <source>Delete the currently selected address from the list</source> <translation>Die ausgewählte Adresse aus der Liste entfernen.</translation> </message> <message> <location line="+27"/> <source>Export the data in the current tab to a file</source> <translation>Daten der aktuellen Ansicht in eine Datei exportieren</translation> </message> <message> <location line="+3"/> <source>&amp;Export</source> <translation>E&amp;xportieren</translation> </message> <message> <location line="-44"/> <source>Verify a message to ensure it was signed with a specified Pangubi address</source> <translation>Eine Nachricht verifizieren, um sicherzustellen, dass diese mit einer angegebenen Bitcoin-Adresse signiert wurde</translation> </message> <message> <location line="+3"/> <source>&amp;Verify Message</source> <translation>Nachricht &amp;verifizieren</translation> </message> <message> <location line="+14"/> <source>&amp;Delete</source> <translation>&amp;Löschen</translation> </message> <message> <location filename="../addressbookpage.cpp" line="-5"/> <source>These are your Pangubi addresses for sending payments. Always check the amount and the receiving address before sending coins.</source> <translation>Dies sind Ihre Bitcoin-Adressen zum Tätigen von Überweisungen. Bitte prüfen Sie den Betrag und die Empfangsadresse, bevor Sie Bitcoins überweisen.</translation> </message> <message> <location line="+13"/> <source>Copy &amp;Label</source> <translation>&amp;Bezeichnung kopieren</translation> </message> <message> <location line="+1"/> <source>&amp;Edit</source> <translation>&amp;Editieren</translation> </message> <message> <location line="+1"/> <source>Send &amp;Coins</source> <translation>Bitcoins &amp;überweisen</translation> </message> <message> <location line="+265"/> <source>Export Address Book Data</source> <translation>Adressbuch exportieren</translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>Kommagetrennte-Datei (*.csv)</translation> </message> <message> <location line="+13"/> <source>Error exporting</source> <translation>Fehler beim Exportieren</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>Konnte nicht in Datei %1 schreiben.</translation> </message> </context> <context> <name>AddressTableModel</name> <message> <location filename="../addresstablemodel.cpp" line="+144"/> <source>Label</source> <translation>Bezeichnung</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Adresse</translation> </message> <message> <location line="+36"/> <source>(no label)</source> <translation>(keine Bezeichnung)</translation> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <location filename="../forms/askpassphrasedialog.ui" line="+26"/> <source>Passphrase Dialog</source> <translation>Passphrasendialog</translation> </message> <message> <location line="+21"/> <source>Enter passphrase</source> <translation>Passphrase eingeben</translation> </message> <message> <location line="+14"/> <source>New passphrase</source> <translation>Neue Passphrase</translation> </message> <message> <location line="+14"/> <source>Repeat new passphrase</source> <translation>Neue Passphrase wiederholen</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="+33"/> <source>Enter the new passphrase to the wallet.&lt;br/&gt;Please use a passphrase of &lt;b&gt;10 or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.</source> <translation>Geben Sie die neue Passphrase für die Brieftasche ein.&lt;br&gt;Bitte benutzen Sie eine Passphrase bestehend aus &lt;b&gt;10 oder mehr zufälligen Zeichen&lt;/b&gt; oder &lt;b&gt;8 oder mehr Wörtern&lt;/b&gt;.</translation> </message> <message> <location line="+1"/> <source>Encrypt wallet</source> <translation>Brieftasche verschlüsseln</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation>Dieser Vorgang benötigt Ihre Passphrase, um die Brieftasche zu entsperren.</translation> </message> <message> <location line="+5"/> <source>Unlock wallet</source> <translation>Brieftasche entsperren</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation>Dieser Vorgang benötigt Ihre Passphrase, um die Brieftasche zu entschlüsseln.</translation> </message> <message> <location line="+5"/> <source>Decrypt wallet</source> <translation>Brieftasche entschlüsseln</translation> </message> <message> <location line="+3"/> <source>Change passphrase</source> <translation>Passphrase ändern</translation> </message> <message> <location line="+1"/> <source>Enter the old and new passphrase to the wallet.</source> <translation>Geben Sie die alte und neue Passphrase der Brieftasche ein.</translation> </message> <message> <location line="+46"/> <source>Confirm wallet encryption</source> <translation>Verschlüsselung der Brieftasche bestätigen</translation> </message> <message> <location line="+1"/> <source>Warning: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR BITCOINS&lt;/b&gt;!</source> <translation>Warnung: Wenn Sie Ihre Brieftasche verschlüsseln und Ihre Passphrase verlieren, werden Sie &lt;b&gt;alle Ihre Bitcoins verlieren&lt;/b&gt;!</translation> </message> <message> <location line="+0"/> <source>Are you sure you wish to encrypt your wallet?</source> <translation>Sind Sie sich sicher, dass Sie Ihre Brieftasche verschlüsseln möchten?</translation> </message> <message> <location line="+15"/> <source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source> <translation>WICHTIG: Alle vorherigen Sicherungen Ihrer Brieftasche sollten durch die neu erzeugte, verschlüsselte Brieftasche ersetzt werden. Aus Sicherheitsgründen werden vorherige Sicherungen der unverschlüsselten Brieftasche nutzlos, sobald Sie die neue, verschlüsselte Brieftasche verwenden.</translation> </message> <message> <location line="+100"/> <location line="+24"/> <source>Warning: The Caps Lock key is on!</source> <translation>Warnung: Die Feststelltaste ist aktiviert!</translation> </message> <message> <location line="-130"/> <location line="+58"/> <source>Wallet encrypted</source> <translation>Brieftasche verschlüsselt</translation> </message> <message> <location line="-56"/> <source>Bitcoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer.</source> <translation>Bitcoin wird jetzt beendet, um den Verschlüsselungsprozess abzuschließen. Bitte beachten Sie, dass die Verschlüsselung Ihrer Brieftasche nicht vollständig vor Diebstahl Ihrer Bitcoins durch Schadsoftware schützt, die Ihren Computer befällt.</translation> </message> <message> <location line="+13"/> <location line="+7"/> <location line="+42"/> <location line="+6"/> <source>Wallet encryption failed</source> <translation>Verschlüsselung der Brieftasche fehlgeschlagen</translation> </message> <message> <location line="-54"/> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation>Die Verschlüsselung der Brieftasche ist aufgrund eines internen Fehlers fehlgeschlagen. Ihre Brieftasche wurde nicht verschlüsselt.</translation> </message> <message> <location line="+7"/> <location line="+48"/> <source>The supplied passphrases do not match.</source> <translation>Die eingegebenen Passphrasen stimmen nicht überein.</translation> </message> <message> <location line="-37"/> <source>Wallet unlock failed</source> <translation>Entsperrung der Brieftasche fehlgeschlagen</translation> </message> <message> <location line="+1"/> <location line="+11"/> <location line="+19"/> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation>Die eingegebene Passphrase zum Entschlüsseln der Brieftasche war nicht korrekt.</translation> </message> <message> <location line="-20"/> <source>Wallet decryption failed</source> <translation>Entschlüsselung der Brieftasche fehlgeschlagen</translation> </message> <message> <location line="+14"/> <source>Wallet passphrase was successfully changed.</source> <translation>Die Passphrase der Brieftasche wurde erfolgreich geändert.</translation> </message> </context> <context> <name>BitcoinGUI</name> <message> <location filename="../bitcoingui.cpp" line="+254"/> <source>Sign &amp;message...</source> <translation>Nachricht s&amp;ignieren...</translation> </message> <message> <location line="+246"/> <source>Synchronizing with network...</source> <translation>Synchronisiere mit Netzwerk...</translation> </message> <message> <location line="-321"/> <source>&amp;Overview</source> <translation>&amp;Übersicht</translation> </message> <message> <location line="+1"/> <source>Show general overview of wallet</source> <translation>Allgemeine Übersicht der Brieftasche anzeigen</translation> </message> <message> <location line="+20"/> <source>&amp;Transactions</source> <translation>&amp;Transaktionen</translation> </message> <message> <location line="+1"/> <source>Browse transaction history</source> <translation>Transaktionsverlauf durchsehen</translation> </message> <message> <location line="+7"/> <source>Edit the list of stored addresses and labels</source> <translation>Liste der gespeicherten Zahlungsadressen und Bezeichnungen bearbeiten</translation> </message> <message> <location line="-14"/> <source>Show the list of addresses for receiving payments</source> <translation>Liste der Empfangsadressen anzeigen</translation> </message> <message> <location line="+31"/> <source>E&amp;xit</source> <translation>&amp;Beenden</translation> </message> <message> <location line="+1"/> <source>Quit application</source> <translation>Anwendung beenden</translation> </message> <message> <location line="+7"/> <source>Show information about Bitcoin</source> <translation>Informationen über Bitcoin anzeigen</translation> </message> <message> <location line="+2"/> <source>About &amp;Qt</source> <translation>Über &amp;Qt</translation> </message> <message> <location line="+1"/> <source>Show information about Qt</source> <translation>Informationen über Qt anzeigen</translation> </message> <message> <location line="+2"/> <source>&amp;Options...</source> <translation>&amp;Konfiguration...</translation> </message> <message> <location line="+9"/> <source>&amp;Encrypt Wallet...</source> <translation>Brieftasche &amp;verschlüsseln...</translation> </message> <message> <location line="+3"/> <source>&amp;Backup Wallet...</source> <translation>Brieftasche &amp;sichern...</translation> </message> <message> <location line="+2"/> <source>&amp;Change Passphrase...</source> <translation>Passphrase &amp;ändern...</translation> </message> <message> <location line="+251"/> <source>Importing blocks from disk...</source> <translation>Importiere Blöcke von Laufwerk...</translation> </message> <message> <location line="+3"/> <source>Reindexing blocks on disk...</source> <translation>Reindiziere Blöcke auf Laufwerk...</translation> </message> <message> <location line="-319"/> <source>Send coins to a Pangubi address</source> <translation>Bitcoins an eine Bitcoin-Adresse überweisen</translation> </message> <message> <location line="+52"/> <source>Modify configuration options for Bitcoin</source> <translation>Die Konfiguration des Clients bearbeiten</translation> </message> <message> <location line="+12"/> <source>Backup wallet to another location</source> <translation>Eine Sicherungskopie der Brieftasche erstellen und abspeichern</translation> </message> <message> <location line="+2"/> <source>Change the passphrase used for wallet encryption</source> <translation>Ändert die Passphrase, die für die Verschlüsselung der Brieftasche benutzt wird</translation> </message> <message> <location line="+6"/> <source>&amp;Debug window</source> <translation>&amp;Debugfenster</translation> </message> <message> <location line="+1"/> <source>Open debugging and diagnostic console</source> <translation>Debugging- und Diagnosekonsole öffnen</translation> </message> <message> <location line="-4"/> <source>&amp;Verify message...</source> <translation>Nachricht &amp;verifizieren...</translation> </message> <message> <location line="-183"/> <location line="+6"/> <location line="+508"/> <source>Bitcoin</source> <translation>Bitcoin</translation> </message> <message> <location line="-514"/> <location line="+6"/> <source>Wallet</source> <translation>Brieftasche</translation> </message> <message> <location line="+107"/> <source>&amp;Send</source> <translation>Überweisen</translation> </message> <message> <location line="+7"/> <source>&amp;Receive</source> <translation>&amp;Empfangen</translation> </message> <message> <location line="+14"/> <source>&amp;Addresses</source> <translation>&amp;Adressen</translation> </message> <message> <location line="+23"/> <location line="+2"/> <source>&amp;About Bitcoin</source> <translation>&amp;Über Bitcoin</translation> </message> <message> <location line="+10"/> <location line="+2"/> <source>&amp;Show / Hide</source> <translation>&amp;Anzeigen / Verstecken</translation> </message> <message> <location line="+1"/> <source>Show or hide the main Window</source> <translation>Das Hauptfenster anzeigen oder verstecken</translation> </message> <message> <location line="+3"/> <source>Encrypt the private keys that belong to your wallet</source> <translation>Verschlüsselt die zu Ihrer Brieftasche gehörenden privaten Schlüssel</translation> </message> <message> <location line="+7"/> <source>Sign messages with your Pangubi addresses to prove you own them</source> <translation>Nachrichten signieren, um den Besitz Ihrer Bitcoin-Adressen zu beweisen</translation> </message> <message> <location line="+2"/> <source>Verify messages to ensure they were signed with specified Pangubi addresses</source> <translation>Nachrichten verifizieren, um sicherzustellen, dass diese mit den angegebenen Bitcoin-Adressen signiert wurden</translation> </message> <message> <location line="+28"/> <source>&amp;File</source> <translation>&amp;Datei</translation> </message> <message> <location line="+7"/> <source>&amp;Settings</source> <translation>&amp;Einstellungen</translation> </message> <message> <location line="+6"/> <source>&amp;Help</source> <translation>&amp;Hilfe</translation> </message> <message> <location line="+9"/> <source>Tabs toolbar</source> <translation>Registerkartenleiste</translation> </message> <message> <location line="-228"/> <location line="+288"/> <source>[testnet]</source> <translation>[Testnetz]</translation> </message> <message> <location line="-5"/> <location line="+5"/> <source>Bitcoin client</source> <translation>Bitcoin-Client</translation> </message> <message numerus="yes"> <location line="+121"/> <source>%n active connection(s) to Bitcoin network</source> <translation><numerusform>%n aktive Verbindung zum Bitcoin-Netzwerk</numerusform><numerusform>%n aktive Verbindungen zum Bitcoin-Netzwerk</numerusform></translation> </message> <message> <location line="+22"/> <source>No block source available...</source> <translation>Keine Blockquelle verfügbar...</translation> </message> <message> <location line="+12"/> <source>Processed %1 of %2 (estimated) blocks of transaction history.</source> <translation>%1 von (geschätzten) %2 Blöcken des Transaktionsverlaufs verarbeitet.</translation> </message> <message> <location line="+4"/> <source>Processed %1 blocks of transaction history.</source> <translation>%1 Blöcke des Transaktionsverlaufs verarbeitet.</translation> </message> <message numerus="yes"> <location line="+20"/> <source>%n hour(s)</source> <translation><numerusform>%n Stunde</numerusform><numerusform>%n Stunden</numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n day(s)</source> <translation><numerusform>%n Tag</numerusform><numerusform>%n Tage</numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n week(s)</source> <translation><numerusform>%n Woche</numerusform><numerusform>%n Wochen</numerusform></translation> </message> <message> <location line="+4"/> <source>%1 behind</source> <translation>%1 im Rückstand</translation> </message> <message> <location line="+14"/> <source>Last received block was generated %1 ago.</source> <translation>Der letzte empfangene Block ist %1 alt.</translation> </message> <message> <location line="+2"/> <source>Transactions after this will not yet be visible.</source> <translation>Transaktionen hiernach werden noch nicht angezeigt.</translation> </message> <message> <location line="+22"/> <source>Error</source> <translation>Fehler</translation> </message> <message> <location line="+3"/> <source>Warning</source> <translation>Warnung</translation> </message> <message> <location line="+3"/> <source>Information</source> <translation>Hinweis</translation> </message> <message> <location line="+70"/> <source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source> <translation>Die Transaktion übersteigt das Größenlimit. Sie können sie trotzdem senden, wenn Sie eine zusätzliche Transaktionsgebühr in Höhe von %1 zahlen. Diese wird an die Knoten verteilt, die Ihre Transaktion bearbeiten und unterstützt damit das Bitcoin-Netzwerk. Möchten Sie die Gebühr bezahlen?</translation> </message> <message> <location line="-140"/> <source>Up to date</source> <translation>Auf aktuellem Stand</translation> </message> <message> <location line="+31"/> <source>Catching up...</source> <translation>Hole auf...</translation> </message> <message> <location line="+113"/> <source>Confirm transaction fee</source> <translation>Transaktionsgebühr bestätigen</translation> </message> <message> <location line="+8"/> <source>Sent transaction</source> <translation>Gesendete Transaktion</translation> </message> <message> <location line="+0"/> <source>Incoming transaction</source> <translation>Eingehende Transaktion</translation> </message> <message> <location line="+1"/> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation>Datum: %1 Betrag: %2 Typ: %3 Adresse: %4</translation> </message> <message> <location line="+33"/> <location line="+23"/> <source>URI handling</source> <translation>URI Verarbeitung</translation> </message> <message> <location line="-23"/> <location line="+23"/> <source>URI can not be parsed! This can be caused by an invalid Pangubi address or malformed URI parameters.</source> <translation>URI kann nicht analysiert werden! Dies kann durch eine ungültige Bitcoin-Adresse oder fehlerhafte URI-Parameter verursacht werden.</translation> </message> <message> <location line="+17"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt;</source> <translation>Brieftasche ist &lt;b&gt;verschlüsselt&lt;/b&gt; und aktuell &lt;b&gt;entsperrt&lt;/b&gt;</translation> </message> <message> <location line="+8"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;locked&lt;/b&gt;</source> <translation>Brieftasche ist &lt;b&gt;verschlüsselt&lt;/b&gt; und aktuell &lt;b&gt;gesperrt&lt;/b&gt;</translation> </message> <message> <location filename="../bitcoin.cpp" line="+110"/> <source>A fatal error occurred. Bitcoin can no longer continue safely and will quit.</source> <translation>Ein schwerer Fehler ist aufgetreten. Bitcoin kann nicht stabil weiter ausgeführt werden und wird beendet.</translation> </message> </context> <context> <name>ClientModel</name> <message> <location filename="../clientmodel.cpp" line="+105"/> <source>Network Alert</source> <translation>Netzwerkalarm</translation> </message> </context> <context> <name>EditAddressDialog</name> <message> <location filename="../forms/editaddressdialog.ui" line="+14"/> <source>Edit Address</source> <translation>Adresse bearbeiten</translation> </message> <message> <location line="+11"/> <source>&amp;Label</source> <translation>&amp;Bezeichnung</translation> </message> <message> <location line="+10"/> <source>The label associated with this address book entry</source> <translation>Die Bezeichnung dieses Adressbuchseintrags</translation> </message> <message> <location line="+7"/> <source>&amp;Address</source> <translation>&amp;Adresse</translation> </message> <message> <location line="+10"/> <source>The address associated with this address book entry. This can only be modified for sending addresses.</source> <translation>Die Adresse des Adressbucheintrags. Diese kann nur für Zahlungsadressen bearbeitet werden.</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="+21"/> <source>New receiving address</source> <translation>Neue Empfangsadresse</translation> </message> <message> <location line="+4"/> <source>New sending address</source> <translation>Neue Zahlungsadresse</translation> </message> <message> <location line="+3"/> <source>Edit receiving address</source> <translation>Empfangsadresse bearbeiten</translation> </message> <message> <location line="+4"/> <source>Edit sending address</source> <translation>Zahlungsadresse bearbeiten</translation> </message> <message> <location line="+76"/> <source>The entered address &quot;%1&quot; is already in the address book.</source> <translation>Die eingegebene Adresse &quot;%1&quot; befindet sich bereits im Adressbuch.</translation> </message> <message> <location line="-5"/> <source>The entered address &quot;%1&quot; is not a valid Pangubi address.</source> <translation>Die eingegebene Adresse &quot;%1&quot; ist keine gültige Bitcoin-Adresse.</translation> </message> <message> <location line="+10"/> <source>Could not unlock wallet.</source> <translation>Die Brieftasche konnte nicht entsperrt werden.</translation> </message> <message> <location line="+5"/> <source>New key generation failed.</source> <translation>Generierung eines neuen Schlüssels fehlgeschlagen.</translation> </message> </context> <context> <name>FreespaceChecker</name> <message> <location filename="../intro.cpp" line="+61"/> <source>A new data directory will be created.</source> <translation>Es wird ein neues Datenverzeichnis angelegt.</translation> </message> <message> <location line="+22"/> <source>name</source> <translation>Name</translation> </message> <message> <location line="+2"/> <source>Directory already exists. Add %1 if you intend to create a new directory here.</source> <translation>Verzeichnis existiert bereits. Fügen Sie %1 an, wenn Sie beabsichtigen hier ein neues Verzeichnis anzulegen.</translation> </message> <message> <location line="+3"/> <source>Path already exists, and is not a directory.</source> <translation>Pfad existiert bereits und ist kein Verzeichnis.</translation> </message> <message> <location line="+7"/> <source>Cannot create data directory here.</source> <translation>Datenverzeichnis kann hier nicht angelegt werden.</translation> </message> </context> <context> <name>GUIUtil::HelpMessageBox</name> <message> <location filename="../guiutil.cpp" line="+517"/> <location line="+13"/> <source>Bitcoin-Qt</source> <translation>Bitcoin-Qt</translation> </message> <message> <location line="-13"/> <source>version</source> <translation>Version</translation> </message> <message> <location line="+2"/> <source>Usage:</source> <translation>Benutzung:</translation> </message> <message> <location line="+1"/> <source>command-line options</source> <translation>Kommandozeilenoptionen</translation> </message> <message> <location line="+4"/> <source>UI options</source> <translation>UI-Optionen</translation> </message> <message> <location line="+1"/> <source>Set language, for example &quot;de_DE&quot; (default: system locale)</source> <translation>Sprache festlegen, z.B. &quot;de_DE&quot; (Standard: System Locale)</translation> </message> <message> <location line="+1"/> <source>Start minimized</source> <translation>Minimiert starten</translation> </message> <message> <location line="+1"/> <source>Show splash screen on startup (default: 1)</source> <translation>Startbildschirm beim Starten anzeigen (Standard: 1)</translation> </message> <message> <location line="+1"/> <source>Choose data directory on startup (default: 0)</source> <translation>Datenverzeichnis beim Starten auswählen (Standard: 0)</translation> </message> </context> <context> <name>Intro</name> <message> <location filename="../forms/intro.ui" line="+14"/> <source>Welcome</source> <translation>Willkommen</translation> </message> <message> <location line="+9"/> <source>Welcome to Bitcoin-Qt.</source> <translation>Willkommen zu Bitcoin-Qt.</translation> </message> <message> <location line="+26"/> <source>As this is the first time the program is launched, you can choose where Bitcoin-Qt will store its data.</source> <translation>Da Sie das Programm gerade zum ersten Mal starten, können Sie nun auswählen wo Bitcoin-Qt seine Daten ablegen wird.</translation> </message> <message> <location line="+10"/> <source>Bitcoin-Qt will download and store a copy of the Bitcoin block chain. At least %1GB of data will be stored in this directory, and it will grow over time. The wallet will also be stored in this directory.</source> <translation>Bitcoin-Qt wird eine Kopie der Blockkette herunterladen und speichern. Mindestens %1GB Daten werden in diesem Verzeichnis abgelegt und die Datenmenge wächst über die Zeit an. Auch die Brieftasche wird in diesem Verzeichnis abgelegt.</translation> </message> <message> <location line="+10"/> <source>Use the default data directory</source> <translation>Standard-Datenverzeichnis verwenden</translation> </message> <message> <location line="+7"/> <source>Use a custom data directory:</source> <translation>Ein benutzerdefiniertes Datenverzeichnis verwenden:</translation> </message> <message> <location filename="../intro.cpp" line="+100"/> <source>Error</source> <translation>Fehler</translation> </message> <message> <location line="+9"/> <source>GB of free space available</source> <translation>GB freier Speicherplatz verfügbar</translation> </message> <message> <location line="+3"/> <source>(of %1GB needed)</source> <translation>(von benötigten %1GB)</translation> </message> </context> <context> <name>OptionsDialog</name> <message> <location filename="../forms/optionsdialog.ui" line="+14"/> <source>Options</source> <translation>Erweiterte Einstellungen</translation> </message> <message> <location line="+16"/> <source>&amp;Main</source> <translation>&amp;Allgemein</translation> </message> <message> <location line="+6"/> <source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB.</source> <translation>Optionale Transaktionsgebühr pro KB, die sicherstellt, dass Ihre Transaktionen schnell bearbeitet werden. Die meisten Transaktionen sind 1 kB groß.</translation> </message> <message> <location line="+15"/> <source>Pay transaction &amp;fee</source> <translation>Transaktions&amp;gebühr bezahlen</translation> </message> <message> <location line="+31"/> <source>Automatically start Bitcoin after logging in to the system.</source> <translation>Bitcoin nach der Anmeldung am System automatisch ausführen.</translation> </message> <message> <location line="+3"/> <source>&amp;Start Bitcoin on system login</source> <translation>&amp;Starte Bitcoin nach Systemanmeldung</translation> </message> <message> <location line="+35"/> <source>Reset all client options to default.</source> <translation>Setzt die Clientkonfiguration auf Standardwerte zurück.</translation> </message> <message> <location line="+3"/> <source>&amp;Reset Options</source> <translation>Konfiguration &amp;zurücksetzen</translation> </message> <message> <location line="+13"/> <source>&amp;Network</source> <translation>&amp;Netzwerk</translation> </message> <message> <location line="+6"/> <source>Automatically open the Bitcoin client port on the router. This only works when your router supports UPnP and it is enabled.</source> <translation>Automatisch den Bitcoin-Clientport auf dem Router öffnen. Dies funktioniert nur, wenn Ihr Router UPnP unterstützt und dies aktiviert ist.</translation> </message> <message> <location line="+3"/> <source>Map port using &amp;UPnP</source> <translation>Portweiterleitung via &amp;UPnP</translation> </message> <message> <location line="+7"/> <source>Connect to the Bitcoin network through a SOCKS proxy (e.g. when connecting through Tor).</source> <translation>Über einen SOCKS-Proxy mit dem Bitcoin-Netzwerk verbinden (z.B. beim Verbinden über Tor).</translation> </message> <message> <location line="+3"/> <source>&amp;Connect through SOCKS proxy:</source> <translation>Über einen SOCKS-Proxy &amp;verbinden:</translation> </message> <message> <location line="+9"/> <source>Proxy &amp;IP:</source> <translation>Proxy-&amp;IP:</translation> </message> <message> <location line="+19"/> <source>IP address of the proxy (e.g. 127.0.0.1)</source> <translation>IP-Adresse des Proxies (z.B. 127.0.0.1)</translation> </message> <message> <location line="+7"/> <source>&amp;Port:</source> <translation>&amp;Port:</translation> </message> <message> <location line="+19"/> <source>Port of the proxy (e.g. 9050)</source> <translation>Port des Proxies (z.B. 9050)</translation> </message> <message> <location line="+7"/> <source>SOCKS &amp;Version:</source> <translation>SOCKS-&amp;Version:</translation> </message> <message> <location line="+13"/> <source>SOCKS version of the proxy (e.g. 5)</source> <translation>SOCKS-Version des Proxies (z.B. 5)</translation> </message> <message> <location line="+36"/> <source>&amp;Window</source> <translation>&amp;Programmfenster</translation> </message> <message> <location line="+6"/> <source>Show only a tray icon after minimizing the window.</source> <translation>Nur ein Symbol im Infobereich anzeigen, nachdem das Programmfenster minimiert wurde.</translation> </message> <message> <location line="+3"/> <source>&amp;Minimize to the tray instead of the taskbar</source> <translation>In den Infobereich anstatt in die Taskleiste &amp;minimieren</translation> </message> <message> <location line="+7"/> <source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source> <translation>Minimiert die Anwendung anstatt sie zu beenden wenn das Fenster geschlossen wird. Wenn dies aktiviert ist, müssen Sie das Programm über &quot;Beenden&quot; im Menü schließen.</translation> </message> <message> <location line="+3"/> <source>M&amp;inimize on close</source> <translation>Beim Schließen m&amp;inimieren</translation> </message> <message> <location line="+21"/> <source>&amp;Display</source> <translation>&amp;Anzeige</translation> </message> <message> <location line="+8"/> <source>User Interface &amp;language:</source> <translation>&amp;Sprache der Benutzeroberfläche:</translation> </message> <message> <location line="+13"/> <source>The user interface language can be set here. This setting will take effect after restarting Bitcoin.</source> <translation>Legt die Sprache der Benutzeroberfläche fest. Diese Einstellung wird erst nach einem Neustart von Bitcoin aktiv.</translation> </message> <message> <location line="+11"/> <source>&amp;Unit to show amounts in:</source> <translation>&amp;Einheit der Beträge:</translation> </message> <message> <location line="+13"/> <source>Choose the default subdivision unit to show in the interface and when sending coins.</source> <translation>Wählen Sie die Standarduntereinheit, die in der Benutzeroberfläche und beim Überweisen von Bitcoins angezeigt werden soll.</translation> </message> <message> <location line="+9"/> <source>Whether to show Pangubi addresses in the transaction list or not.</source> <translation>Legt fest, ob Bitcoin-Adressen in der Transaktionsliste angezeigt werden.</translation> </message> <message> <location line="+3"/> <source>&amp;Display addresses in transaction list</source> <translation>Adressen in der Transaktionsliste &amp;anzeigen</translation> </message> <message> <location line="+71"/> <source>&amp;OK</source> <translation>&amp;OK</translation> </message> <message> <location line="+7"/> <source>&amp;Cancel</source> <translation>&amp;Abbrechen</translation> </message> <message> <location line="+10"/> <source>&amp;Apply</source> <translation>&amp;Übernehmen</translation> </message> <message> <location filename="../optionsdialog.cpp" line="+54"/> <source>default</source> <translation>Standard</translation> </message> <message> <location line="+130"/> <source>Confirm options reset</source> <translation>Zurücksetzen der Konfiguration bestätigen</translation> </message> <message> <location line="+1"/> <source>Some settings may require a client restart to take effect.</source> <translation>Einige Einstellungen benötigen möglicherweise einen Clientneustart, um aktiv zu werden.</translation> </message> <message> <location line="+0"/> <source>Do you want to proceed?</source> <translation>Wollen Sie fortfahren?</translation> </message> <message> <location line="+42"/> <location line="+9"/> <source>Warning</source> <translation>Warnung</translation> </message> <message> <location line="-9"/> <location line="+9"/> <source>This setting will take effect after restarting Bitcoin.</source> <translation>Diese Einstellung wird erst nach einem Neustart von Bitcoin aktiv.</translation> </message> <message> <location line="+29"/> <source>The supplied proxy address is invalid.</source> <translation>Die eingegebene Proxyadresse ist ungültig.</translation> </message> </context> <context> <name>OverviewPage</name> <message> <location filename="../forms/overviewpage.ui" line="+14"/> <source>Form</source> <translation>Formular</translation> </message> <message> <location line="+50"/> <location line="+202"/> <source>The displayed information may be out of date. Your wallet automatically synchronizes with the Bitcoin network after a connection is established, but this process has not completed yet.</source> <translation>Die angezeigten Informationen sind möglicherweise nicht mehr aktuell. Ihre Brieftasche wird automatisch synchronisiert, nachdem eine Verbindung zum Bitcoin-Netzwerk hergestellt wurde. Dieser Prozess ist jedoch derzeit noch nicht abgeschlossen.</translation> </message> <message> <location line="-131"/> <source>Unconfirmed:</source> <translation>Unbestätigt:</translation> </message> <message> <location line="-78"/> <source>Wallet</source> <translation>Brieftasche</translation> </message> <message> <location line="+49"/> <source>Confirmed:</source> <translation>Bestätigt:</translation> </message> <message> <location line="+16"/> <source>Your current spendable balance</source> <translation>Ihr aktuell verfügbarer Kontostand</translation> </message> <message> <location line="+29"/> <source>Total of transactions that have yet to be confirmed, and do not yet count toward the spendable balance</source> <translation>Betrag aus unbestätigten Transaktionen, der noch nicht im aktuell verfügbaren Kontostand enthalten ist</translation> </message> <message> <location line="+13"/> <source>Immature:</source> <translation>Unreif:</translation> </message> <message> <location line="+13"/> <source>Mined balance that has not yet matured</source> <translation>Erarbeiteter Betrag der noch nicht gereift ist</translation> </message> <message> <location line="+13"/> <source>Total:</source> <translation>Gesamtbetrag:</translation> </message> <message> <location line="+16"/> <source>Your current total balance</source> <translation>Aktueller Gesamtbetrag aus obigen Kategorien</translation> </message> <message> <location line="+53"/> <source>&lt;b&gt;Recent transactions&lt;/b&gt;</source> <translation>&lt;b&gt;Letzte Transaktionen&lt;/b&gt;</translation> </message> <message> <location filename="../overviewpage.cpp" line="+116"/> <location line="+1"/> <source>out of sync</source> <translation>nicht synchron</translation> </message> </context> <context> <name>PaymentServer</name> <message> <location filename="../paymentserver.cpp" line="+108"/> <source>Cannot start bitcoin: click-to-pay handler</source> <translation>&quot;bitcoin: Klicken-zum-Bezahlen&quot;-Handler konnte nicht gestartet werden</translation> </message> </context> <context> <name>QObject</name> <message> <location filename="../bitcoin.cpp" line="+92"/> <location filename="../intro.cpp" line="-32"/> <source>Bitcoin</source> <translation>Bitcoin</translation> </message> <message> <location line="+1"/> <source>Error: Specified data directory &quot;%1&quot; does not exist.</source> <translation>Fehler: Angegebenes Datenverzeichnis &quot;%1&quot; existiert nicht.</translation> </message> <message> <location filename="../intro.cpp" line="+1"/> <source>Error: Specified data directory &quot;%1&quot; can not be created.</source> <translation>Fehler: Angegebenes Datenverzeichnis &quot;%1&quot; kann nicht angelegt werden.</translation> </message> </context> <context> <name>QRCodeDialog</name> <message> <location filename="../forms/qrcodedialog.ui" line="+14"/> <source>QR Code Dialog</source> <translation>QR-Code-Dialog</translation> </message> <message> <location line="+59"/> <source>Request Payment</source> <translation>Zahlung anfordern</translation> </message> <message> <location line="+56"/> <source>Amount:</source> <translation>Betrag:</translation> </message> <message> <location line="-44"/> <source>Label:</source> <translation>Bezeichnung:</translation> </message> <message> <location line="+19"/> <source>Message:</source> <translation>Nachricht:</translation> </message> <message> <location line="+71"/> <source>&amp;Save As...</source> <translation>&amp;Speichern unter...</translation> </message> <message> <location filename="../qrcodedialog.cpp" line="+64"/> <source>Error encoding URI into QR Code.</source> <translation>Fehler beim Kodieren der URI in den QR-Code.</translation> </message> <message> <location line="+40"/> <source>The entered amount is invalid, please check.</source> <translation>Der eingegebene Betrag ist ungültig, bitte überprüfen.</translation> </message> <message> <location line="+23"/> <source>Resulting URI too long, try to reduce the text for label / message.</source> <translation>Resultierende URI zu lang, bitte den Text für Bezeichnung / Nachricht kürzen.</translation> </message> <message> <location line="+25"/> <source>Save QR Code</source> <translation>QR-Code abspeichern</translation> </message> <message> <location line="+0"/> <source>PNG Images (*.png)</source> <translation>PNG-Bild (*.png)</translation> </message> </context> <context> <name>RPCConsole</name> <message> <location filename="../forms/rpcconsole.ui" line="+46"/> <source>Client name</source> <translation>Clientname</translation> </message> <message> <location line="+10"/> <location line="+23"/> <location line="+26"/> <location line="+23"/> <location line="+23"/> <location line="+36"/> <location line="+53"/> <location line="+23"/> <location line="+23"/> <location filename="../rpcconsole.cpp" line="+345"/> <source>N/A</source> <translation>n.v.</translation> </message> <message> <location line="-217"/> <source>Client version</source> <translation>Clientversion</translation> </message> <message> <location line="-45"/> <source>&amp;Information</source> <translation>&amp;Information</translation> </message> <message> <location line="+68"/> <source>Using OpenSSL version</source> <translation>Verwendete OpenSSL-Version</translation> </message> <message> <location line="+49"/> <source>Startup time</source> <translation>Startzeit</translation> </message> <message> <location line="+29"/> <source>Network</source> <translation>Netzwerk</translation> </message> <message> <location line="+7"/> <source>Number of connections</source> <translation>Anzahl Verbindungen</translation> </message> <message> <location line="+23"/> <source>On testnet</source> <translation>Im Testnetz</translation> </message> <message> <location line="+23"/> <source>Block chain</source> <translation>Blockkette</translation> </message> <message> <location line="+7"/> <source>Current number of blocks</source> <translation>Aktuelle Anzahl Blöcke</translation> </message> <message> <location line="+23"/> <source>Estimated total blocks</source> <translation>Geschätzte Gesamtzahl Blöcke</translation> </message> <message> <location line="+23"/> <source>Last block time</source> <translation>Letzte Blockzeit</translation> </message> <message> <location line="+52"/> <source>&amp;Open</source> <translation>&amp;Öffnen</translation> </message> <message> <location line="+16"/> <source>Command-line options</source> <translation>Kommandozeilenoptionen</translation> </message> <message> <location line="+7"/> <source>Show the Bitcoin-Qt help message to get a list with possible Bitcoin command-line options.</source> <translation>Zeige die Bitcoin-Qt-Hilfsnachricht, um eine Liste mit möglichen Kommandozeilenoptionen zu erhalten.</translation> </message> <message> <location line="+3"/> <source>&amp;Show</source> <translation>&amp;Anzeigen</translation> </message> <message> <location line="+24"/> <source>&amp;Console</source> <translation>&amp;Konsole</translation> </message> <message> <location line="-260"/> <source>Build date</source> <translation>Erstellungsdatum</translation> </message> <message> <location line="-104"/> <source>Bitcoin - Debug window</source> <translation>Bitcoin - Debugfenster</translation> </message> <message> <location line="+25"/> <source>Bitcoin Core</source> <translation>Bitcoin-Kern</translation> </message> <message> <location line="+279"/> <source>Debug log file</source> <translation>Debugprotokolldatei</translation> </message> <message> <location line="+7"/> <source>Open the Bitcoin debug log file from the current data directory. This can take a few seconds for large log files.</source> <translation>Öffnet die Bitcoin-Debugprotokolldatei aus dem aktuellen Datenverzeichnis. Dies kann bei großen Protokolldateien einige Sekunden dauern.</translation> </message> <message> <location line="+102"/> <source>Clear console</source> <translation>Konsole zurücksetzen</translation> </message> <message> <location filename="../rpcconsole.cpp" line="-30"/> <source>Welcome to the Bitcoin RPC console.</source> <translation>Willkommen in der Bitcoin-RPC-Konsole.</translation> </message> <message> <location line="+1"/> <source>Use up and down arrows to navigate history, and &lt;b&gt;Ctrl-L&lt;/b&gt; to clear screen.</source> <translation>Pfeiltaste hoch und runter, um die Historie durchzublättern und &lt;b&gt;Strg-L&lt;/b&gt;, um die Konsole zurückzusetzen.</translation> </message> <message> <location line="+1"/> <source>Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.</source> <translation>Bitte &lt;b&gt;help&lt;/b&gt; eingeben, um eine Übersicht verfügbarer Befehle zu erhalten.</translation> </message> </context> <context> <name>SendCoinsDialog</name> <message> <location filename="../forms/sendcoinsdialog.ui" line="+14"/> <location filename="../sendcoinsdialog.cpp" line="+128"/> <location line="+5"/> <location line="+5"/> <location line="+5"/> <location line="+6"/> <location line="+5"/> <location line="+5"/> <source>Send Coins</source> <translation>Bitcoins überweisen</translation> </message> <message> <location line="+50"/> <source>Send to multiple recipients at once</source> <translation>In einer Transaktion an mehrere Empfänger auf einmal überweisen</translation> </message> <message> <location line="+3"/> <source>Add &amp;Recipient</source> <translation>Empfänger &amp;hinzufügen</translation> </message> <message> <location line="+20"/> <source>Remove all transaction fields</source> <translation>Alle Überweisungsfelder zurücksetzen</translation> </message> <message> <location line="+3"/> <source>Clear &amp;All</source> <translation>&amp;Zurücksetzen</translation> </message> <message> <location line="+22"/> <source>Balance:</source> <translation>Kontostand:</translation> </message> <message> <location line="+10"/> <source>123.456 BTC</source> <translation>123.456 BTC</translation> </message> <message> <location line="+31"/> <source>Confirm the send action</source> <translation>Überweisung bestätigen</translation> </message> <message> <location line="+3"/> <source>S&amp;end</source> <translation>&amp;Überweisen</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="-62"/> <location line="+2"/> <source>&lt;b&gt;%1&lt;/b&gt; to %2 (%3)</source> <translation>&lt;b&gt;%1&lt;/b&gt; an %2 (%3)</translation> </message> <message> <location line="+6"/> <source>Confirm send coins</source> <translation>Überweisung bestätigen</translation> </message> <message> <location line="+1"/> <source>Are you sure you want to send %1?</source> <translation>Sind Sie sich sicher, dass Sie die folgende Überweisung ausführen möchten?&lt;br&gt;%1</translation> </message> <message> <location line="+0"/> <source> and </source> <translation> und </translation> </message> <message> <location line="+23"/> <source>The recipient address is not valid, please recheck.</source> <translation>Die Zahlungsadresse ist ungültig, bitte nochmals überprüfen.</translation> </message> <message> <location line="+5"/> <source>The amount to pay must be larger than 0.</source> <translation>Der zu zahlende Betrag muss größer als 0 sein.</translation> </message> <message> <location line="+5"/> <source>The amount exceeds your balance.</source> <translation>Der angegebene Betrag übersteigt Ihren Kontostand.</translation> </message> <message> <location line="+5"/> <source>The total exceeds your balance when the %1 transaction fee is included.</source> <translation>Der angegebene Betrag übersteigt aufgrund der Transaktionsgebühr in Höhe von %1 Ihren Kontostand.</translation> </message> <message> <location line="+6"/> <source>Duplicate address found, can only send to each address once per send operation.</source> <translation>Doppelte Adresse gefunden, pro Überweisung kann an jede Adresse nur einmalig etwas überwiesen werden.</translation> </message> <message> <location line="+5"/> <source>Error: Transaction creation failed!</source> <translation>Fehler: Transaktionserstellung fehlgeschlagen!</translation> </message> <message> <location line="+5"/> <source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation>Fehler: Die Transaktion wurde abgelehnt. Dies kann passieren, wenn einige Bitcoins aus Ihrer Brieftasche bereits ausgegeben wurden. Beispielsweise weil Sie eine Kopie Ihrer wallet.dat genutzt, die Bitcoins dort ausgegeben haben und dies daher in der derzeit aktiven Brieftasche nicht vermerkt ist.</translation> </message> </context> <context> <name>SendCoinsEntry</name> <message> <location filename="../forms/sendcoinsentry.ui" line="+14"/> <source>Form</source> <translation>Formular</translation> </message> <message> <location line="+15"/> <source>A&amp;mount:</source> <translation>&amp;Betrag:</translation> </message> <message> <location line="+13"/> <source>Pay &amp;To:</source> <translation>&amp;Empfänger:</translation> </message> <message> <location line="+34"/> <source>The address to send the payment to (e.g. P8sTN9ESAbvbTCENNg9esYe3XjTL51eSMZ)</source> <translation>Die Zahlungsadresse der Überweisung (z.B. P8sTN9ESAbvbTCENNg9esYe3XjTL51eSMZ)</translation> </message> <message> <location line="+60"/> <location filename="../sendcoinsentry.cpp" line="+26"/> <source>Enter a label for this address to add it to your address book</source> <translation>Adressbezeichnung eingeben (diese wird zusammen mit der Adresse dem Adressbuch hinzugefügt)</translation> </message> <message> <location line="-78"/> <source>&amp;Label:</source> <translation>&amp;Bezeichnung:</translation> </message> <message> <location line="+28"/> <source>Choose address from address book</source> <translation>Adresse aus Adressbuch wählen</translation> </message> <message> <location line="+10"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location line="+7"/> <source>Paste address from clipboard</source> <translation>Adresse aus der Zwischenablage einfügen</translation> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location line="+7"/> <source>Remove this recipient</source> <translation>Diesen Empfänger entfernen</translation> </message> <message> <location filename="../sendcoinsentry.cpp" line="+1"/> <source>Enter a Pangubi address (e.g. P8sTN9ESAbvbTCENNg9esYe3XjTL51eSMZ)</source> <translation>Bitcoin-Adresse eingeben (z.B. P8sTN9ESAbvbTCENNg9esYe3XjTL51eSMZ)</translation> </message> </context> <context> <name>SignVerifyMessageDialog</name> <message> <location filename="../forms/signverifymessagedialog.ui" line="+14"/> <source>Signatures - Sign / Verify a Message</source> <translation>Signaturen - eine Nachricht signieren / verifizieren</translation> </message> <message> <location line="+13"/> <source>&amp;Sign Message</source> <translation>Nachricht &amp;signieren</translation> </message> <message> <location line="+6"/> <source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source> <translation>Sie können Nachrichten mit Ihren Adressen signieren, um den Besitz dieser Adressen zu beweisen. Bitte nutzen Sie diese Funktion mit Vorsicht und nehmen Sie sich vor Phishingangriffen in Acht. Signieren Sie nur Nachrichten, mit denen Sie vollständig einverstanden sind.</translation> </message> <message> <location line="+18"/> <source>The address to sign the message with (e.g. P8sTN9ESAbvbTCENNg9esYe3XjTL51eSMZ)</source> <translation>Die Adresse mit der die Nachricht signiert wird (z.B. P8sTN9ESAbvbTCENNg9esYe3XjTL51eSMZ)</translation> </message> <message> <location line="+10"/> <location line="+213"/> <source>Choose an address from the address book</source> <translation>Eine Adresse aus dem Adressbuch wählen</translation> </message> <message> <location line="-203"/> <location line="+213"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location line="-203"/> <source>Paste address from clipboard</source> <translation>Adresse aus der Zwischenablage einfügen</translation> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location line="+12"/> <source>Enter the message you want to sign here</source> <translation>Zu signierende Nachricht hier eingeben</translation> </message> <message> <location line="+7"/> <source>Signature</source> <translation>Signatur</translation> </message> <message> <location line="+27"/> <source>Copy the current signature to the system clipboard</source> <translation>Aktuelle Signatur in die Zwischenablage kopieren</translation> </message> <message> <location line="+21"/> <source>Sign the message to prove you own this Pangubi address</source> <translation>Die Nachricht signieren, um den Besitz dieser Bitcoin-Adresse zu beweisen</translation> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation>&amp;Nachricht signieren</translation> </message> <message> <location line="+14"/> <source>Reset all sign message fields</source> <translation>Alle &quot;Nachricht signieren&quot;-Felder zurücksetzen</translation> </message> <message> <location line="+3"/> <location line="+146"/> <source>Clear &amp;All</source> <translation>&amp;Zurücksetzen</translation> </message> <message> <location line="-87"/> <source>&amp;Verify Message</source> <translation>Nachricht &amp;verifizieren</translation> </message> <message> <location line="+6"/> <source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source> <translation>Geben Sie die signierende Adresse, Nachricht (achten Sie darauf Zeilenumbrüche, Leerzeichen, Tabulatoren usw. exakt zu kopieren) und Signatur unten ein, um die Nachricht zu verifizieren. Vorsicht, interpretieren Sie nicht mehr in die Signatur, als in der signierten Nachricht selber enthalten ist, um nicht von einem Man-in-the-middle-Angriff hinters Licht geführt zu werden.</translation> </message> <message> <location line="+21"/> <source>The address the message was signed with (e.g. P8sTN9ESAbvbTCENNg9esYe3XjTL51eSMZ)</source> <translation>Die Adresse mit der die Nachricht signiert wurde (z.B. P8sTN9ESAbvbTCENNg9esYe3XjTL51eSMZ)</translation> </message> <message> <location line="+40"/> <source>Verify the message to ensure it was signed with the specified Pangubi address</source> <translation>Die Nachricht verifizieren, um sicherzustellen, dass diese mit der angegebenen Bitcoin-Adresse signiert wurde</translation> </message> <message> <location line="+3"/> <source>Verify &amp;Message</source> <translation>&amp;Nachricht verifizieren</translation> </message> <message> <location line="+14"/> <source>Reset all verify message fields</source> <translation>Alle &quot;Nachricht verifizieren&quot;-Felder zurücksetzen</translation> </message> <message> <location filename="../signverifymessagedialog.cpp" line="+27"/> <location line="+3"/> <source>Enter a Pangubi address (e.g. P8sTN9ESAbvbTCENNg9esYe3XjTL51eSMZ)</source> <translation>Bitcoin-Adresse eingeben (z.B. P8sTN9ESAbvbTCENNg9esYe3XjTL51eSMZ)</translation> </message> <message> <location line="-2"/> <source>Click &quot;Sign Message&quot; to generate signature</source> <translation>Auf &quot;Nachricht signieren&quot; klicken, um die Signatur zu erzeugen</translation> </message> <message> <location line="+3"/> <source>Enter Bitcoin signature</source> <translation>Bitcoin-Signatur eingeben</translation> </message> <message> <location line="+82"/> <location line="+81"/> <source>The entered address is invalid.</source> <translation>Die eingegebene Adresse ist ungültig.</translation> </message> <message> <location line="-81"/> <location line="+8"/> <location line="+73"/> <location line="+8"/> <source>Please check the address and try again.</source> <translation>Bitte überprüfen Sie die Adresse und versuchen Sie es erneut.</translation> </message> <message> <location line="-81"/> <location line="+81"/> <source>The entered address does not refer to a key.</source> <translation>Die eingegebene Adresse verweist nicht auf einen Schlüssel.</translation> </message> <message> <location line="-73"/> <source>Wallet unlock was cancelled.</source> <translation>Entsperrung der Brieftasche wurde abgebrochen.</translation> </message> <message> <location line="+8"/> <source>Private key for the entered address is not available.</source> <translation>Privater Schlüssel zur eingegebenen Adresse ist nicht verfügbar.</translation> </message> <message> <location line="+12"/> <source>Message signing failed.</source> <translation>Signierung der Nachricht fehlgeschlagen.</translation> </message> <message> <location line="+5"/> <source>Message signed.</source> <translation>Nachricht signiert.</translation> </message> <message> <location line="+59"/> <source>The signature could not be decoded.</source> <translation>Die Signatur konnte nicht dekodiert werden.</translation> </message> <message> <location line="+0"/> <location line="+13"/> <source>Please check the signature and try again.</source> <translation>Bitte überprüfen Sie die Signatur und versuchen Sie es erneut.</translation> </message> <message> <location line="+0"/> <source>The signature did not match the message digest.</source> <translation>Die Signatur entspricht nicht dem Message Digest.</translation> </message> <message> <location line="+7"/> <source>Message verification failed.</source> <translation>Verifikation der Nachricht fehlgeschlagen.</translation> </message> <message> <location line="+5"/> <source>Message verified.</source> <translation>Nachricht verifiziert.</translation> </message> </context> <context> <name>SplashScreen</name> <message> <location filename="../splashscreen.cpp" line="+22"/> <source>The Bitcoin developers</source> <translation>Die Bitcoinentwickler</translation> </message> <message> <location line="+1"/> <source>[testnet]</source> <translation>[Testnetz]</translation> </message> </context> <context> <name>TransactionDesc</name> <message> <location filename="../transactiondesc.cpp" line="+20"/> <source>Open until %1</source> <translation>Offen bis %1</translation> </message> <message> <location line="+6"/> <source>%1/offline</source> <translation>%1/offline</translation> </message> <message> <location line="+2"/> <source>%1/unconfirmed</source> <translation>%1/unbestätigt</translation> </message> <message> <location line="+2"/> <source>%1 confirmations</source> <translation>%1 Bestätigungen</translation> </message> <message> <location line="+18"/> <source>Status</source> <translation>Status</translation> </message> <message numerus="yes"> <location line="+7"/> <source>, broadcast through %n node(s)</source> <translation><numerusform>, über %n Knoten übertragen</numerusform><numerusform>, über %n Knoten übertragen</numerusform></translation> </message> <message> <location line="+4"/> <source>Date</source> <translation>Datum</translation> </message> <message> <location line="+7"/> <source>Source</source> <translation>Quelle</translation> </message> <message> <location line="+0"/> <source>Generated</source> <translation>Generiert</translation> </message> <message> <location line="+5"/> <location line="+17"/> <source>From</source> <translation>Von</translation> </message> <message> <location line="+1"/> <location line="+22"/> <location line="+58"/> <source>To</source> <translation>An</translation> </message> <message> <location line="-77"/> <location line="+2"/> <source>own address</source> <translation>eigene Adresse</translation> </message> <message> <location line="-2"/> <source>label</source> <translation>Bezeichnung</translation> </message> <message> <location line="+37"/> <location line="+12"/> <location line="+45"/> <location line="+17"/> <location line="+30"/> <source>Credit</source> <translation>Gutschrift</translation> </message> <message numerus="yes"> <location line="-102"/> <source>matures in %n more block(s)</source> <translation><numerusform>reift noch %n weiteren Block</numerusform><numerusform>reift noch %n weitere Blöcke</numerusform></translation> </message> <message> <location line="+2"/> <source>not accepted</source> <translation>nicht angenommen</translation> </message> <message> <location line="+44"/> <location line="+8"/> <location line="+15"/> <location line="+30"/> <source>Debit</source> <translation>Belastung</translation> </message> <message> <location line="-39"/> <source>Transaction fee</source> <translation>Transaktionsgebühr</translation> </message> <message> <location line="+16"/> <source>Net amount</source> <translation>Nettobetrag</translation> </message> <message> <location line="+6"/> <source>Message</source> <translation>Nachricht signieren</translation> </message> <message> <location line="+2"/> <source>Comment</source> <translation>Kommentar</translation> </message> <message> <location line="+2"/> <source>Transaction ID</source> <translation>Transaktions-ID</translation> </message> <message> <location line="+3"/> <source>Generated coins must mature 120 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to &quot;not accepted&quot; and it won&apos;t be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source> <translation>Generierte Bitcoins müssen 120 Blöcke lang reifen, bevor sie ausgegeben werden können. Als Sie diesen Block generierten, wurde er an das Netzwerk übertragen, um ihn der Blockkette hinzuzufügen. Falls dies fehlschlägt wird der Status in &quot;nicht angenommen&quot; geändert und der Betrag wird nicht verfügbar werden. Das kann gelegentlich passieren, wenn ein anderer Knoten einen Block fast zeitgleich generiert.</translation> </message> <message> <location line="+7"/> <source>Debug information</source> <translation>Debuginformationen</translation> </message> <message> <location line="+8"/> <source>Transaction</source> <translation>Transaktion</translation> </message> <message> <location line="+3"/> <source>Inputs</source> <translation>Eingaben</translation> </message> <message> <location line="+23"/> <source>Amount</source> <translation>Betrag</translation> </message> <message> <location line="+1"/> <source>true</source> <translation>wahr</translation> </message> <message> <location line="+0"/> <source>false</source> <translation>falsch</translation> </message> <message> <location line="-209"/> <source>, has not been successfully broadcast yet</source> <translation>, wurde noch nicht erfolgreich übertragen</translation> </message> <message numerus="yes"> <location line="-35"/> <source>Open for %n more block(s)</source> <translation><numerusform>Offen für %n weiteren Block</numerusform><numerusform>Offen für %n weitere Blöcke</numerusform></translation> </message> <message> <location line="+70"/> <source>unknown</source> <translation>unbekannt</translation> </message> </context> <context> <name>TransactionDescDialog</name> <message> <location filename="../forms/transactiondescdialog.ui" line="+14"/> <source>Transaction details</source> <translation>Transaktionsdetails</translation> </message> <message> <location line="+6"/> <source>This pane shows a detailed description of the transaction</source> <translation>Dieser Bereich zeigt eine detaillierte Beschreibung der Transaktion an</translation> </message> </context> <context> <name>TransactionTableModel</name> <message> <location filename="../transactiontablemodel.cpp" line="+225"/> <source>Date</source> <translation>Datum</translation> </message> <message> <location line="+0"/> <source>Type</source> <translation>Typ</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Adresse</translation> </message> <message> <location line="+0"/> <source>Amount</source> <translation>Betrag</translation> </message> <message numerus="yes"> <location line="+57"/> <source>Open for %n more block(s)</source> <translation><numerusform>Offen für %n weiteren Block</numerusform><numerusform>Offen für %n weitere Blöcke</numerusform></translation> </message> <message> <location line="+3"/> <source>Open until %1</source> <translation>Offen bis %1</translation> </message> <message> <location line="+3"/> <source>Offline (%1 confirmations)</source> <translation>Offline (%1 Bestätigungen)</translation> </message> <message> <location line="+3"/> <source>Unconfirmed (%1 of %2 confirmations)</source> <translation>Unbestätigt (%1 von %2 Bestätigungen)</translation> </message> <message> <location line="+3"/> <source>Confirmed (%1 confirmations)</source> <translation>Bestätigt (%1 Bestätigungen)</translation> </message> <message numerus="yes"> <location line="+8"/> <source>Mined balance will be available when it matures in %n more block(s)</source> <translation><numerusform>Erarbeiteter Betrag wird verfügbar sein, nachdem er noch %n weiteren Block reift</numerusform><numerusform>Erarbeiteter Betrag wird verfügbar sein, nachdem er noch %n weitere Blöcke reift</numerusform></translation> </message> <message> <location line="+5"/> <source>This block was not received by any other nodes and will probably not be accepted!</source> <translation>Dieser Block wurde von keinem anderen Knoten empfangen und wird wahrscheinlich nicht angenommen werden!</translation> </message> <message> <location line="+3"/> <source>Generated but not accepted</source> <translation>Generiert, jedoch nicht angenommen</translation> </message> <message> <location line="+43"/> <source>Received with</source> <translation>Empfangen über</translation> </message> <message> <location line="+2"/> <source>Received from</source> <translation>Empfangen von</translation> </message> <message> <location line="+3"/> <source>Sent to</source> <translation>Überwiesen an</translation> </message> <message> <location line="+2"/> <source>Payment to yourself</source> <translation>Eigenüberweisung</translation> </message> <message> <location line="+2"/> <source>Mined</source> <translation>Erarbeitet</translation> </message> <message> <location line="+38"/> <source>(n/a)</source> <translation>(k.A.)</translation> </message> <message> <location line="+199"/> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation>Transaktionsstatus. Fahren Sie mit der Maus über dieses Feld, um die Anzahl der Bestätigungen zu sehen.</translation> </message> <message> <location line="+2"/> <source>Date and time that the transaction was received.</source> <translation>Datum und Uhrzeit als die Transaktion empfangen wurde.</translation> </message> <message> <location line="+2"/> <source>Type of transaction.</source> <translation>Art der Transaktion</translation> </message> <message> <location line="+2"/> <source>Destination address of transaction.</source> <translation>Zieladresse der Transaktion</translation> </message> <message> <location line="+2"/> <source>Amount removed from or added to balance.</source> <translation>Der Betrag, der dem Kontostand abgezogen oder hinzugefügt wurde.</translation> </message> </context> <context> <name>TransactionView</name> <message> <location filename="../transactionview.cpp" line="+52"/> <location line="+16"/> <source>All</source> <translation>Alle</translation> </message> <message> <location line="-15"/> <source>Today</source> <translation>Heute</translation> </message> <message> <location line="+1"/> <source>This week</source> <translation>Diese Woche</translation> </message> <message> <location line="+1"/> <source>This month</source> <translation>Diesen Monat</translation> </message> <message> <location line="+1"/> <source>Last month</source> <translation>Letzten Monat</translation> </message> <message> <location line="+1"/> <source>This year</source> <translation>Dieses Jahr</translation> </message> <message> <location line="+1"/> <source>Range...</source> <translation>Zeitraum...</translation> </message> <message> <location line="+11"/> <source>Received with</source> <translation>Empfangen über</translation> </message> <message> <location line="+2"/> <source>Sent to</source> <translation>Überwiesen an</translation> </message> <message> <location line="+2"/> <source>To yourself</source> <translation>Eigenüberweisung</translation> </message> <message> <location line="+1"/> <source>Mined</source> <translation>Erarbeitet</translation> </message> <message> <location line="+1"/> <source>Other</source> <translation>Andere</translation> </message> <message> <location line="+7"/> <source>Enter address or label to search</source> <translation>Zu suchende Adresse oder Bezeichnung eingeben</translation> </message> <message> <location line="+7"/> <source>Min amount</source> <translation>Minimaler Betrag</translation> </message> <message> <location line="+34"/> <source>Copy address</source> <translation>Adresse kopieren</translation> </message> <message> <location line="+1"/> <source>Copy label</source> <translation>Bezeichnung kopieren</translation> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation>Betrag kopieren</translation> </message> <message> <location line="+1"/> <source>Copy transaction ID</source> <translation>Transaktions-ID kopieren</translation> </message> <message> <location line="+1"/> <source>Edit label</source> <translation>Bezeichnung bearbeiten</translation> </message> <message> <location line="+1"/> <source>Show transaction details</source> <translation>Transaktionsdetails anzeigen</translation> </message> <message> <location line="+143"/> <source>Export Transaction Data</source> <translation>Transaktionen exportieren</translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>Kommagetrennte-Datei (*.csv)</translation> </message> <message> <location line="+8"/> <source>Confirmed</source> <translation>Bestätigt</translation> </message> <message> <location line="+1"/> <source>Date</source> <translation>Datum</translation> </message> <message> <location line="+1"/> <source>Type</source> <translation>Typ</translation> </message> <message> <location line="+1"/> <source>Label</source> <translation>Bezeichnung</translation> </message> <message> <location line="+1"/> <source>Address</source> <translation>Adresse</translation> </message> <message> <location line="+1"/> <source>Amount</source> <translation>Betrag</translation> </message> <message> <location line="+1"/> <source>ID</source> <translation>ID</translation> </message> <message> <location line="+4"/> <source>Error exporting</source> <translation>Fehler beim Exportieren</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>Konnte nicht in Datei %1 schreiben.</translation> </message> <message> <location line="+100"/> <source>Range:</source> <translation>Zeitraum:</translation> </message> <message> <location line="+8"/> <source>to</source> <translation>bis</translation> </message> </context> <context> <name>WalletModel</name> <message> <location filename="../walletmodel.cpp" line="+193"/> <source>Send Coins</source> <translation>Bitcoins überweisen</translation> </message> </context> <context> <name>WalletView</name> <message> <location filename="../walletview.cpp" line="+46"/> <source>&amp;Export</source> <translation>E&amp;xportieren</translation> </message> <message> <location line="+1"/> <source>Export the data in the current tab to a file</source> <translation>Daten der aktuellen Ansicht in eine Datei exportieren</translation> </message> <message> <location line="+197"/> <source>Backup Wallet</source> <translation>Brieftasche sichern</translation> </message> <message> <location line="+0"/> <source>Wallet Data (*.dat)</source> <translation>Brieftaschendaten (*.dat)</translation> </message> <message> <location line="+3"/> <source>Backup Failed</source> <translation>Sicherung fehlgeschlagen</translation> </message> <message> <location line="+0"/> <source>There was an error trying to save the wallet data to the new location.</source> <translation>Beim Speichern der Brieftaschendaten an die neue Position ist ein Fehler aufgetreten.</translation> </message> <message> <location line="+4"/> <source>Backup Successful</source> <translation>Sicherung erfolgreich</translation> </message> <message> <location line="+0"/> <source>The wallet data was successfully saved to the new location.</source> <translation>Speichern der Brieftaschendaten an die neue Position war erfolgreich.</translation> </message> </context> <context> <name>bitcoin-core</name> <message> <location filename="../bitcoinstrings.cpp" line="+98"/> <source>Bitcoin version</source> <translation>Bitcoin-Version</translation> </message> <message> <location line="+104"/> <source>Usage:</source> <translation>Benutzung:</translation> </message> <message> <location line="-30"/> <source>Send command to -server or bitcoind</source> <translation>Befehl an -server oder bitcoind senden</translation> </message> <message> <location line="-23"/> <source>List commands</source> <translation>Befehle auflisten</translation> </message> <message> <location line="-13"/> <source>Get help for a command</source> <translation>Hilfe zu einem Befehl erhalten</translation> </message> <message> <location line="+25"/> <source>Options:</source> <translation>Optionen:</translation> </message> <message> <location line="+24"/> <source>Specify configuration file (default: pangubi.conf)</source> <translation>Konfigurationsdatei festlegen (Standard: pangubi.conf)</translation> </message> <message> <location line="+3"/> <source>Specify pid file (default: pangubid.pid)</source> <translation>PID-Datei festlegen (Standard: pangubid.pid)</translation> </message> <message> <location line="-1"/> <source>Specify data directory</source> <translation>Datenverzeichnis festlegen</translation> </message> <message> <location line="-9"/> <source>Set database cache size in megabytes (default: 25)</source> <translation>Größe des Datenbankcaches in MB festlegen (Standard: 25)</translation> </message> <message> <location line="-28"/> <source>Listen for connections on &lt;port&gt; (default: 9333 or testnet: 19333)</source> <translation>&lt;port&gt; nach Verbindungen abhören (Standard: 9333 oder Testnetz: 19333)</translation> </message> <message> <location line="+5"/> <source>Maintain at most &lt;n&gt; connections to peers (default: 125)</source> <translation>Maximal &lt;n&gt; Verbindungen zu Gegenstellen aufrechterhalten (Standard: 125)</translation> </message> <message> <location line="-49"/> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation>Mit dem Knoten verbinden um Adressen von Gegenstellen abzufragen, danach trennen</translation> </message> <message> <location line="+84"/> <source>Specify your own public address</source> <translation>Die eigene öffentliche Adresse angeben</translation> </message> <message> <location line="+3"/> <source>Threshold for disconnecting misbehaving peers (default: 100)</source> <translation>Schwellenwert, um Verbindungen zu sich nicht konform verhaltenden Gegenstellen zu beenden (Standard: 100)</translation> </message> <message> <location line="-136"/> <source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source> <translation>Anzahl Sekunden, während denen sich nicht konform verhaltenden Gegenstellen die Wiederverbindung verweigert wird (Standard: 86400)</translation> </message> <message> <location line="-33"/> <source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source> <translation>Beim Einrichten des abzuhörenden RPC-Ports %u für IPv4 ist ein Fehler aufgetreten: %s</translation> </message> <message> <location line="+31"/> <source>Listen for JSON-RPC connections on &lt;port&gt; (default: 9332 or testnet: 19332)</source> <translation>&lt;port&gt; nach JSON-RPC-Verbindungen abhören (Standard: 9332 oder Testnetz: 19332)</translation> </message> <message> <location line="+37"/> <source>Accept command line and JSON-RPC commands</source> <translation>Kommandozeilenbefehle und JSON-RPC-Befehle annehmen</translation> </message> <message> <location line="+77"/> <source>Run in the background as a daemon and accept commands</source> <translation>Als Hintergrunddienst starten und Befehle annehmen</translation> </message> <message> <location line="+38"/> <source>Use the test network</source> <translation>Das Testnetz verwenden</translation> </message> <message> <location line="-114"/> <source>Accept connections from outside (default: 1 if no -proxy or -connect)</source> <translation>Eingehende Verbindungen annehmen (Standard: 1, wenn nicht -proxy oder -connect)</translation> </message> <message> <location line="-84"/> <source>%s, you must set a rpcpassword in the configuration file: %s It is recommended you use the following random password: rpcuser=pangubirpc rpcpassword=%s (you do not need to remember this password) The username and password MUST NOT be the same. If the file does not exist, create it with owner-readable-only file permissions. It is also recommended to set alertnotify so you are notified of problems; for example: alertnotify=echo %%s | mail -s &quot;Bitcoin Alert&quot; [email protected] </source> <translation>%s, Sie müssen den Wert rpcpasswort in dieser Konfigurationsdatei angeben: %s Es wird empfohlen das folgende Zufallspasswort zu verwenden: rpcuser=pangubirpc rpcpassword=%s (Sie müssen sich dieses Passwort nicht merken!) Der Benutzername und das Passwort dürfen NICHT identisch sein. Falls die Konfigurationsdatei nicht existiert, erzeugen Sie diese bitte mit Leserechten nur für den Dateibesitzer. Es wird ebenfalls empfohlen alertnotify anzugeben, um im Problemfall benachrichtig zu werden; zum Beispiel: alertnotify=echo %%s | mail -s \&quot;Bitcoin Alert\&quot; [email protected] </translation> </message> <message> <location line="+17"/> <source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source> <translation>Beim Einrichten des abzuhörenden RPC-Ports %u für IPv6 ist ein Fehler aufgetreten, es wird auf IPv4 zurückgegriffen: %s</translation> </message> <message> <location line="+3"/> <source>Bind to given address and always listen on it. Use [host]:port notation for IPv6</source> <translation>An die angegebene Adresse binden und immer abhören. Für IPv6 [Host]:Port-Schreibweise verwenden</translation> </message> <message> <location line="+3"/> <source>Cannot obtain a lock on data directory %s. Bitcoin is probably already running.</source> <translation>Datenverzeichnis %s kann nicht gesperrt werden. Evtl. wurde Bitcoin bereits gestartet.</translation> </message> <message> <location line="+3"/> <source>Enter regression test mode, which uses a special chain in which blocks can be solved instantly. This is intended for regression testing tools and app development.</source> <translation>Regressionstest-Modus aktivieren, welcher eine spezielle Kette nutzt, in der Blöcke sofort gelöst werden. Dies ist für Regressionstest-Tools und Anwendungsentwicklung gedacht.</translation> </message> <message> <location line="+4"/> <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>Fehler: Die Transaktion wurde abgelehnt! Dies kann passieren, wenn einige Bitcoins aus Ihrer Brieftasche bereits ausgegeben wurden. Beispielsweise weil Sie eine Kopie Ihrer wallet.dat genutzt, die Bitcoins dort ausgegeben haben und dies daher in der derzeit aktiven Brieftasche nicht vermerkt ist.</translation> </message> <message> <location line="+4"/> <source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds!</source> <translation>Fehler: Diese Transaktion benötigt aufgrund ihres Betrags, ihrer Komplexität oder der Nutzung kürzlich erhaltener Zahlungen eine Transaktionsgebühr in Höhe von mindestens %s!</translation> </message> <message> <location line="+3"/> <source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source> <translation>Kommando ausführen wenn ein relevanter Alarm empfangen wird (%s im Kommando wird durch die Nachricht ersetzt)</translation> </message> <message> <location line="+3"/> <source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source> <translation>Kommando ausführen wenn sich eine Transaktion der Briefrasche verändert (%s im Kommando wird durch die TxID ersetzt)</translation> </message> <message> <location line="+11"/> <source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source> <translation>Maximale Größe von &quot;high-priority/low-fee&quot;-Transaktionen in Byte festlegen (Standard: 27000)</translation> </message> <message> <location line="+6"/> <source>This is a pre-release test build - use at your own risk - do not use for mining or merchant applications</source> <translation>Dies ist eine Vorab-Testversion - Verwendung auf eigene Gefahr - nicht für Mining- oder Handelsanwendungen nutzen!</translation> </message> <message> <location line="+5"/> <source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source> <translation>Warnung: -paytxfee ist auf einen sehr hohen Wert festgelegt! Dies ist die Gebühr die beim Senden einer Transaktion fällig wird.</translation> </message> <message> <location line="+3"/> <source>Warning: Displayed transactions may not be correct! You may need to upgrade, or other nodes may need to upgrade.</source> <translation>Warnung: Angezeigte Transaktionen sind evtl. nicht korrekt! Sie oder die anderen Knoten müssen unter Umständen (den Client) aktualisieren.</translation> </message> <message> <location line="+3"/> <source>Warning: Please check that your computer&apos;s date and time are correct! If your clock is wrong Bitcoin will not work properly.</source> <translation>Warnung: Bitte korrigieren Sie die Datums- und Uhrzeiteinstellungen Ihres Computers, da Bitcoin ansonsten nicht ordnungsgemäß funktionieren wird!</translation> </message> <message> <location line="+3"/> <source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source> <translation>Warnung: Lesen von wallet.dat fehlgeschlagen! Alle Schlüssel wurden korrekt gelesen, Transaktionsdaten bzw. Adressbucheinträge fehlen aber möglicherweise oder sind inkorrekt.</translation> </message> <message> <location line="+3"/> <source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source> <translation>Warnung: wallet.dat beschädigt, Rettung erfolgreich! Original wallet.dat wurde als wallet.{Zeitstempel}.dat in %s gespeichert. Falls Ihr Kontostand oder Transaktionen nicht korrekt sind, sollten Sie von einer Datensicherung wiederherstellen.</translation> </message> <message> <location line="+14"/> <source>Attempt to recover private keys from a corrupt wallet.dat</source> <translation>Versucht private Schlüssel aus einer beschädigten wallet.dat wiederherzustellen</translation> </message> <message> <location line="+2"/> <source>Block creation options:</source> <translation>Blockerzeugungsoptionen:</translation> </message> <message> <location line="+5"/> <source>Connect only to the specified node(s)</source> <translation>Nur mit dem/den angegebenen Knoten verbinden</translation> </message> <message> <location line="+3"/> <source>Corrupted block database detected</source> <translation>Beschädigte Blockdatenbank erkannt</translation> </message> <message> <location line="+1"/> <source>Discover own IP address (default: 1 when listening and no -externalip)</source> <translation>Eigene IP-Adresse erkennen (Standard: 1, wenn abgehört wird und nicht -externalip)</translation> </message> <message> <location line="+1"/> <source>Do you want to rebuild the block database now?</source> <translation>Möchten Sie die Blockdatenbank nun neu aufbauen?</translation> </message> <message> <location line="+2"/> <source>Error initializing block database</source> <translation>Fehler beim Initialisieren der Blockdatenbank</translation> </message> <message> <location line="+1"/> <source>Error initializing wallet database environment %s!</source> <translation>Fehler beim Initialisieren der Brieftaschen-Datenbankumgebung %s!</translation> </message> <message> <location line="+1"/> <source>Error loading block database</source> <translation>Fehler beim Laden der Blockdatenbank</translation> </message> <message> <location line="+4"/> <source>Error opening block database</source> <translation>Fehler beim Öffnen der Blockdatenbank</translation> </message> <message> <location line="+2"/> <source>Error: Disk space is low!</source> <translation>Fehler: Zu wenig freier Laufwerksspeicherplatz!</translation> </message> <message> <location line="+1"/> <source>Error: Wallet locked, unable to create transaction!</source> <translation>Fehler: Brieftasche gesperrt, Transaktion kann nicht erstellt werden!</translation> </message> <message> <location line="+1"/> <source>Error: system error: </source> <translation>Fehler: Systemfehler: </translation> </message> <message> <location line="+1"/> <source>Failed to listen on any port. Use -listen=0 if you want this.</source> <translation>Fehler, es konnte kein Port abgehört werden. Wenn dies so gewünscht wird -listen=0 verwenden.</translation> </message> <message> <location line="+1"/> <source>Failed to read block info</source> <translation>Lesen der Blockinformationen fehlgeschlagen</translation> </message> <message> <location line="+1"/> <source>Failed to read block</source> <translation>Lesen des Blocks fehlgeschlagen</translation> </message> <message> <location line="+1"/> <source>Failed to sync block index</source> <translation>Synchronisation des Blockindex fehlgeschlagen</translation> </message> <message> <location line="+1"/> <source>Failed to write block index</source> <translation>Schreiben des Blockindex fehlgeschlagen</translation> </message> <message> <location line="+1"/> <source>Failed to write block info</source> <translation>Schreiben der Blockinformationen fehlgeschlagen</translation> </message> <message> <location line="+1"/> <source>Failed to write block</source> <translation>Schreiben des Blocks fehlgeschlagen</translation> </message> <message> <location line="+1"/> <source>Failed to write file info</source> <translation>Schreiben der Dateiinformationen fehlgeschlagen</translation> </message> <message> <location line="+1"/> <source>Failed to write to coin database</source> <translation>Schreiben in die Münzendatenbank fehlgeschlagen</translation> </message> <message> <location line="+1"/> <source>Failed to write transaction index</source> <translation>Schreiben des Transaktionsindex fehlgeschlagen</translation> </message> <message> <location line="+1"/> <source>Failed to write undo data</source> <translation>Schreiben der Rücksetzdaten fehlgeschlagen</translation> </message> <message> <location line="+2"/> <source>Find peers using DNS lookup (default: 1 unless -connect)</source> <translation>Gegenstellen via DNS-Namensauflösung finden (Standard: 1, außer bei -connect)</translation> </message> <message> <location line="+1"/> <source>Generate coins (default: 0)</source> <translation>Bitcoins generieren (Standard: 0)</translation> </message> <message> <location line="+2"/> <source>How many blocks to check at startup (default: 288, 0 = all)</source> <translation>Wieviele Blöcke sollen beim Starten geprüft werden (Standard: 288, 0 = alle)</translation> </message> <message> <location line="+1"/> <source>How thorough the block verification is (0-4, default: 3)</source> <translation>Wie gründlich soll die Blockprüfung sein (0-4, Standard: 3)</translation> </message> <message> <location line="+2"/> <source>Incorrect or no genesis block found. Wrong datadir for network?</source> <translation>Fehlerhafter oder kein Genesis-Block gefunden. Falsches Datenverzeichnis für das Netzwerk?</translation> </message> <message> <location line="+18"/> <source>Not enough file descriptors available.</source> <translation>Nicht genügend File-Deskriptoren verfügbar.</translation> </message> <message> <location line="+8"/> <source>Rebuild block chain index from current blk000??.dat files</source> <translation>Blockkettenindex aus aktuellen Dateien blk000??.dat wiederaufbauen</translation> </message> <message> <location line="+16"/> <source>Set the number of threads to service RPC calls (default: 4)</source> <translation>Maximale Anzahl an Threads zur Verarbeitung von RPC-Anfragen festlegen (Standard: 4)</translation> </message> <message> <location line="+7"/> <source>Specify wallet file (within data directory)</source> <translation>Brieftaschendatei festlegen (innerhalb des Datenverzeichnisses)</translation> </message> <message> <location line="+20"/> <source>Verifying blocks...</source> <translation>Verifiziere Blöcke...</translation> </message> <message> <location line="+1"/> <source>Verifying wallet...</source> <translation>Verifiziere Brieftasche...</translation> </message> <message> <location line="+1"/> <source>Wallet %s resides outside data directory %s</source> <translation>Brieftasche %s liegt außerhalb des Datenverzechnisses %s</translation> </message> <message> <location line="+4"/> <source>You need to rebuild the database using -reindex to change -txindex</source> <translation>Sie müssen die Datenbank mit Hilfe von -reindex neu aufbauen, um -txindex zu verändern</translation> </message> <message> <location line="-76"/> <source>Imports blocks from external blk000??.dat file</source> <translation>Blöcke aus externer Datei blk000??.dat importieren</translation> </message> <message> <location line="-76"/> <source>Set the number of script verification threads (up to 16, 0 = auto, &lt;0 = leave that many cores free, default: 0)</source> <translation>Maximale Anzahl an Skript-Verifizierungs-Threads festlegen (bis zu 16, 0 = automatisch, &lt;0 = soviele Kerne frei lassen, Standard: 0)</translation> </message> <message> <location line="+78"/> <source>Information</source> <translation>Hinweis</translation> </message> <message> <location line="+3"/> <source>Invalid -tor address: &apos;%s&apos;</source> <translation>Ungültige Adresse in -tor: &apos;%s&apos;</translation> </message> <message> <location line="+1"/> <source>Invalid amount for -minrelaytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation>Ungültiger Betrag für -minrelaytxfee=&lt;amount&gt;: &apos;%s&apos;</translation> </message> <message> <location line="+1"/> <source>Invalid amount for -mintxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation>Ungültiger Betrag für -mintxfee=&lt;amount&gt;: &apos;%s&apos;</translation> </message> <message> <location line="+8"/> <source>Maintain a full transaction index (default: 0)</source> <translation>Einen vollständigen Transaktionsindex pflegen (Standard: 0)</translation> </message> <message> <location line="+2"/> <source>Maximum per-connection receive buffer, &lt;n&gt;*1000 bytes (default: 5000)</source> <translation>Maximale Größe, &lt;n&gt; * 1000 Byte, des Empfangspuffers pro Verbindung (Standard: 5000)</translation> </message> <message> <location line="+1"/> <source>Maximum per-connection send buffer, &lt;n&gt;*1000 bytes (default: 1000)</source> <translation>Maximale Größe, &lt;n&gt; * 1000 Byte, des Sendepuffers pro Verbindung (Standard: 1000)</translation> </message> <message> <location line="+2"/> <source>Only accept block chain matching built-in checkpoints (default: 1)</source> <translation>Blockkette nur akzeptieren, wenn sie mit den integrierten Prüfpunkten übereinstimmt (Standard: 1)</translation> </message> <message> <location line="+1"/> <source>Only connect to nodes in network &lt;net&gt; (IPv4, IPv6 or Tor)</source> <translation>Verbinde nur zu Knoten des Netztyps &lt;net&gt; (IPv4, IPv6 oder Tor)</translation> </message> <message> <location line="+2"/> <source>Output extra debugging information. Implies all other -debug* options</source> <translation>Ausgabe zusätzlicher Debugginginformationen. Beinhaltet alle anderen &quot;-debug*&quot;-Parameter</translation> </message> <message> <location line="+1"/> <source>Output extra network debugging information</source> <translation>Ausgabe zusätzlicher Netzwerk-Debugginginformationen</translation> </message> <message> <location line="+2"/> <source>Prepend debug output with timestamp</source> <translation>Der Debugausgabe einen Zeitstempel voranstellen</translation> </message> <message> <location line="+5"/> <source>SSL options: (see the Bitcoin Wiki for SSL setup instructions)</source> <translation>SSL-Optionen: (siehe Bitcoin-Wiki für SSL-Installationsanweisungen)</translation> </message> <message> <location line="+1"/> <source>Select the version of socks proxy to use (4-5, default: 5)</source> <translation>SOCKS-Version des Proxies festlegen (4-5, Standard: 5)</translation> </message> <message> <location line="+3"/> <source>Send trace/debug info to console instead of debug.log file</source> <translation>Rückverfolgungs- und Debuginformationen an die Konsole senden anstatt sie in die Datei debug.log zu schreiben</translation> </message> <message> <location line="+1"/> <source>Send trace/debug info to debugger</source> <translation>Rückverfolgungs- und Debuginformationen an den Debugger senden</translation> </message> <message> <location line="+5"/> <source>Set maximum block size in bytes (default: 250000)</source> <translation>Maximale Blockgröße in Byte festlegen (Standard: 250000)</translation> </message> <message> <location line="+1"/> <source>Set minimum block size in bytes (default: 0)</source> <translation>Minimale Blockgröße in Byte festlegen (Standard: 0)</translation> </message> <message> <location line="+2"/> <source>Shrink debug.log file on client startup (default: 1 when no -debug)</source> <translation>Verkleinere Datei debug.log beim Starten des Clients (Standard: 1, wenn kein -debug)</translation> </message> <message> <location line="+1"/> <source>Signing transaction failed</source> <translation>Signierung der Transaktion fehlgeschlagen</translation> </message> <message> <location line="+2"/> <source>Specify connection timeout in milliseconds (default: 5000)</source> <translation>Verbindungstimeout in Millisekunden festlegen (Standard: 5000)</translation> </message> <message> <location line="+5"/> <source>System error: </source> <translation>Systemfehler: </translation> </message> <message> <location line="+4"/> <source>Transaction amount too small</source> <translation>Transaktionsbetrag zu gering</translation> </message> <message> <location line="+1"/> <source>Transaction amounts must be positive</source> <translation>Transaktionsbeträge müssen positiv sein</translation> </message> <message> <location line="+1"/> <source>Transaction too large</source> <translation>Transaktion zu groß</translation> </message> <message> <location line="+7"/> <source>Use UPnP to map the listening port (default: 0)</source> <translation>UPnP verwenden, um die Portweiterleitung einzurichten (Standard: 0)</translation> </message> <message> <location line="+1"/> <source>Use UPnP to map the listening port (default: 1 when listening)</source> <translation>UPnP verwenden, um die Portweiterleitung einzurichten (Standard: 1, wenn abgehört wird)</translation> </message> <message> <location line="+1"/> <source>Use proxy to reach tor hidden services (default: same as -proxy)</source> <translation>Proxy verwenden, um versteckte Tor-Dienste zu erreichen (Standard: identisch mit -proxy)</translation> </message> <message> <location line="+2"/> <source>Username for JSON-RPC connections</source> <translation>Benutzername für JSON-RPC-Verbindungen</translation> </message> <message> <location line="+5"/> <source>Warning</source> <translation>Warnung</translation> </message> <message> <location line="+1"/> <source>Warning: This version is obsolete, upgrade required!</source> <translation>Warnung: Diese Version is veraltet, Aktualisierung erforderlich!</translation> </message> <message> <location line="+2"/> <source>wallet.dat corrupt, salvage failed</source> <translation>wallet.dat beschädigt, Rettung fehlgeschlagen</translation> </message> <message> <location line="-52"/> <source>Password for JSON-RPC connections</source> <translation>Passwort für JSON-RPC-Verbindungen</translation> </message> <message> <location line="-68"/> <source>Allow JSON-RPC connections from specified IP address</source> <translation>JSON-RPC-Verbindungen von der angegebenen IP-Adresse erlauben</translation> </message> <message> <location line="+77"/> <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)</source> <translation>Sende Befehle an Knoten &lt;ip&gt; (Standard: 127.0.0.1)</translation> </message> <message> <location line="-121"/> <source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source> <translation>Kommando ausführen wenn der beste Block wechselt (%s im Kommando wird durch den Hash des Blocks ersetzt)</translation> </message> <message> <location line="+149"/> <source>Upgrade wallet to latest format</source> <translation>Brieftasche auf das neueste Format aktualisieren</translation> </message> <message> <location line="-22"/> <source>Set key pool size to &lt;n&gt; (default: 100)</source> <translation>Größe des Schlüsselpools festlegen auf &lt;n&gt; (Standard: 100)</translation> </message> <message> <location line="-12"/> <source>Rescan the block chain for missing wallet transactions</source> <translation>Blockkette erneut nach fehlenden Transaktionen der Brieftasche durchsuchen</translation> </message> <message> <location line="+36"/> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation>OpenSSL (https) für JSON-RPC-Verbindungen verwenden</translation> </message> <message> <location line="-27"/> <source>Server certificate file (default: server.cert)</source> <translation>Serverzertifikat (Standard: server.cert)</translation> </message> <message> <location line="+1"/> <source>Server private key (default: server.pem)</source> <translation>Privater Serverschlüssel (Standard: server.pem)</translation> </message> <message> <location line="-156"/> <source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source> <translation>Akzeptierte Chiffren (Standard: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</translation> </message> <message> <location line="+171"/> <source>This help message</source> <translation>Dieser Hilfetext</translation> </message> <message> <location line="+6"/> <source>Unable to bind to %s on this computer (bind returned error %d, %s)</source> <translation>Kann auf diesem Computer nicht an %s binden (von bind zurückgegebener Fehler %d, %s)</translation> </message> <message> <location line="-93"/> <source>Connect through socks proxy</source> <translation>Verbindung über SOCKS-Proxy herstellen</translation> </message> <message> <location line="-10"/> <source>Allow DNS lookups for -addnode, -seednode and -connect</source> <translation>Erlaube DNS-Namensauflösung für -addnode, -seednode und -connect</translation> </message> <message> <location line="+56"/> <source>Loading addresses...</source> <translation>Lade Adressen...</translation> </message> <message> <location line="-36"/> <source>Error loading wallet.dat: Wallet corrupted</source> <translation>Fehler beim Laden von wallet.dat: Brieftasche beschädigt</translation> </message> <message> <location line="+1"/> <source>Error loading wallet.dat: Wallet requires newer version of Bitcoin</source> <translation>Fehler beim Laden von wallet.dat: Brieftasche benötigt neuere Version von Bitcoin</translation> </message> <message> <location line="+96"/> <source>Wallet needed to be rewritten: restart Bitcoin to complete</source> <translation>Brieftasche musste neu geschrieben werden: Starten Sie Bitcoin zur Fertigstellung neu</translation> </message> <message> <location line="-98"/> <source>Error loading wallet.dat</source> <translation>Fehler beim Laden von wallet.dat (Brieftasche)</translation> </message> <message> <location line="+29"/> <source>Invalid -proxy address: &apos;%s&apos;</source> <translation>Ungültige Adresse in -proxy: &apos;%s&apos;</translation> </message> <message> <location line="+57"/> <source>Unknown network specified in -onlynet: &apos;%s&apos;</source> <translation>Unbekannter Netztyp in -onlynet angegeben: &apos;%s&apos;</translation> </message> <message> <location line="-1"/> <source>Unknown -socks proxy version requested: %i</source> <translation>Unbekannte Proxyversion in -socks angefordert: %i</translation> </message> <message> <location line="-98"/> <source>Cannot resolve -bind address: &apos;%s&apos;</source> <translation>Kann Adresse in -bind nicht auflösen: &apos;%s&apos;</translation> </message> <message> <location line="+1"/> <source>Cannot resolve -externalip address: &apos;%s&apos;</source> <translation>Kann Adresse in -externalip nicht auflösen: &apos;%s&apos;</translation> </message> <message> <location line="+45"/> <source>Invalid amount for -paytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation>Ungültiger Betrag für -paytxfee=&lt;amount&gt;: &apos;%s&apos;</translation> </message> <message> <location line="+1"/> <source>Invalid amount</source> <translation>Ungültiger Betrag</translation> </message> <message> <location line="-6"/> <source>Insufficient funds</source> <translation>Unzureichender Kontostand</translation> </message> <message> <location line="+10"/> <source>Loading block index...</source> <translation>Lade Blockindex...</translation> </message> <message> <location line="-58"/> <source>Add a node to connect to and attempt to keep the connection open</source> <translation>Mit dem Knoten verbinden und versuchen die Verbindung aufrecht zu halten</translation> </message> <message> <location line="-25"/> <source>Unable to bind to %s on this computer. Bitcoin is probably already running.</source> <translation>Kann auf diesem Computer nicht an %s binden. Evtl. wurde Bitcoin bereits gestartet.</translation> </message> <message> <location line="+64"/> <source>Fee per KB to add to transactions you send</source> <translation>Gebühr pro KB, die gesendeten Transaktionen hinzugefügt wird</translation> </message> <message> <location line="+20"/> <source>Loading wallet...</source> <translation>Lade Brieftasche...</translation> </message> <message> <location line="-53"/> <source>Cannot downgrade wallet</source> <translation>Brieftasche kann nicht auf eine ältere Version herabgestuft werden</translation> </message> <message> <location line="+3"/> <source>Cannot write default address</source> <translation>Standardadresse kann nicht geschrieben werden</translation> </message> <message> <location line="+65"/> <source>Rescanning...</source> <translation>Durchsuche erneut...</translation> </message> <message> <location line="-58"/> <source>Done loading</source> <translation>Laden abgeschlossen</translation> </message> <message> <location line="+84"/> <source>To use the %s option</source> <translation>Zur Nutzung der %s Option</translation> </message> <message> <location line="-76"/> <source>Error</source> <translation>Fehler</translation> </message> <message> <location line="-31"/> <source>You must set rpcpassword=&lt;password&gt; in the configuration file: %s If the file does not exist, create it with owner-readable-only file permissions.</source> <translation>Sie müssen den Wert rpcpassword=&lt;passwort&gt; in der Konfigurationsdatei angeben: %s Falls die Konfigurationsdatei nicht existiert, erzeugen Sie diese bitte mit Leserechten nur für den Dateibesitzer.</translation> </message> </context> </TS>
{ "content_hash": "f8a59aac3e48e50ec4cfa6bd7e9c4441", "timestamp": "", "source": "github", "line_count": 3072, "max_line_length": 448, "avg_line_length": 41.007486979166664, "alnum_prop": 0.6436277039095059, "repo_name": "pangubi/pangubi", "id": "662467c02832d18d5e5aea5874c786d940410aa4", "size": "126330", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/qt/locale/bitcoin_de.ts", "mode": "33188", "license": "mit", "language": [ { "name": "Assembly", "bytes": "59007" }, { "name": "C", "bytes": "209429" }, { "name": "C++", "bytes": "2608563" }, { "name": "CSS", "bytes": "1127" }, { "name": "Objective-C", "bytes": "53711" }, { "name": "Prolog", "bytes": "15366" }, { "name": "Python", "bytes": "40457" }, { "name": "Shell", "bytes": "7552" }, { "name": "TypeScript", "bytes": "6421576" } ], "symlink_target": "" }
// // TransformableNode.cpp // ofApp // // Created by 横田達也 on 2016/12/15. // // #include "TransformableNode.h" //-------------------------------------------------------------- TransformableNode::TransformableNode() { cout << "[TransformableNode]TransformableNode()" << endl; _enabled = false; _mouseID = 0; _mouse.x = 0.0; _mouse.y = 0.0; _lastMouse.x = 0.0; _lastMouse.y = 0.0; _isInArea = false; _rotationX = 0.0; _rotationY = 0.0; _rotationZ = 0.0; ofAddListener(ofEvents().mouseDragged, this, &TransformableNode::_mouseDragEventHandler, OF_EVENT_ORDER_APP); ofAddListener(ofEvents().mousePressed, this, &TransformableNode::_mouseDownEventHandler, OF_EVENT_ORDER_APP); ofAddListener(ofEvents().mouseReleased, this, &TransformableNode::_mouseUpEventHandler, OF_EVENT_ORDER_APP); ofAddListener(ofEvents().mouseScrolled, this, &TransformableNode::_mouseScrolledEventHandler, OF_EVENT_ORDER_APP); } //-------------------------------------------------------------- TransformableNode::~TransformableNode() { cout << "[TransformableNode]~TransformableNode()" << endl; _enabled = false; _mouseID = 0; _mouse.x = 0.0; _mouse.y = 0.0; _lastMouse.x = 0.0; _lastMouse.y = 0.0; _isInArea = false; _rotationX = 0.0; _rotationY = 0.0; _rotationZ = 0.0; ofRemoveListener(ofEvents().mouseDragged, this, &TransformableNode::_mouseDragEventHandler, OF_EVENT_ORDER_APP); ofRemoveListener(ofEvents().mousePressed, this, &TransformableNode::_mouseDownEventHandler, OF_EVENT_ORDER_APP); ofRemoveListener(ofEvents().mouseReleased, this, &TransformableNode::_mouseUpEventHandler, OF_EVENT_ORDER_APP); ofRemoveListener(ofEvents().mouseScrolled, this, &TransformableNode::_mouseScrolledEventHandler, OF_EVENT_ORDER_APP); } //-------------------------------------------------------------- // SETUP / UPDATE / DRAW //-------------------------------------------------------------- //-------------------------------------------------------------- void TransformableNode::begin() { // ofPushMatrix(); _scaleNode.transformGL(); _rotationNode.transformGL(); _positionNode.transformGL(); } //-------------------------------------------------------------- void TransformableNode::end() { _positionNode.restoreTransformGL(); _rotationNode.restoreTransformGL(); _scaleNode.restoreTransformGL(); // ofPopMatrix(); } //-------------------------------------------------------------- void TransformableNode::draw() { _rotationNode.transformGL(); //-------------------------------------- //X軸 ofPushMatrix(); ofRotateX(90); ofPushStyle(); ofSetCircleResolution(64); ofSetColor(255, 155, 155, 150); ofNoFill(); ofSetLineWidth(2); ofDrawCircle(0, 0, 0, 35); ofSetLineWidth(1); ofPopStyle(); ofPopMatrix(); //Y軸 ofPushMatrix(); ofRotateY(90); ofPushStyle(); ofSetCircleResolution(64); ofSetColor(155, 255, 155, 150); ofNoFill(); ofSetLineWidth(2); ofDrawCircle(0, 0, 0, 35); ofSetLineWidth(1); ofPopStyle(); ofPopMatrix(); //Z軸 ofPushMatrix(); ofPushStyle(); ofSetCircleResolution(64); ofSetColor(155, 155, 255, 150); ofNoFill(); ofSetLineWidth(2); ofDrawCircle(0, 0, 0, 35); ofSetLineWidth(1); ofPopStyle(); ofPopMatrix(); //-------------------------------------- _rotationNode.restoreTransformGL(); } //-------------------------------------------------------------- // SETTER / GETTER //-------------------------------------------------------------- //-------------------------------------------------------------- float TransformableNode::rotationX() { return _rotationX; } void TransformableNode::rotationX(float value) { float diff = value - _rotationX; _rotationX = value; _xRot.makeRotate(diff, 1.0, 0.0, 0.0); _qRot *= _xRot; // setOrientation(_qRot); _rotationNode.setOrientation(_qRot); } //-------------------------------------------------------------- float TransformableNode::rotationY() { return _rotationY; } void TransformableNode::rotationY(float value) { float diff = value - _rotationY; _rotationY = value; _yRot.makeRotate(diff, 0.0, 1.0, 0.0); _qRot *= _yRot; // setOrientation(_qRot); _rotationNode.setOrientation(_qRot); } //-------------------------------------------------------------- float TransformableNode::rotationZ() { return _rotationZ; } void TransformableNode::rotationZ(float value) { float diff = value - _rotationZ; _rotationZ = value; _zRot.makeRotate(diff, 0.0, 0.0, 1.0); _qRot *= _zRot; // setOrientation(_qRot); _rotationNode.setOrientation(_qRot); } //-------------------------------------------------------------- void TransformableNode::resetRotation() { _rotationX = 0.0; _rotationY = 0.0; _rotationZ = 0.0; _qRot = ofQuaternion(); // setOrientation(_qRot); _rotationNode.setOrientation(_qRot); } //-------------------------------------------------------------- // PUBLIC METHOD //-------------------------------------------------------------- //-------------------------------------------------------------- float TransformableNode::x() { return _positionNode.getPosition().x; } void TransformableNode::x(float value) { ofVec3f position = _positionNode.getPosition(); // setPosition(value, position.y, position.z); _positionNode.setPosition(value, position.y, position.z); } //-------------------------------------------------------------- float TransformableNode::y() { return _positionNode.getPosition().y; } void TransformableNode::y(float value) { ofVec3f position = _positionNode.getPosition(); // setPosition(position.x, value, position.z); _positionNode.setPosition(position.x, value, position.z); } //-------------------------------------------------------------- float TransformableNode::z() { return _positionNode.getPosition().z; } void TransformableNode::z(float value) { ofVec3f position = _positionNode.getPosition(); // setPosition(position.x, position.y, value); _positionNode.setPosition(position.x, position.y, value); } //-------------------------------------------------------------- float TransformableNode::scaleX() { return _scaleNode.getScale().x; } void TransformableNode::scaleX(float value) { ofVec3f scale = _scaleNode.getScale(); // setScale(value, scale.y, scale.z); _scaleNode.setScale(value, scale.y, scale.z); } //-------------------------------------------------------------- float TransformableNode::scaleY() { return _scaleNode.getScale().y; } void TransformableNode::scaleY(float value) { ofVec3f scale = _scaleNode.getScale(); // setScale(scale.x, value, scale.z); _scaleNode.setScale(scale.x, value, scale.z); } //-------------------------------------------------------------- float TransformableNode::scaleZ() { return _scaleNode.getScale().z; } void TransformableNode::scaleZ(float value) { ofVec3f scale = _scaleNode.getScale(); // setScale(scale.x, scale.y, value); _scaleNode.setScale(scale.x, scale.y, value); } //-------------------------------------------------------------- // PROTECTED / PRIVATE METHOD //-------------------------------------------------------------- //-------------------------------------------------------------- // EVENT HANDLER //-------------------------------------------------------------- //-------------------------------------------------------------- // void TransformableNode::_mouseMoveEventHandler(ofMouseEventArgs& event) { // cout << "[TransformableNode]_mouseMoveEventHandler() << endl"; if(_mouseID != 0) return; if(!_enabled) return; } //-------------------------------------------------------------- // void TransformableNode::_mouseDragEventHandler(ofMouseEventArgs& event) { // cout << "[TransformableNode]_mouseDragEventHandler() << endl"; if(_mouseID != 0) return; if(!_enabled) return; _mouse.x = event.x; _mouse.y = event.y; float dx = _mouse.x - _lastMouse.x; float dy = _mouse.y - _lastMouse.y; //Rotation if(_dragMode == 0) { float spinX = dx * 0.1; float spinY = dy * 0.1; ofVec2f center = ofVec2f(ofGetWidth() / 2, ofGetHeight() / 2); float distanceX = center.x - _mouse.x; float distanceY = center.y - _mouse.y; float distance = center.distance(_mouse); float n = 225; if(distance < n || _isInArea) { // cout << "spinX = " << spinX << endl; // cout << "spinY = " << spinY << endl; //X軸 rotationX(rotationX() + spinY); //Y軸 rotationY(rotationY() + spinX); } else { //Z軸 if(distanceY >= n) rotationZ(rotationZ() - spinX); if(distanceY <= -n) rotationZ(rotationZ() + spinX); if(distanceX >= n) rotationZ(rotationZ() + spinY); if(distanceX <= -n) rotationZ(rotationZ() - spinY); } } //Translate else if(_dragMode == 1) { x(x() + dx * 0.001); y(y() - dy * 0.001); } _lastMouse = _mouse; } //-------------------------------------------------------------- // void TransformableNode::_mouseDownEventHandler(ofMouseEventArgs& event) { // cout << "[TransformableNode]_mouseDownEventHandler()" << endl; if(!_enabled) return; _mouseID = event.button; _mouse.x = event.x; _mouse.y = event.y; _lastMouse = _mouse; ofVec2f center = ofVec2f(ofGetWidth() / 2, ofGetHeight() / 2); float distance = center.distance(_mouse); float n = 225; if(distance < n) _isInArea = true; } //-------------------------------------------------------------- // void TransformableNode::_mouseUpEventHandler(ofMouseEventArgs& event) { // cout << "[TransformableNode]_mouseUpEventHandler()"; if(!_enabled) return; _isInArea = false; } //-------------------------------------------------------------- // void TransformableNode::_mouseScrolledEventHandler(ofMouseEventArgs& event) { // cout << "[TransformableNode]_mouseScrolledEventHandler() << endl"; if(!_enabled) return; float scrollY = event.scrollY * 0.1; ofVec3f scale = _scaleNode.getScale(); _scaleNode.setScale( scale.x - scrollY, scale.y - scrollY, scale.z - scrollY ); }
{ "content_hash": "947bb375c49fd4238ae6616a837efc37", "timestamp": "", "source": "github", "line_count": 346, "max_line_length": 121, "avg_line_length": 30.77456647398844, "alnum_prop": 0.5064800901577761, "repo_name": "selflash/ofxSelflash", "id": "d36f39679c1d8b22d82592e3f2a61f9b4737251a", "size": "10670", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "example-CustomController-1/src/TransformableNode.cpp", "mode": "33261", "license": "mit", "language": [ { "name": "C++", "bytes": "1660448" }, { "name": "Makefile", "bytes": "107398" }, { "name": "Objective-C++", "bytes": "8007" } ], "symlink_target": "" }
package org.apache.camel.component.vm; import org.apache.camel.CamelContext; import org.apache.camel.CamelContextAware; import org.apache.camel.Exchange; import org.apache.camel.ExtendedExchange; import org.apache.camel.Processor; import org.apache.camel.component.seda.SedaConsumer; import org.apache.camel.support.ExchangeHelper; public class VmConsumer extends SedaConsumer implements CamelContextAware { private CamelContext camelContext; public VmConsumer(VmEndpoint endpoint, Processor processor) { super(endpoint, processor); } @Override public CamelContext getCamelContext() { return camelContext; } @Override public void setCamelContext(CamelContext camelContext) { this.camelContext = camelContext; } /** * Strategy to prepare exchange for being processed by this consumer * * @param exchange the exchange * @return the exchange to process by this consumer. */ @Override protected Exchange prepareExchange(Exchange exchange) { // send a new copied exchange with the camel context from this consumer Exchange newExchange = ExchangeHelper.copyExchangeAndSetCamelContext(exchange, getCamelContext()); // set the from endpoint newExchange.adapt(ExtendedExchange.class).setFromEndpoint(getEndpoint()); return newExchange; } }
{ "content_hash": "ce88d8b49cc5065f969ca7d8480c7a9b", "timestamp": "", "source": "github", "line_count": 45, "max_line_length": 106, "avg_line_length": 30.68888888888889, "alnum_prop": 0.7335264301230991, "repo_name": "ullgren/camel", "id": "6e9430c41d33146291617dced7d675ce8df400d2", "size": "2183", "binary": false, "copies": "4", "ref": "refs/heads/master", "path": "components/camel-vm/src/main/java/org/apache/camel/component/vm/VmConsumer.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Apex", "bytes": "6519" }, { "name": "Batchfile", "bytes": "1518" }, { "name": "CSS", "bytes": "16394" }, { "name": "Elm", "bytes": "10852" }, { "name": "FreeMarker", "bytes": "11410" }, { "name": "Groovy", "bytes": "14490" }, { "name": "HTML", "bytes": "896075" }, { "name": "Java", "bytes": "69929414" }, { "name": "JavaScript", "bytes": "90399" }, { "name": "Makefile", "bytes": "513" }, { "name": "Shell", "bytes": "17108" }, { "name": "Tcl", "bytes": "4974" }, { "name": "Thrift", "bytes": "6979" }, { "name": "XQuery", "bytes": "546" }, { "name": "XSLT", "bytes": "270186" } ], "symlink_target": "" }
<?php namespace PhpBench\Extensions\XDebug\Executor; use PhpBench\Executor\Benchmark\TemplateExecutor; use PhpBench\Executor\BenchmarkExecutorInterface; use PhpBench\Executor\ExecutionContext; use PhpBench\Executor\ExecutionResults; use PhpBench\Extensions\XDebug\XDebugUtil; use PhpBench\Path\Path; use PhpBench\Registry\Config; use Symfony\Component\OptionsResolver\OptionsResolver; class ProfileExecutor implements BenchmarkExecutorInterface { /** * @var TemplateExecutor */ private $innerExecutor; /** * @var string */ private $cwd; /** * @var XDebugUtil */ private $xdebugUtil; public function __construct(TemplateExecutor $innerExecutor, XDebugUtil $xdebugUtil, string $cwd) { $this->innerExecutor = $innerExecutor; $this->cwd = $cwd; $this->xdebugUtil = $xdebugUtil; } /** * {@inheritdoc} */ public function configure(OptionsResolver $options): void { $this->innerExecutor->configure($options); $options->setDefaults([ 'callback' => function (): void { }, 'output_dir' => 'xdebug', ]); $options->setAllowedTypes('callback', ['Closure']); $options->setAllowedTypes('output_dir', ['string']); } public function execute(ExecutionContext $context, Config $config): ExecutionResults { $outputDir = $config['output_dir']; $callback = $config['callback']; $name = $this->xdebugUtil->filenameFromContext($context, '.cachegrind'); $config[TemplateExecutor::OPTION_PHP_CONFIG] = $this->resolveXdebugIniSettings($outputDir, $name); $results = $this->innerExecutor->execute($context, $config); $callback($context); return $results; } /** * @return array<string,mixed> */ private function resolveXdebugIniSettings(string $outputDir, string $name): array { $xdebugVersion = $this->xdebugUtil->discoverXdebugMajorVersion(); $outputPath = Path::makeAbsolute($outputDir, $this->cwd); if ($xdebugVersion === '3') { return [ 'xdebug.mode' => 'profile', 'xdebug.output_dir' => $outputPath, 'xdebug.profiler_output_name' => $name, ]; } return [ 'xdebug.profiler_enable' => 1, 'xdebug.profiler_output_dir' => $outputPath, 'xdebug.profiler_output_name' => $name, ]; } }
{ "content_hash": "965f788d443e58d964b0e909f92ea2be", "timestamp": "", "source": "github", "line_count": 93, "max_line_length": 106, "avg_line_length": 27.032258064516128, "alnum_prop": 0.6081941129673827, "repo_name": "phpbench/phpbench", "id": "38d586ae756a25d06204060878f2012163be0a6f", "size": "2744", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "extensions/xdebug/lib/Executor/ProfileExecutor.php", "mode": "33188", "license": "mit", "language": [ { "name": "HTML", "bytes": "7543" }, { "name": "PHP", "bytes": "1378493" }, { "name": "Shell", "bytes": "599" } ], "symlink_target": "" }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>coinductive-examples: Not compatible 👼</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.7.1+2 / coinductive-examples - 8.6.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> coinductive-examples <small> 8.6.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-11-21 01:45:33 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-11-21 01:45:33 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base camlp5 7.14 Preprocessor-pretty-printer of OCaml conf-findutils 1 Virtual package relying on findutils conf-perl 2 Virtual package relying on perl coq 8.7.1+2 Formal proof management system num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.06.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.06.1 Official 4.06.1 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;[email protected]&quot; homepage: &quot;https://github.com/coq-contribs/coinductive-examples&quot; license: &quot;LGPL 2.1&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/CoinductiveExamples&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.6&quot; &amp; &lt; &quot;8.7~&quot;} ] tags: [ &quot;keyword: co-inductive types&quot; &quot;keyword: co-induction&quot; &quot;category: Miscellaneous/Coq Use Examples&quot; ] authors: [ &quot;Eduardo Giménez&quot; ] bug-reports: &quot;https://github.com/coq-contribs/coinductive-examples/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/coinductive-examples.git&quot; synopsis: &quot;Some simple examples about co-inductive types and co-induction&quot; description: &quot;&quot;&quot; This directory containts some simple examples about the use of co-inductive types in Coq. Directory ARITH is about non-standard arithmetic. Directory STREAMS contains examples about schemes, including an application of the translation method presented in Eduardo Giménez&#39;s article ``Codifying guarded definitions with recursive schemes&#39;&#39; (LNCS no. 996).&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/coinductive-examples/archive/v8.6.0.tar.gz&quot; checksum: &quot;md5=30dfec6531961e4e1eb46766d3262c4b&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-coinductive-examples.8.6.0 coq.8.7.1+2</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.7.1+2). The following dependencies couldn&#39;t be met: - coq-coinductive-examples -&gt; coq &lt; 8.7~ -&gt; ocaml &lt; 4.06.0 base of this switch (use `--unlock-base&#39; to force) No solution found, exiting </pre></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>opam remove -y coq; opam install -y --show-action --unlock-base coq-coinductive-examples.8.6.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</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": "67f4a7eec4df00a3f2b92cad30446304", "timestamp": "", "source": "github", "line_count": 170, "max_line_length": 159, "avg_line_length": 42.529411764705884, "alnum_prop": 0.5553250345781466, "repo_name": "coq-bench/coq-bench.github.io", "id": "121811f7617397879dea72e81437db65f83e567b", "size": "7257", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "clean/Linux-x86_64-4.06.1-2.0.5/released/8.7.1+2/coinductive-examples/8.6.0.html", "mode": "33188", "license": "mit", "language": [], "symlink_target": "" }
var Greeter = (function () { function Greeter() { } Greeter.prototype.greet = function () { if (this.greeting) { return "Hello, " + this.greeting; } else { return Greeter.standardGreeting; } }; Greeter.standardGreeting = "Hello, there"; return Greeter; })(); var greeter1; greeter1 = new Greeter(); alert(greeter1.greet()); var greeterMaker = Greeter; greeterMaker.standardGreeting = "Hey there!"; var greeter2 = new greeterMaker(); alert(greeter2.greet()); var lettersRegexp = /^[A-Za-z]+$/; var numberRegexp = /^[0-9]+$/; var LettersOnlyValidator = (function () { function LettersOnlyValidator() { } LettersOnlyValidator.prototype.isAcceptable = function (s) { return lettersRegexp.test(s); }; return LettersOnlyValidator; })(); var ZipCodeValidator = (function () { function ZipCodeValidator() { } ZipCodeValidator.prototype.isAcceptable = function (s) { return s.length === 5 && numberRegexp.test(s); }; return ZipCodeValidator; })(); // Some samples to try var strings = ['Hello', '98052', '101']; // Validators to use var validators = {}; validators['ZIP code'] = new ZipCodeValidator(); validators['Letters only'] = new LettersOnlyValidator(); // Show whether each string passed each validator strings.forEach(function (s) { for (var name in validators) { console.log('"' + s + '" ' + (validators[name].isAcceptable(s) ? ' matches ' : ' does not match ') + name); } }); //# sourceMappingURL=ClassDemo2.js.map
{ "content_hash": "9862ce728635078ebfc965c25f6912c5", "timestamp": "", "source": "github", "line_count": 52, "max_line_length": 115, "avg_line_length": 30.134615384615383, "alnum_prop": 0.6362476068921507, "repo_name": "178220709/bae_node", "id": "af1de110a2dcc836fa1f7c07a34dd0d011d72fb5", "size": "1567", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "demo/tsDemo/ClassDemo2.js", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "110" }, { "name": "CoffeeScript", "bytes": "5322" }, { "name": "HTML", "bytes": "7008" }, { "name": "JavaScript", "bytes": "44631" } ], "symlink_target": "" }
module.exports = function (grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), env: { compatible: { COMPATI: 'compatiable' }, dev: { BUILD_MODE: 'debug' }, prod: { BUILD_MODE: 'release' } }, clean: { build: { src: ['dist/'] } }, watch: { scripts: { files: ['lib/*.js', 'test/*.js'], tasks: ['eslint'], options: { spawn: false } } }, eslint: { target: { src: ['lib/*.js', 'test/*.js'] } }, mochaTest: { test: { options: { reporter: 'spec', require: 'babel/register' }, src: ['./test/**/*.js'] } }, webpack: { dist: '<%= $require.ref.webpack %>' }, ref: { webpack: require('path').join(__dirname, './webpack.pars.js') } }); grunt.event.on('watch', function (action, filepath) { // only update the changed files grunt.config('eslint.target.src', filepath); }); grunt.registerTask('eslint', 'eslint:target'); grunt.registerTask('test', ['eslint:target', 'mochaTest']); grunt.registerTask('build-d', ['env:dev', 'eslint:target', 'clean:build', 'webpack:dist']); grunt.registerTask('build', ['env:prod', 'eslint:target', 'clean:build', 'webpack:dist']); grunt.registerTask('compati-build-d', ['env:dev', 'env:compatible', 'eslint:target', 'clean:build', 'webpack:dist']); grunt.registerTask('compati-build', ['env:prod', 'env:compatible', 'eslint:target', 'clean:build', 'webpack:dist']); require('grunt-env-config')(grunt, {cache: true}); require('load-grunt-tasks')(grunt); };
{ "content_hash": "1bd45501e662626942b0cdc0dec626ed", "timestamp": "", "source": "github", "line_count": 68, "max_line_length": 121, "avg_line_length": 29.764705882352942, "alnum_prop": 0.4431818181818182, "repo_name": "4gifted/pars", "id": "25592872734583adff0509449753a88e451d0f35", "size": "2024", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Gruntfile.js", "mode": "33188", "license": "mit", "language": [ { "name": "JavaScript", "bytes": "16686" } ], "symlink_target": "" }
<?xml version="1.0" encoding="UTF-8"?> <!-- ~ #%L ~ ACS AEM Commons Bundle ~ %% ~ Copyright (C) 2013 Adobe ~ %% ~ 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. ~ #L% --> <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" jcr:primaryType="cq:ClientLibraryFolder" categories="[acs-commons.quickly]" dependencies="[acs-commons.angularjs.v1.3.all]" embed="[acs-commons.lodash,acs-commons.json2,acs-commons.angularjs.v1.3.modules.ng-storage]"/>
{ "content_hash": "122d49e06caf566756feb3876be0bd08", "timestamp": "", "source": "github", "line_count": 27, "max_line_length": 104, "avg_line_length": 42.77777777777778, "alnum_prop": 0.6735930735930736, "repo_name": "npeltier/acs-aem-commons", "id": "2344c8674299c6c4a40fa23d34fc9bf679af8678", "size": "1155", "binary": false, "copies": "10", "ref": "refs/heads/master", "path": "content/src/main/content/jcr_root/apps/acs-commons/components/utilities/quickly/clientlibs/.content.xml", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "38568" }, { "name": "Groovy", "bytes": "1457" }, { "name": "HTML", "bytes": "7237" }, { "name": "Java", "bytes": "2144048" }, { "name": "JavaScript", "bytes": "189133" }, { "name": "Shell", "bytes": "330" } ], "symlink_target": "" }
#pragma once #include <eosio/chain/exceptions.hpp> namespace eosio { namespace chain { struct chain_snapshot_header { /** * Version history * 1: initial version * 2: Updated chain snapshot for v1.8.0 initial protocol features release: * - Incompatible with version 1. * - Adds new indices for: protocol_state_object and account_ram_correction_object * 3: Updated for v2.0.0 protocol features: * - forwards compatible with version 2 * - WebAuthn keys * - wtmsig block siganatures: the block header state changed to include producer authorities and additional signatures * - removed genesis_state and added chain ID to global_property_object * 4: Updated for v3.0.0 protocol features: * - forwards compatible with versions 2 and 3 * - kv database * - Configurable wasm limits * 5: Updated for v3.0.0 eos features: * - chain_config update */ static constexpr uint32_t minimum_compatible_version = 2; static constexpr uint32_t current_version = 5; uint32_t version = current_version; void validate() const { auto min = minimum_compatible_version; auto max = current_version; EOS_ASSERT(version >= min && version <= max, snapshot_validation_exception, "Unsupported version of chain snapshot: ${version}. Supported version must be between ${min} and ${max} inclusive.", ("version",version)("min",min)("max",max)); } }; } } FC_REFLECT(eosio::chain::chain_snapshot_header,(version))
{ "content_hash": "a8438cf99c534dfdd85d6e3834f5d9ed", "timestamp": "", "source": "github", "line_count": 44, "max_line_length": 130, "avg_line_length": 36.79545454545455, "alnum_prop": 0.6380481778875849, "repo_name": "EOSIO/eos", "id": "d2bd01492f140bc86140cbc86bea6f57634c1440", "size": "1619", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "libraries/chain/include/eosio/chain/chain_snapshot.hpp", "mode": "33188", "license": "mit", "language": [ { "name": "Assembly", "bytes": "322" }, { "name": "C", "bytes": "42017" }, { "name": "C++", "bytes": "9286020" }, { "name": "CMake", "bytes": "140988" }, { "name": "Dockerfile", "bytes": "38452" }, { "name": "JavaScript", "bytes": "25332" }, { "name": "Makefile", "bytes": "796" }, { "name": "Objective-C", "bytes": "408" }, { "name": "Python", "bytes": "675752" }, { "name": "Shell", "bytes": "185116" }, { "name": "WebAssembly", "bytes": "6269741" } ], "symlink_target": "" }
cask "pock" do version "0.7.2" sha256 "6b1e8047370d719407711c781c379ddf7e9eef572ed08407be0873ce4fe45476" url "https://pock.dev/download.php?file=pock_#{version.dots_to_underscores}.zip" appcast "https://github.com/pigigaldi/Pock/releases.atom" name "Pock" desc "Utility to display the Dock in the Touch Bar" homepage "https://pock.dev/" depends_on macos: ">= :sierra" app "Pock.app" zap trash: [ "~/Library/Application Support/Pock", "~/Library/Application Support/com.pigigaldi.pock", "~/Library/Caches/com.pigigaldi.pock", "~/Library/Preferences/com.pigigaldi.pock.plist", ] end
{ "content_hash": "9581e739fd3094688a6bc84391e40eb1", "timestamp": "", "source": "github", "line_count": 21, "max_line_length": 82, "avg_line_length": 29.666666666666668, "alnum_prop": 0.7126805778491172, "repo_name": "xight/homebrew-cask", "id": "0bdaec5414feb34babec0d2a4246f07c50a7f5a1", "size": "623", "binary": false, "copies": "4", "ref": "refs/heads/master", "path": "Casks/pock.rb", "mode": "33188", "license": "bsd-2-clause", "language": [ { "name": "Dockerfile", "bytes": "249" }, { "name": "Python", "bytes": "3630" }, { "name": "Ruby", "bytes": "2274919" }, { "name": "Shell", "bytes": "32035" } ], "symlink_target": "" }
from heat.openstack.common.notifier import api as notifier_api from heat.engine import api as engine_api from heat.engine import notification def send(stack): """Send usage notifications to the configured notification driver.""" # The current notifications have a start/end: # see: https://wiki.openstack.org/wiki/SystemUsageData # so to be consistent we translate our status into a known start/end/error # suffix. level = notification.get_default_level() if stack.status == stack.IN_PROGRESS: suffix = 'start' elif stack.status == stack.COMPLETE: suffix = 'end' else: suffix = 'error' level = notifier_api.ERROR event_type = '%s.%s.%s' % ('stack', stack.action.lower(), suffix) notification.notify(stack.context, event_type, level, engine_api.format_notification_body(stack))
{ "content_hash": "610de7b789cbe99953f3cb443921aed1", "timestamp": "", "source": "github", "line_count": 28, "max_line_length": 78, "avg_line_length": 33.75, "alnum_prop": 0.6275132275132275, "repo_name": "ntt-sic/heat", "id": "516090ca7c4a95415c053d11d88cee76390daf62", "size": "1520", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "heat/engine/notification/stack.py", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Python", "bytes": "3336181" }, { "name": "Shell", "bytes": "22168" } ], "symlink_target": "" }
print('Enter your age:') age = int(input()) # if age >= 21: # print('You are legal here.') # else: # print('Your are illegal here.') print('You are legal here.') if age >= 21 else print('Your are illegal here.')
{ "content_hash": "3387ddc999c96625168857935231e49f", "timestamp": "", "source": "github", "line_count": 8, "max_line_length": 78, "avg_line_length": 27.625, "alnum_prop": 0.6153846153846154, "repo_name": "KristianMariyanov/PythonPlayground", "id": "5bc188092f2c5159c1da98a0bde2db71fcd0b517", "size": "221", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "hack-bulgaria-course/python01/week1/legal.py", "mode": "33188", "license": "mit", "language": [ { "name": "Python", "bytes": "5811" } ], "symlink_target": "" }
package com.google.cloud.tasks.v2beta2.samples; // [START cloudtasks_v2beta2_generated_CloudTasks_Create_SetCredentialsProvider_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.cloud.tasks.v2beta2.CloudTasksClient; import com.google.cloud.tasks.v2beta2.CloudTasksSettings; import com.google.cloud.tasks.v2beta2.myCredentials; public class SyncCreateSetCredentialsProvider { public static void main(String[] args) throws Exception { syncCreateSetCredentialsProvider(); } public static void syncCreateSetCredentialsProvider() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library CloudTasksSettings cloudTasksSettings = CloudTasksSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) .build(); CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings); } } // [END cloudtasks_v2beta2_generated_CloudTasks_Create_SetCredentialsProvider_sync]
{ "content_hash": "01cd6f898673f518592c385efb759242", "timestamp": "", "source": "github", "line_count": 30, "max_line_length": 100, "avg_line_length": 45.63333333333333, "alnum_prop": 0.7859751643535428, "repo_name": "googleapis/google-cloud-java", "id": "03bec381695f767d4ee9e2decc85662406c44fc8", "size": "1964", "binary": false, "copies": "1", "ref": "refs/heads/main", "path": "java-tasks/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasks/create/SyncCreateSetCredentialsProvider.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Dockerfile", "bytes": "2614" }, { "name": "HCL", "bytes": "28592" }, { "name": "Java", "bytes": "826434232" }, { "name": "Jinja", "bytes": "2292" }, { "name": "Python", "bytes": "200408" }, { "name": "Shell", "bytes": "97954" } ], "symlink_target": "" }
<meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> <title>Blog Laravel | @yield('titulo')</title> <!-- CAMBIAR ESTE TITULO PARA CADA PÁGINA --> <!-- Bootstrap --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> {{ Html::style('css/styles.css')}} @yield('stylesheets') <!-- HTML5 shim and Respond.js for 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.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]-->
{ "content_hash": "69b7b0fb0d3b28efafd13db1ad405db6", "timestamp": "", "source": "github", "line_count": 19, "max_line_length": 208, "avg_line_length": 53.578947368421055, "alnum_prop": 0.693516699410609, "repo_name": "ke3nnix/Blog-Laravel", "id": "b2b7fd6096baa1d6e66b2c09e1bcfb5a08051c38", "size": "1019", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "resources/views/partials/_head.blade.php", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "ApacheConf", "bytes": "553" }, { "name": "HTML", "bytes": "13751" }, { "name": "JavaScript", "bytes": "1137" }, { "name": "PHP", "bytes": "87748" }, { "name": "Vue", "bytes": "563" } ], "symlink_target": "" }
ACCEPTED #### According to International Plant Names Index #### Published in null #### Original name Thymus grossheimii Ronniger ### Remarks null
{ "content_hash": "a006c93ec113ac78fbdf3e405a41af25", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 31, "avg_line_length": 11.461538461538462, "alnum_prop": 0.738255033557047, "repo_name": "mdoering/backbone", "id": "8cdf794c8acaf5e93d37e100c33e33f1cf21872d", "size": "221", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Plantae/Magnoliophyta/Magnoliopsida/Lamiales/Lamiaceae/Thymus/Thymus praecox/Thymus praecox grossheimii/README.md", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
<!DOCTYPE html> <html devsite> <head> <meta name="project_path" value="/web/tools/_project.yaml" /> <meta name="book_path" value="/web/tools/_book.yaml" /> <meta name="gtm_var" data-key="docType" data-value="reference"> <title>Source: workbox-routing/src/index.js</title> <link href="jsdoc.css" rel="stylesheet"> </head> <body> <div id="jsdoc-body-container"> <div id="jsdoc-content"> <div id="jsdoc-content-container"> <div id="jsdoc-banner" role="banner"> </div> <div id="jsdoc-main" role="main"> <header class="page-header"> <h1>Source: workbox-routing/src/index.js</h1> </header> <article> <pre class="prettyprint linenums"><code> /** * # workbox-routing * * It&#x27;s common in service workers to want to assign specific behaviors and logic * to a subset of requests that are received via the &#x60;fetch()&#x60; event. * * This library makes it easy to route requests to &quot;handlers&quot;, which can be * existing behaviors from Workbox or functions for custom handling of a * request. * * @module workbox-routing */ import ExpressRoute from &#x27;./lib/express-route&#x27;; import NavigationRoute from &#x27;./lib/navigation-route&#x27;; import RegExpRoute from &#x27;./lib/regexp-route&#x27;; import Route from &#x27;./lib/route&#x27;; import Router from &#x27;./lib/router&#x27;; export { ExpressRoute, NavigationRoute, RegExpRoute, Route, Router, }; </code></pre> </article> </div> </div> <nav id="jsdoc-toc-nav" role="navigation"></nav> </div> </div> </body> </html>
{ "content_hash": "aaac1e3f763c656845dd9d11a5ac1ae5", "timestamp": "", "source": "github", "line_count": 60, "max_line_length": 85, "avg_line_length": 27.383333333333333, "alnum_prop": 0.6378575776019476, "repo_name": "agektmr/WebFundamentals", "id": "1def811af14b978efdb50871cb0b0969f2b15a1e", "size": "2250", "binary": false, "copies": "6", "ref": "refs/heads/master", "path": "src/content/en/tools/workbox/reference-docs/v2.0.3/workbox-routing_src_index.js.html", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "46463" }, { "name": "HTML", "bytes": "10845299" }, { "name": "JavaScript", "bytes": "273658" }, { "name": "Python", "bytes": "256072" }, { "name": "Shell", "bytes": "4926" }, { "name": "Smarty", "bytes": "3968" } ], "symlink_target": "" }
<?php namespace Equip\BeanstalkdConsumer\Configuration; use Equip\Configuration\AurynConfiguration; use Equip\Configuration\EnvConfiguration; use Equip\Configuration\ConfigurationSet; class DefaultConfigurationSet extends ConfigurationSet { public function __construct(array $data = []) { $data = array_merge([ EnvConfiguration::class, AurynConfiguration::class, AuraCliConfiguration::class, PheanstalkConfiguration::class, ], $data); parent::__construct($data); } }
{ "content_hash": "aecdce976d99ae8dc2b6763515928220", "timestamp": "", "source": "github", "line_count": 22, "max_line_length": 54, "avg_line_length": 25.227272727272727, "alnum_prop": 0.6810810810810811, "repo_name": "equip/beanstalkd-consumer", "id": "719ed8e28a7f1a30297c6fb18e9333907a05326e", "size": "555", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/Configuration/DefaultConfigurationSet.php", "mode": "33188", "license": "mit", "language": [ { "name": "PHP", "bytes": "14139" } ], "symlink_target": "" }
<html> <head> <title>TestNG: Default test</title> <link href="../testng.css" rel="stylesheet" type="text/css" /> <link href="../my-testng.css" rel="stylesheet" type="text/css" /> <style type="text/css"> .log { display: none;} .stack-trace { display: none;} </style> <script type="text/javascript"> <!-- function flip(e) { current = e.style.display; if (current == 'block') { e.style.display = 'none'; return 0; } else { e.style.display = 'block'; return 1; } } function toggleBox(szDivId, elem, msg1, msg2) { var res = -1; if (document.getElementById) { res = flip(document.getElementById(szDivId)); } else if (document.all) { // this is the way old msie versions work res = flip(document.all[szDivId]); } if(elem) { if(res == 0) elem.innerHTML = msg1; else elem.innerHTML = msg2; } } function toggleAllBoxes() { if (document.getElementsByTagName) { d = document.getElementsByTagName('div'); for (i = 0; i < d.length; i++) { if (d[i].className == 'log') { flip(d[i]); } } } } // --> </script> </head> <body> <h2 align='center'>Default test</h2><table border='1' align="center"> <tr> <td>Tests passed/Failed/Skipped:</td><td>1/0/0</td> </tr><tr> <td>Started on:</td><td>Wed Jul 08 10:12:35 MSK 2015</td> </tr> <tr><td>Total time:</td><td>9 seconds (9267 ms)</td> </tr><tr> <td>Included groups:</td><td></td> </tr><tr> <td>Excluded groups:</td><td></td> </tr> </table><p/> <small><i>(Hover the method name to see the test class name)</i></small><p/> <table width='100%' border='1' class='invocation-passed'> <tr><td colspan='4' align='center'><b>PASSED TESTS</b></td></tr> <tr><td><b>Test method</b></td> <td width="30%"><b>Exception</b></td> <td width="10%"><b>Time (seconds)</b></td> <td><b>Instance</b></td> </tr> <tr> <td title='com.example.tests.GroupModificationTests.modifySomeGroup()'><b>modifySomeGroup</b><br>Test class: com.example.tests.GroupModificationTests</td> <td></td> <td>4</td> <td>com.example.tests.GroupModificationTests@6de8aa5</td></tr> </table><p> </body> </html>
{ "content_hash": "2845ae9e82479d39478541cd490cea94", "timestamp": "", "source": "github", "line_count": 84, "max_line_length": 154, "avg_line_length": 24.833333333333332, "alnum_prop": 0.6212847555129435, "repo_name": "regina311/lesson-3_1", "id": "6826ecc32e863db79d0aca09a9ea6c7df5770ba4", "size": "2086", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "addressbook-selenium-tests/test-output/Default suite/Default test.html", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "5337" }, { "name": "HTML", "bytes": "22410" }, { "name": "Java", "bytes": "14491" }, { "name": "JavaScript", "bytes": "3555" } ], "symlink_target": "" }
<!-- Navigation --> <nav class="navbar navbar-inverse navbar-fixed-bottom" role="navigation"> <div class="container"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand">By Sasa Radovanovic</a> </div> <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav"> <li> <a href="#/about"> <i class="fa fa-info"></i> About</a> </li> <li> <a href="mailto:[email protected]"> <i class="fa fa-envelope-o"></i> E-mail</a> </li> <li> <a href="https://www.facebook.com/mrFreqFlyer"> <i class="fa fa-facebook"></i> Facebook</a> </li> <li> <a href="https://www.linkedin.com/in/sa%C5%A1a-radovanovi%C4%87-48574ba1?trk=nav_responsive_tab_profile_pic"> <i class="fa fa-linkedin"></i> Linkedin</a> </li> <li> <a href="https://www.instagram.com/mrfrequent_flyer/"> <i class="fa fa-instagram"></i> Instagram</a> </li> </ul> </div> <!-- /.navbar-collapse --> </div> <!-- /.container --> </nav>
{ "content_hash": "e9421d5fe44e2a3aada54494674e46de", "timestamp": "", "source": "github", "line_count": 47, "max_line_length": 133, "avg_line_length": 45.851063829787236, "alnum_prop": 0.4120649651972158, "repo_name": "sasa-radovanovic/ff-flight-diary", "id": "3907ea927ba7724a45dc1094045395ae946eb83f", "size": "2155", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/main/resources/webroot/mainNavigation.html", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "50069" }, { "name": "HTML", "bytes": "74647" }, { "name": "Java", "bytes": "310817" }, { "name": "JavaScript", "bytes": "571279" } ], "symlink_target": "" }
/** * @license Angular v4.4.6 * (c) 2010-2017 Google, Inc. https://angular.io/ * License: MIT */ export * from './animations/index'
{ "content_hash": "bdab36b9c43397b1343d0ae665d29ae6", "timestamp": "", "source": "github", "line_count": 6, "max_line_length": 49, "avg_line_length": 23, "alnum_prop": 0.6159420289855072, "repo_name": "mosafwat/InterviewTool", "id": "791b7c76c14140f688f1090110e16af25355f065", "size": "138", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "node_modules/@angular/platform-browser/animations.d.ts", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "179567" }, { "name": "HTML", "bytes": "101694" }, { "name": "JavaScript", "bytes": "1884" }, { "name": "TypeScript", "bytes": "27524" } ], "symlink_target": "" }
package com.wso2telco.workflow.approval.subscription.servicetask; import com.wso2telco.workflow.approval.exception.SubscriptionApprovalWorkflowException; import com.wso2telco.workflow.approval.subscription.rest.client.WorkflowCallbackErrorDecoder; import com.wso2telco.workflow.approval.subscription.rest.client.WorkflowHttpClient; import com.wso2telco.workflow.approval.util.AuthRequestInterceptor; import com.wso2telco.workflow.approval.util.Constants; import feign.Feign; import feign.jackson.JacksonDecoder; import feign.jackson.JacksonEncoder; import org.activiti.engine.delegate.DelegateExecution; import org.activiti.engine.delegate.JavaDelegate; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; public class HubCallbackServiceInvokeTask implements JavaDelegate { private static final Log log = LogFactory.getLog(HubCallbackServiceInvokeTask.class); public void execute(DelegateExecution arg0) throws Exception { String adminUserName = arg0.getVariable(Constants.ADMIN_USER_NAME) != null ? arg0.getVariable(Constants.ADMIN_USER_NAME).toString() : null; String adminPassword = arg0.getVariable(Constants.ADMIN_PASSWORD).toString(); AuthRequestInterceptor authRequestInterceptor = new AuthRequestInterceptor(); String refId = arg0.getVariable(Constants.WORKFLOW_REF_ID).toString(); String activityName = arg0.getCurrentActivityName(); String approvalStatus; if (activityName.equalsIgnoreCase(Constants.OPERATOR_CALLBACK_ACTIVITY)) { approvalStatus = (String) arg0.getVariable(Constants.OPERATOR_ADMIN_APPROVAL); } else if (activityName.equalsIgnoreCase(Constants.PUBLISHER_CALLBACK_ACTIVITY)) { approvalStatus = (String) arg0.getVariable(Constants.API_PUBLISHER_APPROVAL); } else { approvalStatus = (String) arg0.getVariable(Constants.HUB_ADMIN_APPROVAL); } String callbackUrl = (String) arg0.getVariable(Constants.CALL_BACK_URL); WorkflowHttpClient client = Feign.builder() .encoder(new JacksonEncoder()) .decoder(new JacksonDecoder()) .errorDecoder(new WorkflowCallbackErrorDecoder()) .requestInterceptor(authRequestInterceptor.getBasicAuthRequestInterceptor(adminUserName, adminPassword)) .target(WorkflowHttpClient.class, callbackUrl); log.info("Application creation workflow reference Id: " + refId + ", Hub Admin Approval Status: " + approvalStatus); try { client.invokeCallback(refId, approvalStatus); } catch (SubscriptionApprovalWorkflowException e) { throw new Exception(e); } } }
{ "content_hash": "31ae7ea39dec4976c53514467b4d2479", "timestamp": "", "source": "github", "line_count": 56, "max_line_length": 147, "avg_line_length": 48.892857142857146, "alnum_prop": 0.7406866325785245, "repo_name": "shawijayasekera/component-dep", "id": "3f17e57a69432a53c4291089018be547952d0e3e", "size": "3419", "binary": false, "copies": "4", "ref": "refs/heads/master", "path": "components/workflow/workflow-approval/src/main/java/com/wso2telco/workflow/approval/subscription/servicetask/HubCallbackServiceInvokeTask.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "3058012" }, { "name": "Dockerfile", "bytes": "328" }, { "name": "HTML", "bytes": "232141" }, { "name": "Java", "bytes": "3339380" }, { "name": "JavaScript", "bytes": "11824794" }, { "name": "Shell", "bytes": "7849" }, { "name": "TSQL", "bytes": "117232" }, { "name": "XSLT", "bytes": "47380" } ], "symlink_target": "" }
Simple mDNS client/server library in Golang. mDNS or Multicast DNS can be used to discover services on the local network without the use of an authoritative DNS server. This enables peer-to-peer discovery. It is important to note that many networks restrict the use of multicasting, which prevents mDNS from functioning. Notably, multicast cannot be used in any sort of cloud, or shared infrastructure environment. However it works well in most office, home, or private infrastructure environments. Using the library is very simple, here is an example of publishing a service entry: ``` package main import ( "github.com/micro/mdns" "os" ) func main() { // Setup our service export host, _ := os.Hostname() info := []string{"My awesome service"} service, _ := mdns.NewMDNSService(host, "_foobar._tcp", "", "", 8000, nil, info) // Create the mDNS server, defer shutdown server, _ := mdns.NewServer(&mdns.Config{Zone: service}) defer server.Shutdown() } ``` Doing a lookup for service providers is also very simple: ``` package main import ( "fmt" "github.com/micro/mdns" ) func main() { // Make a channel for results and start listening entriesCh := make(chan *mdns.ServiceEntry, 8) go func() { for entry := range entriesCh { fmt.Printf("Got new entry: %v\n", entry) } }() // Start the lookup err := mdns.Lookup("_foobar._tcp", entriesCh) if err != nil { fmt.Println(err) } close(entriesCh) } ```
{ "content_hash": "2a39769dd24aa1f4b947b9257e8a05a0", "timestamp": "", "source": "github", "line_count": 61, "max_line_length": 83, "avg_line_length": 23.59016393442623, "alnum_prop": 0.7109103544127866, "repo_name": "nicholasjackson/building-microservices-in-go", "id": "658a681787ee23a3c920d1eabe454bf9c743c701", "size": "1551", "binary": false, "copies": "5", "ref": "refs/heads/master", "path": "vendor/github.com/micro/mdns/README.md", "mode": "33188", "license": "mit", "language": [ { "name": "Gherkin", "bytes": "1185" }, { "name": "Go", "bytes": "106067" }, { "name": "Makefile", "bytes": "4195" }, { "name": "Protocol Buffer", "bytes": "566" }, { "name": "Ruby", "bytes": "5599" }, { "name": "Shell", "bytes": "2740" } ], "symlink_target": "" }
import CsHelper from CsDatabag import CsCmdLine import logging class CsChain(object): def __init__(self): self.chain = {} self.last_added = '' self.count = {} def add(self, table, chain): if table not in self.chain.keys(): self.chain.setdefault(table, []).append(chain) else: self.chain[table].append(chain) if self.last_added != chain: self.last_added = chain self.count[chain] = 0 def add_rule(self, chain): self.count[chain] += 1 def get(self, table): if table not in self.chain.keys(): return {} return self.chain[table] def get_count(self, chain): return self.count[chain] def last(self): return self.last_added def has_chain(self, table, chain): if table not in self.chain.keys(): return False if chain not in self.chain[table]: return False return True class CsTable(object): def __init__(self): self.table = [] self.last_added = '' def add(self, name): if name not in self.table: self.table.append(name) self.last_added = name def get(self): return self.table def last(self): return self.last_added class CsNetfilters(object): def __init__(self, load=True): self.rules = [] self.table = CsTable() self.chain = CsChain() if load: self.get_all_rules() def get_all_rules(self): for i in CsHelper.execute("iptables-save"): if i.startswith('*'): # Table self.table.add(i[1:]) if i.startswith(':'): # Chain self.chain.add(self.table.last(), i[1:].split(' ')[0]) if i.startswith('-A'): # Rule self.chain.add_rule(i.split()[1]) rule = CsNetfilter() rule.parse(i) rule.set_table(self.table.last()) rule.set_chain(i.split()[1]) rule.set_count(self.chain.get_count(i.split()[1])) self.save(rule) def save(self, rule): self.rules.append(rule) def get(self): return self.rules def has_table(self, table): return table in self.table.get() def has_chain(self, table, chain): return self.chain.has_chain(table, chain) def has_rule(self, new_rule): for r in self.get(): if new_rule == r: if new_rule.get_count() > 0: continue r.mark_seen() return True return False def get_unseen(self): del_list = [x for x in self.rules if x.unseen()] for r in del_list: cmd = "iptables -t %s %s" % (r.get_table(), r.to_str(True)) logging.debug("unseen cmd: %s ", cmd) CsHelper.execute(cmd) # print "Delete rule %s from table %s" % (r.to_str(True), r.get_table()) logging.info("Delete rule %s from table %s", r.to_str(True), r.get_table()) def compare(self, list): """ Compare reality with what is needed """ # PASS 1: Ensure all chains are present for fw in list: new_rule = CsNetfilter() new_rule.parse(fw[2]) new_rule.set_table(fw[0]) self.add_chain(new_rule) ruleSet = set() # PASS 2: Create rules for fw in list: tupledFw = tuple(fw) if tupledFw in ruleSet: logging.debug("Already processed : %s", tupledFw) continue new_rule = CsNetfilter() new_rule.parse(fw[2]) new_rule.set_table(fw[0]) if isinstance(fw[1], int): new_rule.set_count(fw[1]) rule_chain = new_rule.get_chain() logging.debug("Checking if the rule already exists: rule=%s table=%s chain=%s", new_rule.get_rule(), new_rule.get_table(), new_rule.get_chain()) if self.has_rule(new_rule): logging.debug("Exists: rule=%s table=%s", fw[2], new_rule.get_table()) else: # print "Add rule %s in table %s" % ( fw[2], new_rule.get_table()) logging.info("Add: rule=%s table=%s", fw[2], new_rule.get_table()) # front means insert instead of append cpy = fw[2] if fw[1] == "front": cpy = cpy.replace('-A', '-I') if isinstance(fw[1], int): # if the rule is for ACLs, we want to insert them in order, right before the DROP all if rule_chain.startswith("ACL_INBOUND") or rule_chain.startswith("ACL_OUTBOUND"): rule_count = self.chain.get_count(rule_chain) if self.chain.get_count(rule_chain) > 0 else 1 cpy = cpy.replace("-A %s" % new_rule.get_chain(), '-I %s %s' % (new_rule.get_chain(), rule_count)) else: cpy = cpy.replace("-A %s" % new_rule.get_chain(), '-I %s %s' % (new_rule.get_chain(), fw[1])) ret = CsHelper.execute2("iptables -t %s %s" % (new_rule.get_table(), cpy)) # There are some issues in this framework causing failures .. like adding a chain without checking it is present causing # the failures. Also some of the rule like removeFromLoadBalancerRule is deleting rule and deleteLoadBalancerRule # trying to delete which causes the failure. # For now raising the log. # TODO: Need to fix in the framework. if ret.returncode != 0: error = ret.communicate()[0] logging.debug("iptables command got failed ... continuing") ruleSet.add(tupledFw) self.chain.add_rule(rule_chain) self.del_standard() self.get_unseen() def add_chain(self, rule): """ Add the given chain if it is not already present """ if not self.has_chain(rule.get_table(), rule.get_chain()): if rule.get_chain(): CsHelper.execute("iptables -t %s -N %s" % (rule.get_table(), rule.get_chain())) self.chain.add(rule.get_table(), rule.get_chain()) def del_standard(self): """ Del rules that are there but should not be deleted These standard firewall rules vary according to the device type """ type = CsCmdLine("cmdline").get_type() try: table = '' for i in open("/etc/iptables/iptables-%s" % type): if i.startswith('*'): # Table table = i[1:].strip() if i.startswith('-A'): # Rule self.del_rule(table, i.strip()) except IOError: logging.debug("Exception in del_standard, returning") # Nothing can be done return def del_rule(self, table, rule): nr = CsNetfilter() nr.parse(rule) nr.set_table(table) self.delete(nr) def delete(self, rule): """ Delete a rule from the list of configured rules The rule will not actually be removed on the host """ self.rules[:] = [x for x in self.rules if not x == rule] class CsNetfilter(object): def __init__(self): self.rule = {} self.table = '' self.chain = '' self.seen = False self.count = 0 def parse(self, rule): self.rule = self.__convert_to_dict(rule) def unseen(self): return self.seen is False def mark_seen(self): self.seen = True def __convert_to_dict(self, rule): rule = unicode(rule.lstrip()) rule = rule.replace('! -', '!_-') rule = rule.replace('-p all', '') rule = rule.replace(' ', ' ') rule = rule.replace('bootpc', '68') # Ugly hack no.23 split this or else I will have an odd number of parameters rule = rule.replace('--checksum-fill', '--checksum fill') # -m can appear twice in a string rule = rule.replace('-m state', '-m2 state') rule = rule.replace('ESTABLISHED,RELATED', 'RELATED,ESTABLISHED') bits = rule.split(' ') rule = dict(zip(bits[0::2], bits[1::2])) if "-A" in rule.keys(): self.chain = rule["-A"] return rule def set_table(self, table): if table == '': table = "filter" self.table = table def get_table(self): return self.table def set_chain(self, chain): self.chain = chain def set_count(self, count=0): self.count = count def get_count(self): return self.count def get_chain(self): return self.chain def get_rule(self): return self.rule def to_str(self, delete=False): """ Convert the rule back into aynactically correct iptables command """ # Order is important order = ['-A', '-s', '-d', '!_-d', '-i', '!_-i', '-p', '-m', '-m2', '--icmp-type', '--state', '--dport', '--destination-port', '-o', '!_-o', '-j', '--set-xmark', '--checksum', '--to-source', '--to-destination', '--mark'] str = '' for k in order: if k in self.rule.keys(): printable = k.replace('-m2', '-m') printable = printable.replace('!_-', '! -') if delete: printable = printable.replace('-A', '-D') if str == '': str = "%s %s" % (printable, self.rule[k]) else: str = "%s %s %s" % (str, printable, self.rule[k]) str = str.replace("--checksum fill", "--checksum-fill") return str def __eq__(self, rule): if rule.get_table() != self.get_table(): return False if rule.get_chain() != self.get_chain(): return False if len(rule.get_rule().items()) != len(self.get_rule().items()): return False common = set(rule.get_rule().items()) & set(self.get_rule().items()) if len(common) != len(rule.get_rule()): return False return True
{ "content_hash": "7456b53eba9f115f9ad344bc1c01611d", "timestamp": "", "source": "github", "line_count": 297, "max_line_length": 156, "avg_line_length": 34.66329966329966, "alnum_prop": 0.5159786304031083, "repo_name": "DaanHoogland/cloudstack", "id": "01dfa7cac39917f8dceb6630105b56ab93c8672a", "size": "11100", "binary": false, "copies": "4", "ref": "refs/heads/main", "path": "systemvm/debian/opt/cloud/bin/cs/CsNetfilter.py", "mode": "33261", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "9979" }, { "name": "C#", "bytes": "2356211" }, { "name": "CSS", "bytes": "343148" }, { "name": "Dockerfile", "bytes": "2375" }, { "name": "FreeMarker", "bytes": "4887" }, { "name": "Groovy", "bytes": "146420" }, { "name": "HTML", "bytes": "153560" }, { "name": "Java", "bytes": "36818077" }, { "name": "JavaScript", "bytes": "8264908" }, { "name": "Python", "bytes": "12533840" }, { "name": "Ruby", "bytes": "22732" }, { "name": "SCSS", "bytes": "362625" }, { "name": "Shell", "bytes": "708848" }, { "name": "XSLT", "bytes": "57835" } ], "symlink_target": "" }
/* * jQuery plugin: fieldSelection - v0.1.0 - last change: 2006-12-16 * (c) 2006 Alex Brem <[email protected]> - http://blog.0xab.cd * */ (function() { var fieldSelection = { getSelection: function() { var e = this.jquery ? this[0] : this; return ( /* mozilla / dom 3.0 */ ('selectionStart' in e && function() { var l = e.selectionEnd - e.selectionStart; return { start: e.selectionStart, end: e.selectionEnd, length: l, text: e.value.substr(e.selectionStart, l) }; }) || /* exploder */ (document.selection && function() { e.focus(); var r = document.selection.createRange(); if (r == null) { return { start: 0, end: e.value.length, length: 0 } } var re = e.createTextRange(); var rc = re.duplicate(); re.moveToBookmark(r.getBookmark()); rc.setEndPoint('EndToStart', re); return { start: rc.text.length, end: rc.text.length + r.text.length, length: r.text.length, text: r.text }; }) || /* browser not supported */ function() { return { start: 0, end: e.value.length, length: 0 }; } )(); }, replaceSelection: function() { var e = this.jquery ? this[0] : this; var text = arguments[0] || ''; return ( /* mozilla / dom 3.0 */ ('selectionStart' in e && function() { var cursorlength = e.selectionStart + text.length; e.value = e.value.substr(0, e.selectionStart) + text + e.value.substr(e.selectionEnd, e.value.length); e.selectionStart = e.selectionEnd = cursorlength; return this; }) || /* exploder */ (document.selection && function() { // get the current cursor position // currently IE 8 does not support methods to get cursor start position // replace below code with the equivalent once method is available var startPosition = e.value.length; var endPosition = startPosition + text.length; // set the value e.value = e.value.substr(0, startPosition) + text + e.value.substr( endPosition, e.value.length); // move the focus to correct position, end of inserted token e.focus(); var range = e.createTextRange(); range.move( "character", endPosition ); range.select(); return this; }) || /* browser not supported */ function() { e.value += text; return this; } )(); } }; cj.each(fieldSelection, function(i) { cj.fn[i] = this; }); })();
{ "content_hash": "119aa23da5945fad0f6d05fe94c65e63", "timestamp": "", "source": "github", "line_count": 97, "max_line_length": 122, "avg_line_length": 27.49484536082474, "alnum_prop": 0.5433070866141733, "repo_name": "Hack4Eugene/Hack4Cause2016", "id": "70999c820dc165e80d775181f09d72045ba4efc5", "size": "2667", "binary": false, "copies": "36", "ref": "refs/heads/master", "path": "src/cosmodojo/files/sites/all/modules/contrib/civicrm/packages/jquery/plugins/jquery-fieldselection.js", "mode": "33261", "license": "mit", "language": [ { "name": "ApacheConf", "bytes": "8454" }, { "name": "Batchfile", "bytes": "551" }, { "name": "C++", "bytes": "138803" }, { "name": "CSS", "bytes": "1327331" }, { "name": "HTML", "bytes": "844470" }, { "name": "Java", "bytes": "20354" }, { "name": "JavaScript", "bytes": "3894404" }, { "name": "Makefile", "bytes": "843" }, { "name": "Mako", "bytes": "494" }, { "name": "Objective-C", "bytes": "5003" }, { "name": "PHP", "bytes": "45753869" }, { "name": "PostScript", "bytes": "320927" }, { "name": "Python", "bytes": "66551" }, { "name": "Ruby", "bytes": "3056" }, { "name": "Shell", "bytes": "43976" }, { "name": "Smarty", "bytes": "5666163" }, { "name": "SourcePawn", "bytes": "472616" }, { "name": "XSLT", "bytes": "2135" } ], "symlink_target": "" }
package com.example.limba; import java.util.Date; import android.graphics.Picture; public class Vokabel { private String deutscheVokabel; private Object deutscheAussprache; // TODO Object ersetzen private String persischeVokabel; private Object persischeAussprache; // TODO Object ersetzen private Vokabel next; private Picture picture; private Date date; // Erstellungsdatum // Konstruktor public Vokabel() { deutscheVokabel = ""; deutscheAussprache = ""; persischeVokabel = ""; persischeAussprache = ""; next = null; picture = null; date = new Date(); } // getter public String getDeutscheVokabel() { return deutscheVokabel; } public Object getDeutscheAussprache() { return deutscheAussprache; } public String getPersischeVokabel() { return persischeVokabel; } public Object getPersischeAussprache() { return persischeAussprache; } public Vokabel getNext() { return next; } public Picture getPicture() { return picture; } public Date getDate() { return date; } // setter public void setDeutscheVokabel(String deutscheVokabel) { this.deutscheVokabel = deutscheVokabel; } public void setDeutscheAussprache(String deutscheAussprache) { this.deutscheAussprache = deutscheAussprache; } public void setPersischeVokabel(String persischeVokabel) { this.persischeVokabel = persischeVokabel; } public void setPersischeAussprache(String persischeAussprache) { this.persischeAussprache = persischeAussprache; } public void setNext(Vokabel next) { this.next = next; } public void setPicture(Picture picture) { this.picture = picture; } }
{ "content_hash": "95f210d56ceb4c68465d1aa778a20381", "timestamp": "", "source": "github", "line_count": 80, "max_line_length": 65, "avg_line_length": 20.2625, "alnum_prop": 0.7495373226403454, "repo_name": "LitWit/Limba", "id": "d46c1f12796f47e9ed7763cf6297e468af9bea15", "size": "1621", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "eclipse workstation/Limba/src/com/example/limba/Vokabel.java", "mode": "33188", "license": "mit", "language": [ { "name": "Java", "bytes": "9155" } ], "symlink_target": "" }
class AuditLogPolicy < ApplicationPolicy def index? admin? end end
{ "content_hash": "5b653e14e5e8211eef2594911295e4c7", "timestamp": "", "source": "github", "line_count": 5, "max_line_length": 40, "avg_line_length": 15, "alnum_prop": 0.7333333333333333, "repo_name": "bitzesty/qae", "id": "2b37999ce690b3003850c3fc522720d81011c43e", "size": "75", "binary": false, "copies": "1", "ref": "refs/heads/main", "path": "app/policies/audit_log_policy.rb", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "178" }, { "name": "CoffeeScript", "bytes": "156189" }, { "name": "Dockerfile", "bytes": "886" }, { "name": "Gherkin", "bytes": "2277" }, { "name": "HTML", "bytes": "132433" }, { "name": "JavaScript", "bytes": "133821" }, { "name": "Procfile", "bytes": "161" }, { "name": "Ruby", "bytes": "3047869" }, { "name": "SCSS", "bytes": "469301" }, { "name": "Shell", "bytes": "2458" }, { "name": "Slim", "bytes": "711658" } ], "symlink_target": "" }
/*************************************************************************/ /* visual_script_editor.h */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ /* https://godotengine.org */ /*************************************************************************/ /* Copyright (c) 2007-2019 Juan Linietsky, Ariel Manzur. */ /* Copyright (c) 2014-2019 Godot Engine contributors (cf. AUTHORS.md) */ /* */ /* 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 VISUALSCRIPT_EDITOR_H #define VISUALSCRIPT_EDITOR_H #include "editor/create_dialog.h" #include "editor/plugins/script_editor_plugin.h" #include "editor/property_editor.h" #include "scene/gui/graph_edit.h" #include "visual_script.h" #include "visual_script_property_selector.h" class VisualScriptEditorSignalEdit; class VisualScriptEditorVariableEdit; #ifdef TOOLS_ENABLED class VisualScriptEditor : public ScriptEditorBase { GDCLASS(VisualScriptEditor, ScriptEditorBase) enum { TYPE_SEQUENCE = 1000, INDEX_BASE_SEQUENCE = 1024 }; enum { EDIT_DELETE_NODES, EDIT_TOGGLE_BREAKPOINT, EDIT_FIND_NODE_TYPE, EDIT_COPY_NODES, EDIT_CUT_NODES, EDIT_PASTE_NODES, }; enum PortAction { CREATE_CALL_SET_GET, CREATE_ACTION, }; enum MemberAction { MEMBER_EDIT, MEMBER_REMOVE }; enum MemberType { MEMBER_FUNCTION, MEMBER_VARIABLE, MEMBER_SIGNAL }; VSplitContainer *left_vsplit; MenuButton *edit_menu; Ref<VisualScript> script; Button *base_type_select; GraphEdit *graph; LineEdit *node_filter; TextureRect *node_filter_icon; VisualScriptEditorSignalEdit *signal_editor; AcceptDialog *edit_signal_dialog; EditorInspector *edit_signal_edit; VisualScriptPropertySelector *method_select; VisualScriptPropertySelector *new_connect_node_select; VisualScriptPropertySelector *new_virtual_method_select; VisualScriptEditorVariableEdit *variable_editor; AcceptDialog *edit_variable_dialog; EditorInspector *edit_variable_edit; CustomPropertyEditor *default_value_edit; UndoRedo *undo_redo; Tree *members; Tree *nodes; Label *hint_text; Timer *hint_text_timer; Label *select_func_text; bool updating_graph; void _show_hint(const String &p_hint); void _hide_timer(); CreateDialog *select_base_type; struct VirtualInMenu { String name; Variant::Type ret; bool ret_variant; Vector<Pair<Variant::Type, String> > args; }; HashMap<StringName, Ref<StyleBox> > node_styles; StringName edited_func; void _update_graph_connections(); void _update_graph(int p_only_id = -1); bool updating_members; void _update_members(); StringName selected; String _validate_name(const String &p_name) const; struct Clipboard { Map<int, Ref<VisualScriptNode> > nodes; Map<int, Vector2> nodes_positions; Set<VisualScript::SequenceConnection> sequence_connections; Set<VisualScript::DataConnection> data_connections; }; static Clipboard *clipboard; PopupMenu *member_popup; MemberType member_type; String member_name; PortAction port_action; int port_action_node; int port_action_output; Vector2 port_action_pos; int port_action_new_node; void _port_action_menu(int p_option); void new_node(Ref<VisualScriptNode> vnode, Vector2 ofs); void connect_data(Ref<VisualScriptNode> vnode_old, Ref<VisualScriptNode> vnode, int new_id); void _selected_connect_node(const String &p_text, const String &p_category, const bool p_connecting = true); void connect_seq(Ref<VisualScriptNode> vnode_old, Ref<VisualScriptNode> vnode_new, int new_id); void _cancel_connect_node(); void _create_new_node(const String &p_text, const String &p_category, const Vector2 &p_point); void _selected_new_virtual_method(const String &p_text, const String &p_category, const bool p_connecting); int error_line; void _node_selected(Node *p_node); void _center_on_node(int p_id); void _node_filter_changed(const String &p_text); void _change_base_type_callback(); void _change_base_type(); void _member_selected(); void _member_edited(); void _begin_node_move(); void _end_node_move(); void _move_node(String func, int p_id, const Vector2 &p_to); void _node_moved(Vector2 p_from, Vector2 p_to, int p_id); void _remove_node(int p_id); void _graph_connected(const String &p_from, int p_from_slot, const String &p_to, int p_to_slot); void _graph_disconnected(const String &p_from, int p_from_slot, const String &p_to, int p_to_slot); void _graph_connect_to_empty(const String &p_from, int p_from_slot, const Vector2 &p_release_pos); void _node_ports_changed(const String &p_func, int p_id); void _available_node_doubleclicked(); void _update_available_nodes(); void _member_button(Object *p_item, int p_column, int p_button); void _expression_text_changed(const String &p_text, int p_id); String revert_on_drag; void _input(const Ref<InputEvent> &p_event); void _generic_search(); void _members_gui_input(const Ref<InputEvent> &p_event); void _on_nodes_delete(); void _on_nodes_duplicate(); Variant get_drag_data_fw(const Point2 &p_point, Control *p_from); bool can_drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from) const; void drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from); int editing_id; int editing_input; void _default_value_changed(); void _default_value_edited(Node *p_button, int p_id, int p_input_port); void _menu_option(int p_what); void _graph_ofs_changed(const Vector2 &p_ofs); void _comment_node_resized(const Vector2 &p_new_size, int p_node); int selecting_method_id; void _selected_method(const String &p_method, const String &p_type, const bool p_connecting); void _draw_color_over_button(Object *obj, Color p_color); void _button_resource_previewed(const String &p_path, const Ref<Texture> &p_preview, const Ref<Texture> &p_small_preview, Variant p_ud); VisualScriptNode::TypeGuess _guess_output_type(int p_port_action_node, int p_port_action_output, Set<int> &visited_nodes); void _member_rmb_selected(const Vector2 &p_pos); void _member_option(int p_option); protected: void _notification(int p_what); static void _bind_methods(); public: virtual void add_syntax_highlighter(SyntaxHighlighter *p_highlighter); virtual void set_syntax_highlighter(SyntaxHighlighter *p_highlighter); virtual void apply_code(); virtual RES get_edited_resource() const; virtual void set_edited_resource(const RES &p_res); virtual Vector<String> get_functions(); virtual void reload_text(); virtual String get_name(); virtual Ref<Texture> get_icon(); virtual bool is_unsaved(); virtual Variant get_edit_state(); virtual void set_edit_state(const Variant &p_state); virtual void goto_line(int p_line, bool p_with_error = false); virtual void set_executing_line(int p_line); virtual void clear_executing_line(); virtual void trim_trailing_whitespace(); virtual void convert_indent_to_spaces(); virtual void convert_indent_to_tabs(); virtual void ensure_focus(); virtual void tag_saved_version(); virtual void reload(bool p_soft); virtual void get_breakpoints(List<int> *p_breakpoints); virtual void add_callback(const String &p_function, PoolStringArray p_args); virtual void update_settings(); virtual bool show_members_overview(); virtual void set_debugger_active(bool p_active); virtual void set_tooltip_request_func(String p_method, Object *p_obj); virtual Control *get_edit_menu(); virtual void clear_edit_menu(); virtual bool can_lose_focus_on_node_selection() { return false; } static void register_editor(); static void free_clipboard(); VisualScriptEditor(); ~VisualScriptEditor(); }; // Singleton class _VisualScriptEditor : public Object { GDCLASS(_VisualScriptEditor, Object); friend class VisualScriptLanguage; protected: static void _bind_methods(); static _VisualScriptEditor *singleton; static Map<String, RefPtr> custom_nodes; static Ref<VisualScriptNode> create_node_custom(const String &p_name); public: static _VisualScriptEditor *get_singleton() { return singleton; } void add_custom_node(const String &p_name, const String &p_category, const Ref<Script> &p_script); void remove_custom_node(const String &p_name, const String &p_category); _VisualScriptEditor(); ~_VisualScriptEditor(); }; #endif #endif // VISUALSCRIPT_EDITOR_H
{ "content_hash": "93ca7dd2d67b7c61342c4ab31ad91a17", "timestamp": "", "source": "github", "line_count": 316, "max_line_length": 137, "avg_line_length": 31.680379746835442, "alnum_prop": 0.6774547997203076, "repo_name": "groud/godot", "id": "9387a09c783966eeb822bc1811d4722735442ca1", "size": "10011", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "modules/visual_script/visual_script_editor.h", "mode": "33188", "license": "mit", "language": [ { "name": "C#", "bytes": "294170" }, { "name": "C++", "bytes": "22531001" }, { "name": "Java", "bytes": "438099" }, { "name": "JavaScript", "bytes": "18828" }, { "name": "Makefile", "bytes": "451" }, { "name": "Objective-C", "bytes": "2645" }, { "name": "Objective-C++", "bytes": "191797" }, { "name": "Python", "bytes": "354482" }, { "name": "Shell", "bytes": "27053" } ], "symlink_target": "" }
import React, { Component } from 'react'; import { Button, Glyphicon, PageHeader, } from 'react-bootstrap'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd-html5-backend'; import $ from 'jquery'; import List from './list'; const sidebar = { position: 'fixed', top: '51px', bottom: 0, left: 0, zIndex: 1000, display: 'block', padding: '20px', overflowX: 'hidden', overflowY: 'auto', backgroundColor: '#f5f5f5', borderRight: '1px solid #eee', }; const navSidebar = { marginRight: '-21px', marginBottom: '20px', marginLeft: '-20px', }; const main = { paddingRight: '40px', paddingLeft: '40px', }; @DragDropContext(HTML5Backend) export default class InstanceListPage extends Component { constructor(props) { super(props); this.state = { instances: [], inbox: true, tags: false, }; this.componentDidMount = this.componentDidMount.bind(this); this.handleInboxClick = this.handleInboxClick.bind(this); this.handleTagsClick = this.handleTagsClick.bind(this); } componentDidMount() { $.ajax({ type: 'GET', url: '/instances', dataType: 'json', cache: false, success: function(instances) { this.setState({instances}); }.bind(this), error: function(xhr, stat, err) { console.error('/instances', stat, err.toString); }.bind(this), }); } handleInboxClick() { let { inbox, tags } = this.state; inbox = !inbox; if (inbox) { tags = false; } this.setState({inbox, tags}); } handleTagsClick() { let { inbox, tags } = this.state; tags = !tags; if (tags) { inbox = false; } this.setState({inbox, tags}); } render() { const { inbox, tags } = this.state; const inboxStyle = inbox ? 'primary' : 'default'; const tagsStyle = tags ? 'primary' : 'default'; let pageHeaderText = inbox ? '待处理资料' : '所有资料'; if (!inbox) { pageHeaderText = tags ? '已归档资料' : pageHeaderText; } return ( <div className="row"> <div className="col-sm-2 col-md-1 text-center" style={sidebar}> <ul className="nav" style={navSidebar}> <li> <Button bsSize="lg" bsStyle={inboxStyle} onClick={this.handleInboxClick}> <Glyphicon glyph="inbox" /> </Button> </li> <li> <Button bsSize="lg" bsStyle={tagsStyle} onClick={this.handleTagsClick}> <Glyphicon glyph="tags" /> </Button> </li> <li> <Button bsSize="lg"> <Glyphicon glyph="trash" /> </Button> </li> </ul> </div> <div className="col-sm-10 col-sm-offset-2 col-md-11 col-md-offset-1" style={main}> <PageHeader>{pageHeaderText}</PageHeader> <List instances={this.state.instances} /> </div> </div> ); } }
{ "content_hash": "3ad656f68ed0a01b03605ace879ffbdd", "timestamp": "", "source": "github", "line_count": 124, "max_line_length": 86, "avg_line_length": 21.870967741935484, "alnum_prop": 0.6194690265486725, "repo_name": "sggdv/vegan", "id": "8b969b0366426ce80a7dee633e2ec5cc650bdbc3", "size": "2740", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "admin/src/react/instance-list-page/index.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "1016" }, { "name": "HTML", "bytes": "7656" }, { "name": "JavaScript", "bytes": "5180882" } ], "symlink_target": "" }
ACCEPTED #### According to Index Fungorum #### Published in Dansk bot. Ark. 16: 27 (1956) #### Original name Hydnotryaceae M. Lange ### Remarks null
{ "content_hash": "37f44c60b6c984da57447c7ed5e1cf1a", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 29, "avg_line_length": 11.692307692307692, "alnum_prop": 0.6842105263157895, "repo_name": "mdoering/backbone", "id": "517162e1feb1abccb9361d210d852d7e171e5cb6", "size": "197", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/incertae sedis/Hydnotryaceae/README.md", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
<?php /** * @namespace */ namespace Zend\Markup; /** * @see Zend_Markup_Token */ require_once 'Zend/Markup/Token.php'; /** * @category Zend * @package Zend_Markup * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ class TokenList implements \RecursiveIterator { /** * Array of tokens * * @var array */ protected $_tokens = array(); /** * Get the current token * * @return Zend_Markup_Token */ public function current() { return current($this->_tokens); } /** * Get the children of the current token * * @return Zend_Markup_TokenList */ public function getChildren() { return current($this->_tokens)->getChildren(); } /** * Add a new child token * * @param Zend_Markup_Token $child * * @return void */ public function addChild(Token $child) { $this->_tokens[] = $child; } /** * Check if the current token has children * * @return bool */ public function hasChildren() { return current($this->_tokens)->hasChildren(); } /** * Get the key of the current token * * @return int */ public function key() { return key($this->_tokens); } /** * Go to the next token * * @return Zend_Markup_Token */ public function next() { return next($this->_tokens); } /** * Rewind the iterator * * @return void */ public function rewind() { reset($this->_tokens); } /** * Check if the element is valid * * @return void */ public function valid() { return $this->current() !== false; } }
{ "content_hash": "c6ea6bfa4810c3bfe950e6c1ea36c22f", "timestamp": "", "source": "github", "line_count": 111, "max_line_length": 87, "avg_line_length": 17.09009009009009, "alnum_prop": 0.5202952029520295, "repo_name": "FbN/Zend-Framework-Namespaced-", "id": "32d87f3da9527c8f036c70818a7194b16cc81a20", "size": "2637", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Zend/Markup/TokenList.php", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "PHP", "bytes": "14877183" } ], "symlink_target": "" }
<!-- @license Copyright (c) 2017 The expand.js authors. All rights reserved. This code may only be used under the BSD style license found at https://expandjs.github.io/LICENSE.txt The complete set of authors may be found at https://expandjs.github.io/AUTHORS.txt The complete set of contributors may be found at https://expandjs.github.io/CONTRIBUTORS.txt --> <!-- A web component used to define a set of icons. It can be used in conjunction with [xp-icon](https://expandjs.com/components/xp-icon). @element xp-iconset @since 1.0.0 @category functionality @description A web component used to define a set of icons @keywords expandjs, web components @homepage https://expandjs.com/components/xp-iconset @repository https://github.com/expandjs/xp-elements @source https://github.com/expandjs/xp-elements/blob/master/xp-iconset.html @behavior xp-iconset-finder /bower_components/xp-elements/xp-iconset-finder.html --> <link rel="import" href="../polymer/polymer.html"> <link rel="import" href="../expandjs/expandjs.html"> <link rel="import" href="xp-iconset-finder.html"> <dom-module id="xp-iconset"> <template strip-whitespace> <style> :host { display: none !important; } </style> <slot></slot> </template> <script> Polymer({ // ELEMENT is: 'xp-iconset', // BEHAVIORS behaviors: [ Polymer.XPIconsetFinder ], /*********************************************************************/ /** * Fired when the iconset name changes. * * @event xp-iconset * @param {string} name * @bubbles */ /*********************************************************************/ /** * Returns a copy of an iconset's icon. * * @method findIcon * @param {string} name * @returns {Node} */ findIcon(name) { // Asserting XP.assertArgument(XP.isVoid(name) || XP.isString(name), 1, 'string'); // Let let wrap = name ? XP.findElement(Polymer.dom(this), `svg`) : null, icon = wrap ? XP.getElement(Polymer.dom(wrap), `g[id="${name}"]`) : null, clone = icon ? icon.cloneNode(true) : null; // Cleaning if (clone) { clone.removeAttribute('id'); } return clone; }, /*********************************************************************/ // PROPERTIES properties: { /** * The iconset's name. * * @attribute name * @type string */ name: { observer: '_nameChanged', reflectToAttribute: true, type: String } }, /*********************************************************************/ // OBSERVER _nameChanged() { // Setting this.icons[this.name] = this; // Firing this.fire('xp-iconset', {name: this.name}, {node: window}); } }); </script> </dom-module>
{ "content_hash": "219d185349a4d0d00110c04780d58541", "timestamp": "", "source": "github", "line_count": 123, "max_line_length": 102, "avg_line_length": 28.024390243902438, "alnum_prop": 0.45923991876994485, "repo_name": "expandjs/xp-elements", "id": "cd851fa84e50ff0f8b7c0c60938271ea4097df65", "size": "3447", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "xp-iconset.html", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "HTML", "bytes": "451552" } ], "symlink_target": "" }
<!DOCTYPE html> <html> <head> <title></title> </head> <body> </body> <script type="text/javascript"> // var myObject={ // a: 1, // b: 2 // } function Person(){ this.name = 'zbl', this.say = function(){ console.log(this.name) } } let myObject = new Person() console.log(myObject) for (var key in myObject) { console.log(key); } for (var key in myObject) { if (myObject.hasOwnProperty(key)) console.log(key); } </script> </html>
{ "content_hash": "ee8fc800c3fe2f3d969682aa5384511d", "timestamp": "", "source": "github", "line_count": 34, "max_line_length": 34, "avg_line_length": 13.058823529411764, "alnum_prop": 0.6238738738738738, "repo_name": "zhaobinglong/test", "id": "9c813e1071a3f282fcafe5ab7ca8fa2b7fe5a9d0", "size": "444", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "timeout.html", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "2153" }, { "name": "HTML", "bytes": "29352" }, { "name": "JavaScript", "bytes": "2606" }, { "name": "PHP", "bytes": "570" } ], "symlink_target": "" }