repo
stringlengths
1
191
file
stringlengths
23
351
code
stringlengths
0
5.32M
file_length
int64
0
5.32M
avg_line_length
float64
0
2.9k
max_line_length
int64
0
288k
extension_type
stringclasses
1 value
null
pytorch-main/android/pytorch_android/src/main/java/org/pytorch/Module.java
// Copyright 2004-present Facebook. All Rights Reserved. package org.pytorch; import com.facebook.soloader.nativeloader.NativeLoader; import com.facebook.soloader.nativeloader.SystemDelegate; import java.util.Map; /** Java wrapper for torch::jit::Module. */ public class Module { private INativePeer mNativePeer; ...
2,694
34.460526
100
java
null
pytorch-main/android/pytorch_android/src/main/java/org/pytorch/NativePeer.java
package org.pytorch; import com.facebook.jni.HybridData; import com.facebook.jni.annotations.DoNotStrip; import com.facebook.soloader.nativeloader.NativeLoader; import java.util.Map; class NativePeer implements INativePeer { static { NativeLoader.loadLibrary("pytorch_jni"); PyTorchCodegenLoader.loadNativeLi...
1,335
27.425532
89
java
null
pytorch-main/android/pytorch_android/src/main/java/org/pytorch/PyTorchAndroid.java
package org.pytorch; import android.content.res.AssetManager; import com.facebook.jni.annotations.DoNotStrip; import com.facebook.soloader.nativeloader.NativeLoader; import com.facebook.soloader.nativeloader.SystemDelegate; public final class PyTorchAndroid { static { if (!NativeLoader.isInitialized()) { ...
1,714
32.627451
100
java
null
pytorch-main/android/pytorch_android/src/main/java/org/pytorch/PyTorchCodegenLoader.java
package org.pytorch; import com.facebook.soloader.nativeloader.NativeLoader; public class PyTorchCodegenLoader { public static void loadNativeLibs() { try { NativeLoader.loadLibrary("torch-code-gen"); } catch (Throwable t) { // Loading the codegen lib is best-effort since it's only there for qu...
387
21.823529
93
java
null
pytorch-main/android/pytorch_android/src/main/java/org/pytorch/Tensor.java
package org.pytorch; import com.facebook.jni.HybridData; import com.facebook.jni.annotations.DoNotStrip; import java.nio.Buffer; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.nio.DoubleBuffer; import java.nio.FloatBuffer; import java.nio.IntBuffer; import java.nio.LongBuffer; import java.util.Arra...
25,544
33.70788
99
java
null
pytorch-main/android/pytorch_android_torchvision/src/androidTest/java/org/pytorch/torchvision/TorchVisionInstrumentedTests.java
package org.pytorch.torchvision; import static org.junit.Assert.assertArrayEquals; import android.graphics.Bitmap; import androidx.test.ext.junit.runners.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import org.pytorch.Tensor; @RunWith(AndroidJUnit4.class) public class TorchVisionInstrumente...
720
27.84
75
java
null
pytorch-main/android/pytorch_android_torchvision/src/androidTest/java/org/pytorch/torchvision/suite/TorchVisionInstrumentedTestSuite.java
package org.pytorch.torchvision.suite; import org.junit.runner.RunWith; import org.junit.runners.Suite; import org.pytorch.torchvision.TorchVisionInstrumentedTests; @RunWith(Suite.class) @Suite.SuiteClasses({TorchVisionInstrumentedTests.class}) public class TorchVisionInstrumentedTestSuite {}
296
28.7
60
java
null
pytorch-main/android/pytorch_android_torchvision/src/main/java/org/pytorch/torchvision/TensorImageUtils.java
package org.pytorch.torchvision; import android.graphics.Bitmap; import android.graphics.ImageFormat; import android.media.Image; import com.facebook.soloader.nativeloader.NativeLoader; import com.facebook.soloader.nativeloader.SystemDelegate; import java.nio.Buffer; import java.nio.ByteBuffer; import java.nio.FloatBu...
13,917
33.882206
100
java
null
pytorch-main/android/test_app/app/src/main/java/org/pytorch/testapp/CameraActivity.java
package org.pytorch.testapp; import android.Manifest; import android.content.pm.PackageManager; import android.os.Bundle; import android.os.Handler; import android.os.HandlerThread; import android.os.SystemClock; import android.util.Log; import android.util.Size; import android.view.TextureView; import android.view.Vi...
7,550
34.12093
96
java
null
pytorch-main/android/test_app/app/src/main/java/org/pytorch/testapp/Constants.java
package org.pytorch.testapp; public class Constants { public static final String TAG = "PyTorchDemo"; public static String[] IMAGENET_CLASSES = new String[] { "tench, Tinca tinca", "goldfish, Carassius auratus", "great white shark, white shark, man-eater, man-eating shark, Carcharodo...
32,856
31.531683
132
java
null
pytorch-main/android/test_app/app/src/main/java/org/pytorch/testapp/LibtorchNativeClient.java
package org.pytorch.testapp; import com.facebook.soloader.nativeloader.NativeLoader; import com.facebook.soloader.nativeloader.SystemDelegate; public final class LibtorchNativeClient { public static void loadAndForwardModel(final String modelPath) { NativePeer.loadAndForwardModel(modelPath); } private sta...
600
25.130435
75
java
null
pytorch-main/android/test_app/app/src/main/java/org/pytorch/testapp/MainActivity.java
package org.pytorch.testapp; import android.content.Context; import android.os.Bundle; import android.os.Handler; import android.os.HandlerThread; import android.os.SystemClock; import android.util.Log; import android.widget.TextView; import androidx.annotation.Nullable; import androidx.annotation.UiThread; import and...
5,699
32.139535
95
java
null
pytorch-main/android/test_app/app/src/main/java/org/pytorch/testapp/Result.java
package org.pytorch.testapp; class Result { public final float[] scores; public final long totalDuration; public final long moduleForwardDuration; public Result(float[] scores, long moduleForwardDuration, long totalDuration) { this.scores = scores; this.moduleForwardDuration = moduleForwardDuration; ...
366
23.466667
81
java
null
pytorch-main/android/test_app/app/src/main/java/org/pytorch/testapp/Utils.java
package org.pytorch.testapp; import java.util.Arrays; public class Utils { public static int[] topK(float[] a, final int topk) { float values[] = new float[topk]; Arrays.fill(values, -Float.MAX_VALUE); int ixs[] = new int[topk]; Arrays.fill(ixs, -1); for (int i = 0; i < a.length; i++) { ...
634
20.896552
55
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/RedPhone.java
/* * Copyright (C) 2011 Whisper Systems * Copyright (C) 2015 Open Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) ...
13,484
35.347709
122
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/RedPhoneService.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
18,630
32.813067
110
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/RedPhoneShare.java
package org.thoughtcrime.redphone; import android.app.Activity; import android.content.Intent; import android.database.Cursor; import android.os.Bundle; import android.provider.ContactsContract; import android.text.TextUtils; public class RedPhoneShare extends Activity { private static final String TAG = RedPhone....
1,458
30.042553
119
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/audio/AudioException.java
package org.thoughtcrime.redphone.audio; /** * An exception related to the audio subsystem. * * @author Stuart O. Anderson */ public class AudioException extends Exception { private final String clientMessage; public AudioException(String clientMessage) { this.clientMessage = clientMessage; } public ...
497
19.75
47
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/audio/CallAudioManager.java
package org.thoughtcrime.redphone.audio; import android.content.Context; import android.media.AudioManager; import android.os.Build; import android.support.annotation.NonNull; import android.util.Log; import org.thoughtcrime.securesms.util.ServiceUtil; import java.io.FileDescriptor; import java.lang.reflect.Field; i...
3,433
31.704762
100
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/audio/IncomingRinger.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
5,280
32.213836
118
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/audio/NativeAudioException.java
package org.thoughtcrime.redphone.audio; public class NativeAudioException extends Exception { public NativeAudioException() { super(); } public NativeAudioException(String detailMessage) { super(detailMessage); } public NativeAudioException(String detailMessage, Throwable throwable) { super(d...
433
18.727273
74
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/audio/OutgoingRinger.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
3,912
25.086667
129
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/call/AccelerometerListener.java
/* * Copyright (C) 2009 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
6,295
37.864198
100
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/call/CallManager.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
5,268
30.177515
98
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/call/CallStateListener.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
1,796
34.235294
72
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/call/InitiatingCallManager.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
5,435
39.87218
100
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/call/LockManager.java
package org.thoughtcrime.redphone.call; import android.app.KeyguardManager; import android.content.Context; import android.net.wifi.WifiManager; import android.os.PowerManager; import android.provider.Settings; import android.util.Log; /** * Maintains wake lock state. * * @author Stuart O. Anderson */ public clas...
4,133
28.112676
122
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/call/ProximityLock.java
package org.thoughtcrime.redphone.call; import android.os.Build; import android.os.PowerManager; import android.util.Log; import org.whispersystems.libaxolotl.util.guava.Optional; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; /** * Controls access to the proximity lock. * Th...
2,890
29.114583
104
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/call/ResponderCallManager.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
5,976
35.445122
120
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/call/SignalManager.java
package org.thoughtcrime.redphone.call; import android.util.Log; import org.thoughtcrime.redphone.signaling.SessionDescriptor; import org.thoughtcrime.redphone.signaling.SignalingException; import org.thoughtcrime.redphone.signaling.SignalingSocket; import org.thoughtcrime.redphone.signaling.signals.ServerSignal; im...
2,593
30.253012
91
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/EncryptedSignalMessage.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
5,208
34.195946
104
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/InvalidEncryptedSignalException.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
1,262
26.456522
85
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/Otp.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
1,531
30.916667
77
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/SecureRtpPacket.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
2,241
24.477273
77
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/SecureRtpSocket.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
2,356
24.619565
87
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/zrtp/CommitPacket.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
5,827
33.690476
90
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/zrtp/ConfAckPacket.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
1,165
26.761905
72
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/zrtp/ConfirmOnePacket.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
1,388
30.568182
101
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/zrtp/ConfirmPacket.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
6,984
33.408867
121
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/zrtp/ConfirmTwoPacket.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
1,387
31.27907
101
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/zrtp/DH3KDHPartOnePacket.java
/* * Copyright (C) 2012 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
1,562
32.978261
97
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/zrtp/DH3KDHPartTwoPacket.java
/* * Copyright (C) 2012 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
1,701
31.113208
97
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/zrtp/DH3KSecretCalculator.java
/* * Copyright (C) 2012 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
2,358
33.188406
102
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/zrtp/DHPacket.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
7,129
33.61165
86
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/zrtp/DHPartOnePacket.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
1,602
32.395833
88
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/zrtp/DHPartTwoPacket.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
1,648
31.98
88
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/zrtp/EC25DHPartOnePacket.java
/* * Copyright (C) 2012 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
1,594
31.55102
97
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/zrtp/EC25DHPartTwoPacket.java
/* * Copyright (C) 2012 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
1,745
30.178571
97
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/zrtp/EC25SecretCalculator.java
/* * Copyright (C) 2012 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
2,948
34.963415
98
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/zrtp/HandshakePacket.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
8,292
33.410788
107
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/zrtp/HashChain.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
1,641
23.507463
72
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/zrtp/HelloAckPacket.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
1,170
27.560976
72
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/zrtp/HelloPacket.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
8,198
31.535714
87
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/zrtp/InvalidPacketException.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
1,307
30.142857
76
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/zrtp/MasterSecret.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
3,903
25.739726
88
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/zrtp/NegotiationFailedException.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
1,147
30.888889
80
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/zrtp/RecipientUnavailableException.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
1,186
30.236842
79
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/zrtp/RedPhoneClientId.java
package org.thoughtcrime.redphone.crypto.zrtp; import android.util.Log; public class RedPhoneClientId { private boolean isRedphoneClient; private int clientIdInteger; public RedPhoneClientId(String clientId) { String[] clientIdParts = clientId.split(" "); if (clientIdParts.length < 2) { isR...
977
22.853659
95
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/zrtp/SASCalculator.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
7,482
70.266667
100
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/zrtp/SASInfo.java
package org.thoughtcrime.redphone.crypto.zrtp; public class SASInfo { private final String sasText; private final boolean verified; public SASInfo(String sasText, boolean verified) { this.sasText = sasText; this.verified = verified; } public String getSasText() { return sasText; } public...
371
16.714286
52
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/zrtp/SecretCalculator.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
2,736
31.2
88
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/zrtp/ZRTPInitiatorSocket.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
7,659
35.47619
122
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/zrtp/ZRTPResponderSocket.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
7,348
36.881443
128
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/zrtp/ZRTPSocket.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
13,869
38.291785
836
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/zrtp/retained/InitiatorRetainedSecretsCalculator.java
/* * Copyright (C) 2013 Open Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program ...
2,753
40.727273
108
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/zrtp/retained/ResponderRetainedSecretsCalculator.java
/* * Copyright (C) 2013 Open Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program ...
2,753
40.727273
108
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/zrtp/retained/RetainedSecrets.java
package org.thoughtcrime.redphone.crypto.zrtp.retained; public class RetainedSecrets { private final byte[] rs1; private final byte[] rs2; public RetainedSecrets(byte[] rs1, byte[] rs2) { this.rs1 = rs1; this.rs2 = rs2; } public byte[] getRetainedSecretOne() { return rs1; } public byte[] ...
367
16.52381
55
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/zrtp/retained/RetainedSecretsCalculator.java
/* * Copyright (C) 2013 Open Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program ...
3,148
33.604396
105
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/crypto/zrtp/retained/RetainedSecretsDerivatives.java
package org.thoughtcrime.redphone.crypto.zrtp.retained; public class RetainedSecretsDerivatives { private final byte[] rs1ID; private final byte[] rs2ID; public RetainedSecretsDerivatives(byte[] rs1ID, byte[] rs2ID) { this.rs1ID = rs1ID; this.rs2ID = rs2ID; } public byte[] getRetainedSecretOneDeriv...
428
20.45
65
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/network/LowLatencySocketConnector.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
4,435
28.972973
98
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/network/RtpPacket.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
3,907
24.376623
74
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/network/RtpSocket.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
2,835
26.269231
95
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/pstn/CallStateView.java
package org.thoughtcrime.redphone.pstn; /** * Provides access to the state of a call * * @author Stuart O. Anderson */ public interface CallStateView { boolean isInCall(); }
181
15.545455
41
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/pstn/IncomingPstnCallListener.java
package org.thoughtcrime.redphone.pstn; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.telephony.TelephonyManager; import android.util.Log; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; /** * Listens for ...
1,985
37.192308
112
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/signaling/LoginFailedException.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
1,219
26.111111
74
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/signaling/NetworkConnector.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
4,060
31.230159
88
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/signaling/NoSuchUserException.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
1,127
27.923077
73
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/signaling/OtpCounterProvider.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
1,708
31.245283
101
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/signaling/RedPhoneAccountAttributes.java
package org.thoughtcrime.redphone.signaling; import com.fasterxml.jackson.annotation.JsonProperty; public class RedPhoneAccountAttributes { @JsonProperty private String signalingKey; @JsonProperty private String gcmRegistrationId; @JsonProperty private boolean textsecure; public RedPhoneAccountAttri...
549
21
83
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/signaling/RedPhoneAccountManager.java
package org.thoughtcrime.redphone.signaling; import com.squareup.okhttp.MediaType; import com.squareup.okhttp.OkHttpClient; import com.squareup.okhttp.Request; import com.squareup.okhttp.RequestBody; import com.squareup.okhttp.Response; import org.thoughtcrime.securesms.util.Base64; import org.thoughtcrime.securesms....
3,806
35.961165
112
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/signaling/RedPhoneGcmId.java
package org.thoughtcrime.redphone.signaling; import com.fasterxml.jackson.annotation.JsonProperty; public class RedPhoneGcmId { @JsonProperty private String gcmRegistrationId; public RedPhoneGcmId() {} public RedPhoneGcmId(String gcmRegistrationId) { this.gcmRegistrationId = gcmRegistrationId; } }
320
16.833333
53
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/signaling/RedPhoneTrustStore.java
package org.thoughtcrime.redphone.signaling; import android.content.Context; import org.thoughtcrime.securesms.R; import org.whispersystems.textsecure.api.push.TrustStore; import java.io.InputStream; public class RedPhoneTrustStore implements TrustStore { private final Context context; public RedPhoneTrustSto...
611
20.857143
66
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/signaling/ServerMessageException.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
1,141
29.052632
76
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/signaling/SessionDescriptor.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
2,851
26.68932
94
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/signaling/SessionInitiationFailureException.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
1,197
29.717949
87
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/signaling/SessionStaleException.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
1,137
28.179487
75
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/signaling/SignalReader.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
2,534
26.857143
100
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/signaling/SignalResponse.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
1,399
24.454545
83
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/signaling/SignalResponseReader.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
1,749
30.25
88
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/signaling/SignalingException.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
1,122
27.794872
72
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/signaling/SignalingSocket.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
10,959
34.700326
99
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/signaling/UnauthorizedException.java
package org.thoughtcrime.redphone.signaling; import java.io.IOException; public class UnauthorizedException extends IOException { public UnauthorizedException(String s) { super(s); } }
195
18.6
56
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/signaling/signals/BusySignal.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
1,385
25.653846
88
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/signaling/signals/C2DMRegistrationSignal.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
1,490
26.109091
93
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/signaling/signals/C2DMUnregistrationSignal.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
1,259
24.2
72
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/signaling/signals/CompressedInitiateSignalProtocol.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: CompressedInitiateSignal.proto package org.thoughtcrime.redphone.signaling.signals; public final class CompressedInitiateSignalProtocol { private CompressedInitiateSignalProtocol() {} public static void registerAllExtensions( com.google....
25,853
36.146552
231
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/signaling/signals/HangupSignal.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
1,381
25.075472
90
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/signaling/signals/InitiateSignal.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
1,701
27.366667
97
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/signaling/signals/OpenPortSignal.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
1,287
23.301887
72
java
cryptoguard
cryptoguard-master/Notebook/Custom_Android_Tests/Signal-Android-3.5.0/src/org/thoughtcrime/redphone/signaling/signals/RingingSignal.java
/* * Copyright (C) 2011 Whisper Systems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is di...
1,406
25.055556
91
java