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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
services/report/src/main/kotlin/de/codecentric/hc/report/web/header/propagation/ServletRequestHeaderInterceptor.kt | codecentric | 448,952,713 | false | null | package de.codecentric.hc.report.web.header.propagation
import jakarta.servlet.http.HttpServletRequest
import jakarta.servlet.http.HttpServletResponse
import org.springframework.web.servlet.HandlerInterceptor
class ServletRequestHeaderInterceptor(val headerPropagationData: HeaderPropagationData) : HandlerInterceptor ... | 12 | null | 3 | 22 | 79464155b067782772d1ba24d62d731d815b096c | 1,095 | habitcentric | MIT License |
src/test/com/intellij/lang/jsgraphql/resolve/GraphQLPsiSearchTest.kt | JetBrains | 47,924,453 | false | {"Gradle Kotlin DSL": 2, "Markdown": 8, "INI": 2, "Shell": 1, "Text": 10, "Ignore List": 1, "Batchfile": 1, "Git Attributes": 1, "XML": 9, "JSON": 28, "JavaScript": 39, "CSS": 1, "Kotlin": 129, "Java": 848, "JFlex": 1, "YAML": 64, "GraphQL": 437, "SVG": 70, "HTML": 20, "Java Properties": 1, "Dotenv": 5, "Vue": 3} | package com.intellij.lang.jsgraphql.resolve
import com.intellij.lang.jsgraphql.GraphQLTestCaseBase
import com.intellij.lang.jsgraphql.ide.search.GraphQLPsiSearchHelper
import com.intellij.lang.jsgraphql.psi.GraphQLFile
import com.intellij.psi.PsiNamedElement
import com.intellij.psi.search.GlobalSearchScope
import com.... | 138 | Java | 97 | 880 | fcd80eea779e595bc5e5b7aa2f1dc3c69b179d97 | 1,878 | js-graphql-intellij-plugin | MIT License |
wear/wear-remote-interactions/src/main/java/androidx/wear/remote/interactions/WatchFaceConfigIntentHelper.kt | RikkaW | 389,105,112 | false | null | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 29 | null | 937 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 5,446 | androidx | Apache License 2.0 |
app/src/main/java/com/example/hbyssystemmanagement/Model/Result.kt | SibelG | 482,640,693 | false | {"Java": 314429, "Kotlin": 194951, "Assembly": 17} | package com.example.hbyssystemmanagement.Model
import android.provider.Contacts.Photos
class Result {
val icon: String? = null
val place_id: String? = null
val scope: String? = null
val website: String? = null
val international_phone_number: String? = null
val adr_address: Strin... | 1 | null | 1 | 1 | 7221d6505258a4bd52392e00453339fb1e8a530e | 856 | HospitalManagement-FinishingProject | MIT License |
core/src/main/java/com/justai/aimybox/api/aimybox/AimyboxDialogApi.kt | just-ai | 193,669,962 | false | {"Kotlin": 260402, "Java": 10956} | package com.justai.aimybox.api.aimybox
import android.net.Uri
import com.justai.aimybox.api.DialogApi
import com.justai.aimybox.core.CustomSkill
import com.justai.aimybox.model.reply.aimybox.*
/**
* Aimybox dialog api implementation.
*
* @param apiKey your project API key
* @param unitId unique device identifier
... | 25 | Kotlin | 17 | 71 | 946f4a7d24e9aeef6b37f864311ec70890889a3c | 1,462 | aimybox-android-sdk | Apache License 2.0 |
src/nl/hannahsten/texifyidea/psi/LatexStubElementTypes.kt | Hannah-Sten | 62,398,769 | false | null | package nl.hannahsten.texifyidea.psi
import nl.hannahsten.texifyidea.index.stub.LatexCommandsStubElementType
import nl.hannahsten.texifyidea.index.stub.LatexEnvironmentStubElementType
import nl.hannahsten.texifyidea.index.stub.LatexMagicCommentStubElementType
/**
* Grammar-Kit cannot generate this file containing on... | 99 | null | 87 | 891 | 986550410e2fea91d1e93abfc683db1c8527c9d9 | 753 | TeXiFy-IDEA | MIT License |
gateway/src/commonMain/kotlin/builder/RequestGuildMembersBuilder.kt | kordlib | 202,856,399 | false | {"Kotlin": 2728142, "Java": 87103} | package dev.kord.gateway.builder
import dev.kord.common.entity.Snowflake
import dev.kord.common.entity.optional.Optional
import dev.kord.common.entity.optional.OptionalBoolean
import dev.kord.common.entity.optional.OptionalInt
import dev.kord.common.entity.optional.delegate.delegate
import dev.kord.gateway.GuildMember... | 52 | Kotlin | 82 | 922 | e99c5c583229d20e69632aae39cee47da637abef | 2,271 | kord | MIT License |
app/src/main/java/ru/nbsp/pushka/bus/event/source/LoadCategoriesEvent.kt | dimorinny | 51,604,851 | false | null | package ru.nbsp.pushka.bus.event.source
import ru.nbsp.pushka.bus.event.BaseEvent
/**
* Created by Dimorinny on 11.03.16.
*/
sealed class LoadCategoriesEvent : BaseEvent {
class Success() : LoadCategoriesEvent()
class Error(val t: Throwable) : LoadCategoriesEvent()
} | 0 | Kotlin | 0 | 0 | 71ac416b33f628bbcec12fad4776f7abc242c882 | 279 | pushka-android | MIT License |
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/diagnostics/KtCompilerPluginDiagnosticImpl.kt | JetBrains | 3,432,266 | false | {"Kotlin": 78346118, "Java": 6692370, "Swift": 4062767, "C": 2609482, "C++": 1962762, "Objective-C++": 169966, "JavaScript": 138328, "Python": 59488, "Shell": 35024, "TypeScript": 22800, "Lex": 18369, "Groovy": 17400, "Objective-C": 15578, "Batchfile": 11746, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9857, "EJS": 5241... | /*
* Copyright 2010-2022 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.analysis.api.fir.diagnostics
import com.intellij.psi.PsiElement
import org.jetbr... | 182 | Kotlin | 5617 | 47,637 | d257153a50bdaa761d54bbc9fd1c5d78a3769f0f | 1,873 | kotlin | Apache License 2.0 |
app/src/main/java/cn/ycbjie/ycaudioplayer/kotlin/view/adapter/AndroidHomeAdapter.kt | magicknight | 145,959,582 | false | {"Java Properties": 2, "Gradle": 7, "Shell": 1, "INI": 2, "Markdown": 2, "Batchfile": 1, "Text": 3, "Ignore List": 3, "XML": 158, "Proguard": 2, "AIDL": 4, "Java": 194, "HTML": 1, "Kotlin": 53} | package cn.ycbjie.ycaudioplayer.kotlin.view.adapter
import android.app.Activity
import android.os.Build
import android.support.annotation.RequiresApi
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import cn.ycbjie.ycaudioplayer.R
import cn.ycbjie.ycaudioplayer.R.id.tvName... | 1 | null | 1 | 1 | a54e925aeff4a3a50e6a1458534a134915316ac0 | 2,130 | YCAudioPlayer | Apache License 2.0 |
LightDefence-源/Cilent Light shield/LightshieldStart.kt | Shiiyuko | 786,441,435 | false | {"Text": 9, "XML": 6, "Java": 7, "Kotlin": 2, "JAR Manifest": 2} | package net.SereinTeam
import LoginGUI
import java.io.DataInputStream
import java.io.DataOutputStream
import java.io.IOException
import java.net.Socket
import java.nio.charset.StandardCharsets
import javax.swing.JOptionPane
import javax.swing.UIManager
import javax.swing.UnsupportedLookAndFeelException
var CDK=""
var... | 0 | null | 0 | 0 | 100787657b098cb10d50d48348b286463cabebc2 | 12,172 | Light-shield | MIT License |
soapui-transform-restassured/src/test/kotlin/eu/k5/soapui/transform/restassured/RestAssuredGeneratorTest.kt | denninger-eu | 244,302,123 | false | {"XML": 41, "Maven POM": 17, "Text": 13, "Ignore List": 1, "Markdown": 1, "Kotlin": 397, "YAML": 106, "Java": 5, "Batchfile": 3, "INI": 1, "Gherkin": 5} | package eu.k5.soapui.transform.restassured
import eu.k5.soapui.test.AbstractTest
import eu.k5.soapui.test.ClasspathContentAssert
import org.junit.jupiter.api.Test
class RestAssuredGeneratorTest : AbstractTest() {
@Test
fun `properties`() {
val testCase = loadTestcase("properties").testSuites[0].tes... | 5 | Kotlin | 0 | 0 | 665e54e4ac65d6c7e9805bb1b44f30f9ec702ce3 | 1,846 | soapui-utils | Apache License 2.0 |
plugins/kotlin/gradle/gradle-tooling/src/org/jetbrains/kotlin/idea/gradleTooling/builders/KotlinModuleBuilder.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.gradleTooling.builders
import org.jetbrains.kotlin.idea.gradleTooling.KotlinModuleImpl
import org.jetbrains.kotlin.idea.gradle... | 191 | null | 4372 | 13,319 | 4d19d247824d8005662f7bd0c03f88ae81d5364b | 1,120 | intellij-community | Apache License 2.0 |
core/acp-client/src/main/kotlin/io/github/zhangbinhub/acp/core/client/socket/udp/UdpClient.kt | zhangbinhub | 279,298,314 | false | null | package io.github.zhangbinhub.acp.core.client.socket.udp
import io.netty.bootstrap.Bootstrap
import io.netty.buffer.ByteBuf
import io.netty.buffer.Unpooled
import io.netty.channel.Channel
import io.netty.channel.ChannelHandlerContext
import io.netty.channel.ChannelInitializer
import io.netty.channel.ChannelOption
impo... | 0 | null | 4 | 8 | 3d63305f56fed8302fc63fa45d6ebd30cbbd8c3e | 2,002 | acp | Apache License 2.0 |
app/src/main/java/com/ibashkimi/wheel/settings/PrefsFragment.kt | indritbashkimi | 246,021,936 | false | null | package com.ibashkimi.wheel.settings
import android.os.Bundle
import androidx.preference.PreferenceFragmentCompat
import com.ibashkimi.wheel.R
class PrefsFragment : PreferenceFragmentCompat() {
override fun onCreatePreferences(bundle: Bundle?, rootKey: String?) {
addPreferencesFromResource(R.xml.pref_gene... | 1 | Kotlin | 3 | 7 | 9ac7efc8ebca47bf6835bccd0b76e55e2d220fa7 | 332 | wheel | MIT License |
sample-kotlin/src/main/java/com/dylanc/loadingstateview/sample/kotlin/base/BaseFragment.kt | DylanCaiCoding | 193,059,401 | false | null | /*
* Copyright (c) 2019. <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 i... | 6 | null | 51 | 630 | 5ba31a7b6a59ede396cb9ee96b9363801c27580f | 1,377 | LoadingStateView | Apache License 2.0 |
sdk/src/main/java/com/robotemi/sdk/listeners/OnGoToLocationStatusChangedListener.kt | Moniefa | 590,257,379 | false | null | package com.robotemi.sdk.listeners
import androidx.annotation.StringDef
interface OnGoToLocationStatusChangedListener {
/**
* Listen for status changes during 'go to location'.
*
*
* Available statuses:
*
* * [OnGoToLocationStatusChangedListener.START]
* * [OnGoToLocationStat... | 1 | null | 1 | 3 | a6336ec1771046487a834afad5d5a87e03a50867 | 1,174 | TourApp2 | Apache License 2.0 |
storio-sqlite-annotations-processor/src/main/kotlin/com/pushtorefresh/storio3/sqlite/annotations/processor/introspection/StorIOSQLiteColumnMeta.kt | justokay | 215,059,913 | true | {"INI": 11, "Markdown": 7, "YAML": 1, "Text": 1, "Gradle": 22, "Shell": 2, "Batchfile": 1, "Ignore List": 4, "Java": 527, "XML": 37, "Kotlin": 33, "Proguard": 1} | package com.pushtorefresh.storio3.sqlite.annotations.processor.introspection
import com.pushtorefresh.storio3.common.annotations.processor.introspection.JavaType
import com.pushtorefresh.storio3.common.annotations.processor.introspection.StorIOColumnMeta
import com.pushtorefresh.storio3.sqlite.annotations.StorIOSQLite... | 42 | Java | 2 | 3 | 0f4a420017dab92b8152dc6f7073740c0b3aeea7 | 750 | storio | Apache License 2.0 |
amazon-chime-sdk/src/main/java/com/amazonaws/services/chime/sdk/meetings/utils/RefCountDelegate.kt | aws | 249,543,698 | false | null | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package com.amazonaws.services.chime.sdk.meetings.utils
import java.util.concurrent.atomic.AtomicInteger
class RefCountDelegate(private val releaseCallback: Runnable) {
private val refCount: Atomic... | 32 | null | 53 | 99 | 9d764981cd426b57ac1d0908a598a7072243ebb0 | 770 | amazon-chime-sdk-android | Apache License 2.0 |
amazon-chime-sdk/src/main/java/com/amazonaws/services/chime/sdk/meetings/utils/RefCountDelegate.kt | aws | 249,543,698 | false | null | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package com.amazonaws.services.chime.sdk.meetings.utils
import java.util.concurrent.atomic.AtomicInteger
class RefCountDelegate(private val releaseCallback: Runnable) {
private val refCount: Atomic... | 32 | null | 53 | 99 | 9d764981cd426b57ac1d0908a598a7072243ebb0 | 770 | amazon-chime-sdk-android | Apache License 2.0 |
devp2p/src/test/kotlin/org/apache/tuweni/devp2p/v5/encrypt/SessionKeyGeneratorTest.kt | Consensys | 693,991,624 | true | {"SVG": 2, "Java Properties": 2, "Markdown": 64, "Gradle": 64, "Shell": 3, "EditorConfig": 1, "YAML": 13760, "Git Attributes": 1, "Batchfile": 1, "Text": 33, "Ignore List": 2, "Git Config": 1, "Kotlin": 393, "TOML": 8, "Java": 443, "XML": 18, "JSON": 17343, "JavaScript": 4, "CSS": 1, "HTML": 8, "SQL": 5, "INI": 3, "ANT... | // Copyright The Tuweni Authors
// SPDX-License-Identifier: Apache-2.0
package org.apache.tuweni.devp2p.v5.encrypt
import org.apache.tuweni.bytes.Bytes
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
class SessionKeyGeneratorTest {
@Test
fun generateCreatesSessionKey() {
... | 1 | Java | 2 | 0 | d780a654afc90f5fd3c16540d592259487e0a190 | 1,235 | tuweni | Apache License 2.0 |
compiler/testData/diagnostics/tests/annotations/javaRepeatableRetention.kt | JakeWharton | 99,388,807 | false | null | // FULL_JDK
// FILE: RepeatableAnnotation.java
import java.lang.annotation.*;
@Repeatable(RepeatableAnnotations.class)
@Retention(RetentionPolicy.RUNTIME)
public @interface RepeatableAnnotation {
}
// FILE: RepeatableAnnotations.java
public @interface RepeatableAnnotations {
RepeatableAnnotation[] value();
}
/... | 0 | null | 4 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 460 | kotlin | Apache License 2.0 |
camera/integration-tests/camerapipetestapp/src/main/java/androidx/camera/integration/camera2/pipe/extensions/NumberOperators.kt | RikkaW | 389,105,112 | false | null | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 28 | null | 937 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 1,719 | androidx | Apache License 2.0 |
src/commonMain/kotlin/animatedledstrip/leds/colormanagement/GetColorUtils.kt | AnimatedLEDStrip | 168,790,414 | false | {"Kotlin": 844872, "Python": 9025, "Shell": 8325} | /*
* Copyright (c) 2018-2021 AnimatedLEDStrip
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merg... | 10 | Kotlin | 3 | 9 | 77a61846dbf723686633827a5690d57c4a451723 | 8,573 | AnimatedLEDStrip | MIT License |
youtubeparser/src/main/java/com/prof/youtubeparser/enginecoroutines/CoroutineEngine.kt | prof18 | 61,236,733 | false | null | /*
* Copyright 2019 <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... | 1 | null | 31 | 86 | ed8c78e86d46763ec185975022fd7c4165940a05 | 1,521 | YoutubeParser | Apache License 2.0 |
app/src/main/java/com/akshay/roomaccounting/ui/recyclerview/RoomAccRecyclerViewAdapter.kt | anandwana001 | 470,781,738 | false | null | /**
* Created by anandwana001 on
* 22, March, 2022
**/
package com.akshay.homepage.ui.recyclerview
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import kotlin.reflect.KClass
/** A function that returns the integer-based type of view that can bind the specified object. */
private t... | 2 | null | 2 | 29 | 9901444c7e94063f80c244b7b3b54a09a2141727 | 2,000 | RoomAccounting | MIT License |
src/main/kotlin/building/roads.kt | TinyAngryKitten | 216,253,723 | true | {"JavaScript": 2671668, "Kotlin": 22182} | package building
import screeps.api.*
import screeps.api.structures.StructureExtension
fun buildRoad(from : RoomPosition, to : RoomPosition, room : Room) =
from.findPathTo(to).forEach {
room.createConstructionSite(it.x,it.y, STRUCTURE_ROAD)
}
fun ensureCriticalRoadsExists(room : Room) =
room.also... | 0 | JavaScript | 0 | 0 | 9ccc3ebdcac72d809af388f5e78d8de835848f60 | 1,094 | screeps-kotlin-starter | MIT License |
src/main/kotlin/dev/alluvial/sink/iceberg/avro/KafkaAvroWriter.kt | dungdm93 | 446,678,188 | false | {"Kotlin": 549736, "Java": 60814, "Smarty": 3194, "Dockerfile": 1470, "Shell": 1359} | package dev.alluvial.sink.iceberg.avro
import dev.alluvial.sink.iceberg.type.AvroSchema
import dev.alluvial.sink.iceberg.type.AvroType
import dev.alluvial.sink.iceberg.type.AvroValueWriter
import dev.alluvial.sink.iceberg.type.AvroValueWriters
import dev.alluvial.sink.iceberg.type.KafkaSchema
import dev.alluvial.sink.... | 0 | Kotlin | 0 | 1 | 51a2d30fc45b25e6763d33c84dd2ac2b71a8a4c0 | 4,615 | alluvial | Apache License 2.0 |
data/src/test/java/com/andigeeky/movies/data/movies/MoviesFactory.kt | mamatagelanee07 | 237,600,254 | false | null | package com.andigeeky.movies.data.movies
import com.andigeeky.movies.data.movies.popular.model.MovieEntity
import com.andigeeky.movies.data.movies.popular.model.PopularMoviesEntity
import com.andigeeky.movies.domain.movies.popular.model.Movie
internal object MoviesFactory {
fun getPopularMovies(page: Int, size: I... | 4 | Kotlin | 0 | 1 | 918182a32570d05bf0fbb987ffb54f43c7979c0f | 2,827 | clean-movie-app | Apache License 2.0 |
app/src/main/java/com/bogdan/codeforceswatcher/components/compose/LinkText.kt | xorum-io | 208,440,935 | false | null | package com.bogdan.codeforceswatcher.components.compose
import androidx.compose.foundation.text.ClickableText
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.*
import androidx.compose.ui.text.style.TextDecorat... | 41 | null | 15 | 76 | a921b4a49fcb26bd73c62e582efc15dc2fe913e4 | 2,334 | codeforces_watcher | MIT License |
app/src/main/java/com/whl/testflow/testKT/testCorountine/testCorountine.kt | wanghailong0526 | 614,267,321 | false | null | package com.whl.testflow.testKT
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.async
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
/**
*
* @date :
* @author : wanghailong
*
* @description: TODO
*
*/
fun main(){
runBlocking {
}
GlobalScope.launch {
... | 0 | Kotlin | 0 | 0 | de4a6f64521915834d848620ac6de7fe241a0dd1 | 355 | testKotlin | Apache License 2.0 |
antlr-kotlin-runtime/src/nativeMain/kotlin/com/strumenta/kotlinmultiplatform/IdentityHashMap.kt | wilkomanger | 345,111,070 | true | {"Gradle Kotlin DSL": 9, "Markdown": 25, "Shell": 3, "Ignore List": 3, "Batchfile": 2, "YAML": 1, "Kotlin": 216, "INI": 2, "HTML": 1, "Gradle": 1, "ANTLR": 55, "JavaScript": 50, "JSON": 1, "Java": 39, "Maven POM": 39, "ABNF": 3, "Text": 88, "Assembly": 5, "Apollo Guidance Computer": 39, "ASN.1": 1, "Brainfuck": 4, "Mak... | package com.strumenta.kotlinmultiplatform
// TODO what is an identityhashmap?
actual class IdentityHashMap<K, V> : MutableMap<K, V> by emptyMap<K, V>().toMutableMap()
| 0 | Kotlin | 0 | 0 | df49f222dfa5fd29521b71b3dc76b2d116fd3861 | 168 | antlr-kotlin | Apache License 2.0 |
mvvm/src/main/java/app/allever/android/lib/mvvm/demo/MainViewModel.kt | devallever | 446,030,743 | false | null | package app.allever.android.lib.mvvm.demo
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import app.allever.android.lib.mvvm.base.BaseViewModel
import kotlinx.coroutines.launch
class MainFragmentViewModel : BaseViewModel() {
val usernameLiveData = MutableLiveData<String>()
... | 1 | null | 8 | 52 | b5ec21078c8a6f509822c763fc90d6106b64bde3 | 465 | AndroidBaseLibs | Apache License 2.0 |
src/main/kotlin/org/bymc/gomoku/model/abstraction/History.kt | watermirror | 539,082,095 | false | {"Kotlin": 235223} | package org.bymc.gomoku.model.abstraction
import org.bymc.gomoku.model.common.param.Drop
import org.bymc.gomoku.model.common.param.Stone
import java.util.Date
/**
* 棋局历史接口。
*
* @author: zheng.chez
* @since: 2022/09/22
*/
interface History : HistoryViewModel, HistoryOperator | 0 | Kotlin | 0 | 2 | cb6b9caa0de191097eab5fcd08f76bbdbb991a1b | 281 | gomoku | MIT License |
syfosmarena-stream/src/main/kotlin/no/nav/syfo/Environment.kt | navikt | 631,873,673 | false | null | package no.nav.syfo
data class Environment(
val applicationPort: Int = getEnvVar("APPLICATION_PORT", "8080").toInt(),
val applicationName: String = getEnvVar("NAIS_APP_NAME", "syfosmarena-stream"),
val okSykmeldingTopic: String = "teamsykmelding.ok-sykmelding",
val manuellSykmeldingTopic: String = "tea... | 0 | Kotlin | 1 | 0 | 9408217df3dde8f8df3eb04eb5d24c2c204aba46 | 785 | syfosmarena-stream | MIT License |
src/main/kotlin/icu/windea/pls/lang/config/ParadoxConfigContext.kt | DragonKnightOfBreeze | 328,104,626 | false | null | package icu.windea.pls.lang.config
import com.intellij.openapi.util.*
import icu.windea.pls.core.*
import icu.windea.pls.lang.model.*
/**
* CWT规则上下文。
*
* 用于后续获取对应的所有可能的CWT规则以及匹配的CWT规则,从而提供高级语言功能。例如代码高亮、引用解析、代码补全。
*
* 可以获取CWT规则上下文不意味着可以获取对应的所有可能的CWT规则。
*
* @property type 对应的位置是直接在文件中,还是直接在子句中,还是属性的值。
* @prop... | 4 | Kotlin | 3 | 21 | 0a1bfd0aeec26e4503f87610b3bd9772ade6948c | 1,128 | Paradox-Language-Support | MIT License |
examples/saas/src/main/java/me/digi/saas/framework/di/UseCasesModule.kt | digime | 198,619,583 | false | {"Kotlin": 198719} | package me.digi.saas.framework.di
import me.digi.saas.usecases.*
import org.koin.core.module.Module
import org.koin.dsl.module
val useCasesModule: Module = module {
single<AuthorizeAccessUseCase> { AuthorizeAccessUseCaseImpl(get()) }
single<OnboardServiceUseCase> { OnboardServiceUseCaseImpl(get()) }
singl... | 0 | Kotlin | 3 | 1 | dd0b82f0c991547c220d09408b63996b758a4c0d | 795 | digime-sdk-android | Apache License 2.0 |
kgl-vulkan/src/jvmMain/kotlin/com/kgl/vulkan/enums/DeviceQueueCreate.kt | NikkyAI | 223,607,080 | true | {"Kotlin": 1894114, "C": 1742775} | /**
* Copyright [2019] [<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 w... | 0 | Kotlin | 0 | 0 | 74de23862c29404e7751490331cbafbef310bd63 | 1,175 | kgl | Apache License 2.0 |
core/src/main/kotlin/Helpers.kt | hexagonkt | 56,139,239 | false | null | package com.hexagonkt.helpers
import com.hexagonkt.logging.Logger
import java.io.BufferedReader
import java.io.File
import java.io.InputStreamReader
import java.net.ServerSocket
import java.net.Socket
import java.util.concurrent.TimeUnit.SECONDS
/** Default logger for when you feel too lazy to declare one. */
val log... | 23 | null | 81 | 373 | dbc0d602aa48cfc58644f15329a8308b65ca6cc1 | 9,100 | hexagon | MIT License |
browser-kotlin/src/jsMain/kotlin/web/device/DeviceOrientationEvent.types.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6214094} | // Automatically generated - do not modify!
package web.device
import seskar.js.JsValue
import web.events.EventTarget
import web.events.EventType
sealed external class DeviceOrientationEventTypes {
@JsValue("deviceorientation")
fun <C : EventTarget> deviceOrientation(): EventType<DeviceOrientationEvent, C>
... | 0 | Kotlin | 7 | 35 | ac6d96e24eb8d07539990dc2d88cbe85aa811312 | 457 | types-kotlin | Apache License 2.0 |
shared/src/commonMain/kotlin/xyz/alaniz/aaron/lightsaber/ui/settings/SettingsUi.kt | aaalaniz | 678,780,458 | false | {"Kotlin": 59582, "Swift": 613, "Shell": 228, "Ruby": 101} | package xyz.alaniz.aaron.lightsaber.ui.settings
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.found... | 0 | Kotlin | 1 | 16 | 0c821e63bfcb9b5daa79e8219343e06fa290da5f | 8,029 | compose-lightsaber | Apache License 2.0 |
modules/database/src/main/java/se/eelde/toggles/database/WrenchDatabase.kt | erikeelde | 273,583,444 | false | {"Kotlin": 236632, "Shell": 2313} | package se.eelde.toggles.database
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
@Database(
entities = [
WrenchApplication::class,
WrenchConfiguration::class,
WrenchConfigurationValue::class,
WrenchPredefinedConfigurationValue::c... | 4 | Kotlin | 2 | 7 | bf05cb3860771bb44161275266e4a2ff5a52d7c9 | 797 | toggles | MIT License |
analysis/low-level-api-fir/testData/getOrBuildFirBinary/containerSource/js/primaryConstructor.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... | // DECLARATION_TYPE: org.jetbrains.kotlin.psi.KtConstructor
package test
class MyClass()
| 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 91 | kotlin | Apache License 2.0 |
app/src/main/kotlin/com/jameskbride/codemashcompanion/injection/ApplicationComponent.kt | jameskbride | 111,301,835 | false | null | package com.jameskbride.codemashcompanion.injection
import com.jameskbride.codemashcompanion.about.AboutActivity
import com.jameskbride.codemashcompanion.schedule.ScheduleFragment
import com.jameskbride.codemashcompanion.application.CodemashCompanionApplication
import com.jameskbride.codemashcompanion.codeofconduct.Co... | 1 | Kotlin | 0 | 1 | 04dff3c54ef5aaf1eef914c0a0beec2cfa5953a4 | 1,906 | codemash-companion | MIT License |
app/src/main/java/cucerdariancatalin/gallery/databases/GalleryDatabase.kt | darian-catalin-cucer | 586,362,343 | false | null | package com.cyberkey.videoplayer.databases
import android.content.Context
import androidx.room.Database
import androidx.room.Ignore
import androidx.room.Room
import androidx.room.RoomDatabase
import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase
import com.cyberkey.videoplayer.interf... | 0 | null | 0 | 2 | 1ecd1e815ec628c932fdce318ca1da2247d0aa91 | 4,081 | Gallery | MIT License |
app/src/main/java/com/codexo/cryptopeak/ui/FavoriteFragment.kt | EyuCoder | 392,365,477 | false | {"Kotlin": 40585} | package com.codexo.cryptopeak.ui
import android.os.Bundle
import android.view.View
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
import androidx.navigation.fragment.findNavController
import androidx.recyclerview.widget.LinearLayoutManager
import com.codexo.cryptopeak.R
import co... | 11 | Kotlin | 2 | 16 | d808ddae790fb26a9bda77f24864e10d16aef786 | 2,415 | CryptoPeak | Apache License 2.0 |
sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/messages/MessageMeta.kt | wulkanowy | 138,756,468 | false | {"Kotlin": 705036, "HTML": 70768} | package io.github.wulkanowy.sdk.scrapper.messages
import io.github.wulkanowy.sdk.scrapper.adapter.CustomDateAdapter
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import java.time.LocalDateTime
@Serializable
data class MessageMeta(
@SerialName("apiGlobalKey")
val apiGlobalK... | 11 | Kotlin | 5 | 8 | 340245d8ccc2790dcb75219c2839e8bdd8b448a4 | 966 | sdk | Apache License 2.0 |
app/src/main/java/com/utn/MascotApp/models/Pets.kt | IvanCasanova98 | 449,395,446 | true | null | package com.utn.MascotApp.models
import com.google.firebase.firestore.Exclude
import com.google.firebase.firestore.GeoPoint
import com.google.firebase.firestore.IgnoreExtraProperties
import java.util.*
import kotlin.collections.ArrayList
@IgnoreExtraProperties
data class Pets(
var species: String? = "",
var b... | 0 | null | 0 | 0 | 5ea8c9046243924b24801d46a61bfd72562765ce | 945 | MascotApp | MIT License |
src/main/kotlin/dev/patbeagan/days/Day05.kt | patbeagan1 | 576,401,502 | false | {"Kotlin": 57404} | package dev.patbeagan.days
import java.util.EmptyStackException
import java.util.Stack
/**
* [Day 5](https://adventofcode.com/2022/day/5)
*/
class Day05 : AdventDay<String> {
override fun part1(input: String): String {
val (crateYard, moveCommands) = parseInput(input)
moveCommands.forEach {
... | 0 | Kotlin | 0 | 0 | 4e25b38226bcd0dbd9c2ea18553c876bf2ec1722 | 3,095 | AOC-2022-in-Kotlin | Apache License 2.0 |
src/main/kotlin/no/nav/helse/domene/aiy/aareg/ArbeidstakerService.kt | navikt | 157,684,573 | false | {"Kotlin": 756905, "Shell": 328, "Dockerfile": 47} | package no.nav.helse.domene.aiy.aareg
import arrow.core.flatMap
import no.nav.helse.arrow.sequenceU
import no.nav.helse.domene.AktørId
import no.nav.helse.domene.aiy.ArbeidDomainMapper
import no.nav.helse.domene.aiy.domain.Arbeidsforhold
import no.nav.helse.oppslag.arbeidsforhold.ArbeidsforholdClient
import no.nav.hel... | 0 | Kotlin | 0 | 1 | ed034e9b111afd53715c410029b67c8b06aaf702 | 1,900 | helse-sparkel | MIT License |
features/crash/src/main/java/com/m3u/features/crash/CrashActivity.kt | oxyroid | 592,741,804 | false | null | package com.m3u.features.crash
import android.content.res.Configuration
import android.net.Uri
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.activity.result.ActivityResultLauncher
import androidx... | 22 | null | 19 | 193 | a709fbc0b2d7138edc9de7b53ff3bb036218bad2 | 2,860 | M3UAndroid | Apache License 2.0 |
app/src/main/java/chat/rocket/android/server/domain/SaveConnectingServerInteractor.kt | RocketChat | 48,179,404 | false | null | package chat.rocket.android.server.domain
import chat.rocket.android.dagger.qualifier.ForAuthentication
import javax.inject.Inject
class SaveConnectingServerInteractor @Inject constructor(
@ForAuthentication private val repository: CurrentServerRepository
) {
fun save(url: String) = repository.save(url)
} | 283 | null | 585 | 877 | f832d59cb2130e5c058f5d9e9de5ff961d5d3380 | 316 | Rocket.Chat.Android | MIT License |
app/src/main/kotlin/com/sbgapps/scoreit/app/ui/edition/universal/UniversalInputScore.kt | StephaneBg | 16,022,770 | false | null | /*
* Copyright 2019 <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 writin... | 1 | null | 11 | 37 | 7684d40c56c3293b1e9b06158efcbefa51693f7a | 3,874 | ScoreIt | Apache License 2.0 |
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/opmodes/RedTeleOp.kt | jmaff | 190,898,816 | false | null | package org.firstinspires.ftc.teamcode.opmodes
import com.qualcomm.hardware.modernrobotics.ModernRoboticsI2cGyro
import com.qualcomm.robotcore.eventloop.opmode.TeleOp
import com.qualcomm.robotcore.hardware.DcMotor
import org.firstinspires.ftc.robotcore.external.navigation.DistanceUnit
import org.firstinspires.ftc.team... | 1 | null | 1 | 1 | 784f1f006bc5b0887e104b33b7fc58e8dd846752 | 6,714 | skystone | MIT License |
sdk/src/main/kotlin/com/processout/sdk/api/model/response/POBillingAddressCollectionMode.kt | processout | 117,821,122 | false | {"Kotlin": 1057446, "Java": 85526, "Shell": 696} | package com.processout.sdk.api.model.response
import com.squareup.moshi.JsonClass
/**
* Billing address collection modes.
*/
@Suppress("EnumEntryName")
@JsonClass(generateAdapter = false)
enum class POBillingAddressCollectionMode {
/** Collect the full billing address. */
full,
/** Only collect the fie... | 0 | Kotlin | 5 | 2 | 3fea78df2d752852a1baad4340b17612d2e081c9 | 453 | processout-android | MIT License |
Android/app/src/main/java/com/amrdeveloper/askme/viewmodels/UserSearchDataSource.kt | hieuh0 | 350,631,921 | true | {"Kotlin": 154913, "JavaScript": 71355} | package com.amrdeveloper.askme.viewmodels
import android.util.Log
import androidx.paging.PageKeyedDataSource
import com.amrdeveloper.askme.models.User
import com.amrdeveloper.askme.net.DEFAULT_QUERY_PAGE_SIZE
import com.amrdeveloper.askme.net.UserService
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutin... | 0 | null | 0 | 0 | 0cf9fe595d991a152a55182300f04f4f0b895333 | 2,182 | Askme | MIT License |
app/src/main/java/com/example/pokedex/activity/MainActivity.kt | nicolaussatria | 729,398,936 | false | {"Kotlin": 36825} | package com.example.pokedex.activity
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.WindowCompat
import com.google.android.material.color.DynamicColors
import dagger.hilt.android.AndroidEntryPoint
import com.example.pokedex.R
import com.example.pokedex.databinding.Ac... | 0 | Kotlin | 0 | 0 | 8f6ee7ca9d9c29d4976b374cc344fa8314d1b286 | 1,318 | pokedex | Apache License 2.0 |
androidApp/src/main/java/com/hotmail/arehmananis/composedemo/android/common/Utils.kt | abdul-rehman-ghazi | 841,388,176 | false | {"Kotlin": 53537, "Swift": 342} | package com.hotmail.arehmananis.composedemo.android.common
import android.annotation.SuppressLint
import android.app.Activity
import android.content.ClipData
import android.content.ClipboardManager
import android.content.ContentValues
import android.content.Context
import android.content.Intent
import android.content.... | 0 | Kotlin | 0 | 0 | f09db8742b34d48b4aa914e46719542c4dbdce8c | 14,222 | news-app-compose | MIT License |
app/src/main/kotlin/com/wr/musicorganizer/utils/Indexer.kt | the-wr | 103,320,649 | false | null | package com.wr.musicorganizer.utils
import android.content.Context
import android.media.MediaMetadataRetriever
import com.wr.musicorganizer.core.Track
import io.reactivex.Observable
object Indexer {
fun reindexMusic(context: Context, folder: String): Observable<Track> =
FileIndexer.indexFiles(context, fo... | 0 | Kotlin | 0 | 0 | 98eabe8d8be222da5e86d30a2ce2f7b3907e6fa9 | 2,324 | music-organizer | MIT License |
app/src/main/java/com/muhammedesadcomert/ecommerceapp/ui/favorites/FavoriteAdapter.kt | muhammedesadcomert | 438,645,365 | false | {"Kotlin": 57506} | package com.muhammedesadcomert.ecommerceapp.ui.favorites
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.muhammedesadcomert.ecommerceapp.databinding.FavoriteCardBinding
import com.muhammedesadcomert.ecommerceapp.model.Product
class FavoriteA... | 0 | Kotlin | 1 | 5 | f52c8332ac7e1df790efcbafd80cfbb989a7902d | 1,139 | eCommerceApp | MIT License |
src/main/kotlin/org/jetbrains/plugins/template/api/data/graphql/BBGQLQueryRequest.kt | arthas-choi | 282,000,001 | false | null | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.plugins.template.api.data.graphql
class BBGQLQueryRequest(val query: String, val variables: Any) | 1 | null | 1 | 1 | 8f5821fdaf4c933abab1b4c7fb62f4fd58f72138 | 260 | intellij-bitbucket | Apache License 2.0 |
secdra-web/src/main/kotlin/com/junjie/secdraweb/vo/TagVO.kt | CordyHo | 202,645,818 | true | {"Kotlin": 217975, "HTML": 4151} | package com.junjie.secdraweb.vo
class TagVO(name: String, url: String) {
var name: String? = name
var url: String? = url
} | 0 | Kotlin | 0 | 0 | 4536a7a2bfb0e192d10c94e88aa26f3305059a45 | 132 | secdra | MIT License |
app/src/main/java/com/example/androiddevchallenge/ui/Home.kt | NanBox | 342,142,724 | 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 | 1 | 40c615e66e1b4b737040951efe345a4fae56bbaa | 2,108 | UltramanAdoption | Apache License 2.0 |
composeApp/src/commonMain/kotlin/login/presentation/LoginScreen.kt | FawnRescue | 727,288,106 | false | {"Kotlin": 265190, "Swift": 594} | package login.presentation
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.height... | 0 | Kotlin | 0 | 0 | 58f1f07c1a7617a94c40ff5e38d8ebe36b1ff8bc | 5,157 | frontend | MIT License |
server/src/main/kotlin/delta/codecharacter/server/user/public_user/PublicUserRepository.kt | delta | 455,817,943 | false | null | package delta.codecharacter.server.user.public_user
import org.springframework.data.mongodb.repository.MongoRepository
import java.util.Optional
import java.util.UUID
interface PublicUserRepository : MongoRepository<PublicUserEntity, UUID> {
fun findByUsername(username: String): Optional<PublicUserEntity>
}
| 2 | Kotlin | 3 | 5 | c00c0286a7a854a45db9c0418de6ef40e4233fe9 | 315 | codecharacter-server-2022 | MIT License |
libs/tangleLib003/src/main/java/tangle/benchmark/tangleLib003/TangleLib003ViewModel.kt | RBusarow | 415,108,675 | false | null | package tangle.benchmark.tangleLib003
import androidx.lifecycle.ViewModel
import tangle.viewmodel.VMInject
class TangleLib003ViewModel @VMInject constructor() : ViewModel()
| 0 | Kotlin | 0 | 1 | b271faeb36f8f57977dd2b43d276098e1932f4eb | 175 | tangle-benchmark-project | Apache License 2.0 |
kotlin-electron/src/jsMain/generated/electron/renderer/ConsoleMessageEvent.kt | JetBrains | 93,250,841 | false | {"Kotlin": 11411371, "JavaScript": 154302} | package electron.renderer
typealias ConsoleMessageEvent = electron.core.ConsoleMessageEvent
| 28 | Kotlin | 173 | 1,250 | 9e9dda28cf74f68b42a712c27f2e97d63af17628 | 94 | kotlin-wrappers | Apache License 2.0 |
app/src/main/java/fr/kokyett/rsspire/models/FeedIcon.kt | Kokyett | 640,213,902 | false | {"Kotlin": 157989} | package fr.kokyett.rsspire.models
class FeedIcon(val url: String, var byteArray: ByteArray? = null) | 0 | Kotlin | 0 | 1 | 84bf480bfedf19d430bb0c3344c8d4b68cccdd7f | 100 | RSSpire | Do What The F*ck You Want To Public License |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/apigatewayv2/WebSocketIntegration.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 137826907} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.apigatewayv2
import io.cloudshiftdev.awscdk.Duration
import io.cloudshiftdev.awscdk.Resource
import i... | 4 | Kotlin | 0 | 4 | 9a242bcc59b2c1cf505be2f9d838f1cd8008fe12 | 12,809 | kotlin-cdk-wrapper | Apache License 2.0 |
src/main/kotlin/no/nav/sbl/sosialhjelp_mock_alt/integrations/fiks/SvarUtController.kt | navikt | 257,863,652 | false | null | package no.nav.sbl.sosialhjelp_mock_alt.integrations.fiks
import com.fasterxml.jackson.module.kotlin.readValue
import no.ks.fiks.svarut.klient.model.Forsendelse
import no.ks.fiks.svarut.klient.model.ForsendelsesId
import no.nav.sbl.soknadsosialhjelp.soknad.JsonSoknad
import no.nav.sbl.sosialhjelp_mock_alt.datastore.fi... | 2 | null | 0 | 1 | 040e992d14fcf84ac75f63d5f5e3ebad5820361d | 1,862 | sosialhjelp-mock-alt-api | MIT License |
src/main/kotlin/nl/avisi/structurizr/site/generatr/site/views/WorkspaceDocumentationSectionPage.kt | avisi-cloud | 504,087,853 | false | null | package nl.avisi.structurizr.site.generatr.site.views
import kotlinx.html.HTML
import nl.avisi.structurizr.site.generatr.site.model.WorkspaceDocumentationSectionPageViewModel
fun HTML.workspaceDocumentationSectionPage(viewModel: WorkspaceDocumentationSectionPageViewModel) {
page(viewModel) {
contentDiv {
... | 14 | Kotlin | 16 | 99 | e0e6f3b10af3041db8346e10bb1d30c4a346c010 | 377 | structurizr-site-generatr | Apache License 2.0 |
core/src/org/river/exertion/demos/geom/nodeLine/DemoNodeLineBorderingScreen.kt | exertionriver | 345,650,250 | false | null | package org.river.exertion.demos.geom.nodeLine
import com.badlogic.gdx.graphics.*
import com.badlogic.gdx.graphics.g2d.Batch
import com.badlogic.gdx.graphics.g2d.BitmapFont
import ktx.app.KtxScreen
import ktx.graphics.use
import org.river.exertion.*
import org.river.exertion.geom.node.nodeMesh.INodeMesh.Companion.setB... | 0 | Kotlin | 0 | 2 | e554d700d5fbc16953a61d782cbe63162072483a | 4,993 | koboldCave | MIT License |
logcat/src/com/android/tools/idea/logcat/actions/AskStudioBotAction.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 3 | null | 220 | 921 | dbd9aeae0dc5b8c56ce2c7d51208ba26ea0f169b | 2,610 | android | Apache License 2.0 |
src/main/java/com/tang/intellij/lua/editor/formatter/blocks/LuaBinaryScriptBlock.kt | liufeigit | 108,974,656 | true | {"C": 2447035, "C++": 748984, "HTML": 714103, "Kotlin": 420402, "Java": 416964, "Lua": 325698, "Makefile": 23168, "Assembly": 17667, "Lex": 12031, "Roff": 10538, "CSS": 4857, "Objective-C": 3611} | /*
* Copyright (c) 2017. tangzx(love.tangzx@qq.com)
*
* 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 l... | 0 | C | 0 | 1 | 4402534a9c7b20d7571dae7268c182ce58bca154 | 1,589 | IntelliJ-EmmyLua | Apache License 2.0 |
stream_component/src/main/java/com/xyoye/stream_component/ui/activities/remote_file/RemoteFileViewModel.kt | xyoye | 138,993,190 | false | null | package com.xyoye.stream_component.ui.activities.remote_file
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import com.xyoye.common_component.base.BaseViewModel
import com.xyoye.common_component.network.Retrofit
import com.xyoye.common_component.network.request.httpRequest
import co... | 57 | null | 67 | 627 | 2fc5a989e879d5556fe6e6458f1c35daadf78c98 | 1,904 | DanDanPlayForAndroid | Apache License 2.0 |
Task-Tracker-Entities/src/commonMain/kotlin/com/garbereder/tasktracker/entities/Activity.kt | Task-Tracker-Systems | 644,555,079 | false | null | package com.garbereder.tasktracker.entities
data class Activity(
val durationInSeconds: Long,
val task: Task
)
| 2 | Kotlin | 0 | 0 | 48a750587bb5dbfc63969ef1a952cadf097ee4fd | 120 | Task-Tracker-App | MIT License |
test_runner/src/test/kotlin/ftl/reports/HtmlErrorReportTest.kt | Flank | 84,221,974 | false | {"Kotlin": 1748173, "Java": 101254, "Swift": 41229, "Shell": 10674, "Objective-C": 10006, "Dart": 9705, "HTML": 7235, "Gherkin": 4210, "TypeScript": 2717, "Ruby": 2272, "JavaScript": 1764, "SCSS": 1365, "Batchfile": 1183, "EJS": 1061, "Go": 159} | package ftl.reports
import ftl.api.JUnitTest
import ftl.client.junit.parseAllSuitesXml
import ftl.client.junit.parseOneSuiteXml
import ftl.client.xml.JUnitXmlTest
import ftl.domain.junit.merge
import org.junit.Assert.assertEquals
import org.junit.Assert.assertTrue
import org.junit.Test
class HtmlErrorReportTest {
... | 64 | Kotlin | 115 | 676 | b40904b4e74a670cf72ee53dc666fc3a801e7a95 | 2,715 | flank | Apache License 2.0 |
debugger/server/src/commonMain/kotlin/pro/respawn/flowmvi/debugger/server/di/Koin.kt | respawn-app | 477,143,989 | false | {"Kotlin": 497111} | package pro.respawn.flowmvi.debugger.server.di
import org.koin.core.context.GlobalContext
val koin by lazy {
GlobalContext.startKoin {
modules(appModule)
}.koin
}
| 10 | Kotlin | 10 | 305 | 80ea0a5eedc948fe50d3f23ddce041d8144f0f23 | 181 | FlowMVI | Apache License 2.0 |
libs/messaging/messaging-impl/src/test/kotlin/net/corda/messaging/mediator/MessageBusConsumerTest.kt | corda | 346,070,752 | false | {"Kotlin": 18686067, "Java": 321931, "Smarty": 79539, "Shell": 56594, "Groovy": 28415, "TypeScript": 5826, "PowerShell": 4985, "Solidity": 2024} | package net.corda.messaging.mediator
import kotlinx.coroutines.runBlocking
import net.corda.messagebus.api.consumer.CordaConsumer
import net.corda.messaging.api.mediator.MediatorMessage
import net.corda.v5.base.exceptions.CordaRuntimeException
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
i... | 130 | Kotlin | 15 | 42 | 6ef36ce2d679a07abf7a5d95a832e98bd4d4d763 | 2,595 | corda-runtime-os | Apache License 2.0 |
mvn-repo/src/main/kotlin/com/virtuslab/communitybuild/mvnrepo/exception/DependencyExceptions.kt | VirtusLab | 339,348,944 | false | null | package com.virtuslab.communitybuild.mvnrepo.exception
import com.virtuslab.communitybuild.mvnrepo.dependency.resolver.FileInfoResolver
import java.lang.RuntimeException
open class DependencyException : RuntimeException {
constructor(message: String) : super(message)
constructor(message: String, cause: Throw... | 25 | Kotlin | 1 | 2 | b6468703b73c88f340d959a45c55df6692081c66 | 994 | community-build3 | Freetype Project License |
app/src/main/java/com/example/sunnyweather/utils/DataStore.kt | zcyyouminghuo | 432,874,625 | false | {"Kotlin": 40796} | package com.example.sunnyweather.utils
import android.content.Context
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.preferencesDataStore
/**
* @Description:
* @CreateDate: 2021/12/1 14:52
*/
val Context.dataStore: DataStore<Pre... | 0 | Kotlin | 0 | 0 | 25e02fd7d6ee04d508409faf89dd2fa38a481921 | 371 | SunnyWeather | Apache License 2.0 |
plugin-core/src/test/kotlin/io/github/simonschiller/permissioncheck/internal/report/LogReporterTest.kt | simonschiller | 276,081,416 | false | null | package io.github.simonschiller.permissioncheck.internal.report
import io.github.simonschiller.permissioncheck.internal.data.Permission
import io.github.simonschiller.permissioncheck.internal.data.Sdk23Permission
import io.github.simonschiller.permissioncheck.internal.data.Violation
import org.gradle.api.logging.Logge... | 0 | Kotlin | 0 | 6 | 124b8dc675033cea3556c696514e91f603211b53 | 4,148 | permissioncheck | Apache License 2.0 |
src/main/java/com/p2p/lending/entity/Notice.kt | lordqyxz | 209,478,108 | false | {"Gradle": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Java": 2, "Kotlin": 148, "YAML": 1, "XML": 28} | package com.p2p.lending.entity
import java.io.Serializable
import java.util.*
class Notice : Serializable {
// noticeid int(11) NOT NULL AUTO_INCREMENT COMMENT '公告表id',
// noticetitle varchar(255) DEFAULT NULL COMMENT '公告表标题',
// noticetype varchar(255) DEFAULT NULL COMMENT '公告类型',
// noticepicture va... | 1 | null | 1 | 1 | 166a224e41c4385634adb75c87f493524a679a71 | 1,381 | lending | MIT License |
src/main/kotlin/gaia/sdk/codegen/CodegenVisitor.kt | leftshiftone | 218,051,248 | false | {"Python": 597076, "TypeScript": 553203, "Kotlin": 517386, "JavaScript": 6976, "ANTLR": 2281} | package gaia.sdk.codegen
import gaia.sdk.antlr.GaiaSdkBaseVisitor
import gaia.sdk.antlr.GaiaSdkParser.*
import gaia.sdk.codegen.ast.*
import gaia.sdk.codegen.ast.Enum
import gaia.sdk.codegen.ast.annotation.Deprecated
import gaia.sdk.codegen.ast.type.RefType
import gaia.sdk.codegen.ast.type.ListType
import gaia.sdk.cod... | 8 | Python | 2 | 1 | 10190c1de4b2b5f1d4a5f014602c4ccc5c11bee4 | 2,462 | gaia-sdk | MIT License |
app/src/main/java/com/jawnnypoo/openmeh/util/Navigator.kt | Jawnnypoo | 34,304,113 | false | null | package com.jawnnypoo.openmeh.util
import android.app.Activity
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.core.app.ActivityOptionsCompat
import com.jawnnypoo.openmeh.R
import com.jawnnypoo.openmeh.activity.AboutActivity
import com.jawnnypoo.openmeh.activity.FullScreenImage... | 0 | Kotlin | 5 | 47 | 848031298a293503b6cb62d1235a13590b2918b8 | 1,363 | open-meh | Apache License 2.0 |
src/main/kotlin/com/skillw/rpgmaker/module/world/manager/WorldManager.kt | q210520993 | 802,703,847 | false | {"Kotlin": 205053, "Java": 73654} | package com.skillw.rpgmaker.module.world.manager
import com.skillw.rpgmaker.core.manager.Manager
import net.minestom.server.instance.Instance
import java.io.File
interface WorldManager: Manager {
fun loadWorld(file: File) {}
fun loadWorld(instance: Instance) {}
} | 0 | Kotlin | 0 | 3 | 0d625f1dd98222442309ff668f145444f3a8a80e | 273 | RPGMaker | MIT License |
src/main/kotlin/no/nav/helsearbeidsgiver/utils/collection/MapUtils.kt | navikt | 511,509,750 | false | {"Kotlin": 48960} | package no.nav.helsearbeidsgiver.utils.collection
fun <K, V, R : Any> Map<K, V>.mapKeysNotNull(transform: (K) -> R?): Map<R, V> =
mapNotNull { (key, value) ->
transform(key)
?.to(value)
}
.toMap()
fun <K, V, R : Any> Map<K, V>.mapValuesNotNull(transform: (V) -> R?): Map<K, R> =
... | 4 | Kotlin | 0 | 0 | 6482eb71fde531a189e547759623c8001aea762f | 430 | helsearbeidsgiver-utils | MIT License |
service-user/src/main/kotlin/com/vnapnic/user/model/jwt/JwtConfig.kt | alphaNumericEntity | 763,513,563 | false | {"Kotlin": 397164, "Java": 8775, "HTML": 6673, "Dockerfile": 224} | package com.vnapnic.user.model.jwt
import org.springframework.boot.context.properties.ConfigurationProperties
import org.springframework.boot.context.properties.ConstructorBinding
@ConstructorBinding
@ConfigurationProperties(prefix = "jwt-config")
data class JwtConfig(
val prefix: String,
val header: ... | 0 | Kotlin | 0 | 0 | 495581ca09d1c4a03e2643ce8601886009b39665 | 385 | kotlin-spring-boot-microservices | Apache License 2.0 |
kotlin-fixture/src/test/java/dev/marcellogalhardo/fixture/FixtureTest.kt | marcellogalhardo | 206,752,210 | false | null | package dev.marcellogalhardo.fixture
import com.google.common.truth.Truth.assertThat
import org.junit.Test
class FixtureTest {
@Test
fun shouldGenerate() {
// Arrange
val expectedContent = "123"
// Act
val result = Fixture.generate { expectedContent }
// Assert
... | 0 | Kotlin | 1 | 26 | f476611e95e309940018e31609ca9c7ffacd0316 | 935 | kotlin-fixture | MIT License |
lib/src/test/kotlin/ca/ewert/notarytoolkotlin/NotaryToolClientTests.kt | Ewert-Technologies | 703,676,619 | false | {"Kotlin": 303947, "Java": 6643, "Lua": 1324} | package ca.ewert.notarytoolkotlin
import io.github.oshai.kotlinlogging.KotlinLogging
import okhttp3.Protocol
import okhttp3.mockwebserver.MockWebServer
import org.junit.jupiter.api.AfterEach
import org.junit.jupiter.api.BeforeEach
import java.nio.file.Path
private val log = KotlinLogging.logger {}
/**
* Unit Tests ... | 1 | Kotlin | 0 | 3 | a1ea792555a168673043d4bbc17eb1691ab6f8b8 | 778 | notarytool-kotlin | MIT License |
design/src/commonMain/kotlin/dev/helw/playground/sdui/design/core/color/BackgroundColors.kt | ahmedre | 680,260,539 | false | {"Kotlin": 114371, "Swift": 29613, "HTML": 237} | /**
* Copyright (c) 2023 <NAME> and <NAME>
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package dev.helw.playground.sdui.design.core.color
import androidx.compose.runtime.Immutable
import androidx.compose.runtime.ProvidableComposi... | 0 | Kotlin | 0 | 3 | d9e02bcf1251834fe34518f7109b21a5ae7960f5 | 3,317 | sdui | MIT License |
app/src/main/java/com/ucsm/tylersai/amsucsm/models/Attendance.kt | hanlinag | 290,553,252 | false | null | package com.ucsm.tylersai.amsucsm.models
data class Attendance (
var date: String,
var time: String,
var mkpt: String,
var subjectcode: String
){
constructor() : this("","","","")
} | 0 | Kotlin | 3 | 5 | 473407e66ede82a189c759b0ec1fb51696e93683 | 203 | ams-student | MIT License |
backend/api/src/main/kotlin/io/tolgee/component/TransferEncodingHeaderDebugFilter.kt | tolgee | 303,766,501 | false | {"TypeScript": 2960870, "Kotlin": 2463774, "JavaScript": 19327, "Shell": 12678, "Dockerfile": 9468, "PLpgSQL": 663, "HTML": 439} | package io.tolgee.component
import io.tolgee.util.Logging
import jakarta.servlet.FilterChain
import jakarta.servlet.http.HttpServletRequest
import jakarta.servlet.http.HttpServletResponse
import org.springframework.web.filter.OncePerRequestFilter
class TransferEncodingHeaderDebugFilter : OncePerRequestFilter(), Loggi... | 170 | TypeScript | 188 | 1,837 | 6e01eec3a19c151a6e0aca49e187e2d0deef3082 | 837 | tolgee-platform | Apache License 2.0 |
guardian/src/main/java/com/guardianconnect/GRDSubscriberCredential.kt | GuardianFirewall | 613,794,030 | false | {"Kotlin": 304235, "Shell": 5798} | package com.guardianconnect
import android.util.Base64
import com.google.gson.Gson
import com.google.gson.annotations.SerializedName
import com.guardianconnect.managers.GRDConnectManager
import com.guardianconnect.model.GRDSubscriberCredentialValidationMethod
import com.guardianconnect.util.Constants.Companion.GRD_SUB... | 4 | Kotlin | 2 | 4 | af4854da6ebfac9339df4cdff94ddece2ac97126 | 4,373 | GuardianConnect-Android | MIT License |
app/src/main/java/com/syleiman/myfootprints/presentationLayer/activities/photoEditor/viewModel/bitmaps/BitmapsIO.kt | AlShevelev | 116,675,999 | false | null | package com.syleiman.myfootprints.presentationLayer.activities.photoEditor.viewModel.bitmaps
import android.graphics.Bitmap
import com.syleiman.myfootprints.businessLayer.bitmapService.IBitmapService
import com.syleiman.myfootprints.common.files.FileSingle
import com.syleiman.myfootprints.common.files.IFileSingleOpera... | 1 | Kotlin | 1 | 2 | 11a243900f3a33b4b3aab358d4a2b08f9759dd8e | 1,557 | MyFootprints | MIT License |
core/src/main/java/com/diegoparra/veggie/core/android/NavWithResultHelper.kt | difparra | 362,878,675 | false | null | package com.diegoparra.veggie.core.android
import androidx.annotation.IdRes
import androidx.navigation.NavController
open class NavWithResultHelper<T>(
@IdRes val startDestination: Int,
private val resultKey: String
) {
companion object {
const val ORIGINAL_DESTINATION = "original_destination"
... | 0 | Kotlin | 1 | 1 | 47264999c9f5046b7827f499bfb067d65ee614e7 | 1,498 | veggie | Apache License 2.0 |
src/test/kotlin/pullrequest/ApprovalStatusCheckerTest.kt | clemens-code | 385,173,945 | false | null | package io.github.clemenscode.bitbucketwatcher.pullrequest
import io.github.clemenscode.bitbucketwatcher.client.TeamsClient
import io.github.clemenscode.bitbucketwatcher.client.builder.TeamsMessageBuilder
import io.github.clemenscode.bitbucketwatcher.client.builder.TelegramMessageBuilder
import io.github.clemenscode.b... | 0 | Kotlin | 0 | 4 | 398f81319ecbdb177d893bba8b3b805568d517f9 | 3,193 | bitbucketwatcher | MIT License |
coding/sources/codecs/basic/NumberJSONCodec.kt | cybernetics | 196,933,210 | true | {"Kotlin": 640246} | package com.github.fluidsonic.fluid.json
object NumberJSONCodec : AbstractJSONCodec<Number, JSONCodingContext>() {
override fun JSONDecoder<JSONCodingContext>.decode(valueType: JSONCodingType<Number>) =
readNumber()
override fun JSONEncoder<JSONCodingContext>.encode(value: Number) =
writeNumber(value)
}
| 0 | Kotlin | 0 | 0 | e1991962108950fbeed46aa0e1f2dbaab2493bef | 316 | fluid-json | Apache License 2.0 |
ClassProjects/Cities/app/src/main/java/es/usj/mastertsa/jchueca/cities/domain/usecases/GetCitiesUseCase.kt | ChuecaJ | 447,711,259 | false | {"Kotlin": 72703, "PHP": 202} | package es.usj.mastertsa.jchueca.cities.domain.usecases
import es.usj.mastertsa.jchueca.cities.domain.model.City
import es.usj.mastertsa.jchueca.cities.domain.model.CityFilter
import es.usj.mastertsa.jchueca.cities.domain.repository.CityRepository
const val HOURS_THRESHOLD = 1800
class GetCitiesUseCase(val repositor... | 0 | Kotlin | 0 | 0 | ab5dded3809f381ee7e53690154e7b3ed5c4d8f5 | 798 | MasterTSA_DataBases | MIT License |
StockMe/app/src/main/java/com/stockme/welcome/WelcomeActivity.kt | UTN-FRBA-Mobile | 410,667,989 | false | {"Kotlin": 78098} | package com.stockme.welcome
import android.content.Intent
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.app.AppCompatDelegate
import com.google.firebase.auth.ktx.auth
import com.google.firebase.ktx.Firebase
import com.stockme.BuildConfig
import com.stockme.Prefs_
im... | 2 | Kotlin | 1 | 2 | 54607ba672768d2d64e4317ec38016d0e4e1c5ba | 2,528 | StockMe | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.