path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/com/jpb/scratchtappy/usp/PlatLogoActivity.kt | jpbandroid | 517,991,180 | false | {"Kotlin": 128048, "C++": 6528, "Java": 3694, "CMake": 2010, "C": 153} | /*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 9 | Kotlin | 0 | 1 | 953017a381bd0d908c4b675fb3adeef0483a0e9a | 19,026 | USP | Apache License 2.0 |
app/src/main/java/io/github/wulkanowy/utils/SpinnerExtension.kt | wezuwiusz | 827,505,734 | false | {"Kotlin": 1759089, "HTML": 1949, "Shell": 257} | package io.github.wulkanowy.utils
import android.view.View
import android.widget.AdapterView
import android.widget.Spinner
/**
* @see <a href="https://stackoverflow.com/a/29602298">How to keep onItemSelected from firing off on a newly instantiated Spinner?</a>
*/
@Suppress("UNCHECKED_CAST")
inline fun <T : View> Sp... | 1 | Kotlin | 6 | 28 | 82b4ea930e64d0d6e653fb9024201b372cdb5df2 | 997 | neowulkanowy | Apache License 2.0 |
androidApp/src/main/java/com/mutualmobile/harvestKmp/android/ui/screens/newEntryScreen/components/DatePicker.kt | mutualmobile | 495,292,087 | false | null | package com.mutualmobile.harvestKmp.android.ui.screens.newEntryScreen.components
import android.text.format.DateFormat
import android.view.ContextThemeWrapper
import android.widget.CalendarView
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.founda... | 0 | Kotlin | 4 | 41 | 763dd7f45f8271cebe9107c63f3532e1b14c666f | 5,156 | HarvestTimeKMP | Apache License 2.0 |
app/templates/app-kotlin/src/main/java/ui/main/MainActivity.kt | heralight | 74,270,583 | true | {"Java": 131799, "JavaScript": 108752, "Kotlin": 60437} | package <%= appPackage %>.ui.main
import android.os.Bundle
import <%= appPackage %>.di.ActivityScope
import <%= appPackage %>.di.components.MainComponent;
import <%= appPackage %>.di.HasComponent
import <%= appPackage %>.ui.base.BaseActivity
import <%= appPackage %>.R
import <%= appPackage %>.application.App
import <%... | 0 | Java | 0 | 1 | c15b1ad2743a5e71c4d900fd8fcb8a7ae809f1cb | 1,715 | generator-android-hipster | Apache License 2.0 |
idea/testData/quickfix/inlineTypeParameterFix/function.kt | JakeWharton | 99,388,807 | true | null | // "Inline type parameter" "true"
data class DC(val x: Int, val y: String) {
fun <S : Int<caret>> foo() {
val a: S = Int.MAX_VALUE
}
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.InlineTypeParameterFix | 1 | Kotlin | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 231 | kotlin | Apache License 2.0 |
io/http/src/test/kotlin/io/bluetape4k/http/hc5/examples/ClientWithRequestFuture.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.http.hc5.examples
import io.bluetape4k.http.hc5.AbstractHc5Test
import io.bluetape4k.http.hc5.classic.httpClientConnectionManager
import io.bluetape4k.http.hc5.classic.httpClientOf
import io.bluetape4k.http.hc5.http.futureRequestExecutionServiceOf
import io.bluetape4k.http.hc5.protocol.httpClient... | 0 | Kotlin | 0 | 1 | ce3da5b6bddadd29271303840d334b71db7766d2 | 3,704 | bluetape4k | MIT License |
cinescout/watchlist/domain/src/commonMain/kotlin/cinescout/watchlist/domain/usecase/SyncWatchlist.kt | fardavide | 280,630,732 | false | null | package cinescout.watchlist.domain.usecase
import arrow.core.Either
import cinescout.error.NetworkError
import cinescout.screenplay.domain.model.ScreenplayTypeFilter
import cinescout.sync.domain.model.RequiredSync
interface SyncWatchlist {
suspend operator fun invoke(
type: ScreenplayTypeFilter,
... | 8 | Kotlin | 2 | 6 | dcbd0a0b70d6203a2ba1959b797038564d0f04c4 | 476 | CineScout | Apache License 2.0 |
tools/blobinspector/src/main/kotlin/net/corda/blobinspector/BlobInspector.kt | renlulu | 160,531,644 | false | null | package net.corda.blobinspector
import com.fasterxml.jackson.core.JsonFactory
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory
import com.jcabi.manifests.Manifests
import net.corda.client.jackson.JacksonSupport
import net.corda.cliutils.CordaCliWrapper
import net.corda.cliutils.ExitCodes
import net.corda.cliut... | 1 | null | 1 | 1 | f524ed9af7027004abfa91c0bd3a31d645ef0b3b | 7,579 | corda | Apache License 2.0 |
app/src/main/java/com/example/juicetracker/ui/JuiceTrackerApp.kt | codnaTnoraA | 812,924,900 | false | {"Kotlin": 60926} | package com.example.juicetracker.ui
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.BottomSheetScaffold
import androidx.compose.material3.B... | 0 | Kotlin | 0 | 0 | e1465509e9e70c47d4f9de312d473f90a1b721a9 | 5,008 | Ecommerce_App | Apache License 2.0 |
app/src/main/java/com/example/mockpropertymanagmentapp/data/repositories/UserRepository.kt | adamcreeves | 301,543,820 | false | {"Kotlin": 78539} | package com.example.mockpropertymanagmentapp.data.repositories
import android.content.Context
import android.util.Log
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.example.mockpropertymanagmentapp.data.models.*
import com.example.mockpropertymanagmentapp.data.network.MyApi
im... | 0 | Kotlin | 0 | 0 | 13c2013fdb5f689455f4deef7b15c6ca95174bc7 | 3,522 | Mock-Property-Managment-App-kotlin | MIT License |
app/src/main/java/com/ali_sajjadi/daneshjooyarapp/mvp/presenter/PresenterRulesFragment.kt | alisajjadi751 | 847,226,122 | false | {"Kotlin": 72156} | package com.ali_sajjadi.daneshjooyarapp.mvp.presenter
import com.ali_sajjadi.daneshjooyarapp.mvp.model.ModelRulesFragment
import com.ali_sajjadi.daneshjooyarapp.mvp.view.ViewRulesFragment
import info.alirezaahmadi.frenchpastry.mvp.ext.BaseLifeCycle
class PresenterRulesFragment(
private val view: ViewRulesFragment... | 0 | Kotlin | 0 | 0 | 039cbfa4fb82af9d1b5b94f5ddba018d8caacce3 | 441 | daneshjooyar-App | MIT License |
app/src/main/java/com/bossed/waej/javebean/MyProductResponse.kt | Ltow | 710,230,789 | false | {"Kotlin": 2304560, "Java": 395495, "HTML": 71364} | package com.bossed.waej.javebean
import com.google.gson.annotations.SerializedName
data class MyProductResponse(
@SerializedName("code")
val code: Int,
@SerializedName("data")
val `data`: List<MyProductData>,
@SerializedName("msg")
val msg: String,
@SerializedName("succ")
val succ: Boo... | 0 | Kotlin | 0 | 0 | 8c2e9928f6c47484bec7a5beca32ed4b10200f9c | 1,107 | wananexiu | Mulan Permissive Software License, Version 2 |
libs/canvas-api-2/src/main/java/com/instructure/canvasapi2/apis/ModuleAPI.kt | instructure | 179,290,947 | false | null | /*
* Copyright (C) 2017 - 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... | 5 | null | 94 | 99 | 1bac9958504306c03960bdce7fbb87cc63bc6845 | 6,195 | canvas-android | Apache License 2.0 |
libs/canvas-api-2/src/main/java/com/instructure/canvasapi2/apis/ModuleAPI.kt | instructure | 179,290,947 | false | null | /*
* Copyright (C) 2017 - 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... | 5 | null | 94 | 99 | 1bac9958504306c03960bdce7fbb87cc63bc6845 | 6,195 | canvas-android | Apache License 2.0 |
src/fr/japscan/src/eu/kanade/tachiyomi/extension/fr/japscan/Japscan.kt | Pavkazzz | 148,326,031 | true | {"Gradle": 60, "Java Properties": 2, "Shell": 4, "XML": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "YAML": 1, "Markdown": 2, "Kotlin": 82, "Java": 7} | package eu.kanade.tachiyomi.extension.fr.japscan
/**
* @file Japscan.kt
* @brief Defines class Japscan for french source Japscan
* @date 2018-09-02
* @version 1.0
*
* There is no research page on this source, so searching just returns all mangas from the source
* There are also no thumbnails for mangas
*/
imp... | 0 | Kotlin | 1 | 0 | 49daca7ce58f2807a698deffd4f79bb98c192ffc | 3,920 | tachiyomi-extensions | Apache License 2.0 |
app/src/main/java/com/vitoraguiardf/bobinabanking/data/repository/UserDao.kt | vitoraguiardf | 821,388,218 | false | {"Kotlin": 78201} | package com.vitoraguiardf.bobinabanking.data.repository
import androidx.room.Dao
import androidx.room.Query
import com.vitoraguiardf.bobinabanking.data.entity.User
@Dao
interface UserDao: DaoRepository<User, Int> {
@Query("SELECT * FROM User")
fun findAll(): List<User>
@Query("SELECT * FROM User WHERE id ... | 0 | Kotlin | 0 | 1 | f14a8a2f096e0cd907d46010cdcd3d505e0798f2 | 518 | bobina-banking-mobile | MIT License |
DeliBuddy/domain/src/main/java/yapp/android1/domain/interactor/usecase/PartyInformationUseCase.kt | YAPP-19th | 399,058,402 | false | null | package yapp.android1.domain.interactor.usecase
import yapp.android1.domain.NetworkResult
import yapp.android1.domain.entity.*
import yapp.android1.domain.repository.CommentRepository
import yapp.android1.domain.repository.PartyRepository
import javax.inject.Inject
typealias PartyId = Int
class FetchPartyInformatio... | 15 | Kotlin | 2 | 14 | 8967c395e2a8ad346ae24bc2a2fe4fbd3df29376 | 3,168 | Android-Team-1-Frontend | Apache License 2.0 |
shared/core/network/src/commonMain/kotlin/com/edugma/core/network/CoreNetworkModule.kt | Edugma | 474,423,768 | false | {"Kotlin": 1050092, "Swift": 1255, "Shell": 331, "HTML": 299} | package com.edugma.core.network
import com.edugma.core.api.api.EdugmaHttpClient
import com.edugma.core.api.consts.DiConst
import com.edugma.core.api.repository.UrlRepository
import com.edugma.core.api.repository.UrlTemplateRepository
import org.koin.core.module.dsl.bind
import org.koin.core.module.dsl.singleOf
import ... | 1 | Kotlin | 0 | 3 | d9149728b9dee61606d7c46d80bc474a77f46362 | 613 | app | MIT License |
core/src/main/kotlin/edu/umontreal/kotlingrad/numerical/Protocol.kt | shafiahmed | 287,769,250 | true | {"Kotlin": 238851} | package edu.umontreal.kotlingrad.numerical
import edu.umontreal.kotlingrad.functions.Fun
import edu.umontreal.kotlingrad.functions.ScalarVar
import java.math.BigDecimal
object BigDecimalPrecision: Protocol<BigDecimalReal, BigDecimal>() {
override fun wrap(default: Number) = BigDecimalReal(BigDecimal(default.toDoubl... | 0 | null | 0 | 0 | a105474549a6ae24df629164bd0cb546e449b4da | 4,705 | kotlingrad | Apache License 2.0 |
idea/idea-gradle/src/org/jetbrains/kotlin/idea/configuration/KotlinGradleSourceSetDataService.kt | JakeWharton | 99,388,807 | false | null | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.configuration
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.application.runReadActio... | 214 | null | 4829 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 14,970 | kotlin | Apache License 2.0 |
backend/feature-services/src/main/kotlin/at/sensatech/openfastlane/domain/entitlements/EntitlementsServiceImpl.kt | sensatech | 724,093,399 | false | {"Kotlin": 442921, "Dart": 408727, "HTML": 5563, "FreeMarker": 2659, "Dockerfile": 946, "Shell": 554} | package at.sensatech.openfastlane.domain.entitlements
import at.sensatech.openfastlane.common.newId
import at.sensatech.openfastlane.documents.FileResult
import at.sensatech.openfastlane.documents.pdf.PdfGenerator
import at.sensatech.openfastlane.documents.pdf.PdfInfo
import at.sensatech.openfastlane.domain.config.Res... | 0 | Kotlin | 1 | 1 | f80421a9db7a2b3b4fee71ebc9724789623d74bd | 17,872 | openfastlane | Apache License 2.0 |
bibix-core/src/main/kotlin/com/giyeok/bibix/plugins/bibix/Base.kt | Joonsoo | 477,378,536 | false | {"Kotlin": 901499, "Java": 29118, "TeX": 16376, "Scala": 3164} | package com.giyeok.bibix.plugins.bibix
import com.giyeok.bibix.base.*
import com.giyeok.bibix.plugins.jvm.ClassPkg
import com.giyeok.bibix.plugins.jvm.JarInfo
import com.giyeok.bibix.plugins.jvm.LocalLib
class Base {
fun build(context: BuildContext): BibixValue {
// TODO jar로 묶었으면 그 jar가 cp로 들어가면 될듯?
val cl... | 9 | Kotlin | 1 | 3 | 643c0ece3f98e5dc5087b50ecbd0559d9de5bf0c | 652 | bibix | MIT License |
core/common/src/main/kotlin/app/k9mail/core/common/oauth/OAuthConfiguration.kt | thunderbird | 1,326,671 | false | {"Kotlin": 4766001, "Java": 2159946, "Shell": 2768, "AIDL": 1946} | package app.k9mail.core.common.oauth
data class OAuthConfiguration(
val clientId: String,
val scopes: List<String>,
val authorizationEndpoint: String,
val tokenEndpoint: String,
val redirectUri: String,
)
| 846 | Kotlin | 5 | 9,969 | 8b3932098cfa53372d8a8ae364bd8623822bd74c | 226 | thunderbird-android | Apache License 2.0 |
core/common/src/main/kotlin/app/k9mail/core/common/oauth/OAuthConfiguration.kt | thunderbird | 1,326,671 | false | {"Kotlin": 4766001, "Java": 2159946, "Shell": 2768, "AIDL": 1946} | package app.k9mail.core.common.oauth
data class OAuthConfiguration(
val clientId: String,
val scopes: List<String>,
val authorizationEndpoint: String,
val tokenEndpoint: String,
val redirectUri: String,
)
| 846 | Kotlin | 5 | 9,969 | 8b3932098cfa53372d8a8ae364bd8623822bd74c | 226 | thunderbird-android | Apache License 2.0 |
vyne-history-core/src/main/java/com/orbitalhq/history/remote/AnalyticsRSocketStrategies.kt | orbitalapi | 541,496,668 | false | {"TypeScript": 9344934, "Kotlin": 5669840, "HTML": 201985, "SCSS": 170620, "HCL": 55741, "Java": 29373, "JavaScript": 24697, "Shell": 8800, "Dockerfile": 7001, "Smarty": 4741, "CSS": 2966, "Mustache": 1392, "Batchfile": 983, "MDX": 884, "PLpgSQL": 337} | //package com.orbitalhq.history.remote
//
//import org.springframework.context.annotation.Bean
//import org.springframework.context.annotation.Configuration
//import org.springframework.http.codec.cbor.KotlinSerializationCborDecoder
//import org.springframework.http.codec.cbor.KotlinSerializationCborEncoder
//import or... | 9 | TypeScript | 10 | 292 | 2be59abde0bd93578f12fc1e2ecf1f458a0212ec | 808 | orbital | Apache License 2.0 |
projects/android/Sample/app/src/main/java/com/ezored/sample/ui/fragment/TodoListFragment.kt | kereko | 355,354,539 | true | {"C++": 612146, "Java": 106702, "Objective-C++": 105230, "Swift": 104865, "Python": 96270, "Objective-C": 93293, "Kotlin": 68932, "CMake": 38367, "C": 1674, "Shell": 636} | package com.ezored.sample.ui.fragment
import android.text.TextUtils
import android.view.MenuItem
import android.view.View
import androidx.lifecycle.MutableLiveData
import com.ezored.dataservices.TodoDataService
import com.ezored.domain.Todo
import com.ezored.sample.R
import com.ezored.sample.adapter.TodoAdapter
import... | 1 | C++ | 0 | 0 | f290446bdf982d184bfd2ce22891749e8ad91e44 | 2,953 | ezored | MIT License |
plugins/android-extensions/android-extensions-idea/src/org/jetbrains/kotlin/android/synthetic/idea/AndroidSimpleNameReferenceExtension.kt | gigliovale | 89,726,097 | false | {"Java": 23302590, "Kotlin": 21941511, "JavaScript": 137521, "Protocol Buffer": 56992, "HTML": 49980, "Lex": 18051, "Groovy": 14093, "ANTLR": 9797, "IDL": 7706, "Shell": 5152, "CSS": 4679, "Batchfile": 3721} | /*
* Copyright 2010-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 1 | Java | 4 | 6 | ce145c015d6461c840050934f2200dbc11cb3d92 | 2,645 | kotlin | Apache License 2.0 |
src/main/kotlin/com/github/kimcore/inko/Inko.kt | kimcore | 280,815,352 | false | null | package com.github.kimcore.inko
import kotlin.math.floor
@Suppress("unused", "DuplicatedCode")
class Inko(private var allowDoubleConsonant: Boolean = false) {
private val eng = "rRseEfaqQtTdwWczxvgASDFGZXCVkoiOjpuPhynbmlYUIHJKLBNM"
private val kor = "ㄱㄲㄴㄷㄸㄹㅁㅂㅃㅅㅆㅇㅈㅉㅊㅋㅌㅍㅎㅁㄴㅇㄹㅎㅋㅌㅊㅍㅏㅐㅑㅒㅓㅔㅕㅖㅗㅛㅜㅠㅡㅣㅛㅕㅑㅗㅓㅏㅣㅠㅜㅡ"
p... | 0 | null | 0 | 9 | 40093fc4d6f431557c760eccba913fa55adcaa79 | 14,468 | inko.kt | MIT License |
mapper/logic/src/main/java/ir/ac/iust/dml/kg/mapper/logic/mapping/KSMappingLogic.kt | IUST-DMLab | 143,078,400 | false | {"Java": 1305698, "JavaScript": 309084, "Kotlin": 291339, "HTML": 262524, "Python": 140248, "CSS": 134871, "Shell": 11166} | /*
* Farsi Knowledge Graph Project
* Iran University of Science and Technology (Year 2017)
* Developed by <NAME>.
*/
package ir.ac.iust.dml.kg.mapper.logic.mapping
import ir.ac.iust.dml.kg.mapper.logic.data.PropertyStats
import ir.ac.iust.dml.kg.raw.utils.ConfigReader
import ir.ac.iust.dml.kg.raw.utils.PageUtils
... | 1 | null | 1 | 1 | 2e020ae3d619a35ffa00079b9aeb31ca77ce2346 | 10,180 | farsbase | Apache License 2.0 |
library_api/src/main/java/com/crow/ksp/api/RouteHandler.kt | crowforkotlin | 798,153,843 | false | {"Kotlin": 27881} | package com.crow.ksp.api
interface RouteHandler {
fun handle(request: RouteRequest): Boolean
} | 0 | Kotlin | 0 | 0 | 5a89525b8254cf84f9da450714e8df631cbe2a76 | 100 | Ksp-Template | Apache License 2.0 |
common/src/commonMain/kotlin/com/demo/ui/utils/chat/NeutralFace.kt | CoronelGlober | 529,032,277 | false | {"Kotlin": 188877, "Swift": 932, "Ruby": 271} | package com.demo.ui.utils.chat
import androidx.compose.material.icons.Icons
import androidx.compose.ui.graphics.*
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.path
import androidx.compose.ui.unit.dp
val Icons.Filled.Floating_screen: ImageVector
get() {
... | 0 | Kotlin | 6 | 28 | e7132da8475544a15b0288c64cdad8999c8747fa | 3,777 | demo-compose-multiplatform | MIT License |
src/test/java/com/statsig/androidsdk/LogEventRetryTest.kt | statsig-io | 357,712,105 | false | {"Kotlin": 363747, "Java": 6781} | package com.statsig.androidsdk
import android.app.Application
import com.google.gson.Gson
import io.mockk.mockk
import kotlinx.coroutines.runBlocking
import okhttp3.mockwebserver.Dispatcher
import okhttp3.mockwebserver.MockResponse
import okhttp3.mockwebserver.MockWebServer
import okhttp3.mockwebserver.RecordedRequest... | 3 | Kotlin | 4 | 9 | 503388337d8d2226ef6705d00a9b8cb5c42c5dd4 | 2,470 | android-sdk | ISC License |
prime-router/src/main/kotlin/transport/SoapTransport.kt | CDCgov | 304,423,150 | false | {"Kotlin": 5417139, "CSS": 3370586, "TypeScript": 1881870, "Java": 1326278, "HCL": 282334, "MDX": 140844, "PLpgSQL": 77695, "Shell": 69067, "HTML": 68387, "SCSS": 66843, "Smarty": 51325, "RouterOS Script": 17080, "Python": 13724, "Makefile": 8166, "JavaScript": 8003, "Dockerfile": 3127} | package gov.cdc.prime.router.transport
import com.google.common.base.Preconditions
import com.microsoft.azure.functions.ExecutionContext
import gov.cdc.prime.router.Receiver
import gov.cdc.prime.router.Report
import gov.cdc.prime.router.ReportId
import gov.cdc.prime.router.SoapTransportType
import gov.cdc.prime.router... | 978 | Kotlin | 40 | 71 | 81f5d3c284982ccdb7f24f36fc69fdd8fac2a919 | 13,450 | prime-reportstream | Creative Commons Zero v1.0 Universal |
egklib/src/commonMain/kotlin/electionguard/json2/ElementsJson.kt | votingworks | 425,905,229 | false | null | package electionguard.json2
import electionguard.core.Base16.fromHex
import electionguard.core.Base16.toHex
import electionguard.core.ElementModP
import electionguard.core.ElementModQ
import electionguard.core.GroupContext
import electionguard.core.UInt256
import kotlinx.serialization.*
import kotlinx.serialization.de... | 35 | null | 3 | 8 | 4e759afe9d57fa8f8beea82c3b78b920351023d8 | 3,865 | electionguard-kotlin-multiplatform | MIT License |
PumpkinLibrary/src/commonMain/kotlin/com/pumpkin/core/Debug.kt | FauxKiwi | 315,724,386 | false | null | package com.pumpkin.core
import glm.Vec4
object Debug {
private val coreLogger = Logger("Pumpkin")
private val appLogger = Logger("Application")
fun subscribe(callback: LoggerCallback) {
coreLogger.subscribers.add(callback)
appLogger.subscribers.add(callback)
}
fun setLogMinLevel... | 0 | Kotlin | 0 | 2 | b384f2a430c0f714237e07621a01f094d9f5ee75 | 4,119 | Pumpkin-Engine | Apache License 2.0 |
app/src/main/java/com/example/lunchtray/ui/AccompanimentMenuScreen.kt | dungd200803btvn | 636,049,629 | false | null |
package com.example.lunchtray.ui
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.tooling.preview.Preview
import com.example.lunchtray.datasource.DataSource
import com.example.lunchtray.model.MenuItem
import com.example.lunchtray.model.MenuItem.AccompanimentIte... | 0 | Kotlin | 0 | 0 | e68f06b8016c313658e0f069515a549e07ada977 | 1,046 | agregarPedido | Apache License 2.0 |
data/src/main/java/com/foobarust/data/mappers/CheckoutMapper.kt | foobar-UST | 285,792,732 | false | null | package com.foobarust.data.mappers
import com.foobarust.data.models.checkout.PaymentMethodDto
import com.foobarust.data.models.checkout.PlaceOrderResponse
import com.foobarust.domain.models.checkout.PaymentMethod
import com.foobarust.domain.models.checkout.PlaceOrderResult
import javax.inject.Inject
/**
* Created by... | 0 | Kotlin | 2 | 2 | b4358ef0323a0b7a95483223496164e616a01da5 | 834 | foobar-android | MIT License |
srt/src/main/java/com/pedro/srt/srt/packets/control/ControlType.kt | pedroSG94 | 79,667,969 | false | null | /*
* Copyright (C) 2024 pedroSG94.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 87 | null | 772 | 2,545 | eca59948009d5a7b564f9a838c149b850898d089 | 1,076 | RootEncoder | Apache License 2.0 |
year2019/day24/bugs/src/main/kotlin/com/curtislb/adventofcode/year2019/day24/bugs/BugGrid.kt | curtislb | 226,797,689 | false | {"Kotlin": 2230363} | package com.curtislb.adventofcode.year2019.day24.bugs
import java.io.File
/**
* A fixed-size grid containing bugs that may die off or infest other spaces over time.
*
* @param biodiversity A number that uniquely identifies the positions of all bugs in the grid.
*/
@JvmInline
value class BugGrid(val biodiversity: ... | 0 | Kotlin | 1 | 1 | 06ddf047ea59b1383afd4596e2bf2607d750a324 | 7,647 | AdventOfCode | MIT License |
avropoet-gradle/src/main/kotlin/com/sksamuel/avropoet/encoders.kt | sksamuel | 393,395,886 | false | null | @file:Suppress("WHEN_ENUM_CAN_BE_NULL_IN_JAVA")
package com.sksamuel.avropoet
import com.squareup.kotlinpoet.CodeBlock
import org.apache.avro.LogicalTypes
import org.apache.avro.Schema
fun encode(schema: Schema, name: String): CodeBlock {
return when (schema.type) {
Schema.Type.RECORD -> encodeRecord(name)
... | 0 | null | 0 | 2 | b7f37979cfef443c4a7ad0b012d687a889628e9b | 2,720 | avropoet | Apache License 2.0 |
avropoet-gradle/src/main/kotlin/com/sksamuel/avropoet/encoders.kt | sksamuel | 393,395,886 | false | null | @file:Suppress("WHEN_ENUM_CAN_BE_NULL_IN_JAVA")
package com.sksamuel.avropoet
import com.squareup.kotlinpoet.CodeBlock
import org.apache.avro.LogicalTypes
import org.apache.avro.Schema
fun encode(schema: Schema, name: String): CodeBlock {
return when (schema.type) {
Schema.Type.RECORD -> encodeRecord(name)
... | 0 | null | 0 | 2 | b7f37979cfef443c4a7ad0b012d687a889628e9b | 2,720 | avropoet | Apache License 2.0 |
agp-7.1.0-alpha01/tools/base/lint/libs/lint-api/src/main/java/com/android/tools/lint/detector/api/Api.kt | jomof | 502,039,754 | false | {"Java": 35519326, "Kotlin": 22849138, "C++": 2171001, "HTML": 1377915, "Starlark": 915536, "C": 141955, "Shell": 110207, "RenderScript": 58853, "Python": 25635, "CMake": 18109, "Batchfile": 12180, "Perl": 9310, "Dockerfile": 5690, "Makefile": 4535, "CSS": 4148, "JavaScript": 3488, "PureBasic": 2359, "GLSL": 1628, "AID... | /*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 1 | Java | 1 | 0 | 9e3475f6d94cb3239f27ed8f8ee81b0abde4ef51 | 1,626 | CppBuildCacheWorkInProgress | Apache License 2.0 |
tools/code-generator/src/main/kotlin/io/islandtime/codegen/generators/ConstantsGenerator.kt | erikc5000 | 202,192,185 | false | null | package io.islandtime.codegen.generators
import com.squareup.kotlinpoet.FileSpec
import com.squareup.kotlinpoet.KModifier
import io.islandtime.codegen.SingleFileGenerator
import io.islandtime.codegen.descriptions.TemporalUnitConversion
import io.islandtime.codegen.descriptions.TemporalUnitDescription
import io.islandt... | 14 | null | 6 | 76 | 78f8d1c9e3fc6697f619570dcc6373f838424cb5 | 1,487 | island-time | Apache License 2.0 |
buildSrc/src/main/kotlin/Versions.kt | Flank | 84,221,974 | false | null | object Versions {
// https://github.com/getsentry/sentry-java/releases
const val SENTRY = "5.4.1"
// https://github.com/mixpanel/mixpanel-java/releases
const val MIXPANEL = "1.5.0"
// https://github.com/3breadt/dd-plist/releases
const val DD_PLIST = "1.23"
// https://github.com/jeremymail... | 56 | null | 119 | 649 | 2a4816ca953b1273e87ecf4b0a8c46bf5f4e795c | 3,986 | flank | Apache License 2.0 |
bluetape4k/core/src/test/kotlin/io/bluetape4k/utils/SingletonHolderTest.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.utils
import io.bluetape4k.junit5.output.InMemoryLogbackAppender
import io.bluetape4k.logging.KotlinLogging
import io.bluetape4k.logging.debug
import org.amshove.kluent.shouldBeEqualTo
import org.amshove.kluent.shouldContain
import org.junit.jupiter.api.Test
class SingletonHolderTest {
clas... | 0 | Kotlin | 0 | 1 | ce3da5b6bddadd29271303840d334b71db7766d2 | 1,103 | bluetape4k | MIT License |
tests/value/src/jsTest/kotlin/com/test/example/NodeFilterTest.kt | turansky | 279,976,108 | false | {"Kotlin": 148063, "JavaScript": 1520, "Shell": 459, "HTML": 302} | package com.test.example
import kotlin.test.Test
class NodeFilterTest {
@Test
fun test() {
assertEquals(1, NodeFilter.FILTER_ACCEPT)
}
}
| 0 | Kotlin | 7 | 53 | 627c6ecc6ac5406a95cdabd3078237ec371946d4 | 159 | seskar | Apache License 2.0 |
plugins/git4idea/src/git4idea/index/actions/GitStageCompareWithVersionAction.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 git4idea.index.actions
import com.intellij.diff.DiffDialogHints
import com.intellij.diff.DiffManager
import com.intellij.diff.chains.SimpleDiffRequestChain
import com.intellij.diff.chains.Si... | 284 | null | 5162 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 3,262 | intellij-community | Apache License 2.0 |
src/main/kotlin/com/atlassian/performance/tools/aws/api/Storage.kt | atlassian-labs | 314,701,354 | false | {"Kotlin": 143884} | package com.atlassian.performance.tools.aws.api
import com.amazonaws.regions.Regions
import com.amazonaws.services.s3.AmazonS3
import com.amazonaws.services.s3.model.ListObjectsV2Request
import com.amazonaws.services.s3.model.ListObjectsV2Result
import com.atlassian.performance.tools.io.api.copy
import com.atlassian.p... | 0 | Kotlin | 1 | 2 | aa41e0843b6beaf4e4f711f5cce6839a1deffa82 | 4,301 | aws-resources | Apache License 2.0 |
examples/src/tl/telegram/InputStickeredMedia.kt | andreypfau | 719,064,910 | false | {"Kotlin": 62259} | // This file is generated by TLGenerator.kt
// Do not edit manually!
package tl.telegram
import io.github.andreypfau.tl.serialization.TLCombinatorId
import kotlin.jvm.JvmName
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.JsonClassDiscriminator
@Ser... | 0 | Kotlin | 0 | 1 | 11f05ad1f977235e3e360cd6f6ada6f26993208e | 993 | tl-kotlin | MIT License |
core/src/main/java/com/crocodic/core/data/CoreSession.kt | yzzzd | 392,866,678 | false | null | package com.crocodic.core.data
import android.content.Context
import android.content.SharedPreferences
import androidx.security.crypto.EncryptedSharedPreferences
import androidx.security.crypto.MasterKey
/**
* Created by @yzzzd on 4/22/18.
*/
open class CoreSession(context: Context) {
companion object {
... | 0 | null | 3 | 3 | 9636aaebdaa75b36f0721ceb500c624cab0696d7 | 2,068 | androidcore | Apache License 1.1 |
kt/godot-library/src/main/kotlin/godot/gen/godot/PopupMenu.kt | utopia-rise | 289,462,532 | false | {"Kotlin": 1549917, "GDScript": 535642, "C++": 403741, "C": 13152, "C#": 10278, "Shell": 7406, "Java": 2165, "CMake": 939, "Python": 75} | // THIS FILE IS GENERATED! DO NOT EDIT IT MANUALLY!
@file:Suppress("PackageDirectoryMismatch", "unused", "FunctionName", "RedundantModalityModifier",
"UNCHECKED_CAST", "JoinDeclarationAndAssignment", "USELESS_CAST",
"RemoveRedundantQualifierName", "NOTHING_TO_INLINE", "NON_FINAL_MEMBER_IN_OBJECT",
"Redundan... | 64 | Kotlin | 39 | 580 | fd1af79075e7b918200aba3302496b70c76a2028 | 52,975 | godot-kotlin-jvm | MIT License |
src/main/kotlin/org/planx/managing/remote/admin/RabbitmqApiClient.kt | PlanX-Universe | 511,478,531 | false | null | package org.planx.managing.remote.admin
import org.planx.managing.config.http.ApplicationHeaders
import org.planx.managing.remote.admin.model.RabbitConnectionModel
import org.springframework.beans.factory.annotation.Value
import org.springframework.boot.autoconfigure.amqp.RabbitProperties
import org.springframework.st... | 0 | Kotlin | 0 | 0 | 66fd9cb343f4ea5dc4c1835a6ccf43dcfe6a91f3 | 1,378 | managing-service | MIT License |
src/test/kotlin/no/nav/familie/ef/sak/UnitTestLauncher.kt | blommish | 359,371,467 | false | {"YAML": 13, "Ignore List": 2, "CODEOWNERS": 1, "Maven POM": 1, "Dockerfile": 1, "Text": 1, "Markdown": 1, "XML": 4, "JSON": 21, "Kotlin": 394, "Java": 1, "GraphQL": 8, "SQL": 43, "Shell": 1} | package no.nav.familie.ef.sak
import no.nav.familie.ef.sak.config.ApplicationConfig
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration
import org.springframework.boot.builder.SpringApplicationBuilder
import org.s... | 8 | null | 2 | 1 | 0e850df593c82a910c68c2393e6d2f30fc49eaa7 | 732 | familie-ef-sak | MIT License |
src/main/java/no/stunor/origo/eventorapi/model/event/Document.kt | stunor92 | 763,985,971 | false | {"Kotlin": 188540, "Dockerfile": 595} | package no.stunor.origo.eventorapi.model.event
import java.io.Serializable
data class EventorDocument (
var name: String = "",
var url: String = "",
var type: String = ""
) : Serializable
| 0 | Kotlin | 0 | 0 | 452d6357734e43c7c4d55de6a3add15ed0431805 | 214 | OriGo-EventorApi | MIT License |
src/main/kotlin/com/chattriggers/ctjs/engine/langs/js/Impl.kt | ChatTriggers | 103,319,998 | false | null | package com.chattriggers.ctjs.engine.langs.js
import com.chattriggers.ctjs.engine.ILoader
import com.chattriggers.ctjs.engine.IRegister
import com.chattriggers.ctjs.minecraft.objects.display.Display
import com.chattriggers.ctjs.minecraft.objects.display.DisplayLine
import com.chattriggers.ctjs.minecraft.objects.gui.Gu... | 8 | null | 28 | 96 | d2c1f8da6110f54d1dd216c3eadade39fc76052d | 2,687 | ChatTriggers | MIT License |
src/test/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/integration/ApplicationReportsTest.kt | ministryofjustice | 515,276,548 | false | null | package uk.gov.justice.digital.hmpps.approvedpremisesapi.integration
import org.assertj.core.api.Assertions.assertThat
import org.jetbrains.kotlinx.dataframe.DataFrame
import org.jetbrains.kotlinx.dataframe.api.ExcessiveColumns
import org.jetbrains.kotlinx.dataframe.api.convertTo
import org.jetbrains.kotlinx.dataframe... | 32 | null | 2 | 5 | 5b02281acd56772dc5d587f8cd4678929a191ac0 | 34,524 | hmpps-approved-premises-api | MIT License |
app/infrastructure/src/main/kotlin/net/averak/gsync/infrastructure/mybatis/type_handler/LocalDateTimeTypeHandler.kt | averak | 697,429,765 | false | {"Kotlin": 142151, "Groovy": 109549, "Java": 4418, "Makefile": 1696, "Dockerfile": 287, "Shell": 246} | package net.averak.gsync.infrastructure.mybatis.type_handler
import org.apache.ibatis.type.BaseTypeHandler
import org.apache.ibatis.type.JdbcType
import org.apache.ibatis.type.MappedTypes
import java.sql.CallableStatement
import java.sql.PreparedStatement
import java.sql.ResultSet
import java.sql.Timestamp
import java... | 23 | Kotlin | 0 | 1 | 504d350a5af2726693c3d154340c0a4f4b5db37b | 1,205 | gsync | MIT License |
app/src/main/java/ru/alexmaryin/spacextimes_rx/data/model/parts/Cargo.kt | alexmaryin | 324,776,487 | false | null | package ru.alexmaryin.spacextimes_rx.data.model.parts
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
data class Cargo(
@Json(name = "solar_array") val solarArray: Int,
@Json(name = "unpressurized_cargo") val unpressurized: Boolean
) | 1 | Kotlin | 2 | 1 | 556bcd18d9c60c8922055a11976056cad812856a | 297 | spacextimes | Apache License 2.0 |
src/main/kotlin/edu/csh/chase/kgeojson/models/Polygon.kt | chaseberry | 43,023,920 | false | null | package edu.csh.chase.kgeojson.models
class Polygon(val ring: Line, val holes: Array<Line>) | 0 | Kotlin | 0 | 1 | af5a02485241acf2717065957b28cccd3bfeb9d9 | 92 | KGeoJson | Apache License 2.0 |
src/main/kotlin/kotlin/internal/InlineOnly.kt | lppedd | 208,670,987 | false | null | package kotlin.internal
/**
* Specifies that this function should not be called directly without inlining.
*/
@Target(
AnnotationTarget.FUNCTION,
AnnotationTarget.PROPERTY,
AnnotationTarget.PROPERTY_GETTER,
AnnotationTarget.PROPERTY_SETTER,
)
@Retention(AnnotationRetention.BINARY)
internal annotation... | 34 | null | 19 | 333 | 5d55768a47a31a10147e7d69f2be261d028d1b85 | 338 | idea-conventional-commit | MIT License |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appsync/AppsyncFunctionProps.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.appsync
import io.cloudshiftdev.awscdk.common.CdkDslMarker
import io.cloudshiftdev.awscdk.common.CdkO... | 4 | null | 0 | 4 | 9bf6f9403f8b24b070d23a2f895811be72f5d828 | 6,749 | kotlin-cdk-wrapper | Apache License 2.0 |
model-api-gen-gradle-test/src/test/kotlin/org/modelix/modelql/typed/TypedModelQLTest.kt | modelix | 533,211,353 | false | {"Kotlin": 1864496, "JetBrains MPS": 345438, "TypeScript": 46778, "Java": 25036, "Gherkin": 7693, "JavaScript": 4774, "CSS": 2812, "Shell": 1922, "Dockerfile": 314, "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... | 44 | Kotlin | 6 | 4 | dc419d5b575d23a620a914bbb9455484e4611885 | 8,214 | modelix.core | Apache License 2.0 |
android/quest/src/main/java/org/smartregister/fhircore/quest/ui/login/LoginActivity.kt | opensrp | 339,242,809 | false | null | /*
* Copyright 2021-2024 Ona Systems, 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 required by applicable law o... | 198 | null | 56 | 56 | 64a55e6920cb6280cf02a0d68152d9c03266518d | 5,250 | fhircore | Apache License 2.0 |
循环和区间/src/demo4.kt | zjgyb | 127,631,036 | false | null | fun main(args: Array<String>) {
var num1 = 1 .. 10
var num2 = num1.reversed()
for (num in num2) {
println(num)
}
var count = num2.count()
println(count)
} | 0 | Kotlin | 0 | 0 | eeadf39595a52d0717890668798e5c2766b39c83 | 186 | kotlin | MIT License |
plugins/kotlin/gradle/gradle-java/tests/test/org/jetbrains/kotlin/idea/codeInsight/gradle/KotlinGradlePluginVersions.kt | JetBrains | 2,489,216 | 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 org.jetbrains.kotlin.idea.codeInsight.gradle
import org.jetbrains.kotlin.tooling.core.KotlinToolingVersion
import org.jetbrains.kotlin.tooling.core.isStable
object KotlinGradlePluginVersion... | 236 | null | 4946 | 15,650 | 32f33d7b7126014b860912a5b6088ffc50fc241d | 658 | intellij-community | Apache License 2.0 |
things/src/main/java/net/bonysoft/doityourselfie/ExceptionHandler.kt | danybony | 137,995,324 | false | {"Gradle": 10, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 9, "Batchfile": 1, "Markdown": 2, "Proguard": 7, "Java": 5, "XML": 40, "Kotlin": 57, "JSON": 5} | package net.bonysoft.doityourselfie
import android.app.Activity
import android.app.AlarmManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
class ExceptionHandler(private val activity: Activity) : Thread.UncaughtExceptionHandler {
override fun uncaughtException(t... | 1 | Kotlin | 0 | 3 | 75f172b282d5df41325f06f9ff034f97be773ed1 | 965 | do-it-yourselfie | Apache License 2.0 |
Pokedex/app/src/main/java/com/ivettevaldez/pokedex/global/di/application/AppComponent.kt | ivettevaldez | 635,742,104 | false | {"Kotlin": 70978} | package com.ivettevaldez.pokedex.global.di.application
import com.ivettevaldez.pokedex.global.PokedexApplication
import com.ivettevaldez.pokedex.global.di.activity.ActivityComponent
import dagger.BindsInstance
import dagger.Component
@AppScope
@Component(modules = [AppModule::class])
interface AppComponent {
fun... | 0 | Kotlin | 0 | 0 | f41fc30ae76558cd90b07464791be84f03406c52 | 609 | pokedex | Apache License 2.0 |
android/app/src/main/kotlin/com/mishka/mishkaCmsAndroidFlutter/MainActivity.kt | husen-hn | 442,097,455 | true | {"Dart": 24015, "Kotlin": 139} | package com.mishka.mishkaCmsAndroidFlutter
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 0 | 8e92aced30d2497e98a012df82ae21f95f5a732e | 139 | mishka-cms-android-flutter | Apache License 2.0 |
src/main/kotlin/no/nav/familie/ef/sak/tilbakekreving/TilbakekrevingClient.kt | navikt | 206,805,010 | false | null | package no.nav.familie.ef.sak.tilbakekreving
import no.nav.familie.ef.sak.infrastruktur.featuretoggle.FeatureToggleService
import no.nav.familie.ef.sak.infrastruktur.http.AbstractRestWebClient
import no.nav.familie.kontrakter.felles.Fagsystem
import no.nav.familie.kontrakter.felles.Ressurs
import no.nav.familie.kontra... | 8 | Kotlin | 2 | 0 | d1d8385ead500c4d24739b970940af854fa5fe2c | 5,121 | familie-ef-sak | MIT License |
app/src/main/java/com/jiwoo/choi/nanumcar/ui/dialogs/ParkDialog.kt | banziha104 | 149,975,830 | false | null | package com.jiwoo.choi.nanumcar.ui.dialogs
import android.app.Activity
import android.app.Dialog
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.view.View
import android.view.Window
import com.jiwoo.choi.nanumcar.R
import com.jiwoo.choi.nanumcar.api.model.park.Result
import... | 1 | Kotlin | 0 | 0 | ca87ca89b03af82f0e525e54a9b036ebaff4590a | 1,787 | NanumCar_And | Apache License 2.0 |
cupertino-icons-extended/src/commonMain/kotlin/io/github/alexzhirkevich/cupertino/icons/outlined/CursorarrowRays.kt | alexzhirkevich | 636,411,288 | false | null | /*
* Copyright (c) 2023-2024. Compose Cupertino project and open source contributors.
*
* 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... | 18 | null | 31 | 848 | 54bfbb58f6b36248c5947de343567903298ee308 | 5,928 | compose-cupertino | Apache License 2.0 |
backend.native/tests/codegen/boxing/boxing7.kt | JetBrains | 58,957,623 | false | null | /*
* Copyright 2010-2018 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 codegen.boxing.boxing7
import kotlin.test.*
fun printInt(x: Int) = println(x)
fun foo(arg: Any) {
val argAsInt = try {
arg as Int
} catch (e:... | 162 | null | 625 | 7,100 | 9fb0a75ab17e9d8cddd2c3d1802a1cdd83774dfa | 436 | kotlin-native | Apache License 2.0 |
mvi-presenter/src/main/java/pl/valueadd/mvi/presenter/IMviPresenter.kt | valueadd-poland | 238,159,445 | false | null | package pl.valueadd.mvi.presenter
interface IMviPresenter<V : IBaseView<*, *, *>> {
fun initializeState(view: V)
fun attachView(view: V)
fun detachView()
fun destroy()
} | 6 | Kotlin | 0 | 3 | 7d52819415c10e85dc6806d41433ad7ced63b5e9 | 190 | mvi-valueadd | Apache License 2.0 |
src/main/kotlin/ru/yoomoney/tech/grafana/dsl/json/JsonUtils.kt | yoomoney | 158,901,967 | false | {"Kotlin": 378524, "Shell": 644} | package ru.yandex.money.tools.grafana.dsl.json
import org.json.JSONArray
import org.json.JSONObject
import ru.yandex.money.tools.grafana.dsl.time.Duration
operator fun JSONObject.set(key: String, value: Any?) {
this.put(key, value)
}
class JsonBuilder(private val properties: MutableMap<String, Any?> = mutableMap... | 2 | Kotlin | 8 | 53 | 58ab4e2e70e544c4160b97b4dc64e73235a4bd00 | 1,789 | grafana-dashboard-dsl | MIT License |
app/src/main/java/com/unblu/brandeableagentapp/model/AuthenticationType.kt | unblu | 749,823,687 | false | {"Kotlin": 107771, "Java": 452} | package com.unblu.brandeableagentapp.model
sealed class AuthenticationType(var name: String) {
object Direct : AuthenticationType("Direct")
object OAuth : AuthenticationType("OAuth")
object WebProxy : AuthenticationType("WebProxy")
}
fun authTypeFromName(string: String) :AuthenticationTyp... | 0 | Kotlin | 0 | 0 | ef75696c4c489c2c2f8212cad7fb7ac7be19c17e | 601 | android-brandable-agent-app | Apache License 2.0 |
idea/jvm-debugger/jvm-debugger-coroutine/src/org/jetbrains/kotlin/idea/debugger/coroutine/command/CoroutineBuildFrameCommand.kt | arbazpirwani | 233,908,049 | false | null | /*
* Copyright 2010-2019 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.idea.debugger.coroutine.command
import com.intellij.debugger.engine.DebugProcess... | 1 | null | 1 | 1 | 6be72321d03e3a5ff761a65aea4b7fa51e29445c | 6,202 | kotlin | Apache License 2.0 |
app/src/main/java/com/github/jayteealao/pastelmusic/app/mediaservice/MusicCommands.kt | jayteealao | 530,847,226 | false | {"Kotlin": 194323} | package com.github.jayteealao.pastelmusic.app.mediaservice
object MusicCommands {
const val REPEAT_SHUFFLE = "repeat_shuffle"
const val REPEAT = "repeat"
const val REPEAT_ONE = "repeat_one"
const val SHUFFLE = "shuffle"
} | 0 | Kotlin | 0 | 0 | 34294059654b8fdbc194fe4df419f5118a523070 | 238 | PastelMusic | MIT License |
kotest-property/src/jvmTest/kotlin/com/sksamuel/kotest/property/arbitrary/StringArbTest.kt | swanandvk | 268,596,932 | true | {"Kotlin": 2715433, "HTML": 423, "Java": 145} | package com.sksamuel.kotest.property.arbitrary
import io.kotest.core.spec.style.FunSpec
import io.kotest.property.Arb
import io.kotest.property.arbitrary.arabic
import io.kotest.property.arbitrary.armenian
import io.kotest.property.arbitrary.ascii
import io.kotest.property.arbitrary.cyrillic
import io.kotest.property.... | 5 | Kotlin | 0 | 1 | 5f0d6c5a7aa76ef373d62f2a4571ae89ae0ab21e | 3,835 | kotest | Apache License 2.0 |
app/src/main/java/com/bruhascended/organiso/settings/CategorySettingsFragment.kt | ChiragKalra | 272,775,912 | false | null | package com.bruhascended.organiso.settings
import android.app.AlertDialog
import android.content.SharedPreferences
import android.os.Bundle
import android.view.*
import androidx.fragment.app.Fragment
import androidx.preference.PreferenceManager
import androidx.recyclerview.widget.ItemTouchHelper
import androidx.recycl... | 2 | Kotlin | 8 | 26 | 044536248f813f75afdbbd41c65eabf80f39946a | 6,474 | Organiso | Apache License 2.0 |
tools/intellij.tools.ide.metrics.collector/src/com/intellij/tools/ide/metrics/collector/analysis/CompareSetting.kt | JetBrains | 2,489,216 | false | null | package com.intellij.tools.ide.metrics.collector.analysis
data class CompareSetting(
val compareWithPrevResults: Boolean = false,
val table: String = "",
val notifierHook: ((Conclusion) -> Unit) = { }
) {
companion object {
val notComparing = CompareSetting(false)
val withComparing = CompareSetting(tru... | 7 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 328 | intellij-community | Apache License 2.0 |
ext-auth-provider/src/main/kotlin/org/ostelco/ext/authprovider/AuthProviderApp.kt | ostelco | 112,729,477 | false | {"Gradle Kotlin DSL": 51, "YAML": 65, "Go": 13, "Go Checksums": 1, "Markdown": 48, "Shell": 48, "Text": 3, "Ignore List": 24, "Batchfile": 1, "Go Module": 1, "Kotlin": 372, "JSON": 24, "Dockerfile": 11, "XML": 28, "Java": 11, "Java Properties": 3, "Protocol Buffer": 2, "Python": 2, "SQL": 4, "PLpgSQL": 2, "GraphQL": 2,... | package org.ostelco.ext.authprovider
import io.dropwizard.Application
import io.dropwizard.Configuration
import io.dropwizard.setup.Environment
import io.jsonwebtoken.Jwts
import javax.validation.Valid
import javax.ws.rs.GET
import javax.ws.rs.HeaderParam
import javax.ws.rs.Path
import javax.ws.rs.Produces
import java... | 23 | Kotlin | 13 | 37 | b072ada4aca8c4bf5c3c2f6fe0d36a5ff16c11af | 1,310 | ostelco-core | Apache License 2.0 |
src/main/kotlin/kitowashere/boiled_witchcraft/common/world/glyph/RingGlyph.kt | AugustoMegener | 750,093,937 | false | {"Kotlin": 47328, "Java": 2932} | package kitowashere.boiled_witchcraft.common.world.glyph
import kitowashere.boiled_witchcraft.common.world.glyph.data.GlyphData
import org.joml.Vector2i
import kotlin.math.abs
object RingGlyph : Glyph(Array(8) { it + 2}) {
override fun newData() = GlyphData(this)
override fun isHollow(data: GlyphData) = true... | 0 | Kotlin | 0 | 2 | ec7f4c8b83b53f983d2a6c83fb2e290d8dddbdc8 | 659 | boiled_witchcraft | MIT License |
faucet/src/main/kotlin/org/basinmc/faucet/math/Vector3.kt | BasinMC | 59,916,990 | false | null | /*
* Copyright 2019 Johannes Donath <johannesd@torchmind.com>
* and other copyright owners as documented in the project's IP log.
*
* 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
*
* ... | 1 | Kotlin | 1 | 12 | 151c6a1897d80d2808387f46925cb470f2292537 | 2,496 | Basin | Apache License 2.0 |
app/src/main/java/com/vsn/dialogs/MainActivity.kt | VikramSN | 199,631,370 | false | null | package com.vsn.dialogs
import android.os.Build
import android.os.Bundle
import androidx.annotation.RequiresApi
import androidx.appcompat.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
@RequiresApi(Build.VERSION_CODES.LOLLIPOP)
override... | 1 | Kotlin | 0 | 0 | 433dc196cf6858cbac5336d78e4b532de39fd76e | 465 | SweetDialog | MIT License |
compiler/fir/analysis-tests/testData/resolve/expresssions/genericDecorator.kt | JetBrains | 3,432,266 | false | null | // FIR_DISABLE_LAZY_RESOLVE_CHECKS
// FILE: LookupElement.java
public abstract class LookupElement {
public abstract String getLookupString();
}
// FILE: Decorator.java
public abstract class Decorator<T extends LookupElement> extends LookupElement {
public T getDelegate() {
return null;
}
}
// F... | 7 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 482 | kotlin | Apache License 2.0 |
ktmeta-app/src/main/kotlin/io/github/hochikong/ktmeta/swingui/controller/dialogs/SetESMapping.kt | DigiSTALKER | 285,779,525 | false | {"Java": 656309, "Kotlin": 168337} | /*
* Copyright 2021 Hochikong
* 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, sof... | 1 | Java | 1 | 3 | 08bde12cb3f1767b21d53255e72debdab3a8225f | 1,997 | KtMeta | Apache License 2.0 |
app/src/main/java/com/lttrung/dormitory/ui/adapters/RoomPagerAdapter.kt | lttrung2001 | 622,933,615 | false | null | package com.lttrung.dormitory.ui.adapters
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.viewpager2.adapter.FragmentStateAdapter
import com.lttrung.dormitory.ui.main.dashboard.DashboardFragment
import com.lttrung.dormitory.ui.main.home.ViewWaterBillsFragment
import ... | 0 | Kotlin | 0 | 0 | 82a1fab3027ad106de61e7ff00c8331da227e92d | 921 | dormitory | MIT License |
app/src/main/java/com/prime/player/Home.kt | prime-zs | 506,656,610 | false | null | package com.prime.player
import androidx.activity.compose.BackHandler
import androidx.compose.animation.*
import androidx.compose.animation.core.tween
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.fillMaxSize
import andro... | 0 | null | 0 | 4 | c39917fe70d1650dbb0a5ce7288c1a579dc295a4 | 5,270 | Audiofy2 | Apache License 2.0 |
src/main/kotlin/io/unthrottled/amii/config/PluginSettings.kt | ani-memes | 303,354,188 | false | null | package io.unthrottled.amii.config
import java.net.URI
data class ConfigSettingsModel(
var allowedExitCodes: String,
var positiveExitCodes: String,
var idleTimeoutInMinutes: Long,
var silenceTimeoutInMinutes: Long,
var memeDisplayAnchorValue: String,
var idleMemeDisplayAnchorValue: String,
var memeDispl... | 7 | null | 5 | 257 | c9a4ef10f6e1a5ce68dc3a007b45cadbc33deed0 | 3,167 | AMII | Apache License 2.0 |
src/test/kotlin/no/nav/hm/grunndata/importapi/security/TokenAPIControllerTest.kt | navikt | 585,058,090 | false | {"Kotlin": 170637, "Dockerfile": 170, "Shell": 41} | package no.nav.hm.grunndata.importapi.security
import io.kotest.matchers.nulls.shouldNotBeNull
import io.kotest.matchers.shouldBe
import io.micronaut.http.HttpStatus
import io.micronaut.test.extensions.junit5.annotation.MicronautTest
import kotlinx.coroutines.runBlocking
import no.nav.hm.grunndata.importapi.supplier.S... | 0 | Kotlin | 0 | 1 | eb4cfd13098908713255032dd6fdd8ab55b26911 | 1,557 | hm-grunndata-import | MIT License |
tabscrollattacherlib/src/main/java/com/iammert/tabscrollattacherlib/RecyclerViewExt.kt | iammert | 225,558,728 | false | null | package chooongg.box.core.ext
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import chooongg.box.core.widget.tabLayoutAttache.ScrollMethod
internal fun RecyclerView.scrollToPosition(position: Int, scrollMethod: ScrollMethod) {
when (scrollMethod) {
... | 3 | Kotlin | 16 | 222 | 75b40b399db307547435efdbd961aa4430f61a65 | 1,310 | TabScrollAttacher | Apache License 2.0 |
android/app/src/main/java/kr/pnu/ga2019/presentation/main/MainViewModel.kt | ehdrms2034 | 250,954,396 | false | null | /*
* Created by <NAME> on 2020/06/20 ..
*/
package kr.pnu.ga2019.presentation.main
import kr.pnu.ga2019.presentation.base.BaseViewModel
class MainViewModel : BaseViewModel() {
/* explicitly empty */
}
| 20 | Kotlin | 0 | 2 | c07515a4b1cfd7fc89c227bb795d451a06a89252 | 210 | SmartPathGuide | MIT License |
keel-orca/src/test/kotlin/com/netflix/spinnaker/keel/orca/OrcaResponseDeserializationTests.kt | spinnaker | 107,462,081 | false | null | package com.netflix.spinnaker.keel.orca
import com.fasterxml.jackson.module.kotlin.readValue
import com.netflix.spinnaker.keel.serialization.configuredObjectMapper
import dev.minutest.junit.JUnit5Minutests
import dev.minutest.rootContext
import strikt.api.expect
import strikt.assertions.isEqualTo
import java.time.Dura... | 2 | Kotlin | 135 | 99 | 956653ad493c386b88621eaf48ddc939a6372574 | 1,425 | keel | Apache License 2.0 |
libraries/csm.cloud.project.avro/src/main/kotlin/com/bosch/pt/csm/cloud/projectmanagement/messageattachment/message/MessageAttachmentAggregateAvro.kt | boschglobal | 805,348,245 | false | {"Kotlin": 13156190, "HTML": 274761, "Go": 184388, "HCL": 158560, "Shell": 117666, "Java": 52634, "Python": 51306, "Dockerfile": 10348, "Vim Snippet": 3969, "CSS": 344} | /*
* ************************************************************************
*
* Copyright: <NAME> Power Tools GmbH, 2018 - 2021
*
* ************************************************************************
*/
package com.bosch.pt.csm.cloud.projectmanagement.messageattachment.message
import com.bosch.pt.... | 0 | Kotlin | 3 | 9 | 9f3e7c4b53821bdfc876531727e21961d2a4513d | 1,277 | bosch-pt-refinemysite-backend | Apache License 2.0 |
redwood-tooling-codegen/src/main/kotlin/app/cash/redwood/tooling/codegen/kpx.kt | cashapp | 305,409,146 | false | {"Kotlin": 2089205, "Swift": 20649, "Objective-C": 4497, "Java": 1583, "Shell": 253, "HTML": 235, "C": 129} | /*
* Copyright (C) 2024 Square, 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 required by applicable law or agre... | 108 | Kotlin | 73 | 1,648 | 3f14e622c2900ec7e0dfaff5bd850c95a7f29937 | 1,314 | redwood | Apache License 2.0 |
compiler/testData/codegen/box/nullCheckOptimization/kt49136a.kt | JetBrains | 3,432,266 | false | null | // https://youtrack.jetbrains.com/issue/KT-50289/EXCBADACCESS-getting-non-null-property-in-safe-call-chain
// IGNORE_NATIVE: optimizationMode=DEBUG
// IGNORE_NATIVE: optimizationMode=NO
abstract class Z {
init {
check(this)
}
abstract val b: B
}
class A(override val b: B) : Z()
class B(val c: St... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 437 | kotlin | Apache License 2.0 |
app/src/main/java/com/istu/schedule/ui/page/projfair/participation/CreateParticipationPage.kt | imysko | 498,018,609 | false | {"Kotlin": 747191} | package com.istu.schedule.ui.page.projfair.participation
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Spacer
import a... | 1 | Kotlin | 0 | 2 | f2d173de20910b03ef762ffb5cf3752cfeccf6cf | 8,504 | Schedule-ISTU | MIT License |
src/main/kotlin/no/nav/helse/flex/spreoppgave/HandterOppave.kt | navikt | 451,810,928 | false | {"Kotlin": 273479, "Dockerfile": 267} | package no.nav.helse.flex.spreoppgave
import io.micrometer.core.instrument.MeterRegistry
import no.nav.helse.flex.domain.OppdateringstypeDTO
import no.nav.helse.flex.domain.OppgaveDTO
import no.nav.helse.flex.logger
import no.nav.helse.flex.repository.OppgaveStatus
import no.nav.helse.flex.repository.SpreOppgaveDbReco... | 5 | Kotlin | 0 | 0 | da01e56e485ec2de4e9fcd200383780f43f28578 | 4,442 | sykepengesoknad-arkivering-oppgave | MIT License |
src/commonMain/kotlin/kson/models/common/APIReference.kt | DrZoddiak | 462,390,338 | false | {"Kotlin": 39104} | package kson.models.common
import kotlinx.serialization.Serializable
/**
* This is the concrete type of [IRef]
*/
@Serializable
data class APIReference(
override val index: String,
override val name: String,
override val url: String
) : IRef
| 0 | Kotlin | 0 | 1 | b9ee2e0a1bc2db4e619aa916aaafb61a6f5539da | 258 | KsonMulti | MIT License |
app/src/main/java/com/amora/myseasonalanime/data/source/remote/response/detailcharacter/DetailCharaItem.kt | irawan-r | 481,205,369 | false | null | package com.amora.myseasonalanime.data.source.remote.response.detailcharacter
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.amora.myseasonalanime.data.source.remote.response.images.Images
import com.squareup.moshi.Json
@Entity(tableName = "detail_chara")
data class DetailCharaItem(
@Json... | 0 | Kotlin | 0 | 0 | 9146fb51c53efe51441a1e201afa122b12d13e77 | 797 | my-seasonal-anime | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.