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/xquare/xquare_android/feature/schedule/ScheduleCalendar.kt | team-xquare | 478,925,648 | false | {"Kotlin": 447887} | package com.xquare.xquare_android.feature.schedule
import android.annotation.SuppressLint
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.... | 16 | Kotlin | 1 | 25 | f9bc5d0bc3ed2957705dc6db53d0139f62827649 | 9,922 | xquare-android | MIT License |
Bootcamp_04/src/repeat_the_sequence/app/src/main/java/com/example/repeat_the_sequence/MainActivity.kt | Hasuk1 | 740,111,124 | false | {"Kotlin": 120039} | package com.example.repeat_the_sequence
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navigation.compose.rememberNavController
import com.example.re... | 0 | Kotlin | 0 | 1 | 1c18eb2175ed0fa6ea7e9e4da4a03908d5a324f7 | 1,291 | Kotlin_bootcamp | MIT License |
app/src/main/java/com/eynnzerr/yuukatalk/ui/component/dialog/UpdateDialog.kt | Eynnzerr | 725,178,988 | false | {"Kotlin": 380283} | package com.eynnzerr.yuukatalk.ui.component.dialog
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Update
import androidx.compose.material3.AlertDialog
import androidx.compose.material3.Icon
import androidx.compose.material3.Text
import androidx.compose.material3.TextButton
i... | 0 | Kotlin | 0 | 8 | 7bc939080f38d1e647f4ec3f1a2c33e576b77dbf | 1,417 | YuukaTalk | MIT License |
src/main/kotlin/com/github/jingtaozf/literateidea/services/MyProjectService.kt | jingtaozf | 293,412,060 | false | null | package com.github.jingtaozf.literateidea.services
import com.intellij.openapi.project.Project
import com.github.jingtaozf.literateidea.MyBundle
class MyProjectService(project: Project) {
init {
println(MyBundle.message("projectService", project.name))
}
}
| 0 | Kotlin | 0 | 0 | 6eef61bf36f42b86bc34b3bc178771dd2974493c | 276 | literate-idea | Apache License 2.0 |
app/src/main/java/com/github/malitsplus/shizurunotes/ui/tower/TowerWaveViewModel.kt | HerDataSam | 261,453,486 | true | null | package com.github.malitsplus.shizurunotes.ui.tower
import androidx.lifecycle.ViewModel
import com.github.malitsplus.shizurunotes.data.WaveGroup
import com.github.malitsplus.shizurunotes.ui.base.TowerWaveVT
import com.github.malitsplus.shizurunotes.ui.base.OnItemActionListener
import com.github.malitsplus.shizurunotes... | 1 | Java | 1 | 12 | aa7afa182a0c8b53fe711b6ca2584502a477d9af | 978 | KasumiNotes | Apache License 2.0 |
buildSrc/src/main/java/DependenciesVersions.kt | AliAzaz | 156,505,865 | false | {"Kotlin": 26322} | object DependenciesVersions {
const val stringLangVersion = "3.12.0"
const val constraintVersion = "2.1.4"
const val junitImplVersion = "1.1.5"
const val espressoVersion = "3.5.1"
const val supportLibraryVersion = "1.6.1"
const val ktxVersion = "1.12.0"
const val junitVersion = "4.13.2"
... | 1 | Kotlin | 8 | 62 | a2d3232180c649e750326a77e57832f0e17df21c | 399 | Edittext-Picker | MIT License |
tjekSdk/src/main/java/com/tjek/sdk/publicationviewer/paged/libs/verso/VersoTapInfo.kt | shopgun | 5,290,629 | false | null | package com.tjek.sdk.publicationviewer.paged.libs.verso
/*
* Copyright (C) 2022 Tjek
*
* 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... | 1 | null | 5 | 1 | 774080968e245e48425602dcb56260002137e728 | 2,634 | shopgun-android-sdk | Apache License 2.0 |
app/src/main/kotlin/me/sweetll/tucao/business/video/adapter/VideoPagerAdapter.kt | rubnet | 163,958,387 | true | {"Kotlin": 570976, "Java": 227642, "Makefile": 3468} | package me.sweetll.tucao.business.video.adapter
import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentPagerAdapter
import me.sweetll.tucao.model.json.Video
import me.sweetll.tucao.business.video.fragment.VideoCommentsFragment
import me.sweetll.tucao.business.video.fragment.VideoInfoFragme... | 0 | Kotlin | 2 | 1 | 172f959f3db439ebfe695c85cde6bd65f584a1a2 | 945 | Tucao | MIT License |
app/src/main/java/com/arsylk/mammonsmite/model/live2d/L2DExpressionInfo.kt | Arsylk | 175,204,028 | false | null | package com.arsylk.mammonsmite.model.live2d
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class L2DExpressionInfo(
@SerialName("name")
val name: String,
@SerialName("file")
val filename: String,
) | 3 | null | 10 | 34 | 2ec0056ea61d3d170ac4ee22a96198d58f6214e2 | 270 | destiny-child-tools-kr-apk | MIT License |
wear/src/main/java/com/stream_suite/link/activity/MessengerActivity.kt | sstream17 | 231,685,513 | true | {"Kotlin": 1871378, "Java": 542346} | package com.stream_suite.link.activity
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import android.view.View
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.wear.widget.WearableRecyclerView
import com.stream_suite.link.R
import com.strea... | 1 | Kotlin | 0 | 1 | 0589153dd853447b260a3739564371c6b92d481c | 4,000 | pulse-sms-android | Apache License 2.0 |
base/sdk-common/src/test/java/com/android/ide/common/gradle/model/stubs/GradleStubBuilderUtil.kt | qiangxu1996 | 301,210,525 | false | {"Gradle Kotlin DSL": 2, "Shell": 29, "Markdown": 39, "Batchfile": 10, "Text": 287, "Ignore List": 47, "Java": 4790, "INI": 19, "XML": 1725, "Gradle": 543, "Starlark": 149, "JAR Manifest": 3, "Kotlin": 1462, "Ant Build System": 3, "HTML": 6, "Makefile": 12, "XSLT": 6, "CSS": 10, "Git Attributes": 2, "Protocol Buffer": ... | /*
* Copyright (C) 2019 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... | 1 | null | 1 | 1 | 3411c5436d0d34e6e2b84cbf0e9395ac8c55c9d4 | 1,695 | vmtrace | Apache License 2.0 |
app/src/main/java/org/oppia/android/app/testing/InputInteractionViewTestActivity.kt | oppia | 148,093,817 | false | null | package org.oppia.android.app.testing
import android.os.Bundle
import android.view.View
import androidx.databinding.DataBindingUtil
import org.oppia.android.R
import org.oppia.android.app.activity.ActivityComponentImpl
import org.oppia.android.app.activity.InjectableAppCompatActivity
import org.oppia.android.app.custo... | 595 | Kotlin | 309 | 156 | 6e50236a4384189cd59b40cb128decbf125bdd26 | 4,391 | oppia-android | Apache License 2.0 |
app/src/main/java/com/mapmyindia/sdk/demo/kotlin/activity/HateOsNearbyActivity.kt | MapmyIndia | 458,154,500 | true | {"INI": 1, "Gradle": 4, "Shell": 1, "Markdown": 97, "Batchfile": 1, "Ignore List": 2, "YAML": 1, "Java Properties": 1, "Proguard": 1, "XML": 102, "JSON": 1, "Java": 114, "Kotlin": 108} | package com.mapmyindia.sdk.demo.kotlin.activity
import android.content.Context
import android.os.Bundle
import android.view.KeyEvent
import android.view.View
import android.view.inputmethod.EditorInfo
import android.view.inputmethod.InputMethodManager
import android.widget.EditText
import android.widget.TextView
impor... | 1 | Java | 3 | 3 | 0c995ebcedb84b250733fc43d61bfb3d89479dd6 | 8,569 | mapmyindia-maps-vectorSDK-android | BSD 1-Clause License |
src/main/java/ianmorgan/graphstore/dal/DocDao.kt | ianmorgan | 132,918,469 | false | null | package ianmorgan.graphstore.dal
import graphql.schema.idl.TypeDefinitionRegistry
import ianmorgan.graphstore.checker.MapChecker
import ianmorgan.graphstore.checker.SchemaBuilder
import ianmorgan.graphstore.checker.ValidatorMode
import ianmorgan.graphstore.graphql.Helper
import java.util.*
import kotlin.collections.H... | 1 | null | 1 | 2 | 7b0f6e4ac15c3a39a28b9d5df3b13ca83f1dcf98 | 6,531 | graph-store | MIT License |
idea/testData/refactoring/extractFunction/basic/convertUnaryExpression.kt | erokhins | 10,382,997 | true | {"Markdown": 33, "XML": 666, "Ant Build System": 45, "Ignore List": 7, "Git Attributes": 1, "Kotlin": 21040, "Java": 4546, "Protocol Buffer": 7, "Text": 4675, "JavaScript": 63, "JAR Manifest": 3, "Roff": 46, "Roff Manpage": 11, "INI": 17, "HTML": 154, "Groovy": 23, "Java Properties": 14, "Maven POM": 49, "Gradle": 74, ... | // PARAM_DESCRIPTOR: value-parameter val plus: kotlin.String.() -> kotlin.Unit defined in foo
// PARAM_TYPES: kotlin.String.() -> kotlin.Unit
fun foo(plus: String.() -> Unit) {
<selection>+</selection> "A"
} | 0 | Java | 0 | 1 | ff00bde607d605c4eba2d98fbc9e99af932accb6 | 212 | kotlin | Apache License 2.0 |
core/src/test/kotlin/com/google/container/tools/core/analytics/UsageTrackerProviderTest.kt | GoogleContainerTools | 143,777,319 | false | null | /*
* Copyright 2018 Google Inc. 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
*
* Unless required by applic... | 1 | Kotlin | 19 | 56 | 24c5a63b3fd9f848e15c094bbbf341201e09b82f | 2,804 | google-container-tools-intellij | Apache License 2.0 |
server/src/main/com/broll/gainea/server/core/cards/impl/direct/C_Phoenix.kt | Rolleander | 253,573,579 | false | {"Kotlin": 441205, "Java": 269392, "HTML": 1714, "CSS": 1069, "JavaScript": 24} | package com.broll.gainea.server.core.cards.impl.direct
import com.broll.gainea.server.core.cards.DirectlyPlayedCard
import com.broll.gainea.server.core.cards.EffectType.SUMMON
import com.broll.gainea.server.core.objects.monster.Monster
import com.broll.gainea.server.core.objects.monster.MonsterMotion
class C_Phoenix ... | 0 | Kotlin | 1 | 3 | f77dc6ff9c27b7067227eca1205ab3c4ff873625 | 941 | Gainea | MIT License |
fotoapparat-adapters/rxjava2/src/main/java/io/fotoapparat/result/adapter/rxjava2/CompletableAdapter.kt | RedApparat | 85,997,051 | false | {"Gradle": 7, "Java Properties": 1, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "YAML": 1, "Markdown": 5, "Proguard": 2, "XML": 18, "Java": 9, "Kotlin": 163, "INI": 1} | package io.fotoapparat.result.adapter.rxjava2
import android.annotation.SuppressLint
import io.fotoapparat.result.PendingResult
import io.reactivex.Completable
import java.util.concurrent.Future
/**
* Adapter for [Completable].
*/
object CompletableAdapter {
/**
* @return Adapter which adapts result to [C... | 91 | Kotlin | 418 | 3,813 | 9454f3e4d1d222799049b00f3d84b274c3e02ee6 | 734 | Fotoapparat | Apache License 2.0 |
mobile_app1/module346/src/main/java/module346packageKt0/Foo1177.kt | uber-common | 294,831,672 | false | null | package module346packageKt0;
annotation class Foo1177Fancy
@Foo1177Fancy
class Foo1177 {
fun foo0(){
module346packageKt0.Foo1176().foo5()
}
fun foo1(){
foo0()
}
fun foo2(){
foo1()
}
fun foo3(){
foo2()
}
fun foo4(){
foo3()
}
fun foo5(){
foo4()
}
} | 6 | null | 6 | 72 | 9cc83148c1ca37d0f2b2fcb08c71ac04b3749e5e | 301 | android-build-eval | Apache License 2.0 |
Application-Challenge/【Dooze】CircleLive/app/src/main/java/com/dong/circlelive/base/CommonTipsDialog.kt | tningjs | 372,697,757 | false | {"Ignore List": 48, "Markdown": 43, "Gradle": 35, "Java Properties": 14, "Shell": 11, "Batchfile": 6, "Proguard": 21, "Java": 360, "XML": 530, "INI": 15, "C": 78, "C++": 849, "CMake": 4, "HTML": 284, "PHP": 3, "CSS": 23, "JavaScript": 541, "JSON": 187, "Text": 32, "JSON with Comments": 2, "Git Attributes": 1, "YAML": 8... | package com.dong.circlelive.base
import android.app.Dialog
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.WindowManager
import androidx.fragment.app.FragmentManager
import com.dong.circlelive.R
import com.dong.circlelive.databindin... | 1 | null | 1 | 1 | 2778ae967db70c492a2addb9e754e56fbd45703b | 2,268 | RTE-2021-Innovation-Challenge | MIT License |
app/src/main/java/com/rittmann/githubapiapp/ui/list/RepositoryAdapter.kt | willigro | 370,880,917 | false | null | package com.rittmann.githubapiapp.ui.list
import android.view.View
import androidx.databinding.ViewDataBinding
import coil.transform.CircleCropTransformation
import com.rittmann.androidtools.log.log
import com.rittmann.githubapiapp.R
import com.rittmann.githubapiapp.databinding.GithubAdapterBinding
import com.rittmann... | 0 | Kotlin | 0 | 0 | 148943aa3e68a85c8c7bb2dc29c0801f12cc868a | 1,845 | GiHubRepositoryRetrieve | Apache License 2.0 |
src/main/kotlin/com/the9grounds/aeadditions/block/BlockGasInterface.kt | zeng-github01 | 624,443,444 | false | null | package com.the9grounds.aeadditions.block
import appeng.api.config.SecurityPermissions
import com.the9grounds.aeadditions.network.GuiHandler
import com.the9grounds.aeadditions.tileentity.TileEntityGasInterface
import com.the9grounds.aeadditions.util.PermissionUtil
import com.the9grounds.aeadditions.util.TileUtil
impor... | 1 | null | 1 | 1 | 9b96b9943260b2ad1337dc47c4e3078a189e48a3 | 2,669 | AE-Additions-1.12.2-AE2-Extend-Life | MIT License |
framework/src/main/java/top/easelink/framework/threadpool/ELThreadPoolProvider.kt | fabricezhang | 195,011,098 | false | null | package top.easelink.framework.threadpool
import java.util.concurrent.*
import kotlin.math.max
import kotlin.math.min
object ELThreadPoolProvider {
private val CPU_COUNT = Runtime.getRuntime().availableProcessors()
private val CORE_POOL_SIZE = max(4, min(CPU_COUNT + 1, 9))
private val MAXIMUM_POOL_SIZE =... | 5 | null | 2 | 742 | fc9a9044d341d30c1bf4e4eb8434113614d1c47d | 1,265 | lcg | MIT License |
android/src/main/kotlin/com/hisaichi5518/native_webview/ContentBlockerHandler.kt | kitak | 262,027,520 | true | {"Dart": 122030, "Kotlin": 41680, "Swift": 30953, "Java": 21431, "Ruby": 4347, "Objective-C": 727, "Shell": 699, "Makefile": 202, "HTML": 42} | package com.hisaichi5518.native_webview
import android.net.Uri
import android.os.Looper
import android.util.Log
import android.webkit.WebResourceResponse
import android.webkit.WebView
import java.net.URI
import java.util.concurrent.CopyOnWriteArrayList
import java.util.concurrent.CountDownLatch
import java.util.loggin... | 1 | null | 1 | 1 | 332ceb0eefc23cc5ddb953a660bb7bdfd0ec9482 | 8,814 | native_webview | Apache License 2.0 |
core/src/main/kotlin/com/justai/jaicf/context/RequestContext.kt | just-ai | 246,869,336 | false | null | package com.justai.jaicf.context
import com.justai.jaicf.channel.http.HttpBotRequest
/**
* An additional details of request.
* Every channel could create this class instance parsing some request's meta-data.
*/
open class RequestContext(
/**
* Indicates if there is a new session with user.
* Bot engi... | 21 | null | 39 | 241 | cc076db73e03bf89db2ab94e7f48c8736735706b | 753 | jaicf-kotlin | Apache License 2.0 |
src/main/kotlin/org/batteryparkdev/cosmicgraphdb/neo4j/dao/CosmicTypeDao.kt | fcriscuo | 407,274,893 | false | null | package org.batteryparkdev.cosmicgraphdb.neo4j.dao
import com.google.common.flogger.FluentLogger
import org.batteryparkdev.cosmicgraphdb.cosmic.model.CosmicType
import org.batteryparkdev.cosmicgraphdb.neo4j.Neo4jConnectionService
object CosmicTypeDao {
private val logger: FluentLogger = FluentLogger.forEnclosingC... | 1 | null | 1 | 1 | c55422a21c5250e61a8437fba533caff0c1c3b83 | 1,771 | CosmicGraphDb | Creative Commons Zero v1.0 Universal |
app/src/main/java/ru/techmas/logistCalc/mvp/views/CarsTabView.kt | NoNews | 89,054,126 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Java": 2, "XML": 22, "Kotlin": 23} | package ru.techmas.logistCalc.mvp.views
import com.example.reg.androidKotlinTemplate.mvp.views.BaseView
/**
* Date: 22.04.2017
* Time: 15:29
* Project: LogistCalc
*
* @author Alex Bykov
* You can contact me at me@alexbykov.ru
*/
interface CarsTabView : BaseView {
} | 1 | null | 1 | 1 | f9509036430ae6ffbc55a4c142466385c2394735 | 274 | LogistCalc | Apache License 2.0 |
app/src/main/java/com/nizzle94/architecturecomponentmvp/ui/login/LoginActivity.kt | Nizomjon1994 | 136,735,526 | false | null | package com.nizzle94.architecturecomponentmvp.ui.login
import android.content.Intent
import android.databinding.DataBindingUtil
import android.os.Bundle
import android.widget.Toast
import com.nizzle94.architecturecomponentmvp.App
import com.nizzle94.architecturecomponentmvp.R
import com.nizzle94.architecturecomponentm... | 1 | null | 1 | 2 | 62ce4d9cacde80abe430f573981a322891391b6d | 1,751 | Architecture-Component-MVP-Kotlin | Apache License 2.0 |
RADWIMPS.kt | approvers | 273,117,672 | false | {"HTML": 3387, "Python": 790, "WebAssembly": 752, "Erlang": 677, "Ada": 581, "C": 557, "C#": 556, "Batchfile": 555, "Objective-C": 552, "Emacs Lisp": 545, "C++": 511, "Vue": 504, "Zig": 415, "OpenEdge ABL": 405, "Pascal": 399, "Haxe": 371, "JavaScript": 350, "Vim Script": 349, "Visual Basic .NET": 337, "Java": 332, "Ra... | object RADWIMPS {
fun then() = apply { print("前") }
fun `世`() = apply { println("世") }
}
fun main() = RADWIMPS.then().then().then().`世`()
| 8 | HTML | 45 | 267 | 3ec4d5d6840071cee1d1f5778978e189adfe27c6 | 147 | RADWIMPS | MIT License |
multiplatform/src/commonMain/kotlin/com/vsevolodganin/clicktrack/about/AboutState.kt | vganin | 293,315,190 | false | {"Kotlin": 616395, "C++": 4113, "Ruby": 2549, "Swift": 526, "CMake": 281} | package com.vsevolodganin.clicktrack.about
data class AboutState(
val displayVersion: String,
)
| 18 | Kotlin | 1 | 22 | 37b958d965231cd68535586691c0f2d5842a9659 | 101 | click-track | Apache License 2.0 |
library/src/main/kotlin/com/daniloaraujosilva/mathemagika/library/common/mathematica/functions/CopyDatabin.kt | Danilo-Araujo-Silva | 271,904,885 | false | null | package com.daniloaraujosilva.mathemagika.library.common.mathematica.functions
import com.daniloaraujosilva.mathemagika.library.common.mathematica.MathematicaFunction
/**
*````
*
* Name: CopyDatabin
*
* Full name: System`CopyDatabin
*
* CopyDatabin[bin] creates a copy of a ... | 2 | Kotlin | 0 | 3 | 4fcf68af14f55b8634132d34f61dae8bb2ee2942 | 1,059 | mathemagika | Apache License 2.0 |
advanced-compose-state/src/main/java/com/mcmouse88/advanced_compose_state/di/DispatchersModule.kt | mcmouse88 | 691,754,136 | false | {"Kotlin": 496629} | package com.mcmouse88.advanced_compose_state.di
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Dispatchers
import javax.inject.Qualifier
@[Module InstallIn(SingletonCompon... | 1 | Kotlin | 0 | 0 | 09ddeb718c273ba7178c62e3572cff7e91e756fd | 559 | GoogleCodelabs | Apache License 2.0 |
core-data/src/main/java/com/coldfier/core_data/repository/repositories/CountriesRepository.kt | Dmitriy1892 | 495,756,413 | false | null | package com.coldfier.core_data.repository.repositories
import android.net.Uri
import com.coldfier.core_data.repository.models.Country
import com.coldfier.core_data.repository.models.CountryShort
import kotlinx.coroutines.flow.Flow
interface CountriesRepository {
val countryShortsFlow: Flow<List<CountryShort>>
... | 0 | Kotlin | 0 | 0 | 0c474fd577ab001d0901f3ed71c6ca391a6d087d | 622 | DizzyTrip | Apache License 2.0 |
app/src/main/java/eu/kanade/tachiyomi/data/database/mappers/TrackTypeMapping.kt | nekomangaorg | 182,704,531 | false | {"Kotlin": 3442643} | package eu.kanade.tachiyomi.data.database.mappers
import android.content.ContentValues
import android.database.Cursor
import com.pushtorefresh.storio.sqlite.SQLiteTypeMapping
import com.pushtorefresh.storio.sqlite.operations.delete.DefaultDeleteResolver
import com.pushtorefresh.storio.sqlite.operations.get.DefaultGetR... | 94 | Kotlin | 119 | 2,261 | 3e0f16dd125e6d173e29defa7fcb62410358239d | 4,242 | Neko | Apache License 2.0 |
sykepenger-model/src/test/kotlin/no/nav/helse/inspectors/DagerFraInntektsmeldingInspektør.kt | navikt | 193,907,367 | false | {"Kotlin": 6500762, "PLpgSQL": 2738, "Dockerfile": 168} | package no.nav.helse.inspectors
import java.time.LocalDate
import no.nav.helse.hendelser.Periode
import no.nav.helse.hendelser.Periode.Companion.omsluttendePeriode
import no.nav.helse.hendelser.inntektsmelding.DagerFraInntektsmelding
import no.nav.helse.hendelser.inntektsmelding.DagerFraInntektsmeldingVisitor
interna... | 2 | Kotlin | 6 | 3 | 72d191bd7278c9d5cf8abe65973536782ec0f9f0 | 848 | helse-spleis | MIT License |
feature/photo-detail/src/main/java/st/slex/csplashscreen/feature/feature_photo_detail/domain/model/ImageDetail.kt | stslex | 413,161,718 | false | {"Kotlin": 304116, "Ruby": 1145} | package st.slex.csplashscreen.feature.feature_photo_detail.domain.model
import androidx.compose.runtime.Stable
import st.slex.csplashscreen.core.photos.ui.model.PhotoModel
@Stable
data class ImageDetail(
val photo: PhotoModel,
val isLiked: Boolean,
) | 4 | Kotlin | 0 | 4 | 671c6f013ab90de83093820774c8042095ed29b7 | 260 | CSplashScreen | Apache License 2.0 |
data/src/main/java/com/athimue/data/database/entity/ArtistEntity.kt | athimue | 676,430,924 | false | {"Kotlin": 168414} | package com.athimue.data.database.entity
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "artist")
data class ArtistEntity(
@PrimaryKey val id: Long,
) | 0 | Kotlin | 0 | 0 | 76df1a4b661dae0246dc3bd16fca86e571b68e32 | 189 | GrooveWave | MIT License |
src/main/kotlin/no/nav/omsorgspenger/infotrygd/InfotrygdRammeService.kt | navikt | 293,469,365 | false | {"Kotlin": 598595, "Dockerfile": 208} | package no.nav.omsorgspenger.infotrygd
import com.github.benmanes.caffeine.cache.Cache
import com.github.benmanes.caffeine.cache.Caffeine
import no.nav.omsorgspenger.CorrelationId
import no.nav.omsorgspenger.Identitetsnummer
import no.nav.omsorgspenger.Periode
import java.time.Duration
internal class InfotrygdRammeSe... | 1 | Kotlin | 1 | 2 | 4a69bfa8aeab9be3f94c46549b12806dbf4a6ae2 | 3,003 | omsorgspenger-rammemeldinger | MIT License |
platform/lang-impl/src/com/intellij/framework/detection/impl/FrameworkDetectionManagerProjectActivity.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.framework.detection.impl
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.components.serviceAsync
import com.intellij.openapi.extensions.Ex... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 1,195 | intellij-community | Apache License 2.0 |
easypay/src/main/java/com/easypaysolutions/exceptions/EasyPaySdkException.kt | Easy-Pay-Solutions | 784,747,593 | false | {"Kotlin": 208098, "Java": 318} | package com.easypaysolutions.exceptions
/**
* [EasyPaySdkException] - a class for exceptions issued in the SDK.
*/
class EasyPaySdkException(
val type: Type,
cause: Throwable? = null,
) : EasyPayException(null, type.message, cause) {
enum class Type(val message: String) {
EASY_PAY_CONFIGURATION_... | 0 | Kotlin | 0 | 0 | b1ce3aac7c22c559be0ce9e4298828bc3ec3074f | 804 | Mobile-SDK-Android | Apache License 2.0 |
src/main/kotlin/player/frame/FrameRenderer.kt | numq | 606,499,322 | false | {"Kotlin": 31106} | package player.frame
import kotlinx.coroutines.flow.StateFlow
interface FrameRenderer {
val size: StateFlow<Pair<Int, Int>>
val bytes: StateFlow<ByteArray?>
} | 0 | Kotlin | 1 | 9 | 44703ec537bad7ce7246e83e7dbee57da5c28fe4 | 168 | jetpack-compose-desktop-media-player | MIT License |
kotest-framework/kotest-framework-api/src/commonMain/kotlin/io/kotest/core/test/TestCaseConfig.kt | swanandvk | 284,610,632 | true | {"Kotlin": 2954857, "HTML": 423, "Java": 145} | package io.kotest.core.test
import io.kotest.core.Tag
import io.kotest.core.extensions.TestCaseExtension
import io.kotest.core.listeners.TestListener
import kotlin.time.Duration
typealias EnabledIf = (TestCase) -> Boolean
data class TestCaseConfig(
val enabled: Boolean = true,
val invocations: Int = 1,
val ... | 6 | Kotlin | 0 | 1 | ff1b42546abba34ec13eeb7c8f876e546ffc1e02 | 1,788 | kotlintest | Apache License 2.0 |
src/main/kotlin/io/github/takusan23/resettable/screen/ResetTableScreenHandlerServerClientData.kt | takusan23 | 461,187,880 | false | {"Kotlin": 39676, "Java": 621} | package io.github.takusan23.resettable.screen
import net.minecraft.network.RegistryByteBuf
import net.minecraft.util.math.BlockPos
/**
* ブロックの位置を[ResetTableScreenHandler]へ渡すための
* いままでは[net.minecraft.network.PacketByteBuf]でやり取りしてたけど、なんかうまく動かない。
* ので、データクラスを作って、シリアライズ・デシリアライズできるようにする。
*
* @param blockPos ブロックの位置
... | 1 | Kotlin | 0 | 0 | a446c573132d17266e63fa829f7da0d613aae035 | 832 | ResetTable | Apache License 2.0 |
app/src/main/java/com/webaddicted/kotlinproject/model/bean/common/ImagesBean.kt | webaddicted | 193,627,207 | false | {"Kotlin": 969734, "Java": 204213} | package com.webaddicted.kotlinproject.model.bean.common
/**
* Created by Deepak Sharma(webaddicted) on 23-03-2020.
*/
class ImagesBean {
var imgId: String = ""
var image: String = ""
var imgDate: String = ""
var imgName: String = ""
var imgFolderName: String = ""
}
| 1 | Kotlin | 17 | 75 | 18e361939df69445487a53baca8a7ec40beef7a5 | 290 | KotlinProject | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/quicksight/ConditionalFormattingSolidColorPropertyDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.quicksight
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.quicksight.CfnTemplate
@Generated
public fun buildConditionalFormattingSolidColorProperty(initializer: @AwsCdkDsl
CfnTempla... | 1 | Kotlin | 0 | 0 | 451a1e42282de74a9a119a5716bd95b913662e7c | 535 | aws-cdk-kt | Apache License 2.0 |
socialcats-aws/feature/profile/backend/use-cases/src/main/kotlin/profile/UpdateUserUseCase.kt | Couchsurfing | 194,353,465 | false | null | package com.nicolasmilliard.socialcatsaws.profile
import com.nicolasmilliard.socialcatsaws.profile.model.Avatar
import com.nicolasmilliard.socialcatsaws.profile.model.Image
import com.nicolasmilliard.socialcatsaws.profile.repository.UsersRepository
import mu.KotlinLogging
import javax.inject.Inject
private val logger... | 4 | Kotlin | 1 | 3 | ebc38cc10a392d0a5ff0247c15230edc420e3be9 | 792 | social-cats-playground | Apache License 2.0 |
example/src/main/java/com/squaredcandy/waypoint/bottom_nav/new_emails/NewEmailsWaypointFeature.kt | squaredcandy | 638,860,321 | false | null | package com.squaredcandy.waypoint.bottom_nav.new_emails
import com.squaredcandy.waypoint.core.content.WaypointContent
import com.squaredcandy.waypoint.core.feature.MainWaypointFeature
class NewEmailsWaypointFeature : MainWaypointFeature {
override fun getContent(): WaypointContent = NewEmailsWaypointContent()
}
| 0 | Kotlin | 0 | 0 | f702f1e7949945487461d0538e600e8c9b7153de | 319 | waypoint | Apache License 2.0 |
app/src/main/kotlin/com/muandrew/yari/common/agent/UnitAgent.kt | muandrew | 142,399,113 | false | {"Gradle": 6, "Java Properties": 2, "Shell": 3, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Proguard": 1, "Kotlin": 14, "Java": 3, "CMake": 6, "Markdown": 1, "C++": 4, "C": 1} | package com.muandrew.yari.common.agent
import com.muandrew.yrai.agent.Agent
import org.openbw.bwapi4j.BW
import org.openbw.bwapi4j.unit.Unit
open class UnitAgent<U : Unit>(val bw: BW, val id: Int) : Agent() {
@Suppress("UNCHECKED_CAST")
val unit: U
get() {
return bw.getUnit(id) as U
... | 1 | null | 1 | 1 | 75f82c61016f105fb929b603686e0da805d16d98 | 327 | yrai | MIT License |
weaver/src/main/kotlin/me/xx2bab/asmdemo/Weaver01AddRemoveFieldAndMethod.kt | 2BAB | 315,057,536 | false | null | package me.xx2bab.asmdemo
import org.objectweb.asm.*
import org.objectweb.asm.ClassWriter.COMPUTE_FRAMES
import org.objectweb.asm.ClassWriter.COMPUTE_MAXS
import org.objectweb.asm.Opcodes.*
import org.objectweb.asm.util.CheckClassAdapter
import java.io.InputStream
fun main() {
Weaver01AddRemoveFieldAndMethod().p... | 1 | Kotlin | 1 | 2 | 3ac3ad7e2f29c3d90bb9329ae1a07ae8b13bc357 | 2,384 | ASMDemo | Apache License 2.0 |
ILIve/app/src/main/java/com/hhsj/ilive/ui/main/my/UserInfoActivity.kt | radish520like | 502,081,584 | false | {"Kotlin": 170920, "Java": 127014} | package com.hhsj.ilive.ui.main.my
import android.os.Bundle
import androidx.navigation.fragment.NavHostFragment
import com.hhsj.ilive.BaseActivity
import com.hhsj.ilive.R
class UserInfoActivity : BaseActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
... | 0 | Kotlin | 0 | 0 | c32212b0ebaf04da3b8a8bc9644a2271b29f3317 | 808 | weiwang | Apache License 2.0 |
Android/app/src/main/java/com/app/myfoottrip/ui/adapter/ServiceClauseDetailAdapter.kt | MyFootTrip | 607,048,412 | false | null | package com.app.myfoottrip.ui.adapter
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.app.myfoottrip.R
import com.app.myfoottrip.model.ServiceClauseText
im... | 0 | Kotlin | 3 | 0 | 771d30180ab795703a1bba03f17ad3bd26344acf | 1,606 | MyFootTrip | MIT License |
domain/src/main/java/tachiyomi/domain/items/chapter/model/NoChaptersException.kt | aniyomiorg | 358,887,741 | false | {"Kotlin": 4957619} | package tachiyomi.domain.items.chapter.model
class NoChaptersException : Exception()
| 180 | Kotlin | 315 | 4,992 | 823099f775ef608b7c11f096da1f50762dab82df | 86 | aniyomi | Apache License 2.0 |
station-span/data/src/test/java/org/mothdigital/stationdistancechecker/stationspan/data/mapper/FetchTimeMapperTest.kt | stanislawm97 | 779,379,195 | false | {"Kotlin": 75191} | package org.mothdigital.station_span.data.mapper
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.Arguments
import org.junit.jupiter.params.provider.MethodSource
import org.mothdigital.station_span.data.datasource.local.feat... | 0 | Kotlin | 0 | 0 | a9cdbb95335d2963b00ad4a3924eb7b4c8734f3c | 953 | StationDistanceChecker | MIT License |
src/main/kotlin/kotlinmdl/components/MdlCardTitleText.kt | sametkurumahmut | 119,988,311 | false | null | package kotlinmdl.components
import kotlinmdl.internal.extensions.empty
import kotlinx.html.dom.create
import kotlinx.html.js.h1
import org.w3c.dom.HTMLHeadingElement
import kotlin.browser.document
open class MdlCardTitleText(element: HTMLHeadingElement, text: String, classes: String = String.empty)
: MdlCardTitl... | 1 | Kotlin | 0 | 1 | 4ae2e6a03572aec5a8ea8bd3355ee031a4a3eb0e | 485 | kotlin-mdl-js | Apache License 2.0 |
kofu/src/test/kotlin/org/springframework/fu/kofu/samples/webmvc.kt | spring-projects-experimental | 134,733,282 | false | {"Java": 266521, "Kotlin": 215169, "Shell": 515, "HTML": 78, "Mustache": 30} | package org.springframework.fu.kofu.samples
import org.springframework.boot.WebApplicationType
import org.springframework.fu.kofu.application
import org.springframework.fu.kofu.webmvc.webMvc
import org.springframework.web.servlet.function.ServerRequest
import org.springframework.web.servlet.function.ServerResponse
imp... | 39 | Java | 139 | 1,673 | c41806b1429dc31f75e2cb0f69ddd51a0bd8e9da | 1,723 | spring-fu | Apache License 2.0 |
app/src/main/java/com/grupo14/gym_androidapp/screens/SearchScreen.kt | ThomasMiz | 553,204,342 | false | null | package com.grupo14.gym_androidapp.screens
import android.widget.Toast
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.shape.CircleShape
im... | 12 | Kotlin | 0 | 0 | 4a138ba6b0b5fd29f42e2de9901281a047cde3ce | 14,424 | GYM-AndroidApp | MIT License |
radius/feature/data/src/main/java/com/agentdesks/android/crm/assignment/feature/data/mapper/FacilityMapper.kt | kunal26das | 673,585,943 | false | null | package com.agentdesks.android.crm.assignment.feature.data.mapper
import com.agentdesks.android.crm.assignment.feature.data.entity.FacilityDto
import com.agentdesks.android.crm.assignment.feature.domain.entity.Facility
private const val FACILITY_PROPERTY_TYPE = "1"
private const val FACILITY_NUMBER_OF_ROOMS = "2"
pri... | 0 | Kotlin | 0 | 1 | de0811d69435da1b902a038848b8c52a9f9e165b | 876 | android-assignments | Apache License 2.0 |
app/src/main/java/software/tice/walletandroid/models/presentation/DocumentEvent.kt | TICESoftware | 806,917,415 | false | {"Kotlin": 469414, "Ruby": 1325} | package software.tice.walletandroid.models.presentation
import software.tice.walletandroid.R
import software.tice.walletandroid.models.presentation.DocumentEvent.*
import java.util.Date
sealed class DocumentEvent(
open val title: String,
open val timestamp: Date,
) {
data class Add(
override val t... | 0 | Kotlin | 0 | 0 | 9f821a612e795151c9b5cf3f80b115c55ccf5e96 | 1,977 | WalletAndroid | Apache License 2.0 |
app/src/main/java/com/example/mywiki/di/module/ActivityModule.kt | uditbhaskar | 368,022,314 | false | null | package com.example.mywiki.di.module
import android.R
import android.widget.ArrayAdapter
import androidx.lifecycle.ViewModelProviders
import androidx.recyclerview.widget.LinearLayoutManager
import com.example.mywiki.data.repository.SaveAndFetchQueryDbRepository
import com.example.mywiki.data.repository.SearchQueryRep... | 0 | Kotlin | 6 | 8 | 952fe8a9493d5821cb3a2584f0a3ae21dfb9cec0 | 4,022 | MyWiki | MIT License |
app/app/src/main/java/app/emmabritton/cibusana/flow/measurements/View.kt | emmabritton | 559,135,688 | false | null | package app.emmabritton.cibusana.flow.measurements
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.Button
import androidx.compose.... | 0 | Kotlin | 0 | 0 | 1e2bf6836a97b8f4b92d00656c113a27ace1185c | 1,885 | cibusana | MIT License |
src/player/main/sp/it/pl/ui/nodeinfo/WeatherInfoForecastHourly.kt | sghpjuikit | 18,862,317 | false | null | package sp.it.pl.ui.nodeinfo
import de.jensd.fx.glyphs.GlyphIcons
import java.time.ZonedDateTime
import javafx.scene.control.ScrollPane.ScrollBarPolicy.NEVER
import javafx.scene.layout.HBox
import javafx.scene.layout.VBox
import sp.it.pl.main.APP
import sp.it.pl.ui.nodeinfo.WeatherInfo.Companion.Types.WindDir
import s... | 12 | null | 2 | 22 | b842d41f378c40414f5e9ea7204ed524415ef763 | 4,816 | player | X.Net License |
plugin-dotnet-agent/src/main/kotlin/jetbrains/buildServer/agent/runner/ToolInstance.kt | JetBrains | 49,584,664 | false | null | package jetbrains.buildServer.agent.runner
import jetbrains.buildServer.agent.ToolInstanceType
import jetbrains.buildServer.agent.Version
import jetbrains.buildServer.dotnet.Platform
import java.io.File
data class ToolInstance(
val toolType: ToolInstanceType,
val installationPath: File,
// 16.... | 3 | null | 25 | 94 | cdecbf2c7721a40265a031453262614809d5378d | 567 | teamcity-dotnet-plugin | Apache License 2.0 |
src/test/kotlin/org/rooftop/netx/redis/EventCapture.kt | rooftop-MSA | 751,298,974 | false | {"Kotlin": 40254} | package org.rooftop.netx.redis
import org.springframework.boot.test.context.TestComponent
import org.springframework.context.event.EventListener
import kotlin.reflect.KClass
@TestComponent
class EventCapture {
private val eventCapture: MutableMap<KClass<out Any>, Long> = mutableMapOf()
fun clear() {
... | 3 | Kotlin | 0 | 0 | fcf415410b5c852172c507ddba1d746a9bb1812d | 597 | Netx | Apache License 2.0 |
data/src/main/java/com/annguyen/dmed/data/repository/network/model/GetComicResponse.kt | anguyenqd | 508,005,129 | false | {"Kotlin": 60860} | package com.annguyen.dmed.data.repository.network.model
data class GetComicResponse(
val data: Data? = null
)
data class Data(
val results: List<Comic>? = null
) | 0 | Kotlin | 0 | 0 | 3e5af25a08ac11cd2f7d33377834d48a86f61f88 | 171 | dmedexplorer | MIT License |
app/src/main/java/com/example/busschedule/repository/OfflineRouteRepository.kt | YouMayknow | 846,009,108 | false | {"Kotlin": 30012} | package com.example.busschedule.repository
import com.example.busschedule.database.Route
import com.example.busschedule.database.RouteDao
import kotlinx.coroutines.flow.Flow
class OfflineRouteRepository(
private val routeDao: RouteDao
) : RouteRepository {
override suspend fun insertRoute(route: Route) = r... | 0 | Kotlin | 0 | 0 | c13cb8296a83ab13e7d0580590170a57b5117015 | 599 | busSchedule | Apache License 2.0 |
grpc-multiplatform-lib/src/androidJvmCommon/kotlin/io/github/timortel/kotlin_multiplatform_grpc_lib/rpc/rpc_implementation.kt | TimOrtel | 503,391,702 | false | null | package io.github.timortel.kotlin_multiplatform_grpc_lib.rpc
import io.github.timortel.kotlin_multiplatform_grpc_lib.KMCode
import io.github.timortel.kotlin_multiplatform_grpc_lib.KMStatus
import io.github.timortel.kotlin_multiplatform_grpc_lib.KMStatusException
import io.grpc.StatusException
suspend fun <COMMON_RESP... | 5 | Kotlin | 12 | 38 | fc7e8ab36a23a0fa1231515ee775e9fa604cd1cb | 625 | GRPC-Kotlin-Multiplatform | Apache License 2.0 |
agp-7.1.0-alpha01/tools/base/common/src/test/java/com/android/prefs/AbstractAndroidLocationsTest.kt | jomof | 502,039,754 | true | {"Markdown": 63, "Java Properties": 56, "Shell": 31, "Batchfile": 12, "Proguard": 30, "CMake": 10, "Kotlin": 3443, "C++": 594, "Java": 4446, "HTML": 34, "Makefile": 14, "RenderScript": 22, "C": 30, "JavaScript": 2, "CSS": 3, "INI": 11, "Filterscript": 11, "Prolog": 1, "GLSL": 1, "Gradle Kotlin DSL": 5, "Python": 12, "D... | /*
* Copyright (C) 2020 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... | 1 | null | 1 | 0 | 9e3475f6d94cb3239f27ed8f8ee81b0abde4ef51 | 16,997 | CppBuildCacheWorkInProgress | Apache License 2.0 |
desktop/src/main/kotlin/com/patriker/syncnote/util/Keyboard.kt | esp-er | 536,074,176 | false | {"Kotlin": 343988, "Shell": 1457} | package com.patriker.syncnote.util
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.input.key.*
import com.patriker.syncnote.MainViewModel
import com.patriker.syncnote.routing.NotesRouter
import com.patriker.syncnote.routing.Screen
@OptIn(ExperimentalComposeUiApi::class)
fun captureKeybo... | 0 | Kotlin | 0 | 1 | 6f5cb41d1008ca4046171d492edd57b5549db74c | 1,104 | syncnote | MIT License |
source-code/starter-project/app/src/main/java/com/droidcon/easyinvoice/ui/home/invoices/detail/TableCell.kt | droidcon-academy | 731,477,787 | false | {"Kotlin": 1511048} | /*
* Copyright (c) 2024. Droidcon
*
* 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... | 0 | Kotlin | 1 | 0 | ad6a88b2ad0a5a4594d80885d839dcdc5f3954ff | 2,466 | android-room-database-course-materials | Apache License 2.0 |
source-code/starter-project/app/src/main/java/com/droidcon/easyinvoice/ui/home/invoices/detail/TableCell.kt | droidcon-academy | 731,477,787 | false | {"Kotlin": 1511048} | /*
* Copyright (c) 2024. Droidcon
*
* 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... | 0 | Kotlin | 1 | 0 | ad6a88b2ad0a5a4594d80885d839dcdc5f3954ff | 2,466 | android-room-database-course-materials | Apache License 2.0 |
src/main/java/org/nixos/idea/settings/NixSymbolSettings.kt | NixOS | 67,685,297 | false | {"Java": 237856, "Kotlin": 31246, "Lex": 6061, "Nix": 2837} | package org.nixos.idea.settings
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.components.BaseState
import com.intellij.openapi.components.SimplePersistentStateComponent
import com.intellij.openapi.components.State
import com.intellij.openapi.components.Storage
import org.nixos.... | 12 | Java | 28 | 176 | 2384013f2699339c985e78f531b2139beb000744 | 1,179 | nix-idea | Apache License 2.0 |
JetpackDemo/app/src/main/java/com/example/darcy/jetpack/lifecycle/observer/ObserverByLifeCycleEvent.kt | darcycui | 304,189,079 | false | null | package com.example.darcy.jetpack.lifecycle.observer
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleEventObserver
import androidx.lifecycle.LifecycleOwner
import com.example.darcy.jetpack.extentions.logw
/**
* @Author cuiqianbo
* @Date 2020-10-15-11:34
* @Description 通过LifeCycle.Event感知生命周期... | 0 | Kotlin | 0 | 0 | da4ac9aeeb034c44346a9e031a76930ac45ca038 | 699 | DarcyJetpack | Apache License 2.0 |
libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/cinterop-MetadataDependencyTransformation/p2/src/nativeTest/kotlin/P2NativeTest.kt | JetBrains | 3,432,266 | false | null | import kotlinx.cinterop.pointed
import simple.simpleInterop
import withPosix.getMyStructPointer
import kotlin.test.Test
class P2NativeTest {
@Test
fun runTest() {
simpleInterop()
getMyStructPointer()?.pointed?.posixProperty
NativeMain.structFromPosix
NativeMain.structPointerFr... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 471 | kotlin | Apache License 2.0 |
src/main/kotlin/synchmanager/messagehandler/imAlive/interfaces/IImAlive.kt | BAC2-Graf-Rohatynski | 208,084,693 | false | null | package synchmanager.messagehandler.imAlive.interfaces
interface IImAlive {
fun message(): String
} | 0 | Kotlin | 0 | 0 | 449fea3c1dc7470a8e4a4dfbdecd10c1561721cd | 104 | SynchManager | MIT License |
android/src/main/java/com/wultra/android/malwarelytics/reactnative/MalwarelyticsNativeHelper.kt | wultra | 278,395,712 | false | {"TypeScript": 91681, "Kotlin": 62150, "Swift": 36282, "Shell": 16941, "Java": 8642, "Objective-C": 5214, "Ruby": 3840, "JavaScript": 1832, "Objective-C++": 1145} | //
// Copyright 2023 Wultra s.r.o.
//
// 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... | 7 | TypeScript | 1 | 2 | fbaf84503df502bf2e3858380cf7cac45ca0093d | 7,242 | react-native-malwarelytics | Apache License 2.0 |
src/test/kotlin/ch/petikoch/examples/tictactoe_fp/PlayFunctionShould.kt | Petikoch | 288,920,597 | false | null | package ch.petikoch.examples.tictactoe_fp
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
class PlayFunctionShould {
@Test
fun `make player O second`() {
val gameState = GameState()
val resultingGameStat... | 0 | Kotlin | 0 | 0 | f24fa2ec39d85509bfa6eec69ac5277d955bd3c8 | 3,811 | TicTacToe_FP_CTDD_Kotlin | The Unlicense |
src/main/kotlin/uk/gov/justice/digital/hmpps/calculatereleasedatesapi/model/BookingCalculation.kt | ministryofjustice | 387,841,000 | false | null | package uk.gov.justice.digital.hmpps.calculatereleasedatesapi.model
import com.fasterxml.jackson.annotation.JsonIgnore
import uk.gov.justice.digital.hmpps.calculatereleasedatesapi.enumerations.ReleaseDateType
import java.time.LocalDate
import java.time.Period
data class BookingCalculation(
val dates: MutableMap<Rel... | 0 | Kotlin | 0 | 1 | ea73b1f1c78aac2ff6fe089f9cfc05a24f72e8cb | 627 | calculate-release-dates-api | MIT License |
app/src/main/kotlin/com/ayatk/biblio/data/repository/EpisodeRepository.kt | ayatk | 101,084,816 | false | null | /*
* Copyright (c) 2016-2018 ayatk.
*
* 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... | 31 | Kotlin | 1 | 5 | 61f23685042860379cce53635207452b14afae22 | 1,034 | biblio | Apache License 2.0 |
app/src/main/java/com/arctouch/codechallenge/base/BaseActivity.kt | buenocorp | 234,663,930 | false | null | package com.arctouch.codechallenge.base
import android.support.v7.app.AppCompatActivity
import com.arctouch.codechallenge.api.TmdbApi
import okhttp3.OkHttpClient
import retrofit2.Retrofit
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory
import retrofit2.converter.moshi.MoshiConverterFactory
abstract class B... | 1 | Kotlin | 0 | 0 | 1186f0512237a2436dc347fa52db56e9b26a704b | 671 | ArcTouch.CodeChallenge | MIT License |
src/test/kotlin/com/scavi/brainsqueeze/adventofcode/TestDay3TobogganTrajectory.kt | Scavi | 68,294,098 | false | {"Java": 1449516, "Kotlin": 59149} | package com.scavi.brainsqueeze.adventofcode
import com.scavi.brainsqueeze.adventofcode.util.FileHelper
import org.junit.Test
import kotlin.test.assertEquals
class TestDay3TobogganTrajectory {
private val inputDummy = listOf(
"..##.......",
"#...#...#..",
".#....#..#.",
... | 1 | null | 1 | 1 | 79550cb8ce504295f762e9439e806b1acfa057c9 | 1,629 | BrainSqueeze | Apache License 2.0 |
src/main/kotlin/gg/flyte/twilight/data/sql/QueryBuilder.kt | flytegg | 667,613,985 | false | {"Kotlin": 152970} | package gg.flyte.twilight.data.sql
class QueryBuilder {
companion object {
const val ASTERISK = "*"
data class Condition(val column: String, val condition: String, val value: Any);
infix fun String.eq(value: Any): Condition {
if (this.isEmpty()) throw IllegalArgumentException... | 20 | Kotlin | 7 | 54 | 893c6cba4cef385d9da73666a959cff3749e4fab | 7,046 | twilight | MIT License |
cinescout/media/presentation/src/main/kotlin/cinescout/media/presentation/MediaPresentationModule.kt | fardavide | 280,630,732 | false | null | package cinescout.media.presentation
import org.koin.core.annotation.ComponentScan
import org.koin.core.annotation.Module
@Module
@ComponentScan
class MediaPresentationModule
| 11 | Kotlin | 2 | 6 | f2e3993816452afaf6c3f1e7c7a384eb9a66c06e | 177 | CineScout | Apache License 2.0 |
Week4LectureDemo/app/src/main/java/au/edu/utas/lfwells/week4/CharacterSelectActivity.kt | lfwells | 466,087,136 | false | null | package au.edu.utas.lfwells.week4
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.Button
import au.edu.utas.lfwells.week4.databinding.ActivityCharacterSelectBinding
const val REQUEST_CHARACTER = 0
const val RESPONSE_... | 0 | Kotlin | 0 | 1 | 0cde677b00a55e44c08560399e3ec62cbd8ef377 | 1,363 | kit305-week4-samples | Apache License 2.0 |
app/src/main/java/com/workfort/pstuian/util/remote/SupportApiService.kt | arhanashik | 411,942,559 | false | {"Kotlin": 1116286} | package com.workfort.pstuian.util.remote
import com.workfort.pstuian.app.data.remote.Response
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST
/**
* ****************************************************************************
* * Created by : arhan on 01 Oct, 2021 at 1:3... | 0 | Kotlin | 0 | 2 | 9c51ec4d4d477ae739b922c49127ac69844f4d6e | 892 | PSTUian-android | Apache License 2.0 |
android/app/src/main/kotlin/br/com/emidio/loja_virtual/MainActivity.kt | felipeemidio | 336,436,060 | false | {"Dart": 64497, "Swift": 404, "Kotlin": 131, "Objective-C": 38} | package br.com.emidio.loja_virtual
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 0 | 2a82a2af16d103fa0bb753879d24625a8901770d | 131 | loja_virtual | MIT License |
mokkery-runtime/src/commonMain/kotlin/dev/mokkery/internal/render/ToStringRenderer.kt | lupuuss | 652,785,006 | false | {"Kotlin": 502021} | package dev.mokkery.internal.render
internal object ToStringRenderer : Renderer<Any?> {
override fun render(value: Any?): String = value.toString()
}
| 1 | Kotlin | 5 | 96 | 26a50ef902b4cae76b67f9081efe501065973597 | 156 | Mokkery | Apache License 2.0 |
codeSnippets/snippets/client-timeout/src/test/kotlin/ApplicationTest.kt | ktorio | 278,572,893 | false | null | import e2e.WithTestServer
import e2e.defaultServer
import e2e.readString
import e2e.runGradleApp
import io.ktor.application.*
import io.ktor.response.*
import io.ktor.routing.*
import org.hamcrest.MatcherAssert.assertThat
import org.hamcrest.Matchers.matchesPattern
import org.junit.Test
class ApplicationTest: WithTest... | 5 | Kotlin | 94 | 95 | 4ede19d93a98dd25c3e1665702f13a8468a364aa | 769 | ktor-documentation | Apache License 2.0 |
src/main/kotlin/polimorphism/Interfaces.kt | softbluecursoscode | 603,710,984 | false | null | package polimorphism
interface A {
fun a()
fun a2() {
println()
}
}
interface B : A {
fun b()
}
interface C {
fun c()
}
class Impl : B, C {
override fun b() {
TODO("Not yet implemented")
}
override fun a() {
TODO("Not yet implemented")
}
override fu... | 0 | null | 2 | 5 | d1685053cad799d678364687ea0977d9c727b14d | 372 | kotlin | MIT License |
app/src/main/java/com/huya/pitaya/pagestatustransformer/RecyclerViewFragmentCrash.kt | appdev | 403,681,994 | true | {"Kotlin": 33930} | package com.huya.pitaya.pagestatustransformer
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ProgressBar
import android.widget.TextView
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.RecyclerView
import... | 0 | Kotlin | 0 | 0 | 193a76f6ab402994affc546c7d141e9a64e77cd7 | 2,339 | PageStatusTransformer | Apache License 2.0 |
chat-service-composite/src/main/kotlin/com/demo/chat/service/composite/impl/MessagingServiceImpl.kt | marios-code-path | 181,180,043 | false | {"Kotlin": 924762, "Shell": 36602, "C": 3160, "HTML": 2714, "Starlark": 278} | package com.demo.chat.service.composite.impl
import com.demo.chat.domain.*
import com.demo.chat.service.composite.ChatMessageService
import com.demo.chat.service.core.MessageIndexService
import com.demo.chat.service.core.MessagePersistence
import com.demo.chat.service.core.TopicPubSubService
import org.slf4j.Logger
im... | 2 | Kotlin | 1 | 9 | 2ae59375cd44e8fb58093b0f24596fc3111fd447 | 1,987 | demo-chat | MIT License |
attribution/src/main/java/com/affise/attribution/usecase/DeviceUseCaseImpl.kt | affise | 496,592,599 | false | {"Kotlin": 859274, "JavaScript": 39328, "HTML": 33916} | package com.affise.attribution.usecase
import android.os.Build
import java.io.BufferedReader
import java.io.File
import java.io.InputStreamReader
internal class DeviceUseCaseImpl : DeviceUseCase {
private var rooted: Boolean? = null
private var emulator: Boolean? = null
override fun isRooted(): Boolean... | 0 | Kotlin | 0 | 5 | ab7d393c6583208e33cef9e10e01ba9dd752bbcb | 3,123 | sdk-android | MIT License |
src/main/kotlin/top/maplex/rayskillsystem/skill/tools/target/TargetCone.kt | RaySkillSystem | 670,112,740 | false | null | package top.maplex.rayskillsystem.skill.tools.target
import org.bukkit.entity.LivingEntity
import top.maplex.rayskillsystem.api.script.auto.InputEngine
import kotlin.math.cos
import kotlin.math.pow
@InputEngine("TargetCone")
object TargetCone {
/**
* 获取扇形范围内的实体
* @param source 触发者
* @param arc 角度
... | 0 | Kotlin | 0 | 4 | 4092a6a78f9fa7494ae5552bc79f1b8c45add449 | 1,616 | RaySkillSystem | Creative Commons Zero v1.0 Universal |
goblin-transport-server/src/main/java/org/goblinframework/transport/server/handler/HandshakeRequestHandler.kt | xiaohaiz | 206,246,434 | false | null | package org.goblinframework.transport.server.handler
import org.goblinframework.transport.protocol.HandshakeRequest
interface HandshakeRequestHandler {
fun handleHandshakeRequest(request: HandshakeRequest): Boolean
}
| 0 | null | 6 | 9 | b1db234912ceb23bdd81ac66a3bf61933b717d0b | 223 | goblinframework | Apache License 2.0 |
context/src/commonMain/kotlin/io/opentelemetry/kotlin/context/DefaultContextKey.kt | dcxp | 450,518,130 | false | {"Kotlin": 1483649} | /*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.kotlin.context
internal class DefaultContextKey<T>(private val name: String) : ContextKey<T> {
override fun toString(): String {
return name
}
}
| 10 | Kotlin | 2 | 29 | 9c3186e26bd3ac78b650163be2c8f569096aaeec | 272 | opentelemetry-kotlin | Apache License 2.0 |
data/src/main/java/com/jordansilva/foursquarenearby/data/repository/mapper/Mapper.kt | jordansilva | 150,341,216 | false | {"Gradle": 6, "Java Properties": 3, "Shell": 1, "Text": 1, "Ignore List": 5, "Batchfile": 1, "Markdown": 1, "Proguard": 4, "Java": 5, "XML": 44, "Kotlin": 54} | package com.jordansilva.foursquarenearby.data.repository.mapper
interface Mapper<T, D> {
fun mapToDomain(type: T): D
}
| 1 | null | 1 | 1 | 6fee22df7de174a5b0be4e1f8b194dcf69b5d28a | 124 | FoursquareNearby | Apache License 2.0 |
app/src/main/java/com/baljeet/expirytracker/fragment/product/CustomViewModel.kt | baljeet808 | 391,490,393 | false | null | package com.baljeet.expirytracker.fragment.product
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import com.baljeet.expirytracker.CustomApplication
import com.baljeet.expirytracker.data.Image
class CustomViewModel(app : Application) : AndroidViewModel(app) {
val context = getApplicati... | 0 | Kotlin | 0 | 1 | c5dfa7efb0a18b49e415113ec420b10a18912157 | 438 | ExpiryTracker | Apache License 2.0 |
src/main/kotlin/dev/shtanko/concurrency/ThreadInterruption.kt | ashtanko | 203,993,092 | false | {"Kotlin": 7493809, "Shell": 1168, "Makefile": 1144} | /*
* Copyright 2024 <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 w... | 6 | Kotlin | 0 | 19 | 3b06c91cce03eae3aa0e282d426257c9572ee429 | 1,382 | kotlab | Apache License 2.0 |
src/main/kotlin/main/service/UserDetailsService.kt | SevenLakesHSUIL | 164,341,141 | false | {"HTML": 25830, "Kotlin": 20074, "CSS": 90} | package main.service
import main.data.persistence.UserDetailsRepository
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.security.core.userdetails.UserDetails
import org.springframework.security.core.userdetails.UserDetailsService as SpringUserDetailsService
import org.springfra... | 0 | HTML | 0 | 0 | f5c7f13f65173621a3a78990f703a14fd9fbb082 | 812 | UILCompSciWebsite | Apache License 2.0 |
newm-server/src/main/kotlin/io/newm/server/features/earnings/database/ClaimOrdersTable.kt | projectNEWM | 447,979,150 | false | {"Kotlin": 1970013, "HTML": 138371, "Shell": 2775, "Dockerfile": 2535, "Procfile": 60} | package io.newm.server.features.earnings.database
import io.newm.server.features.cardano.database.KeyTable
import io.newm.shared.exposed.uuidArray
import org.jetbrains.exposed.dao.id.EntityID
import org.jetbrains.exposed.dao.id.UUIDTable
import org.jetbrains.exposed.sql.Column
import org.jetbrains.exposed.sql.Referenc... | 1 | Kotlin | 4 | 9 | 1219040e136ef42514c1979e7b6c964c495e66ee | 1,506 | newm-server | Apache License 2.0 |
app/src/main/java/com/tinytongtong/androidstudy/MainActivity.kt | 0501fei | 309,355,379 | true | {"Java": 62875, "Kotlin": 59688} | package com.tinytongtong.androidstudy
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.tinytongtong.androidstudy.aidl.BinderTestActivity
import com.tinytongtong.androidstudy.anim.ActivityAnimActivity
import com.tinytongtong.androidstudy.bitmap.BitmapEntr... | 0 | null | 0 | 0 | 6a0eb931817a97c5b69c74d36e8508bd5b4670a0 | 2,211 | AndroidStudy | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.