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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
http4k-server/jetty/src/test/kotlin/org/http4k/sse/JettySseTest.kt | http4k | 86,003,479 | false | null | package org.http4k.sse
import org.http4k.client.JavaHttpClient
import org.http4k.server.Jetty
import org.http4k.server.ServerConfig
class JettySseTest : SseServerContract({ Jetty(it, ServerConfig.StopMode.Immediate) }, JavaHttpClient())
| 34 | null | 249 | 2,615 | 7ad276aa9c48552a115a59178839477f34d486b1 | 240 | http4k | Apache License 2.0 |
ontrack-ui/src/test/java/net/nemerosa/ontrack/boot/search/BuildSearchIT.kt | nemerosa | 19,351,480 | false | null | package net.nemerosa.ontrack.boot.search
import net.nemerosa.ontrack.boot.BUILD_SEARCH_INDEX
import net.nemerosa.ontrack.model.structure.Build
import net.nemerosa.ontrack.model.structure.SearchRequest
import net.nemerosa.ontrack.test.TestUtils.uid
import org.junit.Test
import kotlin.test.assertTrue
class BuildSearchI... | 57 | null | 27 | 97 | 7c71a3047401e088ba0c6d43aa3a96422024857f | 1,110 | ontrack | MIT License |
android-test-framework/testSrc/com/android/tools/idea/testing/TestLoggerRule.kt | JetBrains | 60,701,247 | false | {"Kotlin": 53054415, "Java": 43443054, "Starlark": 1332164, "HTML": 1218044, "C++": 507658, "Python": 191041, "C": 71660, "Lex": 70302, "NSIS": 58238, "AIDL": 35382, "Shell": 29838, "CMake": 27103, "JavaScript": 18437, "Smali": 7580, "Batchfile": 7357, "RenderScript": 4411, "Clean": 3522, "Makefile": 2495, "IDL": 19} | /*
* Copyright (C) 2022 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... | 5 | Kotlin | 230 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 2,429 | android | Apache License 2.0 |
easy/kotlin/c0062_242_valid-anagram/00_leetcode_0062.kt | drunkwater | 127,843,545 | false | {"Text": 2, "Shell": 7, "Markdown": 3, "Perl": 12, "HTML": 3645, "C": 2246, "Java": 738, "Swift": 738, "Go": 738, "C#": 750, "Microsoft Visual Studio Solution": 4, "XML": 8, "Makefile": 1476, "Python": 1476, "Kotlin": 738, "Ruby": 738, "JavaScript": 738, "Scala": 738, "C++": 1484} | // DRUNKWATER TEMPLATE(add description and prototypes)
// Question Title and Description on leetcode.com
// Function Declaration and Function Prototypes on leetcode.com
//242. Valid Anagram
//Given two strings s and t, write a function to determine if t is an anagram of s.
//For example,
//s = "anagram", t = "nagaram",... | 1 | null | 1 | 1 | 8cc4a07763e71efbaedb523015f0c1eff2927f60 | 656 | leetcode | Ruby License |
app/src/main/java/com/codertainment/wallow/model/GitHubResponse.kt | shripal17 | 146,789,579 | false | null | package com.codertainment.wallow.model
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.android.parcel.Parcelize
@Parcelize
data class GitHubResponse(var name: String,
var path: String,
var sha: String,
... | 0 | Kotlin | 1 | 0 | c0306616d9ad5a47a3c01c60a82b6657b1ede392 | 868 | Wallow | Apache License 2.0 |
java/idea-ui/src/com/intellij/ide/ultimatepromo/actions.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.ide.ultimatepromo
import com.intellij.ide.IdeBundle
import com.intellij.ide.actions.searcheverywhere.PromoAction
import com.intellij.java.ui.icons.JavaUIIcons
import com.intelli... | 251 | null | 5079 | 16,158 | 831d1a4524048aebf64173c1f0b26e04b61c6880 | 2,327 | intellij-community | Apache License 2.0 |
idea/testData/intentions/addAnnotationUseSiteTarget/property/var/field.kt | JakeWharton | 99,388,807 | false | null | // CHOOSE_USE_SITE_TARGET: field
annotation class A
class Property {
@A<caret>
var foo: String = ""
} | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 111 | kotlin | Apache License 2.0 |
buildSrc/src/GenJavaTask.kt | ice1000 | 131,628,957 | false | null | package org.ice1000.gradle
import org.gradle.api.DefaultTask
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.Internal
import org.gradle.api.tasks.OutputFile
import org.intellij.lang.annotations.Language
open class GenJavaTask(
@Input val className: String,
@Input val since: String = "v0.1",
... | 10 | null | 14 | 181 | 4aff8a071d1ce1f4c5d951482e0f22837b7a791c | 1,870 | jimgui | Apache License 2.0 |
plugins/kotlin/base/util/src/org/jetbrains/kotlin/idea/core/util/CoroutineUtils.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.core.util
import com.intellij.openapi.Disposable
import com.intellij.openapi.application.ApplicationManager
import com.intell... | 284 | null | 5162 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 1,698 | intellij-community | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/findUsages/libraryUsages/findLibraryFunctionUsages/interfaceOverrides/_library/interfaceOverridesLib.kt | ingokegel | 72,937,917 | false | null | package library
interface A {
fun foo(t: String)
}
| 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 56 | intellij-community | Apache License 2.0 |
core-navigation/sample/src/androidTest/java/ru/surfstudio/android/core/navigation/NavigationSampleTest.kt | surfstudio | 139,034,657 | false | {"Kotlin": 2966626, "Java": 1025166, "FreeMarker": 104337, "Groovy": 43020, "C++": 1542, "Ruby": 884, "CMake": 285, "Shell": 33, "Makefile": 25} | package ru.surfstudio.android.core.navigation
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.ViewActions.click
import androidx.test.espresso.matcher.ViewMatchers.withId
import org.junit.Test
import ru.surfstudio.android.core.navigation.sample.R
import ru.surfstudio.android.core.navi... | 5 | Kotlin | 30 | 249 | 6d73ebcaac4b4bd7186e84964cac2396a55ce2cc | 1,180 | SurfAndroidStandard | Apache License 2.0 |
aws-pinpoint-core/src/test/java/com/amplifyframework/pinpoint/core/util/DateUtilTest.kt | aws-amplify | 177,009,933 | false | null | /*
* Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the ... | 105 | null | 115 | 245 | 14c71f38f052a964b96d7abaff6e157bd21a64d8 | 968 | amplify-android | Apache License 2.0 |
platform/core-api/src/com/intellij/openapi/vfs/VirtualFileUtil.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
@file:JvmName("VirtualFileUtil")
package com.intellij.openapi.vfs
import com.intellij.openapi.editor.Document
import com.intellij.openapi.fileEditor.FileDocumentManager
import com.intellij.openapi.... | 251 | null | 5079 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 6,016 | intellij-community | Apache License 2.0 |
generic/kodein-di-generic-jvm/src/main/kotlin/org/kodein/di/generic/GSet.kt | Rasalexman | 138,573,455 | true | {"Kotlin": 529688, "Java": 15247} | @file:Suppress("unused")
package org.kodein.di.generic
import org.kodein.di.AnyToken
import org.kodein.di.Kodein
import org.kodein.di.bindings.ArgSetBinding
import org.kodein.di.bindings.InSet
import org.kodein.di.bindings.SetBinding
import org.kodein.di.generic
/**
* Creates a set: multiple bindings can be added i... | 0 | Kotlin | 0 | 1 | 6fb648b6abc951286ef73efbd38a933635cfdf0d | 1,219 | Kodein-DI | MIT License |
backend-app/src/test/kotlin/altszama/app/order/controller/OrderControllerDeleteOrderTest.kt | konkit | 122,551,882 | false | null | package altszama.app.order.controller
import altszama.app.dish.DishService
import altszama.app.dish.dto.DishCreateRequest
import altszama.app.order.OrderRepository
import altszama.app.order.OrderService
import altszama.app.order.dto.DeliveryData
import altszama.app.order.dto.OrderSaveRequest
import altszama.app.order.... | 4 | Kotlin | 1 | 5 | f844e8032dd75cc7576dd14e89488c9ff7e9c0be | 5,376 | altszama | MIT License |
compiler/testData/diagnostics/tests/inference/expectedTypeAdditionalTest.kt | JakeWharton | 99,388,807 | false | null | // !WITH_NEW_INFERENCE
// !LANGUAGE: +ExpectedTypeFromCast
fun foo() = 1
fun <T> foo() = foo() <!UNCHECKED_CAST!>as T<!>
fun <T> foo2(): T = TODO()
val test = <!OI;TYPE_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>foo2<!>().<!OI;DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>plus<!>("") <!NI;USELESS_CAST!>as String<!>
fun <T> T.b... | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 390 | kotlin | Apache License 2.0 |
src/main/kotlin/imgui/imgui/widgets sliders.kt | bbodi | 126,034,210 | false | {"Gradle": 2, "Shell": 1, "Text": 3, "Ignore List": 1, "Batchfile": 1, "INI": 1, "YAML": 1, "Markdown": 1, "Java Properties": 1, "Java": 4, "Kotlin": 60, "GLSL": 2, "C++": 2} | package imgui.imgui
import glm_.f
import glm_.func.deg
import glm_.func.rad
import glm_.i
import glm_.vec2.Vec2
import glm_.vec2.Vec2i
import glm_.vec3.Vec3i
import glm_.vec4.Vec4i
import imgui.Dir
import imgui.ImGui.calcItemWidth
import imgui.ImGui.calcTextSize
import imgui.ImGui.currentWindow
import imgui.ImGui.focu... | 1 | null | 1 | 1 | acb3dc3d1e5cb6d4871258c697c9eeec6796ce19 | 10,313 | imgui | MIT License |
game/plugins/src/main/kotlin/gg/rsmod/plugins/content/areas/spawns/spawns_10545.plugin.kts | 2011Scape | 578,880,245 | false | {"Kotlin": 8359518, "Dockerfile": 1354} | package gg.rsmod.plugins.content.areas.spawns
spawn_npc(npc = Npcs.MURPHY, x = 2668, z = 3162, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Murphy
spawn_npc(npc = Npcs.MUSICIAN_8704, x = 2630, z = 3196, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Musician
sp... | 36 | Kotlin | 138 | 32 | da66bb6d68ebae531ee325b909a6536e798b1144 | 1,069 | game | Apache License 2.0 |
StaffMod/src/main/kotlin/opekope2/avm_staff/model/StaffItemModel.kt | opekope2 | 735,687,240 | false | {"Kotlin": 13076} | package opekope2.avm_staff.model
import net.fabricmc.api.EnvType
import net.fabricmc.api.Environment
import net.fabricmc.fabric.api.renderer.v1.RendererAccess
import net.fabricmc.fabric.api.renderer.v1.mesh.MutableQuadView
import net.fabricmc.fabric.api.renderer.v1.model.FabricBakedModel
import net.fabricmc.fabric.api... | 0 | Kotlin | 0 | 0 | bff47bda1023dd4260c33066ae885576fd89eea4 | 3,565 | StaffMod | MIT License |
app/app/src/main/java/com/example/genshin_wiki/domain/interfaces/weapon/IGetAllWeaponsUseCase.kt | SlavaPerryAyeKruchkovenko | 600,055,723 | false | null | package com.example.genshin_wiki.domain.interfaces.weapon
import com.example.genshin_wiki.data.converters.WeaponConverter
interface IGetAllWeaponsUseCase {
suspend operator fun invoke(): List<WeaponConverter>
} | 0 | Kotlin | 0 | 0 | 644286da5dbd69b586ff8761e75ad80ede7a0cdf | 216 | Genshin_Wiki | MIT License |
src/main/kotlin/kindofguilty/kindofblocky/item/ModFoodComponents.kt | fnicoletta | 853,069,683 | false | {"Kotlin": 8730, "Java": 525} | package kindofguilty.kindofblocky.item
import net.minecraft.component.type.FoodComponent
import net.minecraft.entity.effect.StatusEffectInstance
import net.minecraft.entity.effect.StatusEffects
class ModFoodComponents {
companion object {
val BAGEL_WITH_LOX: FoodComponent =
FoodComponent.Build... | 0 | Kotlin | 0 | 0 | e84a59146926c024f4e166f0a06629a810a30cde | 472 | kindofblocky | Creative Commons Zero v1.0 Universal |
engine/src/test/java/com/google/android/fhir/sync/upload/ResourceConsolidatorFactoryTest.kt | google | 247,977,633 | false | {"Kotlin": 3601315, "Shell": 6510, "Java": 454} | /*
* Copyright 2024 Google LLC
*
* 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... | 312 | Kotlin | 288 | 485 | d417dde6c08d0a21b620754400b37e0fe131e679 | 1,732 | android-fhir | Apache License 2.0 |
tools-manage/invocationlab-admin-21/src/main/kotlin/org/javamaster/invocationlab/admin/service/invocation/impl/FeignInvoker.kt | jufeng98 | 191,107,543 | false | {"Java": 1518044, "JavaScript": 1509156, "TypeScript": 861919, "Kotlin": 490748, "CSS": 254258, "Vue": 241670, "HTML": 35367, "Less": 25478, "Shell": 13845, "SCSS": 9205, "Python": 5091, "Mustache": 1001, "Batchfile": 693, "Dockerfile": 454} | package org.javamaster.invocationlab.admin.service.invocation.impl
import org.javamaster.invocationlab.admin.consts.Constant.FEIGN_PARAM
import org.javamaster.invocationlab.admin.model.dto.WebApiRspDto
import org.javamaster.invocationlab.admin.service.Pair
import org.javamaster.invocationlab.admin.service.context.Invo... | 32 | Java | 66 | 129 | 0ea2a5644bd08c1b8b2226a8490ab7c37a25a36f | 2,277 | java-master | Apache License 2.0 |
app/src/main/kotlin/li/raphael/recipe/app/shared/validation/Validation.kt | raphiz | 728,075,300 | false | {"Kotlin": 76715, "JavaScript": 5325, "Nix": 1071, "CSS": 261} | package li.raphael.recipe.app.shared.validation
import kotlinx.html.INPUT
import li.raphael.kotlinhtml.templatecontext.t
class Validation(val message: String, val modifyInput: (input: INPUT) -> Unit = {})
class ValidationContext {
val validators = mutableMapOf<String, Validation>()
val required
get() ... | 0 | Kotlin | 0 | 0 | 1931ed06d9ea84899693777d0b7050fb59a98ec7 | 618 | recipe-app | MIT License |
features/video/src/main/java/com/jeppeman/jetpackplayground/video/data/entity/VideoCategoryEntity.kt | jeppeman | 136,631,212 | false | null | package com.jeppeman.jetpackplayground.video.data.entity
import androidx.annotation.Keep
import com.squareup.moshi.Json
@Keep
data class VideoCategoryEntity(
@Json(name = "name") val name: String,
@Json(name = "videos") val videos: List<VideoEntity>
) | 2 | Kotlin | 18 | 271 | 700bad154f362957c85d57bfe8fed52ce1c2b93e | 269 | android-jetpack-playground | Apache License 2.0 |
app/src/main/java/shetj/me/base/func/main/MainViewModel.kt | SheTieJun | 137,007,462 | false | null |
package shetj.me.base.func.main
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.app.AppCompatDelegate
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.switchMap
import me.shetj.base.mvvm.viewbin... | 1 | null | 1 | 7 | 5e460b84f6343f0b1a90a6f36e36a3ace33d97d5 | 2,331 | BaseKit | MIT License |
app/src/main/kotlin/com/deathsdoor/chillback/ui/components/mediaplayer/RepeatButton.kt | Deaths-Door | 726,641,436 | false | {"Kotlin": 61089} | package com.deathsdoor.chillback.ui.components.mediaplayer
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.KeyboardArrowUp
import androidx.compose.material.icons.filled.PlayArrow
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import androi... | 0 | Kotlin | 0 | 1 | c56b582de6ae478203371a5d36f83d38bce73af1 | 1,252 | Chillback | MIT License |
rsocket-core/src/test/java/io/rsocket/test/util/TestDuplexConnection.kt | robertroeser | 111,460,230 | true | {"Kotlin": 215225, "Java": 73304, "Shell": 1063} | /*
* Copyright 2016 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 0 | Kotlin | 0 | 0 | 57e6a39cc02348fd067633eac069f58f2310574c | 3,683 | rsocket-android | Apache License 2.0 |
app/src/main/java/com/dicoding/animalkuiz/InventoryFragment.kt | Adrian0429 | 792,391,925 | false | {"Kotlin": 62359} | package com.dicoding.animalkuiz
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.viewpager2.widget.ViewPager2
import com.dicoding.animalkuiz.Adapters.ViewPagerAdapter
import com.google.android.materia... | 0 | Kotlin | 0 | 0 | b24be138db814d444e23dc280e090747d800d8fa | 1,650 | 5_Ronde-4_Animal-Quizzer | MIT License |
app/src/main/java/com/nullgr/androidcore/adapter/delegates/ExampleDelegate3.kt | nullgr | 126,462,193 | false | null | package com.nullgr.androidcore.adapter.delegates
import android.support.v7.widget.RecyclerView
import com.nullgr.androidcore.R
import com.nullgr.androidcore.adapter.items.ExampleItem3
import com.nullgr.core.adapter.AdapterDelegate
import com.nullgr.core.adapter.items.ListItem
import com.squareup.picasso.Picasso
import... | 5 | null | 12 | 24 | 6cb588384090aa76d94f052f32de6c26cbd042e3 | 902 | app-core | MIT License |
app/src/main/java/com/yazag/capstoneproject/ui/search/CategoryAdapter.kt | oren345 | 719,130,235 | false | {"Kotlin": 87576} | package com.yazag.capstoneproject.ui.search
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.yazag.capstoneproject.data.model.response.Category
import... | 0 | Kotlin | 0 | 2 | 7643281fc93bd6e2a0b3fecd22ce5f74117757c2 | 1,671 | CapstoneProject | MIT License |
src/main/java/parser/NYISTParser.kt | YZune | 232,583,513 | false | null | package main.java.parser
import Common
import bean.Course
import org.jsoup.Jsoup
import parser.Parser
import java.io.File
class NYISTParser(source: String) : Parser(source) {
override fun generateCourseList(): List<Course> {
val courseList = arrayListOf<Course>()
val doc = Jsoup.parse(source)
... | 0 | null | 66 | 96 | 2bc26e588f80cb7f9a1715b02309b653ba090454 | 2,520 | CourseAdapter | MIT License |
shoring/blackjackEngine/src/test/kotlin/com/panopset/tests/blackjackEngine/RecommendedActionTest.kt | panopset | 752,122,553 | false | {"Kotlin": 610953, "Java": 26106, "Shell": 9728, "CSS": 4623, "JavaScript": 4084, "Batchfile": 2807, "HTML": 1317} | package com.panopset.tests.blackjackEngine
import com.panopset.blackjackEngine.BlackjackConfigDefault
import com.panopset.blackjackEngine.BlackjackGameEngine
import com.panopset.blackjackEngine.*
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
class RecommendedActionTest : SessionTest() {
... | 0 | Kotlin | 0 | 0 | b8e1468f0faf9f5138b37e9ceed56542307615a0 | 1,116 | src2 | MIT License |
app/src/main/java/com/brainyapps/simplyfree/activities/SignupProfileActivity.kt | highjump0615 | 146,553,271 | false | null | package com.brainyapps.simplyfree.activities
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.text.TextUtils
import android.util.Log
import android.view.View
import com.brainyapps.simplyfree.R
import com.brainyapps.simplyfree.helpers.PhotoActivityHelper
import com.brain... | 0 | Kotlin | 0 | 1 | 35c9dabf35a4361997efd6d8d6ff6c788382794e | 5,850 | TakeFree | Open LDAP Public License v2.3 |
vitrivr-engine-core/src/main/kotlin/org/vitrivr/engine/core/model/descriptor/struct/metadata/source/FileSourceMetadataDescriptor.kt | vitrivr | 679,355,326 | false | {"Kotlin": 1141407, "GLSL": 568} | package org.vitrivr.engine.core.model.descriptor.struct.metadata.source
import org.vitrivr.engine.core.model.descriptor.Attribute
import org.vitrivr.engine.core.model.descriptor.AttributeName
import org.vitrivr.engine.core.model.descriptor.DescriptorId
import org.vitrivr.engine.core.model.descriptor.struct.StructDescr... | 8 | Kotlin | 3 | 5 | 8d89bba313b3aa2195d31afb5b9694828cf4ce46 | 2,510 | vitrivr-engine | MIT License |
0605.Can Place Flowers.kt | sarvex | 842,260,390 | false | {"Kotlin": 1775678, "PowerShell": 418} | internal class Solution {
fun canPlaceFlowers(flowerbed: IntArray, n: Int): Boolean {
var n = n
val m = flowerbed.size
for (i in 0 until m) {
val l = if (i == 0) 0 else flowerbed[i - 1]
val r = if (i == m - 1) 0 else flowerbed[i + 1]
if (l + flowerbed[i] + r == 0) {
flowerbed[i] ... | 0 | Kotlin | 0 | 0 | 71f5d03abd6ae1cd397ec4f1d5ba04f792dd1b48 | 374 | kotlin-leetcode | MIT License |
sources/test-base/src/org/jetbrains/amper/test/TestUtil.kt | JetBrains | 709,379,874 | false | {"Kotlin": 1611892, "Java": 288789, "Shell": 102466, "Batchfile": 63774, "Lex": 16216, "Swift": 13879, "Ruby": 4736, "Dockerfile": 1327} | /*
* Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package org.jetbrains.amper.test
import java.nio.file.Files
import java.nio.file.Path
import java.nio.file.Paths
import kotlin.io.path.div
import kotlin.io.path.exists
object TestUtil {
... | 1 | Kotlin | 25 | 847 | ca8a85deaf0f06955c7a76d0b3705defb10b6e3d | 2,525 | amper | Apache License 2.0 |
src/support/common/src/main/kotlin/yapp/be/model/enums/observaitonanimal/Gender.kt | YAPP-Github | 634,126,325 | false | {"Kotlin": 409864, "HTML": 7645} | package yapp.be.model.enums.observaitonanimal
enum class Gender {
MALE, FEMALE
}
| 0 | Kotlin | 1 | 7 | 5441b296dec05fd1288895518407640dea8f8d3d | 86 | DangleDangle-server | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/quickfix/addValVar/annotation.kt | JetBrains | 2,489,216 | false | null | // "Add 'val' to parameter 'x'" "true"
/* IGNORE_K2 */
annotation class A(<caret>x: Int)
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.AddValVarToConstructorParameterAction$QuickFix | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 194 | intellij-community | Apache License 2.0 |
src/test/kotlin/no/nav/omsorgspenger/personopplysninger/EnhetTest.kt | navikt | 383,384,092 | true | {"Kotlin": 101237, "Dockerfile": 132} | package no.nav.omsorgspenger.personopplysninger
import no.nav.omsorgspenger.personopplysninger.Enhet.Companion.adressebeskyttelseTilEnhet
import no.nav.omsorgspenger.personopplysninger.Enhet.Companion.fellesEnhet
import org.junit.jupiter.api.Assertions.assertThrows
import org.junit.jupiter.api.Test
import kotlin.test.... | 2 | null | 1 | 0 | 550c34a95d2b4a1e1fbe7255d266638122c7f095 | 1,513 | k9-personopplysninger | MIT License |
src/main/kotlin/com/github/strindberg/emacsj/actions/space/DeleteLinesAction.kt | strindberg | 719,602,205 | false | {"Kotlin": 286724} | package com.github.strindberg.emacsj.actions.space
import com.github.strindberg.emacsj.space.DeleteSpaceHandler
import com.github.strindberg.emacsj.space.Type
import com.intellij.openapi.editor.actions.TextComponentEditorAction
class DeleteLinesAction : TextComponentEditorAction(DeleteSpaceHandler(Type.MULTIPLE))
| 2 | Kotlin | 1 | 9 | 88bb6457e4e1f67f82149532bdd0215c39b0b972 | 317 | emacsj | MIT License |
app/src/main/java/com/chunchiehliang/openseacollectibles/ui/assets/AssetAdapter.kt | Doge-is-Dope | 485,733,720 | false | null | package com.chunchiehliang.openseacollectibles.ui.assets
import android.view.ViewGroup
import androidx.paging.PagingDataAdapter
import androidx.recyclerview.widget.DiffUtil
import com.chunchiehliang.openseacollectibles.data.model.asset.Asset
class AssetAdapter(private val listener: AssetListener) :
PagingDataAdap... | 0 | Kotlin | 0 | 2 | 2bd2b422b4d8a10b1c4616cc4841aea782a80ba6 | 911 | OpenSea-Collectibles | MIT License |
src/main/kotlin/UniqueObject.kt | vatbub | 353,955,869 | false | null | /*-
* #%L
* Smart Charge
* %%
* Copyright (C) 2016 - 2020 <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
*
* Unles... | 0 | Kotlin | 0 | 0 | 6acd5298681bce9426d396426669c7d0cc9b1221 | 4,445 | smartCharger | Apache License 2.0 |
fuzzer/fuzzing_output/crashing_tests/verified/primitivesAndArrays.kt564308813.kt | ItsLastDay | 102,885,402 | false | null | import kotlin.test.assertEquals
annotation sealed class Anno(
val b: Byte,
val c: Char,
val d: Double,
val f: Float,
val i: Int,
val j: Long,
val s: Short,
val z: Boolean,
val ba: ByteArray,
val ca: CharArray,
val da: DoubleArray,
val fa: FloatArray,
val ia: IntArray,
val ja: LongArray,
val sa: ShortArra... | 2 | Kotlin | 1 | 6 | 56f50fc307709443bb0c53972d0c239e709ce8f2 | 1,528 | KotlinFuzzer | MIT License |
libraries/stdlib/src/kotlin/Ranges.kt | dotlin-org | 434,960,829 | false | null | /*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Copyright 2021-2022 Wilko Manger
*
* 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://w... | 5 | Kotlin | 3 | 30 | 633430bfa0786923bde86d9068323f18eb5c24d5 | 5,378 | dotlin | Apache License 2.0 |
core/src/main/java/com/sgorinov/exilehelper/core/presentation/SlideUpDownAnimator.kt | SergeyGorinov | 275,131,633 | false | null | package com.sgorinov.exilehelper.core.presentation
import android.animation.ValueAnimator
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
class SlideUpDownAnimator(private val view: View) {
private var preMeasuredHeight = 0
fun slideDown() {
vi... | 1 | Kotlin | 0 | 3 | 128c53b566e7f0e232ae28004696a4d455c408c0 | 1,871 | ExileHelper | Apache License 2.0 |
app/src/main/java/cn/imrhj/cowlevel/network/model/FollowedTagNewModel.kt | fossabot | 152,681,532 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "YAML": 1, "Markdown": 1, "Proguard": 1, "XML": 88, "Kotlin": 140, "Java": 1} | package cn.imrhj.cowlevel.network.model
import com.google.gson.annotations.SerializedName
data class FollowedTagNewModel(
@field:SerializedName("new_count")
val newCount: Int? = null,
@field:SerializedName("name")
val name: String? = null,
@field:SerializedName("id")
... | 0 | Kotlin | 0 | 1 | 26e361d39ae804d8093555a46b10c348d5bd4fee | 516 | NotCowLevel | Apache License 2.0 |
app/src/main/java/com/example/taskplanner/data/model/Day.kt | kikichechka | 781,460,462 | false | {"Kotlin": 98378} | @file:Suppress("DEPRECATED_ANNOTATION")
package com.example.taskplanner.data.model
import android.os.Parcelable
import com.example.taskplanner.data.model.entity.TypeTask
import java.time.LocalDate
import kotlinx.android.parcel.Parcelize
@Parcelize
data class Day(var date: LocalDate, var list: MutableList<TypeTask> =... | 0 | Kotlin | 0 | 0 | df784fc2de403019bde1d886e287b8fc66198cd5 | 496 | Diploma | Apache License 2.0 |
app/src/main/java/co/ello/android/ello/controllers/login/LoginProtocols.kt | ello | 129,277,321 | false | null | package co.ello.android.ello
import android.view.View
import android.view.Window
class LoginProtocols {
interface Screen {
val contentView: View
var interactive: Boolean
fun showErrors(usernameMessage: String?, passwordMessage: String?)
fun showNetworkError(message: String)
}
... | 0 | Kotlin | 0 | 2 | 489a1b9f0acf5c2b92bd65ada7e73b91fc8e2ff4 | 715 | android | MIT License |
app/src/main/java/com/ssaapp/flixter_2/TvAdapter.kt | yrnzak | 763,902,699 | false | {"Kotlin": 15242} | package com.ssaapp.flixter_2
import android.content.Context
import android.content.Intent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.G... | 1 | Kotlin | 0 | 0 | cc13d9e57d25396fecb7fd3162219aa156b4d4e1 | 2,177 | Flixter_2 | Apache License 2.0 |
bunny-notifier/src/main/java/com/skfo763/bunny_notifier/model/NotifierImportance.kt | skfo763 | 258,137,589 | false | null | package com.skfo763.bunny_notifier.model
import android.app.Notification
import android.app.NotificationManager
import android.os.Build
object NotifierImportance {
val IMPORTANCE_MIN =
if (Build.VERSION.SDK_INT >= 26) NotificationManager.IMPORTANCE_MIN
else if (Build.VERSION.SDK_INT >= 16) {
... | 0 | Kotlin | 0 | 3 | ed70eb9cbcd5ce868018c0cfecf71f07395e2185 | 1,500 | Bunny-Notifier | Apache License 2.0 |
presentation/src/main/kotlin/com/andremion/theatre/event/list/EventListFragment.kt | andremion | 122,661,183 | false | null | /*
* Copyright (c) 2018. André Mion
*
* 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... | 5 | Kotlin | 97 | 647 | 654ed1020b5633c3d529adf9cea66372db4a5383 | 3,136 | Theatre | Apache License 2.0 |
src/main/resources/org/jetbrains/kotlin/KtTemplate.kt | mario-s | 184,122,879 | true | {"Text": 2, "Maven POM": 1, "Ignore List": 1, "Markdown": 1, "Java": 93, "Kotlin": 355, "Ant Build System": 1, "Java Properties": 7, "XML": 8, "HTML": 20} | /* Block comment */
package hello
import kotlin.util.* // line comment
/**
* Doc comment here for `SomeClass`
* @see Iterator#next()
*/
@Deprecated("Deprecated class")
public class MyClass<out T : Iterable<T>>(var prop1 : Int)
fun foo(nullable : String?, r : Runnable, f : () -> Int, fl : FunctionLike, dyn: dyna... | 0 | Kotlin | 1 | 2 | d24a0fd982df001cd5bb3c7364567ee7503e5b17 | 1,051 | kotlin-netbeans | Apache License 2.0 |
android/app/src/main/java/hobby/wei/c/core/toast.kt | nknorg | 267,744,511 | false | null | package hobby.wei.c.core
import android.app.Activity
import android.content.Context
import android.os.Looper
import android.view.Gravity
import android.widget.Toast
import org.nkn.mobile.app.App
/**
* @author Chenai Nakam(chenai.nakam@gmail.com)
* @version 1.0, 20/06/2018
*/
object toast {
fun show(
ct... | 1 | Dart | 14 | 23 | 0c3a9db0f768e6a685aff2228d107e2448208e0e | 914 | nMobile | Apache License 2.0 |
napier/src/jvmTest/kotlin/io/github/aakira/napier/NapierJvmTest.kt | AAkira | 169,042,425 | false | {"Kotlin": 45693, "Swift": 14779, "Ruby": 3382, "HTML": 521, "Shell": 163, "Makefile": 81} | package io.github.aakira.napier
import org.junit.Test
import kotlin.test.assertEquals
import kotlin.test.assertNotEquals
class NapierJvmTest {
private val debugAntilog = DebugAntilog()
@Test
fun `Check createStackElementTag`() {
assertEquals("Hoge", debugAntilog.createStackElementTag("io.github.... | 16 | Kotlin | 31 | 615 | 50835e2e12a61f1175e5fce770420f72caed5b08 | 835 | Napier | Apache License 2.0 |
kontroller/src/main/kotlin/no/ssb/kostra/validation/rule/regnskap/Rule015Duplicates.kt | statisticsnorway | 414,216,275 | false | {"Kotlin": 1603199, "TypeScript": 57803, "Batchfile": 6608, "HTML": 694, "SCSS": 110} | package no.ssb.kostra.validation.rule.regnskap
import no.ssb.kostra.area.regnskap.RegnskapConstants.FIELD_BELOP
import no.ssb.kostra.program.KostraRecord
import no.ssb.kostra.validation.report.Severity
import no.ssb.kostra.validation.rule.AbstractNoArgsRule
class Rule015Duplicates(
private val fieldNameTitlePairL... | 2 | Kotlin | 0 | 1 | 430c91ac41696e85ecb1d201d4d3251cdcda018f | 1,420 | kostra-kontrollprogram | MIT License |
video-common-ui/src/test/java/com/kaleyra/video_common_ui/connectionservice/ConnectionServiceUtilsTest.kt | KaleyraVideo | 686,975,102 | false | {"Kotlin": 3462882, "Shell": 7470, "Python": 6756, "Java": 1213} | package com.kaleyra.video_common_ui.connectionservice
import android.content.Context
import android.os.Build
import com.kaleyra.video_common_ui.ConnectionServiceOption
import com.kaleyra.video_common_ui.KaleyraVideo
import com.kaleyra.video_common_ui.utils.DeviceUtils
import com.kaleyra.video_common_ui.utils.extension... | 0 | Kotlin | 0 | 1 | 480d1b80a5799b3da4e0ff7ef3239cc9f7a49aa0 | 4,568 | VideoAndroidSDK | Apache License 2.0 |
src/test/kotlin/com/terminaltabtailor/util/VirtualSelectionUtilTest.kt | romaindalichamp | 750,147,000 | false | {"Kotlin": 51020} | package com.terminaltabtailor.util
import com.intellij.openapi.module.Module
import com.intellij.openapi.roots.ModuleRootManager
import com.intellij.openapi.vfs.VirtualFile
import org.junit.jupiter.api.Test
import org.mockito.Mockito.mock
import org.mockito.Mockito.`when`
import kotlin.test.assertEquals
class Virtual... | 1 | Kotlin | 0 | 9 | 421483479b4a04f14f68198a1d1926f4f2bb1f3f | 940 | TerminalTabTailor | Apache License 2.0 |
navigation_domain/src/main/java/com/vmenon/mpo/navigation/domain/NavigationParams.kt | hitoshura25 | 91,402,384 | false | {"Kotlin": 574795, "HTML": 14355, "Gherkin": 11761, "Shell": 4889, "Ruby": 4474} | package com.vmenon.mpo.navigation.domain
import java.io.Serializable
interface NavigationParams : Serializable | 14 | Kotlin | 0 | 1 | 81e767df18899bf9556cfe323322f0ba41343752 | 112 | Media-Player-Omega-Android | Apache License 2.0 |
src/main/kotlin/com/kotlindiscord/bot/config/spec/ChannelsSpec.kt | Kotlin-Discord | 260,512,600 | false | null | package com.kotlindiscord.bot.config.spec
import com.uchuhimo.konf.ConfigSpec
/**
* A class representing the `channels` section of the configuration.
*
* This is used by Konf, and will not need to be accessed externally.
*/
object ChannelsSpec : ConfigSpec() {
/** Configured bot-commands channel ID. **/
v... | 5 | Kotlin | 2 | 8 | 115cefa7a48e0fc07bca435339ba3669805e0dc0 | 881 | bot | MIT License |
app/src/test/java/com/example/tmdbshows/presentation/TMDBViewModelTest.kt | EdiDEngineer | 613,950,801 | false | null | package com.example.tmdbshows.presentation
import com.example.tmdbshows.domain.contract.TMDBRepo
import com.example.tmdbshows.domain.entity.TopRatedEntity
import com.example.tmdbshows.presentation.uistate.Transform.DEFAULT
import com.example.tmdbshows.presentation.uistate.Transform.SORT_ALPHABETICALLY
import com.examp... | 0 | Kotlin | 0 | 0 | b025f434adadc758eda7c33c4318a7b80fe44709 | 3,633 | TMDBShows | Apache License 2.0 |
vclib/src/commonMain/kotlin/at/asitplus/wallet/lib/jws/JweAlgorithm.kt | a-sit-plus | 602,578,639 | false | {"Kotlin": 779179} | package at.asitplus.wallet.lib.jws
import kotlinx.serialization.Serializable
@Serializable(with = JweAlgorithmSerializer::class)
enum class JweAlgorithm(val text: String) {
ECDH_ES("ECDH-ES");
} | 4 | Kotlin | 2 | 9 | cd329850e8ccd735cd2b8f43624059b60dbd0008 | 202 | kmm-vc-library | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/stepfunctions/StatePropsDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.stepfunctions
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.stepfunctions.StateProps
@Generated
public fun buildStateProps(initializer: @AwsCdkDsl StateProps.Builder.() -> Unit): State... | 1 | Kotlin | 0 | 0 | a1cf8fbfdfef9550b3936de2f864543edb76348b | 380 | aws-cdk-kt | Apache License 2.0 |
wallet-sdk/src/androidMain/kotlin/com/lightspark/sdk/wallet/auth/jwt/DataStoreJwtStorage.kt | lightsparkdev | 590,703,408 | false | {"Kotlin": 1673059, "Java": 34937, "Dockerfile": 1719, "Shell": 490} | package com.lightspark.sdk.wallet.auth.jwt
import android.content.Context
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.core.edit
import androidx.datastore.preferences.core.stringPreferencesKey
import androidx.datastore.preferences... | 0 | Kotlin | 1 | 4 | 84a0e78596b16c5ed3c2e7c6206d246da3e9f520 | 2,190 | kotlin-sdk | Apache License 2.0 |
content-types/content-types-core-services/src/test/kotlin/org/orkg/contenttypes/domain/actions/smartreviews/SmartReviewPublishableValidatorUnitTest.kt | TIBHannover | 197,416,205 | false | {"Kotlin": 6060326, "Cypher": 220506, "Python": 4881, "Shell": 2904, "Groovy": 1936, "HTML": 240, "Batchfile": 82} | package org.orkg.contenttypes.domain.actions.smartreviews
import io.kotest.assertions.asClue
import io.kotest.matchers.shouldBe
import io.mockk.clearAllMocks
import io.mockk.confirmVerified
import io.mockk.every
import io.mockk.mockk
import io.mockk.verify
import java.util.*
import org.junit.jupiter.api.AfterEach
impo... | 0 | Kotlin | 0 | 4 | c80778b8800a0ad6698eecfa6bdb0e198aa8f7bb | 2,985 | orkg-backend | MIT License |
app/src/main/java/com/lhq/sunnyweatherapp/logic/network/ServiceCreator.kt | Guohuidev | 504,986,576 | false | null | package com.lhq.sunnyweatherapp.logic.network
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
object ServiceCreator {
private const val BASE_URL = "https://api.caiyunapp.com/"
private val retrofit: Retrofit = Retrofit.Builder()
.baseUrl(BASE_URL)
.addConverterFa... | 0 | Kotlin | 0 | 0 | eebab367ac76c08a62c2409d1446c51420c4bbfa | 611 | SunnyWeatherApp | Apache License 2.0 |
api/src/main/kotlin/nebulosa/api/cameras/CameraExposureState.kt | tiagohm | 568,578,345 | false | {"Kotlin": 2562989, "TypeScript": 464111, "HTML": 237584, "JavaScript": 49239, "SCSS": 13679, "Python": 2817, "Makefile": 160} | package nebulosa.api.cameras
enum class CameraExposureState {
IDLE,
STARTED,
ELAPSED,
FINISHED,
}
| 4 | Kotlin | 2 | 4 | b122c890df5ad63f828c468cb600310ddbcec99b | 115 | nebulosa | MIT License |
ClassyTaxiAppKotlin/app/src/main/java/com/example/subscriptions/data/disk/SubLocalDataSource.kt | android | 41,576,069 | false | null | /*
* Copyright 2018 Google LLC. All rights reserved.
*
* 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... | 162 | Kotlin | 1334 | 2,181 | 9cf7a57a7dfab7b207356dcb8b7d229bc0867063 | 1,873 | play-billing-samples | Apache License 2.0 |
cache/src/main/kotlin/xlitekt/cache/provider/config/npc/NPCEntryTypeProvider.kt | shadowtea | 476,573,078 | false | {"Kotlin": 277964, "Witcher Script": 2414} | package xlitekt.cache.provider.config.npc
import io.ktor.utils.io.core.ByteReadPacket
import io.ktor.utils.io.core.readUByte
import io.ktor.utils.io.core.readUShort
import xlitekt.cache.provider.EntryTypeProvider
import xlitekt.shared.buffer.readStringCp1252NullTerminated
import java.lang.IllegalArgumentException
/**... | 0 | null | 2 | 0 | 6f538559dc7954bfc172f49cdb7a01233c9e89e6 | 3,642 | xlitekt | MIT License |
app/src/main/java/com/evgtrush/toDoKa/data/repositories/MockToDoKaListRepositoryImpl.kt | AgnaWiese | 609,940,705 | false | null | /*
* Copyright (C) 2023. <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... | 1 | Kotlin | 0 | 0 | ac83ea4974944dbd1576ece18c4ba74a69edcb05 | 2,000 | todoka | Apache License 2.0 |
src/e_prefix_sums/PassingCars.kts | HungUnicorn | 219,005,946 | false | null | package e_prefix_sums
val limit = 1_000_000_000
fun solution(A: IntArray): Int {
if (A.size > 100000) {
return -1
}
var sum = 0
var numberOfOnes = 0
for (elem in A.reversed()) {
if (sum > limit) {
return -1
}
if (elem == 1) {
numberOfOnes ... | 0 | Kotlin | 0 | 7 | e53167d4db538a963af8de1be7038380577ea2e6 | 481 | Kotlin-Solution-for-Codility-Lesson | MIT License |
core/domain/src/main/java/com/muammarahlnn/learnyscape/core/domain/resourcecreate/CreateQuizUseCase.kt | muammarahlnn | 663,132,195 | false | {"Kotlin": 1068523} | package com.muammarahlnn.learnyscape.core.domain.resourcecreate
import com.muammarahlnn.learnyscape.core.data.repository.ResourceCreateRepository
import com.muammarahlnn.learnyscape.core.model.data.MultipleChoiceQuestionModel
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flatMapLatest
import java.... | 0 | Kotlin | 0 | 0 | 5d3b99d1b40dd682e6d7c2dc085fa25f141383f9 | 1,248 | Learnyscape | Apache License 2.0 |
discord4k/src/main/kotlin/discord4k/MessageChannelExtensions.kt | kadahlin | 177,455,048 | false | null | package discord4k
import discord4j.common.util.Snowflake
import discord4j.core.`object`.entity.Message
import discord4j.core.`object`.entity.channel.MessageChannel
import discord4k.builders.MessageCreateSpecKt
import discord4k.builders.messageCreateSpecKt
suspend fun MessageChannel.suspendGetMessageById(snowflake: Sn... | 0 | Kotlin | 0 | 2 | cb02420d7aaa7c35f5d0d6149315f758f1317db6 | 660 | RuleDiscordBot | Apache License 2.0 |
app/src/main/java/com/jetpack/contentanimation/ContentAnimation.kt | MakeItEasyDev | 441,248,297 | false | {"Kotlin": 11874} | package com.jetpack.contentanimation
import androidx.compose.animation.animateContentSize
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.lazy.rememberLazyListState
import androidx.compose.ma... | 0 | Kotlin | 1 | 1 | 0ab4e4fdb1cc3c540fc9aca6278cac38db71d7dc | 2,991 | Jetpack-Compose-Content-Expanded-Animation | Apache License 2.0 |
core/src/commonMain/kotlin/com/symbiosis/sdk/swap/crosschain/NerveStablePool.kt | symbiosis-finance | 473,611,783 | false | {"Kotlin": 563820, "Swift": 5851, "Ruby": 1700} | package com.symbiosis.sdk.swap.crosschain
import com.symbiosis.sdk.currency.DecimalsErc20Token
import com.symbiosis.sdk.currency.Erc20Token
import com.symbiosis.sdk.currency.NetworkTokenPair
import com.symbiosis.sdk.network.Network
import com.symbiosis.sdk.network.contract.SynthFabricContract
import com.symbiosis.sdk.... | 0 | Kotlin | 2 | 4 | e8b1c424c62a847a5339039864223e65fdb2cbae | 2,047 | mobile-sdk | Apache License 2.0 |
src/test/kotlin/com/zupacademy/fabiano/pix/chave/CadastraChaveControllerTest.kt | birojow | 400,159,258 | true | {"Kotlin": 47992, "Smarty": 2082, "Dockerfile": 165} | package com.zupacademy.fabiano.pix.chave
import com.zupacademy.fabiano.pix.KeyManagerGrpcFactory
import com.zupacademy.fabiano.pix.exceptions.GlobalExceptionHandler
import com.zupacademy.fabiano.pix.grpc.*
import io.grpc.Status
import io.grpc.StatusRuntimeException
import io.micronaut.context.annotation.Factory
import... | 0 | Kotlin | 0 | 0 | cec0c5d285fd24f647e77326d7473a690ea4185d | 5,684 | orange-talents-06-template-pix-keymanager-rest | Apache License 2.0 |
payment-sdk/src/main/java/payment/sdk/android/cardpayment/widget/CardHolderInputDelegate.kt | network-international | 187,156,001 | false | null | package payment.sdk.android.cardpayment.widget
import payment.sdk.android.sdk.R
import payment.sdk.android.cardpayment.CardPaymentContract
import android.view.View
import android.widget.EditText
class CardHolderInputDelegate(private val editText: EditText) : CardPaymentContract.StatefulInput {
override val dirty... | 4 | null | 7 | 5 | 40ca6f905901e8d724710c0bc9ecfd347bc9fc6a | 1,048 | payment-sdk-android | MIT No Attribution |
src/main/kotlin/pl/jwizard/api/config/BeansInstantiator.kt | jwizard-bot | 744,983,606 | false | {"Kotlin": 37713} | /*
* Copyright (c) 2024 by JWizard
* Originally developed by <NAME> <https://miloszgilga.pl>
*/
package pl.jwizard.api.config
import org.modelmapper.ModelMapper
import org.modelmapper.convention.MatchingStrategies
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Confi... | 0 | Kotlin | 0 | 0 | f7bace6f9aa1bbd621a2225ecc403c328a904e01 | 667 | jwizard-api | Apache License 2.0 |
kotlin-node/src/jsMain/generated/node/asyncHooks/HookCallbacks.kt | JetBrains | 93,250,841 | false | {"Kotlin": 12635434, "JavaScript": 423801} | // Generated by Karakum - do not modify it manually!
package node.asyncHooks
sealed external interface HookCallbacks {
/**
* Called when a class is constructed that has the possibility to emit an asynchronous event.
* @param asyncId A unique ID for the async resource
* @param type The type of the a... | 38 | Kotlin | 162 | 1,347 | 997ed3902482883db4a9657585426f6ca167d556 | 1,907 | kotlin-wrappers | Apache License 2.0 |
app/src/main/java/com/keeppieces/android/ui/primaryCategory/detail/CategoryBillFlowFragmentAdapter.kt | Thooooor | 300,121,083 | false | null | package com.keeppieces.android.ui.primaryCategory.detail
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.fragment.app.FragmentManager
import androidx.recyclerview.widg... | 1 | null | 3 | 4 | 8342e7527eda71b10128d07948274a4258eee2f4 | 2,745 | KeepPieces | MIT License |
src/xqt-kotlinx-lsp/commonTest/xqt/kotlinx/lsp/test/types/TraceValue.kt | rhdunn | 579,760,003 | false | {"Kotlin": 849011} | // Copyright (C) 2023 Reece H. Dunn. SPDX-License-Identifier: Apache-2.0
package xqt.kotlinx.lsp.test.types
import kotlinx.serialization.json.JsonNull
import kotlinx.serialization.json.JsonPrimitive
import xqt.kotlinx.lsp.types.TraceValue
import xqt.kotlinx.rpc.json.serialization.UnsupportedKindTypeException
import xq... | 0 | Kotlin | 2 | 3 | 9c131c53cd492b7bfc4e8bda0288b3a74bc999c1 | 2,931 | xqt-kotlinx-lsp | Apache License 2.0 |
j2k/testData/fileOrElement/detectProperties/PropertyAndFieldConflicts.kt | JakeWharton | 99,388,807 | false | null | internal class C {
private val aaa = 0
private val bbb = 0
private val ccc = 0
private val ddd = 0
fun getAaa(): Int {
return bbb
}
fun getBbb(): Int {
return ccc
}
fun getCcc(): Int {
return ddd
}
fun getDdd(): Int {
return 0
}
} | 284 | null | 5162 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 314 | kotlin | Apache License 2.0 |
src/main/kotlin/io/github/qualterz/cmarkup/abstractions/IMarkupStorage.kt | qualterz | 708,496,482 | false | {"Kotlin": 20757} | package io.github.qualterz.cmarkup.abstractions
import io.github.qualterz.cmarkup.data.ContainerMarkup
interface IMarkupStorage {
fun removeMarkup(name: String)
fun saveMarkup(name: String, markup: ContainerMarkup)
fun loadMarkup(name: String): ContainerMarkup
fun listMarkups(): Array<String>
fun ... | 0 | Kotlin | 0 | 0 | 10626468e76bbf25050b762d55c7f9919a77ef42 | 359 | cmarkup | MIT License |
src/main/kotlin/io/github/qualterz/cmarkup/abstractions/IMarkupStorage.kt | qualterz | 708,496,482 | false | {"Kotlin": 20757} | package io.github.qualterz.cmarkup.abstractions
import io.github.qualterz.cmarkup.data.ContainerMarkup
interface IMarkupStorage {
fun removeMarkup(name: String)
fun saveMarkup(name: String, markup: ContainerMarkup)
fun loadMarkup(name: String): ContainerMarkup
fun listMarkups(): Array<String>
fun ... | 0 | Kotlin | 0 | 0 | 10626468e76bbf25050b762d55c7f9919a77ef42 | 359 | cmarkup | MIT License |
room/room-compiler-processing/src/main/java/androidx/room/compiler/processing/ksp/KspMemberContainer.kt | RikkaW | 389,105,112 | true | {"Java": 49060640, "Kotlin": 36832495, "Python": 336507, "AIDL": 179831, "Shell": 150493, "C++": 38342, "ANTLR": 19860, "HTML": 10802, "TypeScript": 6933, "CMake": 3330, "JavaScript": 1343} | /*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 29 | Java | 1011 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 903 | androidx | Apache License 2.0 |
app/src/main/java/com/oceanbrasil/ocean_android_webservices_imagens_19_04_2022/PokemonApiResult.kt | paulosalvatore | 483,236,335 | false | null | package com.titoportas.pokemonapp.services.model
data class Pagination<T>(
val count: Int,
val next: String?,
val previous: String?,
val results: List<T>
)
data class Pokemon(
val name: String,
val url: String
) | 0 | null | 1 | 1 | 5724d85e7ebc2ac59b309166de1408eb84074f39 | 237 | Ocean_Android_Webservices_Imagens_19_04_2022 | MIT License |
app/src/main/java/org/magnum/logger/user/browsing/BrowserTable.kt | amrabed | 10,190,488 | false | null | package org.magnum.logger.user.browsing
import androidx.room.Dao
import androidx.room.Entity
import androidx.room.Insert
import androidx.room.PrimaryKey
const val NAME = "Browser"
@Entity(tableName = NAME)
data class BrowserRecord(@PrimaryKey val time: Long, val address: String)
@Dao
interface BrowserTable {
@I... | 0 | Kotlin | 0 | 0 | 177f08004a6ffd7a245764581d41e2074ead4f2b | 372 | Logger | MIT License |
app/src/main/java/com/github/fragivity/example/communicate/CheckListAdapter.kt | vitaviva | 313,186,243 | false | null | package com.github.fragivity.example.communicate
import android.os.Parcelable
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.CheckedTextView
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recy... | 16 | null | 39 | 296 | fe4dcaae2dc5ca97dc030a8f0471c0f3fbadb824 | 1,794 | fragivity | MIT License |
native/swift/sir/gen/org/jetbrains/kotlin/sir/impl/SirInitImpl.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2024 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.
*/
// This file was generated automatically. See native/swift/sir/tree-generator/Readme.md.
// DO NOT MODIFY IT M... | 178 | null | 5771 | 47,355 | 27c6d00cb2a5f9c0e9df62b021600e1263f5201a | 1,161 | kotlin | Apache License 2.0 |
src/test/kotlin/com/banking/poc/utils/MoneyTestData.kt | afuentecruz | 783,323,978 | false | {"Kotlin": 118208} | package com.banking.poc.utils
import com.banking.poc.domain.model.money.Money
import com.banking.poc.domain.model.money.MoneyCurrency
import java.math.BigDecimal
fun Money.Companion.testData(): Money =
Money(amount = BigDecimal.TEN, currency = MoneyCurrency.EUR)
| 0 | Kotlin | 0 | 0 | 14a55d20e82f598eff9b7c27c5f28d5ada083107 | 269 | banking-poc | Apache License 2.0 |
client_end_user/shared/src/commonMain/kotlin/presentation/cuisines/CuisinesUiState.kt | TheChance101 | 671,967,732 | false | {"Kotlin": 2473455, "Ruby": 8872, "HTML": 6083, "Swift": 4726, "JavaScript": 3082, "CSS": 1436, "Dockerfile": 1407, "Shell": 1140} | package presentation.cuisines
import presentation.base.ErrorState
data class CuisinesUiState(
val cuisines: List<CuisineUiState> = emptyList(),
val isLoading: Boolean = false,
val error: ErrorState? = null,
)
data class CuisineUiState(
val cuisineId: String = "",
val cuisineName: String = "",
... | 4 | Kotlin | 55 | 572 | 1d2e72ba7def605529213ac771cd85cbab832241 | 357 | beep-beep | Apache License 2.0 |
src/test/kotlin/de/smartsquare/squit/task/SquitRequestTaskGetTest.kt | SmartsquareGmbH | 106,281,604 | false | null | package de.smartsquare.squit.task
import de.smartsquare.squit.TestUtils
import de.smartsquare.squit.gradleRunner
import okhttp3.mockwebserver.MockResponse
import okhttp3.mockwebserver.MockWebServer
import org.amshove.kluent.shouldBe
import org.amshove.kluent.shouldBeEqualTo
import org.gradle.testkit.runner.TaskOutcome... | 6 | Kotlin | 0 | 6 | 278245c3b3c9090d36b2fd011d19885aa3ef715c | 1,343 | squit | MIT License |
src/main/kotlin/com/epam/brn/upload/csv/group/GroupRecordProcessor.kt | Brain-up | 216,092,521 | false | null | package com.epam.brn.upload.csv.group
import com.epam.brn.enums.BrnLocale
import com.epam.brn.model.ExerciseGroup
import com.epam.brn.repo.ExerciseGroupRepository
import com.epam.brn.upload.csv.RecordProcessor
import org.springframework.stereotype.Component
import org.springframework.transaction.annotation.Transaction... | 43 | null | 26 | 61 | 1cf4d44cd6e342e0f37cd45bfb092d74ba211af6 | 1,077 | brn | Creative Commons Zero v1.0 Universal |
src/commonTest/kotlin/uk/gov/hmrc/CalculatorTest.kt | hmrc | 231,362,247 | false | null | /*
* Copyright 2022 HM Revenue & Customs
*
* 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 a... | 0 | Kotlin | 1 | 4 | e0e677a68a73ccd8331b0e0ef7b55c32a311471b | 6,052 | help-to-save-kalculator | Apache License 2.0 |
bwell-kotlin-android/app/src/main/java/com/bwell/sampleapp/activities/ui/medicines/MedicineDetailFragment.kt | icanbwell | 712,483,908 | false | {"Kotlin": 208914} | package com.bwell.sampleapp.activities.ui.medicines
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.webkit.WebView
import android.widget.TextView
import androidx.fragment.app.Fragment
import androidx.fragment.app.... | 4 | Kotlin | 0 | 2 | 7042b5024ef9c465a5618f7553879bd3c41640c7 | 10,965 | bwell-sdk-example | Apache License 2.0 |
theodolite/src/main/kotlin/rocks/theodolite/kubernetes/util/YamlParserFromFile.kt | cau-se | 265,538,393 | false | null | package rocks.theodolite.kubernetes.util
import org.yaml.snakeyaml.Yaml
import org.yaml.snakeyaml.constructor.Constructor
import java.io.File
import java.io.FileInputStream
import java.io.InputStream
/**
* The YamlParser parses a YAML file
*/
@Deprecated("Use Jackson ObjectMapper instead")
class YamlParserFromFile ... | 2 | null | 8 | 43 | 7f25b867314e05306bbe9205533a483a58486b11 | 553 | theodolite | Apache License 2.0 |
theodolite/src/main/kotlin/rocks/theodolite/kubernetes/util/YamlParserFromFile.kt | cau-se | 265,538,393 | false | null | package rocks.theodolite.kubernetes.util
import org.yaml.snakeyaml.Yaml
import org.yaml.snakeyaml.constructor.Constructor
import java.io.File
import java.io.FileInputStream
import java.io.InputStream
/**
* The YamlParser parses a YAML file
*/
@Deprecated("Use Jackson ObjectMapper instead")
class YamlParserFromFile ... | 2 | null | 8 | 43 | 7f25b867314e05306bbe9205533a483a58486b11 | 553 | theodolite | Apache License 2.0 |
server/ktor/src/main/kotlin/com/supertokens/ktor/UserHandler.kt | Appstractive | 656,572,792 | false | null | package com.supertokens.ktor
import com.supertokens.ktor.recipes.roles.setDefaultRoles
import com.supertokens.sdk.common.models.User
import io.ktor.server.application.ApplicationCall
import io.ktor.server.application.application
import io.ktor.server.routing.Route
import io.ktor.server.routing.application
import io.kt... | 5 | null | 1 | 3 | e4d0ff3664034d1c4981a0a2cdf58c3a053da2a7 | 1,105 | supertokens-kt | Apache License 2.0 |
lib/src/test/kotlin/com/github/mrbean355/dota2/testutil/TestUtils.kt | MrBean355 | 303,105,754 | false | null | /*
* Copyright 2022 <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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | Kotlin | 0 | 6 | 59193d7f2a5b8566569fd83698f38f9410a54034 | 1,068 | dota2-gsi | Apache License 2.0 |
app/src/main/java/com/kickstarter/viewmodels/ActivitySampleProjectViewHolderViewModel.kt | kickstarter | 76,278,501 | false | null | package com.kickstarter.viewmodels
import com.kickstarter.libs.utils.extensions.addToDisposable
import com.kickstarter.libs.utils.extensions.isNotNull
import com.kickstarter.models.Activity
import io.reactivex.Observable
import io.reactivex.disposables.CompositeDisposable
import io.reactivex.subjects.BehaviorSubject
... | 8 | null | 989 | 5,752 | a9187fb484c4d12137c7919a2a53339d67cab0cb | 1,566 | android-oss | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.