content stringlengths 263 5.24M | pred_label stringclasses 1
value | pred_score_pos float64 0.6 1 |
|---|---|---|
using System;
using System.Threading.Tasks;
using System.Collections.Generic;
using RestSharp;
using Newtonsoft.Json.Linq;
namespace send_message_bird_sms
{
class Program
{
static async Task Main(string[] args)
{
//MessageBird API access token
var token = Environment.Ge... | __label__POS | 0.747873 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text.Json;
using System.Text.Json.Serialization;
using Appwrite.Enums;
namespace Appwrite.Models
{
public class Language
{
[JsonPropertyName("name")]
public string Name { get; private set; }
[JsonPropertyN... | __label__POS | 0.847679 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text.Json;
using System.Text.Json.Serialization;
using Appwrite.Enums;
namespace Appwrite.Models
{
public class PhoneList
{
[JsonPropertyName("total")]
public long Total { get; private set; }
[JsonProperty... | __label__POS | 0.960455 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text.Json;
using System.Text.Json.Serialization;
using Appwrite.Enums;
namespace Appwrite.Models
{
public class MfaChallenge
{
[JsonPropertyName("$id")]
public string Id { get; private set; }
[JsonProperty... | __label__POS | 0.897358 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text.Json;
using System.Text.Json.Serialization;
using Appwrite.Enums;
namespace Appwrite.Models
{
public class FrameworkAdapter
{
[JsonPropertyName("key")]
public string Key { get; private set; }
[JsonPro... | __label__POS | 0.845598 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text.Json;
using System.Text.Json.Serialization;
using Appwrite.Enums;
namespace Appwrite.Models
{
public class Framework
{
[JsonPropertyName("key")]
public string Key { get; private set; }
[JsonPropertyNa... | __label__POS | 0.744384 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text.Json;
using System.Text.Json.Serialization;
using Appwrite.Enums;
namespace Appwrite.Models
{
public class DatabaseList
{
[JsonPropertyName("total")]
public long Total { get; private set; }
[JsonPrope... | __label__POS | 0.954016 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text.Json;
namespace Appwrite.Extensions
{
public static class Extensions
{
public static string ToJson(this Dictionary<string, object?> dict)
{
return JsonSerializer.Serialize(dict, Client.Seria... | __label__POS | 0.62551 |
using System;
using System.Collections.Generic;
using System.Text.Json;
using System.Text.Json.Serialization;
namespace Appwrite.Converters
{
public class ObjectToInferredTypesConverter : JsonConverter<object>
{
public override object Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOp... | __label__POS | 0.978272 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Appwrite.Models;
using Appwrite.Enums;
namespace Appwrite.Services
{
public class Graphql : Service
{
public Graphql(Client client) : base(client)
{
}
/// <para>
/// ... | __label__POS | 0.886877 |
/**
* Helper class to generate role strings for `Permission`.
*/
export class Role {
/**
* Grants access to anyone.
*
* This includes authenticated and unauthenticated users.
*
* @returns {string}
*/
public static any(): string {
return 'any'
}
/**
* Gran... | __label__POS | 0.912114 |
<?php
namespace Tests\E2E;
use Exception;
class Client
{
const METHOD_GET = 'GET';
const METHOD_POST = 'POST';
const METHOD_PUT = 'PUT';
const METHOD_PATCH = 'PATCH';
const METHOD_DELETE = 'DELETE';
const METHOD_HEAD = 'HEAD';
const METHOD_OPTIONS = 'OPTIONS';
const METHOD_CONNECT = '... | __label__POS | 0.725307 |
package io.appwrite.enums
import com.google.gson.annotations.SerializedName
enum class CreditCard(val value: String) {
@SerializedName("amex")
AMERICAN_EXPRESS("amex"),
@SerializedName("argencard")
ARGENCARD("argencard"),
@SerializedName("cabal")
CABAL("cabal"),
@SerializedName("cencosud")... | __label__POS | 0.922642 |
package io.appwrite.enums
import com.google.gson.annotations.SerializedName
enum class Runtime(val value: String) {
@SerializedName("node-14.5")
NODE_14_5("node-14.5"),
@SerializedName("node-16.0")
NODE_16_0("node-16.0"),
@SerializedName("node-18.0")
NODE_18_0("node-18.0"),
@SerializedName... | __label__POS | 0.687216 |
package io.appwrite.enums
import com.google.gson.annotations.SerializedName
enum class BuildRuntime(val value: String) {
@SerializedName("node-14.5")
NODE_14_5("node-14.5"),
@SerializedName("node-16.0")
NODE_16_0("node-16.0"),
@SerializedName("node-18.0")
NODE_18_0("node-18.0"),
@Serialize... | __label__POS | 0.68551 |
package io.appwrite.enums
import com.google.gson.annotations.SerializedName
enum class OAuthProvider(val value: String) {
@SerializedName("amazon")
AMAZON("amazon"),
@SerializedName("apple")
APPLE("apple"),
@SerializedName("auth0")
AUTH0("auth0"),
@SerializedName("authentik")
AUTHENTIK... | __label__POS | 0.78015 |
import java.util.HashMap;
import java.util.Map;
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.JsonNode;
import com.mashape.unirest.http.Unirest;
import com.mashape.unirest.http.exceptions.UnirestException;
import org.json.JSONObject;
public class GenerateUnsplashImage{
private sta... | __label__POS | 0.993757 |
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.JsonNode;
import com.mashape.unirest.http.Unirest;
import com.mashape.unirest.http.exceptions.UnirestException;
public class GenerateGiphyGif {
private static String GIPHY_API_KEY;
public static void main(String[] args) {
G... | __label__POS | 0.997281 |
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;
import com.mashape.unirest.http.exceptions.UnirestException;
import org.json.JSONObject;
public class WelcomeEmail {
private static String YOUR_DOMAIN_NAME;
private static String API_KEY;
public static void main(String... | __label__POS | 0.737371 |
import com.sun.source.tree.ContinueTree;
import io.appwrite.Client;
import io.appwrite.exceptions.AppwriteException;
import io.appwrite.services.Database;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.ContinuationInterceptor;
import kotlin.coroutines.CoroutineContext;
import kotlin.coroutines.EmptyCor... | __label__POS | 0.827855 |
// Install the Java helper library from twilio.com/docs/java/install
import com.twilio.Twilio;
import com.twilio.rest.api.v2010.account.Message;
import com.twilio.type.PhoneNumber;
import org.json.JSONObject;
public class SendSms {
// Getting the user credentials
public static final String ACCOUNT_SID = Syste... | __label__POS | 0.849633 |
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import ja... | __label__POS | 0.649441 |
import com.messagebird.exceptions.NotFoundException;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;
import com.messagebird.MessageBirdClient;
import com.messagebird.MessageBirdService;
import com.messagebird.MessageBirdServiceImpl;
import com.... | __label__POS | 0.63084 |
import com.messagebird.MessageBirdClient;
import com.messagebird.MessageBirdService;
import com.messagebird.MessageBirdServiceImpl;
import com.messagebird.exceptions.GeneralException;
import com.messagebird.exceptions.UnauthorizedException;
import com.messagebird.objects.MessageResponse;
import org.json.JSONObject;
im... | __label__POS | 0.894371 |
import io.appwrite.Client;
import io.appwrite.exceptions.AppwriteException;
import io.appwrite.services.Database;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.CoroutineContext;
import kotlin.coroutines.EmptyCoroutineContext;
import okhttp3.Response;
import org.jetbrains.annotations.NotNull;
import or... | __label__POS | 0.908424 |
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.JsonNode;
import com.mashape.unirest.http.Unirest;
import com.mashape.unirest.http.exceptions.UnirestException;
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.io.FileUtils;
import java.io.File;
import java.io.IOExce... | __label__POS | 0.682855 |
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.util.function.Consumer;
public class Main {
... | __label__POS | 0.764456 |
import com.amazonaws.auth.BasicAWSCredentials;
import com.amazonaws.services.s3.AmazonS3Client;
import com.amazonaws.services.s3.model.ObjectMetadata;
import com.amazonaws.services.s3.model.PutObjectResult;
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.JsonNode;
import com.mashape.unires... | __label__POS | 0.772471 |
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.ArrayList;
public class GetCo... | __label__POS | 0.97134 |
import com.stripe.Stripe;
import com.stripe.exception.StripeException;
import com.stripe.model.PaymentIntent;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;
public class GetStripePaymentStatus {
public static String fetchEnvironmentVariab... | __label__POS | 0.997695 |
/**
* Helper class to generate role strings for `Permission`.
*/
export class Role {
/**
* Grants access to anyone.
*
* This includes authenticated and unauthenticated users.
*
* @returns {string}
*/
public static any(): string {
return 'any'
}
/**
* Gran... | __label__POS | 0.912114 |
require 'net/http'
require 'uri'
require 'json'
require 'mime/types'
require_relative 'appwrite/client'
require_relative 'appwrite/service'
require_relative 'appwrite/exception'
require_relative 'appwrite/input_file'
require_relative 'appwrite/query'
require_relative 'appwrite/permission'
require_relative 'appwrite/ro... | __label__POS | 0.697743 |
require 'json'
module Appwrite
class Query
def initialize(method, attribute = nil, values = nil)
@method = method
@attribute = attribute
if values != nil
if values.is_a?(Array)
@values = values
else
... | __label__POS | 0.999604 |
<?php
namespace Appwrite;
class Client
{
const METHOD_GET = 'GET';
const METHOD_POST = 'POST';
const METHOD_PUT = 'PUT';
const METHOD_PATCH = 'PATCH';
const METHOD_DELETE = 'DELETE';
const METHOD_HEAD = 'HEAD';
const METHOD_OPTIONS = 'OPTIONS';
const METHOD_CONNECT = 'CONNECT';
con... | __label__POS | 0.6614 |
<?php
namespace Appwrite;
class Query implements \JsonSerializable
{
protected string $method;
protected ?string $attribute;
protected ?array $values;
public function __construct(string $method, ?string $attribute = null, $values = null)
{
$this->method = $method;
$this->attribute... | __label__POS | 0.999909 |
<?php
namespace Appwrite;
/**
* Helper class to generate role strings for Permission.
*/
class Role
{
/**
* Grants access to anyone.
*
* This includes authenticated and unauthenticated users.
*
* @return string
*/
public static function any(): string
{
return 'any'... | __label__POS | 0.987721 |
<?php
namespace Appwrite;
class InputFile {
private ?string $data;
private ?string $mimeType;
private ?string $filename;
private ?string $path;
public function __construct(){}
public function getData(): ?string
{
return $this->data;
}
public function getPath(): ?string
... | __label__POS | 0.860393 |
<?php
namespace Appwrite\Enums;
use JsonSerializable;
class MessagingProviderType implements JsonSerializable
{
private static MessagingProviderType $EMAIL;
private static MessagingProviderType $SMS;
private static MessagingProviderType $PUSH;
private string $value;
private function __construct... | __label__POS | 0.999622 |
<?php
namespace Appwrite\Enums;
use JsonSerializable;
class IndexType implements JsonSerializable
{
private static IndexType $KEY;
private static IndexType $FULLTEXT;
private static IndexType $UNIQUE;
private static IndexType $SPATIAL;
private string $value;
private function __construct(str... | __label__POS | 0.99965 |
<?php
namespace Appwrite\Enums;
use JsonSerializable;
class IndexStatus implements JsonSerializable
{
private static IndexStatus $AVAILABLE;
private static IndexStatus $PROCESSING;
private static IndexStatus $DELETING;
private static IndexStatus $STUCK;
private static IndexStatus $FAILED;
pr... | __label__POS | 0.999828 |
<?php
namespace Appwrite\Enums;
use JsonSerializable;
class ExecutionStatus implements JsonSerializable
{
private static ExecutionStatus $WAITING;
private static ExecutionStatus $PROCESSING;
private static ExecutionStatus $COMPLETED;
private static ExecutionStatus $FAILED;
private string $value;... | __label__POS | 0.999737 |
<?php
namespace Appwrite\Enums;
use JsonSerializable;
class AuthenticationFactor implements JsonSerializable
{
private static AuthenticationFactor $EMAIL;
private static AuthenticationFactor $PHONE;
private static AuthenticationFactor $TOTP;
private static AuthenticationFactor $RECOVERYCODE;
pri... | __label__POS | 0.999764 |
<?php
namespace Appwrite\Enums;
use JsonSerializable;
class Runtime implements JsonSerializable
{
private static Runtime $NODE145;
private static Runtime $NODE160;
private static Runtime $NODE180;
private static Runtime $NODE190;
private static Runtime $NODE200;
private static Runtime $NODE21... | __label__POS | 0.999954 |
<?php
namespace Appwrite\Enums;
use JsonSerializable;
class ExecutionTrigger implements JsonSerializable
{
private static ExecutionTrigger $HTTP;
private static ExecutionTrigger $SCHEDULE;
private static ExecutionTrigger $EVENT;
private string $value;
private function __construct(string $value)... | __label__POS | 0.999663 |
<?php
namespace Appwrite\Enums;
use JsonSerializable;
class Compression implements JsonSerializable
{
private static Compression $NONE;
private static Compression $GZIP;
private static Compression $ZSTD;
private string $value;
private function __construct(string $value)
{
$this->val... | __label__POS | 0.999442 |
<?php
namespace Appwrite\Enums;
use JsonSerializable;
class MessageStatus implements JsonSerializable
{
private static MessageStatus $DRAFT;
private static MessageStatus $PROCESSING;
private static MessageStatus $SCHEDULED;
private static MessageStatus $SENT;
private static MessageStatus $FAILED;... | __label__POS | 0.999817 |
<?php
namespace Appwrite\Enums;
use JsonSerializable;
class RelationshipType implements JsonSerializable
{
private static RelationshipType $ONETOONE;
private static RelationshipType $MANYTOONE;
private static RelationshipType $MANYTOMANY;
private static RelationshipType $ONETOMANY;
private strin... | __label__POS | 0.999757 |
<?php
namespace Appwrite\Enums;
use JsonSerializable;
class ImageGravity implements JsonSerializable
{
private static ImageGravity $CENTER;
private static ImageGravity $TOPLEFT;
private static ImageGravity $TOP;
private static ImageGravity $TOPRIGHT;
private static ImageGravity $LEFT;
private... | __label__POS | 0.999921 |
<?php
namespace Appwrite\Enums;
use JsonSerializable;
class AttributeStatus implements JsonSerializable
{
private static AttributeStatus $AVAILABLE;
private static AttributeStatus $PROCESSING;
private static AttributeStatus $DELETING;
private static AttributeStatus $STUCK;
private static Attribut... | __label__POS | 0.999836 |
<?php
namespace Appwrite\Enums;
use JsonSerializable;
class ColumnStatus implements JsonSerializable
{
private static ColumnStatus $AVAILABLE;
private static ColumnStatus $PROCESSING;
private static ColumnStatus $DELETING;
private static ColumnStatus $STUCK;
private static ColumnStatus $FAILED;
... | __label__POS | 0.999821 |
<?php
namespace Appwrite\Enums;
use JsonSerializable;
class ExecutionMethod implements JsonSerializable
{
private static ExecutionMethod $GET;
private static ExecutionMethod $POST;
private static ExecutionMethod $PUT;
private static ExecutionMethod $PATCH;
private static ExecutionMethod $DELETE;
... | __label__POS | 0.999902 |
<?php
namespace Appwrite\Enums;
use JsonSerializable;
class CreditCard implements JsonSerializable
{
private static CreditCard $AMERICANEXPRESS;
private static CreditCard $ARGENCARD;
private static CreditCard $CABAL;
private static CreditCard $CENCOSUD;
private static CreditCard $DINERSCLUB;
... | __label__POS | 0.999925 |
<?php
namespace Appwrite\Enums;
use JsonSerializable;
class Name implements JsonSerializable
{
private static Name $V1DATABASE;
private static Name $V1DELETES;
private static Name $V1AUDITS;
private static Name $V1MAILS;
private static Name $V1FUNCTIONS;
private static Name $V1STATSRESOURCES;... | __label__POS | 0.99999 |
<?php
namespace Appwrite\Enums;
use JsonSerializable;
class OAuthProvider implements JsonSerializable
{
private static OAuthProvider $AMAZON;
private static OAuthProvider $APPLE;
private static OAuthProvider $AUTH0;
private static OAuthProvider $AUTHENTIK;
private static OAuthProvider $AUTODESK;
... | __label__POS | 0.999977 |
<?php
namespace Appwrite\Enums;
use JsonSerializable;
class Flag implements JsonSerializable
{
private static Flag $AFGHANISTAN;
private static Flag $ANGOLA;
private static Flag $ALBANIA;
private static Flag $ANDORRA;
private static Flag $UNITEDARABEMIRATES;
private static Flag $ARGENTINA;
... | __label__POS | 0.999943 |
<?php
namespace Appwrite\Enums;
use JsonSerializable;
class BuildRuntime implements JsonSerializable
{
private static BuildRuntime $NODE145;
private static BuildRuntime $NODE160;
private static BuildRuntime $NODE180;
private static BuildRuntime $NODE190;
private static BuildRuntime $NODE200;
... | __label__POS | 0.99998 |
<?php
namespace Appwrite\Enums;
use JsonSerializable;
class Framework implements JsonSerializable
{
private static Framework $ANALOG;
private static Framework $ANGULAR;
private static Framework $NEXTJS;
private static Framework $REACT;
private static Framework $NUXT;
private static Framework ... | __label__POS | 0.999706 |
<?php
namespace Appwrite\Enums;
use JsonSerializable;
class SmtpEncryption implements JsonSerializable
{
private static SmtpEncryption $NONE;
private static SmtpEncryption $SSL;
private static SmtpEncryption $TLS;
private string $value;
private function __construct(string $value)
{
... | __label__POS | 0.999641 |
<?php
namespace Appwrite\Enums;
use JsonSerializable;
class RelationMutate implements JsonSerializable
{
private static RelationMutate $CASCADE;
private static RelationMutate $RESTRICT;
private static RelationMutate $SETNULL;
private string $value;
private function __construct(string $value)
... | __label__POS | 0.999592 |
<?php
namespace Appwrite\Enums;
use JsonSerializable;
class VCSDeploymentType implements JsonSerializable
{
private static VCSDeploymentType $BRANCH;
private static VCSDeploymentType $COMMIT;
private static VCSDeploymentType $TAG;
private string $value;
private function __construct(string $valu... | __label__POS | 0.999607 |
<?php
namespace Appwrite\Enums;
use JsonSerializable;
class HealthAntivirusStatus implements JsonSerializable
{
private static HealthAntivirusStatus $DISABLED;
private static HealthAntivirusStatus $OFFLINE;
private static HealthAntivirusStatus $ONLINE;
private string $value;
private function __... | __label__POS | 0.999671 |
<?php
namespace Appwrite\Enums;
use JsonSerializable;
class DeploymentStatus implements JsonSerializable
{
private static DeploymentStatus $WAITING;
private static DeploymentStatus $PROCESSING;
private static DeploymentStatus $BUILDING;
private static DeploymentStatus $READY;
private static Deplo... | __label__POS | 0.999834 |
<?php
namespace Appwrite\Enums;
use JsonSerializable;
class PasswordHash implements JsonSerializable
{
private static PasswordHash $SHA1;
private static PasswordHash $SHA224;
private static PasswordHash $SHA256;
private static PasswordHash $SHA384;
private static PasswordHash $SHA512224;
priv... | __label__POS | 0.999886 |
<?php
namespace Appwrite\Enums;
use JsonSerializable;
class ImageFormat implements JsonSerializable
{
private static ImageFormat $JPG;
private static ImageFormat $JPEG;
private static ImageFormat $PNG;
private static ImageFormat $WEBP;
private static ImageFormat $HEIC;
private static ImageFor... | __label__POS | 0.999817 |
<?php
namespace Appwrite\Enums;
use JsonSerializable;
class Browser implements JsonSerializable
{
private static Browser $AVANTBROWSER;
private static Browser $ANDROIDWEBVIEWBETA;
private static Browser $GOOGLECHROME;
private static Browser $GOOGLECHROMEIOS;
private static Browser $GOOGLECHROMEMO... | __label__POS | 0.999887 |
<?php
namespace Appwrite\Services;
use Appwrite\AppwriteException;
use Appwrite\Client;
use Appwrite\Service;
use Appwrite\InputFile;
use Appwrite\Enums\RelationshipType;
use Appwrite\Enums\RelationMutate;
use Appwrite\Enums\IndexType;
class TablesDB extends Service
{
public function __construct(Client $client)... | __label__POS | 0.869961 |
<?php
namespace Appwrite\Services;
use Appwrite\AppwriteException;
use Appwrite\Client;
use Appwrite\Service;
use Appwrite\InputFile;
use Appwrite\Enums\Name;
class Health extends Service
{
public function __construct(Client $client)
{
parent::__construct($client);
}
/**
* Check the... | __label__POS | 0.721747 |
<?php
namespace Appwrite\Services;
use Appwrite\AppwriteException;
use Appwrite\Client;
use Appwrite\Service;
use Appwrite\InputFile;
use Appwrite\Enums\Framework;
use Appwrite\Enums\BuildRuntime;
use Appwrite\Enums\Adapter;
use Appwrite\Enums\VCSDeploymentType;
use Appwrite\Enums\DeploymentDownloadType;
class Sites... | __label__POS | 0.660039 |
<?php
namespace Appwrite\Services;
use Appwrite\AppwriteException;
use Appwrite\Client;
use Appwrite\Service;
use Appwrite\InputFile;
class Graphql extends Service
{
public function __construct(Client $client)
{
parent::__construct($client);
}
/**
* Execute a GraphQL mutation.
... | __label__POS | 0.943644 |
/**
* Helper class to generate role strings for `Permission`.
*/
export class Role {
/**
* Grants access to anyone.
*
* This includes authenticated and unauthenticated users.
*
* @returns {string}
*/
public static any(): string {
return 'any'
}
/**
* Gran... | __label__POS | 0.912114 |
<?php
namespace Appwrite\Services;
use Appwrite\AppwriteException;
use Appwrite\Client;
use Appwrite\Service;
use Appwrite\InputFile;
use Appwrite\Enums\Runtime;
use Appwrite\Enums\VCSDeploymentType;
use Appwrite\Enums\DeploymentDownloadType;
use Appwrite\Enums\ExecutionMethod;
class Functions extends Service
{
... | __label__POS | 0.739018 |
<nav id="nav" class="main-side">
<div class="side-nav">
<div class="side-nav-level-1 is-narrow">
<div class="side-nav-main">
<section class="drop-section">
<button class="open-nav is-not-desktop">OPEN NAV</button>
<ul class="drop-list">
... | __label__POS | 0.95178 |
<?php
namespace Appwrite\Services;
use Appwrite\AppwriteException;
use Appwrite\Client;
use Appwrite\Service;
use Appwrite\InputFile;
class Tokens extends Service
{
public function __construct(Client $client)
{
parent::__construct($client);
}
/**
* List all the tokens created for a ... | __label__POS | 0.831506 |
<?php
namespace Appwrite\Services;
use Appwrite\AppwriteException;
use Appwrite\Client;
use Appwrite\Service;
use Appwrite\InputFile;
class Teams extends Service
{
public function __construct(Client $client)
{
parent::__construct($client);
}
/**
* Get a list of all the teams in whic... | __label__POS | 0.634806 |
<?php
namespace Appwrite\Services;
use Appwrite\AppwriteException;
use Appwrite\Client;
use Appwrite\Service;
use Appwrite\InputFile;
class Locale extends Service
{
public function __construct(Client $client)
{
parent::__construct($client);
}
/**
* Get the current user location base... | __label__POS | 0.673495 |
import Foundation
enum QueryValue: Codable {
case string(String)
case int(Int)
case double(Double)
case bool(Bool)
case query(Query)
case array([QueryValue]) // for nested arrays
init(from decoder: Decoder) throws {
let container = try decoder.singleValueContainer()
if l... | __label__POS | 0.886766 |
import Foundation
fileprivate let DEFAULT_MIME_TYPE = "application/octet-stream"
fileprivate let mimeTypes = [
"md": "text/markdown",
"html": "text/html",
"htm": "text/html",
"shtml": "text/html",
"css": "text/css",
"xml": "text/xml",
"gif": "image/gif",
"jpeg": "image/jpeg",
"jpg"... | __label__POS | 0.715934 |
<?php
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
$staticFolder = dirname(__FILE__) . '/../static';
/**
* Returns the contents of a file in the static folder
* @param string $fileName
* @return string Contents of static/{$fileName}
*/
function get_static_file(string $fileName): string
{... | __label__POS | 0.692951 |
/**
* Faster quicksort using a stack to eliminate recursion, sorting inplace to reduce memory usage, and using insertion sort for small partition sizes.
*
* Original author unknown.
* I (Ewout Stortenbeker) isolated the fast quicksort code from benchmark (see below), ported to TypeScript and added custom sort funct... | __label__POS | 0.848797 |
package ltns.deviceinfolib;
import android.content.Context;
import android.support.annotation.NonNull;
import com.yanzhenjie.permission.AndPermission;
import com.yanzhenjie.permission.PermissionListener;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import ltns.d... | __label__POS | 0.860792 |
package ltns.deviceinfolib.listener;
import ltns.deviceinfolib.DeviceInfoManager;
import ltns.deviceinfolib.collector.base.BaseDeviceInfoCollector;
/**
* @date 创建时间:2018/1/1
* @author appzy
* @Description 采集监听
* @version
*/
public interface DeviceInfoCollectListener {
/**
* manager启动收集
*/
void... | __label__POS | 0.999582 |
package ltns.deviceinfolib.collector;
import android.content.Context;
import android.view.KeyCharacterMap;
import android.view.KeyEvent;
import android.view.ViewConfiguration;
import ltns.deviceinfolib.collector.base.BaseDeviceInfoCollector;
/**
* @date 创建时间:2018/1/8
* @author appzy
* @Description Ui信息
* @versio... | __label__POS | 0.999572 |
package ltns.deviceinfolib.collector;
import android.content.Context;
import android.os.Build;
import android.util.DisplayMetrics;
import android.view.Display;
import android.view.WindowManager;
import ltns.deviceinfolib.collector.base.BaseDeviceInfoCollector;
/**
* @date 创建时间:2018/1/8
* @author appzy
* @Descript... | __label__POS | 0.971475 |
package ltns.deviceinfolib.collector;
import android.content.Context;
import android.nfc.NfcAdapter;
import android.nfc.NfcManager;
import ltns.deviceinfolib.collector.base.BaseDeviceInfoCollector;
/**
* @date 创建时间:2018/1/8
* @author appzy
* @Description NFC信息
* @version
*/
public class NfcInfoCollector extend... | __label__POS | 0.998355 |
package ltns.deviceinfolib.collector;
import android.Manifest;
import android.annotation.SuppressLint;
import android.app.ActivityManager;
import android.content.Context;
import android.os.Environment;
import android.os.StatFs;
import android.text.format.Formatter;
import java.io.BufferedReader;
import java.io.File;
... | __label__POS | 0.734969 |
package ltns.deviceinfolib.collector;
import android.Manifest;
import android.content.Context;
import android.net.wifi.WifiInfo;
import android.net.wifi.WifiManager;
import android.os.Build;
import android.telephony.TelephonyManager;
import com.google.gson.annotations.SerializedName;
import java.lang.reflect.Invocat... | __label__POS | 0.956141 |
package ltns.deviceinfolib.collector;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
imp... | __label__POS | 0.959286 |
package ltns.deviceinfolib.collector;
import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorManager;
import java.util.ArrayList;
import java.util.List;
import ltns.deviceinfolib.collector.base.BaseDeviceInfoCollector;
/**
* @date 创建时间:2018/1/8
* @author appzy
* @Descriptio... | __label__POS | 0.995689 |
package ltns.deviceinfolib.collector;
import android.content.Context;
import android.os.Build;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileFilter;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.Inpu... | __label__POS | 0.874264 |
package ltns.deviceinfolib.collector;
import android.Manifest;
import android.content.Context;
import android.hardware.Camera;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
import java.util.List;
import ltns.deviceinfolib.collector.base.BaseDeviceInfoCollector;
/**
* @date 创建时间:20... | __label__POS | 0.908166 |
package ltns.deviceinfolib.collector;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import ltns.deviceinfolib.collector.base.BaseDeviceInfoCollector;
/**
* @date 创建时间:2018/1/8
* @author appzy
* @Description 电池信息
* @ve... | __label__POS | 0.930756 |
package ltns.deviceinfolib.collector.base;
import android.content.Context;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import java.util.HashMap;
import ltns.deviceinfolib.api.Constant;
import ltns.deviceinfolib.listener.CollectorStateObserver;
import ltns.deviceinfolib.utils.PermissionsCheckUti... | __label__POS | 0.958205 |
<?php
namespace Tests;
class Go118Test extends Base
{
protected string $sdkName = 'go';
protected string $sdkPlatform = 'server';
protected string $sdkLanguage = 'go';
protected string $version = '0.0.1';
protected string $language = 'go';
protected string $class = 'Appwrite\SDK\Language\Go';... | __label__POS | 0.632571 |
<?php
namespace Tests;
class DotNet90Test extends Base
{
protected string $sdkName = 'dotnet';
protected string $sdkPlatform = 'server';
protected string $sdkLanguage = 'dotnet';
protected string $version = '0.0.1';
protected string $language = 'dotnet';
protected string $class = 'Appwrite\SD... | __label__POS | 0.659414 |
<?php
namespace Tests;
class AppleSwift56Test extends Base
{
protected string $sdkName = 'swift';
protected string $sdkPlatform = 'client';
protected string $sdkLanguage = 'apple';
protected string $version = '0.0.1';
protected string $language = 'apple';
protected string $class = 'Appwrite\S... | __label__POS | 0.845961 |
<?php
namespace Tests;
class DotNet80Test extends Base
{
protected string $sdkName = 'dotnet';
protected string $sdkPlatform = 'server';
protected string $sdkLanguage = 'dotnet';
protected string $version = '0.0.1';
protected string $language = 'dotnet';
protected string $class = 'Appwrite\SD... | __label__POS | 0.660401 |
<?php
namespace Tests;
class Go112Test extends Base
{
protected string $sdkName = 'go';
protected string $sdkPlatform = 'server';
protected string $sdkLanguage = 'go';
protected string $version = '0.0.1';
protected string $language = 'go';
protected string $class = 'Appwrite\SDK\Language\Go';... | __label__POS | 0.630125 |
<?php
namespace Tests;
class DotNet60Test extends Base
{
protected string $sdkName = 'dotnet';
protected string $sdkPlatform = 'server';
protected string $sdkLanguage = 'dotnet';
protected string $version = '0.0.1';
protected string $language = 'dotnet';
protected string $class = 'Appwrite\SD... | __label__POS | 0.664861 |
<?php
namespace Tests;
class Swift56Test extends Base
{
protected string $sdkName = 'swift';
protected string $sdkPlatform = 'server';
protected string $sdkLanguage = 'swift';
protected string $version = '0.0.1';
protected string $language = 'swift';
protected string $class = 'Appwrite\SDK\La... | __label__POS | 0.833182 |
<?php
namespace Utopia\MockServer\Utopia;
use Utopia\Database\Document;
abstract class Model
{
public const TYPE_STRING = 'string';
public const TYPE_INTEGER = 'integer';
public const TYPE_FLOAT = 'double';
public const TYPE_BOOLEAN = 'boolean';
public const TYPE_JSON = 'json';
public const T... | __label__POS | 0.919145 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.