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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
identity-starter/src/main/kotlin/com/labijie/application/identity/service/IUserService.kt | hongque-pro | 309,874,586 | false | null | package com.labijie.application.identity.service
import com.labijie.application.identity.data.RoleRecord as Role
import com.labijie.application.identity.data.UserRecord as User
import com.labijie.application.identity.model.RegisterInfo
import com.labijie.application.identity.model.UserAndRoles
import com.labijie.appli... | 0 | Kotlin | 0 | 5 | c8be28b6fb0813c673de5e82c6d9bd0f3e6bb953 | 1,440 | application-framework | Apache License 2.0 |
ui/src/main/java/org/redaksi/ui/cari/CariViewModel.kt | 100nandoo | 475,824,222 | false | {"Kotlin": 108530, "Java": 34584} | package org.redaksi.ui.cari
import androidx.compose.ui.text.input.TextFieldValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.PagingData
import androidx.paging.cachedIn
import dagger.hilt.android.lif... | 0 | Kotlin | 0 | 2 | f13a8147622264c50ab86274ab5a227e05bd7308 | 2,099 | Pillar | MIT License |
src/main/kotlin/wzq/codelf/plugin/action/SearchAction.kt | Zhiqiang-Wu | 721,409,431 | false | {"Kotlin": 31403} | package wzq.codelf.plugin.action
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.wm.ToolWindowManager
/**
* @author 吴志强
* @date 2023/11/25
*/
class SearchAction : AnAction() {
override fun actionPerformed(e: AnActionEvent) {
... | 0 | Kotlin | 0 | 1 | 2d81cdbbc5ff4e14b18e7e1d72d64f8439cb665a | 525 | idea-codelf-plugin | MIT License |
app/src/main/java/com/example/sunnyweather/ui/place/PlaceViewModel.kt | AkiraKanade | 384,362,014 | false | null | package com.example.sunnyweather.ui.place
class PlaceViewModel {
} | 0 | Kotlin | 0 | 0 | 87cc08ae733b6d9fe3f3f184f226cd0a43de11ed | 67 | SunnyWeather | Apache License 2.0 |
src/main/kotlin/br/com/zup/orangetalents/compartilhado/ErrorHandler.kt | rsousaj | 383,873,611 | true | {"Kotlin": 56336} | package br.com.zup.orangetalents.compartilhado
import io.micronaut.aop.Around
import io.micronaut.aop.InterceptorBean
import kotlin.annotation.AnnotationRetention.*
import kotlin.annotation.AnnotationTarget.*
@Around
@MustBeDocumented
@Target(FUNCTION)
@Retention(RUNTIME)
annotation class ErrorHandler()
| 0 | Kotlin | 0 | 0 | c35d3cb1565c432048b44d10da7bf66bcc712617 | 307 | orange-talents-05-template-pix-keymanager-grpc | Apache License 2.0 |
services/unit-service/src/main/kotlin/org/katan/service/unit/repository/UnitEntity.kt | KatanPanel | 182,468,654 | false | null | package org.katan.service.unit.repository
import kotlinx.datetime.Instant
public interface UnitEntity {
public var nodeId: Int
public var externalId: String?
public var name: String
public var createdAt: Instant
public var updatedAt: Instant
public var deletedAt: Instant?
public var... | 5 | Kotlin | 5 | 55 | 2c4d99e277e372e78a14486748de3c3624a45cdb | 402 | Katan | Apache License 2.0 |
src/main/kotlin/sqlbuilder/pool/Drivers.kt | laurentvdl | 27,872,125 | false | null | package sqlbuilder.pool
interface Drivers {
companion object {
const val MYSQL = "com.mysql.jdbc.Driver"
const val H2 = "org.h2.Driver"
const val DB2 = "com.ibm.db2.jcc.DB2Driver"
const val ORACLE = "oracle.jdbc.OracleDriver"
}
}
| 1 | null | 2 | 6 | 4efe1dd61f6da45192a1b2741d654269616535d0 | 271 | sqlbuilder | Apache License 2.0 |
app/src/main/java/ch/abertschi/adfree/view/mod/ActiveDetectorActivity.kt | abertschi | 88,356,929 | false | null | package ch.abertschi.adfree.view.mod
import android.opengl.Visibility
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.text.Html
import android.widget.TextView
import android.view.LayoutInflater
import ch.abertschi.adfree.R
import org.jetbrains.anko.*
import android.support.v... | 22 | null | 23 | 243 | b916a9ab8a09bb5ac9bfb9e7d1cc10d7bd8dc411 | 3,943 | ad-free | Apache License 2.0 |
buildSrc/src/main/kotlin/generator/DomainGenerator.kt | iseki0 | 366,910,553 | true | {"Kotlin": 97960} | package org.hildan.chrome.devtools.build.generator
import com.squareup.kotlinpoet.*
import com.squareup.kotlinpoet.ParameterizedTypeName.Companion.parameterizedBy
import org.hildan.chrome.devtools.build.model.ChromeDPCommand
import org.hildan.chrome.devtools.build.model.ChromeDPDomain
import org.hildan.chrome.devtools... | 0 | null | 0 | 0 | 4b553ad4d92b08d879fc146f8d43569a04c037a6 | 5,399 | chrome-devtools-kotlin | MIT License |
compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/14.kt | JetBrains | 3,432,266 | false | null | // DIAGNOSTICS: -UNUSED_EXPRESSION
// SKIP_TXT
/*
* KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (POSITIVE)
*
* SECTIONS: dfa
* NUMBER: 14
* DESCRIPTION: Raw data flow analysis test
*/
// TESTCASE NUMBER: 1
fun case_1(vararg x: Int?) {
if (<!SENSELESS_COMPARISON!>x != null<!>) {
<!DEBUG_INFO_EXPRESSION_T... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,520 | kotlin | Apache License 2.0 |
src/test/kotlin/com/theapache64/stackzy/data/repo/AdbRepoTest.kt | theapache64 | 336,369,141 | false | null | package com.theapache64.stackzy.data.repo
import com.malinskiy.adam.request.pkg.Package
import com.theapache64.expekt.should
import com.theapache64.stackzy.data.local.AndroidApp
import com.theapache64.stackzy.test.FLUTTER_PACKAGE_NAME
import com.theapache64.stackzy.test.MyDaggerMockRule
import com.theapache64.stackzy.... | 24 | null | 54 | 962 | 4c7919f1c8f4b72e0dda3d41ffe6d3eda18e6896 | 3,683 | stackzy | Apache License 2.0 |
domain/src/main/kotlin/com/yossisegev/domain/entities/VideoEntity.kt | mrsegev | 122,669,273 | false | null | package com.yossisegev.domain.entities
/**
* Created by <NAME> on 11/01/2018.
*/
data class VideoEntity(
var id: String,
var name: String,
var youtubeKey: String? = null) {
companion object {
const val SOURCE_YOUTUBE = "YouTube"
const val TYPE_TRAILER = "Trailer"
}
} | 7 | Kotlin | 147 | 772 | 7df52e6c93d6932b4b58de9f4f906f86df93dce1 | 319 | MovieNight | Apache License 2.0 |
feature-staking-impl/src/main/java/jp/co/soramitsu/staking/impl/presentation/validators/ValidatorsAdapter.kt | soramitsu | 278,060,397 | false | {"Kotlin": 5738291, "Java": 18796} | package jp.co.soramitsu.staking.impl.presentation.validators
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerVie... | 15 | Kotlin | 30 | 89 | 812c6ed5465d19a0616865cbba3e946d046720a1 | 5,702 | fearless-Android | Apache License 2.0 |
solarsystem/src/main/kotlin/fail/stderr/usb/data/system/KeplerianOrbitalParametersData.kt | stderr-fail | 824,200,675 | false | {"Kotlin": 106132, "GDScript": 21392, "Java": 8583, "Shell": 446} | package fail.stderr.usb.data.system
@JvmRecord
data class KeplerianOrbitalParametersData(
/** semi-major axis in **meters** */
@JvmField
val semiMajorAxis: Double,
/** eccentricity in **dimensionless** */
@JvmField
val eccentricity: Double,
/** inclination in **radians** */
@JvmField
val inclinati... | 0 | Kotlin | 0 | 1 | 85b76f09c86bcd3c95730ea37a51e84a8c7a7ffd | 817 | untitled-space-bureau | MIT License |
app/src/main/java/com/example/startertemplet/domain/service/ApiService.kt | atharva-pardeshi | 720,217,566 | false | {"Kotlin": 24965, "Java": 181} | package com.example.startertemplet.domain.service
import com.example.startertemplet.viewModel.response.DataResponse
import retrofit2.http.GET
import retrofit2.http.Query
interface ApiService {
@GET("services/custom-software-development.html")
suspend fun getTermsOfUse(): DataResponse
}
| 0 | Kotlin | 2 | 0 | b2c4380d9855118c7079ea4390648283df97ddd4 | 298 | StarterTemplate | MIT License |
app/src/main/java/android/example/com/udacityfirstproject/ui/shoeDetails/ShoeDetailsFragment.kt | MinaWadeeBibawey | 577,851,084 | false | null | package android.example.com.udacityfirstproject.ui.shoeDetails
import android.example.com.udacityfirstproject.databinding.ShoeDetailsFragmentBinding
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.fragment.ap... | 0 | Kotlin | 0 | 0 | 7750d4cacf8aa04b655dd1f91827ee255c35713b | 1,494 | UdacityFirstProject | MIT License |
src/main/kotlin/org/jetbrains/plugins/bsp/flow/open/BspProjectOpenProcessor.kt | JetBrains | 521,228,542 | false | null | package org.jetbrains.plugins.bsp.flow.open
import com.intellij.ide.impl.OpenProjectTask
import com.intellij.ide.impl.ProjectUtilCore
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.project.Project
import com.intellij.openapi.project.ex.ProjectManagerEx
import com.intellij.openap... | 0 | Kotlin | 2 | 8 | df2456dedf66c11578b491460abf95bce87c051c | 3,545 | intellij-bsp | Apache License 2.0 |
app/src/test/java/com/guzzardi/profileslist/view/views/profileslist/ProfileViewHolderTest.kt | gonzaloguzzardi | 448,302,624 | false | {"Kotlin": 35401} | package com.guzzardi.profileslist.view.views.profileslist
import android.view.View
import android.widget.FrameLayout
import com.guzzardi.profileslist.RobolectricTest
import com.guzzardi.profileslist.model.UserProfile
import org.junit.Assert
import org.junit.Test
class ProfileViewHolderTest : RobolectricTest() {
... | 0 | Kotlin | 0 | 0 | b7ff24f441248c2c316774bf6c0e51c83d02266c | 902 | profiles-list | MIT License |
app/src/main/java/openfoodfacts/github/scrachx/openfood/features/productlist/ProductListActivity.kt | openfoodfacts | 35,174,991 | false | null | package openfoodfacts.github.scrachx.openfood.features.productlist
import android.Manifest
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Build
import android.os.Bundle
import android.os.Environment
import android.view.Menu
import android.view.Me... | 390 | null | 447 | 772 | 836bab540ec9e2792b692a3b25ff61e444fae045 | 12,380 | openfoodfacts-androidapp | Apache License 2.0 |
app/src/androidTest/java/com/example/sandbox/main/image/ImageFragmentViewTest.kt | rafikFares | 523,404,801 | false | {"Kotlin": 200088} | package com.example.sandbox.main.image
import androidx.fragment.app.testing.FragmentScenario
import androidx.fragment.app.testing.launchFragmentInContainer
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMatchers.isD... | 2 | Kotlin | 0 | 0 | f84378d4253e45a42469b6bb4b42ea614efdcd1a | 1,191 | Sandbox_v2 | Apache License 2.0 |
history/src/main/java/com/chrisjanusa/history/HistoryListUIManager.kt | chrisjanusa | 209,855,968 | false | {"Kotlin": 223559} | package com.chrisjanusa.blocks
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import androidx.recyclerview.widget.LinearLayoutManager
import com.chrisjanusa.base.CommunicationHelper
import com.chrisjanusa.base.interfaces.FeatureUIManager
import... | 1 | Kotlin | 0 | 0 | cd1bfe507e320d2774869d926fd35bc721d2c218 | 3,298 | RandomRestaurantKotlin | MIT License |
src/main/kotlin/io/zeko/db/sql/connections/DBLogger.kt | darkredz | 253,306,508 | false | null | package io.zeko.db.sql.connections
interface DBLogger {
fun getSqlLogLevel(): DBLogLevel
fun setSqlLogLevel(level: DBLogLevel): DBLogger
fun getParamsLogLevel(): DBLogLevel
fun setParamsLogLevel(level: DBLogLevel): DBLogger
fun setLogLevels(sqlLevel: DBLogLevel, paramsLevel: DBLogLevel): DBLogger
... | 2 | Kotlin | 6 | 89 | a70f6d207d77048f690d0d728e22091fe152dda8 | 508 | Zeko-SQL-Builder | Apache License 2.0 |
richtext/src/main/java/cn/memox/ext/tip/internal/TipNodeRenderer.kt | BingyanStudio | 709,754,810 | false | {"Kotlin": 439255} | package com.bingyan.bbhust.ext.tip.internal
import com.bingyan.bbhust.ext.tip.Tip
import org.commonmark.node.Node
import org.commonmark.renderer.NodeRenderer
abstract class TipNodeRenderer : NodeRenderer {
override fun getNodeTypes(): Set<Class<out Node>> {
return setOf<Class<out Node>>(Tip::class.java)
... | 1 | Kotlin | 0 | 1 | c7203e6b6fd69585cb752e14fb42b4463b46308b | 326 | BBHustAndroid | Apache License 2.0 |
src/test/kotlin/org/jetbrains/kotlinx/jupyter/test/testUtil.kt | Kotlin | 63,066,291 | false | null | package org.jetbrains.kotlinx.jupyter.test
import io.kotest.assertions.fail
import io.kotest.matchers.types.shouldBeInstanceOf
import io.kotest.matchers.types.shouldBeTypeOf
import jupyter.kotlin.JavaRuntime
import org.jetbrains.kotlinx.jupyter.api.AfterCellExecutionCallback
import org.jetbrains.kotlinx.jupyter.api.Co... | 79 | null | 97 | 984 | 94794065fd0a616b757a8cabf4574bb63344facb | 14,238 | kotlin-jupyter | Apache License 2.0 |
src/test/kotlin/org/jetbrains/kotlinx/jupyter/test/testUtil.kt | Kotlin | 63,066,291 | false | null | package org.jetbrains.kotlinx.jupyter.test
import io.kotest.assertions.fail
import io.kotest.matchers.types.shouldBeInstanceOf
import io.kotest.matchers.types.shouldBeTypeOf
import jupyter.kotlin.JavaRuntime
import org.jetbrains.kotlinx.jupyter.api.AfterCellExecutionCallback
import org.jetbrains.kotlinx.jupyter.api.Co... | 79 | null | 97 | 984 | 94794065fd0a616b757a8cabf4574bb63344facb | 14,238 | kotlin-jupyter | Apache License 2.0 |
src/cypress/lexer/Lexer.kt | Shom770 | 537,689,516 | false | null | package cypress.lexer
import cypress.CypressError
class Lexer(private val text: String) {
private val tokens = mutableListOf<Token>()
private val textIterator = text.toList().listIterator()
private val validOperators = "+-*/<>"
private val miscCharacters = "(){},="
private val validDigits = "012... | 0 | Kotlin | 0 | 0 | f9f8a68fe5f79da09d02f7acff6e8e91415f149f | 5,968 | cypress | MIT License |
app/src/main/java/com/wireguard/android/model/ApplicationData.kt | msfjarvis | 143,062,973 | false | null | /*
* Copyright © 2017-2018 WireGuard LLC.
* Copyright © 2018-2019 <NAME> <<EMAIL>>. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package com.wireguard.android.model
import android.graphics.drawable.Drawable
import androidx.databinding.BaseObservable
import androidx.databinding.Bindable
import com.... | 3 | null | 27 | 159 | 18d78ad28cfafac9838bd6b5d36762c3987ff0e8 | 1,010 | viscerion | Apache License 2.0 |
app/src/test/kotlin/dev/fobo66/factcheckerassistant/data/FakeFactCheckApi.kt | fobo66 | 257,629,867 | false | {"Kotlin": 69919} | package dev.fobo66.factcheckerassistant.data
import dev.fobo66.factcheckerassistant.api.FactCheckApi
import dev.fobo66.factcheckerassistant.api.models.FactCheckResponse
class FakeFactCheckApi(
val response: FactCheckResponse,
val error: Exception? = null
) : FactCheckApi {
override suspend fun search(
... | 6 | Kotlin | 1 | 6 | 8b68807ee345b8fe84f301439dcd062a69d677f3 | 547 | FactCheckerAssistant | The Unlicense |
security/src/main/java/dev/funkymuse/security/AtbashCipher.kt | FunkyMuse | 168,687,007 | false | null | package com.crazylegend.kotlinextensions.dataStructuresAndAlgorithms.cryptography
/**
* Created by hristijan on 3/29/19 to long live and prosper !
*/
/**
* Atbash cipher is one of the oldest ciphers known. It is a substitution cipher which works by reversing the alphabet.
* For instance, "AZ" would become "ZA" a... | 6 | null | 92 | 818 | fe984e6bdeb95fb5819f27dcb12001dcfd911819 | 2,775 | KAHelpers | MIT License |
src/main/kotlin/com/lunivore/montecarluni/engine/CycleTimesCalculator.kt | lunivore | 87,801,722 | false | null | package com.lunivore.montecarluni.engine
import com.lunivore.montecarluni.model.CycleTime
import com.lunivore.montecarluni.model.Record
import java.time.Duration
class CycleTimesCalculator() {
fun calculateCycleTimes(records: List<Record>): List<CycleTime> {
val sortedRecords = records.sortedBy { it.reso... | 7 | Kotlin | 1 | 5 | 9dd5a604c07455f4d330c70a207a65ea978438fd | 705 | montecarluni | Apache License 2.0 |
typescript-kotlin/src/main/kotlin/typescript/createLogicalNot.kt | turansky | 393,199,102 | false | null | // Automatically generated - do not modify!
@file:JsModule("typescript")
@file:JsNonModule
package typescript
/** @deprecated Use `factory.createLogicalNot` or the factory supplied by your transformation context instead. */
/*
external val createLogicalNot: (operand: Expression) => PrefixUnaryExpression
*/
| 0 | Kotlin | 1 | 10 | bcf03704c0e7670fd14ec4ab01dff8d7cca46bf0 | 311 | react-types-kotlin | Apache License 2.0 |
shared/src/commonMain/kotlin/com/example/moveeapp_compose_kmm/map/Map.kt | adessoTurkey | 673,248,729 | false | {"Kotlin": 334470, "Swift": 3538, "Ruby": 101} | package com.example.moveeapp_compose_kmm.map
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import com.example.moveeapp_compose_kmm.domain.location.DeviceLocation
import com.example.moveeapp_compose_kmm.ui.scene.map.Cinema
import com.example.moveeapp_compose_kmm.ui.scene.map.MapUiState
... | 6 | Kotlin | 3 | 78 | 2dbbd48654ee482258c37f0e51e52eb6af15ec3c | 468 | compose-multiplatform-sampleapp | Apache License 2.0 |
src/main/kotlin/xyz/olympusblog/dto/password/PasswordsEqualConstraint.kt | sentrionic | 376,094,493 | false | {"Kotlin": 68969, "HTML": 197} | package xyz.olympusblog.dto.password
import javax.validation.Constraint
import javax.validation.ConstraintValidator
import javax.validation.ConstraintValidatorContext
import kotlin.reflect.KClass
@Target(AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.CLASS)
@kotlin.annotation.Retention(AnnotationRetention.RUNTIM... | 0 | Kotlin | 0 | 0 | eb7171aa6a58f565ddd489c3d5adde88c0f6626c | 951 | OlympusSpring | MIT License |
app/src/main/kotlin/org/wentura/locoway/data/model/Connection.kt | AdrianMiozga | 796,770,944 | false | {"Kotlin": 221313} | package org.wentura.locoway.data.model
import java.time.LocalDateTime
data class Connection(
val trainId: Long,
val trainNumber: Long,
val trainBrand: TrainBrand,
val ticketPrice: String,
val departureStation: String,
val arrivalStation: String,
val departureDateTime: LocalDateTime,
va... | 0 | Kotlin | 0 | 0 | a4f74769b2a18bf15d06366a4d116a4747131939 | 458 | Locoway-Android | MIT License |
platform/platform-impl/src/com/intellij/openapi/project/DumbServiceImpl.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.openapi.project
import com.intellij.concurrency.currentThreadContext
import com.intellij.icons.AllIcons
import com.intellij.ide.IdeBundle
import com.intellij.openapi.Disposable
... | 251 | null | 5079 | 16,158 | 831d1a4524048aebf64173c1f0b26e04b61c6880 | 26,212 | intellij-community | Apache License 2.0 |
tests/MyGame/Example/StructOfStructsOfStructs.kt | google | 19,953,044 | false | {"C++": 3978587, "Rust": 1062705, "Python": 718341, "Swift": 654668, "Java": 622914, "C#": 595507, "JavaScript": 563679, "Kotlin": 450038, "Dart": 413224, "TypeScript": 363551, "PHP": 189050, "Go": 148114, "Nim": 98057, "Lua": 97503, "CMake": 64821, "Starlark": 53887, "Shell": 27868, "Batchfile": 2105, "C": 1364, "Ruby... | // automatically generated by the FlatBuffers compiler, do not modify
package MyGame.Example
import com.google.flatbuffers.BaseVector
import com.google.flatbuffers.BooleanVector
import com.google.flatbuffers.ByteVector
import com.google.flatbuffers.Constants
import com.google.flatbuffers.DoubleVector
import com.googl... | 171 | C++ | 3230 | 23,149 | 69a53e495d708db31c91568a781f0f1ef163fbb0 | 1,823 | flatbuffers | Apache License 2.0 |
compiler/testData/diagnostics/tests/enum/compareTwoDifferentEnums.kt | JakeWharton | 99,388,807 | false | null | // !LANGUAGE: -ProhibitComparisonOfIncompatibleEnums
// FILE: JavaEnumA.java
public enum JavaEnumA {}
// FILE: JavaEnumB.java
public enum JavaEnumB {}
// FILE: test.kt
enum class KotlinEnumA
enum class KotlinEnumB
fun jj(a: JavaEnumA, b: JavaEnumB) = <!INCOMPATIBLE_ENUM_COMPARISON!>a == b<!>
fun jk(a: JavaEnumA, ... | 181 | null | 5771 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 463 | kotlin | Apache License 2.0 |
konf-core/src/test/kotlin/com/uchuhimo/konf/source/env/EnvProviderSpec.kt | uchuhimo | 96,800,312 | false | null | /*
* Copyright 2017-2019 the original author or authors.
*
* 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... | 13 | null | 23 | 294 | 8aa88358b89f7ef2b124ee608b852a18a43aac7f | 3,797 | konf | Apache License 2.0 |
components/resources/library/src/commonTest/kotlin/org/jetbrains/compose/resources/TestComposeEnvironment.kt | JetBrains | 293,498,508 | false | null | package org.jetbrains.compose.resources
import androidx.compose.runtime.Composable
@OptIn(InternalResourceApi::class)
internal fun getTestEnvironment() = ResourceEnvironment(
language = LanguageQualifier("en"),
region = RegionQualifier("US"),
theme = ThemeQualifier.LIGHT,
density = DensityQualifier.XH... | 64 | null | 1174 | 16,150 | 7e9832f6494edf3e7967082c11417e78cfd1d9d0 | 474 | compose-multiplatform | Apache License 2.0 |
android/feature/home/src/androidTest/kotlin/com/bael/dads/feature/home/worker/factory/FakeFetchDadJokeFeedWorkerFactory.kt | ErickSumargo | 325,042,307 | false | null | package com.bael.dads.feature.home.worker.factory
import android.content.Context
import androidx.work.ListenableWorker
import androidx.work.WorkerFactory
import androidx.work.WorkerParameters
import com.bael.dads.domain.home.usecase.LoadDadJokeFeedUseCase
import com.bael.dads.domain.home.usecase.LoadDadJokeUseCase
imp... | 1 | Kotlin | 21 | 242 | 8eb44894518e23f535a69cbe0207ad034f6a282f | 1,566 | Dads | MIT License |
Lab7/src/main/kotlin/LagrangePolynomial.kt | knu-3-velychko | 276,469,956 | false | null | class LagrangePolynomial(private val points: Array<Point>) : Method {
override val result: DoubleArray by lazy {
val size = points.size
var res = DoubleArray(size) { 0.0 }
for (i in points.indices) {
res += getCoefs(i)
}
res
}
private fun getCoefs(index: ... | 0 | Kotlin | 0 | 0 | 79eaf1bfc471495bd2155b3ec5d4f4aa539d8704 | 1,160 | NumericalMethods | MIT License |
src/main/kotlin/org/jetbrains/bio/pubtrends/pm/PubmedArticle.kt | JetBrains-Research | 151,591,143 | false | {"Jupyter Notebook": 4174293, "Python": 401387, "HTML": 234375, "Kotlin": 122006, "JavaScript": 9805, "Dockerfile": 5181, "CSS": 3252, "Shell": 2620} | package org.jetbrains.bio.pubtrends.pm
data class Author(
val name: String = "",
val affiliation: List<String> = listOf()
)
data class Journal(val name: String = "")
data class DatabankEntry(
val name: String = "",
val accessionNumber: List<String> = listOf()
)
data class AuxInfo(
val authors: L... | 44 | Jupyter Notebook | 2 | 29 | c400fb031e35c6c95a3a4b3bf98c108303e199d8 | 949 | pubtrends | Apache License 2.0 |
jvm-debugger/coroutines/src/org/jetbrains/kotlin/idea/debugger/coroutine/proxy/mirror/evaluator.kt | JetBrains | 278,369,660 | false | null | // Copyright 2000-2022 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.debugger.coroutine.proxy.mirror
import com.sun.jdi.*
import org.jetbrains.kotlin.idea.debugger.evaluate.DefaultExecutionContex... | 284 | null | 5162 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 2,762 | intellij-kotlin | Apache License 2.0 |
domain/src/main/kotlin/studio/lunabee/onesafe/domain/usecase/authentication/ChangePasswordUseCase.kt | LunabeeStudio | 624,544,471 | false | {"Kotlin": 2733174, "Java": 11977, "Python": 3979} | /*
* 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... | 0 | Kotlin | 1 | 2 | a34f0ddaf9dc649c2f2082dc2526921bb1a491df | 2,913 | oneSafe6_SDK_Android | Apache License 2.0 |
GeneralLedger/app/src/main/java/com/ideahamster/generalledger/data/network/NetworkModule.kt | sridharnalam | 613,153,998 | false | null | package com.ideahamster.generalledger.data.network
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterF... | 0 | Kotlin | 0 | 0 | f0977938f94975252ee71289309570efb54ab86b | 1,464 | GeneralLedger | Apache License 2.0 |
platform/diff-impl/tests/com/intellij/diff/comparison/ComparisonUtilAutoTest.kt | androidports | 115,100,208 | false | null | /*
* Copyright 2000-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... | 6 | null | 4829 | 4 | 6e4f7135c5843ed93c15a9782f29e4400df8b068 | 24,015 | intellij-community | Apache License 2.0 |
oauth/src/main/java/com/lightspark/sdk/auth/oauth/OAuthHelper.kt | lightsparkdev | 590,703,408 | false | {"Kotlin": 1705939, "Java": 34937, "Dockerfile": 1719, "Shell": 490} | package com.lightspark.sdk.auth.oauth
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.net.Uri
import com.lightspark.sdk.core.requester.ServerEnvironment
import kotlin.coroutines.resume
import kotlin.coroutines.resumeWithException
import kotlinx.coroutines.su... | 0 | Kotlin | 1 | 4 | 1fffb0495467231f021da31534a32c657b2c0462 | 6,774 | kotlin-sdk | Apache License 2.0 |
app/src/main/java/pl/srw/billcalculator/common/list/DataBindingAdapter.kt | sewerk | 20,012,125 | false | {"Java": 427319, "Kotlin": 313019} | package pl.srw.billcalculator.common.list
import android.databinding.ViewDataBinding
import android.support.v7.util.DiffUtil
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.ViewGroup
import kotlinx.coroutines.experimental.android.UI
import kotlinx.coroutines.experim... | 0 | Java | 3 | 7 | cb30459d77370bfb44b8c45fadf4d515345f919a | 3,029 | Bill-Calculator | MIT License |
src/test/kotlin/structures/Stack2Test.kt | DmitryTsyvtsyn | 418,166,620 | false | {"Kotlin": 228861} | package structures
import org.junit.Test
import org.junit.Assert.assertEquals
class Stack2Test {
@Test
fun test() {
val stack = Stack2<Int>()
stack.push(1)
stack.push(2)
stack.push(3)
assertEquals(false, stack.isEmpty)
assertEquals(3, stack.size)
ass... | 0 | Kotlin | 135 | 788 | 1f89f062a056e24cc289ffdd0c6e23cadf8df887 | 791 | Kotlin-Algorithms-and-Design-Patterns | MIT License |
recorder-st/src/main/java/me/shetj/ndk/soundtouch/ISoundTouch.kt | SheTieJun | 207,213,419 | false | {"Kotlin": 301463} |
package me.shetj.ndk.soundtouch
// /*** SoundTouch
// *
// * * ST处理的对象是PCM(Pulse Code Modulation,脉冲编码调制),.wav文件中主要是这种格式
// * mp3等格式经过了压缩,需转换为PCM后再用ST处理。
// * * Tempo节拍 :通过拉伸时间,改变声音的播放速率而不影响音调。
// * * Playback Rate回放率 : 以不同的转率播放唱片(DJ打碟?),通过采样率转换实现。
// * * Pitch音调 :在保持节拍不变的前提下改变声音的音调,结合采样率转换+时间拉伸实现。如:增高音调的处理过程是:将原... | 0 | Kotlin | 2 | 30 | 75da57f9e5f98779950e736fa40018a141e8c0f9 | 1,659 | Mp3Recorder | MIT License |
kommons-core/src/test/kotlin/io/kommons/TypeReferenceTest.kt | debop | 235,066,649 | false | null | package io.kommons
import org.amshove.kluent.shouldBeFalse
import org.amshove.kluent.shouldBeTrue
import org.junit.jupiter.api.Test
import java.math.BigDecimal
class TypeReferenceTest {
@Test
fun `assignable from`() {
Any::class.isAssignableFrom(Any::class).shouldBeTrue()
Number::class.java.... | 0 | Kotlin | 11 | 53 | c00bcc0542985bbcfc4652d0045f31e5c1304a70 | 660 | kotlin-design-patterns | Apache License 2.0 |
core/test/src/main/kotlin/me/jerryokafor/ihenkiri/core/test/util/ScreenshotHelper.kt | jerryOkafor | 677,650,066 | false | null | /*
* The MIT License (MIT)
*
* Copyright (c) 2023 IheNkiri Project
*
* 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 ... | 17 | null | 2 | 9 | 1041e823e566b6a8549676e2dc36be66b8b1b76a | 7,139 | IheNkiri | MIT License |
src/main/kotlin/ui/poplist/PopListImpl.kt | i-am-arunkumar | 393,908,591 | true | {"Kotlin": 100873} | package ui.poplist
import com.intellij.ui.OnePixelSplitter
import javax.swing.event.ListSelectionEvent
import javax.swing.event.ListSelectionListener
/**
* Implementation Details like selection changes abstracted from [PopList]
*/
class PopListImpl<T>(
private val adapter: PopList<T>,
private val popModel: ... | 0 | null | 0 | 0 | 4f72acfdb83c7917faa397818bd198b67fd3d6d8 | 1,668 | AutoCp | MIT License |
src/main/kotlin/ui/poplist/PopListImpl.kt | i-am-arunkumar | 393,908,591 | true | {"Kotlin": 100873} | package ui.poplist
import com.intellij.ui.OnePixelSplitter
import javax.swing.event.ListSelectionEvent
import javax.swing.event.ListSelectionListener
/**
* Implementation Details like selection changes abstracted from [PopList]
*/
class PopListImpl<T>(
private val adapter: PopList<T>,
private val popModel: ... | 0 | null | 0 | 0 | 4f72acfdb83c7917faa397818bd198b67fd3d6d8 | 1,668 | AutoCp | MIT License |
core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/scrollbar/AppScrollbars.kt | lihenggui | 115,417,337 | false | null | /*
* Copyright 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 27 | null | 50 | 724 | 502a1eb13841517d0bf5a380104c8261e318bb2b | 7,544 | blocker | Apache License 2.0 |
magick-kt-native-q8/src/commonMain/kotlin/imagemagick/bridge/ChannelStatistics.kt | Gounlaf | 692,782,810 | false | {"Kotlin": 954080, "C": 942148, "C++": 3285} | @file:Suppress("KDocMissingDocumentation")
package imagemagick.bridge
import imagemagick.core.enums.PixelChannel
import imagemagick.core.toNative
import kotlinx.cinterop.CPointer
import kotlinx.cinterop.ExperimentalForeignApi
import libMagickNative.ChannelStatistics
import libMagickNative.ChannelStatistics_Depth_Get
... | 0 | Kotlin | 0 | 0 | a075a88d293b5c77668d8079c73b463c2d601fc8 | 2,192 | Magick.KT | MIT License |
src/main/kotlin/com/piashcse/entities/user/UserHasType.kt | piashcse | 410,331,425 | false | null | package com.piashcse.entities.user
import com.piashcse.entities.base.BaseIntEntity
import com.piashcse.entities.base.BaseIntEntityClass
import com.piashcse.entities.base.BaseIntIdTable
import org.jetbrains.exposed.dao.id.EntityID
object UserHasTypeTable : BaseIntIdTable("user_has_type") {
val userId = reference("... | 0 | Kotlin | 5 | 26 | 74b152e2dc10238197a0fb99595730edd55621fd | 864 | ktor-E-Commerce | PostgreSQL License |
src/main/kotlin/no/nav/personbruker/dittnav/eventtestproducer/ytelsestesting/TestDataService.kt | navikt | 219,521,847 | false | null | package no.nav.personbruker.dittnav.eventtestproducer.ytelsestesting
import kotlinx.coroutines.delay
import no.nav.personbruker.dittnav.eventtestproducer.beskjed.BeskjedProducer
import no.nav.personbruker.dittnav.eventtestproducer.beskjed.ProduceBeskjedDto
import no.nav.personbruker.dittnav.eventtestproducer.common.In... | 0 | Kotlin | 1 | 1 | a50026f76b82c424fc6a0e94d5602f9ccf0f5727 | 6,392 | dittnav-event-test-producer | MIT License |
core/src/main/kotlin/org/hyrical/hcf/profile/commands/LivesCommand.kt | Hyrical | 597,847,737 | false | {"Kotlin": 323471, "Java": 30373} | package org.hyrical.hcf.profile.commands
import co.aikar.commands.BaseCommand
import co.aikar.commands.annotation.CommandAlias
import co.aikar.commands.annotation.HelpCommand
import co.aikar.commands.annotation.Name
import co.aikar.commands.annotation.Optional
import co.aikar.commands.annotation.Subcommand
import org.... | 13 | Kotlin | 0 | 3 | 74a1512f3af2db591bcd233d2012e4dbded10e8a | 2,859 | HCF | MIT License |
presentation/src/main/java/com/nisrulz/example/spacexapi/presentation/navigation/AppNavigation.kt | nisrulz | 708,230,156 | false | {"Kotlin": 95643} | package com.nisrulz.example.spacexapi.presentation.navigation
import androidx.compose.runtime.Composable
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navigation.compose.rememberNavController
import com.nisrulz.example.spacexapi.presentation.features.launch_de... | 1 | Kotlin | 0 | 5 | f43012cd4a1f226434c2f43f27a693ec9e23b954 | 1,365 | android-spacex-app | Apache License 2.0 |
ui-components/src/main/java/com/mapbox/navigation/ui/components/maps/internal/ui/CameraModeButtonComponent.kt | mapbox | 87,455,763 | false | {"Kotlin": 9692008, "Python": 65081, "Java": 36829, "HTML": 17811, "Makefile": 9840, "Shell": 7129} | package com.mapbox.navigation.ui.maps.internal.ui
import android.view.View
import com.mapbox.navigation.core.MapboxNavigation
import com.mapbox.navigation.ui.base.lifecycle.UIComponent
import com.mapbox.navigation.ui.maps.camera.NavigationCamera
import com.mapbox.navigation.ui.maps.camera.state.NavigationCameraState
i... | 508 | Kotlin | 319 | 621 | ad73c6011348cb9b24b92a369024ca06f48845ab | 2,762 | mapbox-navigation-android | Apache License 2.0 |
viewmodels/src/main/java/com/example/viewmodels/CountryListViewModel.kt | perrystreetsoftware | 538,729,133 | false | null | package com.example.viewmodels
import com.example.domainmodels.Continent
import com.example.domainmodels.Country
import com.example.domainmodels.ServerStatus
import com.example.errors.CountryListError
import com.example.logic.CountryListLogic
import com.example.logic.ServerStatusLogic
import io.reactivex.rxjava3.core.... | 0 | null | 2 | 4 | 9092407e7163368715b94f89770dc01de957f3be | 3,660 | DemoAppAndroid | MIT License |
didsdk/android/src/main/kotlin/com/appgate/didsdk/DidsdkPlugin.kt | appgate | 668,476,346 | false | null | package com.appgate.didsdk
import android.content.Context
import android.content.Intent
import android.util.Log
import com.appgate.appgate_sdk.data.utils.GsonUtil
import com.appgate.appgate_sdk.encryptor.exceptions.SDKException
import com.appgate.didm_auth.DetectID
import com.appgate.didm_auth.common.handler.Enrollmen... | 0 | Kotlin | 0 | 0 | 1fa974c6ba221214898897d3750a1671028fbfc4 | 12,433 | fp-rba-didsdk-example-flutter-native-wrapper | MIT License |
geary-papermc-tracking/src/main/kotlin/com/mineinabyss/geary/papermc/tracking/entities/systems/AttemptSpawnListener.kt | MineInAbyss | 592,086,123 | false | null | package com.mineinabyss.geary.papermc.tracking.entities.systems
import com.mineinabyss.geary.annotations.Handler
import com.mineinabyss.geary.datatypes.family.family
import com.mineinabyss.geary.papermc.tracking.entities.components.AttemptSpawn
import com.mineinabyss.geary.papermc.tracking.entities.components.SetEntit... | 0 | Kotlin | 0 | 1 | afb0722015f1d6206b89cc09e210814361decd47 | 1,699 | geary-papermc | MIT License |
app/src/main/java/com/wechantloup/gamelistoptimization/webdownloader/WebDownloader.kt | Pilou44 | 414,594,767 | false | null | package com.wechantloup.gamelistoptimization.webdownloader
import com.wechantloup.gamelistoptimization.utils.FlipperUtils
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import okhttp3.Call
import okhttp3.Callback
import okhttp3.OkHttpClient
import okhttp3.Request
import okhttp3.Response
im... | 0 | Kotlin | 0 | 0 | b49d5228d2ef796b4aff0f7afb87b2bbc5ca168d | 2,825 | GameListOptimization | Apache License 2.0 |
src/main/kotlin/io/prometheus/common/ScrapeResults.kt | pambrose | 87,608,617 | false | null | /*
* Copyright © 2020 <NAME> (<EMAIL>)
*
* 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 ... | 4 | Kotlin | 16 | 94 | 92ff24c8d2a6955ab11b4f79fcb79c6aea8ff786 | 1,548 | prometheus-proxy | Apache License 2.0 |
video-sdk/src/main/java/com/kaleyra/video_sdk/utils/WindowSizeClassUtil.kt | KaleyraVideo | 686,975,102 | false | {"Kotlin": 5207104, "Shell": 7470, "Python": 6799, "Java": 2583} | package com.kaleyra.video_sdk.utils
import android.content.res.Configuration
import androidx.compose.material3.windowsizeclass.ExperimentalMaterial3WindowSizeClassApi
import androidx.compose.material3.windowsizeclass.WindowSizeClass
import androidx.compose.material3.windowsizeclass.WindowWidthSizeClass
import androidx... | 0 | Kotlin | 0 | 1 | 9faa41e5903616889f2d0cd79ba21e18afe800ed | 1,022 | VideoAndroidSDK | Apache License 2.0 |
app/src/main/java/com/example/compose/rally/data/util/csv/CSVParser.kt | lloppy | 718,107,694 | false | {"Kotlin": 191709} | package com.example.compose.rally.data.util.csv
import android.content.Context
import android.net.Uri
import android.os.Build
import android.util.Log
import android.widget.Toast
import androidx.annotation.RequiresApi
import com.example.compose.rally.R
import com.example.compose.rally.data.account.Account
import com.ex... | 5 | Kotlin | 1 | 0 | bec0bd2d1822f41ed0f050f97f7110b06e59f4ff | 4,472 | Finance-Assistant | MIT License |
core/builtins/src/kotlin/internal/progressionUtil.kt | gigliovale | 89,726,097 | false | null | /*
* 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... | 5 | null | 4 | 6 | ce145c015d6461c840050934f2200dbc11cb3d92 | 3,010 | kotlin | Apache License 2.0 |
compiler/testData/codegen/box/inlineClasses/UIntArraySortExample.kt | JakeWharton | 99,388,807 | false | null | // KJS_WITH_FULL_RUNTIME
// !LANGUAGE: +InlineClasses
// IGNORE_BACKEND: JVM_IR
inline class UInt(private val value: Int) : Comparable<UInt> {
companion object {
private const val INT_MASK = 0xffffffffL
}
fun asInt(): Int = value
fun toLong(): Long = value.toLong() and INT_MASK
override ... | 181 | null | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 2,814 | kotlin | Apache License 2.0 |
src/main/kotlin/io/xhub/confIOMessenger/domain/Message.kt | x-hub | 109,389,736 | false | {"Kotlin": 15330} | package io.xhub.confIOMessenger.domain
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonInclude
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.databind.node.BooleanNode
import io.vertx.core.json.JsonObject
import io.xhub.confIOM... | 0 | Kotlin | 2 | 0 | a13323ca0103fabca5dea64e6cd70ff450e8d23e | 1,213 | confIO.messenger | MIT License |
src/main/kotlin/io/xhub/confIOMessenger/domain/Message.kt | x-hub | 109,389,736 | false | {"Kotlin": 15330} | package io.xhub.confIOMessenger.domain
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonInclude
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.databind.node.BooleanNode
import io.vertx.core.json.JsonObject
import io.xhub.confIOM... | 0 | Kotlin | 2 | 0 | a13323ca0103fabca5dea64e6cd70ff450e8d23e | 1,213 | confIO.messenger | MIT License |
client/jfx/src/main/kotlin/net/corda/client/jfx/model/TransactionDataModel.kt | corda | 70,137,417 | false | null | package net.corda.client.jfx.model
import javafx.beans.value.ObservableValue
import net.corda.client.jfx.utils.distinctBy
import net.corda.client.jfx.utils.lift
import net.corda.client.jfx.utils.map
import net.corda.client.jfx.utils.recordInSequence
import net.corda.core.contracts.*
import net.corda.core.crypto.entrop... | 62 | null | 1077 | 3,989 | d27aa0e6850d3804d0982024054376d452e7073a | 5,345 | corda | Apache License 2.0 |
src/test/java/io/javalin/TestStaticFiles.kt | xxDark | 268,796,863 | false | null | /*
* Javalin - https://javalin.io
* Copyright 2017 <NAME>
* Licensed under Apache 2.0: https://github.com/tipsy/javalin/blob/master/LICENSE
*
*/
package io.javalin
import io.javalin.core.util.Header
import io.javalin.core.util.OptionalDependency
import io.javalin.http.UnauthorizedResponse
import io.javalin.http.... | 1 | null | 1 | 1 | ac4eadd2113272801e7103167f6cf2646e1e6958 | 7,038 | javalin | Apache License 2.0 |
basick/src/main/java/com/mozhimen/basick/utilk/android/view/UtilKInputMethodManagerWrapper.kt | mozhimen | 353,952,154 | false | null | package com.mozhimen.basick.utilk.android.view
import android.app.Activity
import android.content.Context
import android.util.Log
import android.view.MotionEvent
import android.view.View
import android.view.inputmethod.InputMethodManager
import android.widget.EditText
import androidx.annotation.RequiresApi
import com.... | 1 | null | 8 | 118 | e46732e4fc58f1ad66e3974a393e3af411de7b17 | 22,270 | SwiftKit | Apache License 2.0 |
mobile/src/main/java/rs/readahead/washington/mobile/views/fragment/uwazi/entry/SharedUwaziSubmissionViewModel.kt | Horizontal-org | 193,379,924 | false | {"Text": 2, "Gradle": 9, "Java Properties": 2, "Shell": 1, "Ignore List": 8, "Batchfile": 1, "Markdown": 6, "INI": 6, "Proguard": 7, "Kotlin": 255, "XML": 692, "Java": 425, "JSON": 1, "YAML": 2} | package rs.readahead.washington.mobile.views.fragment.uwazi.entry
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.google.firebase.crashlytics.FirebaseCrashlytics
import com.google.gson.Gson
import com.hzontal.tella_vault.VaultFile
import io.re... | 15 | Java | 15 | 49 | b941e38f9d62032e1471b6dfd5e467b44acca23d | 9,502 | Tella-Android | Apache License 2.0 |
Kotlin Basico/1. Linguagem Kotlin/src/IIIMaisConceitos/nullSafe.kt | DevMasterTeam | 180,258,237 | false | null | package IIIMaisConceitos
fun main() {
val str1: String
// println(str1.length)
val str2: String? = null
// println(str2.length)
val str3: String? = null
println(str3?.length)
val str4: String? = null
println(str4!!.length)
} | 0 | Kotlin | 18 | 14 | 0523a4ac9dfeb136fb0a690053c854c1ed772b6c | 262 | UdemyKotlinIniciante | MIT License |
common/src/main/java/jp/co/soramitsu/common/compose/component/AssetListItem.kt | soramitsu | 278,060,397 | false | null | package jp.co.soramitsu.common.compose.component
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.IntrinsicSize
import androidx.compose.foun... | 9 | null | 30 | 89 | 1de6dfa7c77d4960eca2d215df2bdcf71a2ef5f2 | 14,279 | fearless-Android | Apache License 2.0 |
src/main/kotlin/me/bytebeats/charts/desktop/app/theme/Colors.kt | bytebeats | 468,312,472 | false | {"Kotlin": 84437} | package me.bytebeats.charts.desktop.app.theme
import androidx.compose.ui.graphics.Color
/**
* @Author bytebeats
* @Email <<EMAIL>>
* @Github https://github.com/bytebeats
* @Created at 2022/3/10 21:08
* @Version 1.0
* @Description TO-DO
*/
val Purple200 = Color(0xFFBB86FC)
val Purple500 = Color(0xFF6200EE)
val... | 1 | Kotlin | 2 | 28 | 840a040acc2470d14917af6566a141f75e9b2c99 | 382 | compose-charts-desktop | The Unlicense |
platform/lang-impl/src/com/intellij/ide/navbar/ui/StaticNavBarPanel.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 com.intellij.ide.navbar.ui
import com.intellij.ide.navbar.ide.*
import com.intellij.ide.navbar.vm.NavBarVm
import com.intellij.openapi.application.EDT
import com.intellij.openapi.project.Pro... | 233 | null | 4931 | 15,571 | 92c8aad1c748d6741e2c8e326e76e68f3832f649 | 3,236 | intellij-community | Apache License 2.0 |
telek/src/commonMain/kotlin/by/dev/madhead/telek/telek/Telek.kt | madhead | 249,262,852 | false | null | package by.dev.madhead.telek.telek
import by.dev.madhead.telek.model.Message
import by.dev.madhead.telek.model.Update
import by.dev.madhead.telek.model.User
import by.dev.madhead.telek.model.WebhookInfo
import by.dev.madhead.telek.model.communication.AnswerCallbackQueryRequest
import by.dev.madhead.telek.model.communi... | 0 | Kotlin | 0 | 0 | 8f1dff19cce8394d76ef9ed6df4577a2d67e84f7 | 22,707 | telek | MIT License |
mapbox/src/main/java/nz/co/trademe/mapme/mapbox/MapboxMarkerAnnotation.kt | TradeMe | 98,249,217 | false | null | package nz.co.trademe.mapme.mapbox
import android.content.Context
import android.graphics.Bitmap
import android.util.Log
import com.mapbox.mapboxsdk.annotations.IconFactory
import com.mapbox.mapboxsdk.annotations.Marker
import com.mapbox.mapboxsdk.annotations.MarkerOptions
import com.mapbox.mapboxsdk.maps.MapboxMap
im... | 12 | null | 80 | 847 | df0e928452c9d9fa001fb51f6af103b509830047 | 2,224 | MapMe | MIT License |
android/navigation_module_compose/src/main/java/com/example/sdk/sample/ui/common/DemoTheme.kt | citymapper | 346,046,671 | false | {"Swift": 89819, "Kotlin": 64091, "Ruby": 652} | package com.example.sdk.sample.ui.common
import androidx.compose.material.MaterialTheme
import androidx.compose.material.lightColors
import androidx.compose.runtime.Composable
val demoColors = lightColors()
@Composable
fun DemoTheme(children: @Composable () -> Unit) {
MaterialTheme(colors = demoColors) {
child... | 1 | Swift | 2 | 4 | 87d37d87de5ef26c21779f4c5d2856a3413c71cb | 332 | sdk-samples | MIT License |
plants/plant-list/src/main/kotlin/xyz/qwexter/plant_list/PlantsScreen.kt | qwexter | 345,752,908 | false | null | package xyz.qwexter.plant_list
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.*
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import android... | 2 | Kotlin | 0 | 0 | c6c5ec88436948c6046ea95d269d8727b0d0798c | 3,322 | plantscare | MIT License |
apps/etterlatte-brev-api/src/main/kotlin/no/nav/etterlatte/brev/oversendelsebrev/OversendelseBrevService.kt | navikt | 417,041,535 | false | {"Kotlin": 7159442, "TypeScript": 1725433, "Handlebars": 26265, "Shell": 12687, "HTML": 1734, "CSS": 598, "PLpgSQL": 556, "Dockerfile": 547} | package no.nav.etterlatte.brev.oversendelsebrev
import kotlinx.coroutines.runBlocking
import no.nav.etterlatte.brev.Brevkoder
import no.nav.etterlatte.brev.Brevtype
import no.nav.etterlatte.brev.EtterlatteBrevKode
import no.nav.etterlatte.brev.PDFGenerator
import no.nav.etterlatte.brev.VedtaksbrevKanIkkeSlettes
import... | 9 | Kotlin | 0 | 6 | fe4ed6670fcc0d3fcd117c51b5a7acc224fa6bd2 | 11,254 | pensjon-etterlatte-saksbehandling | MIT License |
app1/src/main/java/cn/cxy/news/network/BaseRepository.kt | hspbc666 | 312,502,040 | false | null | package cn.cxy.news.network
import com.google.gson.GsonBuilder
import okhttp3.OkHttpClient
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
open class BaseRepository {
val apiService: NetworkService by lazy {
val okHttpClient = OkHttpClient.Builder().build()
Retrofit... | 0 | Kotlin | 0 | 1 | cb76cc950adb29345f235b0b0d9a833b0daa1b2c | 562 | orange-news | Apache License 2.0 |
src/main/kotlin/com/ovnny/notifications/config/security/SecurityConfig.kt | ovnny2 | 561,561,429 | false | null | package com.ovnny.notifications.config.security
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configuration.EnableWe... | 0 | Kotlin | 0 | 0 | 0b053c9e8508689ce5a108bba13e86280a60a296 | 1,307 | notifications | Apache License 2.0 |
example/android/app/src/main/kotlin/com/yuxiaor/flutter/g_faraday_example/basic/Native2FlutterActivity.kt | gfaraday | 299,574,522 | false | null | package com.yuxiaor.flutter.g_faraday_example.basic
import android.content.Intent
import android.graphics.Color
import android.os.Bundle
import android.widget.Button
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import com.yuxiaor.flutter.g_faraday.FaradayActivity
import com.yuxiaor.fl... | 9 | null | 21 | 142 | f6f73d59812bb73fbdb5af1ad6d60c4bd2017d0b | 1,644 | g_faraday | MIT License |
platform/platform-api/src/com/intellij/openapi/wm/BannerStartPagePromoter.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.wm
import com.intellij.icons.AllIcons
import com.intellij.openapi.ui.popup.IconButton
import com.intellij.openapi.util.SystemInfo
import com.intellij.ui.InplaceButton
im... | 251 | null | 5079 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 4,761 | intellij-community | Apache License 2.0 |
app/src/main/java/com/kcteam/features/billing/presentation/BillingListFragment.kt | DebashisINT | 558,234,039 | false | null | package com.breezesalesoriplast.features.billing.presentation
import android.annotation.SuppressLint
import android.content.Context
import android.content.Intent
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.net.Uri
import android.os.Bundle
import android.os.Environment
import com... | 0 | null | 1 | 1 | a9aabcf48662c76db18bcece75cae9ac961da1ed | 78,857 | NationalPlastic | Apache License 2.0 |
app/src/main/java/com/kcteam/features/TA/ViewAllTAListFragment.kt | DebashisINT | 558,234,039 | false | null | package com.breezebppoddarhospital.features.TA
import android.app.Dialog
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import com.google.android.material.floatingactionbutton.FloatingActionButton
import androidx.recyclerview.widget.LinearLayoutManager
impo... | 0 | null | 1 | 1 | a9aabcf48662c76db18bcece75cae9ac961da1ed | 9,072 | NationalPlastic | Apache License 2.0 |
src/main/kotlin/demo/suspension/DemoSuspension2.kt | gdg-minsk | 793,403,177 | false | {"Kotlin": 29583} | package demo.suspension
import kotlin.coroutines.suspendCoroutine
suspend fun main() {
println("Before")
suspendCoroutine<Unit> {
println("Before too")
}
println("After")
} | 0 | Kotlin | 0 | 0 | 895d8c032205acfa3f23383a06afb9c140209db1 | 200 | coffe-code-kotlin-coroutines | Apache License 2.0 |
kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/serialization/ProtoUtils.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | /*
* Copyright 2010-2023 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.backend.konan.serialization
import org.jetbrains.kotlin.backend.common.serializa... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 5,752 | kotlin | Apache License 2.0 |
app/src/main/java/com/inc/mowa/ui/introduction/IntroductionActivity.kt | oss-inc | 675,047,392 | false | {"Kotlin": 99409, "Java": 2957} | package com.inc.mowa.ui.introduction
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.inc.mowa.R
import com.inc.mowa.databinding.ActivityIntroductionBinding
import com.inc.mowa.ui.login.LoginActivity
import com.inc.mowa.utils.getIntroductionViewStatus
im... | 2 | Kotlin | 1 | 0 | 68de1abaa2fa63d05865ee1bedc2bc14f668fd4c | 2,191 | mowa-frontend-android | Apache License 2.0 |
app/src/main/java/me/kofesst/android/shoppinglist/presentation/ShoppingListApp.kt | kofesst | 513,660,159 | false | {"Kotlin": 162181} | package me.kofesst.android.shoppinglist.presentation
import androidx.compose.foundation.layout.*
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.outlined.ArrowBack
import androidx.compose.material.icons.outlined.ExitToApp
import androidx.compose.material3.*
import androidx.compose.r... | 0 | Kotlin | 0 | 0 | 04ef1ebc9bf5a3819a7a85dc42101e736c5c1274 | 9,633 | shopping-list-app | Apache License 2.0 |
azure-communication-ui/chat/src/test/java/com/azure/android/communication/ui/chat/redux/middleware/ChatMiddlewareUnitTest.kt | Azure | 429,521,705 | false | {"Kotlin": 2573728, "Java": 167445, "Shell": 3964, "HTML": 1856} | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.android.communication.ui.chat.redux.middleware
import com.azure.android.communication.ui.chat.redux.AppStore
import com.azure.android.communication.ui.chat.redux.action.ChatAction
import com.azure.android... | 6 | Kotlin | 27 | 24 | 96a897fb62cf8ce39a30f8bb7232df8aa888e084 | 2,948 | communication-ui-library-android | MIT License |
app/src/unitTest/kotlin/batect/utils/EditDistanceCalculatorSpec.kt | batect | 102,647,061 | false | {"Kotlin": 2888008, "Python": 42425, "Shell": 33457, "PowerShell": 8340, "Dockerfile": 3386, "Batchfile": 3234, "Java": 1432, "HTML": 345} | /*
Copyright 2017-2021 <NAME>.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | 24 | Kotlin | 47 | 687 | 67c942241c7d52b057c5268278d6252301c48087 | 6,097 | batect | Apache License 2.0 |
app/src/main/java/com/github/jing332/tts_server_android/ui/AppActivityResultContracts.kt | jing332 | 536,800,727 | false | null | package com.github.jing332.tts_server_android.ui
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.Parcelable
import androidx.activity.result.contract.ActivityResultContract
import com.github.jing332.tts_server_android.constant.KeyConst
im... | 6 | Kotlin | 127 | 1,393 | 8e07e8842cf4cec70154041fcd6a64ad2352d8c8 | 2,134 | tts-server-android | MIT License |
jacodb-analysis/src/test/kotlin/org/jacodb/analysis/impl/BaseAnalysisTest.kt | UnitTestBot | 491,176,077 | false | {"Kotlin": 1456714, "Java": 106293, "Shell": 299, "Batchfile": 23} | /*
* Copyright 2022 UnitTestBot contributors (utbot.org)
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless r... | 21 | Kotlin | 7 | 14 | a3767c890fd34a9c4e3f21e15da96d120cbdbd2e | 4,586 | jacodb | Apache License 2.0 |
project/common/src/main/kotlin/ink/ptms/adyeshach/core/entity/type/AdyArrow.kt | TabooLib | 284,936,010 | false | {"Kotlin": 1050024, "Java": 35966} | package ink.ptms.adyeshach.core.entity.type
import ink.ptms.adyeshach.core.entity.EntityThrowable
import org.bukkit.Color
/**
* @author sky
* @since 2020-08-04 19:30
*/
interface AdyArrow : AdyEntity, EntityThrowable {
fun setCritical(value: Boolean) {
setMetadata("isCritical", value)
}
fun i... | 13 | Kotlin | 86 | 98 | ac7098b62db19308c9f14182e33181c079b9e561 | 892 | adyeshach | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.