path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/test/resources/test-compile-data/jvm/kotlin-web-site/whatsnew14/ad8e7706416536cc082340d4c8bd1621.11.kt | AlexanderPrendota | 219,478,945 | false | null | fun main() {
//sampleStart
val set = setOfNotNull(null, 1, 2, 0, null)
println(set)
//sampleEnd
} | 14 | Kotlin | 47 | 89 | 95326951087813b6dea8b5ef4234fc06f252bd80 | 105 | kotlin-compiler-server | Apache License 2.0 |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/filled/Table.kt | walter-juan | 868,046,028 | false | null | package com.woowla.compose.icon.collections.tabler.tabler.filled
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
imp... | 0 | null | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 4,492 | compose-icon-collections | MIT License |
app/src/main/java/com/example/btcapp/Application.kt | burakselcuk1 | 589,336,609 | false | null | package com.example.btcapp
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class Application: android.app.Application() {
} | 0 | Kotlin | 0 | 0 | 56c00539e37b2a27bce66f21de8c0b7b9363310b | 135 | BTCApp | The Unlicense |
dids/src/test/kotlin/web5/sdk/dids/methods/dht/DidDhtTest.kt | TBD54566975 | 681,803,102 | false | {"Kotlin": 403993, "Shell": 2116} | package web5.sdk.dids.methods.dht
import com.fasterxml.jackson.core.type.TypeReference
import com.fasterxml.jackson.databind.annotation.JsonDeserialize
import com.fasterxml.jackson.databind.annotation.JsonSerialize
import com.fasterxml.jackson.databind.node.ObjectNode
import com.nimbusds.jose.jwk.Curve
import com.nimb... | 52 | Kotlin | 7 | 7 | ef57b7217add42c4b79d9fb472b165a433340379 | 15,439 | web5-kt | Apache License 2.0 |
mbmobilesdk/src/main/java/com/daimler/mbmobilesdk/preferences/TrackingPreferences.kt | rafalzawadzki | 208,997,288 | true | {"Kotlin": 1297852, "Groovy": 4489} | package com.daimler.mbmobilesdk.preferences
import android.content.Context
import com.daimler.mbcommonkit.extensions.booleanPreference
import com.daimler.mbcommonkit.preferences.Preference
internal class TrackingPreferences(context: Context) {
val trackingEnabled: Preference<Boolean> by lazy {
context.ge... | 0 | null | 0 | 0 | 1a924f70fbde5d731cdfde275e724e6343ee6ebe | 804 | MBSDK-Mobile-Android | MIT License |
engine/src/main/kotlin/kotli/engine/TemplateGenerator.kt | kotlitecture | 741,006,904 | false | {"Kotlin": 99184} | package kotli.engine
import kotli.engine.model.Layer
import org.slf4j.LoggerFactory
/**
* TemplateGenerator is an abstract class responsible for generating templates to an output stream.
*/
abstract class TemplateGenerator {
protected val logger = LoggerFactory.getLogger(this::class.java)
/**
* Proce... | 0 | Kotlin | 0 | 1 | abba606fd4505e3bf1019765a74ccb808738c130 | 598 | kotli-engine | MIT License |
app/src/main/java/com/lovoo/android/tvmaze/data/models/show/Externals.kt | boygaggoo | 122,779,787 | false | null | package com.lovoo.android.data.model.show
data class Externals(val thetvdb: Int? = null, val imdb: String? = null, val tvrage: Any? = null) | 0 | Kotlin | 0 | 1 | dcdeba092e9237268610bdaf9f215229f5520be1 | 141 | TVMAZEAPI | Apache License 2.0 |
out/production/ISBNScanner/main/kotlin/Main.kt | zsxsoft-deprecated | 70,899,927 | false | {"Kotlin": 2730} | package com.zsxsoft.shupiao.ISBNScanner
fun main (args: Array<String>) {
println(Scanner.Scan(args[0]))
} | 0 | Kotlin | 0 | 0 | bde21b8582499b6de40d5bb9a35bcab04ef1718f | 110 | ISBNScanner | MIT License |
vending-app/src/main/java/org/microg/vending/billing/core/AcknowledgePurchaseResult.kt | microg | 19,082,715 | false | null | package org.microg.vending.billing.core
import org.microg.vending.billing.proto.AcknowledgePurchaseResponse
class AcknowledgePurchaseResult(
val purchaseItem: PurchaseItem? = null,
resultMap: Map<String, Any> = mapOf(
"RESPONSE_CODE" to 0,
"DEBUG_MESSAGE" to ""
)
) : IAPResult(resultMap) {... | 990 | null | 1707 | 8,440 | 511afe821b20a5545f2ecc3f8db92a3ecb24d87f | 1,367 | GmsCore | Apache License 2.0 |
pushdy/src/main/java/com/pushdy/core/ultilities/PDYStorage.kt | Pushdy | 193,484,856 | false | null | package com.pushdy.core.ultilities
import android.content.Context
open class PDYStorage {
companion object {
private var PREFS_NAME:String = "PUSHDY_PREFS_NAME"
@JvmStatic
fun remove(context: Context, key:String) {
val settings = context?.getSharedPreferences(PREFS_NAME, Conte... | 1 | Kotlin | 3 | 1 | 348c0415f67de9f59b07386324ddf8886d8f86b8 | 4,536 | android-pushdy-sdk | MIT License |
LavalinkServer/src/main/java/lavalink/server/config/RequestAuthorizationFilter.kt | lavalink-devs | 97,382,188 | false | null | package lavalink.server.config
import org.slf4j.LoggerFactory
import org.springframework.context.annotation.Configuration
import org.springframework.http.HttpStatus
import org.springframework.web.servlet.HandlerInterceptor
import org.springframework.web.servlet.config.annotation.InterceptorRegistry
import org.springfr... | 19 | null | 667 | 1,572 | 0d7decb7cc5fda0f3d7b2a6185c1d7be17e66300 | 2,086 | Lavalink | MIT License |
src/main/kotlin/com/fortechteams/kcloak/KCloak.kt | 4TechTeams | 537,561,077 | false | {"Kotlin": 39164} | package com.fortechteams.kcloak
import com.fortechteams.kcloak.exception.PermissionException
import org.keycloak.admin.client.Keycloak
import org.keycloak.admin.client.KeycloakBuilder
import org.keycloak.representations.info.ServerInfoRepresentation
import org.slf4j.LoggerFactory
import javax.ws.rs.ForbiddenException
... | 0 | Kotlin | 0 | 0 | 7755d20c4f4db205f4dfb7b1af67009a98870325 | 1,537 | kcloak | MIT License |
shared/src/commonMain/kotlin/com/alerecchi/kmm_todo/details/domain/TaskDetailsStateMachine.kt | alerecchi | 443,110,563 | false | {"Kotlin": 26060, "Swift": 19472} | package com.alerecchi.kmm_todo.details.domain
import com.alerecchi.kmm_todo.details.data.TaskDetailsDataSource
import com.alerecchi.kmm_todo.utils.StateMachine
import kotlinx.datetime.LocalDate
class TaskDetailsStateMachine(
private val detailsDataSource: TaskDetailsDataSource
): StateMachine<TaskDetailsState, Ta... | 0 | Kotlin | 0 | 0 | 8019d78fc936a1ac20940cc2ed57713b79ce89da | 1,664 | kmm-todo | MIT License |
kubernetes/dsl/src/main/kotlin-gen/com/fkorotkov/kubernetes/related.kt | duanwucui | 152,172,153 | true | {"Kotlin": 267756} | // GENERATED
package com.fkorotkov.kubernetes
import io.fabric8.kubernetes.api.model.Event
import io.fabric8.kubernetes.api.model.ObjectReference
fun Event.`related`(block: ObjectReference.() -> Unit = {}) {
if(this.`related` == null) {
this.`related` = ObjectReference()
}
this.`related`.block()
}
| 0 | Kotlin | 0 | 0 | 4b9a21e59fad78ed7b79a94ac8993c1041623d18 | 315 | k8s-kotlin-dsl | MIT License |
pitmutationmate/src/main/kotlin/com/amos/pitmutationmate/pitmutationmate/execution/MavenTaskExecutor.kt | amosproj | 705,002,233 | false | {"Kotlin": 154435, "Groovy": 42654, "HTML": 3099, "Java": 230} | // SPDX-License-Identifier: MIT
// SPDX-FileCopyrightText: 2023 <NAME> <<EMAIL>>
package com.amos.pitmutationmate.pitmutationmate.execution
import com.amos.pitmutationmate.pitmutationmate.configuration.RunConfigurationOptions
import com.intellij.execution.configurations.GeneralCommandLine
import java.io.File
import j... | 0 | Kotlin | 0 | 4 | cc10cc76996d6452a0f975de2c2cb8bed3eaedcf | 1,550 | amos2023ws02-pitest-ide-plugin | MIT License |
data/src/main/java/com/mohaeyo/data/dto/PlaceLocationDTO.kt | mohae-team | 203,272,746 | false | null | package com.mohaeyo.data.dto
import com.google.gson.annotations.SerializedName
data class PlaceLocationDTO(
@SerializedName("location")
val location: String
) | 0 | Kotlin | 0 | 7 | 8cb78fbb241fce9c6fbbbbf1ea22a7b9102c475d | 168 | MoHae-Android | MIT License |
src/main/java/ru/hollowhorizon/hollowengine/common/npcs/connections/ConnectionHelper.kt | HollowHorizon | 586,593,959 | false | {"Kotlin": 945627, "Java": 23246, "GLSL": 2628} | /*
* MIT License
*
* Copyright (c) 2024 HollowHorizon
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, mo... | 0 | Kotlin | 6 | 27 | a81eb9337c22e97c950528d2e5b638ff81ce2d2e | 1,891 | HollowEngine | MIT License |
app/src/main/java/io/ikws4/weiju/xposed/VariableHook.kt | ikws4 | 232,304,658 | false | null | package io.ikws4.weiju.xposed
import android.annotation.SuppressLint
import android.location.Location
import android.os.Build
import android.telephony.TelephonyManager
import io.ikws4.library.xposedktx.hookMethod
import io.ikws4.library.xposedktx.replaceMethod
import io.ikws4.library.xposedktx.setStaticObjectField
imp... | 3 | Kotlin | 5 | 49 | 835cc446b99ac7c1a802b2f3a950dec4a3d6deeb | 3,967 | WeiJu | Apache License 2.0 |
src/main/kotlin/software/amazon/smithy/intellij/SmithyQuoteHandler.kt | iancaffey | 455,381,865 | false | {"Kotlin": 286598, "Lex": 5063, "Smithy": 2929} | package software.amazon.smithy.intellij
import com.intellij.codeInsight.editorActions.QuoteHandler
import com.intellij.codeInsight.editorActions.SimpleTokenSetQuoteHandler
import com.intellij.psi.TokenType
import software.amazon.smithy.intellij.psi.SmithyTypes
/**
* A [QuoteHandler] for [Smithy](https://awslabs.gith... | 2 | Kotlin | 2 | 24 | 286adf8f042e9ebeeb28bbd99aa3ac320ed95f23 | 534 | smithy-intellij-plugin | MIT License |
1.HelloKotlin/app/src/main/java/nepalphoto/gooner10/com/hellokotlin/MainActivity.kt | biratrai | 102,158,893 | false | null | package nepalphoto.gooner10.com.hellokotlin
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
... | 0 | Kotlin | 2 | 2 | 0ca6179c4c6f349460afdfa840836ac2524655bb | 561 | Learn-Kotlin | Apache License 2.0 |
tegral-di/tegral-di-test/src/test/kotlin/guru/zoroark/tegral/di/test/CyclicCheckTest.kt | utybo | 491,247,680 | false | {"Kotlin": 1066259, "Nix": 2449, "Shell": 8} | /*
* 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
* distribut... | 26 | Kotlin | 4 | 37 | fa4284047f2ce7ba9ee78e92d8c67954716e9dcc | 7,840 | Tegral | Apache License 2.0 |
src/main/kotlin/de/claudioaltamura/kotlin/examples/ClassWithCompanion2.kt | claudioaltamura | 172,023,763 | false | {"Kotlin": 32270} | package de.claudioaltamura.kotlin.examples
class ClassWithCompanion2 private constructor(val something: String) {
companion object {
fun upperOrLower(str: String, upper: Boolean): ClassWithCompanion2 {
if (upper) {
return ClassWithCompanion2(str.toUpperCase())
}
... | 0 | Kotlin | 0 | 0 | 410a9c99ebfed2b2b5260540f0650709f9701891 | 392 | kotlin-examples | MIT License |
src/main/kotlin/ru/spbau/mit/print/Printer.kt | stasbel | 117,672,839 | false | null | package ru.spbau.mit.print
import ru.spbau.mit.game.Game
import ru.spbau.mit.map.Map
import ru.spbau.mit.world.Creature
import ru.spbau.mit.world.World
/**
* Basic Roguelike class using for printing out current running game state.
* @author belaevstanislav
*/
interface Printer {
/**
* Printing out current... | 0 | Kotlin | 0 | 0 | 1f557211587adcf80558a3fe5a1e481bff5bac05 | 613 | rogalix | MIT License |
backend/data/src/main/kotlin/io/tolgee/formats/po/in/ParsedCLikeParam.kt | tolgee | 303,766,501 | false | {"Kotlin": 3510751, "TypeScript": 2367440, "JavaScript": 18552, "MDX": 17612, "Shell": 12678, "Java": 9890, "Dockerfile": 9472, "PLpgSQL": 663, "HTML": 439} | package io.tolgee.formats.po.`in`
data class ParsedCLikeParam(
val argNum: String?,
val argName: String?,
val specifier: String,
val width: Int?,
val precision: Int?,
val flags: String?,
val fullMatch: String,
val length: String?,
)
| 155 | Kotlin | 85 | 1,156 | 96654f5afa4eb9203eee41f8318576fcc61490c1 | 250 | tolgee-platform | Apache License 2.0 |
gremlin-kore/src/main/kotlin/org/apache/tinkerpop4/gremlin/process/traversal/SackFunctions.kt | phreed | 449,920,526 | false | null | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 4 | null | 1 | 1 | cb6805d686e9a27caa8e597b0728a50a63dc9092 | 1,796 | tinkerpop4 | Apache License 2.0 |
runner/app/src/main/kotlin/ai/flowstorm/core/handlers/alexa/MessageIntentHandler.kt | flowstorm | 327,536,541 | false | {"Kotlin": 670822, "Shell": 4198, "Dockerfile": 697, "Batchfile": 207, "Python": 111} | package ai.flowstorm.core.handlers.alexa
import com.amazon.ask.dispatcher.request.handler.HandlerInput
import com.amazon.ask.model.IntentRequest
import com.amazon.ask.request.Predicates.intentName
import ai.flowstorm.core.Bot
class MessageIntentHandler : AmazonAlexaHandler(intentName("MessageIntent")) {
override... | 1 | Kotlin | 5 | 9 | 53dae04fa113963d632ea4d44e184885271b0322 | 841 | core | Apache License 2.0 |
src/main/kotlin/day8/day8part1.kts | avrilfanomar | 433,723,983 | false | null | package day8
import java.io.File
var count = 0
File("input.txt").readLines().forEach {
it.split("|")[1].split(" ").forEach {
if (setOf(2, 3, 4, 7).contains(it.length)) count++
}
}
println(count)
| 0 | Kotlin | 0 | 0 | 266131628b7a58e9b577b7375d3ad6ad88a00954 | 214 | advent-of-code-2021 | Apache License 2.0 |
app/src/main/java/quevedo/soares/leandro/blemadeeasy/sampleapp/view/cycledevices/CycleDevicesFragment.kt | LeandroSQ | 341,048,778 | false | null | package quevedo.soares.leandro.blemadeeasy.sampleapp.view.cycledevices
import android.annotation.SuppressLint
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.core.view.isVisible
import... | 3 | null | 28 | 87 | dfe096d08cec36a6f17271633e0197b9ef213f52 | 7,681 | android-ble-made-easy | MIT License |
designpatterns/src/main/kotlin/com/sinlov/kotlin/design/patterns/behavioral/mediator/ChatRoom.kt | ljdbj100 | 341,504,367 | true | {"Kotlin": 68514, "Java": 10136, "Makefile": 5219} | package com.sinlov.kotlin.design.patterns.behavioral.mediator
class ChatRoom private constructor() {
companion object {
fun showMessage(user: User, message: String): String {
return "user name: ${user.name} : $message"
}
}
} | 0 | null | 0 | 0 | d708294cf3378b0391b0b019330661389361c5bc | 261 | kotlin-playground | Apache License 2.0 |
todoapp/app/src/main/java/com/example/android/architecture/blueprints/todoapp/addedittask/AddEditTaskPresenter.kt | SerjSmor | 70,144,663 | true | null | /*
* Copyright 2016, 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 applic... | 0 | Kotlin | 1 | 21 | e63f7aa426cb9460429fd046331df552bbc3839a | 3,427 | android-architecture | Apache License 2.0 |
webflux/src/main/kotlin/com/sys1yagi/springbootopenaiapisample/webflux/controller/OpenAiController.kt | sys1yagi | 636,082,501 | false | null | package com.sys1yagi.springbootopenaiapisample.webflux.controller
import com.sys1yagi.springbootopenaiapisample.webflux.api.openai.ModelName
import com.sys1yagi.springbootopenaiapisample.webflux.service.OpenAiConnectionService
import org.springframework.http.MediaType
import org.springframework.http.ResponseEntity
imp... | 0 | Kotlin | 0 | 0 | 6d5def366f93fe12b8005ec1db11d8dc941bdc41 | 1,733 | spring-boot-open-ai-api-sample | MIT License |
app/src/main/java/com/aurosaswatraj/countmycrunch/ProgressTracking/AppProvider.kt | geeky-auro | 432,666,307 | false | null | package com.aurosaswatraj.countmycrunch.ProgressTracking
import android.content.ContentProvider
import android.content.ContentValues
import android.content.UriMatcher
import android.database.Cursor
import android.database.SQLException
import android.database.sqlite.SQLiteQueryBuilder
import android.net.Uri
import andr... | 0 | Kotlin | 4 | 1 | 2f881ce41fad05df73b43fe4188166d1038bba34 | 10,789 | CountmyCrunch | Apache License 2.0 |
app/src/main/java/com/H5190019/ibrahim_metehan_barutcu/data/datasource/remote/ApiService.kt | metehanbarutcu | 376,932,394 | false | null | package com.H5190019.ibrahim_metehan_barutcu.data.datasource.remote
import com.H5190019.ibrahim_metehan_barutcu.data.model.CategoryResponse
import com.H5190019.ibrahim_metehan_barutcu.data.model.FilmResponse
import com.H5190019.ibrahim_metehan_barutcu.data.model.UserResponse
import com.H5190019.ibrahim_metehan_barutcu... | 0 | Kotlin | 0 | 1 | e70a98acaafa6985e7cf9554e765fec822fc1537 | 1,665 | NetfilxCloneApp | Apache License 2.0 |
app/src/main/kotlin/jp/co/yumemi/android/code_check/CustomAdapter.kt | dat-yamamoto | 562,681,524 | false | null | package jp.co.yumemi.android.code_check
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
cla... | 0 | Kotlin | 0 | 0 | 2be34e5b01ce9b787b6a40d7fee2e14a0a4824e4 | 1,522 | test-codecheck | Apache License 2.0 |
idea/tests/testData/multiModuleQuickFix/createExpect/funWithAccessibleAlias/common/foo.kt | JetBrains | 278,369,660 | false | null | expect class SomeString
// It would be great to have SomeString in foo() below, but it's problematic | 0 | null | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 100 | intellij-kotlin | Apache License 2.0 |
packages/expo-updates/android/src/test/java/expo/modules/updates/UpdatesConfigurationTest.kt | betomoedano | 462,599,485 | false | null | package expo.modules.updates
import android.net.Uri
import io.mockk.every
import io.mockk.mockk
import junit.framework.TestCase
import org.junit.Assert
import org.junit.Test
class UpdatesConfigurationTest : TestCase() {
@Test
fun testGetNormalizedUrlOrigin_NoPort() {
val mockedUri = mockk<Uri>()
every { m... | 668 | null | 5226 | 4 | 52d6405570a39a87149648d045d91098374f4423 | 1,165 | expo | MIT License |
SmartCredentials_aOS/identityprovider/src/main/java/de/telekom/identityprovider/operatortoken/OperatorTokenObservable.kt | telekom | 184,036,324 | false | {"Java": 1719935, "Kotlin": 22457, "C++": 1694, "CMake": 1110, "C": 857, "Makefile": 570, "AIDL": 500} | package de.telekom.identityprovider.operatortoken
import android.content.Context
import android.content.Intent
import android.content.ServiceConnection
import android.os.Build
import de.telekom.smartcredentials.core.responses.SmartCredentialsResponse
import io.reactivex.SingleEmitter
import io.reactivex.SingleOnSubscr... | 3 | Java | 4 | 11 | cb875877370b2b23e2d9ff612acf96949ff835d1 | 1,642 | SmartCredentials-SDK-android | Apache License 2.0 |
lib_video/src/main/java/com/qiyei/video/core/VideoView.kt | qiyei2015 | 253,028,226 | false | {"Java": 150392, "Kotlin": 90375} | /**
* @author Created by qiyei2015 on 2020/4/25.
* @version: 1.0
* @email: 1273482124@qq.com
* @description: VideoView
*/
package com.qiyei.video.core
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.graphics.S... | 1 | null | 1 | 1 | 1ca030b5cecd026bda1b11436d7c0c2f9e464e55 | 7,719 | MusicApp | Apache License 2.0 |
app/src/main/kotlin/com/simplemobiletools/contacts/models/ContactSource.kt | akifev99 | 136,766,415 | true | {"Gradle": 3, "Markdown": 2, "Shell": 1, "Text": 4, "Ignore List": 2, "Batchfile": 1, "Java Properties": 1, "INI": 1, "XML": 85, "Kotlin": 49, "Java": 2} | package com.simplemobiletools.contacts.models
data class ContactSource(var name: String, var type: String)
| 0 | Kotlin | 0 | 3 | fe8b726488490bc683ef22bbd22574f2ea8a327a | 108 | Simple-Contacts | Apache License 2.0 |
idea/testData/multiModuleHighlighting/multiplatform/withOverrides/common/common.kt | JakeWharton | 99,388,807 | true | null | expect fun foo(arg: Int): Int
expect fun foo<error>()</error>: Int
| 179 | Kotlin | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 68 | kotlin | Apache License 2.0 |
platform/ml-embeddings/src/com/intellij/platform/ml/embeddings/search/services/SemanticSearchCoroutineScope.kt | JetBrains | 2,489,216 | false | null | package com.intellij.platform.ml.embeddings.search.services
import com.intellij.openapi.components.Service
import com.intellij.openapi.components.service
import com.intellij.openapi.project.Project
import kotlinx.coroutines.CoroutineScope
@Service(Service.Level.PROJECT)
class SemanticSearchCoroutineScope(private val ... | 251 | null | 5079 | 16,158 | 831d1a4524048aebf64173c1f0b26e04b61c6880 | 456 | intellij-community | Apache License 2.0 |
exercise/day03/src/main/kotlin/people/Person.kt | marc-bouvier | 726,160,669 | false | {"Markdown": 48, "Text": 2, "Ignore List": 1, "Maven POM": 34, "Kotlin": 37, "Java": 89, "YAML": 1} | package people
data class Person(
val firstName: String,
val lastName: String,
val pets: MutableList<Pet>
) {
constructor(firstName: String, lastName: String) :
this(firstName, lastName, mutableListOf())
fun addPet(petType: PetType, name: String, age: Int): Person {
pets.add(P... | 1 | null | 1 | 1 | 2cad0663b89a9d052b1f2f76c959195ee725af6c | 372 | advent-of-craft-2023 | MIT License |
modules/fbs-core/api/src/main/kotlin/de/thm/ii/fbs/utils/v2/exceptions/NotFoundException.kt | thm-mni-ii | 145,119,531 | false | {"Scala": 505204, "TypeScript": 474336, "Kotlin": 175921, "Python": 164783, "HTML": 135760, "SCSS": 47665, "PLpgSQL": 20602, "Dockerfile": 2855, "Shell": 2200, "ANTLR": 1740, "JavaScript": 1731, "Jupyter Notebook": 1677, "CSS": 1266} | package de.thm.ii.fbs.utils.v2.exceptions
import org.springframework.http.HttpStatus
import org.springframework.web.bind.annotation.ResponseStatus
@ResponseStatus(value = HttpStatus.NOT_FOUND)
class NotFoundException : RuntimeException("not found")
| 239 | Scala | 9 | 19 | 73630e17e587a8bbf51e033817ef8f53a9f2499f | 251 | feedbacksystem | Apache License 2.0 |
idea/src/org/jetbrains/jet/plugin/refactoring/jetRefactoringUtil.kt | virtuoushub | 27,313,453 | true | {"Markdown": 21, "XML": 504, "Ant Build System": 33, "Ignore List": 8, "Kotlin": 14560, "Java": 4036, "Protocol Buffer": 2, "Roff": 18, "Roff Manpage": 4, "Text": 3020, "JAR Manifest": 1, "INI": 6, "HTML": 102, "Groovy": 7, "Gradle": 62, "Maven POM": 39, "Java Properties": 10, "CSS": 10, "JavaScript": 53, "JFlex": 3, "... | /*
* Copyright 2010-2014 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... | 0 | Java | 0 | 0 | 99ec8952e192d3f95bb1974e71bbfca1d2e92c78 | 14,702 | kotlin | Apache License 2.0 |
src/main/kotlin/glm_/vec3/swizzle/swizzle Vec3us.kt | kotlin-graphics | 71,653,021 | false | null | package glm_.vec3.swizzle
import glm_.vec2.Vec2us
import glm_.vec3.Vec3us
val Vec3us.xx: Vec2us
get() = Vec2us(x, x)
var Vec3us.xy: Vec2us
get() = Vec2us(x, y)
set(value) {
x = value.x
y = value.y
}
var Vec3us.xz: Vec2us
get() = Vec2us(x, z)
set(value) {
x = value.x
... | 5 | Kotlin | 19 | 99 | dcbdd6237fbc5af02722b8ea1b404a93ce38a043 | 2,545 | glm | MIT License |
notifications/core/src/main/kotlin/org/opensearch/notifications/core/client/EmailMimeProvider.kt | opensearch-project | 354,080,507 | false | null | /*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
/*
* Copyright 202... | 102 | Kotlin | 18 | 7 | 6d8825a601b276161941b13403afa440085425d9 | 5,559 | notifications | Apache License 2.0 |
platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/FSRecordsCacheInvalidator.kt | ingokegel | 72,937,917 | true | 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.vfs.newvfs
import com.intellij.ide.IdeCoreBundle
import com.intellij.ide.caches.CachesInvalidator
import com.intellij.openapi.util.registry.Registry
import com.intellij.... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 787 | intellij-community | Apache License 2.0 |
platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/FSRecordsCacheInvalidator.kt | ingokegel | 72,937,917 | true | 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.vfs.newvfs
import com.intellij.ide.IdeCoreBundle
import com.intellij.ide.caches.CachesInvalidator
import com.intellij.openapi.util.registry.Registry
import com.intellij.... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 787 | intellij-community | Apache License 2.0 |
mbingresskit/src/test/java/com/daimler/mbingresskit/implementation/UserCredentialsLoginServiceTest.kt | Daimler | 199,815,262 | false | null | package com.daimler.mbingresskit.implementation
import com.daimler.mbingresskit.common.JwtToken
import com.daimler.mbingresskit.common.Token
import com.daimler.mbingresskit.common.UserCredentials
import com.daimler.mbingresskit.common.authentication.AuthenticationType
import com.daimler.mbingresskit.implementation.net... | 1 | Kotlin | 8 | 15 | 3721af583408721b9cd5cf89dd7b99256e9d7dda | 5,741 | MBSDK-Mobile-Android | MIT License |
app/src/main/java/com/telenav/osv/data/collector/obddata/sensors/availability/SensorAvailabilityBle.kt | kartaview | 63,806,526 | false | null | package com.telenav.osv.data.collector.obddata.sensors.availability
import com.telenav.osv.data.collector.obddata.ClientDataTransmissionBle
/**
* Created by adrianb2 on 11/11/16.
*/
/**
* handles the sensor availability when the connection is ble
*/
class SensorAvailabilityBle(private val clientDataTransmissionBl... | 76 | Java | 30 | 130 | 66eb0ee1ab093562e2867087084b26803fe58174 | 1,246 | android | MIT License |
backend.native/tests/compilerChecks/t47.kt | JetBrains | 58,957,623 | false | null | import kotlinx.cinterop.*
fun bar(x: Int) = x.convert<String>()
| 0 | null | 625 | 7,100 | 9fb0a75ab17e9d8cddd2c3d1802a1cdd83774dfa | 65 | kotlin-native | Apache License 2.0 |
src/main/java/com/zombie/multilingual/demo/kotlin/basic_syntax/MainDemo.kt | ZombieSouls | 689,489,436 | false | {"Java": 94589, "Kotlin": 16265, "Groovy": 9955} | package com.zombie.multilingual.demo.kotlin.basic_syntax
/**
* @program: springcloud-multilingual
* @description: demo_0
* @author: zombie.lj
* @date: 2023-07-16 15:00
**/
class MainDemo {
companion object {
//sampleStart
private const val PI = 3.14
private var x = 0
private ... | 1 | null | 1 | 1 | a33670afaf3317cc6220c30abdd97d5d44dcef2a | 2,036 | springcloud-multilingual | Apache License 2.0 |
app/src/main/java/io/horizontalsystems/bankwallet/modules/transactions/TransactionFilterItem.kt | WaltonChain | 263,802,120 | false | null | package io.horizontalsystems.bankwallet.modules.transactions
class TransactionFilterItem(val coinCode: CoinCode?, val name: String) | 0 | null | 2 | 4 | ec877434f12db879faabcfbd69d8647f8c2eefdc | 132 | waltonchain-wallet-android | MIT License |
android/apollo/src/main/java/io/muun/apollo/domain/libwallet/IncomingSwap.kt | wiz | 345,616,646 | true | {"Java": 2191040, "Kotlin": 739959, "Go": 304305, "Python": 1319, "Shell": 974} | package io.muun.apollo.domain.libwallet
import io.muun.apollo.domain.libwallet.errors.UnfulfillableIncomingSwapError
import io.muun.apollo.domain.model.IncomingSwap
import io.muun.apollo.domain.model.IncomingSwapFulfillmentData
import io.muun.common.crypto.hd.PrivateKey
import io.muun.common.crypto.hd.PublicKey
import... | 0 | null | 0 | 0 | a506d13add1999e3637fb1cac9cb050d8df4df8c | 2,820 | apollo | MIT License |
src/main/kotlin/com/forum/springboot/forum3API/config/NotionConfigProperties.kt | BraveWorm | 602,570,714 | false | null | package com.forum.springboot.forum3API.config
import org.springframework.boot.context.properties.ConfigurationProperties
@ConfigurationProperties
class NotionConfigProperties {
val authToken: String="zfTRkarVNSyOY4BEK9XJCbfxk412rUTqUPT3QV16GTOPVDOQUguCSDyRHpaWr3M" //TODO store it somewhere safe
} | 0 | Kotlin | 0 | 0 | ba91ba139dec92da4f9097160717253fcffbe215 | 303 | Forum3Api | MIT License |
starter/src/main/java/nl/codecentric/axon/openadmin/events/AxonOpenAdminEventEndpoint.kt | the-experts | 405,012,678 | false | {"TypeScript": 51859, "Kotlin": 32923, "HTML": 509, "CSS": 183} | package nl.codecentric.axon.openadmin.events
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RequestParam
import org.springframework.web.bin... | 2 | TypeScript | 0 | 3 | b0023bc679a4819d84f98aac92c7f725b18b6f3f | 1,116 | axon-open-admin | MIT License |
app/src/main/java/kr/lavalse/glidepdf/glide/GlideModuler.kt | TempoDiValse | 299,678,386 | false | null | package kr.lavalse.glidepdf.glide
import android.content.Context
import android.net.Uri
import com.bumptech.glide.Glide
import com.bumptech.glide.GlideBuilder
import com.bumptech.glide.Registry
import com.bumptech.glide.annotation.GlideModule
import com.bumptech.glide.module.AppGlideModule
import kr.lavalse.glidepdf.g... | 0 | Kotlin | 0 | 2 | cba6f5d436c9134113e80c423f5d77c153860193 | 998 | GlidePDF | Apache License 2.0 |
app/src/main/java/dev/alexknittel/syntact/data/dao/base/BaseDao.kt | alex-kn | 146,649,461 | false | null | package dev.alexknittel.syntact.data.dao.base
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Update
interface BaseDao<T> {
@Insert(onConflict = OnConflictStrategy.ABORT)
suspend fun insert(t: T): Long
@Insert(onConflict = OnConflictSt... | 0 | Kotlin | 0 | 0 | eb06d0b01c9bb37bae25035afeef4e9dd49df4dd | 461 | Syntact | MIT License |
src/jvmMain/kotlin/ca/gosyer/appdirs/AppDirs.kt | Syer10 | 578,459,054 | false | {"Kotlin": 44823, "Shell": 1639} | package ca.gosyer.appdirs
import ca.gosyer.appdirs.impl.MacOSXAppDirs
import ca.gosyer.appdirs.impl.ShellFolderResolver
import ca.gosyer.appdirs.impl.UnixAppDirs
import ca.gosyer.appdirs.impl.UnixJvmEnvResolver
import ca.gosyer.appdirs.impl.WindowsAppDirs
actual fun AppDirs(
appName: String?,
appAuthor: Strin... | 0 | Kotlin | 2 | 26 | 63290dea066fb5d3d7d46740a0335b918b6355f5 | 781 | Kotlin-Multiplatform-AppDirs | Apache License 2.0 |
app/src/main/kotlin/com/rahul/newsapp/source/data/source/NewsSourceDataSourceImpl.kt | rahulabrol | 845,840,873 | false | {"Kotlin": 137242, "Shell": 179} | package com.rahul.newsapp.source.data.source
import com.rahul.newsapp.networking.NetworkService
import com.rahul.newsapp.source.data.model.NewsSourceEntity
import javax.inject.Inject
/**
* Created by abrol at 06/09/24.
*/
class NewsSourceDataSourceImpl @Inject constructor(private val networkService: NetworkService)... | 1 | Kotlin | 0 | 0 | 4f43c2bef23e2ed2f57b3ed420aae8100f148c09 | 479 | NewsApp | Apache License 2.0 |
domain/src/main/kotlin/com/yapp/bol/pagination/cursor/PaginationCursorResponse.kt | YAPP-Github | 634,125,780 | false | null | package com.yapp.bol.pagination.cursor
interface PaginationCursorResponse<T, CURSOR> {
val contents: List<T>
val cursor: CURSOR
val hasNext: Boolean
}
| 4 | Kotlin | 0 | 9 | 0e61952c5f0b448737de1729f0df9a376875577e | 164 | 22nd-Android-Team-2-BE | Apache License 2.0 |
src/main/kotlin/com/github/alaanor/candid/psi/primitive/CandidStubBasedElementBase.kt | Alaanor | 466,536,953 | false | null | package com.github.alaanor.candid.psi.primitive
import com.github.alaanor.candid.psi.stub.impl.CandidStubBase
import com.intellij.extapi.psi.StubBasedPsiElementBase
import com.intellij.lang.ASTNode
import com.intellij.navigation.ItemPresentation
import com.intellij.psi.stubs.IStubElementType
abstract class CandidStub... | 3 | Kotlin | 2 | 8 | f900d6c12fb657193078e093955219d94613f2c9 | 635 | candid-intellij-plugin | MIT License |
app/src/main/kotlin/no/nav/tiltakspenger/vedtak/clients/pdfgen/BrevPersonaliaDTO.kt | navikt | 487,246,438 | false | {"Kotlin": 1005976, "Shell": 1318, "Dockerfile": 495, "HTML": 45} | package no.nav.tiltakspenger.vedtak.clients.pdfgen
internal data class BrevPersonaliaDTO(
val ident: String,
val fornavn: String,
val etternavn: String,
val antallBarn: Int,
)
| 8 | Kotlin | 0 | 1 | d51a5a99224ac15fe23c378541494504ca346cc2 | 193 | tiltakspenger-vedtak | MIT License |
domain/src/main/kotlin/com/gnoemes/shimori/domain/observers/ObserveMyUserShort.kt | gnoemes | 213,210,354 | false | {"Kotlin": 788446, "Shell": 2974} | package com.gnoemes.shimori.domain.observers
import com.gnoemes.shimori.data.core.entities.user.UserShort
import com.gnoemes.shimori.data.repositories.source.SourceRepository
import com.gnoemes.shimori.data.repositories.user.UserRepository
import com.gnoemes.shimori.domain.SubjectInteractor
import kotlinx.coroutines.f... | 0 | Kotlin | 1 | 31 | 7bf5caccb92d3c789ecd3f1c8a6d3a7eeb4d408b | 624 | Shimori | Apache License 2.0 |
grazel-gradle-plugin/src/main/kotlin/com/grab/grazel/util/GrazelJson.kt | grab | 379,151,190 | false | {"Kotlin": 813733, "Starlark": 58856, "Java": 644} | package com.grab.grazel.util
import kotlinx.serialization.json.decodeFromStream
import org.gradle.api.file.RegularFile
import java.io.File
import kotlinx.serialization.json.Json as KotlinJson
// Inject?
internal val Json = KotlinJson {
explicitNulls = false
ignoreUnknownKeys = true
}
internal inline fun <rei... | 11 | Kotlin | 19 | 274 | 6d44b7fc7d5210cc4e4211cfd002547a3126124c | 536 | grazel | Apache License 2.0 |
src/test/kotlin/dev/marrek13/validator/UrlValidatorTest.kt | marrek13 | 725,321,953 | false | {"Kotlin": 40608, "HTML": 634} | package dev.marrek13.validator
import org.junit.jupiter.api.Assertions.assertFalse
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Test
class UrlValidatorTest {
@Test
fun `test validate url`() {
val url = "https://www.google.com"
assertTrue(UrlValidator.isValidU... | 1 | Kotlin | 1 | 9 | d99e7a3baa882762a39f2d3f063c98e492d537d3 | 500 | kotenberg | MIT License |
app/src/main/java/id/kotlin/student/features/student/StudentAdapter.kt | budioktaviyan | 193,222,520 | false | null | package id.kotlin.student.features.student
import android.support.v7.widget.RecyclerView.Adapter
import android.support.v7.widget.RecyclerView.ViewHolder
import android.view.View
import android.view.ViewGroup
import id.kotlin.student.R
import id.kotlin.student.ext.inflate
import id.kotlin.student.features.student.Stud... | 0 | Kotlin | 0 | 0 | 7d8d584635209292da8f3749d056b40c90f40eb1 | 1,108 | student-android-client | MIT License |
app/src/main/java/com/educatorapp/utils/network/NetworkHelper.kt | manishpatelgt | 265,855,771 | false | null | package com.educatorapp.utils.network
import android.content.Context
import android.net.*
import android.os.Build
import com.educatorapp.utils.extensions.connectivityManager
object NetworkHelper {
fun connectedToWiFiOrMobile(context: Context): Boolean {
var isInternet = true
val connectivityMana... | 0 | Kotlin | 1 | 5 | daab7558a301c82dbd363c857f0cb36d9f3ebf40 | 1,270 | EducatorApp | The Unlicense |
platform/backend/api/src/integrationTest/kotlin/io/hamal/api/http/controller/func/FuncDeployControllerTest.kt | hamal-io | 622,870,037 | false | {"Kotlin": 2114763, "C": 1398432, "TypeScript": 279976, "Lua": 100966, "C++": 40651, "Makefile": 11728, "Java": 7564, "JavaScript": 3406, "CMake": 2810, "CSS": 1626, "HTML": 1239, "Shell": 977} | package io.hamal.api.http.controller.func
import io.hamal.lib.domain.vo.CodeValue
import io.hamal.lib.domain.vo.CodeVersion
import io.hamal.lib.domain.vo.FuncInputs
import io.hamal.lib.domain.vo.FuncName
import io.hamal.lib.http.HttpErrorResponse
import io.hamal.lib.http.HttpStatusCode
import io.hamal.lib.sdk.api.ApiE... | 26 | Kotlin | 0 | 0 | 64288303fd12b334787c7bbb15afbaa99f716125 | 6,010 | hamal | Creative Commons Zero v1.0 Universal |
src/main/kotlin/com/devcharly/kotlin/ant/taskdefs/touch.kt | DevCharly | 61,804,395 | false | null | /*
* Copyright 2016 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | Kotlin | 2 | 6 | b73219cd1b9b57972ed42048c80c6618474f4395 | 1,846 | kotlin-ant-dsl | Apache License 2.0 |
app/src/main/kotlin/com/aripuca/finhelper/ui/components/buttons/SmallButton.kt | vitalnik | 585,713,413 | false | {"Kotlin": 260035} | package com.aripuca.finhelper.ui.components.buttons
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.Button
import androi... | 0 | Kotlin | 0 | 1 | 6c89e2a8a501c6906cc19572622c40d48e09bfb1 | 1,222 | FinHelperOpenSource | Apache License 2.0 |
core/src/main/kotlin/com/weedow/spring/data/search/validation/DataSearchErrorsFactory.kt | gitter-badger | 310,432,814 | true | {"Kotlin": 400259, "Java": 16661, "ANTLR": 2692} | package com.weedow.spring.data.search.validation
/**
* Interface to get a new [DataSearchErrors] instance.
*/
interface DataSearchErrorsFactory {
/**
* Returns a new instance of [DataSearchErrors].
*/
fun getDataSearchErrors(): DataSearchErrors
} | 0 | null | 0 | 0 | d6a214fa822bd2b694625358c157d2bf715de27e | 269 | spring-data-search | MIT License |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/outline/Filtersearch.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx... | 0 | Kotlin | 0 | 2 | b8a8231e6637c2008f675ae76a3423b82ee53950 | 5,395 | VuesaxIcons | MIT License |
shared/src/commonMain/kotlin/composables/messages/GptCopyBlock.kt | AntonAlekseevich93 | 683,819,027 | false | null | package composables.messages
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import a... | 0 | Kotlin | 0 | 0 | 3f328a95c2de861889b81c1c571954d6e67b02d2 | 2,656 | ChatGTP | Apache License 2.0 |
src/main/kotlin/position/RetriveByRandom.kt | zharfanwafiq | 565,304,181 | false | null | package position
fun main() {
retriveByRandom()
retriveByRandomString()
}
fun retriveByRandom() {
val list = (1..100).toList()
println(list.random())
println(list.random())
println(list.random())
println(list.random())
}
fun retriveByRandomString(){
val data = listOf<String>("Zharfan"... | 0 | Kotlin | 0 | 0 | b4aa9a77e4d19a905da3a0d8a41aa5d0efa68b63 | 408 | learn-kotlin-collection | Apache License 2.0 |
moviesComponent/src/main/java/com/example/moviesComponent/data/remote/MoviesApiService.kt | Bit-Camp-IO | 643,303,285 | false | null | package com.example.moviesComponent.data.remote
import com.example.moviesComponent.data.dto.account.MovieAccountStatesDto
import com.example.moviesComponent.data.dto.movies.MovieDetailsDto
import com.example.moviesComponent.data.dto.movies.MoviesBriefWrapperDto
import com.example.moviesComponent.data.dto.movies.Person... | 0 | Kotlin | 1 | 2 | 82141ba5d053fe9c3112d1150b226aceb6125a48 | 3,492 | TMDA-Android | Apache License 2.0 |
app/src/main/java/es/upm/bienestaremocional/ui/theme/Color.kt | Emotional-Wellbeing | 531,973,820 | false | {"Kotlin": 831892} | package es.upm.bienestaremocional.ui.theme
import androidx.compose.ui.graphics.Color
val md_theme_light_primary = Color(0xFF006C53)
val md_theme_light_onPrimary = Color(0xFFFFFFFF)
val md_theme_light_primaryContainer = Color(0xFF82F8D0)
val md_theme_light_onPrimaryContainer = Color(0xFF002117)
val md_theme_light_seco... | 0 | Kotlin | 0 | 2 | 100130d0b630f42baf628e2e1a9007d6242bb238 | 5,158 | App | Apache License 2.0 |
ktfx-commons/src/ktfx/collections/_ObservableIntArray.kt | alilosoft | 182,138,993 | true | {"Kotlin": 364065, "HTML": 1385, "Java": 682} | @file:JvmMultifileClass
@file:JvmName("ObservableArraysKt")
@file:Suppress("NOTHING_TO_INLINE")
package ktfx.collections
import javafx.beans.binding.Bindings
import javafx.beans.binding.IntegerBinding
import javafx.beans.value.ObservableIntegerValue
import javafx.beans.value.ObservableNumberValue
import javafx.collec... | 0 | Kotlin | 0 | 0 | f499c9d7abddb270f1946c0e9ffb9072e45cd625 | 2,553 | ktfx | Apache License 2.0 |
model/combat/src/main/kotlin/de/gleex/pltcmd/model/combat/attack/WeaponAssignment.kt | Baret | 227,677,538 | false | {"Kotlin": 764337} | package de.gleex.pltcmd.model.combat.attack
import de.gleex.pltcmd.model.elements.units.Units
import de.gleex.pltcmd.model.elements.units.Units.*
/** The type of weapon a unit from this blueprint normally carries. **/
val Units.weapon: WeaponStats
get() = when(this) {
Rifleman -> Weapons.assaul... | 50 | Kotlin | 0 | 4 | 4fc0331b0ef939345c40aa1310ca25cf83a2b7ba | 1,806 | pltcmd | MIT License |
plugin/src/sbt-test/sbt-spotless/kotlin/fixtures/ValidIndentMain.kt | moznion | 255,125,331 | false | {"Scala": 109244, "Java": 376, "C": 229, "Kotlin": 224, "Groovy": 185} | fun main() {
println("semi-colon");
}
| 13 | Scala | 2 | 4 | fa2da0c3d53e1e1e91c6f9f98e0c6fc8fa213059 | 42 | sbt-spotless | Apache License 2.0 |
models/src/main/java/com/vimeo/networking2/LiveEventList.kt | vimeo | 41,306,732 | false | null | package com.vimeo.networking2
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
import com.vimeo.networking2.common.Pageable
/**
* List of live events that could be paged.
*/
@JsonClass(generateAdapter = true)
data class LiveEventList(
@Json(name = "total")
override val total: Int? = null,... | 21 | Kotlin | 52 | 123 | e4f31d4fa144756d576101b3a82120657e9e8a51 | 700 | vimeo-networking-java | MIT License |
core/data/src/main/java/com/wei/amazingtalker/core/data/model/UserProfile.kt | azrael8576 | 584,299,514 | false | {"Kotlin": 511008} | package com.wei.amazingtalker.core.data.model
import com.wei.amazingtalker.core.model.data.CoursesContent
import com.wei.amazingtalker.core.model.data.Skill
import com.wei.amazingtalker.core.model.data.UserProfile
import com.wei.amazingtalker.core.network.model.NetworkCoursesContent
import com.wei.amazingtalker.core.n... | 16 | Kotlin | 0 | 14 | 02a5efa71352fb422dfd8cf4b5aadf737350f137 | 1,298 | teach-link | Apache License 2.0 |
src/commonMain/kotlin/org.angproj.aux.util/Swap.kt | angelos-project | 677,039,667 | false | null | /**
* Copyright (c) 2021-2023 by <NAME> <<EMAIL>>.
*
* This software is available under the terms of the MIT license. Parts are licensed
* under different terms if stated. The legal terms are attached to the LICENSE file
* and are made available on:
*
* https://opensource.org/licenses/MIT
*
* SPDX-License... | 0 | Kotlin | 0 | 0 | c43b90e2bddb7fabd583b0ba48160bdd7a7b4bfb | 1,500 | angelos-project-aux | MIT License |
androidApp/src/main/kotlin/org/jetbrains/kotlinconf/android/ui/components/AgendaDayHeader.kt | JetBrains | 108,403,211 | false | null | package org.jetbrains.kotlinconf.android.ui.components
import androidx.compose.foundation.*
import androidx.compose.foundation.layout.*
import androidx.compose.material.*
import androidx.compose.runtime.*
import androidx.compose.ui.*
import androidx.compose.ui.tooling.preview.*
import androidx.compose.ui.unit.*
import... | 21 | Kotlin | 305 | 2,778 | 642404f3454d384be966c34d6b254b195e8d2892 | 1,867 | kotlinconf-app | Apache License 2.0 |
ktvn/src/test/kotlin/com/github/benpollarduk/ktvn/setup/TestNarratorAdapter.kt | benpollarduk | 710,310,174 | false | {"Kotlin": 436387} | package com.github.benpollarduk.ktvn.setup
import com.github.benpollarduk.ktvn.characters.NarrateListener
import com.github.benpollarduk.ktvn.characters.Narrator
import com.github.benpollarduk.ktvn.characters.NarratorAskListener
import com.github.benpollarduk.ktvn.logic.Answer
import com.github.benpollarduk.ktvn.logic... | 2 | Kotlin | 0 | 9 | 4326fc7c0bcba099a57d21382407e090dc625bd9 | 857 | ktvn | MIT License |
app/src/main/kotlin/com/rahulografy/jcposts/util/event/InternetConnectionEvent.kt | RahulSDeshpande | 304,577,097 | false | null | package com.rahulografy.jcposts.util.event
data class InternetConnectionEvent(val isActive: Boolean) | 0 | Kotlin | 0 | 1 | 7793df8b96e00d08715dd6861d0bd1f51882a303 | 101 | mvvm-clean-lite-android | MIT License |
core/src/main/java/org/openedx/core/data/model/CourseSharingUtmParameters.kt | openedx | 613,282,821 | false | {"Kotlin": 1313883} | package org.openedx.core.data.model
import com.google.gson.annotations.SerializedName
import org.openedx.core.data.model.room.discovery.CourseSharingUtmParametersDb
import org.openedx.core.domain.model.CourseSharingUtmParameters
data class CourseSharingUtmParameters(
@SerializedName("facebook")
val facebook: ... | 68 | Kotlin | 12 | 9 | c211c3aabd0083699e105f444e1de85d19c4ea4e | 708 | openedx-app-android | Apache License 2.0 |
feature-onboarding-impl/src/main/java/jp/co/soramitsu/feature_onboarding_impl/presentation/welcome/WelcomeViewModel.kt | guangxingmao | 315,566,082 | true | {"Kotlin": 795393} | package jp.co.soramitsu.feature_onboarding_impl.presentation.welcome
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import jp.co.soramitsu.common.base.BaseViewModel
import jp.co.soramitsu.feature_account_api.domain.model.Node
import jp.co.soramitsu.feature_onboarding_api.domain.Onboarding... | 0 | null | 0 | 0 | e4139ee7cbb9b48b4b622d6a3ddcf4a9e25dabca | 1,096 | fearless-Android | Apache License 2.0 |
app/src/main/java/com/mostafahelal/AtmoDrive/auth/presentation/view_model/SendPhoneViewModel.kt | mostafa399 | 670,688,724 | false | {"Kotlin": 173866} | package com.mostafahelal.AtmoDrive.auth.presentation.view_model
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.mostafahelal.AtmoDrive.Utils.NetworkState
import com.mostafahelal.AtmoDrive.Utils.MySharedPreferences
import com.mostafahelal.AtmoDrive.auth.domain.use_case.IAuthUseCa... | 0 | Kotlin | 0 | 0 | d3b9eb07b9722323cd6304559bc5656ce48a63b5 | 1,522 | AtmoDrive | MIT License |
src/main/kotlin/com/cognifide/gradle/aem/common/mvn/DeployPackageOrder.kt | wttech | 90,353,060 | false | {"Kotlin": 792222, "Shell": 8269, "Batchfile": 438} | package com.cognifide.gradle.aem.common.mvn
enum class DeployPackageOrder {
PRECEDENCE,
GRAPH;
companion object {
fun of(value: String) = values().find { value.equals(it.name, ignoreCase = true) }
?: throw MvnException("Unsupported build deploy package order '$value' specified for Mave... | 53 | Kotlin | 32 | 158 | 18d6cab33481f8f883c6139267fb059f7f6047ae | 339 | gradle-aem-plugin | Apache License 2.0 |
app/src/main/java/com/google/maps/android/compose/ui/common/ScaffoldRight.kt | stebaia | 531,377,043 | false | {"Kotlin": 426730} | package com.google.maps.android.compose.ui.common
import androidx.compose.foundation.layout.*
import androidx.compose.material.*
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Close
import androidx.compose.material.icons.filled.Menu
import androidx.compose.runtime.Composable... | 0 | Kotlin | 0 | 0 | f43d4593e04de9ef784988c7d2c310d2ce437c93 | 6,399 | germinapp_android | Apache License 2.0 |
androidApp/src/main/java/com/santansarah/kmmfirebasemessaging/android/domain/notifications/Constants.kt | santansarah | 667,496,286 | false | null | package com.santansarah.kmmfirebasemessaging.android.domain.notifications
import android.app.NotificationManager.IMPORTANCE_DEFAULT
import com.santansarah.kmmfirebasemessaging.SharedRes
enum class NotifyChannelTypes(val channelId: String) {
ORDERS("orderStatus"),
DEALS("deals"),
REMINDERS("reminders")
}
... | 1 | Kotlin | 1 | 7 | ef804a8253f452392c5af9f7dc405e8890f0659e | 1,576 | KMM-Firebase-Messaging | MIT License |
client-android/lib/src/main/kotlin/stasis/client_android/lib/model/server/schedules/Schedule.kt | sndnv | 153,169,374 | false | null | package stasis.client_android.lib.model.server.schedules
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
import java.time.Duration
import java.time.Instant
import java.time.LocalDateTime
import java.time.temporal.ChronoUnit
import java.util.UUID
import kotlin.math.max
@JsonClass(generateAdapter = t... | 0 | null | 4 | 53 | d7b3002880814039b332b3d5373a16b57637eb1e | 1,032 | stasis | Apache License 2.0 |
app/src/androidTest/java/com/fsoftstudio/kinopoisklite/apps/testutils/FakeImageLoader.kt | FlickFun | 626,505,638 | false | null | package com.fsoftstudio.kinopoisklite.apps.testutils
import android.content.Context
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.graphics.drawable.Drawable
import androidx.core.graphics.drawable.toDrawable
import androidx.test.... | 0 | Kotlin | 0 | 0 | eff6528868422ab8e03d23a5a4e0c333e44fa1fc | 2,816 | KinoPoiskLite | Apache License 2.0 |
app/src/main/java/com/example/androiddevchallenge/model/WeatherForecast.kt | ked4ma | 349,264,309 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 0 | 440dd9a070b329fc6aeb237878e6a2665bcacf4d | 862 | AndroidDevChallengeJetpackComposeWeek4 | Apache License 2.0 |
app/src/main/java/io/github/casl0/mediauploader/ui/settings/SettingsScreen.kt | CASL0 | 755,813,714 | false | {"Kotlin": 36273} | package io.github.casl0.mediauploader.ui.settings
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx... | 0 | Kotlin | 0 | 0 | 327e2f2a1cbf161a1a47446afb5309ca49fc8cca | 2,590 | media-uploader | MIT License |
vilkår/bosituasjon/domain/src/main/kotlin/vilkår/bosituasjon/domain/grunnlag/Bosituasjon.kt | navikt | 227,366,088 | false | {"Kotlin": 9465702, "Shell": 4372, "TSQL": 1233, "Dockerfile": 1211} | package vilkår.bosituasjon.domain.grunnlag
import no.nav.su.se.bakover.common.CopyArgs
import no.nav.su.se.bakover.common.domain.Stønadsperiode
import no.nav.su.se.bakover.common.domain.tidslinje.KanPlasseresPåTidslinje
import no.nav.su.se.bakover.common.person.Fnr
import no.nav.su.se.bakover.common.tid.Tidspunkt
impo... | 1 | Kotlin | 1 | 1 | ed28832346c1f839ea3a489eae8cc623079a0a2f | 14,124 | su-se-bakover | MIT License |
api/src/main/kotlin/io/ivana/api/impl/EventSourceData.kt | leroyguillaume | 250,836,819 | false | null | package io.ivana.api.impl
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.annotation.JsonSubTypes
import com.fasterxml.jackson.annotation.JsonTypeInfo
import io.ivana.core.EventSource
import java.net.InetAddress
import java.util.*
private const val SystemTypeValue = "system"
private ... | 2 | Kotlin | 0 | 0 | 3f74eb95fe17d08b836a3c6347b73e8baccf17e2 | 1,310 | ivana | Apache License 2.0 |
app/src/main/java/com/example/androiddevchallenge/ui/MainActivity.kt | GerardPaligot | 343,938,325 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 1 | 4 | 4e57dafe5a0cf908912ed91dddcb4231097423c0 | 1,890 | adopt-puppy-compose | Apache License 2.0 |
MOBA1/04_Kotlin/Game of Life 2/GameOfLife-master/app/src/main/java/com/chris/gameoflife/contract/MainContract.kt | zosslizoss | 506,644,037 | false | null | package com.chris.gameoflife.contract
import com.chris.gameoflife.presenter.BasePresenter
/**
* @author chenchris on 2019-06-14.
*/
interface MainView {
fun onRenderNextStatus(cellArray: Array<IntArray>)
}
abstract class MainPresenter(gameOfLifeViewWidth: Int, gameOfLifeViewHeight: Int, view: MainView) : Base... | 0 | Kotlin | 0 | 0 | 6b9d8d0c7590b95dfc7aadb8cf732b1adef13991 | 558 | Mobile-Application | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.