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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/com/github/nightdavisao/akirabot/commands/declaration/SnowflakeTimestampCommand.kt | Nightdavisao | 362,589,076 | false | null | package com.github.nightdavisao.akirabot.commands.declaration
import com.github.nightdavisao.akirabot.commands.SnowflakeTimestampExecutor
import net.perfectdreams.discordinteraktions.declarations.slash.SlashCommandDeclaration
import net.perfectdreams.discordinteraktions.declarations.slash.SlashCommandDeclarationBuilde... | 0 | Kotlin | 0 | 1 | ec6c2447d23a8c39a80564ef1864724cf5ddfd23 | 681 | akira-bot | Do What The F*ck You Want To Public License |
buildSrc/src/main/kotlin/Dependencies.kt | jerryOkafor | 332,439,368 | false | {"Kotlin": 93159} | /**
* Author: Jerry
* Project: FairmoneyTest
*/
/**Default and Adroid Config*/
object Config {
object Version {
const val minSdkVersion = 21
const val compileSdkVersion = 30
const val targetSdkVersion = 30
const val versionName = "1.0"
const val versionCode = 1
}
... | 0 | Kotlin | 0 | 1 | 5415b992db6d8c2519fddc46006a4c66097a8a75 | 7,621 | fairmoney_test | MIT License |
app/src/main/kotlin/brandenc/com/chatmatch/Activities/MainActivity.kt | branden-chaisorn | 110,860,839 | false | null | package brandenc.com.chatmatch.Activities
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import brandenc.com.chatmatch.JsonCreator
import brandenc.com.chatmatch.MainApplication
import brandenc.com.chatmatch.R
import kotlinx.android.synthetic.main.activity_main.*
impor... | 0 | Kotlin | 0 | 1 | f2ac8867595371d4c41cb05ef8d5299b362f33f5 | 1,476 | ChatMatch | Apache License 2.0 |
multisrc/overrides/wpmangastream/geasshentai/src/GeassHentai.kt | inorichi | 79,658,844 | false | null | package eu.kanade.tachiyomi.extension.pt.geasshentai
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.multisrc.wpmangastream.WPMangaStream
import okhttp3.OkHttpClient
import java.text.SimpleDateFormat
import java.util.Locale
import java.util.concurrent.TimeUnit
class GeassHenta... | 578 | Kotlin | 656 | 1,617 | 89a9433851e5fe7a5d9f52c38a42f8fe5f6aa63b | 772 | tachiyomi-extensions | Apache License 2.0 |
app/src/main/kotlin/no/nav/tiltakspenger/vedtak/context/ApplicationContext.kt | navikt | 487,246,438 | false | {"Kotlin": 1042302, "Shell": 1318, "Dockerfile": 495, "HTML": 45} | package no.nav.tiltakspenger.vedtak.context
import no.nav.tiltakspenger.libs.persistering.domene.SessionFactory
import no.nav.tiltakspenger.vedtak.Configuration
import no.nav.tiltakspenger.vedtak.auth.EntraIdSystemtokenClient
import no.nav.tiltakspenger.vedtak.auth.EntraIdSystemtokenHttpClient
import no.nav.tiltakspen... | 0 | Kotlin | 0 | 1 | c23890a313eac464b2eae8d6e6f143b47a4b693e | 3,984 | tiltakspenger-vedtak | MIT License |
buildSrc/src/main/kotlin/configs/KotlinConfig.kt | GBR-kotlin | 290,815,896 | true | {"Kotlin": 160535, "Shell": 749} | package configs
object KotlinConfig {
const val version = "1.3.72"
const val targetJVM = "1.8"
} | 0 | null | 0 | 0 | 3fb4a94e7c640dc57f961d488328a0be04645dfd | 104 | norris | MIT License |
compose-pdf-viewer/app/src/main/java/dev/seabat/android/composepdfviewer/utils/GetFileInfo.kt | seabat | 685,948,686 | false | {"Kotlin": 119827} | package dev.seabat.android.composepdfviewer.utils
import android.content.Context
import android.net.Uri
import androidx.documentfile.provider.DocumentFile
fun getFileInfoFromUri(context: Context, uri: Uri): Pair<String?, Long>? {
val documentFile = DocumentFile.fromSingleUri(context, uri)
return documentFile?... | 0 | Kotlin | 0 | 0 | ee37b6071d31a8cc027f32f1a58d2f19c3bd00ae | 448 | pdf-viewer | Apache License 2.0 |
app/src/main/java/com/ryz/movie/core/data/source/remote/StatusResponse.kt | MhmmdRFadhil | 467,525,024 | false | null | package com.ryz.movie.core.data.source.remote
enum class StatusResponse {
SUCCESS,
EMPTY,
ERROR
} | 0 | Kotlin | 0 | 0 | b207f03a05ca5d7f5d43d39e47458005f31eeb14 | 110 | Movie-App | MIT License |
app/src/main/java/com/projet/miniprojet/androidVox/fragments/LoginFragmentChat.kt | SkanderThabet | 425,545,597 | false | null | package com.projet.miniprojet.androidVox.fragments
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.navigation.fragment.findNavController
import com.android.volley.*
impor... | 0 | null | 1 | 1 | 61cfe8352c27601d74665ac34f1b07b2fe84abf4 | 2,460 | LiveStream_MINI_PROJET | MIT License |
extension/src/main/java/vip/frendy/extension/monitor/interfaces/IApi.kt | frendyxzc | 106,224,204 | false | null | package vip.frendy.extension.monitor.interfaces
/**
* Created by frendy on 2017/10/27.
*/
interface IApi {
fun onStart(tag: String)
fun onEnd(tag: String, success: Boolean, err: String)
} | 1 | null | 1 | 1 | a6ef1a6cc58166f18318f01aa7634c52a1343bb4 | 199 | KExtension | MIT License |
src/main/kotlin/com/fpwag/admin/infrastructure/RedisLock.kt | FlowersPlants | 286,647,008 | false | null | package com.fpwag.admin.infrastructure
import com.fpwag.boot.autoconfigure.web.SpringContextHolder
import com.fpwag.boot.core.utils.IdUtils
import org.springframework.core.io.ClassPathResource
import org.springframework.data.redis.core.RedisTemplate
import org.springframework.data.redis.core.script.DefaultRedisScript
... | 0 | Kotlin | 0 | 3 | dae83eb311a3d23da5b1d65d3196d7ffdd5229ce | 2,298 | fp-admin | Apache License 2.0 |
kotlin/to-do/src/test/kotlin/com/tk/todo/controllers/UserControllerTest.kt | Thiago-Kuhl | 378,936,465 | false | {"JavaScript": 56509, "Kotlin": 56230, "HTML": 342} | package com.tk.todo.controllers
import com.fasterxml.jackson.databind.ObjectMapper
import org.junit.jupiter.api.DisplayName
import org.junit.jupiter.api.Nested
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.TestInstance
import org.junit.jupiter.api.TestInstance.Lifecycle
import org.springframework.bean... | 0 | JavaScript | 0 | 0 | 0c6d9f0a99c97f58f12e7609e44a4bd351751798 | 2,062 | my-lab | MIT License |
src/main/kotlin/eu/europa/ec/eudi/sdjwt/DisclosureDigest.kt | eu-digital-identity-wallet | 656,042,600 | false | null | /*
* Copyright (c) 2023 European Commission
*
* 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 o... | 3 | null | 5 | 9 | 29fb44e9071c37411267a4a26b5ff754a2664823 | 2,513 | eudi-lib-jvm-sdjwt-kt | Apache License 2.0 |
platform/platform-impl/src/com/intellij/openapi/progress/impl/modalTaskOwner.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.openapi.progress.impl
import com.intellij.openapi.progress.ModalTaskOwner
import com.intellij.openapi.progress.util.ProgressWindow
import com.intellij.openapi.project.Project
im... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 864 | intellij-community | Apache License 2.0 |
app/src/main/java/net/mikelindner/slovo/app/AppNavigation.kt | xmil9 | 753,872,265 | false | {"Kotlin": 58302, "Batchfile": 96} | package net.mikelindner.slovo.app
import androidx.compose.runtime.Composable
import androidx.navigation.NavType
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navigation.compose.rememberNavController
import androidx.navigation.navArgument
import net.mikelindner... | 0 | Kotlin | 0 | 0 | c38674c87873ac76e706abb93515731fc9fb10b7 | 3,638 | slovo | MIT License |
app/src/main/java/com/wavesplatform/wallet/v2/ui/home/dex/trade/orderbook/TradeOrderBookPresenter.kt | fincrypchain-io | 177,452,642 | true | {"Kotlin": 1046108, "Java": 327941, "HTML": 25816} | package com.wavesplatform.wallet.v2.ui.home.dex.trade.orderbook
import com.arellomobile.mvp.InjectViewState
import com.chad.library.adapter.base.entity.MultiItemEntity
import com.wavesplatform.wallet.v1.util.MoneyUtil
import com.wavesplatform.wallet.v2.data.model.local.LastPriceItem
import com.wavesplatform.wallet.v2.... | 1 | Kotlin | 0 | 0 | 44fe858dd14b74455174c52520f2a7fd4d5114a9 | 5,379 | WavesWallet-android | MIT License |
app/src/main/java/id/nerdstudio/footballapps/teams/PlayerDetailActivity.kt | fadeltd | 152,183,631 | false | null | package id.nerdstudio.footballapps.teams
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.Gravity
import android.view.MenuItem
import android.view.View
import android.widget.ImageView
import android.widget.LinearLayout
import com.squareup.picasso.Picasso
import id.nerdstudio... | 0 | Kotlin | 1 | 0 | c513a823ba14cc8a35ca12c68fa45a96cc799fc1 | 4,195 | Dicoding-Football-Apps | MIT License |
kotlin-typescript/src/main/generated/typescript/PrimaryExpression.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
package typescript
sealed external interface PrimaryExpression : MemberExpression {
var _primaryExpressionBrand: Any
}
| 38 | null | 162 | 983 | 7ef1028ba3e0982dc93edcdfa6ee1edb334ddf35 | 169 | kotlin-wrappers | Apache License 2.0 |
modelql-core/src/commonMain/kotlin/org/modelix/modelql/core/QueryCallStep.kt | modelix | 533,211,353 | false | {"Kotlin": 2175823, "JetBrains MPS": 274458, "TypeScript": 47718, "Java": 25036, "Gherkin": 7693, "JavaScript": 5004, "Mustache": 2915, "CSS": 2812, "Shell": 2541, "Dockerfile": 378, "Procfile": 76} | /*
* 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 writing, software
* distributed u... | 52 | Kotlin | 10 | 6 | d0855f41775775f7fb4478729a2f481d1dfe40b7 | 4,329 | modelix.core | Apache License 2.0 |
sample/src/main/java/org/aerogear/graphqlandroid/SampleWorker.kt | secondsun | 198,443,009 | true | {"Kotlin": 24739, "Java": 1121} | package org.aerogear.graphqlandroid
import android.content.Context
import android.util.Log
import androidx.work.WorkerParameters
import com.apollographql.apollo.ApolloCall
import com.apollographql.apollo.api.Operation
import com.apollographql.apollo.api.Response
import com.apollographql.apollo.exception.ApolloExceptio... | 0 | Kotlin | 0 | 0 | 7b51c20347446f06384a5729ebb9a1ebcd71c121 | 3,142 | offix-android | Apache License 2.0 |
domain/src/test/java/org/bogucki/calllog/domain/usecases/GetPortNumberUseCaseTest.kt | swimbeyond | 662,983,479 | false | {"Kotlin": 43039, "HTML": 9619} | package org.bogucki.calllog.domain.usecases
import io.mockk.every
import io.mockk.mockk
import org.bogucki.calllog.domain.repositories.NetworkRepository
import org.junit.Assert.assertEquals
import org.junit.Test
class GetPortNumberUseCaseTest {
private val networkRepositoryMock: NetworkRepository = mockk()
... | 0 | Kotlin | 0 | 0 | 7c1903979fbdf7490d67fc8e73505df555d36c31 | 599 | call_log | Apache License 2.0 |
test/react-native/features/fixtures/reactnative/scenarios/ResumeSessionScenario.kt | bugsnag | 8,035,735 | false | {"TypeScript": 846602, "JavaScript": 426371, "Gherkin": 279527, "C": 167099, "Java": 100311, "Objective-C": 78563, "HTML": 68880, "Ruby": 51947, "Kotlin": 37467, "Objective-C++": 26003, "Shell": 23070, "C++": 20909, "Starlark": 4816, "Makefile": 4544, "Dockerfile": 3114, "Swift": 2216, "Python": 1188, "CSS": 80} | package com.reactnative.scenarios
import android.content.Context
import com.bugsnag.android.Bugsnag
import com.facebook.react.bridge.Promise
class ResumeSessionScenario(context: Context): Scenario(context) {
override fun run(promise: Promise) {
Bugsnag.resumeSession()
}
}
| 83 | TypeScript | 251 | 854 | 7822d49da0f680547cf47ff9333324f50edc7224 | 292 | bugsnag-js | MIT License |
src/main/kotlin/org/treeWare/model/core/ModelElementType.kt | tree-ware | 214,941,384 | false | null | package org.treeWare.model.core
enum class ModelElementType {
MAIN,
ENTITY,
SINGLE_FIELD,
LIST_FIELD,
SET_FIELD,
PRIMITIVE,
ALIAS,
PASSWORD1WAY,
PASSWORD2WAY,
ENUMERATION,
ASSOCIATION
} | 32 | Kotlin | 0 | 1 | b1cc6928239522249c7c47e72864bb3f3416d63f | 230 | tree-ware-kotlin-core | Apache License 2.0 |
Week9/app/src/main/java/com/em4n0101/mytvshows/viewmodel/usercastmember/UserFavoriteCastMemberViewModelFactory.kt | em4n0101 | 268,436,903 | false | null | package com.em4n0101.mytvshows.viewmodel.usercastmember
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.em4n0101.mytvshows.model.repositories.ShowsRepository
class UserFavoriteCastMemberViewModelFactory(private val repository: ShowsRepository):
ViewModelProvider.Factory ... | 0 | Kotlin | 0 | 1 | 4f1ebb9d68091ef741ac69f2f46e16f512401de2 | 491 | AndroidBootcampSummer2020 | Apache License 2.0 |
domain/src/main/java/dev/marcocattaneo/domain/interactors/UseCase.kt | mcatta | 219,364,753 | false | null | package dev.marcocattaneo.domain.interactors
abstract class UseCase<I, O> {
abstract suspend fun execute(input: I): O
} | 0 | Kotlin | 0 | 0 | 98d1367d777fd338ef2fb0ca4958ce5f4aa5f420 | 126 | BeerBase | Apache License 2.0 |
app/src/main/java/ie/noel/dunsceal/persistence/dao/InvestigationDao.kt | noelmcloughlin | 219,187,323 | false | {"Gradle": 4, "Java Properties": 2, "Markdown": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Proguard": 1, "XML": 94, "Kotlin": 65, "Java": 3} | package ie.noel.dunsceal.persistence.dao
import androidx.lifecycle.LiveData
import androidx.room.*
import ie.noel.dunsceal.models.entity.InvestigationEntity
@Dao
interface InvestigationDao {
@Query("SELECT * FROM investigations where dunId = :dunId")
fun loadAll(dunId: Int): LiveData<List<InvestigationEntity?>?>?... | 0 | Kotlin | 0 | 1 | 8e94bd299b25a4bd659586c293908a7feed58337 | 1,218 | DunSceal | Apache License 2.0 |
lib/src/main/kotlin/com/tencent/testsolar/testtool/sdk/Reporter.kt | OpenTestSolar | 783,572,340 | false | {"Kotlin": 10163} | package com.tencent.testsolar.testtool.sdk
import com.tencent.testsolar.testtool.sdk.model.LoadResult
import com.tencent.testsolar.testtool.sdk.model.TestResult
import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.Json
import org.apache.commons.codec.digest.DigestUtils
import java.io.File
// ... | 0 | Kotlin | 0 | 0 | 3452da13ddafd934c3fc2d84f0a47537ea7fc0fc | 1,537 | testtool-sdk-java | Apache License 2.0 |
fashion-tryon-compose/src/main/kotlin/com/aiuta/fashionsdk/tryon/compose/ui/internal/screens/result/connection/GenerationResultNestedScroll.kt | aiuta-com | 759,918,511 | false | {"Kotlin": 467654, "Shell": 562} | package com.aiuta.fashionsdk.tryon.compose.ui.internal.screens.result.connection
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.gestures.AnchoredDraggableState
import androidx.compose.foundation.pager.PagerState
import androidx.compose.runtime.Composable
import androidx... | 4 | Kotlin | 0 | 2 | e58fe0ad6eb5d4915612e3a3b3286462e587725f | 2,768 | android-sdk | Apache License 2.0 |
core/src/main/java/com/binbo/glvideo/core/graph/simple/SimpleMediaObject.kt | bigbugbb | 590,505,224 | false | {"C": 7685938, "C++": 4393829, "Kotlin": 644772, "Java": 564403, "GLSL": 23970, "Objective-C": 7449, "CMake": 3326} | package com.binbo.glvideo.core.graph.simple
import com.binbo.glvideo.core.graph.MediaData
import com.binbo.glvideo.core.graph.MediaObject
import com.binbo.glvideo.core.graph.base.BaseMediaQueue
/**
* @author bigbug
* @project lobby
* @date 2022/7/25
* @time 14:02
*/
open class SimpleMediaObject : MediaObject() {... | 0 | C | 0 | 10 | e7384ea4f23ab8cc89d5701dcedaf8cdd6ecaf17 | 441 | glvideo | MIT License |
09_MyAnimation/Complete/MyAnimation/app/src/main/java/com/example/myanimation/Tutorial.kt | emboss369 | 764,072,610 | false | {"Kotlin": 271085} | package com.example.myanimation
import androidx.annotation.DrawableRes
import androidx.compose.animation.core.animateDpAsState
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Colu... | 0 | Kotlin | 0 | 0 | e0d27b0033ad33ea1b83103889300bc3c017ef9c | 3,118 | android-compose-book | The Unlicense |
src/main/day03/Part1.kt | ollehagner | 572,141,655 | false | null | package day03
import readInput
fun main() {
val testinput = readInput("day03/testinput.txt")
val input = readInput("day03/input.txt")
val sumOfPriorities = input
.map { Rucksack(it).itemsInBothCompartments() }
.map { itemsInBothCompartments ->
itemsInBothCompartments.sumOf { R... | 0 | Kotlin | 0 | 0 | b935fcfb465152f08307399eb85ee8a8a335f1a3 | 436 | aoc2022 | Apache License 2.0 |
carbon/src/main/kotlin/carbon/compose/dropdown/base/DropdownSize.kt | gabrieldrn | 707,513,802 | false | {"Kotlin": 528462} | package carbon.compose.dropdown.base
import androidx.compose.runtime.Stable
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import carbon.compose.foundation.SMALL_TOUCH_TARGET_SIZE_MESSAGE
internal const val DROPDOWN_HEIGHT_SMALL_DP = 32
internal const val DROPDOWN_HEIGHT_MEDIUM_DP = 40
internal... | 0 | Kotlin | 0 | 0 | 2e8a7167f1cf055b6d0c6fe349f3bea423c1c226 | 1,253 | carbon-compose | Apache License 2.0 |
architecture/src/main/java/io/quee/mvp/architecture/comments/presenter/CommentsPresenter.kt | Quee-io | 244,475,168 | false | null | package io.quee.mvp.architecture.comments.presenter
import io.quee.mvp.architecture.comments.contract.CommentsContract
/**
* Created by <NAME> on 3/3/20.
* Licensed for Quee.io
*/
class CommentsPresenter : CommentsContract.CommentsPresenter() {
override fun comments() {
manager().add(model?.comments!!... | 0 | Kotlin | 0 | 0 | 152b16e9044e7629625421c9bfc01aeed5ac661a | 434 | android-mvp-template | Apache License 2.0 |
browse/src/main/kotlin/com/alfresco/content/browse/tasks/attachments/AttachedFilesFragment.kt | Alfresco | 201,430,708 | false | null | package com.alfresco.content.browse.processes.attachments
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.recyclerview.widget.RecyclerView
import com... | 4 | null | 7 | 5 | f9609e6a1ba9386d434637806715bf09776a0074 | 5,315 | alfresco-mobile-workspace-android | Apache License 2.0 |
app/src/main/kotlin/app/tinder/matches/MatchesFragment.kt | anirudh8860 | 144,851,679 | true | {"Kotlin": 257579, "Shell": 5304, "IDL": 1080} | package app.tinder.matches
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.FrameLayout
internal class MatchesFragment : Fragment() {
o... | 0 | Kotlin | 0 | 1 | ba8ead38f5bcefc857a6dc9cc344cd030ca5b22d | 676 | dinger | MIT License |
app/src/main/kotlin/app/tinder/matches/MatchesFragment.kt | anirudh8860 | 144,851,679 | true | {"Kotlin": 257579, "Shell": 5304, "IDL": 1080} | package app.tinder.matches
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.FrameLayout
internal class MatchesFragment : Fragment() {
o... | 0 | Kotlin | 0 | 1 | ba8ead38f5bcefc857a6dc9cc344cd030ca5b22d | 676 | dinger | MIT License |
recycler-extension/sample/src/main/java/ru/surfstudio/android/recycler/extension/sample/adapter/PaginationStickyEasyAdapter.kt | surfstudio | 139,034,657 | false | null | package ru.surfstudio.android.recycler.extension.sample.adapter
import androidx.recyclerview.widget.RecyclerView
import ru.surfstudio.android.easyadapter.pagination.EasyPaginationAdapter
import ru.surfstudio.android.recycler.extension.sticky.layoutmanager.StickyHeaderHandler
import ru.surfstudio.android.recycler.exten... | 5 | null | 30 | 249 | 6d73ebcaac4b4bd7186e84964cac2396a55ce2cc | 1,118 | SurfAndroidStandard | Apache License 2.0 |
app/src/main/java/com/shivamkumarjha/supaflix/ui/videoplayer/util/Helpers.kt | ShivamKumarJha | 353,360,246 | false | null | package com.shivamkumarjha.supaflix.ui.videoplayer.util
import java.util.*
import java.util.concurrent.TimeUnit
fun getDurationString(durationMs: Long, negativePrefix: Boolean): String {
val hours = TimeUnit.MILLISECONDS.toHours(durationMs)
val minutes = TimeUnit.MILLISECONDS.toMinutes(durationMs)
val sec... | 0 | Kotlin | 1 | 9 | f027c8ae631b032b621ef2f33c8370b8919b7043 | 872 | supaflix | MIT License |
src/main/kotlin/com/zupacademy/fabiano/pix/exceptions/handlers/ConstraintViolationExceptionHandler.kt | birojow | 394,397,611 | true | {"Kotlin": 84998, "Smarty": 2082, "Dockerfile": 166} | package com.zupacademy.fabiano.pix.exceptions.handlers
import com.zupacademy.fabiano.pix.exceptions.handlers.ExceptionHandler.StatusWithDetails
import io.grpc.Status
import javax.inject.Singleton
import javax.validation.ConstraintViolationException
@Singleton
class ConstraintViolationExceptionHandler : ExceptionHandl... | 0 | Kotlin | 0 | 0 | 396b256f411ddab9e81898f04e44340b72b888ff | 713 | orange-talents-06-template-pix-keymanager-grpc | Apache License 2.0 |
compiler/testData/codegen/bytecodeText/companion/privateCompanionObjectAccessors_after.kt | Ndex471 | 236,524,761 | true | {"Kotlin": 43583583, "Java": 7648290, "JavaScript": 197545, "HTML": 75661, "Lex": 23805, "TypeScript": 21613, "Groovy": 11205, "CSS": 9144, "Shell": 7220, "Batchfile": 5362, "Swift": 2272, "Ruby": 1300, "Objective-C": 404, "Scala": 80} | // !LANGUAGE: +ProperVisibilityForCompanionObjectInstanceField
// IGNORE_BACKEND: JVM_IR
// ^ TODO implement ProperVisibilityForCompanionObjectInstanceField feature support in JMV_IR
class Host {
private companion object {
fun foo() = 1
}
fun test() = { foo() }
}
// 1 synthetic access\$ | 0 | null | 0 | 1 | f7626d6474bff5fceba8506c37480e8918bd11cf | 310 | kotlin | Apache License 2.0 |
platform/platform-impl/src/com/intellij/ide/plugins/PluginsMetaLoader.kt | slouca10 | 253,757,648 | false | null | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ide.plugins
import com.fasterxml.jackson.core.type.TypeReference
import com.fasterxml.jackson.databind.ObjectMapper
import com.intellij.ide.IdeBundle
import ... | 1 | null | 1 | 1 | b82766dc2e2fef77d88dbca59fe32d46360cc525 | 7,171 | intellij-community | Apache License 2.0 |
example/src/main/kotlin/com/github/michaelbull/result/example/model/domain/DomainMessage.kt | jvanderwee | 270,019,223 | true | {"Kotlin": 87533} | package com.github.michaelbull.result.example.model.domain
/**
* All possible things that can happen in the use-cases
*/
sealed class DomainMessage
/* validation errors */
object CustomerRequired : DomainMessage()
object CustomerIdMustBePositive : DomainMessage()
object FirstNameRequired : DomainMessage()
object ... | 0 | null | 0 | 0 | 32ccaeea16f94162b3adb57871da7a4a623b1d5c | 922 | kotlin-result | ISC License |
src/test/kotlin/uk/gov/justice/digital/hmpps/deliusapi/integration/JwtAuthHelper.kt | ministryofjustice | 334,932,480 | false | null | package uk.gov.justice.digital.hmpps.deliusapi.integration
import io.jsonwebtoken.Jwts
import io.jsonwebtoken.SignatureAlgorithm
import org.springframework.context.annotation.Bean
import org.springframework.security.oauth2.jwt.JwtClaimNames
import org.springframework.security.oauth2.jwt.JwtDecoder
import org.springfra... | 4 | null | 1 | 4 | 722d7944dbfc127fc769d42afdb10197ff4c5677 | 2,018 | hmpps-delius-api | MIT License |
uikit/src/main/java/com/sendbird/uikit/internal/interfaces/OnSubmitButtonClickListener.kt | sendbird | 350,188,329 | false | {"Java": 2363514, "Kotlin": 1209119} | package com.sendbird.uikit.internal.interfaces
import com.sendbird.android.message.BaseMessage
import com.sendbird.uikit.internal.model.Form
internal fun interface OnSubmitButtonClickListener {
fun onClicked(message: BaseMessage, form: Form)
}
| 1 | Java | 43 | 34 | 28c5f2f88014060dedf7a22003a3dba4da84cb42 | 250 | sendbird-uikit-android | MIT License |
matches/src/main/java/com/ricknout/rugbyranker/matches/vo/WorldRugbyMatch.kt | svyd | 195,092,948 | true | {"Kotlin": 227379} | package com.ricknout.rugbyranker.matches.vo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.ricknout.rugbyranker.common.vo.Sport
@Entity(tableName = "world_rugby_matches")
data class WorldRugbyMatch(
@PrimaryKey
val matchId: Long,
val description: String?,
val status: MatchStatu... | 0 | Kotlin | 0 | 0 | cf5f8c79fd54afbffdfa59d6b6d8bcb5cd38e7d2 | 1,138 | rugby-ranker | Apache License 2.0 |
app/src/main/java/cricket/in/cricket/data/remote/Status.kt | VivekNeel | 95,294,906 | false | null | package cricket.`in`.cricket.data.remote
/**
* Created by vivek on 24/06/17.
*/
enum class Status {
SUCCESS,
ERROR,
LOADING
} | 1 | Java | 2 | 28 | 20cc8d620c446f2ddb0cc7dd3292aa8f4fd95f75 | 141 | CricKotlin | MIT License |
src/main/kotlin/cc.unmi/sqlshell/commands.kt | yabqiu | 100,098,479 | false | null | package cc.unmi.sqlshell
import com.bethecoder.ascii_table.ASCIITable
import com.bethecoder.ascii_table.ASCIITableHeader
import getRecords
import getTableHeader
import java.sql.Connection
import java.sql.ResultSet
fun parseHandler(sql: String, conn: Connection): CommandHandler {
val match = sql.trim().toUpperCase... | 0 | Kotlin | 0 | 0 | 7b23fce1db52447a9cde2606ad88375ce4571056 | 1,923 | sqlshell | MIT License |
src/main/kotlin/io/pivotal/BlobberApplication.kt | mikfreedman | 90,070,334 | false | null | package io.pivotal
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
@SpringBootApplication
class BlobberApplication
fun main(args: Array<String>) {
SpringApplication.run(BlobberApplication::class.java, *args)
}
| 0 | Kotlin | 0 | 2 | 47cb998ed871f8606a6c6c98aa0ee5c7e5940bc7 | 287 | blobber | MIT License |
cinescout/auth/tmdb/domain/src/commonMain/kotlin/cinescout/auth/tmdb/domain/usecase/IsTmdbLinked.kt | 4face-studi0 | 280,630,732 | false | null | package cinescout.auth.tmdb.domain.usecase
import cinescout.auth.tmdb.domain.TmdbAuthRepository
import kotlinx.coroutines.flow.Flow
import org.koin.core.annotation.Factory
@Factory
class IsTmdbLinked(
private val tmdbAuthRepository: TmdbAuthRepository
) {
operator fun invoke(): Flow<Boolean> =
tmdbAu... | 19 | Kotlin | 2 | 3 | d64398507d60a20a445db1451bdd8be23d65c9aa | 346 | CineScout | Apache License 2.0 |
BazaarPay/src/main/java/ir/cafebazaar/bazaarpay/arg/BazaarPayActivityArgs.kt | cafebazaar | 489,705,723 | false | null | package ir.cafebazaar.bazaarpay.arg
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
internal data class BazaarPayActivityArgs(
val checkoutToken: String,
val phoneNumber: String? = null,
val isDarkMode: Boolean? = null,
val autoLoginPhoneNumber: String? = null,
val isAut... | 5 | Kotlin | 1 | 8 | 99ad2be78716bd24b4c025bfbe1b12303d0b72c3 | 366 | BazaarPay | Apache License 2.0 |
UserService/src/main/kotlin/com/phonetool/service/user/model/LookupRequest.kt | VividKnife | 291,526,784 | false | null | package com.phonetool.service.user.model
data class LookupRequest(val userName: String)
| 0 | Kotlin | 0 | 0 | 21ec19dc915d1660a0af731c946212eaaecf8c79 | 89 | PhoneTool | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsaccreditedprogrammesapi/listener/DomainEventsListener.kt | ministryofjustice | 615,402,552 | false | {"Kotlin": 547510, "Shell": 9504, "Dockerfile": 1415} | package uk.gov.justice.digital.hmpps.hmppsaccreditedprogrammesapi.listener
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.module.kotlin.readValue
import io.awspring.cloud.sqs.annotation.SqsListener
import org.slf4j.LoggerFactory
impo... | 5 | Kotlin | 0 | 0 | a76caccabfab185150374ea01e4165fcaecf0e27 | 1,634 | hmpps-accredited-programmes-api | MIT License |
updater-mapper-standard/src/main/java/org/runestar/client/updater/mapper/std/classes/WorldMapIcon1.kt | widget- | 249,041,961 | true | {"Kotlin": 1389576, "Java": 27806} | package org.runestar.client.updater.mapper.std.classes
import org.runestar.client.updater.mapper.IdentityMapper
import org.runestar.client.updater.mapper.DependsOn
import org.runestar.client.updater.mapper.and
import org.runestar.client.updater.mapper.predicateOf
import org.runestar.client.updater.mapper.Class2
import... | 0 | null | 0 | 0 | b7e09ae47bcf037818a4f9fc55e0c2506dc96a12 | 786 | client-1 | MIT License |
src/test/kotlin/com/prof18/kmpframeworkbundler/task/fatframework/FatFrameworkNotRegisteredTasksTest.kt | prof18 | 514,939,912 | false | null | package com.prof18.kmpframeworkbundler.task.fatframework
import com.prof18.kmpframeworkbundler.task.xcframework.BUILD_DEBUG_XC_FRAMEWORK_TASK_NAME
import com.prof18.kmpframeworkbundler.task.xcframework.BUILD_RELEASE_XC_FRAMEWORK_TASK_NAME
import com.prof18.kmpframeworkbundler.task.xcframework.PublishDebugXCFrameworkTa... | 3 | Kotlin | 0 | 18 | 42fcdf83d867bd684d709654e3d43df74d6c06d9 | 2,894 | kmp-framework-bundler | Apache License 2.0 |
app/src/main/java/com/program/databindingdemo/repository/OnSellRepository.kt | precontext | 593,937,559 | false | null | package com.program.databindingdemo.repository
import com.program.databindingdemo.api.RetrofitClient
class OnSellRepository {
suspend fun getOnSellListByPage(page: Int) = RetrofitClient.apiService.getOnSellList(page)
} | 0 | Kotlin | 0 | 0 | 95765137a9a6b6cb6b13922a1b5b0aeb8fa03498 | 226 | DatabindingDemo | Apache License 2.0 |
jps-plugin/testData/comparison/classMembersOnlyChanged/nestedClassMembersChanged/new.kt | JakeWharton | 99,388,807 | true | null | package test
class Base {
class Nested1 {
class Nested2 {
fun added() {}
}
}
} | 179 | Kotlin | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 115 | kotlin | Apache License 2.0 |
app/src/main/java/com/binary/memory/repository/TaskRepository.kt | Summer-yang | 771,610,617 | false | {"Kotlin": 15034} | package com.binary.memory.repository
import com.binary.memory.base.DraculaRepository
import com.binary.memory.database.dao.TaskDao
import com.binary.memory.model.Task
import kotlinx.coroutines.flow.Flow
class TaskRepository(private val taskDao: TaskDao) : DraculaRepository {
suspend fun insertTask(task: Task) {
... | 0 | Kotlin | 0 | 0 | f5cd3c1550c2b6194dda072357c45bc039a1efc1 | 884 | Threads-Of-Memory | MIT License |
app/src/main/java/com/binary/memory/repository/TaskRepository.kt | Summer-yang | 771,610,617 | false | {"Kotlin": 15034} | package com.binary.memory.repository
import com.binary.memory.base.DraculaRepository
import com.binary.memory.database.dao.TaskDao
import com.binary.memory.model.Task
import kotlinx.coroutines.flow.Flow
class TaskRepository(private val taskDao: TaskDao) : DraculaRepository {
suspend fun insertTask(task: Task) {
... | 0 | Kotlin | 0 | 0 | f5cd3c1550c2b6194dda072357c45bc039a1efc1 | 884 | Threads-Of-Memory | MIT License |
tasks-core/src/commonMain/kotlin/net/opatry/tasks/data/entity/TaskListEntity.kt | opatry | 860,583,716 | false | {"Kotlin": 622220, "Shell": 11263, "HTML": 451, "Ruby": 196} | /*
* Copyright (c) 2024 <NAME>
*
* 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, copy, modify, merge, publish, dis... | 4 | Kotlin | 0 | 2 | 8f8f59a571d5b6e5c9e018d2b32be91103357a36 | 1,745 | taskfolio | MIT License |
domain/src/main/java/com/seo4d696b75/android/ekisagasu/domain/log/AppLog.kt | Seo-4d696b75 | 247,417,963 | false | {"Kotlin": 421916} | package com.seo4d696b75.android.ekisagasu.domain.log
import com.seo4d696b75.android.ekisagasu.domain.date.TIME_PATTERN_MILLI_SEC
import com.seo4d696b75.android.ekisagasu.domain.date.format
import java.util.Date
data class AppLog(
val id: Long,
val type: AppLogType,
val message: String,
val timestamp: ... | 4 | Kotlin | 0 | 0 | ca323eb5aa46187d16d335a10fd64d51bfd6c651 | 579 | checkhelper | MIT License |
src/main/kotlin/com/zenasoft/ami/service/googlesearch/model/SearchResultEntry.kt | czyczk | 695,836,956 | false | {"Kotlin": 73106} | package com.zenasoft.ami.service.googlesearch.model
import kotlinx.serialization.Serializable
@Serializable
class SearchResultEntry {
lateinit var title: String
lateinit var url: String
var snippet: String = ""
/**
* From [com.zenasoft.ami.integration.googlesearch.model.ItemEntry.displayLink]... | 0 | Kotlin | 0 | 1 | d63ba96858cdc27dea1e9fd49baa5cb0a086fb04 | 394 | auto-music-info-server | Apache License 2.0 |
app/src/main/java/com/welcome/jetpack_learn/utils/FloatWindowUtils.kt | wuxiaoqi123 | 218,183,550 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "XML": 73, "Java": 7, "Kotlin": 57, "JSON": 1} | package com.welcome.jetpack_learn.utils
import android.app.Application
import android.util.Log
import android.view.animation.BounceInterpolator
import android.widget.LinearLayout
import android.widget.TextView
import androidx.appcompat.widget.AppCompatButton
import com.welcome.jetpack_learn.MainActivity
import com.wel... | 1 | null | 1 | 1 | 782de5a256ca1a152319428c8a8055acf54b478d | 3,314 | JetPack_Learn | Apache License 2.0 |
backend.native/tests/external/stdlib/collections/CollectionTest/decomposeList.kt | juliuskunze | 116,136,849 | false | null | import kotlin.test.*
import kotlin.comparisons.*
fun box() {
val (a, b, c, d, e) = intArrayOf(1, 2, 3, 4, 5)
assertEquals(a, 1)
assertEquals(b, 2)
assertEquals(c, 3)
assertEquals(d, 4)
assertEquals(e, 5)
}
| 1 | null | 0 | 1 | 7b9cd6c9f4f3f3218d48acc9ba3b9a1dd62cc57f | 231 | kotlin-native | Apache License 2.0 |
app/src/main/java/com/bawp/jettip_test/MainActivity.kt | OkeBenoitHub | 699,137,419 | false | null | package com.bawp.jettip_app
import android.os.Bundle
import android.util.Log
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.CircleShape
import and... | 0 | null | 1 | 1 | 45366a94ee44091878f8a257fb9b45b513fd6734 | 12,393 | Tip-Calculator-Jetpack-Compose | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/inspectionsLocal/unusedSymbol/parameterOnlyUsedAsNamedArgument.kt | JetBrains | 2,489,216 | false | null | fun op(aOne<caret>: String) {}
fun main() {
op(aOne = "")
}
// IGNORE_K2
// IGNORE_K1 | 251 | null | 5079 | 16,158 | 831d1a4524048aebf64173c1f0b26e04b61c6880 | 91 | intellij-community | Apache License 2.0 |
app/src/main/java/zmuzik/taibike/location/Loc.kt | zmuzik | 92,962,183 | false | null | package zmuzik.taibike.location
import com.google.android.gms.maps.model.LatLng
object Loc {
var lastKnown: LatLng? = null
} | 0 | Kotlin | 0 | 1 | 9b863ba18dedff4b2f9059160079d40e948f613f | 130 | taibike | Apache License 2.0 |
runtime/auth/aws-signing-default/common/src/aws/smithy/kotlin/runtime/auth/awssigning/SignatureCalculator.kt | smithy-lang | 294,823,838 | false | null | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package aws.smithy.kotlin.runtime.auth.awssigning
import aws.smithy.kotlin.runtime.hashing.*
import aws.smithy.kotlin.runtime.text.encoding.encodeToHex
import aws.smithy.kotlin.runtime.time.Instant
impor... | 36 | null | 26 | 82 | ad18e2fb043f665df9add82083c17877a23f8610 | 6,456 | smithy-kotlin | Apache License 2.0 |
src/main/kotlin/com/nkming/utils/widget/decorator/HeaderDecoration.kt | nkming2 | 31,703,002 | false | null | package com.nkming.utils.widget.decorator
import android.graphics.Canvas
import android.graphics.Rect
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.nkming.utils.type.ext.childIterator
/**
* Ad... | 1 | null | 1 | 1 | 8707b6d94953bc1651b16f636880c3e34c0e0ee5 | 2,454 | libutils-android | MIT License |
app/src/main/java/com/magenta/foodalrecipe/utils/extensions/LottieAnimationAnimator.kt | vipafattal | 174,386,116 | false | null | package com.magenta.foodalrecipe.utils.extensions
import android.animation.ValueAnimator
import androidx.core.animation.doOnEnd
import com.airbnb.lottie.LottieAnimationView
import com.magenta.foodalrecipe.utils.commen.unitFun
/**
* Created by Abed on 2/26/2018.
*/
fun LottieAnimationView.animatorBuilder(
start... | 0 | Kotlin | 1 | 3 | e1b5e70c1633754ea24b5f642f4999f6a5b35bfe | 1,128 | FoodalRecipe | MIT License |
string-reference/src/test/java/com/likethesalad/placeholder/data/storage/IncrementalDataCleanerTest.kt | LikeTheSalad | 216,664,268 | false | null | package com.likethesalad.placeholder.data.storage
import com.google.common.truth.Truth
import io.mockk.every
import io.mockk.mockk
import org.junit.Before
import org.junit.Rule
import org.junit.Test
import org.junit.rules.TemporaryFolder
import java.io.File
class IncrementalDataCleanerTest {
@get:Rule
val te... | 4 | null | 6 | 119 | 975d31fead7738da04aa0598dd14388c88373b9a | 2,394 | android-string-reference | MIT License |
app/src/main/java/com/rkoshti/hitesh_practical_mvvm/di/AppModule.kt | hitesh73 | 758,038,495 | false | {"Kotlin": 16489} | package com.rkoshti.hitesh_practical_mvvm.di
import com.rkoshti.hitesh_practical_mvvm.data.remote.ApiService
import com.rkoshti.hitesh_practical_mvvm.data.remote.RequestInterceptor
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import okhttp3.O... | 0 | Kotlin | 0 | 0 | 25cb5f11c3fa9c293f3b34f06a8d8f228de4cd2b | 1,352 | HiteshMVVMPractical | Apache License 2.0 |
app/src/main/java/com/pinsync/ui/PinSyncApp.kt | mefogle | 793,223,861 | false | {"Kotlin": 76541} | package com.pinsync.ui
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import and... | 0 | Kotlin | 0 | 0 | fa693c87d30cffc5911ccc1c283306b99ba9da73 | 2,388 | PinSync | MIT License |
app/src/main/java/io/github/mklkj/filmowy/api/ApiModule.kt | mklkj | 166,846,534 | false | {"HTML": 181836, "Kotlin": 179891} | package io.github.mklkj.filmowy.api
import android.content.Context
import com.franmontiel.persistentcookiejar.ClearableCookieJar
import com.franmontiel.persistentcookiejar.PersistentCookieJar
import com.franmontiel.persistentcookiejar.cache.SetCookieCache
import com.franmontiel.persistentcookiejar.persistence.SharedPr... | 1 | HTML | 0 | 7 | e7f01ad5d0771254e907e59aa4df4ef0e6fd7293 | 3,419 | filmowy | Apache License 2.0 |
src/main/kotlin/fr/aubel/music/models/Album.kt | LuidjyAubel | 652,362,951 | false | null | package fr.aubel.music.models
import javax.persistence.Entity
import javax.persistence.Id
@Entity
data class Album(
@Id
var Id : String,
var Name :String,
var date : String
)
| 0 | Kotlin | 0 | 0 | f49d17061f922ec8a24da0b77f7c220b1a53561d | 194 | API_Music | MIT License |
komapper-core/src/main/kotlin/org/komapper/core/dsl/builder/EntityInsertStatementBuilder.kt | komapper | 349,909,214 | false | {"Kotlin": 2922039, "Java": 57131} | package org.komapper.core.dsl.builder
import org.komapper.core.BuilderDialect
import org.komapper.core.Statement
import org.komapper.core.StatementBuffer
import org.komapper.core.dsl.context.EntityInsertContext
import org.komapper.core.dsl.expression.ColumnExpression
import org.komapper.core.dsl.metamodel.EntityMetamo... | 8 | Kotlin | 14 | 301 | 9fbc0b5652ee732583e977180cdc493e116e1022 | 2,406 | komapper | Apache License 2.0 |
app/src/main/java/com/mi/mvi/koin/GlideModule.kt | omar-adel | 258,101,649 | true | {"Kotlin": 174763} | package com.mi.mvi.koin
import com.bumptech.glide.Glide
import com.bumptech.glide.request.RequestOptions
import com.mi.mvi.R
import org.koin.android.ext.koin.androidContext
import org.koin.dsl.module
val glideModule = module {
single {
RequestOptions
.placeholderOf(R.drawable.default_image)
... | 0 | null | 0 | 0 | f9ae471ef25e8b208b8439e7c51d446e72643b23 | 474 | Android-Kotlin-MVI-CleanArchitecture | MIT License |
app/src/main/java/io/zoemeow/dutschedule/utils/OpenLink.kt | ZoeMeow1027 | 504,228,485 | false | {"Kotlin": 428848} | package io.zoemeow.dutschedule.util
import android.content.Context
import android.content.Intent
import android.net.Uri
import androidx.browser.customtabs.CustomTabColorSchemeParams
import androidx.browser.customtabs.CustomTabsIntent
fun OpenLink(
url: String,
context: Context,
customTab: Boolean = true
)... | 2 | Kotlin | 0 | 1 | b1791c74c2ac316074d920308b7d46fab14b2a0e | 889 | DutSchedule | MIT License |
automata/intent/src/main/java/com/lockwood/automata/intent/Web.kt | yushman | 382,277,000 | true | {"Kotlin": 72723} | package com.lockwood.automata.intent
import android.app.SearchManager
import android.content.Context
import android.content.Intent
import android.net.Uri
import com.lockwood.automata.android.buildIntent
fun Context.openWebPage(url: String): Intent {
return buildIntent(Intent.ACTION_VIEW, Uri.parse(url)) { startActiv... | 0 | null | 0 | 0 | 27a6e7587274cd9e6a9ee0021dac33ce71cf00d3 | 497 | nier | Apache License 2.0 |
common-base/src/main/java/com/bbgo/common_base/ext/Mmkv.kt | xnc916 | 377,439,554 | true | {"Kotlin": 267347, "Java": 6868} | package com.bbgo.common_base.ext
import com.tencent.mmkv.MMKV
/**
* author: wangyb
* date: 3/29/21 9:03 PM
* description: todo
*/
lateinit var Mmkv: MMKV | 0 | null | 0 | 0 | 2456f37bd73bf9e6efb2f3ead5e92fe978abee9c | 163 | WanAndroid-1 | Apache License 2.0 |
swc-binding/src/main/kotlin/dev/yidafu/swc/dsl/JSXAttrValue.kt | yidafu | 745,507,915 | false | {"Kotlin": 1532978, "JavaScript": 1186983, "TypeScript": 52873, "Rust": 15241, "Shell": 2012} | package dev.yidafu.swc.dsl
import dev.yidafu.swc.types.*
/**
* subtype of JSXAttrValue
*/
fun JSXAttrValue.stringLiteral(block: StringLiteral.() -> Unit): StringLiteral {
return StringLiteralImpl().apply(block)
}
/**
* subtype of JSXAttrValue
*/
fun JSXAttrValue.booleanLiteral(block: BooleanLiteral.() -> Uni... | 1 | Kotlin | 0 | 0 | fecf831e1b47f4693eba781e74d3cf7df22dfac7 | 1,679 | swc-binding | Apache License 2.0 |
src/main/kotlin/de/dinomarlir/ffa/command/SetupCommand.kt | DinoMarlir | 522,925,985 | false | {"Kotlin": 9767} | package de.dinomarlir.ffa.command
import com.mojang.brigadier.arguments.BoolArgumentType
import com.mojang.brigadier.arguments.StringArgumentType
import net.axay.kspigot.chat.KColors
import net.axay.kspigot.commands.argument
import net.axay.kspigot.commands.command
import net.axay.kspigot.commands.literal
import net.a... | 0 | Kotlin | 0 | 0 | 5006951befd0c74b426d21bc4bea69e7637d8790 | 694 | ffa | MIT License |
app/src/main/java/com/tecknobit/pandoro/ui/viewmodels/ConnectViewModel.kt | N7ghtm4r3 | 719,643,104 | false | {"Kotlin": 380720} | package com.tecknobit.pandoro.ui.viewmodels
import androidx.compose.material3.SnackbarHostState
import androidx.compose.runtime.MutableState
import com.tecknobit.equinox.environment.records.EquinoxUser
import com.tecknobit.equinox.environment.records.EquinoxUser.NAME_KEY
import com.tecknobit.equinox.environment.record... | 0 | Kotlin | 0 | 0 | 54aebdee61a2578f8507c1e2bf312c08b9d07be1 | 7,023 | Pandoro-Android | MIT License |
src/main/kotlin/no/nav/sbl/dialogarena/mininnboks/PortTypeUtils.kt | navikt | 152,378,932 | false | {"Kotlin": 150235, "Dockerfile": 568, "Shell": 520, "HTML": 505} | package no.nav.sbl.dialogarena.mininnboks
import kotlinx.coroutines.runBlocking
import no.nav.common.cxf.CXFClient
import no.nav.common.cxf.StsConfig
import no.nav.common.health.HealthCheckResult
import no.nav.common.health.selftest.SelfTestCheck
import no.nav.melding.domene.brukerdialog.behandlingsinformasjon.v1.XMLH... | 0 | Kotlin | 0 | 0 | 92a7f7c2672b918a48f2eecc34a9bda098f10787 | 2,065 | mininnboks-api | MIT License |
android-base/src/main/java/io/github/droidkaigi/confsched2020/di/DeviceComponentModule.kt | DroidKaigi | 202,978,106 | false | null | package io.github.droidkaigi.confsched2020.di
import android.app.Application
import dagger.Module
import dagger.Provides
import io.github.droidkaigi.confsched2020.data.device.DeviceComponent
import io.github.droidkaigi.confsched2020.data.device.WifiManager
import javax.inject.Singleton
@Module
object DeviceComponentM... | 46 | null | 331 | 785 | 4c5533e4611d4bf6007284dd1f61db2fc92eb0ae | 530 | conference-app-2020 | Apache License 2.0 |
bot/src/main/kotlin/com/noahhendrickson/beachbunny/bot/dialogflow/IntentBuilders.kt | NoahH99 | 367,918,537 | false | null | package com.noahhendrickson.beachbunny.bot.dialogflow
import com.google.cloud.dialogflow.v2.DetectIntentRequest
import com.google.cloud.dialogflow.v2.QueryInput
import com.google.cloud.dialogflow.v2.QueryParameters
import com.google.cloud.dialogflow.v2.TextInput
suspend fun textInput(builder: suspend TextInput.Builde... | 2 | Kotlin | 0 | 0 | 7e401ddf665cb78ffd0c47c1d4cabd2cd9d0bc81 | 934 | BeachBunny | MIT License |
import-export/android/src/androidTest/kotlin/studio/lunabee/onesafe/importexport/settings/AutoBackupSettingsScreenTest.kt | LunabeeStudio | 624,544,471 | false | null | /*
* Copyright (c) 2023 Lunabee Studio
*
* 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 agree... | 1 | null | 1 | 2 | a34f0ddaf9dc649c2f2082dc2526921bb1a491df | 6,434 | oneSafe6_SDK_Android | Apache License 2.0 |
app/core/src/main/java/com/fsck/k9/message/html/KoinModule.kt | katzenpost | 119,382,367 | false | {"Java": 4664301, "Kotlin": 424358, "Shell": 2775} | package com.fsck.k9.message.html
import org.koin.dsl.module.applicationContext
val htmlModule = applicationContext {
bean { HtmlProcessor(get()) }
bean { HtmlSanitizer() }
}
| 0 | Java | 0 | 2 | 2f5ad451859b60acf405184deb5ef7b8e41747ab | 184 | katzenpost-android-mail | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsactivitiesmanagementapi/resource/ScheduledEventController.kt | ministryofjustice | 533,838,017 | false | null | package uk.gov.justice.digital.hmpps.hmppsactivitiesmanagementapi.resource
import io.swagger.v3.oas.annotations.Operation
import io.swagger.v3.oas.annotations.Parameter
import io.swagger.v3.oas.annotations.media.Content
import io.swagger.v3.oas.annotations.media.Schema
import io.swagger.v3.oas.annotations.responses.Ap... | 1 | Kotlin | 0 | 1 | eedf13ed3f8c8e3de61afc114417f439d781f329 | 8,710 | hmpps-activities-management-api | MIT License |
src/main/kotlin/team/nk/kimiljeongserver/domain/schedule/service/CreateScheduleService.kt | team-nk | 513,313,744 | false | null | package team.nk.kimiljeongserver.domain.schedule.service
import org.springframework.beans.factory.annotation.Value
import org.springframework.stereotype.Service
import org.springframework.transaction.annotation.Transactional
import team.nk.kimiljeongserver.domain.schedule.domain.Schedule
import team.nk.kimiljeongserve... | 2 | Kotlin | 1 | 16 | b7814ffdd99ddc844861746cdccde4553580b6db | 1,553 | kim-il-jeong-server | MIT License |
src/main/kotlin/team/nk/kimiljeongserver/domain/schedule/service/CreateScheduleService.kt | team-nk | 513,313,744 | false | null | package team.nk.kimiljeongserver.domain.schedule.service
import org.springframework.beans.factory.annotation.Value
import org.springframework.stereotype.Service
import org.springframework.transaction.annotation.Transactional
import team.nk.kimiljeongserver.domain.schedule.domain.Schedule
import team.nk.kimiljeongserve... | 2 | Kotlin | 1 | 16 | b7814ffdd99ddc844861746cdccde4553580b6db | 1,553 | kim-il-jeong-server | MIT License |
app/src/main/java/io/github/kiyohitonara/souji/di/AppModule.kt | KiyohitoNara | 738,010,638 | false | {"Kotlin": 62821} | /*
* Copyright (c) 2024 <NAME>
*
* 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, copy, modify, merge, publish, dis... | 0 | Kotlin | 0 | 0 | c5833e74f9ee47f2369d292445523596c43ec87b | 2,975 | souji | MIT License |
src/functionalTest/kotlin/com/autonomousapps/fixtures/AnotherCompileOnlyProject.kt | autonomousapps | 217,134,508 | false | null | package com.autonomousapps.fixtures
import com.autonomousapps.model.Advice
/**
* The purpose of this project is to validate that, if a dependency is declared `compileOnly`, we do not advise changing
* it, even if it is unused.
*/
class AnotherCompileOnlyProject(private val agpVersion: String) {
val androidKotli... | 45 | Kotlin | 55 | 910 | da02a56a0b7a00a26876cdaa29321f8376bf7099 | 958 | dependency-analysis-android-gradle-plugin | Apache License 2.0 |
client/leaderboard-client-sdk/src/main/kotlin/kotlinconf/elasticleaderboard/model/LeaderboardSummary.kt | aws-samples | 802,266,832 | false | {"Rust": 309155, "Kotlin": 113042, "Smithy": 6876} | // Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package kotlinconf.elasticleaderboard.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CreateLeaderboardRequest private constructor(builder: Builder) {
public val maxEntries: kotlin.Int? = builder.maxEntries
public val name: kotlin.String? = ... | 1 | Rust | 0 | 0 | 0425df0a297bd9fde4a30757cab996dfa73ad66c | 2,320 | generating-kotlin-sdks-with-smithy-demo | MIT No Attribution |
buildSrc/src/main/kotlin/Versions.kt | reduxkotlin | 190,056,622 | false | null | import org.gradle.plugin.use.PluginDependenciesSpec
import org.gradle.plugin.use.PluginDependencySpec
import kotlin.String
/**
* Generated by https://github.com/jmfayard/buildSrcVersions
*
* Find which updates are available by running
* `$ ./gradlew buildSrcVersions`
* This will only update the comments.
*
... | 3 | Kotlin | 4 | 9 | 8ce2b3cb7c1477b7542dcac34f1fc47c5dba5dc6 | 1,356 | redux-kotlin-thunk | Apache License 2.0 |
app/src/main/java/com/cbs/sscbs/SideBar/About_Activity.kt | Prashant-123 | 109,143,837 | false | null | package com.cbs.sscbs.SideBar
import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import com.cbs.sscbs.Others.Contact_us
import com.cbs.sscbs.R
import kotlinx.android.synthetic.main.activity_about.*
class About_Activity : AppCompatActivity() {
override fun onCre... | 0 | null | 1 | 2 | f5c6a3ad151d898137feba50be1098d31ef461d9 | 1,183 | SSCBS | Apache License 2.0 |
showkase-processor-testing/src/test/resources/ShowkaseProcessorTest/color_property_inside_object_with_ShowkaseColor_annotation_compiles_ok/input/GeneratedTestComposables.kt | airbnb | 257,758,318 | false | null | package com.airbnb.android.showkase_processor_testing
import androidx.compose.ui.graphics.Color
import com.airbnb.android.showkase.annotation.ShowkaseColor
object ShowkaseObject {
@ShowkaseColor("name", "group")
val color = Color(0xffff0000)
} | 21 | Kotlin | 51 | 1,323 | 5474c06515ef74cf1a6a11482f638504cbdc3bc6 | 253 | Showkase | Apache License 2.0 |
plugins/parcelize/parcelize-compiler/tests/org/jetbrains/kotlin/parcelize/test/services/ParcelizeMainClassProvider.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.parcelize.test.services
import org.jetbrains.kotlin.parcelize.test.services.Parc... | 132 | null | 5074 | 40,992 | 57fe6721e3afb154571eb36812fd8ef7ec9d2026 | 858 | kotlin | Apache License 2.0 |
infullmvp-kotlin/src/main/java/com/infullmobile/android/infullmvp/InFullMvpFragment.kt | inFullMobile | 75,730,560 | false | null | package com.infullmobile.android.infullmvp
import android.content.Intent
import android.os.Bundle
import android.support.annotation.CallSuper
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.MenuItem
import android.view.View
import android.view.ViewGroup
abstract class InF... | 7 | Kotlin | 5 | 11 | 2b25b5b957fff0c6bec89a5c6875b1870a152e3e | 2,902 | InfullMvpAndroid | MIT License |
domene/src/main/kotlin/no/nav/tiltakspenger/saksbehandling/domene/tiltak/Tiltak.kt | navikt | 487,246,438 | false | {"Kotlin": 953370, "Shell": 1318, "Dockerfile": 495, "HTML": 45} | package no.nav.tiltakspenger.saksbehandling.domene.tiltak
import no.nav.tiltakspenger.felles.TiltakId
import no.nav.tiltakspenger.libs.periodisering.Periode
import no.nav.tiltakspenger.libs.tiltak.TiltakstypeSomGirRett
import java.time.LocalDateTime
data class Tiltak(
val id: TiltakId,
val eksternId: String,
... | 8 | Kotlin | 0 | 1 | 953198d54cd370b865f6ebe635a29c9e42cb817b | 891 | tiltakspenger-vedtak | MIT License |
libs/canvas-api-2/src/test/java/com/instructure/canvasapi2/pact/canvas/logic/PactDiscussionLogic.kt | instructure | 179,290,947 | false | null | /*
* Copyright (C) 2020 - present Instructure, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... | 2 | Kotlin | 85 | 99 | 1bac9958504306c03960bdce7fbb87cc63bc6845 | 12,323 | canvas-android | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.