content stringlengths 263 5.24M | pred_label stringclasses 1
value | pred_score_pos float64 0.6 1 |
|---|---|---|
/* XPM */
const gchar * titanium_xpm[] = {
"49 49 602 2",
" c None",
". c #A2B3CD",
"+ c #9FB1CC",
"@ c #9FB1C9",
"# c #A0B1CB",
"$ c #A2B5CE",
"% c #A3B5CE",
"& c #A1B3CB",
"* c #A1B3CC",
"= c #A3B6CF",
"- c #A6B8D2",
"; c #9EB1CA",
"> c #9EB0C9",
", c #A7B8CE",
"' c #A2B3CA",
") c #9DAFC7",
"! c #9C... | __label__POS | 0.99905 |
//
// EUExBase+Bundle.h
// AppCanEngine
//
// Created by Cerino on 15/9/11.
//
//
/**
* @method uexLocalizedString(...)
*
* @discussion 从插件资源文件加载本地化字符串的预定义宏
*
* @see localizedString:
*
* @example uexLocalizedString(@"test");
* 搜索@"test"对应的本地字符串,未找到时返回key本身(即@"test")
*
* @example uexLocali... | __label__POS | 0.986078 |
require 'foo'
$orig_include_path = $LOAD_PATH
builder_path = Titanium.API.getApplication().getResourcesPath() + '/builder/lib'
$LOAD_PATH << builder_path
require 'builder/lib/builder'
require 'markaby/lib/markaby'
require 'ostruct'
require 'rss'
def external_document
document.getElementById 'a'
end
def require_file_... | __label__POS | 0.968328 |
#!/usr/bin/env ruby
require 'test/unit'
require 'test/preload'
require 'builder/blankslate'
require 'stringio'
# Methods to be introduced into the Object class late.
module LateObject
def late_object
33
end
def LateObject.included(mod)
# Modules defining an included method should not prevent blank
#... | __label__POS | 0.666599 |
#!/usr/bin/env ruby
require 'test/unit'
require 'builder/xchar'
class TestXmlEscaping < Test::Unit::TestCase
def test_ascii
assert_equal 'abc', 'abc'.to_xs
end
def test_predefined
assert_equal '&', '&'.to_xs # ampersand
assert_equal '<', '<'.to_xs # left angle brac... | __label__POS | 0.948223 |
class TestEvents < Test::Unit::TestCase
class Target
attr_reader :events
def initialize
@events = []
end
def start_tag(tag, attrs)
@events << [:start_tag, tag, attrs]
end
def end_tag(tag)
@events << [:end_tag, tag]
end
def text(string)
@events << [:text... | __label__POS | 0.99245 |
#!/usr/bin/env ruby
#--
# Portions copyright 2004 by Jim Weirich (jim@weirichhouse.org).
# Portions copyright 2005 by Sam Ruby (rubys@intertwingly.net).
# All rights reserved.
# Permission is granted for use, copying, modification, distribution,
# and distribution of modified versions of this work as long as the
# ab... | __label__POS | 0.962499 |
var Photos2HomepageWidget = {
init: function(){
var widget = jQuery('.appwidget-photos2homepage');
this.controls = {
prev: widget.find('.i-potd-nav-prev'),
next: widget.find('.i-potd-nav-next')
};
var images = this.images = [];
widget.find('.pic-list > li').each(function(){
images.push({
img: t... | __label__POS | 0.88615 |
var Aliases = {};
Aliases.init_catnav = function() {
var navCats = DOM.getElementsByClassName(document, "vg_cat") || [];
Array.prototype.forEach.call(navCats, function(cat){
DOM.addEventListener(cat, "click", Aliases.navClicked.bindEventListener(cat));
Aliases.link = Aliases.link || $('vg_cat_featu... | __label__POS | 0.777966 |
appcan-android
==============
appcan-android引擎
参考 http://newdocx.appcan.cn/
QQ交流群:173758265
### 生成引擎包步骤:
1. 新建Android Studio工程`Engine_AppCan`
2. clone 引擎代码到工程`Engine_AppCan`
```sh
git clone https://github.com/AppCanOpenSource/appcan-android.git
```
3. 编辑工程根目录下的`settings.gradle`,在下面添加一行:
```groovy... | __label__POS | 0.857395 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<p>
This is a demo website to test that short keys, including one-letter keys can be generated.
We expect to generate one-letter Keys whenever we can guarantee it's possible (without looking
at the text)... | __label__POS | 0.975877 |
package org.zywx.wbpalmstar.base;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.webkit.CookieManager;
import android.webkit.CookieSyncManager;
import android.webkit.WebChromeClient;
import android.webkit.WebSe... | __label__POS | 0.990202 |
package org.zywx.wbpalmstar.base;
import android.app.Activity;
import android.content.Context;
import android.os.Build;
import com.tencent.smtt.export.external.interfaces.IX5WebChromeClient;
import com.tencent.smtt.sdk.CookieManager;
import com.tencent.smtt.sdk.CookieSyncManager;
import com.tencent.smtt.sdk.QbSdk;
im... | __label__POS | 0.676128 |
package org.zywx.wbpalmstar.base;
import android.app.Activity;
import android.content.Context;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import org.xwalk.core.XWalkCookieManager;
import org.xwalk.core.XWalkPreferences;
import org.xwalk.core.XWalkView;
/**
* Created by ylt on 16/5/20.... | __label__POS | 0.985362 |
package org.zywx.wbpalmstar.engine.webview;
import android.os.Build;
import org.zywx.wbpalmstar.base.BConstant;
public class ACEWebConst {
public static final String DESKTOP_USERAGENT = "Mozilla/5.0 (Macintosh; "
+ "U; Intel Mac OS X 10_6_3; en-us) AppleWebKit/533.16 (KHTML, "
+ "like Gecko) Version/5.0 Safa... | __label__POS | 0.993339 |
[{"uuid":"Page","type":"Page","viewState":true,"flex":"","position":"","layout":"","layout_orient":"","layout_pack":"","layout_align":"","layout_dir":"","css":"","style_padding":{"top":0,"left":0,"right":0,"bottom":0},"style_margin":{"top":0,"left":0,"right":0,"bottom":0},"style_border":{"width":0,"color":"rgb(0,0,0)",... | __label__POS | 0.999536 |
var platform;//平台,0-iOS,1-android
appcan.button("#platformName","btn-act", function(){
var result=uexWidgetOne.platformName;
$("#platformName_result_display").html(result);
});
appcan.button("#platformVersion","btn-act", function(){
var result=uexWidgetOne.platformVersion;
$("#platformVersion_result_di... | __label__POS | 0.660813 |
package org.zywx.wbpalmstar.base;
import android.app.IntentService;
import android.content.Intent;
import android.text.TextUtils;
import org.zywx.wbpalmstar.widgetone.dataservice.WDataManager;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
impo... | __label__POS | 0.976238 |
package org.zywx.wbpalmstar.base;
import android.os.ParcelFileDescriptor;
import android.util.Log;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
public class ACEParcelFileDescriptorUtil {
public static ParcelFileDescriptor pipeFrom(InputStream inputStream)
thro... | __label__POS | 0.685152 |
/*
* Copyright (C) 2014 The AppCan Open Source Project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later versi... | __label__POS | 0.910501 |
/*
* Copyright (C) 2014 The AppCan Open Source Project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later versi... | __label__POS | 0.614941 |
package org.zywx.wbpalmstar.base;
import android.app.Service;
import android.content.Intent;
import android.os.Handler;
import android.os.IBinder;
/**
*
*/
public class killSelfService extends Service {
public static final String KEY_STOP_DELAY="key_stop_delay";
public static final String KEY_STOP_PACKAGE... | __label__POS | 0.999503 |
/*
* Copyright (C) 2014 The AppCan Open Source Project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later versi... | __label__POS | 0.664285 |
/*
* Copyright (C) 2014 The AppCan Open Source Project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later versi... | __label__POS | 0.642894 |
/*
* Copyright (C) 2014 The AppCan Open Source Project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later versi... | __label__POS | 0.877406 |
package org.zywx.wbpalmstar.base;
import android.content.res.Resources;
public class DensityUtil {
private float density;
public DensityUtil() {
density = Resources.getSystem().getDisplayMetrics().density;
}
/**
* 根据手机的分辨率从 dp 的单位 转成为 px(像素)
*/
public static int dp2px(float dp... | __label__POS | 0.994239 |
/*
* Copyright (C) 2014 The AppCan Open Source Project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later versi... | __label__POS | 0.987532 |
package org.zywx.wbpalmstar.engine;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonElement;
import com.google.gson.JsonPrimitive;
import com.google.gson.JsonSerializationContext;
import com.google.gson.JsonSerializer;
import org.json.JSONArray;
import org.json.JSONExceptio... | __label__POS | 0.994725 |
package org.zywx.wbpalmstar.engine;
import android.app.Activity;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.ViewGroup;
import android.webkit.WebView;
impor... | __label__POS | 0.854988 |
/*
* Copyright (C) 2014 The AppCan Open Source Project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later versi... | __label__POS | 0.67261 |
/*
* Copyright (C) 2014 The AppCan Open Source Project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later versi... | __label__POS | 0.958064 |
package org.zywx.wbpalmstar.engine;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.support.v4.content.LocalBroadcastManager;
import org.zywx.wbpalmstar.e... | __label__POS | 0.948596 |
/*
* Copyright (C) 2014 The AppCan Open Source Project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later versi... | __label__POS | 0.667391 |
/*
* Copyright (C) 2014 The AppCan Open Source Project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later versi... | __label__POS | 0.630345 |
/*
* Copyright (C) 2014 The AppCan Open Source Project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later versi... | __label__POS | 0.710702 |
package org.zywx.wbpalmstar.engine;
import android.content.ComponentName;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.v4.app.FragmentActivity;
import android.support.v4.content.LocalBroadcastManager;
import android.widget.Toast;
... | __label__POS | 0.950628 |
function vertical_layout_tv(_args) {
var win = Ti.UI.createWindow({
title:_args.title
});
var tv = Ti.UI.createTableView({minRowHeight:50});
var text1 = 'I am a short sentence repeated only a few times.\nI am a short sentence repeated only a few times.';
var text2 = 'I am a medium sentence repeated slightly ... | __label__POS | 0.852229 |
function tv_api_autoheight(_args) {
var win = Ti.UI.createWindow({
title:_args.title
});
// create table view data object
var data = [];
data[0] = Ti.UI.createTableViewRow({hasChild:true,height:'auto'});
data[1] = Ti.UI.createTableViewRow({hasDetail:true,height:'auto'});
data[2] = Ti.UI.createTableViewRow({h... | __label__POS | 0.606159 |
function scroll_view_textarea(_args) {
var win = Ti.UI.createWindow({
title:_args.title
});
var scrollView = Ti.UI.createScrollView({
contentHeight:'auto',
contentWidth:'auto'
});
win.add(scrollView);
var ta1 = Titanium.UI.createTextArea({
value:'I am a textarea',
height:100,
width:300,
top:10... | __label__POS | 0.628239 |
/*
* Copyright (C) 2014 The AppCan Open Source Project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later versi... | __label__POS | 0.699642 |
/*
* Copyright (C) 2014 The AppCan Open Source Project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later versi... | __label__POS | 0.786374 |
package org.zywx.wbpalmstar.base.util;
import android.app.Activity;
import android.app.Application;
import android.os.Bundle;
/**
* 记录Activity的生命周期变化,从而判断App整体的前后台状态
* <p>
* Created by zhangyipeng with Email: sandy1108@163.com at Date: 2018/9/17.
*/
public class ActivityActionRecorder {
public interface AppB... | __label__POS | 0.978182 |
package org.zywx.wbpalmstar.base.util;
import android.app.Activity;
import android.graphics.Color;
import android.os.Build;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import org.zywx.wbpalmstar.engine.external.AndroidBug5497Workaround;
impor... | __label__POS | 0.986178 |
package org.zywx.wbpalmstar.base.util;
import android.app.Activity;
import android.content.pm.PackageManager;
import android.support.annotation.NonNull;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
import org.zywx.wbpalmstar.engine.callback.RequestPermissionsCallBcak;... | __label__POS | 0.999617 |
package org.zywx.wbpalmstar.base.zip;
abstract interface ZipConstants {
public static final long LOCSIG = 67324752L;
public static final long EXTSIG = 134695760L;
public static final long CENSIG = 33639248L;
public static final long ENDSIG = 101010256L;
public static final int LOCHDR = 30;
publ... | __label__POS | 1.000009 |
package org.zywx.wbpalmstar.base.zip;
import java.io.FilterOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.zip.Deflater;
public class DeflaterOutputStream extends FilterOutputStream {
protected Deflater def;
protected byte[] buf;
private boolean closed = false;
... | __label__POS | 0.944656 |
package org.zywx.wbpalmstar.base.zip;
import java.io.EOFException;
import java.io.FilterInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.zip.DataFormatException;
import java.util.zip.Inflater;
import java.util.zip.ZipException;
public class InflaterInputStream extends FilterInputS... | __label__POS | 0.961266 |
package org.zywx.wbpalmstar.base.vo;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.List;
/**
* 窗口样式配置参数
*
* Created by zhangyipeng on 2018/1/9.
*/
public class WindowOptionsVO implements Parcelable {
public String windowTitle;
public String titleBarBgColor;
public boolean ... | __label__POS | 0.947758 |
package org.zywx.wbpalmstar.base.vo;
import android.net.Uri;
import org.zywx.wbpalmstar.base.WebViewSdkCompat;
/**
* File Description: WebView选择文件的回调相关
* <p>
* Created by zhangyipeng with Email: sandy1108@163.com at Date: 1/14/21.
*/
public class ValueCallbackVO {
private WebViewSdkCompat.ValueCallback<Uri>... | __label__POS | 0.818844 |
package org.zywx.wbpalmstar.platform.encryption;
import java.io.ByteArrayInputStream;
import java.io.UnsupportedEncodingException;
public class PEncryption {
public static final String F_KEY = "982398e4^$%^&%^&%^&%&^$#$#sdfsda90239%^)f8y99e7we98 "
+ "yhfdsuyf892yr98ghwequifyh879esa6yf83g2ui1rfgtvbi... | __label__POS | 0.980738 |
package org.zywx.wbpalmstar.platform.encryption;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.OutputStream;
public class BASE64 {
private static final char[] legalChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
.toCharArray();
/**
... | __label__POS | 0.910445 |
package org.zywx.wbpalmstar.platform.certificates;
import java.io.IOException;
import java.net.InetAddress;
import java.net.Socket;
import java.net.UnknownHostException;
import java.security.KeyStore;
import java.security.SecureRandom;
import javax.net.ssl.KeyManager;
import javax.net.ssl.KeyManagerFactory;
import ja... | __label__POS | 0.926317 |
function genData(section)
{
var data = [];
for(i=0;i<10;i++){
data.push({properties:{title:'Section '+section+' Item '+i}})
}
return data;
}
function genSections()
{
var sections = [];
for(j=0;j<10;j++){
var section = Ti.UI.createListSection({headerTitle:'Section '+j});
section.setItems(genData(j));
se... | __label__POS | 0.708047 |
function genData(section)
{
var data = [];
for(i=0;i<5;i++){
data.push({properties:{title:'Section '+section+' Item '+i, backgroundColor:'white'}})
}
return data;
}
function genSections()
{
var sections = [];
for(j=0;j<5;j++){
var section = Ti.UI.createListSection({headerTitle:'Section '+j});
section.set... | __label__POS | 0.75336 |
/*
* Copyright (C) 2014 The AppCan Open Source Project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later versi... | __label__POS | 0.999749 |
/*
* Copyright (C) 2014 The AppCan Open Source Project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later versi... | __label__POS | 1.000005 |
/*
* Copyright (C) 2014 The AppCan Open Source Project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later versi... | __label__POS | 0.783207 |
package org.zywx.wbpalmstar.engine.universalex;
import android.content.Intent;
import android.support.annotation.Keep;
import org.zywx.wbpalmstar.engine.callback.IActivityCallback;
/**
* File Description: 定义了插件初始化的Context所必须的方法功能。
* 引擎中实现此接口的是EBrowserActivity
* <p>
* Created by zhangyipeng with... | __label__POS | 0.656752 |
/*
* Copyright (C) 2014 The AppCan Open Source Project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later versi... | __label__POS | 0.9706 |
package org.zywx.wbpalmstar.engine.external;
import android.graphics.Rect;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewTreeObserver;
/* 全屏模式下,即使将activity的windowSoftInputMode的属性设置为:adjustResize,
在键盘显示时它未将Activity的Screen向上推动,所以你Activity的view的根树的尺寸是没有变化的。
在这种情况下,你也就无法得知键盘的尺寸,对根view的作... | __label__POS | 0.982722 |
package org.zywx.wbpalmstar.engine.container;
import android.support.annotation.Keep;
import android.support.v4.view.PagerAdapter;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import java.util.List;
import java.util.Vector;
/**
* Created by ylt on 2016/10/8.
*/
@Keep
... | __label__POS | 0.96909 |
package org.zywx.wbpalmstar.engine.universalex.wrapper;
import org.zywx.wbpalmstar.base.vo.WindowActionSheetVO;
import org.zywx.wbpalmstar.base.vo.WindowAlertVO;
import org.zywx.wbpalmstar.base.vo.WindowAnimVO;
import org.zywx.wbpalmstar.base.vo.WindowConfirmVO;
import org.zywx.wbpalmstar.base.vo.WindowCreateProgressD... | __label__POS | 0.632415 |
/*
* Copyright (C) 2014 The AppCan Open Source Project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later versi... | __label__POS | 0.724831 |
/*
* Copyright (C) 2014 The AppCan Open Source Project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later versi... | __label__POS | 0.845329 |
/*
* Copyright (C) 2014 The AppCan Open Source Project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later versi... | __label__POS | 0.964587 |
package com.slidingmenu.lib;
//import org.zywx.wbpalmstar.widgetone.uex.R;
import org.zywx.wbpalmstar.engine.universalex.EUExUtil;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.draw... | __label__POS | 0.7686 |
(ns mirabelle.integration-test
(:require [cheshire.core :as json]
[clojure.test :refer :all]
[clj-http.client :as http]
[mirabelle.b64 :as b64]
[mirabelle.core :as core]))
(defn system-fixture
[f]
(core/start!)
(f)
(core/stop!))
(use-fixtures :once system-fixt... | __label__POS | 0.910811 |
package com.slidingmenu.lib;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.view.View;
public interface MenuInterface {
public abstract void scrollBehindTo(int x, int y,
CustomViewBehind cvb, float scrollScale);
public abstra... | __label__POS | 0.968528 |
package com.slidingmenu.lib;
import android.graphics.Canvas;
import android.view.animation.Interpolator;
import com.slidingmenu.lib.SlidingMenu.CanvasTransformer;
public class CanvasTransformerBuilder {
private CanvasTransformer mTrans;
private static Interpolator lin = new Interpolator() {
public ... | __label__POS | 0.958438 |
<?page
title=><?_ml .title _ml?>
body<=
<?_code
LJ::set_active_crumb('advcustomize');
my $u = LJ::get_effective_remote();
my $no_layer_edit = LJ::run_hook("no_theme_or_layer_edit", $u);
if ($no_layer_edit) {
return $ML{'.error.advanced.editing.denied'};
}
return '<?h1 <?_ml .discl... | __label__POS | 0.92476 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: gogo.proto
package com.google.protobuf;
public final class GoGoProtos {
private GoGoProtos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
registry.add(com.google.protobuf.GoGoProt... | __label__POS | 0.99633 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: opentelemetry/proto/common/v1/common.proto
package io.opentelemetry.proto.common.v1;
/**
* <pre>
* KeyValue is a key-value pair that is used to store Span attributes, Link
* attributes, etc.
* </pre>
*
* Protobuf type {@code opentelemetry.pr... | __label__POS | 0.736406 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: opentelemetry/proto/common/v1/common.proto
package io.opentelemetry.proto.common.v1;
/**
* <pre>
* AnyValue is used to represent any type of attribute value. AnyValue may contain a
* primitive value such as a string or integer or it may contain... | __label__POS | 0.734741 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: opentelemetry/proto/common/v1/common.proto
package io.opentelemetry.proto.common.v1;
public interface KeyValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:opentelemetry.proto.common.v1.KeyValue)
com.google.protobuf.Messa... | __label__POS | 0.795177 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: opentelemetry/proto/common/v1/common.proto
package io.opentelemetry.proto.common.v1;
public interface AnyValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:opentelemetry.proto.common.v1.AnyValue)
com.google.protobuf.Messa... | __label__POS | 0.968695 |
<!DOCTYPE html>
<html lang="en" class="js csstransforms3d">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="Hugo 0.121.2">
<meta name="description" content="">
<link rel="icon" href="/images/favicon.png" type="i... | __label__POS | 0.659 |
<!DOCTYPE html>
<html lang="en" class="js csstransforms3d">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="Hugo 0.121.2">
<meta name="description" content="">
<link rel="icon" href="/images/favicon.png" type="i... | __label__POS | 0.611503 |
<!DOCTYPE html>
<html lang="en" class="js csstransforms3d">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="Hugo 0.121.2">
<meta name="description" content="">
<link rel="icon" href="/images/favicon.png" type="i... | __label__POS | 0.660524 |
<!DOCTYPE html>
<html lang="en" class="js csstransforms3d">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="Hugo 0.121.2">
<meta name="description" content="">
<link rel="icon" href="/images/favicon.png" type="i... | __label__POS | 0.641156 |
<!DOCTYPE html PUBLIC ""
"">
<html><head><meta charset="UTF-8" /><title>Mirabelle 0.13.0</title><link rel="stylesheet" type="text/css" href="css/default.css" /><link rel="stylesheet" type="text/css" href="css/highlight.css" /><script type="text/javascript" src="js/highlight.min.js"></script><script type="text/javas... | __label__POS | 0.999985 |
<!DOCTYPE html PUBLIC ""
"">
<html><head><meta charset="UTF-8" /><title>Mirabelle 0.13.0</title><link rel="stylesheet" type="text/css" href="css/default.css" /><link rel="stylesheet" type="text/css" href="css/highlight.css" /><script type="text/javascript" src="js/highlight.min.js"></script><script type="text/javas... | __label__POS | 0.999985 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>PartI.Programming Guidelines</title>
<link rel="stylesheet" href="style.css" type="text/css">
<meta name="generator" conten... | __label__POS | 0.78384 |
# Using JavaScriptCore Framework in Swift Projects
For a long time I wanted to write a post about how Swift and JavaScript can be tied together, and lead eventually to more powerful and rich-featured apps. Being able to embed JavaScript code in iOS projects is not something that you hear for first time, but if you hav... | __label__POS | 0.680896 |
var helloWorld = "Hello World!";
function getFullname(firstname, lastname) {
return firstname + " " + lastname;
}
function maxMinAverage(values) {
var max = Math.max.apply(null, values);
var min = Math.min.apply(null, values);
// var average = Math.average(values);
var average = null;
if... | __label__POS | 0.761322 |
package config
import (
"errors"
"fmt"
"github.com/appcelerator/amp/api/rpc/config"
"github.com/appcelerator/amp/cli"
"github.com/spf13/cobra"
"golang.org/x/net/context"
"google.golang.org/grpc/status"
)
// NewRemoveCommand returns a new instance of the remove command for removing one or more configs
func New... | __label__POS | 0.823124 |
package stack
import (
"errors"
"strings"
"github.com/appcelerator/amp/api/rpc/stack"
"github.com/appcelerator/amp/cli"
"github.com/spf13/cobra"
"golang.org/x/net/context"
"google.golang.org/grpc/status"
)
// NewRemoveCommand returns a new instance of the stack command.
func NewRemoveCommand(c cli.Interface) ... | __label__POS | 0.899131 |
package secret
import (
"errors"
"fmt"
"github.com/appcelerator/amp/api/rpc/secret"
"github.com/appcelerator/amp/cli"
"github.com/spf13/cobra"
"golang.org/x/net/context"
"google.golang.org/grpc/status"
)
// NewRemoveCommand returns a new instance of the remove command for removing one or more secrets
func New... | __label__POS | 0.860426 |
//
// AppDelegate.swift
// Print2PDF
//
// Created by Gabriel Theodoropoulos on 14/06/16.
// Copyright © 2016 Appcoda. All rights reserved.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
let currencyCode = "eur"
func application... | __label__POS | 0.716668 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>2.Setting Capabilities</title>
<link rel="stylesheet" href="style.css" type="text/css">
<meta name="generator" content="Doc... | __label__POS | 0.755579 |
package accounts
func (o *Organization) getMemberIndex(memberName string) int {
memberIndex := -1
for i, member := range o.Members {
if member.Name == memberName {
memberIndex = i
break
}
}
return memberIndex
}
func (o *Organization) getMember(memberName string) *OrganizationMember {
for _, member := r... | __label__POS | 0.999969 |
#!/bin/bash
SECONDS=0
test_stack_deploy() {
amp -k stack up -c tests/cli/stack/list/global.service.yml global
amp -k stack up -c tests/cli/stack/list/replicated.service.yml replicated
}
test_stack_starting() {
amp -k stack ls 2>/dev/null | grep -q -E -i "\s*global\s*[0-9]*\s*[0-9]*\s*[0-9]*\s*[0-9]*\s*[0-9]/[0... | __label__POS | 0.993871 |
package service
import (
"fmt"
"docker.io/go-docker/api/types/swarm"
"github.com/appcelerator/amp/docker/cli/cli/command/formatter"
)
// GetServicesStatus returns a map of mode and replicas
func GetServicesStatus(services []swarm.Service, nodes []swarm.Node, tasks []swarm.Task) map[string]formatter.ServiceListInf... | __label__POS | 0.933739 |
package term
import (
"fmt"
"strings"
)
// ASCII list the possible supported ASCII key sequence
var ASCII = []string{
"ctrl-@",
"ctrl-a",
"ctrl-b",
"ctrl-c",
"ctrl-d",
"ctrl-e",
"ctrl-f",
"ctrl-g",
"ctrl-h",
"ctrl-i",
"ctrl-j",
"ctrl-k",
"ctrl-l",
"ctrl-m",
"ctrl-n",
"ctrl-o",
"ctrl-p",
"ctrl-q",
... | __label__POS | 0.959721 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>LiveJournal Server</title>
<link rel="stylesheet" href="style.css" type="text/css">
<meta name="generator" content="DocBook... | __label__POS | 0.89562 |
package docker
import (
"os"
"strings"
"github.com/appcelerator/amp/api/rpc/cluster/constants"
"github.com/appcelerator/amp/docker/cli/cli/command/stack"
"github.com/appcelerator/amp/docker/cli/cli/compose/loader"
composetypes "github.com/appcelerator/amp/docker/cli/cli/compose/types"
"golang.org/x/net/context... | __label__POS | 0.604671 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>PartII.LiveJournal Installation</title>
<link rel="stylesheet" href="style.css" type="text/css">
<meta name="generator" con... | __label__POS | 0.743045 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Chapter 4. Language Reference</title>
<link rel="stylesheet" href="style.css" type="text/css">
<meta name="generator" conte... | __label__POS | 0.916119 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Color Class</title>
<link rel="stylesheet" href="style.css" type="text/css">
<meta name="generator" content="DocBook XSL St... | __label__POS | 0.791241 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>S2 Manual</title>
<link rel="stylesheet" href="style.css" type="text/css">
<meta name="generator" content="DocBook XSL Styl... | __label__POS | 0.772412 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Chapter 5. Tech Notes</title>
<link rel="stylesheet" href="style.css" type="text/css">
<meta name="generator" content="DocB... | __label__POS | 0.639527 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.