path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/com/github/jomof/kane/Kane.kt | jomof | 320,425,199 | false | null | package com.github.jomof.kane
import com.github.jomof.kane.csv.CsvRowIoProvider
import com.github.jomof.kane.impl.functions.AlgebraicSummaryFunction
import com.github.jomof.kane.impl.sheet.Sheet
import com.github.jomof.kane.impl.sheet.possibleDataFormats
import com.github.jomof.kane.impl.sheet.showExcelColumnTags
impo... | 0 | Kotlin | 0 | 0 | f841b79c6f826713a3e1110498cfe38dc4968e64 | 2,354 | kane | Apache License 2.0 |
compiler/frontend/src/org/jetbrains/kotlin/psi/psiUtil/jetPsiUtil.kt | staltz | 39,123,650 | false | {"Markdown": 34, "XML": 688, "Ant Build System": 40, "Ignore List": 8, "Git Attributes": 1, "Kotlin": 18742, "Java": 4339, "Protocol Buffer": 4, "Text": 4184, "JavaScript": 63, "JAR Manifest": 3, "Roff": 30, "Roff Manpage": 10, "INI": 7, "HTML": 135, "Groovy": 20, "Maven POM": 50, "Gradle": 72, "Java Properties": 10, "... | /*
* Copyright 2010-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 1 | null | 1 | 1 | e82adc9d90e5e0b65bf9cb2fd854b542ad1ff58e | 15,772 | kotlin | Apache License 2.0 |
app/shared/encryption/public/src/commonTest/kotlin/build/wallet/encrypt/XSealedDataTests.kt | proto-at-block | 761,306,853 | false | {"C": 10424094, "Kotlin": 7156393, "Rust": 2046237, "Swift": 700307, "Python": 331492, "HCL": 271992, "Shell": 111209, "TypeScript": 102700, "C++": 64770, "Meson": 64234, "JavaScript": 36227, "Just": 28071, "Ruby": 9428, "Dockerfile": 5731, "Makefile": 3839, "Open Policy Agent": 1552, "Procfile": 80} | package build.wallet.encrypt
import io.kotest.core.spec.style.FunSpec
import io.kotest.matchers.equals.shouldBeEqual
import okio.ByteString.Companion.encodeUtf8
class XSealedDataTests : FunSpec({
test("XSealedData round trip") {
val original =
XSealedData(
header = XSealedData.Header(algorithm = "... | 0 | C | 10 | 98 | 1f9f2298919dac77e6791aa3f1dbfd67efe7f83c | 617 | bitkey | MIT License |
shared/src/commonMain/kotlin/data/repositories/MessagesRepository.kt | gleb-skobinsky | 634,563,581 | false | {"Kotlin": 136374, "Swift": 580, "HTML": 309, "Shell": 228, "Ruby": 101} | package data.repositories
import data.InitialMessages
import data.Resource
import data.User
import io.ktor.client.request.*
import io.ktor.client.statement.*
import io.ktor.http.*
import kotlinx.serialization.decodeFromString
import kotlinx.serialization.json.Json
import transport.LocalRoute
import transport.chirrioCl... | 0 | Kotlin | 0 | 8 | 116bf248513d04f3a67bf5443a0451faea487b7d | 1,002 | compose-connect | Apache License 2.0 |
features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/model/event/TimelineItemEventContentProvider.kt | vector-im | 546,522,002 | false | null | /*
* Copyright (c) 2023 New Vector Ltd
*
* 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... | 71 | Kotlin | 9 | 80 | 7918435c5470e27bf4f78109401a9f9902942700 | 2,839 | element-x-android | Apache License 2.0 |
web/src/main/kotlin/world/phantasmal/web/questEditor/asm/monaco/EditorHistory.kt | DaanVandenBosch | 189,066,992 | false | null | package world.phantasmal.web.questEditor.asm.monaco
import world.phantasmal.web.externals.monacoEditor.*
import world.phantasmal.webui.DisposableContainer
import kotlin.math.abs
class EditorHistory(private val editor: IStandaloneCodeEditor) : DisposableContainer() {
private val history = mutableListOf<IPosition>(... | 1 | Kotlin | 5 | 20 | 423c3e252b2be6de63a03108915861fced90aaa6 | 3,177 | phantasmal-world | MIT License |
misk-aws-dynamodb/src/test/kotlin/misk/aws/dynamodb/testing/DyCharacter.kt | cashapp | 113,107,217 | false | {"Kotlin": 3843790, "TypeScript": 232251, "Java": 83564, "JavaScript": 5073, "Shell": 3462, "HTML": 1536, "CSS": 58} | package misk.aws.dynamodb.testing
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBHashKey
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBRangeKey
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBTable
@DynamoDBTable(tableName = "characters")
class DyCharacter {
@DynamoDBHas... | 169 | Kotlin | 169 | 400 | 13dcba0c4e69cc2856021270c99857e7e91af27d | 476 | misk | Apache License 2.0 |
shared/src/commonMain/kotlin/network/data/PokemonFavorites.kt | ThomasBerthier | 753,705,683 | false | {"Kotlin": 28769, "Swift": 580, "Shell": 228} | package network.data
object FavoritesManager {
private val _favoritePokemons = mutableSetOf<String>()
val favoritePokemons: Set<String>
get() = _favoritePokemons
fun addToFavorites(pokemon: String) {
println(_favoritePokemons.toString())
_favoritePokemons.add(pokemon)
prin... | 0 | Kotlin | 0 | 0 | 514e92c0c3068eed03229e73e716c9ea5af270b0 | 457 | Kotlin | Apache License 2.0 |
sample/src/test/java/com/sebaslogen/resacaapp/ComposeActivityRecreationTests.kt | sebaslogen | 431,489,181 | false | null | package com.sebaslogen.resacaapp
import androidx.compose.ui.test.assert
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.assertTextEquals
import androidx.compose.ui.test.hasTextExactly
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.test.core.app.ActivityScenar... | 1 | null | 2 | 56 | 8dae73cc5c6f3ca873ce4262d39c3df558c618de | 2,715 | resaca | MIT License |
app/src/main/java/com/example/moereng/utils/text/ZHJAMixTextUtils.kt | weirdseed | 580,052,539 | false | {"C++": 4612946, "C": 478914, "Kotlin": 126957, "CMake": 2028} | package com.example.moereng.utils.text
import android.content.res.AssetManager
class ZHJAENMixTextUtils(override val symbols: List<String>,
override val cleanerName: String,
override val assetManager: AssetManager) :
BaseTextUtils(symbols, cleanerName, assetManage... | 12 | C++ | 49 | 296 | d109c5117653738ac959197a40ebf1ce0d05dcb3 | 1,365 | Vits-Android-ncnn | MIT License |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/cloudfront/CfnCachePolicyCachePolicyConfigPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 70198112} | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package io.cloudshiftdev.awscdkdsl.services.cloudfront
import io.cloudshiftdev.awscdkdsl.common.CdkDs... | 4 | Kotlin | 0 | 3 | 256ad92aebe2bcf9a4160089a02c76809dbbedba | 6,903 | awscdk-dsl-kotlin | Apache License 2.0 |
app-rater/src/main/java/com/simplaapliko/apprater/AppRater.kt | simplaapliko | 64,045,685 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "XML": 16, "Java": 2, "Kotlin": 2} | /*
* Copyright (C) 2015 Oleg Kan
*
* 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 | null | 1 | 1 | 32383a662d4f66aea6030ff3bdc386e440cc381f | 7,254 | app-rater | Apache License 2.0 |
app/src/main/java/de/p72b/burstpooltracker/main/list/ListFragment.kt | P72B | 178,820,066 | false | null | package de.p72b.burstpooltracker.main.list
import androidx.fragment.app.Fragment
import android.os.Bundle
import androidx.preference.PreferenceManager
import android.view.ViewGroup
import android.view.LayoutInflater
import android.view.View
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recycl... | 0 | Kotlin | 1 | 1 | f7f4239e503bfbe445b069790416c163d57c2d5c | 1,621 | BurstMonitor | MIT License |
app/src/main/java/com/samuelokello/kazihub/presentation/business/home/components/BusinessHomeScreenContent.kt | OkelloSam21 | 749,782,789 | false | {"Kotlin": 304286} | package com.samuelokello.kazihub.presentation.business.home.components
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androi... | 0 | Kotlin | 0 | 0 | e2c0776f721e24e2667a98066d79cf6554a5f040 | 12,919 | KaziHub | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/HouseReturn.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 | 6,368 | icons | MIT License |
spigot/src/main/java/net/isariel/gaia/spigot/greeting/GreetingManagerImpl.kt | Isariel | 125,191,777 | false | null | package net.isariel.gaia.spigot.greeting
import net.isariel.lycan.api.service.tablist.TablistService
import org.bukkit.entity.Player
import javax.inject.Inject
/**
* @author <NAME> <<EMAIL>>
*/
class GreetingManagerImpl @Inject
constructor(private val tablistService: TablistService) : GreetingManager {
overri... | 1 | Kotlin | 0 | 0 | 16fed6d331d50379439b11eb5ce6a4f75290272e | 447 | gaia | MIT License |
modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/services/async/LedgerableEventServiceAsync.kt | Modern-Treasury | 665,761,562 | false | null | // File generated from our OpenAPI spec by Stainless.
@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
package com.moderntreasury.api.services.async
import com.moderntreasury.api.core.RequestOptions
import com.moderntreasury.api.models.LedgerableEvent
import com.moderntreasu... | 1 | null | 1 | 1 | 1c14c652a250e33f8c86d5404906f6fcc833a0b6 | 983 | modern-treasury-java | MIT License |
js/js.translator/testData/incremental/invalidation/moveExternalDeclarationsBetweenFiles/lib1/JsModuleA.1.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | @file:JsModule("../js-module-a.mjs")
| 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 37 | kotlin | Apache License 2.0 |
app/src/main/java/com/example/sodv3203_carrentalapp/ui/PageSummary.kt | danielkakiuthi | 769,632,609 | false | {"Kotlin": 39406} | package com.example.sodv3203_carrentalapp.ui
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.... | 0 | Kotlin | 0 | 1 | 869e1a76471f7313a77cc5a93a6f1b42297973b8 | 2,347 | SODV3203_CarRentalApp | MIT License |
compiler/testData/diagnostics/testsWithJsStdLib/name/classAndTypealias.kt | JetBrains | 3,432,266 | false | null | // FIR_IDENTICAL
package foo
@JsName("B") class A(val x: Int)
typealias B = A | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 79 | kotlin | Apache License 2.0 |
lib/src/main/java/com/icapps/architecture/utils/caching/Cached.kt | icapps | 135,125,148 | false | {"Kotlin": 104669} | package com.icapps.architecture.utils.caching
import android.os.SystemClock
import kotlin.reflect.KProperty
/**
* @author <NAME>
* A utility class to create variables that expire (return null) after a while.
* Usage: `var cachedValue: T? by Cached(CACHE_VALIDITY_MS)`
*/
class Cached<T>(private val cacheValidity: ... | 0 | Kotlin | 0 | 3 | 3fe769cb62c791325b9fbb36e78f3851023323af | 1,171 | androidarchitecture | Apache License 2.0 |
app/src/main/java/husaynhakeem/io/unconnectifyre/data/repository/AlarmsRepository.kt | husaynhakeem | 151,892,709 | false | null | package husaynhakeem.io.unconnectifyre.data.repository
import android.arch.lifecycle.LiveData
import husaynhakeem.io.unconnectifyre.data.database.Alarm
import husaynhakeem.io.unconnectifyre.data.database.AlarmDao
import husaynhakeem.io.unconnectifyre.utilities.runOnIoThread
class AlarmsRepository(private val alarmDa... | 0 | Kotlin | 0 | 3 | 4ee13fc554b305a01d132d6e5db2fea44a633992 | 850 | Unconnectify-Re | MIT License |
lib_character_search/src/main/java/com/ezike/tobenna/starwarssearch/lib_character_search/data/repository/SearchRepositoryImpl.kt | Ezike | 294,171,829 | false | null | package com.ezike.tobenna.starwarssearch.lib_character_search.data.repository
import com.ezike.tobenna.starwarssearch.lib_character_search.data.contract.remote.SearchRemote
import com.ezike.tobenna.starwarssearch.lib_character_search.data.mapper.CharacterEntityMapper
import com.ezike.tobenna.starwarssearch.lib_charact... | 0 | Kotlin | 28 | 172 | 792caabf5a29b8bb4698c36c3257916a1cf6611d | 1,112 | StarWarsSearch-MVI | Apache License 2.0 |
app/src/main/kotlin/org/eurofurence/connavigator/util/SharingUtility.kt | eurofurence | 50,885,645 | false | null | package org.eurofurence.connavigator.util
import android.content.Intent
/**
* Created by David on 6/5/2016.
*/
class SharingUtility {
companion object {
fun share(text: String): Intent {
val shareIntent = Intent();
shareIntent.action = Intent.ACTION_SEND
shareIntent.... | 21 | null | 5 | 13 | 3da7b778cda0a9b39a5172bf48cb3cbc27604de8 | 446 | ef-app_android | MIT License |
build-logic/convention/src/main/kotlin/com/alexereh/csfbrs/BrsBuildType.kt | AlexEreh | 680,205,233 | false | {"Kotlin": 106073} | package com.alexereh.csfbrs
enum class BrsBuildType(val applicationIdSuffix: String? = null) {
DEBUG(".debug"),
RELEASE,
} | 2 | Kotlin | 0 | 2 | c1e9d62fd3eb3f52d1377cce4cb42dd7875d6fb3 | 131 | CSFBRS | MIT License |
subprojects/gradle/code-ownership/plugin/src/gradleTest/kotlin/com/avito/android/ConfigurationCacheCompatibilityTest.kt | avito-tech | 230,265,582 | false | null | package com.avito.android
import com.avito.test.gradle.TestProjectGenerator
import com.avito.test.gradle.TestResult
import com.avito.test.gradle.gradlew
import com.avito.test.gradle.module.AndroidLibModule
import com.avito.test.gradle.plugin.plugins
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.io.Tem... | 10 | null | 50 | 414 | bc94abf5cbac32ac249a653457644a83b4b715bb | 4,883 | avito-android | MIT License |
vetric-core/src/main/kotlin/xyz/xenondevs/vetric/utils/InstructionParent.kt | ByteZ1337 | 268,610,002 | false | {"Kotlin": 103904} | package xyz.xenondevs.vetric.utils
import org.objectweb.asm.tree.InsnList
import org.objectweb.asm.tree.MethodNode
import xyz.xenondevs.bytebase.jvm.ClassWrapper
import xyz.xenondevs.bytebase.jvm.JavaArchive
/**
* Class containing the parents of an instruction.
*
* - JavaArchive
* - Class
* - Method
* - InsnLis... | 6 | Kotlin | 1 | 44 | 147da0512abd613b5a7001884dbddfa27d9c1b34 | 444 | Vetric | MIT License |
app/src/main/java/com/example/bookforum/ui/databaseUi/postsUI/viewModels/PostCreationViewModel.kt | KatePril | 783,350,221 | false | {"Kotlin": 303136} | package com.example.bookforum.ui.databaseUi.postsUI.viewModels
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import com.example.bookforum.data.repositories.P... | 0 | Kotlin | 0 | 0 | bcf718e6dad2bb11cbf5052f9f11f4580e957fba | 1,612 | BookForum1 | MIT License |
application/KotlinConcepts/app/src/main/java/com/istudio/app/modules/module_demos/flows/modules/collect_as_state_with_lifecycle/CollectAsStateWithLifeCycleVm.kt | devrath | 339,281,472 | false | {"Kotlin": 478593, "Java": 3273} | package com.istudio.app.modules.module_demos.flows.modules.collect_as_state_with_lifecycle
import android.content.Context
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import dagger.hilt.android.qualifiers.ApplicationContext
import kotli... | 0 | Kotlin | 22 | 246 | b87ccbc3cba789ec81744acde724274137204283 | 1,597 | KotlinAlchemy | Apache License 2.0 |
app/src/main/java/com/notesandroid/codex/notesandroid/note/structure/blocks/ListBlock.kt | codex-team | 117,150,893 | false | null | package com.notesandroid.codex.notesandroid.note.structure.blocks
import android.content.Context
import android.graphics.Color
import android.text.Spannable
import android.text.SpannableStringBuilder
import android.util.TypedValue
import android.view.View
import android.widget.LinearLayout
import android.widget.TextVi... | 1 | Kotlin | 0 | 4 | 802f02c8826f1ded5006ad812cc33fdec21ed2b0 | 2,451 | codex.notes.android | MIT License |
app/src/main/java/com/saiferwp/lastfmalbums/data/api/request/AlbumInfoRequest.kt | eugene-ltv | 221,215,367 | false | null | package com.saiferwp.lastfmalbums.data.api.request
import com.saiferwp.lastfmalbums.data.api.Api
import com.saiferwp.lastfmalbums.data.api.response.AlbumInfoResponse
import com.saiferwp.lastfmalbums.domain.model.AlbumMbId
import kotlinx.coroutines.Deferred
import retrofit2.Response
class AlbumInfoRequest(private val ... | 0 | Kotlin | 0 | 0 | d58ea85d994b118a7f17493dc57b592745152e64 | 508 | LastFM-Albums | Apache License 2.0 |
composeApp/src/commonMain/kotlin/ru/rznnike/demokmp/data/network/interceptor/HttpErrorResponseInterceptor.kt | RznNike | 834,057,164 | false | {"Kotlin": 253206} | package ru.rznnike.demokmp.data.network.interceptor
import okhttp3.Interceptor
import okhttp3.Response
import ru.rznnike.demokmp.data.network.error.CustomServerException
import ru.rznnike.demokmp.data.utils.HttpCode
class HttpErrorResponseInterceptor : Interceptor {
override fun intercept(chain: Interceptor.Chain... | 0 | Kotlin | 0 | 0 | c63c3676f4cf4d5a27cfe327d976bde45ec11015 | 863 | DemoKMP | MIT License |
formats/protobuf/commonTest/src/kotlinx/serialization/test/CurrentPlatform.common.kt | Kotlin | 97,827,246 | false | null | /*
* Copyright 2017-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package kotlinx.serialization.test
enum class Platform {
JVM, JS, NATIVE, WASM
}
public expect val currentPlatform: Platform
public fun isJs(): Boolean = currentPlatform == Platform.JS
public fun isJvm(... | 407 | null | 621 | 5,396 | d4d066d72a9f92f06c640be5a36a22f75d0d7659 | 497 | kotlinx.serialization | Apache License 2.0 |
app/src/main/java/uz/javokhirjambulov/notes/App.kt | JavokhirJambulov | 514,119,906 | false | {"Kotlin": 90074} | package uz.javokhirjambulov.notes
import android.app.Application
import uz.javokhirjambulov.notes.database.DeletedNoteDatabase
import uz.javokhirjambulov.notes.database.NoteDatabase
class App : Application() {
override fun onCreate() {
super.onCreate()
NoteDatabase.initDatabase(context = this)
... | 0 | Kotlin | 1 | 3 | 27e79c981969cb9b3dc9285181daebbdec37a484 | 382 | Notes-App-Android | Apache License 2.0 |
src/test/kotlin/org/rust/FileTree.kt | intellij-rust | 42,619,487 | false | null | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust
import com.intellij.openapi.application.runWriteAction
import com.intellij.openapi.project.Project
import com.intellij.openapi.util.text.StringUtil.convertLineSeparators
import com.intellij.open... | 1,841 | null | 380 | 4,528 | c6657c02bb62075bf7b7ceb84d000f93dda34dc1 | 14,937 | intellij-rust | MIT License |
p8e-shared/src/main/kotlin/io/provenance/p8e/shared/util/ProtoByteColumn.kt | provenance-io | 340,506,091 | false | null | package io.provenance.p8e.shared.util
import com.google.protobuf.Message
import io.netty.buffer.ByteBufInputStream
import org.jetbrains.exposed.sql.Column
import org.jetbrains.exposed.sql.ColumnType
import org.jetbrains.exposed.sql.Table
import java.io.InputStream
import java.sql.ResultSet
fun <R : Message, T : Table... | 2 | Kotlin | 0 | 23 | f39efd898512f9bba240b8d6c5e6bba9dbd6a282 | 1,754 | p8e | Apache License 2.0 |
simplified-books-controller/src/main/java/org/nypl/simplified/books/controller/ProfileAccountCreateCustomOPDSTask.kt | ThePalaceProject | 367,082,997 | false | null | package org.nypl.simplified.books.controller
import com.io7m.jfunctional.OptionType
import com.io7m.jfunctional.Some
import io.reactivex.subjects.Subject
import one.irradia.mime.api.MIMEType
import org.joda.time.DateTime
import org.librarysimplified.http.api.LSHTTPClientType
import org.librarysimplified.http.api.LSHTT... | 109 | null | 4 | 8 | f68b6907367e2213f1dcde700ca5c91f2f515ada | 10,553 | android-core | Apache License 2.0 |
multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangasar/MangaSarGenerator.kt | tachiyomiorg | 79,658,844 | false | null | package eu.kanade.tachiyomi.multisrc.mangasar
import generator.ThemeSourceData.SingleLang
import generator.ThemeSourceGenerator
class MangaSarGenerator : ThemeSourceGenerator {
override val themePkg = "mangasar"
override val themeClass = "MangaSar"
override val baseVersionCode: Int = 7
override va... | 561 | null | 963 | 2,736 | ef58b57c6547516045c4c7ca1d6f7a1718d78f35 | 823 | tachiyomi-extensions | Apache License 2.0 |
src/object_pool/main/Run.kt | yorae39 | 464,176,357 | false | {"Kotlin": 60335} | package object_pool.main
import object_pool.api.Employee
import object_pool.api.EmployeePool
fun main() {
poolTest()
}
fun poolTest() {
val employees = createEmployeeList()
val employeePool = EmployeePool()
for (employee in employees) {
println("Acquiring employee: ${employee.name}")
... | 0 | Kotlin | 0 | 0 | 2d5a321f6e60ae91028adda860ab2d75c0b37ed1 | 941 | design-patterns-kotlin | MIT License |
app/src/main/java/top/abr/myaccount/MainActivity.kt | AndyBRoswell | 428,968,773 | false | {"Kotlin": 60548} | package top.abr.myaccount
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Environment
import android.view.Menu
import android.view.MenuItem
import android.widget.Toast
import androidx.appcompat.app.ActionBarDrawerToggle
import androidx.appcompat.app.AppCompatDelegate
import a... | 0 | Kotlin | 0 | 0 | 3e809f00a0ae58cf7ac847d87c474761ea36d3f0 | 8,945 | MyAccount | MIT License |
feature/catalog/data/src/main/java/ru/startandroid/feature/catalog/data/di/MappingModule.kt | startandroid | 859,175,838 | false | {"Kotlin": 49121} | package ru.startandroid.feature.catalog.data.di
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import ru.startandroid.core.common.data.mapping.Mapping
import ru.startandroid.core.database.catalog.folder.FolderDb
import ru.startandroid.feature.cata... | 0 | Kotlin | 0 | 0 | 43ddc4af79393fab18f6ffe46b9ffc00d1121043 | 785 | shoppinglist | MIT License |
app/src/main/java/tech/soit/quiet/repository/netease/result/PlaylistDetailResultBean.kt | boyan01 | 114,945,726 | false | null | package tech.summerly.quiet.data.netease.result
/**
* author : SUMMERLY
* e-mail : <EMAIL>
* time : 2017/8/25
* desc :
*/
data class PlaylistDetailResultBean(
val playlist: Playlist?,
val code: Int) {
data class Playlist(
val subscribed: Boolean,
val tracks: List<T... | 0 | Kotlin | 3 | 27 | 0ba7211c39bf6d144dcda8f79a0d10f4e57b2208 | 1,050 | MusicPlayer | Apache License 2.0 |
solve-problog/src/commonMain/kotlin/it/unibo/tuprolog/solve/problog/lib/knowledge/impl/BinaryDecisionDiagramExplanation.kt | tuProlog | 230,784,338 | false | null | package it.unibo.tuprolog.solve.problog.lib.knowledge.impl
import it.unibo.tuprolog.bdd.BinaryDecisionDiagram
import it.unibo.tuprolog.bdd.andThenExpansion
import it.unibo.tuprolog.bdd.any
import it.unibo.tuprolog.bdd.expansion
import it.unibo.tuprolog.bdd.map
import it.unibo.tuprolog.bdd.notThenExpansion
import it.un... | 92 | null | 14 | 93 | 3223ffc302e5da0efe2b254045fa1b6a1a122519 | 3,498 | 2p-kt | Apache License 2.0 |
wear/compose/compose-material/src/main/java/androidx/wear/compose/material/SwipeToDismissBox.kt | androidx | 256,589,781 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 28 | null | 937 | 5,108 | 89ec14e39cf771106a8719337062572717cbad31 | 22,434 | androidx | Apache License 2.0 |
app/src/main/java/com/cerminnovations/moviesboard/ui/adapter/AllSeriesAdapter.kt | mbobiosio | 324,425,383 | false | null | package com.cerminnovations.moviesboard.ui.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.paging.PagingDataAdapter
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView
import com.cerminnovations.moviesboard.databinding.ItemSeriesBinding... | 0 | Kotlin | 2 | 1 | 32754fbb6c107ee48e8a9f06d80b4187e3a55073 | 1,626 | MoviesBoard | MIT License |
app/src/main/java/com/vinicius/githubapi/data/network/UsersResponse.kt | KhomDrake | 471,202,847 | false | {"Kotlin": 122985} | package com.vinicius.githubapi.data.network
import com.google.gson.annotations.SerializedName
class UsersResponse(
@SerializedName("items")
val users: List<UserResponse>,
@SerializedName("total_count")
val totalCount: Int
)
class UserResponse(
val login: String,
val id: Int,
@SerializedNa... | 0 | Kotlin | 0 | 0 | 54ff30b6598f469be66ef2cbbfe7eff815114d5f | 439 | android-exercises | X.Net License |
skrapers/src/main/kotlin/ru/sokomishalov/skraper/provider/vk/VkSkraper.kt | edwinRNDR | 266,203,781 | true | {"Kotlin": 272787, "Shell": 41, "Batchfile": 33} | /**
* Copyright (c) 2019-present Mikhael Sokolov
*
* 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... | 0 | Kotlin | 0 | 0 | dc0c806e653fb0c346ee6f75b7d1281917bf30bf | 10,793 | skraper | Apache License 2.0 |
library-res/src/main/kotlin/com/wsdydeni/library_view/loadingdialog/LoadingDialog.kt | wsdydeni | 294,493,450 | false | null | package com.wsdydeni.library_view.loadingdialog
import android.app.Dialog
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.widget.TextView
import androidx.constraintlayout.widget.ConstraintLayout
import com.wsdydeni.library_res.R
/*
* Create by wsdydeni on 202... | 1 | null | 1 | 5 | e908db6bcf7cefa43500cc334c07c0bcc655819a | 2,038 | WanAndroid | MIT License |
app/src/main/java/com/commov/ui/note/NoteAdapter.kt | palexandrefernandes | 241,940,599 | false | null | package com.commov.ui.note
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.os.bundleOf
import androidx.navigation.findNavController
import androidx.recyclerview.widget.RecyclerView
import com.commov.data.note.DatabaseHelper
import com.commov.data.note.Note... | 0 | Kotlin | 0 | 0 | b60b0f82a7148b161740d4439da811fa60063973 | 1,320 | Android-Maps-Note-App | MIT License |
hubdle-gradle-plugin/main/kotlin/com/javiersc/hubdle/extensions/shared/features/gradle/HubdleGradleVersionCatalogFeatureExtension.kt | JavierSegoviaCordoba | 348,863,451 | false | null | package com.javiersc.hubdle.extensions.shared.features.gradle
import com.javiersc.hubdle.extensions.HubdleDslMarker
import com.javiersc.hubdle.extensions._internal.ApplicablePlugin.Scope
import com.javiersc.hubdle.extensions._internal.Configurable.Priority
import com.javiersc.hubdle.extensions._internal.PluginId
impor... | 14 | Kotlin | 8 | 16 | ca21470528b8f62b91c2f16e14d8ef62b39bf3b9 | 2,695 | hubdle | Apache License 2.0 |
app/src/main/java/com/jonathanlee/popcorn/data/compose/MockData.kt | jonathanlee06 | 403,033,324 | false | null | package com.jonathanlee.popcorn.data.compose
import com.jonathanlee.popcorn.data.model.network.SearchModel
val searchModel = SearchModel(
id = 603692,
originalLanguage = "en",
originalTitle = "<NAME>: Chapter 4",
overview = "With the price on his head ever increasing, <NAME> uncovers a path to defeati... | 0 | Kotlin | 0 | 4 | 78c7a80150a475ff3e5715abc75ee34b613347bc | 940 | Popcorn | Apache License 2.0 |
examples/nft/collection/getASingleCollection/main.kt | GWT-M3O-TEST | 485,009,715 | false | null |
package examples.nft.collection
import com.m3o.m3okotlin.M3O
import com.m3o.m3okotlin.services.nft
suspend fun main() {
M3O.initialize(System.getenv("M3O_API_TOKEN"))
val req = NftCollectionRequest(Slug = "doodles-official",)
try {
val response = NftServ.collection(req)
println(response)
} ca... | 1 | Kotlin | 1 | 0 | 54158b584ba47bd7323a484804dcd78c55ef7f69 | 364 | m3o-kotlin | Apache License 2.0 |
ktfx-thirdparty/controlsfx/src/ktfx/controlsfx/control/HiddenSidesPane.kt | alilosoft | 182,138,993 | true | {"Kotlin": 364065, "HTML": 1385, "Java": 682} | @file:Suppress("PackageDirectoryMismatch", "NOTHING_TO_INLINE", "ClassName")
package ktfx.controlsfx
import javafx.scene.Node
import ktfx.layouts.LayoutDslMarker
import ktfx.layouts.NodeManager
import org.controlsfx.control.HiddenSidesPane
/**
* Invoking layout DSL will only set content.
* To set other sides, expl... | 0 | Kotlin | 0 | 0 | f499c9d7abddb270f1946c0e9ffb9072e45cd625 | 936 | ktfx | Apache License 2.0 |
home/src/main/java/com/kingsland/home/domain/repository/IProjectRepository.kt | data-programmer | 599,861,493 | false | null | package com.kingsland.home.domain.repository
import com.kingsland.home.domain.model.ProjectDomain
interface IProjectRepository {
fun getAllProjects(): List<ProjectDomain>
} | 0 | Kotlin | 0 | 0 | bcd53b9784689e5b60d893248ccc2910b17391e0 | 178 | ProjectTrakAndroid | MIT License |
app/src/main/java/com/stocksexchange/android/ui/dashboard/DashboardPresenter.kt | libertaria-project | 183,030,087 | true | {"Kotlin": 2210140} | package com.stocksexchange.android.ui.dashboard
import com.stocksexchange.android.Constants
import com.stocksexchange.android.R
import com.stocksexchange.android.api.model.User
import com.stocksexchange.android.events.SettingsEvent
import com.stocksexchange.android.events.UserEvent
import com.stocksexchange.android.ui... | 0 | Kotlin | 0 | 0 | 35a7f9a61f52f68ab3267da24da3c1d77d84e9c3 | 4,048 | Android-app | MIT License |
src/main/java/framework/physics/collisions/Collision.kt | HansDampf37 | 238,090,617 | false | {"Kotlin": 178799} | package framework.physics.collisions
import framework.interfaces.Mass
import framework.interfaces.Status
import kotlin.math.pow
/**
* Use [Collision.occur] to calculate the new velocities after the collision and the amount of energy transmitted.
*/
class Collision {
companion object{
/**
* Simu... | 0 | Kotlin | 0 | 0 | 4bd52d21d759f96b65dbc81bf15d344feeed8325 | 2,252 | SimulationFramework | MIT License |
pillarbox-core-business/src/test/java/ch/srgssr/pillarbox/core/business/integrationlayer/data/MediaUrnTest.kt | SRGSSR | 519,157,987 | false | {"Kotlin": 1520146, "Shell": 549} | /*
* Copyright (c) SRG SSR. All rights reserved.
* License information is available from the LICENSE file.
*/
package ch.srgssr.pillarbox.core.business.integrationlayer.data
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertFalse
class MediaUrnTest {
@Test
fun `is valid media... | 15 | Kotlin | 1 | 13 | 2e0ed86b0c3120984ff75298cf4c47d38cd79115 | 1,366 | pillarbox-android | MIT License |
src/main/kotlin/com/robotutor/loggingstarter/serializer/DefaultSerializer.kt | IOT-echo-system | 768,195,181 | false | {"Kotlin": 94913, "Shell": 609, "HTML": 428, "Dockerfile": 130} | package com.robotutor.iot.logging.serializer
object DefaultSerializer {
fun serialize(obj: Any?): String {
return ObjectMapperCache.objectMapper.toJson(obj)
}
fun <T> deserialize(str: String, type: Class<T>): T {
return ObjectMapperCache.objectMapper.fromJson(str, type)
}
}
| 0 | Kotlin | 0 | 0 | bf28073703d3e937b97a5f15d86c7baceb8b5d42 | 309 | logging-starter | MIT License |
library/src/main/java/co/zsmb/materialdrawerkt/draweritems/expandable/ExpandableBadgeDrawerItemKt.kt | developersancho | 148,280,254 | false | null | @file:Suppress("RedundantVisibilityModifier")
package co.zsmb.materialdrawerkt.draweritems.expandable
import co.zsmb.materialdrawerkt.builders.Builder
import co.zsmb.materialdrawerkt.createItem
import co.zsmb.materialdrawerkt.draweritems.badgeable.BadgeableKt
import co.zsmb.materialdrawerkt.draweritems.base.BaseDescr... | 0 | Kotlin | 0 | 0 | 8ec51fa99dfb799e67bc138b87ab73e190091fc9 | 2,139 | MaterialDrawerKt-master | Apache License 2.0 |
torkit/src/main/kotlin/io/horizontalsystems/tor/core/TorConstants.kt | horizontalsystems | 251,509,228 | false | null | package com.lyfebloc.core
interface TorConstants {
companion object {
const val TAG = "TorBinary"
const val DIRECTORY_TOR_DATA = "data"
const val TOR_CONTROL_PORT_FILE = "control.txt"
const val LIB_NAME = "tor"
const val LIB_SO_NAME = "libtor.so"
const val SHELL_CM... | 1 | null | 3 | 8 | 13750c4b8dff092df3ff9ab602eea747f5c6b007 | 1,206 | tor-kit-android | MIT License |
app/src/main/java/io/github/fate_grand_automata/ui/support_img_namer/SupportImageNamer.kt | ArthurKun21 | 743,056,546 | false | {"Kotlin": 1454408} | package io.github.fate_grand_automata.ui.support_img_namer
import android.content.Context
import android.content.DialogInterface
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout... | 22 | Kotlin | 0 | 1 | 049fdfc02c85c0cb2cd4d9507a02e4faa4df7137 | 6,468 | FGA-Preview | MIT License |
server/src/main/kotlin/net/eiradir/server/entity/components/MapViewComponent.kt | Eiradir | 635,460,745 | false | null | package net.eiradir.server.entity.components
import com.badlogic.ashley.core.Component
import net.eiradir.server.map.view.MapView
data class MapViewComponent(val mapView: MapView) : Component | 12 | Kotlin | 0 | 0 | 7ae18b87a37ebd9f20766796b9fa94e2dd6dafc6 | 193 | eiradir-server | MIT License |
neo4k-api/src/test/kotlin/me/roybailey/neo4k/embedded/EmbeddedStandaloneTest.kt | roybailey | 189,282,455 | false | null | package me.roybailey.neo4k.embedded
import mu.KotlinLogging
import org.neo4j.graphdb.GraphDatabaseService
import org.neo4j.graphdb.Node
import org.neo4j.graphdb.factory.GraphDatabaseFactory
import org.neo4j.kernel.configuration.BoltConnector
import java.io.File
import java.net.InetAddress
/**
* Direct driver sample... | 10 | Kotlin | 0 | 0 | 1749bafb650a95fd2668dc05cea8ecb1aefbda35 | 4,306 | neo4k | Apache License 2.0 |
client/android/src/main/kotlin/client/android/ui/Watchlist.kt | 4face-studi0 | 280,630,732 | false | null | package client.android.ui
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.MaterialTheme
import androidx.compose.material.OutlinedButton
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import android... | 24 | Kotlin | 1 | 3 | 572514b24063815fba93809a9169a470f89fd445 | 3,011 | CineScout | Apache License 2.0 |
BaseLibrary/src/main/java/com/kotlin/base/widgets/BannerImageLoader.kt | starktonys | 140,391,283 | false | null | package com.kotlin.base.widgets
import android.content.Context
import android.widget.ImageView
import com.kotlin.base.utils.GlideUtils
import com.youth.banner.loader.ImageLoader
/*
Banner图片加载器
*/
class BannerImageLoader : ImageLoader() {
override fun displayImage(context: Context, path: Any, imageView: Image... | 1 | null | 1 | 8 | 7cb3f869a27c9f8a6ba44b72a7d328a1383ec4aa | 405 | KotlinMall-App | Apache License 2.0 |
app/src/main/java/com/fireblocks/sdkdemo/bl/core/server/ResponseInterceptor.kt | fireblocks | 690,587,303 | false | {"Kotlin": 686152, "HTML": 788} | package com.fireblocks.sdkdemo.bl.core.server
import com.fireblocks.sdkdemo.bl.useraction.ResponseReceived
import com.google.gson.Gson
import okhttp3.Interceptor
import okhttp3.Response
import okio.Buffer
import java.nio.charset.Charset
import java.nio.charset.StandardCharsets
/**
* Created by Fireblocks Ltd. on 18/... | 1 | Kotlin | 3 | 1 | 71d5b09868bfb97766fd2bafbd657bcf66c1a5f3 | 2,425 | android-ncw-demo | MIT License |
compiler/fir/raw-fir/light-tree2fir/tests/org/jetbrains/kotlin/fir/lightTree/AbstractLightTree2FirConverterTestCase.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.fir.lightTree
import org.jetbrains.kotlin.fir.FirRenderer
import org.jetbrains.kotlin.fir.builder.AbstractRawFirBuilderTestCas... | 34 | null | 5074 | 40,992 | 57fe6721e3afb154571eb36812fd8ef7ec9d2026 | 1,170 | kotlin | Apache License 2.0 |
tsvm_core/src/net/torvald/tsvm/UnsafePtr.kt | curioustorvald | 258,372,649 | false | {"JavaScript": 1125433, "Kotlin": 617197, "BASIC": 44303, "HTML": 29967, "Java": 19462, "Shell": 4521, "C": 1011, "Stata": 948, "Batchfile": 846, "Lua": 744} | package net.torvald
import sun.misc.Unsafe
import java.io.PrintStream
class DanglingPointerException(msg: String) : NullPointerException(msg)
class AddressOverflowException(msg: String) : IndexOutOfBoundsException(msg)
/**
* Further read:
* - http://www.docjar.com/docs/api/sun/misc/Unsafe.html
*
* Created by min... | 1 | JavaScript | 0 | 2 | c520c7214196c53b89c0d2a1260cb48651c6970d | 6,156 | tsvm | MIT License |
app/src/main/java/com/ead/project/dreamer/app/data/util/system/PreferencesExtensions.kt | darkryh | 490,353,600 | false | {"Kotlin": 766116, "Java": 2316} | package com.ead.project.dreamer.app.data.util.system
import com.ead.project.dreamer.app.data.preference.Preferences
suspend fun <T>Preferences.setGeneric(key : String,value : T) {
when(value) {
is Boolean -> set(key,value)
is String -> set(key,value)
is Int -> set(key,value)
is Fl... | 0 | Kotlin | 1 | 2 | 34fe195fe9fec58c7a2b71b8646c1e8c5988a281 | 385 | Dreamer | MIT License |
app/src/main/java/com/example/android/barebone/ui/extensions/LiveEvent.kt | hossain-khan | 178,583,979 | false | null | package com.example.android.ytc.ui.extensions
/**
* Copyright 2019 <NAME>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless require... | 6 | null | 2 | 7 | 9857e4a6f90450a92e817249a8f8e9ca526b829c | 2,784 | android-barebone | Apache License 2.0 |
shared/src/commonMain/kotlin/com/example/common/models/common/ContentLight.kt | DeNyWho | 584,003,645 | false | {"Kotlin": 511314} | package com.example.common.models.common
import com.example.common.models.animeResponse.common.AnimeGenres
import com.example.common.models.animeResponse.common.AnimeStudios
import kotlinx.serialization.Serializable
@Serializable
data class ContentLight(
val url: String = "",
var title: String = "",
var i... | 0 | Kotlin | 0 | 0 | 11fa00d9b54d0e460f6f2e76e301f7c9e17087d5 | 668 | AniFoxKMP | Apache License 2.0 |
src/test/kotlin/canon/parser/xml/strategy/SelectionStrategyTest.kt | leftshiftone | 205,671,409 | false | null | package canon.parser.xml.strategy
import canon.extension.toNode
import canon.parser.xml.CanonXmlParser
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Assertions.assertNotNull
import org.junit.jupiter.api.Test
class SelectionStrategyT... | 0 | Kotlin | 1 | 0 | 5babc577eeca5655cf92e64dd2693c591c72eb50 | 1,071 | canon | MIT License |
game-api/src/main/kotlin/org/alter/api/ext/InventoryExt.kt | AlterRSPS | 421,831,790 | false | null | package org.alter.api.ext
import org.alter.game.model.attr.INTERACTING_ITEM_SLOT
import org.alter.game.model.attr.OTHER_ITEM_SLOT_ATTR
import org.alter.game.model.container.ItemContainer
import org.alter.game.model.entity.Player
import org.alter.game.model.item.Item
import org.alter.api.Skills
/**
* As the "inventor... | 8 | null | 33 | 23 | 8d3b3cb38ab6a0e4bed7976cb2dbfcf75bfac9b3 | 11,056 | Alter | Apache License 2.0 |
src/commonMain/kotlin/io/klibs/math/big/MutableBigIntImpl.kt | k-libs | 598,863,246 | false | null | package io.klibs.math.big
private const val KNUTH_POW2_THRESH_LEN = 6
private const val KNUTH_POW2_THRESH_ZEROS = 3
internal class MutableBigIntImpl {
private var value: IntArray
private var intLen: Int
private var offset = 0
constructor() {
this.value = IntArray(1)
this.intLen = 0
}
constructor... | 0 | Kotlin | 0 | 0 | 129b2aefb2b528b2605c4a6f05fd96f2ebde2225 | 32,143 | k-big-numbers | MIT License |
api/src/main/kotlin/de/hanno/hpengine/graphics/constants/PrimitiveType.kt | hannomalie | 330,376,962 | false | {"Kotlin": 905817, "GLSL": 694474, "JavaScript": 3160, "Shell": 137, "Batchfile": 65} | package de.hanno.hpengine.graphics.constants
enum class PrimitiveType {
Lines,
Triangles,
Patches,
}
| 0 | Kotlin | 0 | 0 | cfa74a4aff78ae913c1369a6e9852a309bec8186 | 114 | hpengine | MIT License |
app/src/main/kotlin/com/akinci/chatter/data/rest/user/Id.kt | AttilaAKINCI | 353,730,900 | false | {"Kotlin": 193030} | package com.akinci.chatter.data.rest.user
import kotlinx.serialization.Serializable
@Serializable
data class Id(
val name: String,
val value: String?,
)
| 0 | Kotlin | 0 | 0 | 22fcbbc4b5ec2f98094ea89d52d2e9baa05ca7e6 | 163 | ChatterAI | Apache License 2.0 |
funcify-feature-eng-materializer/src/main/kotlin/funcify/feature/materializer/output/SingleRequestJsonFieldValueDeserializer.kt | anticipasean | 458,910,592 | false | {"Kotlin": 2751524, "HTML": 1817} | package funcify.feature.materializer.output
import arrow.core.Option
import com.fasterxml.jackson.databind.JsonNode
import funcify.feature.materializer.session.field.SingleRequestFieldMaterializationSession
/**
* @author smccarron
* @created 2024-04-23
*/
interface SingleRequestJsonFieldValueDeserializer :
Jso... | 0 | Kotlin | 0 | 0 | 284b941de10a5b85b9ba1b5236a1d57289e10492 | 557 | funcify-feature-eng | Apache License 2.0 |
app/presentation/src/main/java/com/wiensmit/rmapp/presentation/ui/overview/OverviewFragment.kt | wiensmit | 672,520,737 | false | null | package com.wiensmit.rmapp.presentation.ui.overview
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.ui.platform.ComposeView
import androidx.compose.ui.platform.ViewCom... | 0 | Kotlin | 0 | 0 | 1b3d022dd9d49ac07345e271ad5da82638909045 | 1,657 | rm-app | Apache License 2.0 |
app/src/main/java/com/push/nycschools/model/apiservice/SchoolService.kt | kokoAfantchao | 258,697,326 | false | null | package com.push.nycschools.model.apiservice
import com.push.nycschools.model.School
import retrofit2.Call
import retrofit2.http.GET
interface SchoolService {
companion object {
val API_BASE_URL ="https://data.cityofnewyork.us/resource/"
}
@GET("s3k6-pzi2.json")
fun getListSchool() : Call<L... | 1 | null | 1 | 1 | 5d2031bb8a875876c0d5a6eb0549b3ddd032a91b | 336 | 20200425-kokoNestor-Afantchao-NYCSchools | MIT License |
src/test/kotlin/version/VersionServiceTest.kt | exigow | 202,529,822 | false | null | package version
import BaseTest
import version.data.Version
class VersionServiceTest : BaseTest() {
fun `test v3_2 is default`() {
assertEquals(VersionService.current().versionId, "3.2")
}
fun `test v3_2`() {
val version = VersionService.all().find { it.versionId == "3.2" }!!
as... | 17 | Kotlin | 7 | 98 | 44c934ed885fa733d5766cff359bc3335daab8a0 | 2,047 | intellij-gdscript | MIT License |
app/src/main/java/net/pilseong/todocompose/ui/screen/task/TaskAppBar.kt | pilseong | 640,470,050 | false | null | package net.pilseong.todocompose.ui.screen.task
import android.util.Log
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowBack
import androidx.compose.material.icons.filled.Check
import androidx.compose.material.icons.filled.Close
import androidx.compose.material.icons.fil... | 0 | Kotlin | 0 | 0 | 24bf15bd78691ab8dde62bd1d50c92f8c2376714 | 7,557 | todocompose | Apache License 2.0 |
server/claroforma-backend/src/test/kotlin/com/claroaprende/repository/UserEsRepositoryIT.kt | ysahnpark | 91,903,074 | false | {"JavaScript": 916942, "CSS": 602318, "TypeScript": 37386, "Vue": 18243, "Kotlin": 11104, "HTML": 145, "Batchfile": 63} | package com.claroaprende.repository
import com.claroaprende.model.UserAccount
import org.assertj.core.api.Assertions
import org.junit.Test
import org.junit.runner.RunWith
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import org.springframework... | 0 | JavaScript | 0 | 0 | a7c19b45d51d665326cc0e30fbf0715f95244f87 | 949 | claroforma | MIT License |
idea/tests/testData/resolve/references/qualifiedAccess/callableReference3.kt | JetBrains | 278,369,660 | false | null | // IGNORE_FE10
package foo.bar.baz
class AA {
companion object {
fun foo() {}
}
}
fun test() {
A<caret>A::foo // FE1.0 won't resolve this
}
// REF: companion object of (foo.bar.baz).AA
| 284 | Kotlin | 5748 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 208 | intellij-kotlin | Apache License 2.0 |
day/src/main/java/com/ruzhan/day/DayHomeFragment.kt | wy676579037 | 209,918,227 | true | {"Kotlin": 92278, "Java": 4398} | package com.ruzhan.day
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProviders
import com.lion.font.FontHelper
import com.ruzhan.common.TitleH... | 0 | null | 0 | 0 | d615d3e28da4a3dfc62937b0392ae73f167dc4f2 | 2,007 | awaker | Apache License 2.0 |
core/src/ru/deadsoftware/cavedroid/misc/utils/MeasureUnitsUtils.kt | fredboy | 196,049,035 | false | null | package ru.deadsoftware.cavedroid.misc.utils
import com.badlogic.gdx.math.MathUtils
/**
* Converts this value in BLOCKS into pixels
*/
val Float.px get() = this * 16f
/**
* Converts this value in BLOCKS into pixels
*/
val Int.px get() = this * 16f
/**
* Converts this value in PIXELS into blocks
*/
val Float.b... | 0 | null | 1 | 6 | 1e285247085ba04351feb486a0be6aa577f43093 | 357 | cavedroid | MIT License |
msal/src/main/java/com/microsoft/identity/nativeauth/statemachine/states/SignUpStates.kt | AzureAD | 64,339,521 | false | {"Java": 2084397, "Kotlin": 783134} | // Copyright (c) Microsoft Corporation.
// All rights reserved.
//
// This code is licensed under the MIT License.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, in... | 69 | Java | 124 | 214 | d2deec34dfde6ea445309af3621f5642ea184881 | 31,905 | microsoft-authentication-library-for-android | MIT License |
plugins/toolkit/jetbrains-rider/src-241+/software/aws/toolkits/jetbrains/services/lambda/dotnet/DotNetSamProjectGeneratorRoot.kt | aws | 91,485,909 | false | null | // Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package software.aws.toolkits.jetbrains.services.lambda.dotnet
import com.intellij.openapi.ui.DialogPanel
import com.intellij.openapi.ui.ValidationInfo
import com.intellij.ui.dsl.builder.Align
import com.... | 519 | null | 220 | 757 | a81caf64a293b59056cef3f8a6f1c977be46937e | 3,825 | aws-toolkit-jetbrains | Apache License 2.0 |
domain/src/main/java/com/hanyeop/domain/usecase/album/UpdateAlbumUseCase.kt | HanYeop | 486,591,905 | false | null | package com.hanyeop.domain.usecase.album
import com.hanyeop.domain.repository.AlbumRepository
import javax.inject.Inject
class UpdateAlbumUseCase @Inject constructor(private val albumRepository: AlbumRepository) {
fun execute(id: Int, title: String, artist: String, genre: String, rating: Float, summary: String, c... | 0 | Kotlin | 0 | 5 | e40550f67be100f61607eb201397ff1559fc6cc1 | 427 | Memory-of-Music-android | Apache License 2.0 |
compiler/testData/diagnostics/tests/controlFlowAnalysis/smartCastInCatch.fir.kt | JetBrains | 3,432,266 | false | null | // SKIP_TXT
// DUMP_CFG
import kotlin.reflect.KClass
fun exc(flag: Boolean) {
if (flag) throw RuntimeException()
}
fun Any.notNull() = toString()
fun test(flag: Boolean) {
var x: Any?
x = ""
try {
x = null
exc(flag)
x = 1
exc(!flag)
x = ""
} catch (e: Thro... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,526 | kotlin | Apache License 2.0 |
app/src/main/java/com/replica/replicaisland/ChannelSystem.kt | jimandreas | 290,957,495 | false | null | /*
* Copyright (C) 2010 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... | 0 | Kotlin | 1 | 3 | 4a303601d526374cb419ee664eb14ed9868175ac | 3,267 | ReplicaIslandKotlin | Apache License 2.0 |
app/src/main/java/org/vmaier/coderswag/controller/ProductsActivity.kt | vlmaier | 202,518,175 | false | null | package org.vmaier.coderswag.controller
import android.content.res.Configuration
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.recyclerview.widget.GridLayoutManager
import org.vmaier.coderswag.R
import org.vmaier.coderswag.adapters.ProductAdapter
import org.vmaier.coderswag.d... | 0 | Kotlin | 0 | 0 | 19d3d9ac99bf10871c00a10398f1de949567976f | 1,484 | coder-swag | The Unlicense |
src/test/kotlin/ru/mail/im/motli/processor/PaletteProcessorTest.kt | mail-ru-im | 176,909,552 | false | null | package ru.mail.im.motli.processor
import org.junit.Assert.*
import org.junit.Before
import org.junit.Rule
import org.junit.Test
import org.junit.rules.TemporaryFolder
import ru.mail.im.motli.config.AppConfig
import ru.mail.im.motli.config.AppConfigDto
import ru.mail.im.motli.resource.ThemeSet
import java.nio.charset.... | 0 | Kotlin | 1 | 5 | f1ee6fafbb8d84ec8bff2a9de0adac69df4b4fc6 | 1,943 | motli | MIT License |
PreferencesManager/src/main/kotlin/fr/simon/marquis/preferencesmanager/model/BackupContainer.kt | LossyDragon | 158,134,761 | true | {"Kotlin": 200691} | /*
* Copyright (C) 2013 <NAME> (http://www.simon-marquis.fr)
*
* 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... | 0 | Kotlin | 1 | 4 | c86fcce7fd501edad48ea5bb9c72648d06d345ea | 1,316 | Android-PreferencesManager | Apache License 2.0 |
app/src/main/java/com/example/android/databinding/basicsample/ui/SolutionActivity.kt | josh-vega | 175,691,113 | false | null | /*
* Copyright (C) 2018 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... | 0 | Kotlin | 0 | 0 | 671193a5daefcfddaad21676fe1bd19765af69b8 | 1,561 | android-databinding-master | Apache License 2.0 |
src/test/kotlin/no/nb/bikube/newspaper/controller/TitleControllerTest.kt | NationalLibraryOfNorway | 694,135,748 | false | null | package no.nb.bikube.newspaper.controller
import com.ninjasquad.springmockk.MockkBean
import io.mockk.Called
import io.mockk.every
import io.mockk.verify
import no.nb.bikube.core.exception.BadRequestBodyException
import no.nb.bikube.core.exception.RecordAlreadyExistsException
import no.nb.bikube.core.model.Language
im... | 2 | null | 0 | 3 | 1b5c81e1450c8467922df7065bdedf06b6106699 | 8,586 | bikube | Apache License 2.0 |
apollo-compiler/src/test/graphql/com/example/arguments_simple/TestQuery.kt | apollostack | 69,469,299 | false | null | // AUTO-GENERATED FILE. DO NOT MODIFY.
//
// This class was automatically generated by Apollo GraphQL plugin from the GraphQL queries it found.
// It should not be modified by hand.
//
package com.example.arguments_simple
import com.apollographql.apollo.api.Input
import com.apollographql.apollo.api.Operation
import co... | 5 | null | 531 | 2,897 | f16ef0f4020af7a07c200f0fdcf1dac977d63637 | 9,383 | apollo-android | MIT License |
app/src/main/java/com/example/multilivedata/ui/news/NewsViewModel.kt | mhdatie | 128,706,323 | false | {"Kotlin": 32588} | package com.example.multilivedata.ui.news
import android.arch.lifecycle.LiveData
import android.arch.lifecycle.MutableLiveData
import android.arch.lifecycle.Transformations
import com.example.multilivedata.network.common.Response
import com.example.multilivedata.network.common.ResponseStatus
import com.example.multili... | 0 | Kotlin | 0 | 0 | 15b2cdee8da8226723ec2f5076ef0ce13e625ee1 | 2,435 | WeatherNewsMvvm | MIT License |
cams-module-publis/src/main/java/com/linwei/cams/module/publis/ui/publis/view/PublisView.kt | WeiShuaiDev | 390,640,743 | false | null | package com.linwei.cams.module.publis.ui.publis.view
import com.linwei.cams.component.mvvm.mvvm.view.MvvmView
import com.linwei.cams.module.publis.ui.publis.viewmodel.PublisViewModel
interface PublisView: MvvmView<PublisViewModel> {
} | 0 | Kotlin | 0 | 3 | 37ffb7142ce1141c7b09ef69664c535150d25aaa | 236 | CamsModular | Apache License 2.0 |
ee-design_ui_des_asm/src/main/kotlin/ee/design/ui/des/AsmDesExt.kt | eugeis | 80,671,314 | false | null | package ee.design.ui.des
import ee.common.ext.toCamelCase
import ee.lang.GenerationContext
import ee.lang.nL
import ee.lang.tab
import org.objectweb.asm.tree.ClassNode
import org.objectweb.asm.tree.FieldNode
fun ClassNode.toDesEnum(context: GenerationContext, indent: String = ""): String {
val newIndent = "$inden... | 0 | Kotlin | 0 | 0 | b51b29d3ca4c48592b29f700c4ea6510a0298929 | 1,206 | ee | Apache License 2.0 |
urlparser/src/commonMain/kotlin/com/nevermindsoftware/urlparser/tld/TLDSource.kt | jamesphilipps | 274,070,170 | false | {"Kotlin": 34879, "Shell": 600} | package com.nevermindsoftware.urlparser.tld
import com.nevermindsoftware.urlparser.SuffixRule
/**
* Interface specifying a provider of TLD SuffixRules. It should return a list of SuffixRules. Caching is down to the
* implementation and is not required, but the TLDSource will be queried on each usage of the parse me... | 0 | Kotlin | 5 | 3 | 53a0ca261849e971a8ccbf288bdeb05ec0cbf58b | 551 | urlparser | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.