content stringlengths 263 5.24M | pred_label stringclasses 1
value | pred_score_pos float64 0.6 1 |
|---|---|---|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Fast RTPS: Class Me... | __label__POS | 0.935629 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Fast RTPS: Class Me... | __label__POS | 0.915066 |
package course.labs.permissionslab;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
public class GoToDangerousActivity extends Activity {
private static f... | __label__POS | 0.886392 |
package course.labs.fragmentslab;
import android.app.Activity;
import android.app.FragmentTransaction;
import android.os.Bundle;
import android.util.Log;
public class MainActivity extends Activity implements
FriendsFragment.SelectionListener {
private static final String TAG = "Lab-Fragments";
private FriendsFr... | __label__POS | 0.788049 |
package course.labs.fragmentslab;
import android.app.Fragment;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
public class FeedFragment extends Fragment {
private static final String TAG ... | __label__POS | 0.633908 |
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android... | __label__POS | 0.999965 |
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android... | __label__POS | 0.999963 |
package course.labs.graphicslab.tests;
import course.labs.graphicslab.BubbleActivity;
import com.robotium.solo.*;
import android.test.ActivityInstrumentationTestCase2;
import android.view.WindowManager;
public class BubbleActivityFling extends
ActivityInstrumentationTestCase2<BubbleActivity> {
private Solo solo;
... | __label__POS | 0.827967 |
package course.labs.locationlab;
import java.util.ArrayList;
import android.content.Context;
import android.location.Location;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView... | __label__POS | 0.618168 |
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android... | __label__POS | 0.999965 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Fast RTPS: Namespac... | __label__POS | 0.982171 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Fast RTPS: Class Me... | __label__POS | 0.950161 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Fast RTPS: Class Me... | __label__POS | 0.929945 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Fast RTPS: Class Me... | __label__POS | 0.862397 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Fast RTPS: Class Me... | __label__POS | 0.850133 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Fast RTPS: Class Me... | __label__POS | 0.70394 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Fast RTPS: Class Me... | __label__POS | 0.665118 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Fast RTPS: Class Me... | __label__POS | 0.971672 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Fast RTPS: Namespac... | __label__POS | 0.890409 |
function initMenu(relPath,searchEnabled,serverSide,searchPage,search) {
function makeTree(data,relPath) {
var result='';
if ('children' in data) {
result+='<ul>';
for (var i in data.children) {
result+='<li><a href="'+relPath+data.children[i].url+'">'+
data.... | __label__POS | 0.737017 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Fast RTPS: Class Me... | __label__POS | 0.966873 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Fast RTPS: Class Me... | __label__POS | 0.742507 |
{
"language": "Sprache",
"englishUs": "Englisch (USA)",
"englishUk": "Englisch (GB)",
"spanish": "Spanisch",
"german": "Deutsch",
"russian": "Russisch",
"appName": "Focus",
"settingsTitle": "Einstellungen",
"customizeExperience": "Passe deine Focus-Erfahrung an",
"goodMorning": "Guten Morgen",
"go... | __label__POS | 0.661932 |
import { Component, OnInit, OnChanges, SimpleChange, Input, Output, EventEmitter } from "@angular/core";
@Component({
selector: 'list-query',
templateUrl: './app/features/list/list.query.component.html',
inputs: ['newQuery', 'deleteQuery', 'clearAll', 'searchByMethod']
})
export class ListQueryComponent implements... | __label__POS | 0.783754 |
<div class="form-group single_query internal-query col-xs-12 query-{{queryIndex}}-{{internalIndex}}" [ngClass]="{query_complete: query.field !== '' && query.query !== ''}">
<div class="action-btn-group">
<a href="javascript:void(0)" (click)="removeQuery()" class="btn btn-grey add_condition_delete">
<i class="fa f... | __label__POS | 0.780647 |
import { Component, OnInit, OnChanges, Input, AfterViewInit, ViewChild, Output, EventEmitter } from "@angular/core";
declare var $;
@Component({
selector: 'editable',
templateUrl: './app/queryBlocks/editable/editable.component.html',
inputs: ['editPlaceholder', 'callback', 'selectOption', 'informationList', 'showI... | __label__POS | 0.773236 |
import { Component, OnInit, OnChanges, Input, Output, EventEmitter } from "@angular/core";
declare var $: any;
@Component({
selector: 'bool-query',
templateUrl: './app/queryBlocks/boolquery/boolquery.component.html',
inputs: ['config', 'query', 'queryList', 'addQuery', 'removeQuery', 'addBoolQuery', 'queryFormat', ... | __label__POS | 0.752123 |
import Foundation
import JavaScriptCore
class Snoozing {
static func getLaterChoices() -> [LaterTimeChoice] {
let builderFunc = JSBridge.instance.jsContext.evaluateScript("exomind.dateUtil.getSnoozeChoices")
let choices = builderFunc?.call(withArguments: [])
return choices!.toArray().map {
... | __label__POS | 0.81512 |
import Foundation
import SwiftProtobuf
let traitUrlPrefix = "type.googleapis.com/"
extension Exocore_Store_Entity {
public func trait<T: Message>(_ id: String) -> TypedTrait<T>? {
self.traits.first(where: { (t: Exocore_Store_Trait) in
t.id == id
}).flatMap({ (t: Exocore_Store_Trait) in... | __label__POS | 0.716784 |
import Foundation
import SwiftProtobuf
public class QueryBuilder {
private var inner: Exocore_Store_EntityQuery
init() {
self.inner = Exocore_Store_EntityQuery()
}
public static func withIds(_ ids: [String]) -> QueryBuilder {
let builder = QueryBuilder()
var idsPredicate = Exo... | __label__POS | 0.741463 |
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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 re... | __label__POS | 0.649519 |
import Foundation
import SwiftProtobuf
let traitUrlPrefix = "type.googleapis.com/"
extension Exocore_Store_Entity {
public func trait<T: Message>(_ id: String) -> TypedTrait<T>? {
self.traits.first(where: { (t: Exocore_Store_Trait) in
t.id == id
}).flatMap({ (t: Exocore_Store_Trait) in... | __label__POS | 0.716784 |
import Foundation
import SwiftProtobuf
public class QueryBuilder {
private var inner: Exocore_Store_EntityQuery
init() {
self.inner = Exocore_Store_EntityQuery()
}
public static func withIds(_ ids: [String]) -> QueryBuilder {
let builder = QueryBuilder()
var idsPredicate = Exo... | __label__POS | 0.741463 |
package util
import (
"testing"
. "github.com/smartystreets/goconvey/convey"
)
func TestValidateIndex(t *testing.T) {
Convey("ValidateIndex", t, func() {
Convey("* pattern", func() {
m, _ := ValidateIndex("*", "dede")
So(m, ShouldBeTrue)
})
Convey("* in between (success)", func() {
m, _ := Validate... | __label__POS | 0.910996 |
package util
import (
"context"
"math"
es7 "github.com/olivere/elastic/v7"
es6 "gopkg.in/olivere/elastic.v6"
)
// GetIndexFilterQueryEs6 apply the index filtering logic
func GetIndexFilterQueryEs6(query *es6.BoolQuery, indices ...string) *es6.BoolQuery {
if indices != nil && len(indices) > 0 {
var indexQuerie... | __label__POS | 0.96601 |
- reference: https://guides.rubyonrails.org/association_basics.html#polymorphic-associations
- all notes from this flex time were taken from the link above
```ruby
class CreatePictures < ActiveRecord::Migration
def change
create_table :pictures do |t|
t.string :name
t.bigint :pictureable_id
t... | __label__POS | 0.887554 |
# jbuilder
```ruby
json.banana "banana"
#without a "!", "json" something will create a property of the name
{
banana: banana
}
```
```ruby
json.fruit do
json.mango "mango"
end
# "do" will typically result in your data being nested
{
fruit: {
mango: "mango"
}
}
```
```ruby
numbers = [1,2,3... | __label__POS | 0.905101 |
Function.prototype.myCurry = function(num){
let that = this;
let arr = [];
debugger
return function _function(...args){
arr.push(...args)
debugger
if(arr.length >= num){
return that(...(arr.slice(0,num)))
}
return _function
}
}
let curry = functi... | __label__POS | 0.952814 |
class User < ApplicationRecord
validates :username, presence: true, uniqueness: true
# If a password was set, we validate it meets the requirements.
# Note the `allow_nil`.
validates :password, length: { minimum: 6, allow_nil: true }
validates :password_digest, presence: true
validates :session_token, prese... | __label__POS | 0.760997 |
class CatRentalRequestsController < ApplicationController
before_action :require_user!, only: %i(approve deny)
before_action :require_cat_ownership!, only: %i(approve deny)
def approve
current_cat_rental_request.approve!
redirect_to cat_url(current_cat)
end
def create
@rental_request = CatRental... | __label__POS | 0.993344 |
package uibuilder
// Note: it doesn't store featured suggestions because they get stored in Zinc index
var cachedSearchBoxes = make(map[string]SearchBoxESModel)
// To retrieve the cached searchboxes
func GetCachedSearchBoxes(filterHidden bool, filterEnabled bool) map[string]SearchBoxESModel {
tempSearchBoxes := make... | __label__POS | 0.980199 |
package storedquery
import (
"encoding/json"
"testing"
. "github.com/smartystreets/goconvey/convey"
)
func TestFlattenReact(t *testing.T) {
Convey("Basic: string", t, func() {
So(flattenReact("c_1"), ShouldResemble, []string{"c_1"})
})
Convey("Basic: array of strings", t, func() {
So(flattenReact([]interfa... | __label__POS | 0.933906 |
package storedquery
import (
"encoding/json"
log "github.com/sirupsen/logrus"
)
// storedQueries represents the struct of a list of saved stored queries in the .storedquery index
var storedQueries []ESStoredQueryCached
// SetStoredQueriesToCache sets the queries
func SetStoredQueriesToCache(queries []ESStoredQuer... | __label__POS | 0.757668 |
package storedquery
import (
"net/http"
"github.com/appbaseio-confidential/reactivesearch/plugins"
)
func (r *StoredQuery) routes() []plugins.Route {
middleware := (&chain{}).Wrap
return []plugins.Route{
{
Name: "Create/Update a stored query",
Methods: []string{http.MethodPut},
Path: ... | __label__POS | 0.928886 |
package rules
import (
"net/http"
"github.com/appbaseio-confidential/reactivesearch/plugins"
)
func (r *Rules) routes() []plugins.Route {
middleware := (&chain{}).Wrap
return []plugins.Route{
{
Name: "Create a query rule",
Methods: []string{http.MethodPost},
Path: "/_rule",
Handle... | __label__POS | 0.956439 |
import React from 'react';
import { Footer, Title } from '@appbaseio/designkit';
export default () => (
<Footer>
<Footer.Brand>
<img
width="100%"
src="https://opensource.appbase.io/reactivesearch/images/logo.svg"
alt="appbase.io"
/>
</Footer.Brand>
<Footer.Links>
<Footer.List>
<Title>Do... | __label__POS | 0.962037 |
package auth
import (
"sync"
)
// UserToPasswordCache represents a map of bcrypt validated users
var UserToPasswordCache = make(map[string]string)
// CurrentProcessMutex to stop concurrent writes on map
var CurrentProcessMutex = sync.RWMutex{}
// SavePassword saved the password in the cache
func SavePassword(usern... | __label__POS | 0.67119 |
package users
import (
"bytes"
"encoding/json"
"errors"
"net/http"
"os"
"github.com/appbaseio-confidential/reactivesearch/model/user"
"github.com/appbaseio-confidential/reactivesearch/util"
log "github.com/sirupsen/logrus"
)
func subscribeToDowntimeAlert(email string) error {
// Downtime alerts only work fo... | __label__POS | 0.659993 |
package suggestions
var indexSuggestionsPreferences IndexPreferences
var popularSuggestionsPreferences PopularPreferences
var recentSuggestionsPreferences RecentPreferences
// Sets the index preferences
func SetIndexPreferences(pref IndexPreferences) {
indexSuggestionsPreferences = pref
}
// Sets the popular prefer... | __label__POS | 0.781447 |
package suggestions
import (
"fmt"
"net/http"
"strings"
"time"
"unicode"
"github.com/appbaseio-confidential/reactivesearch/util"
)
// returns ${index}_${timestamp} where timestamp is at a day's resolution
func getTimestampedIndex(indexPrefix string, timestamp time.Time) string {
return indexPrefix + "_" + str... | __label__POS | 0.667816 |
package adaptor
// Creator defines the init structure for an adaptor
type Creator func() Adaptor
// Adaptors stores a map of adaptors by name
var adaptors = map[string]Creator{}
// Add should be called in init func of adaptor
func Add(name string, creator Creator) {
adaptors[name] = creator
}
// GetAdaptor looks u... | __label__POS | 0.762652 |
package applycache
import (
"context"
"encoding/json"
"fmt"
"strconv"
"time"
"github.com/appbaseio-confidential/reactivesearch/util"
es7 "github.com/olivere/elastic/v7"
log "github.com/sirupsen/logrus"
)
// getCacheAnalytics will get the cache analytics based on the
// time values passed and accordingly retu... | __label__POS | 0.780156 |
package reindexer
import (
"net/http"
"github.com/appbaseio-confidential/reactivesearch/plugins"
)
func (rx *reindexer) routes() []plugins.Route {
middleware := (&chain{}).Wrap
routes := []plugins.Route{
{
Name: "Reindex source to destination",
Methods: []string{http.MethodPost},
Path: ... | __label__POS | 0.673129 |
package classify
// IndexAliasCache cache to store index -> alias map
var IndexAliasCache = make(map[string]string)
// AliasIndexCache cache to store alias -> index map
var AliasIndexCache = make(map[string]string)
// GetIndexAliasCache get whole cache
func GetIndexAliasCache() map[string]string {
return IndexAlias... | __label__POS | 0.969075 |
package acl
import (
"context"
"github.com/appbaseio-confidential/reactivesearch/errors"
"github.com/invopop/jsonschema"
)
type contextKey string
// ctxKey is a key against which an acl.ACL is stored in the context.
const ctxKey = contextKey("acl")
// ACL is a type that represents an elasticsearch acl.
type ACL... | __label__POS | 0.795644 |
package console
import (
"context"
"github.com/appbaseio-confidential/reactivesearch/errors"
"github.com/appbaseio-confidential/reactivesearch/util"
)
type contextKey string
// CtxKey is a key against which api request will get stored in the context.
const CtxKey = contextKey("console-logs")
// NewContext retur... | __label__POS | 0.642773 |
package sourcefilter
import (
"regexp"
"strconv"
"strings"
log "github.com/sirupsen/logrus"
)
const logTag = "[sourcefiltering]"
// To filter the source based on the include and exclude patterns
func ApplySourceFiltering(source map[string]interface{}, include []string, exclude []string) interface{} {
// Avoid ... | __label__POS | 0.763465 |
package sourcefilter
import (
"testing"
. "github.com/smartystreets/goconvey/convey"
)
func TestApplySourceFiltering(t *testing.T) {
Convey("Should return the exact source if include or exclude properties are empty", t, func() {
output := ApplySourceFiltering(map[string]interface{}{
"key1": "value1",
}, []... | __label__POS | 0.830001 |
package permission
import (
"github.com/appbaseio-confidential/reactivesearch/model/category"
"github.com/appbaseio-confidential/reactivesearch/model/op"
)
var (
defaultCategories = []category.Category{
category.Docs,
category.Search,
category.Indices,
}
adminCategories = []category.Category{
category.D... | __label__POS | 0.636941 |
package csv
import (
"encoding/csv"
"io"
"github.com/appbaseio/abc/importer/client"
"github.com/appbaseio/abc/importer/message"
"github.com/appbaseio/abc/importer/message/ops"
"github.com/appbaseio/abc/log"
)
var _ client.Reader = &Reader{}
// Reader fulfills the client.Reader interface
type Reader struct {
... | __label__POS | 0.639818 |
package common
import (
// b64 "encoding/base64"
"fmt"
"github.com/appbaseio/abc/log"
"net/url"
"strings"
)
// MakeDejavuURL ...
func MakeDejavuURL(appURL string) (string, error) {
idx := strings.LastIndex(appURL, "/")
hostURL := appURL[:idx]
appName := appURL[idx+1:]
jsonStr := fmt.Sprintf("{\"appname\":\"%... | __label__POS | 0.959209 |
//
// LocationController.m
// camerawesome
//
// Created by Dimitri Dessus on 07/09/2022.
//
#import "LocationController.h"
@implementation LocationController
- (instancetype)init {
if (self = [super init]) {
self.locationManager = [[CLLocationManager alloc] init];
self.locationManager.delegate = self;
... | __label__POS | 0.639529 |
#import "Appboy.h"
#import "ABKUser.h"
#import "ABKFacebookUser.h"
#import "ABKTwitterUser.h"
#import "ABKAttributionData.h"
// Cards
#import "ABKCard.h"
#import "ABKBannerCard.h"
#import "ABKCaptionedImageCard.h"
#import "ABKClassicCard.h"
#import "ABKTextAnnouncementCard.h"
// Content Card
#import "ABKContentCard.h... | __label__POS | 0.958457 |
package com.braze.ui.feed;
import com.braze.ui.feed.listeners.BrazeDefaultFeedClickActionListener;
import com.braze.ui.feed.listeners.IFeedClickActionListener;
public class BrazeFeedManager {
private static volatile BrazeFeedManager sInstance = null;
// card click listeners
private IFeedClickActionListener mCu... | __label__POS | 0.99519 |
#import "Appboy.h"
#import "ABKUser.h"
#import "ABKFacebookUser.h"
#import "ABKTwitterUser.h"
#import "ABKAttributionData.h"
// Cards
#import "ABKCard.h"
#import "ABKBannerCard.h"
#import "ABKCaptionedImageCard.h"
#import "ABKClassicCard.h"
#import "ABKTextAnnouncementCard.h"
// Content Card
#import "ABKContentCard.h... | __label__POS | 0.958457 |
package com.braze.ui.inappmessage.listeners
import android.os.Bundle
import com.braze.models.inappmessage.IInAppMessage
import com.braze.ui.inappmessage.utils.InAppMessageWebViewClient
/**
* The [IInAppMessageWebViewClientListener] is called at specific events during the display of an Html
* In-App Message. Button ... | __label__POS | 0.842771 |
package com.braze.ui.inappmessage.listeners
import android.os.Bundle
import com.braze.models.inappmessage.IInAppMessage
/**
* The [IHtmlInAppMessageActionListener] allows for the overriding of the default Braze display handling
* and setting custom behavior during the display of HTML In-App Messages.
*/
interface ... | __label__POS | 0.683586 |
package com.braze.ui.inappmessage.views
import android.content.Context
import android.util.AttributeSet
import android.view.KeyEvent
import android.webkit.WebView
import com.braze.ui.inappmessage.BrazeInAppMessageManager
import com.braze.ui.inappmessage.utils.InAppMessageViewUtils.closeInAppMessageOnKeycodeBack
/**
... | __label__POS | 0.833597 |
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<script type="text/javascript" src="HTML_ZIP_STOPWATCH/myscript.js"></script>
<script type="text/javascript">
function setCustomAttributes()... | __label__POS | 0.97429 |
package com.apparence.camerawesome.surface;
import android.graphics.SurfaceTexture;
import android.os.Build;
import android.util.Size;
import android.view.Surface;
import androidx.annotation.RequiresApi;
import io.flutter.view.TextureRegistry;
public class FlutterSurfaceFactory implements SurfaceFactory {
priv... | __label__POS | 0.94321 |
package com.apparence.camerawesome.cameraX
import android.app.Activity
import android.view.OrientationEventListener
import android.view.Surface
import com.apparence.camerawesome.sensors.SensorOrientation
class OrientationStreamListener(
activity: Activity,
private var listeners: List<SensorOrientation>
) {
... | __label__POS | 0.607416 |
package com.apparence.camerawesome.cameraX
import android.hardware.camera2.CameraCharacteristics
import android.os.Build
import android.util.Log
import androidx.camera.camera2.interop.Camera2CameraInfo
import androidx.camera.camera2.interop.ExperimentalCamera2Interop
import androidx.camera.core.CameraSelector
import a... | __label__POS | 0.889538 |
package com.apparence.camerawesome.image;
import android.media.ImageReader;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Looper;
public class ImgConverterThreaded {
private static HandlerThread handlerThread = new HandlerThread("ImgConverterThreaded");
private ImgConverter ... | __label__POS | 0.817945 |
package com.apparence.camerawesome.sensors;
import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import io.flutter.plugin.common.EventChannel;
import static android.content.Context.SENS... | __label__POS | 0.615869 |
package com.appboy.sample;
import android.content.Context;
import android.os.Bundle;
import android.widget.Toast;
import com.braze.models.inappmessage.IInAppMessage;
import com.braze.ui.inappmessage.BrazeInAppMessageManager;
import com.braze.ui.inappmessage.listeners.IHtmlInAppMessageActionListener;
/**
* Closes th... | __label__POS | 0.952219 |
package com.apparence.camerawesome.utils
import java.util.concurrent.TimeUnit
import java.util.concurrent.locks.AbstractQueuedSynchronizer
/**
* A synchronization aid that allows one or more threads to wait until
* a set of operations being performed in other threads completes.
*
*
* A `CountDownLatch` is initia... | __label__POS | 0.688155 |
package com.appboy.sample.util;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemSelectedListener;
import android.widget.ArrayAdapter;
import android.widget.Spinner;
import com.appboy.sample.R;
import java.util.List;
public class SpinnerUtils {
public static final String NOT_SET = "not s... | __label__POS | 0.998369 |
package com.appboy.sample.util;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
public class ButtonUtils {
public static void setUpPopulateButton(View view, int buttonId, final EditText output, final String storedString) {
setUpPopulateButton(view, buttonId, output, stor... | __label__POS | 0.999156 |
package com.appboy.sample.util;
import android.os.Build;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
@SuppressWarnings("deprecation")
public class ViewUtils {
/**
* Enables Immersive mode. Basically means the app becomes fullscreen and the notification bar fades away... | __label__POS | 0.996054 |
package com.appboy.sample.util;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.os.Handler;
import com.appboy.sample.activity.DroidBoyActivity;
import com.braze.support.BrazeLogger;
import com.braze.support.IntentUtils;
... | __label__POS | 0.67542 |
import React from 'react';
const Footer = () => (
<div className="bg-gray-900">
<div className="max-w-screen-xl mx-auto py-12 px-4 sm:px-6 lg:py-16 lg:px-8">
<div className="xl:grid xl:grid-cols-3 xl:gap-8 justify-center text-center lg:text-left lg:justify-start">
<div className="xl:col-span-1">
... | __label__POS | 0.752141 |
package com.appboy.sample.subscriptions;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RadioGroup;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.appboy.sample.R;
import com.appboy.samp... | __label__POS | 0.940552 |
package com.braze.helloworld;
import android.app.Application;
import android.content.res.Resources;
import android.util.Log;
import com.appboy.helloworld.R;
import com.braze.Braze;
import com.braze.BrazeActivityLifecycleCallbackListener;
import com.braze.configuration.BrazeConfig;
import com.braze.support.BrazeLogger... | __label__POS | 0.72735 |
package com.braze.googletagmanager;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import com.google.firebase.analytics.FirebaseAnalytics;
public class MainActivity extend... | __label__POS | 0.63816 |
require "rspec"
require "exercises"
describe "#dups" do
it "solves a simple example" do
expect([1, 3, 0, 1].dups).to eq({ 1 => [0, 3] })
end
it "finds two dups" do
expect([1, 3, 0, 3, 1].dups).to eq({ 1 => [0, 4], 3 => [1, 3] })
end
it "finds multi-dups" do
expect([1, 3, 4, 3, 0, 3].dups).to eq... | __label__POS | 0.987774 |
require "byebug"
class Array
# Write a new Array method (using monkey-patching) that will return
# the location of all identical elements. The keys are the
# duplicated elements, and the values are arrays of their positions,
# sorted lowest to highest.
def dups
positions = Hash.new([])
self.each_with... | __label__POS | 0.932433 |
# Write a method `anagrams(str_1, str_2)` that takes in two strings and returns
# a boolean indicating whether or not the two strings are anagrams. Two strings are
# anagrams if they contain the same exact characters, but not necessarily in the
# same order.
#
# Your solution should have a linear - O(n) runtime, where ... | __label__POS | 0.992486 |
# Write a method `anagrams(str_1, str_2)` that takes in two strings and returns
# a boolean indicating whether or not the two strings are anagrams. Two strings are
# anagrams if they contain the same exact characters, but not necessarily in the
# same order.
#
# Your solution should have a linear - O(n) runtime, where ... | __label__POS | 0.984483 |
require_relative "./dog.rb"
require "byebug"
class Cat
@@default_cat_name = "Jimmy"
LIVES = 9
attr_accessor :name, :breed, :age
def initialize(name, breed, age)
@name = name
@breed = breed
@age = age
s = "s"
end
# def name
# @name
# end
... | __label__POS | 0.745238 |
;; -*- coding: utf-8 -*-
.about<<
Here we have the concept of a "friends list".
By adding other users to your friends list, you can easily keep
track of what is going on in their lives from your friends page.
Friends aren't limited by individuals, you can add communities and
syndicated feeds to your friends list as wel... | __label__POS | 0.927304 |
;; -*- coding: utf-8 -*-
.tos1.btn.s1|staleness=1
.tos1.btn.s1=Switch me to S1 anyway.
.tos1.btn.s2|staleness=1
.tos1.btn.s2=Keep me in S2.
.tos1.intro|staleness=1
.tos1.intro=The S1 style system is no longer supported. We recommend that you stay with S2 for the latest features and themes.
.tos1.title|staleness=1
.t... | __label__POS | 0.679559 |
;; -*- coding: utf-8 -*-
.commlist.actinfo=Info
.commlist.actinfo2|staleness=1
.commlist.actinfo2=Profile
.commlist.actinvites=Invitations
.commlist.actions=<b>Actions</b>
.commlist.actmembers2=Members
.commlist.actpending|notes=This is appended to /community/manage.bml.commlist.actmembers2 when there are pending ... | __label__POS | 0.611433 |
<package>
<name>camera_info_manager</name>
<version>1.11.12</version>
<description>
This package provides a C++ interface for camera calibration
information. It provides CameraInfo, and handles SetCameraInfo
service requests, saving and restoring the camera calibration
data.
</description... | __label__POS | 0.684095 |
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" id="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;minimum-scale=1.0; user-scalable=no;" />
<link rel="stylesheet" type="text/css" href="css/index.css">
<title>无标题... | __label__POS | 0.99959 |
/*
* Copyright (C) 2016 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.659389 |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2009 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://ww... | __label__POS | 0.844371 |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2009 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://ww... | __label__POS | 0.655293 |
---
namespace: Titanium.Bytes.substring
type: method
description: |
Return a substring of a Bytes given a start index and end index. This
assumes that Bytes contains a UTF-8 string. This means that the first
NUL character in the Bytes object will signify the end of the string.
If no end index is given, ... | __label__POS | 0.712094 |
---
namespace: Titanium.Bytes.substr
type: method
description: |
Return a substring of a Bytes given a start index and a length. This
assumes that Bytes contains a UTF-8 string. This means that the first
NUL character in the Bytes object will signify the end of the string.
If no length index is given, r... | __label__POS | 0.67986 |
//
// EUExBase+Bundle.m
// AppCanEngine
//
// Created by Cerino on 15/9/11.
//
//
#import "EUExBase+Bundle.h"
#import "EUtility.h"
@implementation EUExBase (Bundle)
- (NSBundle *)pluginBundle {
NSString *EUExName = NSStringFromClass([self class]);
NSString *uexName = [NSString stringWithFormat:@"uex%@... | __label__POS | 0.723399 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.