path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/com/example/taskkeeperandanalyzer/constants/Constants.kt | Mohameddekow | 477,003,203 | false | null | package com.example.taskkeeperandanalyzer.constants
const val USERS_ROOT_REF = "users"
const val PROFILE_IMAGES_ROOT_REF = "profileImages"
const val PICK_IMAGE_CODE = 1234
const val TASK_ROOT_REF = "tasks"
| 0 | Kotlin | 0 | 4 | 40cec23462d3645fba651610da09ffea48821488 | 208 | Task_Analyzer_and_notifier | Apache License 2.0 |
src/commonMain/kotlin/com/lhwdev/math/vector/Vector.kt | lhwdev | 376,901,149 | false | null | package com.lhwdev.math.vector
interface Vector {
val dimensions: Int
val components: FloatArray
val magnitude: Float
}
| 0 | Kotlin | 0 | 0 | a52adbd2b8a14bc12d113974cae65837ea0917d5 | 125 | project-3d-projection | MIT License |
core/src/main/kotlin/materialui/components/avatar/AvatarElementBuilder.kt | subroh0508 | 167,797,152 | false | null | package materialui.components.avatar
import kotlinext.js.js
import kotlinx.html.IMG
import kotlinx.html.Tag
import kotlinx.html.TagConsumer
import kotlinx.html.stream.createHTML
import materialui.components.MaterialElementBuilder
import materialui.components.avatar.enum.AvatarStyle
import materialui.components.getValu... | 14 | Kotlin | 27 | 81 | a959a951ace3b9bd49dc5405bea150d4d53cf162 | 1,369 | kotlin-material-ui | MIT License |
app/src/main/java/moe/mipa/service/MipaService.kt | yuuukida | 401,483,818 | false | null | package moe.mipa.service
import android.accessibilityservice.AccessibilityService
import android.accessibilityservice.GestureDescription
import android.accessibilityservice.GestureDescription.StrokeDescription
import android.content.Intent
import android.graphics.Path
import android.os.Bundle
import android.util.Log
i... | 0 | Kotlin | 0 | 0 | 432eddd8ee80c577b38d3c55665db8c2d3c59935 | 4,152 | mipa | MIT License |
kotest-framework/kotest-framework-engine/src/jvmTest/kotlin/com/sksamuel/kotest/engine/objects/ObjectTest.kt | ajalt | 134,604,357 | true | {"Kotlin": 2954857, "HTML": 423, "Java": 145} | package com.sksamuel.kotest.engine.objects
import io.kotest.core.listeners.AfterProjectListener
import io.kotest.core.spec.AutoScan
import io.kotest.core.spec.style.FunSpec
import io.kotest.matchers.booleans.shouldBeTrue
import java.util.concurrent.atomic.AtomicBoolean
val objectTests = AtomicBoolean(false)
@AutoSca... | 6 | Kotlin | 0 | 1 | ff1b42546abba34ec13eeb7c8f876e546ffc1e02 | 664 | kotlintest | Apache License 2.0 |
codebase/android/core-database/src/main/java/com/makeappssimple/abhimanyu/financemanager/android/core/database/source/usecase/GetSourceUseCase.kt | Abhimanyu14 | 429,663,688 | false | null | package com.makeappssimple.abhimanyu.financemanager.android.core.database.source.usecase
import com.makeappssimple.abhimanyu.financemanager.android.core.database.source.model.Source
import com.makeappssimple.abhimanyu.financemanager.android.core.database.source.repository.SourceRepository
interface GetSourceUseCase {... | 0 | Kotlin | 0 | 0 | 29afaec0cf4e95ba4d6c0dcc32cba3fea6a088cb | 650 | finance-manager | Apache License 2.0 |
lib/java/matano/iceberg_main/src/main/kotlin/com/matano/iceberg/AthenaUtil.kt | matanolabs | 510,034,344 | false | null | package com.matano.iceberg
import org.slf4j.LoggerFactory
import software.amazon.awssdk.http.nio.netty.NettyNioAsyncHttpClient
import software.amazon.awssdk.services.athena.AthenaAsyncClient
import software.amazon.awssdk.services.athena.model.*
import java.util.concurrent.CompletableFuture
import java.util.concurrent.... | 38 | Rust | 41 | 925 | 7373558a865f981bea25bd7be23c3a64a36a3fa4 | 2,552 | matano | Apache License 2.0 |
app/src/main/java/com/motivemobileapp/MainActivity.kt | motivepick | 173,620,725 | false | null | package com.motivemobileapp
import android.os.Bundle
import android.support.design.widget.BottomNavigationView.OnNavigationItemSelectedListener
import android.support.v7.app.AppCompatActivity
import com.motivemobileapp.schedule.ScheduleFragment
import com.motivemobileapp.tasks.TasksFragment
import kotlinx.android.synt... | 3 | Kotlin | 0 | 0 | 9ee779dbbb2b926f35e835194f4ed95d3991bfe1 | 1,402 | motive-android-app | MIT License |
modules/core/arrow-syntax/src/main/kotlin/arrow/syntax/collections/list.kt | ajrulez | 130,101,303 | true | {"Kotlin": 1374361, "CSS": 118712, "HTML": 10089, "JavaScript": 8493, "Java": 4465, "Shell": 3043} | package arrow.syntax.collections
import arrow.core.Option
import arrow.core.Some
import arrow.core.identity
import arrow.core.toOption
import arrow.legacy.Disjunction
import arrow.legacy.map
/**
* Returns a list containing all elements except the first element
*/
fun <T> List<T>.tail(): List<T> = this.drop(1)
infi... | 0 | Kotlin | 0 | 0 | fb5b911523405a0f60e067dce34af309d1459abb | 1,569 | arrow | Apache License 2.0 |
presentation/src/main/java/com/yapp/bol/presentation/view/mypage/MyPageFragment.kt | onboard-github | 704,021,246 | false | {"Kotlin": 456573} | package com.yapp.bol.presentation.view.mypage
import android.content.Intent
import androidx.fragment.app.viewModels
import com.yapp.bol.presentation.R
import com.yapp.bol.presentation.base.BaseFragment
import com.yapp.bol.presentation.databinding.FragmentMyPageBinding
import dagger.hilt.android.AndroidEntryPoint
impor... | 2 | Kotlin | 0 | 0 | 750ff650bd467ac6e7faba2c04f13eda6897aae6 | 2,033 | onboard-aos | Apache License 2.0 |
app/src/main/java/com/sianis/woltsequence/MainActivity.kt | sianis | 731,521,844 | false | {"Kotlin": 57759} | package com.sianis.woltsequence
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.viewModels
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.Ex... | 0 | Kotlin | 0 | 0 | 33de0d9ed91786bcaf896d2dd66e82de89d7fed4 | 1,984 | wolt-sequence | The Unlicense |
sample-android/src/main/java/io/polyakov/tracy/sample/android/splash/SplashStartedCheckpoint.kt | p01yak0v | 596,203,365 | false | null | package io.polyakov.tracy.sample.android.splash
import io.polyakov.tracy.model.Checkpoint
object SplashStartedCheckpoint : Checkpoint("splash-finished-checkpoint")
| 0 | Kotlin | 0 | 0 | cfc9818b55b154cff29c716dcd4184d306bbd817 | 166 | tracy | Apache License 2.0 |
app/src/main/java/com/simplefoodscanner/di/BarcodeScanningModule.kt | bestellon | 718,147,493 | false | {"Kotlin": 72315, "Java": 543} | package com.simplefoodscanner.di
import android.content.Context
import com.google.mlkit.vision.barcode.common.Barcode
import com.google.mlkit.vision.codescanner.GmsBarcodeScannerOptions
import com.google.mlkit.vision.codescanner.GmsBarcodeScanning
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallI... | 0 | Kotlin | 0 | 0 | 0a5bb5c6d8ab97dc5fdff75335b2a55eea8d291c | 1,449 | simple-food-scanner | MIT License |
app/src/main/kotlin/eu/ezytarget/processingtemplate/realms/cotton_ball/CottonBallRealm.kt | easytarget2000 | 266,631,921 | false | {"Kotlin": 125275} | package eu.ezytarget.processingtemplate.realms.cotton_ball
import processing.core.*
import processing.core.PApplet.map
import processing.core.PConstants.ELLIPSE
import processing.opengl.PShapeOpenGL.createShape
import java.lang.Math.pow
import kotlin.math.abs
import kotlin.math.cos
import kotlin.math.max
import kotl... | 0 | Kotlin | 0 | 0 | 78f5aa56882a8cb16017781bd0060ba36ba1793b | 7,853 | kotlin-processing-template | ANTLR Software Rights Notice |
app/src/main/java/com/philips/btserver/observations/MdcActivityCode.kt | philips-labs | 359,543,841 | false | null | package com.philips.btserver.observations
// From IEEE-11073-10101 Partition 129 codes
enum class MdcActivityCode(val value: Int, val description : String) {
MDC_HF_ACT_SKI (8455154, "Skiing"), //Person is skiing.</p>
MDC_HF_ACT_RUN (8455155, "Running"), //Person is running.</p>
MDC_HF_ACT_... | 0 | null | 2 | 6 | 271f2aa4b8c8217f64ca173eb322a7132f6c6c71 | 1,762 | BLE-GHS-Server-Simulator | MIT License |
app/src/main/java/com/javadabl/darkgallery/di/ActivityModule.kt | JavadAbl | 680,796,282 | false | null | package com.javadabl.darkgallery.di
import com.javadabl.darkgallery.ui.album.adapter.AlbumTableRecyclerAdapter
import com.javadabl.darkgallery.ui.images.adapter.ImagesRecyclerAdapter
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.components.ActivityComponent
import... | 0 | Kotlin | 0 | 0 | 19383ebc18df38c2a855b67e40ac8c796a582f1f | 878 | dark-gallery | MIT License |
app/src/main/java/com/example/carrental/Activities/LoginActivity.kt | Ozilele | 642,031,898 | false | null | package com.example.carrental.Activities
import android.app.Activity
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.Button
import android.widget.ProgressBar
import android.widget.Toast
import androidx.activity.result... | 0 | Kotlin | 0 | 0 | da5079c461df57d8e224e4dc8288e03d7f0c471c | 6,878 | CarRentalApp | MIT License |
src/main/kotlin/model/base/BaseModel.kt | MichBogus | 105,879,492 | false | null | package model.base
abstract class BaseModel {
abstract fun isValid(): Boolean
} | 0 | Kotlin | 0 | 0 | 467c69f149431be89fdd6b39202ef92771619c04 | 85 | PINZ-ws | Apache License 2.0 |
listmaker2/app/src/main/java/com/trios2024ammy/listmaker2/ui/main/MainFragment.kt | sumana-hub | 853,339,781 | false | {"Kotlin": 4260} | package com.trios2024evmg.listmaker.ui.main
import androidx.fragment.app.viewModels
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.LinearLayoutManager
import com.trios2024evmg.... | 0 | Kotlin | 0 | 0 | bc7853a6e4f772bee1de8f1dc38a86bc2cbf71a2 | 1,182 | listmakeram | MIT License |
domain/src/main/java/com/danielwaiguru/shoppy/domain/utils/ResultWrapper.kt | daniel-waiguru | 698,145,013 | false | {"Kotlin": 93819, "Shell": 254} | package com.danielwaiguru.shoppy.domain.utils
sealed class ResultWrapper<out T> {
data class Success<out T>(val value: T) : ResultWrapper<T>()
data class Error(
val errorMessage: String?
) : ResultWrapper<Nothing>()
object Loading : ResultWrapper<Nothing>()
}
data class ErrorResponse(
val... | 11 | Kotlin | 1 | 11 | 9eadcd3603c4c0de54181e0f4131c708866bd003 | 338 | Shoppy | The Unlicense |
secdra-web/src/main/kotlin/com/junjie/secdraweb/core/configurer/ProgramConfigurer.kt | fuzeongit | 154,359,683 | false | null | package com.junjie.secdraweb.core.configurer
import com.junjie.secdraaccount.core.component.AccountConfig
import com.junjie.secdraaccount.service.AccountService
import com.junjie.secdracore.component.BaseConfig
import com.junjie.secdraqiniu.core.component.QiniuConfig
import com.junjie.secdraservice.service.AuthorizeCo... | 1 | Kotlin | 4 | 11 | f75c32e5fb834d456a3182f71aee08029a1629d3 | 3,668 | secdra | MIT License |
app/src/main/java/com/example/simpledraggableshape/domain/model/Rectangle.kt | imansdn | 529,305,637 | false | {"Kotlin": 50682} | package com.example.simpledraggableshape.domain.model
data class Rectangle(
val id: Int,
var xCorner: Float = 0f,
var yCorner: Float = 0f,
val width: Float = 0f,
val height: Float = 0f,
val color: Int,
val lastModified: Long
) | 0 | Kotlin | 0 | 3 | 316589f1e745f73461f23d9450394d04dbe8198f | 255 | DraggableShape | The Unlicense |
app/src/main/java/com/example/android/hilt/di/NavigationModule.kt | ELTEGANI | 295,792,045 | false | null | package com.example.android.hilt.di
import com.example.android.hilt.navigator.AppNavigator
import com.example.android.hilt.navigator.AppNavigatorImpl
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.android.components.ActivityComponent
//The DatabaseModule module is installed i... | 0 | Kotlin | 0 | 0 | 902754fbd63d8e55b1b478014dd0f80bb15045b8 | 887 | android-hilt | Apache License 2.0 |
plugin/src/test/kotlin/com/pablisco/gradle/automodule/gradle/_GradleRunner.kt | pablisco | 240,808,425 | false | null | package com.pablisco.gradle.automodule.gradle
import org.amshove.kluent.shouldBeEqualTo
import org.gradle.testkit.runner.BuildResult
import org.gradle.testkit.runner.GradleRunner
import org.gradle.testkit.runner.TaskOutcome
import java.nio.file.Path
internal fun Path.runGradleProjects(): BuildResult =
runGradle {... | 2 | Kotlin | 8 | 96 | 4d5c307e41c7955acedc7c2c05f41ea712e121aa | 836 | auto-module | MIT License |
app/src/main/java/dev/esnault/bunpyro/android/media/IAudioPlayer.kt | esnaultdev | 242,479,002 | false | null | package dev.esnault.bunpyro.android.media
interface IAudioPlayer {
class Listener(
val onStateChange: (state: AudioState) -> Unit
)
var listener: Listener?
fun play(url: String?)
fun stop()
fun preload(url: String)
fun release()
}
| 2 | Kotlin | 1 | 9 | 89b3c7dad2c37c22648c26500016d6503d27019e | 272 | BunPyro | Intel Open Source License |
kotest-assertions/kotest-assertions-shared/src/jvmTest/kotlin/com/sksamuel/kotest/eq/StringEqTest.kt | kotest | 47,071,082 | false | {"Kotlin": 4736924, "CSS": 352, "Java": 145} | package com.sksamuel.kotest.eq
import io.kotest.core.spec.style.FunSpec
import io.kotest.assertions.eq.StringEq
import io.kotest.assertions.shouldFailWithMessage
import io.kotest.matchers.shouldBe
class StringEqTest : FunSpec({
test("string eq should highlight line break diffs") {
StringEq.equals("foo\nbar\r... | 141 | Kotlin | 648 | 4,435 | 2ce83d0f79e189c90e2d7bb3d16bd4f75dec9c2f | 965 | kotest | Apache License 2.0 |
core/src/main/kotlin/org/futurerobotics/jargon/profile/MotionProfileConstrainer.kt | Future14473 | 199,776,352 | false | null | package org.futurerobotics.jargon.profile
import org.futurerobotics.jargon.math.Interval
import org.futurerobotics.jargon.util.Stepper
/**
* Represents the constraints used to generate a dynamic [ForwardMotionProfile] using [generateDynamicProfile].
*
* This operates by returning constraints on velocity and accele... | 9 | Kotlin | 0 | 1 | 2cb837a402fb3fe2ce634e07cff9bed426447125 | 1,596 | JARGON | MIT License |
plugins/kotlin/frontend-independent/src/org/jetbrains/kotlin/idea/quickfix/AddEqEqTrueFix.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.kotlin.idea.quickfix
import com.intellij.modcommand.ActionContext
import com.intellij.modcommand.ModPsiUpdater
import org.jetbrains.kotlin.idea.base.resources.KotlinBundle
imp... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 1,071 | intellij-community | Apache License 2.0 |
app/src/main/java/com/soussidev/kotlin/nicenavigation/PageFragment2.kt | datalink747 | 102,757,129 | false | null | package com.soussidev.kotlin.nicenavigation
import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
/**
* A simple [Fragment] subclass.
*/
class PageFragment2 : Fragment() {
override fun onCreateView(inflater: ... | 1 | Kotlin | 12 | 27 | f0aa8c961487431e61ff1ab5d1cfb62fcf94eb1c | 744 | NiceNavigation | Apache License 2.0 |
app/src/main/java/com/apwdevs/footballMatch/utility/TestCoroutineContext.kt | AlexzPurewoko | 163,003,303 | false | null | package com.apwdevs.footballMatch.utility
import kotlinx.coroutines.Dispatchers
import kotlin.coroutines.CoroutineContext
class TestCoroutineContext : CoroutineContextProvider() {
override val main: CoroutineContext = Dispatchers.Unconfined
} | 0 | Kotlin | 0 | 1 | 8cb9d348d67b12034a2040ba2b84557c9657ecd1 | 248 | Tugas2KADE_FootballMatch | Apache License 2.0 |
ScreenBuilder/src/commonTest/kotlin/io/github/rcscreenbuilder/commonTest.kt | rakeshchander | 457,778,493 | false | {"Kotlin": 21462} | package io.github.rcscreenbuilder
import kotlin.test.Test
import kotlin.test.assertTrue
class CommonGreetingTest {
@Test
fun testExample() {
val contents = AppBuilder.initialize(jsonContents)
println(contents)
}
}
val jsonContents = """
{
"features": [
{
"id": ... | 0 | Kotlin | 0 | 0 | 0736e24844f1000fe39979abf2760251d1037228 | 6,959 | RCScreenBuilder | Apache License 2.0 |
app/src/main/java/com/sudhirkhanger/bakingapp/MainActivityFragment.kt | sudhirkhanger | 115,946,840 | false | null | /*
* Copyright 2018 <NAME>
*
* 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 applicable law or agreed to in wr... | 0 | Kotlin | 2 | 2 | 21517cfbacd5b7b15ec13f7e3a1e9229840f4a68 | 3,332 | baking-app-kotlin | Apache License 2.0 |
app/src/main/java/com/example/mariajeu/SignUpDTO.kt | MARIAJEU | 735,846,477 | false | {"Kotlin": 112416} | package com.example.mariajeu
import retrofit2.http.Field
data class SignUpDTO(
val userName: String,
val password: String,
val name: String,
val email: String,
val phoneNumber: String,
val authNum: String,
val nickName: String,
val role: String,
val agreedToTerms1: Boolean,
val... | 0 | Kotlin | 0 | 1 | e951e5aafe3c87cf892568d30afbfada0066c2fc | 387 | MARIAJEU_FE-Android- | MIT License |
src/main/kotlin/net/voxelpi/voxlib/math/position/Position2F.kt | VoxelPi | 708,099,726 | false | {"Kotlin": 274588} | package net.voxelpi.voxlib.math.position
import net.voxelpi.voxlib.math.aabb.AABB2
import net.voxelpi.voxlib.math.vector.MutableVector2F
import net.voxelpi.voxlib.math.vector.Vector2
import net.voxelpi.voxlib.math.vector.Vector2F
public interface Position2F : Position2<Float> {
override fun plus(other: Vector2<F... | 0 | Kotlin | 0 | 0 | 2e8253699793e57c7bb3e443fc5cc6874c9adfd3 | 824 | VoxLib | MIT License |
Chapter03/BeSocial/app/src/main/java/com/kotlinblueprint/besocial/util/AppToolbar.kt | PacktPublishing | 111,666,634 | false | null | package com.kotlinblueprint.besocial.util
import android.support.v7.widget.Toolbar
import com.kotlinblueprint.besocial.R
import com.kotlinblueprint.besocial.ui.activity.ProfileActivity
import org.jetbrains.anko.startActivity
/**
* Created by hardik.trivedi on 01/10/17.
*/
interface AppToolbar {
val toolbar: Too... | 0 | JavaScript | 10 | 21 | 8421895a6835a96ff51b9bfde650b5ea3f2b3cd7 | 859 | Kotlin-Blueprints | MIT License |
app/src/main/java/com/hansung/sherpa/itemsetting/SubPathAdapter.kt | KJH0506 | 792,786,312 | false | {"Kotlin": 837821} | package com.hansung.sherpa.itemsetting
import com.google.gson.Gson
import com.google.gson.GsonBuilder
import com.google.gson.JsonParseException
import com.google.gson.JsonParser
import com.google.gson.TypeAdapter
import com.google.gson.reflect.TypeToken
import com.google.gson.stream.JsonReader
import com.google.gson.s... | 0 | Kotlin | 3 | 0 | 7ce39c4b3e138bfde759d6b3bfd14b6ca0b8322e | 2,562 | Naver_Navi_TeamProject | Apache License 2.0 |
core-ui/src/main/java/com/anytypeio/anytype/core_ui/features/editor/holders/other/LinkToObjectDelete.kt | anyproto | 647,371,233 | false | {"Kotlin": 11623123, "Java": 69306, "Shell": 11350, "Makefile": 1334} | package com.anytypeio.anytype.core_ui.features.editor.holders.other
import android.widget.FrameLayout
import androidx.core.view.updateLayoutParams
import androidx.core.view.updatePadding
import androidx.recyclerview.widget.RecyclerView
import com.anytypeio.anytype.core_ui.BuildConfig
import com.anytypeio.anytype.core_... | 45 | Kotlin | 43 | 528 | c708958dcb96201ab7bb064c838ffa8272d5f326 | 3,286 | anytype-kotlin | RSA Message-Digest License |
src/src/main/java/com/online/course/model/ForgetPassword.kt | dimske-sys | 815,819,154 | false | null | package com.techlabcamp.neuronet.model
import com.google.gson.annotations.SerializedName
class ForgetPassword {
@SerializedName("email")
lateinit var email: String
}
| 0 | Kotlin | 0 | 0 | fcec541f3d95355d7dd0d559ffedb150727325b4 | 176 | neuronet | MIT License |
app/src/test/kotlin/test/Test1239.kt | likexx | 559,794,763 | false | {"Kotlin": 136661} | package test
import org.junit.Before
import solution.Solution1239
import kotlin.test.Test
import kotlin.test.*
class Test1239 : TestBase<Solution1239.Solution>(Solution1239.Solution()) {
@Test
fun test() {
val s = solution
val tests = listOf(
Pair(listOf("un","iq","ue"), 4),
... | 0 | Kotlin | 0 | 0 | 376352562faf8131172e7630ab4e6501fabb3002 | 543 | leetcode-kotlin | MIT License |
app/src/main/java/com/master8/shana/ui/movies/added/GoodMoviesFragment.kt | master8 | 236,213,828 | false | null | package com.master8.shana.ui.movies.added
import com.google.firebase.database.Query
import com.master8.shana.data.source.firebase.database.FirebaseRealtimeDatabase
class GoodMoviesFragment : AddedMoviesFragment() {
override fun getMoviesQuery(database: FirebaseRealtimeDatabase): Query {
return database.g... | 0 | Kotlin | 1 | 2 | c14364eb536c1c38ce7ff5f0c949878047df2e64 | 390 | shana-good-movies | MIT License |
AndroidCode/app/src/main/java/com/rootusergroup/roofify/data/daos/UserDAO.kt | spocasangre | 433,139,517 | false | {"Kotlin": 50619, "JavaScript": 27967, "HTML": 176, "CSS": 111} | package com.rootusergroup.roofify.data.daos
import androidx.lifecycle.LiveData
import androidx.room.*
import com.rootusergroup.roofify.data.entities.User
@Dao
interface UserDAO {
//Insertar o actualizar usuario
@Insert(onConflict = OnConflictStrategy.REPLACE)
suspend fun insertOrUpdateUser(user: User)
... | 0 | Kotlin | 0 | 0 | fedb4a58ed46d48187bf5c7f478f5fe7b1a54542 | 773 | roofify | The Unlicense |
app/src/androidTest/java/com/teamsixers/vmail/ui/compose/replaceState/ReplaceWordStateTest.kt | cyrilwongmy | 368,865,227 | false | null | package com.teamsixers.vmail.ui.compose.replaceState
import com.teamsixers.vmail.ui.compose.ComposeActivity
import io.mockk.Runs
import io.mockk.every
import io.mockk.just
import io.mockk.mockk
import org.junit.Test
class ReplaceStateTest {
@Test
fun executeCommand() {
val composeActivity = mockk<Com... | 0 | Kotlin | 0 | 1 | 5424a29c5678f33c9c599a84b9b81b3aee086aff | 651 | VMaiL | MIT License |
app/src/main/java/com/codepath/apps/restclienttemplate/models/Tweet.kt | bruno-mota | 548,500,058 | false | {"Kotlin": 26600, "Java": 3349} | package com.codepath.apps.restclienttemplate.models
import android.os.Parcelable
import android.util.Log
import com.codepath.apps.restclienttemplate.Helper.TimeFormatter
import kotlinx.parcelize.Parcelize
import org.json.JSONArray
import org.json.JSONObject
@Parcelize
class Tweet(var body:String="",
var c... | 2 | Kotlin | 0 | 0 | a00a8f0720582d7e23382ac833db7b46f3c3abc8 | 1,030 | Twitter | Apache License 2.0 |
app/src/main/java/com/batdemir/similar/flora/example/ui/product/filter/ProductFilterFragment.kt | batdemir | 293,902,793 | false | null | package com.batdemir.similar.flora.example.ui.product.filter
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavCon... | 0 | Kotlin | 0 | 0 | ce8a0a957d2401f5f5989407ba3c6d584a6fce0c | 3,153 | similar.flora.example | Apache License 2.0 |
android-common/test/com/android/tools/idea/concurrency/CompletableDeferredUtilsTest.kt | JetBrains | 60,701,247 | false | {"Kotlin": 53054415, "Java": 43443054, "Starlark": 1332164, "HTML": 1218044, "C++": 507658, "Python": 191041, "C": 71660, "Lex": 70302, "NSIS": 58238, "AIDL": 35382, "Shell": 29838, "CMake": 27103, "JavaScript": 18437, "Smali": 7580, "Batchfile": 7357, "RenderScript": 4411, "Clean": 3522, "Makefile": 2495, "IDL": 19} | /*
* Copyright (C) 2023 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... | 5 | Kotlin | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 4,057 | android | Apache License 2.0 |
android-common/test/com/android/tools/idea/concurrency/CompletableDeferredUtilsTest.kt | JetBrains | 60,701,247 | false | {"Kotlin": 53054415, "Java": 43443054, "Starlark": 1332164, "HTML": 1218044, "C++": 507658, "Python": 191041, "C": 71660, "Lex": 70302, "NSIS": 58238, "AIDL": 35382, "Shell": 29838, "CMake": 27103, "JavaScript": 18437, "Smali": 7580, "Batchfile": 7357, "RenderScript": 4411, "Clean": 3522, "Makefile": 2495, "IDL": 19} | /*
* Copyright (C) 2023 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... | 5 | Kotlin | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 4,057 | android | Apache License 2.0 |
input-engine/src/androidTest/java/de/tillhub/inputengine/AndroidComposeRule.kt | tillhub | 772,554,183 | false | {"Kotlin": 159366, "Java": 1600} | package de.tillhub.inputengine
import android.content.Intent
import androidx.activity.ComponentActivity
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.semantics.SemanticsProperties
import androidx.compose.ui.test.SemanticsMatcher
import androidx.compose.ui.test.SemanticsNodeInteraction
import and... | 0 | Kotlin | 0 | 0 | 0205fab0059b80a0c4288440cc91fb0dcba1cab2 | 1,314 | input-engine | MIT License |
authentication/src/main/kotlin/com/proggramik/authentication/domain/User.kt | WilsonDev | 350,106,143 | false | null | package com.proggramik.authentication.domain
import java.util.*
import javax.persistence.*
@Entity
class User(
@Id
@Column(name = "id", unique = true, columnDefinition = "BINARY(16)")
val id: UUID,
@Enumerated(EnumType.STRING)
val authorities: Authorities,
@OneToOne(mappedBy = "user")
val ... | 0 | Kotlin | 0 | 0 | c7d71e88eace33ffc1c0697c4155d905afdba004 | 369 | ecommerce-microservices | MIT License |
app/src/main/java/io/github/kineks/neteaseviewer/data/network/Song.kt | kineks0-0 | 313,262,862 | false | {"Kotlin": 229140} | package io.github.kineks.neteaseviewer.data.network
data class SongDetail(
val code: Int,
val equalizers: Equalizers,
val songs: List<Song>
)
class Equalizers
data class Song(
val album: Album,
//val alias: List<String>,
val artists: List<ArtistXX>,
//val audition: Any,
val bMusic: BM... | 0 | Kotlin | 0 | 8 | d27bea66a87f9c0e850b361ce77de2bd0cf5d2e3 | 3,865 | NeteaseCacheViewer | MIT License |
app/src/main/kotlin/com/murslabs/treasurehunt/dependency/qualifiers/ChildFragmentManager.kt | ujjwalks | 192,529,753 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Java": 3, "XML": 35, "Kotlin": 81, "Wavefront Object": 4, "Wavefront Material": 4} | package com.murslabs.treasurehunt.dependency.qualifiers
import javax.inject.Qualifier
/**
* Created by Ujjwal on 21/01/18.
*/
@Qualifier
@Retention(AnnotationRetention.RUNTIME)
annotation class ChildFragmentManager | 0 | Kotlin | 0 | 1 | e7716285d74d59f28e24d2ba1b3567e9eff2bb09 | 218 | treasure-hunt-android | MIT License |
app/src/main/java/com/eugenio/marvelsuperheroes/MarvelSuperHeroesApp.kt | EugenioGutierrezC | 696,859,384 | false | {"Kotlin": 75462} | package com.eugenio.marvelsuperheroes
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class MarvelSuperHeroesApp: Application() | 0 | Kotlin | 0 | 0 | ab95e890d20330809d51266b760942bd1ce8cdd4 | 170 | MarvelSuperHeroes | Apache License 2.0 |
ref_code/leetcode-main/kotlin/0338-counting-bits.kt | yennanliu | 66,194,791 | false | {"Java": 5396849, "Python": 4422387, "JavaScript": 490755, "Kotlin": 464977, "C++": 351516, "C": 246034, "C#": 177156, "Rust": 152545, "Jupyter Notebook": 152285, "TypeScript": 139873, "Go": 129930, "Swift": 102644, "Ruby": 41941, "Scala": 34913, "Dart": 9957, "Shell": 4032, "Dockerfile": 2000, "PLpgSQL": 1348} | class Solution {
fun countBits(n: Int): IntArray {
var dp = IntArray(n + 1)
var offset = 1
for (i in 1..n) {
if (offset * 2 == i) {
offset = i
}
dp[i] = 1 + dp[i - offset]
}
return dp
}
} | 0 | Java | 42 | 98 | 209db7daa15718f54f32316831ae269326865f40 | 296 | CS_basics | The Unlicense |
plugins/client/graphql-kotlin-client-generator/src/main/kotlin/com/expediagroup/graphql/plugin/client/generator/types/generateGraphQLEnumTypeSpec.kt | ExpediaGroup | 148,706,161 | false | null | /*
* Copyright 2021 Expedia, Inc
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 68 | null | 345 | 1,739 | d3ad96077fc6d02471f996ef34c67066145acb15 | 4,001 | graphql-kotlin | Apache License 2.0 |
app/src/main/java/com/androidstarter/ui/search/SearchProductState.kt | syedtehrimabbas | 526,100,544 | false | {"Kotlin": 577048, "Java": 48172} | package com.androidstarter.ui.search
import com.androidstarter.base.state.BaseState
import javax.inject.Inject
class SearchProductState @Inject constructor() : BaseState(), ISearchProduct.State {
} | 0 | Kotlin | 0 | 0 | 3a3fec976a694e309ee7332050308506f48984e0 | 199 | dida-procop-android | MIT License |
SampleCodeKotlin/src/main/kotlin/com/huawei/arengine/demos/cloudimage/controller/AugmentedImageRenderController.kt | HMS-Core | 280,903,761 | false | {"Java": 526901, "Kotlin": 508927} | /*
* Copyright 2023. Huawei Technologies Co., Ltd. All rights reserved.
*
* 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
*
... | 8 | Java | 43 | 96 | fb79246442b5b41b9766ffb450847733696244b2 | 7,685 | hms-AREngine-demo | Apache License 2.0 |
app/src/main/java/com/example/androiddevchallenge/MainActivity.kt | guesspalm | 344,314,402 | false | null | /*
* Copyright 2021 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 0 | 12be38442356ab22c97fcd73f8c5e02f5042447a | 12,389 | CountdownTimer | Apache License 2.0 |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/bulk/Musicplay.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.bulk
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.co... | 0 | Kotlin | 0 | 2 | b8a8231e6637c2008f675ae76a3423b82ee53950 | 5,519 | VuesaxIcons | MIT License |
src/main/kotlin/com/example/cavesofzircon/extensions/PositionExtensions.kt | Hexworks | 314,678,169 | false | null | package fr.vahren.world
import org.hexworks.zircon.api.data.Position3D
fun Position3D.sameLevelNeighborsShuffled(): List<Position3D> { // 1
return (-1..1).flatMap { x ->
(-1..1).map { y -> // 2
this.withRelativeX(x).withRelativeY(y) // 3
}
}.minus(this).shuffled() // 4
}
| 0 | null | 1 | 4 | 938d45432231ae0f5515700ecb13048644b4712d | 310 | caves-of-zircon-tutorial | Apache License 2.0 |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/bold/Link21.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.co... | 0 | Kotlin | 0 | 2 | b8a8231e6637c2008f675ae76a3423b82ee53950 | 3,374 | VuesaxIcons | MIT License |
formula/src/test/java/com/instacart/formula/test/CoroutineTestableRuntime.kt | instacart | 171,923,573 | false | {"Kotlin": 565903, "Shell": 1203, "Ruby": 256} | package com.instacart.formula.test
import com.instacart.formula.Action
import com.instacart.formula.IFormula
import com.instacart.formula.RuntimeConfig
import com.instacart.formula.plugin.Inspector
import com.instacart.formula.coroutines.FlowAction
import com.instacart.formula.coroutines.FlowFormula
import com.instaca... | 7 | Kotlin | 14 | 151 | 26d544ea41b7a5ab2fa1a3b9ac6b668e69fe4dff | 5,229 | formula | BSD 3-Clause Clear License |
bindings/adwaita/src/nativeMain/kotlin/org/gtkkn/bindings/adw/TabView.kt | gtk-kn | 609,191,895 | false | {"Kotlin": 10448515, "Shell": 2740} | // This is a generated file. Do not modify.
package org.gtkkn.bindings.adw
import kotlinx.cinterop.CFunction
import kotlinx.cinterop.COpaquePointer
import kotlinx.cinterop.CPointer
import kotlinx.cinterop.StableRef
import kotlinx.cinterop.asStableRef
import kotlinx.cinterop.reinterpret
import kotlinx.cinterop.staticCF... | 0 | Kotlin | 0 | 13 | c033c245f1501134c5b9b46212cd153c61f7efea | 37,573 | gtk-kn | Creative Commons Attribution 4.0 International |
sliding-panel-layout/src/main/java/com/akbolatss/workshop/slidingpanel/PanelConstants.kt | iRYO400 | 259,876,654 | true | {"Kotlin": 46601} | package com.akbolatss.workshop.slidingpanel
enum class PanelState(val value: Float) {
COLLAPSED(1f), EXPANDED(0f), SLIDING(-1f)
}
internal enum class SlidingDirection {
UP_OR_LEFT, DOWN_OR_RIGHT, NONE
}
internal enum class Side {
TOP, BOTTOM, LEFT, RIGHT
}
internal enum class Orientation {
VERTICAL,... | 0 | Kotlin | 0 | 5 | 03f0191098fafd59f3e2231a7dce04fe8bbaffd3 | 333 | sliding-panel | Apache License 2.0 |
app/src/main/java/com/web0zz/givemeamovie/view/ui/home/HomeViewModel.kt | Web0zz | 342,710,542 | false | {"Kotlin": 73925} | package com.web0zz.givemeamovie.view.ui.home
import androidx.lifecycle.*
import com.web0zz.givemeamovie.data.remote.Resource
import com.web0zz.givemeamovie.model.entity.Movie
import com.web0zz.givemeamovie.model.network.movie_lists.MovieListSection
import com.web0zz.givemeamovie.repository.HomeRepository
import dagger... | 0 | Kotlin | 0 | 0 | 3f56fc7a68d12a293d3a34f05a9aa487bc2c6164 | 2,919 | Give-Me-A-Movie | Apache License 2.0 |
flint-core/src/main/java/com/vox/exposure/flint_core/Flint.kt | i-vox | 720,710,191 | false | {"Kotlin": 9758} | /*
* Copyright 2023 i-vox
*
* 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 applicable law or agreed to in wri... | 0 | Kotlin | 0 | 1 | 8e723fdb4e41d0c9cfa57e8918809295181b5463 | 1,073 | Flint | Apache License 2.0 |
messaginginapp/src/main/java/io/customer/messaginginapp/ModuleMessagingInApp.kt | customerio | 355,691,391 | false | {"Kotlin": 574486, "Shell": 10050, "Makefile": 1568, "Ruby": 257} | package io.customer.messaginginapp
import io.customer.messaginginapp.di.gistProvider
import io.customer.messaginginapp.gist.data.model.Message
import io.customer.messaginginapp.gist.presentation.GistListener
import io.customer.messaginginapp.gist.presentation.GistProvider
import io.customer.messaginginapp.type.InAppMe... | 7 | Kotlin | 9 | 13 | 5c7e0917edcc2ee34e366a8c4d057b481adbc798 | 3,783 | customerio-android | MIT License |
xesar-connect/src/main/kotlin/com/open200/xesar/connect/messages/command/DeleteCalendarMapi.kt | open200 | 684,928,079 | false | null | package com.open200.xesar.connect.messages.command
import com.open200.xesar.connect.utils.UUIDSerializer
import java.util.*
import kotlinx.serialization.Serializable
/**
* Represents a command POJO to delete a calendar.
*
* @param commandId The id of the command.
* @param id The id of the calendar.
* @param toke... | 17 | null | 0 | 9 | 2ded0fbbe8a5df74065c141f5afe1b20c72022c6 | 571 | xesar-connect | Apache License 2.0 |
src/main/kotlin/search/SearchResultMatcher.kt | steep-wms | 237,438,539 | false | {"Kotlin": 1539171, "JavaScript": 233382, "SCSS": 38483, "Shell": 1830, "Dockerfile": 1598, "PLpgSQL": 1198} | package search
import java.lang.Integer.max
import java.lang.Integer.min
import java.time.Instant
import java.time.format.DateTimeFormatter
import java.time.format.DateTimeFormatter.ISO_INSTANT
import java.time.temporal.ChronoUnit
import kotlin.math.ceil
/**
* Inspects a [SearchResult] and compares it with a given [... | 37 | Kotlin | 5 | 38 | 8270b146664463b962e0c7387cf4f80d44b95e7b | 12,795 | steep | Apache License 2.0 |
NewsApp/app/src/main/java/com/mustk/newsapp/data/model/BaseResponse.kt | mustafakamber | 804,916,194 | false | {"Kotlin": 144712} | package com.mustk.newsapp.data.model
import com.google.gson.annotations.SerializedName
import com.mustk.newsapp.shared.Constant.DATA_FIELD
import com.mustk.newsapp.shared.Constant.ERROR_FIELD
import com.mustk.newsapp.shared.Constant.META_FIELD
data class BaseResponse(
@SerializedName(META_FIELD) val meta: Meta,
... | 0 | Kotlin | 0 | 0 | 83a3cdcdc2b74c9d864ba5b074ea60e86a360e9b | 426 | NewsApp | Apache License 2.0 |
storage/store/src/main/kotlin/com/neva/javarel/storage/store/api/store/DomainStore.kt | neva-dev | 52,150,334 | false | null | package com.neva.javarel.storage.store.api.store
import com.neva.javarel.storage.store.api.Store
import org.bson.types.ObjectId
import org.mongodb.morphia.Key
import org.mongodb.morphia.query.Query
import kotlin.reflect.KClass
abstract class DomainStore<T : Any>(protected val base: Store, protected val domainClass: K... | 8 | Kotlin | 0 | 8 | 6b75efa9d3e83c5eec23ed7cd4368e901f1f54dc | 1,164 | javarel-framework | Apache License 2.0 |
dobLib/src/main/java/com/docwei/doblib/ZeTaTrack.kt | docwei2050 | 376,270,154 | false | null | package com.docwei.doblib
import android.app.Activity
import android.app.Application
import android.os.Bundle
import android.util.Log
/**
* Created by liwk on 2021/6/12.
*/
object ZeTaTrack : Application.ActivityLifecycleCallbacks {
var frontBackgroundHelper:ZeTaFrontBackgroundHelper?=null
fun init(applicat... | 0 | Kotlin | 0 | 0 | dac65118a41be1a60267b5cd4bfb6d2a485e44ac | 1,607 | globalDot | MIT License |
app/src/main/java/com/ditta/worldbeers/network/PunkApi.kt | pierreNtakka | 594,388,214 | false | null | package com.ditta.worldbeers.network
import com.ditta.worldbeers.model.Beer
import com.ditta.worldbeers.network.PunkApiConstant.BEERNAME_QUERY_PARAM_NAME
import com.ditta.worldbeers.network.PunkApiConstant.END_POINT_BEER
import com.ditta.worldbeers.network.PunkApiConstant.PAGE_QUERY_PARAM_NAME
import retrofit2.http.GE... | 0 | Kotlin | 0 | 0 | 618fe817d4ba1959242da669b63ba38a3eb26e31 | 979 | worldbeers | MIT License |
KotlinDemo/app/src/main/java/com/example/kotlindemo/net/NetManager.kt | ZhongXiaoHong | 272,699,769 | false | null | package com.example.kotlindemo.net
import com.example.kotlindemo.api.Api
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.schedulers.Schedulers
import okhttp3.OkHttpClient
import retrofit2.converter.gson.GsonConverterFactory
import retrofit2.Retrofit
import com.example.kotlindemo.bean.Login... | 1 | null | 1 | 1 | 44bbcc514aeba6d5f5267943fa5bcc359c9026c6 | 1,373 | Kotlin | Apache License 2.0 |
src/test/kotlin/extensions/ExtensionsTest.kt | frozencure | 253,615,832 | false | null | package extensions
import com.github.frozencure.helix.extensions.ExtensionService
import com.github.frozencure.helix.extensions.TransactionsResponse
import io.ktor.client.statement.*
import kotlinx.coroutines.runBlocking
import org.junit.Test
import util.HttpClientMockBuilder
class `Given GET extension transactions i... | 3 | Kotlin | 3 | 17 | 285d49ad2ddf19f8ba2d0973ca17a40168fac914 | 2,074 | twitch-client | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsworkload/client/dto/PersonSummary.kt | ministryofjustice | 378,843,394 | false | null | package uk.gov.justice.digital.hmpps.hmppsworkload.client.dto
import com.fasterxml.jackson.annotation.JsonCreator
data class PersonSummary @JsonCreator constructor(
val firstName: String,
val surname: String,
)
| 4 | Kotlin | 0 | 0 | f92a7903fdfb943e82c070f87797ff55150bc2e2 | 217 | hmpps-workload | MIT License |
vertx-consul-service/src/main/kotlin/io/vertx/kotlin/ext/consul/DcCoordinates.kt | tsegismont | 156,562,152 | true | {"Java": 63718, "Kotlin": 30327, "Shell": 333} | package io.vertx.kotlin.ext.consul
import io.vertx.ext.consul.DcCoordinates
import io.vertx.ext.consul.Coordinate
fun DcCoordinates(
datacenter: String? = null,
servers: Iterable<io.vertx.ext.consul.Coordinate>? = null): DcCoordinates = io.vertx.ext.consul.DcCoordinates().apply {
if (datacenter != null) {
... | 0 | Java | 0 | 0 | ab2732d6e3eee1c1b28f711bca35e640eaac5cba | 425 | vertx-client-services | Apache License 2.0 |
integration-tests/src/test/kotlin/com/google/devtools/ksp/test/PlaygroundIT.kt | tatocaster | 390,027,112 | true | {"Kotlin": 916896, "Java": 12449} | package com.google.devtools.ksp.test
import org.gradle.testkit.runner.GradleRunner
import org.gradle.testkit.runner.TaskOutcome
import org.junit.Assert
import org.junit.Rule
import org.junit.Test
import java.io.File
import java.util.jar.*
class PlaygroundIT {
@Rule
@JvmField
val project: TemporaryTestProj... | 1 | null | 1 | 1 | 4ab4b80cd0e3e24c40e1357dc760a67c9b49b56f | 1,695 | ksp | Apache License 2.0 |
searchview/src/main/java/com/tcqq/searchview/widget/SearchLayout.kt | tcqq | 161,290,624 | false | null | /*
* Copyright 2018 <NAME>, <NAME>
*
* 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 applicable law or agreed to i... | 0 | Kotlin | 0 | 8 | 19ea413ce7f1537409dd0361ab31bc7dfc6d24ac | 18,771 | SearchView | Apache License 2.0 |
samples/android-autodsl/app/src/main/java/com/autodsl/sample/Anim.kt | juanchosaravia | 155,285,356 | false | null | /*
* Copyright 2018 <NAME>
*
* 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 applicable law or agreed to in wri... | 4 | null | 13 | 340 | 5e0a2f7fad26d52e766d3a330768ebb3b1698435 | 2,230 | autodsl | Apache License 2.0 |
features/feature-settings/src/main/kotlin/com/maximillianleonov/cinemax/feature/settings/components/Settings.kt | AfigAliyev | 523,245,537 | false | null | /*
* Copyright 2022 <NAME>
*
* 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 applicable law or agreed to in wr... | 8 | null | 2 | 89 | 02e65e899394753e537c6613de6fe4da49bd08f6 | 4,769 | Cinemax | Apache License 2.0 |
src/main/kotlin/io/github/jokoroukwu/zephyrgradleplugin/ZephyrPlugin.kt | jokoroukwu | 479,408,912 | false | {"Kotlin": 11081} | package io.github.jokoroukwu.zephyrgradleplugin
import io.github.jokoroukwu.zephyrapi.ZephyrClient
import org.gradle.api.Action
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.artifacts.UnknownConfigurationException
import org.gradle.api.internal.tasks.testing.testng.TestNGTestFramewor... | 0 | Kotlin | 0 | 0 | 0481a13776e4dc196e8675642f1527ffc33ff4a3 | 2,318 | zephyr-gradle-plugin | Apache License 2.0 |
kotlin-mui-icons/src/main/generated/mui/icons/material/ReduceCapacityOutlined.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/ReduceCapacityOutlined")
@file:JsNonModule
package mui.icons.material
@JsName("default")
external val ReduceCapacityOutlined: SvgIconComponent
| 12 | Kotlin | 5 | 983 | 372c0e4bdf95ba2341eda473d2e9260a5dd47d3b | 226 | kotlin-wrappers | Apache License 2.0 |
app/src/main/java/com/z80h3x/kezd_kov/di/ApplicationModule.kt | futobarna | 356,582,903 | false | null | package com.example.news.di
import android.content.Context
import dagger.Module
import dagger.Provides
import javax.inject.Singleton
@Module
class ApplicationModule(@get:Provides @Singleton val context: Context)
| 0 | Kotlin | 0 | 0 | f8cd6f99550075c41555807504c035ea765478de | 214 | mobilszoftver-labor | Apache License 2.0 |
common/src/main/kotlin/com/artillexstudios/axminions/converter/LitMinionsConverter.kt | Artillex-Studios | 699,008,002 | false | {"Kotlin": 353195} | package com.artillexstudios.axminions.converter
import com.artillexstudios.axapi.serializers.Serializers
import com.artillexstudios.axapi.utils.StringUtils
import com.artillexstudios.axminions.AxMinionsPlugin
import com.artillexstudios.axminions.api.minions.Direction
import com.artillexstudios.axminions.api.minions.mi... | 9 | Kotlin | 5 | 9 | f532ed81a5aceb3dc9aeaf5e91a1d54c8d3011dc | 3,890 | AxMinions | MIT License |
PhoenixPenNG/libgame/src/main/java/com/phoenixpen/game/simulation/TreeSystem.kt | nshcat | 182,317,693 | false | {"Text": 2, "Ignore List": 4, "Markdown": 1, "Gradle": 5, "INI": 1, "Shell": 6, "Batchfile": 1, "GLSL": 12, "JSON": 28, "Java Properties": 1, "XML": 15, "Kotlin": 213, "Java": 6, "C": 2} | package com.phoenixpen.game.simulation
import com.phoenixpen.game.ascii.*
import com.phoenixpen.game.data.*
import com.phoenixpen.game.logging.GlobalLogger
import java.util.*
import kotlin.collections.ArrayList
/**
* Class managing all the trees in the game world
*
* @property simulation Game simulation instance
... | 0 | Kotlin | 0 | 1 | 8e29e78b8f3d1ff7bdfedfd7c872b1ac69dd665d | 16,918 | phoenixpen_ng | MIT License |
app/src/main/java/com/lucas/movies/home/data/datasource/MoviesRemoteDataSourceImpl.kt | lucasgabrielsantos | 452,854,331 | false | null | package com.lucas.movies.home.data.datasource
import com.lucas.movies.home.data.api.MovieService
import com.lucas.movies.home.data.model.MovieResult
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import kotlinx... | 0 | Kotlin | 0 | 0 | 6b7764097c2c5fd253d33b1a2a693d5008c76979 | 681 | movieApp | Apache License 2.0 |
plugins/power-assert/testData/codegen/boolean/BooleanShortCircuit.kt | JetBrains | 3,432,266 | false | null | fun box() = expectThrowableMessage {
val text: String? = null
assert(text != null && text.length == 1)
}
| 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 113 | kotlin | Apache License 2.0 |
discord-bot/src/main/kotlin/nu/peg/discord/service/AudioService.kt | jmesserli | 81,998,875 | false | null | package nu.peg.discord.service
import sx.blah.discord.handle.obj.IGuild
import sx.blah.discord.handle.obj.IVoiceChannel
import java.net.URL
interface AudioService {
fun joinVoice(channel: IVoiceChannel)
fun queueAudio(guild: IGuild, audio: URL)
fun queueLeaveOnFinished(guild: IGuild)
fun forceLeave(gu... | 1 | Kotlin | 0 | 0 | 81530bce9a6a1ae501389f4f9310ebe686b84d1d | 358 | discord-bernbot | MIT License |
discord-bot/src/main/kotlin/nu/peg/discord/service/AudioService.kt | jmesserli | 81,998,875 | false | null | package nu.peg.discord.service
import sx.blah.discord.handle.obj.IGuild
import sx.blah.discord.handle.obj.IVoiceChannel
import java.net.URL
interface AudioService {
fun joinVoice(channel: IVoiceChannel)
fun queueAudio(guild: IGuild, audio: URL)
fun queueLeaveOnFinished(guild: IGuild)
fun forceLeave(gu... | 1 | Kotlin | 0 | 0 | 81530bce9a6a1ae501389f4f9310ebe686b84d1d | 358 | discord-bernbot | MIT License |
src/test/kotlin/entitlements/EntitlementsTestData.kt | frozencure | 253,615,832 | false | null | package entitlements
object EntitlementsTestData {
const val CREATE_ENTITLEMENTS_URL = """
{
"data":[
{
"url": "https://twitch-ds-vhs-drops-granted-uploads-us-west-2-prod.s3-us-west-2.amazonaws.com/<clientID>/<time>-123456789.json?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz... | 3 | Kotlin | 3 | 17 | 285d49ad2ddf19f8ba2d0973ca17a40168fac914 | 864 | twitch-client | MIT License |
app/src/main/java/com/thezayin/kainaclean/ui/theme/Color.kt | thezayin | 761,579,033 | false | {"Kotlin": 137350} | package com.thezayin.kainaclean.ui.theme
import androidx.compose.ui.graphics.Color
val Black = Color(0xFF1C1E21) //Dark Background
val Blue = Color(0xFF1877F2) //Primary
val DarkRed = Color(0xFFC30052) //Dark Error
val LightRed = Color(0xFFFF84B7)
val LightBlack = Color(0xFF3A3B3C) //Dark Surface | 0 | Kotlin | 0 | 1 | b69ebd76b4597a4f25704aedb301f4a6e256fc8c | 301 | Kaina-Clean-android | MIT License |
app/src/main/java/com/pmpavan/recyyclerviewitemtracking/domain/anime/model/AnimeItem.kt | pmpavan | 141,005,648 | false | {"Kotlin": 43512} | package com.pmpavan.recyyclerviewitemtracking.domain.anime.model
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
import com.pmpavan.recyyclerviewitemtracking.domain.anime.model.Top
class AnimeItem {
@SerializedName("request_hash")
@Expose
private var requestHas... | 0 | Kotlin | 0 | 0 | 838c2d71faddcb189ec13b54715b5bb3bde5b3ca | 974 | RecyclerViewItemTracking | MIT License |
app/src/main/java/com/spin/id/api/response/shop/ProductCategoryResponse.kt | RifqiFadhell | 501,564,017 | false | null | package com.spin.id.api.response.shop
import com.google.gson.annotations.SerializedName
data class ProductCategoryResponse(
@field:SerializedName("data")
val data: List<DataProduct>? = null,
@field:SerializedName("message")
val message: String? = null,
@field:SerializedName("status")
val status: Int? = null
... | 0 | Kotlin | 0 | 0 | ac0082e9f8ce71f3e17c758e59d925bfed2ec753 | 1,155 | SPIN | Apache License 2.0 |
exposed-generator/src/main/kotlin/com/labijie/orm/generator/ColumnType.kt | hongque-pro | 434,577,416 | false | {"Kotlin": 200561} | package com.labijie.orm.generator
import com.google.devtools.ksp.symbol.KSType
data class ColumnType(val rawType: KSType, val type: KSType, val isNullable: Boolean) | 0 | Kotlin | 1 | 3 | 703782ae426469a5e26b483319409fb41d93555b | 166 | infra-orm | Apache License 2.0 |
exposed-generator/src/main/kotlin/com/labijie/orm/generator/ColumnType.kt | hongque-pro | 434,577,416 | false | {"Kotlin": 200561} | package com.labijie.orm.generator
import com.google.devtools.ksp.symbol.KSType
data class ColumnType(val rawType: KSType, val type: KSType, val isNullable: Boolean) | 0 | Kotlin | 1 | 3 | 703782ae426469a5e26b483319409fb41d93555b | 166 | infra-orm | Apache License 2.0 |
app/src/main/java/com/realitix/mealassistant/fragment/MealPagerFragment.kt | realitix | 235,808,420 | false | null | package com.realitix.mealassistant.fragment
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import androidx.fragment.app.viewModels
import androidx.lifecycle.observe
impo... | 0 | Kotlin | 0 | 0 | 0ea82b9e83d9e50dc848fe52010ca3bbae1b8e2b | 4,009 | meal-assistant-android | Apache License 2.0 |
kotlin-node/src/jsMain/generated/node/util/transferableAbortController.kt | JetBrains | 93,250,841 | false | {"Kotlin": 12635434, "JavaScript": 423801} | // Generated by Karakum - do not modify it manually!
@file:JsModule("node:util")
package node.util
import web.abort.AbortController
/**
* Creates and returns an `AbortController` instance whose `AbortSignal` is marked
* as transferable and can be used with `structuredClone()` or `postMessage()`.
* @since v18.11.... | 38 | Kotlin | 162 | 1,347 | 997ed3902482883db4a9657585426f6ca167d556 | 446 | kotlin-wrappers | Apache License 2.0 |
convert_array_to_set.kt | MarcosFloresta | 223,296,767 | false | null | import java.util.*
fun main(args: Array<String>) {
val array = arrayOf("a", "b", "c")
val set = HashSet(Arrays.asList(*array))
println("Set: $set")
} | 0 | Kotlin | 0 | 1 | eed7ca2520491200579253e95acd6ee94a0fa92e | 161 | kotlin-examples | MIT License |
project/src/main/kotlin/cga/exercise/components/gameobjects/Collision.kt | JanineDoliwa | 280,413,295 | true | {"Kotlin": 163314, "GLSL": 20259} | package cga.exercise.components.gameobjects
import cga.exercise.components.geometry.Mesh
import cga.framework.ModelLoader
import org.joml.Vector3f
class Collision (var x1: Float, var y1: Float, var z1: Float, var x2: Float, var y2: Float, var z2: Float, val portalable : Boolean? = null) {
fun checkPointCollision... | 0 | Kotlin | 0 | 0 | e11765c56c6f467d0222df6b24fad8e200733a42 | 3,369 | CGAProject | MIT License |
jOOQ-mcve-kotlin/src/main/kotlin/org/jooq/mcve/kotlin/tables/Category.kt | kuceraf | 519,723,842 | false | null | /*
* This file is generated by jOOQ.
*/
package org.jooq.mcve.kotlin.tables
import java.time.LocalDateTime
import org.jooq.Field
import org.jooq.ForeignKey
import org.jooq.Identity
import org.jooq.Name
import org.jooq.Record
import org.jooq.Row3
import org.jooq.Schema
import org.jooq.Table
import org.jooq.TableFie... | 0 | Kotlin | 0 | 0 | 839cbb628ae14279fc117e29974a04e183ad21ed | 3,907 | jOOQ-mcve | Apache License 2.0 |
plugin/src/main/kotlin/com/slapin/frj/FirebaseReleasesJanitorExtension.kt | sergei-lapin | 566,751,780 | false | {"Kotlin": 20066} | package com.slapin.frj
import org.gradle.api.Named
import org.gradle.api.NamedDomainObjectContainer
import org.gradle.api.model.ObjectFactory
import org.gradle.api.provider.Property
import org.gradle.api.provider.ProviderFactory
import org.gradle.kotlin.dsl.property
abstract class FirebaseReleasesJanitorExtension(
... | 0 | Kotlin | 0 | 1 | 9c1cd32463b17674bf364be805bb77808bc84596 | 2,290 | firebase-releases-janitor-gradle | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.