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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
core/src/main/java/com/example/core/domain/usecase/CountryUseCase.kt | daisukikancolle | 253,533,783 | false | {"Gradle": 6, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 4, "Batchfile": 1, "Git Attributes": 1, "YAML": 3, "Markdown": 2, "Proguard": 3, "Kotlin": 39, "XML": 23, "Java": 3, "JSON": 3} | package com.example.core.domain.usecase
import com.example.core.data.Resource
import com.example.core.domain.model.Country
import kotlinx.coroutines.flow.Flow
interface CountryUseCase {
fun getAllCountry(): Flow<Resource<List<Country>>>
fun getAllFavoriteCountry(): Flow<List<Country>>
fun updateFavoriteCo... | 1 | null | 1 | 1 | 0d02278cf91412e86e201c48bb43d9ba53208361 | 359 | Corona | Apache License 2.0 |
app/src/main/java/com/example/androiddevchallenge/MainActivity.kt | wkxjc | 343,669,301 | 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 | 5a01e91d28762b8899fb9425804279aa270faa1a | 4,185 | PuppyAdoption | Apache License 2.0 |
app/src/main/java/com/roxana/recipeapp/edit/FabSave.kt | roxanapirlea | 383,507,335 | false | null | package com.roxana.recipeapp.edit
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.FloatingActionButton
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import com.roxana.recipeapp.ui.CheckIcon
@Composable
fun FabSave(... | 0 | Kotlin | 0 | 1 | 8dc3e7040d806893dddd4538e15dd3a40faa80a4 | 509 | RecipeApp | Apache License 2.0 |
korge/src/commonMain/kotlin/com/soywiz/korge/view/filter/ColorMatrixFilter.kt | cybernetics | 183,833,774 | true | {"Kotlin": 1966103, "Java": 182026, "ActionScript": 7114, "HTML": 2081, "Shell": 1547, "Batchfile": 698} | package com.soywiz.korge.view.filter
import com.soywiz.korag.shader.*
import com.soywiz.korge.view.*
import com.soywiz.korma.geom.*
class ColorMatrixFilter(colorMatrix: Matrix3D, blendRatio: Double) : Filter() {
companion object {
private val u_ColorMatrix = Uniform("colorMatrix", VarType.Mat4)
private val u_Ble... | 0 | Kotlin | 0 | 0 | 1d7632525260b115ff7cfabb3631519736986676 | 961 | korge | Apache License 2.0 |
src/main/kotlin/year2023/Day08.kt | forketyfork | 572,832,465 | false | {"Kotlin": 132477} | package year2023
import utils.lcm
class Day08 {
fun part1(input: String) = solve(input, { it == "AAA" }, { it == "ZZZ" })
fun part2(input: String) = solve(input, { it.endsWith('A') }, { it.endsWith('Z') })
data class Node(val left: String, val right: String, val terminal: Boolean)
fun solve(input: ... | 0 | Kotlin | 0 | 0 | db91e93748dfdcd0f0692867b2df02f554fb3251 | 1,173 | aoc-2022 | Apache License 2.0 |
feature/trending/src/main/kotlin/com/azizutku/movie/feature/trending/domain/usecase/GetTrendingMoviesUseCase.kt | azizutku | 579,143,942 | false | {"Kotlin": 265966, "Shell": 647} | package com.azizutku.movie.feature.trending.domain.usecase
import androidx.paging.PagingData
import com.azizutku.movie.feature.trending.domain.model.TrendingMovie
import com.azizutku.movie.feature.trending.domain.repository.TrendingRepository
import javax.inject.Inject
import kotlinx.coroutines.flow.Flow
class GetTre... | 0 | Kotlin | 4 | 36 | d6e8a01a41d1f61fc1b233cb32e17505c0707a20 | 499 | Modular-Clean-Arch-Movie-App | MIT License |
kotlin-history/src/main/generated/history/Hash.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
package history
/**
* A URL fragment identifier, beginning with a #.
*
* @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#location.hash
*/
typealias Hash = String | 12 | Kotlin | 145 | 983 | a99345a0160a80a7a90bf1adfbfdc83a31a18dd6 | 237 | kotlin-wrappers | Apache License 2.0 |
src/main/kotlin/com/br/maximo/shared/security/Jwt/AuthenticationInterceptor.kt | oliveirabalsa | 347,522,073 | false | null | package com.br.maximo.shared.security.Jwt
import com.br.maximo.shared.errors.UnauthorizedException
import org.springframework.stereotype.Component
import org.springframework.ui.ModelMap
import org.springframework.web.context.request.WebRequest
import org.springframework.web.context.request.WebRequestInterceptor
import... | 0 | Kotlin | 0 | 0 | c021cfc0a6863a1462512b34571cdfa5f96685f0 | 1,193 | maximo-kotlin | MIT License |
src/main/kotlin/software/shattered/datastore/EmptyDataStore.kt | ShatteredSoftware | 657,463,136 | false | null | package software.shattered.datastore
/**
* Represents an empty data store, never returning anything.
*/
object EmptyDataStore : DataStore {
override val keys: Set<String>
get() = emptySet()
override fun <T : Any> get(id: String, cl: Class<T>): T? {
return null
}
override fun <T : An... | 0 | Kotlin | 0 | 0 | 5d08fd9a0b6da5796b0762b8a742de7375b872b4 | 458 | datastore | MIT License |
app/src/main/java/io/github/janbarari/fallingwords/challenge/data/source/AssetDataSource.kt | janbarari | 613,848,990 | false | null | package io.github.janbarari.fallingwords.challenge.data.source
import java.io.File
interface AssetDataSource {
fun getFile(fileName: String): File
}
| 0 | Kotlin | 0 | 0 | 74fe4e6f6d5405abed5b99952fbf5301eb9ccd39 | 155 | falling-words-challenge | MIT License |
src/test/kotlin/me/lensvol/blackconnect/BlackdClientTestCase.kt | lensvol | 261,833,378 | false | null | package me.lensvol.blackconnect
import org.junit.Assert
import org.junit.Test
import org.mockserver.integration.ClientAndServer
import org.mockserver.model.HttpRequest
import org.mockserver.model.HttpResponse
import java.net.URL
class BlackdClientTestCase : BlackConnectTestCase() {
lateinit var mockServer: Client... | 6 | null | 3 | 29 | 209567e5e1d61c9175f0e4d7f41e114daca0600f | 2,792 | intellij-blackconnect | MIT License |
src/main/kotlin/com/projectcitybuild/modules/datetime/TimeProvider.kt | projectcitybuild | 42,997,941 | false | null | package com.projectcitybuild.modules.datetime
import dagger.Module
import dagger.Provides
@Module
class TimeProvider {
@Provides
fun provideTime(): Time {
return LocalizedTime()
}
} | 20 | Kotlin | 0 | 2 | 83f021a6c17ccb1d8bece07b02dc15568598fbc0 | 204 | PCBridge | MIT License |
common/parse/src/test/kotlin/com/curtislb/adventofcode/common/parse/ParseToRangeTest.kt | curtislb | 226,797,689 | false | {"Kotlin": 2146738} | package com.curtislb.adventofcode.common.parse
import com.curtislb.adventofcode.common.range.BigIntegerRange
import java.math.BigInteger
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertThrows
/**
* Tests functions for parsing an integer range fro... | 0 | Kotlin | 1 | 1 | 6b64c9eb181fab97bc518ac78e14cd586d64499e | 6,198 | AdventOfCode | MIT License |
src/main/kotlin/com/dotori/v2/global/config/web/WebConfig.kt | Team-Ampersand | 569,110,809 | false | {"Kotlin": 395101, "Shell": 827} | package com.dotori.v2.global.config.web
import org.springframework.context.annotation.Configuration
import org.springframework.context.annotation.Profile
import org.springframework.http.HttpMethod
import org.springframework.web.servlet.config.annotation.CorsRegistry
import org.springframework.web.servlet.config.annota... | 0 | Kotlin | 3 | 15 | 1997775ac9191250c522fcd9531d505a5e1f0fa5 | 994 | Dotori-server-V2 | Apache License 2.0 |
app/src/main/java/com/example/movplayv3/domain/usecase/GetMediaTypeReviewsUseCaseImpl.kt | Aldikitta | 514,876,509 | false | {"Kotlin": 850016} | package com.example.movplayv3.domain.usecase
import androidx.paging.PagingData
import com.example.movplayv3.data.model.MediaType
import com.example.movplayv3.data.model.Review
import com.example.movplayv3.data.repository.movie.MovieRepository
import com.example.movplayv3.data.repository.tvshow.TvShowRepository
import ... | 1 | Kotlin | 12 | 77 | 8344e2a5cf62289c2b56494bf4ecd5227e26de31 | 879 | MovplayV3 | Apache License 2.0 |
src/main/kotlin/com/orange/exception/ContaNaoEncontradaHandler.kt | gtanques | 399,334,789 | true | {"Kotlin": 23134} | package com.orange.exception
import io.grpc.Status
import javax.inject.Singleton
@Singleton
class ContaNaoEncontradaHandler : ExceptionHandler<ContaNaoEncontradaException> {
override fun handle(e: ContaNaoEncontradaException): ExceptionHandler.StatusWithDetails {
return ExceptionHandler.StatusWithDetails(... | 0 | Kotlin | 0 | 0 | b681a145c1b78ffdbb0114653f9a1452fee16e14 | 632 | orange-talents-06-template-pix-keymanager-grpc | Apache License 2.0 |
echoframework/src/test/kotlin/org/echo/mobile/framework/model/socketoperations/AccessSocketOperationTest.kt | echoprotocol | 151,734,824 | false | null | package org.echo.mobile.framework.model.socketoperations
import org.echo.mobile.framework.support.EmptyCallback
import org.junit.Assert.assertEquals
import org.junit.Assert.assertTrue
import org.junit.Before
import org.junit.Test
/**
* Test cases for [AccessSocketOperation]
*
* @author Dmitriy Bushuev
*/
class Ac... | 0 | Kotlin | 2 | 5 | 92036a0665d706c219d183a4a7582f02b87b9f88 | 1,233 | echo-android-framework | MIT License |
DSRMS-Corda-Backend/clients/bin/main/com/example/server/Server.kt | BigtoC | 259,233,418 | false | null | package com.example.server
import net.corda.client.jackson.JacksonSupport
import org.apache.catalina.servlet4preview.http.HttpServletRequest
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.Banner
import org.springframework.boot.SpringApplication
import org.springframework.... | 18 | Kotlin | 0 | 2 | 57ea8bdda24593e9c81666ad601de9cfeeeb66e2 | 2,799 | Distributed-Students-Record-Management-System | Apache License 2.0 |
app/src/main/java/m/derakhshan/noteapp/feature_note/domain/utils/NoteOrder.kt | m-derakhshan | 452,852,568 | false | null | package m.derakhshan.noteapp.feature_note.domain.utils
sealed class NoteOrder(open val orderType: OrderType) {
data class OrderByColor(override val orderType: OrderType) : NoteOrder(orderType)
data class OrderByDate(override val orderType: OrderType) : NoteOrder(orderType)
data class OrderByTitle(overrid... | 0 | Kotlin | 0 | 0 | 38709b4ee53391e0a75c1a9129c2888fec1a4f6b | 630 | NoteApp | MIT License |
src/main/kotlin/net/notjustanna/notionapi/model/database/Database.kt | annathelibri | 380,857,269 | false | {"Kotlin": 152432} | package net.adriantodt.notionapi.model.database
import net.adriantodt.notionapi.model.NotionObject
import net.adriantodt.notionapi.model.database.property.DatabaseProperty
import net.adriantodt.notionapi.model.richtext.RichText
import java.time.OffsetDateTime
/**
* Database objects describe the property schema of a ... | 0 | Kotlin | 0 | 0 | ab302b0e6ede8a2e2d5589e98edc88376f574a22 | 1,255 | notionapi | MIT License |
app/src/main/kotlin/com/tanyayuferova/franklin/data/week/Week.kt | TanyaYu | 105,792,737 | false | {"Kotlin": 88090} | package com.tanyayuferova.franklin.data.week
import com.tanyayuferova.franklin.utils.getFirstDayOfWeek
import com.tanyayuferova.franklin.utils.week
import com.tanyayuferova.franklin.utils.yearOfWeek
import java.util.Date
/**
* Author: Tanya Yuferova
* Date: 7/9/19
*/
data class Week(
val number: Int,
val y... | 2 | Kotlin | 1 | 2 | 4bf906d752e26a8859188a2d018d0a57d3e6bd04 | 554 | Franklin | Apache License 2.0 |
module_data/src/main/kotlin/com/yizhenwind/booster/data/database/mapper/ServerToServerEntityMapper.kt | WangZhiYao | 523,400,448 | false | null | package com.yizhenwind.booster.data.database.mapper
import com.yizhenwind.booster.common.model.Server
import com.yizhenwind.booster.common.model.Zone
import com.yizhenwind.booster.data.database.entity.ServerEntity
/**
*
* @author WangZhiYao
* @since 2022/6/5
*/
class ServerToServerEntityMapper(private val zone: Z... | 0 | Kotlin | 0 | 1 | 27665819d3e65ba70727a5cc4eafc52b5e0fae2b | 454 | Booster | Apache License 2.0 |
src/main/java/no/nav/familie/integrasjoner/førstesidegenerator/domene/Arkivsak.kt | navikt | 224,182,192 | false | null | package no.nav.familie.integrasjoner.førstesidegenerator.domene
data class Arkivsak(
val arkivsaksystem: Arkivsaksystem? = null,
val arkivsaksnummer: String? = null
)
| 9 | Kotlin | 0 | 3 | a48d4af90badad67cb4d7e1273216f10f3e02fde | 176 | familie-integrasjoner | MIT License |
plugins/kotlin/idea/tests/testData/inspectionsLocal/scopeFunctions/letToRun/outerThis.kt | ingokegel | 72,937,917 | true | null | // WITH_STDLIB
class C {
val c = "abc".<caret>let {
println(it + this)
}
}
| 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 92 | intellij-community | Apache License 2.0 |
tv/src/main/java/com/yuriy/openradio/tv/dependencies/DependencyRegistryTv.kt | ChernyshovYuriy | 679,720,363 | false | {"Kotlin": 877885, "Java": 3552} | /*
* Copyright 2022 The "Open Radio" Project. Author: <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 b... | 13 | Kotlin | 1 | 8 | 7cfe3b7e55228f14df5f85b8d993db32df771d42 | 2,053 | OpenRadio | Apache License 2.0 |
app/src/main/java/com/jakesilver/photoclient/scintillate/MainActivity.kt | jakesilver | 649,907,953 | false | null | package com.jakesilver.photoclient.scintillate
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.MaterialTheme
imp... | 0 | Kotlin | 0 | 0 | c9ea987130f267bd0ce8409ec2daa590ca676f2c | 2,097 | flickr-client | MIT License |
sample-app/src/main/java/com/binbo/glvideo/sample_app/impl/advanced/namecard/renderer/NameCardRenderer.kt | bigbugbb | 590,505,224 | false | {"C": 7685938, "C++": 4393829, "Kotlin": 644766, "Java": 564403, "GLSL": 23970, "Objective-C": 7449, "CMake": 3326} | package com.binbo.glvideo.sample_app.impl.advanced.namecard.renderer
import android.opengl.GLES20
import com.binbo.glvideo.core.opengl.drawer.FrameDrawer
import com.binbo.glvideo.core.opengl.renderer.DefaultGLRenderer
import com.binbo.glvideo.core.opengl.renderer.RenderImpl
import com.binbo.glvideo.core.opengl.utils.O... | 0 | C | 0 | 10 | a5416077cace83ef2a407a70d4b659f6ae5b6f51 | 3,191 | glvideo | MIT License |
features/auth/create-account/src/main/java/ir/mehdiyari/krypt/features/auth/create_account/CreateAccountNavigation.kt | mehdiyari | 459,064,107 | false | {"Kotlin": 467502, "Java": 87170} | package ir.mehdiyari.krypt.features.auth.create_account
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.ui.Modifier
import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.compose.composable
const val ROUTE_CREATE_ACCOUNT = "create_a... | 13 | Kotlin | 1 | 2 | af73ee3ffe3435ded1decd29c454c9e847b05e05 | 904 | krypt | Apache License 2.0 |
app/src/main/java/tech/thdev/jsonplaceholderexample/base/viewmodel/BaseLifecycleAndroidViewModel.kt | taehwandev | 140,991,530 | false | {"Kotlin": 37435} | package tech.thdev.jsonplaceholderexample.base.viewmodel
import android.app.Application
abstract class BaseLifecycleAndroidViewModel(val application: Application) : BaseLifecycleViewModel() | 0 | Kotlin | 0 | 4 | 31214daab0a3d0b57c55c9df4be6daf8eb3979b4 | 191 | JsonPlaceHolderExample | Apache License 2.0 |
src/main/kotlin/ru/quipy/DemoApplication.kt | DimonTurbina | 708,906,169 | false | {"Kotlin": 35461, "Dockerfile": 354} | package ru.quipy
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.context.properties.ConfigurationPropertiesScan
import org.springframework.boot.runApplication
@SpringBootApplication
@ConfigurationPropertiesScan("ru.quipy.config")
class DemoApplication
fun main(args... | 0 | Kotlin | 0 | 0 | 02f38589df28ee90d18e32b19a9bfa3a6a4973be | 381 | is-ppo | Apache License 2.0 |
src/main/kotlin/raft/war/language/jass/intention/number/converter/JassIntentionHexToRawCode.kt | WarRaft | 713,961,790 | false | {"Kotlin": 503179, "Java": 347321, "Lex": 23647, "HTML": 558} | package raft.war.language.jass.intention.number.converter
import com.intellij.psi.tree.IElementType
import raft.war.language.jass.intention.number.JassIntentionNumberConverter
import raft.war.language.jass.psi.JassTypes.*
class JassIntentionHexToRawCode : JassIntentionNumberConverter() {
override fun getFamilyNa... | 0 | Kotlin | 0 | 2 | 43e499b8c896631cd729a784a097230700322a10 | 515 | IntelliJASS | MIT License |
src/test/kotlin/com/github/jyc228/keth/client/eth/_resource.kt | jyc228 | 833,953,853 | false | {"Kotlin": 217816, "Solidity": 5515} | package com.github.jyc228.keth.client.eth
import io.kotest.matchers.resource.resourceAsString
import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.Json
val defaultJson = Json {
ignoreUnknownKeys = true
classDiscriminator = ""
}
inline fun <reified T> decodeJsonResource(path: String, ... | 0 | Kotlin | 0 | 2 | 4fd6f900b4e80b5f731090f33c1ddc10c6ede9ca | 527 | keth-client | Apache License 2.0 |
misk-admin/src/main/kotlin/misk/web/metadata/config/ConfigMetadataAction.kt | cashapp | 113,107,217 | false | {"Kotlin": 3843790, "TypeScript": 232251, "Java": 83564, "JavaScript": 5073, "Shell": 3462, "HTML": 1536, "CSS": 58} | package misk.web.metadata.config
import jakarta.inject.Inject
import jakarta.inject.Singleton
import misk.web.actions.WebAction
@Singleton
class ConfigMetadataAction @Inject constructor() : WebAction {
enum class ConfigTabMode {
/** Only show safe content which will not leak Misk secrets */
SAFE,
/**
... | 169 | Kotlin | 169 | 400 | 13dcba0c4e69cc2856021270c99857e7e91af27d | 638 | misk | Apache License 2.0 |
core/src/main/java/org/futo/circles/core/view/UserListItemView.kt | circles-project | 615,347,618 | false | {"Kotlin": 1307644, "C": 137821, "C++": 12364, "Shell": 3202, "CMake": 1680, "Ruby": 922} | package org.futo.circles.core.view
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import androidx.constraintlayout.widget.ConstraintLayout
import org.futo.circles.core.R
import org.futo.circles.core.databinding.ViewUserListItemBinding
import org.futo.circles.core.ext... | 8 | Kotlin | 4 | 29 | 7edec708f9c491a7b6f139fc2f2aa3e2b7149112 | 1,519 | circles-android | Apache License 2.0 |
app/src/main/java/com/example/androiddevchallenge/data/api/Petfinder.kt | omkaramberkar | 342,073,494 | 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 | f83c8c1533055533fe43c9637a41adb9c5c10908 | 3,045 | pet-adoption | Apache License 2.0 |
jvm/jvm-analysis-impl/src/com/intellij/codeInspection/test/junit/JUnitMalformedDeclarationInspectionMerger.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.execution.junit.codeInspection
import com.intellij.codeInspection.ex.InspectionElementsMerger
class JUnitMalformedDeclarationInspectionMerger : InspectionElementsMerger() {
o... | 284 | null | 5162 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 1,408 | intellij-community | Apache License 2.0 |
src/test/kotlin/eZmaxApi/models/CustomEzmaxinvoicingEzsignfolderResponseTest.kt | eZmaxinc | 271,950,932 | false | {"Kotlin": 6909939} | /**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package eZmaxApi.models
import io.kotlintest.sh... | 0 | Kotlin | 0 | 0 | 961c97a9f13f3df7986ea7ba55052874183047ab | 2,690 | eZmax-SDK-kotlin | MIT License |
src/main/kotlin/org/randomcat/agorabot/digest/Listener.kt | randomnetcat | 291,139,813 | false | {"Kotlin": 775934, "Nix": 17514} | package org.randomcat.agorabot.digest
import net.dv8tion.jda.api.entities.emoji.Emoji
import net.dv8tion.jda.api.events.message.react.MessageReactionAddEvent
import org.randomcat.agorabot.listener.BotEmoteListener
import org.randomcat.agorabot.util.tryAddReaction
fun digestEmoteListener(digestMap: GuildMutableDigestM... | 0 | Kotlin | 3 | 6 | f10cf87790612d8b73e9b3fe2c135ea4f72c6612 | 1,166 | AgoraBot | MIT License |
app/src/main/java/com/sample/android/tmdb/ui/base/BaseDetailActivity.kt | alirezaeiii | 158,464,119 | false | null | package com.sample.android.tmdb.ui.base
import android.os.Bundle
import android.view.View
import android.widget.TextView
import com.sample.android.tmdb.R
import com.sample.android.tmdb.databinding.ActivityDetailBinding
import com.sample.android.tmdb.util.addFragmentToActivity
import dagger.android.support.DaggerFragme... | 1 | null | 20 | 161 | a835bc7ca972619717832860dbb3a95ca37994e5 | 1,022 | TMDb-Paging-Playground | The Unlicense |
feature/auth/src/main/java/com/lighthouse/auth/fragment/CountryFragment.kt | soma-lighthouse | 658,620,687 | false | {"Kotlin": 444678} | package com.lighthouse.auth.fragment
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import androidx.fragment.app.activityViewModels
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.lifecycleScope
import androidx.lifecycle.repeatOnLifecycle
impo... | 0 | Kotlin | 0 | 0 | f6c297f85086b6df358948a26aac563b79e543a7 | 5,209 | FE-lingo-swap | Apache License 2.0 |
src/test/kotlin/com/github/kerubistan/kerub/planner/steps/vstorage/share/iscsi/utils/IscsiUtilsKtTest.kt | hobbit19 | 119,058,608 | true | {"Kotlin": 1230510, "HTML": 72453, "Gherkin": 61971, "JavaScript": 53393, "CSS": 754} | package com.github.kerubistan.kerub.planner.steps.vstorage.share.iscsi.utils
import com.github.kerubistan.kerub.model.collection.VirtualStorageDataCollection
import com.github.kerubistan.kerub.model.config.HostConfiguration
import com.github.kerubistan.kerub.model.dynamic.HostDynamic
import com.github.kerubistan.kerub... | 0 | Kotlin | 0 | 0 | 29558c848ceaeb24d7db5d2fabfefde3845b1563 | 2,199 | kerub | Apache License 2.0 |
plugin/src/main/kotlin/ir/taher7/melodymine/commands/subcommands/Status.kt | Vallerian | 700,695,551 | false | {"Kotlin": 203762, "TypeScript": 151429, "CSS": 4018, "Shell": 2145, "JavaScript": 1577, "Dockerfile": 367} | package ir.taher7.melodymine.commands.subcommands
import ir.taher7.melodymine.commands.SubCommand
import ir.taher7.melodymine.models.MelodyPlayer
import ir.taher7.melodymine.storage.Messages
import ir.taher7.melodymine.storage.Storage
import ir.taher7.melodymine.utils.Adventure.sendMessage
import ir.taher7.melodymine.... | 0 | Kotlin | 8 | 33 | 1cd98f3aa07e4f75ec9e6876832d18fde52ffec3 | 4,285 | MelodyMine | Apache License 2.0 |
app/src/main/java/com/papageorgiouk/curfnsurf/domain/postcode/LoadPostcodeUseCase.kt | papageorgiouk | 250,341,408 | false | null | package com.papageorgiouk.curfnsurf.domain.postcode
import com.papageorgiouk.curfnsurf.data.Storage
import com.papageorgiouk.curfnsurf.domain.KEY_POSTCODE
private const val DEFAULT_POSTCODE = -222L
class LoadPostcodeUseCase(private val storage: Storage) {
fun execute(): String = when (val loadedPostcode = stora... | 0 | Kotlin | 1 | 0 | 9f8231abbce18a70aee1079f6b6d2c302e51b728 | 448 | curfnsurf | Apache License 2.0 |
knee-compiler-plugin/src/main/kotlin/serialization/Names.kt | deepmedia | 552,404,398 | false | {"Kotlin": 544280} | package io.deepmedia.tools.knee.plugin.compiler.serialization
import com.squareup.kotlinpoet.*
import com.squareup.kotlinpoet.ParameterizedTypeName.Companion.parameterizedBy
import kotlinx.serialization.KSerializer
import kotlinx.serialization.Serializable
import kotlinx.serialization.descriptors.*
import kotlinx.seri... | 5 | Kotlin | 2 | 76 | 033fe352320a38b882381929fecb7b1811e00ebb | 2,764 | Knee | Apache License 2.0 |
app/src/main/java/com/rybarstudios/bucketlist/adapter/PhotoGalleryRecyclerViewAdapter.kt | Build-Week-Bucket-List | 204,524,161 | false | null | package com.rybarstudios.bucketlist.adapter
import android.app.AlertDialog
import android.content.Context
import android.net.Uri
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import androidx.recyclerview.widget.RecyclerView
import com.rybarstu... | 4 | Kotlin | 0 | 0 | 85757dd3a98c729ee19523255df6e423862cd3f7 | 4,613 | android | MIT License |
subprojects/assemble/build-metrics/src/main/kotlin/com/avito/android/plugin/build_metrics/internal/gradle/cache/BuildCacheMetricType.kt | avito-tech | 230,265,582 | false | {"Kotlin": 3720788, "Java": 67252, "Shell": 27892, "Dockerfile": 12799, "Makefile": 8086} | package com.avito.android.plugin.build_metrics.internal.gradle.cache
internal sealed interface BuildCacheMetricType {
data class Module(val name: String) : BuildCacheMetricType
data class TaskType(val name: String) : BuildCacheMetricType
data class ModuleTaskType(
val moduleName: String,
va... | 10 | Kotlin | 49 | 412 | 244c6a588abe14367f927746a8e4832abbc067fa | 371 | avito-android | MIT License |
android/app/src/main/kotlin/com/example/worktodaymobileapp/MainActivity.kt | MEE-POONG | 360,289,842 | false | {"Dart": 118497, "HTML": 1742, "Ruby": 1354, "Swift": 404, "Kotlin": 136, "Objective-C": 38} | package com.meepoong.worktodaymobileapp
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 0 | 0465c3693cb0cff28e277fbcea5a04fdec3e0d1b | 136 | worktodaymobileapp | MIT License |
feature/my_page/src/main/java/online/partyrun/partyrunapplication/feature/my_page/component/StatusElement.kt | SWM-KAWAI-MANS | 649,352,661 | false | {"Kotlin": 804908} | package online.partyrun.partyrunapplication.feature.my_page.component
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.height
im... | 0 | Kotlin | 1 | 14 | fecbaf7c67cfa136e0633baaa2c708732069b190 | 2,403 | party-run-application | MIT License |
app/src/test/kotlin/org/jdc/template/datasource/webservice/colors/ColorServiceTest.kt | jeffdcamp | 12,853,600 | false | null | package org.jdc.template.datasource.webservice.colors
import assertk.assertThat
import assertk.assertions.isEqualTo
import io.ktor.client.engine.mock.MockEngine
import io.ktor.client.engine.mock.respond
import io.ktor.http.HttpHeaders
import io.ktor.http.HttpStatusCode
import io.ktor.http.headersOf
import io.ktor.util... | 0 | null | 43 | 99 | 9074c122891b69fadb897f4e015201b7e44c3896 | 2,010 | android-template | Apache License 2.0 |
app/src/main/java/com/example/vehiclepartsshop/SignInActivity.kt | GwinBest | 864,031,652 | false | {"Kotlin": 58126} | package com.example.vehiclepartsshop
import android.content.Intent
import android.os.Bundle
import android.widget.Toast
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import com.example.vehiclepartsshop.databinding.ActivitySignInBinding
import com.google.firebase.auth.Firebas... | 0 | Kotlin | 0 | 0 | 1407a31a19337ca42e395df00e25c2fb5af1093a | 2,096 | partsPortal | MIT License |
app/src/main/java/com/maengs/dns/data/DnsResourceRecord.kt | hsmaeng | 867,771,623 | false | {"Kotlin": 13410} | package com.maengs.dns.data
import android.net.DnsResolver
enum class DnsResourceRecord(val id: Int) {
TYPE_A(DnsResolver.TYPE_A), TYPE_AAA(DnsResolver.TYPE_AAAA);
}
| 0 | Kotlin | 0 | 0 | cc318655ca49e3a90936f89edf6c0b6614672882 | 172 | android-dns-resolver | Apache License 2.0 |
sdk/src/main/java/com/kin/ecosystem/marketplace/view/IMarketplaceView.kt | kinecosystem | 120,272,671 | false | null | package com.kin.ecosystem.marketplace.view
import com.kin.ecosystem.base.IBaseView
import com.kin.ecosystem.core.network.model.Offer
import com.kin.ecosystem.poll.view.PollWebViewActivity.PollBundle
interface IMarketplaceView : IBaseView {
enum class Message {
NOT_ENOUGH_KIN,
SOMETHING_WENT_WRONG... | 2 | null | 12 | 30 | 8cbcffcf8192662ba760be043c0599e6ee3b5c77 | 838 | kin-ecosystem-android-sdk | MIT License |
app/src/main/java/com/softaai/dsa_kotlin/nsqauresortinglgorithm/selectionsort/SelectionSortRunner.kt | amoljp19 | 537,774,597 | false | {"Kotlin": 139041} | package com.softaai.dsa_kotlin.nsqauresortinglgorithm.selectionsort
import com.softaai.dsa_kotlin.linkedlist.example
/**
* Created by amoljp19 on 11/21/2022.
* softAai Apps.
*/
fun main(){
"selection sort" example{
val arrayList = arrayListOf(9, 4, 10, 3)
println("original list $arrayList")
... | 0 | Kotlin | 0 | 1 | 3dabfbb1e506bec741aed3aa13607a585b26ac4c | 421 | DSA_KOTLIN | Apache License 2.0 |
src/main/kotlin/de/menkalian/pisces/message/MessageInstance.kt | Menkalian | 471,663,267 | false | null | package de.menkalian.pisces.message
import de.menkalian.pisces.discord.IDiscordHandler
import de.menkalian.pisces.message.spec.FieldSpec
import de.menkalian.pisces.message.spec.MessageSpec
import de.menkalian.pisces.util.*
import net.dv8tion.jda.api.EmbedBuilder
import net.dv8tion.jda.api.Permission
import net.dv8tion... | 0 | Kotlin | 0 | 1 | efc7818da5419ce720cd04878c8aa30809fc35c0 | 16,393 | pisces | Apache License 2.0 |
src/main/kotlin/br/com/zupacademy/valteir/pix/ChavePixExistenteException.kt | ValteirEleuterio | 397,608,715 | true | {"Kotlin": 102136, "Dockerfile": 167} | package br.com.zupacademy.valteir.pix
class ChavePixExistenteException(message: String?) : RuntimeException(message)
| 0 | Kotlin | 0 | 0 | 9499b2ed0c4748d1ff2a0ce0993d3a052d5bb53e | 118 | orange-talents-06-template-pix-keymanager-grpc | Apache License 2.0 |
lycoris/src/main/java/ru/spektrit/lycoris/viewdocument/PagePlaceHolder.kt | arcanegolem | 691,509,528 | false | null | package ru.spektrit.lycoris.viewdocument
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.aspectRatio
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifie... | 1 | null | 1 | 9 | b1d5c02ef3815379e1f2f9f91924beff32ca6205 | 597 | Lycoris | Apache License 2.0 |
app/src/main/java/com/xtensolutions/weatherapp/core/DataResult.kt | riontech-xten | 345,582,958 | false | null | package com.xtensolutions.weatherapp.core
import com.xtensolutions.weatherapp.R
/**
* Created by <NAME> on 17/02/21.
* <EMAIL>
*/
sealed class DataResult<T>(val data: T? = null, val message: String = "") {
class Success<T>(result: T) : DataResult<T>(data = result)
class Loading<T>() : DataResult<T>(messag... | 0 | Kotlin | 0 | 0 | baea739eb9789d3d803a4bb29084965f15cdae83 | 420 | Weather | Apache License 2.0 |
tools/intellij.tools.ide.metrics.collector/src/com/intellij/tools/ide/metrics/collector/telemetry/SpanProcessor.kt | JetBrains | 2,489,216 | false | null | package com.intellij.tools.ide.metrics.collector.telemetry
import com.intellij.tools.ide.metrics.collector.collector.PerformanceMetrics
import com.intellij.tools.ide.metrics.collector.metrics.MetricWithAttributes
interface SpanProcessor<T> {
/**
* Processes the given `span` element.
*
* @param span The `S... | 7 | null | 5023 | 15,928 | 9ba394021dc73a3926f13d6d6cdf434f9ee7046d | 1,511 | intellij-community | Apache License 2.0 |
tools/intellij.tools.ide.metrics.collector/src/com/intellij/tools/ide/metrics/collector/telemetry/SpanProcessor.kt | JetBrains | 2,489,216 | false | null | package com.intellij.tools.ide.metrics.collector.telemetry
import com.intellij.tools.ide.metrics.collector.collector.PerformanceMetrics
import com.intellij.tools.ide.metrics.collector.metrics.MetricWithAttributes
interface SpanProcessor<T> {
/**
* Processes the given `span` element.
*
* @param span The `S... | 7 | null | 5023 | 15,928 | 9ba394021dc73a3926f13d6d6cdf434f9ee7046d | 1,511 | intellij-community | Apache License 2.0 |
library/src/main/java/com/github/pelmenstar1/rangecalendar/selection/DefaultSelectionState.kt | pelmenstar1 | 454,918,220 | false | null | package com.github.pelmenstar1.rangecalendar.selection
import android.graphics.RectF
import com.github.pelmenstar1.rangecalendar.SelectionType
internal sealed class DefaultSelectionState(
override val type: SelectionType,
val range: CellRange
) : SelectionState {
override val rangeStart: Int
get()... | 6 | Kotlin | 0 | 10 | 839345e66f6b06336c3df8221d0f0f51622f0022 | 5,214 | RangeCalendar | MIT License |
src/test/kotlin/grd/kotlin/authapi/controllers/AUserControllerUnitTests.kt | gardehal | 708,548,046 | false | {"Kotlin": 360888, "Shell": 612, "HTML": 331} | package grd.kotlin.authapi.controllers
import grd.kotlin.authapi.MockitoHelper
import grd.kotlin.authapi.dto.AUserDto
import grd.kotlin.authapi.dto.Converter
import grd.kotlin.authapi.exceptions.NotFoundException
import grd.kotlin.authapi.models.AUser
import grd.kotlin.authapi.models.HttpReturn
import grd.kotlin.autha... | 0 | Kotlin | 0 | 0 | 7169b1173b502e2255bc4c293f651082c11d54d7 | 32,350 | kotlin-auth-api | MIT License |
educational-core/testSrc/com/jetbrains/edu/coursecreator/FileCheck.kt | dstibbe | 155,983,569 | false | null | package com.jetbrains.edu.coursecreator
import com.jetbrains.edu.learning.courseFormat.tasks.Task
enum class FileSetKind(val fileSetName: String) {
TASK_FILES("task files"),
TEST_FILES("test files"),
ADDITIONAL_FILES("additional files"),
ALL_FILES("files");
fun fileSet(task: Task): Set<String> = when (this... | 1 | null | 1 | 1 | 9cac107535925f52f858448eea7bf4f04bbda978 | 1,254 | educational-plugin | Apache License 2.0 |
app/src/main/java/in/surajsau/jisho/domain/cardreader/IdentifyText.kt | surajsau | 434,128,847 | false | {"Kotlin": 212448} | package `in`.surajsau.jisho.domain.cardreader
import `in`.surajsau.jisho.data.CardDataProvider
import `in`.surajsau.jisho.data.FileProvider
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flatMapLatest
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.map
import javax.inject.Inject
... | 2 | Kotlin | 5 | 15 | 66ca1373067c57257e7d26f9b922d2d0915b0f4a | 748 | ML-Android | Apache License 2.0 |
app/src/main/java/com/ainshams/graduation_booking_halls/presentation/screens/core/profile/ProfileState.kt | Tonistark92 | 700,629,104 | false | {"Kotlin": 354268} | package com.ainshams.graduation_booking_halls.presentation.screens.core.profile
import com.ainshams.graduation_booking_halls.data.remote.dto.DocDataDto
import com.ainshams.graduation_booking_halls.data.remote.dto.ScheduleDto
import com.ainshams.graduation_booking_halls.data.remote.dto.ScheduleDtoItem
data class Profi... | 0 | Kotlin | 0 | 0 | e7e08886afa9d8936727ad75e2a966a6feeb4030 | 567 | Booking-Halls | MIT License |
src/main/kotlin/org/magmaoffenburg/roboviz/gui/windows/ControlsHelpWindow.kt | magmaOffenburg | 34,959,602 | false | {"Gradle Kotlin DSL": 3, "Markdown": 7, "INI": 2, "Shell": 3, "Ignore List": 3, "Batchfile": 3, "Git Attributes": 1, "Text": 1, "YAML": 4, "Java": 181, "XML": 1, "Wavefront Material": 9, "SVG": 1, "HTML": 1, "Wavefront Object": 83, "GLSL": 18, "Kotlin": 29, "OpenStep Property List": 1, "Makefile": 2, "C++": 2} | package org.magmaoffenburg.roboviz.gui.windows
import java.awt.Dimension
import javax.imageio.ImageIO
import javax.swing.JEditorPane
import javax.swing.JFrame
import javax.swing.JScrollPane
/**
* TODO key listener for close on esc
*/
object ControlsHelpWindow : JFrame() {
init {
initializeWindow()
... | 21 | Java | 17 | 52 | e660a072b3163014050a1253f8fe33c60519ffb9 | 1,239 | RoboViz | Apache License 2.0 |
app/src/main/java/com/iarigo/water/ui/dialogWaterInterval/WaterIntervalPresenter.kt | Pettruha | 559,843,338 | false | null | package com.iarigo.water.ui.dialogWaterInterval
import com.iarigo.water.repository.PreferencesRepository
import com.iarigo.water.storage.database.AppDatabase
import io.reactivex.disposables.CompositeDisposable
import io.reactivex.disposables.Disposable
class WaterIntervalPresenter: WaterIntervalContract.Presenter {
... | 0 | Kotlin | 0 | 0 | 7a82f2d6120f2a3b39f3fb6a4350c48163596a31 | 1,687 | DrinkWater | Apache License 2.0 |
example/android/app/src/main/kotlin/com/huynn109/otp_consent_example/MainActivity.kt | huynn109 | 272,374,690 | false | null | package com.huynn109.otp_consent_example
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Kotlin | 4 | 2 | a96b0a2ebeb6148c7e48af6a1c0799933690fa81 | 137 | otp_consent | MIT License |
src/main/kotlin/kotlinfx/Stage.kt | JYInMyHeart | 125,754,243 | true | {"Kotlin": 34212, "CSS": 852} | package kotlinfx
typealias Stage = javafx.stage.Stage
typealias StageStyle = javafx.stage.StageStyle
inline fun stage(style: StageStyle = StageStyle.DECORATED, initializer: Stage.() -> Unit = {}): Stage {
return Stage(style).apply(initializer)
}
| 0 | Kotlin | 0 | 0 | a1d4618dff6f8902b86ae8d628dcaafd9c6e014b | 253 | ClassViewer | MIT License |
ktan-annotations/src/main/java/com/ktan/annotations/Mutable.kt | adef145 | 529,180,943 | false | null | package com.ktan.annotations
@Target(AnnotationTarget.FIELD)
@Retention(AnnotationRetention.SOURCE)
annotation class Mutable
| 0 | Kotlin | 0 | 3 | 391a44440bf9a1ce88c3da09b02ae12887452135 | 126 | Ktan | MIT License |
openai/tiktoken/src/main/kotlin/io/wrtn/kommons/tiktoken/api/GptBytePairEncodingParams.kt | debop | 625,161,599 | false | {"Kotlin": 7504333, "HTML": 502995, "Java": 2273, "JavaScript": 1351, "Shell": 1301, "CSS": 444, "Dockerfile": 121, "Mustache": 82} | package io.bluetape4k.tiktoken.api
import java.util.regex.Pattern
/**
* Parameter for the byte pair encoding used to tokenize for the OpenAI GPT models.
*
* This library supports the encodings that are listed in [EncodingType] out of the box.
* But if you want to use a custom encoding, you can use this class to p... | 0 | Kotlin | 0 | 1 | ce3da5b6bddadd29271303840d334b71db7766d2 | 1,098 | bluetape4k | MIT License |
app/src/main/java/com/amit/rewardstore/repository/models/BaseItem.kt | amitseervi | 365,715,474 | false | null | package com.amit.rewardstore.repository.models
interface BaseItem {
fun getType(): ModelType
} | 0 | Kotlin | 0 | 1 | dd465a85377ced544be93a26dfcc473e47051a4c | 99 | GooglePayRewardStoreInNative | MIT License |
src/main/kotlin/Problem10.kt | jimmymorales | 496,703,114 | false | {"Kotlin": 67323} | import kotlin.math.floor
import kotlin.math.sqrt
import kotlin.system.measureNanoTime
/**
* Summation of primes
*
* The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.
* Find the sum of all the primes below two million.
*
* https://projecteuler.net/problem=10
*/
fun main() {
println(sumOfPrimes(10))
... | 0 | Kotlin | 0 | 0 | e881cadf85377374e544af0a75cb073c6b496998 | 1,285 | project-euler | MIT License |
app/src/main/java/com/example/viacep/data/api/ServiceApi.kt | kelvingcr | 628,608,775 | false | null | package com.example.viacep.data.api
import com.example.viacep.data.model.AddressResponse
import retrofit2.http.GET
import retrofit2.http.Path
/**
* Nessa classe fica todos os ends points da api.
*
* Obs: Ela precisa ser usada pelo retrofit
* Para usar basta chamar o método "serviceProvides.createService"
*/
in... | 0 | Kotlin | 0 | 0 | 81cd27d31198a4e0f29ce11ad2c21b3bc57565cf | 439 | viacep | Apache License 2.0 |
compiler/testData/diagnostics/testsWithStdLib/pcla/completeIrrelevantCalls.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | // FIR_IDENTICAL
// SKIP_TXT
class A {
lateinit var m: Map<String, Int>
@ExperimentalStdlibApi
fun foo(xs: Collection<List<String>>) {
m = buildMap {
// flatMap calls might be completed on early phase
for (x in xs.flatMap { it.toList() }) {
put(x, x.length)
... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 352 | kotlin | Apache License 2.0 |
react-table-kotlin/src/jsMain/kotlin/tanstack/table/core/ColumnPinningInstance.kt | karakum-team | 393,199,102 | false | null | // Automatically generated - do not modify!
package tanstack.table.core
import kotlinx.js.ReadonlyArray
external interface ColumnPinningInstance<TData : RowData> {
var setColumnPinning: (updater: Updater<ColumnPinningState>) -> Unit
var resetColumnPinning: (defaultState: Boolean?) -> Unit
var getIsSomeCo... | 0 | null | 6 | 26 | 9100a0654c91ca4cd0cf3b2b6657bf653d7207e2 | 582 | types-kotlin | Apache License 2.0 |
Android/doraemonkit/src/main/java/com/didichuxing/doraemonkit/kit/core/SimpleDoKitStarter.kt | YuWenHaoqq | 387,735,558 | false | null | package com.didichuxing.doraemonkit.kit.core
import android.content.Context
import android.content.Intent
import android.os.Bundle
import com.didichuxing.doraemonkit.DoKit
import com.didichuxing.doraemonkit.constant.BundleKey
import com.didichuxing.doraemonkit.constant.FragmentIndex
import com.didichuxing.doraemonkit.... | 1 | null | 1 | 1 | 4af3bf2eda2d4e50102ceb7a0a7f82cfe7c7f5c8 | 3,078 | DoraemonKit | Apache License 2.0 |
src/main/kotlin/net/jp/vss/visitscheduler/infrastructure/schedules/VisitSchedulesEntity.kt | nemuzuka | 231,857,499 | false | null | package net.jp.vss.visitscheduler.infrastructure.schedules
import java.time.LocalDate
import java.util.UUID
import net.jp.vss.visitscheduler.domain.schedules.Schedule
import net.jp.vss.visitscheduler.domain.schedules.VisitSchedules
import net.jp.vss.visitscheduler.domain.schools.School
import org.seasar.doma.Column
im... | 18 | Kotlin | 0 | 0 | fdd558e5b8bd426057977d8b25cafa28feaaeb30 | 1,749 | visit-scheduler | Apache License 2.0 |
attribution/src/main/java/com/affise/attribution/parameters/OaidMD5Provider.kt | affise | 496,592,599 | false | null | package com.affise.attribution.parameters
import com.affise.attribution.converter.Converter
import com.affise.attribution.oaid.OaidManager
import com.affise.attribution.parameters.base.StringPropertyProvider
/**
* Provider for parameter [Parameters.OAID_MD5]
*
* @property oaidManager to retrieve oaid
* @property ... | 0 | Kotlin | 0 | 3 | 7582d955bf8d1a69220ccd20f53ddce063e7892d | 646 | sdk-android | The Unlicense |
app/src/main/java/bilulo/com/jetpackproject/di/AppModule.kt | agrdc | 170,507,175 | false | null | package bilulo.com.jetpackproject.di
import android.app.Application
import android.content.Context
import dagger.Binds
import dagger.Module
import dagger.Provides
import javax.inject.Singleton
@Module
class AppModule (private val application: Application) {
@Provides
@Singleton
fun provideContext(): Conte... | 0 | Kotlin | 0 | 0 | a2e538bdd4b79184470e0d07686a914c9b7f29c1 | 575 | JetpackProject | Apache License 2.0 |
app/src/main/java/com/hypertrack/android/ui/screens/visits_management/tabs/history/TimelineTileItemAdapter.kt | hypertrack | 241,723,736 | false | null | package com.hypertrack.android.ui.screens.visits_management.tabs.history
import android.view.View
import androidx.appcompat.widget.AppCompatImageView
import androidx.appcompat.widget.AppCompatTextView
import com.hypertrack.android.models.local.Drive
import com.hypertrack.android.models.local.Stop
import com.hypertrack... | 1 | Kotlin | 17 | 31 | c5dd23621aed11ff188cf98ac037b67f435e9f5b | 5,077 | visits-android | MIT License |
ui/src/main/java/com/redvelvet/ui/screen/search/SearchScreen.kt | RedVelvet-Team | 670,763,637 | false | null | package com.redvelvet.ui.screen.search
import android.annotation.SuppressLint
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Material... | 5 | Kotlin | 0 | 1 | 2c541e51c7b0dd5697032da65dbef58ce4c3ea87 | 1,382 | IMovie | Apache License 2.0 |
gi/src/commonMain/kotlin/org/anime_game_servers/multi_proto/gi/data/ability/ServerUpdateGlobalValueNotify.kt | Anime-Game-Servers | 642,871,918 | false | {"Kotlin": 535420} | package org.anime_game_servers.multi_proto.gi.data.ability
import org.anime_game_servers.core.base.Version.GI_1_1_0
import org.anime_game_servers.core.base.Version.GI_1_5_0
import org.anime_game_servers.core.base.annotations.AddedIn
import org.anime_game_servers.core.base.annotations.proto.CommandType.*
import org.ani... | 0 | Kotlin | 3 | 6 | 9fc2c2ea7e3c2561ffaa66e7f58012ae1dcc4256 | 611 | anime-game-multi-proto | MIT License |
app/src/main/java/com/cogni/demo/di/module/ApplicationModule.kt | santhana2022 | 456,351,230 | false | {"Kotlin": 38937} | package com.cogni.demo.di.module
import android.content.Context
import com.cogni.demo.CognizantDemoApplication
import com.google.gson.Gson
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.hilt.components.SingletonComponent
i... | 0 | Kotlin | 0 | 0 | c8a17ec30019bfeaa3e3d06c28cde580e3ab9f9d | 814 | CognizantDemo | Apache License 2.0 |
wisefysample/src/androidTest/java/com/isupatches/wisefysample/internal/espresso/ViewInteractions.kt | project-kotinos | 277,452,347 | false | {"Gradle": 16, "Markdown": 23, "Java Properties": 1, "Shell": 1, "Ignore List": 3, "Batchfile": 1, "YAML": 3, "INI": 3, "Proguard": 3, "Kotlin": 190, "XML": 37, "Java": 1, "CSS": 1, "HTML": 195, "CODEOWNERS": 1} | package com.isupatches.wisefysample.internal.espresso
import androidx.test.espresso.ViewInteraction
import androidx.test.espresso.action.ViewActions.click
import androidx.test.espresso.action.ViewActions.replaceText
import androidx.test.espresso.action.ViewActions.scrollTo
import androidx.test.espresso.assertion.ViewA... | 1 | null | 1 | 1 | dc056a2a725072d1c58d1803b5b12edf796f93ad | 1,797 | WiseFy | Apache License 2.0 |
lib/src/commonMain/kotlin/ColorScheme.kt | Kotrols | 526,911,949 | false | {"Kotlin": 141885} | import androidx.compose.runtime.*
import androidx.compose.ui.graphics.Color
fun lightColorScheme(
textPrimary: Color = Color(0xE4000000),
textSecondary: Color = Color(0x9B000000),
textTertiary: Color = Color(0x72000000),
textDisabled: Color = Color(0x5C000000),
textAccentPrimary: Color = Color(0xFF... | 0 | Kotlin | 0 | 9 | 96274ce845870e408695c422b6157a19a9311e44 | 28,805 | Fluent | Apache License 2.0 |
src/test/kotlin/ru/kontur/kinfra/io/streams/OutputByteStreamTest.kt | kinfra | 758,909,050 | false | {"Kotlin": 26020} | package ru.kontur.kinfra.io.streams
import kotlinx.coroutines.runBlocking
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
import ru.kontur.kinfra.io.OutputByteStream
import ru.kontur.kinfra.io.test.byteBufferOfHex
import java.nio.ByteBuffer
class OutputByteStreamTest {
@Tes... | 0 | Kotlin | 0 | 0 | f7c72e276f962c9c1366281eee7f227715aca74f | 950 | kinfra-io | MIT License |
src/main/kotlin/no/nav/arbeidsgiver/sykefravarsstatistikk/api/applikasjon/aggregertOgKvartalsvisSykefraværsstatistikk/UtilstrekkeligData.kt | navikt | 201,881,144 | false | {"Kotlin": 636016, "Shell": 1600, "Dockerfile": 213} | package no.nav.arbeidsgiver.sykefravarsstatistikk.api.applikasjon.aggregertOgKvartalsvisSykefraværsstatistikk
class UtilstrekkeligData(message: String? = null) : Statistikkfeil(message)
| 2 | Kotlin | 1 | 0 | aa46cacfc5d2e162f4aefea43ac14a116cd682fe | 187 | sykefravarsstatistikk-api | MIT License |
test/test-junit5/src/test/kotlin/ru/tinkoff/kora/test/extension/junit5/initializemodek/FieldPerMethodTests.kt | Squiry | 772,475,645 | true | {"Java Properties": 1, "Gradle": 98, "Shell": 1, "EditorConfig": 1, "Markdown": 3, "Batchfile": 1, "Text": 2, "Ignore List": 1, "Java": 1446, "Kotlin": 467, "XML": 8, "JSON": 17, "INI": 10, "YAML": 5, "SQL": 3, "OASv3-yaml": 11, "HTML": 2, "OASv2-yaml": 1, "Mustache": 32, "Protocol Buffer": 3} | package ru.tinkoff.kora.test.extension.junit5.initializemodek
import org.junit.jupiter.api.*
import org.junit.jupiter.api.Assertions.*
import ru.tinkoff.kora.test.extension.junit5.KoraAppTest
import ru.tinkoff.kora.test.extension.junit5.TestComponent
import ru.tinkoff.kora.test.extension.junit5.testdata.TestApplicatio... | 0 | null | 0 | 0 | c26f794e60e903a358b0c1ffac9a865507415ff6 | 1,385 | kora | Apache License 2.0 |
clients/kotlin-spring/generated/src/main/kotlin/org/openapitools/model/ProductGroupSummaryStatus.kt | oapicf | 489,369,143 | false | {"Markdown": 13009, "YAML": 64, "Text": 6, "Ignore List": 43, "JSON": 688, "Makefile": 2, "JavaScript": 2261, "F#": 1305, "XML": 1120, "Shell": 44, "Batchfile": 10, "Scala": 4677, "INI": 23, "Dockerfile": 14, "Maven POM": 22, "Java": 13384, "Emacs Lisp": 1, "Haskell": 75, "Swift": 551, "Ruby": 1149, "Cabal Config": 2, ... | package org.openapitools.model
import java.util.Objects
import com.fasterxml.jackson.annotation.JsonValue
import com.fasterxml.jackson.annotation.JsonProperty
import javax.validation.constraints.DecimalMax
import javax.validation.constraints.DecimalMin
import javax.validation.constraints.Email
import javax.validation.... | 0 | Java | 0 | 2 | dcd328f1e62119774fd8ddbb6e4bad6d7878e898 | 938 | pinterest-sdk | MIT License |
src/main/java/net/ccbluex/liquidbounce/features/command/Command.kt | 2946257770 | 693,652,489 | false | {"Java": 1812636, "Kotlin": 1801560, "GLSL": 13689, "JavaScript": 9199, "HTML": 850} | /*
* LiquidBounce+ Hacked Client
* A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge.
* https://github.com/WYSI-Foundation/LiquidBouncePlus/
*/
package net.ccbluex.liquidbounce.features.command
import net.ccbluex.liquidbounce.LiquidBounce
import net.ccbluex.liquidbounce.uti... | 1 | null | 1 | 1 | 4e111df6cd3ca03da3b285eb8572ef79a9ff8695 | 2,464 | VulgarSense | Apache License 2.0 |
concurrency-checker-tests/src/test/java/lincheck/Counter.kt | mtakeshi1 | 443,671,681 | false | {"Java": 565077, "Kotlin": 585} | package lincheck
import org.jetbrains.kotlinx.lincheck.annotations.*
import org.jetbrains.kotlinx.lincheck.*
import org.jetbrains.kotlinx.lincheck.strategy.stress.*
import org.junit.*
class Counter {
@Volatile
private var value = 0
fun inc(): Int = ++value
fun get() = value
}
class BasicCounterT... | 1 | null | 1 | 1 | 088df2946edf59f4ce637626b445f656d0ede47f | 585 | concurrencytests | Apache License 2.0 |
src/main/kotlin/fr/clevertechware/introduction/spring/cloud/stream/http/MessageController.kt | clevertechware | 732,775,114 | false | {"Kotlin": 7979} | package fr.clevertechware.introduction.spring.cloud.stream.http
import fr.clevertechware.introduction.spring.cloud.stream.messaging.MessageProducer
import fr.clevertechware.messages.avro.Message
import jakarta.validation.Valid
import org.slf4j.LoggerFactory.getLogger
import org.springframework.web.bind.annotation.Path... | 0 | Kotlin | 0 | 0 | 5a8a31a672523bbd88f8a1f09cc52d751c4842e2 | 1,433 | introduction-spring-cloud-stream | MIT License |
app/src/main/java/com/aliasadi/clean/presentation/di/feed/FeedSubComponent.kt | AliAsadi | 264,456,753 | false | null | package com.aliasadi.clean.presentation.di.feed
import com.aliasadi.clean.presentation.feed.FeedActivity
import dagger.Subcomponent
/**
* Created by Ali Asadi on 15/05/2020
**/
@Subcomponent(modules = [FeedModule::class])
interface FeedSubComponent {
fun inject(feedActivity: FeedActivity)
} | 0 | Kotlin | 9 | 39 | f3b9dbb30e443ec65a2ec4c3d77f34b01559e284 | 299 | Android-Clean-Architecture | Apache License 2.0 |
app/src/main/java/com/patronusstudio/sisecevirmece2/data/utils/Network.kt | Patronus-Studio | 531,631,142 | false | {"Kotlin": 355692} | package com.patronusstudio.sisecevirmece2.data.utils
import android.content.Context
import android.net.ConnectivityManager
import android.net.NetworkCapabilities
import android.os.Build
fun hasInternet(context: Context): Boolean? {
val connectivityManager =
context.getSystemService(Context.CONNECTIVITY_S... | 1 | Kotlin | 0 | 0 | c4e491bfbffe60f02d87dbe7009ef5ec3d39ee55 | 1,259 | SiseCevirmece-Compose | Apache License 2.0 |
solar/src/main/java/com/chiksmedina/solar/outline/electronicdevices/LightbulbMinimalistic.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.outline.electronicdevices
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 4,570 | SolarIconSetAndroid | MIT License |
app/src/main/java/com/techbeloved/hymnbook/hymnlisting/HymnItemModel.kt | techbeloved | 133,724,406 | false | {"Gradle": 4, "Java Properties": 1, "Shell": 4, "Ignore List": 3, "Batchfile": 1, "Text": 11, "Markdown": 4, "Gradle Kotlin DSL": 2, "Kotlin": 231, "TOML": 1, "INI": 1, "YAML": 1, "Proguard": 2, "JSON": 9, "XML": 134, "Java": 6, "HTML": 1, "Ruby": 2, "OpenStep Property List": 9, "Swift": 2, "Objective-C": 7, "C": 30} | package com.techbeloved.hymnbook.hymnlisting
import android.os.Parcelable
import android.view.View
import androidx.recyclerview.widget.DiffUtil
import kotlinx.android.parcel.Parcelize
interface HymnItemModel {
val id: Int
val title: String
val subtitle: String?
val description: String?
object Hy... | 4 | Kotlin | 8 | 8 | 58135843e7d5459b030f6538b91345980f79f9ee | 1,212 | hymnbook | MIT License |
model_login/src/main/java/com/mtj/login/app/LoginApp.kt | mtj956052456 | 259,497,657 | false | {"Java": 104900, "Kotlin": 64815} | package com.mtj.login.app
import com.mtj.common.base.BaseApp
/**
* @author 孟腾蛟
* @Description
* @date 2020/5/8
*/
class LoginApp : BaseApp() {
override fun onCreate() {
super.onCreate()
}
} | 1 | null | 1 | 1 | abc3a7f1a673ffc64ba06442db6d3661966eaf67 | 214 | caiyun | Apache License 2.0 |
business/src/main/java/cn/neday/android/business/Constants.kt | nEdAy | 491,729,187 | false | {"Kotlin": 59724, "Java": 3486} | package cn.neday.android.business
const val PAGE_SIZE = 20
const val PREFETCH_DISTANCE = 5
const val INITIAL_PAGE_INDEX = 0
const val TIME_OUT_SECONDS = 10L
const val BASE_URL = "https://www.wanandroid.com/"
const val MMKV_CRYPT_KEY = "qpwt5oat5sm7v2lqxr"
| 0 | Kotlin | 0 | 2 | 99ccc39b6c9439f1cfc9ed223a25d3a26e651942 | 259 | android-application-with-kotlin-template | MIT License |
app/src/main/java/com/example/make_a_wishlist/WishAdapter.kt | Sentry2703 | 609,975,868 | false | null | package com.example.make_a_wishlist
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
class WishAdapter (private val items: List<Wish>): RecyclerView.Adapter<WishAdapter.ViewHolder>(){
class V... | 1 | Kotlin | 0 | 0 | 760fb10fdd3a7362104634ef23087ba60e5fe841 | 1,246 | AND_102_2 | Apache License 2.0 |
simplecloud-api/src/main/kotlin/eu/thesimplecloud/api/javaversions/JavaVersions.kt | InkaruNET | 412,166,977 | true | {"Kotlin": 1778303, "Java": 25148, "Shell": 178, "Batchfile": 156} | /*
* MIT License
*
* Copyright (C) 2020 The SimpleCloud authors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
* the rights to use, c... | 0 | Kotlin | 1 | 2 | 0b8af503bdccf2fbc8b96509db2269f0e862cee1 | 1,500 | SimpleCloud | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.