text
stringlengths
2
1.04M
meta
dict
class CreateAppsCategoryManagers < ActiveRecord::Migration def change create_table :apps_category_managers do |t| t.string :title, limit: 120 t.string :sub_title, limit: 80 t.timestamps null: false end end end
{ "content_hash": "d661827b07715942681be996108cc272", "timestamp": "", "source": "github", "line_count": 10, "max_line_length": 58, "avg_line_length": 24.1, "alnum_prop": 0.6887966804979253, "repo_name": "SanjayYadav90/GooglePlayApps", "id": "1e3b2d0088ac87da4ee468b1b8eb8206470955da", "size": "241", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "db/migrate/20150723105611_create_apps_category_managers.rb", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "2850" }, { "name": "CoffeeScript", "bytes": "662" }, { "name": "HTML", "bytes": "15809" }, { "name": "JavaScript", "bytes": "667" }, { "name": "Ruby", "bytes": "72831" } ], "symlink_target": "" }
logwatch Cookbook ================= [![Build Status](https://travis-ci.org/chef-cookbooks/logwatch.png?branch=master)](https://travis-ci.org/chef-cookbooks/logwatch) Installs logwatch Requirements ------------ ### Platformd - Debian/Ubuntu - RHEL/CentOS ### Cookbooks - perl Usage ----- Ensures that perl is installed to be used with logwatch and then installs logwatch. Attributes ---------- - `node['logwatch']['email']` - Email Address which Logwatch reports to - `node['logwatch']['detail']` - The level of detail in the Logwatch report - `node['logwatch']['range']` - The default time range for the Logwatch report - `node['logwatch']['output']` - The output method of the Logwatch report - `node['logwatch']['format']` - The format of the Logwatch report License & Authors ----------------- - Author:: Joshua Timberman <joshua@chef.io> ```text Copyright:: 2009-2013, Chef Software, 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. ```
{ "content_hash": "206c5a052bd3879008aa21972c4b3d65", "timestamp": "", "source": "github", "line_count": 50, "max_line_length": 129, "avg_line_length": 28.64, "alnum_prop": 0.7185754189944135, "repo_name": "yakara-ltd/logwatch", "id": "1067b086009ffe419f61bd0c1232acc8a8c6b557", "size": "1432", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "README.md", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "HTML", "bytes": "355" }, { "name": "Ruby", "bytes": "3356" } ], "symlink_target": "" }
<!doctype html> <html lang="en"> <head> <title>Code coverage report for Form/Label</title> <meta charset="utf-8" /> <link rel="stylesheet" href="../../prettify.css" /> <link rel="stylesheet" href="../../base.css" /> <link rel="shortcut icon" type="image/x-icon" href="../../favicon.png" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <style type='text/css'> .coverage-summary .sorter { background-image: url(../../sort-arrow-sprite.png); } </style> </head> <body> <div class='wrapper'> <div class='pad1'> <h1><a href="../../index.html">All files</a> Form/Label</h1> <div class='clearfix'> <div class='fl pad1y space-right2'> <span class="strong">50% </span> <span class="quiet">Statements</span> <span class='fraction'>1/2</span> </div> <div class='fl pad1y space-right2'> <span class="strong">0% </span> <span class="quiet">Branches</span> <span class='fraction'>0/3</span> </div> <div class='fl pad1y space-right2'> <span class="strong">0% </span> <span class="quiet">Functions</span> <span class='fraction'>0/1</span> </div> <div class='fl pad1y space-right2'> <span class="strong">50% </span> <span class="quiet">Lines</span> <span class='fraction'>1/2</span> </div> </div> <p class="quiet"> Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block. </p> <template id="filterTemplate"> <div class="quiet"> Filter: <input oninput="onInput()" type="search" id="fileSearch"> </div> </template> </div> <div class='status-line medium'></div> <div class="pad1"> <table class="coverage-summary"> <thead> <tr> <th data-col="file" data-fmt="html" data-html="true" class="file">File</th> <th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th> <th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th> <th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th> <th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th> <th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th> <th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th> <th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th> <th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th> <th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th> </tr> </thead> <tbody><tr> <td class="file medium" data-value="Label.tsx"><a href="Label.tsx.html">Label.tsx</a></td> <td data-value="50" class="pic medium"> <div class="chart"><div class="cover-fill" style="width: 50%"></div><div class="cover-empty" style="width: 50%"></div></div> </td> <td data-value="50" class="pct medium">50%</td> <td data-value="2" class="abs medium">1/2</td> <td data-value="0" class="pct low">0%</td> <td data-value="3" class="abs low">0/3</td> <td data-value="0" class="pct low">0%</td> <td data-value="1" class="abs low">0/1</td> <td data-value="50" class="pct medium">50%</td> <td data-value="2" class="abs medium">1/2</td> </tr> </tbody> </table> </div> <div class='push'></div><!-- for sticky footer --> </div><!-- /wrapper --> <div class='footer quiet pad2 space-top1 center small'> Code coverage generated by <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a> at Tue Sep 20 2022 11:38:45 GMT-0700 (Pacific Daylight Time) </div> <script src="../../prettify.js"></script> <script> window.onload = function () { prettyPrint(); }; </script> <script src="../../sorter.js"></script> <script src="../../block-navigation.js"></script> </body> </html>
{ "content_hash": "51f1a9cfa91ed5c747943ece870d7f13", "timestamp": "", "source": "github", "line_count": 115, "max_line_length": 138, "avg_line_length": 38.86086956521739, "alnum_prop": 0.5385992392034012, "repo_name": "looker-open-source/components", "id": "4fc1c122a33fe815d463980fbe335c69f958d31f", "size": "4470", "binary": false, "copies": "1", "ref": "refs/heads/main", "path": "packages/components/test/output/jest/coverage/Form/Label/index.html", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "10788" }, { "name": "HTML", "bytes": "10602733" }, { "name": "JavaScript", "bytes": "125821" }, { "name": "Shell", "bytes": "5731" }, { "name": "TypeScript", "bytes": "6564851" } ], "symlink_target": "" }
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getSelectionRanges = void 0; const languageModes_1 = require("./languageModes"); const positions_1 = require("../utils/positions"); async function getSelectionRanges(languageModes, document, positions) { const htmlMode = languageModes.getMode('html'); return Promise.all(positions.map(async (position) => { const htmlRange = await htmlMode.getSelectionRange(document, position); const mode = languageModes.getModeAtPosition(document, position); if (mode && mode.getSelectionRange) { let range = await mode.getSelectionRange(document, position); let top = range; while (top.parent && positions_1.insideRangeButNotSame(htmlRange.range, top.parent.range)) { top = top.parent; } top.parent = htmlRange; return range; } return htmlRange || languageModes_1.SelectionRange.create(languageModes_1.Range.create(position, position)); })); } exports.getSelectionRanges = getSelectionRanges;
{ "content_hash": "7b20403f8c2942f9339d190d6aad5496", "timestamp": "", "source": "github", "line_count": 24, "max_line_length": 116, "avg_line_length": 46.083333333333336, "alnum_prop": 0.6754068716094033, "repo_name": "dmilith/SublimeText3-dmilith", "id": "3203c9ea6c2337178b680680e860f96eca5cd208", "size": "1457", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Package Storage/LSP-html/14.16.0/language-server/html-language-features/server/out/modes/selectionRanges.js", "mode": "33188", "license": "mit", "language": [ { "name": "Batchfile", "bytes": "659" }, { "name": "C", "bytes": "3406335" }, { "name": "C++", "bytes": "532143" }, { "name": "CSS", "bytes": "8658" }, { "name": "DTrace", "bytes": "12324" }, { "name": "Elixir", "bytes": "346" }, { "name": "Go", "bytes": "282" }, { "name": "HTML", "bytes": "123" }, { "name": "JavaScript", "bytes": "119153" }, { "name": "Makefile", "bytes": "242" }, { "name": "PHP", "bytes": "4545" }, { "name": "Python", "bytes": "9755009" }, { "name": "Roff", "bytes": "20024" }, { "name": "Ruby", "bytes": "45" }, { "name": "Shell", "bytes": "7754" } ], "symlink_target": "" }
from taskflow.patterns import linear_flow as lf from jobrunner.post_job import draw_hierarchy from tests.testcase import TestCase def fixture_flow_factory(): return lf.Flow("fixture_flow") class TestDrawHierarchy(TestCase): def setUp(self): self.compile_flow = self.set_up_patch( 'jobrunner.post_job.compile_flow' ) self.print_hierarchy = self.set_up_patch( 'jobrunner.post_job.print_hierarchy' ) self.keyword_arguments = { 'store': {'key': 'value'}, 'factory_args': ['some', 'args'], 'factory_kwargs': {'some': 'kwargs'} } def test_draw_hierarchy_compiles_flow(self): draw_hierarchy(fixture_flow_factory, **self.keyword_arguments) self.compile_flow.assert_called_once_with( fixture_flow_factory, **self.keyword_arguments ) def test_draw_hierarchy_prints_hierarchy(self): draw_hierarchy(fixture_flow_factory, **self.keyword_arguments) self.print_hierarchy.assert_called_once_with( self.compile_flow.return_value )
{ "content_hash": "1e4e0362f5cd50992f880473033665db", "timestamp": "", "source": "github", "line_count": 37, "max_line_length": 70, "avg_line_length": 30.243243243243242, "alnum_prop": 0.6282394995531725, "repo_name": "vdloo/jobrunner", "id": "d2bde5b0f538575f4cde8e4fdb098a66f55ec88a", "size": "1119", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "tests/unit/jobrunner/post_job/test_draw_hierarchy.py", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Python", "bytes": "102107" }, { "name": "Shell", "bytes": "2630" } ], "symlink_target": "" }
require('test/syn_test'); require('test/key_test'); require('test/key_regressions_test'); require('test/mouse_move_test'); require('test/mouse_button_test'); require('test/mouse_regressions_test'); require('test/drag_test_basic'); //require('test/drag_test_offsets'); // require('test/typeable_test'); require('test/focus_test');
{ "content_hash": "fa8101090e1565737e0e9384b0661bff", "timestamp": "", "source": "github", "line_count": 10, "max_line_length": 39, "avg_line_length": 33, "alnum_prop": 0.7242424242424242, "repo_name": "bitovi/syn", "id": "8f425c6e6966f56682f2f42ae6a18fdc0d2ede81", "size": "330", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "test/tests.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "2557" }, { "name": "HTML", "bytes": "54867" }, { "name": "JavaScript", "bytes": "169331" } ], "symlink_target": "" }
using UnityEngine; using System; using LuaInterface; using SLua; using System.Collections.Generic; public class Lua_UnityEngine_AudioHighPassFilter : LuaObject { [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static public int constructor(IntPtr l) { try { UnityEngine.AudioHighPassFilter o; o=new UnityEngine.AudioHighPassFilter(); pushValue(l,o); return 1; } catch(Exception e) { LuaDLL.luaL_error(l, e.ToString()); return 0; } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static public int get_cutoffFrequency(IntPtr l) { try { UnityEngine.AudioHighPassFilter self=(UnityEngine.AudioHighPassFilter)checkSelf(l); pushValue(l,self.cutoffFrequency); return 1; } catch(Exception e) { LuaDLL.luaL_error(l, e.ToString()); return 0; } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static public int set_cutoffFrequency(IntPtr l) { try { UnityEngine.AudioHighPassFilter self=(UnityEngine.AudioHighPassFilter)checkSelf(l); float v; checkType(l,2,out v); self.cutoffFrequency=v; return 0; } catch(Exception e) { LuaDLL.luaL_error(l, e.ToString()); return 0; } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static public int get_highpassResonanceQ(IntPtr l) { try { UnityEngine.AudioHighPassFilter self=(UnityEngine.AudioHighPassFilter)checkSelf(l); pushValue(l,self.highpassResonanceQ); return 1; } catch(Exception e) { LuaDLL.luaL_error(l, e.ToString()); return 0; } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static public int set_highpassResonanceQ(IntPtr l) { try { UnityEngine.AudioHighPassFilter self=(UnityEngine.AudioHighPassFilter)checkSelf(l); float v; checkType(l,2,out v); self.highpassResonanceQ=v; return 0; } catch(Exception e) { LuaDLL.luaL_error(l, e.ToString()); return 0; } } static public void reg(IntPtr l) { getTypeTable(l,"UnityEngine.AudioHighPassFilter"); addMember(l,"cutoffFrequency",get_cutoffFrequency,set_cutoffFrequency,true); addMember(l,"highpassResonanceQ",get_highpassResonanceQ,set_highpassResonanceQ,true); createTypeMetatable(l,constructor, typeof(UnityEngine.AudioHighPassFilter),typeof(UnityEngine.Behaviour)); } }
{ "content_hash": "7a86d8070db924c68472c968df1189ea", "timestamp": "", "source": "github", "line_count": 78, "max_line_length": 108, "avg_line_length": 28.91025641025641, "alnum_prop": 0.7419068736141907, "repo_name": "zhukunqian/unity5-slua", "id": "5b639d813c34255fab8d2c43f0335bb50954f569", "size": "2257", "binary": false, "copies": "4", "ref": "refs/heads/master", "path": "Assets/Slua/LuaObject/Unity/Lua_UnityEngine_AudioHighPassFilter.cs", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "9586" }, { "name": "C#", "bytes": "2355390" }, { "name": "Lua", "bytes": "131" } ], "symlink_target": "" }
// // CNContactFormatter.h // Contacts // // Copyright (c) 2015 Apple Inc. All rights reserved. // #import <Foundation/Foundation.h> #import <Contacts/ContactsDefines.h> #import <Contacts/CNContact.h> NS_ASSUME_NONNULL_BEGIN /*! * @abstract The formatting styles for contact names. */ typedef NS_ENUM(NSInteger, CNContactFormatterStyle) { /*! Combine the contact name components into a displayable full name. */ CNContactFormatterStyleFullName, /*! Combine the contact phonetic name components into a displayable phonetic full name.*/ CNContactFormatterStylePhoneticFullName, } NS_ENUM_AVAILABLE(10_11, 9_0); /*! * @abstract The formatting order of the contact name components. */ typedef NS_ENUM(NSInteger, CNContactDisplayNameOrder) { CNContactDisplayNameOrderUserDefault, CNContactDisplayNameOrderGivenNameFirst, CNContactDisplayNameOrderFamilyNameFirst, } NS_ENUM_AVAILABLE(10_11, 9_0); /*! * @abstract Formats a contact name. * * @discussion This formatter handles international ordering and delimiting of the contact name components. This includes applying the user defaults when appropriate. */ NS_CLASS_AVAILABLE(10_11, 9_0) @interface CNContactFormatter : NSFormatter /*! * @abstract The contact key descriptor required for the formatter. * * @discussion Use to fetch all contact keys required for the formatter style. Can combine key descriptors for different formatter styles in the fetch. * * @param style The formatting style to be used for the contact name. * @return The contact key descriptor for the formatting style. */ + (id<CNKeyDescriptor>)descriptorForRequiredKeysForStyle:(CNContactFormatterStyle)style; /*! * @abstract Formats the contact name. * * @param contact The contact whose name is to be formatted. * @param style The formatting style to be used for the contact name. * @return The formatted contact name. */ + (nullable NSString *)stringFromContact:(CNContact *)contact style:(CNContactFormatterStyle)style; /*! * @abstract Formats the contact name returning an attributed string. * * @discussion This behaves like +stringFromContact:style: except it returns an attributed string. Includes the attribute key CNContactPropertyAttribute. * * @param contact The contact whose name is to be formatted. * @param style The formatting style to be used for the contact name. * @param attributes The default attributes to use. See NSFormatter for details. * @return The formatted contact name as an attributed string. */ + (nullable NSAttributedString *)attributedStringFromContact:(CNContact *)contact style:(CNContactFormatterStyle)style defaultAttributes:(nullable NSDictionary *)attributes; /*! * @abstract The recommended name order for a given contact. */ + (CNContactDisplayNameOrder)nameOrderForContact:(CNContact *)contact; /*! * @abstract The recommended delimiter to use between name components for a given contact. */ + (NSString *)delimiterForContact:(CNContact *)contact; /*! * @abstract The style for a contact formatter instance. * * @discussion The default value is CNContactFormatterStyleFullName. */ @property (NS_NONATOMIC_IOSONLY) CNContactFormatterStyle style; /*! * @abstract Formats the contact name. * * @param contact The contact whose name is to be formatted. * @return The formatted contact name. */ - (nullable NSString *)stringFromContact:(CNContact *)contact; /*! * @abstract Formats the contact name returning an attributed string. * * @discussion This behaves like -stringFromContact:style: except it returns an attributed string. CNContactPropertyAttribute key has the value of a CNContact name property key. * * @param contact The contact whose name is to be formatted. * @param attributes The default attributes to use. See NSFormatter for details. * @return The formatted contact name as an attributed string. */ - (nullable NSAttributedString *)attributedStringFromContact:(CNContact *)contact defaultAttributes:(nullable NSDictionary *)attributes; @end // Attribute key whose value is a CNContact name component property key. CONTACTS_EXTERN NSString * const CNContactPropertyAttribute; NS_ASSUME_NONNULL_END
{ "content_hash": "f9bf7e2ed36c3466bcbbadd8d764d185", "timestamp": "", "source": "github", "line_count": 118, "max_line_length": 177, "avg_line_length": 35.36440677966102, "alnum_prop": 0.7711478552600048, "repo_name": "rweichler/cylinder", "id": "fa57c565fd8302412be15f5d0ca18d8724ec88a4", "size": "4173", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "deps/iPhoneOS9.3.sdk/System/Library/Frameworks/Contacts.framework/Headers/CNContactFormatter.h", "mode": "33188", "license": "mit", "language": [ { "name": "Logos", "bytes": "9387" }, { "name": "Lua", "bytes": "72457" }, { "name": "Objective-C", "bytes": "88752" }, { "name": "Perl", "bytes": "62541" }, { "name": "Perl 6", "bytes": "911" }, { "name": "Shell", "bytes": "407" } ], "symlink_target": "" }
import { runIntegrationTest } from "../runIntegrationTest" runIntegrationTest({ projectName: "custom-patch-dir", shouldProduceSnapshots: false, })
{ "content_hash": "169cfa0e295cedb232f4870aa6a4d18a", "timestamp": "", "source": "github", "line_count": 5, "max_line_length": 58, "avg_line_length": 30.2, "alnum_prop": 0.7682119205298014, "repo_name": "ds300/patch-package", "id": "cbbb7e1871c848b21b49b770c7d9f9c2565c2a14", "size": "151", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "integration-tests/custom-patch-dir/custom-patch-dir.test.ts", "mode": "33188", "license": "mit", "language": [ { "name": "JavaScript", "bytes": "2156" }, { "name": "Shell", "bytes": "23429" }, { "name": "TypeScript", "bytes": "110067" } ], "symlink_target": "" }
package org.apache.kafka.common.metrics; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import java.util.Arrays; import java.util.Collections; import java.util.Deque; import java.util.HashMap; import java.util.Map; import java.util.Random; import java.util.concurrent.ConcurrentLinkedDeque; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; import org.apache.kafka.common.Metric; import org.apache.kafka.common.MetricName; import org.apache.kafka.common.metrics.stats.Avg; import org.apache.kafka.common.metrics.stats.Count; import org.apache.kafka.common.metrics.stats.Max; import org.apache.kafka.common.metrics.stats.Meter; import org.apache.kafka.common.metrics.stats.Min; import org.apache.kafka.common.metrics.stats.Percentile; import org.apache.kafka.common.metrics.stats.Percentiles; import org.apache.kafka.common.metrics.stats.Percentiles.BucketSizing; import org.apache.kafka.common.metrics.stats.Rate; import org.apache.kafka.common.metrics.stats.StdDev; import org.apache.kafka.common.metrics.stats.SimpleRate; import org.apache.kafka.common.metrics.stats.Sum; import org.apache.kafka.common.metrics.stats.Total; import org.apache.kafka.common.metrics.stats.Value; import org.apache.kafka.common.utils.MockTime; import org.junit.After; import org.junit.Before; import org.junit.Test; @SuppressWarnings("deprecation") public class MetricsTest { private static final double EPS = 0.000001; private MockTime time = new MockTime(); private MetricConfig config = new MetricConfig(); private Metrics metrics; private ExecutorService executorService; @Before public void setup() { this.metrics = new Metrics(config, Arrays.asList((MetricsReporter) new JmxReporter()), time, true); } @After public void tearDown() throws Exception { if (executorService != null) { executorService.shutdownNow(); executorService.awaitTermination(5, TimeUnit.SECONDS); } this.metrics.close(); } @Test public void testMetricName() { MetricName n1 = metrics.metricName("name", "group", "description", "key1", "value1", "key2", "value2"); Map<String, String> tags = new HashMap<String, String>(); tags.put("key1", "value1"); tags.put("key2", "value2"); MetricName n2 = metrics.metricName("name", "group", "description", tags); assertEquals("metric names created in two different ways should be equal", n1, n2); try { metrics.metricName("name", "group", "description", "key1"); fail("Creating MetricName with an odd number of keyValue should fail"); } catch (IllegalArgumentException e) { // this is expected } } @Test public void testSimpleStats() throws Exception { ConstantMeasurable measurable = new ConstantMeasurable(); metrics.addMetric(metrics.metricName("direct.measurable", "grp1", "The fraction of time an appender waits for space allocation."), measurable); Sensor s = metrics.sensor("test.sensor"); s.add(metrics.metricName("test.avg", "grp1"), new Avg()); s.add(metrics.metricName("test.max", "grp1"), new Max()); s.add(metrics.metricName("test.min", "grp1"), new Min()); s.add(new Meter(TimeUnit.SECONDS, metrics.metricName("test.rate", "grp1"), metrics.metricName("test.total", "grp1"))); s.add(new Meter(TimeUnit.SECONDS, new Count(), metrics.metricName("test.occurences", "grp1"), metrics.metricName("test.occurences.total", "grp1"))); s.add(metrics.metricName("test.count", "grp1"), new Count()); s.add(new Percentiles(100, -100, 100, BucketSizing.CONSTANT, new Percentile(metrics.metricName("test.median", "grp1"), 50.0), new Percentile(metrics.metricName("test.perc99_9", "grp1"), 99.9))); Sensor s2 = metrics.sensor("test.sensor2"); s2.add(metrics.metricName("s2.total", "grp1"), new Total()); s2.record(5.0); int sum = 0; int count = 10; for (int i = 0; i < count; i++) { s.record(i); sum += i; } // prior to any time passing double elapsedSecs = (config.timeWindowMs() * (config.samples() - 1)) / 1000.0; assertEquals(String.format("Occurrences(0...%d) = %f", count, count / elapsedSecs), count / elapsedSecs, metrics.metrics().get(metrics.metricName("test.occurences", "grp1")).value(), EPS); // pretend 2 seconds passed... long sleepTimeMs = 2; time.sleep(sleepTimeMs * 1000); elapsedSecs += sleepTimeMs; assertEquals("s2 reflects the constant value", 5.0, metrics.metrics().get(metrics.metricName("s2.total", "grp1")).value(), EPS); assertEquals("Avg(0...9) = 4.5", 4.5, metrics.metrics().get(metrics.metricName("test.avg", "grp1")).value(), EPS); assertEquals("Max(0...9) = 9", count - 1, metrics.metrics().get(metrics.metricName("test.max", "grp1")).value(), EPS); assertEquals("Min(0...9) = 0", 0.0, metrics.metrics().get(metrics.metricName("test.min", "grp1")).value(), EPS); assertEquals("Rate(0...9) = 1.40625", sum / elapsedSecs, metrics.metrics().get(metrics.metricName("test.rate", "grp1")).value(), EPS); assertEquals(String.format("Occurrences(0...%d) = %f", count, count / elapsedSecs), count / elapsedSecs, metrics.metrics().get(metrics.metricName("test.occurences", "grp1")).value(), EPS); assertEquals("Count(0...9) = 10", (double) count, metrics.metrics().get(metrics.metricName("test.count", "grp1")).value(), EPS); } @Test public void testHierarchicalSensors() { Sensor parent1 = metrics.sensor("test.parent1"); parent1.add(metrics.metricName("test.parent1.count", "grp1"), new Count()); Sensor parent2 = metrics.sensor("test.parent2"); parent2.add(metrics.metricName("test.parent2.count", "grp1"), new Count()); Sensor child1 = metrics.sensor("test.child1", parent1, parent2); child1.add(metrics.metricName("test.child1.count", "grp1"), new Count()); Sensor child2 = metrics.sensor("test.child2", parent1); child2.add(metrics.metricName("test.child2.count", "grp1"), new Count()); Sensor grandchild = metrics.sensor("test.grandchild", child1); grandchild.add(metrics.metricName("test.grandchild.count", "grp1"), new Count()); /* increment each sensor one time */ parent1.record(); parent2.record(); child1.record(); child2.record(); grandchild.record(); double p1 = parent1.metrics().get(0).value(); double p2 = parent2.metrics().get(0).value(); double c1 = child1.metrics().get(0).value(); double c2 = child2.metrics().get(0).value(); double gc = grandchild.metrics().get(0).value(); /* each metric should have a count equal to one + its children's count */ assertEquals(1.0, gc, EPS); assertEquals(1.0 + gc, c1, EPS); assertEquals(1.0, c2, EPS); assertEquals(1.0 + c1, p2, EPS); assertEquals(1.0 + c1 + c2, p1, EPS); assertEquals(Arrays.asList(child1, child2), metrics.childrenSensors().get(parent1)); assertEquals(Arrays.asList(child1), metrics.childrenSensors().get(parent2)); assertNull(metrics.childrenSensors().get(grandchild)); } @Test(expected = IllegalArgumentException.class) public void testBadSensorHierarchy() { Sensor p = metrics.sensor("parent"); Sensor c1 = metrics.sensor("child1", p); Sensor c2 = metrics.sensor("child2", p); metrics.sensor("gc", c1, c2); // should fail } @Test public void testRemoveSensor() { int size = metrics.metrics().size(); Sensor parent1 = metrics.sensor("test.parent1"); parent1.add(metrics.metricName("test.parent1.count", "grp1"), new Count()); Sensor parent2 = metrics.sensor("test.parent2"); parent2.add(metrics.metricName("test.parent2.count", "grp1"), new Count()); Sensor child1 = metrics.sensor("test.child1", parent1, parent2); child1.add(metrics.metricName("test.child1.count", "grp1"), new Count()); Sensor child2 = metrics.sensor("test.child2", parent2); child2.add(metrics.metricName("test.child2.count", "grp1"), new Count()); Sensor grandChild1 = metrics.sensor("test.gchild2", child2); grandChild1.add(metrics.metricName("test.gchild2.count", "grp1"), new Count()); Sensor sensor = metrics.getSensor("test.parent1"); assertNotNull(sensor); metrics.removeSensor("test.parent1"); assertNull(metrics.getSensor("test.parent1")); assertNull(metrics.metrics().get(metrics.metricName("test.parent1.count", "grp1"))); assertNull(metrics.getSensor("test.child1")); assertNull(metrics.childrenSensors().get(sensor)); assertNull(metrics.metrics().get(metrics.metricName("test.child1.count", "grp1"))); sensor = metrics.getSensor("test.gchild2"); assertNotNull(sensor); metrics.removeSensor("test.gchild2"); assertNull(metrics.getSensor("test.gchild2")); assertNull(metrics.childrenSensors().get(sensor)); assertNull(metrics.metrics().get(metrics.metricName("test.gchild2.count", "grp1"))); sensor = metrics.getSensor("test.child2"); assertNotNull(sensor); metrics.removeSensor("test.child2"); assertNull(metrics.getSensor("test.child2")); assertNull(metrics.childrenSensors().get(sensor)); assertNull(metrics.metrics().get(metrics.metricName("test.child2.count", "grp1"))); sensor = metrics.getSensor("test.parent2"); assertNotNull(sensor); metrics.removeSensor("test.parent2"); assertNull(metrics.getSensor("test.parent2")); assertNull(metrics.childrenSensors().get(sensor)); assertNull(metrics.metrics().get(metrics.metricName("test.parent2.count", "grp1"))); assertEquals(size, metrics.metrics().size()); } @Test public void testRemoveInactiveMetrics() { Sensor s1 = metrics.sensor("test.s1", null, 1); s1.add(metrics.metricName("test.s1.count", "grp1"), new Count()); Sensor s2 = metrics.sensor("test.s2", null, 3); s2.add(metrics.metricName("test.s2.count", "grp1"), new Count()); Metrics.ExpireSensorTask purger = metrics.new ExpireSensorTask(); purger.run(); assertNotNull("Sensor test.s1 must be present", metrics.getSensor("test.s1")); assertNotNull("MetricName test.s1.count must be present", metrics.metrics().get(metrics.metricName("test.s1.count", "grp1"))); assertNotNull("Sensor test.s2 must be present", metrics.getSensor("test.s2")); assertNotNull("MetricName test.s2.count must be present", metrics.metrics().get(metrics.metricName("test.s2.count", "grp1"))); time.sleep(1001); purger.run(); assertNull("Sensor test.s1 should have been purged", metrics.getSensor("test.s1")); assertNull("MetricName test.s1.count should have been purged", metrics.metrics().get(metrics.metricName("test.s1.count", "grp1"))); assertNotNull("Sensor test.s2 must be present", metrics.getSensor("test.s2")); assertNotNull("MetricName test.s2.count must be present", metrics.metrics().get(metrics.metricName("test.s2.count", "grp1"))); // record a value in sensor s2. This should reset the clock for that sensor. // It should not get purged at the 3 second mark after creation s2.record(); time.sleep(2000); purger.run(); assertNotNull("Sensor test.s2 must be present", metrics.getSensor("test.s2")); assertNotNull("MetricName test.s2.count must be present", metrics.metrics().get(metrics.metricName("test.s2.count", "grp1"))); // After another 1 second sleep, the metric should be purged time.sleep(1000); purger.run(); assertNull("Sensor test.s2 should have been purged", metrics.getSensor("test.s1")); assertNull("MetricName test.s2.count should have been purged", metrics.metrics().get(metrics.metricName("test.s1.count", "grp1"))); // After purging, it should be possible to recreate a metric s1 = metrics.sensor("test.s1", null, 1); s1.add(metrics.metricName("test.s1.count", "grp1"), new Count()); assertNotNull("Sensor test.s1 must be present", metrics.getSensor("test.s1")); assertNotNull("MetricName test.s1.count must be present", metrics.metrics().get(metrics.metricName("test.s1.count", "grp1"))); } @Test public void testRemoveMetric() { int size = metrics.metrics().size(); metrics.addMetric(metrics.metricName("test1", "grp1"), new Count()); metrics.addMetric(metrics.metricName("test2", "grp1"), new Count()); assertNotNull(metrics.removeMetric(metrics.metricName("test1", "grp1"))); assertNull(metrics.metrics().get(metrics.metricName("test1", "grp1"))); assertNotNull(metrics.metrics().get(metrics.metricName("test2", "grp1"))); assertNotNull(metrics.removeMetric(metrics.metricName("test2", "grp1"))); assertNull(metrics.metrics().get(metrics.metricName("test2", "grp1"))); assertEquals(size, metrics.metrics().size()); } @Test public void testEventWindowing() { Count count = new Count(); MetricConfig config = new MetricConfig().eventWindow(1).samples(2); count.record(config, 1.0, time.milliseconds()); count.record(config, 1.0, time.milliseconds()); assertEquals(2.0, count.measure(config, time.milliseconds()), EPS); count.record(config, 1.0, time.milliseconds()); // first event times out assertEquals(2.0, count.measure(config, time.milliseconds()), EPS); } @Test public void testTimeWindowing() { Count count = new Count(); MetricConfig config = new MetricConfig().timeWindow(1, TimeUnit.MILLISECONDS).samples(2); count.record(config, 1.0, time.milliseconds()); time.sleep(1); count.record(config, 1.0, time.milliseconds()); assertEquals(2.0, count.measure(config, time.milliseconds()), EPS); time.sleep(1); count.record(config, 1.0, time.milliseconds()); // oldest event times out assertEquals(2.0, count.measure(config, time.milliseconds()), EPS); } @Test public void testOldDataHasNoEffect() { Max max = new Max(); long windowMs = 100; int samples = 2; MetricConfig config = new MetricConfig().timeWindow(windowMs, TimeUnit.MILLISECONDS).samples(samples); max.record(config, 50, time.milliseconds()); time.sleep(samples * windowMs); assertEquals(Double.NEGATIVE_INFINITY, max.measure(config, time.milliseconds()), EPS); } @Test public void testSampledStatInitialValue() { // initialValue from each SampledStat is set as the initialValue on its Sample. // The only way to test the initialValue is to infer it by having a SampledStat // with expired Stats, because their values are reset to the initial values. // Most implementations of combine on SampledStat end up returning the default // value, so we can use this. This doesn't work for Percentiles though. // This test looks a lot like testOldDataHasNoEffect because it's the same // flow that leads to this state. Max max = new Max(); Min min = new Min(); Avg avg = new Avg(); Count count = new Count(); Rate.SampledTotal sampledTotal = new Rate.SampledTotal(); long windowMs = 100; int samples = 2; MetricConfig config = new MetricConfig().timeWindow(windowMs, TimeUnit.MILLISECONDS).samples(samples); max.record(config, 50, time.milliseconds()); min.record(config, 50, time.milliseconds()); avg.record(config, 50, time.milliseconds()); count.record(config, 50, time.milliseconds()); sampledTotal.record(config, 50, time.milliseconds()); time.sleep(samples * windowMs); assertEquals(Double.NEGATIVE_INFINITY, max.measure(config, time.milliseconds()), EPS); assertEquals(Double.MAX_VALUE, min.measure(config, time.milliseconds()), EPS); assertEquals(0.0, avg.measure(config, time.milliseconds()), EPS); assertEquals(0, count.measure(config, time.milliseconds()), EPS); assertEquals(0.0, sampledTotal.measure(config, time.milliseconds()), EPS); } @Test(expected = IllegalArgumentException.class) public void testDuplicateMetricName() { metrics.sensor("test").add(metrics.metricName("test", "grp1"), new Avg()); metrics.sensor("test2").add(metrics.metricName("test", "grp1"), new Total()); } @Test public void testQuotas() { Sensor sensor = metrics.sensor("test"); sensor.add(metrics.metricName("test1.total", "grp1"), new Total(), new MetricConfig().quota(Quota.upperBound(5.0))); sensor.add(metrics.metricName("test2.total", "grp1"), new Total(), new MetricConfig().quota(Quota.lowerBound(0.0))); sensor.record(5.0); try { sensor.record(1.0); fail("Should have gotten a quota violation."); } catch (QuotaViolationException e) { // this is good } assertEquals(6.0, metrics.metrics().get(metrics.metricName("test1.total", "grp1")).value(), EPS); sensor.record(-6.0); try { sensor.record(-1.0); fail("Should have gotten a quota violation."); } catch (QuotaViolationException e) { // this is good } } @Test public void testQuotasEquality() { final Quota quota1 = Quota.upperBound(10.5); final Quota quota2 = Quota.lowerBound(10.5); assertFalse("Quota with different upper values shouldn't be equal", quota1.equals(quota2)); final Quota quota3 = Quota.lowerBound(10.5); assertTrue("Quota with same upper and bound values should be equal", quota2.equals(quota3)); } @Test public void testPercentiles() { int buckets = 100; Percentiles percs = new Percentiles(4 * buckets, 0.0, 100.0, BucketSizing.CONSTANT, new Percentile(metrics.metricName("test.p25", "grp1"), 25), new Percentile(metrics.metricName("test.p50", "grp1"), 50), new Percentile(metrics.metricName("test.p75", "grp1"), 75)); MetricConfig config = new MetricConfig().eventWindow(50).samples(2); Sensor sensor = metrics.sensor("test", config); sensor.add(percs); Metric p25 = this.metrics.metrics().get(metrics.metricName("test.p25", "grp1")); Metric p50 = this.metrics.metrics().get(metrics.metricName("test.p50", "grp1")); Metric p75 = this.metrics.metrics().get(metrics.metricName("test.p75", "grp1")); // record two windows worth of sequential values for (int i = 0; i < buckets; i++) sensor.record(i); assertEquals(25, p25.value(), 1.0); assertEquals(50, p50.value(), 1.0); assertEquals(75, p75.value(), 1.0); for (int i = 0; i < buckets; i++) sensor.record(0.0); assertEquals(0.0, p25.value(), 1.0); assertEquals(0.0, p50.value(), 1.0); assertEquals(0.0, p75.value(), 1.0); // record two more windows worth of sequential values for (int i = 0; i < buckets; i++) sensor.record(i); assertEquals(25, p25.value(), 1.0); assertEquals(50, p50.value(), 1.0); assertEquals(75, p75.value(), 1.0); } @Test public void testRateWindowing() throws Exception { // Use the default time window. Set 3 samples MetricConfig cfg = new MetricConfig().samples(3); Sensor s = metrics.sensor("test.sensor", cfg); MetricName rateMetricName = metrics.metricName("test.rate", "grp1"); MetricName totalMetricName = metrics.metricName("test.total", "grp1"); s.add(new Meter(TimeUnit.SECONDS, rateMetricName, totalMetricName)); KafkaMetric totalMetric = metrics.metrics().get(metrics.metricName("test.total", "grp1")); int sum = 0; int count = cfg.samples() - 1; // Advance 1 window after every record for (int i = 0; i < count; i++) { s.record(100); sum += 100; time.sleep(cfg.timeWindowMs()); assertEquals(sum, totalMetric.value(), EPS); } // Sleep for half the window. time.sleep(cfg.timeWindowMs() / 2); // prior to any time passing double elapsedSecs = (cfg.timeWindowMs() * (cfg.samples() - 1) + cfg.timeWindowMs() / 2) / 1000.0; KafkaMetric rateMetric = metrics.metrics().get(metrics.metricName("test.rate", "grp1")); assertEquals("Rate(0...2) = 2.666", sum / elapsedSecs, rateMetric.value(), EPS); assertEquals("Elapsed Time = 75 seconds", elapsedSecs, ((Rate) rateMetric.measurable()).windowSize(cfg, time.milliseconds()) / 1000, EPS); assertEquals(sum, totalMetric.value(), EPS); } @Test public void testStdDevStats() throws Exception { ConstantMeasurable measurable = new ConstantMeasurable(); metrics.addMetric(metrics.metricName("direct.measurable", "grp1", "The fraction of time an appender waits for space allocation."), measurable); Sensor s = metrics.sensor("test.sensor"); s.add(metrics.metricName("test.stddev", "grp1"), new StdDev()); for (int i = 0; i < 10; i++) s.record(i); // pretend 2 seconds passed... time.sleep(2000); assertEquals("StdDev(0...9) = 2.8722813232690143", 2.8722813232690143, metrics.metrics().get(metrics.metricName("test.stddev", "grp1")).value(), EPS); } public static class ConstantMeasurable implements Measurable { public double value = 0.0; @Override public double measure(MetricConfig config, long now) { return value; } } @Test public void testSimpleRate() { SimpleRate rate = new SimpleRate(); //Given MetricConfig config = new MetricConfig().timeWindow(1, TimeUnit.SECONDS).samples(10); //In the first window the rate is a fraction of the whole (1s) window //So when we record 1000 at t0, the rate should be 1000 until the window completes, or more data is recorded. record(rate, config, 1000); assertEquals(1000, measure(rate, config), 0); time.sleep(100); assertEquals(1000, measure(rate, config), 0); // 1000B / 0.1s time.sleep(100); assertEquals(1000, measure(rate, config), 0); // 1000B / 0.2s time.sleep(200); assertEquals(1000, measure(rate, config), 0); // 1000B / 0.4s //In the second (and subsequent) window(s), the rate will be in proportion to the elapsed time //So the rate will degrade over time, as the time between measurement and the initial recording grows. time.sleep(600); assertEquals(1000, measure(rate, config), 0); // 1000B / 1.0s time.sleep(200); assertEquals(1000 / 1.2, measure(rate, config), 0); // 1000B / 1.2s time.sleep(200); assertEquals(1000 / 1.4, measure(rate, config), 0); // 1000B / 1.4s //Adding another value, inside the same window should double the rate record(rate, config, 1000); assertEquals(2000 / 1.4, measure(rate, config), 0); // 2000B / 1.4s //Going over the next window, should not change behaviour time.sleep(1100); assertEquals(2000 / 2.5, measure(rate, config), 0); // 2000B / 2.5s record(rate, config, 1000); assertEquals(3000 / 2.5, measure(rate, config), 0); // 3000B / 2.5s //Sleeping for another 6.5 windows also should be the same time.sleep(6500); assertEquals(3000 / 9, measure(rate, config), 1); // 3000B / 9s record(rate, config, 1000); assertEquals(4000 / 9, measure(rate, config), 1); // 4000B / 9s //Going over the 10 window boundary should cause the first window's values (1000) will be purged. //So the rate is calculated based on the oldest reading, which is inside the second window, at 1.4s time.sleep(1500); assertEquals((4000 - 1000) / (10.5 - 1.4), measure(rate, config), 1); record(rate, config, 1000); assertEquals((5000 - 1000) / (10.5 - 1.4), measure(rate, config), 1); } private void record(Rate rate, MetricConfig config, int value) { rate.record(config, value, time.milliseconds()); } private Double measure(Measurable rate, MetricConfig config) { return rate.measure(config, time.milliseconds()); } @Test public void testMetricInstances() { MetricName n1 = metrics.metricInstance(SampleMetrics.METRIC1, "key1", "value1", "key2", "value2"); Map<String, String> tags = new HashMap<String, String>(); tags.put("key1", "value1"); tags.put("key2", "value2"); MetricName n2 = metrics.metricInstance(SampleMetrics.METRIC2, tags); assertEquals("metric names created in two different ways should be equal", n1, n2); try { metrics.metricInstance(SampleMetrics.METRIC1, "key1"); fail("Creating MetricName with an odd number of keyValue should fail"); } catch (IllegalArgumentException e) { // this is expected } Map<String, String> parentTagsWithValues = new HashMap<>(); parentTagsWithValues.put("parent-tag", "parent-tag-value"); Map<String, String> childTagsWithValues = new HashMap<>(); childTagsWithValues.put("child-tag", "child-tag-value"); try (Metrics inherited = new Metrics(new MetricConfig().tags(parentTagsWithValues), Arrays.asList((MetricsReporter) new JmxReporter()), time, true)) { MetricName inheritedMetric = inherited.metricInstance(SampleMetrics.METRIC_WITH_INHERITED_TAGS, childTagsWithValues); Map<String, String> filledOutTags = inheritedMetric.tags(); assertEquals("parent-tag should be set properly", filledOutTags.get("parent-tag"), "parent-tag-value"); assertEquals("child-tag should be set properly", filledOutTags.get("child-tag"), "child-tag-value"); try { inherited.metricInstance(SampleMetrics.METRIC_WITH_INHERITED_TAGS, parentTagsWithValues); fail("Creating MetricName should fail if the child metrics are not defined at runtime"); } catch (IllegalArgumentException e) { // this is expected } try { Map<String, String> runtimeTags = new HashMap<>(); runtimeTags.put("child-tag", "child-tag-value"); runtimeTags.put("tag-not-in-template", "unexpected-value"); inherited.metricInstance(SampleMetrics.METRIC_WITH_INHERITED_TAGS, runtimeTags); fail("Creating MetricName should fail if there is a tag at runtime that is not in the template"); } catch (IllegalArgumentException e) { // this is expected } } } @Test public void testConcurrentAccess() throws Exception { final Random random = new Random(); final Deque<Sensor> sensors = new ConcurrentLinkedDeque<>(); metrics = new Metrics(new MockTime(10)); SensorCreator sensorCreator = new SensorCreator(metrics); final AtomicBoolean alive = new AtomicBoolean(true); executorService = Executors.newSingleThreadExecutor(); executorService.submit(new Runnable() { @Override public void run() { while (alive.get()) { for (Sensor sensor : sensors) { sensor.record(random.nextInt(10000)); } } } }); for (int i = 0; i < 10000; i++) { if (sensors.size() > 5) { Sensor sensor = random.nextBoolean() ? sensors.removeFirst() : sensors.removeLast(); metrics.removeSensor(sensor.name()); } StatType statType = StatType.forId(random.nextInt(StatType.values().length)); sensors.add(sensorCreator.createSensor(statType, i)); for (Sensor sensor : sensors) { for (KafkaMetric metric : sensor.metrics()) { assertNotNull("Invalid metric value", metric.metricValue()); } } } alive.set(false); } enum StatType { AVG(0), TOTAL(1), COUNT(2), MAX(3), MIN(4), RATE(5), SIMPLE_RATE(6), SUM(7), VALUE(8), PERCENTILES(9), METER(10); int id; StatType(int id) { this.id = id; } static StatType forId(int id) { for (StatType statType : StatType.values()) { if (statType.id == id) return statType; } return null; } } private static class SensorCreator { private final Metrics metrics; SensorCreator(Metrics metrics) { this.metrics = metrics; } private Sensor createSensor(StatType statType, int index) { Sensor sensor = metrics.sensor("kafka.requests"); Map<String, String> tags = Collections.singletonMap("tag", "tag" + index); switch (statType) { case AVG: sensor.add(metrics.metricName("test.metric.avg", "avg", tags), new Avg()); break; case TOTAL: sensor.add(metrics.metricName("test.metric.total", "total", tags), new Total()); break; case COUNT: sensor.add(metrics.metricName("test.metric.count", "count", tags), new Count()); break; case MAX: sensor.add(metrics.metricName("test.metric.max", "max", tags), new Max()); break; case MIN: sensor.add(metrics.metricName("test.metric.min", "min", tags), new Min()); break; case RATE: sensor.add(metrics.metricName("test.metric.rate", "rate", tags), new Rate()); break; case SIMPLE_RATE: sensor.add(metrics.metricName("test.metric.simpleRate", "simpleRate", tags), new SimpleRate()); break; case SUM: sensor.add(metrics.metricName("test.metric.sum", "sum", tags), new Sum()); break; case VALUE: sensor.add(metrics.metricName("test.metric.value", "value", tags), new Value()); break; case PERCENTILES: sensor.add(metrics.metricName("test.metric.percentiles", "percentiles", tags), new Percentiles(100, -100, 100, Percentiles.BucketSizing.CONSTANT, new Percentile(metrics.metricName("test.median", "percentiles"), 50.0), new Percentile(metrics.metricName("test.perc99_9", "percentiles"), 99.9))); break; case METER: sensor.add(new Meter(metrics.metricName("test.metric.meter.rate", "meter", tags), metrics.metricName("test.metric.meter.total", "meter", tags))); break; default: throw new IllegalStateException("Invalid stat type " + statType); } return sensor; } } }
{ "content_hash": "a2e7bd85aeeba19a50c01c67abcc5a48", "timestamp": "", "source": "github", "line_count": 728, "max_line_length": 158, "avg_line_length": 45.1978021978022, "alnum_prop": 0.6102601507415512, "repo_name": "sebadiaz/kafka", "id": "62ec670332443188f326de5d73a99a81731d4e16", "size": "33702", "binary": false, "copies": "1", "ref": "refs/heads/trunk", "path": "clients/src/test/java/org/apache/kafka/common/metrics/MetricsTest.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "20094" }, { "name": "HTML", "bytes": "5443" }, { "name": "Java", "bytes": "3801275" }, { "name": "Python", "bytes": "307205" }, { "name": "Scala", "bytes": "2782228" }, { "name": "Shell", "bytes": "43558" }, { "name": "XSLT", "bytes": "7116" } ], "symlink_target": "" }
<assembly> <id>bin</id> <formats> <format>zip</format> <format>tar.gz</format> </formats> <fileSets> <fileSet> <directory>${basedir}</directory> <outputDirectory>/</outputDirectory> <includes> <include>README</include> <include>TODO</include> <include>NOTICE</include> <include>ChangeLog</include> <include>LICENSE</include> </includes> </fileSet> <fileSet> <directory>${basedir}/docs</directory> <outputDirectory>/docs</outputDirectory> </fileSet> <fileSet> <directory>${basedir}/bin</directory> <outputDirectory>/bin</outputDirectory> <fileMode>755</fileMode> </fileSet> </fileSets> <dependencySets> <dependencySet> <outputDirectory>/lib</outputDirectory> <includes> <include>com.marklogic:xcc</include> <include>com.marklogic:cqsh</include> <include>jline:jline</include> <include>commons-lang:commons-lang</include> <include>commons-cli:commons-cli</include> <include>commons-configuration:commons-configuration</include> <include>commons-logging:commons-logging</include> <include>commons-collections:commons-collections</include> <include>jdom:jdom</include> </includes> </dependencySet> </dependencySets> </assembly>
{ "content_hash": "6c65d4929aa7bd1c6735ed60e12db22f", "timestamp": "", "source": "github", "line_count": 45, "max_line_length": 70, "avg_line_length": 30.266666666666666, "alnum_prop": 0.6365638766519823, "repo_name": "marklogic/cqsh", "id": "204e0e8ab5e6718f0a13eeef6dac7c7b16a6f56f", "size": "1362", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/assemble/bin.xml", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "81834" } ], "symlink_target": "" }
package org.olat.course.nodes.cp; import java.io.File; import org.olat.core.gui.UserRequest; import org.olat.core.gui.Windows; import org.olat.core.gui.components.Component; import org.olat.core.gui.components.link.Link; import org.olat.core.gui.components.panel.Panel; import org.olat.core.gui.components.tree.TreeEvent; import org.olat.core.gui.control.Controller; import org.olat.core.gui.control.ControllerEventListener; import org.olat.core.gui.control.Event; import org.olat.core.gui.control.WindowControl; import org.olat.core.gui.control.controller.BasicController; import org.olat.core.id.OLATResourceable; import org.olat.core.id.context.BusinessControl; import org.olat.core.id.context.ContextEntry; import org.olat.core.logging.AssertException; import org.olat.core.logging.OLog; import org.olat.core.logging.Tracing; import org.olat.core.util.vfs.LocalFolderImpl; import org.olat.course.editor.NodeEditController; import org.olat.course.nodes.CPCourseNode; import org.olat.course.nodes.TitledWrapperHelper; import org.olat.course.run.navigation.NodeRunConstructionResult; import org.olat.course.run.userview.UserCourseEnvironment; import org.olat.fileresource.FileResourceManager; import org.olat.modules.ModuleConfiguration; import org.olat.modules.cp.CPDisplayController; import org.olat.modules.cp.CPManifestTreeModel; import org.olat.modules.cp.CPUIFactory; import org.olat.modules.cp.TreeNodeEvent; import org.olat.repository.RepositoryEntry; import org.olat.util.logging.activity.LoggingResourceable; /** * Description: <BR/> * Run controller for content packaging course nodes * <P/> * Initial Date: Oct 13, 2004 * * @author Felix Jost * @author BPS (<a href="http://www.bps-system.de/">BPS Bildungsportal Sachsen GmbH</a>) */ public class CPRunController extends BasicController implements ControllerEventListener { private static final OLog log = Tracing.createLoggerFor(CPRunController.class); private final String attrFromStartpage; private final ModuleConfiguration config; private File cpRoot; private final Panel main; private Link showCPButton; private CPDisplayController cpDispC; private final CPCourseNode cpNode; // for external menu representation private CPManifestTreeModel treeModel; private ControllerEventListener treeNodeClickListener; private String nodecmd; private String selNodeId; private final OLATResourceable ores; /** * Use this constructor to launch a CP via Repository reference key set in the ModuleConfiguration. On the into page a title and the learning objectives can be * placed. * * @param config * @param ureq * @param userCourseEnv * @param wControl * @param cpNode */ public CPRunController(final ModuleConfiguration config, final UserRequest ureq, final UserCourseEnvironment userCourseEnv, final WindowControl wControl, final CPCourseNode cpNode, final String nodecmd, final OLATResourceable course) { super(ureq, wControl); this.nodecmd = nodecmd; this.ores = course; // assertion to make sure the moduleconfig is valid if (!CPEditController.isModuleConfigValid(config)) { throw new AssertException("cprun controller had an invalid module config:" + config.toString()); } this.config = config; this.cpNode = cpNode; this.attrFromStartpage = "fromStartpage:" + cpNode.getIdent(); Object frmStrtPg = null; // REVIEW:pb:2009-07-14:see OLAT-4166 problem with JumpIn no Window available during Constructor call. if (Windows.getWindows(ureq) != null && Windows.getWindows(ureq).getWindow(ureq) != null) { frmStrtPg = Windows.getWindows(ureq).getWindow(ureq).getAttribute(attrFromStartpage); } if (frmStrtPg instanceof Boolean && (Boolean) frmStrtPg == Boolean.TRUE) { Windows.getWindows(ureq).getWindow(ureq).removeAttribute(attrFromStartpage); } addLoggingResourceable(LoggingResourceable.wrap(cpNode)); // jump to either the forum or the folder if the business-launch-path says so. final BusinessControl bc = getWindowControl().getBusinessControl(); final ContextEntry ce = bc.popLauncherContextEntry(); if (ce != null) { // a context path is left for me if (log.isDebug()) { log.debug("businesscontrol (for further jumps) would be:" + bc); } final OLATResourceable popOres = ce.getOLATResourceable(); if (log.isDebug()) { log.debug("OLATResourceable=" + popOres); } final String typeName = popOres.getResourceableTypeName(); // typeName format: 'path=/test1/test2/readme.txt' // First remove prefix 'path=' final String path = typeName.substring("path=".length()); if (path.length() > 0) { if (log.isDebug()) { log.debug("direct navigation to container-path=" + path); } this.nodecmd = path; } } main = new Panel("cprunmain"); doLaunch(ureq); putInitialPanel(main); } /** * @see org.olat.core.gui.control.DefaultController#event(org.olat.core.gui.UserRequest, org.olat.core.gui.components.Component, org.olat.core.gui.control.Event) */ @Override public void event(final UserRequest ureq, final Component source, final Event event) { if (source == showCPButton) { // those must be links Windows.getWindows(ureq).getWindow(ureq).setAttribute(attrFromStartpage, Boolean.TRUE); fireEvent(ureq, Event.CHANGED_EVENT); doLaunch(ureq); } } /** * @see org.olat.core.gui.control.DefaultController#event(org.olat.core.gui.UserRequest, org.olat.core.gui.control.Controller, org.olat.core.gui.control.Event) */ @Override public void event(final UserRequest ureq, final Controller source, final Event event) { if (source == null) { // external source (from the course at this time being) if (event instanceof TreeEvent) { cpDispC.switchToPage(ureq, (TreeEvent) event); } } else if (source == cpDispC && treeNodeClickListener != null && (event instanceof TreeNodeEvent)) { // propagate TreeNodeEvent to the listener fireEvent(ureq, event); } } private void doLaunch(final UserRequest ureq) { if (cpRoot == null) { // it is the first time we start the contentpackaging from this instance // of this controller. // need to be strict when launching -> "true" final RepositoryEntry re = CPEditController.getCPReference(config, true); if (re == null) { throw new AssertException("configurationkey 'CONFIG_KEY_REPOSITORY_SOFTKEY' of BB CP was missing"); } cpRoot = FileResourceManager.getInstance().unzipFileResource(re.getOlatResource()); // should always exist because references cannot be deleted as long as // nodes reference them if (cpRoot == null) { throw new AssertException("file of repository entry " + re.getKey() + " was missing"); } } // else cpRoot is already set (save some db access if the user opens / // closes / reopens the cp from the same CPRuncontroller instance) boolean activateFirstPage = true; if ((nodecmd != null) && !nodecmd.equals("")) { activateFirstPage = false; } cpDispC = CPUIFactory.getInstance().createContentOnlyCPDisplayController(ureq, getWindowControl(), new LocalFolderImpl(cpRoot), activateFirstPage, nodecmd, ores); cpDispC.setContentEncoding(getContentEncoding()); cpDispC.setJSEncoding(getJSEncoding()); cpDispC.addControllerListener(this); main.setContent(cpDispC.getInitialComponent()); if (isExternalMenuConfigured()) { treeModel = cpDispC.getTreeModel(); treeNodeClickListener = this; if (activateFirstPage) { selNodeId = cpDispC.getInitialSelectedNodeId(); } else { String uri = nodecmd; if (uri.startsWith("/")) { uri = uri.substring(1, uri.length()); } selNodeId = cpDispC.getNodeByUri(uri); } } } /** * @return true if there is a treemodel and an event listener ready to be used in outside this controller */ private boolean isExternalMenuConfigured() { return (config.getBooleanEntry(NodeEditController.CONFIG_COMPONENT_MENU).booleanValue()); } private String getContentEncoding() { final String encoding = (String) config.get(NodeEditController.CONFIG_CONTENT_ENCODING); if (!encoding.equals(NodeEditController.CONFIG_CONTENT_ENCODING_AUTO)) { return encoding; } return null; } private String getJSEncoding() { final String encoding = (String) config.get(NodeEditController.CONFIG_JS_ENCODING); if (!encoding.equals(NodeEditController.CONFIG_JS_ENCODING_AUTO)) { return encoding; } return null; } /** * @see org.olat.core.gui.control.DefaultController#doDispose(boolean) */ @Override protected void doDispose() { if (cpDispC != null) { cpDispC.dispose(); cpDispC = null; } } public NodeRunConstructionResult createNodeRunConstructionResult(final UserRequest ureq) { NodeRunConstructionResult ncr; if (isExternalMenuConfigured()) { // integrate it into the olat menu final Controller ctrl = TitledWrapperHelper.getWrapper(ureq, getWindowControl(), this, cpNode, "o_cp_icon"); ncr = new NodeRunConstructionResult(ctrl, treeModel, selNodeId, treeNodeClickListener); } else { // no menu to integrate final Controller ctrl = TitledWrapperHelper.getWrapper(ureq, getWindowControl(), this, cpNode, "o_cp_icon"); ncr = new NodeRunConstructionResult(ctrl); } return ncr; } }
{ "content_hash": "7ec5080e8d301d27b77e40ac73ae7725", "timestamp": "", "source": "github", "line_count": 234, "max_line_length": 164, "avg_line_length": 39.14102564102564, "alnum_prop": 0.7498635222185828, "repo_name": "RLDevOps/Scholastic", "id": "d560ced5af38c76f482d232713af0356ed0e7ee1", "size": "9955", "binary": false, "copies": "3", "ref": "refs/heads/master", "path": "src/main/java/org/olat/course/nodes/cp/CPRunController.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "2279568" }, { "name": "Java", "bytes": "20345916" }, { "name": "JavaScript", "bytes": "31555977" }, { "name": "Perl", "bytes": "4117" }, { "name": "Shell", "bytes": "42296" }, { "name": "XSLT", "bytes": "169404" } ], "symlink_target": "" }
import { Component } from "@angular/core"; import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; import { OnInit } from '@angular/core' import { Input } from '@angular/core' import { Router } from '@angular/router'; import { FormsModule } from '@angular/forms'; import { IMultiSelectOption } from 'angular-2-dropdown-multiselect'; import { VendingMachineSearch } from './model/vendingMachineSearch'; import { MachineDialogComponent } from "./submodules/machine-dialog/machine-dialog.component"; import { EmitService } from "../common/service/emit.service"; import { MachineService } from "../common/service/machine.service"; import { Machine } from "../common/model/machine"; @Component({ selector: 'vending-machine', templateUrl: 'vending-machine.component.html', styleUrls: ['./vending-machine.component.css'], }) export class VendingMachineComponent implements OnInit { searchFlag: any; machineList: IMultiSelectOption[]; model: VendingMachineSearch; machinesFound: Machine[]; errorMessage: any = {} constructor(private emitService: EmitService, private machineService: MachineService) { } ngOnInit(): void { this.getAllMahines(); } refresh(): void { this.getAllMahines(); } getAllMahines() { this.machineService.getAllMachines() .subscribe( machines => { console.log(machines); this.machinesFound = machines; }, error => this.errorMessage = <any>error ) } }
{ "content_hash": "c82d38d8e06436b3f9942082a0c27333", "timestamp": "", "source": "github", "line_count": 54, "max_line_length": 94, "avg_line_length": 29.35185185185185, "alnum_prop": 0.6473186119873817, "repo_name": "paololersey/mea4n-aws", "id": "db1c0a96c05a3381b08cbe925047f513219618da", "size": "1585", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "frontend/app/modules/vending-machine/vending-machine.component.ts", "mode": "33188", "license": "mit", "language": [ { "name": "Batchfile", "bytes": "282" }, { "name": "CSS", "bytes": "4187" }, { "name": "Dockerfile", "bytes": "882" }, { "name": "HTML", "bytes": "18895" }, { "name": "JavaScript", "bytes": "115890" }, { "name": "Shell", "bytes": "76" }, { "name": "TypeScript", "bytes": "69443" } ], "symlink_target": "" }
[assembly: global::Android.Runtime.ResourceDesignerAttribute("ContosoMoments.Droid.Resource", IsApplication=true)] namespace ContosoMoments.Droid { [System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "1.0.0.0")] public partial class Resource { static Resource() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } public static void UpdateIdValues() { global::Gcm.Client.Resource.String.library_name = global::ContosoMoments.Droid.Resource.String.library_name; global::Microsoft.WindowsAzure.Mobile.Files.Resource.String.ApplicationName = global::ContosoMoments.Droid.Resource.String.ApplicationName; global::Microsoft.WindowsAzure.Mobile.Files.Resource.String.Hello = global::ContosoMoments.Droid.Resource.String.Hello; global::PCLStorage.Resource.String.ApplicationName = global::ContosoMoments.Droid.Resource.String.ApplicationName; global::PCLStorage.Resource.String.Hello = global::ContosoMoments.Droid.Resource.String.Hello; global::Xamarin.Forms.Platform.Android.Resource.Attribute.actionBarSize = global::ContosoMoments.Droid.Resource.Attribute.actionBarSize; } public partial class Animation { // aapt resource value: 0x7f040000 public const int abc_fade_in = 2130968576; // aapt resource value: 0x7f040001 public const int abc_fade_out = 2130968577; // aapt resource value: 0x7f040002 public const int abc_grow_fade_in_from_bottom = 2130968578; // aapt resource value: 0x7f040003 public const int abc_popup_enter = 2130968579; // aapt resource value: 0x7f040004 public const int abc_popup_exit = 2130968580; // aapt resource value: 0x7f040005 public const int abc_shrink_fade_out_from_bottom = 2130968581; // aapt resource value: 0x7f040006 public const int abc_slide_in_bottom = 2130968582; // aapt resource value: 0x7f040007 public const int abc_slide_in_top = 2130968583; // aapt resource value: 0x7f040008 public const int abc_slide_out_bottom = 2130968584; // aapt resource value: 0x7f040009 public const int abc_slide_out_top = 2130968585; // aapt resource value: 0x7f04000a public const int design_fab_in = 2130968586; // aapt resource value: 0x7f04000b public const int design_fab_out = 2130968587; // aapt resource value: 0x7f04000c public const int design_snackbar_in = 2130968588; // aapt resource value: 0x7f04000d public const int design_snackbar_out = 2130968589; static Animation() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Animation() { } } public partial class Attribute { // aapt resource value: 0x7f010076 public const int actionBarDivider = 2130772086; // aapt resource value: 0x7f010077 public const int actionBarItemBackground = 2130772087; // aapt resource value: 0x7f010070 public const int actionBarPopupTheme = 2130772080; // aapt resource value: 0x7f010075 public const int actionBarSize = 2130772085; // aapt resource value: 0x7f010072 public const int actionBarSplitStyle = 2130772082; // aapt resource value: 0x7f010071 public const int actionBarStyle = 2130772081; // aapt resource value: 0x7f01006c public const int actionBarTabBarStyle = 2130772076; // aapt resource value: 0x7f01006b public const int actionBarTabStyle = 2130772075; // aapt resource value: 0x7f01006d public const int actionBarTabTextStyle = 2130772077; // aapt resource value: 0x7f010073 public const int actionBarTheme = 2130772083; // aapt resource value: 0x7f010074 public const int actionBarWidgetTheme = 2130772084; // aapt resource value: 0x7f010090 public const int actionButtonStyle = 2130772112; // aapt resource value: 0x7f01008c public const int actionDropDownStyle = 2130772108; // aapt resource value: 0x7f010047 public const int actionLayout = 2130772039; // aapt resource value: 0x7f010078 public const int actionMenuTextAppearance = 2130772088; // aapt resource value: 0x7f010079 public const int actionMenuTextColor = 2130772089; // aapt resource value: 0x7f01007c public const int actionModeBackground = 2130772092; // aapt resource value: 0x7f01007b public const int actionModeCloseButtonStyle = 2130772091; // aapt resource value: 0x7f01007e public const int actionModeCloseDrawable = 2130772094; // aapt resource value: 0x7f010080 public const int actionModeCopyDrawable = 2130772096; // aapt resource value: 0x7f01007f public const int actionModeCutDrawable = 2130772095; // aapt resource value: 0x7f010084 public const int actionModeFindDrawable = 2130772100; // aapt resource value: 0x7f010081 public const int actionModePasteDrawable = 2130772097; // aapt resource value: 0x7f010086 public const int actionModePopupWindowStyle = 2130772102; // aapt resource value: 0x7f010082 public const int actionModeSelectAllDrawable = 2130772098; // aapt resource value: 0x7f010083 public const int actionModeShareDrawable = 2130772099; // aapt resource value: 0x7f01007d public const int actionModeSplitBackground = 2130772093; // aapt resource value: 0x7f01007a public const int actionModeStyle = 2130772090; // aapt resource value: 0x7f010085 public const int actionModeWebSearchDrawable = 2130772101; // aapt resource value: 0x7f01006e public const int actionOverflowButtonStyle = 2130772078; // aapt resource value: 0x7f01006f public const int actionOverflowMenuStyle = 2130772079; // aapt resource value: 0x7f010049 public const int actionProviderClass = 2130772041; // aapt resource value: 0x7f010048 public const int actionViewClass = 2130772040; // aapt resource value: 0x7f010098 public const int activityChooserViewStyle = 2130772120; // aapt resource value: 0x7f0100ba public const int alertDialogButtonGroupStyle = 2130772154; // aapt resource value: 0x7f0100bb public const int alertDialogCenterButtons = 2130772155; // aapt resource value: 0x7f0100b9 public const int alertDialogStyle = 2130772153; // aapt resource value: 0x7f0100bc public const int alertDialogTheme = 2130772156; // aapt resource value: 0x7f01003f public const int arrowHeadLength = 2130772031; // aapt resource value: 0x7f010040 public const int arrowShaftLength = 2130772032; // aapt resource value: 0x7f0100c1 public const int autoCompleteTextViewStyle = 2130772161; // aapt resource value: 0x7f010020 public const int background = 2130772000; // aapt resource value: 0x7f010022 public const int backgroundSplit = 2130772002; // aapt resource value: 0x7f010021 public const int backgroundStacked = 2130772001; // aapt resource value: 0x7f0100dd public const int backgroundTint = 2130772189; // aapt resource value: 0x7f0100de public const int backgroundTintMode = 2130772190; // aapt resource value: 0x7f010041 public const int barLength = 2130772033; // aapt resource value: 0x7f010102 public const int behavior_overlapTop = 2130772226; // aapt resource value: 0x7f0100fa public const int borderWidth = 2130772218; // aapt resource value: 0x7f010095 public const int borderlessButtonStyle = 2130772117; // aapt resource value: 0x7f010092 public const int buttonBarButtonStyle = 2130772114; // aapt resource value: 0x7f0100bf public const int buttonBarNegativeButtonStyle = 2130772159; // aapt resource value: 0x7f0100c0 public const int buttonBarNeutralButtonStyle = 2130772160; // aapt resource value: 0x7f0100be public const int buttonBarPositiveButtonStyle = 2130772158; // aapt resource value: 0x7f010091 public const int buttonBarStyle = 2130772113; // aapt resource value: 0x7f010033 public const int buttonPanelSideLayout = 2130772019; // aapt resource value: 0x7f0100c2 public const int buttonStyle = 2130772162; // aapt resource value: 0x7f0100c3 public const int buttonStyleSmall = 2130772163; // aapt resource value: 0x7f010039 public const int buttonTint = 2130772025; // aapt resource value: 0x7f01003a public const int buttonTintMode = 2130772026; // aapt resource value: 0x7f010009 public const int cardBackgroundColor = 2130771977; // aapt resource value: 0x7f01000a public const int cardCornerRadius = 2130771978; // aapt resource value: 0x7f01000b public const int cardElevation = 2130771979; // aapt resource value: 0x7f01000c public const int cardMaxElevation = 2130771980; // aapt resource value: 0x7f01000e public const int cardPreventCornerOverlap = 2130771982; // aapt resource value: 0x7f01000d public const int cardUseCompatPadding = 2130771981; // aapt resource value: 0x7f0100c4 public const int checkboxStyle = 2130772164; // aapt resource value: 0x7f0100c5 public const int checkedTextViewStyle = 2130772165; // aapt resource value: 0x7f010051 public const int closeIcon = 2130772049; // aapt resource value: 0x7f010030 public const int closeItemLayout = 2130772016; // aapt resource value: 0x7f0100d4 public const int collapseContentDescription = 2130772180; // aapt resource value: 0x7f0100d3 public const int collapseIcon = 2130772179; // aapt resource value: 0x7f0100ee public const int collapsedTitleGravity = 2130772206; // aapt resource value: 0x7f0100ea public const int collapsedTitleTextAppearance = 2130772202; // aapt resource value: 0x7f01003b public const int color = 2130772027; // aapt resource value: 0x7f0100b2 public const int colorAccent = 2130772146; // aapt resource value: 0x7f0100b6 public const int colorButtonNormal = 2130772150; // aapt resource value: 0x7f0100b4 public const int colorControlActivated = 2130772148; // aapt resource value: 0x7f0100b5 public const int colorControlHighlight = 2130772149; // aapt resource value: 0x7f0100b3 public const int colorControlNormal = 2130772147; // aapt resource value: 0x7f0100b0 public const int colorPrimary = 2130772144; // aapt resource value: 0x7f0100b1 public const int colorPrimaryDark = 2130772145; // aapt resource value: 0x7f0100b7 public const int colorSwitchThumbNormal = 2130772151; // aapt resource value: 0x7f01011c public const int com_facebook_auxiliary_view_position = 2130772252; // aapt resource value: 0x7f01011e public const int com_facebook_confirm_logout = 2130772254; // aapt resource value: 0x7f010118 public const int com_facebook_foreground_color = 2130772248; // aapt resource value: 0x7f01011d public const int com_facebook_horizontal_alignment = 2130772253; // aapt resource value: 0x7f010123 public const int com_facebook_is_cropped = 2130772259; // aapt resource value: 0x7f01011f public const int com_facebook_login_text = 2130772255; // aapt resource value: 0x7f010120 public const int com_facebook_logout_text = 2130772256; // aapt resource value: 0x7f010119 public const int com_facebook_object_id = 2130772249; // aapt resource value: 0x7f01011a public const int com_facebook_object_type = 2130772250; // aapt resource value: 0x7f010122 public const int com_facebook_preset_size = 2130772258; // aapt resource value: 0x7f01011b public const int com_facebook_style = 2130772251; // aapt resource value: 0x7f010121 public const int com_facebook_tooltip_mode = 2130772257; // aapt resource value: 0x7f010056 public const int commitIcon = 2130772054; // aapt resource value: 0x7f01002b public const int contentInsetEnd = 2130772011; // aapt resource value: 0x7f01002c public const int contentInsetLeft = 2130772012; // aapt resource value: 0x7f01002d public const int contentInsetRight = 2130772013; // aapt resource value: 0x7f01002a public const int contentInsetStart = 2130772010; // aapt resource value: 0x7f01000f public const int contentPadding = 2130771983; // aapt resource value: 0x7f010013 public const int contentPaddingBottom = 2130771987; // aapt resource value: 0x7f010010 public const int contentPaddingLeft = 2130771984; // aapt resource value: 0x7f010011 public const int contentPaddingRight = 2130771985; // aapt resource value: 0x7f010012 public const int contentPaddingTop = 2130771986; // aapt resource value: 0x7f0100eb public const int contentScrim = 2130772203; // aapt resource value: 0x7f0100b8 public const int controlBackground = 2130772152; // aapt resource value: 0x7f010023 public const int customNavigationLayout = 2130772003; // aapt resource value: 0x7f010050 public const int defaultQueryHint = 2130772048; // aapt resource value: 0x7f01008a public const int dialogPreferredPadding = 2130772106; // aapt resource value: 0x7f010089 public const int dialogTheme = 2130772105; // aapt resource value: 0x7f010019 public const int displayOptions = 2130771993; // aapt resource value: 0x7f01001f public const int divider = 2130771999; // aapt resource value: 0x7f010097 public const int dividerHorizontal = 2130772119; // aapt resource value: 0x7f010045 public const int dividerPadding = 2130772037; // aapt resource value: 0x7f010096 public const int dividerVertical = 2130772118; // aapt resource value: 0x7f01003d public const int drawableSize = 2130772029; // aapt resource value: 0x7f010014 public const int drawerArrowStyle = 2130771988; // aapt resource value: 0x7f0100a8 public const int dropDownListViewStyle = 2130772136; // aapt resource value: 0x7f01008d public const int dropdownListPreferredItemHeight = 2130772109; // aapt resource value: 0x7f01009e public const int editTextBackground = 2130772126; // aapt resource value: 0x7f01009d public const int editTextColor = 2130772125; // aapt resource value: 0x7f0100c6 public const int editTextStyle = 2130772166; // aapt resource value: 0x7f01002e public const int elevation = 2130772014; // aapt resource value: 0x7f010115 public const int errorEnabled = 2130772245; // aapt resource value: 0x7f010116 public const int errorTextAppearance = 2130772246; // aapt resource value: 0x7f010032 public const int expandActivityOverflowButtonDrawable = 2130772018; // aapt resource value: 0x7f0100df public const int expanded = 2130772191; // aapt resource value: 0x7f0100ef public const int expandedTitleGravity = 2130772207; // aapt resource value: 0x7f0100e4 public const int expandedTitleMargin = 2130772196; // aapt resource value: 0x7f0100e8 public const int expandedTitleMarginBottom = 2130772200; // aapt resource value: 0x7f0100e7 public const int expandedTitleMarginEnd = 2130772199; // aapt resource value: 0x7f0100e5 public const int expandedTitleMarginStart = 2130772197; // aapt resource value: 0x7f0100e6 public const int expandedTitleMarginTop = 2130772198; // aapt resource value: 0x7f0100e9 public const int expandedTitleTextAppearance = 2130772201; // aapt resource value: 0x7f010008 public const int externalRouteEnabledDrawable = 2130771976; // aapt resource value: 0x7f0100f8 public const int fabSize = 2130772216; // aapt resource value: 0x7f01003e public const int gapBetweenBars = 2130772030; // aapt resource value: 0x7f010052 public const int goIcon = 2130772050; // aapt resource value: 0x7f010100 public const int headerLayout = 2130772224; // aapt resource value: 0x7f010015 public const int height = 2130771989; // aapt resource value: 0x7f010029 public const int hideOnContentScroll = 2130772009; // aapt resource value: 0x7f010117 public const int hintAnimationEnabled = 2130772247; // aapt resource value: 0x7f010114 public const int hintTextAppearance = 2130772244; // aapt resource value: 0x7f01008f public const int homeAsUpIndicator = 2130772111; // aapt resource value: 0x7f010024 public const int homeLayout = 2130772004; // aapt resource value: 0x7f01001d public const int icon = 2130771997; // aapt resource value: 0x7f01004e public const int iconifiedByDefault = 2130772046; // aapt resource value: 0x7f010026 public const int indeterminateProgressStyle = 2130772006; // aapt resource value: 0x7f010031 public const int initialActivityCount = 2130772017; // aapt resource value: 0x7f010101 public const int insetForeground = 2130772225; // aapt resource value: 0x7f010016 public const int isLightTheme = 2130771990; // aapt resource value: 0x7f0100fe public const int itemBackground = 2130772222; // aapt resource value: 0x7f0100fc public const int itemIconTint = 2130772220; // aapt resource value: 0x7f010028 public const int itemPadding = 2130772008; // aapt resource value: 0x7f0100ff public const int itemTextAppearance = 2130772223; // aapt resource value: 0x7f0100fd public const int itemTextColor = 2130772221; // aapt resource value: 0x7f0100f1 public const int keylines = 2130772209; // aapt resource value: 0x7f01004d public const int layout = 2130772045; // aapt resource value: 0x7f0100f4 public const int layout_anchor = 2130772212; // aapt resource value: 0x7f0100f6 public const int layout_anchorGravity = 2130772214; // aapt resource value: 0x7f0100f3 public const int layout_behavior = 2130772211; // aapt resource value: 0x7f0100e2 public const int layout_collapseMode = 2130772194; // aapt resource value: 0x7f0100e3 public const int layout_collapseParallaxMultiplier = 2130772195; // aapt resource value: 0x7f0100f5 public const int layout_keyline = 2130772213; // aapt resource value: 0x7f0100e0 public const int layout_scrollFlags = 2130772192; // aapt resource value: 0x7f0100e1 public const int layout_scrollInterpolator = 2130772193; // aapt resource value: 0x7f0100af public const int listChoiceBackgroundIndicator = 2130772143; // aapt resource value: 0x7f01008b public const int listDividerAlertDialog = 2130772107; // aapt resource value: 0x7f010037 public const int listItemLayout = 2130772023; // aapt resource value: 0x7f010034 public const int listLayout = 2130772020; // aapt resource value: 0x7f0100a9 public const int listPopupWindowStyle = 2130772137; // aapt resource value: 0x7f0100a3 public const int listPreferredItemHeight = 2130772131; // aapt resource value: 0x7f0100a5 public const int listPreferredItemHeightLarge = 2130772133; // aapt resource value: 0x7f0100a4 public const int listPreferredItemHeightSmall = 2130772132; // aapt resource value: 0x7f0100a6 public const int listPreferredItemPaddingLeft = 2130772134; // aapt resource value: 0x7f0100a7 public const int listPreferredItemPaddingRight = 2130772135; // aapt resource value: 0x7f01001e public const int logo = 2130771998; // aapt resource value: 0x7f0100d7 public const int logoDescription = 2130772183; // aapt resource value: 0x7f010103 public const int maxActionInlineWidth = 2130772227; // aapt resource value: 0x7f0100d2 public const int maxButtonHeight = 2130772178; // aapt resource value: 0x7f010043 public const int measureWithLargestChild = 2130772035; // aapt resource value: 0x7f010000 public const int mediaRouteButtonStyle = 2130771968; // aapt resource value: 0x7f010001 public const int mediaRouteCastDrawable = 2130771969; // aapt resource value: 0x7f010002 public const int mediaRouteConnectingDrawable = 2130771970; // aapt resource value: 0x7f010003 public const int mediaRouteOffDrawable = 2130771971; // aapt resource value: 0x7f010004 public const int mediaRouteOnDrawable = 2130771972; // aapt resource value: 0x7f010005 public const int mediaRoutePauseDrawable = 2130771973; // aapt resource value: 0x7f010006 public const int mediaRoutePlayDrawable = 2130771974; // aapt resource value: 0x7f010007 public const int mediaRouteSettingsDrawable = 2130771975; // aapt resource value: 0x7f0100fb public const int menu = 2130772219; // aapt resource value: 0x7f010035 public const int multiChoiceItemLayout = 2130772021; // aapt resource value: 0x7f0100d6 public const int navigationContentDescription = 2130772182; // aapt resource value: 0x7f0100d5 public const int navigationIcon = 2130772181; // aapt resource value: 0x7f010018 public const int navigationMode = 2130771992; // aapt resource value: 0x7f01004b public const int overlapAnchor = 2130772043; // aapt resource value: 0x7f0100db public const int paddingEnd = 2130772187; // aapt resource value: 0x7f0100da public const int paddingStart = 2130772186; // aapt resource value: 0x7f0100ac public const int panelBackground = 2130772140; // aapt resource value: 0x7f0100ae public const int panelMenuListTheme = 2130772142; // aapt resource value: 0x7f0100ad public const int panelMenuListWidth = 2130772141; // aapt resource value: 0x7f01009b public const int popupMenuStyle = 2130772123; // aapt resource value: 0x7f01002f public const int popupTheme = 2130772015; // aapt resource value: 0x7f01009c public const int popupWindowStyle = 2130772124; // aapt resource value: 0x7f01004a public const int preserveIconSpacing = 2130772042; // aapt resource value: 0x7f0100f9 public const int pressedTranslationZ = 2130772217; // aapt resource value: 0x7f010027 public const int progressBarPadding = 2130772007; // aapt resource value: 0x7f010025 public const int progressBarStyle = 2130772005; // aapt resource value: 0x7f010058 public const int queryBackground = 2130772056; // aapt resource value: 0x7f01004f public const int queryHint = 2130772047; // aapt resource value: 0x7f0100c7 public const int radioButtonStyle = 2130772167; // aapt resource value: 0x7f0100c8 public const int ratingBarStyle = 2130772168; // aapt resource value: 0x7f0100f7 public const int rippleColor = 2130772215; // aapt resource value: 0x7f010054 public const int searchHintIcon = 2130772052; // aapt resource value: 0x7f010053 public const int searchIcon = 2130772051; // aapt resource value: 0x7f0100a2 public const int searchViewStyle = 2130772130; // aapt resource value: 0x7f010093 public const int selectableItemBackground = 2130772115; // aapt resource value: 0x7f010094 public const int selectableItemBackgroundBorderless = 2130772116; // aapt resource value: 0x7f010046 public const int showAsAction = 2130772038; // aapt resource value: 0x7f010044 public const int showDividers = 2130772036; // aapt resource value: 0x7f010060 public const int showText = 2130772064; // aapt resource value: 0x7f010036 public const int singleChoiceItemLayout = 2130772022; // aapt resource value: 0x7f01003c public const int spinBars = 2130772028; // aapt resource value: 0x7f01008e public const int spinnerDropDownItemStyle = 2130772110; // aapt resource value: 0x7f0100c9 public const int spinnerStyle = 2130772169; // aapt resource value: 0x7f01005f public const int splitTrack = 2130772063; // aapt resource value: 0x7f01004c public const int state_above_anchor = 2130772044; // aapt resource value: 0x7f0100f2 public const int statusBarBackground = 2130772210; // aapt resource value: 0x7f0100ec public const int statusBarScrim = 2130772204; // aapt resource value: 0x7f010059 public const int submitBackground = 2130772057; // aapt resource value: 0x7f01001a public const int subtitle = 2130771994; // aapt resource value: 0x7f0100cc public const int subtitleTextAppearance = 2130772172; // aapt resource value: 0x7f0100d9 public const int subtitleTextColor = 2130772185; // aapt resource value: 0x7f01001c public const int subtitleTextStyle = 2130771996; // aapt resource value: 0x7f010057 public const int suggestionRowLayout = 2130772055; // aapt resource value: 0x7f01005d public const int switchMinWidth = 2130772061; // aapt resource value: 0x7f01005e public const int switchPadding = 2130772062; // aapt resource value: 0x7f0100ca public const int switchStyle = 2130772170; // aapt resource value: 0x7f01005c public const int switchTextAppearance = 2130772060; // aapt resource value: 0x7f010107 public const int tabBackground = 2130772231; // aapt resource value: 0x7f010106 public const int tabContentStart = 2130772230; // aapt resource value: 0x7f010109 public const int tabGravity = 2130772233; // aapt resource value: 0x7f010104 public const int tabIndicatorColor = 2130772228; // aapt resource value: 0x7f010105 public const int tabIndicatorHeight = 2130772229; // aapt resource value: 0x7f01010b public const int tabMaxWidth = 2130772235; // aapt resource value: 0x7f01010a public const int tabMinWidth = 2130772234; // aapt resource value: 0x7f010108 public const int tabMode = 2130772232; // aapt resource value: 0x7f010113 public const int tabPadding = 2130772243; // aapt resource value: 0x7f010112 public const int tabPaddingBottom = 2130772242; // aapt resource value: 0x7f010111 public const int tabPaddingEnd = 2130772241; // aapt resource value: 0x7f01010f public const int tabPaddingStart = 2130772239; // aapt resource value: 0x7f010110 public const int tabPaddingTop = 2130772240; // aapt resource value: 0x7f01010e public const int tabSelectedTextColor = 2130772238; // aapt resource value: 0x7f01010c public const int tabTextAppearance = 2130772236; // aapt resource value: 0x7f01010d public const int tabTextColor = 2130772237; // aapt resource value: 0x7f010038 public const int textAllCaps = 2130772024; // aapt resource value: 0x7f010087 public const int textAppearanceLargePopupMenu = 2130772103; // aapt resource value: 0x7f0100aa public const int textAppearanceListItem = 2130772138; // aapt resource value: 0x7f0100ab public const int textAppearanceListItemSmall = 2130772139; // aapt resource value: 0x7f0100a0 public const int textAppearanceSearchResultSubtitle = 2130772128; // aapt resource value: 0x7f01009f public const int textAppearanceSearchResultTitle = 2130772127; // aapt resource value: 0x7f010088 public const int textAppearanceSmallPopupMenu = 2130772104; // aapt resource value: 0x7f0100bd public const int textColorAlertDialogListItem = 2130772157; // aapt resource value: 0x7f0100a1 public const int textColorSearchUrl = 2130772129; // aapt resource value: 0x7f0100dc public const int theme = 2130772188; // aapt resource value: 0x7f010042 public const int thickness = 2130772034; // aapt resource value: 0x7f01005b public const int thumbTextPadding = 2130772059; // aapt resource value: 0x7f010017 public const int title = 2130771991; // aapt resource value: 0x7f0100f0 public const int titleEnabled = 2130772208; // aapt resource value: 0x7f0100d1 public const int titleMarginBottom = 2130772177; // aapt resource value: 0x7f0100cf public const int titleMarginEnd = 2130772175; // aapt resource value: 0x7f0100ce public const int titleMarginStart = 2130772174; // aapt resource value: 0x7f0100d0 public const int titleMarginTop = 2130772176; // aapt resource value: 0x7f0100cd public const int titleMargins = 2130772173; // aapt resource value: 0x7f0100cb public const int titleTextAppearance = 2130772171; // aapt resource value: 0x7f0100d8 public const int titleTextColor = 2130772184; // aapt resource value: 0x7f01001b public const int titleTextStyle = 2130771995; // aapt resource value: 0x7f0100ed public const int toolbarId = 2130772205; // aapt resource value: 0x7f01009a public const int toolbarNavigationButtonStyle = 2130772122; // aapt resource value: 0x7f010099 public const int toolbarStyle = 2130772121; // aapt resource value: 0x7f01005a public const int track = 2130772058; // aapt resource value: 0x7f010055 public const int voiceIcon = 2130772053; // aapt resource value: 0x7f010061 public const int windowActionBar = 2130772065; // aapt resource value: 0x7f010063 public const int windowActionBarOverlay = 2130772067; // aapt resource value: 0x7f010064 public const int windowActionModeOverlay = 2130772068; // aapt resource value: 0x7f010068 public const int windowFixedHeightMajor = 2130772072; // aapt resource value: 0x7f010066 public const int windowFixedHeightMinor = 2130772070; // aapt resource value: 0x7f010065 public const int windowFixedWidthMajor = 2130772069; // aapt resource value: 0x7f010067 public const int windowFixedWidthMinor = 2130772071; // aapt resource value: 0x7f010069 public const int windowMinWidthMajor = 2130772073; // aapt resource value: 0x7f01006a public const int windowMinWidthMinor = 2130772074; // aapt resource value: 0x7f010062 public const int windowNoTitle = 2130772066; static Attribute() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Attribute() { } } public partial class Boolean { // aapt resource value: 0x7f090002 public const int abc_action_bar_embed_tabs = 2131296258; // aapt resource value: 0x7f090000 public const int abc_action_bar_embed_tabs_pre_jb = 2131296256; // aapt resource value: 0x7f090003 public const int abc_action_bar_expanded_action_views_exclusive = 2131296259; // aapt resource value: 0x7f090004 public const int abc_config_actionMenuItemAllCaps = 2131296260; // aapt resource value: 0x7f090001 public const int abc_config_allowActionMenuItemTextWithIcon = 2131296257; // aapt resource value: 0x7f090005 public const int abc_config_closeDialogWhenTouchOutside = 2131296261; // aapt resource value: 0x7f090006 public const int abc_config_showMenuShortcutsWhenKeyboardPresent = 2131296262; static Boolean() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Boolean() { } } public partial class Color { // aapt resource value: 0x7f080059 public const int abc_background_cache_hint_selector_material_dark = 2131230809; // aapt resource value: 0x7f08005a public const int abc_background_cache_hint_selector_material_light = 2131230810; // aapt resource value: 0x7f08005b public const int abc_color_highlight_material = 2131230811; // aapt resource value: 0x7f080004 public const int abc_input_method_navigation_guard = 2131230724; // aapt resource value: 0x7f08005c public const int abc_primary_text_disable_only_material_dark = 2131230812; // aapt resource value: 0x7f08005d public const int abc_primary_text_disable_only_material_light = 2131230813; // aapt resource value: 0x7f08005e public const int abc_primary_text_material_dark = 2131230814; // aapt resource value: 0x7f08005f public const int abc_primary_text_material_light = 2131230815; // aapt resource value: 0x7f080060 public const int abc_search_url_text = 2131230816; // aapt resource value: 0x7f080005 public const int abc_search_url_text_normal = 2131230725; // aapt resource value: 0x7f080006 public const int abc_search_url_text_pressed = 2131230726; // aapt resource value: 0x7f080007 public const int abc_search_url_text_selected = 2131230727; // aapt resource value: 0x7f080061 public const int abc_secondary_text_material_dark = 2131230817; // aapt resource value: 0x7f080062 public const int abc_secondary_text_material_light = 2131230818; // aapt resource value: 0x7f080008 public const int accent_material_dark = 2131230728; // aapt resource value: 0x7f080009 public const int accent_material_light = 2131230729; // aapt resource value: 0x7f08000a public const int background_floating_material_dark = 2131230730; // aapt resource value: 0x7f08000b public const int background_floating_material_light = 2131230731; // aapt resource value: 0x7f08000c public const int background_material_dark = 2131230732; // aapt resource value: 0x7f08000d public const int background_material_light = 2131230733; // aapt resource value: 0x7f08000e public const int bright_foreground_disabled_material_dark = 2131230734; // aapt resource value: 0x7f08000f public const int bright_foreground_disabled_material_light = 2131230735; // aapt resource value: 0x7f080010 public const int bright_foreground_inverse_material_dark = 2131230736; // aapt resource value: 0x7f080011 public const int bright_foreground_inverse_material_light = 2131230737; // aapt resource value: 0x7f080012 public const int bright_foreground_material_dark = 2131230738; // aapt resource value: 0x7f080013 public const int bright_foreground_material_light = 2131230739; // aapt resource value: 0x7f080014 public const int button_material_dark = 2131230740; // aapt resource value: 0x7f080015 public const int button_material_light = 2131230741; // aapt resource value: 0x7f080000 public const int cardview_dark_background = 2131230720; // aapt resource value: 0x7f080001 public const int cardview_light_background = 2131230721; // aapt resource value: 0x7f080002 public const int cardview_shadow_end_color = 2131230722; // aapt resource value: 0x7f080003 public const int cardview_shadow_start_color = 2131230723; // aapt resource value: 0x7f080047 public const int com_facebook_blue = 2131230791; // aapt resource value: 0x7f080048 public const int com_facebook_button_background_color = 2131230792; // aapt resource value: 0x7f080049 public const int com_facebook_button_background_color_disabled = 2131230793; // aapt resource value: 0x7f08004a public const int com_facebook_button_background_color_focused = 2131230794; // aapt resource value: 0x7f08004b public const int com_facebook_button_background_color_focused_disabled = 2131230795; // aapt resource value: 0x7f08004c public const int com_facebook_button_background_color_pressed = 2131230796; // aapt resource value: 0x7f08004d public const int com_facebook_button_background_color_selected = 2131230797; // aapt resource value: 0x7f08004e public const int com_facebook_button_border_color_focused = 2131230798; // aapt resource value: 0x7f08004f public const int com_facebook_button_login_silver_background_color = 2131230799; // aapt resource value: 0x7f080050 public const int com_facebook_button_login_silver_background_color_pressed = 2131230800; // aapt resource value: 0x7f080051 public const int com_facebook_button_send_background_color = 2131230801; // aapt resource value: 0x7f080052 public const int com_facebook_button_send_background_color_pressed = 2131230802; // aapt resource value: 0x7f080063 public const int com_facebook_button_text_color = 2131230819; // aapt resource value: 0x7f080053 public const int com_facebook_device_auth_text = 2131230803; // aapt resource value: 0x7f080054 public const int com_facebook_likeboxcountview_border_color = 2131230804; // aapt resource value: 0x7f080055 public const int com_facebook_likeboxcountview_text_color = 2131230805; // aapt resource value: 0x7f080056 public const int com_facebook_likeview_text_color = 2131230806; // aapt resource value: 0x7f080057 public const int com_facebook_messenger_blue = 2131230807; // aapt resource value: 0x7f080064 public const int com_facebook_send_button_text_color = 2131230820; // aapt resource value: 0x7f080058 public const int com_facebook_share_button_text_color = 2131230808; // aapt resource value: 0x7f08003e public const int design_fab_shadow_end_color = 2131230782; // aapt resource value: 0x7f08003f public const int design_fab_shadow_mid_color = 2131230783; // aapt resource value: 0x7f080040 public const int design_fab_shadow_start_color = 2131230784; // aapt resource value: 0x7f080041 public const int design_fab_stroke_end_inner_color = 2131230785; // aapt resource value: 0x7f080042 public const int design_fab_stroke_end_outer_color = 2131230786; // aapt resource value: 0x7f080043 public const int design_fab_stroke_top_inner_color = 2131230787; // aapt resource value: 0x7f080044 public const int design_fab_stroke_top_outer_color = 2131230788; // aapt resource value: 0x7f080045 public const int design_snackbar_background_color = 2131230789; // aapt resource value: 0x7f080046 public const int design_textinput_error_color = 2131230790; // aapt resource value: 0x7f080016 public const int dim_foreground_disabled_material_dark = 2131230742; // aapt resource value: 0x7f080017 public const int dim_foreground_disabled_material_light = 2131230743; // aapt resource value: 0x7f080018 public const int dim_foreground_material_dark = 2131230744; // aapt resource value: 0x7f080019 public const int dim_foreground_material_light = 2131230745; // aapt resource value: 0x7f08001a public const int foreground_material_dark = 2131230746; // aapt resource value: 0x7f08001b public const int foreground_material_light = 2131230747; // aapt resource value: 0x7f08001c public const int highlighted_text_material_dark = 2131230748; // aapt resource value: 0x7f08001d public const int highlighted_text_material_light = 2131230749; // aapt resource value: 0x7f08001e public const int hint_foreground_material_dark = 2131230750; // aapt resource value: 0x7f08001f public const int hint_foreground_material_light = 2131230751; // aapt resource value: 0x7f080020 public const int material_blue_grey_800 = 2131230752; // aapt resource value: 0x7f080021 public const int material_blue_grey_900 = 2131230753; // aapt resource value: 0x7f080022 public const int material_blue_grey_950 = 2131230754; // aapt resource value: 0x7f080023 public const int material_deep_teal_200 = 2131230755; // aapt resource value: 0x7f080024 public const int material_deep_teal_500 = 2131230756; // aapt resource value: 0x7f080025 public const int material_grey_100 = 2131230757; // aapt resource value: 0x7f080026 public const int material_grey_300 = 2131230758; // aapt resource value: 0x7f080027 public const int material_grey_50 = 2131230759; // aapt resource value: 0x7f080028 public const int material_grey_600 = 2131230760; // aapt resource value: 0x7f080029 public const int material_grey_800 = 2131230761; // aapt resource value: 0x7f08002a public const int material_grey_850 = 2131230762; // aapt resource value: 0x7f08002b public const int material_grey_900 = 2131230763; // aapt resource value: 0x7f08002c public const int primary_dark_material_dark = 2131230764; // aapt resource value: 0x7f08002d public const int primary_dark_material_light = 2131230765; // aapt resource value: 0x7f08002e public const int primary_material_dark = 2131230766; // aapt resource value: 0x7f08002f public const int primary_material_light = 2131230767; // aapt resource value: 0x7f080030 public const int primary_text_default_material_dark = 2131230768; // aapt resource value: 0x7f080031 public const int primary_text_default_material_light = 2131230769; // aapt resource value: 0x7f080032 public const int primary_text_disabled_material_dark = 2131230770; // aapt resource value: 0x7f080033 public const int primary_text_disabled_material_light = 2131230771; // aapt resource value: 0x7f080034 public const int ripple_material_dark = 2131230772; // aapt resource value: 0x7f080035 public const int ripple_material_light = 2131230773; // aapt resource value: 0x7f080036 public const int secondary_text_default_material_dark = 2131230774; // aapt resource value: 0x7f080037 public const int secondary_text_default_material_light = 2131230775; // aapt resource value: 0x7f080038 public const int secondary_text_disabled_material_dark = 2131230776; // aapt resource value: 0x7f080039 public const int secondary_text_disabled_material_light = 2131230777; // aapt resource value: 0x7f08003a public const int switch_thumb_disabled_material_dark = 2131230778; // aapt resource value: 0x7f08003b public const int switch_thumb_disabled_material_light = 2131230779; // aapt resource value: 0x7f080065 public const int switch_thumb_material_dark = 2131230821; // aapt resource value: 0x7f080066 public const int switch_thumb_material_light = 2131230822; // aapt resource value: 0x7f08003c public const int switch_thumb_normal_material_dark = 2131230780; // aapt resource value: 0x7f08003d public const int switch_thumb_normal_material_light = 2131230781; static Color() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Color() { } } public partial class Dimension { // aapt resource value: 0x7f06000f public const int abc_action_bar_content_inset_material = 2131099663; // aapt resource value: 0x7f060005 public const int abc_action_bar_default_height_material = 2131099653; // aapt resource value: 0x7f060010 public const int abc_action_bar_default_padding_end_material = 2131099664; // aapt resource value: 0x7f060011 public const int abc_action_bar_default_padding_start_material = 2131099665; // aapt resource value: 0x7f060013 public const int abc_action_bar_icon_vertical_padding_material = 2131099667; // aapt resource value: 0x7f060014 public const int abc_action_bar_overflow_padding_end_material = 2131099668; // aapt resource value: 0x7f060015 public const int abc_action_bar_overflow_padding_start_material = 2131099669; // aapt resource value: 0x7f060006 public const int abc_action_bar_progress_bar_size = 2131099654; // aapt resource value: 0x7f060016 public const int abc_action_bar_stacked_max_height = 2131099670; // aapt resource value: 0x7f060017 public const int abc_action_bar_stacked_tab_max_width = 2131099671; // aapt resource value: 0x7f060018 public const int abc_action_bar_subtitle_bottom_margin_material = 2131099672; // aapt resource value: 0x7f060019 public const int abc_action_bar_subtitle_top_margin_material = 2131099673; // aapt resource value: 0x7f06001a public const int abc_action_button_min_height_material = 2131099674; // aapt resource value: 0x7f06001b public const int abc_action_button_min_width_material = 2131099675; // aapt resource value: 0x7f06001c public const int abc_action_button_min_width_overflow_material = 2131099676; // aapt resource value: 0x7f060004 public const int abc_alert_dialog_button_bar_height = 2131099652; // aapt resource value: 0x7f06001d public const int abc_button_inset_horizontal_material = 2131099677; // aapt resource value: 0x7f06001e public const int abc_button_inset_vertical_material = 2131099678; // aapt resource value: 0x7f06001f public const int abc_button_padding_horizontal_material = 2131099679; // aapt resource value: 0x7f060020 public const int abc_button_padding_vertical_material = 2131099680; // aapt resource value: 0x7f060009 public const int abc_config_prefDialogWidth = 2131099657; // aapt resource value: 0x7f060021 public const int abc_control_corner_material = 2131099681; // aapt resource value: 0x7f060022 public const int abc_control_inset_material = 2131099682; // aapt resource value: 0x7f060023 public const int abc_control_padding_material = 2131099683; // aapt resource value: 0x7f060024 public const int abc_dialog_list_padding_vertical_material = 2131099684; // aapt resource value: 0x7f060025 public const int abc_dialog_min_width_major = 2131099685; // aapt resource value: 0x7f060026 public const int abc_dialog_min_width_minor = 2131099686; // aapt resource value: 0x7f060027 public const int abc_dialog_padding_material = 2131099687; // aapt resource value: 0x7f060028 public const int abc_dialog_padding_top_material = 2131099688; // aapt resource value: 0x7f060029 public const int abc_disabled_alpha_material_dark = 2131099689; // aapt resource value: 0x7f06002a public const int abc_disabled_alpha_material_light = 2131099690; // aapt resource value: 0x7f06002b public const int abc_dropdownitem_icon_width = 2131099691; // aapt resource value: 0x7f06002c public const int abc_dropdownitem_text_padding_left = 2131099692; // aapt resource value: 0x7f06002d public const int abc_dropdownitem_text_padding_right = 2131099693; // aapt resource value: 0x7f06002e public const int abc_edit_text_inset_bottom_material = 2131099694; // aapt resource value: 0x7f06002f public const int abc_edit_text_inset_horizontal_material = 2131099695; // aapt resource value: 0x7f060030 public const int abc_edit_text_inset_top_material = 2131099696; // aapt resource value: 0x7f060031 public const int abc_floating_window_z = 2131099697; // aapt resource value: 0x7f060032 public const int abc_list_item_padding_horizontal_material = 2131099698; // aapt resource value: 0x7f060033 public const int abc_panel_menu_list_width = 2131099699; // aapt resource value: 0x7f060034 public const int abc_search_view_preferred_width = 2131099700; // aapt resource value: 0x7f06000a public const int abc_search_view_text_min_width = 2131099658; // aapt resource value: 0x7f060012 public const int abc_switch_padding = 2131099666; // aapt resource value: 0x7f060035 public const int abc_text_size_body_1_material = 2131099701; // aapt resource value: 0x7f060036 public const int abc_text_size_body_2_material = 2131099702; // aapt resource value: 0x7f060037 public const int abc_text_size_button_material = 2131099703; // aapt resource value: 0x7f060038 public const int abc_text_size_caption_material = 2131099704; // aapt resource value: 0x7f060039 public const int abc_text_size_display_1_material = 2131099705; // aapt resource value: 0x7f06003a public const int abc_text_size_display_2_material = 2131099706; // aapt resource value: 0x7f06003b public const int abc_text_size_display_3_material = 2131099707; // aapt resource value: 0x7f06003c public const int abc_text_size_display_4_material = 2131099708; // aapt resource value: 0x7f06003d public const int abc_text_size_headline_material = 2131099709; // aapt resource value: 0x7f06003e public const int abc_text_size_large_material = 2131099710; // aapt resource value: 0x7f06003f public const int abc_text_size_medium_material = 2131099711; // aapt resource value: 0x7f060040 public const int abc_text_size_menu_material = 2131099712; // aapt resource value: 0x7f060041 public const int abc_text_size_small_material = 2131099713; // aapt resource value: 0x7f060042 public const int abc_text_size_subhead_material = 2131099714; // aapt resource value: 0x7f060007 public const int abc_text_size_subtitle_material_toolbar = 2131099655; // aapt resource value: 0x7f060043 public const int abc_text_size_title_material = 2131099715; // aapt resource value: 0x7f060008 public const int abc_text_size_title_material_toolbar = 2131099656; // aapt resource value: 0x7f060001 public const int cardview_compat_inset_shadow = 2131099649; // aapt resource value: 0x7f060002 public const int cardview_default_elevation = 2131099650; // aapt resource value: 0x7f060003 public const int cardview_default_radius = 2131099651; // aapt resource value: 0x7f060066 public const int com_facebook_auth_dialog_corner_radius = 2131099750; // aapt resource value: 0x7f060067 public const int com_facebook_auth_dialog_corner_radius_oversized = 2131099751; // aapt resource value: 0x7f060068 public const int com_facebook_button_corner_radius = 2131099752; // aapt resource value: 0x7f060069 public const int com_facebook_likeboxcountview_border_radius = 2131099753; // aapt resource value: 0x7f06006a public const int com_facebook_likeboxcountview_border_width = 2131099754; // aapt resource value: 0x7f06006b public const int com_facebook_likeboxcountview_caret_height = 2131099755; // aapt resource value: 0x7f06006c public const int com_facebook_likeboxcountview_caret_width = 2131099756; // aapt resource value: 0x7f06006d public const int com_facebook_likeboxcountview_text_padding = 2131099757; // aapt resource value: 0x7f06006e public const int com_facebook_likeboxcountview_text_size = 2131099758; // aapt resource value: 0x7f06006f public const int com_facebook_likeview_edge_padding = 2131099759; // aapt resource value: 0x7f060070 public const int com_facebook_likeview_internal_padding = 2131099760; // aapt resource value: 0x7f060071 public const int com_facebook_likeview_text_size = 2131099761; // aapt resource value: 0x7f060072 public const int com_facebook_profilepictureview_preset_size_large = 2131099762; // aapt resource value: 0x7f060073 public const int com_facebook_profilepictureview_preset_size_normal = 2131099763; // aapt resource value: 0x7f060074 public const int com_facebook_profilepictureview_preset_size_small = 2131099764; // aapt resource value: 0x7f060075 public const int com_facebook_share_button_compound_drawable_padding = 2131099765; // aapt resource value: 0x7f060076 public const int com_facebook_share_button_padding_bottom = 2131099766; // aapt resource value: 0x7f060077 public const int com_facebook_share_button_padding_left = 2131099767; // aapt resource value: 0x7f060078 public const int com_facebook_share_button_padding_right = 2131099768; // aapt resource value: 0x7f060079 public const int com_facebook_share_button_padding_top = 2131099769; // aapt resource value: 0x7f06007a public const int com_facebook_share_button_text_size = 2131099770; // aapt resource value: 0x7f06007b public const int com_facebook_tooltip_horizontal_padding = 2131099771; // aapt resource value: 0x7f060054 public const int design_appbar_elevation = 2131099732; // aapt resource value: 0x7f060055 public const int design_fab_border_width = 2131099733; // aapt resource value: 0x7f060056 public const int design_fab_content_size = 2131099734; // aapt resource value: 0x7f060057 public const int design_fab_elevation = 2131099735; // aapt resource value: 0x7f060058 public const int design_fab_size_mini = 2131099736; // aapt resource value: 0x7f060059 public const int design_fab_size_normal = 2131099737; // aapt resource value: 0x7f06005a public const int design_fab_translation_z_pressed = 2131099738; // aapt resource value: 0x7f06005b public const int design_navigation_elevation = 2131099739; // aapt resource value: 0x7f06005c public const int design_navigation_icon_padding = 2131099740; // aapt resource value: 0x7f06005d public const int design_navigation_icon_size = 2131099741; // aapt resource value: 0x7f06005e public const int design_navigation_max_width = 2131099742; // aapt resource value: 0x7f06005f public const int design_navigation_padding_bottom = 2131099743; // aapt resource value: 0x7f060053 public const int design_navigation_padding_top_default = 2131099731; // aapt resource value: 0x7f060060 public const int design_navigation_separator_vertical_padding = 2131099744; // aapt resource value: 0x7f06004c public const int design_snackbar_action_inline_max_width = 2131099724; // aapt resource value: 0x7f06004d public const int design_snackbar_background_corner_radius = 2131099725; // aapt resource value: 0x7f060061 public const int design_snackbar_elevation = 2131099745; // aapt resource value: 0x7f06004e public const int design_snackbar_extra_spacing_horizontal = 2131099726; // aapt resource value: 0x7f06004f public const int design_snackbar_max_width = 2131099727; // aapt resource value: 0x7f060050 public const int design_snackbar_min_width = 2131099728; // aapt resource value: 0x7f060062 public const int design_snackbar_padding_horizontal = 2131099746; // aapt resource value: 0x7f060063 public const int design_snackbar_padding_vertical = 2131099747; // aapt resource value: 0x7f060051 public const int design_snackbar_padding_vertical_2lines = 2131099729; // aapt resource value: 0x7f060064 public const int design_snackbar_text_size = 2131099748; // aapt resource value: 0x7f060065 public const int design_tab_max_width = 2131099749; // aapt resource value: 0x7f060052 public const int design_tab_min_width = 2131099730; // aapt resource value: 0x7f06000b public const int dialog_fixed_height_major = 2131099659; // aapt resource value: 0x7f06000c public const int dialog_fixed_height_minor = 2131099660; // aapt resource value: 0x7f06000d public const int dialog_fixed_width_major = 2131099661; // aapt resource value: 0x7f06000e public const int dialog_fixed_width_minor = 2131099662; // aapt resource value: 0x7f060044 public const int disabled_alpha_material_dark = 2131099716; // aapt resource value: 0x7f060045 public const int disabled_alpha_material_light = 2131099717; // aapt resource value: 0x7f060046 public const int highlight_alpha_material_colored = 2131099718; // aapt resource value: 0x7f060047 public const int highlight_alpha_material_dark = 2131099719; // aapt resource value: 0x7f060048 public const int highlight_alpha_material_light = 2131099720; // aapt resource value: 0x7f060000 public const int mr_media_route_controller_art_max_height = 2131099648; // aapt resource value: 0x7f060049 public const int notification_large_icon_height = 2131099721; // aapt resource value: 0x7f06004a public const int notification_large_icon_width = 2131099722; // aapt resource value: 0x7f06004b public const int notification_subtext_size = 2131099723; static Dimension() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Dimension() { } } public partial class Drawable { // aapt resource value: 0x7f020000 public const int abc_ab_share_pack_mtrl_alpha = 2130837504; // aapt resource value: 0x7f020001 public const int abc_action_bar_item_background_material = 2130837505; // aapt resource value: 0x7f020002 public const int abc_btn_borderless_material = 2130837506; // aapt resource value: 0x7f020003 public const int abc_btn_check_material = 2130837507; // aapt resource value: 0x7f020004 public const int abc_btn_check_to_on_mtrl_000 = 2130837508; // aapt resource value: 0x7f020005 public const int abc_btn_check_to_on_mtrl_015 = 2130837509; // aapt resource value: 0x7f020006 public const int abc_btn_colored_material = 2130837510; // aapt resource value: 0x7f020007 public const int abc_btn_default_mtrl_shape = 2130837511; // aapt resource value: 0x7f020008 public const int abc_btn_radio_material = 2130837512; // aapt resource value: 0x7f020009 public const int abc_btn_radio_to_on_mtrl_000 = 2130837513; // aapt resource value: 0x7f02000a public const int abc_btn_radio_to_on_mtrl_015 = 2130837514; // aapt resource value: 0x7f02000b public const int abc_btn_rating_star_off_mtrl_alpha = 2130837515; // aapt resource value: 0x7f02000c public const int abc_btn_rating_star_on_mtrl_alpha = 2130837516; // aapt resource value: 0x7f02000d public const int abc_btn_switch_to_on_mtrl_00001 = 2130837517; // aapt resource value: 0x7f02000e public const int abc_btn_switch_to_on_mtrl_00012 = 2130837518; // aapt resource value: 0x7f02000f public const int abc_cab_background_internal_bg = 2130837519; // aapt resource value: 0x7f020010 public const int abc_cab_background_top_material = 2130837520; // aapt resource value: 0x7f020011 public const int abc_cab_background_top_mtrl_alpha = 2130837521; // aapt resource value: 0x7f020012 public const int abc_control_background_material = 2130837522; // aapt resource value: 0x7f020013 public const int abc_dialog_material_background_dark = 2130837523; // aapt resource value: 0x7f020014 public const int abc_dialog_material_background_light = 2130837524; // aapt resource value: 0x7f020015 public const int abc_edit_text_material = 2130837525; // aapt resource value: 0x7f020016 public const int abc_ic_ab_back_mtrl_am_alpha = 2130837526; // aapt resource value: 0x7f020017 public const int abc_ic_clear_mtrl_alpha = 2130837527; // aapt resource value: 0x7f020018 public const int abc_ic_commit_search_api_mtrl_alpha = 2130837528; // aapt resource value: 0x7f020019 public const int abc_ic_go_search_api_mtrl_alpha = 2130837529; // aapt resource value: 0x7f02001a public const int abc_ic_menu_copy_mtrl_am_alpha = 2130837530; // aapt resource value: 0x7f02001b public const int abc_ic_menu_cut_mtrl_alpha = 2130837531; // aapt resource value: 0x7f02001c public const int abc_ic_menu_moreoverflow_mtrl_alpha = 2130837532; // aapt resource value: 0x7f02001d public const int abc_ic_menu_paste_mtrl_am_alpha = 2130837533; // aapt resource value: 0x7f02001e public const int abc_ic_menu_selectall_mtrl_alpha = 2130837534; // aapt resource value: 0x7f02001f public const int abc_ic_menu_share_mtrl_alpha = 2130837535; // aapt resource value: 0x7f020020 public const int abc_ic_search_api_mtrl_alpha = 2130837536; // aapt resource value: 0x7f020021 public const int abc_ic_voice_search_api_mtrl_alpha = 2130837537; // aapt resource value: 0x7f020022 public const int abc_item_background_holo_dark = 2130837538; // aapt resource value: 0x7f020023 public const int abc_item_background_holo_light = 2130837539; // aapt resource value: 0x7f020024 public const int abc_list_divider_mtrl_alpha = 2130837540; // aapt resource value: 0x7f020025 public const int abc_list_focused_holo = 2130837541; // aapt resource value: 0x7f020026 public const int abc_list_longpressed_holo = 2130837542; // aapt resource value: 0x7f020027 public const int abc_list_pressed_holo_dark = 2130837543; // aapt resource value: 0x7f020028 public const int abc_list_pressed_holo_light = 2130837544; // aapt resource value: 0x7f020029 public const int abc_list_selector_background_transition_holo_dark = 2130837545; // aapt resource value: 0x7f02002a public const int abc_list_selector_background_transition_holo_light = 2130837546; // aapt resource value: 0x7f02002b public const int abc_list_selector_disabled_holo_dark = 2130837547; // aapt resource value: 0x7f02002c public const int abc_list_selector_disabled_holo_light = 2130837548; // aapt resource value: 0x7f02002d public const int abc_list_selector_holo_dark = 2130837549; // aapt resource value: 0x7f02002e public const int abc_list_selector_holo_light = 2130837550; // aapt resource value: 0x7f02002f public const int abc_menu_hardkey_panel_mtrl_mult = 2130837551; // aapt resource value: 0x7f020030 public const int abc_popup_background_mtrl_mult = 2130837552; // aapt resource value: 0x7f020031 public const int abc_ratingbar_full_material = 2130837553; // aapt resource value: 0x7f020032 public const int abc_spinner_mtrl_am_alpha = 2130837554; // aapt resource value: 0x7f020033 public const int abc_spinner_textfield_background_material = 2130837555; // aapt resource value: 0x7f020034 public const int abc_switch_thumb_material = 2130837556; // aapt resource value: 0x7f020035 public const int abc_switch_track_mtrl_alpha = 2130837557; // aapt resource value: 0x7f020036 public const int abc_tab_indicator_material = 2130837558; // aapt resource value: 0x7f020037 public const int abc_tab_indicator_mtrl_alpha = 2130837559; // aapt resource value: 0x7f020038 public const int abc_text_cursor_material = 2130837560; // aapt resource value: 0x7f020039 public const int abc_textfield_activated_mtrl_alpha = 2130837561; // aapt resource value: 0x7f02003a public const int abc_textfield_default_mtrl_alpha = 2130837562; // aapt resource value: 0x7f02003b public const int abc_textfield_search_activated_mtrl_alpha = 2130837563; // aapt resource value: 0x7f02003c public const int abc_textfield_search_default_mtrl_alpha = 2130837564; // aapt resource value: 0x7f02003d public const int abc_textfield_search_material = 2130837565; // aapt resource value: 0x7f02003e public const int com_facebook_auth_dialog_background = 2130837566; // aapt resource value: 0x7f02003f public const int com_facebook_auth_dialog_cancel_background = 2130837567; // aapt resource value: 0x7f020040 public const int com_facebook_auth_dialog_header_background = 2130837568; // aapt resource value: 0x7f020041 public const int com_facebook_button_background = 2130837569; // aapt resource value: 0x7f020042 public const int com_facebook_button_icon = 2130837570; // aapt resource value: 0x7f020043 public const int com_facebook_button_icon_blue = 2130837571; // aapt resource value: 0x7f020044 public const int com_facebook_button_icon_white = 2130837572; // aapt resource value: 0x7f020045 public const int com_facebook_button_like_background = 2130837573; // aapt resource value: 0x7f020046 public const int com_facebook_button_like_icon_selected = 2130837574; // aapt resource value: 0x7f020047 public const int com_facebook_button_login_silver_background = 2130837575; // aapt resource value: 0x7f020048 public const int com_facebook_button_send_background = 2130837576; // aapt resource value: 0x7f020049 public const int com_facebook_button_send_icon_blue = 2130837577; // aapt resource value: 0x7f02004a public const int com_facebook_button_send_icon_white = 2130837578; // aapt resource value: 0x7f02004b public const int com_facebook_close = 2130837579; // aapt resource value: 0x7f02004c public const int com_facebook_favicon_white = 2130837580; // aapt resource value: 0x7f02004d public const int com_facebook_profile_picture_blank_portrait = 2130837581; // aapt resource value: 0x7f02004e public const int com_facebook_profile_picture_blank_square = 2130837582; // aapt resource value: 0x7f02004f public const int com_facebook_send_button_icon = 2130837583; // aapt resource value: 0x7f020050 public const int com_facebook_tooltip_black_background = 2130837584; // aapt resource value: 0x7f020051 public const int com_facebook_tooltip_black_bottomnub = 2130837585; // aapt resource value: 0x7f020052 public const int com_facebook_tooltip_black_topnub = 2130837586; // aapt resource value: 0x7f020053 public const int com_facebook_tooltip_black_xout = 2130837587; // aapt resource value: 0x7f020054 public const int com_facebook_tooltip_blue_background = 2130837588; // aapt resource value: 0x7f020055 public const int com_facebook_tooltip_blue_bottomnub = 2130837589; // aapt resource value: 0x7f020056 public const int com_facebook_tooltip_blue_topnub = 2130837590; // aapt resource value: 0x7f020057 public const int com_facebook_tooltip_blue_xout = 2130837591; // aapt resource value: 0x7f020058 public const int design_fab_background = 2130837592; // aapt resource value: 0x7f020059 public const int design_snackbar_background = 2130837593; // aapt resource value: 0x7f02005a public const int ic_cast_dark = 2130837594; // aapt resource value: 0x7f02005b public const int ic_cast_disabled_light = 2130837595; // aapt resource value: 0x7f02005c public const int ic_cast_light = 2130837596; // aapt resource value: 0x7f02005d public const int ic_cast_off_light = 2130837597; // aapt resource value: 0x7f02005e public const int ic_cast_on_0_light = 2130837598; // aapt resource value: 0x7f02005f public const int ic_cast_on_1_light = 2130837599; // aapt resource value: 0x7f020060 public const int ic_cast_on_2_light = 2130837600; // aapt resource value: 0x7f020061 public const int ic_cast_on_light = 2130837601; // aapt resource value: 0x7f020062 public const int ic_media_pause = 2130837602; // aapt resource value: 0x7f020063 public const int ic_media_play = 2130837603; // aapt resource value: 0x7f020064 public const int ic_media_route_disabled_mono_dark = 2130837604; // aapt resource value: 0x7f020065 public const int ic_media_route_off_mono_dark = 2130837605; // aapt resource value: 0x7f020066 public const int ic_media_route_on_0_mono_dark = 2130837606; // aapt resource value: 0x7f020067 public const int ic_media_route_on_1_mono_dark = 2130837607; // aapt resource value: 0x7f020068 public const int ic_media_route_on_2_mono_dark = 2130837608; // aapt resource value: 0x7f020069 public const int ic_media_route_on_mono_dark = 2130837609; // aapt resource value: 0x7f02006a public const int ic_pause_dark = 2130837610; // aapt resource value: 0x7f02006b public const int ic_pause_light = 2130837611; // aapt resource value: 0x7f02006c public const int ic_play_dark = 2130837612; // aapt resource value: 0x7f02006d public const int ic_play_light = 2130837613; // aapt resource value: 0x7f02006e public const int ic_setting_dark = 2130837614; // aapt resource value: 0x7f02006f public const int ic_setting_light = 2130837615; // aapt resource value: 0x7f020070 public const int Icon = 2130837616; // aapt resource value: 0x7f020071 public const int like = 2130837617; // aapt resource value: 0x7f020072 public const int link = 2130837618; // aapt resource value: 0x7f020073 public const int logo = 2130837619; // aapt resource value: 0x7f020074 public const int logotext = 2130837620; // aapt resource value: 0x7f020075 public const int messenger_bubble_large_blue = 2130837621; // aapt resource value: 0x7f020076 public const int messenger_bubble_large_white = 2130837622; // aapt resource value: 0x7f020077 public const int messenger_bubble_small_blue = 2130837623; // aapt resource value: 0x7f020078 public const int messenger_bubble_small_white = 2130837624; // aapt resource value: 0x7f020079 public const int messenger_button_blue_bg_round = 2130837625; // aapt resource value: 0x7f02007a public const int messenger_button_blue_bg_selector = 2130837626; // aapt resource value: 0x7f02007b public const int messenger_button_send_round_shadow = 2130837627; // aapt resource value: 0x7f02007c public const int messenger_button_white_bg_round = 2130837628; // aapt resource value: 0x7f02007d public const int messenger_button_white_bg_selector = 2130837629; // aapt resource value: 0x7f02007e public const int mr_ic_cast_dark = 2130837630; // aapt resource value: 0x7f02007f public const int mr_ic_cast_light = 2130837631; // aapt resource value: 0x7f020080 public const int mr_ic_media_route_connecting_mono_dark = 2130837632; // aapt resource value: 0x7f020081 public const int mr_ic_media_route_connecting_mono_light = 2130837633; // aapt resource value: 0x7f020082 public const int mr_ic_media_route_mono_dark = 2130837634; // aapt resource value: 0x7f020083 public const int mr_ic_media_route_mono_light = 2130837635; // aapt resource value: 0x7f020084 public const int mr_ic_pause_dark = 2130837636; // aapt resource value: 0x7f020085 public const int mr_ic_pause_light = 2130837637; // aapt resource value: 0x7f020086 public const int mr_ic_play_dark = 2130837638; // aapt resource value: 0x7f020087 public const int mr_ic_play_light = 2130837639; // aapt resource value: 0x7f020088 public const int mr_ic_settings_dark = 2130837640; // aapt resource value: 0x7f020089 public const int mr_ic_settings_light = 2130837641; // aapt resource value: 0x7f02008f public const int notification_template_icon_bg = 2130837647; // aapt resource value: 0x7f02008a public const int plus = 2130837642; // aapt resource value: 0x7f02008b public const int save = 2130837643; // aapt resource value: 0x7f02008c public const int settings = 2130837644; // aapt resource value: 0x7f02008d public const int sync = 2130837645; // aapt resource value: 0x7f02008e public const int upload = 2130837646; static Drawable() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Drawable() { } } public partial class Id { // aapt resource value: 0x7f0b008d public const int action0 = 2131427469; // aapt resource value: 0x7f0b0061 public const int action_bar = 2131427425; // aapt resource value: 0x7f0b0000 public const int action_bar_activity_content = 2131427328; // aapt resource value: 0x7f0b0060 public const int action_bar_container = 2131427424; // aapt resource value: 0x7f0b005c public const int action_bar_root = 2131427420; // aapt resource value: 0x7f0b0001 public const int action_bar_spinner = 2131427329; // aapt resource value: 0x7f0b0045 public const int action_bar_subtitle = 2131427397; // aapt resource value: 0x7f0b0044 public const int action_bar_title = 2131427396; // aapt resource value: 0x7f0b0062 public const int action_context_bar = 2131427426; // aapt resource value: 0x7f0b0091 public const int action_divider = 2131427473; // aapt resource value: 0x7f0b0002 public const int action_menu_divider = 2131427330; // aapt resource value: 0x7f0b0003 public const int action_menu_presenter = 2131427331; // aapt resource value: 0x7f0b005e public const int action_mode_bar = 2131427422; // aapt resource value: 0x7f0b005d public const int action_mode_bar_stub = 2131427421; // aapt resource value: 0x7f0b0046 public const int action_mode_close_button = 2131427398; // aapt resource value: 0x7f0b0047 public const int activity_chooser_view_content = 2131427399; // aapt resource value: 0x7f0b0051 public const int alertTitle = 2131427409; // aapt resource value: 0x7f0b001c public const int always = 2131427356; // aapt resource value: 0x7f0b0085 public const int art = 2131427461; // aapt resource value: 0x7f0b003f public const int automatic = 2131427391; // aapt resource value: 0x7f0b0019 public const int beginning = 2131427353; // aapt resource value: 0x7f0b0028 public const int bottom = 2131427368; // aapt resource value: 0x7f0b003b public const int box_count = 2131427387; // aapt resource value: 0x7f0b003c public const int button = 2131427388; // aapt resource value: 0x7f0b0057 public const int buttonPanel = 2131427415; // aapt resource value: 0x7f0b008a public const int buttons = 2131427466; // aapt resource value: 0x7f0b008e public const int cancel_action = 2131427470; // aapt resource value: 0x7f0b0075 public const int cancel_button = 2131427445; // aapt resource value: 0x7f0b0029 public const int center = 2131427369; // aapt resource value: 0x7f0b002a public const int center_horizontal = 2131427370; // aapt resource value: 0x7f0b002b public const int center_vertical = 2131427371; // aapt resource value: 0x7f0b0059 public const int checkbox = 2131427417; // aapt resource value: 0x7f0b0094 public const int chronometer = 2131427476; // aapt resource value: 0x7f0b0031 public const int clip_horizontal = 2131427377; // aapt resource value: 0x7f0b0032 public const int clip_vertical = 2131427378; // aapt resource value: 0x7f0b001d public const int collapseActionView = 2131427357; // aapt resource value: 0x7f0b0077 public const int com_facebook_body_frame = 2131427447; // aapt resource value: 0x7f0b0079 public const int com_facebook_button_xout = 2131427449; // aapt resource value: 0x7f0b0072 public const int com_facebook_device_auth_instructions = 2131427442; // aapt resource value: 0x7f0b0071 public const int com_facebook_device_dialog_title = 2131427441; // aapt resource value: 0x7f0b0070 public const int com_facebook_fragment_container = 2131427440; // aapt resource value: 0x7f0b0076 public const int com_facebook_login_activity_progress_bar = 2131427446; // aapt resource value: 0x7f0b007b public const int com_facebook_tooltip_bubble_view_bottom_pointer = 2131427451; // aapt resource value: 0x7f0b007a public const int com_facebook_tooltip_bubble_view_text_body = 2131427450; // aapt resource value: 0x7f0b0078 public const int com_facebook_tooltip_bubble_view_top_pointer = 2131427448; // aapt resource value: 0x7f0b0073 public const int confirmation_code = 2131427443; // aapt resource value: 0x7f0b0052 public const int contentPanel = 2131427410; // aapt resource value: 0x7f0b0056 public const int custom = 2131427414; // aapt resource value: 0x7f0b0055 public const int customPanel = 2131427413; // aapt resource value: 0x7f0b005f public const int decor_content_parent = 2131427423; // aapt resource value: 0x7f0b004a public const int default_activity_button = 2131427402; // aapt resource value: 0x7f0b0084 public const int default_control_frame = 2131427460; // aapt resource value: 0x7f0b000d public const int disableHome = 2131427341; // aapt resource value: 0x7f0b008b public const int disconnect = 2131427467; // aapt resource value: 0x7f0b0040 public const int display_always = 2131427392; // aapt resource value: 0x7f0b0063 public const int edit_query = 2131427427; // aapt resource value: 0x7f0b001a public const int end = 2131427354; // aapt resource value: 0x7f0b0099 public const int end_padder = 2131427481; // aapt resource value: 0x7f0b0022 public const int enterAlways = 2131427362; // aapt resource value: 0x7f0b0023 public const int enterAlwaysCollapsed = 2131427363; // aapt resource value: 0x7f0b0024 public const int exitUntilCollapsed = 2131427364; // aapt resource value: 0x7f0b0048 public const int expand_activities_button = 2131427400; // aapt resource value: 0x7f0b0058 public const int expanded_menu = 2131427416; // aapt resource value: 0x7f0b0033 public const int fill = 2131427379; // aapt resource value: 0x7f0b0034 public const int fill_horizontal = 2131427380; // aapt resource value: 0x7f0b002c public const int fill_vertical = 2131427372; // aapt resource value: 0x7f0b0036 public const int @fixed = 2131427382; // aapt resource value: 0x7f0b0004 public const int home = 2131427332; // aapt resource value: 0x7f0b000e public const int homeAsUp = 2131427342; // aapt resource value: 0x7f0b004c public const int icon = 2131427404; // aapt resource value: 0x7f0b001e public const int ifRoom = 2131427358; // aapt resource value: 0x7f0b0049 public const int image = 2131427401; // aapt resource value: 0x7f0b0098 public const int info = 2131427480; // aapt resource value: 0x7f0b003e public const int inline = 2131427390; // aapt resource value: 0x7f0b0042 public const int large = 2131427394; // aapt resource value: 0x7f0b002d public const int left = 2131427373; // aapt resource value: 0x7f0b0092 public const int line1 = 2131427474; // aapt resource value: 0x7f0b0096 public const int line3 = 2131427478; // aapt resource value: 0x7f0b000a public const int listMode = 2131427338; // aapt resource value: 0x7f0b004b public const int list_item = 2131427403; // aapt resource value: 0x7f0b0090 public const int media_actions = 2131427472; // aapt resource value: 0x7f0b0083 public const int media_route_control_frame = 2131427459; // aapt resource value: 0x7f0b007f public const int media_route_list = 2131427455; // aapt resource value: 0x7f0b0088 public const int media_route_volume_layout = 2131427464; // aapt resource value: 0x7f0b0089 public const int media_route_volume_slider = 2131427465; // aapt resource value: 0x7f0b007e public const int messenger_send_button = 2131427454; // aapt resource value: 0x7f0b001b public const int middle = 2131427355; // aapt resource value: 0x7f0b0035 public const int mini = 2131427381; // aapt resource value: 0x7f0b0014 public const int multiply = 2131427348; // aapt resource value: 0x7f0b001f public const int never = 2131427359; // aapt resource value: 0x7f0b0041 public const int never_display = 2131427393; // aapt resource value: 0x7f0b000f public const int none = 2131427343; // aapt resource value: 0x7f0b000b public const int normal = 2131427339; // aapt resource value: 0x7f0b0038 public const int open_graph = 2131427384; // aapt resource value: 0x7f0b0039 public const int page = 2131427385; // aapt resource value: 0x7f0b0026 public const int parallax = 2131427366; // aapt resource value: 0x7f0b004e public const int parentPanel = 2131427406; // aapt resource value: 0x7f0b0027 public const int pin = 2131427367; // aapt resource value: 0x7f0b0086 public const int play_pause = 2131427462; // aapt resource value: 0x7f0b0074 public const int progress_bar = 2131427444; // aapt resource value: 0x7f0b0005 public const int progress_circular = 2131427333; // aapt resource value: 0x7f0b0006 public const int progress_horizontal = 2131427334; // aapt resource value: 0x7f0b005b public const int radio = 2131427419; // aapt resource value: 0x7f0b002e public const int right = 2131427374; // aapt resource value: 0x7f0b0081 public const int route_name = 2131427457; // aapt resource value: 0x7f0b0015 public const int screen = 2131427349; // aapt resource value: 0x7f0b0025 public const int scroll = 2131427365; // aapt resource value: 0x7f0b0053 public const int scrollView = 2131427411; // aapt resource value: 0x7f0b0037 public const int scrollable = 2131427383; // aapt resource value: 0x7f0b0065 public const int search_badge = 2131427429; // aapt resource value: 0x7f0b0064 public const int search_bar = 2131427428; // aapt resource value: 0x7f0b0066 public const int search_button = 2131427430; // aapt resource value: 0x7f0b006b public const int search_close_btn = 2131427435; // aapt resource value: 0x7f0b0067 public const int search_edit_frame = 2131427431; // aapt resource value: 0x7f0b006d public const int search_go_btn = 2131427437; // aapt resource value: 0x7f0b0068 public const int search_mag_icon = 2131427432; // aapt resource value: 0x7f0b0069 public const int search_plate = 2131427433; // aapt resource value: 0x7f0b006a public const int search_src_text = 2131427434; // aapt resource value: 0x7f0b006e public const int search_voice_btn = 2131427438; // aapt resource value: 0x7f0b006f public const int select_dialog_listview = 2131427439; // aapt resource value: 0x7f0b0082 public const int settings = 2131427458; // aapt resource value: 0x7f0b005a public const int shortcut = 2131427418; // aapt resource value: 0x7f0b0010 public const int showCustom = 2131427344; // aapt resource value: 0x7f0b0011 public const int showHome = 2131427345; // aapt resource value: 0x7f0b0012 public const int showTitle = 2131427346; // aapt resource value: 0x7f0b0043 public const int small = 2131427395; // aapt resource value: 0x7f0b007d public const int snackbar_action = 2131427453; // aapt resource value: 0x7f0b007c public const int snackbar_text = 2131427452; // aapt resource value: 0x7f0b0007 public const int split_action_bar = 2131427335; // aapt resource value: 0x7f0b0016 public const int src_atop = 2131427350; // aapt resource value: 0x7f0b0017 public const int src_in = 2131427351; // aapt resource value: 0x7f0b0018 public const int src_over = 2131427352; // aapt resource value: 0x7f0b003d public const int standard = 2131427389; // aapt resource value: 0x7f0b002f public const int start = 2131427375; // aapt resource value: 0x7f0b008f public const int status_bar_latest_event_content = 2131427471; // aapt resource value: 0x7f0b008c public const int stop = 2131427468; // aapt resource value: 0x7f0b006c public const int submit_area = 2131427436; // aapt resource value: 0x7f0b0087 public const int subtitle = 2131427463; // aapt resource value: 0x7f0b000c public const int tabMode = 2131427340; // aapt resource value: 0x7f0b0097 public const int text = 2131427479; // aapt resource value: 0x7f0b0095 public const int text2 = 2131427477; // aapt resource value: 0x7f0b0054 public const int textSpacerNoButtons = 2131427412; // aapt resource value: 0x7f0b0093 public const int time = 2131427475; // aapt resource value: 0x7f0b004d public const int title = 2131427405; // aapt resource value: 0x7f0b0080 public const int title_bar = 2131427456; // aapt resource value: 0x7f0b0050 public const int title_template = 2131427408; // aapt resource value: 0x7f0b0030 public const int top = 2131427376; // aapt resource value: 0x7f0b004f public const int topPanel = 2131427407; // aapt resource value: 0x7f0b003a public const int unknown = 2131427386; // aapt resource value: 0x7f0b0008 public const int up = 2131427336; // aapt resource value: 0x7f0b0013 public const int useLogo = 2131427347; // aapt resource value: 0x7f0b0009 public const int view_offset_helper = 2131427337; // aapt resource value: 0x7f0b0020 public const int withText = 2131427360; // aapt resource value: 0x7f0b0021 public const int wrap_content = 2131427361; static Id() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Id() { } } public partial class Integer { // aapt resource value: 0x7f0a0001 public const int abc_config_activityDefaultDur = 2131361793; // aapt resource value: 0x7f0a0002 public const int abc_config_activityShortDur = 2131361794; // aapt resource value: 0x7f0a0000 public const int abc_max_action_buttons = 2131361792; // aapt resource value: 0x7f0a0003 public const int cancel_button_image_alpha = 2131361795; // aapt resource value: 0x7f0a0005 public const int design_snackbar_text_max_lines = 2131361797; // aapt resource value: 0x7f0a0004 public const int status_bar_notification_info_maxnum = 2131361796; static Integer() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Integer() { } } public partial class Layout { // aapt resource value: 0x7f030000 public const int abc_action_bar_title_item = 2130903040; // aapt resource value: 0x7f030001 public const int abc_action_bar_up_container = 2130903041; // aapt resource value: 0x7f030002 public const int abc_action_bar_view_list_nav_layout = 2130903042; // aapt resource value: 0x7f030003 public const int abc_action_menu_item_layout = 2130903043; // aapt resource value: 0x7f030004 public const int abc_action_menu_layout = 2130903044; // aapt resource value: 0x7f030005 public const int abc_action_mode_bar = 2130903045; // aapt resource value: 0x7f030006 public const int abc_action_mode_close_item_material = 2130903046; // aapt resource value: 0x7f030007 public const int abc_activity_chooser_view = 2130903047; // aapt resource value: 0x7f030008 public const int abc_activity_chooser_view_list_item = 2130903048; // aapt resource value: 0x7f030009 public const int abc_alert_dialog_material = 2130903049; // aapt resource value: 0x7f03000a public const int abc_dialog_title_material = 2130903050; // aapt resource value: 0x7f03000b public const int abc_expanded_menu_layout = 2130903051; // aapt resource value: 0x7f03000c public const int abc_list_menu_item_checkbox = 2130903052; // aapt resource value: 0x7f03000d public const int abc_list_menu_item_icon = 2130903053; // aapt resource value: 0x7f03000e public const int abc_list_menu_item_layout = 2130903054; // aapt resource value: 0x7f03000f public const int abc_list_menu_item_radio = 2130903055; // aapt resource value: 0x7f030010 public const int abc_popup_menu_item_layout = 2130903056; // aapt resource value: 0x7f030011 public const int abc_screen_content_include = 2130903057; // aapt resource value: 0x7f030012 public const int abc_screen_simple = 2130903058; // aapt resource value: 0x7f030013 public const int abc_screen_simple_overlay_action_mode = 2130903059; // aapt resource value: 0x7f030014 public const int abc_screen_toolbar = 2130903060; // aapt resource value: 0x7f030015 public const int abc_search_dropdown_item_icons_2line = 2130903061; // aapt resource value: 0x7f030016 public const int abc_search_view = 2130903062; // aapt resource value: 0x7f030017 public const int abc_select_dialog_material = 2130903063; // aapt resource value: 0x7f030018 public const int com_facebook_activity_layout = 2130903064; // aapt resource value: 0x7f030019 public const int com_facebook_device_auth_dialog_fragment = 2130903065; // aapt resource value: 0x7f03001a public const int com_facebook_login_fragment = 2130903066; // aapt resource value: 0x7f03001b public const int com_facebook_tooltip_bubble = 2130903067; // aapt resource value: 0x7f03001c public const int design_layout_snackbar = 2130903068; // aapt resource value: 0x7f03001d public const int design_layout_snackbar_include = 2130903069; // aapt resource value: 0x7f03001e public const int design_layout_tab_icon = 2130903070; // aapt resource value: 0x7f03001f public const int design_layout_tab_text = 2130903071; // aapt resource value: 0x7f030020 public const int design_navigation_item = 2130903072; // aapt resource value: 0x7f030021 public const int design_navigation_item_header = 2130903073; // aapt resource value: 0x7f030022 public const int design_navigation_item_separator = 2130903074; // aapt resource value: 0x7f030023 public const int design_navigation_item_subheader = 2130903075; // aapt resource value: 0x7f030024 public const int design_navigation_menu = 2130903076; // aapt resource value: 0x7f030025 public const int messenger_button_send_blue_large = 2130903077; // aapt resource value: 0x7f030026 public const int messenger_button_send_blue_round = 2130903078; // aapt resource value: 0x7f030027 public const int messenger_button_send_blue_small = 2130903079; // aapt resource value: 0x7f030028 public const int messenger_button_send_white_large = 2130903080; // aapt resource value: 0x7f030029 public const int messenger_button_send_white_round = 2130903081; // aapt resource value: 0x7f03002a public const int messenger_button_send_white_small = 2130903082; // aapt resource value: 0x7f03002b public const int mr_media_route_chooser_dialog = 2130903083; // aapt resource value: 0x7f03002c public const int mr_media_route_controller_material_dialog_b = 2130903084; // aapt resource value: 0x7f03002d public const int mr_media_route_list_item = 2130903085; // aapt resource value: 0x7f03002e public const int notification_media_action = 2130903086; // aapt resource value: 0x7f03002f public const int notification_media_cancel_action = 2130903087; // aapt resource value: 0x7f030030 public const int notification_template_big_media = 2130903088; // aapt resource value: 0x7f030031 public const int notification_template_big_media_narrow = 2130903089; // aapt resource value: 0x7f030032 public const int notification_template_lines = 2130903090; // aapt resource value: 0x7f030033 public const int notification_template_media = 2130903091; // aapt resource value: 0x7f030034 public const int notification_template_part_chronometer = 2130903092; // aapt resource value: 0x7f030035 public const int notification_template_part_time = 2130903093; // aapt resource value: 0x7f030036 public const int select_dialog_item_material = 2130903094; // aapt resource value: 0x7f030037 public const int select_dialog_multichoice_material = 2130903095; // aapt resource value: 0x7f030038 public const int select_dialog_singlechoice_material = 2130903096; // aapt resource value: 0x7f030039 public const int support_simple_spinner_dropdown_item = 2130903097; static Layout() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Layout() { } } public partial class String { // aapt resource value: 0x7f050031 public const int ApplicationName = 2131034161; // aapt resource value: 0x7f050030 public const int Hello = 2131034160; // aapt resource value: 0x7f05000b public const int abc_action_bar_home_description = 2131034123; // aapt resource value: 0x7f05000c public const int abc_action_bar_home_description_format = 2131034124; // aapt resource value: 0x7f05000d public const int abc_action_bar_home_subtitle_description_format = 2131034125; // aapt resource value: 0x7f05000e public const int abc_action_bar_up_description = 2131034126; // aapt resource value: 0x7f05000f public const int abc_action_menu_overflow_description = 2131034127; // aapt resource value: 0x7f050010 public const int abc_action_mode_done = 2131034128; // aapt resource value: 0x7f050011 public const int abc_activity_chooser_view_see_all = 2131034129; // aapt resource value: 0x7f050012 public const int abc_activitychooserview_choose_application = 2131034130; // aapt resource value: 0x7f050013 public const int abc_search_hint = 2131034131; // aapt resource value: 0x7f050014 public const int abc_searchview_description_clear = 2131034132; // aapt resource value: 0x7f050015 public const int abc_searchview_description_query = 2131034133; // aapt resource value: 0x7f050016 public const int abc_searchview_description_search = 2131034134; // aapt resource value: 0x7f050017 public const int abc_searchview_description_submit = 2131034135; // aapt resource value: 0x7f050018 public const int abc_searchview_description_voice = 2131034136; // aapt resource value: 0x7f050019 public const int abc_shareactionprovider_share_with = 2131034137; // aapt resource value: 0x7f05001a public const int abc_shareactionprovider_share_with_application = 2131034138; // aapt resource value: 0x7f05001b public const int abc_toolbar_collapse_description = 2131034139; // aapt resource value: 0x7f050033 public const int app_name = 2131034163; // aapt resource value: 0x7f05001d public const int appbar_scrolling_view_behavior = 2131034141; // aapt resource value: 0x7f05001e public const int com_facebook_device_auth_instructions = 2131034142; // aapt resource value: 0x7f05001f public const int com_facebook_image_download_unknown_error = 2131034143; // aapt resource value: 0x7f050020 public const int com_facebook_internet_permission_error_message = 2131034144; // aapt resource value: 0x7f050021 public const int com_facebook_internet_permission_error_title = 2131034145; // aapt resource value: 0x7f050022 public const int com_facebook_like_button_liked = 2131034146; // aapt resource value: 0x7f050023 public const int com_facebook_like_button_not_liked = 2131034147; // aapt resource value: 0x7f050024 public const int com_facebook_loading = 2131034148; // aapt resource value: 0x7f050025 public const int com_facebook_loginview_cancel_action = 2131034149; // aapt resource value: 0x7f050026 public const int com_facebook_loginview_log_in_button = 2131034150; // aapt resource value: 0x7f050027 public const int com_facebook_loginview_log_in_button_long = 2131034151; // aapt resource value: 0x7f050028 public const int com_facebook_loginview_log_out_action = 2131034152; // aapt resource value: 0x7f050029 public const int com_facebook_loginview_log_out_button = 2131034153; // aapt resource value: 0x7f05002a public const int com_facebook_loginview_logged_in_as = 2131034154; // aapt resource value: 0x7f05002b public const int com_facebook_loginview_logged_in_using_facebook = 2131034155; // aapt resource value: 0x7f05002c public const int com_facebook_send_button_text = 2131034156; // aapt resource value: 0x7f05002d public const int com_facebook_share_button_text = 2131034157; // aapt resource value: 0x7f05002e public const int com_facebook_tooltip_default = 2131034158; // aapt resource value: 0x7f050034 public const int facebook_app_id = 2131034164; // aapt resource value: 0x7f050035 public const int fb_login_protocol_scheme = 2131034165; // aapt resource value: 0x7f050032 public const int library_name = 2131034162; // aapt resource value: 0x7f05002f public const int messenger_send_button_text = 2131034159; // aapt resource value: 0x7f050000 public const int mr_media_route_button_content_description = 2131034112; // aapt resource value: 0x7f050001 public const int mr_media_route_chooser_searching = 2131034113; // aapt resource value: 0x7f050002 public const int mr_media_route_chooser_title = 2131034114; // aapt resource value: 0x7f050003 public const int mr_media_route_controller_disconnect = 2131034115; // aapt resource value: 0x7f050004 public const int mr_media_route_controller_no_info_available = 2131034116; // aapt resource value: 0x7f050005 public const int mr_media_route_controller_pause = 2131034117; // aapt resource value: 0x7f050006 public const int mr_media_route_controller_play = 2131034118; // aapt resource value: 0x7f050007 public const int mr_media_route_controller_settings_description = 2131034119; // aapt resource value: 0x7f050008 public const int mr_media_route_controller_stop = 2131034120; // aapt resource value: 0x7f050009 public const int mr_system_route_name = 2131034121; // aapt resource value: 0x7f05000a public const int mr_user_route_category_name = 2131034122; // aapt resource value: 0x7f05001c public const int status_bar_notification_info_overflow = 2131034140; static String() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private String() { } } public partial class Style { // aapt resource value: 0x7f070081 public const int AlertDialog_AppCompat = 2131165313; // aapt resource value: 0x7f070082 public const int AlertDialog_AppCompat_Light = 2131165314; // aapt resource value: 0x7f070083 public const int Animation_AppCompat_Dialog = 2131165315; // aapt resource value: 0x7f070084 public const int Animation_AppCompat_DropDownUp = 2131165316; // aapt resource value: 0x7f070085 public const int Base_AlertDialog_AppCompat = 2131165317; // aapt resource value: 0x7f070086 public const int Base_AlertDialog_AppCompat_Light = 2131165318; // aapt resource value: 0x7f070087 public const int Base_Animation_AppCompat_Dialog = 2131165319; // aapt resource value: 0x7f070088 public const int Base_Animation_AppCompat_DropDownUp = 2131165320; // aapt resource value: 0x7f070089 public const int Base_DialogWindowTitle_AppCompat = 2131165321; // aapt resource value: 0x7f07008a public const int Base_DialogWindowTitleBackground_AppCompat = 2131165322; // aapt resource value: 0x7f070034 public const int Base_TextAppearance_AppCompat = 2131165236; // aapt resource value: 0x7f070035 public const int Base_TextAppearance_AppCompat_Body1 = 2131165237; // aapt resource value: 0x7f070036 public const int Base_TextAppearance_AppCompat_Body2 = 2131165238; // aapt resource value: 0x7f07001f public const int Base_TextAppearance_AppCompat_Button = 2131165215; // aapt resource value: 0x7f070037 public const int Base_TextAppearance_AppCompat_Caption = 2131165239; // aapt resource value: 0x7f070038 public const int Base_TextAppearance_AppCompat_Display1 = 2131165240; // aapt resource value: 0x7f070039 public const int Base_TextAppearance_AppCompat_Display2 = 2131165241; // aapt resource value: 0x7f07003a public const int Base_TextAppearance_AppCompat_Display3 = 2131165242; // aapt resource value: 0x7f07003b public const int Base_TextAppearance_AppCompat_Display4 = 2131165243; // aapt resource value: 0x7f07003c public const int Base_TextAppearance_AppCompat_Headline = 2131165244; // aapt resource value: 0x7f07000a public const int Base_TextAppearance_AppCompat_Inverse = 2131165194; // aapt resource value: 0x7f07003d public const int Base_TextAppearance_AppCompat_Large = 2131165245; // aapt resource value: 0x7f07000b public const int Base_TextAppearance_AppCompat_Large_Inverse = 2131165195; // aapt resource value: 0x7f07003e public const int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 2131165246; // aapt resource value: 0x7f07003f public const int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 2131165247; // aapt resource value: 0x7f070040 public const int Base_TextAppearance_AppCompat_Medium = 2131165248; // aapt resource value: 0x7f07000c public const int Base_TextAppearance_AppCompat_Medium_Inverse = 2131165196; // aapt resource value: 0x7f070041 public const int Base_TextAppearance_AppCompat_Menu = 2131165249; // aapt resource value: 0x7f07008b public const int Base_TextAppearance_AppCompat_SearchResult = 2131165323; // aapt resource value: 0x7f070042 public const int Base_TextAppearance_AppCompat_SearchResult_Subtitle = 2131165250; // aapt resource value: 0x7f070043 public const int Base_TextAppearance_AppCompat_SearchResult_Title = 2131165251; // aapt resource value: 0x7f070044 public const int Base_TextAppearance_AppCompat_Small = 2131165252; // aapt resource value: 0x7f07000d public const int Base_TextAppearance_AppCompat_Small_Inverse = 2131165197; // aapt resource value: 0x7f070045 public const int Base_TextAppearance_AppCompat_Subhead = 2131165253; // aapt resource value: 0x7f07000e public const int Base_TextAppearance_AppCompat_Subhead_Inverse = 2131165198; // aapt resource value: 0x7f070046 public const int Base_TextAppearance_AppCompat_Title = 2131165254; // aapt resource value: 0x7f07000f public const int Base_TextAppearance_AppCompat_Title_Inverse = 2131165199; // aapt resource value: 0x7f070047 public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu = 2131165255; // aapt resource value: 0x7f070048 public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 2131165256; // aapt resource value: 0x7f070049 public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 2131165257; // aapt resource value: 0x7f07004a public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Title = 2131165258; // aapt resource value: 0x7f07004b public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 2131165259; // aapt resource value: 0x7f07004c public const int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 2131165260; // aapt resource value: 0x7f07004d public const int Base_TextAppearance_AppCompat_Widget_ActionMode_Title = 2131165261; // aapt resource value: 0x7f07004e public const int Base_TextAppearance_AppCompat_Widget_Button = 2131165262; // aapt resource value: 0x7f07007d public const int Base_TextAppearance_AppCompat_Widget_Button_Inverse = 2131165309; // aapt resource value: 0x7f07008c public const int Base_TextAppearance_AppCompat_Widget_DropDownItem = 2131165324; // aapt resource value: 0x7f07004f public const int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large = 2131165263; // aapt resource value: 0x7f070050 public const int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small = 2131165264; // aapt resource value: 0x7f070051 public const int Base_TextAppearance_AppCompat_Widget_Switch = 2131165265; // aapt resource value: 0x7f070052 public const int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 2131165266; // aapt resource value: 0x7f07008d public const int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 2131165325; // aapt resource value: 0x7f070053 public const int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 2131165267; // aapt resource value: 0x7f070054 public const int Base_TextAppearance_Widget_AppCompat_Toolbar_Title = 2131165268; // aapt resource value: 0x7f070055 public const int Base_Theme_AppCompat = 2131165269; // aapt resource value: 0x7f07008e public const int Base_Theme_AppCompat_CompactMenu = 2131165326; // aapt resource value: 0x7f070010 public const int Base_Theme_AppCompat_Dialog = 2131165200; // aapt resource value: 0x7f07008f public const int Base_Theme_AppCompat_Dialog_Alert = 2131165327; // aapt resource value: 0x7f070090 public const int Base_Theme_AppCompat_Dialog_FixedSize = 2131165328; // aapt resource value: 0x7f070091 public const int Base_Theme_AppCompat_Dialog_MinWidth = 2131165329; // aapt resource value: 0x7f070008 public const int Base_Theme_AppCompat_DialogWhenLarge = 2131165192; // aapt resource value: 0x7f070056 public const int Base_Theme_AppCompat_Light = 2131165270; // aapt resource value: 0x7f070092 public const int Base_Theme_AppCompat_Light_DarkActionBar = 2131165330; // aapt resource value: 0x7f070011 public const int Base_Theme_AppCompat_Light_Dialog = 2131165201; // aapt resource value: 0x7f070093 public const int Base_Theme_AppCompat_Light_Dialog_Alert = 2131165331; // aapt resource value: 0x7f070094 public const int Base_Theme_AppCompat_Light_Dialog_FixedSize = 2131165332; // aapt resource value: 0x7f070095 public const int Base_Theme_AppCompat_Light_Dialog_MinWidth = 2131165333; // aapt resource value: 0x7f070009 public const int Base_Theme_AppCompat_Light_DialogWhenLarge = 2131165193; // aapt resource value: 0x7f070096 public const int Base_ThemeOverlay_AppCompat = 2131165334; // aapt resource value: 0x7f070097 public const int Base_ThemeOverlay_AppCompat_ActionBar = 2131165335; // aapt resource value: 0x7f070098 public const int Base_ThemeOverlay_AppCompat_Dark = 2131165336; // aapt resource value: 0x7f070099 public const int Base_ThemeOverlay_AppCompat_Dark_ActionBar = 2131165337; // aapt resource value: 0x7f07009a public const int Base_ThemeOverlay_AppCompat_Light = 2131165338; // aapt resource value: 0x7f070012 public const int Base_V11_Theme_AppCompat_Dialog = 2131165202; // aapt resource value: 0x7f070013 public const int Base_V11_Theme_AppCompat_Light_Dialog = 2131165203; // aapt resource value: 0x7f07001b public const int Base_V12_Widget_AppCompat_AutoCompleteTextView = 2131165211; // aapt resource value: 0x7f07001c public const int Base_V12_Widget_AppCompat_EditText = 2131165212; // aapt resource value: 0x7f070057 public const int Base_V21_Theme_AppCompat = 2131165271; // aapt resource value: 0x7f070058 public const int Base_V21_Theme_AppCompat_Dialog = 2131165272; // aapt resource value: 0x7f070059 public const int Base_V21_Theme_AppCompat_Light = 2131165273; // aapt resource value: 0x7f07005a public const int Base_V21_Theme_AppCompat_Light_Dialog = 2131165274; // aapt resource value: 0x7f07007b public const int Base_V22_Theme_AppCompat = 2131165307; // aapt resource value: 0x7f07007c public const int Base_V22_Theme_AppCompat_Light = 2131165308; // aapt resource value: 0x7f07007e public const int Base_V23_Theme_AppCompat = 2131165310; // aapt resource value: 0x7f07007f public const int Base_V23_Theme_AppCompat_Light = 2131165311; // aapt resource value: 0x7f07009b public const int Base_V7_Theme_AppCompat = 2131165339; // aapt resource value: 0x7f07009c public const int Base_V7_Theme_AppCompat_Dialog = 2131165340; // aapt resource value: 0x7f07009d public const int Base_V7_Theme_AppCompat_Light = 2131165341; // aapt resource value: 0x7f07009e public const int Base_V7_Theme_AppCompat_Light_Dialog = 2131165342; // aapt resource value: 0x7f07009f public const int Base_V7_Widget_AppCompat_AutoCompleteTextView = 2131165343; // aapt resource value: 0x7f0700a0 public const int Base_V7_Widget_AppCompat_EditText = 2131165344; // aapt resource value: 0x7f0700a1 public const int Base_Widget_AppCompat_ActionBar = 2131165345; // aapt resource value: 0x7f0700a2 public const int Base_Widget_AppCompat_ActionBar_Solid = 2131165346; // aapt resource value: 0x7f0700a3 public const int Base_Widget_AppCompat_ActionBar_TabBar = 2131165347; // aapt resource value: 0x7f07005b public const int Base_Widget_AppCompat_ActionBar_TabText = 2131165275; // aapt resource value: 0x7f07005c public const int Base_Widget_AppCompat_ActionBar_TabView = 2131165276; // aapt resource value: 0x7f07005d public const int Base_Widget_AppCompat_ActionButton = 2131165277; // aapt resource value: 0x7f07005e public const int Base_Widget_AppCompat_ActionButton_CloseMode = 2131165278; // aapt resource value: 0x7f07005f public const int Base_Widget_AppCompat_ActionButton_Overflow = 2131165279; // aapt resource value: 0x7f0700a4 public const int Base_Widget_AppCompat_ActionMode = 2131165348; // aapt resource value: 0x7f0700a5 public const int Base_Widget_AppCompat_ActivityChooserView = 2131165349; // aapt resource value: 0x7f07001d public const int Base_Widget_AppCompat_AutoCompleteTextView = 2131165213; // aapt resource value: 0x7f070060 public const int Base_Widget_AppCompat_Button = 2131165280; // aapt resource value: 0x7f070061 public const int Base_Widget_AppCompat_Button_Borderless = 2131165281; // aapt resource value: 0x7f070062 public const int Base_Widget_AppCompat_Button_Borderless_Colored = 2131165282; // aapt resource value: 0x7f0700a6 public const int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog = 2131165350; // aapt resource value: 0x7f070080 public const int Base_Widget_AppCompat_Button_Colored = 2131165312; // aapt resource value: 0x7f070063 public const int Base_Widget_AppCompat_Button_Small = 2131165283; // aapt resource value: 0x7f070064 public const int Base_Widget_AppCompat_ButtonBar = 2131165284; // aapt resource value: 0x7f0700a7 public const int Base_Widget_AppCompat_ButtonBar_AlertDialog = 2131165351; // aapt resource value: 0x7f070065 public const int Base_Widget_AppCompat_CompoundButton_CheckBox = 2131165285; // aapt resource value: 0x7f070066 public const int Base_Widget_AppCompat_CompoundButton_RadioButton = 2131165286; // aapt resource value: 0x7f0700a8 public const int Base_Widget_AppCompat_CompoundButton_Switch = 2131165352; // aapt resource value: 0x7f070007 public const int Base_Widget_AppCompat_DrawerArrowToggle = 2131165191; // aapt resource value: 0x7f0700a9 public const int Base_Widget_AppCompat_DrawerArrowToggle_Common = 2131165353; // aapt resource value: 0x7f070067 public const int Base_Widget_AppCompat_DropDownItem_Spinner = 2131165287; // aapt resource value: 0x7f07001e public const int Base_Widget_AppCompat_EditText = 2131165214; // aapt resource value: 0x7f0700aa public const int Base_Widget_AppCompat_Light_ActionBar = 2131165354; // aapt resource value: 0x7f0700ab public const int Base_Widget_AppCompat_Light_ActionBar_Solid = 2131165355; // aapt resource value: 0x7f0700ac public const int Base_Widget_AppCompat_Light_ActionBar_TabBar = 2131165356; // aapt resource value: 0x7f070068 public const int Base_Widget_AppCompat_Light_ActionBar_TabText = 2131165288; // aapt resource value: 0x7f070069 public const int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse = 2131165289; // aapt resource value: 0x7f07006a public const int Base_Widget_AppCompat_Light_ActionBar_TabView = 2131165290; // aapt resource value: 0x7f07006b public const int Base_Widget_AppCompat_Light_PopupMenu = 2131165291; // aapt resource value: 0x7f07006c public const int Base_Widget_AppCompat_Light_PopupMenu_Overflow = 2131165292; // aapt resource value: 0x7f07006d public const int Base_Widget_AppCompat_ListPopupWindow = 2131165293; // aapt resource value: 0x7f07006e public const int Base_Widget_AppCompat_ListView = 2131165294; // aapt resource value: 0x7f07006f public const int Base_Widget_AppCompat_ListView_DropDown = 2131165295; // aapt resource value: 0x7f070070 public const int Base_Widget_AppCompat_ListView_Menu = 2131165296; // aapt resource value: 0x7f070071 public const int Base_Widget_AppCompat_PopupMenu = 2131165297; // aapt resource value: 0x7f070072 public const int Base_Widget_AppCompat_PopupMenu_Overflow = 2131165298; // aapt resource value: 0x7f0700ad public const int Base_Widget_AppCompat_PopupWindow = 2131165357; // aapt resource value: 0x7f070014 public const int Base_Widget_AppCompat_ProgressBar = 2131165204; // aapt resource value: 0x7f070015 public const int Base_Widget_AppCompat_ProgressBar_Horizontal = 2131165205; // aapt resource value: 0x7f070073 public const int Base_Widget_AppCompat_RatingBar = 2131165299; // aapt resource value: 0x7f0700ae public const int Base_Widget_AppCompat_SearchView = 2131165358; // aapt resource value: 0x7f0700af public const int Base_Widget_AppCompat_SearchView_ActionBar = 2131165359; // aapt resource value: 0x7f070074 public const int Base_Widget_AppCompat_Spinner = 2131165300; // aapt resource value: 0x7f070075 public const int Base_Widget_AppCompat_Spinner_Underlined = 2131165301; // aapt resource value: 0x7f070076 public const int Base_Widget_AppCompat_TextView_SpinnerItem = 2131165302; // aapt resource value: 0x7f0700b0 public const int Base_Widget_AppCompat_Toolbar = 2131165360; // aapt resource value: 0x7f070077 public const int Base_Widget_AppCompat_Toolbar_Button_Navigation = 2131165303; // aapt resource value: 0x7f070136 public const int Base_Widget_Design_TabLayout = 2131165494; // aapt resource value: 0x7f070004 public const int CardView = 2131165188; // aapt resource value: 0x7f070005 public const int CardView_Dark = 2131165189; // aapt resource value: 0x7f070006 public const int CardView_Light = 2131165190; // aapt resource value: 0x7f070144 public const int MessengerButton = 2131165508; // aapt resource value: 0x7f070145 public const int MessengerButton_Blue = 2131165509; // aapt resource value: 0x7f070146 public const int MessengerButton_Blue_Large = 2131165510; // aapt resource value: 0x7f070147 public const int MessengerButton_Blue_Small = 2131165511; // aapt resource value: 0x7f070148 public const int MessengerButton_White = 2131165512; // aapt resource value: 0x7f070149 public const int MessengerButton_White_Large = 2131165513; // aapt resource value: 0x7f07014a public const int MessengerButton_White_Small = 2131165514; // aapt resource value: 0x7f07014b public const int MessengerButtonText = 2131165515; // aapt resource value: 0x7f07014c public const int MessengerButtonText_Blue = 2131165516; // aapt resource value: 0x7f07014d public const int MessengerButtonText_Blue_Large = 2131165517; // aapt resource value: 0x7f07014e public const int MessengerButtonText_Blue_Small = 2131165518; // aapt resource value: 0x7f07014f public const int MessengerButtonText_White = 2131165519; // aapt resource value: 0x7f070150 public const int MessengerButtonText_White_Large = 2131165520; // aapt resource value: 0x7f070151 public const int MessengerButtonText_White_Small = 2131165521; // aapt resource value: 0x7f070016 public const int Platform_AppCompat = 2131165206; // aapt resource value: 0x7f070017 public const int Platform_AppCompat_Light = 2131165207; // aapt resource value: 0x7f070078 public const int Platform_ThemeOverlay_AppCompat = 2131165304; // aapt resource value: 0x7f070079 public const int Platform_ThemeOverlay_AppCompat_Dark = 2131165305; // aapt resource value: 0x7f07007a public const int Platform_ThemeOverlay_AppCompat_Light = 2131165306; // aapt resource value: 0x7f070018 public const int Platform_V11_AppCompat = 2131165208; // aapt resource value: 0x7f070019 public const int Platform_V11_AppCompat_Light = 2131165209; // aapt resource value: 0x7f070020 public const int Platform_V14_AppCompat = 2131165216; // aapt resource value: 0x7f070021 public const int Platform_V14_AppCompat_Light = 2131165217; // aapt resource value: 0x7f07001a public const int Platform_Widget_AppCompat_Spinner = 2131165210; // aapt resource value: 0x7f070027 public const int RtlOverlay_DialogWindowTitle_AppCompat = 2131165223; // aapt resource value: 0x7f070028 public const int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem = 2131165224; // aapt resource value: 0x7f070029 public const int RtlOverlay_Widget_AppCompat_ActionButton_Overflow = 2131165225; // aapt resource value: 0x7f07002a public const int RtlOverlay_Widget_AppCompat_DialogTitle_Icon = 2131165226; // aapt resource value: 0x7f07002b public const int RtlOverlay_Widget_AppCompat_PopupMenuItem = 2131165227; // aapt resource value: 0x7f07002c public const int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup = 2131165228; // aapt resource value: 0x7f07002d public const int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text = 2131165229; // aapt resource value: 0x7f07002e public const int RtlOverlay_Widget_AppCompat_Search_DropDown = 2131165230; // aapt resource value: 0x7f07002f public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1 = 2131165231; // aapt resource value: 0x7f070030 public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2 = 2131165232; // aapt resource value: 0x7f070031 public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Query = 2131165233; // aapt resource value: 0x7f070032 public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Text = 2131165234; // aapt resource value: 0x7f070033 public const int RtlOverlay_Widget_AppCompat_SearchView_MagIcon = 2131165235; // aapt resource value: 0x7f0700b1 public const int TextAppearance_AppCompat = 2131165361; // aapt resource value: 0x7f0700b2 public const int TextAppearance_AppCompat_Body1 = 2131165362; // aapt resource value: 0x7f0700b3 public const int TextAppearance_AppCompat_Body2 = 2131165363; // aapt resource value: 0x7f0700b4 public const int TextAppearance_AppCompat_Button = 2131165364; // aapt resource value: 0x7f0700b5 public const int TextAppearance_AppCompat_Caption = 2131165365; // aapt resource value: 0x7f0700b6 public const int TextAppearance_AppCompat_Display1 = 2131165366; // aapt resource value: 0x7f0700b7 public const int TextAppearance_AppCompat_Display2 = 2131165367; // aapt resource value: 0x7f0700b8 public const int TextAppearance_AppCompat_Display3 = 2131165368; // aapt resource value: 0x7f0700b9 public const int TextAppearance_AppCompat_Display4 = 2131165369; // aapt resource value: 0x7f0700ba public const int TextAppearance_AppCompat_Headline = 2131165370; // aapt resource value: 0x7f0700bb public const int TextAppearance_AppCompat_Inverse = 2131165371; // aapt resource value: 0x7f0700bc public const int TextAppearance_AppCompat_Large = 2131165372; // aapt resource value: 0x7f0700bd public const int TextAppearance_AppCompat_Large_Inverse = 2131165373; // aapt resource value: 0x7f0700be public const int TextAppearance_AppCompat_Light_SearchResult_Subtitle = 2131165374; // aapt resource value: 0x7f0700bf public const int TextAppearance_AppCompat_Light_SearchResult_Title = 2131165375; // aapt resource value: 0x7f0700c0 public const int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 2131165376; // aapt resource value: 0x7f0700c1 public const int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 2131165377; // aapt resource value: 0x7f0700c2 public const int TextAppearance_AppCompat_Medium = 2131165378; // aapt resource value: 0x7f0700c3 public const int TextAppearance_AppCompat_Medium_Inverse = 2131165379; // aapt resource value: 0x7f0700c4 public const int TextAppearance_AppCompat_Menu = 2131165380; // aapt resource value: 0x7f0700c5 public const int TextAppearance_AppCompat_SearchResult_Subtitle = 2131165381; // aapt resource value: 0x7f0700c6 public const int TextAppearance_AppCompat_SearchResult_Title = 2131165382; // aapt resource value: 0x7f0700c7 public const int TextAppearance_AppCompat_Small = 2131165383; // aapt resource value: 0x7f0700c8 public const int TextAppearance_AppCompat_Small_Inverse = 2131165384; // aapt resource value: 0x7f0700c9 public const int TextAppearance_AppCompat_Subhead = 2131165385; // aapt resource value: 0x7f0700ca public const int TextAppearance_AppCompat_Subhead_Inverse = 2131165386; // aapt resource value: 0x7f0700cb public const int TextAppearance_AppCompat_Title = 2131165387; // aapt resource value: 0x7f0700cc public const int TextAppearance_AppCompat_Title_Inverse = 2131165388; // aapt resource value: 0x7f0700cd public const int TextAppearance_AppCompat_Widget_ActionBar_Menu = 2131165389; // aapt resource value: 0x7f0700ce public const int TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 2131165390; // aapt resource value: 0x7f0700cf public const int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 2131165391; // aapt resource value: 0x7f0700d0 public const int TextAppearance_AppCompat_Widget_ActionBar_Title = 2131165392; // aapt resource value: 0x7f0700d1 public const int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 2131165393; // aapt resource value: 0x7f0700d2 public const int TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 2131165394; // aapt resource value: 0x7f0700d3 public const int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse = 2131165395; // aapt resource value: 0x7f0700d4 public const int TextAppearance_AppCompat_Widget_ActionMode_Title = 2131165396; // aapt resource value: 0x7f0700d5 public const int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse = 2131165397; // aapt resource value: 0x7f0700d6 public const int TextAppearance_AppCompat_Widget_Button = 2131165398; // aapt resource value: 0x7f0700d7 public const int TextAppearance_AppCompat_Widget_Button_Inverse = 2131165399; // aapt resource value: 0x7f0700d8 public const int TextAppearance_AppCompat_Widget_DropDownItem = 2131165400; // aapt resource value: 0x7f0700d9 public const int TextAppearance_AppCompat_Widget_PopupMenu_Large = 2131165401; // aapt resource value: 0x7f0700da public const int TextAppearance_AppCompat_Widget_PopupMenu_Small = 2131165402; // aapt resource value: 0x7f0700db public const int TextAppearance_AppCompat_Widget_Switch = 2131165403; // aapt resource value: 0x7f0700dc public const int TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 2131165404; // aapt resource value: 0x7f070137 public const int TextAppearance_Design_CollapsingToolbar_Expanded = 2131165495; // aapt resource value: 0x7f070138 public const int TextAppearance_Design_Error = 2131165496; // aapt resource value: 0x7f070139 public const int TextAppearance_Design_Hint = 2131165497; // aapt resource value: 0x7f07013a public const int TextAppearance_Design_Snackbar_Message = 2131165498; // aapt resource value: 0x7f07013b public const int TextAppearance_Design_Tab = 2131165499; // aapt resource value: 0x7f070022 public const int TextAppearance_StatusBar_EventContent = 2131165218; // aapt resource value: 0x7f070023 public const int TextAppearance_StatusBar_EventContent_Info = 2131165219; // aapt resource value: 0x7f070024 public const int TextAppearance_StatusBar_EventContent_Line2 = 2131165220; // aapt resource value: 0x7f070025 public const int TextAppearance_StatusBar_EventContent_Time = 2131165221; // aapt resource value: 0x7f070026 public const int TextAppearance_StatusBar_EventContent_Title = 2131165222; // aapt resource value: 0x7f0700dd public const int TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 2131165405; // aapt resource value: 0x7f0700de public const int TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 2131165406; // aapt resource value: 0x7f0700df public const int TextAppearance_Widget_AppCompat_Toolbar_Title = 2131165407; // aapt resource value: 0x7f0700e0 public const int Theme_AppCompat = 2131165408; // aapt resource value: 0x7f0700e1 public const int Theme_AppCompat_CompactMenu = 2131165409; // aapt resource value: 0x7f0700e2 public const int Theme_AppCompat_Dialog = 2131165410; // aapt resource value: 0x7f0700e3 public const int Theme_AppCompat_Dialog_Alert = 2131165411; // aapt resource value: 0x7f0700e4 public const int Theme_AppCompat_Dialog_MinWidth = 2131165412; // aapt resource value: 0x7f0700e5 public const int Theme_AppCompat_DialogWhenLarge = 2131165413; // aapt resource value: 0x7f0700e6 public const int Theme_AppCompat_Light = 2131165414; // aapt resource value: 0x7f0700e7 public const int Theme_AppCompat_Light_DarkActionBar = 2131165415; // aapt resource value: 0x7f0700e8 public const int Theme_AppCompat_Light_Dialog = 2131165416; // aapt resource value: 0x7f0700e9 public const int Theme_AppCompat_Light_Dialog_Alert = 2131165417; // aapt resource value: 0x7f0700ea public const int Theme_AppCompat_Light_Dialog_MinWidth = 2131165418; // aapt resource value: 0x7f0700eb public const int Theme_AppCompat_Light_DialogWhenLarge = 2131165419; // aapt resource value: 0x7f0700ec public const int Theme_AppCompat_Light_NoActionBar = 2131165420; // aapt resource value: 0x7f0700ed public const int Theme_AppCompat_NoActionBar = 2131165421; // aapt resource value: 0x7f070000 public const int Theme_MediaRouter = 2131165184; // aapt resource value: 0x7f070001 public const int Theme_MediaRouter_Light = 2131165185; // aapt resource value: 0x7f0700ee public const int ThemeOverlay_AppCompat = 2131165422; // aapt resource value: 0x7f0700ef public const int ThemeOverlay_AppCompat_ActionBar = 2131165423; // aapt resource value: 0x7f0700f0 public const int ThemeOverlay_AppCompat_Dark = 2131165424; // aapt resource value: 0x7f0700f1 public const int ThemeOverlay_AppCompat_Dark_ActionBar = 2131165425; // aapt resource value: 0x7f0700f2 public const int ThemeOverlay_AppCompat_Light = 2131165426; // aapt resource value: 0x7f0700f3 public const int Widget_AppCompat_ActionBar = 2131165427; // aapt resource value: 0x7f0700f4 public const int Widget_AppCompat_ActionBar_Solid = 2131165428; // aapt resource value: 0x7f0700f5 public const int Widget_AppCompat_ActionBar_TabBar = 2131165429; // aapt resource value: 0x7f0700f6 public const int Widget_AppCompat_ActionBar_TabText = 2131165430; // aapt resource value: 0x7f0700f7 public const int Widget_AppCompat_ActionBar_TabView = 2131165431; // aapt resource value: 0x7f0700f8 public const int Widget_AppCompat_ActionButton = 2131165432; // aapt resource value: 0x7f0700f9 public const int Widget_AppCompat_ActionButton_CloseMode = 2131165433; // aapt resource value: 0x7f0700fa public const int Widget_AppCompat_ActionButton_Overflow = 2131165434; // aapt resource value: 0x7f0700fb public const int Widget_AppCompat_ActionMode = 2131165435; // aapt resource value: 0x7f0700fc public const int Widget_AppCompat_ActivityChooserView = 2131165436; // aapt resource value: 0x7f0700fd public const int Widget_AppCompat_AutoCompleteTextView = 2131165437; // aapt resource value: 0x7f0700fe public const int Widget_AppCompat_Button = 2131165438; // aapt resource value: 0x7f0700ff public const int Widget_AppCompat_Button_Borderless = 2131165439; // aapt resource value: 0x7f070100 public const int Widget_AppCompat_Button_Borderless_Colored = 2131165440; // aapt resource value: 0x7f070101 public const int Widget_AppCompat_Button_ButtonBar_AlertDialog = 2131165441; // aapt resource value: 0x7f070102 public const int Widget_AppCompat_Button_Colored = 2131165442; // aapt resource value: 0x7f070103 public const int Widget_AppCompat_Button_Small = 2131165443; // aapt resource value: 0x7f070104 public const int Widget_AppCompat_ButtonBar = 2131165444; // aapt resource value: 0x7f070105 public const int Widget_AppCompat_ButtonBar_AlertDialog = 2131165445; // aapt resource value: 0x7f070106 public const int Widget_AppCompat_CompoundButton_CheckBox = 2131165446; // aapt resource value: 0x7f070107 public const int Widget_AppCompat_CompoundButton_RadioButton = 2131165447; // aapt resource value: 0x7f070108 public const int Widget_AppCompat_CompoundButton_Switch = 2131165448; // aapt resource value: 0x7f070109 public const int Widget_AppCompat_DrawerArrowToggle = 2131165449; // aapt resource value: 0x7f07010a public const int Widget_AppCompat_DropDownItem_Spinner = 2131165450; // aapt resource value: 0x7f07010b public const int Widget_AppCompat_EditText = 2131165451; // aapt resource value: 0x7f07010c public const int Widget_AppCompat_Light_ActionBar = 2131165452; // aapt resource value: 0x7f07010d public const int Widget_AppCompat_Light_ActionBar_Solid = 2131165453; // aapt resource value: 0x7f07010e public const int Widget_AppCompat_Light_ActionBar_Solid_Inverse = 2131165454; // aapt resource value: 0x7f07010f public const int Widget_AppCompat_Light_ActionBar_TabBar = 2131165455; // aapt resource value: 0x7f070110 public const int Widget_AppCompat_Light_ActionBar_TabBar_Inverse = 2131165456; // aapt resource value: 0x7f070111 public const int Widget_AppCompat_Light_ActionBar_TabText = 2131165457; // aapt resource value: 0x7f070112 public const int Widget_AppCompat_Light_ActionBar_TabText_Inverse = 2131165458; // aapt resource value: 0x7f070113 public const int Widget_AppCompat_Light_ActionBar_TabView = 2131165459; // aapt resource value: 0x7f070114 public const int Widget_AppCompat_Light_ActionBar_TabView_Inverse = 2131165460; // aapt resource value: 0x7f070115 public const int Widget_AppCompat_Light_ActionButton = 2131165461; // aapt resource value: 0x7f070116 public const int Widget_AppCompat_Light_ActionButton_CloseMode = 2131165462; // aapt resource value: 0x7f070117 public const int Widget_AppCompat_Light_ActionButton_Overflow = 2131165463; // aapt resource value: 0x7f070118 public const int Widget_AppCompat_Light_ActionMode_Inverse = 2131165464; // aapt resource value: 0x7f070119 public const int Widget_AppCompat_Light_ActivityChooserView = 2131165465; // aapt resource value: 0x7f07011a public const int Widget_AppCompat_Light_AutoCompleteTextView = 2131165466; // aapt resource value: 0x7f07011b public const int Widget_AppCompat_Light_DropDownItem_Spinner = 2131165467; // aapt resource value: 0x7f07011c public const int Widget_AppCompat_Light_ListPopupWindow = 2131165468; // aapt resource value: 0x7f07011d public const int Widget_AppCompat_Light_ListView_DropDown = 2131165469; // aapt resource value: 0x7f07011e public const int Widget_AppCompat_Light_PopupMenu = 2131165470; // aapt resource value: 0x7f07011f public const int Widget_AppCompat_Light_PopupMenu_Overflow = 2131165471; // aapt resource value: 0x7f070120 public const int Widget_AppCompat_Light_SearchView = 2131165472; // aapt resource value: 0x7f070121 public const int Widget_AppCompat_Light_Spinner_DropDown_ActionBar = 2131165473; // aapt resource value: 0x7f070122 public const int Widget_AppCompat_ListPopupWindow = 2131165474; // aapt resource value: 0x7f070123 public const int Widget_AppCompat_ListView = 2131165475; // aapt resource value: 0x7f070124 public const int Widget_AppCompat_ListView_DropDown = 2131165476; // aapt resource value: 0x7f070125 public const int Widget_AppCompat_ListView_Menu = 2131165477; // aapt resource value: 0x7f070126 public const int Widget_AppCompat_PopupMenu = 2131165478; // aapt resource value: 0x7f070127 public const int Widget_AppCompat_PopupMenu_Overflow = 2131165479; // aapt resource value: 0x7f070128 public const int Widget_AppCompat_PopupWindow = 2131165480; // aapt resource value: 0x7f070129 public const int Widget_AppCompat_ProgressBar = 2131165481; // aapt resource value: 0x7f07012a public const int Widget_AppCompat_ProgressBar_Horizontal = 2131165482; // aapt resource value: 0x7f07012b public const int Widget_AppCompat_RatingBar = 2131165483; // aapt resource value: 0x7f07012c public const int Widget_AppCompat_SearchView = 2131165484; // aapt resource value: 0x7f07012d public const int Widget_AppCompat_SearchView_ActionBar = 2131165485; // aapt resource value: 0x7f07012e public const int Widget_AppCompat_Spinner = 2131165486; // aapt resource value: 0x7f07012f public const int Widget_AppCompat_Spinner_DropDown = 2131165487; // aapt resource value: 0x7f070130 public const int Widget_AppCompat_Spinner_DropDown_ActionBar = 2131165488; // aapt resource value: 0x7f070131 public const int Widget_AppCompat_Spinner_Underlined = 2131165489; // aapt resource value: 0x7f070132 public const int Widget_AppCompat_TextView_SpinnerItem = 2131165490; // aapt resource value: 0x7f070133 public const int Widget_AppCompat_Toolbar = 2131165491; // aapt resource value: 0x7f070134 public const int Widget_AppCompat_Toolbar_Button_Navigation = 2131165492; // aapt resource value: 0x7f07013c public const int Widget_Design_AppBarLayout = 2131165500; // aapt resource value: 0x7f07013d public const int Widget_Design_CollapsingToolbar = 2131165501; // aapt resource value: 0x7f07013e public const int Widget_Design_CoordinatorLayout = 2131165502; // aapt resource value: 0x7f07013f public const int Widget_Design_FloatingActionButton = 2131165503; // aapt resource value: 0x7f070140 public const int Widget_Design_NavigationView = 2131165504; // aapt resource value: 0x7f070141 public const int Widget_Design_ScrimInsetsFrameLayout = 2131165505; // aapt resource value: 0x7f070142 public const int Widget_Design_Snackbar = 2131165506; // aapt resource value: 0x7f070135 public const int Widget_Design_TabLayout = 2131165493; // aapt resource value: 0x7f070143 public const int Widget_Design_TextInputLayout = 2131165507; // aapt resource value: 0x7f070002 public const int Widget_MediaRouter_Light_MediaRouteButton = 2131165186; // aapt resource value: 0x7f070003 public const int Widget_MediaRouter_MediaRouteButton = 2131165187; // aapt resource value: 0x7f070152 public const int com_facebook_auth_dialog = 2131165522; // aapt resource value: 0x7f070153 public const int com_facebook_button = 2131165523; // aapt resource value: 0x7f070154 public const int com_facebook_button_like = 2131165524; // aapt resource value: 0x7f070155 public const int com_facebook_button_send = 2131165525; // aapt resource value: 0x7f070156 public const int com_facebook_button_share = 2131165526; // aapt resource value: 0x7f070157 public const int com_facebook_loginview_default_style = 2131165527; // aapt resource value: 0x7f070158 public const int com_facebook_loginview_silver_style = 2131165528; // aapt resource value: 0x7f070159 public const int tooltip_bubble_text = 2131165529; static Style() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Style() { } } public partial class Styleable { public static int[] ActionBar = new int[] { 2130771989, 2130771991, 2130771992, 2130771993, 2130771994, 2130771995, 2130771996, 2130771997, 2130771998, 2130771999, 2130772000, 2130772001, 2130772002, 2130772003, 2130772004, 2130772005, 2130772006, 2130772007, 2130772008, 2130772009, 2130772010, 2130772011, 2130772012, 2130772013, 2130772014, 2130772015, 2130772111}; // aapt resource value: 10 public const int ActionBar_background = 10; // aapt resource value: 12 public const int ActionBar_backgroundSplit = 12; // aapt resource value: 11 public const int ActionBar_backgroundStacked = 11; // aapt resource value: 21 public const int ActionBar_contentInsetEnd = 21; // aapt resource value: 22 public const int ActionBar_contentInsetLeft = 22; // aapt resource value: 23 public const int ActionBar_contentInsetRight = 23; // aapt resource value: 20 public const int ActionBar_contentInsetStart = 20; // aapt resource value: 13 public const int ActionBar_customNavigationLayout = 13; // aapt resource value: 3 public const int ActionBar_displayOptions = 3; // aapt resource value: 9 public const int ActionBar_divider = 9; // aapt resource value: 24 public const int ActionBar_elevation = 24; // aapt resource value: 0 public const int ActionBar_height = 0; // aapt resource value: 19 public const int ActionBar_hideOnContentScroll = 19; // aapt resource value: 26 public const int ActionBar_homeAsUpIndicator = 26; // aapt resource value: 14 public const int ActionBar_homeLayout = 14; // aapt resource value: 7 public const int ActionBar_icon = 7; // aapt resource value: 16 public const int ActionBar_indeterminateProgressStyle = 16; // aapt resource value: 18 public const int ActionBar_itemPadding = 18; // aapt resource value: 8 public const int ActionBar_logo = 8; // aapt resource value: 2 public const int ActionBar_navigationMode = 2; // aapt resource value: 25 public const int ActionBar_popupTheme = 25; // aapt resource value: 17 public const int ActionBar_progressBarPadding = 17; // aapt resource value: 15 public const int ActionBar_progressBarStyle = 15; // aapt resource value: 4 public const int ActionBar_subtitle = 4; // aapt resource value: 6 public const int ActionBar_subtitleTextStyle = 6; // aapt resource value: 1 public const int ActionBar_title = 1; // aapt resource value: 5 public const int ActionBar_titleTextStyle = 5; public static int[] ActionBarLayout = new int[] { 16842931}; // aapt resource value: 0 public const int ActionBarLayout_android_layout_gravity = 0; public static int[] ActionMenuItemView = new int[] { 16843071}; // aapt resource value: 0 public const int ActionMenuItemView_android_minWidth = 0; public static int[] ActionMenuView; public static int[] ActionMode = new int[] { 2130771989, 2130771995, 2130771996, 2130772000, 2130772002, 2130772016}; // aapt resource value: 3 public const int ActionMode_background = 3; // aapt resource value: 4 public const int ActionMode_backgroundSplit = 4; // aapt resource value: 5 public const int ActionMode_closeItemLayout = 5; // aapt resource value: 0 public const int ActionMode_height = 0; // aapt resource value: 2 public const int ActionMode_subtitleTextStyle = 2; // aapt resource value: 1 public const int ActionMode_titleTextStyle = 1; public static int[] ActivityChooserView = new int[] { 2130772017, 2130772018}; // aapt resource value: 1 public const int ActivityChooserView_expandActivityOverflowButtonDrawable = 1; // aapt resource value: 0 public const int ActivityChooserView_initialActivityCount = 0; public static int[] AlertDialog = new int[] { 16842994, 2130772019, 2130772020, 2130772021, 2130772022, 2130772023}; // aapt resource value: 0 public const int AlertDialog_android_layout = 0; // aapt resource value: 1 public const int AlertDialog_buttonPanelSideLayout = 1; // aapt resource value: 5 public const int AlertDialog_listItemLayout = 5; // aapt resource value: 2 public const int AlertDialog_listLayout = 2; // aapt resource value: 3 public const int AlertDialog_multiChoiceItemLayout = 3; // aapt resource value: 4 public const int AlertDialog_singleChoiceItemLayout = 4; public static int[] AppBarLayout = new int[] { 16842964, 2130772014, 2130772191}; // aapt resource value: 0 public const int AppBarLayout_android_background = 0; // aapt resource value: 1 public const int AppBarLayout_elevation = 1; // aapt resource value: 2 public const int AppBarLayout_expanded = 2; public static int[] AppBarLayout_LayoutParams = new int[] { 2130772192, 2130772193}; // aapt resource value: 0 public const int AppBarLayout_LayoutParams_layout_scrollFlags = 0; // aapt resource value: 1 public const int AppBarLayout_LayoutParams_layout_scrollInterpolator = 1; public static int[] AppCompatTextView = new int[] { 16842804, 2130772024}; // aapt resource value: 0 public const int AppCompatTextView_android_textAppearance = 0; // aapt resource value: 1 public const int AppCompatTextView_textAllCaps = 1; public static int[] CardView = new int[] { 2130771977, 2130771978, 2130771979, 2130771980, 2130771981, 2130771982, 2130771983, 2130771984, 2130771985, 2130771986, 2130771987}; // aapt resource value: 0 public const int CardView_cardBackgroundColor = 0; // aapt resource value: 1 public const int CardView_cardCornerRadius = 1; // aapt resource value: 2 public const int CardView_cardElevation = 2; // aapt resource value: 3 public const int CardView_cardMaxElevation = 3; // aapt resource value: 5 public const int CardView_cardPreventCornerOverlap = 5; // aapt resource value: 4 public const int CardView_cardUseCompatPadding = 4; // aapt resource value: 6 public const int CardView_contentPadding = 6; // aapt resource value: 10 public const int CardView_contentPaddingBottom = 10; // aapt resource value: 7 public const int CardView_contentPaddingLeft = 7; // aapt resource value: 8 public const int CardView_contentPaddingRight = 8; // aapt resource value: 9 public const int CardView_contentPaddingTop = 9; public static int[] CollapsingAppBarLayout_LayoutParams = new int[] { 2130772194, 2130772195}; // aapt resource value: 0 public const int CollapsingAppBarLayout_LayoutParams_layout_collapseMode = 0; // aapt resource value: 1 public const int CollapsingAppBarLayout_LayoutParams_layout_collapseParallaxMultiplier = 1; public static int[] CollapsingToolbarLayout = new int[] { 2130771991, 2130772196, 2130772197, 2130772198, 2130772199, 2130772200, 2130772201, 2130772202, 2130772203, 2130772204, 2130772205, 2130772206, 2130772207, 2130772208}; // aapt resource value: 11 public const int CollapsingToolbarLayout_collapsedTitleGravity = 11; // aapt resource value: 7 public const int CollapsingToolbarLayout_collapsedTitleTextAppearance = 7; // aapt resource value: 8 public const int CollapsingToolbarLayout_contentScrim = 8; // aapt resource value: 12 public const int CollapsingToolbarLayout_expandedTitleGravity = 12; // aapt resource value: 1 public const int CollapsingToolbarLayout_expandedTitleMargin = 1; // aapt resource value: 5 public const int CollapsingToolbarLayout_expandedTitleMarginBottom = 5; // aapt resource value: 4 public const int CollapsingToolbarLayout_expandedTitleMarginEnd = 4; // aapt resource value: 2 public const int CollapsingToolbarLayout_expandedTitleMarginStart = 2; // aapt resource value: 3 public const int CollapsingToolbarLayout_expandedTitleMarginTop = 3; // aapt resource value: 6 public const int CollapsingToolbarLayout_expandedTitleTextAppearance = 6; // aapt resource value: 9 public const int CollapsingToolbarLayout_statusBarScrim = 9; // aapt resource value: 0 public const int CollapsingToolbarLayout_title = 0; // aapt resource value: 13 public const int CollapsingToolbarLayout_titleEnabled = 13; // aapt resource value: 10 public const int CollapsingToolbarLayout_toolbarId = 10; public static int[] CompoundButton = new int[] { 16843015, 2130772025, 2130772026}; // aapt resource value: 0 public const int CompoundButton_android_button = 0; // aapt resource value: 1 public const int CompoundButton_buttonTint = 1; // aapt resource value: 2 public const int CompoundButton_buttonTintMode = 2; public static int[] CoordinatorLayout = new int[] { 2130772209, 2130772210}; // aapt resource value: 0 public const int CoordinatorLayout_keylines = 0; // aapt resource value: 1 public const int CoordinatorLayout_statusBarBackground = 1; public static int[] CoordinatorLayout_LayoutParams = new int[] { 16842931, 2130772211, 2130772212, 2130772213, 2130772214}; // aapt resource value: 0 public const int CoordinatorLayout_LayoutParams_android_layout_gravity = 0; // aapt resource value: 2 public const int CoordinatorLayout_LayoutParams_layout_anchor = 2; // aapt resource value: 4 public const int CoordinatorLayout_LayoutParams_layout_anchorGravity = 4; // aapt resource value: 1 public const int CoordinatorLayout_LayoutParams_layout_behavior = 1; // aapt resource value: 3 public const int CoordinatorLayout_LayoutParams_layout_keyline = 3; public static int[] DrawerArrowToggle = new int[] { 2130772027, 2130772028, 2130772029, 2130772030, 2130772031, 2130772032, 2130772033, 2130772034}; // aapt resource value: 4 public const int DrawerArrowToggle_arrowHeadLength = 4; // aapt resource value: 5 public const int DrawerArrowToggle_arrowShaftLength = 5; // aapt resource value: 6 public const int DrawerArrowToggle_barLength = 6; // aapt resource value: 0 public const int DrawerArrowToggle_color = 0; // aapt resource value: 2 public const int DrawerArrowToggle_drawableSize = 2; // aapt resource value: 3 public const int DrawerArrowToggle_gapBetweenBars = 3; // aapt resource value: 1 public const int DrawerArrowToggle_spinBars = 1; // aapt resource value: 7 public const int DrawerArrowToggle_thickness = 7; public static int[] FloatingActionButton = new int[] { 16842964, 2130772014, 2130772189, 2130772190, 2130772215, 2130772216, 2130772217, 2130772218}; // aapt resource value: 0 public const int FloatingActionButton_android_background = 0; // aapt resource value: 2 public const int FloatingActionButton_backgroundTint = 2; // aapt resource value: 3 public const int FloatingActionButton_backgroundTintMode = 3; // aapt resource value: 7 public const int FloatingActionButton_borderWidth = 7; // aapt resource value: 1 public const int FloatingActionButton_elevation = 1; // aapt resource value: 5 public const int FloatingActionButton_fabSize = 5; // aapt resource value: 6 public const int FloatingActionButton_pressedTranslationZ = 6; // aapt resource value: 4 public const int FloatingActionButton_rippleColor = 4; public static int[] LinearLayoutCompat = new int[] { 16842927, 16842948, 16843046, 16843047, 16843048, 2130771999, 2130772035, 2130772036, 2130772037}; // aapt resource value: 2 public const int LinearLayoutCompat_android_baselineAligned = 2; // aapt resource value: 3 public const int LinearLayoutCompat_android_baselineAlignedChildIndex = 3; // aapt resource value: 0 public const int LinearLayoutCompat_android_gravity = 0; // aapt resource value: 1 public const int LinearLayoutCompat_android_orientation = 1; // aapt resource value: 4 public const int LinearLayoutCompat_android_weightSum = 4; // aapt resource value: 5 public const int LinearLayoutCompat_divider = 5; // aapt resource value: 8 public const int LinearLayoutCompat_dividerPadding = 8; // aapt resource value: 6 public const int LinearLayoutCompat_measureWithLargestChild = 6; // aapt resource value: 7 public const int LinearLayoutCompat_showDividers = 7; public static int[] LinearLayoutCompat_Layout = new int[] { 16842931, 16842996, 16842997, 16843137}; // aapt resource value: 0 public const int LinearLayoutCompat_Layout_android_layout_gravity = 0; // aapt resource value: 2 public const int LinearLayoutCompat_Layout_android_layout_height = 2; // aapt resource value: 3 public const int LinearLayoutCompat_Layout_android_layout_weight = 3; // aapt resource value: 1 public const int LinearLayoutCompat_Layout_android_layout_width = 1; public static int[] ListPopupWindow = new int[] { 16843436, 16843437}; // aapt resource value: 0 public const int ListPopupWindow_android_dropDownHorizontalOffset = 0; // aapt resource value: 1 public const int ListPopupWindow_android_dropDownVerticalOffset = 1; public static int[] MediaRouteButton = new int[] { 16843071, 16843072, 2130771976}; // aapt resource value: 1 public const int MediaRouteButton_android_minHeight = 1; // aapt resource value: 0 public const int MediaRouteButton_android_minWidth = 0; // aapt resource value: 2 public const int MediaRouteButton_externalRouteEnabledDrawable = 2; public static int[] MenuGroup = new int[] { 16842766, 16842960, 16843156, 16843230, 16843231, 16843232}; // aapt resource value: 5 public const int MenuGroup_android_checkableBehavior = 5; // aapt resource value: 0 public const int MenuGroup_android_enabled = 0; // aapt resource value: 1 public const int MenuGroup_android_id = 1; // aapt resource value: 3 public const int MenuGroup_android_menuCategory = 3; // aapt resource value: 4 public const int MenuGroup_android_orderInCategory = 4; // aapt resource value: 2 public const int MenuGroup_android_visible = 2; public static int[] MenuItem = new int[] { 16842754, 16842766, 16842960, 16843014, 16843156, 16843230, 16843231, 16843233, 16843234, 16843235, 16843236, 16843237, 16843375, 2130772038, 2130772039, 2130772040, 2130772041}; // aapt resource value: 14 public const int MenuItem_actionLayout = 14; // aapt resource value: 16 public const int MenuItem_actionProviderClass = 16; // aapt resource value: 15 public const int MenuItem_actionViewClass = 15; // aapt resource value: 9 public const int MenuItem_android_alphabeticShortcut = 9; // aapt resource value: 11 public const int MenuItem_android_checkable = 11; // aapt resource value: 3 public const int MenuItem_android_checked = 3; // aapt resource value: 1 public const int MenuItem_android_enabled = 1; // aapt resource value: 0 public const int MenuItem_android_icon = 0; // aapt resource value: 2 public const int MenuItem_android_id = 2; // aapt resource value: 5 public const int MenuItem_android_menuCategory = 5; // aapt resource value: 10 public const int MenuItem_android_numericShortcut = 10; // aapt resource value: 12 public const int MenuItem_android_onClick = 12; // aapt resource value: 6 public const int MenuItem_android_orderInCategory = 6; // aapt resource value: 7 public const int MenuItem_android_title = 7; // aapt resource value: 8 public const int MenuItem_android_titleCondensed = 8; // aapt resource value: 4 public const int MenuItem_android_visible = 4; // aapt resource value: 13 public const int MenuItem_showAsAction = 13; public static int[] MenuView = new int[] { 16842926, 16843052, 16843053, 16843054, 16843055, 16843056, 16843057, 2130772042}; // aapt resource value: 4 public const int MenuView_android_headerBackground = 4; // aapt resource value: 2 public const int MenuView_android_horizontalDivider = 2; // aapt resource value: 5 public const int MenuView_android_itemBackground = 5; // aapt resource value: 6 public const int MenuView_android_itemIconDisabledAlpha = 6; // aapt resource value: 1 public const int MenuView_android_itemTextAppearance = 1; // aapt resource value: 3 public const int MenuView_android_verticalDivider = 3; // aapt resource value: 0 public const int MenuView_android_windowAnimationStyle = 0; // aapt resource value: 7 public const int MenuView_preserveIconSpacing = 7; public static int[] NavigationView = new int[] { 16842964, 16842973, 16843039, 2130772014, 2130772219, 2130772220, 2130772221, 2130772222, 2130772223, 2130772224}; // aapt resource value: 0 public const int NavigationView_android_background = 0; // aapt resource value: 1 public const int NavigationView_android_fitsSystemWindows = 1; // aapt resource value: 2 public const int NavigationView_android_maxWidth = 2; // aapt resource value: 3 public const int NavigationView_elevation = 3; // aapt resource value: 9 public const int NavigationView_headerLayout = 9; // aapt resource value: 7 public const int NavigationView_itemBackground = 7; // aapt resource value: 5 public const int NavigationView_itemIconTint = 5; // aapt resource value: 8 public const int NavigationView_itemTextAppearance = 8; // aapt resource value: 6 public const int NavigationView_itemTextColor = 6; // aapt resource value: 4 public const int NavigationView_menu = 4; public static int[] PopupWindow = new int[] { 16843126, 2130772043}; // aapt resource value: 0 public const int PopupWindow_android_popupBackground = 0; // aapt resource value: 1 public const int PopupWindow_overlapAnchor = 1; public static int[] PopupWindowBackgroundState = new int[] { 2130772044}; // aapt resource value: 0 public const int PopupWindowBackgroundState_state_above_anchor = 0; public static int[] ScrimInsetsFrameLayout = new int[] { 2130772225}; // aapt resource value: 0 public const int ScrimInsetsFrameLayout_insetForeground = 0; public static int[] ScrollingViewBehavior_Params = new int[] { 2130772226}; // aapt resource value: 0 public const int ScrollingViewBehavior_Params_behavior_overlapTop = 0; public static int[] SearchView = new int[] { 16842970, 16843039, 16843296, 16843364, 2130772045, 2130772046, 2130772047, 2130772048, 2130772049, 2130772050, 2130772051, 2130772052, 2130772053, 2130772054, 2130772055, 2130772056, 2130772057}; // aapt resource value: 0 public const int SearchView_android_focusable = 0; // aapt resource value: 3 public const int SearchView_android_imeOptions = 3; // aapt resource value: 2 public const int SearchView_android_inputType = 2; // aapt resource value: 1 public const int SearchView_android_maxWidth = 1; // aapt resource value: 8 public const int SearchView_closeIcon = 8; // aapt resource value: 13 public const int SearchView_commitIcon = 13; // aapt resource value: 7 public const int SearchView_defaultQueryHint = 7; // aapt resource value: 9 public const int SearchView_goIcon = 9; // aapt resource value: 5 public const int SearchView_iconifiedByDefault = 5; // aapt resource value: 4 public const int SearchView_layout = 4; // aapt resource value: 15 public const int SearchView_queryBackground = 15; // aapt resource value: 6 public const int SearchView_queryHint = 6; // aapt resource value: 11 public const int SearchView_searchHintIcon = 11; // aapt resource value: 10 public const int SearchView_searchIcon = 10; // aapt resource value: 16 public const int SearchView_submitBackground = 16; // aapt resource value: 14 public const int SearchView_suggestionRowLayout = 14; // aapt resource value: 12 public const int SearchView_voiceIcon = 12; public static int[] SnackbarLayout = new int[] { 16843039, 2130772014, 2130772227}; // aapt resource value: 0 public const int SnackbarLayout_android_maxWidth = 0; // aapt resource value: 1 public const int SnackbarLayout_elevation = 1; // aapt resource value: 2 public const int SnackbarLayout_maxActionInlineWidth = 2; public static int[] Spinner = new int[] { 16843126, 16843131, 16843362, 2130772015}; // aapt resource value: 2 public const int Spinner_android_dropDownWidth = 2; // aapt resource value: 0 public const int Spinner_android_popupBackground = 0; // aapt resource value: 1 public const int Spinner_android_prompt = 1; // aapt resource value: 3 public const int Spinner_popupTheme = 3; public static int[] SwitchCompat = new int[] { 16843044, 16843045, 16843074, 2130772058, 2130772059, 2130772060, 2130772061, 2130772062, 2130772063, 2130772064}; // aapt resource value: 1 public const int SwitchCompat_android_textOff = 1; // aapt resource value: 0 public const int SwitchCompat_android_textOn = 0; // aapt resource value: 2 public const int SwitchCompat_android_thumb = 2; // aapt resource value: 9 public const int SwitchCompat_showText = 9; // aapt resource value: 8 public const int SwitchCompat_splitTrack = 8; // aapt resource value: 6 public const int SwitchCompat_switchMinWidth = 6; // aapt resource value: 7 public const int SwitchCompat_switchPadding = 7; // aapt resource value: 5 public const int SwitchCompat_switchTextAppearance = 5; // aapt resource value: 4 public const int SwitchCompat_thumbTextPadding = 4; // aapt resource value: 3 public const int SwitchCompat_track = 3; public static int[] TabLayout = new int[] { 2130772228, 2130772229, 2130772230, 2130772231, 2130772232, 2130772233, 2130772234, 2130772235, 2130772236, 2130772237, 2130772238, 2130772239, 2130772240, 2130772241, 2130772242, 2130772243}; // aapt resource value: 3 public const int TabLayout_tabBackground = 3; // aapt resource value: 2 public const int TabLayout_tabContentStart = 2; // aapt resource value: 5 public const int TabLayout_tabGravity = 5; // aapt resource value: 0 public const int TabLayout_tabIndicatorColor = 0; // aapt resource value: 1 public const int TabLayout_tabIndicatorHeight = 1; // aapt resource value: 7 public const int TabLayout_tabMaxWidth = 7; // aapt resource value: 6 public const int TabLayout_tabMinWidth = 6; // aapt resource value: 4 public const int TabLayout_tabMode = 4; // aapt resource value: 15 public const int TabLayout_tabPadding = 15; // aapt resource value: 14 public const int TabLayout_tabPaddingBottom = 14; // aapt resource value: 13 public const int TabLayout_tabPaddingEnd = 13; // aapt resource value: 11 public const int TabLayout_tabPaddingStart = 11; // aapt resource value: 12 public const int TabLayout_tabPaddingTop = 12; // aapt resource value: 10 public const int TabLayout_tabSelectedTextColor = 10; // aapt resource value: 8 public const int TabLayout_tabTextAppearance = 8; // aapt resource value: 9 public const int TabLayout_tabTextColor = 9; public static int[] TextAppearance = new int[] { 16842901, 16842902, 16842903, 16842904, 2130772024}; // aapt resource value: 3 public const int TextAppearance_android_textColor = 3; // aapt resource value: 0 public const int TextAppearance_android_textSize = 0; // aapt resource value: 2 public const int TextAppearance_android_textStyle = 2; // aapt resource value: 1 public const int TextAppearance_android_typeface = 1; // aapt resource value: 4 public const int TextAppearance_textAllCaps = 4; public static int[] TextInputLayout = new int[] { 16842906, 16843088, 2130772244, 2130772245, 2130772246, 2130772247}; // aapt resource value: 1 public const int TextInputLayout_android_hint = 1; // aapt resource value: 0 public const int TextInputLayout_android_textColorHint = 0; // aapt resource value: 3 public const int TextInputLayout_errorEnabled = 3; // aapt resource value: 4 public const int TextInputLayout_errorTextAppearance = 4; // aapt resource value: 5 public const int TextInputLayout_hintAnimationEnabled = 5; // aapt resource value: 2 public const int TextInputLayout_hintTextAppearance = 2; public static int[] Theme = new int[] { 16842839, 16842926, 2130772065, 2130772066, 2130772067, 2130772068, 2130772069, 2130772070, 2130772071, 2130772072, 2130772073, 2130772074, 2130772075, 2130772076, 2130772077, 2130772078, 2130772079, 2130772080, 2130772081, 2130772082, 2130772083, 2130772084, 2130772085, 2130772086, 2130772087, 2130772088, 2130772089, 2130772090, 2130772091, 2130772092, 2130772093, 2130772094, 2130772095, 2130772096, 2130772097, 2130772098, 2130772099, 2130772100, 2130772101, 2130772102, 2130772103, 2130772104, 2130772105, 2130772106, 2130772107, 2130772108, 2130772109, 2130772110, 2130772111, 2130772112, 2130772113, 2130772114, 2130772115, 2130772116, 2130772117, 2130772118, 2130772119, 2130772120, 2130772121, 2130772122, 2130772123, 2130772124, 2130772125, 2130772126, 2130772127, 2130772128, 2130772129, 2130772130, 2130772131, 2130772132, 2130772133, 2130772134, 2130772135, 2130772136, 2130772137, 2130772138, 2130772139, 2130772140, 2130772141, 2130772142, 2130772143, 2130772144, 2130772145, 2130772146, 2130772147, 2130772148, 2130772149, 2130772150, 2130772151, 2130772152, 2130772153, 2130772154, 2130772155, 2130772156, 2130772157, 2130772158, 2130772159, 2130772160, 2130772161, 2130772162, 2130772163, 2130772164, 2130772165, 2130772166, 2130772167, 2130772168, 2130772169, 2130772170}; // aapt resource value: 23 public const int Theme_actionBarDivider = 23; // aapt resource value: 24 public const int Theme_actionBarItemBackground = 24; // aapt resource value: 17 public const int Theme_actionBarPopupTheme = 17; // aapt resource value: 22 public const int Theme_actionBarSize = 22; // aapt resource value: 19 public const int Theme_actionBarSplitStyle = 19; // aapt resource value: 18 public const int Theme_actionBarStyle = 18; // aapt resource value: 13 public const int Theme_actionBarTabBarStyle = 13; // aapt resource value: 12 public const int Theme_actionBarTabStyle = 12; // aapt resource value: 14 public const int Theme_actionBarTabTextStyle = 14; // aapt resource value: 20 public const int Theme_actionBarTheme = 20; // aapt resource value: 21 public const int Theme_actionBarWidgetTheme = 21; // aapt resource value: 49 public const int Theme_actionButtonStyle = 49; // aapt resource value: 45 public const int Theme_actionDropDownStyle = 45; // aapt resource value: 25 public const int Theme_actionMenuTextAppearance = 25; // aapt resource value: 26 public const int Theme_actionMenuTextColor = 26; // aapt resource value: 29 public const int Theme_actionModeBackground = 29; // aapt resource value: 28 public const int Theme_actionModeCloseButtonStyle = 28; // aapt resource value: 31 public const int Theme_actionModeCloseDrawable = 31; // aapt resource value: 33 public const int Theme_actionModeCopyDrawable = 33; // aapt resource value: 32 public const int Theme_actionModeCutDrawable = 32; // aapt resource value: 37 public const int Theme_actionModeFindDrawable = 37; // aapt resource value: 34 public const int Theme_actionModePasteDrawable = 34; // aapt resource value: 39 public const int Theme_actionModePopupWindowStyle = 39; // aapt resource value: 35 public const int Theme_actionModeSelectAllDrawable = 35; // aapt resource value: 36 public const int Theme_actionModeShareDrawable = 36; // aapt resource value: 30 public const int Theme_actionModeSplitBackground = 30; // aapt resource value: 27 public const int Theme_actionModeStyle = 27; // aapt resource value: 38 public const int Theme_actionModeWebSearchDrawable = 38; // aapt resource value: 15 public const int Theme_actionOverflowButtonStyle = 15; // aapt resource value: 16 public const int Theme_actionOverflowMenuStyle = 16; // aapt resource value: 57 public const int Theme_activityChooserViewStyle = 57; // aapt resource value: 91 public const int Theme_alertDialogButtonGroupStyle = 91; // aapt resource value: 92 public const int Theme_alertDialogCenterButtons = 92; // aapt resource value: 90 public const int Theme_alertDialogStyle = 90; // aapt resource value: 93 public const int Theme_alertDialogTheme = 93; // aapt resource value: 1 public const int Theme_android_windowAnimationStyle = 1; // aapt resource value: 0 public const int Theme_android_windowIsFloating = 0; // aapt resource value: 98 public const int Theme_autoCompleteTextViewStyle = 98; // aapt resource value: 54 public const int Theme_borderlessButtonStyle = 54; // aapt resource value: 51 public const int Theme_buttonBarButtonStyle = 51; // aapt resource value: 96 public const int Theme_buttonBarNegativeButtonStyle = 96; // aapt resource value: 97 public const int Theme_buttonBarNeutralButtonStyle = 97; // aapt resource value: 95 public const int Theme_buttonBarPositiveButtonStyle = 95; // aapt resource value: 50 public const int Theme_buttonBarStyle = 50; // aapt resource value: 99 public const int Theme_buttonStyle = 99; // aapt resource value: 100 public const int Theme_buttonStyleSmall = 100; // aapt resource value: 101 public const int Theme_checkboxStyle = 101; // aapt resource value: 102 public const int Theme_checkedTextViewStyle = 102; // aapt resource value: 83 public const int Theme_colorAccent = 83; // aapt resource value: 87 public const int Theme_colorButtonNormal = 87; // aapt resource value: 85 public const int Theme_colorControlActivated = 85; // aapt resource value: 86 public const int Theme_colorControlHighlight = 86; // aapt resource value: 84 public const int Theme_colorControlNormal = 84; // aapt resource value: 81 public const int Theme_colorPrimary = 81; // aapt resource value: 82 public const int Theme_colorPrimaryDark = 82; // aapt resource value: 88 public const int Theme_colorSwitchThumbNormal = 88; // aapt resource value: 89 public const int Theme_controlBackground = 89; // aapt resource value: 43 public const int Theme_dialogPreferredPadding = 43; // aapt resource value: 42 public const int Theme_dialogTheme = 42; // aapt resource value: 56 public const int Theme_dividerHorizontal = 56; // aapt resource value: 55 public const int Theme_dividerVertical = 55; // aapt resource value: 73 public const int Theme_dropDownListViewStyle = 73; // aapt resource value: 46 public const int Theme_dropdownListPreferredItemHeight = 46; // aapt resource value: 63 public const int Theme_editTextBackground = 63; // aapt resource value: 62 public const int Theme_editTextColor = 62; // aapt resource value: 103 public const int Theme_editTextStyle = 103; // aapt resource value: 48 public const int Theme_homeAsUpIndicator = 48; // aapt resource value: 80 public const int Theme_listChoiceBackgroundIndicator = 80; // aapt resource value: 44 public const int Theme_listDividerAlertDialog = 44; // aapt resource value: 74 public const int Theme_listPopupWindowStyle = 74; // aapt resource value: 68 public const int Theme_listPreferredItemHeight = 68; // aapt resource value: 70 public const int Theme_listPreferredItemHeightLarge = 70; // aapt resource value: 69 public const int Theme_listPreferredItemHeightSmall = 69; // aapt resource value: 71 public const int Theme_listPreferredItemPaddingLeft = 71; // aapt resource value: 72 public const int Theme_listPreferredItemPaddingRight = 72; // aapt resource value: 77 public const int Theme_panelBackground = 77; // aapt resource value: 79 public const int Theme_panelMenuListTheme = 79; // aapt resource value: 78 public const int Theme_panelMenuListWidth = 78; // aapt resource value: 60 public const int Theme_popupMenuStyle = 60; // aapt resource value: 61 public const int Theme_popupWindowStyle = 61; // aapt resource value: 104 public const int Theme_radioButtonStyle = 104; // aapt resource value: 105 public const int Theme_ratingBarStyle = 105; // aapt resource value: 67 public const int Theme_searchViewStyle = 67; // aapt resource value: 52 public const int Theme_selectableItemBackground = 52; // aapt resource value: 53 public const int Theme_selectableItemBackgroundBorderless = 53; // aapt resource value: 47 public const int Theme_spinnerDropDownItemStyle = 47; // aapt resource value: 106 public const int Theme_spinnerStyle = 106; // aapt resource value: 107 public const int Theme_switchStyle = 107; // aapt resource value: 40 public const int Theme_textAppearanceLargePopupMenu = 40; // aapt resource value: 75 public const int Theme_textAppearanceListItem = 75; // aapt resource value: 76 public const int Theme_textAppearanceListItemSmall = 76; // aapt resource value: 65 public const int Theme_textAppearanceSearchResultSubtitle = 65; // aapt resource value: 64 public const int Theme_textAppearanceSearchResultTitle = 64; // aapt resource value: 41 public const int Theme_textAppearanceSmallPopupMenu = 41; // aapt resource value: 94 public const int Theme_textColorAlertDialogListItem = 94; // aapt resource value: 66 public const int Theme_textColorSearchUrl = 66; // aapt resource value: 59 public const int Theme_toolbarNavigationButtonStyle = 59; // aapt resource value: 58 public const int Theme_toolbarStyle = 58; // aapt resource value: 2 public const int Theme_windowActionBar = 2; // aapt resource value: 4 public const int Theme_windowActionBarOverlay = 4; // aapt resource value: 5 public const int Theme_windowActionModeOverlay = 5; // aapt resource value: 9 public const int Theme_windowFixedHeightMajor = 9; // aapt resource value: 7 public const int Theme_windowFixedHeightMinor = 7; // aapt resource value: 6 public const int Theme_windowFixedWidthMajor = 6; // aapt resource value: 8 public const int Theme_windowFixedWidthMinor = 8; // aapt resource value: 10 public const int Theme_windowMinWidthMajor = 10; // aapt resource value: 11 public const int Theme_windowMinWidthMinor = 11; // aapt resource value: 3 public const int Theme_windowNoTitle = 3; public static int[] Toolbar = new int[] { 16842927, 16843072, 2130771991, 2130771994, 2130771998, 2130772010, 2130772011, 2130772012, 2130772013, 2130772015, 2130772171, 2130772172, 2130772173, 2130772174, 2130772175, 2130772176, 2130772177, 2130772178, 2130772179, 2130772180, 2130772181, 2130772182, 2130772183, 2130772184, 2130772185}; // aapt resource value: 0 public const int Toolbar_android_gravity = 0; // aapt resource value: 1 public const int Toolbar_android_minHeight = 1; // aapt resource value: 19 public const int Toolbar_collapseContentDescription = 19; // aapt resource value: 18 public const int Toolbar_collapseIcon = 18; // aapt resource value: 6 public const int Toolbar_contentInsetEnd = 6; // aapt resource value: 7 public const int Toolbar_contentInsetLeft = 7; // aapt resource value: 8 public const int Toolbar_contentInsetRight = 8; // aapt resource value: 5 public const int Toolbar_contentInsetStart = 5; // aapt resource value: 4 public const int Toolbar_logo = 4; // aapt resource value: 22 public const int Toolbar_logoDescription = 22; // aapt resource value: 17 public const int Toolbar_maxButtonHeight = 17; // aapt resource value: 21 public const int Toolbar_navigationContentDescription = 21; // aapt resource value: 20 public const int Toolbar_navigationIcon = 20; // aapt resource value: 9 public const int Toolbar_popupTheme = 9; // aapt resource value: 3 public const int Toolbar_subtitle = 3; // aapt resource value: 11 public const int Toolbar_subtitleTextAppearance = 11; // aapt resource value: 24 public const int Toolbar_subtitleTextColor = 24; // aapt resource value: 2 public const int Toolbar_title = 2; // aapt resource value: 16 public const int Toolbar_titleMarginBottom = 16; // aapt resource value: 14 public const int Toolbar_titleMarginEnd = 14; // aapt resource value: 13 public const int Toolbar_titleMarginStart = 13; // aapt resource value: 15 public const int Toolbar_titleMarginTop = 15; // aapt resource value: 12 public const int Toolbar_titleMargins = 12; // aapt resource value: 10 public const int Toolbar_titleTextAppearance = 10; // aapt resource value: 23 public const int Toolbar_titleTextColor = 23; public static int[] View = new int[] { 16842752, 16842970, 2130772186, 2130772187, 2130772188}; // aapt resource value: 1 public const int View_android_focusable = 1; // aapt resource value: 0 public const int View_android_theme = 0; // aapt resource value: 3 public const int View_paddingEnd = 3; // aapt resource value: 2 public const int View_paddingStart = 2; // aapt resource value: 4 public const int View_theme = 4; public static int[] ViewBackgroundHelper = new int[] { 16842964, 2130772189, 2130772190}; // aapt resource value: 0 public const int ViewBackgroundHelper_android_background = 0; // aapt resource value: 1 public const int ViewBackgroundHelper_backgroundTint = 1; // aapt resource value: 2 public const int ViewBackgroundHelper_backgroundTintMode = 2; public static int[] ViewStubCompat = new int[] { 16842960, 16842994, 16842995}; // aapt resource value: 0 public const int ViewStubCompat_android_id = 0; // aapt resource value: 2 public const int ViewStubCompat_android_inflatedId = 2; // aapt resource value: 1 public const int ViewStubCompat_android_layout = 1; public static int[] com_facebook_like_view = new int[] { 2130772248, 2130772249, 2130772250, 2130772251, 2130772252, 2130772253}; // aapt resource value: 4 public const int com_facebook_like_view_com_facebook_auxiliary_view_position = 4; // aapt resource value: 0 public const int com_facebook_like_view_com_facebook_foreground_color = 0; // aapt resource value: 5 public const int com_facebook_like_view_com_facebook_horizontal_alignment = 5; // aapt resource value: 1 public const int com_facebook_like_view_com_facebook_object_id = 1; // aapt resource value: 2 public const int com_facebook_like_view_com_facebook_object_type = 2; // aapt resource value: 3 public const int com_facebook_like_view_com_facebook_style = 3; public static int[] com_facebook_login_view = new int[] { 2130772254, 2130772255, 2130772256, 2130772257}; // aapt resource value: 0 public const int com_facebook_login_view_com_facebook_confirm_logout = 0; // aapt resource value: 1 public const int com_facebook_login_view_com_facebook_login_text = 1; // aapt resource value: 2 public const int com_facebook_login_view_com_facebook_logout_text = 2; // aapt resource value: 3 public const int com_facebook_login_view_com_facebook_tooltip_mode = 3; public static int[] com_facebook_profile_picture_view = new int[] { 2130772258, 2130772259}; // aapt resource value: 1 public const int com_facebook_profile_picture_view_com_facebook_is_cropped = 1; // aapt resource value: 0 public const int com_facebook_profile_picture_view_com_facebook_preset_size = 0; static Styleable() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Styleable() { } } } } #pragma warning restore 1591
{ "content_hash": "539b0f24c08e0472440e791dac2640ef", "timestamp": "", "source": "github", "line_count": 5715, "max_line_length": 142, "avg_line_length": 31.79825021872266, "alnum_prop": 0.7116443896614152, "repo_name": "azure-appservice-samples/ContosoMoments", "id": "dae4bb04782ecc8f81ee47516d58b52ef1169fdf", "size": "182153", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "src/Mobile/ContosoMoments.Droid/Resources/Resource.Designer.cs", "mode": "33188", "license": "mit", "language": [ { "name": "ASP", "bytes": "107" }, { "name": "Batchfile", "bytes": "6174" }, { "name": "C", "bytes": "613" }, { "name": "C#", "bytes": "185206" }, { "name": "CSS", "bytes": "7525" }, { "name": "Gnuplot", "bytes": "5822" }, { "name": "HTML", "bytes": "12138" }, { "name": "JavaScript", "bytes": "180557" }, { "name": "PowerShell", "bytes": "8054" }, { "name": "Shell", "bytes": "1101" } ], "symlink_target": "" }
package com.intellij.openapi.diff.impl.external; import com.intellij.openapi.Disposable; import com.intellij.openapi.components.PersistentStateComponent; import com.intellij.openapi.components.State; import com.intellij.openapi.components.Storage; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.diff.DiffManager; import com.intellij.openapi.diff.DiffPanel; import com.intellij.openapi.diff.DiffRequest; import com.intellij.openapi.diff.DiffTool; import com.intellij.openapi.diff.impl.ComparisonPolicy; import com.intellij.openapi.diff.impl.DiffPanelImpl; import com.intellij.openapi.diff.impl.DiffUtil; import com.intellij.openapi.diff.impl.processing.HighlightMode; import com.intellij.openapi.editor.markup.MarkupEditorFilter; import com.intellij.openapi.util.Disposer; import com.intellij.openapi.vcs.changes.actions.migrate.MigrateDiffTool; import com.intellij.util.config.*; import org.jdom.Element; import org.jetbrains.annotations.NonNls; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.awt.*; @State( name = "DiffManager", storages = { @Storage("diff.xml"), @Storage(value = "other.xml", deprecated = true) } ) @Deprecated public class DiffManagerImpl extends DiffManager implements PersistentStateComponent<Element> { public static final int FULL_DIFF_DIVIDER_POLYGONS_OFFSET = 3; private static final Logger LOG = Logger.getInstance(DiffManagerImpl.class); private static final Externalizer<String> TOOL_PATH_UPDATE = new Externalizer<String>() { @NonNls private static final String NEW_VALUE = "newValue"; @Override public String readValue(Element dataElement) { String path = dataElement.getAttributeValue(NEW_VALUE); if (path != null) { return path; } String prevValue = dataElement.getAttributeValue(VALUE_ATTRIBUTE); return prevValue != null ? prevValue.trim() : null; } @Override public void writeValue(Element dataElement, String path) { dataElement.setAttribute(VALUE_ATTRIBUTE, path); dataElement.setAttribute(NEW_VALUE, path); } }; public static final StringProperty FOLDERS_TOOL = new StringProperty("foldersTool", ""); public static final StringProperty FILES_TOOL = new StringProperty("filesTool", ""); public static final StringProperty MERGE_TOOL = new StringProperty("mergeTool", ""); public static final StringProperty MERGE_TOOL_PARAMETERS = new StringProperty("mergeToolParameters", ""); public static final BooleanProperty ENABLE_FOLDERS = new BooleanProperty("enableFolders", false); public static final BooleanProperty ENABLE_FILES = new BooleanProperty("enableFiles", false); public static final BooleanProperty ENABLE_MERGE = new BooleanProperty("enableMerge", false); private final ExternalizablePropertyContainer myProperties; public static final DiffTool INTERNAL_DIFF = new FrameDiffTool(); private static final MarkupEditorFilter DIFF_EDITOR_FILTER = editor -> DiffUtil.isDiffEditor(editor); private ComparisonPolicy myComparisonPolicy = ComparisonPolicy.DEFAULT; private HighlightMode myHighlightMode = HighlightMode.BY_WORD; @NonNls public static final String COMPARISON_POLICY_ATTR_NAME = "COMPARISON_POLICY"; @NonNls public static final String HIGHLIGHT_MODE_ATTR_NAME = "HIGHLIGHT_MODE"; public DiffManagerImpl() { myProperties = new ExternalizablePropertyContainer(); myProperties.registerProperty(ENABLE_FOLDERS); myProperties.registerProperty(FOLDERS_TOOL, TOOL_PATH_UPDATE); myProperties.registerProperty(ENABLE_FILES); myProperties.registerProperty(FILES_TOOL, TOOL_PATH_UPDATE); myProperties.registerProperty(ENABLE_MERGE); myProperties.registerProperty(MERGE_TOOL, TOOL_PATH_UPDATE); myProperties.registerProperty(MERGE_TOOL_PARAMETERS); } @Override public DiffTool getIdeaDiffTool() { return MigrateDiffTool.INSTANCE; } @Override public DiffTool getDiffTool() { return MigrateDiffTool.INSTANCE; } @Override public MarkupEditorFilter getDiffEditorFilter() { return DIFF_EDITOR_FILTER; } public static DiffManagerImpl getInstanceEx() { return (DiffManagerImpl)DiffManager.getInstance(); } @Nullable @Override public Element getState() { Element state = new Element("state"); myProperties.writeExternal(state); if (myComparisonPolicy != ComparisonPolicy.DEFAULT) { state.setAttribute(COMPARISON_POLICY_ATTR_NAME, myComparisonPolicy.getName()); } if (myHighlightMode != HighlightMode.BY_WORD) { state.setAttribute(HIGHLIGHT_MODE_ATTR_NAME, myHighlightMode.name()); } return state; } @Override public void loadState(@NotNull Element state) { myProperties.readExternal(state); String policyName = state.getAttributeValue(COMPARISON_POLICY_ATTR_NAME); if (policyName != null) { for (ComparisonPolicy policy : ComparisonPolicy.getAllInstances()) { if (policy.getName().equals(policyName)) { myComparisonPolicy = policy; break; } } } String modeName = state.getAttributeValue(HIGHLIGHT_MODE_ATTR_NAME); if (modeName != null) { try { myHighlightMode = HighlightMode.valueOf(modeName); } catch (IllegalArgumentException ignore) { } } } public AbstractProperty.AbstractPropertyContainer getProperties() { return myProperties; } static DiffPanel createDiffPanel(DiffRequest data, Window window, @NotNull Disposable parentDisposable, DiffTool tool) { DiffPanel diffPanel = null; try { diffPanel = new DiffPanelImpl(window, data.getProject(), true, true, FULL_DIFF_DIVIDER_POLYGONS_OFFSET, tool); Disposer.register(parentDisposable, diffPanel); int contentCount = data.getContents().length; LOG.assertTrue(contentCount == 2, String.valueOf(contentCount)); LOG.assertTrue(data.getContentTitles().length == contentCount); diffPanel.setDiffRequest(data); return diffPanel; } catch (RuntimeException e) { if (diffPanel != null) { Disposer.dispose(diffPanel); } throw e; } } @NotNull public ComparisonPolicy getComparisonPolicy() { return myComparisonPolicy; } public void setComparisonPolicy(@NotNull ComparisonPolicy value) { myComparisonPolicy = value; } @NotNull public HighlightMode getHighlightMode() { return myHighlightMode; } public void setHighlightMode(@NotNull HighlightMode highlightMode) { myHighlightMode = highlightMode; } }
{ "content_hash": "862cd2ddd599368b09084a16e7e9052f", "timestamp": "", "source": "github", "line_count": 187, "max_line_length": 122, "avg_line_length": 35.17112299465241, "alnum_prop": 0.7448684810703968, "repo_name": "jk1/intellij-community", "id": "8a39c7446b9c0973aee9116efed327f0817d2309", "size": "6718", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "platform/platform-impl/src/com/intellij/openapi/diff/impl/external/DiffManagerImpl.java", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
@interface PodsDummy_Pods_ZLPlayNews : NSObject @end @implementation PodsDummy_Pods_ZLPlayNews @end
{ "content_hash": "72d55691047867d61bc56c041607f60c", "timestamp": "", "source": "github", "line_count": 4, "max_line_length": 47, "avg_line_length": 25, "alnum_prop": 0.83, "repo_name": "TsinHzl/ZLPlayNews", "id": "4e7047f2ca57a1c3aff471e240bfa209c0f1dfa8", "size": "134", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Pods/Target Support Files/Pods-ZLPlayNews/Pods-ZLPlayNews-dummy.m", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "768" }, { "name": "Objective-C", "bytes": "243288" } ], "symlink_target": "" }
package index import ( "bytes" "crypto/sha1" "errors" "hash" "io" "time" "gopkg.in/src-d/go-git.v4/utils/binary" ) var ( // EncodeVersionSupported is the range of supported index versions EncodeVersionSupported uint32 = 2 // ErrInvalidTimestamp is returned by Encode if a Index with a Entry with // negative timestamp values ErrInvalidTimestamp = errors.New("negative timestamps are not allowed") ) // An Encoder writes an Index to an output stream. type Encoder struct { w io.Writer hash hash.Hash } // NewEncoder returns a new encoder that writes to w. func NewEncoder(w io.Writer) *Encoder { h := sha1.New() mw := io.MultiWriter(w, h) return &Encoder{mw, h} } // Encode writes the Index to the stream of the encoder. func (e *Encoder) Encode(idx *Index) error { // TODO: support versions v3 and v4 // TODO: support extensions if idx.Version != EncodeVersionSupported { return ErrUnsupportedVersion } if err := e.encodeHeader(idx); err != nil { return err } if err := e.encodeEntries(idx); err != nil { return err } return e.encodeFooter() } func (e *Encoder) encodeHeader(idx *Index) error { return binary.Write(e.w, indexSignature, idx.Version, uint32(len(idx.Entries)), ) } func (e *Encoder) encodeEntries(idx *Index) error { for _, entry := range idx.Entries { if err := e.encodeEntry(&entry); err != nil { return err } wrote := entryHeaderLength + len(entry.Name) if err := e.padEntry(wrote); err != nil { return err } } return nil } func (e *Encoder) encodeEntry(entry *Entry) error { if entry.IntentToAdd || entry.SkipWorktree { return ErrUnsupportedVersion } sec, nsec, err := e.timeToUint32(&entry.CreatedAt) if err != nil { return err } msec, mnsec, err := e.timeToUint32(&entry.ModifiedAt) if err != nil { return err } flags := uint16(entry.Stage&0x3) << 12 if l := len(entry.Name); l < nameMask { flags |= uint16(l) } else { flags |= nameMask } flow := []interface{}{ sec, nsec, msec, mnsec, entry.Dev, entry.Inode, entry.Mode, entry.UID, entry.GID, entry.Size, entry.Hash[:], flags, } if err := binary.Write(e.w, flow...); err != nil { return err } return binary.Write(e.w, []byte(entry.Name)) } func (e *Encoder) timeToUint32(t *time.Time) (uint32, uint32, error) { if t.IsZero() { return 0, 0, nil } if t.Unix() < 0 || t.UnixNano() < 0 { return 0, 0, ErrInvalidTimestamp } return uint32(t.Unix()), uint32(t.Nanosecond()), nil } func (e *Encoder) padEntry(wrote int) error { padLen := 8 - wrote%8 _, err := e.w.Write(bytes.Repeat([]byte{'\x00'}, padLen)) return err } func (e *Encoder) encodeFooter() error { return binary.Write(e.w, e.hash.Sum(nil)) }
{ "content_hash": "4459aaf621a0c27dd9ff99959451604c", "timestamp": "", "source": "github", "line_count": 141, "max_line_length": 74, "avg_line_length": 19.29078014184397, "alnum_prop": 0.6606617647058823, "repo_name": "ajkerrigan-mdsol/awless", "id": "94fbc68b4cf589516aecf552c490c2052d8cd506", "size": "2720", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "vendor/gopkg.in/src-d/go-git.v4/plumbing/format/index/encoder.go", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Go", "bytes": "777451" }, { "name": "Shell", "bytes": "2484" } ], "symlink_target": "" }
package org.springframework.boot.autoconfigure.transaction; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List; import org.springframework.boot.util.LambdaSafe; import org.springframework.transaction.PlatformTransactionManager; /** * A collection of {@link PlatformTransactionManagerCustomizer}. * * @author Phillip Webb * @since 1.5.0 */ public class TransactionManagerCustomizers { private final List<PlatformTransactionManagerCustomizer<?>> customizers; public TransactionManagerCustomizers( Collection<? extends PlatformTransactionManagerCustomizer<?>> customizers) { this.customizers = (customizers == null ? Collections.emptyList() : new ArrayList<>(customizers)); } @SuppressWarnings("unchecked") public void customize(PlatformTransactionManager transactionManager) { LambdaSafe .callbacks(PlatformTransactionManagerCustomizer.class, this.customizers, transactionManager) .withLogger(TransactionManagerCustomizers.class) .invoke((customizer) -> customizer.customize(transactionManager)); } }
{ "content_hash": "6d95a6ee692ba9d2a0d976a3b63ee579", "timestamp": "", "source": "github", "line_count": 38, "max_line_length": 79, "avg_line_length": 29.105263157894736, "alnum_prop": 0.7929475587703436, "repo_name": "isopov/spring-boot", "id": "68e8f5a3f0a54c4428344cdcd51f93a6b7db3c86", "size": "1726", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/transaction/TransactionManagerCustomizers.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "6942" }, { "name": "CSS", "bytes": "5769" }, { "name": "FreeMarker", "bytes": "3599" }, { "name": "Groovy", "bytes": "48922" }, { "name": "HTML", "bytes": "69601" }, { "name": "Java", "bytes": "13188763" }, { "name": "JavaScript", "bytes": "37789" }, { "name": "Kotlin", "bytes": "25029" }, { "name": "Ruby", "bytes": "1308" }, { "name": "Shell", "bytes": "36816" }, { "name": "Smarty", "bytes": "2885" }, { "name": "XSLT", "bytes": "36394" } ], "symlink_target": "" }
"""Functions for adding highlighting tags to nodes and edges in BEL graphs.""" from typing import Iterable, Optional from pybel import BELGraph from pybel.dsl import BaseEntity from pybel.struct.filters.typing import EdgeIterator from pybel.struct.pipeline import in_place_transformation, uni_in_place_transformation __all__ = [ 'NODE_HIGHLIGHT', 'EDGE_HIGHLIGHT', 'is_node_highlighted', 'highlight_nodes', 'remove_highlight_nodes', 'is_edge_highlighted', 'highlight_edges', 'remove_highlight_edges', 'highlight_subgraph', 'remove_highlight_subgraph', ] NODE_HIGHLIGHT = 'pybel_highlight' NODE_HIGHLIGHT_DEFAULT_COLOR = 'orange' EDGE_HIGHLIGHT = 'pybel_highlight' EDGE_HIGHLIGHT_DEFAULT_COLOR = 'orange' @in_place_transformation def highlight_nodes( graph: BELGraph, nodes: Optional[Iterable[BaseEntity]] = None, color: Optional[str] = None, ) -> None: """Add a highlight tag to the given nodes. :param graph: A BEL graph :param nodes: The nodes to add a highlight tag on :param color: The color to highlight (use something that works with CSS) """ color = color or NODE_HIGHLIGHT_DEFAULT_COLOR for node in nodes if nodes is not None else graph: graph.nodes[node][NODE_HIGHLIGHT] = color def is_node_highlighted(graph: BELGraph, node: BaseEntity) -> bool: """Return if the given node is highlighted.""" return NODE_HIGHLIGHT in graph.nodes[node] @in_place_transformation def remove_highlight_nodes( graph: BELGraph, nodes: Optional[Iterable[BaseEntity]] = None, ) -> None: """Remove the highlight from the given nodes, or all nodes if none given. :param graph: A BEL graph :param nodes: The list of nodes to un-highlight """ for node in graph if nodes is None else nodes: if is_node_highlighted(graph, node): del graph.nodes[node][NODE_HIGHLIGHT] @in_place_transformation def highlight_edges( graph: BELGraph, edges: Optional[EdgeIterator] = None, color: Optional[str] = None, ) -> None: """Add a highlight tag to the given edges. :param graph: A BEL graph :param edges: The edges (3-tuples of u, v, k) to add a highlight tag on :param color: The color to highlight (use something that works with CSS) """ if color is None: color = EDGE_HIGHLIGHT_DEFAULT_COLOR for u, v, k, d in edges if edges is not None else graph.edges(keys=True, data=True): graph[u][v][k][EDGE_HIGHLIGHT] = color def is_edge_highlighted(graph: BELGraph, u: BaseEntity, v: BaseEntity, k: str) -> bool: """Return if the given edge is highlighted.""" return EDGE_HIGHLIGHT in graph[u][v][k] @in_place_transformation def remove_highlight_edges( graph: BELGraph, edges: Optional[EdgeIterator] = None, ) -> None: """Remove the highlight from the given edges, or all edges if none given. :param graph: A BEL graph :param edges: The edges (3-tuple of u, v, k) to remove the highlight from) """ for u, v, k in graph.edges(keys=True) if edges is None else edges: if is_edge_highlighted(graph, u, v, k): del graph[u][v][k][EDGE_HIGHLIGHT] @uni_in_place_transformation def highlight_subgraph(universe: BELGraph, graph: BELGraph) -> None: """Highlight all nodes/edges in the universe that in the given graph. :param universe: The universe of knowledge :param graph: The BEL graph to mutate """ highlight_nodes(universe, graph.nodes()) highlight_edges(universe, graph.edges()) @in_place_transformation def remove_highlight_subgraph(graph: BELGraph, subgraph: BELGraph) -> None: """Remove the highlight from all nodes/edges in the graph that are in the subgraph. :param graph: The BEL graph to mutate :param subgraph: The subgraph from which to remove the highlighting """ remove_highlight_nodes(graph, subgraph.nodes()) remove_highlight_edges(graph, subgraph.edges())
{ "content_hash": "916ef117c65e2e58f4aa9ef170738195", "timestamp": "", "source": "github", "line_count": 124, "max_line_length": 88, "avg_line_length": 31.911290322580644, "alnum_prop": 0.6901693201920647, "repo_name": "pybel/pybel-tools", "id": "2a18cb3d337a36043d58c74e830c435bbd829d85", "size": "3982", "binary": false, "copies": "1", "ref": "refs/heads/develop", "path": "src/pybel_tools/mutation/highlight.py", "mode": "33188", "license": "mit", "language": [ { "name": "HTML", "bytes": "40316" }, { "name": "JavaScript", "bytes": "462" }, { "name": "Jupyter Notebook", "bytes": "793365" }, { "name": "Python", "bytes": "385330" } ], "symlink_target": "" }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="it"> <head> <!-- Generated by javadoc (version 1.7.0_03) on Wed Dec 04 15:38:03 CET 2013 --> <title>Uses of Class jade.domain.FIPAAgentManagement.FIPAManagementOntology (JADE v4.3.1 API)</title> <meta name="date" content="2013-12-04"> <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> </head> <body> <script type="text/javascript"><!-- if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Class jade.domain.FIPAAgentManagement.FIPAManagementOntology (JADE v4.3.1 API)"; } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar_top"> <!-- --> </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../jade/domain/FIPAAgentManagement/FIPAManagementOntology.html" title="class in jade.domain.FIPAAgentManagement">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../index-all.html">Index</a></li> <li><a href="../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../index.html?jade/domain/FIPAAgentManagement/\class-useFIPAManagementOntology.html" target="_top">Frames</a></li> <li><a href="FIPAManagementOntology.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip-navbar_top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <div class="header"> <h2 title="Uses of Class jade.domain.FIPAAgentManagement.FIPAManagementOntology" class="title">Uses of Class<br>jade.domain.FIPAAgentManagement.FIPAManagementOntology</h2> </div> <div class="classUseContainer">No usage of jade.domain.FIPAAgentManagement.FIPAManagementOntology</div> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar_bottom"> <!-- --> </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../jade/domain/FIPAAgentManagement/FIPAManagementOntology.html" title="class in jade.domain.FIPAAgentManagement">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../index-all.html">Index</a></li> <li><a href="../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../index.html?jade/domain/FIPAAgentManagement/\class-useFIPAManagementOntology.html" target="_top">Frames</a></li> <li><a href="FIPAManagementOntology.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip-navbar_bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> <p class="legalCopy"><small><center>These are the official <i><a href=http://jade.tilab.com target=top>JADE</a></i> API. For these API backward compatibility is guaranteed accross JADE versions</center></small></p> </body> </html>
{ "content_hash": "44ce8b8ff567ed8e1a2f73588d906ebf", "timestamp": "", "source": "github", "line_count": 116, "max_line_length": 214, "avg_line_length": 40.008620689655174, "alnum_prop": 0.6265890971773325, "repo_name": "shookees/SmartFood_old", "id": "04bf0ba30fbe71c3d086c7ef6db399b8a4d8caed", "size": "4641", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "lib/JADE/doc/api/jade/domain/FIPAAgentManagement/class-use/FIPAManagementOntology.html", "mode": "33188", "license": "mit", "language": [ { "name": "CLIPS", "bytes": "8093" }, { "name": "CSS", "bytes": "20703" }, { "name": "Java", "bytes": "7455756" }, { "name": "Shell", "bytes": "2707" } ], "symlink_target": "" }
A command line interface to the Auburn ACM web app (auacm.com) ## Installation ### From pip Run `pip install auacm` ### Build from source Clone this repository `git clone https://github.com/brandonlmorris/auacm-cli` Then in the top-level directroy, run `python3 setup.py install` This will install all the code and create the `auacm` shell command. --- ## Usage `auacm-cli` installs itself as a shell script. In the terminal, run `$ auacm` to display the help. All of the features of `auacm-cli` are written as subcommands to the main `auacm` script. To log in, run `$ auacm login` You will be prompted for your name and password. Your session will be saved, so you don't need to authenticate with every run of the script. Subcommands `logout` and `whoami` exist to destroy the current session and print data about the current user respectively. ### Problems To view all the problems on the server, run `$ auacm problem` (Protip: pipe the result into `less` for your reading pleasure: `$ auacm problem | less`) To search for a problem, simply add the query after `problem` (multi-word queries must be enclosed in quotes): `$ auacm problem "cash cow"` Adding a `-v` flag will increase the verbosity of the results, providing the problem id, shortname, difficult, etc. To get more detailed information on a specific problem, including the description, input/output, and sample cases, run the subcommand `problem-info` with the problem name or id. `$ auacm problem-info parity` **Note:** Searching by problem name is done by case-insensitive substrings. If you search "cow" but another problem contains "cow" and comes first alphabetically, that other problem will be used. ### Submission You can also submit solutions to problems using `auacm`. To do so, simply run the `submit` subcommand, followed by the problem name and the solution file: `$ auacm submit "cash cow" solution.py` Note that if you're submitting a Python solution, you can use the `-p` flag to indicate the version of Python. The default is Python 3. `$ auacm submit parity parity.py -p 2` After you submit, `auacm` will query your submission to obtain the results. ## Competitions The `competition` subcommand can list competitions, and give a detailed view of a particular competition. To see all competitions, run `$ auacm competitions` To get more info about a specific competition, run the command with the competition name afterword (multi-word queries need to be enclosed in spaces). `$ auacm competitions "october 15th" Similar to problems, you can also search for a competition using it's unique competition id with the `-i` or `--id` flag. --- ## Bugs? Improvements? Funny jokes? Send them to me at brandon dot morris95 at gmail dot com, or leave a comment on this repo. Contributions are warmly welcomed.
{ "content_hash": "eaae15ed10702100cd5e1fc619458e23", "timestamp": "", "source": "github", "line_count": 103, "max_line_length": 78, "avg_line_length": 27.41747572815534, "alnum_prop": 0.7560198300283286, "repo_name": "BrandonLMorris/auacm-cli", "id": "1679a685835750a3b256b8e32a2a7e6388cd9cf4", "size": "2837", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "README.md", "mode": "33188", "license": "mit", "language": [ { "name": "Python", "bytes": "37369" } ], "symlink_target": "" }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>reduction-effects: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.5.0 / reduction-effects - 0.1.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> reduction-effects <small> 0.1.0 <span class="label label-info">Not compatible</span> </small> </h1> <p><em><script>document.write(moment("2020-06-25 03:38:52 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-06-25 03:38:52 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-num base Num library distributed with the OCaml compiler base-threads base base-unix base camlp5 7.12 Preprocessor-pretty-printer of OCaml conf-findutils 1 Virtual package relying on findutils coq 8.5.0 Formal proof management system. num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.05.0 The OCaml compiler (virtual package) ocaml-base-compiler 4.05.0 Official 4.05.0 release ocaml-config 1 OCaml Switch Configuration # opam file: opam-version: &quot;2.0&quot; name: &quot;coq-reduction-effects&quot; version: &quot;0.1.0&quot; synopsis: &quot;A Coq plugin to add reduction side effects to some Coq reduction strategies&quot; maintainer: &quot;Yishuai Li &lt;yishuai@cis.upenn.edu&gt;&quot; authors: &quot;Hugo Herbelin &lt;Hugo.Herbelin@inria.fr&gt;&quot; license: &quot;LGPL-2.1&quot; homepage: &quot;https://github.com/coq-community/reduction-effects&quot; bug-reports: &quot;https://github.com/coq-community/reduction-effects/issues&quot; depends: [ &quot;coq&quot; { &gt;= &quot;8.7&quot; &lt; &quot;8.9~&quot; } ] build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;-j%{jobs}%&quot; &quot;install&quot;] run-test:[make &quot;-j%{jobs}%&quot; &quot;test&quot;] remove: [make &quot;-j%{jobs}%&quot; &quot;uninstall&quot;] dev-repo: &quot;git+https://github.com/coq-community/reduction-effects&quot; url { src: &quot;https://github.com/coq-community/reduction-effects/archive/v0.1.0.tar.gz&quot; checksum: &quot;md5=20becd7b8910a4f7fefd7dfc24fbc33f&quot; } flags: light-uninstall tags: [ &quot;logpath:ReductionEffect&quot; ] </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-reduction-effects.0.1.0 coq.8.5.0</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.5.0). The following dependencies couldn&#39;t be met: - coq-reduction-effects -&gt; coq &gt;= 8.7 Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-reduction-effects.0.1.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> <small>Sources are on <a href="https://github.com/coq-bench">GitHub</a>. © Guillaume Claret.</small> </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
{ "content_hash": "ff9cecc0153e78f1684952dde3c268f8", "timestamp": "", "source": "github", "line_count": 165, "max_line_length": 157, "avg_line_length": 41.157575757575756, "alnum_prop": 0.5420409365336475, "repo_name": "coq-bench/coq-bench.github.io", "id": "5203fc7452d3df0a1620f4887381117b4f271700", "size": "6793", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "clean/Linux-x86_64-4.05.0-2.0.6/released/8.5.0/reduction-effects/0.1.0.html", "mode": "33188", "license": "mit", "language": [], "symlink_target": "" }
(function ($, document, undefined) { var pluses = /\+/g; function raw(s) { return s; } function decoded(s) { return unRfc2068(decodeURIComponent(s.replace(pluses, ' '))); } function unRfc2068(value) { if (value.indexOf('"') === 0) { // This is a quoted cookie as according to RFC2068, unescape value = value.slice(1, -1).replace('\\"', '"').replace('\\\\', '\\'); } return value; }; var config = $.cookie = function (key, value, options) { // write if (value !== undefined) { options = $.extend({}, config.defaults, options); if (value === null) { options.expires = -1; } if (typeof options.expires === 'number') { var days = options.expires, t = options.expires = new Date(); t.setDate(t.getDate() + days); } value = config.json ? JSON.stringify(value) : String(value); return (document.cookie = [ encodeURIComponent(key), '=', config.raw ? value : encodeURIComponent(value), options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE options.path ? '; path=' + options.path : '', options.domain ? '; domain=' + options.domain : '', options.secure ? '; secure' : '' ].join('')); } // read var decode = config.raw ? raw : decoded; var cookies = document.cookie.split('; '); for (var i = 0, l = cookies.length; i < l; i++) { var parts = cookies[i].split('='); if (decode(parts.shift()) === key) { var cookie = decode(parts.join('=')); return config.json ? JSON.parse(cookie) : cookie; } } return null; }; config.defaults = {}; $.removeCookie = function (key, options) { if ($.cookie(key) !== null) { $.cookie(key, null, options); return true; } return false; }; })(jQuery, document);
{ "content_hash": "cc0116ace4d52501b91816a74aeb050b", "timestamp": "", "source": "github", "line_count": 72, "max_line_length": 129, "avg_line_length": 25.041666666666668, "alnum_prop": 0.5867997781475319, "repo_name": "ruoyousi/js-spa", "id": "8ed3f698169cc8ddf7cc385ae0e1906db9d0709c", "size": "1953", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "build/static/js/jquery.cookie.js", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "3023" }, { "name": "CSS", "bytes": "54370" }, { "name": "HTML", "bytes": "39543" }, { "name": "JavaScript", "bytes": "241077" } ], "symlink_target": "" }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Automata; //Copyright (C) 2004 Stephen Wan namespace AutomataPDL { public static class PDLEditDistance { #region PDL edit distance /// <summary> /// Returns the minimum PDL edit distance ratio between all the PDL A1 and A2 inferred for dfa1 and dfa2 /// in less than timeout. For every min_ij(d(A1i,A2j)/|A1i) /// </summary> /// <param name="dfa1"></param> /// <param name="dfa2"></param> /// <param name="al"></param> /// <param name="solver"></param> /// <param name="timeout"></param> /// <returns></returns> public static double GetMinimalFormulaEditDistanceRatio(Automaton<BDD> dfa1, Automaton<BDD> dfa2, HashSet<char> al, CharSetSolver solver, long timeout, PDLEnumerator pdlEnumerator) { var v = GetMinimalFormulaEditDistanceTransformation(dfa1, dfa2, al, solver, timeout, pdlEnumerator); if(v!=null){ var transformation = v.First; var scaling = 1.0; return transformation.totalCost / (transformation.minSizeForTreeA * scaling); } return 10; } /// <summary> /// Find the min formula edit distance between two dfas /// </summary> /// <param name="dfa1"></param> /// <param name="dfa2"></param> /// <param name="al"></param> /// <param name="solver"></param> /// <param name="timeout"></param> /// <returns>transformation of smallest cost, transf of feeedback (first one)</returns> public static Pair<Transformation, Transformation> GetMinimalFormulaEditDistanceTransformation(Automaton<BDD> dfa1, Automaton<BDD> dfa2, HashSet<char> al, CharSetSolver solver, long timeout, PDLEnumerator pdlEnumerator) { int maxFormulas = 30; //Find all the formulas describing dfa1 and dfa2 var v = new StringBuilder(); List<PDLPred> pdlFormulae1 = new List<PDLPred>(); foreach (var phi in pdlEnumerator.SynthesizePDL(al, dfa1, solver, v, timeout, maxFormulas)) { //Console.WriteLine(phi); pdlFormulae1.Add(phi); } if (pdlFormulae1.Count == 0) return null; List<PDLPred> pdlFormulae2 = new List<PDLPred>(); //Console.WriteLine(); foreach (var phi in pdlEnumerator.SynthesizePDL(al, dfa2, solver, v, timeout, maxFormulas)) { //Console.WriteLine(phi); pdlFormulae2.Add(phi); } if (pdlFormulae2.Count == 0) return null; // Initialize parameters for feedback search double minSizePhi1 = 20; PDLPred smallestPhi1 = null; PDLPred closestPhi2toSmallerPhi1 = null; //This first enumerations find the smallest phi1 describing the solution and the closest phi2 describing the solution for feedback foreach (var phi1 in pdlFormulae1) { var sizePhi1 = phi1.GetFormulaSize(); if (sizePhi1 < minSizePhi1) { minSizePhi1 = (double)sizePhi1; smallestPhi1 = phi1; } } // Look for the closest formula to the smallest one describing phi1 // The formula can be at most distance 2 from the smallest phi1 double minEd = 3; foreach (var phi2 in pdlFormulae2) { if (!phi2.IsComplex()) { if (minEd != 1 && ((int)Math.Abs(smallestPhi1.GetFormulaSize() - phi2.GetFormulaSize())) <= minEd) { var tr = GetFormulaEditDistance(smallestPhi1, phi2); var fed = tr.totalCost; if (fed < minEd) { minEd = fed; closestPhi2toSmallerPhi1 = phi2; } //if (closestPhi2toSmallerPhi1 == null || closestPhi2toSmallerPhi1.GetFormulaSize() > phi2.GetFormulaSize()) // closestPhi2toSmallerPhi1 = phi2; if (minEd == 0) throw new PDLException("cannot be 0"); } } } //Initialize parameters for grading search //This second enumerations are for grading minEd = 100; minSizePhi1 = 100; PDLPred phiMin1 = null; PDLPred phiMin2 = null; foreach (var phi1 in pdlFormulae1) { var sizePhi1 = phi1.GetFormulaSize(); if (sizePhi1 < minSizePhi1) minSizePhi1 = (double)sizePhi1; foreach (var phi2 in pdlFormulae2) { if (minEd != 1 && ((int)Math.Abs(phi1.GetFormulaSize() - phi2.GetFormulaSize())) <= minEd) { var tr = GetFormulaEditDistance(phi1, phi2); var fed = tr.totalCost; if (fed < minEd) { minEd = fed; phiMin1 = phi1; phiMin2 = phi2; } if (minEd == 0) throw new PDLException("cannot be 0"); } } } Transformation tgrade = GetFormulaEditDistance(phiMin1, phiMin2); tgrade.minSizeForTreeA = minSizePhi1; Transformation tfeed = null; if (closestPhi2toSmallerPhi1 != null) { tfeed = GetFormulaEditDistance(smallestPhi1, closestPhi2toSmallerPhi1); tfeed.minSizeForTreeA = minSizePhi1; } return new Pair<Transformation, Transformation>(tgrade, tfeed); } /// <summary> /// Returns the edit distance ration between 2 PDLpred A1,A2 /// </summary> /// <param name="phi1"></param> /// <param name="phi2"></param> /// <returns>d(A1,A2)</returns> internal static Transformation GetFormulaEditDistance(PDLPred phi1, PDLPred phi2) { TreeEditDistance treeCorrector = new TreeEditDistance(); TreeDefinition aTree = CreateTreeHelper.MakeTree(phi1); TreeDefinition bTree = CreateTreeHelper.MakeTree(phi2); Transformation transform = treeCorrector.getTransformation(aTree, bTree); return transform; } #endregion } public class TreeEditDistance { private double[,] distance = null; private TreeEditScript[,] distScript = null; //Computes tree edits distance betwee aTree and bTree public Transformation findDistance(TreeDefinition aTree, TreeDefinition bTree) { distance = new double[aTree.getNodeCount() + 1, bTree.getNodeCount() + 1]; distScript = new TreeEditScript[aTree.getNodeCount() + 1, bTree.getNodeCount() + 1]; //Preliminaries //1. Find left-most leaf and key roots Dictionary<int, int> aLeftLeaf = new Dictionary<int, int>(); Dictionary<int, int> bLeftLeaf = new Dictionary<int, int>(); List<int> aTreeKeyRoots = new List<int>(); List<int> bTreeKeyRoots = new List<int>(); findHelperTables(aTree, aLeftLeaf, aTreeKeyRoots, aTree.getRootID()); findHelperTables(bTree, bLeftLeaf, bTreeKeyRoots, bTree.getRootID()); var a = bTree.getRootID(); //Comparison foreach (int aKeyroot in aTreeKeyRoots) { foreach (int bKeyroot in bTreeKeyRoots) { //Re-initialise forest distance tables Dictionary<int, Dictionary<int, Double>> fD = new Dictionary<int, Dictionary<int, Double>>(); //Re-initialise forest edit script distance tables Dictionary<int, Dictionary<int, TreeEditScript>> fESD = new Dictionary<int, Dictionary<int, TreeEditScript>>(); setForestDistance(aLeftLeaf[aKeyroot], bLeftLeaf[bKeyroot], 0.0d, fD); //script is automatically null //for all descendents of aKeyroot: i for (int i = aLeftLeaf[aKeyroot]; i <= aKeyroot; i++) { var edit = new Delete(i,aTree); setForestDistance(i, bLeftLeaf[bKeyroot] - 1, getForestDistance(i - 1, bLeftLeaf[bKeyroot] - 1, fD) + edit.getCost(), fD); var scriptSuffix = new TreeEditScript(getForestScript(i - 1, bLeftLeaf[bKeyroot] - 1, fESD)); scriptSuffix.Insert(edit); setForestScript(i, bLeftLeaf[bKeyroot] - 1, scriptSuffix, fESD); } //for all descendents of bKeyroot: j for (int j = bLeftLeaf[bKeyroot]; j <= bKeyroot; j++) { var edit = new Insert(j, bTree); setForestDistance(aLeftLeaf[aKeyroot] - 1, j, getForestDistance(aLeftLeaf[aKeyroot] - 1, j - 1, fD) + edit.getCost(), fD); var scriptSuffix = new TreeEditScript(getForestScript(aLeftLeaf[aKeyroot] - 1, j - 1, fESD)); scriptSuffix.Insert(edit); setForestScript(aLeftLeaf[aKeyroot] - 1, j, scriptSuffix, fESD); } for (int i = aLeftLeaf[aKeyroot]; i <= aKeyroot; i++) { for (int j = bLeftLeaf[bKeyroot]; j <= bKeyroot; j++) { TreeEditScript tempScript = null; EditOperation delEdit = new Delete(i, aTree); ; EditOperation insEdit = new Insert(j, bTree); double min; double delCost = getForestDistance(i - 1, j, fD) + delEdit.getCost(); double insCost = getForestDistance(i, j - 1, fD) + insEdit.getCost(); //This min compares del vs ins if (delCost <= insCost) { //Option 1: Delete node from aTree tempScript = new TreeEditScript(getForestScript(i - 1, j, fESD)); tempScript.Insert(delEdit); min = delCost; } else { //Option 2: Insert node into bTree tempScript = new TreeEditScript(getForestScript(i, j - 1, fESD)); tempScript.Insert(insEdit); min = insCost; } if (aLeftLeaf[i] == aLeftLeaf[aKeyroot] && bLeftLeaf[j] == bLeftLeaf[bKeyroot]) { var renEdit = new Rename(i, j, aTree, bTree); var dist = getForestDistance(i - 1, j - 1, fD) + renEdit.getCost(); distance[i, j] = Math.Min(min, dist); if (min <= dist) { tempScript = new TreeEditScript(tempScript); distScript[i, j] = tempScript; } else { tempScript = new TreeEditScript(getForestScript(i - 1, j - 1, fESD)); tempScript.Insert(renEdit); distScript[i, j] = tempScript; } setForestDistance(i, j, distance[i, j], fD); setForestScript(i, j, new TreeEditScript(distScript[i, j]), fESD); } else { var value = getForestDistance(aLeftLeaf[i] - 1, bLeftLeaf[j] - 1, fD) + distance[i, j]; setForestDistance(i, j, Math.Min(min, value), fD); if (min <= value) setForestScript(i, j, new TreeEditScript(tempScript), fESD); else { var tempList = getForestScript(aLeftLeaf[i] - 1, bLeftLeaf[j] - 1, fESD).script; tempList = distScript[i, j].script.Concat(tempList).ToList(); setForestScript(i, j, new TreeEditScript(tempList), fESD); } setForestDistance(i, j, Math.Min(min, value), fD); } } } } } Transformation transform = new Transformation(); transform.totalCost = distance[aTree.getNodeCount(), bTree.getNodeCount()]; transform.editScriptAtoB = distScript[aTree.getNodeCount(), bTree.getNodeCount()]; transform.pdlA = aTree.pdl; transform.pdlB = bTree.pdl; transform.pdlMappingTreeB = bTree.pdlNodeMapping; transform.pdlMappingTreeA = aTree.pdlNodeMapping; return transform; } public Transformation getTransformation(TreeDefinition aTree, TreeDefinition bTree) { Transformation transform = new Transformation(); Transformation t1 = findDistance(aTree, bTree); transform.totalCost = distance[aTree.getNodeCount(), bTree.getNodeCount()]; Transformation t2 = findDistance(bTree, aTree); transform.editScriptAtoB = t1.editScriptAtoB; transform.editScriptBtoA = t2.editScriptAtoB; transform.pdlA = t1.pdlA; transform.pdlB = t1.pdlB; transform.pdlMappingTreeB = t1.pdlMappingTreeB; transform.pdlMappingTreeA = t1.pdlMappingTreeA; return transform; } /** The initiating call should be to the root node of the tree. * It fills in an nxn (hash) table of the leftmost leaf for a * given node. It also compiles an array of key roots. The * int values IDs must come from the post-ordering of the * nodes in the tree. */ private void findHelperTables(TreeDefinition someTree, Dictionary<int, int> leftmostLeaves, List<int> keyroots, int aNodeID) { findHelperTablesRecurse(someTree, leftmostLeaves, keyroots, aNodeID); //add root to keyroots keyroots.Add(aNodeID); //add boundary nodes leftmostLeaves[0] = 0; } private void findHelperTablesRecurse(TreeDefinition someTree, Dictionary<int, int> leftmostLeaves, List<int> keyroots, int aNodeID) { //If this is a leaf, then it is the leftmost leaf if (someTree.isLeaf(aNodeID)) { leftmostLeaves[aNodeID] = aNodeID; } else { bool seenLeftmost = false; foreach (int child in someTree.getChildrenIDs(aNodeID)) { findHelperTablesRecurse(someTree, leftmostLeaves, keyroots, child); if (!seenLeftmost) { leftmostLeaves[aNodeID] = leftmostLeaves[child]; seenLeftmost = true; } else keyroots.Add(child); } } } /** Returns a String for trace writes */ private void seeFD(int a, int b, Dictionary<int, Dictionary<int, Double>> forestDistance) { Console.WriteLine("[" + a + "],[" + b + "]: " + getForestDistance(a, b, forestDistance)); } /** Returns a String for trace writes */ private void seeFD(Dictionary<int, Dictionary<int, Double>> forestDistance) { Console.WriteLine("Forest Distance"); //Return result foreach (int i in new HashSet<int>(forestDistance.Keys)) { Console.Write(i + ": "); foreach (int j in new HashSet<int>(forestDistance[i].Keys)) Console.Write(forestDistance[i][j] + "(" + j + ") "); Console.WriteLine(""); } } /** This returns the value in the cell of the ForestDistance table */ private double getForestDistance(int a, int b, Dictionary<int, Dictionary<int, Double>> forestDistance) { Dictionary<int, Double> rows = null; if (!forestDistance.ContainsKey(a)) forestDistance[a] = new Dictionary<int, Double>(); rows = forestDistance[a]; if (!rows.ContainsKey(b)) rows[b] = 0.0; return rows[b]; } /** This returns the value in the cell of the ForestDistance table */ private TreeEditScript getForestScript(int a, int b, Dictionary<int, Dictionary<int, TreeEditScript>> forestES) { Dictionary<int, TreeEditScript> rows = null; if (!forestES.ContainsKey(a)) forestES[a] = new Dictionary<int, TreeEditScript>(); rows = forestES[a]; if (!rows.ContainsKey(b)) rows[b] = new TreeEditScript(); return rows[b]; } /** This sets the value in the cell of the ForestDistance table */ private void setForestDistance(int a, int b, double aValue, Dictionary<int, Dictionary<int, Double>> forestDistance) { Dictionary<int, Double> rows = null; if (!forestDistance.ContainsKey(a)) forestDistance[a] = new Dictionary<int, Double>(); rows = forestDistance[a]; rows[b] = aValue; } /** This sets the value in the cell of the ForestDistance table */ private void setForestScript(int a, int b, TreeEditScript script, Dictionary<int, Dictionary<int, TreeEditScript>> forestES) { Dictionary<int, TreeEditScript> rows = null; if (!forestES.ContainsKey(a)) forestES[a] = new Dictionary<int, TreeEditScript>(); rows = forestES[a]; rows[b] = script; } } public class Transformation { internal double totalCost; public TreeEditScript editScriptAtoB; public TreeEditScript editScriptBtoA; internal PDLPred pdlA; internal PDLPred pdlB; internal Dictionary<string, Pair<PDL, string>> pdlMappingTreeA; internal Dictionary<string, Pair<PDL, string>> pdlMappingTreeB; internal double minSizeForTreeA; public Transformation() { totalCost = 0; editScriptAtoB = new TreeEditScript(); editScriptBtoA = new TreeEditScript(); pdlA = null; pdlB = null; pdlMappingTreeA = new Dictionary<string,Pair<PDL,string>>(); pdlMappingTreeB = new Dictionary<string, Pair<PDL, string>>(); minSizeForTreeA = 0; } public void ToString(StringBuilder sb) { sb.AppendLine(editScriptAtoB.ToString()); } public override string ToString() { StringBuilder sb = new StringBuilder(); this.ToString(sb); return sb.ToString(); } public string ToHTMLColoredStringAtoB(string delColor, string renColor) { StringBuilder sb = new StringBuilder(); HashSet<PDL> renamed = new HashSet<PDL>(); HashSet<PDL> deleted = new HashSet<PDL>(); foreach (var edit in this.editScriptAtoB.script) if (edit.getCost() > 0) { if (edit is Delete) { deleted.Add((edit as Delete).pdlA.First); } else if (edit is Rename) { renamed.Add((edit as Rename).pdlA.First); } } ToHTMLColoredEnglishStringExt(renamed, deleted, pdlA, delColor,renColor, editScriptAtoB, sb, "s"); return sb.ToString(); } public string ToHTMLColoredStringBtoA(string delColor, string renColor) { StringBuilder sb = new StringBuilder(); HashSet<PDL> renamed = new HashSet<PDL>(); HashSet<PDL> deleted = new HashSet<PDL>(); foreach (var edit in this.editScriptBtoA.script) if (edit.getCost() > 0) { if (edit is Delete) { deleted.Add((edit as Delete).pdlA.First); } else if (edit is Rename) { renamed.Add((edit as Rename).pdlA.First); } } ToHTMLColoredEnglishStringExt(renamed, deleted, pdlB, delColor, renColor, editScriptBtoA, sb, "s"); return sb.ToString(); } public string ToEnglishString(PDL term) { StringBuilder sb = new StringBuilder(); ToEnglishString(term,sb); return sb.ToString(); } public void ToEnglishString(PDL term, StringBuilder sb) { ToHTMLColoredEnglishStringExt(new HashSet<PDL>(), new HashSet<PDL>(), term, "black", "black", editScriptAtoB, sb,"s"); } private void ToHTMLColoredEnglishStringExt(HashSet<PDL> renamed, HashSet<PDL> deleted, PDL term, string delColor, string renColor, TreeEditScript editScript, StringBuilder sb, string varName) { Pattern.Match(term). Case<PDLFalse>(() => TermCase(renamed, deleted, term, delColor, renColor, "no string", sb)). Case<PDLTrue>(() => TermCase(renamed, deleted, term, delColor, renColor, "every input string", sb)). Case<PDLEmptyString>(() => TermCase(renamed, deleted, term, delColor, renColor, "the empty string", sb)). Default(() => { sb.Append("{ <i>s</i> | "); ToHTMLColoredEnglishStringInt(renamed, deleted, term, delColor, renColor, editScript, sb, varName); sb.Append(" }"); }); } private void ToHTMLColoredEnglishStringInt(HashSet<PDL> renamed, HashSet<PDL> deleted, PDL term, string delColor, string renColor, TreeEditScript editScript, StringBuilder sb, string varName) { bool negate = false; var notterm = term as PDLNot; if (notterm != null) { term = notterm.phi; negate = true; } Pattern.Match(term). Case<PDLAllPos>(() => TermCase(renamed, deleted, term, delColor, renColor, "the set of all positions", sb)). Case<PDLAtPos, char, PDLPos>((label, pos) => { ToHTMLColoredEnglishStringInt(renamed, deleted, pos, delColor, renColor, editScript, sb, varName); if (negate) TermCase(renamed, deleted, term, "", delColor, renColor, " doesn't have label ", editScript, sb); else TermCase(renamed, deleted, term, "", delColor, renColor, " has label ", editScript, sb); TermCase(renamed, deleted, term, "label", delColor, renColor, label.ToString(), editScript, sb); }). Case<PDLAtSet, char, PDLSet>((label, set) => { Pattern.Match(set). Case<PDLAllPos>(() => { if (negate) TermCase(renamed, deleted, set, delColor, renColor, string.Format("not every symbol in <i>{0}</i>", varName), sb); else TermCase(renamed, deleted, set, delColor, renColor, string.Format("every symbol in <i>{0}</i>", varName), sb); TermCase(renamed, deleted, term, "", delColor, renColor, " is a '", editScript, sb); TermCase(renamed, deleted, term, "label", delColor, renColor, label.ToString(), editScript, sb); TermCase(renamed, deleted, term, "", delColor, renColor, string.Format("'"), editScript, sb); }). Case<PDLSetCmpPos, PDLPos, PDLComparisonOperator>((pos, op) => { if (negate) TermCase(renamed, deleted, set, "", delColor, renColor, "not every symbol ", editScript, sb); else TermCase(renamed, deleted, set, "", delColor, renColor, "every symbol ", editScript, sb); switch (op) { case PDLComparisonOperator.Ge: TermCase(renamed, deleted, set, delColor, renColor, "after ", sb); break; case PDLComparisonOperator.Geq: TermCase(renamed, deleted, set, delColor, renColor, "after and including ", sb); break; case PDLComparisonOperator.Le: TermCase(renamed, deleted, set, delColor, renColor, "before ", sb); break; case PDLComparisonOperator.Leq: TermCase(renamed, deleted, set, delColor, renColor, "before and including ", sb); break; default: throw new PDLException("undefined operator"); } Pattern.Match(pos). Case<PDLFirst>(() => { TermCase(renamed, deleted, pos, delColor, renColor, "the first one", sb); }). Case<PDLLast>(() => { TermCase(renamed, deleted, pos, delColor, renColor, "the last one", sb); }). Default(() => { ToHTMLColoredEnglishStringInt(renamed, deleted, pos, delColor, renColor, editScript, sb, varName); }); TermCase(renamed, deleted, term, "", delColor, renColor, " has label ", editScript, sb); TermCase(renamed, deleted, term, delColor, renColor, string.Format("'"), sb); TermCase(renamed, deleted, term, "label", delColor, renColor, label.ToString(), editScript, sb); TermCase(renamed, deleted, term, delColor, renColor, string.Format("'"), sb); }). Case<PDLPredSet, string, PDLPred>((var, phi) => { Pattern.Match(phi). Case<PDLModSetEq, PDLSet, int, int>((set1, m, n) => { var cast = set1 as PDLAllPosUpto; if (m == 2 && cast != null && cast.pos is PDLPosVar) { if (negate) TermCase(renamed, deleted, set, "", delColor, renColor, "not every ", editScript, sb); else TermCase(renamed, deleted, set, "", delColor, renColor, "every ", editScript, sb); TermCase(renamed, deleted, phi, "n", delColor, renColor, (n == 1 ? "odd" : "even"), editScript, sb); TermCase(renamed, deleted, set, "", delColor, renColor, " position", editScript, sb); TermCase(renamed, deleted, term, "", delColor, renColor, " has label '", editScript, sb); TermCase(renamed, deleted, term, "label", delColor, renColor, label.ToString(), editScript, sb); TermCase(renamed, deleted, term, delColor, renColor, string.Format("'"), sb); } else { if (negate) TermCase(renamed, deleted, set, "", delColor, renColor, "not every position " + var + " such that ", editScript, sb); else TermCase(renamed, deleted, set, "", delColor, renColor, "every position " + var + " such that ", editScript, sb); ToHTMLColoredEnglishStringInt(renamed, deleted, phi, delColor, renColor, editScript, sb, varName); TermCase(renamed, deleted, term, "", delColor, renColor, " has label '", editScript, sb); TermCase(renamed, deleted, term, "label", delColor, renColor, label.ToString(), editScript, sb); TermCase(renamed, deleted, term, delColor, renColor, string.Format("'"), sb); } }). Default(() => { if (negate) TermCase(renamed, deleted, set, "", delColor, renColor, "not every position " + var + " such that ", editScript, sb); else TermCase(renamed, deleted, set, "", delColor, renColor, "every position " + var + " such that ", editScript, sb); ToHTMLColoredEnglishStringInt(renamed, deleted, phi, delColor, renColor, editScript, sb, varName); TermCase(renamed, deleted, term, "", delColor, renColor, " has label '", editScript, sb); TermCase(renamed, deleted, term, "label", delColor, renColor, label.ToString(), editScript, sb); TermCase(renamed, deleted, term, delColor, renColor, string.Format("'"), sb); }); }). Default(() => { if (negate) TermCase(renamed, deleted, term, "", delColor, renColor, "not every position in ", editScript, sb); else TermCase(renamed, deleted, term, "", delColor, renColor, "every position in ", editScript, sb); ToHTMLColoredEnglishStringInt(renamed, deleted, set, delColor, renColor, editScript, sb, varName); TermCase(renamed, deleted, term, "", delColor, renColor, " has label '", editScript, sb); TermCase(renamed, deleted, term, "label", delColor, renColor, label.ToString(), editScript, sb); TermCase(renamed, deleted, term, delColor, renColor, string.Format("'"), sb); }); }). Case<PDLBelongs, PDLPos, PDLSet>((pos, set) => { ToHTMLColoredEnglishStringInt(renamed, deleted, pos, delColor, renColor, editScript, sb, varName); if (negate) TermCase(renamed, deleted, term, delColor, renColor, " doesn't belong to ", sb); else TermCase(renamed, deleted, term, delColor, renColor, " belongs to ", sb); ToHTMLColoredEnglishStringInt(renamed, deleted, set, delColor, renColor, editScript, sb, varName); }). Case<PDLBinaryFormula, PDLPred, PDLPred, PDLLogicalOperator>((phi1, phi2, op) => { if (negate) TermCase(renamed, deleted, notterm, delColor, renColor, "it is not the case that ", sb); switch (op) { case PDLLogicalOperator.And: { ToHTMLColoredEnglishStringInt(renamed, deleted, phi1, delColor, renColor, editScript, sb, varName); sb.Append(", "); TermCase(renamed, deleted, term, delColor, renColor, "and ", sb); break; } case PDLLogicalOperator.If: { TermCase(renamed, deleted, term, delColor, renColor, "if ", sb); ToHTMLColoredEnglishStringInt(renamed, deleted, phi1, delColor, renColor, editScript, sb, varName); sb.Append(", "); TermCase(renamed, deleted, term, delColor, renColor, "then ", sb); break; } case PDLLogicalOperator.Iff: { ToHTMLColoredEnglishStringInt(renamed, deleted, phi1, delColor, renColor, editScript, sb, varName); sb.Append(", "); TermCase(renamed, deleted, term, delColor, renColor, "if and only if ", sb); break; } case PDLLogicalOperator.Or: { ToHTMLColoredEnglishStringInt(renamed, deleted, phi1, delColor, renColor, editScript, sb, varName); sb.Append(", "); TermCase(renamed, deleted, term, delColor, renColor, "or ", sb); break; } default: throw new PDLException("undefined operator"); } ToHTMLColoredEnglishStringInt(renamed, deleted, phi2, delColor, renColor, editScript, sb, varName); }). Case<PDLBinaryPosFormula, PDLPos, PDLPos, PDLPosComparisonOperator>((pos1, pos2, op) => { ToHTMLColoredEnglishStringInt(renamed, deleted, pos1, delColor, renColor, editScript, sb, varName); switch (op) { case PDLPosComparisonOperator.Eq: { if (negate) TermCase(renamed, deleted, term, delColor, renColor, " isn't the same as ", sb); else TermCase(renamed, deleted, term, delColor, renColor, " is the same as ", sb); break; } case PDLPosComparisonOperator.Ge: { if (negate) TermCase(renamed, deleted, term, delColor, renColor, " isn't after ", sb); else TermCase(renamed, deleted, term, delColor, renColor, " is after ", sb); break; } case PDLPosComparisonOperator.Geq: { if(negate) TermCase(renamed, deleted, term, delColor, renColor, " isn't after or the same as ", sb); else TermCase(renamed, deleted, term, delColor, renColor, " is after or the same as ", sb); break; } case PDLPosComparisonOperator.Le: { if (negate) TermCase(renamed, deleted, term, delColor, renColor, " isn't before ", sb); else TermCase(renamed, deleted, term, delColor, renColor, " is before ", sb); break; } case PDLPosComparisonOperator.Leq: { if (negate) TermCase(renamed, deleted, term, delColor, renColor, " isn't before or the same as ", sb); else TermCase(renamed, deleted, term, delColor, renColor, " is before or is the same as ", sb); break; } case PDLPosComparisonOperator.Pred: { if (negate) TermCase(renamed, deleted, term, delColor, renColor, " isn't right before ", sb); else TermCase(renamed, deleted, term, delColor, renColor, " is right before ", sb); break; } case PDLPosComparisonOperator.Succ: { if (negate) TermCase(renamed, deleted, term, delColor, renColor, " isn't right after ", sb); else TermCase(renamed, deleted, term, delColor, renColor, " is right after ", sb); break; } default: throw new PDLException("Undefined operator"); } ToHTMLColoredEnglishStringInt(renamed, deleted, pos2, delColor, renColor, editScript, sb, varName); }). Case<PDLEmptyString>(() => { if(negate) TermCase(renamed, deleted, term, delColor, renColor, string.Format("<i>s</i> isn't the empty string", varName), sb); else TermCase(renamed, deleted, term, delColor, renColor, string.Format("<i>s</i> is the empty string", varName), sb); }). Case<PDLFalse>(() => TermCase(renamed, deleted, term, delColor, renColor, "false", sb)). Case<PDLIndicesOf, string>((str) => { TermCase(renamed, deleted, term, "", delColor, renColor, "the set of positions where a substring '", editScript, sb); TermCase(renamed, deleted, term, "str", delColor, renColor, str, editScript, sb); TermCase(renamed, deleted, term, "", delColor, renColor, "' starts", editScript, sb); }). Case<PDLQuantifiedFormula, PDLPred, String, PDLQuantifier>((phi, var, q) => { switch (q) { case PDLQuantifier.ExistsFO: { Pattern.Match(phi). Case<PDLAtPos, char, PDLPos>((label, pos) => { if(negate) TermCase(renamed, deleted, term, delColor, renColor, string.Format("<i>{0}</i> doesn't contain at least one '", varName), sb); else TermCase(renamed, deleted, term, delColor, renColor, string.Format("<i>{0}</i> contains at least one '", varName), sb); TermCase(renamed, deleted, phi, "label", delColor, renColor, label.ToString(), editScript, sb); TermCase(renamed, deleted, term, delColor, renColor, string.Format("'"), sb); }). Default(() => { if(negate) TermCase(renamed, deleted, term, delColor, renColor, string.Format("there doesn't exist a position <i>{0}</i> in <i>{1}</i>, ", var, varName), sb); else TermCase(renamed, deleted, term, delColor, renColor, string.Format("there exists a position <i>{0}</i> in <i>{1}</i>, ", var, varName), sb); ToHTMLColoredEnglishStringInt(renamed, deleted, phi, delColor, renColor, editScript, sb, varName); }); break; } case PDLQuantifier.ExistsSO: { if(negate) TermCase(renamed, deleted, term, delColor, renColor, string.Format("there doesn't exist a set of positions <i>{0}</i> in <i>{1}</i>, ", var, varName), sb); else TermCase(renamed, deleted, term, delColor, renColor, string.Format("there exists a set of positions <i>{0}</i> in <i>{1}</i>, ", var, varName), sb); ToHTMLColoredEnglishStringInt(renamed, deleted, phi, delColor, renColor, editScript, sb, varName); break; } case PDLQuantifier.ForallFO: { Pattern.Match(phi). Case<PDLAtPos, char, PDLPos>((label, pos) => { if(negate) TermCase(renamed, deleted, term, delColor, renColor, string.Format("not every symbol in <i>{0}</i> is a '", varName), sb); else TermCase(renamed, deleted, term, delColor, renColor, string.Format("every symbol in <i>{0}</i> is a '", varName), sb); TermCase(renamed, deleted, phi, "label", delColor, renColor, label.ToString(), editScript, sb); TermCase(renamed, deleted, term, delColor, renColor, string.Format("'"), sb); }). Default(() => { if(negate) TermCase(renamed, deleted, term, delColor, renColor, string.Format("not every position <i>{0}</i> in <i>{1}</i>, ", var, varName), sb); else TermCase(renamed, deleted, term, delColor, renColor, string.Format("for every position <i>{0}</i> in <i>{1}</i>, ", var, varName), sb); ToHTMLColoredEnglishStringInt(renamed, deleted, phi, delColor, renColor, editScript, sb, varName); }); break; } case PDLQuantifier.ForallSO: { if(negate) TermCase(renamed, deleted, term, delColor, renColor, string.Format("not every set of positions <i>{0}</i> in <i>{1}</i>, ", var, varName), sb); else TermCase(renamed, deleted, term, delColor, renColor, string.Format("for every set of positions <i>{0}</i> in <i>{1}</i>, ", var, varName), sb); ToHTMLColoredEnglishStringInt(renamed, deleted, phi, delColor, renColor, editScript, sb, varName); break; } default: throw new PDLException("Quantifier undefined"); } }). Case<PDLSetCardinality, PDLSet, int, PDLComparisonOperator>((set, n, op) => { Pattern.Match(set). Case<PDLAllPos>(() => { if (negate) TermCase(renamed, deleted, term, delColor, renColor, string.Format("<i>{0}</i> doesn't have length", varName), sb); else TermCase(renamed, deleted, term, delColor, renColor, string.Format("<i>{0}</i> has length", varName), sb); switch (op) { case PDLComparisonOperator.Eq: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" exactly "), editScript, sb); break; case PDLComparisonOperator.Ge: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" greater than "), editScript, sb); break; case PDLComparisonOperator.Geq: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" greater or equal than "), editScript, sb); break; case PDLComparisonOperator.Le: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" samller than "), editScript, sb); break; case PDLComparisonOperator.Leq: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" smaller or equal than "), editScript, sb); break; default: throw new PDLException("Undefined operator"); } TermCase(renamed, deleted, term, "n", delColor, renColor, n.ToString(), editScript, sb); }). Case<PDLIndicesOf, string>((str) => { if (str.Length == 1) { if (negate) TermCase(renamed, deleted, set, "", delColor, renColor, string.Format("<i>{0}</i> doesn't contain", varName), editScript, sb); else TermCase(renamed, deleted, set, "", delColor, renColor, string.Format("<i>{0}</i> contains", varName), editScript, sb); switch (op) { case PDLComparisonOperator.Eq: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" exactly "), editScript, sb); break; case PDLComparisonOperator.Ge: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" more than "), editScript, sb); break; case PDLComparisonOperator.Geq: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" at least "), editScript, sb); break; case PDLComparisonOperator.Le: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" less than "), editScript, sb); break; case PDLComparisonOperator.Leq: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" at most "), editScript, sb); break; default: throw new PDLException("Undefined operator"); } if (n == 1) TermCase(renamed, deleted, term, "n", delColor, renColor, "one ", editScript, sb); else if (n == 2) TermCase(renamed, deleted, term, "n", delColor, renColor, "two ", editScript, sb); else if (n == 3) TermCase(renamed, deleted, term, "n", delColor, renColor, "three ", editScript, sb); else TermCase(renamed, deleted, term, "n", delColor, renColor, n.ToString()+" ", editScript, sb); TermCase(renamed, deleted, set, "str", delColor, renColor, str, editScript, sb); TermCase(renamed, deleted, term, "", delColor, renColor, " ", editScript, sb); if (n > 1 || n == 0) TermCase(renamed, deleted, set, "", delColor, renColor, "'s", editScript, sb); } else { TermCase(renamed, deleted, set, "str", delColor, renColor, str, editScript, sb); if (negate) TermCase(renamed, deleted, set, "", delColor, renColor, string.Format(" doesn't appear in <i>{0}</i>", varName), editScript, sb); else TermCase(renamed, deleted, set, "", delColor, renColor, string.Format(" appears in <i>{0}</i> ", varName), editScript, sb); switch (op) { case PDLComparisonOperator.Eq: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" exactly "), editScript, sb); break; case PDLComparisonOperator.Ge: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" more than "), editScript, sb); break; case PDLComparisonOperator.Geq: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" at least "), editScript, sb); break; case PDLComparisonOperator.Le: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" less than "), editScript, sb); break; case PDLComparisonOperator.Leq: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" at most "), editScript, sb); break; default: throw new PDLException("Undefined operator"); } if (n == 1) TermCase(renamed, deleted, term, "n", delColor, renColor, "once", editScript, sb); else if (n == 2) TermCase(renamed, deleted, term, "n", delColor, renColor, "twice", editScript, sb); else TermCase(renamed, deleted, term, "n", delColor, renColor, n.ToString() +" times", editScript, sb); } }). Case<PDLUnion, PDLSet, PDLSet>((set1, set2) => { if (set1 is PDLIndicesOf && set2 is PDLIndicesOf) { var phi1cast = set1 as PDLIndicesOf; var phi2cast = set2 as PDLIndicesOf; TermCase(renamed, deleted, set, "", delColor, renColor, string.Format("' the total number of occurences of "), editScript, sb); TermCase(renamed, deleted, set, "", delColor, renColor, string.Format("'"), editScript, sb); TermCase(renamed, deleted, set1, "str", delColor, renColor, phi1cast.str, editScript, sb); TermCase(renamed, deleted, set, "", delColor, renColor, string.Format("' and '"), editScript, sb); TermCase(renamed, deleted, set2, "str", delColor, renColor, phi2cast.str, editScript, sb); TermCase(renamed, deleted, set, "", delColor, renColor, string.Format("'"), editScript, sb); if(negate) TermCase(renamed, deleted, set, "", delColor, renColor, string.Format("' in <i>{0}</i> isn't", varName), editScript, sb); else TermCase(renamed, deleted, set, "", delColor, renColor, string.Format("' in <i>{0}</i> is", varName), editScript, sb); switch (op) { case PDLComparisonOperator.Eq: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" exactly "), editScript, sb); break; case PDLComparisonOperator.Ge: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" greater than "), editScript, sb); break; case PDLComparisonOperator.Geq: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" at least "), editScript, sb); break; case PDLComparisonOperator.Le: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" less than "), editScript, sb); break; case PDLComparisonOperator.Leq: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" at most "), editScript, sb); break; default: throw new PDLException("Undefined operator"); } TermCase(renamed, deleted, term, "n", delColor, renColor, n.ToString(), editScript, sb); } else { ToHTMLColoredEnglishStringInt(renamed, deleted, set, delColor, renColor, editScript, sb, varName); if(negate) TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" doesn't have"), editScript, sb); else TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" has"), editScript, sb); switch (op) { case PDLComparisonOperator.Eq: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" exactly "), editScript, sb); break; case PDLComparisonOperator.Ge: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" size greater than "), editScript, sb); break; case PDLComparisonOperator.Geq: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" size greater or equal than "), editScript, sb); break; case PDLComparisonOperator.Le: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" size smaller than "), editScript, sb); break; case PDLComparisonOperator.Leq: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" size smaller or equal than "), editScript, sb); break; default: throw new PDLException("Undefined operator"); } TermCase(renamed, deleted, term, "n", delColor, renColor, n.ToString(), editScript, sb); TermCase(renamed, deleted, term, "", delColor, renColor, " elements ", editScript, sb); } }). Default(() => { ToHTMLColoredEnglishStringInt(renamed, deleted, set, delColor, renColor, editScript, sb, varName); if (negate) TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" doesn't have"), editScript, sb); else TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" has"), editScript, sb); switch (op) { case PDLComparisonOperator.Eq: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" exactly "), editScript, sb); break; case PDLComparisonOperator.Ge: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" size greater than "), editScript, sb); break; case PDLComparisonOperator.Geq: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" size greater or equal than "), editScript, sb); break; case PDLComparisonOperator.Le: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" size smaller than "), editScript, sb); break; case PDLComparisonOperator.Leq: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" size smaller or equal than "), editScript, sb); break; default: throw new PDLException("Undefined operator"); } TermCase(renamed, deleted, term, "n", delColor, renColor, n.ToString(), editScript, sb); TermCase(renamed, deleted, term, "", delColor, renColor, " elements ", editScript, sb); }); }). Case<PDLNot, PDLPred>((phi) => { if(!negate) TermCase(renamed, deleted, term, delColor, renColor, "it is not the case that ", sb); ToHTMLColoredEnglishStringInt(renamed, deleted, phi, delColor, renColor, editScript, sb, varName); }). Case<PDLPosConstant, PDLPosConstantName>((op) => { switch (op) { case PDLPosConstantName.First: TermCase(renamed, deleted, term, delColor, renColor, "the first position", sb); break; case PDLPosConstantName.Last: TermCase(renamed, deleted, term, delColor, renColor, "the last position", sb); break; default: throw new PDLException("undefined operator"); } }). Case<PDLPosUnary, PDLPos, PDLPosUnaryConstructor>((pos, op) => { switch (op) { case PDLPosUnaryConstructor.Pred: TermCase(renamed, deleted, term, delColor, renColor, "the position before ", sb); break; case PDLPosUnaryConstructor.Succ: TermCase(renamed, deleted, term, delColor, renColor, "the position after ", sb); break; default: throw new PDLException("undefined operator"); } ToHTMLColoredEnglishStringInt(renamed, deleted, pos, delColor, renColor, editScript, sb, varName); }). Case<PDLPosVar, string>((var) => TermCase(renamed, deleted, term, delColor, renColor, var, sb)). Case<PDLPredSet, string, PDLPred>((var, phi) => { Pattern.Match(phi). Case<PDLModSetEq, PDLSet, int, int>((set, m, n) => { var cast = set as PDLAllPosUpto; if (m == 2 && cast != null && cast.pos is PDLPosVar) { TermCase(renamed, deleted, set, delColor, renColor, "the set of ", sb); TermCase(renamed, deleted, term, "n", delColor, renColor, (n == 1 ? "odd" : "even"), editScript, sb); TermCase(renamed, deleted, set, delColor, renColor, "positions", sb); } else { TermCase(renamed, deleted, term, delColor, renColor, "the set {" + var + " | such that ", sb); ToHTMLColoredEnglishStringInt(renamed, deleted, phi, delColor, renColor, editScript, sb, varName); TermCase(renamed, deleted, term, delColor, renColor, "}", sb); } }). Default(() => { TermCase(renamed, deleted, term, delColor, renColor, "the set {" + var + " | such that ", sb); ToHTMLColoredEnglishStringInt(renamed, deleted, phi, delColor, renColor, editScript, sb, varName); TermCase(renamed, deleted, term, delColor, renColor, "}", sb); }); }). Case<PDLSetBinary, PDLSet, PDLSet, PDLBinarySetOperator>((set1, set2, op) => { switch (op) { case PDLBinarySetOperator.Intersection: { TermCase(renamed, deleted, term, delColor, renColor, "the intersection of ", sb); break; } case PDLBinarySetOperator.Union: { TermCase(renamed, deleted, term, delColor, renColor, "the union of ", sb); break; } default: throw new PDLException("undefined operator"); } ToHTMLColoredEnglishStringInt(renamed, deleted, set1, delColor, renColor, editScript, sb, varName); TermCase(renamed, deleted, term, delColor, renColor, ", and ", sb); ToHTMLColoredEnglishStringInt(renamed, deleted, set2, delColor, renColor, editScript, sb, varName); TermCase(renamed, deleted, term, delColor, renColor, ", ", sb); }). Case<PDLSetCmpPos, PDLPos, PDLComparisonOperator>((pos1, op) => { switch (op) { case PDLComparisonOperator.Ge: TermCase(renamed, deleted, term, delColor, renColor, "the set of positions after ", sb); break; case PDLComparisonOperator.Geq: TermCase(renamed, deleted, term, delColor, renColor, "the set of positions from ", sb); break; case PDLComparisonOperator.Le: TermCase(renamed, deleted, term, delColor, renColor, "the set of positions before ", sb); break; case PDLComparisonOperator.Leq: TermCase(renamed, deleted, term, delColor, renColor, "the set of positions up to ", sb); break; default: throw new PDLException("undefined operator"); } ToHTMLColoredEnglishStringInt(renamed, deleted, pos1, delColor, renColor, editScript, sb, varName); }). Case<PDLSetVar, string>((var) => TermCase(renamed, deleted, term, delColor, renColor, var, sb)). Case<PDLSetModuleComparison, PDLSet, int, int, PDLComparisonOperator>((set, m, n, op) => { if (m == 2) { //CASE mod 2 Pattern.Match(set). Case<PDLAllPos>(() => { switch (op) { case PDLComparisonOperator.Eq: { if(negate) TermCase(renamed, deleted, term, "", delColor, renColor, string.Format("<i>{0}</i> doesn't have ", varName), editScript, sb); else TermCase(renamed, deleted, term, "", delColor, renColor, string.Format("<i>{0}</i> has ", varName), editScript, sb); TermCase(renamed, deleted, term, "n", delColor, renColor, (n == 1 ? "odd" : "even"), editScript, sb); TermCase(renamed, deleted, set, "", delColor, renColor, string.Format(" length", varName), editScript, sb); break; } default: throw new PDLException("This formula shouldn't be enumerated with this operator and value 2"); } }). Case<PDLIndicesOf, string>((str) => { TermCase(renamed, deleted, term, "", delColor, renColor, string.Format("'"), editScript, sb); TermCase(renamed, deleted, set, "str", delColor, renColor, str, editScript, sb); if(negate) TermCase(renamed, deleted, term, "", delColor, renColor, string.Format("' doesn't appear in <i>{0}</i> an ", varName), editScript, sb); else TermCase(renamed, deleted, term, "", delColor, renColor, string.Format("' appears in <i>{0}</i> an ", varName), editScript, sb); TermCase(renamed, deleted, term, "n", delColor, renColor, (n == 1 ? "odd" : "even"), editScript, sb); TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" number of times"), editScript, sb); }). Default(() => { switch (op) { case PDLComparisonOperator.Eq: { ToHTMLColoredEnglishStringInt(renamed, deleted, set, delColor, renColor, editScript, sb, varName); if(negate) TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" doesn't have an ", varName), editScript, sb); else TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" has an ", varName), editScript, sb); TermCase(renamed, deleted, term, "n", delColor, renColor, (n == 1 ? "odd" : "even"), editScript, sb); TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" number of elements", varName), editScript, sb); break; } default: throw new PDLException("This formula shouldn't be enumerated with this operator and value 2"); } }); } else { if (n == 0 && op == PDLComparisonOperator.Eq) { //CASE % m = 0 Pattern.Match(set). Case<PDLAllPos>(() => { TermCase(renamed, deleted, term, "", delColor, renColor, string.Format("the "), editScript, sb); TermCase(renamed, deleted, set, "", delColor, renColor, string.Format("length", varName), editScript, sb); if (negate) TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" of <i>{0}</i> is not divisible by ", varName), editScript, sb); else TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" of <i>{0}</i> is divisible by ", varName), editScript, sb); TermCase(renamed, deleted, term, "m", delColor, renColor, m.ToString(), editScript, sb); }). Case<PDLIndicesOf, string>((str) => { TermCase(renamed, deleted, term, "", delColor, renColor, string.Format("the number of times "), editScript, sb); TermCase(renamed, deleted, set, "", delColor, renColor, string.Format("the substring '"), editScript, sb); TermCase(renamed, deleted, set, "str", delColor, renColor, str, editScript, sb); TermCase(renamed, deleted, set, "", delColor, renColor, string.Format("' appears in <i>{0}</i> ", varName), editScript, sb); if (negate) TermCase(renamed, deleted, term, "", delColor, renColor, string.Format("is not divisible by ", varName), editScript, sb); else TermCase(renamed, deleted, term, "", delColor, renColor, string.Format("is divisible by ", varName), editScript, sb); TermCase(renamed, deleted, term, "m", delColor, renColor, m.ToString(), editScript, sb); }). Default(() => { TermCase(renamed, deleted, term, "", delColor, renColor, string.Format("the size of "), editScript, sb); ToHTMLColoredEnglishStringInt(renamed, deleted, set, delColor, renColor, editScript, sb, varName); if (negate) TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" is not divisible by "), editScript, sb); else TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" is divisible by ", varName), editScript, sb); TermCase(renamed, deleted, term, "m", delColor, renColor, m.ToString(), editScript, sb); }); } else { // m!=2 and n!=0 and op not equality Pattern.Match(set). Case<PDLAllPos>(() => { TermCase(renamed, deleted, term, "", delColor, renColor, string.Format("dividing ", varName), editScript, sb); TermCase(renamed, deleted, set, "", delColor, renColor, string.Format("the length of <i>{0}</i> by ", varName), editScript, sb); TermCase(renamed, deleted, term, "m", delColor, renColor, m.ToString(), editScript, sb); }). Case<PDLIndicesOf, string>((str) => { TermCase(renamed, deleted, term, "", delColor, renColor, string.Format("dividing "), editScript, sb); TermCase(renamed, deleted, set, "", delColor, renColor, string.Format("the number of times the substring '"), editScript, sb); TermCase(renamed, deleted, set, "str", delColor, renColor, str, editScript, sb); TermCase(renamed, deleted, set, "", delColor, renColor, string.Format("' appears in <i>{0}</i> ", varName), editScript, sb); TermCase(renamed, deleted, term, "", delColor, renColor, string.Format("by "), editScript, sb); TermCase(renamed, deleted, term, "m", delColor, renColor, m.ToString(), editScript, sb); }). Default(() => { TermCase(renamed, deleted, term, "", delColor, renColor, string.Format("dividing the size of "), editScript, sb); ToHTMLColoredEnglishStringInt(renamed, deleted, set, delColor, renColor, editScript, sb, varName); TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" by "), editScript, sb); TermCase(renamed, deleted, term, "m", delColor, renColor, m.ToString(), editScript, sb); }); if (negate) TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" doesn't give remainder "), editScript, sb); else TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" gives remainder "), editScript, sb); switch (op) { case PDLComparisonOperator.Eq: break; case PDLComparisonOperator.Ge: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" greater than "), editScript, sb); break; case PDLComparisonOperator.Geq: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" greater or equal than "), editScript, sb); break; case PDLComparisonOperator.Le: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" smaller than "), editScript, sb); break; case PDLComparisonOperator.Leq: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format(" smaller or equal than "), editScript, sb); break; default: throw new PDLException("Undefined operator"); } TermCase(renamed, deleted, term, "n", delColor, renColor, n.ToString(), editScript, sb); } } }). Case<PDLStringPos, string, PDLStringPosOperator>((str, op) => { switch (op) { case PDLStringPosOperator.FirstOcc: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format("the first occurence of ", str), editScript, sb); break; case PDLStringPosOperator.LastOcc: TermCase(renamed, deleted, term, "", delColor, renColor, string.Format("the last occurence of ", str), editScript, sb); break; default: throw new PDLException("undefined operator"); } TermCase(renamed, deleted, term, "", delColor, renColor, "'", editScript, sb); TermCase(renamed, deleted, term, "str", delColor, renColor, str, editScript, sb); TermCase(renamed, deleted, term, "", delColor, renColor, "'", editScript, sb); }). Case<PDLStringQuery, string, PDLStringQueryOp>((str, op) => { TermCase(renamed, deleted, term, "", delColor, renColor, string.Format("s "), editScript, sb); switch (op) { case PDLStringQueryOp.Contains: if(negate) TermCase(renamed, deleted, term, "", delColor, renColor, "doesn't contain ", editScript, sb); else TermCase(renamed, deleted, term, "", delColor, renColor, "contains '", editScript, sb); break; case PDLStringQueryOp.EndsWith: if(negate) TermCase(renamed, deleted, term, "", delColor, renColor, "doesn't end with ", editScript, sb); else TermCase(renamed, deleted, term, "", delColor, renColor, "ends with ", editScript, sb); break; case PDLStringQueryOp.IsString: if(negate) TermCase(renamed, deleted, term, "", delColor, renColor, "isn't the string ", editScript, sb); else TermCase(renamed, deleted, term, "", delColor, renColor, "is the string ", editScript, sb); break; case PDLStringQueryOp.StartsWith: if(negate) TermCase(renamed, deleted, term, "", delColor, renColor, "doesn't start with ", editScript, sb); else TermCase(renamed, deleted, term, "", delColor, renColor, "starts with ", editScript, sb); break; default: throw new PDLException("undefined operator"); } TermCase(renamed, deleted, term, "", delColor, renColor, "'", editScript, sb); TermCase(renamed, deleted, term, "str", delColor, renColor, str, editScript, sb); TermCase(renamed, deleted, term, "", delColor, renColor, "'", editScript, sb); }). Case<PDLTrue>(() => TermCase(renamed, deleted, term, delColor, renColor, "true", sb)); } private void TermCase(HashSet<PDL> renamed, HashSet<PDL> deleted, PDL phi, string delColor, string renColor, string message, StringBuilder sb) { if (renamed.Contains(phi)) sb.AppendFormat("<font color='{0}'><b>{1}</b></font>", renColor, message); else if (deleted.Contains(phi)) sb.AppendFormat("<i><font color='{0}'><b>{1}</b></font></i>", delColor, message); else sb.Append(message); } private void TermCase(HashSet<PDL> renamed, HashSet<PDL> deleted, PDL phi, string tag, string delColor, string renColor, string message, TreeEditScript editScript, StringBuilder sb) { var isDel = deleted.Contains(phi); var isRen = renamed.Contains(phi); foreach (var edit in editScript.script) { if (edit.getCost() > 0) { if (isDel && edit is Delete) { var tmp = edit as Delete; if (tmp.pdlA.First == phi && tmp.pdlA.Second == tag) { if(tag== "") sb.AppendFormat("<font color='{0}'><b>{1}</b></font>", delColor, message); else sb.AppendFormat("<i><font color='{0}'><b>{1}</b></font></i>", delColor, message); return; } } else if (isRen && edit is Rename) { var tmp = edit as Rename; if (tmp.pdlA.First == phi && tmp.pdlA.Second == tag) { if (tag == "") sb.AppendFormat("<font color='{0}'><b>{1}</b></font>", renColor, message); else sb.AppendFormat("<i><font color='{0}'><b>{1}</b></font></i>", renColor, message); return; } } } } if (tag == "") sb.AppendFormat("{0}", message); else sb.AppendFormat("<i>{0}</i>", message); } } #region Edit operations public class TreeEditScript{ public List<EditOperation> script; public TreeEditScript() { this.script = new List<EditOperation>(); } public TreeEditScript(TreeEditScript teScript){ this.script = new List<EditOperation>(teScript.script); } public TreeEditScript(List<EditOperation> script) { this.script = script; } public double GetCost() { double cost = 0; foreach(var edit in script) cost+= edit.getCost(); return cost; } public void Insert(EditOperation edit){ script.Insert(0, edit); } public override string ToString() { string output=""; foreach (var edit in script) if (edit.getCost() > 0) output += string.Format("{0}; ",edit); return output; } } public abstract class EditOperation { public abstract double getCost(); } public class Delete : EditOperation { internal string labelA; internal Pair<PDL, string> pdlA; public Delete(int aNodeId, TreeDefinition aTree) { labelA = aTree.getLabelForMatching(aNodeId); pdlA = aTree.pdlNodeMapping[labelA]; int div = labelA.LastIndexOf(":"); if (div == -1) throw new PDLException(string.Format("All nodes should have a : in the middle: {0}", labelA)); labelA = labelA.Substring(0, div); } public override double getCost() { return 1; } public override string ToString() { return "delete " + labelA; } } public class Insert : EditOperation { internal string labelB; internal Pair<PDL,string> pdlB; public Insert(int bNodeId, TreeDefinition bTree) { labelB = bTree.getLabelForMatching(bNodeId); pdlB = bTree.pdlNodeMapping[labelB]; int div = labelB.LastIndexOf(":"); if (div == -1) throw new PDLException(string.Format("All nodes should have a : in the middle: {0}", labelB)); labelB = labelB.Substring(0, div); } public override double getCost() { return 1; } public override string ToString() { return "insert "+labelB; } } public class Rename : EditOperation { internal string labelA; internal string labelB; internal Pair<PDL, string> pdlA; internal Pair<PDL, string> pdlB; public Rename(int aNodeId, int bNodeId, TreeDefinition aTree, TreeDefinition bTree) { labelA = aTree.getLabelForMatching(aNodeId); labelB = bTree.getLabelForMatching(bNodeId); pdlA = aTree.pdlNodeMapping[labelA]; pdlB = bTree.pdlNodeMapping[labelB]; int aDiv = labelA.LastIndexOf(":"); if (aDiv == -1) throw new PDLException(string.Format("All nodes should have a : in the middle: {0}", labelA)); int bDiv = labelB.LastIndexOf(":"); if (bDiv == -1) throw new PDLException(string.Format("All nodes should have a : in the middle: {0}", labelB)); labelA = labelA.Substring(0, aDiv); labelB = labelB.Substring(0, bDiv); } public override double getCost() { return labelA == labelB ? 0 : 1; } public override string ToString() { return string.Format("rename {0} to {1}", labelA, labelB); } } #endregion #region Tree Definitions public abstract class TreeDefinition { //Just two constants for defining ordering. public const int POSTORDER = 0; public const int PREORDER = 1; private int chosenOrder = 0; //root node label internal String root = ""; internal PDLPred pdl; private Dictionary<int, String> iDsToLabel = new Dictionary<int, String>(); private Dictionary<String, int> labelToIDs = new Dictionary<String, int>(); private Dictionary<int, List<int>> treeStructureIDs = new Dictionary<int, List<int>>(); public Dictionary<string, Pair<PDL, string>> pdlNodeMapping = new Dictionary<string, Pair<PDL, string>>(); /** Returns the NodeID of the root */ public int getRootID() { return labelToIDs[root]; } /** This is the ordering used to number the nodes */ public void setOrder(int order) { chosenOrder = order; } /** This is the ordering used to number the nodes */ public int getOrder() { return chosenOrder; } public void orderNodes(int ordering) { //Set ordering if (ordering == POSTORDER) { setPostOrdering(0, root); setOrder(POSTORDER); } else { //PREORDER setOrder(PREORDER); } //Create version of tree that just uses index numbers // foreach (var parent in getNodes()) { List<int> indexedChildren = new List<int>(); foreach (String child in getChildren(parent)) indexedChildren.Add(getNodeID(child)); treeStructureIDs[getNodeID(parent)] = indexedChildren; } } public int setPostOrdering(int counter, String aNodeLabel) { int internalCounter = counter; //examine children foreach (String child in getChildren(aNodeLabel)) { internalCounter = setPostOrdering(internalCounter, child); } //set new nodeID for this node (set to counter+1) putLabel(internalCounter + 1, aNodeLabel); putNodeID(aNodeLabel, internalCounter + 1); return internalCounter + 1; } /** This is provides the string label for the node we're matching. * In some cases, the value of the string may depend on properties * of the node in addition to the actual node label. */ public String getLabelForMatching(int nodeID) { return getLabel(nodeID); } public String getLabel(int nodeID) { return iDsToLabel[nodeID]; } public int getNodeID(String nodeLabel) { return labelToIDs[nodeLabel]; } public void putLabel(int nodeID, String nodeLabel) { iDsToLabel[nodeID] = nodeLabel; } public void putNodeID(String nodeLabel, int nodeID) { labelToIDs[nodeLabel] = nodeID; } /* returns a IEnumerable of nodes referred to by their original * (unique) nodel label. */ public abstract IEnumerable<String> getNodes(); /* returns a IEnumerable of children referred to by their original * (unique) nodel label. */ public abstract List<String> getChildren(String aNodeLabel); /** Returns the children of the node given as a parameter. */ public IEnumerable<int> getChildrenIDs(int nodeID) { return treeStructureIDs[nodeID]; } public bool isLeaf(int nodeID) { return (getChildrenIDs(nodeID).ToList().Count == 0); } public int getNodeCount() { return treeStructureIDs.Keys.Count; } public abstract String toString(); } public class BasicTree : TreeDefinition { //A set of nodes (once set, this is not changed) public Dictionary<string, List<String>> treeStructure = new Dictionary<String, List<String>>(); public BasicTree() { } /** This takes a |e| x 2 array of string, where |e| is the number * of edges. */ public BasicTree(Dictionary<String, List<String>> tree, String root, int ordering) { this.root=root; treeStructure = tree; orderNodes(ordering); } /** Returns the parent nodes in the tree*/ public override IEnumerable<String> getNodes() { return treeStructure.Keys; } /** Returns the children of the node given as a parameter. */ public override List<String> getChildren(String nodeLabel) { return treeStructure[nodeLabel]; } public override String toString() { int rootID = getRootID(); StringBuilder rStr = new StringBuilder(); for (int i = rootID; i > 0; i--) { rStr.Append(getLabel(i) + "(" + i + ") \n"); foreach (String child in getChildren(getLabel(i))) { rStr.Append(" - " + child + "(" + getNodeID(child) + ") \n"); } } return rStr.ToString(); } } #endregion public static class CreateTreeHelper { /* This takes a String describing a tree and converts it into a * TreeDefinition. The format of the string is a series of edges * represented as pairs of string separated by semi-colons. Each * pair is comma separated. The first substring in the pair is * the parent, the second is the child. The first edge parent * must be the root of the tree. * * For example: "a-b;a-c;c-d;c-e;c-f;" */ public static TreeDefinition MakeTree(PDLPred phi) { Dictionary<string, Pair<PDL, string>> dic = new Dictionary<string,Pair<PDL,string>>(); string pdlTreeString = phi.ToTreeString(dic); return MakeTree(dic, pdlTreeString, null, phi); } public static TreeDefinition MakeTree(Dictionary<string, Pair<PDL, string>> nodeMapping, String treeSpec, String rootID, PDLPred pdl) { Dictionary<String, List<String>> aTree = new Dictionary<String, List<String>>(); String root = rootID; String[] edges = treeSpec.Split(';'); foreach (String edge in edges) if (edge != "") { String[] nodes = edge.Split('-'); addEdge(nodes[0], nodes[1], aTree); if (root == null) root = nodes[0]; } BasicTree aBasicTree = new BasicTree(aTree, root, BasicTree.POSTORDER); aBasicTree.pdlNodeMapping = nodeMapping; aBasicTree.pdl = pdl; return aBasicTree; } /** This adds the edge (and nodes if necessary) to the tree * definition . */ internal static void addEdge(String parentLabel, String childLabel, Dictionary<String, List<String>> treeStructure) { //Add Parent node, edge and child if (!treeStructure.ContainsKey(parentLabel)) treeStructure[parentLabel] = new List<String>(); treeStructure[parentLabel].Add(childLabel); //Add child if not already there if (!treeStructure.ContainsKey(childLabel)) treeStructure[childLabel] = new List<String>(); } } public static class PDLUtil{ public static string ToEnglishString(PDLPred phi) { Transformation t = new Transformation(); return t.ToEnglishString(phi); } } }
{ "content_hash": "8b162a7ff41554c2ecd19d99050b1282", "timestamp": "", "source": "github", "line_count": 1804, "max_line_length": 227, "avg_line_length": 53.7450110864745, "alnum_prop": 0.458826684269153, "repo_name": "AutomataTutor/automatatutor-backend", "id": "97dba95157740e03a6b0f53cade5de223d920366", "size": "96958", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "AutomataPDL/PDL/PDLEditDistance.cs", "mode": "33188", "license": "mit", "language": [ { "name": "ANTLR", "bytes": "5419" }, { "name": "ASP", "bytes": "95" }, { "name": "C#", "bytes": "1282470" } ], "symlink_target": "" }
NSString * const kAFOAuthClientCredentialsGrantType = @"client_credentials"; NSString * const kAFOAuthPasswordCredentialsGrantType = @"password"; NSString * const kAFOAuthCodeGrantType = @"authorization_code"; NSString * const kAFOAuthRefreshGrantType = @"refresh_token"; NSString * const kAFOAuthFacebookCredentialGrantType = @"provider_facebook_token"; NSString * const AFOAuth2ErrorDomain = @"com.alamofire.networking.oauth2.error"; // See: http://tools.ietf.org/html/rfc6749#section-5.2 static NSError * AFErrorFromRFC6749Section5_2Error(id object) { if (![object valueForKey:@"error"] || [[object valueForKey:@"error"] isEqual:[NSNull null]]) { return nil; } NSMutableDictionary *mutableUserInfo = [NSMutableDictionary dictionary]; NSString *description = nil; if ([object valueForKey:@"error_description"]) { description = [object valueForKey:@"error_description"]; } else { if ([[object valueForKey:@"error"] isEqualToString:@"invalid_request"]) { description = NSLocalizedStringFromTable(@"The request is missing a required parameter, includes an unsupported parameter value (other than grant type), repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed.", @"AFOAuth2Manager", @"invalid_request"); } else if ([[object valueForKey:@"error"] isEqualToString:@"invalid_client"]) { description = NSLocalizedStringFromTable(@"Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method). The authorization server MAY return an HTTP 401 (Unauthorized) status code to indicate which HTTP authentication schemes are supported. If the client attempted to authenticate via the \"Authorization\" request header field, the authorization server MUST respond with an HTTP 401 (Unauthorized) status code and include the \"WWW-Authenticate\" response header field matching the authentication scheme used by the client.", @"AFOAuth2Manager", @"invalid_request"); } else if ([[object valueForKey:@"error"] isEqualToString:@"invalid_grant"]) { description = NSLocalizedStringFromTable(@"The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.", @"AFOAuth2Manager", @"invalid_request"); } else if ([[object valueForKey:@"error"] isEqualToString:@"unauthorized_client"]) { description = NSLocalizedStringFromTable(@"The authenticated client is not authorized to use this authorization grant type.", @"AFOAuth2Manager", @"invalid_request"); } else if ([[object valueForKey:@"error"] isEqualToString:@"unsupported_grant_type"]) { description = NSLocalizedStringFromTable(@"The authorization grant type is not supported by the authorization server.", @"AFOAuth2Manager", @"invalid_request"); } } if (description) { mutableUserInfo[NSLocalizedDescriptionKey] = description; } if ([object valueForKey:@"error_uri"]) { mutableUserInfo[NSLocalizedRecoverySuggestionErrorKey] = [object valueForKey:@"error_uri"]; } return [NSError errorWithDomain:AFOAuth2ErrorDomain code:-1 userInfo:mutableUserInfo]; } @interface AFOAuth2Manager() @property (readwrite, nonatomic, copy) NSString *serviceProviderIdentifier; @property (readwrite, nonatomic, copy) NSString *clientID; @property (readwrite, nonatomic, copy) NSString *secret; @end @implementation AFOAuth2Manager + (instancetype) managerWithBaseURL:(NSURL *)url clientID:(NSString *)clientID secret:(NSString *)secret { return [self managerWithBaseURL:url sessionConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration] clientID:clientID secret:secret]; } + (instancetype) managerWithBaseURL:(NSURL *)url sessionConfiguration:(NSURLSessionConfiguration *)configuration clientID:(NSString *)clientID secret:(NSString *)secret { return [[self alloc] initWithBaseURL:url sessionConfiguration:configuration clientID:clientID secret:secret]; } - (id)initWithBaseURL:(NSURL *)url clientID:(NSString *)clientID secret:(NSString *)secret { return [self initWithBaseURL:url sessionConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration] clientID:clientID secret:secret]; } - (id)initWithBaseURL:(NSURL *)url sessionConfiguration:(NSURLSessionConfiguration *)configuration clientID:(NSString *)clientID secret:(NSString *)secret { NSParameterAssert(url); NSParameterAssert(clientID); NSParameterAssert(secret); self = [super initWithBaseURL:url sessionConfiguration:configuration]; if (!self) { return nil; } self.serviceProviderIdentifier = [self.baseURL host]; self.clientID = clientID; self.secret = secret; self.useHTTPBasicAuthentication = YES; [self.requestSerializer setValue:@"application/json" forHTTPHeaderField:@"Accept"]; return self; } #pragma mark - - (void)setUseHTTPBasicAuthentication:(BOOL)useHTTPBasicAuthentication { _useHTTPBasicAuthentication = useHTTPBasicAuthentication; if (self.useHTTPBasicAuthentication) { [self.requestSerializer setAuthorizationHeaderFieldWithUsername:self.clientID password:self.secret]; } else { [self.requestSerializer setValue:nil forHTTPHeaderField:@"Authorization"]; } } - (void)setSecret:(NSString *)secret { if (!secret) { secret = @""; } _secret = secret; } #pragma mark - - (NSURLSessionTask *)authenticateUsingOAuthWithURLString:(NSString *)URLString username:(NSString *)username password:(NSString *)password scope:(NSString *)scope success:(void (^)(AFOAuthCredential * _Nonnull))success failure:(void (^)(NSError * _Nonnull))failure { NSParameterAssert(username); NSParameterAssert(password); NSMutableDictionary *parameters = [NSMutableDictionary dictionary]; [parameters setValue:kAFOAuthPasswordCredentialsGrantType forKey:@"grant_type"]; [parameters setValue:username forKey:@"username"]; [parameters setValue:password forKey:@"password"]; if (scope) { [parameters setValue:scope forKey:@"scope"]; } return [self authenticateUsingOAuthWithURLString:URLString parameters:parameters success:success failure:failure]; } - (NSURLSessionTask *)authenticateUsingFacebookOAuthWithURLString:(NSString *)URLString facebookId:(NSString *)facebookId facebookToken:(NSString *)facebookToken scope:(NSString *)scope success:(void (^)(AFOAuthCredential * _Nonnull))success failure:(void (^)(NSError * _Nonnull))failure { NSParameterAssert(facebookId); NSParameterAssert(facebookToken); NSMutableDictionary *parameters = [NSMutableDictionary dictionary]; [parameters setValue:kAFOAuthFacebookCredentialGrantType forKey:@"grant_type"]; [parameters setValue:facebookId forKey:@"username"]; [parameters setValue:facebookToken forKey:@"password"]; if (scope) { [parameters setValue:scope forKey:@"scope"]; } return [self authenticateUsingOAuthWithURLString:URLString parameters:parameters success:success failure:failure]; } - (NSURLSessionTask *)authenticateUsingOAuthWithURLString:(NSString *)URLString scope:(NSString *)scope success:(void (^)(AFOAuthCredential * _Nonnull))success failure:(void (^)(NSError * _Nonnull))failure { NSMutableDictionary *parameters = [NSMutableDictionary dictionary]; [parameters setValue:kAFOAuthClientCredentialsGrantType forKey:@"grant_type"]; if (scope) { [parameters setValue:scope forKey:@"scope"]; } return [self authenticateUsingOAuthWithURLString:URLString parameters:parameters success:success failure:failure]; } - (NSURLSessionTask *)authenticateUsingOAuthWithURLString:(NSString *)URLString refreshToken:(NSString *)refreshToken success:(void (^)(AFOAuthCredential *credential))success failure:(void (^)(NSError *error))failure { NSParameterAssert(refreshToken); NSDictionary *parameters = @{ @"grant_type": kAFOAuthRefreshGrantType, @"refresh_token": refreshToken }; return [self authenticateUsingOAuthWithURLString:URLString parameters:parameters success:success failure:failure]; } - (NSURLSessionTask *)authenticateUsingOAuthWithURLString:(NSString *)URLString code:(NSString *)code redirectURI:(NSString *)uri success:(void (^)(AFOAuthCredential *credential))success failure:(void (^)(NSError *error))failure { NSParameterAssert(code); NSParameterAssert(uri); NSDictionary *parameters = @{ @"grant_type": kAFOAuthCodeGrantType, @"code": code, @"redirect_uri": uri }; return [self authenticateUsingOAuthWithURLString:URLString parameters:parameters success:success failure:failure]; } - (NSURLSessionTask *)authenticateUsingOAuthWithURLString:(NSString *)URLString parameters:(NSDictionary *)parameters success:(void (^)(AFOAuthCredential *credential))success failure:(void (^)(NSError *error))failure { NSMutableDictionary *mutableParameters = [NSMutableDictionary dictionaryWithDictionary:parameters]; if (!self.useHTTPBasicAuthentication) { mutableParameters[@"client_id"] = self.clientID; mutableParameters[@"client_secret"] = self.secret; } parameters = [NSDictionary dictionaryWithDictionary:mutableParameters]; NSURLSessionTask *task; task = [self POST:URLString parameters:parameters progress:nil success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) { if (!responseObject) { if (failure) { failure(nil); } return; } if ([responseObject valueForKey:@"error"]) { if (failure) { failure(AFErrorFromRFC6749Section5_2Error(responseObject)); } } NSString *refreshToken = [responseObject valueForKey:@"refresh_token"]; if (!refreshToken || [refreshToken isEqual:[NSNull null]]) { refreshToken = [parameters valueForKey:@"refresh_token"]; } AFOAuthCredential *credential = [AFOAuthCredential credentialWithOAuthToken:[responseObject valueForKey:@"access_token"] tokenType:[responseObject valueForKey:@"token_type"]]; if (refreshToken) { // refreshToken is optional in the OAuth2 spec [credential setRefreshToken:refreshToken]; } // Expiration is optional, but recommended in the OAuth2 spec. It not provide, assume distantFuture === never expires NSDate *expireDate = [NSDate distantFuture]; id expiresIn = [responseObject valueForKey:@"expires_in"]; if (expiresIn && ![expiresIn isEqual:[NSNull null]]) { expireDate = [NSDate dateWithTimeIntervalSinceNow:[expiresIn doubleValue]]; } if (expireDate) { [credential setExpiration:expireDate]; } if (success) { success(credential); } } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) { if (failure) { failure(error); } }]; return task; } @end
{ "content_hash": "0e1e05d1923ce1ddeeef723fbabb9537", "timestamp": "", "source": "github", "line_count": 273, "max_line_length": 645, "avg_line_length": 47.54212454212454, "alnum_prop": 0.6321750520070883, "repo_name": "giuseppenucifora/PNObject", "id": "10d533bab4d01f84a56ad8691c9d5a7ebc9585c4", "size": "14203", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "PNObject/Classes/Vendors/AFOAuth2Manager/AFOAuth2Manager.m", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "23081" }, { "name": "Objective-C", "bytes": "3713790" }, { "name": "Ruby", "bytes": "1794" }, { "name": "Shell", "bytes": "20142" } ], "symlink_target": "" }
package com.example.csq.csqcoolweather; import android.content.Intent; import android.content.SharedPreferences; import android.preference.PreferenceManager; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); SharedPreferences prefes = PreferenceManager.getDefaultSharedPreferences(this); if(prefes.getString("weather",null) !=null){ Intent intent = new Intent(this,WeatherActivity.class); startActivity(intent); finish(); } } }
{ "content_hash": "18f1e60de79b574a2cb67af5a1a3203c", "timestamp": "", "source": "github", "line_count": 23, "max_line_length": 87, "avg_line_length": 32.08695652173913, "alnum_prop": 0.7276422764227642, "repo_name": "Iegend8619/MyCoolWeather", "id": "3526ac8cf04057bacb987885e2b5b221db22bcfa", "size": "738", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/src/main/java/com/example/csq/csqcoolweather/MainActivity.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "33945" } ], "symlink_target": "" }
package fr.javatronic.blog.massive.annotation1.sub1; import fr.javatronic.blog.processor.Annotation_001; @Annotation_001 public class Class_7803 { }
{ "content_hash": "a87cefefd0140047215a39c8320249f4", "timestamp": "", "source": "github", "line_count": 7, "max_line_length": 52, "avg_line_length": 21.571428571428573, "alnum_prop": 0.8079470198675497, "repo_name": "lesaint/experimenting-annotation-processing", "id": "9a6b9b3872c3db690dd4d06740de83f4d7d0d1b4", "size": "151", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "experimenting-rounds/massive-count-of-annotated-classes/src/main/java/fr/javatronic/blog/massive/annotation1/sub1/Class_7803.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "1909421" }, { "name": "Shell", "bytes": "1605" } ], "symlink_target": "" }
@class PXLayer; @interface PXMoveTool : PXLinearTool { PXLayer *realLayer, *copyLayer, *moveLayer; BOOL isCopying; BOOL isMovingSelection; NSPoint origin, selectionOrigin; NSRect selectedRect, lastSelectedRect; PXSelectionMask oldMask; } - (void)updateCopyLayerForCanvas:(PXCanvas *)canvas; @end
{ "content_hash": "9953cd1658d5749e92a7d25992f46a0d", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 52, "avg_line_length": 23.307692307692307, "alnum_prop": 0.7920792079207921, "repo_name": "jshier/Pixen", "id": "c50259317816ec35379499123828599ed1547afc", "size": "1699", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Pixen Application/Tools/Tools/PXMoveTool.h", "mode": "33261", "license": "mit", "language": [ { "name": "C", "bytes": "512618" }, { "name": "Java", "bytes": "26571" }, { "name": "Objective-C", "bytes": "1010162" } ], "symlink_target": "" }
ACCEPTED #### According to International Plant Names Index #### Published in null #### Original name null ### Remarks null
{ "content_hash": "cfbd5e66a08e1a0ab06f18fc66b7959b", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 31, "avg_line_length": 9.692307692307692, "alnum_prop": 0.7063492063492064, "repo_name": "mdoering/backbone", "id": "97dfef967137680a554902b444d2778d46e2e870", "size": "190", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Plantae/Magnoliophyta/Magnoliopsida/Malpighiales/Ochnaceae/Ouratea/Ouratea rotundipetala/README.md", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
package org.apache.flink.streaming.api.scala.async import org.apache.flink.annotation.PublicEvolving /** * A function to trigger async I/O operations. * * For each asyncInvoke an async io operation can be triggered, and once it has been done, * the result can be collected by calling ResultFuture.complete. For each async operation, its * context is stored in the operator immediately after invoking asyncInvoke, avoiding blocking for * each stream input as long as the internal buffer is not full. * * [[ResultFuture]] can be passed into callbacks or futures to collect the result data. * An error can also be propagate to the async IO operator by * [[ResultFuture.completeExceptionally(Throwable)]]. * * @tparam IN The type of the input element * @tparam OUT The type of the output elements */ @PublicEvolving trait AsyncFunction[IN, OUT] { /** * Trigger the async operation for each stream input * * @param input element coming from an upstream task * @param resultFuture to be completed with the result data */ def asyncInvoke(input: IN, resultFuture: ResultFuture[OUT]): Unit }
{ "content_hash": "d6ac850fa5bc137673a65136bf5ff29b", "timestamp": "", "source": "github", "line_count": 32, "max_line_length": 99, "avg_line_length": 35.625, "alnum_prop": 0.737719298245614, "repo_name": "zohar-mizrahi/flink", "id": "aea6b57a3c0a1998edb6291c438a6142e750189f", "size": "1945", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "flink-streaming-scala/src/main/scala/org/apache/flink/streaming/api/scala/async/AsyncFunction.scala", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "4792" }, { "name": "CSS", "bytes": "18100" }, { "name": "CoffeeScript", "bytes": "89007" }, { "name": "HTML", "bytes": "86524" }, { "name": "Java", "bytes": "31605216" }, { "name": "JavaScript", "bytes": "8267" }, { "name": "Python", "bytes": "240673" }, { "name": "Scala", "bytes": "5925253" }, { "name": "Shell", "bytes": "93241" } ], "symlink_target": "" }
tl;dr; http://stateless.co/hal_specification.html TODO: fill this in with some commentary
{ "content_hash": "62e79d1c02e5417d716d2381381f5312", "timestamp": "", "source": "github", "line_count": 3, "max_line_length": 50, "avg_line_length": 30.333333333333332, "alnum_prop": 0.7802197802197802, "repo_name": "masonforest/horizon-importer", "id": "8ebf838603c52a26fe8eb3f97bb3fb4854210d1d", "size": "123", "binary": false, "copies": "4", "ref": "refs/heads/master", "path": "doc/responses.md", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Ruby", "bytes": "139618" } ], "symlink_target": "" }
set -eo pipefail -o nounset if [[ -z $(conda info --envs | grep "*" | grep -o "\/.*") ]]; then export CONDA_ROOT=$(conda info --root) env_dir=$CONDA_ROOT export RECIPE_DIR=$CONDA_ROOT/share/ggd/Homo_sapiens/GRCh38/grch38-chrom-mapping-ensembl2refseq-ncbi-v1/1 elif [[ $(conda info --envs | grep "*" | grep -o "\/.*") == "base" ]]; then export CONDA_ROOT=$(conda info --root) env_dir=$CONDA_ROOT export RECIPE_DIR=$CONDA_ROOT/share/ggd/Homo_sapiens/GRCh38/grch38-chrom-mapping-ensembl2refseq-ncbi-v1/1 else env_dir=$(conda info --envs | grep "*" | grep -o "\/.*") export CONDA_ROOT=$env_dir export RECIPE_DIR=$env_dir/share/ggd/Homo_sapiens/GRCh38/grch38-chrom-mapping-ensembl2refseq-ncbi-v1/1 fi PKG_DIR=`find "$CONDA_SOURCE_PREFIX/pkgs/" -name "$PKG_NAME-$PKG_VERSION*" | grep -v ".tar.bz2" | grep "$PKG_VERSION.*$PKG_BUILDNUM$"` if [ -d $RECIPE_DIR ]; then rm -r $RECIPE_DIR fi mkdir -p $RECIPE_DIR (cd $RECIPE_DIR && bash $PKG_DIR/info/recipe/recipe.sh) cd $RECIPE_DIR ## Iterate over new files and replace file name with data package name and data version for f in *; do ext="${f#*.}" filename="{f%%.*}" if [[ ! -f "grch38-chrom-mapping-ensembl2refseq-ncbi-v1.$ext" ]] then (mv $f "grch38-chrom-mapping-ensembl2refseq-ncbi-v1.$ext") fi done ## Add environment variables #### File if [[ `find $RECIPE_DIR -type f -maxdepth 1 | wc -l | sed 's/ //g'` == 1 ]] ## If only one file then recipe_env_file_name="ggd_grch38-chrom-mapping-ensembl2refseq-ncbi-v1_file" recipe_env_file_name="$(echo "$recipe_env_file_name" | sed 's/-/_/g' | sed 's/\./_/g')" file_path="$(find $RECIPE_DIR -type f -maxdepth 1)" elif [[ `find $RECIPE_DIR -type f -maxdepth 1 | wc -l | sed 's/ //g'` == 2 ]] ## If two files then indexed_file=`find $RECIPE_DIR -type f \( -name "*.tbi" -or -name "*.fai" -or -name "*.bai" -or -name "*.crai" -or -name "*.gzi" \) -maxdepth 1` if [[ ! -z "$indexed_file" ]] ## If index file exists then recipe_env_file_name="ggd_grch38-chrom-mapping-ensembl2refseq-ncbi-v1_file" recipe_env_file_name="$(echo "$recipe_env_file_name" | sed 's/-/_/g' | sed 's/\./_/g')" file_path="$(echo $indexed_file | sed 's/\.[^.]*$//')" ## remove index extension fi fi #### Dir recipe_env_dir_name="ggd_grch38-chrom-mapping-ensembl2refseq-ncbi-v1_dir" recipe_env_dir_name="$(echo "$recipe_env_dir_name" | sed 's/-/_/g' | sed 's/\./_/g')" activate_dir="$env_dir/etc/conda/activate.d" deactivate_dir="$env_dir/etc/conda/deactivate.d" mkdir -p $activate_dir mkdir -p $deactivate_dir echo "export $recipe_env_dir_name=$RECIPE_DIR" >> $activate_dir/env_vars.sh echo "unset $recipe_env_dir_name">> $deactivate_dir/env_vars.sh #### File ## If the file env variable exists, set the env file var if [[ ! -z "${recipe_env_file_name:-}" ]] then echo "export $recipe_env_file_name=$file_path" >> $activate_dir/env_vars.sh echo "unset $recipe_env_file_name">> $deactivate_dir/env_vars.sh fi echo 'Recipe successfully built!'
{ "content_hash": "8771bf6ff820ea53a39b6e87e487cab2", "timestamp": "", "source": "github", "line_count": 82, "max_line_length": 148, "avg_line_length": 37.34146341463415, "alnum_prop": 0.6329196603527106, "repo_name": "gogetdata/ggd-recipes", "id": "a63e84fcfa3f8867d52182416d539c2db0d8e8ca", "size": "3074", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "recipes/genomics/Homo_sapiens/GRCh38/grch38-chrom-mapping-ensembl2refseq-ncbi-v1/post-link.sh", "mode": "33188", "license": "mit", "language": [ { "name": "Python", "bytes": "35316" }, { "name": "Shell", "bytes": "336274" } ], "symlink_target": "" }
@interface BusinessLocation : NSObject <MKAnnotation> @property (nonatomic, strong) Business *business; - (id)initWithBusiness:(Business *)business; - (MKMapItem *)mapItem; @end #endif
{ "content_hash": "dfc952c14ad1eb2da517efa012b68e96", "timestamp": "", "source": "github", "line_count": 11, "max_line_length": 53, "avg_line_length": 17.272727272727273, "alnum_prop": 0.7473684210526316, "repo_name": "naeims/yelpclient", "id": "6ec25734464bd24b8bc24e1f74a6efacd7d09dd7", "size": "478", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Yelp/BusinessLocation.h", "mode": "33188", "license": "mit", "language": [ { "name": "Objective-C", "bytes": "62593" }, { "name": "Ruby", "bytes": "86" } ], "symlink_target": "" }
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal" android:padding="@dimen/activity_margin"> <Button android:id="@+id/insert" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerInParent="true" android:text="@string/insert_contacts_string" android:textColor="@color/white" android:textAppearance="@android:style/TextAppearance.Material.Large" android:onClick="onClick" android:enabled="false"> </Button> </RelativeLayout>
{ "content_hash": "f3ad6f7c66fd854084f00e7c48f02f24", "timestamp": "", "source": "github", "line_count": 21, "max_line_length": 77, "avg_line_length": 35.19047619047619, "alnum_prop": 0.6765899864682002, "repo_name": "aporter/coursera-android", "id": "fb274930408f85dced2a73490781a95780f4cd83", "size": "739", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "Examples2018/ContentProviderInsertContacts/app/src/main/res/layout/main.xml", "mode": "33261", "license": "mit", "language": [ { "name": "Java", "bytes": "392977" }, { "name": "Kotlin", "bytes": "149679" } ], "symlink_target": "" }
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.openapi.project; import com.intellij.openapi.Disposable; import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.util.InvalidDataException; import com.intellij.util.messages.Topic; import org.jdom.JDOMException; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.io.IOException; /** * Provides project management. */ public abstract class ProjectManager { public static final Topic<ProjectManagerListener> TOPIC = new Topic<>("Project open and close events", ProjectManagerListener.class); /** * @return {@code ProjectManager} instance */ public static ProjectManager getInstance() { return ApplicationManager.getApplication().getComponent(ProjectManager.class); } /** * @deprecated Use {@link #TOPIC} instead */ @Deprecated public abstract void addProjectManagerListener(@NotNull ProjectManagerListener listener); public abstract void addProjectManagerListener(@NotNull VetoableProjectManagerListener listener); /** * @deprecated Use {@link #TOPIC} instead */ @Deprecated public abstract void addProjectManagerListener(@NotNull ProjectManagerListener listener, @NotNull Disposable parentDisposable); /** * @deprecated Use {@link #TOPIC} instead */ @Deprecated public abstract void removeProjectManagerListener(@NotNull ProjectManagerListener listener); public abstract void removeProjectManagerListener(@NotNull VetoableProjectManagerListener listener); /** * Adds listener to the specified project. * * @param project project to add listener to * @param listener listener to add */ public abstract void addProjectManagerListener(@NotNull Project project, @NotNull ProjectManagerListener listener); /** * Removes listener from the specified project. * * @param project project to remove listener from * @param listener listener to remove */ public abstract void removeProjectManagerListener(@NotNull Project project, @NotNull ProjectManagerListener listener); /** * Returns the list of currently opened projects. * * @return the array of currently opened projects. */ @NotNull public abstract Project[] getOpenProjects(); /** * Returns the project which is used as a template for new projects. The template project * is always available, even when no other project is open. This {@link Project} instance is not * supposed to be used for anything except template settings storage.<p/> * * NB: default project can be lazy loaded * * @return the template project instance. */ @NotNull public abstract Project getDefaultProject(); /** * Loads and opens a project with the specified path. If the project file is from an older IDEA * version, prompts the user to convert it to the latest version. If the project file is from a * newer version, shows a message box telling the user that the load failed. * * @param filePath the .ipr file path * @return the opened project file, or null if the project failed to load because of version mismatch * or because the project is already open. * @throws IOException if the project file was not found or failed to read * @throws JDOMException if the project file contained invalid XML * @throws InvalidDataException if the project file contained invalid data */ @Nullable public abstract Project loadAndOpenProject(@NotNull String filePath) throws IOException, JDOMException, InvalidDataException; /** * Closes the specified project, but does not dispose it. * * @param project the project to close. * @return true if the project was closed successfully, false if the closing was disallowed by the close listeners. */ public abstract boolean closeProject(@NotNull Project project); /** * Asynchronously reloads the specified project. * * @param project the project to reload. */ @SuppressWarnings("unused") public abstract void reloadProject(@NotNull Project project); /** * Create new project in given location. * * @param name project name * @param path project location * * @return newly crated project */ @Nullable public abstract Project createProject(@Nullable String name, @NotNull String path); }
{ "content_hash": "1829fa0e93c979d4d646ffec77edcf6b", "timestamp": "", "source": "github", "line_count": 126, "max_line_length": 140, "avg_line_length": 35.492063492063494, "alnum_prop": 0.7419499105545617, "repo_name": "paplorinc/intellij-community", "id": "ef545e189a0b6ef203f264844771578894403171", "size": "4472", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "platform/projectModel-api/src/com/intellij/openapi/project/ProjectManager.java", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
#ifndef InertAnimation_h #define InertAnimation_h #include "core/CoreExport.h" #include "core/animation/AnimationEffect.h" #include "core/animation/AnimationNode.h" #include "wtf/RefPtr.h" namespace blink { class CORE_EXPORT InertAnimation final : public AnimationNode { public: static PassRefPtrWillBeRawPtr<InertAnimation> create(PassRefPtrWillBeRawPtr<AnimationEffect>, const Timing&, bool paused, double inheritedTime); void sample(OwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolation>>>&); AnimationEffect* effect() const { return m_effect.get(); } bool paused() const { return m_paused; } DECLARE_VIRTUAL_TRACE(); protected: virtual void updateChildrenAndEffects() const override { } virtual double calculateTimeToEffectChange(bool forwards, double inheritedTime, double timeToNextIteration) const override; private: InertAnimation(PassRefPtrWillBeRawPtr<AnimationEffect>, const Timing&, bool paused, double inheritedTime); RefPtrWillBeMember<AnimationEffect> m_effect; bool m_paused; double m_inheritedTime; }; } // namespace blink #endif
{ "content_hash": "202c2b5581aecbd698df0045b164c485", "timestamp": "", "source": "github", "line_count": 35, "max_line_length": 148, "avg_line_length": 31.885714285714286, "alnum_prop": 0.7768817204301075, "repo_name": "prepare/Blink_only_permissive_lic_files", "id": "1b3f80a7b5f78db71712d11e2f4c1f62514c32f8", "size": "2678", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Source/core/animation/InertAnimation.h", "mode": "33261", "license": "bsd-3-clause", "language": [ { "name": "Assembly", "bytes": "14768" }, { "name": "Bison", "bytes": "61184" }, { "name": "C", "bytes": "37531" }, { "name": "C++", "bytes": "33388592" }, { "name": "CSS", "bytes": "405227" }, { "name": "Erlang", "bytes": "2388" }, { "name": "Groff", "bytes": "26536" }, { "name": "HTML", "bytes": "177647" }, { "name": "Java", "bytes": "70616" }, { "name": "JavaScript", "bytes": "6454876" }, { "name": "Objective-C", "bytes": "20333" }, { "name": "Objective-C++", "bytes": "293916" }, { "name": "Perl", "bytes": "26940" }, { "name": "Prolog", "bytes": "74" }, { "name": "Python", "bytes": "1014032" }, { "name": "Shell", "bytes": "18550" } ], "symlink_target": "" }
package io.amaze.bench.cluster.actor; import io.amaze.bench.api.ActorKey; import io.amaze.bench.cluster.LifecycleMessage; import io.amaze.bench.cluster.agent.AgentKey; import io.amaze.bench.cluster.registry.ActorRegistryListener; import javax.validation.constraints.NotNull; import static java.util.Objects.requireNonNull; /** * This message class represents actor lifecycle notifications. * It is meant to be sent by an agent to the registry.<br> */ public final class ActorLifecycleMessage implements LifecycleMessage { private final ActorKey actor; private final State state; private final AgentKey agent; private final ActorDeployInfo deployInfo; private final Throwable throwable; private ActorLifecycleMessage(@NotNull final State state, @NotNull final ActorKey actor, final AgentKey agent, final ActorDeployInfo deployInfo, final Throwable throwable) { this.actor = requireNonNull(actor); this.state = requireNonNull(state); this.agent = agent; this.deployInfo = deployInfo; this.throwable = throwable; } public static ActorLifecycleMessage created(@NotNull final ActorKey actor, @NotNull final AgentKey agent) { requireNonNull(actor); requireNonNull(agent); return new ActorLifecycleMessage(State.CREATED, actor, agent, null, null); } public static ActorLifecycleMessage initialized(@NotNull final ActorKey actor, @NotNull final ActorDeployInfo deployInfo) { requireNonNull(actor); requireNonNull(deployInfo); return new ActorLifecycleMessage(State.INITIALIZED, actor, null, deployInfo, null); } public static ActorLifecycleMessage failed(@NotNull final ActorKey actor, @NotNull final Throwable throwable) { requireNonNull(actor); requireNonNull(throwable); return new ActorLifecycleMessage(State.FAILED, actor, null, null, throwable); } public static ActorLifecycleMessage closed(@NotNull final ActorKey actor) { requireNonNull(actor); return new ActorLifecycleMessage(State.CLOSED, actor, null, null, null); } /** * Calls the given registry listener using the current message. * Not synchronized. * * @param registryListener Listener to be notified with the event represented by this message. */ public void sendTo(final ActorRegistryListener registryListener) { requireNonNull(registryListener); switch (getState()) { case CREATED: registryListener.onActorCreated(actor, agent); break; case INITIALIZED: registryListener.onActorInitialized(actor, deployInfo); break; case FAILED: registryListener.onActorFailed(actor, throwable); break; case CLOSED: registryListener.onActorClosed(actor); break; default: } } @NotNull public ActorKey getActor() { return actor; } @NotNull public State getState() { return state; } public AgentKey getAgent() { return agent; } public ActorDeployInfo getDeployInfo() { return deployInfo; } public Throwable getThrowable() { return throwable; } @Override public String toString() { return "{\"ActorLifecycleMessage\":{" + // "\"actor\":" + actor + ", " + // "\"state\":\"" + state + "\", " + // "\"throwable\":" + throwable + ", " + // "\"agent\":" + agent + ", " + // "\"deployInfo\":" + deployInfo + "}}"; } public enum State { CREATED, // INITIALIZED, // FAILED, // CLOSED // } }
{ "content_hash": "4b7efe6124c40fd067d01d9cd2ef6a6c", "timestamp": "", "source": "github", "line_count": 129, "max_line_length": 115, "avg_line_length": 31.03875968992248, "alnum_prop": 0.6071428571428571, "repo_name": "florentw/bench", "id": "0e69bfa43ee19b3eaada50be3d65e1129e2aa894", "size": "4631", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "cluster-api/src/main/java/io/amaze/bench/cluster/actor/ActorLifecycleMessage.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "887382" }, { "name": "Shell", "bytes": "760" } ], "symlink_target": "" }
<resources> <string name="app_name">Foodie</string> <string name="hello_world">Hello world!</string> <string name="action_settings">Settings</string> <string name="default_age">18</string> <string name="fixed_string_age">Age:</string> <string name="fixed_string_male">Male</string> <string name="fixed_string_female">Female</string> <string name="title_activity_maps">Map</string> <string name="title_activity_main2">Main2Activity</string> <string name="section_format">Hello World from section: %1$d</string> <string name="title_tab_one">EAT</string> <string name="title_tab_two">CONTACTS</string> <string name="title_tab_three">PROFILE</string> <string name="menu_qr">Scan QR Code</string> <string name="menu_reservation">Reservation</string> <string name="menu_twitter">Twitter</string> <string name="menu_facebook">Facebook</string> <string name="menu_feedback">Feedback</string> <string name="bm_string_friends">Friends</string> <string name="bm_string_restaurants">Restaurants</string> <string name="bm_string_profile">Profile</string> <string name="bm_string_settings">Settings</string> <string name="bm_string_logout">Logout</string> <string name="bm_string_scan">Scan</string> <string name="bm_string_reservation">Reservation</string> <string name="tab_home_string_first">Last coms</string> <string name="tab_home_string_second">Reservations</string> <string name="tab_home_string_third">Messages</string> <string name="tv_profile_mail_text">phillipe@salaud.com</string> <string name="tab_reservation_string_first">Last</string> <string name="tab_reservation_string_second">Today</string> <string name="tab_reservation_string_third">Future</string> <string name="tab_restaurant_string_first">Last</string> <string name="tab_restaurant_string_second">Near me</string> <string name="tab_restaurant_string_third">Find</string> <string-array name="sports_array"> <item>Shuttle Badminton</item> <item>Tennis</item> <item>FootBall</item> <item>Basket Ball</item> <item>Table Tennis</item> <item>Chess</item> <item>Hockey</item> </string-array> <!-- TODO: Remove or change this placeholder text --> <string name="hello_blank_fragment">Hello blank fragment</string> <string name="cd_logo">Logo</string> <string name="cd_profile_picture">Profile picture</string> <string name="cd_mail_address">Mail address</string> <string name="cd_home_address">Home address</string> <string name="tab_friend_string_first">List</string> <string name="tab_friend_string_second">Message</string> </resources>
{ "content_hash": "52a5b928539313cd32764655a9ede3df", "timestamp": "", "source": "github", "line_count": 62, "max_line_length": 73, "avg_line_length": 44.12903225806452, "alnum_prop": 0.6882309941520468, "repo_name": "LaFoodMagique/LFM-Android", "id": "fe16bde531341a1c3ab7f1f771b251cc5edd2219", "size": "2736", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/src/main/res/values/strings.xml", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "216093" } ], "symlink_target": "" }
package jsystem.extensions.report.sumextended; import java.io.File; import java.io.FileInputStream; import java.io.FileWriter; import java.io.IOException; import java.util.Enumeration; import java.util.HashMap; import java.util.Properties; import java.util.logging.Level; import java.util.logging.Logger; import jsystem.extensions.report.html.summary.Attribute; import jsystem.extensions.report.html.summary.Chapter; import jsystem.extensions.report.html.summary.HtmlSummaryReporter; import jsystem.extensions.report.html.summary.Table; import jsystem.extensions.report.html.summary.Tag; import jsystem.framework.FrameworkOptions; import jsystem.framework.JSystemProperties; import jsystem.framework.report.TestReporter; import jsystem.framework.sut.SutFactory; import jsystem.utils.DateUtils; import jsystem.utils.StringUtils; import junit.framework.AssertionFailedError; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestListener; public class HtmlSummaryReporterExtentsion implements TestReporter, TestListener { private static Logger log = Logger.getLogger(HtmlSummaryReporter.class.getName()); private File summaryFile; private Tag html; private Tag main; private Table summary; private HashMap<String, Chapter> chapters; private long totalTime; private int numberOfTests = 0; private int numberOfFails = 0; private DataReader hpr; long startTestTime = 0; boolean status = true; public HtmlSummaryReporterExtentsion() { this(new File(System.getProperty("user.dir"))); File f = new File("summaryExtendded.html"); setSummaryFile(f); } public HtmlSummaryReporterExtentsion(File summaryFile) { chapters = new HashMap<String, Chapter>(); // setCurrentDirectory(currentDir); // summaryFile = new File(currentDir,"summary.html"); setSummaryFile(summaryFile); html = new Tag("html"); Tag head = new Tag("head"); head.add(new Tag("link", "rel=stylesheet type=text/css href=./styles.css")); Tag title = new Tag("title"); title.add("JSystem summary report"); head.add(title); html.add(head); Tag body = new Tag("body"); body.add(new Tag("H1", null, "JSystem summary report")); body.add(new Tag("p", false)); body.add(new Tag("a", "href=index.html", "Detailed report")); body.add(new Tag("p", false)); String link = SutFactory.getInstance().getSutInstance().getSetupLink(); if (link != null) { body.add(new Tag("a", "href=\"" + link + "\"", "Setup")); body.add(new Tag("p", false)); } html.add(body); main = new Tag("div", "align=left"); main.add(new Tag("p", false)); body.add(main); summary = new Table(new Object[0][]); main.add(summary); main.add(new Tag("p", false)); main.add(getPropertiesTable()); try { saveFile(); } catch (Exception e) { log.log(Level.WARNING, "Fail to write file: " + summaryFile.getPath(), e); } String srcPath = JSystemProperties.getInstance().getPreference(FrameworkOptions.TESTS_SOURCE_FOLDER); hpr = new HtmlPackageReader(srcPath); } public void init() { } public void endTest(String testName, String packageName, long runTime, String commant) { totalTime += runTime; updateSummaryTable(status); Chapter c = (Chapter) chapters.get(packageName); if (c == null) { String title = hpr.getTitle(packageName); if (title == null) { title = packageName; } String description = hpr.getDescription(packageName); Table t = new Table(new String[][] { { "Test&nbsp;name", "status", "Comment" } }); c = new Chapter(title, description, t); chapters.put(packageName, c); main.add(c); } Table table = c.getTable(); Tag row = new Tag("TR"); Tag testCell = new Tag("TD"); Tag statusCell = new Tag("TD", "ALIGN=center"); Tag commantCell = new Tag("TD"); // Tag link = new Tag("a", "href=" + file,testName); testCell.add(testName); row.add(testCell); if (status) { Attribute atrib = new Attribute("BGCOLOR", ""); row.addAttribute(atrib); statusCell.add("pass"); } else { Attribute atrib = new Attribute("BGCOLOR", ""); row.addAttribute(atrib); statusCell.add("fail"); } row.add(statusCell); if (commant == null) { commant = " "; } commantCell.add(commant); row.add(commantCell); table.add(row); try { saveFile(); } catch (Exception e) { log.log(Level.WARNING, "fail to save summary file", e); } } /** * @return Returns the summaryFile. */ public File getSummaryFile() { return summaryFile; } /** * @param summaryFile * The summaryFile to set. */ public void setSummaryFile(File summaryFile) { this.summaryFile = summaryFile; } private void saveFile() throws Exception { FileWriter writer = new FileWriter(summaryFile); writer.write(html.toString()); writer.flush(); writer.close(); } private void updateSummaryTable(boolean isPass) { numberOfTests++; if (!isPass) { numberOfFails++; } summary.clear(); Tag tableRow = new Tag("TR"); tableRow.add(new Tag("TH", null, "General statistics")); tableRow.add(new Tag("TH")); summary.add(tableRow); tableRow = new Tag("TR"); tableRow.add(new Tag("TD", null, "Number of tests")); tableRow.add(new Tag("TD", null, Integer.toString(numberOfTests))); summary.add(tableRow); tableRow = new Tag("TR"); tableRow.add(new Tag("TD", null, "Number of fails")); tableRow.add(new Tag("TD", null, Integer.toString(numberOfFails))); summary.add(tableRow); tableRow = new Tag("TR"); tableRow.add(new Tag("TD", null, "Running time")); tableRow.add(new Tag("TD", null, Long.toString((totalTime / 1000)) + " sec.")); summary.add(tableRow); } private Tag getPropertiesTable() { Tag table = new Table(new Object[0][]); ; Tag tableHeader = new Tag("TR"); tableHeader.add(new Tag("TH", null, "Run properties")); tableHeader.add(new Tag("TH")); table.add(tableHeader); Tag tableRow = new Tag("TR"); tableRow.add(new Tag("TD", null, "Data")); tableRow.add(new Tag("TD", null, DateUtils.getDate())); table.add(tableRow); tableRow = new Tag("TR"); tableRow.add(new Tag("TD", null, "User")); tableRow.add(new Tag("TD", null, System.getProperty("user.name"))); table.add(tableRow); File summaryProperties = new File("summary.properties"); if (summaryProperties.exists()) { Properties p = new Properties(); try { p.load(new FileInputStream(summaryProperties)); } catch (Exception e) { e.printStackTrace(); } Enumeration<?> enum1 = p.keys(); while (enum1.hasMoreElements()) { String key = (String) enum1.nextElement(); tableRow = new Tag("TR"); tableRow.add(new Tag("TD", null, key)); tableRow.add(new Tag("TD", null, p.getProperty(key))); table.add(tableRow); } } return table; } /* * (non-Javadoc) * * @see jsystem.framework.launcher.report.TestReporter#initReporterManager() */ public void initReporterManager() throws IOException { } /* * (non-Javadoc) * * @see jsystem.framework.launcher.report.TestReporter#asUI() */ public boolean asUI() { return false; } /* * (non-Javadoc) * * @see jsystem.framework.launcher.report.TestReporter#report(java.lang.String, * java.lang.String, boolean, boolean) */ public void report(String title, String message, boolean isPass, boolean bold) { // TODO Auto-generated method stub } /* * (non-Javadoc) * * @see jsystem.framework.launcher.report.TestReporter#getName() */ public String getName() { // TODO Auto-generated method stub return null; } /* * (non-Javadoc) * * @see junit.framework.TestListener#addError(junit.framework.Test, * java.lang.Throwable) */ public void addError(Test test, Throwable t) { status = false; } /* * (non-Javadoc) * * @see junit.framework.TestListener#addFailure(junit.framework.Test, * junit.framework.AssertionFailedError) */ public void addFailure(Test test, AssertionFailedError t) { status = false; } /* * (non-Javadoc) * * @see junit.framework.TestListener#endTest(junit.framework.Test) */ public void endTest(Test test) { String testName; String testClass = test.getClass().getName(); String packageName = StringUtils.getPackageName(testClass); testName = StringUtils.getClassName(testClass); String methodName = null; if (test instanceof TestCase) { methodName = ((TestCase) test).getName(); } endTest(testName + "." + methodName, packageName, System.currentTimeMillis() - startTestTime, null); } /* * (non-Javadoc) * * @see junit.framework.TestListener#startTest(junit.framework.Test) */ public void startTest(Test test) { startTestTime = System.currentTimeMillis(); status = true; } public void report(String title, String message, int status, boolean bold) { } }
{ "content_hash": "bc2bff9130d72b1ad16ea33a4ec53e8f", "timestamp": "", "source": "github", "line_count": 333, "max_line_length": 103, "avg_line_length": 26.384384384384383, "alnum_prop": 0.6849533348508992, "repo_name": "Top-Q/jsystem", "id": "36a8f703bc41a538861c0548cef41dd249601425", "size": "8890", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "jsystem-core-projects/jsystemAgent/src/main/java/jsystem/extensions/report/sumextended/HtmlSummaryReporterExtentsion.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "14177" }, { "name": "CSS", "bytes": "3065" }, { "name": "HTML", "bytes": "16431" }, { "name": "Java", "bytes": "4117055" }, { "name": "JavaScript", "bytes": "14502" }, { "name": "Python", "bytes": "3393" }, { "name": "Shell", "bytes": "9478" } ], "symlink_target": "" }
ACCEPTED #### According to International Plant Names Index #### Published in null #### Original name null ### Remarks null
{ "content_hash": "3cdca10a6818a66ffac421131e3eeed2", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 31, "avg_line_length": 9.692307692307692, "alnum_prop": 0.7063492063492064, "repo_name": "mdoering/backbone", "id": "e560f0c48821514cf6ea79b260d02126bc4cbdc1", "size": "181", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Plantae/Magnoliophyta/Magnoliopsida/Fabales/Fabaceae/Baikiaea/Baikiaea lescrauwaetii/README.md", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
'=============================================================================== ' Generated From - VbNet_SQL_dOOdads_BusinessEntity.vbgen ' ' ** IMPORTANT ** ' How to Generate your stored procedures: ' ' SQL = SQL_StoredProcs.vbgen ' ACCESS = Access_StoredProcs.vbgen ' ORACLE = Oracle_StoredProcs.vbgen ' FIREBIRD = FirebirdStoredProcs.vbgen ' POSTGRESQL = PostgreSQL_StoredProcs.vbgen ' ' The supporting base class FirebirdSqlEntity is in the Architecture directory in "dOOdads". ' ' This object is 'MustInherit' which means you need to inherit from it to be able ' to instantiate it. This is very easilly done. You can Override properties and ' methods in your derived class, this allows you to regenerate this class at any ' time and not worry about overwriting custom code. ' ' NEVER EDIT THIS FILE. ' ' Public Class YourObject ' Inherits _YourObject ' ' End Class ' '=============================================================================== ' Generated by MyGeneration Version # (1.1.3.5) Imports System Imports System.Data Imports FirebirdSql.Data.Firebird Imports System.Collections Imports System.Collections.Specialized Imports MyGeneration.dOOdads Namespace MyGeneration.dOOdads.Tests.Firebird Public MustInherit Class _AggregateTest Inherits FirebirdSqlEntity Public Sub New() Me.QuerySource = "AggregateTest" Me.MappingName = "AggregateTest" Me.Dialect = 3 End Sub '================================================================= ' Public Overrides Sub AddNew() '================================================================= ' '================================================================= Public Overrides Sub AddNew() MyBase.AddNew() End Sub Public Overrides Sub FlushData() Me._whereClause = Nothing Me._aggregateClause = Nothing MyBase.FlushData() End Sub '================================================================= ' Public Function LoadAll() As Boolean '================================================================= ' Loads all of the records in the database, and sets the currentRow to the first row '================================================================= Public Function LoadAll() As Boolean Dim parameters As ListDictionary = Nothing Return MyBase.LoadFromSql("PL_AGGREGATETEST", parameters) End Function '================================================================= ' Public Overridable Function LoadByPrimaryKey() As Boolean '================================================================= ' Loads a single row of via the primary key '================================================================= Public Overridable Function LoadByPrimaryKey(ByVal ID As Integer) As Boolean Dim parameters As ListDictionary = New ListDictionary parameters.Add(Me.Parameters.ID, ID) Return MyBase.LoadFromSql("PK_AGGREGATETEST", parameters) End Function #Region "Parameters" Protected Class Parameters Public Shared ReadOnly Property ID() As FbParameter Get Return New FbParameter("@ID", FbDbType.Integer, 0) End Get End Property Public Shared ReadOnly Property DepartmentID() As FbParameter Get Return New FbParameter("@DepartmentID", FbDbType.Integer, 0) End Get End Property Public Shared ReadOnly Property FirstName() As FbParameter Get Return New FbParameter("@FirstName", FbDbType.VarChar, 25) End Get End Property Public Shared ReadOnly Property LastName() As FbParameter Get Return New FbParameter("@LastName", FbDbType.VarChar, 15) End Get End Property Public Shared ReadOnly Property Age() As FbParameter Get Return New FbParameter("@Age", FbDbType.Integer, 0) End Get End Property Public Shared ReadOnly Property HireDate() As FbParameter Get Return New FbParameter("@HireDate", FbDbType.TimeStamp, 0) End Get End Property Public Shared ReadOnly Property Salary() As FbParameter Get Return New FbParameter("@Salary", FbDbType.Numeric, 0) End Get End Property Public Shared ReadOnly Property IsActive() As FbParameter Get Return New FbParameter("@IsActive", FbDbType.SmallInt, 0) End Get End Property End Class #End Region #Region "ColumnNames" Public Class ColumnNames Public Const ID As String = "ID" Public Const DepartmentID As String = "DepartmentID" Public Const FirstName As String = "FirstName" Public Const LastName As String = "LastName" Public Const Age As String = "Age" Public Const HireDate As String = "HireDate" Public Const Salary As String = "Salary" Public Const IsActive As String = "IsActive" Public Shared Function ToPropertyName(ByVal columnName As String) As String If ht Is Nothing Then ht = New Hashtable ht(ID) = _AggregateTest.PropertyNames.ID ht(DepartmentID) = _AggregateTest.PropertyNames.DepartmentID ht(FirstName) = _AggregateTest.PropertyNames.FirstName ht(LastName) = _AggregateTest.PropertyNames.LastName ht(Age) = _AggregateTest.PropertyNames.Age ht(HireDate) = _AggregateTest.PropertyNames.HireDate ht(Salary) = _AggregateTest.PropertyNames.Salary ht(IsActive) = _AggregateTest.PropertyNames.IsActive End If Return CType(ht(columnName), String) End Function Private Shared ht As Hashtable = Nothing End Class #End Region #Region "PropertyNames" Public Class PropertyNames Public Const ID As String = "ID" Public Const DepartmentID As String = "DepartmentID" Public Const FirstName As String = "FirstName" Public Const LastName As String = "LastName" Public Const Age As String = "Age" Public Const HireDate As String = "HireDate" Public Const Salary As String = "Salary" Public Const IsActive As String = "IsActive" Public Shared Function ToColumnName(ByVal propertyName As String) As String If ht Is Nothing Then ht = New Hashtable ht(ID) = _AggregateTest.ColumnNames.ID ht(DepartmentID) = _AggregateTest.ColumnNames.DepartmentID ht(FirstName) = _AggregateTest.ColumnNames.FirstName ht(LastName) = _AggregateTest.ColumnNames.LastName ht(Age) = _AggregateTest.ColumnNames.Age ht(HireDate) = _AggregateTest.ColumnNames.HireDate ht(Salary) = _AggregateTest.ColumnNames.Salary ht(IsActive) = _AggregateTest.ColumnNames.IsActive End If Return CType(ht(propertyName), String) End Function Private Shared ht As Hashtable = Nothing End Class #End Region #Region "StringPropertyNames" Public Class StringPropertyNames Public Const ID As String = "s_ID" Public Const DepartmentID As String = "s_DepartmentID" Public Const FirstName As String = "s_FirstName" Public Const LastName As String = "s_LastName" Public Const Age As String = "s_Age" Public Const HireDate As String = "s_HireDate" Public Const Salary As String = "s_Salary" Public Const IsActive As String = "s_IsActive" End Class #End Region #Region "Properties" Public Overridable Property ID() As Integer Get Return MyBase.GetInteger(ColumnNames.ID) End Get Set(ByVal Value As Integer) MyBase.SetInteger(ColumnNames.ID, Value) End Set End Property Public Overridable Property DepartmentID() As Integer Get Return MyBase.GetInteger(ColumnNames.DepartmentID) End Get Set(ByVal Value As Integer) MyBase.SetInteger(ColumnNames.DepartmentID, Value) End Set End Property Public Overridable Property FirstName() As String Get Return MyBase.GetString(ColumnNames.FirstName) End Get Set(ByVal Value As String) MyBase.SetString(ColumnNames.FirstName, Value) End Set End Property Public Overridable Property LastName() As String Get Return MyBase.GetString(ColumnNames.LastName) End Get Set(ByVal Value As String) MyBase.SetString(ColumnNames.LastName, Value) End Set End Property Public Overridable Property Age() As Integer Get Return MyBase.GetInteger(ColumnNames.Age) End Get Set(ByVal Value As Integer) MyBase.SetInteger(ColumnNames.Age, Value) End Set End Property Public Overridable Property HireDate() As DateTime Get Return MyBase.GetDateTime(ColumnNames.HireDate) End Get Set(ByVal Value As DateTime) MyBase.SetDateTime(ColumnNames.HireDate, Value) End Set End Property Public Overridable Property Salary() As Decimal Get Return MyBase.GetDecimal(ColumnNames.Salary) End Get Set(ByVal Value As Decimal) MyBase.SetDecimal(ColumnNames.Salary, Value) End Set End Property Public Overridable Property IsActive() As Short Get Return MyBase.GetShort(ColumnNames.IsActive) End Get Set(ByVal Value As Short) MyBase.SetShort(ColumnNames.IsActive, Value) End Set End Property #End Region #Region "String Properties" Public Overridable Property s_ID() As String Get If Me.IsColumnNull(ColumnNames.ID) Then Return String.Empty Else Return MyBase.GetIntegerAsString(ColumnNames.ID) End If End Get Set(ByVal Value As String) If String.Empty = value Then Me.SetColumnNull(ColumnNames.ID) Else Me.ID = MyBase.SetIntegerAsString(ColumnNames.ID, Value) End If End Set End Property Public Overridable Property s_DepartmentID() As String Get If Me.IsColumnNull(ColumnNames.DepartmentID) Then Return String.Empty Else Return MyBase.GetIntegerAsString(ColumnNames.DepartmentID) End If End Get Set(ByVal Value As String) If String.Empty = value Then Me.SetColumnNull(ColumnNames.DepartmentID) Else Me.DepartmentID = MyBase.SetIntegerAsString(ColumnNames.DepartmentID, Value) End If End Set End Property Public Overridable Property s_FirstName() As String Get If Me.IsColumnNull(ColumnNames.FirstName) Then Return String.Empty Else Return MyBase.GetStringAsString(ColumnNames.FirstName) End If End Get Set(ByVal Value As String) If String.Empty = value Then Me.SetColumnNull(ColumnNames.FirstName) Else Me.FirstName = MyBase.SetStringAsString(ColumnNames.FirstName, Value) End If End Set End Property Public Overridable Property s_LastName() As String Get If Me.IsColumnNull(ColumnNames.LastName) Then Return String.Empty Else Return MyBase.GetStringAsString(ColumnNames.LastName) End If End Get Set(ByVal Value As String) If String.Empty = value Then Me.SetColumnNull(ColumnNames.LastName) Else Me.LastName = MyBase.SetStringAsString(ColumnNames.LastName, Value) End If End Set End Property Public Overridable Property s_Age() As String Get If Me.IsColumnNull(ColumnNames.Age) Then Return String.Empty Else Return MyBase.GetIntegerAsString(ColumnNames.Age) End If End Get Set(ByVal Value As String) If String.Empty = value Then Me.SetColumnNull(ColumnNames.Age) Else Me.Age = MyBase.SetIntegerAsString(ColumnNames.Age, Value) End If End Set End Property Public Overridable Property s_HireDate() As String Get If Me.IsColumnNull(ColumnNames.HireDate) Then Return String.Empty Else Return MyBase.GetDateTimeAsString(ColumnNames.HireDate) End If End Get Set(ByVal Value As String) If String.Empty = value Then Me.SetColumnNull(ColumnNames.HireDate) Else Me.HireDate = MyBase.SetDateTimeAsString(ColumnNames.HireDate, Value) End If End Set End Property Public Overridable Property s_Salary() As String Get If Me.IsColumnNull(ColumnNames.Salary) Then Return String.Empty Else Return MyBase.GetDecimalAsString(ColumnNames.Salary) End If End Get Set(ByVal Value As String) If String.Empty = value Then Me.SetColumnNull(ColumnNames.Salary) Else Me.Salary = MyBase.SetDecimalAsString(ColumnNames.Salary, Value) End If End Set End Property Public Overridable Property s_IsActive() As String Get If Me.IsColumnNull(ColumnNames.IsActive) Then Return String.Empty Else Return MyBase.GetShortAsString(ColumnNames.IsActive) End If End Get Set(ByVal Value As String) If String.Empty = value Then Me.SetColumnNull(ColumnNames.IsActive) Else Me.IsActive = MyBase.SetShortAsString(ColumnNames.IsActive, Value) End If End Set End Property #End Region #Region "Where Clause" Public Class WhereClause Public Sub New(ByVal entity As BusinessEntity) Me._entity = entity End Sub Public ReadOnly Property TearOff() As TearOffWhereParameter Get If _tearOff Is Nothing Then _tearOff = New TearOffWhereParameter(Me) End If Return _tearOff End Get End Property #Region "TearOff's" Public Class TearOffWhereParameter Public Sub New(ByVal clause As WhereClause) Me._clause = clause End Sub Public ReadOnly Property ID() As WhereParameter Get Dim where As WhereParameter = New WhereParameter(ColumnNames.ID, Parameters.ID) Me._clause._entity.Query.AddWhereParemeter(where) Return where End Get End Property Public ReadOnly Property DepartmentID() As WhereParameter Get Dim where As WhereParameter = New WhereParameter(ColumnNames.DepartmentID, Parameters.DepartmentID) Me._clause._entity.Query.AddWhereParemeter(where) Return where End Get End Property Public ReadOnly Property FirstName() As WhereParameter Get Dim where As WhereParameter = New WhereParameter(ColumnNames.FirstName, Parameters.FirstName) Me._clause._entity.Query.AddWhereParemeter(where) Return where End Get End Property Public ReadOnly Property LastName() As WhereParameter Get Dim where As WhereParameter = New WhereParameter(ColumnNames.LastName, Parameters.LastName) Me._clause._entity.Query.AddWhereParemeter(where) Return where End Get End Property Public ReadOnly Property Age() As WhereParameter Get Dim where As WhereParameter = New WhereParameter(ColumnNames.Age, Parameters.Age) Me._clause._entity.Query.AddWhereParemeter(where) Return where End Get End Property Public ReadOnly Property HireDate() As WhereParameter Get Dim where As WhereParameter = New WhereParameter(ColumnNames.HireDate, Parameters.HireDate) Me._clause._entity.Query.AddWhereParemeter(where) Return where End Get End Property Public ReadOnly Property Salary() As WhereParameter Get Dim where As WhereParameter = New WhereParameter(ColumnNames.Salary, Parameters.Salary) Me._clause._entity.Query.AddWhereParemeter(where) Return where End Get End Property Public ReadOnly Property IsActive() As WhereParameter Get Dim where As WhereParameter = New WhereParameter(ColumnNames.IsActive, Parameters.IsActive) Me._clause._entity.Query.AddWhereParemeter(where) Return where End Get End Property Private _clause As WhereClause End Class #End Region Public ReadOnly Property ID() As WhereParameter Get If _ID_W Is Nothing Then _ID_W = TearOff.ID End If Return _ID_W End Get End Property Public ReadOnly Property DepartmentID() As WhereParameter Get If _DepartmentID_W Is Nothing Then _DepartmentID_W = TearOff.DepartmentID End If Return _DepartmentID_W End Get End Property Public ReadOnly Property FirstName() As WhereParameter Get If _FirstName_W Is Nothing Then _FirstName_W = TearOff.FirstName End If Return _FirstName_W End Get End Property Public ReadOnly Property LastName() As WhereParameter Get If _LastName_W Is Nothing Then _LastName_W = TearOff.LastName End If Return _LastName_W End Get End Property Public ReadOnly Property Age() As WhereParameter Get If _Age_W Is Nothing Then _Age_W = TearOff.Age End If Return _Age_W End Get End Property Public ReadOnly Property HireDate() As WhereParameter Get If _HireDate_W Is Nothing Then _HireDate_W = TearOff.HireDate End If Return _HireDate_W End Get End Property Public ReadOnly Property Salary() As WhereParameter Get If _Salary_W Is Nothing Then _Salary_W = TearOff.Salary End If Return _Salary_W End Get End Property Public ReadOnly Property IsActive() As WhereParameter Get If _IsActive_W Is Nothing Then _IsActive_W = TearOff.IsActive End If Return _IsActive_W End Get End Property Private _ID_W As WhereParameter = Nothing Private _DepartmentID_W As WhereParameter = Nothing Private _FirstName_W As WhereParameter = Nothing Private _LastName_W As WhereParameter = Nothing Private _Age_W As WhereParameter = Nothing Private _HireDate_W As WhereParameter = Nothing Private _Salary_W As WhereParameter = Nothing Private _IsActive_W As WhereParameter = Nothing Public Sub WhereClauseReset() _ID_W = Nothing _DepartmentID_W = Nothing _FirstName_W = Nothing _LastName_W = Nothing _Age_W = Nothing _HireDate_W = Nothing _Salary_W = Nothing _IsActive_W = Nothing Me._entity.Query.FlushWhereParameters() End Sub Private _entity As BusinessEntity Private _tearOff As TearOffWhereParameter End Class Public ReadOnly Property Where() As WhereClause Get If _whereClause Is Nothing Then _whereClause = New WhereClause(Me) End If Return _whereClause End Get End Property Private _whereClause As WhereClause = Nothing #End Region #Region "Aggregate Clause" Public Class AggregateClause Public Sub New(ByVal entity As BusinessEntity) Me._entity = entity End Sub Public ReadOnly Property TearOff() As TearOffAggregateParameter Get If _tearOff Is Nothing Then _tearOff = New TearOffAggregateParameter(Me) End If Return _tearOff End Get End Property #Region "AggregateParameter TearOff's" Public Class TearOffAggregateParameter Public Sub New(ByVal clause As AggregateClause) Me._clause = clause End Sub Public ReadOnly Property ID() As AggregateParameter Get Dim where As AggregateParameter = New AggregateParameter(ColumnNames.ID, Parameters.ID) Me._clause._entity.Query.AddAggregateParameter(where) Return where End Get End Property Public ReadOnly Property DepartmentID() As AggregateParameter Get Dim where As AggregateParameter = New AggregateParameter(ColumnNames.DepartmentID, Parameters.DepartmentID) Me._clause._entity.Query.AddAggregateParameter(where) Return where End Get End Property Public ReadOnly Property FirstName() As AggregateParameter Get Dim where As AggregateParameter = New AggregateParameter(ColumnNames.FirstName, Parameters.FirstName) Me._clause._entity.Query.AddAggregateParameter(where) Return where End Get End Property Public ReadOnly Property LastName() As AggregateParameter Get Dim where As AggregateParameter = New AggregateParameter(ColumnNames.LastName, Parameters.LastName) Me._clause._entity.Query.AddAggregateParameter(where) Return where End Get End Property Public ReadOnly Property Age() As AggregateParameter Get Dim where As AggregateParameter = New AggregateParameter(ColumnNames.Age, Parameters.Age) Me._clause._entity.Query.AddAggregateParameter(where) Return where End Get End Property Public ReadOnly Property HireDate() As AggregateParameter Get Dim where As AggregateParameter = New AggregateParameter(ColumnNames.HireDate, Parameters.HireDate) Me._clause._entity.Query.AddAggregateParameter(where) Return where End Get End Property Public ReadOnly Property Salary() As AggregateParameter Get Dim where As AggregateParameter = New AggregateParameter(ColumnNames.Salary, Parameters.Salary) Me._clause._entity.Query.AddAggregateParameter(where) Return where End Get End Property Public ReadOnly Property IsActive() As AggregateParameter Get Dim where As AggregateParameter = New AggregateParameter(ColumnNames.IsActive, Parameters.IsActive) Me._clause._entity.Query.AddAggregateParameter(where) Return where End Get End Property Private _clause As AggregateClause End Class #End Region Public ReadOnly Property ID() As AggregateParameter Get If _ID_W Is Nothing Then _ID_W = TearOff.ID End If Return _ID_W End Get End Property Public ReadOnly Property DepartmentID() As AggregateParameter Get If _DepartmentID_W Is Nothing Then _DepartmentID_W = TearOff.DepartmentID End If Return _DepartmentID_W End Get End Property Public ReadOnly Property FirstName() As AggregateParameter Get If _FirstName_W Is Nothing Then _FirstName_W = TearOff.FirstName End If Return _FirstName_W End Get End Property Public ReadOnly Property LastName() As AggregateParameter Get If _LastName_W Is Nothing Then _LastName_W = TearOff.LastName End If Return _LastName_W End Get End Property Public ReadOnly Property Age() As AggregateParameter Get If _Age_W Is Nothing Then _Age_W = TearOff.Age End If Return _Age_W End Get End Property Public ReadOnly Property HireDate() As AggregateParameter Get If _HireDate_W Is Nothing Then _HireDate_W = TearOff.HireDate End If Return _HireDate_W End Get End Property Public ReadOnly Property Salary() As AggregateParameter Get If _Salary_W Is Nothing Then _Salary_W = TearOff.Salary End If Return _Salary_W End Get End Property Public ReadOnly Property IsActive() As AggregateParameter Get If _IsActive_W Is Nothing Then _IsActive_W = TearOff.IsActive End If Return _IsActive_W End Get End Property Private _ID_W As AggregateParameter = Nothing Private _DepartmentID_W As AggregateParameter = Nothing Private _FirstName_W As AggregateParameter = Nothing Private _LastName_W As AggregateParameter = Nothing Private _Age_W As AggregateParameter = Nothing Private _HireDate_W As AggregateParameter = Nothing Private _Salary_W As AggregateParameter = Nothing Private _IsActive_W As AggregateParameter = Nothing Public Sub AggregateClauseReset() _ID_W = Nothing _DepartmentID_W = Nothing _FirstName_W = Nothing _LastName_W = Nothing _Age_W = Nothing _HireDate_W = Nothing _Salary_W = Nothing _IsActive_W = Nothing Me._entity.Query.FlushAggregateParameters() End Sub Private _entity As BusinessEntity Private _tearOff As TearOffAggregateParameter End Class Public ReadOnly Property Aggregate() As AggregateClause Get If _aggregateClause Is Nothing Then _aggregateClause = New AggregateClause(Me) End If Return _aggregateClause End Get End Property Private _aggregateClause As AggregateClause = Nothing #End Region Protected Overrides Function GetInsertCommand() As IDbCommand Dim cmd As FbCommand = New FbCommand cmd.CommandType = CommandType.StoredProcedure cmd.CommandText = "EXECUTE PROCEDURE PI_AGGREGATETEST (?,?,?,?,?,?,?,?)" CreateParameters(cmd) Dim p As FbParameter p = cmd.Parameters(Parameters.ID.ParameterName) p.Direction = ParameterDirection.InputOutput Return cmd End Function Protected Overrides Function GetUpdateCommand() As IDbCommand Dim cmd As FbCommand = New FbCommand cmd.CommandType = CommandType.StoredProcedure cmd.CommandText = "EXECUTE PROCEDURE PU_AGGREGATETEST (?,?,?,?,?,?,?,?)" CreateParameters(cmd) Return cmd End Function Protected Overrides Function GetDeleteCommand() As IDbCommand Dim cmd As FbCommand = New FbCommand cmd.CommandType = CommandType.StoredProcedure cmd.CommandText = "EXECUTE PROCEDURE PD_AGGREGATETEST (?)" Dim p As FbParameter p = cmd.Parameters.Add(Parameters.ID) p.SourceColumn = ColumnNames.ID p.SourceVersion = DataRowVersion.Current Return cmd End Function Private Sub CreateParameters(ByVal cmd As FbCommand) Dim p As FbParameter p = cmd.Parameters.Add(Parameters.ID) p.SourceColumn = ColumnNames.ID p.SourceVersion = DataRowVersion.Current p = cmd.Parameters.Add(Parameters.DepartmentID) p.SourceColumn = ColumnNames.DepartmentID p.SourceVersion = DataRowVersion.Current p = cmd.Parameters.Add(Parameters.FirstName) p.SourceColumn = ColumnNames.FirstName p.SourceVersion = DataRowVersion.Current p = cmd.Parameters.Add(Parameters.LastName) p.SourceColumn = ColumnNames.LastName p.SourceVersion = DataRowVersion.Current p = cmd.Parameters.Add(Parameters.Age) p.SourceColumn = ColumnNames.Age p.SourceVersion = DataRowVersion.Current p = cmd.Parameters.Add(Parameters.HireDate) p.SourceColumn = ColumnNames.HireDate p.SourceVersion = DataRowVersion.Current p = cmd.Parameters.Add(Parameters.Salary) p.SourceColumn = ColumnNames.Salary p.SourceVersion = DataRowVersion.Current p = cmd.Parameters.Add(Parameters.IsActive) p.SourceColumn = ColumnNames.IsActive p.SourceVersion = DataRowVersion.Current End Sub End Class End Namespace
{ "content_hash": "2eae1053b2c7169c112ad359268fd2f5", "timestamp": "", "source": "github", "line_count": 957, "max_line_length": 113, "avg_line_length": 27.886102403343784, "alnum_prop": 0.6708884475587364, "repo_name": "cafephin/mygeneration", "id": "40fe6b50d69cfe87842dfe032ca73e14f8e74434", "size": "26687", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/doodads/Tests/VBNet/FireBird/_AggregateTest.vb", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "Batchfile", "bytes": "4036" }, { "name": "C", "bytes": "38730" }, { "name": "C#", "bytes": "5939427" }, { "name": "Common Lisp", "bytes": "3251" }, { "name": "JavaScript", "bytes": "6202" }, { "name": "NSIS", "bytes": "85526" }, { "name": "PLpgSQL", "bytes": "21332" }, { "name": "Perl", "bytes": "320" }, { "name": "Python", "bytes": "456" }, { "name": "Shell", "bytes": "638" }, { "name": "Smalltalk", "bytes": "24466" }, { "name": "Tcl", "bytes": "2761" }, { "name": "Visual Basic", "bytes": "1266111" }, { "name": "XSLT", "bytes": "26803" } ], "symlink_target": "" }
/* eslint-env shelljs */ const fs = require('fs') const webpack = require('webpack') const path = require('path') const ora = require('ora') const less = require('less') const CleanCSS = require('clean-css') const mkdirp = require('mkdirp') exports.read = function (file, callback) { return new Promise((resolve, reject) => { fs.readFile(file, 'utf8', (err, data) => { if (err) { return reject(err) } resolve(data) callback && callback(data) }) }) } exports.write = function (dest, data) { return new Promise((resolve, reject) => mkdirp(path.dirname(dest), err => { if (err) { reject(err) } fs.writeFile(dest, data, err => { if (err) { return reject(err) } exports.logFile(dest) resolve(dest) }) }) ) } exports.renderLess = function (data, options) { return less.render(data, options).then(output => output.css) } exports.minify = function (file) { return new CleanCSS({ advanced: false, keepSpecialComments: 0, rebase: false, returnPromise: true }).minify([file]).then(minified => exports.write(`${path.join(path.dirname(file), path.basename(file, '.css'))}.min.css`, minified.styles)) } exports.logFile = function (file) { exports.read(file).then(data => console.log(`${exports.cyan(file)} ${exports.getSize(data)}`)) } exports.getSize = function (data) { return `${(data.length / 1024).toFixed(2)}kb` } exports.cyan = function (str) { return `\x1b[1m\x1b[36m${str}\x1b[39m\x1b[22m` } exports.blue = function (str) { return `\x1b[1m\x1b[34m${str}\x1b[39m\x1b[22m` } // delete all content from a folder exports.cleanPath = function (path) { rm('-rf', path) mkdir('-p', path) } // runs a webpack build exports.webpackBuild = function (config, msg) { const spinner = ora(msg || 'building for production...') spinner.start() webpack(config, function (err, stats) { spinner.stop() if (err) throw err process.stdout.write(stats.toString({ colors: true, modules: false, children: false, chunks: false, chunkModules: false }) + '\n') }) }
{ "content_hash": "3460369ab09a2aca689a2131e13cee49", "timestamp": "", "source": "github", "line_count": 91, "max_line_length": 141, "avg_line_length": 23.76923076923077, "alnum_prop": 0.6158113730929264, "repo_name": "decaf-emu/huehuetenango", "id": "b27a720a6956f9d921d8674ce92b8d968ebd93b5", "size": "2163", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "static/node_modules/vuikit/build/util.js", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "262" }, { "name": "Dockerfile", "bytes": "1801" }, { "name": "Go", "bytes": "80767" }, { "name": "HTML", "bytes": "86" }, { "name": "JavaScript", "bytes": "18200" }, { "name": "Makefile", "bytes": "318" }, { "name": "Vue", "bytes": "22364" } ], "symlink_target": "" }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Immutable; using Microsoft.CodeAnalysis.CodeStyle; using Microsoft.CodeAnalysis.CSharp.CodeStyle; using Microsoft.CodeAnalysis.CSharp.Extensions; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.CodeAnalysis.Text; namespace Microsoft.CodeAnalysis.CSharp.UseDefaultLiteral { [DiagnosticAnalyzer(LanguageNames.CSharp)] internal class CSharpUseDefaultLiteralDiagnosticAnalyzer : AbstractBuiltInCodeStyleDiagnosticAnalyzer { public CSharpUseDefaultLiteralDiagnosticAnalyzer() : base(IDEDiagnosticIds.UseDefaultLiteralDiagnosticId, EnforceOnBuildValues.UseDefaultLiteral, CSharpCodeStyleOptions.PreferSimpleDefaultExpression, LanguageNames.CSharp, new LocalizableResourceString(nameof(CSharpAnalyzersResources.Simplify_default_expression), CSharpAnalyzersResources.ResourceManager, typeof(CSharpAnalyzersResources)), new LocalizableResourceString(nameof(CSharpAnalyzersResources.default_expression_can_be_simplified), CSharpAnalyzersResources.ResourceManager, typeof(CSharpAnalyzersResources))) { } public override DiagnosticAnalyzerCategory GetAnalyzerCategory() => DiagnosticAnalyzerCategory.SemanticSpanAnalysis; protected override void InitializeWorker(AnalysisContext context) => context.RegisterSyntaxNodeAction(AnalyzeSyntax, SyntaxKind.DefaultExpression); private void AnalyzeSyntax(SyntaxNodeAnalysisContext context) { var cancellationToken = context.CancellationToken; var syntaxTree = context.Node.SyntaxTree; var preference = context.GetCSharpAnalyzerOptions().PreferSimpleDefaultExpression; var parseOptions = (CSharpParseOptions)syntaxTree.Options; var defaultExpression = (DefaultExpressionSyntax)context.Node; if (!defaultExpression.CanReplaceWithDefaultLiteral(parseOptions, preference.Value, context.SemanticModel, cancellationToken)) return; var fadeSpan = TextSpan.FromBounds(defaultExpression.OpenParenToken.SpanStart, defaultExpression.CloseParenToken.Span.End); // Create a normal diagnostic that covers the entire default expression. context.ReportDiagnostic( DiagnosticHelper.CreateWithLocationTags( Descriptor, defaultExpression.GetLocation(), preference.Notification.Severity, additionalLocations: ImmutableArray<Location>.Empty, additionalUnnecessaryLocations: ImmutableArray.Create(defaultExpression.SyntaxTree.GetLocation(fadeSpan)))); } } }
{ "content_hash": "58a0f19a2dc5d4a572ee7e42a3a0fb10", "timestamp": "", "source": "github", "line_count": 57, "max_line_length": 196, "avg_line_length": 52.771929824561404, "alnum_prop": 0.7350398936170213, "repo_name": "weltkante/roslyn", "id": "45e9ec0c6c5c9c5c33de74b3aa3a0708728c68d4", "size": "3010", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/Analyzers/CSharp/Analyzers/UseDefaultLiteral/CSharpUseDefaultLiteralDiagnosticAnalyzer.cs", "mode": "33188", "license": "mit", "language": [ { "name": "1C Enterprise", "bytes": "257760" }, { "name": "Batchfile", "bytes": "8186" }, { "name": "C#", "bytes": "171389020" }, { "name": "C++", "bytes": "5602" }, { "name": "CMake", "bytes": "11076" }, { "name": "Dockerfile", "bytes": "441" }, { "name": "F#", "bytes": "549" }, { "name": "PowerShell", "bytes": "283194" }, { "name": "Shell", "bytes": "124090" }, { "name": "Vim Snippet", "bytes": "6353" }, { "name": "Visual Basic .NET", "bytes": "74265514" } ], "symlink_target": "" }
```html <m-linear-progress :open="isProgressOpen" :progress="0.5" :buffer="0.5" indeterminate/> ``` ### Script ```javascript data () { return { isProgressOpen: true } } ``` ### Props | Prop | Type | Default | Required | Description | |------|------|---------|----------|-------------| | open | Boolean | false | - | linear progress starts in open state | | indeterminate | Boolean | false | - | indeterminate state | | reverse | Boolean | false | - | reverse direction of progress | | progress | Number | - | false | progress value between 0 and 1 | | buffer | Number | - | false | buffer value between 0 and 1 | ### Reference - https://github.com/material-components/material-components-web/tree/master/packages/mdc-linear-progress
{ "content_hash": "e27ddad1fd7dfa2b033f621311e99c95", "timestamp": "", "source": "github", "line_count": 31, "max_line_length": 105, "avg_line_length": 24.387096774193548, "alnum_prop": 0.6177248677248677, "repo_name": "matsp/material-components-vue", "id": "b34f38271c427596eed02f2dcb9e482bb93e497a", "size": "787", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "components/linear-progress/README.md", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "3944" }, { "name": "JavaScript", "bytes": "64868" }, { "name": "Vue", "bytes": "132196" } ], "symlink_target": "" }
package com.java110.utils.constant; /** * 业主车辆属性常量类 * Created by wuxw on 2017/5/20. */ public class ServiceCodeOwnerCarAttrConstant { /** * 添加 业主车辆属性 */ public static final String ADD_OWNERCARATTR = "ownerCarAttr.saveOwnerCarAttr"; /** * 修改 业主车辆属性 */ public static final String UPDATE_OWNERCARATTR = "ownerCarAttr.updateOwnerCarAttr"; /** * 删除 业主车辆属性 */ public static final String DELETE_OWNERCARATTR = "ownerCarAttr.deleteOwnerCarAttr"; /** * 查询 业主车辆属性 */ public static final String LIST_OWNERCARATTRS = "ownerCarAttr.listOwnerCarAttrs"; }
{ "content_hash": "18447b0e79848c51c0bd0112d4fd51cb", "timestamp": "", "source": "github", "line_count": 31, "max_line_length": 87, "avg_line_length": 20.129032258064516, "alnum_prop": 0.6602564102564102, "repo_name": "java110/MicroCommunity", "id": "705b0ff62eb7d142b7cb8fcd7a8e27b960a3a4fa", "size": "706", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "java110-utils/src/main/java/com/java110/utils/constant/ServiceCodeOwnerCarAttrConstant.java", "mode": "33261", "license": "apache-2.0", "language": [ { "name": "Dockerfile", "bytes": "737" }, { "name": "HTML", "bytes": "12981" }, { "name": "Java", "bytes": "19654092" }, { "name": "JavaScript", "bytes": "19296" }, { "name": "Shell", "bytes": "1121" } ], "symlink_target": "" }
package ee.sk.smartid.rest.dao; import org.junit.Test; public class SignatureSessionRequestTest { @Test(expected = UnsupportedOperationException.class) public void setDisplayText() { SignatureSessionRequest signatureSessionRequest = new SignatureSessionRequest(); signatureSessionRequest.setDisplayText("test"); } }
{ "content_hash": "46dad214bbc70c93de52d71d857558ab", "timestamp": "", "source": "github", "line_count": 14, "max_line_length": 88, "avg_line_length": 24.928571428571427, "alnum_prop": 0.7564469914040115, "repo_name": "SK-EID/smart-id-java-client", "id": "4b5a5d1a8036463ea52c2df5518dbca1022af630", "size": "1535", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/test/java/ee/sk/smartid/rest/dao/SignatureSessionRequestTest.java", "mode": "33188", "license": "mit", "language": [ { "name": "FreeMarker", "bytes": "845" }, { "name": "Java", "bytes": "558946" }, { "name": "Shell", "bytes": "1218" } ], "symlink_target": "" }
{% comment %} Ordered category list with post count Author: Sebastian Teumert (<http://www.teumert.net>, <http://www.github.com/NetzwergX>) Licensed under the MIT license (see LICENSE file). This category list can be used as navigation is sidebars or elsewhere. It renders a flat list of categories and displays tthe number of posts in each category (can easily be hidden via CSS). For more Jekyll widgets, see <http://www.github.com/NetzwergX/jekyll-template-toolkit>. {% endcomment %} <nav> <h1>Categories</h1> <ul class="postList categories"> {% for category in site.sorted_categories %} <li><a href="/category/#{{ category | first | cgi_escape}}">{{ category | first }} <span>({{ category | last | size }})</span></a></li> {% endfor %} </ul> </nav>
{ "content_hash": "6eadd31b60454a946251bab068804006", "timestamp": "", "source": "github", "line_count": 20, "max_line_length": 139, "avg_line_length": 38.85, "alnum_prop": 0.6924066924066924, "repo_name": "jeremyf/jeremyf.github.io", "id": "4e31bafcecf9b8a95968b36e3117d852ee39860d", "size": "777", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "_includes/widgets/categoryList.html", "mode": "33188", "license": "mit", "language": [ { "name": "JavaScript", "bytes": "119107" }, { "name": "Ruby", "bytes": "1892" } ], "symlink_target": "" }
namespace Vidyano { "use strict"; export enum PersistentObjectLayoutMode { FullPage, MasterDetail } export class PersistentObject extends ServiceObjectWithActions { private _isSystem: boolean; private _lastResult: any; private _lastUpdated: Date; private _lastResultBackup: any; private securityToken: string; private _isEditing: boolean = false; private _isDirty: boolean = false; private _inputs: linqjs.Dictionary<string, HTMLInputElement> = Enumerable.empty<string>().toDictionary(i => i, i => null); private _id: string; private _type: string; private _breadcrumb: string; private _isDeleted: boolean; private _tabs: PersistentObjectTab[]; private _isFrozen: boolean = false; fullTypeName: string; label: string; objectId: string; isHidden: boolean; isNew: boolean; isReadOnly: boolean; queryLayoutMode: PersistentObjectLayoutMode; newOptions: string; ignoreCheckRules: boolean; stateBehavior: string; parent: PersistentObject; ownerDetailAttribute: PersistentObjectAttributeAsDetail; ownerAttributeWithReference: PersistentObjectAttributeWithReference; ownerPersistentObject: PersistentObject; ownerQuery: Query; bulkObjectIds: string[]; queriesToRefresh: Array<string> = []; attributes: PersistentObjectAttribute[]; queries: Query[]; constructor(service: Service, po: any) { super(service, (po._actionNames || po.actions || []).map(a => a === "Edit" && po.isNew ? "Save" : a)); this._id = po.id; this._isSystem = !!po.isSystem; this._type = po.type; this.label = po.label; this.fullTypeName = po.fullTypeName; this.queryLayoutMode = po.queryLayoutMode === "FullPage" ? PersistentObjectLayoutMode.FullPage : PersistentObjectLayoutMode.MasterDetail; this.objectId = po.objectId; this._breadcrumb = po.breadcrumb; this.setNotification(po.notification, po.notificationType, po.notificationDuration); this.isNew = !!po.isNew; this.newOptions = po.newOptions; this.isReadOnly = !!po.isReadOnly; this.isHidden = !!po.isHidden; this.ignoreCheckRules = !!po.ignoreCheckRules; this.stateBehavior = po.stateBehavior || "None"; this.setIsEditing(false); this.securityToken = po.securityToken; this.bulkObjectIds = po.bulkObjectIds; this.queriesToRefresh = po.queriesToRefresh || []; this.parent = po.parent != null ? service.hooks.onConstructPersistentObject(service, po.parent) : null; this.attributes = po.attributes ? Enumerable.from<PersistentObjectAttribute>(po.attributes).select(attr => this._createPersistentObjectAttribute(attr)).toArray() : []; this.attributes.forEach(attr => this.attributes[attr.name] = attr); this.queries = po.queries ? Enumerable.from<Query>(po.queries).select(query => service.hooks.onConstructQuery(service, query, this)).orderBy(q => q.offset).toArray() : []; this.queries.forEach(query => this.queries[query.name] = query); const visibility = this.isNew ? "New" : "Read"; const attributeTabs = po.tabs ? Enumerable.from<PersistentObjectTab>(Enumerable.from(this.attributes).where(attr => attr.visibility === "Always" || attr.visibility.contains(visibility)).orderBy(attr => attr.offset).groupBy(attr => attr.tabKey, attr => attr).select(attributesByTab => { const groups = attributesByTab.orderBy(attr => attr.offset).groupBy(attr => attr.groupKey, attr => attr).select(attributesByGroup => { const newGroup = this.service.hooks.onConstructPersistentObjectAttributeGroup(service, attributesByGroup.key(), attributesByGroup, this); attributesByGroup.forEach(attr => attr.group = newGroup); return newGroup; }).memoize(); groups.toArray().forEach((g, n) => g.index = n); const serviceTab = po.tabs[attributesByTab.key()] || {}; const newTab = this.service.hooks.onConstructPersistentObjectAttributeTab(service, groups, attributesByTab.key(), serviceTab.id, serviceTab.name, serviceTab.layout, this, serviceTab.columnCount, !this.isHidden); attributesByTab.forEach(attr => attr.tab = newTab); return newTab; })).toArray() : []; this._tabs = this.service.hooks.onSortPersistentObjectTabs(this, <PersistentObjectAttributeTab[]>attributeTabs, Enumerable.from(this.queries).select(q => this.service.hooks.onConstructPersistentObjectQueryTab(this.service, q)).toArray()); if (this._tabs.length === 0) this._tabs = [this.service.hooks.onConstructPersistentObjectAttributeTab(service, Enumerable.empty<PersistentObjectAttributeGroup>(), "", "", "", null, this, 0, true)]; this._lastResult = po; if (this.isNew || this.stateBehavior === "OpenInEdit" || this.stateBehavior.indexOf("OpenInEdit") >= 0 || this.stateBehavior === "StayInEdit" || this.stateBehavior.indexOf("StayInEdit") >= 0) this.beginEdit(); this._initializeActions(); this.service.hooks.onRefreshFromResult(this); this._setLastUpdated(new Date()); } private _createPersistentObjectAttribute(attr: PersistentObjectAttribute): PersistentObjectAttribute { if ((<PersistentObjectAttributeWithReference>attr).displayAttribute || (<PersistentObjectAttributeWithReference>attr).objectId) return this.service.hooks.onConstructPersistentObjectAttributeWithReference(this.service, attr, this); if ((<PersistentObjectAttributeAsDetail>attr).objects || (<PersistentObjectAttributeAsDetail>attr).details) return this.service.hooks.onConstructPersistentObjectAttributeAsDetail(this.service, attr, this); return this.service.hooks.onConstructPersistentObjectAttribute(this.service, attr, this); } get id(): string { return this._id; } get isSystem(): boolean { return this._isSystem; } get type(): string { return this._type; } get isBulkEdit(): boolean { return this.bulkObjectIds && this.bulkObjectIds.length > 0; } get tabs(): PersistentObjectTab[] { return this._tabs; } set tabs(tabs: PersistentObjectTab[]) { const oldTabs = this._tabs; this.notifyPropertyChanged("tabs", this._tabs = tabs, oldTabs); } get isEditing(): boolean { return this._isEditing; } private setIsEditing(value: boolean) { this._isEditing = value; this.actions.forEach(action => action._onParentIsEditingChanged(value)); this.notifyPropertyChanged("isEditing", value, !value); } get breadcrumb(): string { return this._breadcrumb; } private _setBreadcrumb(breadcrumb: string) { const oldBreadcrumb = this._breadcrumb; if (oldBreadcrumb !== breadcrumb) this.notifyPropertyChanged("breadcrumb", this._breadcrumb = breadcrumb, oldBreadcrumb); } get isDirty(): boolean { return this._isDirty; } private _setIsDirty(value: boolean, force?: boolean) { if (value && (!this.isEditing && !force)) throw "Cannot flag persistent object as dirty when not in edit mode."; const oldIsDirty = this._isDirty; if (oldIsDirty !== value) { this.notifyPropertyChanged("isDirty", this._isDirty = value, oldIsDirty); this.actions.forEach(action => action._onParentIsDirtyChanged(value)); if (this.ownerDetailAttribute && value) this.ownerDetailAttribute.onChanged(false); } } get isDeleted(): boolean { return this._isDeleted; } set isDeleted(isDeleted: boolean) { const oldIsDeleted = this._isDeleted; if (oldIsDeleted !== isDeleted) this.notifyPropertyChanged("isDeleted", this._isDeleted = isDeleted, oldIsDeleted); } get isFrozen(): boolean { return this._isFrozen; } freeze() { if (this._isFrozen) return; this.notifyPropertyChanged("isFrozen", this._isFrozen = true, false); } unfreeze() { if (!this._isFrozen) return; this.notifyPropertyChanged("isFrozen", this._isFrozen = false, true); } getAttribute(name: string): PersistentObjectAttribute { return this.attributes[name]; } getAttributeValue(name: string): any { const attr = this.attributes[name]; return attr != null ? attr.value : null; } setAttributeValue(name: string, value: any, allowRefresh?: boolean): Promise<any> { const attr = <Vidyano.PersistentObjectAttribute>this.attributes[name]; if (!attr) return Promise.reject("Attribute does not exist."); return attr.setValue(value, allowRefresh); } get lastUpdated(): Date { return this._lastUpdated; } private _setLastUpdated(lastUpdated: Date) { const oldLastUpdated = this._lastUpdated; this.notifyPropertyChanged("lastUpdated", this._lastUpdated = lastUpdated, oldLastUpdated); } getQuery(name: string): Query { return this.queries[name]; } beginEdit() { if (!this.isEditing) { this._lastResultBackup = this._lastResult; this.setIsEditing(true); } } cancelEdit() { if (this.isEditing) { this.setIsEditing(false); this._setIsDirty(false); this.refreshFromResult(this._lastResultBackup, true); this._lastResultBackup = null; if (!!this.notification) this.setNotification(); if (this.stateBehavior === "StayInEdit" || this.stateBehavior.indexOf("StayInEdit") >= 0) this.beginEdit(); } } save(waitForOwnerQuery?: boolean): Promise<boolean> { return this.queueWork(async () => { if (this.isEditing) { const attributesToRefresh = this.attributes.filter(attr => attr.shouldRefresh); for (let i = 0; i < attributesToRefresh.length; i++) await attributesToRefresh[i]._triggerAttributeRefresh(true); const po = await this.service.executeAction("PersistentObject.Save", this, null, null, null); if (!po) return false; const wasNew = this.isNew; this.refreshFromResult(po); if (StringEx.isNullOrWhiteSpace(this.notification) || this.notificationType !== NotificationType.Error) { this._setIsDirty(false); if (!wasNew) { this.setIsEditing(false); if (this.stateBehavior === "StayInEdit" || this.stateBehavior.indexOf("StayInEdit") >= 0) this.beginEdit(); } if (this.ownerAttributeWithReference) { if (this.ownerAttributeWithReference.objectId !== this.objectId) { let parent = this.ownerAttributeWithReference.parent; if (parent.ownerDetailAttribute != null) parent = parent.ownerDetailAttribute.parent; parent.beginEdit(); this.ownerAttributeWithReference.changeReference([po.objectId]); } else if (this.ownerAttributeWithReference.value !== this.breadcrumb) this.ownerAttributeWithReference.value = this.breadcrumb; } else if (this.ownerQuery) this.ownerQuery.search(); } else if (!StringEx.isNullOrWhiteSpace(this.notification)) throw this.notification; } return true; }); } getRegisteredInputs(): linqjs.Enumerable<linqjs.KeyValuePair<string, HTMLInputElement>> { return this._inputs.toEnumerable().memoize(); } hasRegisteredInput(attributeName: string): boolean { return !!this._inputs.contains(attributeName); } registerInput(attributeName: string, input: HTMLInputElement) { this._inputs.add(attributeName, input); } clearRegisteredInputs(attributeName?: string) { if (attributeName) this._inputs.remove(attributeName); else this._inputs.clear(); } toServiceObject(skipParent: boolean = false): any { const result = this.copyProperties(["id", "type", "objectId", "isNew", "isHidden", "bulkObjectIds", "securityToken", "isSystem"]); if (this.parent && !skipParent) result.parent = this.parent.toServiceObject(); if (this.attributes) result.attributes = Enumerable.from(this.attributes).select(attr => attr._toServiceObject()).toArray(); return result; } refreshFromResult(result: PersistentObject, resultWins: boolean = false) { if (result instanceof PersistentObject) result = result._lastResult; this._lastResult = result; const changedAttributes: PersistentObjectAttribute[] = []; let isDirty = false; this.attributes.removeAll(attr => { if (!result.attributes.some(serviceAttr => serviceAttr.id === attr.id)) { delete this.attributes[attr.name]; attr.parent = null; changedAttributes.push(attr); return true; } return false; }); this.attributes.forEach(attr => { let serviceAttr = Enumerable.from(result.attributes).firstOrDefault(serviceAttr => serviceAttr.id === attr.id); if (serviceAttr) { if (!(serviceAttr instanceof PersistentObjectAttribute)) serviceAttr = this._createPersistentObjectAttribute(serviceAttr); if (attr._refreshFromResult(serviceAttr, resultWins)) changedAttributes.push(attr); } if (attr.isValueChanged) isDirty = true; }); result.attributes.forEach(serviceAttr => { if (!this.attributes.some(a => a.id === serviceAttr.id)) { const attr = this._createPersistentObjectAttribute(serviceAttr); this.attributes.push(attr); attr.parent = this; changedAttributes.push(attr); if (attr.isValueChanged) isDirty = true; } }); if (changedAttributes.length > 0) { const tabGroupsChanged = new Set<PersistentObjectAttributeTab>(); const tabGroupAttributesChanged = new Set<PersistentObjectAttributeGroup>(); let tabsRemoved = false; let tabsAdded = false; changedAttributes.forEach(attr => { let tab = <PersistentObjectAttributeTab>Enumerable.from(this.tabs).firstOrDefault(t => t instanceof PersistentObjectAttributeTab && t.key === attr.tabKey); if (!tab) { if (!attr.isVisible) return; const groups = [this.service.hooks.onConstructPersistentObjectAttributeGroup(this.service, attr.groupKey, Enumerable.from([attr]), this)]; groups[0].index = 0; const serviceTab = this._lastResult.tabs[attr.tabKey]; attr.tab = tab = this.service.hooks.onConstructPersistentObjectAttributeTab(this.service, Enumerable.from(groups), attr.tabKey, serviceTab.id, serviceTab.name, serviceTab.layout, this, serviceTab.columnCount, !this.isHidden); this.tabs.push(tab); tabsAdded = true; return; } let group = Enumerable.from(tab.groups).firstOrDefault(g => g.key === attr.groupKey); if (!group && attr.isVisible) { group = this.service.hooks.onConstructPersistentObjectAttributeGroup(this.service, attr.groupKey, Enumerable.from([attr]), this); tab.groups.push(group); tab.groups.sort((g1, g2) => Enumerable.from(g1.attributes).min(a => a.offset) - Enumerable.from(g2.attributes).min(a => a.offset)); tab.groups.forEach((g, n) => g.index = n); tabGroupsChanged.add(tab); } else if (attr.isVisible && attr.parent) { if (group.attributes.indexOf(attr) < 0) { group.attributes.push(attr); tabGroupAttributesChanged.add(group); tab.attributes.push(attr); tab.attributes[attr.name] = group.attributes[attr.name] = attr; group.attributes.sort((x, y) => x.offset - y.offset); } } else if (group) { group.attributes.remove(attr); delete group.attributes[attr.name]; tab.attributes.remove(attr); delete tab.attributes[attr.name]; if (group.attributes.length === 0) { tab.groups.remove(group); tabGroupsChanged.add(tab); if (tab.groups.length === 0) { this.tabs.remove(tab); tabsRemoved = true; return; } else tab.groups.forEach((g, n) => g.index = n); } else tabGroupAttributesChanged.add(group); } }); if (tabsAdded) { const attrTabs = <PersistentObjectAttributeTab[]>this.tabs.filter(t => t instanceof PersistentObjectAttributeTab); attrTabs.sort((t1, t2) => Enumerable.from(t1.groups).selectMany(g => g.attributes).min(a => a.offset) - Enumerable.from(t2.groups).selectMany(g => g.attributes).min(a => a.offset)); const queryTabs = <PersistentObjectQueryTab[]>this.tabs.filter(t => t instanceof PersistentObjectQueryTab); queryTabs.sort((q1, q2) => q1.query.offset - q2.query.offset); this.tabs = this.service.hooks.onSortPersistentObjectTabs(this, attrTabs, queryTabs); } else if (tabsRemoved) this.tabs = this.tabs.slice(); if (tabGroupsChanged.size > 0) tabGroupsChanged.forEach(tab => tab.groups = tab.groups.slice()); if (tabGroupAttributesChanged.size > 0) { tabGroupAttributesChanged.forEach(group => { group.attributes = group.attributes.slice(); }); } } this.setNotification(result.notification, result.notificationType, result.notificationDuration); this._setIsDirty(isDirty, true); this.objectId = result.objectId; if (this.isNew) this.isNew = result.isNew; this.securityToken = result.securityToken; if (result.breadcrumb) this._setBreadcrumb(result.breadcrumb); if (result.queriesToRefresh) { result.queriesToRefresh.forEach(async id => { const query = Enumerable.from(this.queries).firstOrDefault(q => q.id === id || q.name === id); if (query && (query.hasSearched || query.notification || query.totalItems != null)) await query.search(); }); } this.service.hooks.onRefreshFromResult(this); this._setLastUpdated(new Date()); } triggerDirty(): boolean { if (this.isEditing) this._setIsDirty(true); return this.isDirty; } _triggerAttributeRefresh(attr: PersistentObjectAttribute, immediate?: boolean): Promise<boolean> { const work = async () => { this._prepareAttributesForRefresh(attr); const result = await this.service.executeAction("PersistentObject.Refresh", this, null, null, { RefreshedPersistentObjectAttributeId: attr.id }); if (this.isEditing) this.refreshFromResult(result); return true; }; if (!immediate) return this.queueWork(work, false); else return work(); } _prepareAttributesForRefresh(sender: PersistentObjectAttribute) { Enumerable.from(this.attributes).where(a => a.id !== sender.id).forEach(attr => { (<any>attr)._refreshValue = (<any>attr).value; if (attr instanceof PersistentObjectAttributeWithReference) { const attrWithRef = <any>attr; attrWithRef._refreshObjectId = attrWithRef.objectId; } }); } } }
{ "content_hash": "3310a3f8c35746eeca5e5dd9f209ae14", "timestamp": "", "source": "github", "line_count": 527, "max_line_length": 297, "avg_line_length": 43.24288425047438, "alnum_prop": 0.5532493746983194, "repo_name": "jmptrader/Vidyano", "id": "fb11fe5db1e15bbe64503b7e4b517dc0d2c5e095", "size": "22791", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/Libs/Vidyano/persistent-object.ts", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "179571" }, { "name": "HTML", "bytes": "180539" }, { "name": "JavaScript", "bytes": "48616" }, { "name": "TypeScript", "bytes": "839219" } ], "symlink_target": "" }
import pwndbg.gdblib.events import pwndbg.gdblib.typeinfo from pwndbg.gdblib import arch_mod from pwndbg.lib.memoize import reset_on_cont from pwndbg.lib.memoize import reset_on_exit from pwndbg.lib.memoize import reset_on_objfile from pwndbg.lib.memoize import reset_on_prompt from pwndbg.lib.memoize import reset_on_start from pwndbg.lib.memoize import reset_on_stop from pwndbg.lib.memoize import reset_on_thread from pwndbg.lib.memoize import while_running # TODO: Combine these `update_*` hook callbacks into one method @pwndbg.gdblib.events.new_objfile @pwndbg.gdblib.events.start @pwndbg.gdblib.events.stop def update_typeinfo(): pwndbg.gdblib.typeinfo.update() @pwndbg.gdblib.events.start @pwndbg.gdblib.events.stop @pwndbg.gdblib.events.new_objfile def update_arch(): arch_mod.update() @pwndbg.gdblib.events.stop @pwndbg.gdblib.events.mem_changed @pwndbg.gdblib.events.reg_changed def memoize_on_stop(): reset_on_stop._reset() @pwndbg.gdblib.events.before_prompt def memoize_before_prompt(): reset_on_prompt._reset() @pwndbg.gdblib.events.cont def memoize_on_cont(): reset_on_cont._reset() @pwndbg.gdblib.events.new_objfile def memoize_on_new_objfile(): reset_on_objfile._reset() @pwndbg.gdblib.events.start def memoize_on_start(): while_running._start_caching() reset_on_start._reset() @pwndbg.gdblib.events.exit def memoize_on_exit(): while_running._reset() reset_on_exit._reset() @pwndbg.gdblib.events.thread def memoize_on_new_thread(): reset_on_thread._reset() def init(): """Calls all GDB hook functions that need to be called when GDB/pwndbg itself is loaded, as opposed to when an actual hook event occurs """ update_arch() update_typeinfo() init()
{ "content_hash": "2b568f1ca5c83a8c777795415037b36c", "timestamp": "", "source": "github", "line_count": 77, "max_line_length": 74, "avg_line_length": 22.766233766233768, "alnum_prop": 0.7455790074158585, "repo_name": "pwndbg/pwndbg", "id": "1456e966d6f00d62572b49a8ecf6db57fe805d84", "size": "1753", "binary": false, "copies": "1", "ref": "refs/heads/dev", "path": "pwndbg/gdblib/hooks.py", "mode": "33188", "license": "mit", "language": [ { "name": "Assembly", "bytes": "1149" }, { "name": "C", "bytes": "16361" }, { "name": "Dockerfile", "bytes": "1762" }, { "name": "Go", "bytes": "58" }, { "name": "Makefile", "bytes": "2818" }, { "name": "Python", "bytes": "2472150" }, { "name": "Shell", "bytes": "17094" } ], "symlink_target": "" }
package org.apache.guacamole.net.example; import javax.servlet.http.HttpServletRequest; import org.apache.guacamole.GuacamoleException; import org.apache.guacamole.net.GuacamoleSocket; import org.apache.guacamole.net.GuacamoleTunnel; import org.apache.guacamole.net.InetGuacamoleSocket; import org.apache.guacamole.net.SimpleGuacamoleTunnel; import org.apache.guacamole.protocol.ConfiguredGuacamoleSocket; import org.apache.guacamole.protocol.GuacamoleConfiguration; import org.apache.guacamole.servlet.GuacamoleHTTPTunnelServlet; /** * Simple tunnel example with hard-coded configuration parameters. * * @author Michael Jumper */ public class DummyGuacamoleTunnelServlet extends GuacamoleHTTPTunnelServlet { @Override protected GuacamoleTunnel doConnect(HttpServletRequest request) throws GuacamoleException { // guacd connection information String hostname = "localhost"; int port = 4822; // VNC connection information GuacamoleConfiguration config = new GuacamoleConfiguration(); config.setProtocol("vnc"); config.setParameter("hostname", "localhost"); config.setParameter("port", "5901"); config.setParameter("password", "potato"); // Connect to guacd, proxying a connection to the VNC server above GuacamoleSocket socket = new ConfiguredGuacamoleSocket( new InetGuacamoleSocket(hostname, port), config ); // Create tunnel from now-configured socket GuacamoleTunnel tunnel = new SimpleGuacamoleTunnel(socket); return tunnel; } }
{ "content_hash": "5588cd6850f9f55515fc1b95a98d1430", "timestamp": "", "source": "github", "line_count": 48, "max_line_length": 95, "avg_line_length": 33.583333333333336, "alnum_prop": 0.7363523573200993, "repo_name": "DaanWillemsen/guacamole-client", "id": "64f78e4385f298960c4cf19b38f97a80a2a7cd9c", "size": "2419", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "doc/guacamole-example/src/main/java/org/apache/guacamole/net/example/DummyGuacamoleTunnelServlet.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "100882" }, { "name": "HTML", "bytes": "55251" }, { "name": "Java", "bytes": "1585154" }, { "name": "JavaScript", "bytes": "1256220" } ], "symlink_target": "" }
// // AppDelegate.m // ParabolicFlightContest2013 // // Created by cuongnm92 on 10/28/13. // Copyright (c) 2013 vietnam. All rights reserved. // #import "AppDelegate.h" @implementation AppDelegate @synthesize managedObjectContext = _managedObjectContext; @synthesize managedObjectModel = _managedObjectModel; @synthesize persistentStoreCoordinator = _persistentStoreCoordinator; - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; // Override point for customization after application launch. self.firstViewController = [[FirstViewController alloc] initWithNibName:@"FirstViewController" bundle:nil]; self.window.backgroundColor = [UIColor whiteColor]; self.navigationController = [[UINavigationController alloc]initWithRootViewController:self.firstViewController]; self.window.rootViewController = self.navigationController; [self.window makeKeyAndVisible]; [UIApplication sharedApplication].idleTimerDisabled = YES; return YES; } - (void)applicationWillResignActive:(UIApplication *)application { // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. } - (void)applicationDidEnterBackground:(UIApplication *)application { // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. } - (void)applicationWillEnterForeground:(UIApplication *)application { // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. } - (void)applicationDidBecomeActive:(UIApplication *)application { // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. } - (void)applicationWillTerminate:(UIApplication *)application { // Saves changes in the application's managed object context before the application terminates. [self saveContext]; } - (void)saveContext { NSError *error = nil; NSManagedObjectContext *managedObjectContext = self.managedObjectContext; if (managedObjectContext != nil) { if ([managedObjectContext hasChanges] && ![managedObjectContext save:&error]) { // Replace this implementation with code to handle the error appropriately. // abort() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. NSLog(@"Unresolved error %@, %@", error, [error userInfo]); abort(); } } } #pragma mark - Core Data stack // Returns the managed object context for the application. // If the context doesn't already exist, it is created and bound to the persistent store coordinator for the application. - (NSManagedObjectContext *)managedObjectContext { if (_managedObjectContext != nil) { return _managedObjectContext; } NSPersistentStoreCoordinator *coordinator = [self persistentStoreCoordinator]; if (coordinator != nil) { _managedObjectContext = [[NSManagedObjectContext alloc] init]; [_managedObjectContext setPersistentStoreCoordinator:coordinator]; } return _managedObjectContext; } // Returns the managed object model for the application. // If the model doesn't already exist, it is created from the application's model. - (NSManagedObjectModel *)managedObjectModel { if (_managedObjectModel != nil) { return _managedObjectModel; } NSURL *modelURL = [[NSBundle mainBundle] URLForResource:@"ParabolicFlightContest2013" withExtension:@"momd"]; _managedObjectModel = [[NSManagedObjectModel alloc] initWithContentsOfURL:modelURL]; return _managedObjectModel; } // Returns the persistent store coordinator for the application. // If the coordinator doesn't already exist, it is created and the application's store added to it. - (NSPersistentStoreCoordinator *)persistentStoreCoordinator { if (_persistentStoreCoordinator != nil) { return _persistentStoreCoordinator; } NSURL *storeURL = [[self applicationDocumentsDirectory] URLByAppendingPathComponent:@"ParabolicFlightContest2013.sqlite"]; NSError *error = nil; _persistentStoreCoordinator = [[NSPersistentStoreCoordinator alloc] initWithManagedObjectModel:[self managedObjectModel]]; if (![_persistentStoreCoordinator addPersistentStoreWithType:NSSQLiteStoreType configuration:nil URL:storeURL options:nil error:&error]) { /* Replace this implementation with code to handle the error appropriately. abort() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. Typical reasons for an error here include: * The persistent store is not accessible; * The schema for the persistent store is incompatible with current managed object model. Check the error message to determine what the actual problem was. If the persistent store is not accessible, there is typically something wrong with the file path. Often, a file URL is pointing into the application's resources directory instead of a writeable directory. If you encounter schema incompatibility errors during development, you can reduce their frequency by: * Simply deleting the existing store: [[NSFileManager defaultManager] removeItemAtURL:storeURL error:nil] * Performing automatic lightweight migration by passing the following dictionary as the options parameter: @{NSMigratePersistentStoresAutomaticallyOption:@YES, NSInferMappingModelAutomaticallyOption:@YES} Lightweight migration will only work for a limited set of schema changes; consult "Core Data Model Versioning and Data Migration Programming Guide" for details. */ NSLog(@"Unresolved error %@, %@", error, [error userInfo]); abort(); } return _persistentStoreCoordinator; } #pragma mark - Application's Documents directory // Returns the URL to the application's Documents directory. - (NSURL *)applicationDocumentsDirectory { return [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject]; } @end
{ "content_hash": "5c1e3eaf5465c27c281c3d0f0568a8e5", "timestamp": "", "source": "github", "line_count": 158, "max_line_length": 281, "avg_line_length": 45.75316455696203, "alnum_prop": 0.7439479872734818, "repo_name": "cuongnm92/Parabolic-Flight", "id": "263f13bd232f7f5347a2b1abc8be1f5575c32c8f", "size": "7229", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "iOS/Dev/ParabolicFlightContest2013/AppDelegate.m", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "1" }, { "name": "C++", "bytes": "1" }, { "name": "Java", "bytes": "140243" }, { "name": "Logos", "bytes": "298614" }, { "name": "Objective-C", "bytes": "28017" } ], "symlink_target": "" }
/* eslint-disable no-var, no-shadow, dot-notation */ module.exports = function(wallaby) { return { files: [ {pattern: 'wwwroot/jspm_packages/system.js', instrument: false}, {pattern: 'wwwroot/config.js', instrument: false}, {pattern: 'src/**/*.ts', load: false}, {pattern: 'test/unit/setup.ts', load: false} ], tests: [ {pattern: 'test/unit/**/*.spec.ts', load: false} ], middleware: (app, express) => { app.use('/wwwroot/jspm_packages', express.static(require('path').join(__dirname, 'wwwroot', 'jspm_packages'))); app.use('/jspm_packages', express.static(require('path').join(__dirname, 'wwwroot', 'jspm_packages'))); }, bootstrap: function(wallaby) { var promises = []; var i = 0; var len = wallaby.tests.length; wallaby.delayStart(); System.config({ paths: { '*': '*', 'src/*': 'src/*' } }); for (; i < len; i++) { promises.push(System['import'](wallaby.tests[i].replace(/\.js$/, ''))); } System.import('test/unit/setup') .then(function () { return Promise.all(promises); }) .then(function () { wallaby.start(); }).catch(function (e) {setTimeout(function () { throw e; }, 0); }); }, debug: false }; };
{ "content_hash": "86788e2cf55a77f5569f00db43813a1f", "timestamp": "", "source": "github", "line_count": 52, "max_line_length": 117, "avg_line_length": 25.942307692307693, "alnum_prop": 0.5277983691623425, "repo_name": "delebash/skeleton-navigation", "id": "b612db14472247a3c5e76c24fb25f697c3150ec3", "size": "1349", "binary": false, "copies": "16", "ref": "refs/heads/master", "path": "skeleton-typescript-asp.net5/src/skeleton-navigation-typescript-vs/wallaby.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "3542" }, { "name": "HTML", "bytes": "4127" }, { "name": "JavaScript", "bytes": "37485" } ], "symlink_target": "" }
#ifndef _STM32_FLASH_H_ #define _STM32_FLASH_H_ /*! * \file arch/cm3/stm/stm32_flash.h * \brief On-Chip flash memory access. * $Id: stm32_flash.h 3220 2010-11-12 13:04:17Z astralix $ * \verbatim */ // #define FLASHDEBUG /* Nut/OS specific API functions to read and write configuration data. */ extern int Stm32FlashParamRead(unsigned int pos, void *data, unsigned int len); extern int Stm32FlashParamWrite(unsigned int pos, const void *data, unsigned int len); #endif /* _STM32_FLASH_H_ */
{ "content_hash": "914fbe9a317d00490161d59c7edf3407", "timestamp": "", "source": "github", "line_count": 19, "max_line_length": 86, "avg_line_length": 26.36842105263158, "alnum_prop": 0.7125748502994012, "repo_name": "Astralix/ethernut32", "id": "ecbdc1779111520c46ffbb3c244498d9dd8bda29", "size": "2154", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "nut/include/arch/cm3/stm/stm32_flash.h", "mode": "33188", "license": "bsd-2-clause", "language": [ { "name": "ASP", "bytes": "541" }, { "name": "Assembly", "bytes": "343664" }, { "name": "C", "bytes": "13745396" }, { "name": "C++", "bytes": "1297083" }, { "name": "CSS", "bytes": "11599" }, { "name": "Java", "bytes": "1060" }, { "name": "JavaScript", "bytes": "1182" }, { "name": "Lua", "bytes": "29582" }, { "name": "Objective-C", "bytes": "161858" }, { "name": "Perl", "bytes": "226" }, { "name": "Prolog", "bytes": "1652" }, { "name": "Shell", "bytes": "44135" }, { "name": "Squirrel", "bytes": "1089939" }, { "name": "Tcl", "bytes": "489" } ], "symlink_target": "" }
package org.apache.hadoop.hbase.security; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; import org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind; import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos; import org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos; import org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos; import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService; import org.apache.hadoop.hbase.shaded.protobuf.generated.RegionServerStatusProtos; import org.apache.yetus.audience.InterfaceAudience; /** * Maps RPC protocol interfaces to required configuration */ @InterfaceAudience.Private public class SecurityInfo { /** Maps RPC service names to authentication information */ private static ConcurrentMap<String,SecurityInfo> infos = new ConcurrentHashMap<>(); // populate info for known services static { infos.put(AdminProtos.AdminService.getDescriptor().getName(), new SecurityInfo(SecurityConstants.REGIONSERVER_KRB_PRINCIPAL, Kind.HBASE_AUTH_TOKEN)); infos.put(ClientProtos.ClientService.getDescriptor().getName(), new SecurityInfo(SecurityConstants.REGIONSERVER_KRB_PRINCIPAL, Kind.HBASE_AUTH_TOKEN)); infos.put(MasterService.getDescriptor().getName(), new SecurityInfo(SecurityConstants.MASTER_KRB_PRINCIPAL, Kind.HBASE_AUTH_TOKEN)); infos.put(RegionServerStatusProtos.RegionServerStatusService.getDescriptor().getName(), new SecurityInfo(SecurityConstants.MASTER_KRB_PRINCIPAL, Kind.HBASE_AUTH_TOKEN)); infos.put(MasterProtos.HbckService.getDescriptor().getName(), new SecurityInfo(SecurityConstants.MASTER_KRB_PRINCIPAL, Kind.HBASE_AUTH_TOKEN)); // NOTE: IF ADDING A NEW SERVICE, BE SURE TO UPDATE HBasePolicyProvider ALSO ELSE // new Service will not be found when all is Kerberized!!!! } /** * Adds a security configuration for a new service name. Note that this will have no effect if * the service name was already registered. */ public static void addInfo(String serviceName, SecurityInfo securityInfo) { infos.putIfAbsent(serviceName, securityInfo); } /** * Returns the security configuration associated with the given service name. */ public static SecurityInfo getInfo(String serviceName) { return infos.get(serviceName); } private final String serverPrincipal; private final Kind tokenKind; public SecurityInfo(String serverPrincipal, Kind tokenKind) { this.serverPrincipal = serverPrincipal; this.tokenKind = tokenKind; } public String getServerPrincipal() { return serverPrincipal; } public Kind getTokenKind() { return tokenKind; } }
{ "content_hash": "03b06a5dadeea15094ad0eab9c076810", "timestamp": "", "source": "github", "line_count": 70, "max_line_length": 97, "avg_line_length": 39.957142857142856, "alnum_prop": 0.7676081515909904, "repo_name": "ChinmaySKulkarni/hbase", "id": "d96b676a041787d9aab7b39a2cb8be4c0dda602d", "size": "3602", "binary": false, "copies": "4", "ref": "refs/heads/master", "path": "hbase-client/src/main/java/org/apache/hadoop/hbase/security/SecurityInfo.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "25330" }, { "name": "C", "bytes": "28534" }, { "name": "C++", "bytes": "56085" }, { "name": "CMake", "bytes": "13186" }, { "name": "CSS", "bytes": "37063" }, { "name": "Dockerfile", "bytes": "4842" }, { "name": "Groovy", "bytes": "37692" }, { "name": "HTML", "bytes": "17275" }, { "name": "Java", "bytes": "35158950" }, { "name": "JavaScript", "bytes": "2694" }, { "name": "Makefile", "bytes": "1359" }, { "name": "PHP", "bytes": "8385" }, { "name": "Perl", "bytes": "383739" }, { "name": "Python", "bytes": "90226" }, { "name": "Ruby", "bytes": "664576" }, { "name": "Shell", "bytes": "254684" }, { "name": "Thrift", "bytes": "52351" }, { "name": "XSLT", "bytes": "6764" } ], "symlink_target": "" }
#ifndef __CURL_CURLVER_H #define __CURL_CURLVER_H /* This header file contains nothing but libcurl version info, generated by a script at release-time. This was made its own header file in 7.11.2 */ /* This is the global package copyright */ #define LIBCURL_COPYRIGHT "1996 - 2018 Daniel Stenberg, <daniel@haxx.se>." /* This is the version number of the libcurl package from which this header file origins: */ #define LIBCURL_VERSION "7.63.0-DEV" /* The numeric version number is also available "in parts" by using these defines: */ #define LIBCURL_VERSION_MAJOR 7 #define LIBCURL_VERSION_MINOR 63 #define LIBCURL_VERSION_PATCH 0 /* This is the numeric version of the libcurl version number, meant for easier parsing and comparions by programs. The LIBCURL_VERSION_NUM define will always follow this syntax: 0xXXYYZZ Where XX, YY and ZZ are the main version, release and patch numbers in hexadecimal (using 8 bits each). All three numbers are always represented using two digits. 1.2 would appear as "0x010200" while version 9.11.7 appears as "0x090b07". This 6-digit (24 bits) hexadecimal number does not show pre-release number, and it is always a greater number in a more recent release. It makes comparisons with greater than and less than work. Note: This define is the full hex number and _does not_ use the CURL_VERSION_BITS() macro since curl's own configure script greps for it and needs it to contain the full number. */ #define LIBCURL_VERSION_NUM 0x073F00 /* * This is the date and time when the full source package was created. The * timestamp is not stored in git, as the timestamp is properly set in the * tarballs by the maketgz script. * * The format of the date follows this template: * * "2007-11-23" */ #define LIBCURL_TIMESTAMP "[unreleased]" #define CURL_VERSION_BITS(x,y,z) ((x)<<16|(y)<<8|z) #define CURL_AT_LEAST_VERSION(x,y,z) \ (LIBCURL_VERSION_NUM >= CURL_VERSION_BITS(x, y, z)) #endif /* __CURL_CURLVER_H */
{ "content_hash": "5abbb7e8d6c5b83d047188238b0cff59", "timestamp": "", "source": "github", "line_count": 57, "max_line_length": 78, "avg_line_length": 35.35087719298246, "alnum_prop": 0.7270471464019851, "repo_name": "OpenSpace/OpenSpace", "id": "4422a1a0b4fb12f062b25faf989bfce660e05dea", "size": "3040", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "ext/curl/include/curl/curlver.h", "mode": "33188", "license": "mit", "language": [ { "name": "C++", "bytes": "13497055" }, { "name": "CMake", "bytes": "287847" }, { "name": "CSS", "bytes": "17271" }, { "name": "GLSL", "bytes": "670237" }, { "name": "HTML", "bytes": "1846" }, { "name": "Handlebars", "bytes": "1722" }, { "name": "JavaScript", "bytes": "11617" }, { "name": "Lua", "bytes": "2541160" }, { "name": "Objective-C++", "bytes": "10866" }, { "name": "Python", "bytes": "25442" } ], "symlink_target": "" }
#ifndef TENSORFLOW_LITE_MICRO_KERNELS_ARC_MLI_INTERFACE_H_ #define TENSORFLOW_LITE_MICRO_KERNELS_ARC_MLI_INTERFACE_H_ #include "mli_api.h" // NOLINT #include "tensorflow/lite/kernels/internal/tensor_ctypes.h" namespace tflite { namespace ops { namespace micro { // Abstracts access to mli_tensor fields to use different versions of MLI // Library (1.x and 2.x) // Example: // ops::micro::MliTensorInterface mli_in = // ops::micro::MliTensorInterface(static_cast<mli_tensor*>( // context->AllocatePersistentBuffer(context, sizeof(mli_tensor)))); class MliTensorInterface { public: // Make sure that lifetime of MliTensorInterface instance isn't bigger than // related mli_tensor. MliTensorInterface(mli_tensor* tensor) : tensor_(tensor){}; MliTensorInterface() = default; ~MliTensorInterface() = default; template <typename T> T* Data(); template <typename T> T Scale(); template <typename T> T ZeroPoint(); template <typename T> T ScaleFracBits(); mli_tensor* MliTensor(); const mli_tensor* MliTensor() const; int32_t* Dim(); uint32_t* Rank(); uint32_t* Shape(); const uint32_t* Shape() const; const uint32_t* DataCapacity() const; uint32_t* ScaleCapacity(); mli_element_type* ElType(); uint32_t* ScaleFracBitsCapacity(); int32_t* MemStride(); uint32_t* ZeroPointCapacity(); template <typename T> void SetData(T* data, uint32_t capacity) const; void SetScale(float fscale); void SetScalePerChannel(float* fscale, const int num_channels); void SetElType(TfLiteType type); private: mli_tensor* tensor_; }; } // namespace micro } // namespace ops } // namespace tflite #endif // TENSORFLOW_LITE_MICRO_KERNELS_ARC_MLI_SLICERS_H_
{ "content_hash": "314bd068d9f09090655d45beb802e799", "timestamp": "", "source": "github", "line_count": 62, "max_line_length": 77, "avg_line_length": 28.693548387096776, "alnum_prop": 0.6852164137155705, "repo_name": "tensorflow/tflite-micro", "id": "b4087f3b87ba465a48a2d7e2bc53ca9491835ec4", "size": "2460", "binary": false, "copies": "1", "ref": "refs/heads/main", "path": "tensorflow/lite/micro/kernels/arc_mli/mli_interface.h", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C", "bytes": "276327" }, { "name": "C++", "bytes": "6039872" }, { "name": "Jupyter Notebook", "bytes": "532248" }, { "name": "Makefile", "bytes": "123140" }, { "name": "Mako", "bytes": "13820" }, { "name": "NASL", "bytes": "18323" }, { "name": "Pascal", "bytes": "2575" }, { "name": "Python", "bytes": "759346" }, { "name": "Shell", "bytes": "130416" }, { "name": "Starlark", "bytes": "330454" } ], "symlink_target": "" }
class FisiatriaConfiguracion < ActiveRecord::Base validates :numero_turnos, :numericality => { :greater_than => 0 } validate :numero_de_turnos, on: :update after_update :update_disponibilidad def numero_de_turnos if numero_turnos_changed? dias = DisponiblidadHorario.where(['dia >= ?', Time.now.beginning_of_day]) unless dias.empty? dias.each do |d| #recalcular numero de turnos turnos_por_dia = d.numero_horarios * self.numero_turnos if d.numero_actual_turnos > turnos_por_dia return errors.add :numero_turnos, "El número actual de turnos es menor a lo configurado" end end end end end #methods def update_disponibilidad if numero_turnos_changed? #obtener los dias de la fecha actual en adelante dias = DisponiblidadHorario.where(['dia >= ?', Time.now.beginning_of_day]) #actualizar horarios unless dias.empty? dias.each do |d| #recalcular numero de turnos turnos_por_dia = d.numero_horarios * self.numero_turnos #actualizar a lleno if d.numero_actual_turnos == turnos_por_dia d.lleno = true else d.lleno = false end d.config_turnos = self.numero_turnos d.turnos_por_dia = turnos_por_dia d.save end end end end end
{ "content_hash": "802622b70c68472e37950760a7d7800b", "timestamp": "", "source": "github", "line_count": 45, "max_line_length": 100, "avg_line_length": 31.044444444444444, "alnum_prop": 0.6127415891195419, "repo_name": "meruba/sisfa", "id": "391a91f98c047e7386e7ac1eddc063d1f7d1ef1c", "size": "1790", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "app/models/fisiatria_configuracion.rb", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "34237" }, { "name": "CoffeeScript", "bytes": "36328" }, { "name": "HTML", "bytes": "493360" }, { "name": "JavaScript", "bytes": "11148" }, { "name": "Ruby", "bytes": "1670948" } ], "symlink_target": "" }
var fs = require('fs'), path = require('path'), continuum = require('../continuum'), resolve = path.resolve, exists = fs.existsSync, print = console.log, define = continuum.utility.define, iterate = continuum.utility.iterate, map = continuum.utility.map, Queue = continuum.utility.Queue, createNativeFunction = continuum.createNativeFunction; var _push = [].push; function isDirectory(file){ return fs.statSync(file).isDirectory(); } function dir(name){ return fs.readdirSync(name).map(path.resolve.bind(null, name)); } function read(name){ return fs.readFileSync(name, 'utf8'); } function write(name, value){ fs.writeFileSync(name, value); } function percent(n, t){ return ((100 * n) / t).toFixed(2); } function isInt(n){ return +n === (n | 0); } function escapeJS(source){ return '"' + source.replace(/\\/g, '\\\\').replace(/(?!=\\)\r?\n/g, '\\n').replace(/"/g, '\\"') + '"'; } function formatPath(name){ return name.split(/\/|\\/).slice(3).join('/'); } function stringify(o){ return require('util').inspect(o); } function toObject(o){ if (o && o.Enumerate) { var out = {}; var keys = o.Enumerate(false, true); for (var i=0; i < keys.length; i++) { var item = out[keys[i]] = o.Get(keys[i]); if (item && item.Enumerate) { out[keys[i]] = toObject(item); } } return out; } return o; } var TestCase = (function(){ var head = /(?:(?:\s*\/\/.*)?\s*\n)*/, comment = /\/\*\*?((?:\s|\S)*?)\*\/\s*\n/, any = /(?:\s|\S)*/g, placeholder = /\{\{(\w+)\}\}/, stars = /\s*\n\s*\*\s?/g, atattrs = /\s*\n\s*\*\s*@/, header = new RegExp('^'+head.source), record = new RegExp('^('+head.source+')(?:'+comment.source+')?('+any.source+')$'); function stripStars(text){ return text.replace(stars, '\n').trim(); } function stripHeader(src){ var match = src.match(header); return match ? src.slice(match[0].length) : src; } function parseTestRecord(obj, src, name){ var match = src.match(record); if (!match) { throw new Error('unrecognized: '+name); } obj.test = match[3]; if (match[2]) { var texts = match[2].split(atattrs); obj.commentary = stripStars(texts.shift()); texts.forEach(function(text){ var match = text.match(/^\w+/); if (!match) { throw new Error('Malformed "@" attribute: '+name); } match = match[0]; if (match in obj) { throw new Error('duplicate: '+match); } obj[match] = stripStars(text.slice(match.length)); }); } } function TestCase(filename, strict){ this.abspath = filename; this.name = path.basename(filename).slice(0, -3); parseTestRecord(this, read(filename), this.name); } define(TestCase.prototype, [ function isNegative(){ return 'negative' in this.record; }, function isOnlyStrict(){ return 'onlyStrict' in this.record; }, function isNonStrict(){ return 'noStrict' in this.record; }, function getSource(){ var source = 'var strict_mode = '; if (this.strict || this.onlyStrict) { source = '"use strict";\n'+source+'true;\n'; } else { source += 'false;\n'; } return source + this.test + '\n'; } ]); return TestCase; })(); function TestRunner(suite, before, after) { var self = this; this.cache = create(null); this.suite = suite; define(this, { executeBefore: before || '', executeAfter: after || '' }); this.testFinished = function testFinished(){ var current = self.current, result = current.Get('result'), error = current.Get('error'); if (result === undefined) { current.Put('result', 'fail'); current.Put('error', 'Failed to load test case (probable parse error).'); current.Put('description', 'Failed to load test case!'); } else if (error !== undefined) { var msg = error.ConstructorName === 'Test262Error' ? '' : error.Get('name') + ": "; msg += error.Get('message'); current.Put('error', msg); } else if (error === undefined && result === 'fail') { current.Put('error', 'Test case returned non-true value.'); } self.callback(toObject(current)); }; this.testRun = function testRun(id, path, description, code, result, error){ var current = self.current; current.Put('id', id); current.Put('path', path); current.Put('description', description); current.Put('result', result); current.Put('error', error); current.Put('code', code); }; } define(TestRunner.prototype, [ function run(test, callback){ var self = this; this.callback = callback; continuum(function(realm){ var src = test.getSource(), current = self.current = realm.evaluate('({})'); realm.on('throw', function(e){ self.current = e.value; self.testFinished(); }); iterate(test, function(val, key){ if (key !== 'test') { current.Put(key, val); } }); current.Put('code', src); realm.evaluate(self.executeBefore); realm.global.Put('testRun', createNativeFunction(self.testRun)); realm.global.Put('testFinished', createNativeFunction(self.testFinished)); realm.global.Put('testDescrip', current); realm.evaluate(src); realm.evaluate(self.executeAfter); }); } ]); var TestSuite = (function(){ function TestSuiteOptions(o){ if (o) { o = Object(o); for (var k in this) { if (k in o) { this[k] = o[k]; } } } } TestSuiteOptions.prototype = { root: __dirname, strictOnly: false, nonStrictOnly: false, unmarkedDefault: false }; function TestSuite(options){ options = new TestSuiteOptions(options); var root = resolve(options.root, 'test262', 'test'); this.tests = resolve(root, 'suite'); this.libs = resolve(root, 'harness'); this.strictOnly = options.strictOnly; this.nonStrictOnly = options.nonStrictOnly; this.unmarkedDefault = options.unmarkedDefault; this.queue = new Queue; this.results = {}; if (!exists(this.tests)) { throw new Error('No test repository found'); } if (!exists(this.libs)) { throw new Error('No test library found'); } var before = map(['cth.js', 'sta.js', 'testBuiltInObject.js'], function(name){ return read(resolve(this.libs, name)); }, this).join('\n\n'); var after = read(resolve(this.libs, 'gs.js')); this.runner = new TestRunner(this, before, after); Object.defineProperty(this, 'includes', { get: function(){ return includes } }); } define(TestSuite.prototype, [ function summary(progress) { print(); print("=== Summary ==="); print(" - Ran %d tests", progress.count); if (progress.failed === 0) { print(" - All tests succeeded"); } else { print(" - Passed %d tests (%d)", progress.succeeded, percent(progress.succeeded, progress.count)); print(" - Failed %d tests (%d)", progress.failed, percent(progress.failed, progress.count)); } }, function enqueue(path){ if (this.queue.length >= this.max) return this; if (isDirectory(path)) { dir(path).forEach(this.enqueue, this); } else { this.queue.push(path); } return this; }, function chapter(chapter){ chapter = chapter.toString().split('.'); var path = resolve(this.tests, 'ch' + ('00'+ (chapter[0] | 0)).slice(-2)); if (chapter[1]) { path = resolve(path, chapter[0] + '.' + chapter[1]); } if (chapter[2]) { path = resolve(path, chapter[0] + '.' + chapter[1] + '.' + chapter[2]); } if (exists(path)) { this.enqueue(path); } return this; }, function next(done){ var item = this.queue.shift(); if (item) { var test = new TestCase(item, this.strict); test.paths = test.path.split('/'); test.paths.reduce(function(r, s, i, a){ if (!(s in r)) { if (i === a.length - 1) { r[s] = test; } else { r[s] = {}; } } return r[s]; }, this.results); var self = this; this.runner.run(test, function(result){ done.call(self, test); }); } }, function run(count, done){ var record = __dirname+'/tested.json'; var tested = fs.existsSync(record) ? require(record) : {}; if (typeof count === 'function') { done = count; count = 40; } if (count-- && this.queue.length) { var name = formatPath(path.relative(__dirname, this.queue.front())); if (name in tested) { this.queue.shift(); return this.run(++count, done); } tested[name] = true; this.next(function(test){ var name = test.paths.slice(-1); delete test.abspath; delete test.path; delete test.paths; if (test.result === undefined) { test.result = 'PASS'; } write(__dirname + '/results/'+name+'.js', stringify(test)); test.global = null; this.run(count, done); }); } else { done('done') } } ]); return TestSuite; })(); var x = new TestSuite; x.chapter('8.2'); x.run(function(result){ print(x); }); // print(x.includes); //print(realm.global);
{ "content_hash": "93f563399636d00667fe1333bebd1de7", "timestamp": "", "source": "github", "line_count": 374, "max_line_length": 106, "avg_line_length": 25.681818181818183, "alnum_prop": 0.554711087975013, "repo_name": "lukehoban/continuum", "id": "85133d5d0d39298414398ccb9439ce32b798e2a1", "size": "9605", "binary": false, "copies": "1", "ref": "refs/heads/gh-pages", "path": "test/test262.js", "mode": "33188", "license": "mit", "language": [], "symlink_target": "" }
<idea-plugin> <id>org.teavm.idea</id> <name>TeaVM IDEA Integration</name> <version>${project.version}</version> <vendor email="info@teavm.org" url="http://teavm.org">TeaVM community</vendor> <depends>com.intellij.modules.java</depends> <depends optional="true" config-file="maven.xml">org.jetbrains.idea.maven</depends> <depends optional="true" config-file="kotlin.xml">org.jetbrains.kotlin</depends> <depends optional="true" config-file="scala.xml">org.intellij.scala</depends> <description><![CDATA[ Plugin that allows to run TeaVM compiler and debug applications generated by TeaVM. ]]></description> <change-notes><![CDATA[ ]]> </change-notes> <idea-version since-build="182.5262.2"/> <application-components> <component> <implementation-class>org.teavm.idea.TeaVMJPSRemoteService</implementation-class> </component> <component> <implementation-class>org.teavm.idea.TeaVMDaemonComponent</implementation-class> </component> </application-components> <extensions defaultExtensionNs="com.intellij"> <applicationService serviceImplementation="org.teavm.idea.TeaVMWorkspaceConfigurationStorage"/> <compileServer.plugin classpath="jps/teavm-jps-plugin.jar;teavm.jar;teavm-jps-common.jar"/> <buildProcess.parametersProvider implementation="org.teavm.idea.TeaVMJPSConfigurator"/> <configurationType implementation="org.teavm.idea.debug.TeaVMDebugConfigurationType"/> <programRunner implementation="org.teavm.idea.debug.TeaVMDebugRunner"/> <configurationType implementation="org.teavm.idea.devserver.TeaVMDevServerConfigurationType"/> <programRunner implementation="org.teavm.idea.devserver.TeaVMDevServerRunner"/> <applicationConfigurable instance="org.teavm.idea.ui.TeaVMSettingsEditorTab" id="project.teavm.settings" displayName="TeaVM compiler" parentId="project.propCompiler"/> <facetType implementation="org.teavm.idea.TeaVMFacetType"/> <facetType implementation="org.teavm.idea.TeaVMWebAssemblyFacetType"/> </extensions> <extensionPoints> <extensionPoint qualifiedName="org.teavm.extensions.breakpointProvider" area="IDEA_PROJECT" interface="org.teavm.idea.debug.TeaVMBreakpointProvider"/> </extensionPoints> </idea-plugin>
{ "content_hash": "8e2988c266fb2022862f23894002b9af", "timestamp": "", "source": "github", "line_count": 55, "max_line_length": 99, "avg_line_length": 43, "alnum_prop": 0.7276955602536997, "repo_name": "konsoletyper/teavm", "id": "9a0b928392345d033271bc9bd7aff534e7b6221e", "size": "2365", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "tools/idea/plugin/src/main/resources/META-INF/plugin.xml", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C", "bytes": "146734" }, { "name": "CSS", "bytes": "1533" }, { "name": "HTML", "bytes": "27508" }, { "name": "Java", "bytes": "14562907" }, { "name": "JavaScript", "bytes": "86216" }, { "name": "Shell", "bytes": "6477" } ], "symlink_target": "" }
(function () { 'use strict'; describe('Xmens Controller Tests', function () { // Initialize global variables var XmensController, $scope, $httpBackend, $state, Authentication, XmensService, mockXmen; // The $resource service augments the response object with methods for updating and deleting the resource. // If we were to use the standard toEqual matcher, our tests would fail because the test values would not match // the responses exactly. To solve the problem, we define a new toEqualData Jasmine matcher. // When the toEqualData matcher compares two objects, it takes only object properties into // account and ignores methods. beforeEach(function () { jasmine.addMatchers({ toEqualData: function (util, customEqualityTesters) { return { compare: function (actual, expected) { return { pass: angular.equals(actual, expected) }; } }; } }); }); // Then we can start by loading the main application module beforeEach(module(ApplicationConfiguration.applicationModuleName)); // The injector ignores leading and trailing underscores here (i.e. _$httpBackend_). // This allows us to inject a service but then attach it to a variable // with the same name as the service. beforeEach(inject(function ($controller, $rootScope, _$state_, _$httpBackend_, _Authentication_, _XmensService_) { // Set a new global scope $scope = $rootScope.$new(); // Point global variables to injected services $httpBackend = _$httpBackend_; $state = _$state_; Authentication = _Authentication_; XmensService = _XmensService_; // create mock Xmen mockXmen = new XmensService({ _id: '525a8422f6d0f87f0e407a33', name: 'Xmen Name' }); // Mock logged in user Authentication.user = { roles: ['user'] }; // Initialize the Xmens controller. XmensController = $controller('XmensController as vm', { $scope: $scope, xmenResolve: {} }); //Spy on state go spyOn($state, 'go'); })); describe('vm.save() as create', function () { var sampleXmenPostData; beforeEach(function () { // Create a sample Xmen object sampleXmenPostData = new XmensService({ name: 'Xmen Name' }); $scope.vm.xmen = sampleXmenPostData; }); it('should send a POST request with the form input values and then locate to new object URL', inject(function (XmensService) { // Set POST response $httpBackend.expectPOST('api/xmens', sampleXmenPostData).respond(mockXmen); // Run controller functionality $scope.vm.save(true); $httpBackend.flush(); // Test URL redirection after the Xmen was created expect($state.go).toHaveBeenCalledWith('xmens.view', { xmenId: mockXmen._id }); })); it('should set $scope.vm.error if error', function () { var errorMessage = 'this is an error message'; $httpBackend.expectPOST('api/xmens', sampleXmenPostData).respond(400, { message: errorMessage }); $scope.vm.save(true); $httpBackend.flush(); expect($scope.vm.error).toBe(errorMessage); }); }); describe('vm.save() as update', function () { beforeEach(function () { // Mock Xmen in $scope $scope.vm.xmen = mockXmen; }); it('should update a valid Xmen', inject(function (XmensService) { // Set PUT response $httpBackend.expectPUT(/api\/xmens\/([0-9a-fA-F]{24})$/).respond(); // Run controller functionality $scope.vm.save(true); $httpBackend.flush(); // Test URL location to new object expect($state.go).toHaveBeenCalledWith('xmens.view', { xmenId: mockXmen._id }); })); it('should set $scope.vm.error if error', inject(function (XmensService) { var errorMessage = 'error'; $httpBackend.expectPUT(/api\/xmens\/([0-9a-fA-F]{24})$/).respond(400, { message: errorMessage }); $scope.vm.save(true); $httpBackend.flush(); expect($scope.vm.error).toBe(errorMessage); })); }); describe('vm.remove()', function () { beforeEach(function () { //Setup Xmens $scope.vm.xmen = mockXmen; }); it('should delete the Xmen and redirect to Xmens', function () { //Return true on confirm message spyOn(window, 'confirm').and.returnValue(true); $httpBackend.expectDELETE(/api\/xmens\/([0-9a-fA-F]{24})$/).respond(204); $scope.vm.remove(); $httpBackend.flush(); expect($state.go).toHaveBeenCalledWith('xmens.list'); }); it('should should not delete the Xmen and not redirect', function () { //Return false on confirm message spyOn(window, 'confirm').and.returnValue(false); $scope.vm.remove(); expect($state.go).not.toHaveBeenCalled(); }); }); }); })();
{ "content_hash": "1d40c72641b805a052addaf526e52067", "timestamp": "", "source": "github", "line_count": 170, "max_line_length": 132, "avg_line_length": 30.611764705882354, "alnum_prop": 0.5931975403535742, "repo_name": "ygoryunov/xmen", "id": "df55d4c7fc587bb770b88f629d0aa3a418a98f68", "size": "5204", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "modules/xmens/tests/client/xmens.client.controller.tests.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "1220" }, { "name": "HTML", "bytes": "46622" }, { "name": "JavaScript", "bytes": "372222" }, { "name": "Shell", "bytes": "685" } ], "symlink_target": "" }
.class public Lcom/samsung/android/rlc/receiver/handler/GCMHandler; .super Lcom/samsung/android/rlc/receiver/handler/PushMsgHandler; .source "GCMHandler.java" # static fields .field private static final APP:Ljava/lang/String; = "app" .field private static final ERROR:Ljava/lang/String; = "error" .field private static final ERR_ACCOUNT_MISSING:Ljava/lang/String; = "ACCOUNT_MISSING" .field private static final ERR_AUTHENTICATION_FAILED:Ljava/lang/String; = "AUTHENTICATION_FAILED" .field private static final ERR_INVALID_SENDER:Ljava/lang/String; = "INVALID_SENDER" .field private static final ERR_PHONE_REGISTRATION_ERROR:Ljava/lang/String; = "PHONE_REGISTRATION_ERROR" .field private static final ERR_SERVICE_NOT_AVAILABLE:Ljava/lang/String; = "SERVICE_NOT_AVAILABLE" .field private static final ERR_TOO_MANY_REGISTRATIONS:Ljava/lang/String; = "TOO_MANY_REGISTRATIONS" .field private static final GCM_REGISTER:Ljava/lang/String; = "com.google.android.c2dm.intent.REGISTER" .field private static final GCM_UNREGISTER:Ljava/lang/String; = "com.google.android.c2dm.intent.UNREGISTER" .field private static final REGISTRATION_ID:Ljava/lang/String; = "registration_id" .field private static final SENDER:Ljava/lang/String; = "sender" .field private static final TAG:Ljava/lang/String; .field private static final UNREGISTERED:Ljava/lang/String; = "unregistered" # direct methods .method static constructor <clinit>()V .locals 1 const-class v0, Lcom/samsung/android/rlc/receiver/handler/GCMHandler; invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String; move-result-object v0 sput-object v0, Lcom/samsung/android/rlc/receiver/handler/GCMHandler;->TAG:Ljava/lang/String; return-void .end method .method public constructor <init>()V .locals 0 invoke-direct {p0}, Lcom/samsung/android/rlc/receiver/handler/PushMsgHandler;-><init>()V return-void .end method .method public static deregisterFromGCM(Landroid/content/Context;)V .locals 4 const/4 v3, 0x0 sget-object v1, Lcom/samsung/android/rlc/receiver/handler/GCMHandler;->TAG:Ljava/lang/String; const-string/jumbo v2, "[decertifyGCM]" invoke-static {v1, v2}, Lcom/samsung/android/rlc/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)V new-instance v0, Landroid/content/Intent; const-string/jumbo v1, "com.google.android.c2dm.intent.UNREGISTER" invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V const-string/jumbo v1, "com.google.android.gsf" invoke-virtual {v0, v1}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent; const-string/jumbo v1, "app" new-instance v2, Landroid/content/Intent; invoke-direct {v2}, Landroid/content/Intent;-><init>()V invoke-static {p0, v3, v2, v3}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent; move-result-object v2 invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent; invoke-virtual {p0, v0}, Landroid/content/Context;->startService(Landroid/content/Intent;)Landroid/content/ComponentName; return-void .end method .method public static handlePushMsg(Landroid/content/Context;Ljava/lang/String;)V .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/lang/Exception; } .end annotation const-string/jumbo v0, "GCM" invoke-static {p0, p1, v0}, Lcom/samsung/android/rlc/receiver/handler/GCMHandler;->handleMsg(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V return-void .end method .method public static handleRegistration(Landroid/content/Context;Landroid/content/Intent;)V .locals 8 .annotation system Ldalvik/annotation/Throws; value = { Ljava/lang/Exception; } .end annotation const/16 v7, 0xb const-string/jumbo v4, "registration_id" invoke-virtual {p1, v4}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String; move-result-object v2 sget-object v4, Lcom/samsung/android/rlc/receiver/handler/GCMHandler;->TAG:Ljava/lang/String; const-string/jumbo v5, "[handleRegistration]" invoke-static {v4, v5}, Lcom/samsung/android/rlc/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)V sget-object v4, Lcom/samsung/android/rlc/receiver/handler/GCMHandler;->TAG:Ljava/lang/String; new-instance v5, Ljava/lang/StringBuilder; invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V const-string/jumbo v6, "\tregistrationID : " invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v5 invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v5 invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v5 invoke-static {v4, v5}, Lcom/samsung/android/rlc/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)V const-string/jumbo v4, "error" invoke-virtual {p1, v4}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String; move-result-object v1 if-eqz v1, :cond_6 sget-object v4, Lcom/samsung/android/rlc/receiver/handler/GCMHandler;->TAG:Ljava/lang/String; new-instance v5, Ljava/lang/StringBuilder; invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V const-string/jumbo v6, "Registration failed, should try again later. Error: " invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v5 const-string/jumbo v6, "error" invoke-virtual {p1, v6}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String; move-result-object v6 invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v5 invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v5 invoke-static {v4, v5}, Lcom/samsung/android/rlc/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)V const-string/jumbo v4, "SERVICE_NOT_AVAILABLE" invoke-virtual {v4, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v4 if-nez v4, :cond_0 const-string/jumbo v4, "PHONE_REGISTRATION_ERROR" invoke-virtual {v4, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v4 if-eqz v4, :cond_2 :cond_0 sget-object v4, Lcom/samsung/android/rlc/receiver/handler/GCMHandler;->TAG:Ljava/lang/String; new-instance v5, Ljava/lang/StringBuilder; invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V const-string/jumbo v6, "Error :" invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v5 invoke-virtual {v5, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v5 invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v5 invoke-static {v4, v5}, Lcom/samsung/android/rlc/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)V new-instance v4, Landroid/os/Bundle; invoke-direct {v4}, Landroid/os/Bundle;-><init>()V invoke-static {p0, v4, v7}, Lcom/samsung/android/rlc/util/PushUtil;->retryBackoff(Landroid/content/Context;Landroid/os/Bundle;I)I :cond_1 :goto_0 return-void :cond_2 const-string/jumbo v4, "ACCOUNT_MISSING" invoke-virtual {v4, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v4 if-eqz v4, :cond_3 sget-object v4, Lcom/samsung/android/rlc/receiver/handler/GCMHandler;->TAG:Ljava/lang/String; const-string/jumbo v5, "ACCOUNT_MISSING" invoke-static {v4, v5}, Lcom/samsung/android/rlc/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)V goto :goto_0 :cond_3 const-string/jumbo v4, "AUTHENTICATION_FAILED" invoke-virtual {v4, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v4 if-eqz v4, :cond_4 sget-object v4, Lcom/samsung/android/rlc/receiver/handler/GCMHandler;->TAG:Ljava/lang/String; const-string/jumbo v5, "AUTHENTICATION_FAILED" invoke-static {v4, v5}, Lcom/samsung/android/rlc/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)V new-instance v4, Landroid/os/Bundle; invoke-direct {v4}, Landroid/os/Bundle;-><init>()V invoke-static {p0, v4, v7}, Lcom/samsung/android/rlc/util/PushUtil;->retryBackoff(Landroid/content/Context;Landroid/os/Bundle;I)I goto :goto_0 :cond_4 const-string/jumbo v4, "TOO_MANY_REGISTRATIONS" invoke-virtual {v4, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v4 if-eqz v4, :cond_5 sget-object v4, Lcom/samsung/android/rlc/receiver/handler/GCMHandler;->TAG:Ljava/lang/String; const-string/jumbo v5, "TOO_MANY_REGISTRATIONS" invoke-static {v4, v5}, Lcom/samsung/android/rlc/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)V goto :goto_0 :cond_5 const-string/jumbo v4, "INVALID_SENDER" invoke-virtual {v4, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v4 if-eqz v4, :cond_1 sget-object v4, Lcom/samsung/android/rlc/receiver/handler/GCMHandler;->TAG:Ljava/lang/String; const-string/jumbo v5, "INVALID_SENDER" invoke-static {v4, v5}, Lcom/samsung/android/rlc/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)V goto :goto_0 :cond_6 const-string/jumbo v4, "unregistered" invoke-virtual {p1, v4}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String; move-result-object v4 if-eqz v4, :cond_7 sget-object v4, Lcom/samsung/android/rlc/receiver/handler/GCMHandler;->TAG:Ljava/lang/String; const-string/jumbo v5, "Unregistration done." invoke-static {v4, v5}, Lcom/samsung/android/rlc/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)V const-string/jumbo v4, "GCM" invoke-static {p0, v4}, Lcom/samsung/android/rlc/util/PreferencesUtil;->clearRegistraionID(Landroid/content/Context;Ljava/lang/String;)V const-string/jumbo v4, "GCM" invoke-static {p0, v4}, Lcom/samsung/android/rlc/util/PreferencesUtil;->unmarkMGRegistered(Landroid/content/Context;Ljava/lang/String;)V invoke-static {p0}, Lcom/samsung/android/rlc/util/PreferencesUtil;->clearGCMBackoff(Landroid/content/Context;)V goto :goto_0 :cond_7 if-eqz v2, :cond_1 sget-object v4, Lcom/samsung/android/rlc/receiver/handler/GCMHandler;->TAG:Ljava/lang/String; const-string/jumbo v5, "Registration_id complete" invoke-static {v4, v5}, Lcom/samsung/android/rlc/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)V invoke-static {p0}, Lcom/samsung/android/rlc/util/PreferencesUtil;->clearGCMBackoff(Landroid/content/Context;)V const-string/jumbo v4, "GCM" invoke-static {p0, v4}, Lcom/samsung/android/rlc/util/PreferencesUtil;->getRegistraionID(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String; move-result-object v3 sget-object v4, Lcom/samsung/android/rlc/receiver/handler/GCMHandler;->TAG:Ljava/lang/String; new-instance v5, Ljava/lang/StringBuilder; invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V const-string/jumbo v6, "[GCM]Saved Registration ID :" invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v5 invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v5 invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v5 invoke-static {v4, v5}, Lcom/samsung/android/rlc/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)V sget-object v4, Lcom/samsung/android/rlc/receiver/handler/GCMHandler;->TAG:Ljava/lang/String; new-instance v5, Ljava/lang/StringBuilder; invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V const-string/jumbo v6, "[GCM]New Registration ID :" invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v5 invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v5 invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v5 invoke-static {v4, v5}, Lcom/samsung/android/rlc/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)V const-string/jumbo v4, "GCM" invoke-static {p0, v2, v4}, Lcom/samsung/android/rlc/util/PreferencesUtil;->setRegistraionID(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V const-string/jumbo v4, "GCM" invoke-static {p0, v4}, Lcom/samsung/android/rlc/receiver/handler/MgRegistrationHandler;->makeMgRegistrationBundle(Landroid/content/Context;Ljava/lang/String;)Landroid/os/Bundle; move-result-object v0 const/4 v4, 0x5 invoke-static {p0, v0, v4}, Lcom/samsung/android/rlc/service/RmmTask;->startTask(Landroid/content/Context;Landroid/os/Bundle;I)V goto/16 :goto_0 .end method .method public static registerAtGCM(Landroid/content/Context;)V .locals 4 const/4 v3, 0x0 sget-object v1, Lcom/samsung/android/rlc/receiver/handler/GCMHandler;->TAG:Ljava/lang/String; const-string/jumbo v2, "[certifyGCM]" invoke-static {v1, v2}, Lcom/samsung/android/rlc/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)V sget-object v1, Lcom/samsung/android/rlc/receiver/handler/GCMHandler;->TAG:Ljava/lang/String; const-string/jumbo v2, "certifyGCM: 131980721158" invoke-static {v1, v2}, Lcom/samsung/android/rlc/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)V new-instance v0, Landroid/content/Intent; const-string/jumbo v1, "com.google.android.c2dm.intent.REGISTER" invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V const-string/jumbo v1, "com.google.android.gsf" invoke-virtual {v0, v1}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent; const-string/jumbo v1, "app" new-instance v2, Landroid/content/Intent; invoke-direct {v2}, Landroid/content/Intent;-><init>()V invoke-static {p0, v3, v2, v3}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent; move-result-object v2 invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent; const-string/jumbo v1, "sender" const-string/jumbo v2, "131980721158" invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; invoke-virtual {p0, v0}, Landroid/content/Context;->startService(Landroid/content/Intent;)Landroid/content/ComponentName; return-void .end method
{ "content_hash": "28fc75f7cc118c9673c7782fd559cd00", "timestamp": "", "source": "github", "line_count": 468, "max_line_length": 182, "avg_line_length": 32.61965811965812, "alnum_prop": 0.7247478055810297, "repo_name": "BatMan-Rom/ModdedFiles", "id": "e251e8431a44449e5ce2d2d77ecb190ac4cc70ed", "size": "15266", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "services.jar.out/smali_classes2/com/samsung/android/rlc/receiver/handler/GCMHandler.smali", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "GLSL", "bytes": "15069" }, { "name": "HTML", "bytes": "139176" }, { "name": "Smali", "bytes": "541934400" } ], "symlink_target": "" }
<?php namespace yii\captcha; use Yii; use yii\base\Action; use yii\base\InvalidConfigException; use yii\helpers\Url; use yii\web\Response; /** * CaptchaAction renders a CAPTCHA image. * * CaptchaAction is used together with [[Captcha]] and [[\yii\captcha\CaptchaValidator]] * to provide the [CAPTCHA](http://en.wikipedia.org/wiki/Captcha) feature. * * By configuring the properties of CaptchaAction, you may customize the appearance of * the generated CAPTCHA images, such as the font color, the background color, etc. * * Note that CaptchaAction requires either GD2 extension or ImageMagick PHP extension. * * Using CAPTCHA involves the following steps: * * 1. Override [[\yii\web\Controller::actions()]] and register an action of class CaptchaAction with ID 'captcha' * 2. In the form model, declare an attribute to store user-entered verification code, and declare the attribute * to be validated by the 'captcha' validator. * 3. In the controller view, insert a [[Captcha]] widget in the form. * * @property string $verifyCode The verification code. This property is read-only. * * @author Qiang Xue <qiang.xue@gmail.com> * @since 2.0 */ class CaptchaAction extends Action { /** * The name of the GET parameter indicating whether the CAPTCHA image should be regenerated. */ const REFRESH_GET_VAR = 'refresh'; /** * @var integer how many times should the same CAPTCHA be displayed. Defaults to 3. * A value less than or equal to 0 means the test is unlimited (available since version 1.1.2). */ public $testLimit = 3; /** * @var integer the width of the generated CAPTCHA image. Defaults to 120. */ public $width = 120; /** * @var integer the height of the generated CAPTCHA image. Defaults to 50. */ public $height = 50; /** * @var integer padding around the text. Defaults to 2. */ public $padding = 2; /** * @var integer the background color. For example, 0x55FF00. * Defaults to 0xFFFFFF, meaning white color. */ public $backColor = 0xFFFFFF; /** * @var integer the font color. For example, 0x55FF00. Defaults to 0x2040A0 (blue color). */ public $foreColor = 0x2040A0; /** * @var boolean whether to use transparent background. Defaults to false. */ public $transparent = false; /** * @var integer the minimum length for randomly generated word. Defaults to 6. */ public $minLength = 4; /** * @var integer the maximum length for randomly generated word. Defaults to 7. */ public $maxLength = 5; /** * @var integer the offset between characters. Defaults to -2. You can adjust this property * in order to decrease or increase the readability of the captcha. */ public $offset = -2; /** * @var string the TrueType font file. This can be either a file path or path alias. */ public $fontFile = '@yii/captcha/SpicyRice.ttf'; /** * @var string the fixed verification code. When this property is set, * [[getVerifyCode()]] will always return the value of this property. * This is mainly used in automated tests where we want to be able to reproduce * the same verification code each time we run the tests. * If not set, it means the verification code will be randomly generated. */ public $fixedVerifyCode; /** * Initializes the action. * @throws InvalidConfigException if the font file does not exist. */ public function init() { $this->fontFile = Yii::getAlias($this->fontFile); if (!is_file($this->fontFile)) { throw new InvalidConfigException("The font file does not exist: {$this->fontFile}"); } } /** * Runs the action. */ public function run() { if (Yii::$app->request->getQueryParam(self::REFRESH_GET_VAR) !== null) { // AJAX request for regenerating code $code = $this->getVerifyCode(true); Yii::$app->response->format = Response::FORMAT_JSON; return [ 'hash1' => $this->generateValidationHash($code), 'hash2' => $this->generateValidationHash(strtolower($code)), // we add a random 'v' parameter so that FireFox can refresh the image // when src attribute of image tag is changed 'url' => Url::to([$this->id, 'v' => uniqid()]), ]; } else { $this->setHttpHeaders(); Yii::$app->response->format = Response::FORMAT_RAW; return $this->renderImage($this->getVerifyCode()); } } /** * Generates a hash code that can be used for client side validation. * @param string $code the CAPTCHA code * @return string a hash code generated from the CAPTCHA code */ public function generateValidationHash($code) { for ($h = 0, $i = strlen($code) - 1; $i >= 0; --$i) { $h += ord($code[$i]); } return $h; } /** * Gets the verification code. * @param boolean $regenerate whether the verification code should be regenerated. * @return string the verification code. */ public function getVerifyCode($regenerate = false) { if ($this->fixedVerifyCode !== null) { return $this->fixedVerifyCode; } $session = Yii::$app->getSession(); $session->open(); $name = $this->getSessionKey(); if ($session[$name] === null || $regenerate) { $session[$name] = $this->generateVerifyCode(); $session[$name . 'count'] = 1; } return $session[$name]; } /** * Validates the input to see if it matches the generated code. * @param string $input user input * @param boolean $caseSensitive whether the comparison should be case-sensitive * @return boolean whether the input is valid */ public function validate($input, $caseSensitive) { $code = $this->getVerifyCode(); $valid = $caseSensitive ? ($input === $code) : strcasecmp($input, $code) === 0; $session = Yii::$app->getSession(); $session->open(); $name = $this->getSessionKey() . 'count'; $session[$name] = $session[$name] + 1; if ($valid || $session[$name] > $this->testLimit && $this->testLimit > 0) { $this->getVerifyCode(true); } return $valid; } /** * Generates a new verification code. * @return string the generated verification code */ protected function generateVerifyCode() { if ($this->minLength > $this->maxLength) { $this->maxLength = $this->minLength; } if ($this->minLength < 3) { $this->minLength = 3; } if ($this->maxLength > 20) { $this->maxLength = 20; } $length = mt_rand($this->minLength, $this->maxLength); $letters = 'bcdfghjklmnpqrstvwxyz'; $vowels = 'aeiou'; $code = ''; for ($i = 0; $i < $length; ++$i) { if ($i % 2 && mt_rand(0, 10) > 2 || !($i % 2) && mt_rand(0, 10) > 9) { $code .= $vowels[mt_rand(0, 4)]; } else { $code .= $letters[mt_rand(0, 20)]; } } return $code; } /** * Returns the session variable name used to store verification code. * @return string the session variable name */ protected function getSessionKey() { return '__captcha/' . $this->getUniqueId(); } /** * Renders the CAPTCHA image. * @param string $code the verification code * @return string image contents */ protected function renderImage($code) { if (Captcha::checkRequirements() === 'gd') { return $this->renderImageByGD($code); } else { return $this->renderImageByImagick($code); } } /** * Renders the CAPTCHA image based on the code using GD library. * @param string $code the verification code * @return string image contents in PNG format. */ protected function renderImageByGD($code) { $image = imagecreatetruecolor($this->width, $this->height); $backColor = imagecolorallocate( $image, (int) ($this->backColor % 0x1000000 / 0x10000), (int) ($this->backColor % 0x10000 / 0x100), $this->backColor % 0x100 ); imagefilledrectangle($image, 0, 0, $this->width, $this->height, $backColor); imagecolordeallocate($image, $backColor); if ($this->transparent) { imagecolortransparent($image, $backColor); } $foreColor = imagecolorallocate( $image, (int) ($this->foreColor % 0x1000000 / 0x10000), (int) ($this->foreColor % 0x10000 / 0x100), $this->foreColor % 0x100 ); $length = strlen($code); $box = imagettfbbox(30, 0, $this->fontFile, $code); $w = $box[4] - $box[0] + $this->offset * ($length - 1); $h = $box[1] - $box[5]; $scale = min(($this->width - $this->padding * 2) / $w, ($this->height - $this->padding * 2) / $h); $x = 10; $y = round($this->height * 27 / 40); for ($i = 0; $i < $length; ++$i) { $fontSize = (int) (rand(26, 32) * $scale * 0.8); $angle = rand(-10, 10); $letter = $code[$i]; $box = imagettftext($image, $fontSize, $angle, $x, $y, $foreColor, $this->fontFile, $letter); $x = $box[2] + $this->offset; } imagecolordeallocate($image, $foreColor); ob_start(); imagepng($image); imagedestroy($image); return ob_get_clean(); } /** * Renders the CAPTCHA image based on the code using ImageMagick library. * @param string $code the verification code * @return string image contents in PNG format. */ protected function renderImageByImagick($code) { $backColor = $this->transparent ? new \ImagickPixel('transparent') : new \ImagickPixel('#' . dechex($this->backColor)); $foreColor = new \ImagickPixel('#' . dechex($this->foreColor)); $image = new \Imagick(); $image->newImage($this->width, $this->height, $backColor); $draw = new \ImagickDraw(); $draw->setFont($this->fontFile); $draw->setFontSize(30); $fontMetrics = $image->queryFontMetrics($draw, $code); $length = strlen($code); $w = (int) ($fontMetrics['textWidth']) - 8 + $this->offset * ($length - 1); $h = (int) ($fontMetrics['textHeight']) - 8; $scale = min(($this->width - $this->padding * 2) / $w, ($this->height - $this->padding * 2) / $h); $x = 10; $y = round($this->height * 27 / 40); for ($i = 0; $i < $length; ++$i) { $draw = new \ImagickDraw(); $draw->setFont($this->fontFile); $draw->setFontSize((int) (rand(26, 32) * $scale * 0.8)); $draw->setFillColor($foreColor); $image->annotateImage($draw, $x, $y, rand(-10, 10), $code[$i]); $fontMetrics = $image->queryFontMetrics($draw, $code[$i]); $x += (int) ($fontMetrics['textWidth']) + $this->offset; } $image->setImageFormat('png'); return $image->getImageBlob(); } /** * Sets the HTTP headers needed by image response. */ protected function setHttpHeaders() { Yii::$app->getResponse()->getHeaders() ->set('Pragma', 'public') ->set('Expires', '0') ->set('Cache-Control', 'must-revalidate, post-check=0, pre-check=0') ->set('Content-Transfer-Encoding', 'binary') ->set('Content-type', 'image/png'); } }
{ "content_hash": "caaa24af1bfcea366a72d83909926c4e", "timestamp": "", "source": "github", "line_count": 348, "max_line_length": 127, "avg_line_length": 34.23275862068966, "alnum_prop": 0.569713758079409, "repo_name": "uxff/yii2-advanced", "id": "bddd0bf1c6050ae43bc7287681c0ab43d45a5cb3", "size": "12057", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "vendor/yiisoft/yii2/captcha/CaptchaAction.php", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "Batchfile", "bytes": "1541" }, { "name": "CSS", "bytes": "2728" }, { "name": "PHP", "bytes": "391828" } ], "symlink_target": "" }
var path = require('path') var stylizer = require('stylizer') var templatizer = require('templatizer-hbs') // for reuse var appDir = path.resolve(__dirname + '/../../web/client') var cssDir = path.resolve(__dirname + '/../../web/public/css') var javascriptDir = path.resolve(__dirname + '/../../web/public/javascript') var templateDir = path.resolve(__dirname + '/../../web/templates') module.exports = function (config) { return { // Tell the Hapi server what URLs the application should be served from. // Since we're doing clientside routing we want to serve this from some type // of wildcard url. // examples: // '/{p*}' - match everything that isn't matched by something more specific // '/dashboard/{p*}' - serve the app at all routes starting with '/dashboard' appPath: '/{p*}', appConfig: { auth: 'simple' }, // The moonboots config moonboots: { // The base name of the javascript file served in the <script src="the_name.*.js"> jsFileName: 'guvnor-web', // The base name of the css file served in the <link rel="stylesheet" src="the_name.*.css"> cssFileName: 'guvnor-web', main: appDir + '/app.js', developmentMode: config.isDev, // Specify any non-commonjs libraries we wish to include. // You can think of this as your list of <script> tags in your HTML. // These will simply be included before any of your application code in the // order you provide them. So for example, if you're using jQuery make sure // you list any plugins after jQuery itself. libraries: [ javascriptDir + '/jquery/jquery-1.11.1' + (config.isDev ? '.src' : '') + '.js', javascriptDir + '/bootstrap/bootstrap-3.3.1' + (config.isDev ? '.src' : '') + '.js', javascriptDir + '/highcharts/highcharts' + (config.isDev ? '.src' : '') + '.js', javascriptDir + '/highcharts/highcharts-more' + (config.isDev ? '.src' : '') + '.js', javascriptDir + '/highcharts/modules/solid-gauge' + (config.isDev ? '.src' : '') + '.js' ], // Specify the stylesheets we want to bundle stylesheets: [ cssDir + '/darkstrap.css', cssDir + '/font-awesome.css', cssDir + '/font-mfizz.css', cssDir + '/app.css' ], beforeBuildJS: function (done) { // We only want to do this in dev mode. If it's not in dev mode, this // function will only be run once. if (!config.isDev) { return done() } // This re-builds our template files from jade each time the app's main // js file is requested. Which means you can seamlessly change jade and // refresh in your browser to get new templates. templatizer(templateDir + '/**/*.hbs', appDir + '/templates.js', { uglify: true }, done) }, beforeBuildCSS: function (done) { // We only want to do this in dev mode. If it's not in dev mode, this // function will only be run once. if (!config.isDev) { return done() } // Re-compile stylus to css each time the app's main css file is requested. // In addition there's a "watch" option that will make stylizer also be able // to talk to live reload (http://livereload.com/) browser plugins for sneakily // refreshing styles without waiting for you to refresh or running/configuring // the live reload app. stylizer({ infile: cssDir + '/app.styl', outfile: cssDir + '/app.css', development: config.isDev, // Beware there's an issue with watch on OSX that causes issues with // watch if you're not running node 0.10.25 or later. watch: cssDir + '/**/*.styl' }, done) } } } }
{ "content_hash": "24e04683d8873256b56f99008dccac78", "timestamp": "", "source": "github", "line_count": 87, "max_line_length": 97, "avg_line_length": 43.9080459770115, "alnum_prop": 0.6010471204188481, "repo_name": "tableflip/guvnor", "id": "4315aa3e727588f874af1033fefb5f870de2ee28", "size": "3820", "binary": false, "copies": "3", "ref": "refs/heads/master", "path": "lib/web/moonboots.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "434818" }, { "name": "CoffeeScript", "bytes": "66" }, { "name": "HTML", "bytes": "27475" }, { "name": "JavaScript", "bytes": "1981763" }, { "name": "Ruby", "bytes": "3308" }, { "name": "Shell", "bytes": "2257" } ], "symlink_target": "" }
layout: page title: Daniel - Jacobs Wedding date: 2016-05-24 author: Katherine Cochran tags: weekly links, java status: published summary: Praesent et dolor aliquet, vulputate mi vitae, dignissim nisl. banner: images/banner/meeting-01.jpg booking: startDate: 11/28/2018 endDate: 11/29/2018 ctyhocn: ATLSBHX groupCode: DJW published: true --- Curabitur a sem eget justo pellentesque aliquet. Mauris magna odio, scelerisque et orci in, auctor varius elit. Donec fringilla orci at ex tristique euismod. In sollicitudin feugiat orci, vel pulvinar ligula dapibus et. Aenean sem eros, dignissim a dapibus a, sodales a ipsum. Duis venenatis sagittis dui quis dignissim. Sed congue sollicitudin efficitur. Ut iaculis porta risus eget scelerisque. Proin porttitor, ante non consectetur maximus, quam quam vestibulum nulla, eu elementum velit risus eget purus. Sed a metus fermentum, vestibulum ex sit amet, imperdiet tellus. Nam maximus mollis tellus, quis dictum eros. Sed condimentum, magna sed bibendum posuere, est ex gravida risus, ut tempus est mi sit amet nisl. Maecenas eu laoreet ligula. Donec sem ex, pulvinar ac vehicula ut, dignissim vitae felis. Fusce ultricies laoreet imperdiet. * Maecenas sit amet tellus convallis, lacinia lacus quis, ullamcorper ex * Sed commodo lorem sed ante varius, vel posuere lorem molestie * Fusce tempus ex sed porta ullamcorper. Cras pretium magna felis, nec aliquet leo ullamcorper et. Integer nec iaculis justo, vel auctor urna. Aliquam id massa velit. Aenean nec nulla dignissim, faucibus risus sed, laoreet lacus. Praesent vulputate, libero id sodales malesuada, augue quam consequat purus, sit amet maximus ipsum arcu in sapien. Ut feugiat sollicitudin consequat. Etiam eu elit in mi facilisis gravida quis in risus. Fusce id velit nec elit viverra sagittis. Curabitur volutpat accumsan porta. In posuere mattis accumsan. Curabitur hendrerit in diam nec pretium. Phasellus dignissim aliquet leo, et commodo dui porta nec. Nunc sed lacus est. Nullam bibendum sagittis tortor, et ullamcorper lacus. Sed gravida metus ac turpis sollicitudin, sit amet molestie libero volutpat. Donec facilisis, massa in sagittis finibus, mi tellus lacinia dui, in laoreet augue purus vel mauris. In cursus pulvinar libero at dignissim. Vivamus elementum tortor vitae purus faucibus sodales. Duis ac aliquet ipsum, vel suscipit velit.
{ "content_hash": "c20ec3a9af43dc3fa727735a2a110570", "timestamp": "", "source": "github", "line_count": 24, "max_line_length": 519, "avg_line_length": 98.45833333333333, "alnum_prop": 0.8057553956834532, "repo_name": "KlishGroup/prose-pogs", "id": "282ff3ba18cc0ba186a8f56b54859731c69b647f", "size": "2367", "binary": false, "copies": "1", "ref": "refs/heads/gh-pages", "path": "pogs/A/ATLSBHX/DJW/index.md", "mode": "33188", "license": "mit", "language": [], "symlink_target": "" }
package algorithms.imageProcessing; import algorithms.imageProcessing.features.mser.MSEREdges; import algorithms.imageProcessing.segmentation.LabelToColorHelper; import algorithms.misc.MiscDebug; import algorithms.util.PairInt; import algorithms.util.QuadInt; import algorithms.util.ResourceFinder; import gnu.trove.iterator.TIntObjectIterator; import gnu.trove.map.TIntObjectMap; import gnu.trove.set.TIntSet; import java.util.ArrayList; import java.util.List; import java.util.Set; import java.util.logging.Logger; import junit.framework.TestCase; /** * * @author nichole */ public class VanishingPointsTest extends TestCase { private Logger log = Logger.getLogger(this.getClass().getName()); public VanishingPointsTest() { } public void test0() throws Exception { if (true) { return; } //TODO: revise when class is refactored /* NOTE that the vanishing lines for the Merton college images could be improved w/ improved segmentation. Also, for the Seattle test images, can see that finding rectangles first and then small lines associated with them and then using the frequency of lines not orthogonal to the 2-d image plane would find the projected dimension. */ int maxDimension = 256;//512; String fileName1 = ""; for (int i = 0; i < 5; ++i) { //for (int i = 0; i < 38; ++i) { System.out.println("index i=" + i); switch(i) { case 0: { fileName1 = "android_statues_01.jpg"; break; } case 1: { fileName1 = "android_statues_02.jpg"; break; } case 2: { fileName1 = "android_statues_03.jpg"; break; } case 3: { fileName1 = "android_statues_04.jpg"; break; } case 4: { fileName1 = "seattle.jpg"; break; } case 5: { fileName1 = "stonehenge.jpg"; break; } case 6: { fileName1 = "cloudy_san_jose.jpg"; break; } case 7: { fileName1 = "patagonia_snowy_foreground.jpg"; break; } case 8: { fileName1 = "mt_rainier_snowy_field.jpg"; break; } case 9: { fileName1 = "brown_lowe_2003_image1.jpg"; break; } case 10: { fileName1 = "brown_lowe_2003_image2.jpg"; break; } case 11: { fileName1 = "venturi_mountain_j6_0001.png"; break; } case 12: { fileName1 = "venturi_mountain_j6_0010.png"; break; } case 13: { fileName1 = "campus_010.jpg"; break; } case 14: { fileName1 = "campus_011.jpg"; break; } case 15: { fileName1 = "merton_college_I_001.jpg"; break; } case 16: { fileName1 = "merton_college_I_002.jpg"; break; } case 17: { fileName1 = "arches.jpg"; break; } case 18: { fileName1 = "stinson_beach.jpg"; break; } case 19: { fileName1 = "norwegian_mtn_range.jpg"; break; } case 20: { fileName1 = "halfdome.jpg"; break; } case 21: { fileName1 = "halfdome2.jpg"; break; } case 22: { fileName1 = "halfdome3.jpg"; break; } case 23: { fileName1 = "costa_rica.jpg"; break; } case 24: { fileName1 = "new-mexico-sunrise_w725_h490.jpg"; break; } case 25: { fileName1 = "arizona-sunrise-1342919937GHz.jpg"; break; } case 26: { fileName1 = "sky_with_rainbow.jpg"; break; } case 27: { fileName1 = "sky_with_rainbow2.jpg"; break; } case 28: { fileName1 = "books_illum3_v0_695x555.png"; break; } case 29: { fileName1 = "books_illum3_v6_695x555.png"; break; } case 30: { fileName1 = "klein_matterhorn_snowy_foreground.jpg"; break; } case 31: { fileName1 = "30.jpg"; break; } case 32: { fileName1 = "arches_sun_01.jpg"; break; } case 33: { fileName1 = "stlouis_arch.jpg"; break; } case 34: { fileName1 = "contrail.jpg"; break; } case 35: { fileName1 = "checkerboard_01.jpg"; break; } case 36: { fileName1 = "checkerboard_02.jpg"; break; } default: { fileName1 = "house_color.png"; break; } } int idx = fileName1.lastIndexOf("."); String fileName1Root = fileName1.substring(0, idx); String filePath1 = ResourceFinder.findFileInTestResources(fileName1); ImageExt img = ImageIOHelper.readImageExt(filePath1); ImageProcessor imageProcessor = new ImageProcessor(); ImageSegmentation imageSegmentation = new ImageSegmentation(); int w1 = img.getWidth(); int h1 = img.getHeight(); int binFactor1 = (int) Math.ceil(Math.max( (float) w1 / maxDimension, (float) h1 / maxDimension)); img = imageProcessor.binImage(img, binFactor1); MSEREdges mserEdges = new MSEREdges(img); mserEdges.extractAndMergeEdges(); List<TIntSet> pointSets = mserEdges.getLabeledSets(); List<Set<PairInt>> contigSets = new ArrayList<Set<PairInt>>(pointSets.size()); for (TIntSet set : pointSets) { Set<PairInt> set2 = imageProcessor.convertIndexesToPoints(set, img.getWidth()); contigSets.add(set2); } EdgeFilterProducts products = mserEdges.getEdgeFilterProducts(); ImageExt img11 = img.createWithDimensions(); VanishingPoints vp2 = new VanishingPoints(); //vp2.setToDebug(); //vp2.dbgImg = img.copyImage(); vp2.find(contigSets, img.getWidth(), img.getHeight()); //vp2.correctLinesWithGradient(products.getGradientXY()); //MiscDebug.writeImage(img, "_lines_" + fileName1Root); TIntObjectMap<QuadInt> linesMap = vp2.getVanishingLines(); TIntObjectIterator<QuadInt> iter = linesMap.iterator(); for (int ii = 0; ii < linesMap.size(); ++ii) { iter.advance(); QuadInt eps = iter.value(); int segIdx = iter.key(); int clr = ImageIOHelper.getNextColorRGB(ii); ImageIOHelper.drawLineInImage( eps.getA(), eps.getB(), eps.getC(), eps.getD(), img, 1, clr); } MiscDebug.writeImage(img, fileName1 + "_lines_"); } } public static void main(String[] args) { } }
{ "content_hash": "1e927f0f83bf5312b015ddfce512c056", "timestamp": "", "source": "github", "line_count": 266, "max_line_length": 90, "avg_line_length": 32.92481203007519, "alnum_prop": 0.42897921899977165, "repo_name": "nking/curvature-scale-space-corners-and-transformations", "id": "10d8346e1d80482b2b022c25bc99230271cf0d70", "size": "8758", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "tests/algorithms/imageProcessing/VanishingPointsTest.java", "mode": "33188", "license": "mit", "language": [ { "name": "DTrace", "bytes": "10469" }, { "name": "HTML", "bytes": "641583" }, { "name": "Java", "bytes": "5860668" } ], "symlink_target": "" }
 #include <aws/iam/model/InstanceProfile.h> #include <aws/core/utils/xml/XmlSerializer.h> #include <aws/core/utils/StringUtils.h> #include <aws/core/utils/memory/stl/AWSStringStream.h> #include <utility> using namespace Aws::Utils::Xml; using namespace Aws::Utils; namespace Aws { namespace IAM { namespace Model { InstanceProfile::InstanceProfile() : m_pathHasBeenSet(false), m_instanceProfileNameHasBeenSet(false), m_instanceProfileIdHasBeenSet(false), m_arnHasBeenSet(false), m_createDateHasBeenSet(false), m_rolesHasBeenSet(false) { } InstanceProfile::InstanceProfile(const XmlNode& xmlNode) : m_pathHasBeenSet(false), m_instanceProfileNameHasBeenSet(false), m_instanceProfileIdHasBeenSet(false), m_arnHasBeenSet(false), m_createDateHasBeenSet(false), m_rolesHasBeenSet(false) { *this = xmlNode; } InstanceProfile& InstanceProfile::operator =(const XmlNode& xmlNode) { XmlNode resultNode = xmlNode; if(!resultNode.IsNull()) { XmlNode pathNode = resultNode.FirstChild("Path"); if(!pathNode.IsNull()) { m_path = StringUtils::Trim(pathNode.GetText().c_str()); m_pathHasBeenSet = true; } XmlNode instanceProfileNameNode = resultNode.FirstChild("InstanceProfileName"); if(!instanceProfileNameNode.IsNull()) { m_instanceProfileName = StringUtils::Trim(instanceProfileNameNode.GetText().c_str()); m_instanceProfileNameHasBeenSet = true; } XmlNode instanceProfileIdNode = resultNode.FirstChild("InstanceProfileId"); if(!instanceProfileIdNode.IsNull()) { m_instanceProfileId = StringUtils::Trim(instanceProfileIdNode.GetText().c_str()); m_instanceProfileIdHasBeenSet = true; } XmlNode arnNode = resultNode.FirstChild("Arn"); if(!arnNode.IsNull()) { m_arn = StringUtils::Trim(arnNode.GetText().c_str()); m_arnHasBeenSet = true; } XmlNode createDateNode = resultNode.FirstChild("CreateDate"); if(!createDateNode.IsNull()) { m_createDate = DateTime(StringUtils::Trim(createDateNode.GetText().c_str()).c_str(), DateFormat::ISO_8601); m_createDateHasBeenSet = true; } XmlNode rolesNode = resultNode.FirstChild("Roles"); if(!rolesNode.IsNull()) { XmlNode rolesMember = rolesNode.FirstChild("member"); while(!rolesMember.IsNull()) { m_roles.push_back(rolesMember); rolesMember = rolesMember.NextNode("member"); } m_rolesHasBeenSet = true; } } return *this; } void InstanceProfile::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const { if(m_pathHasBeenSet) { oStream << location << index << locationValue << ".Path=" << StringUtils::URLEncode(m_path.c_str()) << "&"; } if(m_instanceProfileNameHasBeenSet) { oStream << location << index << locationValue << ".InstanceProfileName=" << StringUtils::URLEncode(m_instanceProfileName.c_str()) << "&"; } if(m_instanceProfileIdHasBeenSet) { oStream << location << index << locationValue << ".InstanceProfileId=" << StringUtils::URLEncode(m_instanceProfileId.c_str()) << "&"; } if(m_arnHasBeenSet) { oStream << location << index << locationValue << ".Arn=" << StringUtils::URLEncode(m_arn.c_str()) << "&"; } if(m_createDateHasBeenSet) { oStream << location << index << locationValue << ".CreateDate=" << StringUtils::URLEncode(m_createDate.ToGmtString(DateFormat::ISO_8601).c_str()) << "&"; } if(m_rolesHasBeenSet) { unsigned rolesIdx = 1; for(auto& item : m_roles) { Aws::StringStream rolesSs; rolesSs << location << index << locationValue << ".Roles.member." << rolesIdx++; item.OutputToStream(oStream, rolesSs.str().c_str()); } } } void InstanceProfile::OutputToStream(Aws::OStream& oStream, const char* location) const { if(m_pathHasBeenSet) { oStream << location << ".Path=" << StringUtils::URLEncode(m_path.c_str()) << "&"; } if(m_instanceProfileNameHasBeenSet) { oStream << location << ".InstanceProfileName=" << StringUtils::URLEncode(m_instanceProfileName.c_str()) << "&"; } if(m_instanceProfileIdHasBeenSet) { oStream << location << ".InstanceProfileId=" << StringUtils::URLEncode(m_instanceProfileId.c_str()) << "&"; } if(m_arnHasBeenSet) { oStream << location << ".Arn=" << StringUtils::URLEncode(m_arn.c_str()) << "&"; } if(m_createDateHasBeenSet) { oStream << location << ".CreateDate=" << StringUtils::URLEncode(m_createDate.ToGmtString(DateFormat::ISO_8601).c_str()) << "&"; } if(m_rolesHasBeenSet) { unsigned rolesIdx = 1; for(auto& item : m_roles) { Aws::StringStream rolesSs; rolesSs << location << ".Roles.member." << rolesIdx++; item.OutputToStream(oStream, rolesSs.str().c_str()); } } } } // namespace Model } // namespace IAM } // namespace Aws
{ "content_hash": "ab8c97cfa9f55e5db9f53a41c5d20eb5", "timestamp": "", "source": "github", "line_count": 169, "max_line_length": 159, "avg_line_length": 29.37869822485207, "alnum_prop": 0.6586102719033232, "repo_name": "ambasta/aws-sdk-cpp", "id": "4e020b0a4251f4aa5a4341530e1fbd123b876a0a", "size": "5538", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "aws-cpp-sdk-iam/source/model/InstanceProfile.cpp", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C", "bytes": "2305" }, { "name": "C++", "bytes": "74273816" }, { "name": "CMake", "bytes": "412257" }, { "name": "Java", "bytes": "229873" }, { "name": "Python", "bytes": "62933" } ], "symlink_target": "" }
// Provides the Design Time Metadata for the sap.m.QuickView control sap.ui.define([], function() { "use strict"; return { name: { singular: "QUICK_VIEW_NAME", plural: "QUICK_VIEW_NAME_PLURAL" }, palette: { group: "DISPLAY" } }; });
{ "content_hash": "da0c2ede9f63b84eaee0f3746eb0bd97", "timestamp": "", "source": "github", "line_count": 18, "max_line_length": 68, "avg_line_length": 14.277777777777779, "alnum_prop": 0.6147859922178989, "repo_name": "SAP/openui5", "id": "769b84edc8c199e173b0a947ec7cb61983107da7", "size": "280", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/sap.m/src/sap/m/designtime/QuickView.designtime.js", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "294216" }, { "name": "Gherkin", "bytes": "17201" }, { "name": "HTML", "bytes": "6443688" }, { "name": "Java", "bytes": "83398" }, { "name": "JavaScript", "bytes": "109546491" }, { "name": "Less", "bytes": "8741757" }, { "name": "TypeScript", "bytes": "20918" } ], "symlink_target": "" }
import sys import os import shutil import unittest import mvtools_test_fixture import create_and_write_file import path_utils import check_path_plugin class CheckPathPluginTest(unittest.TestCase): def setUp(self): v, r = self.delegate_setUp() if not v: self.tearDown() self.fail(r) def delegate_setUp(self): v, r = mvtools_test_fixture.makeAndGetTestFolder("check_path_plugin_test") if not v: return v, r self.test_base_dir = r[0] # base test folder. shared amongst other test cases self.test_dir = r[1] # test folder, specific for each test case (i.e. one level above self.test_base_dir) # test paths # existent file 1 self.existent_file1 = path_utils.concat_path(self.test_dir, "existent_file1.txt") create_and_write_file.create_file_contents(self.existent_file1, "contents") # existent file 2 self.existent_file2 = path_utils.concat_path(self.test_dir, "existent_file2.txt") create_and_write_file.create_file_contents(self.existent_file2, "contents") # existent dir 1 self.existent_dir1 = path_utils.concat_path(self.test_dir, "existent_dir1") os.mkdir(self.existent_dir1) # existent dir 2 self.existent_dir2 = path_utils.concat_path(self.test_dir, "existent_dir2") os.mkdir(self.existent_dir2) # nonexistent path 1 self.nonexistent_path1 = path_utils.concat_path(self.test_dir, "nonexistent_path1") # nonexistent path 2 self.nonexistent_path2 = path_utils.concat_path(self.test_dir, "nonexistent_path2") # the test task self.check_path_task = check_path_plugin.CustomTask() return True, "" def tearDown(self): shutil.rmtree(self.test_base_dir) def testCheckPathReadParams1(self): local_params = {} self.check_path_task.params = local_params v, r = self.check_path_task._read_params() self.assertFalse(v) def testCheckPathReadParams2(self): local_params = {} local_params["path_file_exist"] = "dummy_value1" self.check_path_task.params = local_params v, r = self.check_path_task._read_params() self.assertTrue(v) self.assertEqual(r, (["dummy_value1"], None, None)) def testCheckPathReadParams3(self): local_params = {} local_params["path_file_exist"] = ["dummy_value1", "dummy_value2"] self.check_path_task.params = local_params v, r = self.check_path_task._read_params() self.assertTrue(v) self.assertEqual(r, (["dummy_value1", "dummy_value2"], None, None)) def testCheckPathReadParams4(self): local_params = {} local_params["path_file_exist"] = ["dummy_value1", "dummy_value2"] local_params["path_dir_exist"] = "dummy_value3" self.check_path_task.params = local_params v, r = self.check_path_task._read_params() self.assertTrue(v) self.assertEqual(r, (["dummy_value1", "dummy_value2"], ["dummy_value3"], None)) def testCheckPathReadParams5(self): local_params = {} local_params["path_file_exist"] = ["dummy_value1", "dummy_value2"] local_params["path_dir_exist"] = ["dummy_value3", "dummy_value4"] self.check_path_task.params = local_params v, r = self.check_path_task._read_params() self.assertTrue(v) self.assertEqual(r, (["dummy_value1", "dummy_value2"], ["dummy_value3", "dummy_value4"], None)) def testCheckPathReadParams6(self): local_params = {} local_params["path_file_exist"] = ["dummy_value1", "dummy_value2"] local_params["path_dir_exist"] = ["dummy_value3", "dummy_value4"] local_params["path_not_exist"] = "dummy_value5" self.check_path_task.params = local_params v, r = self.check_path_task._read_params() self.assertTrue(v) self.assertEqual(r, (["dummy_value1", "dummy_value2"], ["dummy_value3", "dummy_value4"], ["dummy_value5"])) def testCheckPathReadParams7(self): local_params = {} local_params["path_file_exist"] = ["dummy_value1", "dummy_value2"] local_params["path_dir_exist"] = ["dummy_value3", "dummy_value4"] local_params["path_not_exist"] = ["dummy_value5", "dummy_value6"] self.check_path_task.params = local_params v, r = self.check_path_task._read_params() self.assertTrue(v) self.assertEqual(r, (["dummy_value1", "dummy_value2"], ["dummy_value3", "dummy_value4"], ["dummy_value5", "dummy_value6"])) def testCheckPathPluginRunTask1(self): local_params = {} self.check_path_task.params = local_params v, r = self.check_path_task.run_task(print, "exe_name") self.assertFalse(v) def testCheckPathPluginRunTask2(self): local_params = {} local_params["path_file_exist"] = self.existent_file1 self.check_path_task.params = local_params v, r = self.check_path_task.run_task(print, "exe_name") self.assertTrue(v) self.assertEqual(r, None) def testCheckPathPluginRunTask3(self): local_params = {} local_params["path_file_exist"] = [self.existent_file1, self.existent_file2] self.check_path_task.params = local_params v, r = self.check_path_task.run_task(print, "exe_name") self.assertTrue(v) self.assertEqual(r, None) def testCheckPathPluginRunTask4(self): local_params = {} local_params["path_file_exist"] = self.nonexistent_path1 self.check_path_task.params = local_params v, r = self.check_path_task.run_task(print, "exe_name") self.assertFalse(v) self.assertEqual(len(r), 1) def testCheckPathPluginRunTask5(self): local_params = {} local_params["path_file_exist"] = [self.nonexistent_path1, self.nonexistent_path2] self.check_path_task.params = local_params v, r = self.check_path_task.run_task(print, "exe_name") self.assertFalse(v) self.assertEqual(len(r), 2) def testCheckPathPluginRunTask6(self): local_params = {} local_params["path_file_exist"] = [self.existent_file1, self.nonexistent_path2] self.check_path_task.params = local_params v, r = self.check_path_task.run_task(print, "exe_name") self.assertFalse(v) self.assertEqual(len(r), 1) def testCheckPathPluginRunTask7(self): local_params = {} local_params["path_file_exist"] = self.existent_dir1 self.check_path_task.params = local_params v, r = self.check_path_task.run_task(print, "exe_name") self.assertFalse(v) self.assertEqual(len(r), 1) def testCheckPathPluginRunTask8(self): local_params = {} local_params["path_file_exist"] = [self.existent_dir1, self.existent_dir2] self.check_path_task.params = local_params v, r = self.check_path_task.run_task(print, "exe_name") self.assertFalse(v) self.assertEqual(len(r), 2) def testCheckPathPluginRunTask9(self): local_params = {} local_params["path_file_exist"] = [self.existent_file1, self.existent_dir2] self.check_path_task.params = local_params v, r = self.check_path_task.run_task(print, "exe_name") self.assertFalse(v) self.assertEqual(len(r), 1) def testCheckPathPluginRunTask10(self): local_params = {} local_params["path_dir_exist"] = self.existent_file1 self.check_path_task.params = local_params v, r = self.check_path_task.run_task(print, "exe_name") self.assertFalse(v) self.assertEqual(len(r), 1) def testCheckPathPluginRunTask11(self): local_params = {} local_params["path_dir_exist"] = [self.existent_file1, self.existent_file2] self.check_path_task.params = local_params v, r = self.check_path_task.run_task(print, "exe_name") self.assertFalse(v) self.assertEqual(len(r), 2) def testCheckPathPluginRunTask12(self): local_params = {} local_params["path_dir_exist"] = self.nonexistent_path1 self.check_path_task.params = local_params v, r = self.check_path_task.run_task(print, "exe_name") self.assertFalse(v) self.assertEqual(len(r), 1) def testCheckPathPluginRunTask13(self): local_params = {} local_params["path_dir_exist"] = [self.nonexistent_path1, self.nonexistent_path2] self.check_path_task.params = local_params v, r = self.check_path_task.run_task(print, "exe_name") self.assertFalse(v) self.assertEqual(len(r), 2) def testCheckPathPluginRunTask14(self): local_params = {} local_params["path_dir_exist"] = [self.existent_file1, self.nonexistent_path2] self.check_path_task.params = local_params v, r = self.check_path_task.run_task(print, "exe_name") self.assertFalse(v) self.assertEqual(len(r), 2) def testCheckPathPluginRunTask15(self): local_params = {} local_params["path_dir_exist"] = self.existent_dir1 self.check_path_task.params = local_params v, r = self.check_path_task.run_task(print, "exe_name") self.assertTrue(v) self.assertEqual(r, None) def testCheckPathPluginRunTask16(self): local_params = {} local_params["path_dir_exist"] = [self.existent_dir1, self.existent_dir2] self.check_path_task.params = local_params v, r = self.check_path_task.run_task(print, "exe_name") self.assertTrue(v) self.assertEqual(r, None) def testCheckPathPluginRunTask17(self): local_params = {} local_params["path_dir_exist"] = [self.existent_file1, self.existent_dir2] self.check_path_task.params = local_params v, r = self.check_path_task.run_task(print, "exe_name") self.assertFalse(v) self.assertEqual(len(r), 1) def testCheckPathPluginRunTask18(self): local_params = {} local_params["path_not_exist"] = self.existent_file1 self.check_path_task.params = local_params v, r = self.check_path_task.run_task(print, "exe_name") self.assertFalse(v) self.assertEqual(len(r), 1) def testCheckPathPluginRunTask19(self): local_params = {} local_params["path_not_exist"] = [self.existent_file1, self.existent_file2] self.check_path_task.params = local_params v, r = self.check_path_task.run_task(print, "exe_name") self.assertFalse(v) self.assertEqual(len(r), 2) def testCheckPathPluginRunTask20(self): local_params = {} local_params["path_not_exist"] = self.nonexistent_path1 self.check_path_task.params = local_params v, r = self.check_path_task.run_task(print, "exe_name") self.assertTrue(v) self.assertEqual(r, None) def testCheckPathPluginRunTask21(self): local_params = {} local_params["path_not_exist"] = [self.nonexistent_path1, self.nonexistent_path2] self.check_path_task.params = local_params v, r = self.check_path_task.run_task(print, "exe_name") self.assertTrue(v) self.assertEqual(r, None) def testCheckPathPluginRunTask22(self): local_params = {} local_params["path_not_exist"] = [self.existent_file1, self.nonexistent_path2] self.check_path_task.params = local_params v, r = self.check_path_task.run_task(print, "exe_name") self.assertFalse(v) self.assertEqual(len(r), 1) def testCheckPathPluginRunTask23(self): local_params = {} local_params["path_not_exist"] = self.existent_dir1 self.check_path_task.params = local_params v, r = self.check_path_task.run_task(print, "exe_name") self.assertFalse(v) self.assertEqual(len(r), 1) def testCheckPathPluginRunTask24(self): local_params = {} local_params["path_not_exist"] = [self.existent_dir1, self.existent_dir2] self.check_path_task.params = local_params v, r = self.check_path_task.run_task(print, "exe_name") self.assertFalse(v) self.assertEqual(len(r), 2) def testCheckPathPluginRunTask25(self): local_params = {} local_params["path_not_exist"] = [self.existent_file1, self.existent_dir2] self.check_path_task.params = local_params v, r = self.check_path_task.run_task(print, "exe_name") self.assertFalse(v) self.assertEqual(len(r), 2) if __name__ == '__main__': unittest.main()
{ "content_hash": "b9d9872380b1d68ceaec48358f6de62d", "timestamp": "", "source": "github", "line_count": 383, "max_line_length": 131, "avg_line_length": 33.30809399477807, "alnum_prop": 0.6254605314729168, "repo_name": "mvendra/mvtools", "id": "d016c4dd5d8f572d5918e6fb46c220754d538867", "size": "12781", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "tests/check_path_plugin_test.py", "mode": "33261", "license": "mit", "language": [ { "name": "Java", "bytes": "10468" }, { "name": "Python", "bytes": "2654549" }, { "name": "Shell", "bytes": "27094" } ], "symlink_target": "" }
package org.apache.camel.component.smpp; import java.io.IOException; import java.util.concurrent.locks.ReentrantLock; import org.apache.camel.Exchange; import org.apache.camel.Message; import org.apache.camel.support.DefaultProducer; import org.jsmpp.DefaultPDUReader; import org.jsmpp.DefaultPDUSender; import org.jsmpp.SynchronizedPDUSender; import org.jsmpp.bean.BindType; import org.jsmpp.bean.NumberingPlanIndicator; import org.jsmpp.bean.TypeOfNumber; import org.jsmpp.extra.SessionState; import org.jsmpp.session.BindParameter; import org.jsmpp.session.SMPPSession; import org.jsmpp.session.Session; import org.jsmpp.session.SessionStateListener; import org.jsmpp.util.DefaultComposer; /** * An implementation of @{link Producer} which use the SMPP protocol */ public class SmppProducer extends DefaultProducer { private SmppConfiguration configuration; private SMPPSession session; private SessionStateListener internalSessionStateListener; private final ReentrantLock connectLock = new ReentrantLock(); public SmppProducer(SmppEndpoint endpoint, SmppConfiguration config) { super(endpoint); this.configuration = config; this.internalSessionStateListener = new SessionStateListener() { @Override public void onStateChange(SessionState newState, SessionState oldState, Session source) { if (configuration.getSessionStateListener() != null) { configuration.getSessionStateListener().onStateChange(newState, oldState, source); } if (newState.equals(SessionState.CLOSED)) { log.warn("Lost connection to: {} - trying to reconnect...", getEndpoint().getConnectionString()); closeSession(); reconnect(configuration.getInitialReconnectDelay()); } } }; } @Override protected void doStart() throws Exception { super.doStart(); if (!getConfiguration().isLazySessionCreation()) { if (connectLock.tryLock()) { try { session = createSession(); } finally { connectLock.unlock(); } } } } private SMPPSession createSession() throws IOException { log.debug("Connecting to: {}...", getEndpoint().getConnectionString()); SMPPSession session = createSMPPSession(); session.setEnquireLinkTimer(this.configuration.getEnquireLinkTimer()); session.setTransactionTimer(this.configuration.getTransactionTimer()); session.addSessionStateListener(internalSessionStateListener); session.connectAndBind( this.configuration.getHost(), this.configuration.getPort(), new BindParameter( BindType.BIND_TX, this.configuration.getSystemId(), this.configuration.getPassword(), this.configuration.getSystemType(), TypeOfNumber.valueOf(configuration.getTypeOfNumber()), NumberingPlanIndicator.valueOf(configuration.getNumberingPlanIndicator()), "")); log.info("Connected to: {}", getEndpoint().getConnectionString()); return session; } /** * Factory method to easily instantiate a mock SMPPSession * * @return the SMPPSession */ SMPPSession createSMPPSession() { return new SMPPSession(new SynchronizedPDUSender(new DefaultPDUSender( new DefaultComposer())), new DefaultPDUReader(), SmppConnectionFactory .getInstance(configuration)); } public void process(Exchange exchange) throws Exception { if (session == null) { if (this.configuration.isLazySessionCreation()) { if (connectLock.tryLock()) { try { if (session == null) { // set the system id and password with which we will try to connect to the SMSC Message in = exchange.getIn(); String systemId = in.getHeader(SmppConstants.SYSTEM_ID, String.class); String password = in.getHeader(SmppConstants.PASSWORD, String.class); if (systemId != null && password != null) { log.info("using the system id '{}' to connect to the SMSC...", systemId); this.configuration.setSystemId(systemId); this.configuration.setPassword(password); } session = createSession(); } } finally { connectLock.unlock(); } } } } // only possible by trying to reconnect if (this.session == null) { throw new IOException("Lost connection to " + getEndpoint().getConnectionString() + " and yet not reconnected"); } SmppCommand command = getEndpoint().getBinding().createSmppCommand(session, exchange); command.execute(exchange); } @Override protected void doStop() throws Exception { log.debug("Disconnecting from: {}...", getEndpoint().getConnectionString()); super.doStop(); closeSession(); log.info("Disconnected from: {}", getEndpoint().getConnectionString()); } private void closeSession() { if (session != null) { session.removeSessionStateListener(this.internalSessionStateListener); session.unbindAndClose(); // clear session as we closed it successfully session = null; } } private void reconnect(final long initialReconnectDelay) { if (connectLock.tryLock()) { try { Runnable r = new Runnable() { public void run() { boolean reconnected = false; log.info("Schedule reconnect after {} millis", initialReconnectDelay); try { Thread.sleep(initialReconnectDelay); } catch (InterruptedException e) { } int attempt = 0; while (!(isStopping() || isStopped()) && (session == null || session.getSessionState().equals(SessionState.CLOSED)) && attempt < configuration.getMaxReconnect()) { try { attempt++; log.info("Trying to reconnect to {} - attempt #{}", getEndpoint().getConnectionString(), attempt); session = createSession(); reconnected = true; } catch (IOException e) { log.warn("Failed to reconnect to {}", getEndpoint().getConnectionString()); closeSession(); try { Thread.sleep(configuration.getReconnectDelay()); } catch (InterruptedException ee) { } } } if (reconnected) { log.info("Reconnected to {}", getEndpoint().getConnectionString()); } } }; Thread t = new Thread(r); t.start(); t.join(); } catch (InterruptedException e) { // noop } finally { connectLock.unlock(); } } } @Override public SmppEndpoint getEndpoint() { return (SmppEndpoint) super.getEndpoint(); } /** * Returns the smppConfiguration for this producer * * @return the configuration */ public SmppConfiguration getConfiguration() { return configuration; } @Override public String toString() { return "SmppProducer[" + getEndpoint().getConnectionString() + "]"; } }
{ "content_hash": "7ca979f89e61f06a7740fb6a99232f8d", "timestamp": "", "source": "github", "line_count": 220, "max_line_length": 139, "avg_line_length": 38.92727272727273, "alnum_prop": 0.5361980382998599, "repo_name": "punkhorn/camel-upstream", "id": "a437a7be28bc5f87212a71753a4aa1683175264b", "size": "9367", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppProducer.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Apex", "bytes": "6519" }, { "name": "Batchfile", "bytes": "1518" }, { "name": "CSS", "bytes": "16394" }, { "name": "Elm", "bytes": "10852" }, { "name": "FreeMarker", "bytes": "11410" }, { "name": "Groovy", "bytes": "14490" }, { "name": "HTML", "bytes": "896075" }, { "name": "Java", "bytes": "70312352" }, { "name": "JavaScript", "bytes": "90399" }, { "name": "Makefile", "bytes": "513" }, { "name": "Shell", "bytes": "17108" }, { "name": "Tcl", "bytes": "4974" }, { "name": "Thrift", "bytes": "6979" }, { "name": "XQuery", "bytes": "546" }, { "name": "XSLT", "bytes": "270186" } ], "symlink_target": "" }
class ProjectSnippetPolicy < BasePolicy delegate :project desc "Snippet is public" condition(:public_snippet, scope: :subject) { @subject.public? } condition(:internal_snippet, scope: :subject) { @subject.internal? } condition(:private_snippet, scope: :subject) { @subject.private? } condition(:public_project, scope: :subject) { @subject.project.public? } condition(:is_author) { @user && @subject.author == @user } # We have to check both project feature visibility and a snippet visibility and take the stricter one # This will be simplified - check https://gitlab.com/gitlab-org/gitlab-foss/issues/27573 rule { ~can?(:read_project) }.policy do prevent :read_project_snippet prevent :update_project_snippet prevent :admin_project_snippet end # we have to use this complicated prevent because the delegated project policy # is overly greedy in allowing :read_project_snippet, since it doesn't have any # information about the snippet. However, :read_project_snippet on the *project* # is used to hide/show various snippet-related controls, so we can't just move # all of the handling here. rule do all?(private_snippet | (internal_snippet & external_user), ~project.guest, ~is_author, ~full_private_access) end.prevent :read_project_snippet rule { internal_snippet & ~is_author & ~admin }.policy do prevent :update_project_snippet prevent :admin_project_snippet end rule { public_snippet }.enable :read_project_snippet rule { is_author | admin }.policy do enable :read_project_snippet enable :update_project_snippet enable :admin_project_snippet end rule { ~can?(:read_project_snippet) }.prevent :create_note end ProjectSnippetPolicy.prepend_if_ee('EE::ProjectSnippetPolicy')
{ "content_hash": "2fbc0d24fc3ef4ae9b7d9895b0e4bba7", "timestamp": "", "source": "github", "line_count": 48, "max_line_length": 103, "avg_line_length": 37.458333333333336, "alnum_prop": 0.7180200222469411, "repo_name": "stoplightio/gitlabhq", "id": "2a3e4ca174bbf3c9a6224e6686cac8ebe1de1fb3", "size": "1829", "binary": false, "copies": "1", "ref": "refs/heads/stoplight/develop", "path": "app/policies/project_snippet_policy.rb", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "632980" }, { "name": "Clojure", "bytes": "79" }, { "name": "Dockerfile", "bytes": "1676" }, { "name": "HTML", "bytes": "1264236" }, { "name": "JavaScript", "bytes": "3425347" }, { "name": "Ruby", "bytes": "16497064" }, { "name": "Shell", "bytes": "34509" }, { "name": "Vue", "bytes": "752795" } ], "symlink_target": "" }
#ifndef QDESIGNER_COMPONENTS_H #define QDESIGNER_COMPONENTS_H #include <QtDesigner/qdesigner_components_global.h> #include <QtCore/qglobal.h> QT_BEGIN_NAMESPACE class QObject; class QWidget; class QDesignerFormEditorInterface; class QDesignerWidgetBoxInterface; class QDesignerPropertyEditorInterface; class QDesignerObjectInspectorInterface; class QDesignerActionEditorInterface; class QDESIGNER_COMPONENTS_EXPORT QDesignerComponents { public: static void initializeResources(); static void initializePlugins(QDesignerFormEditorInterface *core); static QDesignerFormEditorInterface *createFormEditor(QObject *parent); static QDesignerWidgetBoxInterface *createWidgetBox(QDesignerFormEditorInterface *core, QWidget *parent); static QDesignerPropertyEditorInterface *createPropertyEditor(QDesignerFormEditorInterface *core, QWidget *parent); static QDesignerObjectInspectorInterface *createObjectInspector(QDesignerFormEditorInterface *core, QWidget *parent); static QDesignerActionEditorInterface *createActionEditor(QDesignerFormEditorInterface *core, QWidget *parent); static QObject *createTaskMenu(QDesignerFormEditorInterface *core, QObject *parent); static QWidget *createResourceEditor(QDesignerFormEditorInterface *core, QWidget *parent); static QWidget *createSignalSlotEditor(QDesignerFormEditorInterface *core, QWidget *parent); }; QT_END_NAMESPACE #endif // QDESIGNER_COMPONENTS_H
{ "content_hash": "80a4b9607d37a69a7d235f8bdd9623b0", "timestamp": "", "source": "github", "line_count": 39, "max_line_length": 121, "avg_line_length": 37.02564102564103, "alnum_prop": 0.8351800554016621, "repo_name": "ilangal-amd/CodeXL", "id": "6a4fe873d2c55d6a35736039212f31f44c920839", "size": "3021", "binary": false, "copies": "6", "ref": "refs/heads/master", "path": "Common/Lib/Ext/Qt/5.5/include/QtDesigner/qdesigner_components.h", "mode": "33188", "license": "mit", "language": [ { "name": "AutoIt", "bytes": "1717" }, { "name": "Batchfile", "bytes": "153761" }, { "name": "C", "bytes": "26807731" }, { "name": "C#", "bytes": "82169" }, { "name": "C++", "bytes": "190144939" }, { "name": "CMake", "bytes": "415367" }, { "name": "CSS", "bytes": "9343" }, { "name": "GLSL", "bytes": "368361" }, { "name": "Groff", "bytes": "54" }, { "name": "HLSL", "bytes": "14823" }, { "name": "HTML", "bytes": "4808344" }, { "name": "JavaScript", "bytes": "58859" }, { "name": "Lua", "bytes": "22593" }, { "name": "M4", "bytes": "75125" }, { "name": "Makefile", "bytes": "774619" }, { "name": "Objective-C", "bytes": "1008522" }, { "name": "Objective-C++", "bytes": "25122" }, { "name": "PHP", "bytes": "3065" }, { "name": "Perl", "bytes": "171205" }, { "name": "PowerShell", "bytes": "10405" }, { "name": "Python", "bytes": "299498" }, { "name": "QMake", "bytes": "9443" }, { "name": "Shell", "bytes": "448554" }, { "name": "Visual Basic", "bytes": "860" }, { "name": "Yacc", "bytes": "93875" } ], "symlink_target": "" }
package cc.seeed.iot.activity; import android.app.Activity; import android.app.Dialog; import android.app.ProgressDialog; import android.graphics.Color; import android.os.Bundle; import android.support.v7.widget.Toolbar; import android.text.Editable; import android.text.TextUtils; import android.text.TextWatcher; import android.view.View; import android.widget.LinearLayout; import android.widget.RadioButton; import com.umeng.analytics.MobclickAgent; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import butterknife.ButterKnife; import butterknife.InjectView; import butterknife.OnClick; import cc.seeed.iot.App; import cc.seeed.iot.R; import cc.seeed.iot.entity.ServerBean; import cc.seeed.iot.logic.SystemLogic; import cc.seeed.iot.util.CommonUrl; import cc.seeed.iot.util.Constant; import cc.seeed.iot.util.DialogUtils; import cc.seeed.iot.util.NetworkUtils; import cc.seeed.iot.util.RegularUtils; import cc.seeed.iot.view.FontEditView; import cc.seeed.iot.view.FontTextView; /** * author: Jerry on 2016/6/2 17:29. * description: */ public class SelectServerActivity extends BaseActivity implements TextWatcher { @InjectView(R.id.toolbar) Toolbar mToolbar; @InjectView(R.id.mRbGlobalServer) RadioButton mRbGlobalServer; @InjectView(R.id.mLlGlobalServer) LinearLayout mLlGlobalServer; @InjectView(R.id.mRbOldGlobalServer) RadioButton mRbOldGlobalServer; @InjectView(R.id.mLlOldGlobalServer) LinearLayout mLlOldGlobalServer; @InjectView(R.id.mRbChineseServer) RadioButton mRbChineseServer; @InjectView(R.id.mLlChineseServer) LinearLayout mLlChineseServer; @InjectView(R.id.mRbCustomizeServer) RadioButton mRbCustomizeServer; @InjectView(R.id.mLlCustomizeServer) LinearLayout mLlCustomizeServer; @InjectView(R.id.mEtCustomServer) FontEditView mEtCustomServer; @InjectView(R.id.mLLSave) LinearLayout mLLSave; @InjectView(R.id.mTvSave) FontTextView mTvSave; private String changeServer = ""; private String serverUrl; ProgressDialog dialog; ServerBean serverBean; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_sel_server); ButterKnife.inject(this); initView(); initData(); } private void initView() { mEtCustomServer.addTextChangedListener(this); setSupportActionBar(mToolbar); getSupportActionBar().setDisplayHomeAsUpEnabled(true); getSupportActionBar().setTitle(R.string.choose_server_toolbar); } private void initData() { serverUrl = App.getApp().getOtaServerUrl(); serverBean = SystemLogic.getInstance().getServerBean(); // if (serverBean == null || System.currentTimeMillis() / 1000 - serverBean.getReqTime() > 60 * 60 * 24 * 1) { // SystemLogic.getInstance().getServerStopMsg(); // dialog = DialogUtils.showProgressDialog(this, null); // } else { // if (System.currentTimeMillis() / 1000 > serverBean.getContent().get(0).getServerEndTime()) { // mLlOldGlobalServer.setVisibility(View.GONE); // if (CommonUrl.OTA_INTERNATIONAL_OLD_URL.equals(serverUrl)) { // serverUrl = CommonUrl.OTA_INTERNATIONAL_URL; // saveUrlAndIp(CommonUrl.OTA_INTERNATIONAL_URL, CommonUrl.OTA_INTERNATIONAL_IP); // } // } else { // mLlOldGlobalServer.setVisibility(View.VISIBLE); // } // } mLlOldGlobalServer.setVisibility(View.GONE); changeServer = serverUrl; if (CommonUrl.OTA_CHINA_URL.equals(serverUrl) || CommonUrl.OTA_CHINA_OLD_URL.equals(serverUrl)) { mRbChineseServer.setChecked(true); mRbGlobalServer.setChecked(false); mRbCustomizeServer.setChecked(false); mRbOldGlobalServer.setChecked(false); mEtCustomServer.setEnabled(false); } else if (CommonUrl.OTA_INTERNATIONAL_URL.equals(serverUrl)) { mRbChineseServer.setChecked(false); mRbGlobalServer.setChecked(true); mRbOldGlobalServer.setChecked(false); mRbCustomizeServer.setChecked(false); mEtCustomServer.setEnabled(false); } else if (CommonUrl.OTA_INTERNATIONAL_OLD_URL.equals(serverUrl)) { mRbChineseServer.setChecked(false); mRbGlobalServer.setChecked(false); mRbOldGlobalServer.setChecked(true); mRbCustomizeServer.setChecked(false); mEtCustomServer.setEnabled(false); } else { mRbChineseServer.setChecked(false); mRbGlobalServer.setChecked(false); mRbCustomizeServer.setChecked(true); mRbOldGlobalServer.setChecked(false); mEtCustomServer.setEnabled(true); if (TextUtils.isEmpty(serverUrl)) { mEtCustomServer.setText(App.getSp().getString(Constant.SP_HISTORY_IP, "")); } else { mEtCustomServer.setText(serverUrl); } mEtCustomServer.setSelection(serverUrl.length()); } } @OnClick({R.id.mLlGlobalServer, R.id.mLlOldGlobalServer, R.id.mLlChineseServer, R.id.mLlCustomizeServer, R.id.mLLSave, R.id.mRbGlobalServer, R.id.mRbOldGlobalServer, R.id.mRbChineseServer, R.id.mRbCustomizeServer}) public void onClick(View view) { switch (view.getId()) { case R.id.mRbGlobalServer: case R.id.mLlGlobalServer: mRbChineseServer.setChecked(false); mRbGlobalServer.setChecked(true); mRbCustomizeServer.setChecked(false); mRbOldGlobalServer.setChecked(false); changeServer = CommonUrl.OTA_INTERNATIONAL_URL; isChangServer(); mEtCustomServer.setEnabled(false); hideKeyboard(mEtCustomServer); saveIpAdress(); break; case R.id.mLlOldGlobalServer: case R.id.mRbOldGlobalServer: mRbChineseServer.setChecked(false); mRbGlobalServer.setChecked(false); mRbOldGlobalServer.setChecked(true); mRbCustomizeServer.setChecked(false); changeServer = CommonUrl.OTA_INTERNATIONAL_OLD_URL; isChangServer(); mEtCustomServer.setEnabled(false); hideKeyboard(mEtCustomServer); saveIpAdress(); DialogUtils.showWarningDialog(this, null,serverBean.getContent().get(0).getPopText(),null, null,true, new DialogUtils.OnErrorButtonClickListenter() { @Override public void okClick() { finish(); } @Override public void cancelClick() { } }); break; case R.id.mRbChineseServer: case R.id.mLlChineseServer: mRbChineseServer.setChecked(true); mRbGlobalServer.setChecked(false); mRbCustomizeServer.setChecked(false); mRbOldGlobalServer.setChecked(false); changeServer = CommonUrl.OTA_CHINA_URL; mEtCustomServer.setEnabled(false); hideKeyboard(mEtCustomServer); isChangServer(); saveIpAdress(); break; case R.id.mRbCustomizeServer: case R.id.mLlCustomizeServer: if (CommonUrl.OTA_CHINA_URL.equals(serverUrl) || CommonUrl.OTA_INTERNATIONAL_URL.equals(serverUrl)) { mEtCustomServer.setText(App.getSp().getString(Constant.SP_HISTORY_IP, "")); } mRbChineseServer.setChecked(false); mRbGlobalServer.setChecked(false); mRbCustomizeServer.setChecked(true); mEtCustomServer.setEnabled(true); mRbOldGlobalServer.setChecked(false); changeServer = mEtCustomServer.getText().toString().trim(); isChangServer(); break; case R.id.mLLSave: hideKeyboard(mEtCustomServer); if (isChangServer()) { saveIpAdress(); setTextSize(false); } break; } } @Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { } @Override public void onTextChanged(CharSequence s, int start, int before, int count) { } @Override public void afterTextChanged(Editable s) { if (s.toString().length() == 0) { setTextSize(true); } else { setTextSize(false); changeServer = s.toString(); } setTextColor(RegularUtils.isWebsite(s.toString())); isChangServer(); } public void setTextSize(boolean isSmall) { if (isSmall) { mEtCustomServer.setTextSize(13); } else { mEtCustomServer.setTextSize(14); } } public void setTextColor(boolean isOk) { if (isOk) { mEtCustomServer.setTextColor(Color.parseColor("#333333")); } else { mEtCustomServer.setTextColor(Color.parseColor("#d0021b")); } } public boolean isChangServer() { if (serverUrl.equals(changeServer)) { mTvSave.setTextColor(Color.parseColor("#ADB0C3")); return false; } else { mTvSave.setTextColor(Color.parseColor("#ffffff")); return true; } } public void saveIpAdress() { if (CommonUrl.OTA_CHINA_URL.equals(changeServer)) { saveUrlAndIp(CommonUrl.OTA_CHINA_URL, CommonUrl.OTA_CHINA_IP); finish(); } else if (CommonUrl.OTA_INTERNATIONAL_URL.equals(changeServer)) { saveUrlAndIp(CommonUrl.OTA_INTERNATIONAL_URL, CommonUrl.OTA_INTERNATIONAL_IP); finish(); } else if (CommonUrl.OTA_INTERNATIONAL_OLD_URL.equals(changeServer)) { saveUrlAndIp(CommonUrl.OTA_INTERNATIONAL_OLD_URL, CommonUrl.OTA_INTERNATIONAL_OLD_IP); } else { if (!RegularUtils.isWebsite(changeServer)) { App.showToastShrot(getString(R.string.website_format_error)); return; } getIpAddress(this, changeServer); } } public void getIpAddress(final Activity context, final String url) { final Dialog progressDialog = DialogUtils.showProgressDialog(context, context.getResources().getString(R.string.hint_get_host_address)); NetworkUtils.getIpAddress(context, NetworkUtils.getDomainName(url), new NetworkUtils.OnIpCallback() { @Override public void okCallback(String ip) { if (progressDialog != null) { progressDialog.dismiss(); saveUrlAndIp(changeServer, ip); App.getSp().edit().putString(Constant.SP_HISTORY_IP, changeServer).commit(); finish(); } } @Override public void failCallback(String error) { if (progressDialog != null) { progressDialog.dismiss(); DialogUtils.showErrorDialog(context, "Error", "OK", "", error, new DialogUtils.OnErrorButtonClickListenter() { @Override public void okClick() { } @Override public void cancelClick() { } }); } } }); } private void saveUrlAndIp(String url, String ip) { App.getApp().saveUrlAndIp(url, ip); } private boolean isOverdue() { long nowTime = System.currentTimeMillis(); long targetTime = stringToLong(); if (nowTime <= targetTime) { return true; } else { return false; } } public long stringToLong() { SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date date = null; try { date = formatter.parse("2016-09-01 00:00:00"); } catch (ParseException e) { e.printStackTrace(); date = null; } return date.getTime(); } @Override public String[] monitorEvents() { return new String[]{Cmd_Stop_server}; } @Override public void onEvent(String event, boolean ret, String errInfo, Object[] data) { if (Cmd_Stop_server.equals(event)) { if (dialog != null && dialog.isShowing()) { dialog.dismiss(); } if (ret) { serverBean = SystemLogic.getInstance().getServerBean(); } } } @Override protected void onResume() { super.onResume(); MobclickAgent.onResume(this); } @Override protected void onPause() { super.onPause(); MobclickAgent.onPause(this); } }
{ "content_hash": "765d8dd00b11018cb3600c0f2de15d65", "timestamp": "", "source": "github", "line_count": 373, "max_line_length": 165, "avg_line_length": 35.74798927613941, "alnum_prop": 0.6005699715014249, "repo_name": "awong1900/WiFi_Iot_Node_App", "id": "7f963d06cfa89f5b064727846f7b20988db1a225", "size": "13334", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "app/src/main/java/cc/seeed/iot/activity/SelectServerActivity.java", "mode": "33188", "license": "mit", "language": [ { "name": "Java", "bytes": "234414" }, { "name": "Objective-C", "bytes": "481269" } ], "symlink_target": "" }
ACCEPTED #### According to Integrated Taxonomic Information System #### Published in null #### Original name null ### Remarks null
{ "content_hash": "a9adc34f67732b9b4a4eb7327a2a42ff", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 39, "avg_line_length": 10.307692307692308, "alnum_prop": 0.7238805970149254, "repo_name": "mdoering/backbone", "id": "78ecd1b364370c22c0e5ed0f8eb2e350d1b915b8", "size": "175", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Plantae/Bacillariophyta/Bacillariophyceae/Thalassiophysales/Catenulaceae/Amphora/Amphora sublaevis/README.md", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
namespace SFA.DAS.EAS.Web.ViewModels { public class GatewayInformViewModel { public string ConfirmUrl { get; set; } public string BreadcrumbUrl { get; set; } public string BreadcrumbDescription { get; set; } public bool ValidationFailed { get; set; } } }
{ "content_hash": "4ac6101339093a6f9effedf84f61bd26", "timestamp": "", "source": "github", "line_count": 11, "max_line_length": 57, "avg_line_length": 27.272727272727273, "alnum_prop": 0.6466666666666666, "repo_name": "SkillsFundingAgency/das-employerapprenticeshipsservice", "id": "6a293580b262fea75aff281c91c2b59363042119", "size": "302", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/SFA.DAS.EAS.Web/ViewModels/GatewayInformViewModel.cs", "mode": "33188", "license": "mit", "language": [ { "name": "ASP.NET", "bytes": "808" }, { "name": "Batchfile", "bytes": "92" }, { "name": "C#", "bytes": "5033158" }, { "name": "CSS", "bytes": "282148" }, { "name": "Dockerfile", "bytes": "1137" }, { "name": "Gherkin", "bytes": "54605" }, { "name": "HTML", "bytes": "1299641" }, { "name": "JavaScript", "bytes": "219328" }, { "name": "PLpgSQL", "bytes": "4731" }, { "name": "PowerShell", "bytes": "2478" }, { "name": "SCSS", "bytes": "476673" }, { "name": "TSQL", "bytes": "138159" } ], "symlink_target": "" }
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class User_m extends CI_Model { var $details; function __construct() { parent:: __construct(); } function validate_user( $uname, $password ) { // Build a query to retrieve the user's details // based on the received username and password $this->db->from('sms_user_details'); $this->db->where('username',$uname ); $this->db->where( 'password', $password); $this->db->where( 'Activation', NULL); $login = $this->db->get()->result(); // The results of the query are stored in $login. // If a value exists, then the user account exists and is validated if ( is_array($login) && count($login) == 1 ) { // Set the users details into the $details property of this class $this->details = $login[0]; // Call set_session to set the user's session vars via CodeIgniter $this->set_session(); return true; }else{ return false; } } function set_session() { // session->set_userdata is a CodeIgniter function that // stores data in CodeIgniter's session storage. Some of the values are built in // to CodeIgniter, others are added. See CodeIgniter's documentation for details. $this->session->set_userdata( array( 'id'=>$this->details->id, 'username'=>$this->details->username, 'name'=> $this->details->name, 'email'=>$this->details->email, 'organisation'=>$this->details->organisation, 'isLoggedIn'=>true ) ); } function create_new_user( $data ) { return $this->db->insert('sms_user_details',$data); } public function update_tagline( $user_id, $tagline ) { $data = array('tagline'=>$tagline); $result = $this->db->update('user', $data, array('id'=>$user_id)); return $result; } private function getAvatar() { $avatar_names = array(); foreach(glob('assets/img/avatars/*.png') as $avatar_filename){ $avatar_filename = str_replace("assets/img/avatars/","",$avatar_filename); array_push($avatar_names, str_replace(".png","",$avatar_filename)); } return $avatar_names[array_rand($avatar_names)]; } function check_email_availablity() { $email = trim($this->input->post('email')); $email = strtolower($email); $query = $this->db->query('SELECT * FROM sms_user_details where email="'.$email.'"'); if($query->num_rows() > 0) return false; else return true; } function check_username_availablity() { $username = trim($this->input->post('username')); $username = strtolower($username); $query = $this->db->query('SELECT * FROM sms_user_details where username="'.$username.'"'); if($query->num_rows() > 0) return false; else return true; } function activate_user($email,$key){ $user = $this->db->query('SELECT * FROM `sms_user_details` where email="'.$email.'" AND Activation="'.$key.'"'); // The results of the query are stored in $login. // If a value exists, then the user account exists and is validated if (count($user) == '1' ) { $this->db->where('email', $email); $this->db->where('Activation', $key); $this->db->update('sms_user_details', array('Activation' => NULL)); return true; }else{ return false; } } function get_sms_login($org){ $sms_login = $this->db->query('SELECT * FROM `Sms_Login` where organisation="'.$org.'"'); // The results of the query are stored in $login. // If a value exists, then the user account exists and is validated if (count($sms_login) == '1' ) { return $sms_login->row(); }else{ return false; } } public function getusername($userid) { $contacts = $this->db->query('SELECT * FROM `contacts` where id="'.$userid.'"')->row(); return $contacts->full_name; } public function getgroups($username) { $contacts = $this->db->query('SELECT * FROM `user_group` where username="'.$username.'"')->result(); /*foreach($result as $row) { print_r($row); $contacts= ( 'id' => $row['id'], 'group_name' => $row['group_name'] ); } */ return $contacts; } public function getgroupusers($groupid) { $groupusers = $this->db->query("Select c.phone,ug.group_id,ug.user_id as uid from contacts c LEFT JOIN user_group_list ug on ug.user_id=c.id where group_id='".$groupid."'")->result(); foreach($groupusers as $row) { //print_r($row); $usercontacts[] = array( 'phone'=>$row->phone, 'userid'=>$row->uid ); } /*$contacts=implode(",",$usercontacts); $contactids=implode(",",$usercontactids);*/ return $usercontacts; } } ?>
{ "content_hash": "39df997f3c6b6af7e53fe7542a04c38f", "timestamp": "", "source": "github", "line_count": 179, "max_line_length": 185, "avg_line_length": 27.87150837988827, "alnum_prop": 0.5700541190619363, "repo_name": "gs-ankitd/GSSMS", "id": "2d084cf73f346bdba46de13488ba62e77a34c785", "size": "4989", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "application/models/User_m.php", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "370754" }, { "name": "HTML", "bytes": "8139111" }, { "name": "JavaScript", "bytes": "817143" }, { "name": "PHP", "bytes": "1868688" } ], "symlink_target": "" }
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>E-Contract</title> <!-- Tell the browser to be responsive to screen width --> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> <!-- Bootstrap 3.3.6 --> <link rel="stylesheet" href="../../bootstrap/css/bootstrap.min.css"> <!-- Font Awesome --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css"> <!-- Ionicons --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css"> <!-- DataTables --> <link rel="stylesheet" href="../../plugins/datatables/dataTables.bootstrap.css"> <!-- Theme style --> <link rel="stylesheet" href="../../dist/css/AdminLTE.min.css"> <!-- AdminLTE Skins. Choose a skin from the css/skins folder instead of downloading all of them to reduce the load. --> <link rel="stylesheet" href="../../dist/css/skins/_all-skins.min.css"> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <!-- ADD THE CLASS fixed TO GET A FIXED HEADER AND SIDEBAR LAYOUT --> <!-- the fixed layout is not compatible with sidebar-mini --> <body class="hold-transition skin-red fixed sidebar-mini"> <!-- Site wrapper --> <div class="wrapper"> <?php include "p15header.php" ?> <!-- =============================================== --> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> Bidder List <small>BL17001</small> </h1> <ol class="breadcrumb"> <li><a href="#"><i class="fa fa-list"></i> Home</a></li> <li><a href="p15.php">Bidder List VO</a></li> <li class="active"><a href="p15cdraft.php">BL-17001</a></li> </ol> </section> <!-- Main content --> <section class="content"> <!-- Info boxes --> <div class="row"> <div class="col-md-6"> <div class="box box-primary"> <div class="box-header"> <h3 class="box-title">Data Variation Order</h3> <div class="mark pull-right"><strong>VO Number:</strong> 2</div> </div> <div class="box-body"> <div class="row"> <div class="col-md-6"> <dl> <dt>Nomor Contract Order</dt> <dd>CA-17001</dd> <dt>Amandemen ke</dt> <dd>#2</dd> <dt>Tanggal Dibuat</dt> <dd>20-Jan-2017</dd> </dl> </div> <div class="col-md-6"> <dl> <dt>Judul Pekerjaan</dt> <dd>REGULAR INSPECTION OF LIFTING GEARS</dd> <dt>Keterangan Perubahan</dt> <dd>Ruang Lingkup</dd> </dl> </div> </div> </div> <!-- /.box-body --> <!-- <div class="box-footer"> <!-- /.box-footer --> </div> </div> <div class="col-md-6"> <div class="box box-info"> <div class="box-header"> <h3 class="box-title">Data Bidder List</h3> <div class="mark pull-right"><strong>Status: </strong>DRAFT</div> </div> <div class="box-body"> <div class="row"> <div class="col-md-6"> <dl> <dt>Nomor Bidder List</dt> <dd>BL-17001</dd> <dt>Tanggal Dibuat</dt> <dd>22-Apr-2017</dd> <dt>Waktu Dibuat</dt> <dd>13:30</dd> </dl> </div> <div class="col-md-6"> <dl> <dt>Klasifikasi</dt> <dd>M</dd> <dt>Kualifikasi</dt> <dd>Kecil</dd> </dl> </div> </div> </div> <!-- /. box body --> </div> <!-- box bidder list --> </div> <!-- /.col --> </div> <!-- /.row --> <div class="row"> <div class="col-md-12"> <div class="box box-success"> <div class="box-header"> <h3 class="box-title">Active Bidder</h3> <div class="box-tools pull-right"> <button type="button" class="btn btn-box-tool" data-widget="collapse" data-toggle="tooltip" title="Collapse"> <i class="fa fa-minus"></i></button> </div> </div> <div class="box-body"> <!-- /.box-header --> <div class="box-body"> <table id="example1" class="table table-bordered table-striped table-condensed"> <thead> <tr> <th>No</th> <th>Penawar</th> <th>Masa SIO</th> <th>Penalti Poin</th> <th>Sanksi</th> <th>Added By</th> <th>Added Date</th> <th></th> </tr> </thead> <tbody> <tr> <td>1</td> <td>Perusahaan A</td> <td>1 Bulan</td> <td>0</td> <td>-</td> <td>System</td> <td>22-Apr-2017</td> <td> <div class="text-center"> <span class="fa fa-ban"></span> </div> </td> </tr> </tbody> </table> </div> </div> <!-- /.box-body --> <!-- <div class="box-footer"> <div class="pull-right"> <a href="#" class="btn btn-info pull-right btn-sm"><span class="fa fa-plus"></span> Add Bidder</a> </div> </div> --> <!-- /.box-footer --> </div> <!-- /.box --> </div> </div> <div class="row"> <div class="col-md-12"> <div class="box box-primary"> <div class="box-body"> <div class="col-md-12"> <p class="text-muted well well-sm no-shadow" style="margin-top: 10px;"> Untuk melanjutkan proses, Anda wajib mengisi kolom berikut. </p> <div class="form-group" style="margin-bottom: 0.5rem"> <label>No. Undangan Pengadaan:</label> <input type="text" class="form-control input-sm" id="generatedBySystem2" placeholder="0001/BB43/2017-040" disabled> </div> <div class="form-group" style="margin-bottom: 0.5rem"> <label>Pesan Invitation Note:</label> <textarea class="form-control" rows="3" placeholder="Keterangan Tambahan" style="resize:none" required></textarea> </div> </div> </div> <!-- /.box body --> <div class="box-footer"> <div class="row"> <div class="col-md-12"> <button type="button" class="btn btn-primary pull-right btn-sm" style="margin-right: 5px;" data-toggle="modal" data-target="#sendModal"> <span class="glyphicon glyphicon-send"></span> Publish </button> <div id="sendModal" class="modal fade"> <div class="modal-dialog modal-sm"> <div class="modal-content"> <div class="modal-header bg-blue"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">&times;</span></button> <h4 class="modal-title">Anda yakin?</h4> </div> <div class="modal-footer"> <button type="button" class="btn pull-left" data-dismiss="modal">Tidak</button> <button type="submit" class="btn btn-primary">Ya</button> </div> </div> <!-- /.modal-content --> </div> </div> </div> </div> </div> <!-- /.box-footer --> </div> <!-- /.box --> </div> <!-- /.col --> </div> <!-- /.row --> </section> <!-- /.content --> </div> <!-- /.content-wrapper --> <footer class="main-footer"> <strong>Copyright &copy; 2017 <a href="http://www.badaklng.co.id"> PT Badak NGL</a>.</strong> All rights reserved. </footer> </div> <!-- ./wrapper --> <!-- jQuery 2.2.3 --> <script src="../../plugins/jQuery/jquery-2.2.3.min.js"></script> <!-- Bootstrap 3.3.6 --> <script src="../../bootstrap/js/bootstrap.min.js"></script> <!-- DataTables --> <script src="../../plugins/datatables/jquery.dataTables.min.js"></script> <script src="../../plugins/datatables/dataTables.bootstrap.min.js"></script> <!-- SlimScroll --> <script src="../../plugins/slimScroll/jquery.slimscroll.min.js"></script> <!-- FastClick --> <script src="../../plugins/fastclick/fastclick.js"></script> <!-- AdminLTE App --> <script src="../../dist/js/app.min.js"></script> <!-- AdminLTE for demo purposes --> <script src="../../dist/js/demo.js"></script> <!-- page script --> <script> $(document).ready(function(){ $('[data-toggle="abort"]').tooltip(); }); $(function () { $("#example1").DataTable(); $('#example2').DataTable(); }); </script> </body> </html>
{ "content_hash": "510f0e3e232854acd338259966b6bfac", "timestamp": "", "source": "github", "line_count": 281, "max_line_length": 156, "avg_line_length": 38.661921708185055, "alnum_prop": 0.43455449189985274, "repo_name": "setyassida/econtractview", "id": "37fe2e6ff9affd185fa597341541bbe17ef48dfa", "size": "10864", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "pages/admincontract/p15.php", "mode": "33188", "license": "mit", "language": [ { "name": "ApacheConf", "bytes": "976" }, { "name": "CSS", "bytes": "496034" }, { "name": "Go", "bytes": "8964" }, { "name": "HTML", "bytes": "3456281" }, { "name": "JavaScript", "bytes": "2926918" }, { "name": "PHP", "bytes": "7077978" }, { "name": "Python", "bytes": "7574" } ], "symlink_target": "" }
/* * Beigesoft ™ * * Licensed under the Apache License, Version 2.0 * * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 */ package org.beigesoft.service; import java.util.Locale; import java.util.ResourceBundle; /** * <p>I18n </p> * * @author Yury Demidenko */ public class SrvI18n implements ISrvI18n { private ResourceBundle messages; public SrvI18n() { try {//to fix Android Java messages = ResourceBundle.getBundle("MessagesBundle"); } catch (Exception e) { Locale locale = new Locale("en", "US"); messages = ResourceBundle.getBundle("MessagesBundle", locale); } } public SrvI18n(String messagesBundleName) { messages = ResourceBundle.getBundle(messagesBundleName); } @Override public String getMsg(String key) { try { return messages.getString(key); } catch (Exception e) { return "["+key+"]"; } } }
{ "content_hash": "c59cf4b72a76ab73cee57e84cff6ea03", "timestamp": "", "source": "github", "line_count": 46, "max_line_length": 68, "avg_line_length": 20.47826086956522, "alnum_prop": 0.6549893842887473, "repo_name": "demidenko05/beige-uml", "id": "e45164676cec6964ac82d3dc8482e0a6d98d0472", "size": "944", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "beige-lib/src/main/java/org/beigesoft/service/SrvI18n.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "2328966" }, { "name": "Shell", "bytes": "723" } ], "symlink_target": "" }
package com.renfeihn.jeeframe.modules.gen.entity; import java.util.List; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlTransient; import org.hibernate.validator.constraints.Length; import com.google.common.collect.Lists; import com.renfeihn.jeeframe.common.persistence.DataEntity; import com.renfeihn.jeeframe.common.utils.StringUtils; /** * 生成方案Entity * @author renfei * @version 2013-10-15 */ @XmlRootElement(name="template") public class GenTemplate extends DataEntity<GenTemplate> { private static final long serialVersionUID = 1L; private String name; // 名称 private String category; // 分类 private String filePath; // 生成文件路径 private String fileName; // 文件名 private String content; // 内容 public GenTemplate() { super(); } public GenTemplate(String id){ super(id); } @Length(min=1, max=200) public String getName() { return name; } public void setName(String name) { this.name = name; } public String getFileName() { return fileName; } public void setFileName(String fileName) { this.fileName = fileName; } public String getFilePath() { return filePath; } public void setFilePath(String filePath) { this.filePath = filePath; } public String getContent() { return content; } public void setContent(String content) { this.content = content; } public String getCategory() { return category; } public void setCategory(String category) { this.category = category; } @XmlTransient public List<String> getCategoryList() { if (category == null){ return Lists.newArrayList(); }else{ return Lists.newArrayList(StringUtils.split(category, ",")); } } public void setCategoryList(List<String> categoryList) { if (categoryList == null){ this.category = ""; }else{ this.category = ","+StringUtils.join(categoryList, ",") + ","; } } }
{ "content_hash": "5ef7974aa943419c56030a00879bb23a", "timestamp": "", "source": "github", "line_count": 97, "max_line_length": 65, "avg_line_length": 19.38144329896907, "alnum_prop": 0.7111702127659575, "repo_name": "renfeihn/jeeframe", "id": "91db490f57efe3135368b14ee0307b9701468b65", "size": "1918", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/main/java/com/renfeihn/jeeframe/modules/gen/entity/GenTemplate.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "ASP", "bytes": "3753" }, { "name": "ApacheConf", "bytes": "768" }, { "name": "Batchfile", "bytes": "2131" }, { "name": "CSS", "bytes": "1268654" }, { "name": "HTML", "bytes": "2865420" }, { "name": "Java", "bytes": "1459945" }, { "name": "JavaScript", "bytes": "9468954" }, { "name": "PHP", "bytes": "8060" } ], "symlink_target": "" }
/* eslint-disable i18next/no-literal-string */ import React, {useCallback} from "react" import {Field, NodeType, TypedObjectTypingResult, VariableTypes} from "../../../types" import {ExpressionLang} from "./editors/expression/types" import Map from "./editors/map/Map" import {NodeCommonDetailsDefinition} from "./NodeCommonDetailsDefinition" import {Error} from "./editors/Validators" export interface MapVariableProps<F extends Field> { node: NodeType<F>, setProperty: (propToMutate: string, newValue: unknown) => void, readOnly?: boolean, showValidation: boolean, renderFieldLabel: (label: string) => React.ReactNode, fieldErrors: Error[], removeElement: (namespace: string, ix: number) => void, addElement: (property: string, element: F) => void, variableTypes: VariableTypes, expressionType?: Partial<TypedObjectTypingResult>, } function MapVariable<F extends Field>(props: MapVariableProps<F>): JSX.Element { const {removeElement, addElement, variableTypes, expressionType, ...passProps} = props const {node, ...mapProps} = passProps const addField = useCallback((namespace, field) => { const newField: Field = {name: "", expression: {expression: "", language: ExpressionLang.SpEL}} addElement(namespace, field || newField) }, [addElement]) return ( <NodeCommonDetailsDefinition {...props} outputName="Variable Name" outputField="varName"> <Map {...mapProps} label="Fields" namespace="fields" fields={node.fields} removeField={removeElement} addField={addField} variableTypes={variableTypes} expressionType={expressionType} /> </NodeCommonDetailsDefinition> ) } export default MapVariable
{ "content_hash": "84b6290a80c195d217de9e86a7859268", "timestamp": "", "source": "github", "line_count": 47, "max_line_length": 99, "avg_line_length": 36.680851063829785, "alnum_prop": 0.7105568445475638, "repo_name": "TouK/nussknacker", "id": "04d942bfdbb354036486f6453a083d5b6aed8f8d", "size": "1724", "binary": false, "copies": "1", "ref": "refs/heads/staging", "path": "designer/client/components/graph/node-modal/MapVariable.tsx", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "3757" }, { "name": "Dockerfile", "bytes": "597" }, { "name": "HTML", "bytes": "3573" }, { "name": "Java", "bytes": "240995" }, { "name": "JavaScript", "bytes": "189903" }, { "name": "PLSQL", "bytes": "269" }, { "name": "Scala", "bytes": "5323010" }, { "name": "Shell", "bytes": "42521" }, { "name": "Stylus", "bytes": "60452" }, { "name": "TypeScript", "bytes": "991644" } ], "symlink_target": "" }
package com.miraclewong.mwzhihudaily.domin.utils; import java.text.SimpleDateFormat; import java.util.Locale; /** * Created by miraclewong on 16/2/21. */ public class Constants { public static final int PAGE_COUNT = 5; public static final SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMdd", Locale.US); }
{ "content_hash": "3976f472c89544d661b85a658c9216c4", "timestamp": "", "source": "github", "line_count": 14, "max_line_length": 104, "avg_line_length": 24, "alnum_prop": 0.7559523809523809, "repo_name": "MiracleWong/MWZhiHuDaily", "id": "0784ca395af0e0c378069fe2494dbfb4467ca4bb", "size": "336", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/src/main/java/com/miraclewong/mwzhihudaily/domin/utils/Constants.java", "mode": "33188", "license": "mit", "language": [ { "name": "Java", "bytes": "94941" } ], "symlink_target": "" }
<?xml version="1.0" ?><!DOCTYPE TS><TS language="hu" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Fullintegritycoin</source> <translation>A Fullintegritycoinról</translation> </message> <message> <location line="+39"/> <source>&lt;b&gt;Fullintegritycoin&lt;/b&gt; version</source> <translation>&lt;b&gt;Fullintegritycoin&lt;/b&gt; verzió</translation> </message> <message> <location line="+57"/> <source> This is experimental software. Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</source> <translation> Ez egy kísérleti program. MIT/X11 szoftverlicenc alatt kiadva, lásd a mellékelt fájlt COPYING vagy http://www.opensource.org/licenses/mit-license.php. Ez a termék az OpenSSL Project által lett kifejlesztve az OpenSSL Toolkit (http://www.openssl.org/) és kriptográfiai szoftvertben való felhasználásra, írta Eric Young (eay@cryptsoft.com) és UPnP szoftver, írta Thomas Bernard.</translation> </message> <message> <location filename="../aboutdialog.cpp" line="+14"/> <source>Copyright</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>The Fullintegritycoin developers</source> <translation type="unfinished"/> </message> </context> <context> <name>AddressBookPage</name> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>Address Book</source> <translation>Címjegyzék</translation> </message> <message> <location line="+19"/> <source>Double-click to edit address or label</source> <translation>Dupla-kattintás a cím vagy a címke szerkesztéséhez</translation> </message> <message> <location line="+27"/> <source>Create a new address</source> <translation>Új cím létrehozása</translation> </message> <message> <location line="+14"/> <source>Copy the currently selected address to the system clipboard</source> <translation>A kiválasztott cím másolása a vágólapra</translation> </message> <message> <location line="-11"/> <source>&amp;New Address</source> <translation>&amp;Új cím</translation> </message> <message> <location filename="../addressbookpage.cpp" line="+63"/> <source>These are your Fullintegritycoin addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source> <translation>Ezekkel a Fullintegritycoin-címekkel fogadhatod kifizetéseket. Érdemes lehet minden egyes kifizető számára külön címet létrehozni, hogy könnyebben nyomon követhesd, kitől kaptál már pénzt.</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>&amp;Copy Address</source> <translation>&amp;Cím másolása</translation> </message> <message> <location line="+11"/> <source>Show &amp;QR Code</source> <translation>&amp;QR kód mutatása</translation> </message> <message> <location line="+11"/> <source>Sign a message to prove you own a Fullintegritycoin address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Delete the currently selected address from the list</source> <translation type="unfinished"/> </message> <message> <location line="+27"/> <source>Export the data in the current tab to a file</source> <translation>Jelenlegi nézet exportálása fájlba</translation> </message> <message> <location line="+3"/> <source>&amp;Export</source> <translation type="unfinished"/> </message> <message> <location line="-44"/> <source>Verify a message to ensure it was signed with a specified Fullintegritycoin address</source> <translation>Üzenet ellenőrzése, hogy valóban a megjelölt Fullintegritycoin címekkel van-e aláírva.</translation> </message> <message> <location line="+3"/> <source>&amp;Verify Message</source> <translation>Üzenet ellenőrzése</translation> </message> <message> <location line="+14"/> <source>&amp;Delete</source> <translation>&amp;Törlés</translation> </message> <message> <location filename="../addressbookpage.cpp" line="-5"/> <source>These are your Fullintegritycoin addresses for sending payments. Always check the amount and the receiving address before sending coins.</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Copy &amp;Label</source> <translation>Címke &amp;másolása</translation> </message> <message> <location line="+1"/> <source>&amp;Edit</source> <translation>Sz&amp;erkesztés</translation> </message> <message> <location line="+1"/> <source>Send &amp;Coins</source> <translation type="unfinished"/> </message> <message> <location line="+260"/> <source>Export Address Book Data</source> <translation>Címjegyzék adatainak exportálása</translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>Vesszővel elválasztott fájl (*. csv)</translation> </message> <message> <location line="+13"/> <source>Error exporting</source> <translation>Hiba exportálás közben</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>%1 nevű fájl nem írható.</translation> </message> </context> <context> <name>AddressTableModel</name> <message> <location filename="../addresstablemodel.cpp" line="+144"/> <source>Label</source> <translation>Címke</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Cím</translation> </message> <message> <location line="+36"/> <source>(no label)</source> <translation>(nincs címke)</translation> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <location filename="../forms/askpassphrasedialog.ui" line="+26"/> <source>Passphrase Dialog</source> <translation>Kulcsszó párbeszédablak</translation> </message> <message> <location line="+21"/> <source>Enter passphrase</source> <translation>Add meg a jelszót</translation> </message> <message> <location line="+14"/> <source>New passphrase</source> <translation>Új jelszó</translation> </message> <message> <location line="+14"/> <source>Repeat new passphrase</source> <translation>Új jelszó újra</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="+33"/> <source>Enter the new passphrase to the wallet.&lt;br/&gt;Please use a passphrase of &lt;b&gt;10 or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.</source> <translation>Írd be az új jelszót a tárcához.&lt;br/&gt;Használj legalább 10&lt;br/&gt;véletlenszerű karaktert&lt;/b&gt; vagy &lt;b&gt;legalább nyolc szót&lt;/b&gt;.</translation> </message> <message> <location line="+1"/> <source>Encrypt wallet</source> <translation>Tárca kódolása</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation>A tárcád megnyitásához a műveletnek szüksége van a tárcád jelszavára.</translation> </message> <message> <location line="+5"/> <source>Unlock wallet</source> <translation>Tárca megnyitása</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation>A tárcád dekódolásához a műveletnek szüksége van a tárcád jelszavára.</translation> </message> <message> <location line="+5"/> <source>Decrypt wallet</source> <translation>Tárca dekódolása</translation> </message> <message> <location line="+3"/> <source>Change passphrase</source> <translation>Jelszó megváltoztatása</translation> </message> <message> <location line="+1"/> <source>Enter the old and new passphrase to the wallet.</source> <translation>Írd be a tárca régi és új jelszavát.</translation> </message> <message> <location line="+46"/> <source>Confirm wallet encryption</source> <translation>Biztosan kódolni akarod a tárcát?</translation> </message> <message> <location line="+1"/> <source>Warning: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR FULLINTEGRITYCOINS&lt;/b&gt;!</source> <translation>Figyelem: Ha kódolod a tárcát, és elveszíted a jelszavad, akkor &lt;b&gt;AZ ÖSSZES FULLINTEGRITYCOINODAT IS EL FOGOD VESZÍTENI!&lt;/b&gt;</translation> </message> <message> <location line="+0"/> <source>Are you sure you wish to encrypt your wallet?</source> <translation>Biztosan kódolni akarod a tárcát?</translation> </message> <message> <location line="+15"/> <source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source> <translation>FONTOS: A pénztárca-fájl korábbi mentéseit ezzel az új, titkosított pénztárca-fájllal kell helyettesíteni. Biztonsági okokból a pénztárca-fájl korábbi titkosítás nélküli mentései haszontalanná válnak amint elkezdi használni az új, titkosított pénztárcát.</translation> </message> <message> <location line="+100"/> <location line="+24"/> <source>Warning: The Caps Lock key is on!</source> <translation type="unfinished"/> </message> <message> <location line="-130"/> <location line="+58"/> <source>Wallet encrypted</source> <translation>Tárca kódolva</translation> </message> <message> <location line="-56"/> <source>Fullintegritycoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your fullintegritycoins from being stolen by malware infecting your computer.</source> <translation>Fullintegritycoin will close now to finish the encryption process. Ne feledd, hogy a tárca titkosítása sem nyújt teljes védelmet az adathalász programok fertőzésével szemben.</translation> </message> <message> <location line="+13"/> <location line="+7"/> <location line="+42"/> <location line="+6"/> <source>Wallet encryption failed</source> <translation>Tárca kódolása sikertelen.</translation> </message> <message> <location line="-54"/> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation>Tárca kódolása belső hiba miatt sikertelen. A tárcád nem lett kódolva.</translation> </message> <message> <location line="+7"/> <location line="+48"/> <source>The supplied passphrases do not match.</source> <translation>A megadott jelszavak nem egyeznek.</translation> </message> <message> <location line="-37"/> <source>Wallet unlock failed</source> <translation>Tárca megnyitása sikertelen</translation> </message> <message> <location line="+1"/> <location line="+11"/> <location line="+19"/> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation>Hibás jelszó.</translation> </message> <message> <location line="-20"/> <source>Wallet decryption failed</source> <translation>Dekódolás sikertelen.</translation> </message> <message> <location line="+14"/> <source>Wallet passphrase was successfully changed.</source> <translation>Jelszó megváltoztatva.</translation> </message> </context> <context> <name>BitcoinGUI</name> <message> <location filename="../bitcoingui.cpp" line="+233"/> <source>Sign &amp;message...</source> <translation>Üzenet aláírása...</translation> </message> <message> <location line="+280"/> <source>Synchronizing with network...</source> <translation>Szinkronizálás a hálózattal...</translation> </message> <message> <location line="-349"/> <source>&amp;Overview</source> <translation>&amp;Áttekintés</translation> </message> <message> <location line="+1"/> <source>Show general overview of wallet</source> <translation>Tárca általános áttekintése</translation> </message> <message> <location line="+20"/> <source>&amp;Transactions</source> <translation>&amp;Tranzakciók</translation> </message> <message> <location line="+1"/> <source>Browse transaction history</source> <translation>Tranzakciótörténet megtekintése</translation> </message> <message> <location line="+7"/> <source>Edit the list of stored addresses and labels</source> <translation>Tárolt címek és címkék listájának szerkesztése</translation> </message> <message> <location line="-14"/> <source>Show the list of addresses for receiving payments</source> <translation>Kiizetést fogadó címek listája</translation> </message> <message> <location line="+31"/> <source>E&amp;xit</source> <translation>&amp;Kilépés</translation> </message> <message> <location line="+1"/> <source>Quit application</source> <translation>Kilépés</translation> </message> <message> <location line="+4"/> <source>Show information about Fullintegritycoin</source> <translation>Információk a Fullintegritycoinról</translation> </message> <message> <location line="+2"/> <source>About &amp;Qt</source> <translation>A &amp;Qt-ról</translation> </message> <message> <location line="+1"/> <source>Show information about Qt</source> <translation>Információk a Qt ról</translation> </message> <message> <location line="+2"/> <source>&amp;Options...</source> <translation>&amp;Opciók...</translation> </message> <message> <location line="+6"/> <source>&amp;Encrypt Wallet...</source> <translation>Tárca &amp;kódolása...</translation> </message> <message> <location line="+3"/> <source>&amp;Backup Wallet...</source> <translation>&amp;Bisztonsági másolat készítése a Tárcáról</translation> </message> <message> <location line="+2"/> <source>&amp;Change Passphrase...</source> <translation>Jelszó &amp;megváltoztatása...</translation> </message> <message> <location line="+285"/> <source>Importing blocks from disk...</source> <translation>A blokkok importálása lemezről...</translation> </message> <message> <location line="+3"/> <source>Reindexing blocks on disk...</source> <translation>A blokkok lemezen történő ujraindexelése...</translation> </message> <message> <location line="-347"/> <source>Send coins to a Fullintegritycoin address</source> <translation>Érmék küldése megadott címre</translation> </message> <message> <location line="+49"/> <source>Modify configuration options for Fullintegritycoin</source> <translation>Fullintegritycoin konfigurációs opciók</translation> </message> <message> <location line="+9"/> <source>Backup wallet to another location</source> <translation>Biztonsági másolat készítése a Tárcáról egy másik helyre</translation> </message> <message> <location line="+2"/> <source>Change the passphrase used for wallet encryption</source> <translation>Tárcakódoló jelszó megváltoztatása</translation> </message> <message> <location line="+6"/> <source>&amp;Debug window</source> <translation>&amp;Debug ablak</translation> </message> <message> <location line="+1"/> <source>Open debugging and diagnostic console</source> <translation>Hibakereső és diagnosztikai konzol megnyitása</translation> </message> <message> <location line="-4"/> <source>&amp;Verify message...</source> <translation>Üzenet &amp;valódiságának ellenőrzése</translation> </message> <message> <location line="-165"/> <location line="+530"/> <source>Fullintegritycoin</source> <translation>Fullintegritycoin</translation> </message> <message> <location line="-530"/> <source>Wallet</source> <translation>Tárca</translation> </message> <message> <location line="+101"/> <source>&amp;Send</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Receive</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>&amp;Addresses</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>&amp;About Fullintegritycoin</source> <translation>&amp;A Fullintegritycoinról</translation> </message> <message> <location line="+9"/> <source>&amp;Show / Hide</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show or hide the main Window</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Encrypt the private keys that belong to your wallet</source> <translation>A pénztárcájához tartozó privát kulcsok titkosítása</translation> </message> <message> <location line="+7"/> <source>Sign messages with your Fullintegritycoin addresses to prove you own them</source> <translation>Üzenet aláírása a Fullintegritycoin címmel, amivel bizonyítja, hogy a cím az ön tulajdona.</translation> </message> <message> <location line="+2"/> <source>Verify messages to ensure they were signed with specified Fullintegritycoin addresses</source> <translation>Annak ellenőrzése, hogy az üzenetek valóban a megjelölt Fullintegritycoin címekkel vannak-e alaírva</translation> </message> <message> <location line="+28"/> <source>&amp;File</source> <translation>&amp;Fájl</translation> </message> <message> <location line="+7"/> <source>&amp;Settings</source> <translation>&amp;Beállítások</translation> </message> <message> <location line="+6"/> <source>&amp;Help</source> <translation>&amp;Súgó</translation> </message> <message> <location line="+9"/> <source>Tabs toolbar</source> <translation>Fül eszköztár</translation> </message> <message> <location line="+17"/> <location line="+10"/> <source>[testnet]</source> <translation>[teszthálózat]</translation> </message> <message> <location line="+47"/> <source>Fullintegritycoin client</source> <translation>Fullintegritycoin kliens</translation> </message> <message numerus="yes"> <location line="+141"/> <source>%n active connection(s) to Fullintegritycoin network</source> <translation><numerusform>%n aktív kapcsolat a Fullintegritycoin-hálózattal</numerusform><numerusform>%n aktív kapcsolat a Fullintegritycoin-hálózattal</numerusform></translation> </message> <message> <location line="+22"/> <source>No block source available...</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Processed %1 of %2 (estimated) blocks of transaction history.</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Processed %1 blocks of transaction history.</source> <translation>A tranzakció-történet %1 blokkja feldolgozva.</translation> </message> <message numerus="yes"> <location line="+20"/> <source>%n hour(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n day(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n week(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+4"/> <source>%1 behind</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Last received block was generated %1 ago.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Transactions after this will not yet be visible.</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>Error</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Information</source> <translation type="unfinished"/> </message> <message> <location line="+70"/> <source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source> <translation type="unfinished"/> </message> <message> <location line="-140"/> <source>Up to date</source> <translation>Naprakész</translation> </message> <message> <location line="+31"/> <source>Catching up...</source> <translation>Frissítés...</translation> </message> <message> <location line="+113"/> <source>Confirm transaction fee</source> <translation>Tranzakciós díj jóváhagyása</translation> </message> <message> <location line="+8"/> <source>Sent transaction</source> <translation>Tranzakció elküldve.</translation> </message> <message> <location line="+0"/> <source>Incoming transaction</source> <translation>Beérkező tranzakció</translation> </message> <message> <location line="+1"/> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation>Dátum: %1 Összeg: %2 Típus: %3 Cím: %4 </translation> </message> <message> <location line="+33"/> <location line="+23"/> <source>URI handling</source> <translation type="unfinished"/> </message> <message> <location line="-23"/> <location line="+23"/> <source>URI can not be parsed! This can be caused by an invalid Fullintegritycoin address or malformed URI parameters.</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt;</source> <translation>Tárca &lt;b&gt;kódolva&lt;/b&gt; és jelenleg &lt;b&gt;nyitva&lt;/b&gt;.</translation> </message> <message> <location line="+8"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;locked&lt;/b&gt;</source> <translation>Tárca &lt;b&gt;kódolva&lt;/b&gt; és jelenleg &lt;b&gt;zárva&lt;/b&gt;.</translation> </message> <message> <location filename="../bitcoin.cpp" line="+111"/> <source>A fatal error occurred. Fullintegritycoin can no longer continue safely and will quit.</source> <translation type="unfinished"/> </message> </context> <context> <name>ClientModel</name> <message> <location filename="../clientmodel.cpp" line="+104"/> <source>Network Alert</source> <translation type="unfinished"/> </message> </context> <context> <name>EditAddressDialog</name> <message> <location filename="../forms/editaddressdialog.ui" line="+14"/> <source>Edit Address</source> <translation>Cím szerkesztése</translation> </message> <message> <location line="+11"/> <source>&amp;Label</source> <translation>Cím&amp;ke</translation> </message> <message> <location line="+10"/> <source>The label associated with this address book entry</source> <translation>A címhez tartozó címke</translation> </message> <message> <location line="+7"/> <source>&amp;Address</source> <translation>&amp;Cím</translation> </message> <message> <location line="+10"/> <source>The address associated with this address book entry. This can only be modified for sending addresses.</source> <translation>Az ehhez a címjegyzék-bejegyzéshez tartozó cím. Ez csak a küldő címeknél módosítható.</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="+21"/> <source>New receiving address</source> <translation>Új fogadó cím</translation> </message> <message> <location line="+4"/> <source>New sending address</source> <translation>Új küldő cím</translation> </message> <message> <location line="+3"/> <source>Edit receiving address</source> <translation>Fogadó cím szerkesztése</translation> </message> <message> <location line="+4"/> <source>Edit sending address</source> <translation>Küldő cím szerkesztése</translation> </message> <message> <location line="+76"/> <source>The entered address &quot;%1&quot; is already in the address book.</source> <translation>A megadott &quot;%1&quot; cím már szerepel a címjegyzékben.</translation> </message> <message> <location line="-5"/> <source>The entered address &quot;%1&quot; is not a valid Fullintegritycoin address.</source> <translation>A megadott &quot;%1&quot; cím nem egy érvényes Fullintegritycoin-cím.</translation> </message> <message> <location line="+10"/> <source>Could not unlock wallet.</source> <translation>Tárca feloldása sikertelen</translation> </message> <message> <location line="+5"/> <source>New key generation failed.</source> <translation>Új kulcs generálása sikertelen</translation> </message> </context> <context> <name>GUIUtil::HelpMessageBox</name> <message> <location filename="../guiutil.cpp" line="+424"/> <location line="+12"/> <source>Fullintegritycoin-Qt</source> <translation type="unfinished"/> </message> <message> <location line="-12"/> <source>version</source> <translation>verzió</translation> </message> <message> <location line="+2"/> <source>Usage:</source> <translation>Használat:</translation> </message> <message> <location line="+1"/> <source>command-line options</source> <translation>parancssoros opciók</translation> </message> <message> <location line="+4"/> <source>UI options</source> <translation>UI opciók</translation> </message> <message> <location line="+1"/> <source>Set language, for example &quot;de_DE&quot; (default: system locale)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Start minimized</source> <translation>Indítás lekicsinyítve </translation> </message> <message> <location line="+1"/> <source>Show splash screen on startup (default: 1)</source> <translation type="unfinished"/> </message> </context> <context> <name>OptionsDialog</name> <message> <location filename="../forms/optionsdialog.ui" line="+14"/> <source>Options</source> <translation>Opciók</translation> </message> <message> <location line="+16"/> <source>&amp;Main</source> <translation>&amp;Fő</translation> </message> <message> <location line="+6"/> <source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB.</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>Pay transaction &amp;fee</source> <translation>Tranzakciós &amp;díj fizetése</translation> </message> <message> <location line="+31"/> <source>Automatically start Fullintegritycoin after logging in to the system.</source> <translation>Induljon el a Fullintegritycoin a számítógép bekapcsolásakor</translation> </message> <message> <location line="+3"/> <source>&amp;Start Fullintegritycoin on system login</source> <translation>&amp;Induljon el a számítógép bekapcsolásakor</translation> </message> <message> <location line="+35"/> <source>Reset all client options to default.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Reset Options</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>&amp;Network</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Automatically open the Fullintegritycoin client port on the router. This only works when your router supports UPnP and it is enabled.</source> <translation>A Fullintegritycoin-kliens portjának automatikus megnyitása a routeren. Ez csak akkor működik, ha a routered támogatja az UPnP-t és az engedélyezve is van rajta.</translation> </message> <message> <location line="+3"/> <source>Map port using &amp;UPnP</source> <translation>&amp;UPnP port-feltérképezés</translation> </message> <message> <location line="+7"/> <source>Connect to the Fullintegritycoin network through a SOCKS proxy (e.g. when connecting through Tor).</source> <translation>SOCKS proxyn keresztüli csatlakozás a Fullintegritycoin hálózatához (pl. Tor-on keresztüli csatlakozás esetén)</translation> </message> <message> <location line="+3"/> <source>&amp;Connect through SOCKS proxy:</source> <translation>&amp;Csatlakozás SOCKS proxyn keresztül:</translation> </message> <message> <location line="+9"/> <source>Proxy &amp;IP:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>IP address of the proxy (e.g. 127.0.0.1)</source> <translation>Proxy IP címe (pl.: 127.0.0.1)</translation> </message> <message> <location line="+7"/> <source>&amp;Port:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Port of the proxy (e.g. 9050)</source> <translation>Proxy portja (pl.: 9050)</translation> </message> <message> <location line="+7"/> <source>SOCKS &amp;Version:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>SOCKS version of the proxy (e.g. 5)</source> <translation type="unfinished"/> </message> <message> <location line="+36"/> <source>&amp;Window</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Show only a tray icon after minimizing the window.</source> <translation>Kicsinyítés után csak eszköztár-ikont mutass</translation> </message> <message> <location line="+3"/> <source>&amp;Minimize to the tray instead of the taskbar</source> <translation>&amp;Kicsinyítés a tálcára az eszköztár helyett</translation> </message> <message> <location line="+7"/> <source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source> <translation>Az alkalmazásból való kilépés helyett az eszköztárba kicsinyíti az alkalmazást az ablak bezárásakor. Ez esetben az alkalmazás csak a Kilépés menüponttal zárható be.</translation> </message> <message> <location line="+3"/> <source>M&amp;inimize on close</source> <translation>K&amp;icsinyítés záráskor</translation> </message> <message> <location line="+21"/> <source>&amp;Display</source> <translation>&amp;Megjelenítés</translation> </message> <message> <location line="+8"/> <source>User Interface &amp;language:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>The user interface language can be set here. This setting will take effect after restarting Fullintegritycoin.</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>&amp;Unit to show amounts in:</source> <translation>&amp;Mértékegység:</translation> </message> <message> <location line="+13"/> <source>Choose the default subdivision unit to show in the interface and when sending coins.</source> <translation>Válaszd ki az interfészen és érmék küldésekor megjelenítendő alapértelmezett alegységet.</translation> </message> <message> <location line="+9"/> <source>Whether to show Fullintegritycoin addresses in the transaction list or not.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Display addresses in transaction list</source> <translation>&amp;Címek megjelenítése a tranzakciólistában</translation> </message> <message> <location line="+71"/> <source>&amp;OK</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Cancel</source> <translation>Megszakítás</translation> </message> <message> <location line="+10"/> <source>&amp;Apply</source> <translation>Alkalmazás</translation> </message> <message> <location filename="../optionsdialog.cpp" line="+53"/> <source>default</source> <translation>alapértelmezett</translation> </message> <message> <location line="+130"/> <source>Confirm options reset</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Some settings may require a client restart to take effect.</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Do you want to proceed?</source> <translation type="unfinished"/> </message> <message> <location line="+42"/> <location line="+9"/> <source>Warning</source> <translation>Figyelem</translation> </message> <message> <location line="-9"/> <location line="+9"/> <source>This setting will take effect after restarting Fullintegritycoin.</source> <translation>Ez a beállítás a Fullintegritycoin ujraindítása után lép érvénybe.</translation> </message> <message> <location line="+29"/> <source>The supplied proxy address is invalid.</source> <translation type="unfinished"/> </message> </context> <context> <name>OverviewPage</name> <message> <location filename="../forms/overviewpage.ui" line="+14"/> <source>Form</source> <translation>Űrlap</translation> </message> <message> <location line="+50"/> <location line="+166"/> <source>The displayed information may be out of date. Your wallet automatically synchronizes with the Fullintegritycoin network after a connection is established, but this process has not completed yet.</source> <translation>A kijelzett információ lehet, hogy elavult. A pénztárcája automatikusan szinkronizálja magát a Fullintegritycoin hálózattal miután a kapcsolat létrejön, de ez e folyamat még nem fejeződött be.</translation> </message> <message> <location line="-124"/> <source>Balance:</source> <translation>Egyenleg:</translation> </message> <message> <location line="+29"/> <source>Unconfirmed:</source> <translation>Megerősítetlen:</translation> </message> <message> <location line="-78"/> <source>Wallet</source> <translation>Tárca</translation> </message> <message> <location line="+107"/> <source>Immature:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Mined balance that has not yet matured</source> <translation type="unfinished"/> </message> <message> <location line="+46"/> <source>&lt;b&gt;Recent transactions&lt;/b&gt;</source> <translation>&lt;b&gt;Legutóbbi tranzakciók&lt;/b&gt;</translation> </message> <message> <location line="-101"/> <source>Your current balance</source> <translation>Aktuális egyenleged</translation> </message> <message> <location line="+29"/> <source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source> <translation>Még megerősítésre váró, a jelenlegi egyenlegbe be nem számított tranzakciók</translation> </message> <message> <location filename="../overviewpage.cpp" line="+116"/> <location line="+1"/> <source>out of sync</source> <translation>Nincs szinkronban.</translation> </message> </context> <context> <name>PaymentServer</name> <message> <location filename="../paymentserver.cpp" line="+107"/> <source>Cannot start fullintegritycoin: click-to-pay handler</source> <translation type="unfinished"/> </message> </context> <context> <name>QRCodeDialog</name> <message> <location filename="../forms/qrcodedialog.ui" line="+14"/> <source>QR Code Dialog</source> <translation>QR kód párbeszédablak</translation> </message> <message> <location line="+59"/> <source>Request Payment</source> <translation>Fizetés kérése</translation> </message> <message> <location line="+56"/> <source>Amount:</source> <translation>Összeg:</translation> </message> <message> <location line="-44"/> <source>Label:</source> <translation>Címke:</translation> </message> <message> <location line="+19"/> <source>Message:</source> <translation>Üzenet:</translation> </message> <message> <location line="+71"/> <source>&amp;Save As...</source> <translation>Mentés má&amp;sként</translation> </message> <message> <location filename="../qrcodedialog.cpp" line="+62"/> <source>Error encoding URI into QR Code.</source> <translation>Hiba lépett fel az URI QR kóddá alakításakor</translation> </message> <message> <location line="+40"/> <source>The entered amount is invalid, please check.</source> <translation>A megadott összeg nem érvényes. Kérem ellenőrizze.</translation> </message> <message> <location line="+23"/> <source>Resulting URI too long, try to reduce the text for label / message.</source> <translation>A keletkezett URI túl hosszú, próbálja meg csökkenteni a cimkeszöveg / üzenet méretét.</translation> </message> <message> <location line="+25"/> <source>Save QR Code</source> <translation>QR kód mentése</translation> </message> <message> <location line="+0"/> <source>PNG Images (*.png)</source> <translation>PNG Képfájlok (*.png)</translation> </message> </context> <context> <name>RPCConsole</name> <message> <location filename="../forms/rpcconsole.ui" line="+46"/> <source>Client name</source> <translation>Kliens néve</translation> </message> <message> <location line="+10"/> <location line="+23"/> <location line="+26"/> <location line="+23"/> <location line="+23"/> <location line="+36"/> <location line="+53"/> <location line="+23"/> <location line="+23"/> <location filename="../rpcconsole.cpp" line="+339"/> <source>N/A</source> <translation>Nem elérhető</translation> </message> <message> <location line="-217"/> <source>Client version</source> <translation>Kliens verzió</translation> </message> <message> <location line="-45"/> <source>&amp;Information</source> <translation>&amp;Információ</translation> </message> <message> <location line="+68"/> <source>Using OpenSSL version</source> <translation type="unfinished"/> </message> <message> <location line="+49"/> <source>Startup time</source> <translation>Bekapcsolás ideje</translation> </message> <message> <location line="+29"/> <source>Network</source> <translation>Hálózat</translation> </message> <message> <location line="+7"/> <source>Number of connections</source> <translation>Kapcsolatok száma</translation> </message> <message> <location line="+23"/> <source>On testnet</source> <translation>Teszthálózaton</translation> </message> <message> <location line="+23"/> <source>Block chain</source> <translation>Blokklánc</translation> </message> <message> <location line="+7"/> <source>Current number of blocks</source> <translation>Aktuális blokkok száma</translation> </message> <message> <location line="+23"/> <source>Estimated total blocks</source> <translation>Becsült összes blokk</translation> </message> <message> <location line="+23"/> <source>Last block time</source> <translation>Utolsó blokk ideje</translation> </message> <message> <location line="+52"/> <source>&amp;Open</source> <translation>&amp;Megnyitás</translation> </message> <message> <location line="+16"/> <source>Command-line options</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Show the Fullintegritycoin-Qt help message to get a list with possible Fullintegritycoin command-line options.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Show</source> <translation type="unfinished"/> </message> <message> <location line="+24"/> <source>&amp;Console</source> <translation>&amp;Konzol</translation> </message> <message> <location line="-260"/> <source>Build date</source> <translation>Fordítás dátuma</translation> </message> <message> <location line="-104"/> <source>Fullintegritycoin - Debug window</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Fullintegritycoin Core</source> <translation type="unfinished"/> </message> <message> <location line="+279"/> <source>Debug log file</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Open the Fullintegritycoin debug log file from the current data directory. This can take a few seconds for large log files.</source> <translation type="unfinished"/> </message> <message> <location line="+102"/> <source>Clear console</source> <translation>Konzol törlése</translation> </message> <message> <location filename="../rpcconsole.cpp" line="-30"/> <source>Welcome to the Fullintegritycoin RPC console.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Use up and down arrows to navigate history, and &lt;b&gt;Ctrl-L&lt;/b&gt; to clear screen.</source> <translation>Navigálhat a fel és le nyilakkal, és &lt;b&gt;Ctrl-L&lt;/b&gt; -vel törölheti a képernyőt.</translation> </message> <message> <location line="+1"/> <source>Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.</source> <translation type="unfinished"/> </message> </context> <context> <name>SendCoinsDialog</name> <message> <location filename="../forms/sendcoinsdialog.ui" line="+14"/> <location filename="../sendcoinsdialog.cpp" line="+124"/> <location line="+5"/> <location line="+5"/> <location line="+5"/> <location line="+6"/> <location line="+5"/> <location line="+5"/> <source>Send Coins</source> <translation>Érmék küldése</translation> </message> <message> <location line="+50"/> <source>Send to multiple recipients at once</source> <translation>Küldés több címzettnek egyszerre</translation> </message> <message> <location line="+3"/> <source>Add &amp;Recipient</source> <translation>&amp;Címzett hozzáadása</translation> </message> <message> <location line="+20"/> <source>Remove all transaction fields</source> <translation>Az összes tranzakciós mező eltávolítása</translation> </message> <message> <location line="+3"/> <source>Clear &amp;All</source> <translation>Mindent &amp;töröl</translation> </message> <message> <location line="+22"/> <source>Balance:</source> <translation>Egyenleg:</translation> </message> <message> <location line="+10"/> <source>123.456 BTC</source> <translation>123.456 BTC</translation> </message> <message> <location line="+31"/> <source>Confirm the send action</source> <translation>Küldés megerősítése</translation> </message> <message> <location line="+3"/> <source>S&amp;end</source> <translation>&amp;Küldés</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="-59"/> <source>&lt;b&gt;%1&lt;/b&gt; to %2 (%3)</source> <translation>&lt;b&gt;%1&lt;/b&gt; %2-re (%3)</translation> </message> <message> <location line="+5"/> <source>Confirm send coins</source> <translation>Küldés megerősítése</translation> </message> <message> <location line="+1"/> <source>Are you sure you want to send %1?</source> <translation>Valóban el akarsz küldeni %1-t?</translation> </message> <message> <location line="+0"/> <source> and </source> <translation> és</translation> </message> <message> <location line="+23"/> <source>The recipient address is not valid, please recheck.</source> <translation>A címzett címe érvénytelen, kérlek, ellenőrizd.</translation> </message> <message> <location line="+5"/> <source>The amount to pay must be larger than 0.</source> <translation>A fizetendő összegnek nagyobbnak kell lennie 0-nál.</translation> </message> <message> <location line="+5"/> <source>The amount exceeds your balance.</source> <translation>Nincs ennyi fullintegritycoin az egyenlegeden.</translation> </message> <message> <location line="+5"/> <source>The total exceeds your balance when the %1 transaction fee is included.</source> <translation>A küldeni kívánt összeg és a %1 tranzakciós díj együtt meghaladja az egyenlegeden rendelkezésedre álló összeget.</translation> </message> <message> <location line="+6"/> <source>Duplicate address found, can only send to each address once per send operation.</source> <translation>Többször szerepel ugyanaz a cím. Egy küldési műveletben egy címre csak egyszer lehet küldeni.</translation> </message> <message> <location line="+5"/> <source>Error: Transaction creation failed!</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation>Hiba: a tranzakciót elutasították. Ezt az okozhatja, ha már elköltöttél valamennyi érmét a tárcádból például ha a wallet.dat-od egy másolatát használtad, és így az elköltés csak abban lett jelölve, de itt nem.</translation> </message> </context> <context> <name>SendCoinsEntry</name> <message> <location filename="../forms/sendcoinsentry.ui" line="+14"/> <source>Form</source> <translation>Űrlap</translation> </message> <message> <location line="+15"/> <source>A&amp;mount:</source> <translation>Összeg:</translation> </message> <message> <location line="+13"/> <source>Pay &amp;To:</source> <translation>Címzett:</translation> </message> <message> <location line="+34"/> <source>The address to send the payment to (e.g. Fer4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation type="unfinished"/> </message> <message> <location line="+60"/> <location filename="../sendcoinsentry.cpp" line="+26"/> <source>Enter a label for this address to add it to your address book</source> <translation>Milyen címkével kerüljön be ez a cím a címtáradba? </translation> </message> <message> <location line="-78"/> <source>&amp;Label:</source> <translation>Címke:</translation> </message> <message> <location line="+28"/> <source>Choose address from address book</source> <translation>Válassz egy címet a címjegyzékből</translation> </message> <message> <location line="+10"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location line="+7"/> <source>Paste address from clipboard</source> <translation>Cím beillesztése a vágólapról</translation> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location line="+7"/> <source>Remove this recipient</source> <translation>Címzett eltávolítása</translation> </message> <message> <location filename="../sendcoinsentry.cpp" line="+1"/> <source>Enter a Fullintegritycoin address (e.g. Fer4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation>Adj meg egy Fullintegritycoin-címet (pl.: Fer4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2 )</translation> </message> </context> <context> <name>SignVerifyMessageDialog</name> <message> <location filename="../forms/signverifymessagedialog.ui" line="+14"/> <source>Signatures - Sign / Verify a Message</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>&amp;Sign Message</source> <translation>Üzenet aláírása...</translation> </message> <message> <location line="+6"/> <source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source> <translation>Aláírhat a címeivel üzeneteket, amivel bizonyíthatja, hogy a címek az önéi. Vigyázzon, hogy ne írjon alá semmi félreérthetőt, mivel a phising támadásokkal megpróbálhatják becsapni, hogy az azonosságát átírja másokra. Csak olyan részletes állításokat írjon alá, amivel egyetért.</translation> </message> <message> <location line="+18"/> <source>The address to sign the message with (e.g. Fer4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation>Adj meg egy Fullintegritycoin-címet (pl.: Fer4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2 )</translation> </message> <message> <location line="+10"/> <location line="+213"/> <source>Choose an address from the address book</source> <translation>Válassz egy címet a címjegyzékből</translation> </message> <message> <location line="-203"/> <location line="+213"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location line="-203"/> <source>Paste address from clipboard</source> <translation>Cím beillesztése a vágólapról</translation> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location line="+12"/> <source>Enter the message you want to sign here</source> <translation>Ide írja az aláírandó üzenetet</translation> </message> <message> <location line="+7"/> <source>Signature</source> <translation type="unfinished"/> </message> <message> <location line="+27"/> <source>Copy the current signature to the system clipboard</source> <translation>A jelenleg kiválasztott aláírás másolása a rendszer-vágólapra</translation> </message> <message> <location line="+21"/> <source>Sign the message to prove you own this Fullintegritycoin address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Reset all sign message fields</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <location line="+146"/> <source>Clear &amp;All</source> <translation>Mindent &amp;töröl</translation> </message> <message> <location line="-87"/> <source>&amp;Verify Message</source> <translation>Üzenet ellenőrzése</translation> </message> <message> <location line="+6"/> <source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source> <translation>Írja be az aláírás címét, az üzenetet (ügyelve arra, hogy az új-sor, szóköz, tab, stb. karaktereket is pontosan) és az aláírást az üzenet ellenőrzéséhez. Ügyeljen arra, ne gondoljon többet az aláírásról, mint amennyi az aláírt szövegben ténylegesen áll, hogy elkerülje a köztes-ember (man-in-the-middle) támadást.</translation> </message> <message> <location line="+21"/> <source>The address the message was signed with (e.g. Fer4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation>Adj meg egy Fullintegritycoin-címet (pl.: Fer4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2 )</translation> </message> <message> <location line="+40"/> <source>Verify the message to ensure it was signed with the specified Fullintegritycoin address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Verify &amp;Message</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Reset all verify message fields</source> <translation type="unfinished"/> </message> <message> <location filename="../signverifymessagedialog.cpp" line="+27"/> <location line="+3"/> <source>Enter a Fullintegritycoin address (e.g. Fer4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation>Adj meg egy Fullintegritycoin-címet (pl.: Fer4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2 )</translation> </message> <message> <location line="-2"/> <source>Click &quot;Sign Message&quot; to generate signature</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Enter Fullintegritycoin signature</source> <translation>Adja meg a Fullintegritycoin aláírást</translation> </message> <message> <location line="+82"/> <location line="+81"/> <source>The entered address is invalid.</source> <translation>A megadott cím nem érvényes.</translation> </message> <message> <location line="-81"/> <location line="+8"/> <location line="+73"/> <location line="+8"/> <source>Please check the address and try again.</source> <translation>Ellenőrizze a címet és próbálja meg újra.</translation> </message> <message> <location line="-81"/> <location line="+81"/> <source>The entered address does not refer to a key.</source> <translation type="unfinished"/> </message> <message> <location line="-73"/> <source>Wallet unlock was cancelled.</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Private key for the entered address is not available.</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Message signing failed.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Message signed.</source> <translation type="unfinished"/> </message> <message> <location line="+59"/> <source>The signature could not be decoded.</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <location line="+13"/> <source>Please check the signature and try again.</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>The signature did not match the message digest.</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Message verification failed.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Message verified.</source> <translation type="unfinished"/> </message> </context> <context> <name>SplashScreen</name> <message> <location filename="../splashscreen.cpp" line="+22"/> <source>The Fullintegritycoin developers</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>[testnet]</source> <translation>[teszthálózat]</translation> </message> </context> <context> <name>TransactionDesc</name> <message> <location filename="../transactiondesc.cpp" line="+20"/> <source>Open until %1</source> <translation>Megnyitva %1-ig</translation> </message> <message> <location line="+6"/> <source>%1/offline</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>%1/unconfirmed</source> <translation>%1/megerősítetlen</translation> </message> <message> <location line="+2"/> <source>%1 confirmations</source> <translation>%1 megerősítés</translation> </message> <message> <location line="+18"/> <source>Status</source> <translation>Állapot</translation> </message> <message numerus="yes"> <location line="+7"/> <source>, broadcast through %n node(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+4"/> <source>Date</source> <translation>Dátum</translation> </message> <message> <location line="+7"/> <source>Source</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Generated</source> <translation>Legenerálva</translation> </message> <message> <location line="+5"/> <location line="+17"/> <source>From</source> <translation>Űrlap</translation> </message> <message> <location line="+1"/> <location line="+22"/> <location line="+58"/> <source>To</source> <translation>Címzett</translation> </message> <message> <location line="-77"/> <location line="+2"/> <source>own address</source> <translation type="unfinished"/> </message> <message> <location line="-2"/> <source>label</source> <translation>címke</translation> </message> <message> <location line="+37"/> <location line="+12"/> <location line="+45"/> <location line="+17"/> <location line="+30"/> <source>Credit</source> <translation>Jóváírás</translation> </message> <message numerus="yes"> <location line="-102"/> <source>matures in %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+2"/> <source>not accepted</source> <translation>elutasítva</translation> </message> <message> <location line="+44"/> <location line="+8"/> <location line="+15"/> <location line="+30"/> <source>Debit</source> <translation>Terhelés</translation> </message> <message> <location line="-39"/> <source>Transaction fee</source> <translation>Tranzakciós díj</translation> </message> <message> <location line="+16"/> <source>Net amount</source> <translation>Nettó összeg</translation> </message> <message> <location line="+6"/> <source>Message</source> <translation>Üzenet</translation> </message> <message> <location line="+2"/> <source>Comment</source> <translation>Megjegyzés</translation> </message> <message> <location line="+2"/> <source>Transaction ID</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Generated coins must mature 120 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to &quot;not accepted&quot; and it won&apos;t be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source> <translation>A frissen generált érméket csak 120 blokkal később tudod elkölteni. Ez a blokk nyomban szétküldésre került a hálózatba, amint legeneráltad, hogy hozzáadhassák a blokklánchoz. Ha nem kerül be a láncba, úgy az állapota &quot;elutasítva&quot;-ra módosul, és nem költheted el az érméket. Ez akkor következhet be időnként, ha egy másik csomópont mindössze néhány másodperc különbséggel generált le egy blokkot a tiédhez képest.</translation> </message> <message> <location line="+7"/> <source>Debug information</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Transaction</source> <translation>Tranzakció</translation> </message> <message> <location line="+3"/> <source>Inputs</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Amount</source> <translation>Összeg</translation> </message> <message> <location line="+1"/> <source>true</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>false</source> <translation type="unfinished"/> </message> <message> <location line="-209"/> <source>, has not been successfully broadcast yet</source> <translation>, még nem sikerült elküldeni.</translation> </message> <message numerus="yes"> <location line="-35"/> <source>Open for %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+70"/> <source>unknown</source> <translation>ismeretlen</translation> </message> </context> <context> <name>TransactionDescDialog</name> <message> <location filename="../forms/transactiondescdialog.ui" line="+14"/> <source>Transaction details</source> <translation>Tranzakció részletei</translation> </message> <message> <location line="+6"/> <source>This pane shows a detailed description of the transaction</source> <translation>Ez a mező a tranzakció részleteit mutatja</translation> </message> </context> <context> <name>TransactionTableModel</name> <message> <location filename="../transactiontablemodel.cpp" line="+225"/> <source>Date</source> <translation>Dátum</translation> </message> <message> <location line="+0"/> <source>Type</source> <translation>Típus</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Cím</translation> </message> <message> <location line="+0"/> <source>Amount</source> <translation>Összeg</translation> </message> <message numerus="yes"> <location line="+57"/> <source>Open for %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+3"/> <source>Open until %1</source> <translation>%1-ig megnyitva</translation> </message> <message> <location line="+3"/> <source>Offline (%1 confirmations)</source> <translation>Offline (%1 megerősítés)</translation> </message> <message> <location line="+3"/> <source>Unconfirmed (%1 of %2 confirmations)</source> <translation>Megerősítetlen (%1 %2 megerősítésből)</translation> </message> <message> <location line="+3"/> <source>Confirmed (%1 confirmations)</source> <translation>Megerősítve (%1 megerősítés)</translation> </message> <message numerus="yes"> <location line="+8"/> <source>Mined balance will be available when it matures in %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+5"/> <source>This block was not received by any other nodes and will probably not be accepted!</source> <translation>Ezt a blokkot egyetlen másik csomópont sem kapta meg, így valószínűleg nem lesz elfogadva!</translation> </message> <message> <location line="+3"/> <source>Generated but not accepted</source> <translation>Legenerálva, de még el nem fogadva.</translation> </message> <message> <location line="+43"/> <source>Received with</source> <translation>Erre a címre</translation> </message> <message> <location line="+2"/> <source>Received from</source> <translation>Erről az</translation> </message> <message> <location line="+3"/> <source>Sent to</source> <translation>Erre a címre</translation> </message> <message> <location line="+2"/> <source>Payment to yourself</source> <translation>Magadnak kifizetve</translation> </message> <message> <location line="+2"/> <source>Mined</source> <translation>Kibányászva</translation> </message> <message> <location line="+38"/> <source>(n/a)</source> <translation>(nincs)</translation> </message> <message> <location line="+199"/> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation>Tranzakció állapota. Húzd ide a kurzort, hogy lásd a megerősítések számát.</translation> </message> <message> <location line="+2"/> <source>Date and time that the transaction was received.</source> <translation>Tranzakció fogadásának dátuma és időpontja.</translation> </message> <message> <location line="+2"/> <source>Type of transaction.</source> <translation>Tranzakció típusa.</translation> </message> <message> <location line="+2"/> <source>Destination address of transaction.</source> <translation>A tranzakció címzettjének címe.</translation> </message> <message> <location line="+2"/> <source>Amount removed from or added to balance.</source> <translation>Az egyenleghez jóváírt vagy ráterhelt összeg.</translation> </message> </context> <context> <name>TransactionView</name> <message> <location filename="../transactionview.cpp" line="+52"/> <location line="+16"/> <source>All</source> <translation>Mind</translation> </message> <message> <location line="-15"/> <source>Today</source> <translation>Mai</translation> </message> <message> <location line="+1"/> <source>This week</source> <translation>Ezen a héten</translation> </message> <message> <location line="+1"/> <source>This month</source> <translation>Ebben a hónapban</translation> </message> <message> <location line="+1"/> <source>Last month</source> <translation>Múlt hónapban</translation> </message> <message> <location line="+1"/> <source>This year</source> <translation>Ebben az évben</translation> </message> <message> <location line="+1"/> <source>Range...</source> <translation>Tartomány ...</translation> </message> <message> <location line="+11"/> <source>Received with</source> <translation>Erre a címre</translation> </message> <message> <location line="+2"/> <source>Sent to</source> <translation>Erre a címre</translation> </message> <message> <location line="+2"/> <source>To yourself</source> <translation>Magadnak</translation> </message> <message> <location line="+1"/> <source>Mined</source> <translation>Kibányászva</translation> </message> <message> <location line="+1"/> <source>Other</source> <translation>Más</translation> </message> <message> <location line="+7"/> <source>Enter address or label to search</source> <translation>Írd be a keresendő címet vagy címkét</translation> </message> <message> <location line="+7"/> <source>Min amount</source> <translation>Minimális összeg</translation> </message> <message> <location line="+34"/> <source>Copy address</source> <translation>Cím másolása</translation> </message> <message> <location line="+1"/> <source>Copy label</source> <translation>Címke másolása</translation> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation>Összeg másolása</translation> </message> <message> <location line="+1"/> <source>Copy transaction ID</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Edit label</source> <translation>Címke szerkesztése</translation> </message> <message> <location line="+1"/> <source>Show transaction details</source> <translation>Tranzakciós részletek megjelenítése</translation> </message> <message> <location line="+139"/> <source>Export Transaction Data</source> <translation>Tranzakció adatainak exportálása</translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>Vesszővel elválasztott fájl (*.csv)</translation> </message> <message> <location line="+8"/> <source>Confirmed</source> <translation>Megerősítve</translation> </message> <message> <location line="+1"/> <source>Date</source> <translation>Dátum</translation> </message> <message> <location line="+1"/> <source>Type</source> <translation>Típus</translation> </message> <message> <location line="+1"/> <source>Label</source> <translation>Címke</translation> </message> <message> <location line="+1"/> <source>Address</source> <translation>Cím</translation> </message> <message> <location line="+1"/> <source>Amount</source> <translation>Összeg</translation> </message> <message> <location line="+1"/> <source>ID</source> <translation>Azonosító</translation> </message> <message> <location line="+4"/> <source>Error exporting</source> <translation>Hiba lépett fel exportálás közben</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>%1 fájlba való kiírás sikertelen.</translation> </message> <message> <location line="+100"/> <source>Range:</source> <translation>Tartomány:</translation> </message> <message> <location line="+8"/> <source>to</source> <translation>meddig</translation> </message> </context> <context> <name>WalletModel</name> <message> <location filename="../walletmodel.cpp" line="+193"/> <source>Send Coins</source> <translation>Érmék küldése</translation> </message> </context> <context> <name>WalletView</name> <message> <location filename="../walletview.cpp" line="+42"/> <source>&amp;Export</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Export the data in the current tab to a file</source> <translation>Jelenlegi nézet exportálása fájlba</translation> </message> <message> <location line="+193"/> <source>Backup Wallet</source> <translation>Biztonsági másolat készítése a Tárcáról</translation> </message> <message> <location line="+0"/> <source>Wallet Data (*.dat)</source> <translation>Tárca fájl (*.dat)</translation> </message> <message> <location line="+3"/> <source>Backup Failed</source> <translation>Biztonsági másolat készítése sikertelen</translation> </message> <message> <location line="+0"/> <source>There was an error trying to save the wallet data to the new location.</source> <translation>Hiba lépett fel a Tárca másik helyre való mentése közben</translation> </message> <message> <location line="+4"/> <source>Backup Successful</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>The wallet data was successfully saved to the new location.</source> <translation type="unfinished"/> </message> </context> <context> <name>bitcoin-core</name> <message> <location filename="../bitcoinstrings.cpp" line="+94"/> <source>Fullintegritycoin version</source> <translation>Fullintegritycoin verzió</translation> </message> <message> <location line="+102"/> <source>Usage:</source> <translation>Használat:</translation> </message> <message> <location line="-29"/> <source>Send command to -server or fullintegritycoind</source> <translation>Parancs küldése a -serverhez vagy a fullintegritycoindhez </translation> </message> <message> <location line="-23"/> <source>List commands</source> <translation>Parancsok kilistázása </translation> </message> <message> <location line="-12"/> <source>Get help for a command</source> <translation>Segítség egy parancsról </translation> </message> <message> <location line="+24"/> <source>Options:</source> <translation>Opciók </translation> </message> <message> <location line="+24"/> <source>Specify configuration file (default: fullintegritycoin.conf)</source> <translation>Konfigurációs fájl (alapértelmezett: fullintegritycoin.conf) </translation> </message> <message> <location line="+3"/> <source>Specify pid file (default: fullintegritycoind.pid)</source> <translation>pid-fájl (alapértelmezett: fullintegritycoind.pid) </translation> </message> <message> <location line="-1"/> <source>Specify data directory</source> <translation>Adatkönyvtár </translation> </message> <message> <location line="-9"/> <source>Set database cache size in megabytes (default: 25)</source> <translation>Az adatbázis gyorsítótár mérete megabájtban (alapértelmezés: 25)</translation> </message> <message> <location line="-28"/> <source>Listen for connections on &lt;port&gt; (default: 9443 or testnet: 19443)</source> <translation>Csatlakozásokhoz figyelendő &lt;port&gt; (alapértelmezett: 9443 or testnet: 19443)</translation> </message> <message> <location line="+5"/> <source>Maintain at most &lt;n&gt; connections to peers (default: 125)</source> <translation>Maximálisan &lt;n&gt; számú kapcsolat fenntartása a peerekkel (alapértelmezés: 125)</translation> </message> <message> <location line="-48"/> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation>Kapcsolódás egy csomóponthoz a peerek címeinek megszerzése miatt, majd szétkapcsolás</translation> </message> <message> <location line="+82"/> <source>Specify your own public address</source> <translation>Adja meg az Ön saját nyilvános címét</translation> </message> <message> <location line="+3"/> <source>Threshold for disconnecting misbehaving peers (default: 100)</source> <translation>Helytelenül viselkedő peerek leválasztási határértéke (alapértelmezés: 100)</translation> </message> <message> <location line="-134"/> <source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source> <translation>Helytelenül viselkedő peerek kizárási ideje másodpercben (alapértelmezés: 86400)</translation> </message> <message> <location line="-29"/> <source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source> <translation type="unfinished"/> </message> <message> <location line="+27"/> <source>Listen for JSON-RPC connections on &lt;port&gt; (default: 9442 or testnet: 19442)</source> <translation>JSON-RPC csatlakozásokhoz figyelendő &lt;port&gt; (alapértelmezett: 9442 or testnet: 19442)</translation> </message> <message> <location line="+37"/> <source>Accept command line and JSON-RPC commands</source> <translation>Parancssoros és JSON-RPC parancsok elfogadása </translation> </message> <message> <location line="+76"/> <source>Run in the background as a daemon and accept commands</source> <translation>Háttérben futtatás daemonként és parancsok elfogadása </translation> </message> <message> <location line="+37"/> <source>Use the test network</source> <translation>Teszthálózat használata </translation> </message> <message> <location line="-112"/> <source>Accept connections from outside (default: 1 if no -proxy or -connect)</source> <translation type="unfinished"/> </message> <message> <location line="-80"/> <source>%s, you must set a rpcpassword in the configuration file: %s It is recommended you use the following random password: rpcuser=fullintegritycoinrpc rpcpassword=%s (you do not need to remember this password) The username and password MUST NOT be the same. If the file does not exist, create it with owner-readable-only file permissions. It is also recommended to set alertnotify so you are notified of problems; for example: alertnotify=echo %%s | mail -s &quot;Fullintegritycoin Alert&quot; admin@foo.com </source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Bind to given address and always listen on it. Use [host]:port notation for IPv6</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Cannot obtain a lock on data directory %s. Fullintegritycoin is probably already running.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds!</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>This is a pre-release test build - use at your own risk - do not use for mining or merchant applications</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source> <translation>Figyelem: a -paytxfee nagyon magas. Ennyi tranzakciós díjat fogsz fizetni, ha elküldöd a tranzakciót.</translation> </message> <message> <location line="+3"/> <source>Warning: Displayed transactions may not be correct! You may need to upgrade, or other nodes may need to upgrade.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning: Please check that your computer&apos;s date and time are correct! If your clock is wrong Fullintegritycoin will not work properly.</source> <translation>Figyelem: Ellenőrizd, hogy helyesen van-e beállítva a gépeden a dátum és az idő. A Fullintegritycoin nem fog megfelelően működni, ha rosszul van beállítvaaz órád.</translation> </message> <message> <location line="+3"/> <source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Attempt to recover private keys from a corrupt wallet.dat</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Block creation options:</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Connect only to the specified node(s)</source> <translation>Csatlakozás csak a megadott csomóponthoz</translation> </message> <message> <location line="+3"/> <source>Corrupted block database detected</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Discover own IP address (default: 1 when listening and no -externalip)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Do you want to rebuild the block database now?</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Error initializing block database</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error initializing wallet database environment %s!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error loading block database</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Error opening block database</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Error: Disk space is low!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error: Wallet locked, unable to create transaction!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error: system error: </source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to listen on any port. Use -listen=0 if you want this.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to read block info</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to read block</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to sync block index</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write block index</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write block info</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write block</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write file info</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write to coin database</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write transaction index</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write undo data</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Find peers using DNS lookup (default: 1 unless -connect)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Generate coins (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>How many blocks to check at startup (default: 288, 0 = all)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>How thorough the block verification is (0-4, default: 3)</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Not enough file descriptors available.</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Rebuild block chain index from current blk000??.dat files</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Set the number of threads to service RPC calls (default: 4)</source> <translation type="unfinished"/> </message> <message> <location line="+26"/> <source>Verifying blocks...</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Verifying wallet...</source> <translation type="unfinished"/> </message> <message> <location line="-69"/> <source>Imports blocks from external blk000??.dat file</source> <translation type="unfinished"/> </message> <message> <location line="-76"/> <source>Set the number of script verification threads (up to 16, 0 = auto, &lt;0 = leave that many cores free, default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+77"/> <source>Information</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Invalid -tor address: &apos;%s&apos;</source> <translation>Érvénytelen -tor cím: &apos;%s&apos;</translation> </message> <message> <location line="+1"/> <source>Invalid amount for -minrelaytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Invalid amount for -mintxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Maintain a full transaction index (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Maximum per-connection receive buffer, &lt;n&gt;*1000 bytes (default: 5000)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Maximum per-connection send buffer, &lt;n&gt;*1000 bytes (default: 1000)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Only accept block chain matching built-in checkpoints (default: 1)</source> <translation>Csak blokklánccal egyező beépített ellenőrző pontok elfogadása (alapértelmezés: 1)</translation> </message> <message> <location line="+1"/> <source>Only connect to nodes in network &lt;net&gt; (IPv4, IPv6 or Tor)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Output extra debugging information. Implies all other -debug* options</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Output extra network debugging information</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Prepend debug output with timestamp</source> <translation>Időbélyeges hibakeresési kimenet hozzáadása az elejéhez</translation> </message> <message> <location line="+5"/> <source>SSL options: (see the Fullintegritycoin Wiki for SSL setup instructions)</source> <translation>SSL-opciók: (lásd a Fullintegritycoin Wiki SSL-beállítási instrukcióit)</translation> </message> <message> <location line="+1"/> <source>Select the version of socks proxy to use (4-5, default: 5)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Send trace/debug info to console instead of debug.log file</source> <translation>trace/debug információ küldése a konzolra a debog.log fájl helyett</translation> </message> <message> <location line="+1"/> <source>Send trace/debug info to debugger</source> <translation>trace/debug információ küldése a debuggerre</translation> </message> <message> <location line="+5"/> <source>Set maximum block size in bytes (default: 250000)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Set minimum block size in bytes (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Shrink debug.log file on client startup (default: 1 when no -debug)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Signing transaction failed</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Specify connection timeout in milliseconds (default: 5000)</source> <translation>Csatlakozás időkerete milliszekundumban (alapértelmezett: 5000)</translation> </message> <message> <location line="+4"/> <source>System error: </source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Transaction amount too small</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transaction amounts must be positive</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transaction too large</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Use UPnP to map the listening port (default: 0)</source> <translation>UPnP-használat engedélyezése a figyelő port feltérképezésénél (default: 0)</translation> </message> <message> <location line="+1"/> <source>Use UPnP to map the listening port (default: 1 when listening)</source> <translation>UPnP-használat engedélyezése a figyelő port feltérképezésénél (default: 1 when listening)</translation> </message> <message> <location line="+1"/> <source>Use proxy to reach tor hidden services (default: same as -proxy)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Username for JSON-RPC connections</source> <translation>Felhasználói név JSON-RPC csatlakozásokhoz </translation> </message> <message> <location line="+4"/> <source>Warning</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Warning: This version is obsolete, upgrade required!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>You need to rebuild the databases using -reindex to change -txindex</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>wallet.dat corrupt, salvage failed</source> <translation type="unfinished"/> </message> <message> <location line="-50"/> <source>Password for JSON-RPC connections</source> <translation>Jelszó JSON-RPC csatlakozásokhoz </translation> </message> <message> <location line="-67"/> <source>Allow JSON-RPC connections from specified IP address</source> <translation>JSON-RPC csatlakozások engedélyezése meghatározott IP-címről </translation> </message> <message> <location line="+76"/> <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)</source> <translation>Parancsok küldése &lt;ip&gt; címen működő csomóponthoz (alapértelmezett: 127.0.0.1) </translation> </message> <message> <location line="-120"/> <source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source> <translation>Parancs, amit akkor hajt végre, amikor a legjobb blokk megváltozik (%s a cmd-ban lecserélődik a blokk hash-re)</translation> </message> <message> <location line="+147"/> <source>Upgrade wallet to latest format</source> <translation>A Tárca frissítése a legfrissebb formátumra</translation> </message> <message> <location line="-21"/> <source>Set key pool size to &lt;n&gt; (default: 100)</source> <translation>Kulcskarika mérete &lt;n&gt; (alapértelmezett: 100) </translation> </message> <message> <location line="-12"/> <source>Rescan the block chain for missing wallet transactions</source> <translation>Blokklánc újraszkennelése hiányzó tárca-tranzakciók után </translation> </message> <message> <location line="+35"/> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation>OpenSSL (https) használata JSON-RPC csatalkozásokhoz </translation> </message> <message> <location line="-26"/> <source>Server certificate file (default: server.cert)</source> <translation>Szervertanúsítvány-fájl (alapértelmezett: server.cert) </translation> </message> <message> <location line="+1"/> <source>Server private key (default: server.pem)</source> <translation>Szerver titkos kulcsa (alapértelmezett: server.pem) </translation> </message> <message> <location line="-151"/> <source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source> <translation>Elfogadható rejtjelkulcsok (alapértelmezett: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH ) </translation> </message> <message> <location line="+165"/> <source>This help message</source> <translation>Ez a súgó-üzenet </translation> </message> <message> <location line="+6"/> <source>Unable to bind to %s on this computer (bind returned error %d, %s)</source> <translation>A %s nem elérhető ezen a gépen (bind returned error %d, %s)</translation> </message> <message> <location line="-91"/> <source>Connect through socks proxy</source> <translation>Csatlakozás SOCKS proxyn keresztül</translation> </message> <message> <location line="-10"/> <source>Allow DNS lookups for -addnode, -seednode and -connect</source> <translation>DNS-kikeresés engedélyezése az addnode-nál és a connect-nél</translation> </message> <message> <location line="+55"/> <source>Loading addresses...</source> <translation>Címek betöltése...</translation> </message> <message> <location line="-35"/> <source>Error loading wallet.dat: Wallet corrupted</source> <translation>Hiba a wallet.dat betöltése közben: meghibásodott tárca</translation> </message> <message> <location line="+1"/> <source>Error loading wallet.dat: Wallet requires newer version of Fullintegritycoin</source> <translation>Hiba a wallet.dat betöltése közben: ehhez a tárcához újabb verziójú Fullintegritycoin-kliens szükséges</translation> </message> <message> <location line="+93"/> <source>Wallet needed to be rewritten: restart Fullintegritycoin to complete</source> <translation>A Tárca újraírása szükséges: Indítsa újra a teljesen a Fullintegritycoin-t</translation> </message> <message> <location line="-95"/> <source>Error loading wallet.dat</source> <translation>Hiba az wallet.dat betöltése közben</translation> </message> <message> <location line="+28"/> <source>Invalid -proxy address: &apos;%s&apos;</source> <translation>Érvénytelen -proxy cím: &apos;%s&apos;</translation> </message> <message> <location line="+56"/> <source>Unknown network specified in -onlynet: &apos;%s&apos;</source> <translation>Ismeretlen hálózat lett megadva -onlynet: &apos;%s&apos;</translation> </message> <message> <location line="-1"/> <source>Unknown -socks proxy version requested: %i</source> <translation>Ismeretlen -socks proxy kérése: %i</translation> </message> <message> <location line="-96"/> <source>Cannot resolve -bind address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Cannot resolve -externalip address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+44"/> <source>Invalid amount for -paytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation>Étvénytelen -paytxfee=&lt;összeg&gt; összeg: &apos;%s&apos;</translation> </message> <message> <location line="+1"/> <source>Invalid amount</source> <translation>Étvénytelen összeg</translation> </message> <message> <location line="-6"/> <source>Insufficient funds</source> <translation>Nincs elég fullintegritycoinod.</translation> </message> <message> <location line="+10"/> <source>Loading block index...</source> <translation>Blokkindex betöltése...</translation> </message> <message> <location line="-57"/> <source>Add a node to connect to and attempt to keep the connection open</source> <translation>Elérendő csomópont megadása and attempt to keep the connection open</translation> </message> <message> <location line="-25"/> <source>Unable to bind to %s on this computer. Fullintegritycoin is probably already running.</source> <translation>A %s nem elérhető ezen a gépen. A Fullintegritycoin valószínűleg fut már.</translation> </message> <message> <location line="+64"/> <source>Fee per KB to add to transactions you send</source> <translation>kB-onként felajánlandó díj az általad küldött tranzakciókhoz</translation> </message> <message> <location line="+19"/> <source>Loading wallet...</source> <translation>Tárca betöltése...</translation> </message> <message> <location line="-52"/> <source>Cannot downgrade wallet</source> <translation>Nem sikerült a Tárca visszaállítása a korábbi verzióra</translation> </message> <message> <location line="+3"/> <source>Cannot write default address</source> <translation>Nem sikerült az alapértelmezett címet írni.</translation> </message> <message> <location line="+64"/> <source>Rescanning...</source> <translation>Újraszkennelés...</translation> </message> <message> <location line="-57"/> <source>Done loading</source> <translation>Betöltés befejezve.</translation> </message> <message> <location line="+82"/> <source>To use the %s option</source> <translation>Használd a %s opciót</translation> </message> <message> <location line="-74"/> <source>Error</source> <translation>Hiba</translation> </message> <message> <location line="-31"/> <source>You must set rpcpassword=&lt;password&gt; in the configuration file: %s If the file does not exist, create it with owner-readable-only file permissions.</source> <translation>Be kell állítani rpcpassword=&lt;password&gt; a konfigurációs fájlban %s Ha a fájl nem létezik, hozd létre &apos;csak a felhasználó által olvasható&apos; fájl engedéllyel</translation> </message> </context> </TS>
{ "content_hash": "93573782f1b430ad6fcb9ee732cc3b32", "timestamp": "", "source": "github", "line_count": 2950, "max_line_length": 460, "avg_line_length": 37.13254237288135, "alnum_prop": 0.6213655161081238, "repo_name": "fullintegrity/Source", "id": "4275890edf1bdbc41732ce5d09d4689aca460934", "size": "110939", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/qt/locale/bitcoin_hu.ts", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "32009" }, { "name": "C++", "bytes": "2613887" }, { "name": "CSS", "bytes": "1127" }, { "name": "Makefile", "bytes": "13447" }, { "name": "Objective-C", "bytes": "1052" }, { "name": "Objective-C++", "bytes": "5864" }, { "name": "Python", "bytes": "69759" }, { "name": "Shell", "bytes": "13173" } ], "symlink_target": "" }
package com.mobgen.halo.android.framework.storage.database.dsl.annotations; import android.support.annotation.Keep; import com.mobgen.halo.android.framework.storage.database.dsl.HaloTable; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * The column of a database. */ @Keep @Documented @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.FIELD) public @interface Column { /** * The type of the field. */ enum Type { INTEGER, REAL, TEXT, BLOB, DATE, BOOLEAN, NUMERIC } /** * The type of the field. * * @return The type. */ Type type(); /** * True if unique, false otherwise. * * @return True if unique, false otherwise. */ boolean unique() default false; /** * References another column. * * @return The table referenced. */ Class<? extends HaloTable> references() default DEFAULT.class; /** * The column reference. * * @return The string with the reference. */ String columnReference() default ""; /** * Determines if a field is a primary key. * * @return True if primary key, false otherwise. */ boolean isPrimaryKey() default false; /** * Default implementation for the references annotation. */ final class DEFAULT implements HaloTable { } }
{ "content_hash": "ee2839033107c39d5a60612a16296698", "timestamp": "", "source": "github", "line_count": 76, "max_line_length": 75, "avg_line_length": 20.526315789473685, "alnum_prop": 0.6269230769230769, "repo_name": "mobgen/halo-android", "id": "11e7b146255d15ce60e62b5fe642eaf23d32a9c4", "size": "1560", "binary": false, "copies": "1", "ref": "refs/heads/develop", "path": "sdk/halo-framework/src/main/java/com/mobgen/halo/android/framework/storage/database/dsl/annotations/Column.java", "mode": "33261", "license": "apache-2.0", "language": [ { "name": "Groovy", "bytes": "30963" }, { "name": "Java", "bytes": "2807330" }, { "name": "Python", "bytes": "5143" }, { "name": "Shell", "bytes": "2147" } ], "symlink_target": "" }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" /> <meta name="viewport" content="width=device-width,initial-scale=1"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="lang:clipboard.copy" content="Copy to clipboard"> <meta name="lang:clipboard.copied" content="Copied to clipboard"> <meta name="lang:search.language" content="en"> <meta name="lang:search.pipeline.stopwords" content="True"> <meta name="lang:search.pipeline.trimmer" content="True"> <meta name="lang:search.result.none" content="No matching documents"> <meta name="lang:search.result.one" content="1 matching document"> <meta name="lang:search.result.other" content="# matching documents"> <meta name="lang:search.tokenizer" content="[\s\-]+"> <link href="https://fonts.gstatic.com/" rel="preconnect" crossorigin> <link href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,500,700|Roboto:300,400,400i,700&display=fallback" rel="stylesheet"> <style> body, input { font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif } code, kbd, pre { font-family: "Roboto Mono", "Courier New", Courier, monospace } </style> <link rel="stylesheet" href="../_static/stylesheets/application.css"/> <link rel="stylesheet" href="../_static/stylesheets/application-palette.css"/> <link rel="stylesheet" href="../_static/stylesheets/application-fixes.css"/> <link rel="stylesheet" href="../_static/fonts/material-icons.css"/> <meta name="theme-color" content="#3f51b5"> <script src="../_static/javascripts/modernizr.js"></script> <title>statsmodels.sandbox.regression.gmm.IVRegressionResults.resid &#8212; statsmodels</title> <link rel="icon" type="image/png" sizes="32x32" href="../_static/icons/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="16x16" href="../_static/icons/favicon-16x16.png"> <link rel="manifest" href="../_static/icons/site.webmanifest"> <link rel="mask-icon" href="../_static/icons/safari-pinned-tab.svg" color="#919191"> <meta name="msapplication-TileColor" content="#2b5797"> <meta name="msapplication-config" content="../_static/icons/browserconfig.xml"> <link rel="stylesheet" href="../_static/stylesheets/examples.css"> <link rel="stylesheet" href="../_static/stylesheets/deprecation.css"> <link rel="stylesheet" type="text/css" href="../_static/pygments.css" /> <link rel="stylesheet" type="text/css" href="../_static/material.css" /> <link rel="stylesheet" type="text/css" href="../_static/graphviz.css" /> <link rel="stylesheet" type="text/css" href="../_static/plot_directive.css" /> <script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script> <script src="../_static/jquery.js"></script> <script src="../_static/underscore.js"></script> <script src="../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../_static/doctools.js"></script> <script src="../_static/sphinx_highlight.js"></script> <script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script> <link rel="shortcut icon" href="../_static/favicon.ico"/> <link rel="author" title="About these documents" href="../about.html" /> <link rel="index" title="Index" href="../genindex.html" /> <link rel="search" title="Search" href="../search.html" /> <link rel="next" title="statsmodels.sandbox.regression.gmm.IVRegressionResults.resid_pearson" href="statsmodels.sandbox.regression.gmm.IVRegressionResults.resid_pearson.html" /> <link rel="prev" title="statsmodels.sandbox.regression.gmm.IVRegressionResults.pvalues" href="statsmodels.sandbox.regression.gmm.IVRegressionResults.pvalues.html" /> </head> <body dir=ltr data-md-color-primary=indigo data-md-color-accent=blue> <svg class="md-svg"> <defs data-children-count="0"> <svg xmlns="http://www.w3.org/2000/svg" width="416" height="448" viewBox="0 0 416 448" id="__github"><path fill="currentColor" d="M160 304q0 10-3.125 20.5t-10.75 19T128 352t-18.125-8.5-10.75-19T96 304t3.125-20.5 10.75-19T128 256t18.125 8.5 10.75 19T160 304zm160 0q0 10-3.125 20.5t-10.75 19T288 352t-18.125-8.5-10.75-19T256 304t3.125-20.5 10.75-19T288 256t18.125 8.5 10.75 19T320 304zm40 0q0-30-17.25-51T296 232q-10.25 0-48.75 5.25Q229.5 240 208 240t-39.25-2.75Q130.75 232 120 232q-29.5 0-46.75 21T56 304q0 22 8 38.375t20.25 25.75 30.5 15 35 7.375 37.25 1.75h42q20.5 0 37.25-1.75t35-7.375 30.5-15 20.25-25.75T360 304zm56-44q0 51.75-15.25 82.75-9.5 19.25-26.375 33.25t-35.25 21.5-42.5 11.875-42.875 5.5T212 416q-19.5 0-35.5-.75t-36.875-3.125-38.125-7.5-34.25-12.875T37 371.5t-21.5-28.75Q0 312 0 260q0-59.25 34-99-6.75-20.5-6.75-42.5 0-29 12.75-54.5 27 0 47.5 9.875t47.25 30.875Q171.5 96 212 96q37 0 70 8 26.25-20.5 46.75-30.25T376 64q12.75 25.5 12.75 54.5 0 21.75-6.75 42 34 40 34 99.5z"/></svg> </defs> </svg> <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer"> <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search"> <label class="md-overlay" data-md-component="overlay" for="__drawer"></label> <a href="#generated/statsmodels.sandbox.regression.gmm.IVRegressionResults.resid" tabindex="1" class="md-skip"> Skip to content </a> <header class="md-header" data-md-component="header"> <nav class="md-header-nav md-grid"> <div class="md-flex navheader"> <div class="md-flex__cell md-flex__cell--shrink"> <a href="../index.html" title="statsmodels" class="md-header-nav__button md-logo"> <img src="../_static/statsmodels-logo-v2-bw.svg" height="26" alt="statsmodels logo"> </a> </div> <div class="md-flex__cell md-flex__cell--shrink"> <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label> </div> <div class="md-flex__cell md-flex__cell--stretch"> <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title"> <span class="md-header-nav__topic">statsmodels 0.13.3</span> <span class="md-header-nav__topic"> statsmodels.sandbox.regression.gmm.IVRegressionResults.resid </span> </div> </div> <div class="md-flex__cell md-flex__cell--shrink"> <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label> <div class="md-search" data-md-component="search" role="dialog"> <label class="md-search__overlay" for="__search"></label> <div class="md-search__inner" role="search"> <form class="md-search__form" action="../search.html" method="get" name="search"> <input type="text" class="md-search__input" name="q" placeholder="Search" autocapitalize="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active"> <label class="md-icon md-search__icon" for="__search"></label> <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1"> &#xE5CD; </button> </form> <div class="md-search__output"> <div class="md-search__scrollwrap" data-md-scrollfix> <div class="md-search-result" data-md-component="result"> <div class="md-search-result__meta"> Type to start searching </div> <ol class="md-search-result__list"></ol> </div> </div> </div> </div> </div> </div> <div class="md-flex__cell md-flex__cell--shrink"> <div class="md-header-nav__source"> <a href="https://github.com/statsmodels/statsmodels" title="Go to repository" class="md-source" data-md-source="github"> <div class="md-source__icon"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24" width="28" height="28"> <use xlink:href="#__github" width="24" height="24"></use> </svg> </div> <div class="md-source__repository"> statsmodels </div> </a> </div> </div> <script src="../_static/javascripts/version_dropdown.js"></script> <script> var json_loc = "../../versions-v2.json", target_loc = "../../", text = "Versions"; $( document ).ready( add_version_dropdown(json_loc, target_loc, text)); </script> </div> </nav> </header> <div class="md-container"> <nav class="md-tabs" data-md-component="tabs"> <div class="md-tabs__inner md-grid"> <ul class="md-tabs__list"> <li class="md-tabs__item"><a href="../user-guide.html" class="md-tabs__link">User Guide</a></li> <li class="md-tabs__item"><a href="../gmm.html" class="md-tabs__link">Generalized Method of Moments <code class="xref py py-mod docutils literal notranslate"><span class="pre">gmm</span></code></a></li> <li class="md-tabs__item"><a href="statsmodels.sandbox.regression.gmm.IVRegressionResults.html" class="md-tabs__link">statsmodels.sandbox.regression.gmm.IVRegressionResults</a></li> </ul> </div> </nav> <main class="md-main"> <div class="md-main__inner md-grid" data-md-component="container"> <div class="md-sidebar md-sidebar--primary" data-md-component="navigation"> <div class="md-sidebar__scrollwrap"> <div class="md-sidebar__inner"> <nav class="md-nav md-nav--primary" data-md-level="0"> <label class="md-nav__title md-nav__title--site" for="__drawer"> <a href="../index.html" title="statsmodels" class="md-nav__button md-logo"> <img src="../_static/statsmodels-logo-v2-bw.svg" alt=" logo" width="48" height="48"> </a> <a href="../index.html" title="statsmodels">statsmodels 0.13.3</a> </label> <div class="md-nav__source"> <a href="https://github.com/statsmodels/statsmodels" title="Go to repository" class="md-source" data-md-source="github"> <div class="md-source__icon"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24" width="28" height="28"> <use xlink:href="#__github" width="24" height="24"></use> </svg> </div> <div class="md-source__repository"> statsmodels </div> </a> </div> <ul class="md-nav__list"> <li class="md-nav__item"> <a href="../install.html" class="md-nav__link">Installing statsmodels</a> </li> <li class="md-nav__item"> <a href="../gettingstarted.html" class="md-nav__link">Getting started</a> </li> <li class="md-nav__item"> <a href="../user-guide.html" class="md-nav__link">User Guide</a> <ul class="md-nav__list"> <li class="md-nav__item"> <a href="../user-guide.html#background" class="md-nav__link">Background</a> </li> <li class="md-nav__item"> <a href="../user-guide.html#regression-and-linear-models" class="md-nav__link">Regression and Linear Models</a> </li> <li class="md-nav__item"> <a href="../user-guide.html#time-series-analysis" class="md-nav__link">Time Series Analysis</a> </li> <li class="md-nav__item"> <a href="../user-guide.html#other-models" class="md-nav__link">Other Models</a> <ul class="md-nav__list"> <li class="md-nav__item"> <a href="../duration.html" class="md-nav__link">Methods for Survival and Duration Analysis</a> </li> <li class="md-nav__item"> <a href="../nonparametric.html" class="md-nav__link">Nonparametric Methods <code class="xref py py-mod docutils literal notranslate"><span class="pre">nonparametric</span></code></a> </li> <li class="md-nav__item"> <a href="../gmm.html" class="md-nav__link">Generalized Method of Moments <code class="xref py py-mod docutils literal notranslate"><span class="pre">gmm</span></code></a> </li> <li class="md-nav__item"> <a href="../miscmodels.html" class="md-nav__link">Other Models <code class="xref py py-mod docutils literal notranslate"><span class="pre">miscmodels</span></code></a> </li> <li class="md-nav__item"> <a href="../multivariate.html" class="md-nav__link">Multivariate Statistics <code class="xref py py-mod docutils literal notranslate"><span class="pre">multivariate</span></code></a> </li></ul> </li> <li class="md-nav__item"> <a href="../user-guide.html#statistics-and-tools" class="md-nav__link">Statistics and Tools</a> </li> <li class="md-nav__item"> <a href="../user-guide.html#data-sets" class="md-nav__link">Data Sets</a> </li> <li class="md-nav__item"> <a href="../user-guide.html#sandbox" class="md-nav__link">Sandbox</a> </li></ul> </li> <li class="md-nav__item"> <a href="../examples/index.html" class="md-nav__link">Examples</a> </li> <li class="md-nav__item"> <a href="../api.html" class="md-nav__link">API Reference</a> </li> <li class="md-nav__item"> <a href="../about.html" class="md-nav__link">About statsmodels</a> </li> <li class="md-nav__item"> <a href="../dev/index.html" class="md-nav__link">Developer Page</a> </li> <li class="md-nav__item"> <a href="../release/index.html" class="md-nav__link">Release Notes</a> </li> </ul> </nav> </div> </div> </div> <div class="md-sidebar md-sidebar--secondary" data-md-component="toc"> <div class="md-sidebar__scrollwrap"> <div class="md-sidebar__inner"> <nav class="md-nav md-nav--secondary"> <label class="md-nav__title" for="__toc">Contents</label> <ul class="md-nav__list" data-md-scrollfix=""> <li class="md-nav__item"><a href="#generated-statsmodels-sandbox-regression-gmm-ivregressionresults-resid--page-root" class="md-nav__link">statsmodels.sandbox.regression.gmm.IVRegressionResults.resid</a><nav class="md-nav"> <ul class="md-nav__list"> <li class="md-nav__item"><a href="#statsmodels.sandbox.regression.gmm.IVRegressionResults.resid" class="md-nav__link"><code class="docutils literal notranslate"><span class="pre">IVRegressionResults.resid</span></code></a> </li></ul> </nav> </li> <li class="md-nav__item"><a class="md-nav__extra_link" href="../_sources/generated/statsmodels.sandbox.regression.gmm.IVRegressionResults.resid.rst.txt">Show Source</a> </li> <li id="searchbox" class="md-nav__item"></li> </ul> </nav> </div> </div> </div> <div class="md-content"> <article class="md-content__inner md-typeset" role="main"> <section id="statsmodels-sandbox-regression-gmm-ivregressionresults-resid"> <h1 id="generated-statsmodels-sandbox-regression-gmm-ivregressionresults-resid--page-root">statsmodels.sandbox.regression.gmm.IVRegressionResults.resid<a class="headerlink" href="#generated-statsmodels-sandbox-regression-gmm-ivregressionresults-resid--page-root" title="Permalink to this heading">¶</a></h1> <dl class="py attribute"> <dt class="sig sig-object py" id="statsmodels.sandbox.regression.gmm.IVRegressionResults.resid"> <span class="sig-prename descclassname"><span class="pre">IVRegressionResults.</span></span><span class="sig-name descname"><span class="pre">resid</span></span><a class="headerlink" href="#statsmodels.sandbox.regression.gmm.IVRegressionResults.resid" title="Permalink to this definition">¶</a></dt> <dd><p>The residuals of the model.</p> </dd></dl> </section> </article> </div> </div> </main> </div> <footer class="md-footer"> <div class="md-footer-nav"> <nav class="md-footer-nav__inner md-grid"> <a href="statsmodels.sandbox.regression.gmm.IVRegressionResults.pvalues.html" title="statsmodels.sandbox.regression.gmm.IVRegressionResults.pvalues" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev"> <div class="md-flex__cell md-flex__cell--shrink"> <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i> </div> <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title"> <span class="md-flex__ellipsis"> <span class="md-footer-nav__direction"> Previous </span> statsmodels.sandbox.regression.gmm.IVRegressionResults.pvalues </span> </div> </a> <a href="statsmodels.sandbox.regression.gmm.IVRegressionResults.resid_pearson.html" title="statsmodels.sandbox.regression.gmm.IVRegressionResults.resid_pearson" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next"> <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title"><span class="md-flex__ellipsis"> <span class="md-footer-nav__direction"> Next </span> statsmodels.sandbox.regression.gmm.IVRegressionResults.resid_pearson </span> </div> <div class="md-flex__cell md-flex__cell--shrink"><i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i> </div> </a> </nav> </div> <div class="md-footer-meta md-typeset"> <div class="md-footer-meta__inner md-grid"> <div class="md-footer-copyright"> <div class="md-footer-copyright__highlight"> &#169; Copyright 2009-2019, Josef Perktold, Skipper Seabold, Jonathan Taylor, statsmodels-developers. </div> Last updated on Nov 01, 2022. <br/> Created using <a href="http://www.sphinx-doc.org/">Sphinx</a> 5.3.0. and <a href="https://github.com/bashtage/sphinx-material/">Material for Sphinx</a> </div> </div> </div> </footer> <script src="../_static/javascripts/application.js"></script> <script>app.initialize({version: "1.0.4", url: {base: ".."}})</script> </body> </html>
{ "content_hash": "2b3e18e7d239846d69d8baa088f17994", "timestamp": "", "source": "github", "line_count": 471, "max_line_length": 999, "avg_line_length": 40.339702760084926, "alnum_prop": 0.609, "repo_name": "statsmodels/statsmodels.github.io", "id": "94a60068b9b7ee04ad0a6e151b7ec053967f2e34", "size": "19004", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "v0.13.3/generated/statsmodels.sandbox.regression.gmm.IVRegressionResults.resid.html", "mode": "33188", "license": "bsd-3-clause", "language": [], "symlink_target": "" }
from __future__ import unicode_literals AUTHOR = u'Mitchell Barry' AUTHOR_EMAIL = u'mitch.barry@gmail.com' ABOUT_AUTHOR = u'Software Developer, Person' SITENAME = u'Mitchell Barry' SITEURL = 'http://localhost:8000' PATH = 'content' THEME = 'notmyidea' THEME = 'themes/pure' TIMEZONE = 'America/Chicago' DEFAULT_LANG = u'en' DEFAULT_PAGINATION = 10 # Feed generation is usually not desired when developing FEED_ALL_ATOM = None CATEGORY_FEED_ATOM = None TRANSLATION_FEED_ATOM = None # Plugins PLUGIN_PATHS = ['plugins'] PLUGINS = ['gravitar','sitemap','tipue_search',] # Social widget SOCIAL = (('google-plus', 'https://google.com/+MitchellBarry'), ('github', 'https://github.com/mitch-b'), ('twitter','https://twitter.com/mitchbarry'),) FOOTER_LINKS = (('Source', 'https://github.com/mitch-b/web'), ('RSS', 'http://mitchbarry.com/feeds/all.atom.xml'), ('Pelican', 'http://blog.getpelican.com/'), ('PurePelican (fork)', 'https://github.com/mitch-b/pelican-purecss'),) DISPLAY_PAGES_ON_MENU = False MENUITEMS = [ ('Archive', 'archives.html'), ('About', 'about/'), ('Contact', 'contact/'), ('Projects', 'category/projects.html'), ] ARTICLE_URL = '{slug}/' ARTICLE_SAVE_AS = '{slug}/index.html' PAGE_URL = '{slug}/' PAGE_SAVE_AS = '{slug}/index.html' # Uncomment following line if you want document-relative URLs when developing #RELATIVE_URLS = True # These folders will copy from content to output directly STATIC_PATHS = ['images', 'assets'] DIRECT_TEMPLATES = (('index', 'tags', 'categories', 'archives', 'search')) # Pure theme settings COVER_IMG_URL = '/images/zealandia.jpg' PROFILE_IMAGE_URL = '/images/glass.jpg' TAGLINE = 'Software Developer, Person' DISQUS_SITENAME = '' GOOGLE_ANALYTICS = '' SITEMAP = { 'format': 'xml', 'priorities': { 'articles': 0.5, 'indexes': 0.5, 'pages': 0.5 }, 'changefreqs': { 'articles': 'monthly', 'indexes': 'daily', 'pages': 'monthly' } }
{ "content_hash": "53cbb91ac7b54a08251feb689d77db37", "timestamp": "", "source": "github", "line_count": 78, "max_line_length": 86, "avg_line_length": 26.102564102564102, "alnum_prop": 0.6370333988212181, "repo_name": "mitch-b/web", "id": "27887dc04090673a862d4fc8a2146bb5aaefabae", "size": "2084", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "pelicanconf.py", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "3582" }, { "name": "HTML", "bytes": "171" }, { "name": "JavaScript", "bytes": "24583" }, { "name": "Python", "bytes": "26898" } ], "symlink_target": "" }
var ClearBufferCommand = function() { this.Extends = SimpleCommand; this.mediator = null; this.execute = function(note) { alert("ClearBufferCommand"); this.mediator = note.getBody(); try { var content = ''; var commandBuffer = this.mediator.getCommandBuffer(); if (commandBuffer) { var buffer = commandBuffer.getBuffer(); for (var i in buffer) { if (buffer[i]) { var command = buffer[i]; content += command.print()+"\n"; } } //MUST STAY *** ALERT *** alert("ClearBufferCommand - commandBuffer:\n"+commandBuffer.print()); } //Utils.alert("ClearRelationBufferCommand:\n"+content); this.mediator.setCommandBuffer(new CommandBuffer()); this.mediator.setLastCommand(null,false); this.mediator.setMessageText("Relation Buffer cleared."); } catch(error) { Utils.alert("ClearBufferCommand - error: "+error.message,Utils.LOG_LEVEL_ERROR); } }; }; ClearBufferCommand = new Class(new ClearBufferCommand());
{ "content_hash": "baf8c929d6f1abe7ab20790cd11f93ce", "timestamp": "", "source": "github", "line_count": 30, "max_line_length": 83, "avg_line_length": 32.86666666666667, "alnum_prop": 0.6693711967545639, "repo_name": "sjamayee/sjamayee", "id": "6b9511dfed4dfe07d2e5ed74459bb368a9c5d26e", "size": "997", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/sjamayee/js_old/pmvc/controller/common/ClearBufferCommand.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "203799" }, { "name": "JavaScript", "bytes": "5710906" }, { "name": "PHP", "bytes": "102128" }, { "name": "Python", "bytes": "2259" } ], "symlink_target": "" }
<html> <body> <p>Reports illegal syntax in format strings, format specifiers that are incompatible with the given arguments, insufficient arguments given for a format string, and so on.</p> <p>The inspection works in the following places:</p> <ul> <li><code>"&hellip;".format(&hellip;)</code></li> <li><code>value.formatted("&hellip;")</code></li> <li><code>String.format("&hellip;", &hellip;)</code></li> <li><code>printf("&hellip;", &hellip;)</code></li> <li><code>System.out.printf("&hellip;", &hellip;)</code></li> <li>Interpolated strings</li> </ul> <!-- tooltip end --> </body> </html>
{ "content_hash": "9e2197a8e370827824f06d416645aa31", "timestamp": "", "source": "github", "line_count": 16, "max_line_length": 110, "avg_line_length": 38.6875, "alnum_prop": 0.6494345718901454, "repo_name": "JetBrains/intellij-scala", "id": "10f012003cf3cabe9bc8d6139ec5282fbf0a42e6", "size": "619", "binary": false, "copies": "1", "ref": "refs/heads/idea223.x", "path": "scala/scala-impl/resources/inspectionDescriptions/ScalaMalformedFormatString.html", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "HTML", "bytes": "106688" }, { "name": "Java", "bytes": "1165562" }, { "name": "Lex", "bytes": "45405" }, { "name": "Scala", "bytes": "18656869" } ], "symlink_target": "" }
namespace SelfLoadRO.DataAccess.ERCLevel { public partial interface ID01_ContinentCollDal { } }
{ "content_hash": "7ae2671f031630e5a6e20d4d0f765fda", "timestamp": "", "source": "github", "line_count": 6, "max_line_length": 50, "avg_line_length": 19, "alnum_prop": 0.6929824561403509, "repo_name": "CslaGenFork/CslaGenFork", "id": "29f2e24d2e67f4704006a5d3a97dff535920e942", "size": "114", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "trunk/Samples/DeepLoad/DAL-DTO/SelfLoadRO.DataAccess/ERCLevel/ID01_ContinentCollDal.cs", "mode": "33188", "license": "mit", "language": [ { "name": "ASP", "bytes": "4816094" }, { "name": "Assembly", "bytes": "73066" }, { "name": "C#", "bytes": "12314305" }, { "name": "C++", "bytes": "313681" }, { "name": "HTML", "bytes": "30950" }, { "name": "PHP", "bytes": "35716" }, { "name": "PLpgSQL", "bytes": "2164471" }, { "name": "Pascal", "bytes": "1244" }, { "name": "PowerShell", "bytes": "1687" }, { "name": "SourcePawn", "bytes": "500196" }, { "name": "Visual Basic", "bytes": "3027224" } ], "symlink_target": "" }
module CaseForm module Element class TimeZoneInput < Input self.allowed_options << [:readonly, :blank, :disabled, :priority_zones, :zones, :default, :time_zone] private def default_options options[:default] = options.delete(:time_zone) || "UTC" options[:include_blank] = options.delete(:blank) || false super end def input builder.time_zone_select(specific_method, priority_zones, options, html_options) end def priority_zones options.delete(:priority_zones) || nil end end end end
{ "content_hash": "00e02f56025497de78cab6e6643ff6b3", "timestamp": "", "source": "github", "line_count": 23, "max_line_length": 90, "avg_line_length": 28.956521739130434, "alnum_prop": 0.5525525525525525, "repo_name": "spiritsc/CaseForm", "id": "73536cbe5ff5147d052b0fbaa50b0b51e9d03134", "size": "682", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "lib/case_form/element/inputs/datetime/time_zone_input.rb", "mode": "33188", "license": "mit", "language": [ { "name": "JavaScript", "bytes": "0" }, { "name": "Ruby", "bytes": "182710" } ], "symlink_target": "" }
package com.manchey.model.vo.wechat.message.response; import com.manchey.model.vo.wechat.message.MediaMessage; import com.manchey.utils.wechat.AdapterCDATA; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; /** * 回复视频消息 * Created by Ray on 2016/5/27. */ @XmlRootElement(name = "xml") @XmlAccessorType(XmlAccessType.FIELD) public class ResVideoMessage extends MediaMessage { @XmlElement(name = "Video") private Video video; public Video getVideo() { return video; } public void setVideo(Video video) { this.video = video; } @XmlAccessorType(XmlAccessType.FIELD) public static class Video { @XmlElement(name = "Title") @XmlJavaTypeAdapter(AdapterCDATA.class) private String title; // 视频消息的标题 @XmlElement(name = "Description") @XmlJavaTypeAdapter(AdapterCDATA.class) private String description; // 视频消息的描述 public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } } }
{ "content_hash": "fc08f8c4133c8c8f6b1709ec96e19595", "timestamp": "", "source": "github", "line_count": 58, "max_line_length": 61, "avg_line_length": 25.5, "alnum_prop": 0.6713995943204868, "repo_name": "RayKr/manchey", "id": "beb09c6ecc45ead3442ceb3f3fecb2fd1df9bc1e", "size": "1519", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/main/java/com/manchey/model/vo/wechat/message/response/ResVideoMessage.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "135219" } ], "symlink_target": "" }
scripts ======= Small scripts and utilities, often for using other programs with Tor, routing traffic safely, removing fingerprintable system traits, and deploying/securing remote systems.
{ "content_hash": "e41e68ae45ea7f55bab210fe9844a9ec", "timestamp": "", "source": "github", "line_count": 4, "max_line_length": 172, "avg_line_length": 47.5, "alnum_prop": 0.8, "repo_name": "DrWhax/scripts", "id": "65546969babf34414a99d78e673c4f0e798db518", "size": "190", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "README.md", "mode": "33188", "license": "mit", "language": [ { "name": "Shell", "bytes": "829" } ], "symlink_target": "" }
package com.linkedin.pinot.core.operator.transform.transformer.datetime; import com.linkedin.pinot.common.data.DateTimeFormatSpec; import com.linkedin.pinot.common.data.DateTimeGranularitySpec; import javax.annotation.Nonnull; /** * Date time transformer to transform and bucket date time values from simple date format to epoch format. */ public class SDFToEpochTransformer extends BaseDateTimeTransformer<String[], long[]> { public SDFToEpochTransformer(DateTimeFormatSpec inputFormat, DateTimeFormatSpec outputFormat, DateTimeGranularitySpec outputGranularity) { super(inputFormat, outputFormat, outputGranularity); } @Override public void transform(@Nonnull String[] input, @Nonnull long[] output, int length) { for (int i = 0; i < length; i++) { output[i] = transformMillisToEpoch(transformToOutputGranularity(transformSDFToMillis(input[i]))); } } }
{ "content_hash": "3604929a2e674ced59baa890e8fe63ee", "timestamp": "", "source": "github", "line_count": 25, "max_line_length": 106, "avg_line_length": 35.88, "alnum_prop": 0.7748049052396878, "repo_name": "apucher/pinot", "id": "6206418738a76b1167762d1f9eb79b173c6d3246", "size": "1534", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "pinot-core/src/main/java/com/linkedin/pinot/core/operator/transform/transformer/datetime/SDFToEpochTransformer.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "ANTLR", "bytes": "4620" }, { "name": "Batchfile", "bytes": "7738" }, { "name": "CSS", "bytes": "925082" }, { "name": "FreeMarker", "bytes": "243834" }, { "name": "HTML", "bytes": "274305" }, { "name": "Java", "bytes": "14420303" }, { "name": "JavaScript", "bytes": "5189610" }, { "name": "Makefile", "bytes": "8076" }, { "name": "Python", "bytes": "36574" }, { "name": "Shell", "bytes": "51677" }, { "name": "Thrift", "bytes": "5028" } ], "symlink_target": "" }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TrenCalatorWin8.Parameters { public class RouteSearchParameter { public string Plecare { get; set; } public string Sosire { get; set; } public string Via { get; set; } public double Data { get; set; } } }
{ "content_hash": "031910af9ab240a3c89257534a76e853", "timestamp": "", "source": "github", "line_count": 16, "max_line_length": 43, "avg_line_length": 23.5625, "alnum_prop": 0.6684350132625995, "repo_name": "radu-ungureanu/TrenCalator", "id": "54391a5e20ff8432a72e039f8340d7aec08f644a", "size": "379", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Windows8/TrenCalatorWin8/Parameters/RouteSearchParameter.cs", "mode": "33188", "license": "mit", "language": [ { "name": "C#", "bytes": "224429" } ], "symlink_target": "" }
package com.github.fellowship_of_the_bus package tdtd package game import scala.collection.mutable.Set import scala.util.Random import scala.math._ abstract class AI { def pick(r: Float, c: Float, enemies: Set[Enemy]) : Enemy def pick(r: Float, c: Float, enemiesU: Set[Enemy], enemiesD: Set[Enemy], enemiesL: Set[Enemy], enemiesR: Set[Enemy]) : Enemy = { throw new IllegalArgumentException } override def toString() : String } class RandomAI extends AI { val rand = new Random() override def pick(r: Float, c: Float, enemies: Set[Enemy]) : Enemy = { enemies.maxBy(x => rand.nextInt()) } override def toString() : String = "Random" } class ClosestAI extends AI { override def pick(r: Float, c: Float, enemies: Set[Enemy]) : Enemy = { enemies.minBy(enemy => { val ydiff = r - enemy.r val xdiff = c - enemy.c sqrt((xdiff * xdiff) + (ydiff * ydiff)) } ) } override def toString() : String = "Closest to Tower" } class ClosestToGoalAI extends AI { override def pick(r: Float, c: Float, enemies: Set[Enemy]) : Enemy = { enemies.minBy(enemy => enemy.place.dist) } override def toString() : String = "Closest to Goal" } class SteamRandomAI extends AI { val rand = new Random() override def pick(r: Float, c: Float, enemies: Set[Enemy]): Enemy = { throw new IllegalArgumentException } override def pick(r: Float, c: Float, enemiesU: Set[Enemy], enemiesD: Set[Enemy], enemiesL: Set[Enemy], enemiesR: Set[Enemy]) : Enemy = { val enemies = enemiesU ++ enemiesL ++ enemiesD ++ enemiesR enemies.maxBy(x => rand.nextInt()) } override def toString() : String = "Random Direction" } class SteamClosestAI extends AI { override def pick(r: Float, c: Float, enemies: Set[Enemy]): Enemy = { throw new IllegalArgumentException } override def pick(r: Float, c: Float, enemiesU: Set[Enemy], enemiesD: Set[Enemy], enemiesL: Set[Enemy], enemiesR: Set[Enemy]) : Enemy = { val enemies = enemiesU ++ enemiesL ++ enemiesD ++ enemiesR; enemies.minBy(enemy => { val ydiff = r - enemy.r val xdiff = c - enemy.c sqrt((xdiff * xdiff) + (ydiff * ydiff)) } ) } override def toString() : String = "Closest To Tower" } class SteamClosestToGoalAI extends AI { override def pick(r: Float, c: Float, enemies: Set[Enemy]): Enemy = { throw new IllegalArgumentException } override def pick(r: Float, c: Float, enemiesU: Set[Enemy], enemiesD: Set[Enemy], enemiesL: Set[Enemy], enemiesR: Set[Enemy]) : Enemy = { val enemies = enemiesU ++ enemiesL ++ enemiesD ++ enemiesR; enemies.minBy(enemy => enemy.place.dist) } override def toString() : String = "Closest To Goal" }
{ "content_hash": "0a9ee56f0363c33085a2f43fc13847f0", "timestamp": "", "source": "github", "line_count": 97, "max_line_length": 79, "avg_line_length": 27.237113402061855, "alnum_prop": 0.6760030280090841, "repo_name": "Fellowship-of-the-Bus/tdtd", "id": "b66998ea4042c3672700f7270bb518315c3cfa82", "size": "2642", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/main/scala/game/AI.scala", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Scala", "bytes": "106971" } ], "symlink_target": "" }
package net.happybrackets.develop.instruments.sample; import net.beadsproject.beads.events.KillTrigger; import net.beadsproject.beads.ugens.Envelope; import net.happybrackets.core.HBAction; import net.happybrackets.core.HBReset; import net.happybrackets.core.instruments.SampleModule; import net.happybrackets.device.HB; import java.lang.invoke.MethodHandles; public class BasicSamplePlayerEnvelope implements HBAction, HBReset { // Change to the number of audio Channels on your device final int NUMBER_AUDIO_CHANNELS = 1; // This variable will become true when the composition is reset boolean compositionReset = false; @Override public void action(HB hb) { /***** Type your HBAction code below this line ******/ // remove this code if you do not want other compositions to run at the same time as this one hb.reset(); hb.setStatus(this.getClass().getSimpleName() + " Loaded"); Envelope playback_rate = new Envelope(1); SampleModule player = new SampleModule(); player.setRate(playback_rate); if (!player.setSample(player.EXAMPLE_SAMPLE_NAME)) { hb.setStatus("Failed to load " + player.EXAMPLE_SAMPLE_NAME); } playback_rate.addSegment(0.5f, 1000); playback_rate.addSegment(0.5f, 2000); playback_rate.addSegment(1, 1000); playback_rate.addSegment(1, 2000); playback_rate.addSegment(2, 2000); playback_rate.addSegment(2, 1000, new KillTrigger(player)); /***** Type your HBAction code above this line ******/ } /** * Add any code you need to have occur when a reset occurs */ @Override public void doReset() { compositionReset = true; /***** Type your HBReset code below this line ******/ /***** Type your HBReset code above this line ******/ } //<editor-fold defaultstate="collapsed" desc="Debug Start"> /** * This function is used when running sketch in IntelliJ IDE for debugging or testing * * @param args standard args required */ public static void main(String[] args) { try { HB.runDebug(MethodHandles.lookup().lookupClass()); } catch (Exception e) { e.printStackTrace(); } } //</editor-fold> }
{ "content_hash": "98fd5991e642b2e1ecbeb5b70793539d", "timestamp": "", "source": "github", "line_count": 75, "max_line_length": 101, "avg_line_length": 31.093333333333334, "alnum_prop": 0.6462264150943396, "repo_name": "orsjb/HappyBrackets", "id": "23285687649f7b451625ab20c35842be7074e407", "size": "2332", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "HappyBrackets/src/test/java/net/happybrackets/develop/instruments/sample/BasicSamplePlayerEnvelope.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "436" }, { "name": "CSS", "bytes": "12842" }, { "name": "Groovy", "bytes": "384" }, { "name": "HTML", "bytes": "4861342" }, { "name": "Java", "bytes": "1905535" }, { "name": "JavaScript", "bytes": "827" }, { "name": "PHP", "bytes": "3097" }, { "name": "Python", "bytes": "230" }, { "name": "Shell", "bytes": "47737" } ], "symlink_target": "" }
ActiveRecord::Schema[6.1].define(version: 20201030110219) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" create_table "clips", force: :cascade do |t| t.integer "raga_id" t.string "title", null: false t.string "url", null: false t.string "embed_code" t.string "thumbnail_url" t.datetime "created_at", null: false t.datetime "updated_at", null: false end add_index "clips", ["raga_id"], name: "index_clips_on_raga_id", using: :btree create_table "ragas", force: :cascade do |t| t.string "title", null: false t.string "ascending_scale", null: false t.string "descending_scale", null: false t.string "thaat" t.string "pakad" t.string "drone" t.string "samvaadi" t.string "vaadi" t.string "time" t.string "chakra" t.string "spotify_playlist_url" t.string "description" t.string "slug", null: false t.integer "clips_count", default: 0, null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false end add_index "ragas", ["slug"], name: "index_ragas_on_slug", unique: true, using: :btree add_index "ragas", ["title"], name: "index_ragas_on_title", unique: true, using: :btree add_foreign_key "clips", "ragas" end
{ "content_hash": "90cf8d5a4edbd53b0a260e5a691a1f76", "timestamp": "", "source": "github", "line_count": 41, "max_line_length": 89, "avg_line_length": 36.853658536585364, "alnum_prop": 0.5684976836532097, "repo_name": "dbackeus/raagtime", "id": "132bf629d3064e6070844dd93e327ef26524de56", "size": "2252", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "db/schema.rb", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "3107" }, { "name": "Dockerfile", "bytes": "673" }, { "name": "HTML", "bytes": "8141" }, { "name": "Haml", "bytes": "1033" }, { "name": "JavaScript", "bytes": "2073" }, { "name": "Procfile", "bytes": "40" }, { "name": "Ruby", "bytes": "34533" }, { "name": "Shell", "bytes": "32" } ], "symlink_target": "" }
<section id="edit-skill"> <header> <a id="btn-done" class="btn btn-link" ng-href="#/skill/{{slug}}/view" yc-key="['ctrl+s','mod+s']"> <i class="fa fa-check"/> Done </a> <h1>{{skill.title}}</h1> <button id="btn-rename" class="btn btn-link btn-xs" ng-click="rename()"> Rename </button> </header> <form class="form-horizontal" role="form"> <div class="form-group"> <label for="prerequisites"> Prereqs </label> <taginput class="form-input" tags="prereqList" model="skill.prereqs" autofocus> </div> <div class="form-group"> <label for="tags"> Tags </label> <taginput class="form-input" tags="tagList" model="skill.tags"> </div> <div class="form-group"> <label for="content">Content</label> <div class="form-input"> <div id="content" text-angular ng-model="skill.content"></div> </div> </div> <div class="form-group"> <label for="reading">Reading</label> <div class="form-input"> <div ng-repeat="l in skill.reading"> <button class="btn btn-link btn-xs" ng-click="moveUp(skill.reading, $index)">Up</button> <yc-link-input link-id="l" on-remove="removeReading"/> </div> <yc-add-link-input on-added="addReading"/> </div> </div> <div class="form-group"> <label for="reading">Practice</label> <div class="form-input"> <div ng-repeat="l in skill.practice"> <button class="btn btn-link btn-xs" ng-click="moveUp(skill.practice, $index)">Up</button> <yc-link-input link-id="l" on-remove="removePractice"/> </div> <yc-add-link-input on-added="addPractice"/> </div> </div> </form> </section>
{ "content_hash": "d3d20f906d83a5e8f7d231d6cf19ef7c", "timestamp": "", "source": "github", "line_count": 62, "max_line_length": 99, "avg_line_length": 28.758064516129032, "alnum_prop": 0.564217610768368, "repo_name": "anandthakker/yawpcow", "id": "192947cd384489557e213e8d969e6923363f049b", "size": "1783", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/app/skill/edit/edit.tpl.html", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "14838" }, { "name": "CoffeeScript", "bytes": "67221" }, { "name": "JavaScript", "bytes": "3675" } ], "symlink_target": "" }
'use strict'; module.exports = function(grunt) { // Project configuration. grunt.initConfig({ jshint: { all: [ 'Gruntfile.js', 'tasks/*.js', '<%= nodeunit.tests %>' ], options: { jshintrc: '.jshintrc' } }, // Before generating any new files, remove any previously-created files. clean: { tests: ['tmp'] }, // Configuration to be run (and then tested). cv: { default_options: { options: { }, files: { 'tmp/default_options': ['test/fixtures/testing', 'test/fixtures/123'] } }, custom_options: { options: { separator: ': ', punctuation: ' !!!' }, files: { 'tmp/custom_options': ['test/fixtures/testing', 'test/fixtures/123'] } } }, // Unit tests. nodeunit: { tests: ['test/*_test.js'] } }); // Actually load this plugin's task(s). grunt.loadTasks('tasks'); // These plugins provide necessary tasks. grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-contrib-nodeunit'); // Whenever the "test" task is run, first clean the "tmp" dir, then run this // plugin's task(s), then test the result. grunt.registerTask('test', ['clean', 'cv', 'nodeunit']); // By default, lint and run all tests. grunt.registerTask('default', ['jshint', 'test']); };
{ "content_hash": "8184de3eda8e4a5d3e7f35ca1ec5e1dd", "timestamp": "", "source": "github", "line_count": 67, "max_line_length": 79, "avg_line_length": 22.08955223880597, "alnum_prop": 0.5466216216216216, "repo_name": "whowgames/grunt-cv", "id": "491a432ebd3a252e31deeac3d624e22e81d251a6", "size": "1613", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Gruntfile.js", "mode": "33188", "license": "mit", "language": [ { "name": "JavaScript", "bytes": "5692" } ], "symlink_target": "" }
class AddActivityCategoryToActivityType < ActiveRecord::Migration[5.0] def change add_reference :activity_types, :activity_category, foreign_key: true end end
{ "content_hash": "c4954e6f523c557743d65f022bb465df", "timestamp": "", "source": "github", "line_count": 5, "max_line_length": 72, "avg_line_length": 33.4, "alnum_prop": 0.7844311377245509, "repo_name": "BathHacked/energy-sparks", "id": "684e343f051cc6191f6bd6f0bb451716fcda63d4", "size": "167", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "db/migrate/2017-migrations/20170202122959_add_activity_category_to_activity_type.rb", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "34655" }, { "name": "HTML", "bytes": "498265" }, { "name": "JavaScript", "bytes": "44848" }, { "name": "Ruby", "bytes": "1317164" }, { "name": "Shell", "bytes": "2432" } ], "symlink_target": "" }
<?php require_once(realpath(dirname(__FILE__)) . '/Customer.php'); require_once(realpath(dirname(__FILE__)) . '/BasicDAO.php'); /** * @access public * @author andreas.martin */ class CustomerDAO extends BasicDAO { /** * @access public * @param Customer customer * @return Customer * @ParamType customer Customer * @ReturnType Customer */ public function create(Customer $customer) { // Not yet implemented } /** * @access public * @param int customerId * @return Customer * @ParamType customerId int * @ReturnType Customer */ public function read($customerId) { // Not yet implemented } /** * @access public * @param Customer customer * @return Customer * @ParamType customer Customer * @ReturnType Customer */ public function update(Customer $customer) { // Not yet implemented } /** * @access public * @param Customer customer * @ParamType customer Customer */ public function delete(Customer $customer) { // Not yet implemented } /** * @access public * @param int agentId * @return Customer[] * @ParamType agentId int * @ReturnType Customer[] */ public function findByAgent($agentId) { // Not yet implemented } } ?>
{ "content_hash": "be1bbc6f1dbe45520a61c14ab76917de", "timestamp": "", "source": "github", "line_count": 64, "max_line_length": 60, "avg_line_length": 18.875, "alnum_prop": 0.6622516556291391, "repo_name": "webengfhnw/WE-CRM", "id": "7e0730083f17a18b9307fd0b327a5bfd3e8cee4f", "size": "1208", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "modelling/php/CustomerDAO.php", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "121704" }, { "name": "HTML", "bytes": "40347" }, { "name": "Hack", "bytes": "7793" }, { "name": "JavaScript", "bytes": "10618" }, { "name": "PHP", "bytes": "917127" } ], "symlink_target": "" }
package main import ( "log" "io" ) var ( Trace *log.Logger Info *log.Logger Error *log.Logger ) func InitLogging(traceHandle io.Writer, infoHandle io.Writer, errorHandle io.Writer, printLines bool) { flag := 0 if printLines { flag = log.Lshortfile } Trace = log.New(traceHandle, "TRACE: ", flag) Info = log.New(infoHandle, "INFO: ", flag) Error = log.New(errorHandle, "ERROR: ", flag) }
{ "content_hash": "8b76ae78daa461e9ff789cbb28c8a94d", "timestamp": "", "source": "github", "line_count": 28, "max_line_length": 103, "avg_line_length": 14.964285714285714, "alnum_prop": 0.6563245823389021, "repo_name": "varlogs/logstasher-cli", "id": "d093fb100b60cbeebc05b01dff93de435a901a72", "size": "419", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "logging.go", "mode": "33188", "license": "mit", "language": [ { "name": "Go", "bytes": "38540" }, { "name": "Ruby", "bytes": "756" } ], "symlink_target": "" }