text
stringlengths
101
197k
meta
stringlengths
167
272
// Copyright (c) 2019 Hugo Amiard hugo.amiard@laposte.net // This software is licensed under the terms of the GNU General Public License v3.0. // See the attached LICENSE.txt file or https://www.gnu.org/licenses/gpl-3.0.en.html. // This notice and the license may not be removed or altered from any source distribution. #include <core/Event/EventRelay.h> #include <core/World/World.h> #include <core/Entity/Entity.h> #include <core/Event/Event.h> #include <core/Event/EventTube.h> using namespace two; namespace toy { EventRelay::EventRelay(Entity& entity) : m_entity(entity) , m_abstractEventTube() , m_eventTubes() {} void EventRelay::subscribeEvent(EventSubscriber& subscriber) { for(EventTube* tube : m_eventTubes) tube->subscribe(subscriber); } void EventRelay::subscribeReceived(EventSubscriber& subscriber) { m_receivedSubscribers.insert(&subscriber); for(EventTubeEnd* tubeEnd : m_eventTubeEnds) tubeEnd->subscribe(subscriber); } void EventRelay::sendEvent(Event& event) { //mEventWorld->dispatch(event); m_abstractEventTube.dispatch(event); for(EventTube* tube : m_eventTubes) tube->dispatch(event); // @todo : collapse all same events that arrived through different tubes into one ? } void EventRelay::appendEventTube(EventTube& tube) { m_eventTubes.insert(&tube); } void EventRelay::removeEventTube(EventTube& tube) { m_eventTubes.erase(&tube); } void EventRelay::appendEventTubeEnd(EventTubeEnd& tube) { m_eventTubeEnds.insert(&tube); for(EventSubscriber* sub : m_receivedSubscribers) tube.subscribe(*sub); } void EventRelay::removeEventTubeEnd(EventTubeEnd& tube) { m_eventTubeEnds.erase(&tube); } }
{'repo_name': 'hugoam/toy', 'stars': '1312', 'repo_language': 'C++', 'file_name': 'blendish_clear.yml', 'mime_type': 'text/plain', 'hash': -5485772975490595973, 'source_dataset': 'data'}
/* - * Freeplane - mind map editor * Copyright (C) 2008 Joerg Mueller, Daniel Polansky, Christian Foltin, Dimitry Polivaev * * This file is modified by Dimitry Polivaev in 2008. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package org.freeplane.features.clipboard.mindmapmode; import java.awt.event.ActionEvent; import org.freeplane.core.ui.AFreeplaneAction; import org.freeplane.features.clipboard.ClipboardController; import org.freeplane.features.map.NodeModel; import org.freeplane.features.mode.Controller; class PasteAction extends AFreeplaneAction { private static final long serialVersionUID = 1L; public PasteAction() { super("PasteAction"); } public void actionPerformed(final ActionEvent e) { final MClipboardController clipboardController = (MClipboardController) ClipboardController .getController(); final NodeModel parent = Controller.getCurrentController().getSelection().getSelected(); clipboardController.paste(clipboardController.getClipboardContents(), parent, false, parent.isNewChildLeft()); } }
{'repo_name': 'BeelGroup/Docear-Desktop', 'stars': '251', 'repo_language': 'Java', 'file_name': 'MANIFEST.MF', 'mime_type': 'text/plain', 'hash': -1682420131445303529, 'source_dataset': 'data'}
// // asio_ssl.cpp // ~~~~~~~~~~~~ // // Copyright (c) 2003-2020 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include "asio/ssl/impl/src.hpp"
{'repo_name': 'chriskohlhoff/asio', 'stars': '2334', 'repo_language': 'C++', 'file_name': 'start_member.hpp', 'mime_type': 'text/x-c++', 'hash': 745659778687576717, 'source_dataset': 'data'}
/* * Copyright 2009 Google Inc. * * 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. */ package com.google.common.css.compiler.passes; import static com.google.common.truth.Truth.assertThat; import static org.mockito.Matchers.eq; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import com.google.common.css.SourceCodeLocation; import com.google.common.css.compiler.ast.BackDoorNodeMutation; import com.google.common.css.compiler.ast.CssBlockNode; import com.google.common.css.compiler.ast.CssCompositeValueNode; import com.google.common.css.compiler.ast.CssConstantReferenceNode; import com.google.common.css.compiler.ast.CssDeclarationNode; import com.google.common.css.compiler.ast.CssDefinitionNode; import com.google.common.css.compiler.ast.CssLiteralNode; import com.google.common.css.compiler.ast.CssNode; import com.google.common.css.compiler.ast.CssNumericNode; import com.google.common.css.compiler.ast.CssPropertyNode; import com.google.common.css.compiler.ast.CssPropertyValueNode; import com.google.common.css.compiler.ast.CssRootNode; import com.google.common.css.compiler.ast.CssRulesetNode; import com.google.common.css.compiler.ast.CssSelectorNode; import com.google.common.css.compiler.ast.CssTree; import com.google.common.css.compiler.ast.ErrorManager; import com.google.common.css.compiler.ast.GssError; import com.google.common.css.compiler.ast.MutatingVisitController; import java.util.List; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.ArgumentCaptor; import org.mockito.Captor; import org.mockito.Matchers; import org.mockito.Mock; import org.mockito.Mockito; import org.mockito.runners.MockitoJUnitRunner; /** * Unit tests for {@link ReplaceConstantReferences}. * * @author oana@google.com (Oana Florescu) */ @RunWith(MockitoJUnitRunner.class) public class ReplaceConstantReferencesTest { @Mock MutatingVisitController mockVisitController; @Mock CssTree mockTree; @Mock ConstantDefinitions mockDefinitions; @Mock SourceCodeLocation mockLoc; @Mock CssConstantReferenceNode mockRefNode; @Mock ErrorManager mockErrorManager; @Captor ArgumentCaptor<List<CssNode>> cssNodesCaptor; @Test public void testRunPass() { when(mockTree.getMutatingVisitController()).thenReturn(mockVisitController); ReplaceConstantReferences pass = new ReplaceConstantReferences( mockTree, new ConstantDefinitions(), true /* removeDefs */, new DummyErrorManager(), true /* allowUndefinedConstants */); mockVisitController.startVisit(pass); pass.runPass(); } @Test public void testEnterDefinitionNode() { when(mockTree.getMutatingVisitController()).thenReturn(mockVisitController); ReplaceConstantReferences pass = new ReplaceConstantReferences( mockTree, new ConstantDefinitions(), true /* removeDefs */, new DummyErrorManager(), true /* allowUndefinedConstants */); mockVisitController.removeCurrentNode(); CssDefinitionNode node = new CssDefinitionNode(new CssLiteralNode("COLOR")); pass.enterDefinition(node); } @Test public void testEnterValueNode() { CssDefinitionNode def = new CssDefinitionNode(new CssLiteralNode("COLOR")); def.getParameters().add(new CssLiteralNode("red")); CssPropertyNode prop1 = new CssPropertyNode("padding", null); CssPropertyValueNode value1 = new CssPropertyValueNode(); BackDoorNodeMutation.addChildToBack(value1, new CssNumericNode("5", "px")); CssPropertyNode prop2 = new CssPropertyNode("color", null); CssPropertyValueNode value2 = new CssPropertyValueNode(); CssConstantReferenceNode ref = new CssConstantReferenceNode("COLOR", null); BackDoorNodeMutation.addChildToBack(value2, ref); CssDeclarationNode decl1 = new CssDeclarationNode(prop1); decl1.setPropertyValue(value1); CssDeclarationNode decl2 = new CssDeclarationNode(prop2); decl2.setPropertyValue(value2); CssRulesetNode ruleset = new CssRulesetNode(); CssSelectorNode sel = new CssSelectorNode("foo", null); ruleset.addSelector(sel); ruleset.addDeclaration(decl1); ruleset.addDeclaration(decl2); CssBlockNode body = new CssBlockNode(false); BackDoorNodeMutation.addChildToBack(body, ruleset); CssRootNode root = new CssRootNode(body); CssTree tree = new CssTree(null, root); ConstantDefinitions constantDefinitions = new ConstantDefinitions(); constantDefinitions.addConstantDefinition(def); ReplaceConstantReferences pass = new ReplaceConstantReferences(tree, constantDefinitions, true /* removeDefs */, new DummyErrorManager(), true /* allowUndefinedConstants */); pass.runPass(); assertThat(tree.getRoot().getBody().toString()) .isEqualTo("[[foo]{[padding:[5px], color:[red]]}]"); } // TODO(oana): Added a task in tracker for fixing these dependencies and // making the mocking of objects easier. @Test public void testEnterArgumentNode() { CssDefinitionNode def = new CssDefinitionNode(new CssLiteralNode("COLOR")); when(mockTree.getMutatingVisitController()).thenReturn(mockVisitController); when(mockDefinitions.getConstantDefinition("COLOR")).thenReturn(def); ReplaceConstantReferences pass = new ReplaceConstantReferences( mockTree, mockDefinitions, true /* removeDefs */, new DummyErrorManager(), true /* allowUndefinedConstants */); CssConstantReferenceNode node = new CssConstantReferenceNode("COLOR", null); pass.enterArgumentNode(node); Mockito.verify(mockVisitController) .replaceCurrentBlockChildWith(cssNodesCaptor.capture(), eq(true)); assertThat(cssNodesCaptor.getValue()).hasSize(1); assertThat(cssNodesCaptor.getValue().get(0).getClass()).isEqualTo(CssCompositeValueNode.class); } @Test public void testAllowUndefinedConstants() { when(mockRefNode.getValue()).thenReturn("Foo"); when(mockRefNode.getSourceCodeLocation()).thenReturn(mockLoc); ReplaceConstantReferences allowingPass = new ReplaceConstantReferences( mockTree, mockDefinitions, true /* removeDefs */, mockErrorManager, true /* allowUndefinedConstants */); allowingPass.replaceConstantReference(mockRefNode); // This should not cause an error to be reported. verify(mockErrorManager, times(0)).report(Matchers.<GssError>any()); } @Test public void testAllowUndefinedConstantsError() { when(mockRefNode.getValue()).thenReturn("Foo"); when(mockRefNode.getSourceCodeLocation()).thenReturn(mockLoc); ReplaceConstantReferences nonAllowingPass = new ReplaceConstantReferences( mockTree, mockDefinitions, true /* removeDefs */, mockErrorManager, false /* allowUndefinedConstants */); nonAllowingPass.replaceConstantReference(mockRefNode); // This should cause an error to be reported. verify(mockErrorManager).report(Matchers.<GssError>any()); } }
{'repo_name': 'google/closure-stylesheets', 'stars': '293', 'repo_language': 'Java', 'file_name': 'NewFunctionalTestBase.java', 'mime_type': 'text/x-java', 'hash': -474480046162450523, 'source_dataset': 'data'}
/* * Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. */ // This file was automatically generated from cancellation-and-timeouts.md by Knit tool. Do not edit. package kotlinx.coroutines.guide.exampleCancel01 import kotlinx.coroutines.* fun main() = runBlocking { val job = launch { repeat(1000) { i -> println("job: I'm sleeping $i ...") delay(500L) } } delay(1300L) // delay a bit println("main: I'm tired of waiting!") job.cancel() // cancels the job job.join() // waits for job's completion println("main: Now I can quit.") }
{'repo_name': 'Kotlin/kotlinx.coroutines', 'stars': '7815', 'repo_language': 'Kotlin', 'file_name': 'Result.kt', 'mime_type': 'text/plain', 'hash': -4119484125472466824, 'source_dataset': 'data'}
/* * Copyright (C) 2010 The Android Open Source Project * * 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. */ package com.android.contacts.vcard; import android.accounts.Account; import android.net.Uri; import com.android.contacts.model.account.AccountWithDataSet; import com.android.vcard.VCardSourceDetector; /** * Class representing one request for importing vCard (given as a Uri). * * Mainly used when {@link ImportVCardActivity} requests {@link VCardService} * to import some specific Uri. * * Note: This object's accepting only One Uri does NOT mean that * there's only one vCard entry inside the instance, as one Uri often has multiple * vCard entries inside it. */ public class ImportRequest { /** * Can be null (typically when there's no Account available in the system). */ public final Account account; /** * Uri to be imported. May have different content than originally given from users, so * when displaying user-friendly information (e.g. "importing xxx.vcf"), use * {@link #displayName} instead. * * If this is null {@link #data} contains the byte stream of the vcard. */ public final Uri uri; /** * Holds the byte stream of the vcard, if {@link #uri} is null. */ public final byte[] data; /** * String to be displayed to the user to indicate the source of the VCARD. */ public final String displayName; /** * Can be {@link VCardSourceDetector#PARSE_TYPE_UNKNOWN}. */ public final int estimatedVCardType; /** * Can be null, meaning no preferable charset is available. */ public final String estimatedCharset; /** * Assumes that one Uri contains only one version, while there's a (tiny) possibility * we may have two types in one vCard. * * e.g. * BEGIN:VCARD * VERSION:2.1 * ... * END:VCARD * BEGIN:VCARD * VERSION:3.0 * ... * END:VCARD * * We've never seen this kind of a file, but we may have to cope with it in the future. */ public final int vcardVersion; /** * The count of vCard entries in {@link #uri}. A receiver of this object can use it * when showing the progress of import. Thus a receiver must be able to torelate this * variable being invalid because of vCard's limitation. * * vCard does not let us know this count without looking over a whole file content, * which means we have to open and scan over {@link #uri} to know this value, while * it may not be opened more than once (Uri does not require it to be opened multiple times * and may become invalid after its close() request). */ public final int entryCount; public ImportRequest(AccountWithDataSet account, byte[] data, Uri uri, String displayName, int estimatedType, String estimatedCharset, int vcardVersion, int entryCount) { this.account = account != null ? account.getAccountOrNull() : null; this.data = data; this.uri = uri; this.displayName = displayName; this.estimatedVCardType = estimatedType; this.estimatedCharset = estimatedCharset; this.vcardVersion = vcardVersion; this.entryCount = entryCount; } }
{'repo_name': 'aosp-mirror/platform_packages_apps_contacts', 'stars': '285', 'repo_language': 'Java', 'file_name': 'test.sh', 'mime_type': 'text/x-shellscript', 'hash': 1986773448605138563, 'source_dataset': 'data'}
package io.fabric8.servicecatalog.examples; /** * Copyright (C) 2015 Red Hat, Inc. * * 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. */ import io.fabric8.servicecatalog.api.model.ClusterServiceClassList; import io.fabric8.servicecatalog.client.ServiceCatalogClient; public class ListServiceClasses { public static void main(String[] args) { ServiceCatalogClient client = ClientFactory.newClient(args); System.out.println("Listing Cluster Service Classes:"); ClusterServiceClassList list = client.clusterServiceClasses().list(); list.getItems().stream() .forEach(b -> { System.out.println(b.getSpec().getClusterServiceBrokerName() + "\t\t" + b.getSpec().getExternalName() + "\t\t\t\t" + b.getMetadata().getName()); }); System.out.println("Done"); } }
{'repo_name': 'fabric8io/kubernetes-client', 'stars': '1437', 'repo_language': 'Java', 'file_name': 'StarList.java', 'mime_type': 'text/x-java', 'hash': -6484085143469133711, 'source_dataset': 'data'}
{ "a": "http://www.google.com?search=noprivacy", "b": "http://www.google.com?search=noprivacy" }
{'repo_name': 'sksamuel/hoplite', 'stars': '222', 'repo_language': 'Kotlin', 'file_name': 'com.sksamuel.hoplite.decoder.Decoder', 'mime_type': 'text/plain', 'hash': 7495322746298575795, 'source_dataset': 'data'}
# make sure that your dns has a cname set for pydio-cells server { listen 443 ssl; listen [::]:443 ssl; server_name pydio-cells.*; include /config/nginx/ssl.conf; client_max_body_size 0; # enable for ldap auth, fill in ldap details in ldap.conf #include /config/nginx/ldap.conf; # enable for Authelia #include /config/nginx/authelia-server.conf; location / { # enable the next two lines for http auth #auth_basic "Restricted"; #auth_basic_user_file /config/nginx/.htpasswd; # enable the next two lines for ldap auth #auth_request /auth; #error_page 401 =200 /ldaplogin; # enable for Authelia #include /config/nginx/authelia-location.conf; include /config/nginx/proxy.conf; resolver 127.0.0.11 valid=30s; set $upstream_app pydio-cells; set $upstream_port 8080; set $upstream_proto https; proxy_pass $upstream_proto://$upstream_app:$upstream_port; } location /ws { # enable the next two lines for http auth #auth_basic "Restricted"; #auth_basic_user_file /config/nginx/.htpasswd; # enable the next two lines for ldap auth #auth_request /auth; #error_page 401 =200 /ldaplogin; # enable for Authelia #include /config/nginx/authelia-location.conf; include /config/nginx/proxy.conf; resolver 127.0.0.11 valid=30s; set $upstream_app pydio-cells; set $upstream_port 8080; set $upstream_proto https; proxy_pass $upstream_proto://$upstream_app:$upstream_port; proxy_buffering off; } }
{'repo_name': 'linuxserver/reverse-proxy-confs', 'stars': '251', 'repo_language': 'None', 'file_name': 'allowed_names.yml', 'mime_type': 'text/plain', 'hash': 4127496777786250092, 'source_dataset': 'data'}
import { Observable } from 'rxjs'; import { User } from './user'; import { Message } from './message'; export interface IFileUploadAdapter { uploadFile(file: File, participantId: any): Observable<Message>; }
{'repo_name': 'rpaschoal/ng-chat', 'stars': '111', 'repo_language': 'TypeScript', 'file_name': 'app.e2e-spec.ts', 'mime_type': 'text/x-java', 'hash': -5875596455712882967, 'source_dataset': 'data'}
$MeshFormat 2.1 0 8 $EndMeshFormat $Nodes 552 1 0.1 -0.3 0 2 0.6 -0.3 0 3 0.1 0.1 0 4 0.6 0.1 0 5 0.1208333333332611 -0.3 0 6 0.1416666666665221 -0.3 0 7 0.1624999999997832 -0.3 0 8 0.1833333333330442 -0.3 0 9 0.2041666666663053 -0.3 0 10 0.2249999999995663 -0.3 0 11 0.2458333333328274 -0.3 0 12 0.2666666666660884 -0.3 0 13 0.2874999999993495 -0.3 0 14 0.3083333333326105 -0.3 0 15 0.3291666666658716 -0.3 0 16 0.3499999999991327 -0.3 0 17 0.3708333333324515 -0.3 0 18 0.3916666666657704 -0.3 0 19 0.4124999999990893 -0.3 0 20 0.4333333333324082 -0.3 0 21 0.454166666665727 -0.3 0 22 0.4749999999990459 -0.3 0 23 0.4958333333325383 -0.3 0 24 0.5166666666660306 -0.3 0 25 0.5374999999995229 -0.3 0 26 0.5583333333330153 -0.3 0 27 0.5791666666665076 -0.3 0 28 0.1208333333332611 0.1 0 29 0.1416666666665221 0.1 0 30 0.1624999999997832 0.1 0 31 0.1833333333330442 0.1 0 32 0.2041666666663053 0.1 0 33 0.2249999999995663 0.1 0 34 0.2458333333328274 0.1 0 35 0.2666666666660884 0.1 0 36 0.2874999999993495 0.1 0 37 0.3083333333326105 0.1 0 38 0.3291666666658716 0.1 0 39 0.3499999999991327 0.1 0 40 0.3708333333324515 0.1 0 41 0.3916666666657704 0.1 0 42 0.4124999999990893 0.1 0 43 0.4333333333324082 0.1 0 44 0.454166666665727 0.1 0 45 0.4749999999990459 0.1 0 46 0.4958333333325383 0.1 0 47 0.5166666666660306 0.1 0 48 0.5374999999995229 0.1 0 49 0.5583333333330153 0.1 0 50 0.5791666666665076 0.1 0 51 0.1 -0.2789473684211074 0 52 0.1 -0.2578947368422148 0 53 0.1 -0.2368421052633222 0 54 0.1 -0.2157894736844296 0 55 0.1 -0.1947368421055279 0 56 0.1 -0.1736842105265988 0 57 0.1 -0.1526315789476697 0 58 0.1 -0.1315789473687406 0 59 0.1 -0.1105263157898115 0 60 0.1 -0.08947368421084587 0 61 0.1 -0.06842105263184373 0 62 0.1 -0.04736842105284156 0 63 0.1 -0.02631578947383945 0 64 0.1 -0.005263157894837278 0 65 0.1 0.01578947368413747 0 66 0.1 0.03684210526310311 0 67 0.1 0.05789473684206875 0 68 0.1 0.07894736842103439 0 69 0.6 -0.2789473684211074 0 70 0.6 -0.2578947368422148 0 71 0.6 -0.2368421052633222 0 72 0.6 -0.2157894736844296 0 73 0.6 -0.1947368421055279 0 74 0.6 -0.1736842105265988 0 75 0.6 -0.1526315789476697 0 76 0.6 -0.1315789473687406 0 77 0.6 -0.1105263157898115 0 78 0.6 -0.08947368421084587 0 79 0.6 -0.06842105263184373 0 80 0.6 -0.04736842105284156 0 81 0.6 -0.02631578947383945 0 82 0.6 -0.005263157894837278 0 83 0.6 0.01578947368413747 0 84 0.6 0.03684210526310311 0 85 0.6 0.05789473684206875 0 86 0.6 0.07894736842103439 0 87 0.2470719077479455 -0.08137746849645747 0 88 0.3054058064435218 -0.1012342697436091 0 89 0.4380697339231016 -0.0827118221232104 0 90 0.3807942613624612 -0.09678276730759705 0 91 0.5198469101507254 -0.1231687440773327 0 92 0.1802622630417262 -0.123171984374864 0 93 0.4825700977066876 -0.2070684945454482 0 94 0.2015298637981154 -0.006993569505099995 0 95 0.2165436539135884 -0.2017891299473061 0 96 0.5204030848169011 -0.2175389816731 0 97 0.1874205002459193 0.02891264865738236 0 98 0.1763264909436028 -0.2205792713186028 0 99 0.1654833561015513 0.04021905283900101 0 100 0.1628145777279844 -0.2342731739828429 0 101 0.5320703325620801 0.03736745274485404 0 102 0.1189937521102307 0.06892609331402982 0 103 0.5810058730852516 0.06892610391816889 0 104 0.5835638075422199 -0.2651991384269491 0 105 0.2790859505232555 -0.1898971686883984 0 106 0.3192244036865693 -0.1988121468199329 0 107 0.387263330538928 -0.1888443385362997 0 108 0.3437254937791907 -0.1998696557697752 0 109 0.3347408414814464 -0.02763455676175131 0 110 0.3003960377931847 0.001113778029359358 0 111 0.3794612890415798 -0.004964897638084942 0 112 0.2617711321386343 0.002723371253666118 0 113 0.2451823476113867 -0.2602732211099869 0 114 0.1832187596039515 -0.07280090247561771 0 115 0.516705735256796 -0.07281741773760697 0 116 0.4634798923975467 -0.15153968344229 0 117 0.2365231641201183 -0.1419063810242819 0 118 0.4729056839404947 -0.05467848701170441 0 119 0.4682429113758851 0.05483288406416553 0 120 0.2279521428057974 0.04934382519953762 0 121 0.4573001234641445 -0.248854286806804 0 122 0.2221082629691096 -0.2583174609067478 0 123 0.4778470795289662 -0.0990587139155909 0 124 0.2186683837114814 -0.0996928867129464 0 125 0.5594022964206263 -0.04395801020445422 0 126 0.1405724266801488 -0.04395927433734265 0 127 0.20062887066475 -0.2579607475238861 0 128 0.4987369404434219 0.05871198101497743 0 129 0.5003501315124206 -0.2537641218733945 0 130 0.5612585538931373 -0.1919010986231683 0 131 0.5542773721131288 -0.0007939083535721814 0 132 0.1457037833119315 -0.0007944138633162456 0 133 0.5587108015918932 -0.09716416749419243 0 134 0.1413107984311285 -0.09720288029856577 0 135 0.1817323872938597 -0.1726229214780654 0 136 0.5191301480116987 -0.1714711231846025 0 137 0.5578814576784318 -0.1456004511896953 0 138 0.1422158922602929 -0.1459386744175477 0 139 0.5724526303831008 0.03073084889400651 0 140 0.1275439297858139 0.03073075404948794 0 141 0.4131918220554367 -0.1126151493976764 0 142 0.5854100782110143 -0.2475916495007203 0 143 0.5854600785583737 0.04636933659691583 0 144 0.1215335301147904 -0.2466810040680078 0 145 0.1145391606516862 0.04636931553742768 0 146 0.3478817589993298 -0.1116942157170982 0 147 0.1474715579929102 0.05652193886658563 0 148 0.1541326657436418 -0.2558880173235988 0 149 0.5525186987486118 0.05652219524713581 0 150 0.296383692106492 -0.146017220508318 0 151 0.4145880145186823 -0.03727205463234201 0 152 0.4311321455285507 -0.1742926296292673 0 153 0.2636635332699749 0.0473248817014032 0 154 0.3146598861194549 0.04023374717783718 0 155 0.4351007452118419 0.04141500583359453 0 156 0.3580365457706112 0.04870705599351999 0 157 0.3136308694716773 -0.1790373984143993 0 158 0.2702324007238833 -0.2395538729946796 0 159 0.3854169827984786 -0.2464135537686218 0 160 0.382068336740565 -0.05044713274513948 0 161 0.310090619029229 -0.2475718817115574 0 162 0.2947461683999582 -0.03167967213783296 0 163 0.2678186396306346 -0.1248905079285385 0 164 0.3649507914904094 -0.1501421863408875 0 165 0.3444788268639593 -0.07002643238559164 0 166 0.3222677957187681 -0.06952312580561676 0 167 0.3317467879693237 -0.1704787909334478 0 168 0.4504712142226927 -0.04424826882537825 0 169 0.2564259357085437 -0.04181863002114222 0 170 0.4550608719704144 -0.178787274551921 0 171 0.4850348383381963 0.01806653735461716 0 172 0.2602171723662765 -0.1595076030010912 0 173 0.2237299587107645 -0.1808100049645664 0 174 0.5347712792554061 -0.03112529487482307 0 175 0.1651542866344013 -0.03112598512087633 0 176 0.2584495932589829 -0.2220086368379338 0 177 0.4696627122385009 -0.02883447515053511 0 178 0.235532611614233 -0.02646548990050201 0 179 0.3423185622406266 0.01195478675571393 0 180 0.4266224365883683 -0.1284932778163518 0 181 0.2304274506617864 0.009501860026812525 0 182 0.4606115894802353 -0.1123931953172367 0 183 0.4779092664012362 -0.1837945873312068 0 184 0.2383915397252227 -0.102823678673501 0 185 0.1882872624215261 -0.04578338937091009 0 186 0.5149704931383053 -0.04820288963204311 0 187 0.2407163518851088 0.02409921070413162 0 188 0.4190093996273253 0.00892740689825855 0 189 0.451662772368407 -0.230377427480022 0 190 0.2415447630610819 -0.202946736051072 0 191 0.1599316915193432 -0.1597368199399238 0 192 0.5404206058567622 -0.1592563737198348 0 193 0.2569820637951829 0.07999017628715432 0 194 0.5414933406809067 -0.1090260399059521 0 195 0.1585471262723042 -0.1090573884819125 0 196 0.4445425957085896 0.08090881199418581 0 197 0.4896962222767453 0.04404914586342029 0 198 0.2044208309265129 0.04978763190867314 0 199 0.2057601134422185 -0.1605539077618815 0 200 0.2024051576984777 -0.1879125837023813 0 201 0.4945989582600112 -0.164093080572191 0 202 0.4571350989461092 -0.2128889121531545 0 203 0.1384055182774142 -0.174519330613215 0 204 0.5575928256294952 -0.1698628075286041 0 205 0.5367533516397638 -0.05823733230119735 0 206 0.1631979286313223 -0.05823485558085245 0 207 0.4095248868877049 -0.2170486548294097 0 208 0.5393057793282089 -0.08408122103645879 0 209 0.1606822856937659 -0.08408608124385453 0 210 0.5415479047071574 -0.134029401468623 0 211 0.1586432300182706 -0.1342604708046178 0 212 0.2007330693685805 -0.1331862443565051 0 213 0.4951459574517622 -0.1366534637096468 0 214 0.148361763293995 -0.0214154550044261 0 215 0.551610261401662 -0.02141486335099324 0 216 0.2105593006119023 -0.02319633085624306 0 217 0.1800077423995289 -0.09761590440942769 0 218 0.5199658559830188 -0.0976471578547182 0 219 0.5335763403406618 -0.005990808310083251 0 220 0.1650229342466775 -0.005918582790681415 0 221 0.1420369139604128 -0.1206045967119691 0 222 0.5580392764563916 -0.1204792369475866 0 223 0.4817841780657586 -0.1180466665833448 0 224 0.2189305015320431 -0.1179410837029307 0 225 0.4992848055436896 -0.1883455199774064 0 226 0.4798292485157329 -0.2543563749259062 0 227 0.491440950544442 -0.2313428110743826 0 228 0.5770235183546231 0.005925276491096254 0 229 0.1229719271092318 0.005925130330095008 0 230 0.1933854823498121 -0.2782676627958575 0 231 0.2799254084445171 0.01136488368166572 0 232 0.4676294127195404 0.07917997870032589 0 233 0.2359220176393671 0.08207389855414837 0 234 0.1814572863726601 -0.1477470992952904 0 235 0.1594070730018736 -0.1869650742746907 0 236 0.5383003908396882 -0.1822526092274951 0 237 0.1373764931764753 -0.07088559646655707 0 238 0.5626145793837435 -0.07087684542590444 0 239 0.5188670404570978 -0.1477445518941722 0 240 0.4996411157626124 -0.1104935267377833 0 241 0.2001427282969873 -0.1098934071100772 0 242 0.1801722808582999 -0.1984524461312528 0 243 0.5194741146852119 -0.195615106777291 0 244 0.2880197303451612 -0.2089113565489933 0 245 0.5132029750226569 0.05075070718581048 0 246 0.1817723075726017 0.04987151470149254 0 247 0.4956795861748466 -0.06322610978849294 0 248 0.2073462435879014 -0.06553295549931695 0 249 0.4753825905749132 -0.07693326431910583 0 250 0.2188941867582095 -0.08132182130733684 0 251 0.3560292297653906 -0.02538091283425259 0 252 0.3909873875037051 -0.1148656838693399 0 253 0.4366621795010527 -0.1052599015848514 0 254 0.1615610745708875 -0.2116555990534352 0 255 0.5405571904312237 -0.2089474504998186 0 256 0.2332316876291905 -0.08643737850052596 0 257 0.182914339430918 0.006461469723815672 0 258 0.2310652080501569 -0.06697552341442756 0 259 0.4985550681668193 -0.08652128449448837 0 260 0.2012050595596787 -0.08633266615724927 0 261 0.5824909171979321 -0.036852836900579 0 262 0.1175021543154942 -0.03685337686312096 0 263 0.197443899141035 -0.216502492109265 0 264 0.487038802679724 0.06679085646457367 0 265 0.530726927584745 -0.2323119596450132 0 266 0.1993170955177949 0.07809717436735908 0 267 0.5041995514042518 0.08082875602526257 0 268 0.5428468156153935 0.01633778597829938 0 269 0.1629341725153253 0.017923692290994 0 270 0.5635755466339785 -0.2124337956237184 0 271 0.1251805973208769 -0.2228048761642643 0 272 0.1863084709505568 -0.2405697458137157 0 273 0.5030168987116159 -0.2129535849715932 0 274 0.3675120257512331 -0.2068182504361809 0 275 0.25686637968739 -0.2802761980599133 0 276 0.5862723680778825 0.02504408643147388 0 277 0.1137274780979562 0.02504408239342404 0 278 0.1714610131559637 -0.2579628524310755 0 279 0.5782913092194693 -0.228391520205303 0 280 0.5173799561532465 -0.2671418414042163 0 281 0.4494721725739133 -0.2835827436694323 0 282 0.5370734843178807 -0.2801497243047565 0 283 0.1593400542233345 -0.2781651816142711 0 284 0.1413434304305956 0.01620554553172976 0 285 0.5586477876493181 0.01620578688571717 0 286 0.5636336482017106 0.06740736467477115 0 287 0.1215534795913843 -0.2675612781311328 0 288 0.1363619062594731 0.0674072500764466 0 289 0.5149819318026856 0.06733882389802731 0 290 0.1849270212969133 0.06454495124718679 0 291 0.5311254375152917 0.06244125652192156 0 292 0.1688501764097003 0.06242411191950437 0 293 0.143541284355881 -0.2386296995685909 0 294 0.1867097904335954 -0.2627025000011893 0 295 0.5546955455456238 0.03673021982803631 0 296 0.1452910417903854 0.0367298508233751 0 297 0.1156815080701525 0.08670168902463288 0 298 0.5843182977128956 0.08670169451950488 0 299 0.3237587291321095 -0.1075642455009612 0 300 0.3681057939284768 0.0301784725846817 0 301 0.2762774702751046 0.06496007582201724 0 302 0.3478738301065293 -0.1797026739954325 0 303 0.3140231231857372 -0.2288176321183975 0 304 0.3488703448396974 0.02976713824299132 0 305 0.3827698985311671 -0.2644155069715744 0 306 0.2956406430826921 0.02412599743795762 0 307 0.3877438679418611 0.03109086685660661 0 308 0.3194589947215258 0.07518403149153546 0 309 0.2901431717442604 -0.1707102898926918 0 310 0.3478338853939874 -0.2415627160714393 0 311 0.2910057877467748 -0.05564003781646282 0 312 0.3128177229794354 0.01944470965623574 0 313 0.397364003148205 -0.01935820703307306 0 314 0.3980141667344105 -0.1651977621440555 0 315 0.3297339350647762 0.02688735292989453 0 316 0.3373743880628577 0.04515445878343649 0 317 0.3793550401124548 -0.02762190857886171 0 318 0.43027884780404 -0.05995275247488185 0 319 0.4123238823377445 -0.01049947918902278 0 320 0.4489298632289699 -0.1609142797793623 0 321 0.3801438896658932 -0.07332710287948313 0 322 0.2775443872500318 -0.1545300975889424 0 323 0.3779253958899513 -0.1676923884743768 0 324 0.3074319044628698 -0.1242600159451257 0 325 0.2902053826971753 0.04699940253626361 0 326 0.3885727530591737 -0.2128666826587368 0 327 0.1184348881212325 -0.01867058938835825 0 328 0.5815622920193261 -0.01867042151261827 0 329 0.4159481216598044 -0.2861847245971875 0 330 0.264827705930688 -0.1428087962384344 0 331 0.3699949380923762 -0.1154542484306769 0 332 0.2515179376813041 -0.1333321414087978 0 333 0.3779782892187462 -0.1322748200528393 0 334 0.4786933441064701 -0.2809249145226345 0 335 0.4078949835853682 -0.06286024332217924 0 336 0.2775434527311128 0.03224832754650192 0 337 0.4313059608597757 -0.1501128509621149 0 338 0.3284264743227941 -0.2504861283914895 0 339 0.2592599008826436 -0.01951635330575408 0 340 0.4085632986984312 -0.1811788371383644 0 341 0.4075006205889878 0.03078657791346423 0 342 0.2984982974792999 -0.2292466379135067 0 343 0.416998496514623 -0.2373580581312496 0 344 0.3474164366637032 -0.160627366118885 0 345 0.3916914669379127 -0.06279186921429208 0 346 0.4336178913146358 -0.2171584841251336 0 347 0.3609366369303569 0.009013645057837416 0 348 0.3589361976495119 -0.1302942742821778 0 349 0.4018034560616576 -0.253846603291459 0 350 0.5851199273624909 -0.07409792156921485 0 351 0.1148789742363733 -0.07410265148839218 0 352 0.3762813941892997 0.04726207549444023 0 353 0.3445015999744213 -0.007645960943807928 0 354 0.4330465542374927 -0.01764742381140755 0 355 0.3712266440262721 -0.2309404456265208 0 356 0.2367127436777742 -0.1244714240448793 0 357 0.2399877132698292 -0.2263234996608563 0 358 0.3963128826375437 -0.2332062881041287 0 359 0.3892238334344216 -0.1486847430910197 0 360 0.3600980843285077 -0.08183319943784845 0 361 0.4208453141488814 -0.1963416012750623 0 362 0.3993029922718296 -0.0986539596482276 0 363 0.43691721759461 0.05930178718823226 0 364 0.4268594773607396 0.0263554511145101 0 365 0.2837693614115718 -0.1303874322015937 0 366 0.2680339734408866 -0.2070410573920922 0 367 0.3346213824849245 -0.05002936488232471 0 368 0.3318799681758446 -0.1877370536223426 0 369 0.3659241231792917 -0.2528598871796974 0 370 0.221664115437801 0.03057449093109949 0 371 0.3591123670238647 -0.05828127019749546 0 372 0.1386388884167461 -0.2568375004300809 0 373 0.4694552583722905 -0.1662815029076221 0 374 0.4167503287836993 -0.162910340931928 0 375 0.2758564452960229 -0.03721507577157912 0 376 0.1250869638309363 -0.1546200335389243 0 377 0.273654274217309 -0.1091176587594838 0 378 0.2287568943740908 -0.1578717714060935 0 379 0.5790094382176659 -0.1595653757508888 0 380 0.2812512535028651 -0.01285271689098855 0 381 0.2343770145792093 -0.2779292419571518 0 382 0.4624327448853782 -0.27082257483671 0 383 0.3650322141443969 -0.01081845109455953 0 384 0.3147445954159115 -0.01724144118643633 0 385 0.3128919544243079 -0.1605609513027727 0 386 0.4480137208835026 -0.1410474705955659 0 387 0.5671392917518243 -0.02765692129406805 0 388 0.13284963124034 -0.02765731426650581 0 389 0.3017812258086763 -0.07803572097509906 0 390 0.4572977549276672 -0.0905175862514101 0 391 0.2596739085087594 0.02399427857884567 0 392 0.3965698041612297 -0.08003966418592079 0 393 0.4462393603140938 0.02667214741572049 0 394 0.2470030260636412 -0.1749176718498492 0 395 0.2614786022810033 -0.1905524734091 0 396 0.4538981489749822 0.06362019328434887 0 397 0.4495978210454092 0.04814420100953215 0 398 0.4568131475743373 -0.0127433040596916 0 399 0.4790399286715761 -0.1506380560115749 0 400 0.3217020849367068 -0.1426864315174425 0 401 0.4032617700220035 -0.1995963639305325 0 402 0.435610704330085 -0.03774971575097019 0 403 0.4192641338172197 0.05090155929347451 0 404 0.2533613328906044 -0.2416645127720604 0 405 0.2873983651779671 -0.2460470035774236 0 406 0.2481409834226865 -0.1517240608214247 0 407 0.3968104565872232 0.006444942462022374 0 408 0.3433026865583973 -0.1441985669445826 0 409 0.4374523122078284 0.004461737993574078 0 410 0.454351121232331 -0.06747673360678344 0 411 0.3648777290866666 -0.03996858832826466 0 412 0.1219197890337412 -0.1126310414020587 0 413 0.5781056448582823 -0.1125813943143051 0 414 0.2540285253378048 -0.1150170495365831 0 415 0.2312000243781364 -0.2411436733940649 0 416 0.3396018612498287 -0.09057782888722404 0 417 0.4106091685960598 -0.1480717752822652 0 418 0.3963998654041049 -0.04414071220187971 0 419 0.4488638357939765 -0.1235860030055168 0 420 0.2996852384433821 -0.1935337587203062 0 421 0.1766846873222137 -0.2795479892086654 0 422 0.553318977393653 -0.2320757100570558 0 423 0.5663225471281128 -0.01252216760403108 0 424 0.1336643986153462 -0.01252252843850227 0 425 0.3584549436442821 -0.09910985152207424 0 426 0.20894509356459 -0.2392883368623654 0 427 0.2785939249083977 -0.2275239254273334 0 428 0.5807584921994017 -0.09245338813404572 0 429 0.1192476758129531 -0.09247036160937186 0 430 0.468118396912116 -0.1328597369932328 0 431 0.3314119901104878 -0.1557104213634261 0 432 0.4178004186731393 -0.08604968648697001 0 433 0.1747990722411374 0.08082946309006411 0 434 0.5252102406422638 0.08085877273283898 0 435 0.3239774453503643 0.003140705388990528 0 436 0.4965918336843311 -0.2740436415931158 0 437 0.1218765931808972 -0.1363341453978184 0 438 0.578044045894423 -0.1361944353417987 0 439 0.4658061604528562 0.03203291456631308 0 440 0.5667319726254546 -0.2491016766145728 0 441 0.4623294454932818 -0.1942627813158794 0 442 0.1408876142374954 -0.2744646106401465 0 443 0.1475579127878978 -0.2222094507404579 0 444 0.5816046200607988 -0.05692918129747301 0 445 0.1183883414014153 -0.05693172880668301 0 446 0.2226108578880435 -0.2213323113374883 0 447 0.5797488674457801 -0.1822867699391316 0 448 0.2078540015643902 0.01238766024688226 0 449 0.2212360810858042 -0.1393218020494286 0 450 0.114768974932794 -0.1747545843759475 0 451 0.2132777162047921 -0.2787458521972739 0 452 0.2696638854074868 -0.1737225983631182 0 453 0.5682944124204453 0.05111434485983907 0 454 0.1317002247650833 0.05111420044455883 0 455 0.3338355602898209 -0.126782958317898 0 456 0.4702971783555264 -0.2319729753472621 0 457 0.5475305139703596 0.07894257321022324 0 458 0.1524649899655459 0.0789358206866107 0 459 0.243663070881699 -0.006023400427532355 0 460 0.401435489566123 -0.1308342415849154 0 461 0.5163586024921024 -0.02208414484714499 0 462 0.1356055501892949 0.08536798085367436 0 463 0.5643922393521007 0.0853684232948953 0 464 0.4254580371025978 -0.003689439527149452 0 465 0.1875143928045893 -0.02001826043940608 0 466 0.3390272295195588 0.0804195878638661 0 467 0.4231917239930276 0.07652907883595578 0 468 0.4343076941402696 -0.2796474780558705 0 469 0.1205999666742913 -0.1972160661428448 0 470 0.348451299854877 0.06327558830952407 0 471 0.300463487444627 0.08067714257581554 0 472 0.3614201276680709 -0.2731033542615865 0 473 0.5806323869343822 -0.2039702851000014 0 474 0.3993084635477278 -0.2753400264891159 0 475 0.2188339680728794 0.08510638355232975 0 476 0.3603487411929295 -0.2890623824964181 0 477 0.3700631589021932 0.06391147164688787 0 478 0.2977593284257806 -0.2882283470638418 0 479 0.3074596867031508 0.06075857943813689 0 480 0.2392163212405668 -0.04865291393591931 0 481 0.4437534402683238 -0.263746659674865 0 482 0.2911866300648628 -0.1119713232131259 0 483 0.2975103392953702 -0.2682558011436676 0 484 0.2215943831886877 -0.006798211735947135 0 485 0.4859402200270201 0.08535991823803246 0 486 0.3158820537071412 -0.2840548817758419 0 487 0.4473907116655629 -0.02723028020181606 0 488 0.3226237270252517 -0.2661241027496615 0 489 0.2441439645479748 0.06093504071214656 0 490 0.318669945312813 -0.08870455602246327 0 491 0.4211834616637961 -0.2617021022020098 0 492 0.3402474776560653 -0.2822026989194442 0 493 0.4640373421146681 0.008828418029357687 0 494 0.2420796334199177 0.03934796712607519 0 495 0.3285611080993543 -0.2345496501568006 0 496 0.3777245384896862 -0.2836535450364491 0 497 0.4433534612336455 -0.1956219471750697 0 498 0.5192033729156242 -0.2499387236419888 0 499 0.3267592148340696 -0.2164565029981947 0 500 0.4639529856461069 -0.2870660466057554 0 501 0.3077016679957033 -0.2126296725198886 0 502 0.3787258762858586 0.01403056887818516 0 503 0.3650771564723788 -0.1863692822296029 0 504 0.2467570898560585 0.01035456256806727 0 505 0.2158771014306959 -0.04431114830473804 0 506 0.2700860463387685 -0.2601459542912364 0 507 0.2718728731801019 -0.08947751810794308 0 508 0.2517474092479106 -0.06221511432503929 0 509 0.2775779376360704 0.0851254789369974 0 510 0.3444126358742435 -0.2610564812622197 0 511 0.3606487221245944 -0.1689067794318369 0 512 0.4374193642656551 -0.243199503070014 0 513 0.4936215319439412 -0.03581591710878024 0 514 0.3495063438103042 -0.04004627975487346 0 515 0.540460277601195 -0.2532191061354495 0 516 0.2793981267354578 -0.2828177167597765 0 517 0.5103947823476116 -0.2342318388105872 0 518 0.3284881888751742 0.06113950738377066 0 519 0.2936015067800144 0.06334880009305827 0 520 0.2602667579720593 0.06330254363068033 0 521 0.1430314873132779 -0.2022663336821967 0 522 0.3476030619806845 -0.2216995368431519 0 523 0.221765003251721 0.06755732571569911 0 524 0.4794281628406113 -0.00650144626129523 0 525 0.2005595143171784 -0.03332728224282433 0 526 0.2047618893325101 0.03059389555589737 0 527 0.2814023849023234 -0.07526746830954451 0 528 0.2582399993086008 -0.09553732253008687 0 529 0.2701720298363758 -0.05784447357502029 0 530 0.263417767370543 -0.0769532275573486 0 531 0.4987550164993607 -0.01321099247121849 0 532 0.2877512317154054 -0.09412202482811011 0 533 0.3592546203184995 0.08267410081828219 0 534 0.3120376866076918 -0.05095409349111854 0 535 0.4023100050633032 0.07973304827238675 0 536 0.5074028815082758 0.02850138716114864 0 537 0.5016905579439696 0.007240317811589014 0 538 0.5148388065515286 -0.003907530948402738 0 539 0.4853668558806035 -0.02109070774795729 0 540 0.3825599885890572 0.0808609459311837 0 541 0.3065646354839715 -0.0625354884692001 0 542 0.5220709557536516 0.01325810073956751 0 543 0.3181781348779865 -0.03550782569189276 0 544 0.5801870548069371 -0.2855515812841702 0 545 0.3286838323563028 -0.01320007718349153 0 546 0.5613023503347262 -0.2724628014563293 0 547 0.3946520979103613 0.05630645590144001 0 548 0.2976474927183699 -0.01611339380505505 0 549 0.5168408790255917 -0.2868892012170148 0 550 0.409854490195978 0.06586753557581426 0 551 0.1225596267492156 -0.2850744902338234 0 552 0.1108482400206192 -0.2910054646637327 0 $EndNodes $Elements 1102 1 1 3 7 1 0 1 5 2 1 3 7 1 0 5 6 3 1 3 7 1 0 6 7 4 1 3 7 1 0 7 8 5 1 3 7 1 0 8 9 6 1 3 7 1 0 9 10 7 1 3 7 1 0 10 11 8 1 3 7 1 0 11 12 9 1 3 7 1 0 12 13 10 1 3 7 1 0 13 14 11 1 3 7 1 0 14 15 12 1 3 7 1 0 15 16 13 1 3 7 1 0 16 17 14 1 3 7 1 0 17 18 15 1 3 7 1 0 18 19 16 1 3 7 1 0 19 20 17 1 3 7 1 0 20 21 18 1 3 7 1 0 21 22 19 1 3 7 1 0 22 23 20 1 3 7 1 0 23 24 21 1 3 7 1 0 24 25 22 1 3 7 1 0 25 26 23 1 3 7 1 0 26 27 24 1 3 7 1 0 27 2 25 1 3 9 2 0 3 28 26 1 3 9 2 0 28 29 27 1 3 9 2 0 29 30 28 1 3 9 2 0 30 31 29 1 3 9 2 0 31 32 30 1 3 9 2 0 32 33 31 1 3 9 2 0 33 34 32 1 3 9 2 0 34 35 33 1 3 9 2 0 35 36 34 1 3 9 2 0 36 37 35 1 3 9 2 0 37 38 36 1 3 9 2 0 38 39 37 1 3 9 2 0 39 40 38 1 3 9 2 0 40 41 39 1 3 9 2 0 41 42 40 1 3 9 2 0 42 43 41 1 3 9 2 0 43 44 42 1 3 9 2 0 44 45 43 1 3 9 2 0 45 46 44 1 3 9 2 0 46 47 45 1 3 9 2 0 47 48 46 1 3 9 2 0 48 49 47 1 3 9 2 0 49 50 48 1 3 9 2 0 50 4 49 1 3 10 3 0 1 51 50 1 3 10 3 0 51 52 51 1 3 10 3 0 52 53 52 1 3 10 3 0 53 54 53 1 3 10 3 0 54 55 54 1 3 10 3 0 55 56 55 1 3 10 3 0 56 57 56 1 3 10 3 0 57 58 57 1 3 10 3 0 58 59 58 1 3 10 3 0 59 60 59 1 3 10 3 0 60 61 60 1 3 10 3 0 61 62 61 1 3 10 3 0 62 63 62 1 3 10 3 0 63 64 63 1 3 10 3 0 64 65 64 1 3 10 3 0 65 66 65 1 3 10 3 0 66 67 66 1 3 10 3 0 67 68 67 1 3 10 3 0 68 3 68 1 3 8 4 0 2 69 69 1 3 8 4 0 69 70 70 1 3 8 4 0 70 71 71 1 3 8 4 0 71 72 72 1 3 8 4 0 72 73 73 1 3 8 4 0 73 74 74 1 3 8 4 0 74 75 75 1 3 8 4 0 75 76 76 1 3 8 4 0 76 77 77 1 3 8 4 0 77 78 78 1 3 8 4 0 78 79 79 1 3 8 4 0 79 80 80 1 3 8 4 0 80 81 81 1 3 8 4 0 81 82 82 1 3 8 4 0 82 83 83 1 3 8 4 0 83 84 84 1 3 8 4 0 84 85 85 1 3 8 4 0 85 86 86 1 3 8 4 0 86 4 87 2 3 11 5 0 67 102 68 88 2 3 11 5 0 103 85 86 89 2 3 11 5 0 70 104 69 90 2 3 11 5 0 70 142 104 91 2 3 11 5 0 143 85 103 92 2 3 11 5 0 67 145 102 93 2 3 11 5 0 71 142 70 94 2 3 11 5 0 143 84 85 95 2 3 11 5 0 144 53 52 96 2 3 11 5 0 66 145 67 97 2 3 11 5 0 118 177 168 98 2 3 11 5 0 200 95 173 99 2 3 11 5 0 138 203 191 100 2 3 11 5 0 204 137 192 101 2 3 11 5 0 205 125 174 102 2 3 11 5 0 126 206 175 103 2 3 11 5 0 133 208 194 104 2 3 11 5 0 115 208 205 105 2 3 11 5 0 209 134 195 106 2 3 11 5 0 209 114 206 107 2 3 11 5 0 137 210 192 108 2 3 11 5 0 91 210 194 109 2 3 11 5 0 211 138 191 110 2 3 11 5 0 211 92 195 111 2 3 11 5 0 214 126 175 112 2 3 11 5 0 125 215 174 113 2 3 11 5 0 92 217 195 114 2 3 11 5 0 218 91 194 115 2 3 11 5 0 134 221 195 116 2 3 11 5 0 222 133 194 117 2 3 11 5 0 223 123 182 118 2 3 11 5 0 124 224 184 119 2 3 11 5 0 93 225 183 120 2 3 11 5 0 234 135 199 121 2 3 11 5 0 135 234 191 122 2 3 11 5 0 235 135 191 123 2 3 11 5 0 136 236 192 124 2 3 11 5 0 126 237 206 125 2 3 11 5 0 238 125 205 126 2 3 11 5 0 136 239 201 127 2 3 11 5 0 239 136 192 128 2 3 11 5 0 91 240 213 129 2 3 11 5 0 240 91 218 130 2 3 11 5 0 241 92 212 131 2 3 11 5 0 92 241 217 132 2 3 11 5 0 242 135 235 133 2 3 11 5 0 135 242 200 134 2 3 11 5 0 136 243 236 135 2 3 11 5 0 243 136 225 136 2 3 11 5 0 245 128 197 137 2 3 11 5 0 246 97 198 138 2 3 11 5 0 247 115 186 139 2 3 11 5 0 114 248 185 140 2 3 11 5 0 118 249 247 141 2 3 11 5 0 253 141 180 142 2 3 11 5 0 255 130 236 143 2 3 11 5 0 87 256 184 144 2 3 11 5 0 124 256 250 145 2 3 11 5 0 256 124 184 146 2 3 11 5 0 115 259 218 147 2 3 11 5 0 259 115 247 148 2 3 11 5 0 260 114 217 149 2 3 11 5 0 114 260 248 150 2 3 11 5 0 263 95 200 151 2 3 11 5 0 264 119 197 152 2 3 11 5 0 128 264 197 153 2 3 11 5 0 119 264 232 154 2 3 11 5 0 93 273 225 155 2 3 11 5 0 273 93 227 156 2 3 11 5 0 276 84 143 157 2 3 11 5 0 139 276 143 158 2 3 11 5 0 66 277 145 159 2 3 11 5 0 277 140 145 160 2 3 11 5 0 278 100 148 161 2 3 11 5 0 71 279 142 162 2 3 11 5 0 100 293 148 163 2 3 11 5 0 101 295 149 164 2 3 11 5 0 296 99 147 165 2 3 11 5 0 297 28 3 166 2 3 11 5 0 297 68 102 167 2 3 11 5 0 68 297 3 168 2 3 11 5 0 50 298 4 169 2 3 11 5 0 86 298 103 170 2 3 11 5 0 298 86 4 171 2 3 11 5 0 190 173 95 172 2 3 11 5 0 200 199 135 173 2 3 11 5 0 173 199 200 174 2 3 11 5 0 205 186 115 175 2 3 11 5 0 174 186 205 176 2 3 11 5 0 219 215 131 177 2 3 11 5 0 174 215 219 178 2 3 11 5 0 185 206 114 179 2 3 11 5 0 185 175 206 180 2 3 11 5 0 214 220 132 181 2 3 11 5 0 214 175 220 182 2 3 11 5 0 227 226 129 183 2 3 11 5 0 201 225 136 184 2 3 11 5 0 201 183 225 185 2 3 11 5 0 211 234 92 186 2 3 11 5 0 211 191 234 187 2 3 11 5 0 191 203 235 188 2 3 11 5 0 239 210 91 189 2 3 11 5 0 192 210 239 190 2 3 11 5 0 204 236 130 191 2 3 11 5 0 204 192 236 192 2 3 11 5 0 222 210 137 193 2 3 11 5 0 194 210 222 194 2 3 11 5 0 218 208 115 195 2 3 11 5 0 194 208 218 196 2 3 11 5 0 211 221 138 197 2 3 11 5 0 211 195 221 198 2 3 11 5 0 209 217 114 199 2 3 11 5 0 209 195 217 200 2 3 11 5 0 234 212 92 201 2 3 11 5 0 199 212 234 202 2 3 11 5 0 263 242 98 203 2 3 11 5 0 200 242 263 204 2 3 11 5 0 213 239 91 205 2 3 11 5 0 213 201 239 206 2 3 11 5 0 238 208 133 207 2 3 11 5 0 205 208 238 208 2 3 11 5 0 209 237 134 209 2 3 11 5 0 209 206 237 210 2 3 11 5 0 241 224 124 211 2 3 11 5 0 212 224 241 212 2 3 11 5 0 223 240 123 213 2 3 11 5 0 223 213 240 214 2 3 11 5 0 260 241 124 215 2 3 11 5 0 217 241 260 216 2 3 11 5 0 240 259 123 217 2 3 11 5 0 240 218 259 218 2 3 11 5 0 243 273 96 219 2 3 11 5 0 243 225 273 220 2 3 11 5 0 255 243 96 221 2 3 11 5 0 236 243 255 222 2 3 11 5 0 259 249 123 223 2 3 11 5 0 247 249 259 224 2 3 11 5 0 250 260 124 225 2 3 11 5 0 250 248 260 226 2 3 11 5 0 258 256 87 227 2 3 11 5 0 250 256 258 228 2 3 11 5 0 284 296 140 229 2 3 11 5 0 295 285 139 230 2 3 11 5 0 99 296 269 231 2 3 11 5 0 284 132 269 232 2 3 11 5 0 284 269 296 233 2 3 11 5 0 295 101 268 234 2 3 11 5 0 131 285 268 235 2 3 11 5 0 268 285 295 236 2 3 11 5 0 100 278 272 237 2 3 11 5 0 294 127 272 238 2 3 11 5 0 272 278 294 239 2 3 11 5 0 269 257 97 240 2 3 11 5 0 269 132 220 241 2 3 11 5 0 269 220 257 242 2 3 11 5 0 131 268 219 243 2 3 11 5 0 289 128 245 244 2 3 11 5 0 242 254 98 245 2 3 11 5 0 242 235 254 246 2 3 11 5 0 272 263 98 247 2 3 11 5 0 270 130 255 248 2 3 11 5 0 230 8 9 249 2 3 11 5 0 127 294 230 250 2 3 11 5 0 31 266 32 251 2 3 11 5 0 267 264 128 252 2 3 11 5 0 267 47 46 253 2 3 11 5 0 128 289 267 254 2 3 11 5 0 233 34 33 255 2 3 11 5 0 34 233 193 256 2 3 11 5 0 34 193 35 257 2 3 11 5 0 44 232 45 258 2 3 11 5 0 232 44 196 259 2 3 11 5 0 196 44 43 260 2 3 11 5 0 281 20 21 261 2 3 11 5 0 12 275 11 262 2 3 11 5 0 81 261 80 263 2 3 11 5 0 262 63 62 264 2 3 11 5 0 72 279 71 265 2 3 11 5 0 276 83 84 266 2 3 11 5 0 65 277 66 267 2 3 11 5 0 83 228 82 268 2 3 11 5 0 83 276 228 269 2 3 11 5 0 285 131 228 270 2 3 11 5 0 139 285 228 271 2 3 11 5 0 276 139 228 272 2 3 11 5 0 229 65 64 273 2 3 11 5 0 277 65 229 274 2 3 11 5 0 132 284 229 275 2 3 11 5 0 284 140 229 276 2 3 11 5 0 140 277 229 277 2 3 11 5 0 7 283 6 278 2 3 11 5 0 269 97 99 279 2 3 11 5 0 246 99 97 280 2 3 11 5 0 99 292 147 281 2 3 11 5 0 292 99 246 282 2 3 11 5 0 292 246 290 283 2 3 11 5 0 291 101 149 284 2 3 11 5 0 101 291 245 285 2 3 11 5 0 245 291 289 286 2 3 11 5 0 156 304 300 287 2 3 11 5 0 306 231 110 288 2 3 11 5 0 312 154 306 289 2 3 11 5 0 110 312 306 290 2 3 11 5 0 315 179 304 291 2 3 11 5 0 315 154 312 292 2 3 11 5 0 156 316 304 293 2 3 11 5 0 111 317 313 294 2 3 11 5 0 151 319 313 295 2 3 11 5 0 320 152 170 296 2 3 11 5 0 150 322 309 297 2 3 11 5 0 323 107 314 298 2 3 11 5 0 153 325 301 299 2 3 11 5 0 154 325 306 300 2 3 11 5 0 274 326 107 301 2 3 11 5 0 262 327 63 302 2 3 11 5 0 328 261 81 303 2 3 11 5 0 330 172 322 304 2 3 11 5 0 331 252 90 305 2 3 11 5 0 163 332 330 306 2 3 11 5 0 333 252 331 307 2 3 11 5 0 151 335 318 308 2 3 11 5 0 336 231 306 309 2 3 11 5 0 337 152 320 310 2 3 11 5 0 169 339 178 311 2 3 11 5 0 107 340 314 312 2 3 11 5 0 342 161 303 313 2 3 11 5 0 345 160 321 314 2 3 11 5 0 346 207 343 315 2 3 11 5 0 146 348 331 316 2 3 11 5 0 349 159 305 317 2 3 11 5 0 352 156 300 318 2 3 11 5 0 251 353 109 319 2 3 11 5 0 179 353 347 320 2 3 11 5 0 151 354 319 321 2 3 11 5 0 274 355 326 322 2 3 11 5 0 356 184 224 323 2 3 11 5 0 356 117 332 324 2 3 11 5 0 357 176 190 325 2 3 11 5 0 207 358 343 326 2 3 11 5 0 358 207 326 327 2 3 11 5 0 164 359 333 328 2 3 11 5 0 360 90 321 329 2 3 11 5 0 252 362 90 330 2 3 11 5 0 362 252 141 331 2 3 11 5 0 188 364 341 332 2 3 11 5 0 150 365 322 333 2 3 11 5 0 365 150 324 334 2 3 11 5 0 176 366 190 335 2 3 11 5 0 105 366 244 336 2 3 11 5 0 108 368 106 337 2 3 11 5 0 370 120 198 338 2 3 11 5 0 160 371 321 339 2 3 11 5 0 372 293 144 340 2 3 11 5 0 293 372 148 341 2 3 11 5 0 287 372 144 342 2 3 11 5 0 373 183 201 343 2 3 11 5 0 374 152 337 344 2 3 11 5 0 162 375 311 345 2 3 11 5 0 376 203 138 346 2 3 11 5 0 173 378 199 347 2 3 11 5 0 204 379 137 348 2 3 11 5 0 231 380 110 349 2 3 11 5 0 122 381 113 350 2 3 11 5 0 381 275 113 351 2 3 11 5 0 382 226 121 352 2 3 11 5 0 226 382 334 353 2 3 11 5 0 111 383 317 354 2 3 11 5 0 383 251 317 355 2 3 11 5 0 383 111 347 356 2 3 11 5 0 385 150 309 357 2 3 11 5 0 157 385 309 358 2 3 11 5 0 116 386 320 359 2 3 11 5 0 387 215 125 360 2 3 11 5 0 387 261 328 361 2 3 11 5 0 261 387 125 362 2 3 11 5 0 214 388 126 363 2 3 11 5 0 262 388 327 364 2 3 11 5 0 388 262 126 365 2 3 11 5 0 182 390 253 366 2 3 11 5 0 390 89 253 367 2 3 11 5 0 90 392 321 368 2 3 11 5 0 392 90 362 369 2 3 11 5 0 173 394 378 370 2 3 11 5 0 395 190 366 371 2 3 11 5 0 105 395 366 372 2 3 11 5 0 396 119 232 373 2 3 11 5 0 396 196 363 374 2 3 11 5 0 196 396 232 375 2 3 11 5 0 397 155 393 376 2 3 11 5 0 155 397 363 377 2 3 11 5 0 201 399 373 378 2 3 11 5 0 399 201 213 379 2 3 11 5 0 399 116 373 380 2 3 11 5 0 401 107 326 381 2 3 11 5 0 207 401 326 382 2 3 11 5 0 402 151 318 383 2 3 11 5 0 168 402 318 384 2 3 11 5 0 404 176 357 385 2 3 11 5 0 176 404 158 386 2 3 11 5 0 405 161 342 387 2 3 11 5 0 406 172 330 388 2 3 11 5 0 406 117 378 389 2 3 11 5 0 407 111 313 390 2 3 11 5 0 408 164 348 391 2 3 11 5 0 164 408 344 392 2 3 11 5 0 410 168 318 393 2 3 11 5 0 89 410 318 394 2 3 11 5 0 411 160 317 395 2 3 11 5 0 251 411 317 396 2 3 11 5 0 412 221 134 397 2 3 11 5 0 222 413 133 398 2 3 11 5 0 163 414 332 399 2 3 11 5 0 113 415 122 400 2 3 11 5 0 180 417 337 401 2 3 11 5 0 418 151 313 402 2 3 11 5 0 151 418 335 403 2 3 11 5 0 180 419 253 404 2 3 11 5 0 419 182 253 405 2 3 11 5 0 105 420 309 406 2 3 11 5 0 420 157 309 407 2 3 11 5 0 230 421 8 408 2 3 11 5 0 255 422 270 409 2 3 11 5 0 215 423 131 410 2 3 11 5 0 228 423 328 411 2 3 11 5 0 423 228 131 412 2 3 11 5 0 424 214 132 413 2 3 11 5 0 424 229 327 414 2 3 11 5 0 229 424 132 415 2 3 11 5 0 425 146 331 416 2 3 11 5 0 90 425 331 417 2 3 11 5 0 176 427 366 418 2 3 11 5 0 427 244 366 419 2 3 11 5 0 428 238 133 420 2 3 11 5 0 238 428 350 421 2 3 11 5 0 237 429 134 422 2 3 11 5 0 429 237 351 423 2 3 11 5 0 431 167 344 424 2 3 11 5 0 31 433 266 425 2 3 11 5 0 433 290 266 426 2 3 11 5 0 434 47 267 427 2 3 11 5 0 289 434 267 428 2 3 11 5 0 110 435 312 429 2 3 11 5 0 226 436 129 430 2 3 11 5 0 436 226 334 431 2 3 11 5 0 221 437 138 432 2 3 11 5 0 438 222 137 433 2 3 11 5 0 183 441 93 434 2 3 11 5 0 441 202 93 435 2 3 11 5 0 441 183 170 436 2 3 11 5 0 283 442 6 437 2 3 11 5 0 442 283 148 438 2 3 11 5 0 444 79 80 439 2 3 11 5 0 261 444 80 440 2 3 11 5 0 79 444 350 441 2 3 11 5 0 61 445 62 442 2 3 11 5 0 445 262 62 443 2 3 11 5 0 445 61 351 444 2 3 11 5 0 263 446 95 445 2 3 11 5 0 447 204 130 446 2 3 11 5 0 257 448 97 447 2 3 11 5 0 212 449 224 448 2 3 11 5 0 451 122 127 449 2 3 11 5 0 230 451 127 450 2 3 11 5 0 452 105 309 451 2 3 11 5 0 453 143 103 452 2 3 11 5 0 286 453 103 453 2 3 11 5 0 145 454 102 454 2 3 11 5 0 454 288 102 455 2 3 11 5 0 146 455 348 456 2 3 11 5 0 456 93 202 457 2 3 11 5 0 93 456 227 458 2 3 11 5 0 286 457 149 459 2 3 11 5 0 457 291 149 460 2 3 11 5 0 458 288 147 461 2 3 11 5 0 292 458 147 462 2 3 11 5 0 460 252 333 463 2 3 11 5 0 464 188 319 464 2 3 11 5 0 465 94 257 465 2 3 11 5 0 220 465 257 466 2 3 11 5 0 356 449 117 467 2 3 11 5 0 356 224 449 468 2 3 11 5 0 440 104 142 469 2 3 11 5 0 293 100 443 470 2 3 11 5 0 421 7 8 471 2 3 11 5 0 283 7 421 472 2 3 11 5 0 230 294 421 473 2 3 11 5 0 30 433 31 474 2 3 11 5 0 434 48 47 475 2 3 11 5 0 372 442 148 476 2 3 11 5 0 372 287 442 477 2 3 11 5 0 368 157 106 478 2 3 11 5 0 167 157 368 479 2 3 11 5 0 300 307 352 480 2 3 11 5 0 347 304 179 481 2 3 11 5 0 300 304 347 482 2 3 11 5 0 315 316 154 483 2 3 11 5 0 315 304 316 484 2 3 11 5 0 336 325 153 485 2 3 11 5 0 306 325 336 486 2 3 11 5 0 341 407 188 487 2 3 11 5 0 341 307 407 488 2 3 11 5 0 452 322 172 489 2 3 11 5 0 309 322 452 490 2 3 11 5 0 355 369 159 491 2 3 11 5 0 355 310 369 492 2 3 11 5 0 315 435 179 493 2 3 11 5 0 315 312 435 494 2 3 11 5 0 418 317 160 495 2 3 11 5 0 313 317 418 496 2 3 11 5 0 407 319 188 497 2 3 11 5 0 313 319 407 498 2 3 11 5 0 374 340 152 499 2 3 11 5 0 314 340 374 500 2 3 11 5 0 323 359 164 501 2 3 11 5 0 323 314 359 502 2 3 11 5 0 375 339 169 503 2 3 11 5 0 319 354 464 504 2 3 11 5 0 337 386 180 505 2 3 11 5 0 337 320 386 506 2 3 11 5 0 364 393 155 507 2 3 11 5 0 360 371 165 508 2 3 11 5 0 360 321 371 509 2 3 11 5 0 345 321 392 510 2 3 11 5 0 330 365 163 511 2 3 11 5 0 330 322 365 512 2 3 11 5 0 358 355 159 513 2 3 11 5 0 326 355 358 514 2 3 11 5 0 360 425 90 515 2 3 11 5 0 424 388 214 516 2 3 11 5 0 327 388 424 517 2 3 11 5 0 387 423 215 518 2 3 11 5 0 387 328 423 519 2 3 11 5 0 406 332 117 520 2 3 11 5 0 330 332 406 521 2 3 11 5 0 333 348 164 522 2 3 11 5 0 333 331 348 523 2 3 11 5 0 356 414 184 524 2 3 11 5 0 356 332 414 525 2 3 11 5 0 401 340 107 526 2 3 11 5 0 333 359 460 527 2 3 11 5 0 345 418 160 528 2 3 11 5 0 345 335 418 529 2 3 11 5 0 374 337 417 530 2 3 11 5 0 403 364 155 531 2 3 11 5 0 341 364 403 532 2 3 11 5 0 349 358 159 533 2 3 11 5 0 349 343 358 534 2 3 11 5 0 344 408 431 535 2 3 11 5 0 383 353 251 536 2 3 11 5 0 347 353 383 537 2 3 11 5 0 408 348 455 538 2 3 11 5 0 402 354 151 539 2 3 11 5 0 386 419 180 540 2 3 11 5 0 404 415 113 541 2 3 11 5 0 404 357 415 542 2 3 11 5 0 411 371 160 543 2 3 11 5 0 452 395 105 544 2 3 11 5 0 396 397 119 545 2 3 11 5 0 396 363 397 546 2 3 11 5 0 406 394 172 547 2 3 11 5 0 378 394 406 548 2 3 11 5 0 397 439 119 549 2 3 11 5 0 397 393 439 550 2 3 11 5 0 365 377 163 551 2 3 11 5 0 432 141 253 552 2 3 11 5 0 141 432 362 553 2 3 11 5 0 414 163 377 554 2 3 11 5 0 286 463 457 555 2 3 11 5 0 462 288 458 556 2 3 11 5 0 28 462 29 557 2 3 11 5 0 462 28 297 558 2 3 11 5 0 462 102 288 559 2 3 11 5 0 297 102 462 560 2 3 11 5 0 463 50 49 561 2 3 11 5 0 50 463 298 562 2 3 11 5 0 103 463 286 563 2 3 11 5 0 103 298 463 564 2 3 11 5 0 20 329 19 565 2 3 11 5 0 159 369 305 566 2 3 11 5 0 275 381 11 567 2 3 11 5 0 10 11 381 568 2 3 11 5 0 430 116 399 569 2 3 11 5 0 213 430 399 570 2 3 11 5 0 430 213 223 571 2 3 11 5 0 122 426 127 572 2 3 11 5 0 426 122 415 573 2 3 11 5 0 179 435 353 574 2 3 11 5 0 460 141 252 575 2 3 11 5 0 141 460 180 576 2 3 11 5 0 417 180 460 577 2 3 11 5 0 165 371 367 578 2 3 11 5 0 293 271 144 579 2 3 11 5 0 271 293 443 580 2 3 11 5 0 400 150 385 581 2 3 11 5 0 167 385 157 582 2 3 11 5 0 167 431 385 583 2 3 11 5 0 400 385 431 584 2 3 11 5 0 422 279 270 585 2 3 11 5 0 279 440 142 586 2 3 11 5 0 152 340 361 587 2 3 11 5 0 401 207 361 588 2 3 11 5 0 361 340 401 589 2 3 11 5 0 140 454 145 590 2 3 11 5 0 147 454 296 591 2 3 11 5 0 454 147 288 592 2 3 11 5 0 140 296 454 593 2 3 11 5 0 453 139 143 594 2 3 11 5 0 453 149 295 595 2 3 11 5 0 149 453 286 596 2 3 11 5 0 295 139 453 597 2 3 11 5 0 299 455 146 598 2 3 11 5 0 373 116 320 599 2 3 11 5 0 170 373 320 600 2 3 11 5 0 373 170 183 601 2 3 11 5 0 112 459 339 602 2 3 11 5 0 459 178 339 603 2 3 11 5 0 94 448 257 604 2 3 11 5 0 272 426 263 605 2 3 11 5 0 426 272 127 606 2 3 11 5 0 446 263 426 607 2 3 11 5 0 94 465 216 608 2 3 11 5 0 175 465 220 609 2 3 11 5 0 185 465 175 610 2 3 11 5 0 461 174 219 611 2 3 11 5 0 461 186 174 612 2 3 11 5 0 283 278 148 613 2 3 11 5 0 283 421 278 614 2 3 11 5 0 421 294 278 615 2 3 11 5 0 150 400 324 616 2 3 11 5 0 324 299 88 617 2 3 11 5 0 455 299 324 618 2 3 11 5 0 324 400 455 619 2 3 11 5 0 61 60 351 620 2 3 11 5 0 351 60 429 621 2 3 11 5 0 78 79 350 622 2 3 11 5 0 78 350 428 623 2 3 11 5 0 59 58 412 624 2 3 11 5 0 437 221 412 625 2 3 11 5 0 412 58 437 626 2 3 11 5 0 76 77 413 627 2 3 11 5 0 222 438 413 628 2 3 11 5 0 76 413 438 629 2 3 11 5 0 368 108 302 630 2 3 11 5 0 344 167 302 631 2 3 11 5 0 167 368 302 632 2 3 11 5 0 98 254 100 633 2 3 11 5 0 272 98 100 634 2 3 11 5 0 254 443 100 635 2 3 11 5 0 386 116 430 636 2 3 11 5 0 182 430 223 637 2 3 11 5 0 182 419 430 638 2 3 11 5 0 386 430 419 639 2 3 11 5 0 158 427 176 640 2 3 11 5 0 405 427 158 641 2 3 11 5 0 244 427 342 642 2 3 11 5 0 342 427 405 643 2 3 11 5 0 452 172 394 644 2 3 11 5 0 190 394 173 645 2 3 11 5 0 190 395 394 646 2 3 11 5 0 394 395 452 647 2 3 11 5 0 22 23 334 648 2 3 11 5 0 334 23 436 649 2 3 11 5 0 89 432 253 650 2 3 11 5 0 432 89 318 651 2 3 11 5 0 318 335 432 652 2 3 11 5 0 391 112 231 653 2 3 11 5 0 336 153 391 654 2 3 11 5 0 231 336 391 655 2 3 11 5 0 112 380 231 656 2 3 11 5 0 112 339 380 657 2 3 11 5 0 375 162 380 658 2 3 11 5 0 380 339 375 659 2 3 11 5 0 64 63 327 660 2 3 11 5 0 229 64 327 661 2 3 11 5 0 81 82 328 662 2 3 11 5 0 82 228 328 663 2 3 11 5 0 117 449 378 664 2 3 11 5 0 449 199 378 665 2 3 11 5 0 199 449 212 666 2 3 11 5 0 379 204 447 667 2 3 11 5 0 189 202 346 668 2 3 11 5 0 361 207 346 669 2 3 11 5 0 416 165 166 670 2 3 11 5 0 360 165 416 671 2 3 11 5 0 146 416 299 672 2 3 11 5 0 146 425 416 673 2 3 11 5 0 360 416 425 674 2 3 11 5 0 367 166 165 675 2 3 11 5 0 57 56 450 676 2 3 11 5 0 203 376 450 677 2 3 11 5 0 450 376 57 678 2 3 11 5 0 119 439 197 679 2 3 11 5 0 439 171 197 680 2 3 11 5 0 457 49 48 681 2 3 11 5 0 463 49 457 682 2 3 11 5 0 29 458 30 683 2 3 11 5 0 29 462 458 684 2 3 11 5 0 281 468 20 685 2 3 11 5 0 468 329 20 686 2 3 11 5 0 470 316 156 687 2 3 11 5 0 472 305 369 688 2 3 11 5 0 72 473 279 689 2 3 11 5 0 473 270 279 690 2 3 11 5 0 305 474 349 691 2 3 11 5 0 475 32 266 692 2 3 11 5 0 17 476 16 693 2 3 11 5 0 352 477 156 694 2 3 11 5 0 478 13 14 695 2 3 11 5 0 178 480 169 696 2 3 11 5 0 281 481 468 697 2 3 11 5 0 482 324 88 698 2 3 11 5 0 482 377 365 699 2 3 11 5 0 324 482 365 700 2 3 11 5 0 484 178 459 701 2 3 11 5 0 181 484 459 702 2 3 11 5 0 46 485 267 703 2 3 11 5 0 485 264 267 704 2 3 11 5 0 15 486 14 705 2 3 11 5 0 487 168 177 706 2 3 11 5 0 398 487 177 707 2 3 11 5 0 168 487 402 708 2 3 11 5 0 488 338 161 709 2 3 11 5 0 490 88 299 710 2 3 11 5 0 416 490 299 711 2 3 11 5 0 491 329 468 712 2 3 11 5 0 492 15 16 713 2 3 11 5 0 493 409 398 714 2 3 11 5 0 391 494 187 715 2 3 11 5 0 495 303 161 716 2 3 11 5 0 338 495 161 717 2 3 11 5 0 496 17 18 718 2 3 11 5 0 496 305 472 719 2 3 11 5 0 497 170 152 720 2 3 11 5 0 361 497 152 721 2 3 11 5 0 280 498 129 722 2 3 11 5 0 499 108 106 723 2 3 11 5 0 22 500 21 724 2 3 11 5 0 500 281 21 725 2 3 11 5 0 500 22 334 726 2 3 11 5 0 502 300 347 727 2 3 11 5 0 300 502 307 728 2 3 11 5 0 111 502 347 729 2 3 11 5 0 503 107 323 730 2 3 11 5 0 112 504 459 731 2 3 11 5 0 187 504 391 732 2 3 11 5 0 504 112 391 733 2 3 11 5 0 216 505 178 734 2 3 11 5 0 158 506 405 735 2 3 11 5 0 509 35 193 736 2 3 11 5 0 301 509 193 737 2 3 11 5 0 164 511 323 738 2 3 11 5 0 302 511 344 739 2 3 11 5 0 511 164 344 740 2 3 11 5 0 346 512 189 741 2 3 11 5 0 512 346 343 742 2 3 11 5 0 513 247 186 743 2 3 11 5 0 247 513 118 744 2 3 11 5 0 514 251 109 745 2 3 11 5 0 367 514 109 746 2 3 11 5 0 251 514 411 747 2 3 11 5 0 516 12 13 748 2 3 11 5 0 12 516 275 749 2 3 11 5 0 517 227 129 750 2 3 11 5 0 227 517 273 751 2 3 11 5 0 480 178 505 752 2 3 11 5 0 370 494 120 753 2 3 11 5 0 370 187 494 754 2 3 11 5 0 498 517 129 755 2 3 11 5 0 498 265 517 756 2 3 11 5 0 481 382 121 757 2 3 11 5 0 281 382 481 758 2 3 11 5 0 96 517 265 759 2 3 11 5 0 96 273 517 760 2 3 11 5 0 501 499 106 761 2 3 11 5 0 303 499 501 762 2 3 11 5 0 478 516 13 763 2 3 11 5 0 407 502 111 764 2 3 11 5 0 407 307 502 765 2 3 11 5 0 486 478 14 766 2 3 11 5 0 503 511 302 767 2 3 11 5 0 503 323 511 768 2 3 11 5 0 500 382 281 769 2 3 11 5 0 334 382 500 770 2 3 11 5 0 476 492 16 771 2 3 11 5 0 477 470 156 772 2 3 11 5 0 181 504 187 773 2 3 11 5 0 181 459 504 774 2 3 11 5 0 371 514 367 775 2 3 11 5 0 371 411 514 776 2 3 11 5 0 354 487 398 777 2 3 11 5 0 354 402 487 778 2 3 11 5 0 484 216 178 779 2 3 11 5 0 488 510 338 780 2 3 11 5 0 468 481 491 781 2 3 11 5 0 496 476 17 782 2 3 11 5 0 472 476 496 783 2 3 11 5 0 496 474 305 784 2 3 11 5 0 478 483 516 785 2 3 11 5 0 464 354 409 786 2 3 11 5 0 409 354 398 787 2 3 11 5 0 501 244 342 788 2 3 11 5 0 303 501 342 789 2 3 11 5 0 475 33 32 790 2 3 11 5 0 33 475 233 791 2 3 11 5 0 45 485 46 792 2 3 11 5 0 485 45 232 793 2 3 11 5 0 264 485 232 794 2 3 11 5 0 43 467 196 795 2 3 11 5 0 467 43 42 796 2 3 11 5 0 467 363 196 797 2 3 11 5 0 509 36 35 798 2 3 11 5 0 73 473 72 799 2 3 11 5 0 130 270 473 800 2 3 11 5 0 490 389 88 801 2 3 11 5 0 389 490 166 802 2 3 11 5 0 490 416 166 803 2 3 11 5 0 248 505 185 804 2 3 11 5 0 308 471 479 805 2 3 11 5 0 479 325 154 806 2 3 11 5 0 400 431 408 807 2 3 11 5 0 455 400 408 808 2 3 11 5 0 491 474 329 809 2 3 11 5 0 349 491 343 810 2 3 11 5 0 491 349 474 811 2 3 11 5 0 345 392 335 812 2 3 11 5 0 432 335 392 813 2 3 11 5 0 432 392 362 814 2 3 11 5 0 503 274 107 815 2 3 11 5 0 274 503 108 816 2 3 11 5 0 503 302 108 817 2 3 11 5 0 446 190 95 818 2 3 11 5 0 190 446 357 819 2 3 11 5 0 287 52 51 820 2 3 11 5 0 144 52 287 821 2 3 11 5 0 384 435 110 822 2 3 11 5 0 451 9 10 823 2 3 11 5 0 451 10 381 824 2 3 11 5 0 451 381 122 825 2 3 11 5 0 9 451 230 826 2 3 11 5 0 428 77 78 827 2 3 11 5 0 413 428 133 828 2 3 11 5 0 413 77 428 829 2 3 11 5 0 59 429 60 830 2 3 11 5 0 429 412 134 831 2 3 11 5 0 59 412 429 832 2 3 11 5 0 433 30 458 833 2 3 11 5 0 292 290 433 834 2 3 11 5 0 433 458 292 835 2 3 11 5 0 48 434 457 836 2 3 11 5 0 289 291 434 837 2 3 11 5 0 457 434 291 838 2 3 11 5 0 153 494 391 839 2 3 11 5 0 280 129 436 840 2 3 11 5 0 446 415 357 841 2 3 11 5 0 446 426 415 842 2 3 11 5 0 494 489 120 843 2 3 11 5 0 489 193 233 844 2 3 11 5 0 494 153 489 845 2 3 11 5 0 364 188 409 846 2 3 11 5 0 188 464 409 847 2 3 11 5 0 364 409 393 848 2 3 11 5 0 417 359 314 849 2 3 11 5 0 374 417 314 850 2 3 11 5 0 460 359 417 851 2 3 11 5 0 506 158 404 852 2 3 11 5 0 275 506 113 853 2 3 11 5 0 506 404 113 854 2 3 11 5 0 76 438 75 855 2 3 11 5 0 379 75 438 856 2 3 11 5 0 379 438 137 857 2 3 11 5 0 118 410 249 858 2 3 11 5 0 410 118 168 859 2 3 11 5 0 445 237 126 860 2 3 11 5 0 237 445 351 861 2 3 11 5 0 262 445 126 862 2 3 11 5 0 405 483 161 863 2 3 11 5 0 483 405 506 864 2 3 11 5 0 483 488 161 865 2 3 11 5 0 238 444 125 866 2 3 11 5 0 444 238 350 867 2 3 11 5 0 444 261 125 868 2 3 11 5 0 437 58 57 869 2 3 11 5 0 57 376 437 870 2 3 11 5 0 437 376 138 871 2 3 11 5 0 203 450 469 872 2 3 11 5 0 510 369 310 873 2 3 11 5 0 310 338 510 874 2 3 11 5 0 369 510 472 875 2 3 11 5 0 499 303 495 876 2 3 11 5 0 310 495 338 877 2 3 11 5 0 189 121 456 878 2 3 11 5 0 121 226 456 879 2 3 11 5 0 189 456 202 880 2 3 11 5 0 456 226 227 881 2 3 11 5 0 370 181 187 882 2 3 11 5 0 370 448 181 883 2 3 11 5 0 450 56 55 884 2 3 11 5 0 469 450 55 885 2 3 11 5 0 171 439 493 886 2 3 11 5 0 493 439 393 887 2 3 11 5 0 493 393 409 888 2 3 11 5 0 74 447 73 889 2 3 11 5 0 473 73 447 890 2 3 11 5 0 130 473 447 891 2 3 11 5 0 515 280 282 892 2 3 11 5 0 265 498 515 893 2 3 11 5 0 498 280 515 894 2 3 11 5 0 38 466 39 895 2 3 11 5 0 470 518 316 896 2 3 11 5 0 518 470 466 897 2 3 11 5 0 325 519 301 898 2 3 11 5 0 471 519 479 899 2 3 11 5 0 519 325 479 900 2 3 11 5 0 520 301 193 901 2 3 11 5 0 520 489 153 902 2 3 11 5 0 489 520 193 903 2 3 11 5 0 301 520 153 904 2 3 11 5 0 521 469 271 905 2 3 11 5 0 310 522 495 906 2 3 11 5 0 523 489 233 907 2 3 11 5 0 489 523 120 908 2 3 11 5 0 185 525 465 909 2 3 11 5 0 216 525 505 910 2 3 11 5 0 525 216 465 911 2 3 11 5 0 525 185 505 912 2 3 11 5 0 97 526 198 913 2 3 11 5 0 370 526 448 914 2 3 11 5 0 526 370 198 915 2 3 11 5 0 526 97 448 916 2 3 11 5 0 521 443 254 917 2 3 11 5 0 271 443 521 918 2 3 11 5 0 308 518 466 919 2 3 11 5 0 308 479 518 920 2 3 11 5 0 518 154 316 921 2 3 11 5 0 479 154 518 922 2 3 11 5 0 499 522 108 923 2 3 11 5 0 499 495 522 924 2 3 11 5 0 524 398 177 925 2 3 11 5 0 524 171 493 926 2 3 11 5 0 524 493 398 927 2 3 11 5 0 198 290 246 928 2 3 11 5 0 290 198 266 929 2 3 11 5 0 390 410 89 930 2 3 11 5 0 390 123 249 931 2 3 11 5 0 123 390 182 932 2 3 11 5 0 390 249 410 933 2 3 11 5 0 506 275 516 934 2 3 11 5 0 483 506 516 935 2 3 11 5 0 38 308 466 936 2 3 11 5 0 157 420 106 937 2 3 11 5 0 420 501 106 938 2 3 11 5 0 244 420 105 939 2 3 11 5 0 244 501 420 940 2 3 11 5 0 274 522 355 941 2 3 11 5 0 522 274 108 942 2 3 11 5 0 522 310 355 943 2 3 11 5 0 486 483 478 944 2 3 11 5 0 483 486 488 945 2 3 11 5 0 250 258 248 946 2 3 11 5 0 505 248 258 947 2 3 11 5 0 480 505 258 948 2 3 11 5 0 492 476 472 949 2 3 11 5 0 472 510 492 950 2 3 11 5 0 480 508 169 951 2 3 11 5 0 87 508 258 952 2 3 11 5 0 508 480 258 953 2 3 11 5 0 521 235 203 954 2 3 11 5 0 235 521 254 955 2 3 11 5 0 469 521 203 956 2 3 11 5 0 189 512 121 957 2 3 11 5 0 512 481 121 958 2 3 11 5 0 491 512 343 959 2 3 11 5 0 491 481 512 960 2 3 11 5 0 94 484 448 961 2 3 11 5 0 216 484 94 962 2 3 11 5 0 484 181 448 963 2 3 11 5 0 36 471 37 964 2 3 11 5 0 36 509 471 965 2 3 11 5 0 497 441 170 966 2 3 11 5 0 497 202 441 967 2 3 11 5 0 497 346 202 968 2 3 11 5 0 346 497 361 969 2 3 11 5 0 265 255 96 970 2 3 11 5 0 422 255 265 971 2 3 11 5 0 329 18 19 972 2 3 11 5 0 329 474 18 973 2 3 11 5 0 18 474 496 974 2 3 11 5 0 155 363 403 975 2 3 11 5 0 403 363 467 976 2 3 11 5 0 519 509 301 977 2 3 11 5 0 471 509 519 978 2 3 11 5 0 37 308 38 979 2 3 11 5 0 471 308 37 980 2 3 11 5 0 311 527 389 981 2 3 11 5 0 184 528 87 982 2 3 11 5 0 528 184 414 983 2 3 11 5 0 311 529 527 984 2 3 11 5 0 530 508 87 985 2 3 11 5 0 530 507 527 986 2 3 11 5 0 532 507 377 987 2 3 11 5 0 466 533 39 988 2 3 11 5 0 533 466 470 989 2 3 11 5 0 311 534 162 990 2 3 11 5 0 532 482 88 991 2 3 11 5 0 377 482 532 992 2 3 11 5 0 533 40 39 993 2 3 11 5 0 477 533 470 994 2 3 11 5 0 528 530 87 995 2 3 11 5 0 528 507 530 996 2 3 11 5 0 377 528 414 997 2 3 11 5 0 377 507 528 998 2 3 11 5 0 530 529 508 999 2 3 11 5 0 527 529 530 1000 2 3 11 5 0 529 375 169 1001 2 3 11 5 0 529 169 508 1002 2 3 11 5 0 529 311 375 1003 2 3 11 5 0 469 54 271 1004 2 3 11 5 0 54 469 55 1005 2 3 11 5 0 389 532 88 1006 2 3 11 5 0 532 389 527 1007 2 3 11 5 0 507 532 527 1008 2 3 11 5 0 74 379 447 1009 2 3 11 5 0 379 74 75 1010 2 3 11 5 0 118 513 177 1011 2 3 11 5 0 186 461 513 1012 2 3 11 5 0 461 531 513 1013 2 3 11 5 0 279 422 440 1014 2 3 11 5 0 515 440 422 1015 2 3 11 5 0 515 422 265 1016 2 3 11 5 0 120 523 198 1017 2 3 11 5 0 523 266 198 1018 2 3 11 5 0 475 523 233 1019 2 3 11 5 0 523 475 266 1020 2 3 11 5 0 488 486 492 1021 2 3 11 5 0 15 492 486 1022 2 3 11 5 0 488 492 510 1023 2 3 11 5 0 524 537 171 1024 2 3 11 5 0 537 524 531 1025 2 3 11 5 0 513 539 177 1026 2 3 11 5 0 524 539 531 1027 2 3 11 5 0 539 524 177 1028 2 3 11 5 0 539 513 531 1029 2 3 11 5 0 536 101 245 1030 2 3 11 5 0 536 197 171 1031 2 3 11 5 0 197 536 245 1032 2 3 11 5 0 461 538 531 1033 2 3 11 5 0 538 461 219 1034 2 3 11 5 0 531 538 537 1035 2 3 11 5 0 367 534 166 1036 2 3 11 5 0 271 53 144 1037 2 3 11 5 0 53 271 54 1038 2 3 11 5 0 40 540 41 1039 2 3 11 5 0 540 40 533 1040 2 3 11 5 0 541 389 166 1041 2 3 11 5 0 541 534 311 1042 2 3 11 5 0 534 541 166 1043 2 3 11 5 0 389 541 311 1044 2 3 11 5 0 109 543 367 1045 2 3 11 5 0 543 534 367 1046 2 3 11 5 0 543 109 384 1047 2 3 11 5 0 544 27 2 1048 2 3 11 5 0 69 544 2 1049 2 3 11 5 0 545 109 353 1050 2 3 11 5 0 545 435 384 1051 2 3 11 5 0 435 545 353 1052 2 3 11 5 0 109 545 384 1053 2 3 11 5 0 440 546 104 1054 2 3 11 5 0 101 542 268 1055 2 3 11 5 0 101 536 542 1056 2 3 11 5 0 542 219 268 1057 2 3 11 5 0 538 219 542 1058 2 3 11 5 0 477 540 533 1059 2 3 11 5 0 171 537 536 1060 2 3 11 5 0 537 542 536 1061 2 3 11 5 0 542 537 538 1062 2 3 11 5 0 104 544 69 1063 2 3 11 5 0 546 544 104 1064 2 3 11 5 0 535 42 41 1065 2 3 11 5 0 540 535 41 1066 2 3 11 5 0 467 42 535 1067 2 3 11 5 0 515 546 440 1068 2 3 11 5 0 546 515 282 1069 2 3 11 5 0 26 27 544 1070 2 3 11 5 0 548 380 162 1071 2 3 11 5 0 548 384 110 1072 2 3 11 5 0 384 548 162 1073 2 3 11 5 0 380 548 110 1074 2 3 11 5 0 25 26 282 1075 2 3 11 5 0 26 546 282 1076 2 3 11 5 0 26 544 546 1077 2 3 11 5 0 24 549 23 1078 2 3 11 5 0 549 436 23 1079 2 3 11 5 0 25 549 24 1080 2 3 11 5 0 280 549 282 1081 2 3 11 5 0 549 280 436 1082 2 3 11 5 0 25 282 549 1083 2 3 11 5 0 341 547 307 1084 2 3 11 5 0 352 307 547 1085 2 3 11 5 0 403 547 341 1086 2 3 11 5 0 547 477 352 1087 2 3 11 5 0 477 547 540 1088 2 3 11 5 0 547 535 540 1089 2 3 11 5 0 162 543 384 1090 2 3 11 5 0 162 534 543 1091 2 3 11 5 0 550 403 467 1092 2 3 11 5 0 550 535 547 1093 2 3 11 5 0 535 550 467 1094 2 3 11 5 0 403 550 547 1095 2 3 11 5 0 551 5 6 1096 2 3 11 5 0 442 551 6 1097 2 3 11 5 0 5 552 1 1098 2 3 11 5 0 552 51 1 1099 2 3 11 5 0 552 5 551 1100 2 3 11 5 0 287 551 442 1101 2 3 11 5 0 551 287 51 1102 2 3 11 5 0 51 552 551 $EndElements
{'repo_name': 'FluidityProject/fluidity', 'stars': '213', 'repo_language': 'Fortran', 'file_name': 'test_fluxes_reader_wrapper.F90', 'mime_type': 'text/plain', 'hash': -868360816582880198, 'source_dataset': 'data'}
//***********************************************************************// // // // - "Talk to me like I'm a 3 year old!" Programming Lessons - // // // // $Author: DigiBen digiben@gametutorials.com // // // // $Program: MotionBlur // // // // $Description: Demonstrates fast motion blurring in OpenGL // // // //***********************************************************************// // This is a compiler directive that includes libraries (For Visual Studio) // You can manually include the libraries in the "Project->settings" menu under // the "Link" tab. You need these libraries to compile this program. #pragma comment(lib, "opengl32.lib") #pragma comment(lib, "glu32.lib") #include "main.h" // This includes our header file bool g_bFullScreen = true; // Set full screen as default HWND g_hWnd; // This is the handle for the window RECT g_rRect; // This holds the window dimensions HDC g_hDC; // General HDC - (handle to device context) HGLRC g_hRC; // General OpenGL_DC - Our Rendering Context for OpenGL HINSTANCE g_hInstance; // This holds the global hInstance for UnregisterClass() in DeInit() UINT g_Texture[MAX_TEXTURES]; // This will reference to our texture data stored with OpenGL UINT is an unsigned int (only positive numbers) /////// * /////////// * /////////// * NEW * /////// * /////////// * /////////// * // This tutorial is taken from the Masking and Ortho tutorial, with a bunch also // taken out from the Rendering To A Texture tutorial. In the masking tutorial // we learned how to mask images for distinct transparencies, along with the // glOrtho() mode. The glOrtho() mode allows us to pass vertices in as 2D // coordinates. This is great for things that we want to have in front of the // camera at all times, such as a scope or interfaces. In this tutorial we gutted // out the masking stuff, but left the ortho code and added some functions for rendering // to a texture which were taken from the RenderToTexture tutorial. Before looking at // this tutorial, it is assumed you have gone through the referenced tutorials, or are // prepared to suffer an overload of new information :) // // The technique shown in this application is how to render motion blurring in an // incredibly fast way. Usually you hear that you want to use the accumulation buffer // for motion blurring, but this is ridiculously slow for real time rendering. A more // practical way to do it is to render the current screen to a texture, then go into // ortho mode and blend that texture over the entire screen. This could be done every // frame or intermittently. I used our AnimateNextFrame() function from our 2D sprite // tutorial to restrict the blending to a certain frame rate. This is stored in g_BlurRate. // We can change the current rate by using the LEFT and RIGHT arrow keys. The faster the // rate the more realistic it looks, where as the slower it is, it appears more like a // slow motion video game blur. // // To create the blur effect, we actually render the texture when rendering to the texture. // This is a bit confusing. Basically, when we go to render the screen to the texture, // we go into ortho mode and blend the current texture of the screen over the object that // is being blurred. This acts as a recursive blending. This makes it so we don't do // tons of passes to create the blur trail. // // The fading happens when we blend the current rendered texture with the blackness of // the background. When blending, we need to blend the texture with a small decrease // in alpha. Basically, we don't render the texture over the screen at full alpha, // otherwise it would never blend away, or at least it would take forever to fade. // // Let's go over the controls for this app: // // LEFT / RIGHT Arrow Keys - Increase/Decrease the amount of passes per second // '1' - This changes the texture size to 128 (LOW QUALITY) // '2' - This changes the texture size to 256 (ACCEPTABLE QUALITY) // '3' - This changes the texture size to 512 (HIGH QUALITY) // SPACE BAR - Stops and starts the rotating box // ESCAPE Key - This quits the program // // // This holds how many times per second we render to the texture int g_BlurRate = 50; // This stores if rotating is on or off bool g_bRotate = true; /////// * /////////// * /////////// * NEW * /////// * /////////// * /////////// * // This stores our current rotation float g_RotateX = 0, g_RotateY = 0, g_RotateZ = 0; // This will store the size of the viewport that we render the texture from. int g_Viewport = 512; // This is our prototype for the function that creates the empty texture to render to void CreateRenderTexture(UINT textureArray[], int size, int channels, int type, int textureID); ///////////////////////////////// INIT GAME WINDOW \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\* ///// ///// This function initializes the game window. ///// ///////////////////////////////// INIT GAME WINDOW \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\* void Init(HWND hWnd) { g_hWnd = hWnd; // Assign the window handle to a global window handle GetClientRect(g_hWnd, &g_rRect); // Assign the windows rectangle to a global RECT InitializeOpenGL(g_rRect.right, g_rRect.bottom); // Init OpenGL with the global rect glEnable(GL_DEPTH_TEST); // Turn depth testing on glEnable(GL_TEXTURE_2D); // Enable Texture Mapping // This is where we initialize our empty texture to be rendered too. // We pass in the texture array to store it, the texture size, // the channels (3 for R G B), the type of texture (RGB) and texture ID. CreateRenderTexture(g_Texture, 512, 3, GL_RGB, 0); // Create the texture map for the spinning cube and assign it to texture ID 1 CreateTexture(g_Texture[1], "Brick.bmp"); } /////////////////////////////// ANIMATE NEXT FRAME \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\* ///// ///// This function clamps a specified frame rate for consistency ///// /////////////////////////////// ANIMATE NEXT FRAME \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\* bool AnimateNextFrame(int desiredFrameRate) { static float lastTime = GetTickCount() * 0.001f; static float elapsedTime = 0.0f; float currentTime = GetTickCount() * 0.001f; // Get the time (milliseconds = seconds * .001) float deltaTime = currentTime - lastTime; // Get the slice of time float desiredFPS = 1.0f / desiredFrameRate; // Store 1 / desiredFrameRate elapsedTime += deltaTime; // Add to the elapsed time lastTime = currentTime; // Update lastTime // Check if the time since we last checked is greater than our desiredFPS if( elapsedTime > desiredFPS ) { elapsedTime -= desiredFPS; // Adjust our elapsed time // Return true, to animate the next frame of animation return true; } // We don't animate right now. return false; } ///////////////////////////////// MAIN LOOP \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\* ///// ///// This function handles the main loop ///// ///////////////////////////////// MAIN LOOP \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\* WPARAM MainLoop() { MSG msg; while(1) // Do our infinite loop { // Check if there was a message if (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) { if(msg.message == WM_QUIT) // If the message wasn't to quit break; TranslateMessage(&msg); // Find out what the message does DispatchMessage(&msg); // Execute the message } else // if there wasn't a message { RenderScene(); // Render the scene every frame } } DeInit(); // Clean up and free all allocated memory return(msg.wParam); // Return from the program } ///////////////////////////////// ORTHO MODE \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\* ///// ///// This function changes our projection mode from 3D to 2D ///// ///////////////////////////////// ORTHO MODE \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\* void OrthoMode(int left, int top, int right, int bottom) { // Switch to our projection matrix so that we can change it to ortho mode, not perspective. glMatrixMode(GL_PROJECTION); // Push on a new matrix so that we can just pop it off to go back to perspective mode glPushMatrix(); // Reset the current matrix to our identify matrix glLoadIdentity(); //Pass in our 2D ortho screen coordinates like so (left, right, bottom, top). The last // 2 parameters are the near and far planes. glOrtho( left, right, bottom, top, 0, 1 ); // Switch to model view so that we can render the scope image glMatrixMode(GL_MODELVIEW); // Initialize the current model view matrix with the identity matrix glLoadIdentity(); } ///////////////////////////////// PERSPECTIVE MODE \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\* ///// ///// This function changes our returns our projection mode from 2D to 3D ///// ///////////////////////////////// PERSPECTIVE MODE \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\* void PerspectiveMode() // Set Up A Perspective View { // Enter into our projection matrix mode glMatrixMode( GL_PROJECTION ); // Pop off the last matrix pushed on when in projection mode (Get rid of ortho mode) glPopMatrix(); // Go back to our model view matrix like normal glMatrixMode( GL_MODELVIEW ); // We should be in the normal 3D perspective mode now } ///////////////////////////////////// CREATE BOX \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\* ///// ///// This function creates a textured box (if textureID >= 0) with a center and dimension ///// ///////////////////////////////////// CREATE BOX \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\* void CreateBox(int textureID, float x, float y, float z, float width, float height, float length, float uscale, float vscale) { // Check if we have a valid texture ID, then bind that texture to our box if(textureID >= 0) glBindTexture(GL_TEXTURE_2D, g_Texture[textureID]); // This centers the box around (x, y, z) x = x - width / 2; y = y - height / 2; z = z - length / 2; // Start drawing the side as a QUAD glBegin(GL_QUADS); // Assign the texture coordinates and vertices for the BACK Side glTexCoord2f(0.0f, 0.0f); glVertex3f(x, y, z); glTexCoord2f(0.0f, vscale); glVertex3f(x, y + height, z); glTexCoord2f(uscale, vscale); glVertex3f(x + width, y + height, z); glTexCoord2f(uscale, 0.0f); glVertex3f(x + width, y, z); // Assign the texture coordinates and vertices for the FRONT Side glTexCoord2f(uscale, 0.0f); glVertex3f(x, y, z + length); glTexCoord2f(uscale, vscale); glVertex3f(x, y + height, z + length); glTexCoord2f(0.0f, vscale); glVertex3f(x + width, y + height, z + length); glTexCoord2f(0.0f, 0.0f); glVertex3f(x + width, y, z + length); // Assign the texture coordinates and vertices for the BOTTOM Side glTexCoord2f(uscale, 0.0f); glVertex3f(x, y, z); glTexCoord2f(uscale, vscale); glVertex3f(x, y, z + length); glTexCoord2f(0.0f, vscale); glVertex3f(x + width, y, z + length); glTexCoord2f(0.0f, 0.0f); glVertex3f(x + width, y, z); // Assign the texture coordinates and vertices for the TOP Side glTexCoord2f(uscale, vscale); glVertex3f(x, y + height, z); glTexCoord2f(uscale, 0.0f); glVertex3f(x, y + height, z + length); glTexCoord2f(0.0f, 0.0f); glVertex3f(x + width, y + height, z + length); glTexCoord2f(0.0f, vscale); glVertex3f(x + width, y + height, z); // Assign the texture coordinates and vertices for the LEFT Side glTexCoord2f(uscale, 0.0f); glVertex3f(x, y, z); glTexCoord2f(0.0f, 0.0f); glVertex3f(x, y, z + length); glTexCoord2f(0.0f, vscale); glVertex3f(x, y + height, z + length); glTexCoord2f(uscale, vscale); glVertex3f(x, y + height, z); // Assign the texture coordinates and vertices for the RIGHT Side glTexCoord2f(0.0f, 0.0f); glVertex3f(x + width, y, z); glTexCoord2f(uscale, 0.0f); glVertex3f(x + width, y, z + length); glTexCoord2f(uscale, vscale); glVertex3f(x + width, y + height, z + length); glTexCoord2f(0.0f, vscale); glVertex3f(x + width, y + height, z); // Stop drawing quads glEnd(); } ///////////////////////////////// CREATE RENDER TEXTURE \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\* ///// ///// This function creates a blank texture to render too ///// ///////////////////////////////// CREATE RENDER TEXTURE \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\* void CreateRenderTexture(UINT textureArray[], int size, int channels, int type, int textureID) { // Create a pointer to store the blank image data unsigned int *pTexture = NULL; // Allocate and init memory for the image array and point to it from pTexture pTexture = new unsigned int [size * size * channels]; memset(pTexture, 0, size * size * channels * sizeof(unsigned int)); // Register the texture with OpenGL and bind it to the texture ID glGenTextures(1, &textureArray[textureID]); glBindTexture(GL_TEXTURE_2D, textureArray[textureID]); // Create the texture and store it on the video card glTexImage2D(GL_TEXTURE_2D, 0, channels, size, size, 0, type, GL_UNSIGNED_INT, pTexture); // Set the texture quality glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR); glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR); // Since we stored the texture space with OpenGL, we can delete the image data delete [] pTexture; } /////// * /////////// * /////////// * NEW * /////// * /////////// * /////////// * ///////////////////////////////// RENDER MOTION BLUR \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\* ///// ///// This function takes a texture ID to blend over the screen for motion blur ///// ///////////////////////////////// RENDER MOTION BLUR \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\* void RenderMotionBlur(int textureID) { // This function was created to blend the rendered texture over top of the screen // to create the recursive blur effect. What happens is we start out by turning // off depth testing, setting our blending mode, then binding the texture of our // rendered textured over the QUAD that is about to be created. Next, we set our // alpha level to %90 of full strength. This makes it so it will slowly disappear. // Before rendering the QUAD, we want to go into ortho mode. This makes it easier // to render a QUAD over the full screen without having to deal with vertices, but // 2D coordinates. Once we render the QUAD, we want to go back to perspective mode. // We can then turn depth testing back on and turn off texturing. // Push on a new stack so that we do not interfere with the current matrix glPushMatrix(); // Turn off depth testing so that we can blend over the screen glDisable(GL_DEPTH_TEST); // Set our blend method and enable blending glBlendFunc(GL_SRC_ALPHA,GL_ONE); glEnable(GL_BLEND); // Bind the rendered texture to our QUAD glBindTexture(GL_TEXTURE_2D, g_Texture[textureID]); // Decrease the alpha value of the blend by %10 so it will fade nicely glColor4f(1, 1, 1, 0.9f); // Switch to 2D mode (Ortho mode) OrthoMode(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT); // Display a 2D quad with our blended texture glBegin(GL_QUADS); // Display the top left point of the 2D image glTexCoord2f(0.0f, 1.0f); glVertex2f(0, 0); // Display the bottom left point of the 2D image glTexCoord2f(0.0f, 0.0f); glVertex2f(0, SCREEN_HEIGHT); // Display the bottom right point of the 2D image glTexCoord2f(1.0f, 0.0f); glVertex2f(SCREEN_WIDTH, SCREEN_HEIGHT); // Display the top right point of the 2D image glTexCoord2f(1.0f, 1.0f); glVertex2f(SCREEN_WIDTH, 0); // Stop drawing glEnd(); // Let's set our mode back to perspective 3D mode. PerspectiveMode(); // Turn depth testing back on and texturing off. If you do NOT do these 2 lines of // code it produces a cool flash effect that might come in handy somewhere down the road. glEnable(GL_DEPTH_TEST); glDisable(GL_BLEND); // Go back to our original matrix glPopMatrix(); } /////// * /////////// * /////////// * NEW * /////// * /////////// * /////////// * ///////////////////////////////// RENDER SCENE \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\* ///// ///// This function renders the entire scene. ///// ///////////////////////////////// RENDER SCENE \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\* void RenderScene() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // Clear The Screen And The Depth Buffer glLoadIdentity(); // Reset The matrix /////// * /////////// * /////////// * NEW * /////// * /////////// * /////////// * // Position View Up Vector gluLookAt(0, 0, 10, 0, 0, 0, 0, 1, 0); // Move the camera back by 10 units // We want to have the cube rotating along all axis's so we can better see the motion // blur at different rotations. You can press the space bar to stop/start the rotation. glRotatef(g_RotateX, 1.0f, 0.0f, 0.0f); // Rotate the cubes around the X-axis glRotatef(g_RotateY, 0.0f, 1.0f, 0.0f); // Rotate the cubes around the Y-axis glRotatef(g_RotateZ, 0.0f, 0.0f, 1.0f); // Rotate the cubes around the Z-axis // Below we render to the texture. We can control how much we render to the texture // per second by the LEFT and RIGHT arrow keys. The more we render to the texture, the // smoother the blur is. // Render to the texture only a controlled amount of frames per second if( AnimateNextFrame(g_BlurRate) ) { // Shrink the viewport by the current viewport size. Hit 1, 2, or 3 to change the size. glViewport(0, 0, g_Viewport, g_Viewport); // This is where we redraw the current rendered texture before we draw the spinning box. // This creates the recursive fading of the motion blur. We pass in the texture ID // we are using for the rendered texture. RenderMotionBlur(0); // Now we get to render the spinning box to the texture. We just // need to create the box and it will be effected by the current rotation. // The parameters are the texture ID, the center (x,y,z), dimensions and uv scale. CreateBox(1, 0, 0, 0, 1, 6, 1, 1, 3); // Before we copy the screen to a texture, we need to specify the current // texture to draw to by calling glBindTexture() with the appropriate texture glBindTexture(GL_TEXTURE_2D,g_Texture[0]); // Render the current screen to our texture glCopyTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 0, 0, g_Viewport, g_Viewport, 0); // Here we clear the screen and depth bits of the small viewport glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // Set our viewport back to it's normal size glViewport(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT); } // Now that we have updated our rendered texture, let us display it to the screen // by blending it once again. This should have all the blur trails rendered to it. RenderMotionBlur(0); // Redraw the box at the same position as it was drawn into the rendered texture CreateBox(1, 0, 0, 0, 1, 6, 1, 1, 3); // If we want rotation, increase the current rotations along each axises if(g_bRotate) { g_RotateX += 2; g_RotateY += 3; g_RotateZ += 2; } /////// * /////////// * /////////// * NEW * /////// * /////////// * /////////// * // Swap the backbuffers to the foreground SwapBuffers(g_hDC); } ///////////////////////////////// WIN PROC \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\* ///// ///// This function handles the window messages. ///// ///////////////////////////////// WIN PROC \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\* LRESULT CALLBACK WinProc(HWND hWnd,UINT uMsg, WPARAM wParam, LPARAM lParam) { LONG lRet = 0; PAINTSTRUCT ps; bool bUpdate = false; switch (uMsg) { case WM_SIZE: // If the window is resized if(!g_bFullScreen) // Do this only if we are NOT in full screen { SizeOpenGLScreen(LOWORD(lParam),HIWORD(lParam));// LoWord=Width, HiWord=Height GetClientRect(hWnd, &g_rRect); // Get the window rectangle } break; case WM_PAINT: // If we need to repaint the scene BeginPaint(hWnd, &ps); // Init the paint struct EndPaint(hWnd, &ps); // EndPaint, Clean up break; case WM_KEYDOWN: switch(wParam) { // Check if we hit a key case VK_ESCAPE: // If we hit the escape key PostQuitMessage(0); // Send a QUIT message to the window break; /////// * /////////// * /////////// * NEW * /////// * /////////// * /////////// * // We are able to control the amount of motion blur that happens // by using the left and right arrow keys. We can also start and stop // the rotation of the box by using the space bar. Like in the // tutorial about rendering to a texture, we can also use 1, 2, of 3 // to specify texture quality. 128 is atrocious though. case VK_LEFT: // If we hit the LEFT arrow key g_BlurRate -= 10; // Decrease the current blurs per second if(g_BlurRate < 10) g_BlurRate = 10; // Make sure we don't go below 10 bUpdate = true; // Update the title information break; case VK_RIGHT: // If we hit the RIGHT arrow key g_BlurRate += 10; // Increase the current blurs per second if(g_BlurRate > 100) g_BlurRate = 100; // Make sure we don't go above 100 bUpdate = true; // Update the title information break; case VK_SPACE: g_bRotate = !g_bRotate; // Turn on/off rotation break; case '1': g_Viewport = 128; // Change viewport size to 128 bUpdate = true; // Update the title information break; case '2': g_Viewport = 256; // Change viewport size to 256 bUpdate = true; // Update the title information break; case '3': g_Viewport = 512; // Change viewport size to 512 bUpdate = true; // Update the title information break; /////// * /////////// * /////////// * NEW * /////// * /////////// * /////////// * } break; case WM_CLOSE: // If the window is being closes PostQuitMessage(0); // Send a QUIT Message to the window break; default: // Return by default lRet = DefWindowProc (hWnd, uMsg, wParam, lParam); break; } /////// * /////////// * /////////// * NEW * /////// * /////////// * /////////// * if(bUpdate) { static char strTitle[255] = {0}; sprintf(strTitle, "Current Texture Renders Per Second: %d Current Texture Size: %d", g_BlurRate, g_Viewport); SetWindowText(g_hWnd, strTitle); // Update the title information } /////// * /////////// * /////////// * NEW * /////// * /////////// * /////////// * return lRet; // Return by default } ///////////////////////////////////////////////////////////////////////////////// // // * QUICK NOTES * // // Motion looks neat doesn't it? This is true, but be careful to not use it // all the time. Though this technique is fast, everything that you blur has // to be drawn twice. That means you wouldn't want to blur everything in your // entire frustum unless you are at like a cut scene or something, and the slow // down is part of the drama and effect. Obviously, the better your video card, // the more detailed your blurred textures can be. If you go to a 128 x 128 texture // you will notice that it looks like crap. It only gets worse the higher your // screen resolution goes. I recommend using at LEAST 256. You could possibly // get by with using 128 if the motion was really quick and far away. I have // found that 512 seems to be the best. It isn't too massive, so you don't get // a huge memory footprint, and yet it isn't too small where you lose all the // detail when the image is scaled at a higher resolution. // // I hope this helps someone out! // // // © 2000-2006 GameTutorials //
{'repo_name': 'gametutorials/tutorials', 'stars': '265', 'repo_language': 'C++', 'file_name': 'Frustum.cpp', 'mime_type': 'text/x-c', 'hash': -4622018997398451986, 'source_dataset': 'data'}
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "\u092b\u0941\u0902", "\u092c\u0947\u0932\u093e\u0938\u0947" ], "DAY": [ "\u0930\u092c\u093f\u092c\u093e\u0930", "\u0938\u092e\u092c\u093e\u0930", "\u092e\u0902\u0917\u0932\u092c\u093e\u0930", "\u092c\u0941\u0926\u092c\u093e\u0930", "\u092c\u093f\u0938\u0925\u093f\u092c\u093e\u0930", "\u0938\u0941\u0916\u0941\u0930\u092c\u093e\u0930", "\u0938\u0941\u0928\u093f\u092c\u093e\u0930" ], "ERANAMES": [ "\u0908\u0938\u093e.\u092a\u0942\u0930\u094d\u0935", "\u0938\u0928" ], "ERAS": [ "\u0908\u0938\u093e.\u092a\u0942\u0930\u094d\u0935", "\u0938\u0928" ], "FIRSTDAYOFWEEK": 0, "MONTH": [ "\u091c\u093e\u0928\u0941\u0935\u093e\u0930\u0940", "\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940", "\u092e\u093e\u0930\u094d\u0938", "\u090f\u092b\u094d\u0930\u093f\u0932", "\u092e\u0947", "\u091c\u0941\u0928", "\u091c\u0941\u0932\u093e\u0907", "\u0906\u0917\u0938\u094d\u0925", "\u0938\u0947\u092c\u0925\u0947\u091c\u094d\u092c\u093c\u0930", "\u0905\u0916\u0925\u092c\u0930", "\u0928\u092c\u0947\u091c\u094d\u092c\u093c\u0930", "\u0926\u093f\u0938\u0947\u091c\u094d\u092c\u093c\u0930" ], "SHORTDAY": [ "\u0930\u092c\u093f", "\u0938\u092e", "\u092e\u0902\u0917\u0932", "\u092c\u0941\u0926", "\u092c\u093f\u0938\u0925\u093f", "\u0938\u0941\u0916\u0941\u0930", "\u0938\u0941\u0928\u093f" ], "SHORTMONTH": [ "\u091c\u093e\u0928\u0941\u0935\u093e\u0930\u0940", "\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940", "\u092e\u093e\u0930\u094d\u0938", "\u090f\u092b\u094d\u0930\u093f\u0932", "\u092e\u0947", "\u091c\u0941\u0928", "\u091c\u0941\u0932\u093e\u0907", "\u0906\u0917\u0938\u094d\u0925", "\u0938\u0947\u092c\u0925\u0947\u091c\u094d\u092c\u093c\u0930", "\u0905\u0916\u0925\u092c\u0930", "\u0928\u092c\u0947\u091c\u094d\u092c\u093c\u0930", "\u0926\u093f\u0938\u0947\u091c\u094d\u092c\u093c\u0930" ], "WEEKENDRANGE": [ 5, 6 ], "fullDate": "EEEE, MMMM d, y", "longDate": "MMMM d, y", "medium": "MMM d, y h:mm:ss a", "mediumDate": "MMM d, y", "mediumTime": "h:mm:ss a", "short": "M/d/yy h:mm a", "shortDate": "M/d/yy", "shortTime": "h:mm a" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "\u20b9", "DECIMAL_SEP": ".", "GROUP_SEP": ",", "PATTERNS": [ { "gSize": 2, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 2, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "\u00a4\u00a0-", "negSuf": "", "posPre": "\u00a4\u00a0", "posSuf": "" } ] }, "id": "brx-in", "pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
{'repo_name': 'aspnetboilerplate/aspnetboilerplate-samples', 'stars': '649', 'repo_language': 'JavaScript', 'file_name': 'ui-utils-ieshiv.js', 'mime_type': 'text/html', 'hash': 5039128649249068565, 'source_dataset': 'data'}
/* 7zCrc.h -- CRC32 calculation 2009-11-21 : Igor Pavlov : Public domain */ #ifndef __7Z_CRC_H #define __7Z_CRC_H #include "Types.h" EXTERN_C_BEGIN extern const UInt32 g_CrcTable[]; #define CRC_INIT_VAL 0xFFFFFFFF #define CRC_GET_DIGEST(crc) ((crc) ^ CRC_INIT_VAL) #define CRC_UPDATE_BYTE(crc, b) (g_CrcTable[((crc) ^ (b)) & 0xFF] ^ ((crc) >> 8)) UInt32 MY_FAST_CALL CrcUpdate(UInt32 crc, const void *data, size_t size); UInt32 MY_FAST_CALL CrcCalc(const void *data, size_t size); EXTERN_C_END #endif
{'repo_name': 'Cisco-Talos/clamav-devel', 'stars': '1103', 'repo_language': 'C++', 'file_name': 'Makefile.am', 'mime_type': 'text/plain', 'hash': -2420051466061913392, 'source_dataset': 'data'}
/**************************************************************************** * arch/mips/src/mips32/mips_blocktask.c * * Copyright (C) 2011, 2013-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * ****************************************************************************/ /**************************************************************************** * Included Files ****************************************************************************/ #include <nuttx/config.h> #include <stdbool.h> #include <sched.h> #include <syscall.h> #include <debug.h> #include <nuttx/arch.h> #include <nuttx/sched.h> #include "sched/sched.h" #include "group/group.h" #include "mips_internal.h" /**************************************************************************** * Public Functions ****************************************************************************/ /**************************************************************************** * Name: up_block_task * * Description: * The currently executing task at the head of the ready to run list must * be stopped. Save its context and move it to the inactive list * specified by task_state. * * Input Parameters: * tcb: Refers to a task in the ready-to-run list (normally the task at * the head of the list). It must be stopped, its context saved and * moved into one of the waiting task lists. If it was the task at the * head of the ready-to-run list, then a context switch to the new * ready to run task must be performed. * task_state: Specifies which waiting task list should hold the blocked * task TCB. * ****************************************************************************/ void up_block_task(struct tcb_s *tcb, tstate_t task_state) { struct tcb_s *rtcb = this_task(); bool switch_needed; /* Verify that the context switch can be performed */ DEBUGASSERT((tcb->task_state >= FIRST_READY_TO_RUN_STATE) && (tcb->task_state <= LAST_READY_TO_RUN_STATE)); /* Remove the tcb task from the ready-to-run list. If we are blocking the * task at the head of the task list (the most likely case), then a * context switch to the next ready-to-run task is needed. In this case, * it should also be true that rtcb == tcb. */ switch_needed = nxsched_remove_readytorun(tcb); /* Add the task to the specified blocked task list */ nxsched_add_blocked(tcb, (tstate_t)task_state); /* If there are any pending tasks, then add them to the ready-to-run * task list now */ if (g_pendingtasks.head) { switch_needed |= nxsched_merge_pending(); } /* Now, perform the context switch if one is needed */ if (switch_needed) { /* Update scheduler parameters */ nxsched_suspend_scheduler(rtcb); /* Are we in an interrupt handler? */ if (CURRENT_REGS) { /* Yes, then we have to do things differently. * Just copy the g_current_regs into the OLD rtcb. */ up_savestate(rtcb->xcp.regs); /* Restore the exception context of the rtcb at the (new) head * of the ready-to-run task list. */ rtcb = this_task(); /* Reset scheduler parameters */ nxsched_resume_scheduler(rtcb); /* Then switch contexts. Any necessary address environment * changes will be made when the interrupt returns. */ up_restorestate(rtcb->xcp.regs); } /* No, then we will need to perform the user context switch */ else { /* Get the context of the task at the head of the ready to * run list. */ struct tcb_s *nexttcb = this_task(); #ifdef CONFIG_ARCH_ADDRENV /* Make sure that the address environment for the previously * running task is closed down gracefully (data caches dump, * MMU flushed) and set up the address environment for the new * thread at the head of the ready-to-run list. */ group_addrenv(nexttcb); #endif /* Reset scheduler parameters */ nxsched_resume_scheduler(nexttcb); /* Then switch contexts */ up_switchcontext(rtcb->xcp.regs, nexttcb->xcp.regs); /* up_switchcontext forces a context switch to the task at the * head of the ready-to-run list. It does not 'return' in the * normal sense. When it does return, it is because the blocked * task is again ready to run and has execution priority. */ } } }
{'repo_name': 'apache/incubator-nuttx', 'stars': '181', 'repo_language': 'C', 'file_name': 'nrf52_uid.c', 'mime_type': 'text/x-c', 'hash': -6009482159773205554, 'source_dataset': 'data'}
/* Copyright 2015 The Kubernetes Authors All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package cm import ( "k8s.io/kubernetes/pkg/api" ) // Manages the containers running on a machine. type ContainerManager interface { // Runs the container manager's housekeeping. // - Ensures that the Docker daemon is in a container. // - Creates the system container where all non-containerized processes run. Start() error // Returns resources allocated to system cgroups in the machine. // These cgroups include the system and Kubernetes services. SystemCgroupsLimit() api.ResourceList // Returns a NodeConfig that is being used by the container manager. GetNodeConfig() NodeConfig // Returns internal Status. Status() Status } type NodeConfig struct { RuntimeCgroupsName string SystemCgroupsName string KubeletCgroupsName string ContainerRuntime string } type Status struct { // Any soft requirements that were unsatisfied. SoftRequirements error }
{'repo_name': 'redspread/localkube', 'stars': '179', 'repo_language': 'Go', 'file_name': 'main.go', 'mime_type': 'text/x-c', 'hash': -366990411608723591, 'source_dataset': 'data'}
// +build !ignore_autogenerated /* Copyright 2017 The Kubernetes Authors. 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. */ // This file was autogenerated by deepcopy-gen. Do not edit it manually! package apps import ( v1 "k8s.io/apimachinery/pkg/apis/meta/v1" conversion "k8s.io/apimachinery/pkg/conversion" runtime "k8s.io/apimachinery/pkg/runtime" api "k8s.io/client-go/pkg/api" reflect "reflect" ) func init() { SchemeBuilder.Register(RegisterDeepCopies) } // RegisterDeepCopies adds deep-copy functions to the given scheme. Public // to allow building arbitrary schemes. func RegisterDeepCopies(scheme *runtime.Scheme) error { return scheme.AddGeneratedDeepCopyFuncs( conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_StatefulSet, InType: reflect.TypeOf(&StatefulSet{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_StatefulSetList, InType: reflect.TypeOf(&StatefulSetList{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_StatefulSetSpec, InType: reflect.TypeOf(&StatefulSetSpec{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_StatefulSetStatus, InType: reflect.TypeOf(&StatefulSetStatus{})}, ) } func DeepCopy_apps_StatefulSet(in interface{}, out interface{}, c *conversion.Cloner) error { { in := in.(*StatefulSet) out := out.(*StatefulSet) *out = *in if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { return err } else { out.ObjectMeta = *newVal.(*v1.ObjectMeta) } if err := DeepCopy_apps_StatefulSetSpec(&in.Spec, &out.Spec, c); err != nil { return err } if err := DeepCopy_apps_StatefulSetStatus(&in.Status, &out.Status, c); err != nil { return err } return nil } } func DeepCopy_apps_StatefulSetList(in interface{}, out interface{}, c *conversion.Cloner) error { { in := in.(*StatefulSetList) out := out.(*StatefulSetList) *out = *in if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]StatefulSet, len(*in)) for i := range *in { if err := DeepCopy_apps_StatefulSet(&(*in)[i], &(*out)[i], c); err != nil { return err } } } return nil } } func DeepCopy_apps_StatefulSetSpec(in interface{}, out interface{}, c *conversion.Cloner) error { { in := in.(*StatefulSetSpec) out := out.(*StatefulSetSpec) *out = *in if in.Selector != nil { in, out := &in.Selector, &out.Selector if newVal, err := c.DeepCopy(*in); err != nil { return err } else { *out = newVal.(*v1.LabelSelector) } } if err := api.DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { return err } if in.VolumeClaimTemplates != nil { in, out := &in.VolumeClaimTemplates, &out.VolumeClaimTemplates *out = make([]api.PersistentVolumeClaim, len(*in)) for i := range *in { if err := api.DeepCopy_api_PersistentVolumeClaim(&(*in)[i], &(*out)[i], c); err != nil { return err } } } return nil } } func DeepCopy_apps_StatefulSetStatus(in interface{}, out interface{}, c *conversion.Cloner) error { { in := in.(*StatefulSetStatus) out := out.(*StatefulSetStatus) *out = *in if in.ObservedGeneration != nil { in, out := &in.ObservedGeneration, &out.ObservedGeneration *out = new(int64) **out = **in } return nil } }
{'repo_name': 'elastos/Elastos', 'stars': '101', 'repo_language': 'Go', 'file_name': 'codereview.cfg', 'mime_type': 'text/plain', 'hash': 1608487334118733717, 'source_dataset': 'data'}
/* Helloworld module -- A few examples of the Redis Modules API in the form * of commands showing how to accomplish common tasks. * * This module does not do anything useful, if not for a few commands. The * examples are designed in order to show the API. * * ----------------------------------------------------------------------------- * * Copyright (c) 2016, Salvatore Sanfilippo <antirez at gmail dot com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * Neither the name of Redis nor the names of its contributors may be used * to endorse or promote products derived from this software without * specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #include "../redismodule.h" #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> /* HELLO.SIMPLE is among the simplest commands you can implement. * It just returns the currently selected DB id, a functionality which is * missing in Redis. The command uses two important API calls: one to * fetch the currently selected DB, the other in order to send the client * an integer reply as response. */ int HelloSimple_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { REDISMODULE_NOT_USED(argv); REDISMODULE_NOT_USED(argc); RedisModule_ReplyWithLongLong(ctx,RedisModule_GetSelectedDb(ctx)); return REDISMODULE_OK; } /* HELLO.PUSH.NATIVE re-implements RPUSH, and shows the low level modules API * where you can "open" keys, make low level operations, create new keys by * pushing elements into non-existing keys, and so forth. * * You'll find this command to be roughly as fast as the actual RPUSH * command. */ int HelloPushNative_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { if (argc != 3) return RedisModule_WrongArity(ctx); RedisModuleKey *key = RedisModule_OpenKey(ctx,argv[1], REDISMODULE_READ|REDISMODULE_WRITE); RedisModule_ListPush(key,REDISMODULE_LIST_TAIL,argv[2]); size_t newlen = RedisModule_ValueLength(key); RedisModule_CloseKey(key); RedisModule_ReplyWithLongLong(ctx,newlen); return REDISMODULE_OK; } /* HELLO.PUSH.CALL implements RPUSH using an higher level approach, calling * a Redis command instead of working with the key in a low level way. This * approach is useful when you need to call Redis commands that are not * available as low level APIs, or when you don't need the maximum speed * possible but instead prefer implementation simplicity. */ int HelloPushCall_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { if (argc != 3) return RedisModule_WrongArity(ctx); RedisModuleCallReply *reply; reply = RedisModule_Call(ctx,"RPUSH","ss",argv[1],argv[2]); long long len = RedisModule_CallReplyInteger(reply); RedisModule_FreeCallReply(reply); RedisModule_ReplyWithLongLong(ctx,len); return REDISMODULE_OK; } /* HELLO.PUSH.CALL2 * This is exaxctly as HELLO.PUSH.CALL, but shows how we can reply to the * client using directly a reply object that Call() returned. */ int HelloPushCall2_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { if (argc != 3) return RedisModule_WrongArity(ctx); RedisModuleCallReply *reply; reply = RedisModule_Call(ctx,"RPUSH","ss",argv[1],argv[2]); RedisModule_ReplyWithCallReply(ctx,reply); RedisModule_FreeCallReply(reply); return REDISMODULE_OK; } /* HELLO.LIST.SUM.LEN returns the total length of all the items inside * a Redis list, by using the high level Call() API. * This command is an example of the array reply access. */ int HelloListSumLen_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { if (argc != 2) return RedisModule_WrongArity(ctx); RedisModuleCallReply *reply; reply = RedisModule_Call(ctx,"LRANGE","sll",argv[1],(long long)0,(long long)-1); size_t strlen = 0; size_t items = RedisModule_CallReplyLength(reply); size_t j; for (j = 0; j < items; j++) { RedisModuleCallReply *ele = RedisModule_CallReplyArrayElement(reply,j); strlen += RedisModule_CallReplyLength(ele); } RedisModule_FreeCallReply(reply); RedisModule_ReplyWithLongLong(ctx,strlen); return REDISMODULE_OK; } /* HELLO.LIST.SPLICE srclist dstlist count * Moves 'count' elements from the tail of 'srclist' to the head of * 'dstlist'. If less than count elements are available, it moves as much * elements as possible. */ int HelloListSplice_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { if (argc != 4) return RedisModule_WrongArity(ctx); RedisModuleKey *srckey = RedisModule_OpenKey(ctx,argv[1], REDISMODULE_READ|REDISMODULE_WRITE); RedisModuleKey *dstkey = RedisModule_OpenKey(ctx,argv[2], REDISMODULE_READ|REDISMODULE_WRITE); /* Src and dst key must be empty or lists. */ if ((RedisModule_KeyType(srckey) != REDISMODULE_KEYTYPE_LIST && RedisModule_KeyType(srckey) != REDISMODULE_KEYTYPE_EMPTY) || (RedisModule_KeyType(dstkey) != REDISMODULE_KEYTYPE_LIST && RedisModule_KeyType(dstkey) != REDISMODULE_KEYTYPE_EMPTY)) { RedisModule_CloseKey(srckey); RedisModule_CloseKey(dstkey); return RedisModule_ReplyWithError(ctx,REDISMODULE_ERRORMSG_WRONGTYPE); } long long count; if ((RedisModule_StringToLongLong(argv[3],&count) != REDISMODULE_OK) || (count < 0)) { RedisModule_CloseKey(srckey); RedisModule_CloseKey(dstkey); return RedisModule_ReplyWithError(ctx,"ERR invalid count"); } while(count-- > 0) { RedisModuleString *ele; ele = RedisModule_ListPop(srckey,REDISMODULE_LIST_TAIL); if (ele == NULL) break; RedisModule_ListPush(dstkey,REDISMODULE_LIST_HEAD,ele); RedisModule_FreeString(ctx,ele); } size_t len = RedisModule_ValueLength(srckey); RedisModule_CloseKey(srckey); RedisModule_CloseKey(dstkey); RedisModule_ReplyWithLongLong(ctx,len); return REDISMODULE_OK; } /* Like the HELLO.LIST.SPLICE above, but uses automatic memory management * in order to avoid freeing stuff. */ int HelloListSpliceAuto_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { if (argc != 4) return RedisModule_WrongArity(ctx); RedisModule_AutoMemory(ctx); RedisModuleKey *srckey = RedisModule_OpenKey(ctx,argv[1], REDISMODULE_READ|REDISMODULE_WRITE); RedisModuleKey *dstkey = RedisModule_OpenKey(ctx,argv[2], REDISMODULE_READ|REDISMODULE_WRITE); /* Src and dst key must be empty or lists. */ if ((RedisModule_KeyType(srckey) != REDISMODULE_KEYTYPE_LIST && RedisModule_KeyType(srckey) != REDISMODULE_KEYTYPE_EMPTY) || (RedisModule_KeyType(dstkey) != REDISMODULE_KEYTYPE_LIST && RedisModule_KeyType(dstkey) != REDISMODULE_KEYTYPE_EMPTY)) { return RedisModule_ReplyWithError(ctx,REDISMODULE_ERRORMSG_WRONGTYPE); } long long count; if ((RedisModule_StringToLongLong(argv[3],&count) != REDISMODULE_OK) || (count < 0)) { return RedisModule_ReplyWithError(ctx,"ERR invalid count"); } while(count-- > 0) { RedisModuleString *ele; ele = RedisModule_ListPop(srckey,REDISMODULE_LIST_TAIL); if (ele == NULL) break; RedisModule_ListPush(dstkey,REDISMODULE_LIST_HEAD,ele); } size_t len = RedisModule_ValueLength(srckey); RedisModule_ReplyWithLongLong(ctx,len); return REDISMODULE_OK; } /* HELLO.RAND.ARRAY <count> * Shows how to generate arrays as commands replies. * It just outputs <count> random numbers. */ int HelloRandArray_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { if (argc != 2) return RedisModule_WrongArity(ctx); long long count; if (RedisModule_StringToLongLong(argv[1],&count) != REDISMODULE_OK || count < 0) return RedisModule_ReplyWithError(ctx,"ERR invalid count"); /* To reply with an array, we call RedisModule_ReplyWithArray() followed * by other "count" calls to other reply functions in order to generate * the elements of the array. */ RedisModule_ReplyWithArray(ctx,count); while(count--) RedisModule_ReplyWithLongLong(ctx,rand()); return REDISMODULE_OK; } /* This is a simple command to test replication. Because of the "!" modified * in the RedisModule_Call() call, the two INCRs get replicated. * Also note how the ECHO is replicated in an unexpected position (check * comments the function implementation). */ int HelloRepl1_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { REDISMODULE_NOT_USED(argv); REDISMODULE_NOT_USED(argc); RedisModule_AutoMemory(ctx); /* This will be replicated *after* the two INCR statements, since * the Call() replication has precedence, so the actual replication * stream will be: * * MULTI * INCR foo * INCR bar * ECHO c foo * EXEC */ RedisModule_Replicate(ctx,"ECHO","c","foo"); /* Using the "!" modifier we replicate the command if it * modified the dataset in some way. */ RedisModule_Call(ctx,"INCR","c!","foo"); RedisModule_Call(ctx,"INCR","c!","bar"); RedisModule_ReplyWithLongLong(ctx,0); return REDISMODULE_OK; } /* Another command to show replication. In this case, we call * RedisModule_ReplicateVerbatim() to mean we want just the command to be * propagated to slaves / AOF exactly as it was called by the user. * * This command also shows how to work with string objects. * It takes a list, and increments all the elements (that must have * a numerical value) by 1, returning the sum of all the elements * as reply. * * Usage: HELLO.REPL2 <list-key> */ int HelloRepl2_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { if (argc != 2) return RedisModule_WrongArity(ctx); RedisModule_AutoMemory(ctx); /* Use automatic memory management. */ RedisModuleKey *key = RedisModule_OpenKey(ctx,argv[1], REDISMODULE_READ|REDISMODULE_WRITE); if (RedisModule_KeyType(key) != REDISMODULE_KEYTYPE_LIST) return RedisModule_ReplyWithError(ctx,REDISMODULE_ERRORMSG_WRONGTYPE); size_t listlen = RedisModule_ValueLength(key); long long sum = 0; /* Rotate and increment. */ while(listlen--) { RedisModuleString *ele = RedisModule_ListPop(key,REDISMODULE_LIST_TAIL); long long val; if (RedisModule_StringToLongLong(ele,&val) != REDISMODULE_OK) val = 0; val++; sum += val; RedisModuleString *newele = RedisModule_CreateStringFromLongLong(ctx,val); RedisModule_ListPush(key,REDISMODULE_LIST_HEAD,newele); } RedisModule_ReplyWithLongLong(ctx,sum); RedisModule_ReplicateVerbatim(ctx); return REDISMODULE_OK; } /* This is an example of strings DMA access. Given a key containing a string * it toggles the case of each character from lower to upper case or the * other way around. * * No automatic memory management is used in this example (for the sake * of variety). * * HELLO.TOGGLE.CASE key */ int HelloToggleCase_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { if (argc != 2) return RedisModule_WrongArity(ctx); RedisModuleKey *key = RedisModule_OpenKey(ctx,argv[1], REDISMODULE_READ|REDISMODULE_WRITE); int keytype = RedisModule_KeyType(key); if (keytype != REDISMODULE_KEYTYPE_STRING && keytype != REDISMODULE_KEYTYPE_EMPTY) { RedisModule_CloseKey(key); return RedisModule_ReplyWithError(ctx,REDISMODULE_ERRORMSG_WRONGTYPE); } if (keytype == REDISMODULE_KEYTYPE_STRING) { size_t len, j; char *s = RedisModule_StringDMA(key,&len,REDISMODULE_WRITE); for (j = 0; j < len; j++) { if (isupper(s[j])) { s[j] = tolower(s[j]); } else { s[j] = toupper(s[j]); } } } RedisModule_CloseKey(key); RedisModule_ReplyWithSimpleString(ctx,"OK"); RedisModule_ReplicateVerbatim(ctx); return REDISMODULE_OK; } /* HELLO.MORE.EXPIRE key milliseconds. * * If they key has already an associated TTL, extends it by "milliseconds" * milliseconds. Otherwise no operation is performed. */ int HelloMoreExpire_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { RedisModule_AutoMemory(ctx); /* Use automatic memory management. */ if (argc != 3) return RedisModule_WrongArity(ctx); mstime_t addms, expire; if (RedisModule_StringToLongLong(argv[2],&addms) != REDISMODULE_OK) return RedisModule_ReplyWithError(ctx,"ERR invalid expire time"); RedisModuleKey *key = RedisModule_OpenKey(ctx,argv[1], REDISMODULE_READ|REDISMODULE_WRITE); expire = RedisModule_GetExpire(key); if (expire != REDISMODULE_NO_EXPIRE) { expire += addms; RedisModule_SetExpire(key,expire); } return RedisModule_ReplyWithSimpleString(ctx,"OK"); } /* HELLO.ZSUMRANGE key startscore endscore * Return the sum of all the scores elements between startscore and endscore. * * The computation is performed two times, one time from start to end and * another time backward. The two scores, returned as a two element array, * should match.*/ int HelloZsumRange_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { double score_start, score_end; if (argc != 4) return RedisModule_WrongArity(ctx); if (RedisModule_StringToDouble(argv[2],&score_start) != REDISMODULE_OK || RedisModule_StringToDouble(argv[3],&score_end) != REDISMODULE_OK) { return RedisModule_ReplyWithError(ctx,"ERR invalid range"); } RedisModuleKey *key = RedisModule_OpenKey(ctx,argv[1], REDISMODULE_READ|REDISMODULE_WRITE); if (RedisModule_KeyType(key) != REDISMODULE_KEYTYPE_ZSET) { return RedisModule_ReplyWithError(ctx,REDISMODULE_ERRORMSG_WRONGTYPE); } double scoresum_a = 0; double scoresum_b = 0; RedisModule_ZsetFirstInScoreRange(key,score_start,score_end,0,0); while(!RedisModule_ZsetRangeEndReached(key)) { double score; RedisModuleString *ele = RedisModule_ZsetRangeCurrentElement(key,&score); RedisModule_FreeString(ctx,ele); scoresum_a += score; RedisModule_ZsetRangeNext(key); } RedisModule_ZsetRangeStop(key); RedisModule_ZsetLastInScoreRange(key,score_start,score_end,0,0); while(!RedisModule_ZsetRangeEndReached(key)) { double score; RedisModuleString *ele = RedisModule_ZsetRangeCurrentElement(key,&score); RedisModule_FreeString(ctx,ele); scoresum_b += score; RedisModule_ZsetRangePrev(key); } RedisModule_ZsetRangeStop(key); RedisModule_CloseKey(key); RedisModule_ReplyWithArray(ctx,2); RedisModule_ReplyWithDouble(ctx,scoresum_a); RedisModule_ReplyWithDouble(ctx,scoresum_b); return REDISMODULE_OK; } /* HELLO.LEXRANGE key min_lex max_lex min_age max_age * This command expects a sorted set stored at key in the following form: * - All the elements have score 0. * - Elements are pairs of "<name>:<age>", for example "Anna:52". * The command will return all the sorted set items that are lexicographically * between the specified range (using the same format as ZRANGEBYLEX) * and having an age between min_age and max_age. */ int HelloLexRange_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { RedisModule_AutoMemory(ctx); /* Use automatic memory management. */ if (argc != 6) return RedisModule_WrongArity(ctx); RedisModuleKey *key = RedisModule_OpenKey(ctx,argv[1], REDISMODULE_READ|REDISMODULE_WRITE); if (RedisModule_KeyType(key) != REDISMODULE_KEYTYPE_ZSET) { return RedisModule_ReplyWithError(ctx,REDISMODULE_ERRORMSG_WRONGTYPE); } if (RedisModule_ZsetFirstInLexRange(key,argv[2],argv[3]) != REDISMODULE_OK) { return RedisModule_ReplyWithError(ctx,"invalid range"); } int arraylen = 0; RedisModule_ReplyWithArray(ctx,REDISMODULE_POSTPONED_ARRAY_LEN); while(!RedisModule_ZsetRangeEndReached(key)) { double score; RedisModuleString *ele = RedisModule_ZsetRangeCurrentElement(key,&score); RedisModule_ReplyWithString(ctx,ele); RedisModule_FreeString(ctx,ele); RedisModule_ZsetRangeNext(key); arraylen++; } RedisModule_ZsetRangeStop(key); RedisModule_ReplySetArrayLength(ctx,arraylen); RedisModule_CloseKey(key); return REDISMODULE_OK; } /* HELLO.HCOPY key srcfield dstfield * This is just an example command that sets the hash field dstfield to the * same value of srcfield. If srcfield does not exist no operation is * performed. * * The command returns 1 if the copy is performed (srcfield exists) otherwise * 0 is returned. */ int HelloHCopy_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { RedisModule_AutoMemory(ctx); /* Use automatic memory management. */ if (argc != 4) return RedisModule_WrongArity(ctx); RedisModuleKey *key = RedisModule_OpenKey(ctx,argv[1], REDISMODULE_READ|REDISMODULE_WRITE); int type = RedisModule_KeyType(key); if (type != REDISMODULE_KEYTYPE_HASH && type != REDISMODULE_KEYTYPE_EMPTY) { return RedisModule_ReplyWithError(ctx,REDISMODULE_ERRORMSG_WRONGTYPE); } /* Get the old field value. */ RedisModuleString *oldval; RedisModule_HashGet(key,REDISMODULE_HASH_NONE,argv[2],&oldval,NULL); if (oldval) { RedisModule_HashSet(key,REDISMODULE_HASH_NONE,argv[3],oldval,NULL); } RedisModule_ReplyWithLongLong(ctx,oldval != NULL); return REDISMODULE_OK; } /* HELLO.LEFTPAD str len ch * This is an implementation of the infamous LEFTPAD function, that * was at the center of an issue with the npm modules system in March 2016. * * LEFTPAD is a good example of using a Redis Modules API called * "pool allocator", that was a famous way to allocate memory in yet another * open source project, the Apache web server. * * The concept is very simple: there is memory that is useful to allocate * only in the context of serving a request, and must be freed anyway when * the callback implementing the command returns. So in that case the module * does not need to retain a reference to these allocations, it is just * required to free the memory before returning. When this is the case the * module can call RedisModule_PoolAlloc() instead, that works like malloc() * but will automatically free the memory when the module callback returns. * * Note that PoolAlloc() does not necessarily require AutoMemory to be * active. */ int HelloLeftPad_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { RedisModule_AutoMemory(ctx); /* Use automatic memory management. */ long long padlen; if (argc != 4) return RedisModule_WrongArity(ctx); if ((RedisModule_StringToLongLong(argv[2],&padlen) != REDISMODULE_OK) || (padlen< 0)) { return RedisModule_ReplyWithError(ctx,"ERR invalid padding length"); } size_t strlen, chlen; const char *str = RedisModule_StringPtrLen(argv[1], &strlen); const char *ch = RedisModule_StringPtrLen(argv[3], &chlen); /* If the string is already larger than the target len, just return * the string itself. */ if (strlen >= (size_t)padlen) return RedisModule_ReplyWithString(ctx,argv[1]); /* Padding must be a single character in this simple implementation. */ if (chlen != 1) return RedisModule_ReplyWithError(ctx, "ERR padding must be a single char"); /* Here we use our pool allocator, for our throw-away allocation. */ padlen -= strlen; char *buf = RedisModule_PoolAlloc(ctx,padlen+strlen); for (long long j = 0; j < padlen; j++) buf[j] = *ch; memcpy(buf+padlen,str,strlen); RedisModule_ReplyWithStringBuffer(ctx,buf,padlen+strlen); return REDISMODULE_OK; } /* This function must be present on each Redis module. It is used in order to * register the commands into the Redis server. */ int RedisModule_OnLoad(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { if (RedisModule_Init(ctx,"helloworld",1,REDISMODULE_APIVER_1) == REDISMODULE_ERR) return REDISMODULE_ERR; /* Log the list of parameters passing loading the module. */ for (int j = 0; j < argc; j++) { const char *s = RedisModule_StringPtrLen(argv[j],NULL); printf("Module loaded with ARGV[%d] = %s\n", j, s); } if (RedisModule_CreateCommand(ctx,"hello.simple", HelloSimple_RedisCommand,"readonly",0,0,0) == REDISMODULE_ERR) return REDISMODULE_ERR; if (RedisModule_CreateCommand(ctx,"hello.push.native", HelloPushNative_RedisCommand,"write deny-oom",1,1,1) == REDISMODULE_ERR) return REDISMODULE_ERR; if (RedisModule_CreateCommand(ctx,"hello.push.call", HelloPushCall_RedisCommand,"write deny-oom",1,1,1) == REDISMODULE_ERR) return REDISMODULE_ERR; if (RedisModule_CreateCommand(ctx,"hello.push.call2", HelloPushCall2_RedisCommand,"write deny-oom",1,1,1) == REDISMODULE_ERR) return REDISMODULE_ERR; if (RedisModule_CreateCommand(ctx,"hello.list.sum.len", HelloListSumLen_RedisCommand,"readonly",1,1,1) == REDISMODULE_ERR) return REDISMODULE_ERR; if (RedisModule_CreateCommand(ctx,"hello.list.splice", HelloListSplice_RedisCommand,"write deny-oom",1,2,1) == REDISMODULE_ERR) return REDISMODULE_ERR; if (RedisModule_CreateCommand(ctx,"hello.list.splice.auto", HelloListSpliceAuto_RedisCommand, "write deny-oom",1,2,1) == REDISMODULE_ERR) return REDISMODULE_ERR; if (RedisModule_CreateCommand(ctx,"hello.rand.array", HelloRandArray_RedisCommand,"readonly",0,0,0) == REDISMODULE_ERR) return REDISMODULE_ERR; if (RedisModule_CreateCommand(ctx,"hello.repl1", HelloRepl1_RedisCommand,"write",0,0,0) == REDISMODULE_ERR) return REDISMODULE_ERR; if (RedisModule_CreateCommand(ctx,"hello.repl2", HelloRepl2_RedisCommand,"write",1,1,1) == REDISMODULE_ERR) return REDISMODULE_ERR; if (RedisModule_CreateCommand(ctx,"hello.toggle.case", HelloToggleCase_RedisCommand,"write",1,1,1) == REDISMODULE_ERR) return REDISMODULE_ERR; if (RedisModule_CreateCommand(ctx,"hello.more.expire", HelloMoreExpire_RedisCommand,"write",1,1,1) == REDISMODULE_ERR) return REDISMODULE_ERR; if (RedisModule_CreateCommand(ctx,"hello.zsumrange", HelloZsumRange_RedisCommand,"readonly",1,1,1) == REDISMODULE_ERR) return REDISMODULE_ERR; if (RedisModule_CreateCommand(ctx,"hello.lexrange", HelloLexRange_RedisCommand,"readonly",1,1,1) == REDISMODULE_ERR) return REDISMODULE_ERR; if (RedisModule_CreateCommand(ctx,"hello.hcopy", HelloHCopy_RedisCommand,"write deny-oom",1,1,1) == REDISMODULE_ERR) return REDISMODULE_ERR; if (RedisModule_CreateCommand(ctx,"hello.leftpad", HelloLeftPad_RedisCommand,"",1,1,1) == REDISMODULE_ERR) return REDISMODULE_ERR; return REDISMODULE_OK; }
{'repo_name': 'chenyahui/AnnotatedCode', 'stars': '317', 'repo_language': 'C', 'file_name': 'BoundedBlockingQueue_test.cc', 'mime_type': 'text/x-c++', 'hash': -3987201554966416224, 'source_dataset': 'data'}
<?xml version="1.0" encoding="UTF-8"?> <debug-info version="2"> <concept fqn="c:f3061a53-9226-4cc5-a443-f952ceaf5816/1068580123140:jetbrains.mps.baseLanguage.structure.ConstructorDeclaration" /> <concept fqn="c:f3061a53-9226-4cc5-a443-f952ceaf5816/1068580123155:jetbrains.mps.baseLanguage.structure.ExpressionStatement" /> <concept fqn="c:f3061a53-9226-4cc5-a443-f952ceaf5816/1068390468200:jetbrains.mps.baseLanguage.structure.FieldDeclaration" /> <concept fqn="c:f3061a53-9226-4cc5-a443-f952ceaf5816/1068580123165:jetbrains.mps.baseLanguage.structure.InstanceMethodDeclaration" /> <concept fqn="c:f3061a53-9226-4cc5-a443-f952ceaf5816/1068581242864:jetbrains.mps.baseLanguage.structure.LocalVariableDeclarationStatement" /> <concept fqn="c:f3061a53-9226-4cc5-a443-f952ceaf5816/1068581242878:jetbrains.mps.baseLanguage.structure.ReturnStatement" /> <concept fqn="c:f3061a53-9226-4cc5-a443-f952ceaf5816/1081236700938:jetbrains.mps.baseLanguage.structure.StaticMethodDeclaration" /> <root nodeRef="r:19bf018c-b5e7-418d-8415-b23921421325(sandboxModel)/1751004816843423273"> <file name="fixpoint.java"> <node id="1751004816843423273" at="12,42,13,33" concept="1" /> <node id="1751004816843423273" at="15,31,16,46" concept="5" /> <node id="1751004816843424603" at="19,0,20,0" concept="2" trace="myOuterVars" /> <node id="1751004816843424603" at="20,43,21,47" concept="1" /> <node id="1751004816843424603" at="23,57,24,47" concept="1" /> <node id="1751004816843424603" at="24,47,25,36" concept="1" /> <node id="1751004816843424603" at="27,26,28,16" concept="4" /> <node id="1751004816843424603" at="28,16,29,16" concept="4" /> <node id="1751004816843424605" at="29,16,30,46" concept="4" /> <node id="1751004816843424603" at="30,46,31,85" concept="5" /> <node id="1751004816843424603" at="33,33,34,15" concept="5" /> <node id="1751004816843424603" at="36,28,37,59" concept="5" /> <node id="1751004816843561803" at="40,0,41,0" concept="2" trace="myOuterVars" /> <node id="1751004816843561803" at="41,55,42,49" concept="1" /> <node id="1751004816843424605" at="42,49,43,27" concept="1" /> <node id="1751004816843561803" at="45,59,46,49" concept="1" /> <node id="1751004816843561803" at="46,49,47,38" concept="1" /> <node id="1751004816843561803" at="49,28,50,18" concept="4" /> <node id="1751004816843561803" at="50,18,51,18" concept="4" /> <node id="1751004816843424605" at="51,18,52,53" concept="4" /> <node id="1751004816843561804" at="52,53,53,48" concept="4" /> <node id="1751004816843561803" at="53,48,54,79" concept="5" /> <node id="1751004816843561803" at="56,35,57,17" concept="5" /> <node id="1751004816843561803" at="59,30,60,61" concept="5" /> <node id="1751004816843561372" at="63,82,64,77" concept="5" /> <node id="1751004816843423273" at="10,0,12,0" concept="0" trace="fixpoint#()V" /> <node id="1751004816843423273" at="12,0,15,0" concept="6" trace="main#([Ljava/lang/String;)V" /> <node id="1751004816843423273" at="15,0,18,0" concept="6" trace="eval#()Ljava/lang/Object;" /> <node id="1751004816843424603" at="20,0,23,0" concept="0" trace="Function_1751004816843424603#()V" /> <node id="1751004816843424603" at="33,0,36,0" concept="3" trace="getParamsCount#()I" /> <node id="1751004816843424603" at="36,0,39,0" concept="3" trace="copy#()Ljetbrains/mps/samples/lambdaCalculus/runtime/Function;" /> <node id="1751004816843561803" at="56,0,59,0" concept="3" trace="getParamsCount#()I" /> <node id="1751004816843561803" at="59,0,62,0" concept="3" trace="copy#()Ljetbrains/mps/samples/lambdaCalculus/runtime/Function;" /> <node id="1751004816843561372" at="63,0,66,0" concept="6" trace="lambdaAbstr_1751004816843424696#(Ljetbrains/mps/samples/lambdaCalculus/runtime/Function;Ljetbrains/mps/samples/lambdaCalculus/runtime/Function;)Ljava/lang/Object;" /> <node id="1751004816843424603" at="23,0,27,0" concept="0" trace="Function_1751004816843424603#(Ljava/util/List;)V" /> <node id="1751004816843561803" at="41,0,45,0" concept="0" trace="Function_1751004816843561803#(Ljetbrains/mps/samples/lambdaCalculus/runtime/Function;)V" /> <node id="1751004816843561803" at="45,0,49,0" concept="0" trace="Function_1751004816843561803#(Ljava/util/List;)V" /> <node id="1751004816843424603" at="27,0,33,0" concept="3" trace="eval#()Ljava/lang/Object;" /> <node id="1751004816843561803" at="49,0,56,0" concept="3" trace="eval#()Ljava/lang/Object;" /> <scope id="1751004816843423273" at="10,21,10,21" /> <scope id="1751004816843423273" at="12,42,13,33" /> <scope id="1751004816843423273" at="15,31,16,46" /> <scope id="1751004816843424603" at="20,43,21,47" /> <scope id="1751004816843424603" at="33,33,34,15" /> <scope id="1751004816843424603" at="36,28,37,59" /> <scope id="1751004816843561803" at="56,35,57,17" /> <scope id="1751004816843561803" at="59,30,60,61" /> <scope id="1751004816843561372" at="63,82,64,77" /> <scope id="1751004816843423273" at="10,0,12,0" /> <scope id="1751004816843424603" at="23,57,25,36" /> <scope id="1751004816843561803" at="41,55,43,27" /> <scope id="1751004816843561803" at="45,59,47,38" /> <scope id="1751004816843423273" at="12,0,15,0"> <var name="args" id="1751004816843423273" /> </scope> <scope id="1751004816843423273" at="15,0,18,0" /> <scope id="1751004816843424603" at="20,0,23,0" /> <scope id="1751004816843424603" at="33,0,36,0" /> <scope id="1751004816843424603" at="36,0,39,0" /> <scope id="1751004816843561803" at="56,0,59,0" /> <scope id="1751004816843561803" at="59,0,62,0" /> <scope id="1751004816843561372" at="63,0,66,0"> <var name="f" id="1751004816843424605" /> <var name="x" id="1751004816843424698" /> </scope> <scope id="1751004816843424603" at="23,0,27,0"> <var name="outerVars" id="1751004816843424603" /> </scope> <scope id="1751004816843424603" at="27,26,31,85"> <var name="f" id="1751004816843424605" /> <var name="i" id="1751004816843424603" /> <var name="j" id="1751004816843424603" /> </scope> <scope id="1751004816843561803" at="41,0,45,0"> <var name="f" id="1751004816843424605" /> </scope> <scope id="1751004816843561803" at="45,0,49,0"> <var name="outerVars" id="1751004816843561803" /> </scope> <scope id="1751004816843561803" at="49,28,54,79"> <var name="f" id="1751004816843424605" /> <var name="i" id="1751004816843561803" /> <var name="j" id="1751004816843561803" /> <var name="x" id="1751004816843561804" /> </scope> <scope id="1751004816843424603" at="27,0,33,0" /> <scope id="1751004816843561803" at="49,0,56,0" /> <unit id="1751004816843561803" at="39,0,63,0" name="sandboxModel.fixpoint$Function_1751004816843424603$Function_1751004816843561803" /> <unit id="1751004816843424603" at="18,0,67,0" name="sandboxModel.fixpoint$Function_1751004816843424603" /> <unit id="1751004816843423273" at="9,0,68,0" name="sandboxModel.fixpoint" /> </file> </root> <root nodeRef="r:19bf018c-b5e7-418d-8415-b23921421325(sandboxModel)/1751004816843565387"> <file name="minimalTypeTest.java"> <node id="1751004816843565387" at="12,42,13,33" concept="1" /> <node id="1751004816843565387" at="15,31,16,46" concept="5" /> <node id="1751004816843568058" at="19,0,20,0" concept="2" trace="myOuterVars" /> <node id="1751004816843568058" at="20,43,21,47" concept="1" /> <node id="1751004816843568058" at="23,57,24,47" concept="1" /> <node id="1751004816843568058" at="24,47,25,36" concept="1" /> <node id="1751004816843568058" at="27,26,28,16" concept="4" /> <node id="1751004816843568058" at="28,16,29,16" concept="4" /> <node id="1751004816843568060" at="29,16,30,46" concept="4" /> <node id="1751004816843568058" at="30,46,31,46" concept="5" /> <node id="1751004816843568058" at="33,33,34,15" concept="5" /> <node id="1751004816843568058" at="36,28,37,59" concept="5" /> <node id="1751004816843565387" at="10,0,12,0" concept="0" trace="minimalTypeTest#()V" /> <node id="1751004816843565387" at="12,0,15,0" concept="6" trace="main#([Ljava/lang/String;)V" /> <node id="1751004816843565387" at="15,0,18,0" concept="6" trace="eval#()Ljava/lang/Object;" /> <node id="1751004816843568058" at="20,0,23,0" concept="0" trace="Function_1751004816843568058#()V" /> <node id="1751004816843568058" at="33,0,36,0" concept="3" trace="getParamsCount#()I" /> <node id="1751004816843568058" at="36,0,39,0" concept="3" trace="copy#()Ljetbrains/mps/samples/lambdaCalculus/runtime/Function;" /> <node id="1751004816843568058" at="23,0,27,0" concept="0" trace="Function_1751004816843568058#(Ljava/util/List;)V" /> <node id="1751004816843568058" at="27,0,33,0" concept="3" trace="eval#()Ljava/lang/Object;" /> <scope id="1751004816843565387" at="10,28,10,28" /> <scope id="1751004816843565387" at="12,42,13,33" /> <scope id="1751004816843565387" at="15,31,16,46" /> <scope id="1751004816843568058" at="20,43,21,47" /> <scope id="1751004816843568058" at="33,33,34,15" /> <scope id="1751004816843568058" at="36,28,37,59" /> <scope id="1751004816843565387" at="10,0,12,0" /> <scope id="1751004816843568058" at="23,57,25,36" /> <scope id="1751004816843565387" at="12,0,15,0"> <var name="args" id="1751004816843565387" /> </scope> <scope id="1751004816843565387" at="15,0,18,0" /> <scope id="1751004816843568058" at="20,0,23,0" /> <scope id="1751004816843568058" at="33,0,36,0" /> <scope id="1751004816843568058" at="36,0,39,0" /> <scope id="1751004816843568058" at="23,0,27,0"> <var name="outerVars" id="1751004816843568058" /> </scope> <scope id="1751004816843568058" at="27,26,31,46"> <var name="i" id="1751004816843568058" /> <var name="j" id="1751004816843568058" /> <var name="x" id="1751004816843568060" /> </scope> <scope id="1751004816843568058" at="27,0,33,0" /> <unit id="1751004816843568058" at="18,0,40,0" name="sandboxModel.minimalTypeTest$Function_1751004816843568058" /> <unit id="1751004816843565387" at="9,0,41,0" name="sandboxModel.minimalTypeTest" /> </file> </root> <root nodeRef="r:19bf018c-b5e7-418d-8415-b23921421325(sandboxModel)/1751004816843669401"> <file name="biggerTypeTest1.java"> <node id="1751004816843669401" at="12,42,13,33" concept="1" /> <node id="1751004816843669401" at="15,31,16,46" concept="5" /> <node id="1751004816843669402" at="19,0,20,0" concept="2" trace="myOuterVars" /> <node id="1751004816843669402" at="20,43,21,80" concept="1" /> <node id="1751004816843669402" at="23,57,24,80" concept="1" /> <node id="1751004816843669402" at="24,80,25,36" concept="1" /> <node id="1751004816843669402" at="27,26,28,16" concept="4" /> <node id="1751004816843669402" at="28,16,29,16" concept="4" /> <node id="1751004816843669403" at="29,16,30,46" concept="4" /> <node id="1751004816843897735" at="30,46,31,46" concept="4" /> <node id="1751004816843669402" at="31,46,32,77" concept="5" /> <node id="1751004816843669402" at="34,33,35,15" concept="5" /> <node id="1751004816843669402" at="37,28,38,59" concept="5" /> <node id="1751004816843669401" at="10,0,12,0" concept="0" trace="biggerTypeTest1#()V" /> <node id="1751004816843669401" at="12,0,15,0" concept="6" trace="main#([Ljava/lang/String;)V" /> <node id="1751004816843669401" at="15,0,18,0" concept="6" trace="eval#()Ljava/lang/Object;" /> <node id="1751004816843669402" at="20,0,23,0" concept="0" trace="Function_1751004816843669402#()V" /> <node id="1751004816843669402" at="34,0,37,0" concept="3" trace="getParamsCount#()I" /> <node id="1751004816843669402" at="37,0,40,0" concept="3" trace="copy#()Ljetbrains/mps/samples/lambdaCalculus/runtime/Function;" /> <node id="1751004816843669402" at="23,0,27,0" concept="0" trace="Function_1751004816843669402#(Ljava/util/List;)V" /> <node id="1751004816843669402" at="27,0,34,0" concept="3" trace="eval#()Ljava/lang/Object;" /> <scope id="1751004816843669401" at="10,28,10,28" /> <scope id="1751004816843669401" at="12,42,13,33" /> <scope id="1751004816843669401" at="15,31,16,46" /> <scope id="1751004816843669402" at="20,43,21,80" /> <scope id="1751004816843669402" at="34,33,35,15" /> <scope id="1751004816843669402" at="37,28,38,59" /> <scope id="1751004816843669401" at="10,0,12,0" /> <scope id="1751004816843669402" at="23,57,25,36" /> <scope id="1751004816843669401" at="12,0,15,0"> <var name="args" id="1751004816843669401" /> </scope> <scope id="1751004816843669401" at="15,0,18,0" /> <scope id="1751004816843669402" at="20,0,23,0" /> <scope id="1751004816843669402" at="34,0,37,0" /> <scope id="1751004816843669402" at="37,0,40,0" /> <scope id="1751004816843669402" at="23,0,27,0"> <var name="outerVars" id="1751004816843669402" /> </scope> <scope id="1751004816843669402" at="27,26,32,77"> <var name="i" id="1751004816843669402" /> <var name="j" id="1751004816843669402" /> <var name="x" id="1751004816843669403" /> <var name="y" id="1751004816843897735" /> </scope> <scope id="1751004816843669402" at="27,0,34,0" /> <unit id="1751004816843669402" at="18,0,41,0" name="sandboxModel.biggerTypeTest1$Function_1751004816843669402" /> <unit id="1751004816843669401" at="9,0,42,0" name="sandboxModel.biggerTypeTest1" /> </file> </root> <root nodeRef="r:19bf018c-b5e7-418d-8415-b23921421325(sandboxModel)/1751004816844298779"> <file name="biggerTypeTest2.java"> <node id="1751004816844298779" at="12,42,13,33" concept="1" /> <node id="1751004816844298779" at="15,31,16,46" concept="5" /> <node id="1751004816844298780" at="19,0,20,0" concept="2" trace="myOuterVars" /> <node id="1751004816844298780" at="20,43,21,80" concept="1" /> <node id="1751004816844298780" at="23,57,24,80" concept="1" /> <node id="1751004816844298780" at="24,80,25,36" concept="1" /> <node id="1751004816844298780" at="27,26,28,16" concept="4" /> <node id="1751004816844298780" at="28,16,29,16" concept="4" /> <node id="1751004816844298781" at="29,16,30,46" concept="4" /> <node id="1751004816844299683" at="30,46,31,46" concept="4" /> <node id="1751004816844298780" at="31,46,32,77" concept="5" /> <node id="1751004816844298780" at="34,33,35,15" concept="5" /> <node id="1751004816844298780" at="37,28,38,59" concept="5" /> <node id="1751004816844298779" at="10,0,12,0" concept="0" trace="biggerTypeTest2#()V" /> <node id="1751004816844298779" at="12,0,15,0" concept="6" trace="main#([Ljava/lang/String;)V" /> <node id="1751004816844298779" at="15,0,18,0" concept="6" trace="eval#()Ljava/lang/Object;" /> <node id="1751004816844298780" at="20,0,23,0" concept="0" trace="Function_1751004816844298780#()V" /> <node id="1751004816844298780" at="34,0,37,0" concept="3" trace="getParamsCount#()I" /> <node id="1751004816844298780" at="37,0,40,0" concept="3" trace="copy#()Ljetbrains/mps/samples/lambdaCalculus/runtime/Function;" /> <node id="1751004816844298780" at="23,0,27,0" concept="0" trace="Function_1751004816844298780#(Ljava/util/List;)V" /> <node id="1751004816844298780" at="27,0,34,0" concept="3" trace="eval#()Ljava/lang/Object;" /> <scope id="1751004816844298779" at="10,28,10,28" /> <scope id="1751004816844298779" at="12,42,13,33" /> <scope id="1751004816844298779" at="15,31,16,46" /> <scope id="1751004816844298780" at="20,43,21,80" /> <scope id="1751004816844298780" at="34,33,35,15" /> <scope id="1751004816844298780" at="37,28,38,59" /> <scope id="1751004816844298779" at="10,0,12,0" /> <scope id="1751004816844298780" at="23,57,25,36" /> <scope id="1751004816844298779" at="12,0,15,0"> <var name="args" id="1751004816844298779" /> </scope> <scope id="1751004816844298779" at="15,0,18,0" /> <scope id="1751004816844298780" at="20,0,23,0" /> <scope id="1751004816844298780" at="34,0,37,0" /> <scope id="1751004816844298780" at="37,0,40,0" /> <scope id="1751004816844298780" at="23,0,27,0"> <var name="outerVars" id="1751004816844298780" /> </scope> <scope id="1751004816844298780" at="27,26,32,77"> <var name="i" id="1751004816844298780" /> <var name="j" id="1751004816844298780" /> <var name="x" id="1751004816844298781" /> <var name="y" id="1751004816844299683" /> </scope> <scope id="1751004816844298780" at="27,0,34,0" /> <unit id="1751004816844298780" at="18,0,41,0" name="sandboxModel.biggerTypeTest2$Function_1751004816844298780" /> <unit id="1751004816844298779" at="9,0,42,0" name="sandboxModel.biggerTypeTest2" /> </file> </root> <root nodeRef="r:19bf018c-b5e7-418d-8415-b23921421325(sandboxModel)/2167053794906818090"> <file name="sim.java"> <node id="2167053794906818090" at="12,42,13,33" concept="1" /> <node id="2167053794906818090" at="15,31,16,81" concept="5" /> <node id="2167053794906818092" at="19,0,20,0" concept="2" trace="myOuterVars" /> <node id="2167053794906818092" at="20,43,21,34" concept="1" /> <node id="2167053794906818092" at="23,57,24,34" concept="1" /> <node id="2167053794906818092" at="24,34,25,36" concept="1" /> <node id="2167053794906818092" at="27,26,28,16" concept="4" /> <node id="2167053794906818092" at="28,16,29,16" concept="4" /> <node id="2167053794906818093" at="29,16,30,44" concept="4" /> <node id="2167053794906818092" at="30,44,31,19" concept="5" /> <node id="2167053794906818092" at="33,33,34,15" concept="5" /> <node id="2167053794906818092" at="36,28,37,59" concept="5" /> <node id="2167053794906818091" at="40,61,41,95" concept="5" /> <node id="2167053794906818090" at="10,0,12,0" concept="0" trace="sim#()V" /> <node id="2167053794906818090" at="12,0,15,0" concept="6" trace="main#([Ljava/lang/String;)V" /> <node id="2167053794906818090" at="15,0,18,0" concept="6" trace="eval#()Ljava/lang/Object;" /> <node id="2167053794906818092" at="20,0,23,0" concept="0" trace="Function_2167053794906818092#()V" /> <node id="2167053794906818092" at="33,0,36,0" concept="3" trace="getParamsCount#()I" /> <node id="2167053794906818092" at="36,0,39,0" concept="3" trace="copy#()Ljetbrains/mps/samples/lambdaCalculus/runtime/Function;" /> <node id="2167053794906818091" at="40,0,43,0" concept="6" trace="let_2167053794906818091#(Ljetbrains/mps/samples/lambdaCalculus/runtime/Function;)Ljava/lang/Object;" /> <node id="2167053794906818092" at="23,0,27,0" concept="0" trace="Function_2167053794906818092#(Ljava/util/List;)V" /> <node id="2167053794906818092" at="27,0,33,0" concept="3" trace="eval#()Ljava/lang/Object;" /> <scope id="2167053794906818090" at="10,16,10,16" /> <scope id="2167053794906818090" at="12,42,13,33" /> <scope id="2167053794906818090" at="15,31,16,81" /> <scope id="2167053794906818092" at="20,43,21,34" /> <scope id="2167053794906818092" at="33,33,34,15" /> <scope id="2167053794906818092" at="36,28,37,59" /> <scope id="2167053794906818091" at="40,61,41,95" /> <scope id="2167053794906818090" at="10,0,12,0" /> <scope id="2167053794906818092" at="23,57,25,36" /> <scope id="2167053794906818090" at="12,0,15,0"> <var name="args" id="2167053794906818090" /> </scope> <scope id="2167053794906818090" at="15,0,18,0" /> <scope id="2167053794906818092" at="20,0,23,0" /> <scope id="2167053794906818092" at="33,0,36,0" /> <scope id="2167053794906818092" at="36,0,39,0" /> <scope id="2167053794906818091" at="40,0,43,0"> <var name="sq" id="2167053794906818091" /> </scope> <scope id="2167053794906818092" at="23,0,27,0"> <var name="outerVars" id="2167053794906818092" /> </scope> <scope id="2167053794906818092" at="27,26,31,19"> <var name="i" id="2167053794906818092" /> <var name="j" id="2167053794906818092" /> <var name="x" id="2167053794906818093" /> </scope> <scope id="2167053794906818092" at="27,0,33,0" /> <unit id="2167053794906818092" at="18,0,40,0" name="sandboxModel.sim$Function_2167053794906818092" /> <unit id="2167053794906818090" at="9,0,44,0" name="sandboxModel.sim" /> </file> </root> <root nodeRef="r:19bf018c-b5e7-418d-8415-b23921421325(sandboxModel)/5277476162361142416"> <file name="test2.java"> <node id="5277476162361142416" at="9,42,10,33" concept="1" /> <node id="5277476162361142416" at="12,31,13,46" concept="5" /> <node id="5277476162361142445" at="15,68,16,13" concept="5" /> <node id="5277476162361142416" at="7,0,9,0" concept="0" trace="test2#()V" /> <node id="5277476162361142416" at="9,0,12,0" concept="6" trace="main#([Ljava/lang/String;)V" /> <node id="5277476162361142416" at="12,0,15,0" concept="6" trace="eval#()Ljava/lang/Object;" /> <node id="5277476162361142445" at="15,0,18,0" concept="6" trace="lambdaAbstr_5277476162361142418#(Ljava/lang/Integer;)Ljava/lang/Integer;" /> <scope id="5277476162361142416" at="7,18,7,18" /> <scope id="5277476162361142416" at="9,42,10,33" /> <scope id="5277476162361142416" at="12,31,13,46" /> <scope id="5277476162361142445" at="15,68,16,13" /> <scope id="5277476162361142416" at="7,0,9,0" /> <scope id="5277476162361142416" at="9,0,12,0"> <var name="args" id="5277476162361142416" /> </scope> <scope id="5277476162361142416" at="12,0,15,0" /> <scope id="5277476162361142445" at="15,0,18,0"> <var name="x" id="5277476162361142419" /> </scope> <unit id="5277476162361142416" at="6,0,19,0" name="sandboxModel.test2" /> </file> </root> <root nodeRef="r:19bf018c-b5e7-418d-8415-b23921421325(sandboxModel)/816130369292750457"> <file name="sumsq.java"> <node id="816130369292750457" at="9,42,10,33" concept="1" /> <node id="816130369292750457" at="12,31,13,48" concept="5" /> <node id="816130369292750664" at="15,78,16,57" concept="5" /> <node id="816130369292750468" at="18,82,19,62" concept="5" /> <node id="816130369292750496" at="21,96,22,58" concept="5" /> <node id="816130369292750539" at="24,94,25,28" concept="5" /> <node id="816130369292750457" at="7,0,9,0" concept="0" trace="sumsq#()V" /> <node id="816130369292750457" at="9,0,12,0" concept="6" trace="main#([Ljava/lang/String;)V" /> <node id="816130369292750457" at="12,0,15,0" concept="6" trace="eval#()Ljava/lang/Object;" /> <node id="816130369292750664" at="15,0,18,0" concept="6" trace="lambdaAbstr_816130369292750642#(Ljava/lang/Integer;Ljava/lang/Integer;)Ljava/lang/Integer;" /> <node id="816130369292750468" at="18,0,21,0" concept="6" trace="let_816130369292750468#(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)Ljava/lang/Object;" /> <node id="816130369292750496" at="21,0,24,0" concept="6" trace="let_816130369292750496#(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)Ljava/lang/Object;" /> <node id="816130369292750539" at="24,0,27,0" concept="6" trace="lambdaAbstr_816130369292750515#(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)Ljava/lang/Integer;" /> <scope id="816130369292750457" at="7,18,7,18" /> <scope id="816130369292750457" at="9,42,10,33" /> <scope id="816130369292750457" at="12,31,13,48" /> <scope id="816130369292750664" at="15,78,16,57" /> <scope id="816130369292750468" at="18,82,19,62" /> <scope id="816130369292750496" at="21,96,22,58" /> <scope id="816130369292750539" at="24,94,25,28" /> <scope id="816130369292750457" at="7,0,9,0" /> <scope id="816130369292750457" at="9,0,12,0"> <var name="args" id="816130369292750457" /> </scope> <scope id="816130369292750457" at="12,0,15,0" /> <scope id="816130369292750664" at="15,0,18,0"> <var name="x" id="816130369292750460" /> <var name="y" id="816130369292750464" /> </scope> <scope id="816130369292750468" at="18,0,21,0"> <var name="sum" id="816130369292750468" /> <var name="x" id="816130369292750460" /> <var name="y" id="816130369292750464" /> </scope> <scope id="816130369292750496" at="21,0,24,0"> <var name="mult" id="816130369292750496" /> <var name="sum" id="816130369292750478" /> <var name="x" id="816130369292750460" /> <var name="y" id="816130369292750464" /> </scope> <scope id="816130369292750539" at="24,0,27,0"> <var name="mult" id="816130369292750499" /> <var name="sum" id="816130369292750478" /> <var name="z" id="816130369292750516" /> </scope> <unit id="816130369292750457" at="6,0,28,0" name="sandboxModel.sumsq" /> </file> </root> <root nodeRef="r:19bf018c-b5e7-418d-8415-b23921421325(sandboxModel)/816130369292806252"> <file name="letlet.java"> <node id="816130369292806252" at="9,42,10,33" concept="1" /> <node id="816130369292806252" at="12,31,13,47" concept="5" /> <node id="816130369292806253" at="15,59,16,51" concept="5" /> <node id="816130369292806255" at="18,71,19,19" concept="5" /> <node id="816130369292806252" at="7,0,9,0" concept="0" trace="letlet#()V" /> <node id="816130369292806252" at="9,0,12,0" concept="6" trace="main#([Ljava/lang/String;)V" /> <node id="816130369292806252" at="12,0,15,0" concept="6" trace="eval#()Ljava/lang/Object;" /> <node id="816130369292806253" at="15,0,18,0" concept="6" trace="let_816130369292806253#(Ljava/lang/Integer;)Ljava/lang/Object;" /> <node id="816130369292806255" at="18,0,21,0" concept="6" trace="let_816130369292806255#(Ljava/lang/Integer;Ljava/lang/Integer;)Ljava/lang/Object;" /> <scope id="816130369292806252" at="7,19,7,19" /> <scope id="816130369292806252" at="9,42,10,33" /> <scope id="816130369292806252" at="12,31,13,47" /> <scope id="816130369292806253" at="15,59,16,51" /> <scope id="816130369292806255" at="18,71,19,19" /> <scope id="816130369292806252" at="7,0,9,0" /> <scope id="816130369292806252" at="9,0,12,0"> <var name="args" id="816130369292806252" /> </scope> <scope id="816130369292806252" at="12,0,15,0" /> <scope id="816130369292806253" at="15,0,18,0"> <var name="q1" id="816130369292806253" /> </scope> <scope id="816130369292806255" at="18,0,21,0"> <var name="q1" id="816130369292806261" /> <var name="q2" id="816130369292806255" /> </scope> <unit id="816130369292806252" at="6,0,22,0" name="sandboxModel.letlet" /> </file> </root> </debug-info>
{'repo_name': 'JetBrains/MPS', 'stars': '1070', 'repo_language': 'Java', 'file_name': 'LanguageAspectsEP_extension.java', 'mime_type': 'text/x-java', 'hash': -2157467870124693778, 'source_dataset': 'data'}
package water // PlatformSpecificParams defines parameters in Config that are specific to // Windows. A zero-value of such type is valid. type PlatformSpecificParams struct { // ComponentID associates with the virtual adapter that exists in Windows. // This is usually configured when driver for the adapter is installed. A // zero-value of this field, i.e., an empty string, causes the interface to // use the default ComponentId. The default ComponentId is set to tap0901, // the one used by OpenVPN. ComponentID string // InterfaceName is a friendly name of the network adapter as set in Control Panel. // Of course, you may have multiple tap0901 adapters on the system, in which // case we need a friendlier way to identify them. InterfaceName string // Network is required when creating a TUN interface. The library will call // net.ParseCIDR() to parse this string into LocalIP, RemoteNetaddr, // RemoteNetmask. The underlying driver will need those to generate ARP // response to Windows kernel, to emulate an TUN interface. // Please note that it cannot perceive the IP changes caused by DHCP, user // configuration to the adapter and etc,. If IP changed, please reconfigure // the adapter using syscall, just like openDev(). // For detail, please refer // https://github.com/OpenVPN/tap-windows6/blob/master/src/device.c#L431 // and https://github.com/songgao/water/pull/13#issuecomment-270341777 Network string } func defaultPlatformSpecificParams() PlatformSpecificParams { return PlatformSpecificParams{ ComponentID: "tap0901", Network: "192.168.1.10/24", } }
{'repo_name': 'OpenIoTHub/gateway-go', 'stars': '118', 'repo_language': 'Go', 'file_name': 'gateway-go.service', 'mime_type': 'text/plain', 'hash': 164518666387019407, 'source_dataset': 'data'}
/* * * Hardware accelerated Matrox Millennium I, II, Mystique, G100, G200, G400 and G450 * * (c) 1998-2002 Petr Vandrovec <vandrove@vc.cvut.cz> * */ #ifndef __MATROXFB_H__ #define __MATROXFB_H__ /* general, but fairly heavy, debugging */ #undef MATROXFB_DEBUG /* heavy debugging: */ /* -- logs putc[s], so every time a char is displayed, it's logged */ #undef MATROXFB_DEBUG_HEAVY /* This one _could_ cause infinite loops */ /* It _does_ cause lots and lots of messages during idle loops */ #undef MATROXFB_DEBUG_LOOP /* Debug register calls, too? */ #undef MATROXFB_DEBUG_REG /* Guard accelerator accesses with spin_lock_irqsave... */ #undef MATROXFB_USE_SPINLOCKS #include <linux/module.h> #include <linux/kernel.h> #include <linux/errno.h> #include <linux/string.h> #include <linux/mm.h> #include <linux/slab.h> #include <linux/delay.h> #include <linux/fb.h> #include <linux/console.h> #include <linux/selection.h> #include <linux/ioport.h> #include <linux/init.h> #include <linux/timer.h> #include <linux/pci.h> #include <linux/spinlock.h> #include <linux/kd.h> #include <asm/io.h> #include <asm/unaligned.h> #ifdef CONFIG_MTRR #include <asm/mtrr.h> #endif #if defined(CONFIG_PPC_PMAC) #include <asm/prom.h> #include <asm/pci-bridge.h> #include "../macmodes.h" #endif #ifdef MATROXFB_DEBUG #define DEBUG #define DBG(x) printk(KERN_DEBUG "matroxfb: %s\n", (x)); #ifdef MATROXFB_DEBUG_HEAVY #define DBG_HEAVY(x) DBG(x) #else /* MATROXFB_DEBUG_HEAVY */ #define DBG_HEAVY(x) /* DBG_HEAVY */ #endif /* MATROXFB_DEBUG_HEAVY */ #ifdef MATROXFB_DEBUG_LOOP #define DBG_LOOP(x) DBG(x) #else /* MATROXFB_DEBUG_LOOP */ #define DBG_LOOP(x) /* DBG_LOOP */ #endif /* MATROXFB_DEBUG_LOOP */ #ifdef MATROXFB_DEBUG_REG #define DBG_REG(x) DBG(x) #else /* MATROXFB_DEBUG_REG */ #define DBG_REG(x) /* DBG_REG */ #endif /* MATROXFB_DEBUG_REG */ #else /* MATROXFB_DEBUG */ #define DBG(x) /* DBG */ #define DBG_HEAVY(x) /* DBG_HEAVY */ #define DBG_REG(x) /* DBG_REG */ #define DBG_LOOP(x) /* DBG_LOOP */ #endif /* MATROXFB_DEBUG */ #ifdef DEBUG #define dprintk(X...) printk(X) #else #define dprintk(X...) #endif #ifndef PCI_SS_VENDOR_ID_SIEMENS_NIXDORF #define PCI_SS_VENDOR_ID_SIEMENS_NIXDORF 0x110A #endif #ifndef PCI_SS_VENDOR_ID_MATROX #define PCI_SS_VENDOR_ID_MATROX PCI_VENDOR_ID_MATROX #endif #ifndef PCI_SS_ID_MATROX_PRODUCTIVA_G100_AGP #define PCI_SS_ID_MATROX_GENERIC 0xFF00 #define PCI_SS_ID_MATROX_PRODUCTIVA_G100_AGP 0xFF01 #define PCI_SS_ID_MATROX_MYSTIQUE_G200_AGP 0xFF02 #define PCI_SS_ID_MATROX_MILLENIUM_G200_AGP 0xFF03 #define PCI_SS_ID_MATROX_MARVEL_G200_AGP 0xFF04 #define PCI_SS_ID_MATROX_MGA_G100_PCI 0xFF05 #define PCI_SS_ID_MATROX_MGA_G100_AGP 0x1001 #define PCI_SS_ID_MATROX_MILLENNIUM_G400_MAX_AGP 0x2179 #define PCI_SS_ID_SIEMENS_MGA_G100_AGP 0x001E /* 30 */ #define PCI_SS_ID_SIEMENS_MGA_G200_AGP 0x0032 /* 50 */ #endif #define MX_VISUAL_TRUECOLOR FB_VISUAL_DIRECTCOLOR #define MX_VISUAL_DIRECTCOLOR FB_VISUAL_TRUECOLOR #define MX_VISUAL_PSEUDOCOLOR FB_VISUAL_PSEUDOCOLOR #define CNVT_TOHW(val,width) ((((val)<<(width))+0x7FFF-(val))>>16) /* G-series and Mystique have (almost) same DAC */ #undef NEED_DAC1064 #if defined(CONFIG_FB_MATROX_MYSTIQUE) || defined(CONFIG_FB_MATROX_G) #define NEED_DAC1064 1 #endif typedef struct { void __iomem* vaddr; } vaddr_t; static inline unsigned int mga_readb(vaddr_t va, unsigned int offs) { return readb(va.vaddr + offs); } static inline void mga_writeb(vaddr_t va, unsigned int offs, u_int8_t value) { writeb(value, va.vaddr + offs); } static inline void mga_writew(vaddr_t va, unsigned int offs, u_int16_t value) { writew(value, va.vaddr + offs); } static inline u_int32_t mga_readl(vaddr_t va, unsigned int offs) { return readl(va.vaddr + offs); } static inline void mga_writel(vaddr_t va, unsigned int offs, u_int32_t value) { writel(value, va.vaddr + offs); } static inline void mga_memcpy_toio(vaddr_t va, const void* src, int len) { #if defined(__alpha__) || defined(__i386__) || defined(__x86_64__) /* * iowrite32_rep works for us if: * (1) Copies data as 32bit quantities, not byte after byte, * (2) Performs LE ordered stores, and * (3) It copes with unaligned source (destination is guaranteed to be page * aligned and length is guaranteed to be multiple of 4). */ iowrite32_rep(va.vaddr, src, len >> 2); #else u_int32_t __iomem* addr = va.vaddr; if ((unsigned long)src & 3) { while (len >= 4) { fb_writel(get_unaligned((u32 *)src), addr); addr++; len -= 4; src += 4; } } else { while (len >= 4) { fb_writel(*(u32 *)src, addr); addr++; len -= 4; src += 4; } } #endif } static inline void vaddr_add(vaddr_t* va, unsigned long offs) { va->vaddr += offs; } static inline void __iomem* vaddr_va(vaddr_t va) { return va.vaddr; } #define MGA_IOREMAP_NORMAL 0 #define MGA_IOREMAP_NOCACHE 1 #define MGA_IOREMAP_FB MGA_IOREMAP_NOCACHE #define MGA_IOREMAP_MMIO MGA_IOREMAP_NOCACHE static inline int mga_ioremap(unsigned long phys, unsigned long size, int flags, vaddr_t* virt) { if (flags & MGA_IOREMAP_NOCACHE) virt->vaddr = ioremap_nocache(phys, size); else virt->vaddr = ioremap(phys, size); return (virt->vaddr == NULL); /* 0, !0... 0, error_code in future */ } static inline void mga_iounmap(vaddr_t va) { iounmap(va.vaddr); } struct my_timming { unsigned int pixclock; int mnp; unsigned int crtc; unsigned int HDisplay; unsigned int HSyncStart; unsigned int HSyncEnd; unsigned int HTotal; unsigned int VDisplay; unsigned int VSyncStart; unsigned int VSyncEnd; unsigned int VTotal; unsigned int sync; int dblscan; int interlaced; unsigned int delay; /* CRTC delay */ }; enum { M_SYSTEM_PLL, M_PIXEL_PLL_A, M_PIXEL_PLL_B, M_PIXEL_PLL_C, M_VIDEO_PLL }; struct matrox_pll_cache { unsigned int valid; struct { unsigned int mnp_key; unsigned int mnp_value; } data[4]; }; struct matrox_pll_limits { unsigned int vcomin; unsigned int vcomax; }; struct matrox_pll_features { unsigned int vco_freq_min; unsigned int ref_freq; unsigned int feed_div_min; unsigned int feed_div_max; unsigned int in_div_min; unsigned int in_div_max; unsigned int post_shift_max; }; struct matroxfb_par { unsigned int final_bppShift; unsigned int cmap_len; struct { unsigned int bytes; unsigned int pixels; unsigned int chunks; } ydstorg; }; struct matrox_fb_info; struct matrox_DAC1064_features { u_int8_t xvrefctrl; u_int8_t xmiscctrl; }; /* current hardware status */ struct mavenregs { u_int8_t regs[256]; int mode; int vlines; int xtal; int fv; u_int16_t htotal; u_int16_t hcorr; }; struct matrox_crtc2 { u_int32_t ctl; }; struct matrox_hw_state { u_int32_t MXoptionReg; unsigned char DACclk[6]; unsigned char DACreg[80]; unsigned char MiscOutReg; unsigned char DACpal[768]; unsigned char CRTC[25]; unsigned char CRTCEXT[9]; unsigned char SEQ[5]; /* unused for MGA mode, but who knows... */ unsigned char GCTL[9]; /* unused for MGA mode, but who knows... */ unsigned char ATTR[21]; /* TVOut only */ struct mavenregs maven; struct matrox_crtc2 crtc2; }; struct matrox_accel_data { #ifdef CONFIG_FB_MATROX_MILLENIUM unsigned char ramdac_rev; #endif u_int32_t m_dwg_rect; u_int32_t m_opmode; }; struct v4l2_queryctrl; struct v4l2_control; struct matrox_altout { const char *name; int (*compute)(void* altout_dev, struct my_timming* input); int (*program)(void* altout_dev); int (*start)(void* altout_dev); int (*verifymode)(void* altout_dev, u_int32_t mode); int (*getqueryctrl)(void* altout_dev, struct v4l2_queryctrl* ctrl); int (*getctrl)(void* altout_dev, struct v4l2_control* ctrl); int (*setctrl)(void* altout_dev, struct v4l2_control* ctrl); }; #define MATROXFB_SRC_NONE 0 #define MATROXFB_SRC_CRTC1 1 #define MATROXFB_SRC_CRTC2 2 enum mga_chip { MGA_2064, MGA_2164, MGA_1064, MGA_1164, MGA_G100, MGA_G200, MGA_G400, MGA_G450, MGA_G550 }; struct matrox_bios { unsigned int bios_valid : 1; unsigned int pins_len; unsigned char pins[128]; struct { unsigned char vMaj, vMin, vRev; } version; struct { unsigned char state, tvout; } output; }; struct matrox_switch; struct matroxfb_driver; struct matroxfb_dh_fb_info; struct matrox_vsync { wait_queue_head_t wait; unsigned int cnt; }; struct matrox_fb_info { struct fb_info fbcon; struct list_head next_fb; int dead; int initialized; unsigned int usecount; unsigned int userusecount; unsigned long irq_flags; struct matroxfb_par curr; struct matrox_hw_state hw; struct matrox_accel_data accel; struct pci_dev* pcidev; struct { struct matrox_vsync vsync; unsigned int pixclock; int mnp; int panpos; } crtc1; struct { struct matrox_vsync vsync; unsigned int pixclock; int mnp; struct matroxfb_dh_fb_info* info; struct rw_semaphore lock; } crtc2; struct { struct rw_semaphore lock; struct { int brightness, contrast, saturation, hue, gamma; int testout, deflicker; } tvo_params; } altout; #define MATROXFB_MAX_OUTPUTS 3 struct { unsigned int src; struct matrox_altout* output; void* data; unsigned int mode; unsigned int default_src; } outputs[MATROXFB_MAX_OUTPUTS]; #define MATROXFB_MAX_FB_DRIVERS 5 struct matroxfb_driver* (drivers[MATROXFB_MAX_FB_DRIVERS]); void* (drivers_data[MATROXFB_MAX_FB_DRIVERS]); unsigned int drivers_count; struct { unsigned long base; /* physical */ vaddr_t vbase; /* CPU view */ unsigned int len; unsigned int len_usable; unsigned int len_maximum; } video; struct { unsigned long base; /* physical */ vaddr_t vbase; /* CPU view */ unsigned int len; } mmio; unsigned int max_pixel_clock; unsigned int max_pixel_clock_panellink; struct matrox_switch* hw_switch; struct { struct matrox_pll_features pll; struct matrox_DAC1064_features DAC1064; } features; struct { spinlock_t DAC; spinlock_t accel; } lock; enum mga_chip chip; int interleave; int millenium; int milleniumII; struct { int cfb4; const int* vxres; int cross4MB; int text; int plnwt; int srcorg; } capable; #ifdef CONFIG_MTRR struct { int vram; int vram_valid; } mtrr; #endif struct { int precise_width; int mga_24bpp_fix; int novga; int nobios; int nopciretry; int noinit; int sgram; int support32MB; int accelerator; int text_type_aux; int video64bits; int crtc2; int maven_capable; unsigned int vgastep; unsigned int textmode; unsigned int textstep; unsigned int textvram; /* character cells */ unsigned int ydstorg; /* offset in bytes from video start to usable memory */ /* 0 except for 6MB Millenium */ int memtype; int g450dac; int dfp_type; int panellink; /* G400 DFP possible (not G450/G550) */ int dualhead; unsigned int fbResource; } devflags; struct fb_ops fbops; struct matrox_bios bios; struct { struct matrox_pll_limits pixel; struct matrox_pll_limits system; struct matrox_pll_limits video; } limits; struct { struct matrox_pll_cache pixel; struct matrox_pll_cache system; struct matrox_pll_cache video; } cache; struct { struct { unsigned int video; unsigned int system; } pll; struct { u_int32_t opt; u_int32_t opt2; u_int32_t opt3; u_int32_t mctlwtst; u_int32_t mctlwtst_core; u_int32_t memmisc; u_int32_t memrdbk; u_int32_t maccess; } reg; struct { unsigned int ddr:1, emrswen:1, dll:1; } memory; } values; u_int32_t cmap[16]; }; #define info2minfo(info) container_of(info, struct matrox_fb_info, fbcon) struct matrox_switch { int (*preinit)(struct matrox_fb_info *minfo); void (*reset)(struct matrox_fb_info *minfo); int (*init)(struct matrox_fb_info *minfo, struct my_timming*); void (*restore)(struct matrox_fb_info *minfo); }; struct matroxfb_driver { struct list_head node; char* name; void* (*probe)(struct matrox_fb_info* info); void (*remove)(struct matrox_fb_info* info, void* data); }; int matroxfb_register_driver(struct matroxfb_driver* drv); void matroxfb_unregister_driver(struct matroxfb_driver* drv); #define PCI_OPTION_REG 0x40 #define PCI_OPTION_ENABLE_ROM 0x40000000 #define PCI_MGA_INDEX 0x44 #define PCI_MGA_DATA 0x48 #define PCI_OPTION2_REG 0x50 #define PCI_OPTION3_REG 0x54 #define PCI_MEMMISC_REG 0x58 #define M_DWGCTL 0x1C00 #define M_MACCESS 0x1C04 #define M_CTLWTST 0x1C08 #define M_PLNWT 0x1C1C #define M_BCOL 0x1C20 #define M_FCOL 0x1C24 #define M_SGN 0x1C58 #define M_LEN 0x1C5C #define M_AR0 0x1C60 #define M_AR1 0x1C64 #define M_AR2 0x1C68 #define M_AR3 0x1C6C #define M_AR4 0x1C70 #define M_AR5 0x1C74 #define M_AR6 0x1C78 #define M_CXBNDRY 0x1C80 #define M_FXBNDRY 0x1C84 #define M_YDSTLEN 0x1C88 #define M_PITCH 0x1C8C #define M_YDST 0x1C90 #define M_YDSTORG 0x1C94 #define M_YTOP 0x1C98 #define M_YBOT 0x1C9C /* mystique only */ #define M_CACHEFLUSH 0x1FFF #define M_EXEC 0x0100 #define M_DWG_TRAP 0x04 #define M_DWG_BITBLT 0x08 #define M_DWG_ILOAD 0x09 #define M_DWG_LINEAR 0x0080 #define M_DWG_SOLID 0x0800 #define M_DWG_ARZERO 0x1000 #define M_DWG_SGNZERO 0x2000 #define M_DWG_SHIFTZERO 0x4000 #define M_DWG_REPLACE 0x000C0000 #define M_DWG_REPLACE2 (M_DWG_REPLACE | 0x40) #define M_DWG_XOR 0x00060010 #define M_DWG_BFCOL 0x04000000 #define M_DWG_BMONOWF 0x08000000 #define M_DWG_TRANSC 0x40000000 #define M_FIFOSTATUS 0x1E10 #define M_STATUS 0x1E14 #define M_ICLEAR 0x1E18 #define M_IEN 0x1E1C #define M_VCOUNT 0x1E20 #define M_RESET 0x1E40 #define M_MEMRDBK 0x1E44 #define M_AGP2PLL 0x1E4C #define M_OPMODE 0x1E54 #define M_OPMODE_DMA_GEN_WRITE 0x00 #define M_OPMODE_DMA_BLIT 0x04 #define M_OPMODE_DMA_VECTOR_WRITE 0x08 #define M_OPMODE_DMA_LE 0x0000 /* little endian - no transformation */ #define M_OPMODE_DMA_BE_8BPP 0x0000 #define M_OPMODE_DMA_BE_16BPP 0x0100 #define M_OPMODE_DMA_BE_32BPP 0x0200 #define M_OPMODE_DIR_LE 0x000000 /* little endian - no transformation */ #define M_OPMODE_DIR_BE_8BPP 0x000000 #define M_OPMODE_DIR_BE_16BPP 0x010000 #define M_OPMODE_DIR_BE_32BPP 0x020000 #define M_ATTR_INDEX 0x1FC0 #define M_ATTR_DATA 0x1FC1 #define M_MISC_REG 0x1FC2 #define M_3C2_RD 0x1FC2 #define M_SEQ_INDEX 0x1FC4 #define M_SEQ_DATA 0x1FC5 #define M_SEQ1 0x01 #define M_SEQ1_SCROFF 0x20 #define M_MISC_REG_READ 0x1FCC #define M_GRAPHICS_INDEX 0x1FCE #define M_GRAPHICS_DATA 0x1FCF #define M_CRTC_INDEX 0x1FD4 #define M_ATTR_RESET 0x1FDA #define M_3DA_WR 0x1FDA #define M_INSTS1 0x1FDA #define M_EXTVGA_INDEX 0x1FDE #define M_EXTVGA_DATA 0x1FDF /* G200 only */ #define M_SRCORG 0x2CB4 #define M_DSTORG 0x2CB8 #define M_RAMDAC_BASE 0x3C00 /* fortunately, same on TVP3026 and MGA1064 */ #define M_DAC_REG (M_RAMDAC_BASE+0) #define M_DAC_VAL (M_RAMDAC_BASE+1) #define M_PALETTE_MASK (M_RAMDAC_BASE+2) #define M_X_INDEX 0x00 #define M_X_DATAREG 0x0A #define DAC_XGENIOCTRL 0x2A #define DAC_XGENIODATA 0x2B #define M_C2CTL 0x3C10 #define MX_OPTION_BSWAP 0x00000000 #ifdef __LITTLE_ENDIAN #define M_OPMODE_4BPP (M_OPMODE_DMA_LE | M_OPMODE_DIR_LE | M_OPMODE_DMA_BLIT) #define M_OPMODE_8BPP (M_OPMODE_DMA_LE | M_OPMODE_DIR_LE | M_OPMODE_DMA_BLIT) #define M_OPMODE_16BPP (M_OPMODE_DMA_LE | M_OPMODE_DIR_LE | M_OPMODE_DMA_BLIT) #define M_OPMODE_24BPP (M_OPMODE_DMA_LE | M_OPMODE_DIR_LE | M_OPMODE_DMA_BLIT) #define M_OPMODE_32BPP (M_OPMODE_DMA_LE | M_OPMODE_DIR_LE | M_OPMODE_DMA_BLIT) #else #ifdef __BIG_ENDIAN #define M_OPMODE_4BPP (M_OPMODE_DMA_LE | M_OPMODE_DIR_LE | M_OPMODE_DMA_BLIT) /* TODO */ #define M_OPMODE_8BPP (M_OPMODE_DMA_LE | M_OPMODE_DIR_BE_8BPP | M_OPMODE_DMA_BLIT) #define M_OPMODE_16BPP (M_OPMODE_DMA_LE | M_OPMODE_DIR_BE_16BPP | M_OPMODE_DMA_BLIT) #define M_OPMODE_24BPP (M_OPMODE_DMA_LE | M_OPMODE_DIR_BE_8BPP | M_OPMODE_DMA_BLIT) /* TODO, ?32 */ #define M_OPMODE_32BPP (M_OPMODE_DMA_LE | M_OPMODE_DIR_BE_32BPP | M_OPMODE_DMA_BLIT) #else #error "Byte ordering have to be defined. Cannot continue." #endif #endif #define mga_inb(addr) mga_readb(minfo->mmio.vbase, (addr)) #define mga_inl(addr) mga_readl(minfo->mmio.vbase, (addr)) #define mga_outb(addr,val) mga_writeb(minfo->mmio.vbase, (addr), (val)) #define mga_outw(addr,val) mga_writew(minfo->mmio.vbase, (addr), (val)) #define mga_outl(addr,val) mga_writel(minfo->mmio.vbase, (addr), (val)) #define mga_readr(port,idx) (mga_outb((port),(idx)), mga_inb((port)+1)) #define mga_setr(addr,port,val) mga_outw(addr, ((val)<<8) | (port)) #define mga_fifo(n) do {} while ((mga_inl(M_FIFOSTATUS) & 0xFF) < (n)) #define WaitTillIdle() do {} while (mga_inl(M_STATUS) & 0x10000) /* code speedup */ #ifdef CONFIG_FB_MATROX_MILLENIUM #define isInterleave(x) (x->interleave) #define isMillenium(x) (x->millenium) #define isMilleniumII(x) (x->milleniumII) #else #define isInterleave(x) (0) #define isMillenium(x) (0) #define isMilleniumII(x) (0) #endif #define matroxfb_DAC_lock() spin_lock(&minfo->lock.DAC) #define matroxfb_DAC_unlock() spin_unlock(&minfo->lock.DAC) #define matroxfb_DAC_lock_irqsave(flags) spin_lock_irqsave(&minfo->lock.DAC, flags) #define matroxfb_DAC_unlock_irqrestore(flags) spin_unlock_irqrestore(&minfo->lock.DAC, flags) extern void matroxfb_DAC_out(const struct matrox_fb_info *minfo, int reg, int val); extern int matroxfb_DAC_in(const struct matrox_fb_info *minfo, int reg); extern void matroxfb_var2my(struct fb_var_screeninfo* fvsi, struct my_timming* mt); extern int matroxfb_wait_for_sync(struct matrox_fb_info *minfo, u_int32_t crtc); extern int matroxfb_enable_irq(struct matrox_fb_info *minfo, int reenable); #ifdef MATROXFB_USE_SPINLOCKS #define CRITBEGIN spin_lock_irqsave(&minfo->lock.accel, critflags); #define CRITEND spin_unlock_irqrestore(&minfo->lock.accel, critflags); #define CRITFLAGS unsigned long critflags; #else #define CRITBEGIN #define CRITEND #define CRITFLAGS #endif #endif /* __MATROXFB_H__ */
{'repo_name': 'franciscofranco/hammerhead', 'stars': '122', 'repo_language': 'C', 'file_name': 'impa7.c', 'mime_type': 'text/x-c', 'hash': 9034542611466636032, 'source_dataset': 'data'}

No dataset card yet

New: Create and edit this dataset card directly on the website!

Contribute a Dataset Card
Downloads last month
100
Add dataset card