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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
common/kotlinx-coroutines-core-common/test/DelayTest.kt | objcode | 159,731,828 | false | null |
/*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
@file:Suppress("NAMED_ARGUMENTS_NOT_ALLOWED", "DEPRECATION") // KT-21913
package kotlinx.coroutines
import kotlin.test.*
class DelayTest : TestBase() {
@Test
fun testCancellation() = runTest(expec... | 1 | null | 2 | 5 | 46741db4b0c2863475d5cc6fc75eafadd8e6199d | 1,261 | kotlinx.coroutines | Apache License 2.0 |
app/src/main/java/com/zeflux/template/base/ui/anim/TransitionAnimation.kt | zeflux | 628,309,809 | false | null | package com.zeflux.template.base.ui.anim
import androidx.compose.animation.core.FastOutSlowInEasing
import androidx.compose.animation.core.tween
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.animation.slideInHorizontally
/**
* Transition Animation constant... | 0 | Kotlin | 0 | 0 | e82d8d39feaa267493c49a07f10b9a2ff8e7b415 | 2,632 | template-base | Apache License 2.0 |
logaccess/loki/src/main/kotlin/LokiConfig.kt | eclipse-apoapsis | 760,319,414 | false | null | /*
* Copyright (C) 2023 The ORT Server Authors (See <https://github.com/eclipse-apoapsis/ort-server/blob/main/NOTICE>)
*
* 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://w... | 82 | null | 8 | 9 | 0af70d6382a86f0ebc35d9b377f4229c6a71637a | 4,618 | ort-server | Apache License 2.0 |
src/main/kotlin/no/nav/helse/flex/journalpost/Journalpost.kt | navikt | 446,743,079 | false | {"Kotlin": 113180, "Dockerfile": 267} | package no.nav.helse.flex.journalpost
data class Journalpost(
val bruker: Bruker? = null,
val tittel: String? = null,
val journalpostId: String,
val journalstatus: String,
val dokumenter: List<Dokument>,
val journalforendeEnhet: String? = null,
val relevanteDatoer: List<RelevanteDatoer>? = ... | 4 | Kotlin | 0 | 0 | d1bcffc10df21a49db2b368f18de33e47e598079 | 2,301 | flex-joark-mottak | MIT License |
src/main/kotlin/se/svt/oss/redisson/util/starter/RedissonUtilAutoConfiguration.kt | svt | 411,665,145 | false | null | // SPDX-FileCopyrightText: 2020 Sveriges Television AB
//
// SPDX-License-Identifier: Apache-2.0
package se.svt.oss.redisson.util.starter
import org.redisson.api.RedissonClient
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean
import org.springframework.boot.autoconfigure.condition.Conditional... | 0 | Kotlin | 0 | 0 | 20def8cf1f19d787bd1c557811352eabf754a68b | 1,588 | redisson-util-starter | Apache License 2.0 |
app/src/main/java/com/magenta/foodalrecipe/ui/fragment/BaseFragment.kt | vipafattal | 174,386,116 | false | null | package com.magenta.foodalrecipe.ui.fragment
import android.animation.AnimatorInflater
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.RecyclerView
import com.magenta.foodalrecip... | 0 | Kotlin | 1 | 3 | e1b5e70c1633754ea24b5f642f4999f6a5b35bfe | 2,439 | FoodalRecipe | MIT License |
vpn/src/main/java/com/duckduckgo/mobile/android/vpn/network/util/NetworkUtil.kt | cmonfortep | 252,403,423 | true | {"Kotlin": 6042652, "HTML": 42259, "Java": 35279, "JavaScript": 8281, "Ruby": 7654, "C++": 1820, "CMake": 1298, "Shell": 784} | /*
* Copyright (c) 2022 DuckDuckGo
*
* 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 | 0 | 3 | 228a1217aad96d19f90750d94664b7a4a5744c9a | 1,512 | Android | Apache License 2.0 |
android/android-playground/app/src/main/java/com/example/android_playground/viewmodel/MainViewModel.kt | Web3Auth | 505,301,254 | false | {"TypeScript": 822831, "C#": 251262, "ShaderLab": 241476, "Dart": 141771, "Kotlin": 141061, "Swift": 141046, "CSS": 85340, "HTML": 74861, "Java": 61246, "JavaScript": 53525, "HLSL": 41982, "Vue": 30475, "Ruby": 20720, "Objective-C++": 17003, "Objective-C": 9829, "C++": 7327, "Solidity": 617, "Starlark": 602, "CMake": 2... | package com.example.android_playground.viewmodel
import android.net.Uri
import android.util.Log
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import androidx.l... | 9 | TypeScript | 106 | 91 | 348faa68b95ce53fabebc8aaed23ca738dedbea8 | 6,748 | web3auth-pnp-examples | MIT License |
app/src/main/java/com/yassin/wallpaper/feature/home/viewholder/HorizontalCarouselVH.kt | yassinBaccour | 106,160,036 | false | {"Kotlin": 348508, "Java": 3869} | package com.yassin.wallpaper.feature.home.viewholder
import android.view.View
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.sfaxdroid.data.mappers.BaseWallpaperView
import com.yassin.wallpaper.databinding.ItemHorizontalScrollBinding
import com.yassi... | 0 | Kotlin | 0 | 2 | 136ac811fb1495a8ea2800480954121bf092742b | 1,338 | SfaxDroid_Wallpaper_App | Apache License 2.0 |
tegral-di/tegral-di-test/src/test/kotlin/guru/zoroark/tegral/di/test/NoRulesCheckTest.kt | utybo | 491,247,680 | false | {"Kotlin": 1066259, "Nix": 2449, "Shell": 8} | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | 26 | Kotlin | 4 | 37 | fa4284047f2ce7ba9ee78e92d8c67954716e9dcc | 1,775 | Tegral | Apache License 2.0 |
snowplow-tracker/src/main/java/com/snowplowanalytics/snowplow/emitter/BufferOption.kt | snowplow | 20,056,757 | false | {"Gradle": 6, "Java Properties": 1, "Markdown": 5, "Shell": 2, "Text": 1, "Ignore List": 5, "Batchfile": 1, "INI": 2, "YAML": 4, "Proguard": 4, "XML": 28, "Java": 4, "Kotlin": 303} | /*
* Copyright (c) 2015-present Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.ap... | 1 | null | 1 | 1 | fa694a5687e5eee6536f2e79a8eb105f622ce9e3 | 1,859 | snowplow-android-tracker | Apache License 2.0 |
app/src/main/java/cucerdariancatalin/gallery/helpers/IsoTypeReader.kt | darian-catalin-cucer | 586,362,343 | false | null | package com.simplemobiletools.gallery.pro.helpers
import java.io.UnsupportedEncodingException
import java.nio.ByteBuffer
import java.nio.charset.Charset
// file taken from the https://github.com/sannies/mp4parser project, used at determining if a video is a panoramic one
object IsoTypeReader {
fun readUInt32(bb: ... | 0 | null | 3 | 2 | 1ecd1e815ec628c932fdce318ca1da2247d0aa91 | 730 | Gallery | MIT License |
usecases/src/main/kotlin/br/com/guiabolso/connector/common/time/ZonedDateTimeProvider.kt | GuiaBolso | 269,366,943 | false | null | package br.com.guiabolso.connector.common.time
import java.time.ZonedDateTime
interface ZonedDateTimeProvider {
fun now(): ZonedDateTime
}
| 0 | Kotlin | 3 | 1 | b11ed7435b79073f0dfd4e7be6fbace3ba9a067f | 146 | guiabolso-connector | Apache License 2.0 |
bitgouel-api/src/main/kotlin/team/msg/domain/auth/presentation/data/request/ChangePasswordRequest.kt | School-of-Company | 700,741,727 | false | {"Kotlin": 623016, "Shell": 764, "Dockerfile": 206} | package team.msg.domain.auth.presentation.data.request
data class ChangePasswordRequest(
val email: String,
val newPassword: String
) | 2 | Kotlin | 0 | 17 | 0af55dd2947f965bb4aadafe5ab4dea30925a23d | 142 | Bitgouel-Server | MIT License |
multik-openblas/src/commonMain/kotlin/org/jetbrains/kotlinx/multik/openblas/math/NativeMath.kt | Kotlin | 265,785,552 | false | null | /*
* Copyright 2020-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package org.jetbrains.kotlinx.multik.jni.math
import org.jetbrains.kotlinx.multik.api.math.Math
import org.jetbrains.kotlinx.multik.api.math.MathEx
import org.jetbrains.kotlinx.multik.jni.NativeEngine
import ... | 35 | null | 32 | 401 | af126cdc1dfa39c606d1810ae46947c5543ded8c | 6,151 | multik | Apache License 2.0 |
grains/src/main/kotlin/Grains.kt | 3mtee | 98,672,009 | false | null | import java.math.BigInteger
object Board {
fun getGrainCountForSquare(number: Int): BigInteger = BigInteger.TWO
.apply { require(number in 1..64) { throw IllegalArgumentException("Incorrect input") } }
.pow(number - 1)
fun getTotalGrainCount(): BigInteger =
(0 until 64)
.m... | 0 | Kotlin | 0 | 0 | 815d0e41e6f88a47681b8cc6eaec3858e59e0975 | 421 | exercism-kotlin | Apache License 2.0 |
compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/declarations/IrAnonymousInitializer.kt | JakeWharton | 99,388,807 | false | null | /*
* Copyright 2010-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 0 | null | 4 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 1,050 | kotlin | Apache License 2.0 |
src/main/kotlin/net/prosavage/factionsx/event/FactionOverclaimEvent.kt | ryderbelserion | 669,875,997 | false | null | package net.prosavage.factionsx.event
import net.prosavage.factionsx.core.Faction
import net.prosavage.factionsx.persist.data.FLocation
import org.bukkit.event.Cancellable
import org.bukkit.event.Event
import org.bukkit.event.HandlerList
class FactionOverclaimEvent(val faction: Faction, val overclaimedFaction: Factio... | 0 | Kotlin | 0 | 0 | b63ad83b36d434e3b827d3e074d0e13e9ef42929 | 735 | Factions | MIT License |
http4k-format/jackson/src/test/kotlin/org/http4k/jsonrpc/JacksonAutoMappingJsonRpcServiceTest.kt | http4k | 86,003,479 | false | null | package org.http4k.jsonrpc
import com.fasterxml.jackson.databind.JsonNode
import org.http4k.format.Jackson
class JacksonAutoMappingJsonRpcServiceTest : AutoMappingJsonRpcServiceContract<JsonNode>(Jackson) | 34 | null | 249 | 2,615 | 7ad276aa9c48552a115a59178839477f34d486b1 | 206 | http4k | Apache License 2.0 |
app/src/main/java/org/simple/clinic/deniedaccess/AccessDeniedScreenKey.kt | eco4ndly | 244,967,563 | false | {"Gradle": 9, "Shell": 4, "Markdown": 26, "Java Properties": 2, "Text": 1, "Ignore List": 8, "Batchfile": 1, "YAML": 3, "Kotlin": 1176, "XML": 237, "INI": 2, "Proguard": 2, "JSON": 62, "Java": 1, "SVG": 1} | package org.simple.clinic.deniedaccess
import android.os.Parcelable
import kotlinx.android.parcel.IgnoredOnParcel
import kotlinx.android.parcel.Parcelize
import org.simple.clinic.R
import org.simple.clinic.router.screen.FullScreenKey
@Parcelize
data class AccessDeniedScreenKey(val fullName: String) : FullScreenKey, P... | 1 | null | 1 | 1 | c0bb3139dada4f34206928ec81f1e5f6f056134b | 461 | simple-android | MIT License |
app/src/main/java/com/example/android/danmack/ui/exploredetail/ExploreDetailViewModel.kt | Ayodeji97 | 376,871,978 | false | null | package com.example.android.danmack.ui.exploredetail
import android.util.Log
import androidx.lifecycle.*
import com.example.android.danmack.local.localmodel.LocalTrackEntity
import com.example.android.danmack.model.searchmodel.HitsData
import com.example.android.danmack.model.songmodel.Track
import com.example.android... | 1 | Kotlin | 2 | 3 | e426d7ddbd0d2d21811e9be945e87a874b23f6d8 | 2,376 | Mackie | Apache License 2.0 |
presentation/src/test/java/com/dev/presentation/articlelist/ArticleListViewModelTest.kt | namdevlondhe | 721,257,049 | false | {"Kotlin": 57550} | package com.dev.presentation.articlelist
import app.cash.turbine.test
import com.dev.domain.fakes.FakeData
import com.dev.domain.usecase.GetArticleListUseCase
import com.dev.presentation.mapper.NewsArticleResultMapper
import io.mockk.MockKAnnotations
import io.mockk.coEvery
import io.mockk.mockk
import io.mockk.unmock... | 0 | Kotlin | 0 | 0 | 41cd2df9cca00ec10cc2085b11749a21d5591e7a | 2,422 | Spaceflight-News | Apache License 2.0 |
etcd-recipes/src/test/kotlin/io/etcd/recipes/keyvalue/TransientKeyValueTest.kt | pambrose | 210,267,025 | false | {"Kotlin": 206892, "Java": 34137, "Makefile": 372} | /*
* Copyright © 2021 <NAME> (<EMAIL>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 1 | Kotlin | 1 | 5 | 39f419e1eda3b582bca9e125a4e3f061606f45ed | 2,688 | etcd-recipes | Apache License 2.0 |
app/src/main/java/com/summerland/android/game/Animation.kt | steveeri | 70,157,876 | false | null | package com.summerland.android.game
import android.graphics.Bitmap
/**
* Animation class, Created by steve on 01/10/16.
*/
class Animation {
private var frames: Array<Bitmap?> = arrayOfNulls(0)
private var currentFrame: Int = 0
private var startTime: Long = 0
private var delay: Long = 0
internal... | 0 | Kotlin | 0 | 0 | 406f8fd9da13c0723d1bbcd06fdb3bbaff78315e | 1,023 | Island-Hopper | MIT License |
android/quest/src/main/java/org/smartregister/fhircore/quest/util/TaskConstants.kt | midas-in | 844,422,158 | false | {"Kotlin": 2938437, "Java": 4967, "JavaScript": 3320, "CSS": 459} | package org.smartregister.fhircore.quest.util
enum class TaskProgressStatusDisplay(val text: String) {
NOT_RESPONDED("Not responded"),
NOT_CONTACTED("Not contacted"),
NOT_AGREED_FOR_FOLLOWUP("Didn't agree for follow up"),
AGREED_FOLLOWUP_NOT_DONE("Agreed, follow up not done"),
FOLLOWUP_DONE("Follow... | 0 | Kotlin | 0 | 0 | 09ca5e1ae8bb74d0115bc4915f6b48658c89e299 | 1,026 | fhir-app | Apache License 2.0 |
data/src/main/java/com/ribsky/data/repository/test/TestRepositoryImpl.kt | nexy791 | 607,748,138 | false | null | package com.ribsky.data.repository.test
import com.ribsky.data.mapper.test.TestMapper
import com.ribsky.data.service.file.FileService
import com.ribsky.data.service.offline.tests.TestsDao
import com.ribsky.data.service.online.test.TestService
import com.ribsky.data.utils.crypto.CryptoManager
import com.ribsky.data.uti... | 0 | Kotlin | 0 | 7 | d2e9f7c04635e1793bfe8f421b4bc5ef162556c0 | 2,319 | dymka | Apache License 2.0 |
scalechain-script/src/test/kotlin/io/scalechain/blockchain/script/BitwiseLogicSpec.kt | ScaleChain | 45,332,311 | false | null | package io.scalechain.blockchain.script
import io.kotlintest.KTestJUnitRunner
import io.scalechain.blockchain.ErrorCode
import io.scalechain.blockchain.script.ops.*
import org.junit.runner.RunWith
/** Test bitwise logic operations in BitwiseLogic.scala
*
*/
@RunWith(KTestJUnitRunner::class)
class BitwiseLogicSpec... | 11 | Kotlin | 67 | 234 | 702ac4d65febb05dc8283e8c165df454efa339b8 | 2,458 | scalechain | Intel Open Source License |
gremlin-kore/src/main/kotlin/org/apache/tinkerpop4/gremlin/structure/io/binary/types/TreeSerializer.kt | phreed | 449,920,526 | false | null | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 4 | null | 1 | 1 | cb6805d686e9a27caa8e597b0728a50a63dc9092 | 1,703 | tinkerpop4 | Apache License 2.0 |
app/src/main/java/mustafaozhan/github/com/mycurrencies/model/MainData.kt | hirenpatel868 | 242,063,783 | true | {"Kotlin": 119920} | package mustafaozhan.github.com.mycurrencies.model
import com.squareup.moshi.JsonClass
import org.joda.time.Instant
/**
* Created by <NAME> on 2018-07-20.
*/
@JsonClass(generateAdapter = true)
data class MainData(
var firstRun: Boolean = true,
var currentBase: Currencies = Currencies.EUR,
var adFreeActi... | 0 | null | 0 | 0 | 9709b27913f89b5368bcaddca83a13d69a6b3ded | 388 | androidCCC | Apache License 2.0 |
app/src/main/java/com/d10ng/compose/demo/stores/AreaStore.kt | D10NGYANG | 445,078,597 | false | {"Kotlin": 381826} | package com.d10ng.compose.demo.stores
import com.d10ng.app.resource.getAssetsJSONArray
import com.d10ng.common.transform.toPinYin
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.Json
/**
* 国家或地区数据仓库
* @Author d10ng
* @Date 2023/9/18 10:57
*/
obje... | 0 | Kotlin | 1 | 9 | 786548aeafdbe91a456e59c3dd6f87cc553f5f23 | 1,381 | DLJetpackComposeUtil | MIT License |
opencola-server/core/application/src/test/kotlin/io.opencola.application/ApplicationTest.kt | johnmidgley | 441,008,781 | false | {"Kotlin": 1130580, "Java": 851281, "Dart": 181759, "Clojure": 111662, "CSS": 61393, "HTML": 42666, "Shell": 17124, "Swift": 14391, "JavaScript": 10218, "PowerShell": 8360, "Ruby": 1586, "Dockerfile": 654, "Objective-C": 38} | package io.opencola.application
import org.junit.Test
import kotlin.test.assertEquals
class ApplicationTest {
@Test
fun testRootPersonIsActive() {
val rootPersona = TestApplication.instance.getPersonas().first()
assertEquals(true, rootPersona.isActive)
}
} | 16 | Kotlin | 1 | 3 | bbe87b3cabea608eea6d79a1f71a01418b8643c1 | 286 | opencola | Apache License 2.0 |
src/jvmMain/kotlin/com.otc.application/Validation.kt | gvbl | 596,753,383 | false | {"Kotlin": 165187, "CSS": 613, "Dockerfile": 317} | package com.otc.application
import Desk
import Person
import Space
fun isValidPerson(person: Person): Boolean = person.name.length in 1..80
fun isValidDesk(desk: Desk): Boolean = desk.name.length in 1..80
fun isValidSpaceName(space: Space): Boolean = space.name.length in 1..80 | 0 | Kotlin | 0 | 0 | 3626d3eb80a34e2230035fa93f3e591e62555306 | 281 | otc | MIT License |
app/src/main/java/com/stew/kotlinbox/hooktest/HookClassLoader.kt | stewForAni | 463,379,833 | false | {"Kotlin": 123823, "CMake": 3319, "C++": 1364} | package com.stew.kotlinbox.hooktest
import android.app.Application
import dalvik.system.BaseDexClassLoader
/**
* Created by stew on 2023/7/20.
* mail: stewforani@gmail.com
*/
object HookClassLoader {
fun hook(app: Application) {
val cl = app.classLoader
val pcl = ProxyClassLoader("", cl.paren... | 1 | Kotlin | 19 | 96 | 60da2611e91f76aea37f14103f8b2048e3410129 | 644 | KotlinBox-WanAndroid | Apache License 2.0 |
src/test/java/com/github/ai/kpdiff/testEntities/TestKeepassKey.kt | aivanovski | 607,687,384 | false | {"Kotlin": 205698, "Ruby": 3377} | package com.github.ai.kpdiff.testEntities
sealed class TestKeepassKey {
data class PasswordKey(val password: String) : TestKeepassKey()
} | 1 | Kotlin | 1 | 2 | 14f57182e096d4f6f7ef330bc1d5921b1dd98bf9 | 142 | kp-diff | Apache License 2.0 |
annotation/src/main/kotlin/io/cursedfunction/annotation/mockme/MockingTextAnnotation.kt | rf43 | 795,304,737 | false | {"Kotlin": 6135} | package io.cursedfunction.annotation.mockme
/**
* This annotation is used to mark classes that should
* be processed by the MockingTextProcessor
*/
@Retention(AnnotationRetention.SOURCE)
@Target(AnnotationTarget.CLASS)
annotation class MockingText
| 0 | Kotlin | 0 | 0 | c56eb1393fa26127a38d2ef5d4f66817c31747c1 | 252 | ksp-custom-example | Apache License 2.0 |
KotlinMultiplatform/XFullStack/shared/src/commonMain/kotlin/data/device/user/user/UserDBServiceImplementation.kt | pradyotprksh | 385,586,594 | false | null | package data.device.user.user
import core.models.realm.UserInfoDB
import domain.services.user.user.UserDBService
import io.realm.kotlin.Realm
import io.realm.kotlin.ext.query
import io.realm.kotlin.notifications.SingleQueryChange
import kotlinx.coroutines.flow.Flow
import utils.Constants.ConstValues.USER_ID
class Use... | 0 | null | 11 | 24 | 4caa1e3995d2c51de8cc98183dd22486c4309292 | 568 | development_learning | MIT License |
kmath-memory/src/commonTest/kotlin/space/kscience/kmath/memory/MemoryTest.kt | SciProgCentre | 129,486,382 | false | {"Kotlin": 1986545, "ANTLR": 887} | /*
* Copyright 2018-2023 KMath 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 space.kscience.kmath.memory
import kotlin.test.Test
import kotlin.test.assertEquals
class MemoryTest {
@Test
fun memoryWriteRead() {
... | 89 | Kotlin | 52 | 609 | fcb7e2fa7d91667522d681d78c92c7aff181e29c | 897 | kmath | Apache License 2.0 |
app/src/main/java/com/uzias/starwarsshop/core/domain/UseCase.kt | uziassantosferreira | 108,789,405 | false | null | package com.uzias.starwarsshop.core.domain
interface UseCase<out T> {
fun run(): T
} | 0 | Kotlin | 1 | 38 | dec2d949a69e870bf37a76c4f22d86c93c12c143 | 89 | Star-Wars-Shop | Apache License 2.0 |
jarvis-pi/app/src/main/java/com/skydoves/jarvis_pi/MainActivity.kt | Jarvis-Home-IoT | 259,032,409 | false | null | /*
* Designed and developed by 2020 rurimo
*
* 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 agr... | 0 | Kotlin | 4 | 4 | 1ece36e1d9d06b940b5ced0388435776fc752e93 | 5,573 | Hologram-Hardware | Apache License 2.0 |
app/src/main/java/com/ubuntuyouiwe/nexus/presentation/ui/theme/Theme.kt | ubuntuyiw | 670,182,275 | false | null | package com.ubuntuyouiwe.nexus.presentation.ui.theme
import android.app.Activity
import android.os.Build
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.darkColorScheme
import androidx.compose.material3.dynamicDarkColorScheme
impo... | 0 | null | 0 | 9 | 4edd0040e8983f79eca4cce71ca3e60cc4ee31b7 | 2,649 | Nexus | Apache License 2.0 |
reposilite-backend/src/test/kotlin/com/reposilite/statistics/StatisticsFacadeTest.kt | FrankHeijden | 398,312,890 | true | {"Kotlin": 242209, "Vue": 20500, "JavaScript": 17509, "HTML": 4720, "CSS": 2344, "Shell": 1474, "Dockerfile": 1156, "Groovy": 636} | package com.reposilite.statistics
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
import com.reposilite.statistics.api.RecordType.REQUEST
import com.reposilite.statistics.api.RecordType.UNKNOWN
internal class StatisticsFacadeTest : StatisticsSpec() {
@Test
fun `should i... | 0 | null | 0 | 0 | 8ab8b236129d23870143e4c06f45f7fe43bb82f4 | 1,935 | reposilite | Apache License 2.0 |
app/src/main/java/br/com/jwar/sharedbill/navigation/NavGraph.kt | wellingtonrib | 535,153,218 | false | {"Kotlin": 448034, "JavaScript": 2075} | package br.com.jwar.sharedbill.navigation
import androidx.compose.animation.EnterTransition
import androidx.compose.animation.ExitTransition
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.runtime.Composable
import androidx.navigation.NavHostController
import androidx.navigation.comp... | 17 | Kotlin | 0 | 0 | 5343aac247f77437164505e3b977e4ef8fe764da | 1,465 | SharedBill | Creative Commons Attribution 4.0 International |
grovlin-ast/src/test/kotlin/io/gitlab/arturbosch/grovlin/ast/symbols/TypeObjectOverrideTest.kt | arturbosch | 80,819,243 | false | null | package io.gitlab.arturbosch.grovlin.ast.symbols
import io.gitlab.arturbosch.grovlin.ast.asGrovlinFile
import io.gitlab.arturbosch.grovlin.ast.parseFromTestResource
import io.gitlab.arturbosch.grovlin.ast.resolved
import org.assertj.core.api.Assertions
import org.junit.Test
/**
* @author <NAME>
*/
class TypeObjectO... | 8 | null | 1 | 6 | 3bfd23cc6fd91864611e785cf2c990b3a9d83e63 | 5,679 | grovlin | Apache License 2.0 |
app/src/main/java/com/mapswithme/maps/bookmarks/CatalogListenerDecorator.kt | dnemov | 245,413,600 | false | null | package com.mapswithme.maps.bookmarks
import androidx.fragment.app.Fragment
import com.mapswithme.maps.R
import com.mapswithme.maps.bookmarks.data.BookmarkManager
import com.mapswithme.maps.bookmarks.data.BookmarkManager.BookmarksCatalogListener
import com.mapswithme.maps.bookmarks.data.BookmarkManager.DefaultBookmark... | 0 | Kotlin | 0 | 1 | 8b75114193e141aee14fcbc207a208c4a39de1db | 2,017 | omim.kt | Apache License 2.0 |
src/main/kotlin/dev/storozhenko/familybot/services/scenario/ScenarioService.kt | AngryJKirk | 114,262,178 | false | null | package dev.storozhenko.familybot.services.scenario
import dev.storozhenko.familybot.common.extensions.bold
import dev.storozhenko.familybot.common.extensions.italic
import dev.storozhenko.familybot.models.telegram.Chat
import dev.storozhenko.familybot.models.telegram.Command
import dev.storozhenko.familybot.repos.Sce... | 0 | null | 5 | 97 | aff071c72503ffb9ad276fb9cc33d8408196795d | 2,167 | familybot | Apache License 2.0 |
app/src/main/java/knf/kuma/news/NewsCreator.kt | jordyamc | 119,774,950 | false | null | package knf.kuma.news
import android.content.ActivityNotFoundException
import android.content.Intent
import android.net.Uri
import android.os.Build
import android.text.Html
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import knf.kuma.ads.A... | 24 | null | 40 | 159 | 99d8108ca5a9c32b89952aeb217319693df57688 | 4,969 | UKIKU | MIT License |
src/main/java/net/sourceforge/jenesis4java/j4jik/JGenerator.kt | erikfk | 133,113,449 | false | {"Maven POM": 1, "Text": 1, "YAML": 1, "Markdown": 1, "Java": 1, "Kotlin": 31} | package net.sourceforge.jenesis4java.j4jik
/**
* Singleton Java code generator class.
*/
object JGenerator {
// TODO: thread safety! when accessing this list!
private val unitsList = mutableListOf<JOrdinaryCompilationUnit>()
/**
* Resets the JGenerator.
*/
fun clear() {
unitsList.... | 1 | null | 1 | 1 | 6791061ab9f7a08d3ee30f41c6057d158d625b13 | 1,132 | jenesis4javaInKotlin | Apache License 2.0 |
survey/src/main/java/com.quickbirdstudios.surveykit/NavigationRule.kt | QuickBirdEng | 208,727,886 | false | {"Kotlin": 246845, "Shell": 8542} | package com.quickbirdstudios.surveykit
sealed class NavigationRule {
data class DirectStepNavigationRule(
val destinationStepStepIdentifier: StepIdentifier
) : NavigationRule()
data class ConditionalDirectionStepNavigationRule(
val resultToStepIdentifierMapper: (String) -> StepIdentifier?
... | 19 | Kotlin | 71 | 384 | 83cd95cc79db67fb96e642e84b815a4c8b5fb5ab | 347 | SurveyKit | MIT License |
app/src/main/java/com/cyberfanta/desafiobetterfly/presenters/ConnectionToApi.kt | cyberfanta | 372,712,453 | false | null | package com.cyberfanta.desafiobetterfly.presenters
import com.cyberfanta.desafiobetterfly.exceptions.ConnectionException
import okhttp3.MediaType
import okhttp3.MediaType.Companion.toMediaTypeOrNull
import okhttp3.OkHttpClient
import okhttp3.Request
import okhttp3.RequestBody.Companion.toRequestBody
import java.util.c... | 0 | Kotlin | 0 | 0 | 693a60172486382ea8e2640ceb111fe2589c79b1 | 1,939 | DesafioBetterfly | Apache License 2.0 |
data/remote/src/main/java/com/alexnechet/remote/network/model/ResponseData.kt | alex-nechet | 634,167,292 | false | null | package com.alexnechet.remote.network.model
import com.squareup.moshi.Json
data class ResponseData(
val total: Long,
val totalHits: Long,
@Json(name ="hits")
val imageList: List<ImageResponse>
) | 0 | Kotlin | 0 | 0 | 6adf90e68f20d413a4a20a960339ae5c26840fb6 | 212 | PixabayApp | MIT License |
s_bpm/src/main/kotlin/sbpm_solution/bpms/sbpm/model/foundation.kt | atim333 | 534,139,851 | false | {"Kotlin": 190328} | package sbpm_solution.bpms.sbpm.model
interface Reference<V> {
val id: String
fun resolvedReference(): V?
}
interface BaseElement {
val id: String?
val processDefinition: ProcessDefinition
fun <T> getReference(): Reference<T> {
return processDefinition.createReference(id!!)
}
}
inte... | 0 | Kotlin | 0 | 0 | 5884b562b576df27baa634952ab4fbaad0e4c98d | 352 | sbpm_solution | Apache License 2.0 |
src/main/kotlin/com/bajdcc/LALR1/interpret/os/user/routine/URMusic.kt | bajdcc | 32,624,604 | false | {"Kotlin": 1131761, "HTML": 42480, "CSS": 37889, "JavaScript": 2703} | package com.bajdcc.LALR1.interpret.os.user.routine
import com.bajdcc.LALR1.interpret.os.IOSCodePage
import com.bajdcc.util.ResourceLoader
/**
* 【用户态】音乐
*
* @author bajdcc
*/
class URMusic : IOSCodePage {
override val name: String
get() = "/usr/p/music"
override val code: String
get() = Re... | 0 | Kotlin | 20 | 65 | 90b19af98da99b53bba5b3269ad5666df7c05e49 | 351 | jMiniLang | MIT License |
app/src/main/kotlin/io/sweers/catchup/ui/activity/MainActivity.kt | ZacSweers | 57,029,623 | 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 ... | 42 | null | 199 | 1,871 | 4e66160d861d71fe7c269ff33643e224a490343e | 7,242 | CatchUp | Apache License 2.0 |
mineinabyss-features/src/main/kotlin/com/mineinabyss/features/layers/LayersFeature.kt | MineInAbyss | 115,279,675 | false | {"Kotlin": 371791} | package com.mineinabyss.features.layers
import com.mineinabyss.idofront.plugin.listeners
import com.mineinabyss.mineinabyss.core.AbyssFeature
import com.mineinabyss.mineinabyss.core.MineInAbyssPlugin
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
@SerialName("layers")
... | 14 | Kotlin | 26 | 87 | 3ce6cc9065b4cae6ec4333f4eef05bc8551dd494 | 453 | MineInAbyss | MIT License |
common/compose/src/main/kotlin/app/surgo/common/compose/theme/Appearance.kt | tsukiymk | 382,220,719 | false | null | package app.surgo.common.compose.theme
import androidx.compose.ui.unit.dp
val BodySpacing = 16.dp
val PaddingBetweenElements = 8.dp
| 0 | Kotlin | 0 | 0 | a364fa99ea63c6b18268ad26b3bb4c0a0603a98f | 135 | surgo | Apache License 2.0 |
global/app/src/main/java/com/wackaloon/megamonolith/GlobalApplicationComponent.kt | Wackaloon | 353,394,945 | false | null | package com.wackaloon.megamonolith
import dagger.Component
@Component(modules = [
FeatureYDependenciesModule::class,
])
interface GlobalApplicationComponent {
fun inject(globalApplication: GlobalApplication)
@Component.Factory
interface Factory {
fun create(): GlobalApplicationComponent
... | 0 | Kotlin | 0 | 1 | a65bdff30af9c34c843a0e77b8257beb1d5a57ef | 500 | megamonolith | MIT License |
app/src/main/java/com/example/recipeapp/RecipeDetailActivity.kt | minseoBae | 762,071,254 | false | {"Kotlin": 69383} | package com.example.recipeapp
import android.content.Intent
import android.os.Bundle
import android.widget.ImageButton
import android.widget.ImageView
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widg... | 0 | Kotlin | 0 | 0 | b1365d7bcbe2dc483777d8367a603444fc621df7 | 7,117 | RecipeApp | MIT License |
extensions/panache/mongodb-panache-kotlin/runtime/src/main/kotlin/io/quarkus/mongodb/panache/kotlin/runtime/KotlinMongoOperations.kt | patrox | 377,393,180 | true | {"Batchfile": 8, "Shell": 22, "Markdown": 93, "Java": 17456, "Java Properties": 363, "HTML": 123, "INI": 756, "Kotlin": 347, "Scala": 38, "SQL": 95, "Gradle Kotlin DSL": 35, "Dockerfile": 2, "JavaScript": 112, "Python": 1, "CSS": 6, "PLpgSQL": 1} | package io.quarkus.mongodb.panache.kotlin.runtime
import com.mongodb.client.ClientSession
import com.mongodb.client.MongoCollection
import io.quarkus.mongodb.panache.common.PanacheUpdate
import io.quarkus.mongodb.panache.common.runtime.MongoOperations
import io.quarkus.mongodb.panache.common.runtime.PanacheUpdateImpl
... | 14 | Java | 4 | 3 | 4b7e8c29de35541bb6a7b668391f31083abd1415 | 2,262 | quarkus | Apache License 2.0 |
autosave/src/main/kotlin/com/deflatedpickle/rawky/autosave/event/EventAutoSaveDocument.kt | DeflatedPickle | 197,672,095 | false | null | /* Copyright (c) 2022 DeflatedPickle under the MIT license */
package com.deflatedpickle.rawky.autosave.event
import com.deflatedpickle.haruhi.api.event.AbstractEvent
import com.deflatedpickle.haruhi.api.util.Document
import java.io.File
@Suppress("unused")
object EventAutoSaveDocument : AbstractEvent<Pair<Document,... | 7 | Kotlin | 6 | 27 | 6ee77e8f054571823d2448688f38ece858c2c2c4 | 330 | Rawky | MIT License |
composeApp/src/commonMain/kotlin/com.sjaindl/s11/auth/SignUpWithMailScreen.kt | sjaindl | 833,289,183 | false | {"Kotlin": 93546, "Ruby": 2535, "Swift": 1359, "HTML": 341, "CSS": 102} | package com.sjaindl.s11.auth
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material3.ButtonDefaults
import androidx.compose.material... | 0 | Kotlin | 0 | 0 | e8806029b2f8d163f81a0c0ac9102b8b0b1ecc74 | 3,539 | StartingEleven | MIT License |
app/src/main/java/com/example/passwordmanager/MainActivity.kt | piyushsonawane07 | 439,852,851 | false | {"Kotlin": 55664} | package com.example.passwordmanager
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import androidx.navigation.NavController
class MainActivity : AppCompatActivity() {
private lateinit var navController: NavController
override fun onCreate(savedInstanceState... | 0 | Kotlin | 0 | 0 | 6bbe902f93e49f4fccca4a2f9d64a5e339788b67 | 686 | Password-Manager-App | MIT License |
app/yds-ui-tester/src/main/java/com/yourssu/yds_ui_tester/MainActivity.kt | yourssu | 364,290,281 | false | null | package com.yourssu.yds_ui_tester
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.Gravity
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.databinding.ObservableBoolean
import com.yourssu.design.system.compone... | 9 | Kotlin | 2 | 9 | 58364077175f882def5108e654f51667b9d3af36 | 2,823 | YDS-Android | MIT License |
app/src/main/java/com/github/adamr22/weatherapp/presentation/WeatherAppViewModel.kt | AdamR22 | 568,626,077 | false | null | package com.github.adamr22.weatherapp.presentation
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.github.adamr22.weatherapp.domain.Resource
import co... | 0 | Kotlin | 0 | 0 | bfdcafc4699dee91ba701ef31f377a74e93d22ee | 1,624 | WeatherApp | MIT License |
query/src/main/kotlin/com/linecorp/kotlinjdsl/querydsl/select/MultiSelectDsl.kt | line | 442,633,985 | false | null | package com.linecorp.kotlinjdsl.querydsl.select
import com.linecorp.kotlinjdsl.query.clause.select.MultiSelectClause
import com.linecorp.kotlinjdsl.query.spec.expression.ExpressionSpec
/**
* This is Dsl which is used to select multiple column.
*
* **notice**: vararg is not supported with method name: select.
* Th... | 26 | Kotlin | 60 | 504 | f28908bf432cf52f73a9573b1ac2be5eb4b2b7dc | 1,281 | kotlin-jdsl | Apache License 2.0 |
sessionkotlin/lib/src/main/kotlin/com/github/sessionkotlin/lib/backend/channel/SKChannelMessageIO.kt | sessionkotlin | 467,159,660 | false | {"Kotlin": 365663, "Makefile": 1801} | package com.github.sessionkotlin.lib.backend.channel
import com.github.sessionkotlin.lib.backend.endpoint.MessageIO
import com.github.sessionkotlin.lib.backend.message.SKMessage
/**
* Endpoint implementation with channels.
*/
internal class SKChannelMessageIO(private var chan: SKDoubleChannel) : MessageIO {
ov... | 0 | Kotlin | 0 | 1 | 75ce636e790a8910ab126c61ec5e3048fccc5402 | 486 | sessionkotlin | MIT License |
src/main/kotlin/au/org/ala/cas/webflow/LoginTerminateSessionAction.kt | tommychoiG | 185,941,718 | true | {"Kotlin": 99363, "HTML": 52678, "Batchfile": 10188, "JavaScript": 4489, "Shell": 3986, "CSS": 1644} | package au.org.ala.cas.webflow
import au.org.ala.utils.logger
import org.apache.commons.lang3.StringUtils
import org.springframework.webflow.action.AbstractAction
import org.springframework.webflow.execution.Event
import org.springframework.webflow.execution.RequestContext
import org.apereo.cas.web.support.CookieRetri... | 0 | Kotlin | 0 | 0 | 06e0875e22ea07399ca318a0490edd344cb7d602 | 2,801 | ala-cas-5 | Apache License 2.0 |
data/ledger/src/commonMain/kotlin/LedgerComponent.kt | niallkh | 855,100,709 | false | {"Kotlin": 1849939, "Swift": 768} | package kosh.data.trezor
import kosh.libs.ledger.LedgerManager
interface LedgerComponent {
val ledgerManager: LedgerManager
}
| 0 | Kotlin | 0 | 3 | 8c4e7087fd09f5d766b17560528abe055655ae24 | 132 | kosh | MIT License |
data/ledger/src/commonMain/kotlin/LedgerComponent.kt | niallkh | 855,100,709 | false | {"Kotlin": 1849939, "Swift": 768} | package kosh.data.trezor
import kosh.libs.ledger.LedgerManager
interface LedgerComponent {
val ledgerManager: LedgerManager
}
| 0 | Kotlin | 0 | 3 | 8c4e7087fd09f5d766b17560528abe055655ae24 | 132 | kosh | MIT License |
JetReward/app/src/main/java/com/mhendrif/jetreward/JetRewardApp.kt | MHendriF | 810,660,896 | false | {"Kotlin": 166398} | package com.mhendrif.jetreward
import android.content.Context
import android.content.Intent
import androidx.compose.foundation.layout.padding
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.AccountCircle
import androidx.compose.material.icons.filled.Home
import androidx.compo... | 0 | Kotlin | 0 | 0 | e71d1ed6c44dfa528a0b59515e1a0ed4e76a5a3f | 6,230 | Android-Compose | MIT License |
src/main/kotlin/com/hiczp/picacomic/api/service/util/UtilService.kt | czp3009 | 218,967,234 | false | null | package com.hiczp.picacomic.api.service.util
import com.hiczp.caeruleum.annotation.Body
import com.hiczp.caeruleum.annotation.DefaultContentType
import com.hiczp.caeruleum.annotation.Post
import com.hiczp.picacomic.api.service.Response
import com.hiczp.picacomic.api.service.UserIdRequest
import com.hiczp.picacomic.api... | 2 | Kotlin | 4 | 27 | 3be60a142df6fc91e53b936859234a58575a4432 | 1,090 | picacomic-api | Apache License 2.0 |
composeApp/src/commonMain/kotlin/navigation/NavGraph.kt | piashcse | 509,820,279 | false | {"Kotlin": 132895, "Swift": 594, "HTML": 335, "CSS": 102} | package navigation
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import moe.tlaster.precompose.navigation.NavHost
import moe.tlaster.precompose.navigation.Navigator
import moe.tlaster.precompose.navigation.path
imp... | 0 | Kotlin | 15 | 180 | 57110a6050548159aa742bd119897ff8a0273845 | 3,297 | kmp-movie | Apache License 2.0 |
plugin/src/test/kotlin/net/bnb1/kradle/presets/PresetTests.kt | mrkuz | 400,078,467 | false | null | package net.bnb1.kradle.presets
import io.kotest.assertions.throwables.shouldThrow
import io.kotest.core.spec.IsolationMode
import io.kotest.core.spec.style.BehaviorSpec
import io.kotest.matchers.shouldBe
import net.bnb1.kradle.KradleExtensionBase
import net.bnb1.kradle.Mocks
import net.bnb1.kradle.presetRegistry
impo... | 0 | Kotlin | 0 | 1 | 1caa2a7370107c0feef6d02ced4031c152ff5cd8 | 1,690 | kradle | MIT License |
kotest-framework/kotest-framework-engine/src/jsMain/kotlin/io/kotest/engine/test/interceptors/interceptors.kt | williamokano | 425,373,362 | true | {"Kotlin": 3315314, "CSS": 352, "Java": 145} | package io.kotest.engine.test.interceptors
import io.kotest.common.platform
import io.kotest.core.concurrency.CoroutineDispatcherFactory
import io.kotest.core.config.Configuration
import kotlin.time.TimeMark
internal actual fun coroutineDispatcherFactoryInterceptor(
defaultCoroutineDispatcherFactory: CoroutineDisp... | 0 | null | 0 | 0 | 90c92df865ae1a90b3d3c48e218e7d25a46c0d70 | 692 | kotest | Apache License 2.0 |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/Blueprint.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 4,332 | icons | MIT License |
core/src/main/java/top/xuqingquan/http/log/DefaultFormatPrinter.kt | xuqingquan1995 | 196,393,794 | false | null | package top.xuqingquan.http.log
import android.text.TextUtils
import okhttp3.MediaType
import okhttp3.Request
import top.xuqingquan.utils.CharacterUtils
import top.xuqingquan.utils.Timber
/**
* ================================================
* 对 OkHttp 的请求和响应信息进行更规范和清晰的打印, 此类为框架默认实现, 以默认格式打印信息, 若觉得默认打印格式
* 并不能满足自... | 1 | null | 1 | 1 | 44f5b2597e78ba752b6e67f7c35762fe3a056c09 | 9,886 | Scaffold | MIT License |
src/main/java/net/ccbluex/liquidbounce/features/module/modules/client/HudDesigner.kt | Rmejia39 | 733,988,804 | false | {"Kotlin": 2304965, "Java": 1271227, "GLSL": 13515, "JavaScript": 8926} | /*
* FDPClient Hacked Client
* A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge by LiquidBounce.
* https://github.com/SkidderMC/FDPClient/
*/
package net.ccbluex.liquidbounce.features.module.modules.client
import net.ccbluex.liquidbounce.features.module.Module
import net.c... | 3 | Kotlin | 0 | 0 | b48c4e83c888568111a6665037db7fd3f7813ed3 | 703 | FDPClient | MIT License |
petblocks-bukkit-plugin/petblocks-bukkit-nms-119R2/src/main/java/com/github/shynixn/petblocks/bukkit/logic/business/nms/v1_19_R2/CraftPet.kt | Shynixn | 78,876,167 | false | null | @file:Suppress("KDocMissingDocumentation")
package com.github.shynixn.petblocks.bukkit.logic.business.nms.v1_19_R2
import com.github.shynixn.petblocks.api.business.proxy.EntityPetProxy
import net.minecraft.world.entity.EntityInsentient
import org.bukkit.Material
import org.bukkit.Sound
import org.bukkit.craftbukkit.v... | 22 | Kotlin | 12 | 71 | 730e19e9e70dea1dcdafa3a98f9356b9577565db | 3,705 | PetBlocks | Apache License 2.0 |
sample/src/main/kotlin/ru/fredboy/automultibind/sample/obj/IMyInterface.kt | fredboy | 800,714,064 | false | {"Kotlin": 10057} | package ru.fredboy.automultibind.sample.obj
interface IMyInterface {
fun getString(): String
}
| 0 | Kotlin | 0 | 0 | 6d46b9b3f7efb006fbab6b9dfea17fda00d9aeb7 | 100 | automultibind | MIT License |
libs/flows/session-manager-impl/src/test/kotlin/net/corda/session/manager/impl/processor/SessionCloseProcessorSendTest.kt | corda | 346,070,752 | false | null | package net.corda.session.manager.impl.processor
import net.corda.data.flow.event.MessageDirection
import net.corda.data.flow.event.SessionEvent
import net.corda.data.flow.event.session.SessionClose
import net.corda.data.flow.event.session.SessionError
import net.corda.data.flow.state.session.SessionStateType
import n... | 120 | Kotlin | 13 | 39 | b8924c442449dd6f91ca0a3d23667ba25a8c6c19 | 6,561 | corda-runtime-os | Apache License 2.0 |
tools/recipe/src/main/kotlin/top/bettercode/summer/tools/recipe/RecipeRequirement.kt | top-bettercode | 387,652,015 | false | {"Kotlin": 2939064, "Java": 24119, "JavaScript": 22541, "CSS": 22336, "HTML": 15833} | package top.bettercode.summer.tools.recipe
import top.bettercode.summer.tools.recipe.criteria.DoubleRange
import top.bettercode.summer.tools.recipe.criteria.RecipeRelation
import top.bettercode.summer.tools.recipe.indicator.RecipeMaterialIDIndicators
import top.bettercode.summer.tools.recipe.indicator.RecipeRangeIndic... | 0 | Kotlin | 0 | 1 | d07ed7250e6dcdbcce51f27f5f22602e9c222b3c | 6,789 | summer | Apache License 2.0 |
app/src/main/java/com/demo/features/viewAllOrder/interf/ColorListNewOrderOnClick.kt | DebashisINT | 614,693,263 | false | null | package com.demo.features.viewAllOrder.interf
import com.demo.app.domain.NewOrderColorEntity
import com.demo.app.domain.NewOrderProductEntity
interface ColorListNewOrderOnClick {
fun productListOnClick(color: NewOrderColorEntity)
} | 0 | Kotlin | 0 | 0 | 80c611bcf95487eb57f7c6563f955265e55832df | 237 | FSM_APP_ANDROIDX_TestingUpdate | Apache License 2.0 |
backend/src/main/kotlin/app/vatov/idserver/IConfiguration.kt | IvanVatov | 758,566,955 | false | {"Kotlin": 183173, "Dart": 124070, "C++": 19208, "HTML": 17737, "CMake": 10220, "C": 734, "JavaScript": 489} | package app.vatov.idserver
import java.util.Properties
interface IConfiguration {
/** Web Server configuration */
val WEB_PORT: Int?
val WEB_SSL_PORT: Int?
val WEB_KEYSTORE_FILE: String?
val WEB_KEY_ALIAS: String?
val WEB_KEYSTORE_PASSWORD: String?
val WEB_PRIVATE_KEY_PASSWORD: String?
... | 0 | Kotlin | 0 | 0 | 1cfd1002362cb60ce67ce35e96996ad68651639f | 953 | IdServer | MIT License |
app/src/main/java/uz/algorithmgateway/tezkorakfa/data/retrofit/models/supplier_models/Purchase.kt | JahongirmirzoDv | 507,823,972 | false | {"Kotlin": 391128} | package uz.algorithmgateway.tezkorakfa.data.retrofit.models.supplier_models
data class Purchase(
val id: Int
) | 0 | Kotlin | 0 | 1 | fb87be04ac9af6a53d7f1bde9f3dc7a039d40ea4 | 115 | TezkorAkfa | Creative Commons Zero v1.0 Universal |
libs/utils/src/main/java/me/pxq/utils/ui/decoration/MarginDecoration.kt | drkingwater | 279,571,591 | false | null | package me.pxq.utils.ui.decoration
import android.graphics.Rect
import android.view.View
import androidx.recyclerview.widget.RecyclerView
/**
* Description: 上下左右边距Decoration
* Author : pxq
* Date : 2020/7/31 8:02 PM
*/
class MarginDecoration(val left : Int= 0, val top : Int = 0, val right : Int = 0, val bottom :... | 0 | null | 4 | 15 | 0feb6ce3cbd9d396ef79d7bd4e6da60f11a13f2c | 794 | eyepetizer-kotlin | Apache License 2.0 |
src/main/kotlin/top/lanscarlos/vulpecula/bacikal/action/location/ActionLocationClone.kt | Lanscarlos | 517,897,387 | false | {"Kotlin": 654453} | package top.lanscarlos.vulpecula.bacikal.action.location
/**
* Vulpecula
* top.lanscarlos.vulpecula.bacikal.action.location
*
* @author Lanscarlos
* @since 2023-03-20 21:22
*/
object ActionLocationClone : ActionLocation.Resolver {
override val name: Array<String> = arrayOf("clone")
override fun resolve... | 1 | Kotlin | 5 | 30 | b07e79c505ebd953535b8c059144baa5482807d8 | 560 | Vulpecula | MIT License |
platform/platform-impl/src/com/intellij/openapi/actionSystem/ActionUpdaterInterceptor.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.openapi.actionSystem
import com.intellij.ide.plugins.PluginManagerCore
import com.intellij.openapi.actionSystem.impl.PresentationFactory
import com.intellij.openapi.actionSystem... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 4,380 | intellij-community | Apache License 2.0 |
extensions/coroutines-extensions/src/commonTest/kotlin/TestSubscription.kt | algolia | 55,971,521 | false | {"Kotlin": 690317} | import app.cash.turbine.test
import com.algolia.instantsearch.ExperimentalInstantSearch
import com.algolia.instantsearch.core.subscription.SubscriptionEvent
import com.algolia.instantsearch.core.subscription.SubscriptionValue
import com.algolia.instantsearch.coroutines.asFlow
import kotlin.test.Test
import kotlin.test.... | 15 | Kotlin | 30 | 156 | eaf37a61303a8b9c5688a596e8aeab29dfbba398 | 1,635 | instantsearch-android | Apache License 2.0 |
model/src/main/java/com/infinitepower/newquiz/model/multi_choice_quiz/flag_quiz/CountryQuizItem.kt | joaomanaia | 443,198,327 | false | null | package com.infinitepower.newquiz.model.multi_choice_quiz.flag_quiz
import androidx.annotation.Keep
import com.infinitepower.newquiz.model.question.QuestionDifficulty
import kotlinx.serialization.Serializable
@Keep
@Serializable
data class CountryQuizItem(
val countryCode: String,
val countryName: String,
... | 0 | Kotlin | 14 | 99 | 4741a80f1db8073c7d33499523117b446489bbf0 | 461 | newquiz | Apache License 2.0 |
src/main/kotlin/no/nav/klage/oppgave/clients/pdl/PdlFacade.kt | navikt | 297,650,936 | false | null | package no.nav.klage.search.clients.pdl
import no.nav.klage.search.clients.pdl.graphql.HentPersonMapper
import no.nav.klage.search.clients.pdl.graphql.HentPersonResponse
import no.nav.klage.search.clients.pdl.graphql.PdlClient
import no.nav.klage.search.clients.pdl.graphql.PdlPerson
import no.nav.klage.search.util.get... | 4 | null | 1 | 2 | 168c8c4b9ed5192ac6870f88b6e82a665b29a4b9 | 1,727 | kabal-api | MIT License |
core/src/river/exertion/kcop/assets/BitmapFontAssets.kt | exertionriver | 589,248,613 | false | null | package river.exertion.kcop.assets
import com.badlogic.gdx.assets.AssetManager
import com.badlogic.gdx.assets.loaders.BitmapFontLoader.BitmapFontParameter
import com.badlogic.gdx.graphics.Texture
import com.badlogic.gdx.graphics.g2d.BitmapFont
import ktx.assets.getAsset
import ktx.assets.load
enum class BitmapFontAss... | 0 | Kotlin | 0 | 0 | 9655fa9c1d16921d033a3ea610fcfa19663e7e1e | 735 | kcop | MIT License |
app/src/main/java/com/devs/imgur/ImgurActivity.kt | devendroid | 656,003,992 | false | null | package com.devs.imgur
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.devs.imgur.ui.search.SearchFragment
import dagger.hilt.android.AndroidEntryPoint
@AndroidEntryPoint
class ImgurActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
s... | 0 | Kotlin | 0 | 0 | 409d6ef7b5cbd383500944e142d63419b4fa72f2 | 615 | imgur-sample | Apache License 2.0 |
app/src/main/java/com/example/android/architecture/blueprints/beetv/widgets/CenterSmoothScroller.kt | nnphuong9718 | 346,229,636 | false | null | package com.example.android.architecture.blueprints.beetv.widgets
import android.content.Context
import androidx.recyclerview.widget.LinearSmoothScroller
class CenterSmoothScroller(context: Context): LinearSmoothScroller(context) {
override fun calculateDtToFit(viewStart: Int, viewEnd: Int, boxStart: Int, boxEnd:... | 0 | Kotlin | 0 | 0 | d29bc55898d507807ba1d33507cdc4481cb82399 | 453 | beetv | Apache License 2.0 |
app/src/main/java/app/envelop/data/BlockstackModule.kt | friedger | 220,986,077 | true | {"Kotlin": 134810} | package app.envelop.data
import android.content.Context
import android.content.res.Resources
import android.os.Handler
import android.os.HandlerThread
import android.preference.PreferenceManager
import app.envelop.R
import dagger.Module
import dagger.Provides
import io.reactivex.Scheduler
import io.reactivex.scheduler... | 0 | Kotlin | 0 | 0 | 89a2f48717d264bc26e349ed9c91ce940a53e954 | 1,681 | envelop-android | MIT License |
repos/src/main/java/com/idisfkj/awesome/repos/ReposActivity.kt | whistlexie | 508,696,690 | false | null | package com.idisfkj.awesome.repos
import com.alibaba.android.arouter.facade.annotation.Route
import com.idisfkj.awesome.basic.activity.BaseBindingActivity
import com.idisfkj.awesome.common.ARouterPaths
import com.idisfkj.awesome.repos.databinding.ReposActivityMainLayoutBinding
import com.idisfkj.awesome.repos.vm.Repos... | 0 | Kotlin | 0 | 0 | 3e239a39f9b3cbe0228a785118a4920d68f1ced9 | 778 | GithubApp | Apache License 2.0 |
repos/src/main/java/com/idisfkj/awesome/repos/ReposActivity.kt | whistlexie | 508,696,690 | false | null | package com.idisfkj.awesome.repos
import com.alibaba.android.arouter.facade.annotation.Route
import com.idisfkj.awesome.basic.activity.BaseBindingActivity
import com.idisfkj.awesome.common.ARouterPaths
import com.idisfkj.awesome.repos.databinding.ReposActivityMainLayoutBinding
import com.idisfkj.awesome.repos.vm.Repos... | 0 | Kotlin | 0 | 0 | 3e239a39f9b3cbe0228a785118a4920d68f1ced9 | 778 | GithubApp | Apache License 2.0 |
shared/src/main/java/xyz/klinker/messenger/shared/util/PermissionsUtils.kt | zacharee | 295,825,167 | false | null | /*
* Copyright (C) 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
*
* Unless required by applicable law or agreed to in wr... | 1 | null | 7 | 4 | f957421823801b617194cd68e31ba31b96e6100b | 4,789 | pulse-sms-android | Apache License 2.0 |
app/src/main/java/com/example/food09/ArticleItemDecorator.kt | KingsleyTiger | 420,619,071 | false | {"Kotlin": 33931} | package com.example.food09
import android.graphics.Rect
import android.view.View
import androidx.recyclerview.widget.RecyclerView
class ArticleItemDecorator (private val divHeight : Int) : RecyclerView.ItemDecoration() {
override fun getItemOffsets(
outRect: Rect,
view: View,
parent: Recyc... | 0 | null | 0 | 0 | 7fafc2ecd9ed39e85a76010af1b5f3049e460eac | 504 | Food09 | Apache License 2.0 |
app/src/main/java/com/junenine/composeTemplate/di/ApiInterface.kt | krissirk0906 | 535,999,045 | false | {"Kotlin": 16730} | package com.junenine.composeTemplate.di
import com.junenine.composeTemplate.data.model.MathResponse
import retrofit2.Response
import retrofit2.http.GET
import retrofit2.http.Url
interface ApiInterface {
@GET
suspend fun getMathEqual(@Url url: String): Response<MathResponse?>
} | 0 | Kotlin | 1 | 1 | 78973d3e2fe3e178e93e639732e8cc1fc7a9cc5d | 287 | ComposeMVVMTemplate | Apache License 2.0 |
webviewwrapper/src/main/java/com/iflytek/home/sdk/webview/CallBackFunction.kt | iFLYOS-OPEN | 209,758,318 | false | null | package com.iflytek.home.sdk.webview
internal interface CallBackFunction {
fun onCallBack(data: String)
}
| 1 | C | 11 | 21 | 4739e2450dcda545fb1361469a9172f82ce28c66 | 111 | ShowCore-Open | Apache License 2.0 |
numeriko-complex/src/main/kotlin/tomasvolker/numeriko/complex/implementations/arraynd/NumerikoComplexArrayND.kt | TomasVolker | 114,266,369 | false | null | package tomasvolker.numeriko.complex.implementations.arraynd
import tomasvolker.numeriko.complex.interfaces.arraynd.view.DefaultMutableComplexArrayND
import tomasvolker.numeriko.core.interfaces.array1d.integer.IntArray1D
import tomasvolker.numeriko.core.interfaces.arraynd.double.MutableDoubleArrayND
class NumerikoCom... | 8 | Kotlin | 1 | 3 | 1e9d64140ec70b692b1b64ecdcd8b63cf41f97af | 951 | numeriko | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.