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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/com/willymax/exercisealarm/walking/WalkingActivity.kt | willymax | 732,780,770 | false | {"Kotlin": 73669, "Java": 3529} | package com.willymax.exercisealarm.walking
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.willymax.exercisealarm.R
import com.willymax.exercisealarm.databinding.ActivityWalkingBinding
class WalkingActivity : AppCompatActivity() {
private lateinit var binding: ActivityWalkingBi... | 0 | Kotlin | 0 | 0 | 7433513ca94747c96c865b4cda9bd2da8d6422f4 | 1,284 | exercise-alarm-app | Apache License 2.0 |
data/src/main/java/com/rebbit/data/model/LiveListing.kt | jrobinson3k1 | 134,347,957 | false | {"Kotlin": 77892} | package com.rebbit.data.model
import android.arch.paging.PagedList
import io.reactivex.Observable
data class LiveListing<T>(
val pagedList: Observable<PagedList<T>>,
val networkState: Observable<NetworkState>,
val refreshState: Observable<NetworkState>,
val refresh: () -> Unit,
... | 0 | Kotlin | 0 | 0 | e9bd1d69e83a5a07bb6194f4792e046fa7e51a2c | 343 | ribbit | Apache License 2.0 |
compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryCatchAfterWhileTrue.kt | JakeWharton | 99,388,807 | false | null | // KJS_WITH_FULL_RUNTIME
// WITH_RUNTIME
fun box(): String {
val a = arrayListOf<String>()
while (true) {
if (a.size == 0) {
break
}
}
for (i in 1..2) {
a.add(try { foo() } catch (e: Throwable) { "OK" })
}
return a[0]
}
fun foo(): String = throw RuntimeEx... | 181 | null | 8 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 330 | kotlin | Apache License 2.0 |
src/main/kotlin/com/nickperov/labs/nb/payment_router/PaymentsRouter.kt | nickperov | 666,688,390 | false | null | package com.nickperov.labs.nb.payment_router
import io.quarkus.rest.client.reactive.QuarkusRestClientBuilder
import io.reactivex.rxjava3.core.Flowable
import io.reactivex.rxjava3.kotlin.toFlowable
import io.reactivex.rxjava3.schedulers.Schedulers
import jakarta.enterprise.context.ApplicationScoped
import jakarta.injec... | 0 | Kotlin | 0 | 0 | dac1b3c1dc804330e325e345c4ef9817cd5452da | 9,759 | nb-payment-router | MIT License |
compose/compose-runtime/src/commonMain/kotlin/androidx/compose/runtime/SuspendingEffects.kt | Sathawale27 | 284,157,908 | false | null | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 3 | null | 0 | 1 | 549e3e3003cd308939ff31799cf1250e86d3e63e | 10,722 | androidx | Apache License 2.0 |
src/me/anno/objects/Video.kt | won21kr | 351,713,352 | true | {"Kotlin": 1983578, "Java": 301507, "C": 75596, "GLSL": 9436} | package me.anno.objects
import me.anno.audio.AudioManager
import me.anno.cache.data.VideoData.Companion.framesPerContainer
import me.anno.cache.instances.ImageCache
import me.anno.cache.instances.MeshCache
import me.anno.cache.instances.VideoCache.getVideoFrame
import me.anno.cache.instances.VideoCache.getVideoFrameWi... | 0 | null | 0 | 0 | b85295f59ddfa9fc613a384d439fd1b30b06a5a4 | 33,876 | RemsStudio | Apache License 2.0 |
backend/src/main/java/dev/sergiobelda/todometer/backend/routing/TaskListsRouting.kt | serbelga | 301,817,067 | false | null | /*
* Copyright 2021 Sergio Belda
*
* 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... | 16 | Kotlin | 7 | 93 | bd39269ff685f0ac1c487becfa106fb7ece2cf1a | 2,206 | ToDometer_Kotlin_Multiplatform | Apache License 2.0 |
libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/KotlinUsages.kt | tnorbye | 189,964,139 | false | null | /*
* Copyright 2010-2018 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.gradle.plugin.mpp
import org.gradle.api.attributes.*
import org.gradle.api.attri... | 1 | null | 2 | 2 | dca23f871cc22acee9258c3d58b40d71e3693858 | 4,751 | kotlin | Apache License 2.0 |
app/src/main/java/com/example/project2wishlist/WishListAdapter.kt | Lia1726 | 538,810,167 | false | {"Kotlin": 5276} | package com.example.project2wishlist
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
class WishListAdapter (private val items: List<WishList>) : RecyclerView.Adapter<WishListAdapter.ViewHolder>() ... | 1 | Kotlin | 0 | 0 | b664e1fc948ee9db03c84a39f6d2335fdc32fd29 | 2,039 | Project2Wishlist | Apache License 2.0 |
app/src/main/java/com/example/project2wishlist/WishListAdapter.kt | Lia1726 | 538,810,167 | false | {"Kotlin": 5276} | package com.example.project2wishlist
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
class WishListAdapter (private val items: List<WishList>) : RecyclerView.Adapter<WishListAdapter.ViewHolder>() ... | 1 | Kotlin | 0 | 0 | b664e1fc948ee9db03c84a39f6d2335fdc32fd29 | 2,039 | Project2Wishlist | Apache License 2.0 |
api/src/main/kotlin/org/dxworks/voyager/api/instruments/config/ResultsDir.kt | dxworks | 347,078,577 | false | {"Kotlin": 38857, "Dockerfile": 667, "Shell": 49, "Batchfile": 35} | package org.dxworks.voyager.api.instruments.config
class ResultsDir(val dir: String, val files: List<String> = emptyList())
| 1 | Kotlin | 1 | 1 | cd005c5dd3d3ef9d02cc5f92fe597aca11316607 | 125 | voyager | Apache License 2.0 |
app/src/main/java/io/github/binishmanandhar23/differentscreensize/MainActivity.kt | binishmanandhar23 | 507,541,156 | false | {"Kotlin": 60485} | package io.github.binishmanandhar23.differentscreensize
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.viewModels
import androidx.compose.animation.core.animateDpAsState
import androidx.compose.foundation.background
import androi... | 0 | Kotlin | 0 | 0 | 1e2282e161750e11592cdbf5ca92367c71a45c5a | 13,458 | DifferentScreenSize | Apache License 2.0 |
compiler/testData/codegen/boxInline/callableReference/bound/map.kt | JakeWharton | 99,388,807 | false | null | // WITH_STDLIB
// KJS_WITH_FULL_RUNTIME
// FILE: 1.kt
package test
inline fun stub(f: () -> String): String = f()
// FILE: 2.kt
import test.*
class A(val z: String) {
fun map(s: String) = z + s
}
fun box(): String {
val a = A("O")
val s = arrayOf("K")
return s.map(a::map).first()
}
| 181 | null | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 306 | kotlin | Apache License 2.0 |
app/src/main/java/it/sephiroth/android/app/appunti/utils/SDKUtils.kt | sephiroth74 | 167,976,451 | false | null | package it.sephiroth.android.app.appunti.utils
import android.os.Build
/**
* Appunti
*
* @author <NAME> on 31.10.21 - 14:42
*/
object SDKUtils {
fun atLeastVersion(version: Int): Boolean {
return Build.VERSION.SDK_INT >= version
}
fun isLowerThan(version: Int): Boolean {
return Build... | 0 | Kotlin | 3 | 9 | 3e7929be96504dd68533042b8688d0be41096b53 | 355 | Appunti | The Unlicense |
kotlin/com/lukas/ascmdrenamer/Main.kt | laim2003 | 155,633,092 | false | null | package com.lukas.ascmdrenamer
import java.io.File
import java.io.FileNotFoundException
fun main(args: Array<String>){
println("Type in the directory of the files you want to format:")
val filePath:String? = readLine()
println("Do you really want to use '${filePath}' ?(y/n)")
if(readLine() == "y"){
... | 0 | Kotlin | 0 | 0 | fd9ad867c7cb297b34cbf57b0096ccc2834013e4 | 1,058 | ASResourceRenamer | MIT License |
src/main/kotlin/net/thesilkminer/krmutt/kts/lang/building/RuleNamedProviderRedirects.kt | TheSilkMiner | 736,957,637 | false | {"Kotlin": 71668, "Java": 1748} | @file:JvmName("RuleNamedProviderRedirects")
package net.thesilkminer.krmutt.kts.lang.building
import net.thesilkminer.krmutt.kts.grammar.GrammarRule
import net.thesilkminer.krmutt.kts.lang.NamedObjectProvider
import net.thesilkminer.krmutt.kts.lang.RuleVariable
// === ANONYMOUS ===
context(RuleBuildingScope)
val Nam... | 0 | Kotlin | 0 | 1 | 684edcdff226c2d9f6e175e87ad8d9ddecd6d294 | 2,816 | krmutt | MIT License |
sample/src/main/java/co/netguru/android/chatandroll/app/App.kt | netguru | 98,288,528 | false | null | package co.netguru.android.chatandroll.app
import android.annotation.SuppressLint
import android.app.Application
import android.app.NotificationChannel
import android.app.NotificationManager
import android.content.Context
import android.os.Build
import android.support.v4.app.NotificationManagerCompat
import android.su... | 4 | null | 2 | 300 | e5790fec71db013aac00dac2faf15d87fc46b80a | 2,885 | videochatguru-android | Apache License 2.0 |
save-demo-cpg/src/main/kotlin/com/saveourtool/save/demo/cpg/repository/CpgRepository.kt | saveourtool | 300,279,336 | false | {"Kotlin": 3428381, "SCSS": 86430, "JavaScript": 9061, "HTML": 8852, "Shell": 2770, "Smarty": 2608, "Dockerfile": 1366} | package com.saveourtool.save.demo.cpg.repository
import com.saveourtool.save.demo.cpg.CpgGraph
import com.saveourtool.save.demo.cpg.config.ConfigProperties
import com.saveourtool.save.demo.cpg.entity.DemoQuery
import com.saveourtool.save.demo.cpg.entity.TreeSitterNode
import com.saveourtool.save.demo.cpg.utils.*
impor... | 201 | Kotlin | 3 | 38 | 8f62e13ee6618a36ad2df7ff15ecfb8019ec19d5 | 6,637 | save-cloud | MIT License |
tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/send/games/SendGame.kt | InsanusMokrassar | 163,152,024 | false | null | package dev.inmo.tgbotapi.extensions.api.send.games
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.send.games.SendGame
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
import dev.inmo.tgbotapi.types.buttons.KeyboardMarkup
import dev.in... | 18 | null | 29 | 358 | 482c375327b7087699a4cb8bb06cb09869f07630 | 3,806 | ktgbotapi | Apache License 2.0 |
glide-image/src/androidTest/java/com/danchoo/glideimage/GlideImageTest.kt | danchoo21 | 447,993,828 | false | null | package com.danchoo.glideimage
import android.annotation.SuppressLint
import android.graphics.drawable.Drawable
import android.graphics.drawable.ShapeDrawable
import androidx.activity.ComponentActivity
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.lazy.LazyColumn
import androidx.com... | 0 | Kotlin | 0 | 1 | 9bacbf01f40e76571d368a4ec9cc4d8e464e6d64 | 15,075 | compose-glide-image | Apache License 2.0 |
app/src/main/java/com/santansarah/scan/di/DatabaseModule.kt | santansarah | 588,753,371 | false | null | package com.santansarah.scan.di
import android.app.Application
import androidx.room.Room
import com.santansarah.scan.domain.interfaces.IBleRepository
import com.santansarah.scan.local.BleDao
import com.santansarah.scan.local.BleDatabase
import com.santansarah.scan.local.BleRepository
import org.koin.android.ext.koin.a... | 0 | Kotlin | 1 | 16 | 9e76dab6a244e1eded2480e5e19a812612698326 | 851 | ble-scanner | MIT License |
app/src/test/kotlin/com/jamjaws/adventofcode/xxiii/day/Day08Test.kt | JamJaws | 725,792,497 | false | {"Kotlin": 22525} | package com.jamjaws.adventofcode.xxiii.day
import com.jamjaws.adventofcode.xxiii.readInput
import io.kotest.matchers.shouldBe
import org.junit.jupiter.api.Test
class Day08Test {
@Test
fun part1() {
Day08().part1(readInput("example/Day08")) shouldBe 2
}
@Test
fun `part1 2`() {
Day0... | 0 | Kotlin | 0 | 0 | 06358a3cafcc2a1b4eedec6e17e48690c7d2f5c4 | 482 | advent-of-code-2023 | MIT License |
src/main/kotlin/no/nav/helse/flex/Application.kt | navikt | 274,088,133 | false | null | package no.nav.helse.flex
import com.fasterxml.jackson.databind.DeserializationFeature
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.databind.SerializationFeature
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule
import com.fasterxml.jackson.module.kotlin.registerKotlinModul... | 4 | Kotlin | 0 | 0 | ec7531506d650b4b203137540bd5a6d89b344172 | 1,049 | flex-reisetilskudd-backend | MIT License |
src/main/kotlin/at/michael1011/backpacks/listeners/Join.kt | michael1011 | 54,059,214 | false | null | package at.michael1011.backpacks.listeners
import at.michael1011.backpacks.database.Database
import org.bukkit.Bukkit
import org.bukkit.entity.Player
import org.bukkit.event.EventHandler
import org.bukkit.event.EventPriority
import org.bukkit.event.Listener
import org.bukkit.event.player.PlayerJoinEvent
class Join(pr... | 1 | Kotlin | 1 | 5 | 7de61938a9800071945b42ec98005ed2c3073c48 | 1,517 | BackPacks | MIT License |
leitnerbox/view/learn/LearnFragment.kt | morync | 198,999,267 | false | null | package com.kecsot.leitnerbox.view.learn
import android.net.Uri
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.lifecycle.Observer
import androidx.viewpager.widget.ViewPager
import com.jakewharton.rxbinding3.view.clicks
import com.kecso... | 0 | Kotlin | 0 | 0 | 7a05fb782936ec6d4832add38c6026b43762c373 | 8,647 | Leitner-Box-Flashcard | MIT License |
app/src/main/java/net/imoya/android/util/sample/FileBrowserActivity.kt | IceImo-P | 391,858,492 | false | null | /*
* Copyright (C) 2022 IceImo-P
*
* 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... | 0 | Kotlin | 0 | 0 | 8d9a756034924bd3b64f309f591b844f6138ac69 | 8,531 | ImoyaAndroidUtil | Apache License 2.0 |
kotlin/src/main/kotlin/org/jetbrains/qodana/cloudclient/v1/QDCloudUserApiV1.kt | JetBrains | 813,524,055 | false | {"Kotlin": 72054} | package org.jetbrains.qodana.cloudclient.v1
import org.jetbrains.qodana.cloudclient.QDCloudResponse
import java.time.Instant
/**
* Add API of a new minor version by declaring new `Vxxx` (like [V3], [V5]) extending the ***V1Versions.Vxxx
*/
interface QDCloudUserApiV1 : QDCloudUserApiV1Versions, QDCloudApiV1Base {
... | 0 | Kotlin | 1 | 2 | 516455ff9db78e1e762ef56d0d7f8b8a15f82a2e | 3,019 | qodana-cloud-client | Apache License 2.0 |
libs/developers-tx-result-adapter/src/test/kotlin/com/linecorp/link/developers/txresult/v1/raw/adapter/event/DomainTxEventsAdapterV1CollectionIssueTest.kt | line | 590,736,839 | false | null | /*
* Copyright 2023 LINE Corporation
*
* LINE Corporation licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | 1 | Kotlin | 8 | 9 | 503caf8a9932b0ee507263883be7721ed68e60bb | 6,015 | line-blockchain-developers-sdk-kt | Apache License 2.0 |
coroutines/src/commonMain/kotlin/dev/inmo/micro_utils/coroutines/FlowCollectorInvoking.kt | InsanusMokrassar | 295,712,640 | false | null | package dev.inmo.micro_utils.coroutines
import kotlinx.coroutines.flow.FlowCollector
suspend inline operator fun <T> FlowCollector<T>.invoke(value: T) = emit(value)
| 3 | Kotlin | 0 | 8 | ba16bad0293b087ab77e540109c946bebaabf6dd | 167 | MicroUtils | Apache License 2.0 |
app/src/main/java/com/binarybricks/coiny/components/ChipGroupModule.kt | gbsendhil | 167,099,572 | false | null | package com.binarybricks.coiny.components
import android.content.Context
import android.support.design.chip.Chip
import android.support.v4.content.ContextCompat
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.binarybricks.coiny.R
import com.binarybricks.coiny.networ... | 0 | null | 0 | 1 | 376cf3d16ac217569c61ab372e03f353a6a0d911 | 2,144 | Coiny | Apache License 2.0 |
src/commonMain/kotlin/TorrentProviderCache.kt | DrewCarlson | 324,843,687 | false | null | package drewcarlson.torrentsearch
interface TorrentProviderCache {
fun saveToken(provider: TorrentProvider, token: String)
fun loadToken(provider: TorrentProvider): String?
fun saveResults(
provider: TorrentProvider,
query: String,
category: Category,
results: List<Torren... | 0 | Kotlin | 0 | 2 | a252dd508ad0de6e915469974420935141b61eb4 | 482 | TorrentSearch-Kotlin | MIT License |
door-runtime/src/commonMain/kotlin/com/ustadmobile/door/RepositoryConfig.kt | UstadMobile | 344,538,858 | false | {"Kotlin": 1028056, "JavaScript": 1100, "HTML": 430, "Shell": 89} | package com.ustadmobile.door
import com.ustadmobile.door.log.DoorLogger
import io.ktor.client.*
import kotlinx.serialization.json.Json
/**
* Contains the configuration for a repository. It is created via a platform-specific builder that may have additional
* dependencies on specific platforms.
*/
expect class Repo... | 5 | Kotlin | 1 | 162 | 9912ce18848c6f3d4c5e78e06aeb78542e2670a5 | 811 | door | Apache License 2.0 |
ontrack-extension-notifications/src/main/java/net/nemerosa/ontrack/extension/notifications/listener/AsyncEventListeningQueueListener.kt | nemerosa | 19,351,480 | false | null | package net.nemerosa.ontrack.extension.notifications.listener
import io.micrometer.core.instrument.MeterRegistry
import net.nemerosa.ontrack.extension.notifications.metrics.NotificationsMetrics
import net.nemerosa.ontrack.extension.notifications.metrics.incrementForEvent
import net.nemerosa.ontrack.json.parse
import n... | 57 | null | 27 | 97 | 7c71a3047401e088ba0c6d43aa3a96422024857f | 3,503 | ontrack | MIT License |
vivy_encryptor/src/main/java/com/vivy/localEncryption/SymmetricEncryptedSharedPreferences.kt | VivyTeam | 166,982,417 | false | null | package com.vivy.localEncryption
import androidx.security.crypto.EncryptedSharedPreferences
import com.google.gson.Gson
import io.reactivex.Completable
import io.reactivex.Maybe
import io.reactivex.Observable
import io.reactivex.Single
import com.vivy.localEncryption.EncryptedSharedPreferences as VivyEncryptedSharedPr... | 1 | Kotlin | 0 | 3 | 923dde9bf16623e3481dc25b37fff7031337d0fc | 3,109 | krypt-android | MIT License |
data/src/main/java/com/elpablo/data/remote/dto/FlashSaleDto.kt | FunnyRider34Rus | 611,846,879 | false | null | package com.elpablo.data.remote.dto
data class FlashSaleDto(
val flash_sale: List<FlashSale>
) | 0 | Kotlin | 0 | 0 | df7ea9886736cfc99d8367e4b208b119aa94fb55 | 99 | PradanaMarketPlace | Apache License 2.0 |
plugins/src/main/java/org/runestar/client/plugins/smoothanimations/GraphicsObject.kt | Tachyon97 | 207,388,611 | true | {"Markdown": 31, "Maven POM": 21, "Text": 2, "Kotlin": 587, "Java": 37, "XML": 2, "YAML": 1} | package org.runestar.client.plugins.smoothanimations
import org.runestar.client.game.raw.access.XGraphicsObject
import org.runestar.client.game.raw.access.XModel
import org.runestar.client.game.raw.base.MethodEvent
internal fun graphicsObjectGetModelEnter(event: MethodEvent<XGraphicsObject, XModel>) {
val obj = e... | 0 | Kotlin | 0 | 0 | 284bf51de538cfbfd6738b61b89e1e9c894d312f | 546 | client | MIT License |
src/main/kotlin/org/strykeforce/thirdcoast/Koin.kt | strykeforce | 121,652,525 | false | null | package org.strykeforce.thirdcoast
import com.ctre.phoenix.CANifier
import com.ctre.phoenix.motorcontrol.FeedbackDevice
import com.ctre.phoenix.motorcontrol.NeutralMode
import com.ctre.phoenix.motorcontrol.can.TalonFX
import com.ctre.phoenix.motorcontrol.can.TalonSRX
import com.ctre.phoenix.motorcontrol.can.TalonSRXCo... | 0 | Kotlin | 1 | 3 | f92085b4023c663903962496e09fb8d75de9e68d | 3,374 | thirdcoast-tct | MIT License |
feature-crowdloan-impl/src/main/java/jp/co/soramitsu/feature_crowdloan_impl/presentation/contribute/select/parcel/ParachainMetadataParcelModel.kt | soramitsu | 278,060,397 | false | null | package jp.co.soramitsu.feature_crowdloan_impl.presentation.contribute.select.parcel
import android.os.Parcelable
import jp.co.soramitsu.feature_crowdloan_api.data.repository.ParachainMetadata
import jp.co.soramitsu.feature_crowdloan_api.data.repository.ParachainMetadataFlow
import kotlinx.android.parcel.Parcelize
imp... | 4 | Kotlin | 14 | 55 | d555e9cf4bd5f0abf8091781c237b6af9e1da850 | 2,472 | fearless-Android | Apache License 2.0 |
app/src/main/java/com/example/Projecte3MushTool/tiempo/model/forecast/City.kt | PolRibera | 806,168,108 | false | {"Kotlin": 218554} | package com.example.Projecte3MushTool.tiempo.model.forecast
import com.example.Projecte3MushTool.tiempo.model.weather.Coord
import com.google.gson.annotations.SerializedName
data class City (
@SerializedName("id") var id: Int? = null,
@SerializedName("name") var name: String? = null,
@SerializedName("coor... | 0 | Kotlin | 0 | 1 | 164ac94165c158357da24eb35dac2b849385068a | 647 | MushTool | Apache License 2.0 |
app/src/androidTest/java/com/deliveryapp/ui/deliverieslist/DeliveriesListFragmentTest.kt | shadygoneinsane | 204,889,731 | false | null | package com.deliveryapp.ui.deliverieslist
import android.content.Intent
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.ViewActions
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMatchers.*
import androidx.test.ext.junit.runne... | 1 | Kotlin | 0 | 1 | 3998fcbfa7bdfe52823b9fab1a821f3cb0e92b5a | 4,744 | DeliveryAppAndroid | MIT License |
src/main/kotlin/com/korektur/scheduler/handler/error/LoggingErrorHandler.kt | korektur | 134,327,082 | false | {"Kotlin": 29594, "Java": 804} | package com.korektur.scheduler.handler.error
import com.korektur.scheduler.handler.ErrorHandler
import org.slf4j.LoggerFactory
class LoggingErrorHandler: ErrorHandler{
companion object {
private val LOG = LoggerFactory.getLogger(LoggingErrorHandler::class.java)
}
override fun handle(context: Map... | 0 | Kotlin | 0 | 0 | def5b3adce0df5b939615c19eff00b61c2ab192a | 471 | distributed-scheduler | Apache License 2.0 |
src/main/kotlin/org/jetbrains/kotlinx/dataframe/api/pivot.kt | Kotlin | 259,256,617 | false | null | package org.jetbrains.kotlinx.dataframe.api
import org.jetbrains.kotlinx.dataframe.Column
import org.jetbrains.kotlinx.dataframe.ColumnsSelector
import org.jetbrains.kotlinx.dataframe.DataFrame
import org.jetbrains.kotlinx.dataframe.Selector
import org.jetbrains.kotlinx.dataframe.aggregation.Aggregatable
import org.je... | 10 | Kotlin | 4 | 94 | 41a099b4d9b563d0518e1550e764211f43e34702 | 7,635 | dataframe | Apache License 2.0 |
app/src/main/java/com/battlelancer/seriesguide/shows/overview/OverviewActivityImpl.kt | UweTrottmann | 1,990,682 | false | null | package com.battlelancer.seriesguide.shows.overview
import android.app.SearchManager
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import android.view.View
import android.widget.ImageView
import androidx.fragment.app.Fragment... | 50 | null | 403 | 1,922 | 21e2f9d28f91a6b674433fb618ff4ad3e73b8d3c | 12,291 | SeriesGuide | Apache License 2.0 |
src/main/kotlin/model/graphs/UndirectedWeightedGraph.kt | spbu-coding-2023 | 792,678,794 | false | {"Kotlin": 100475} | package model.graphs
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import model.functionality.BridgeFinder
import model.functionality.MinSpanTreeFinder
import model.functionality.ShortestPathFinder
@Serializable
open class UndirectedWeightedGraph<T, NUMBER_TYPE : Number> : Graph<Pa... | 1 | Kotlin | 0 | 0 | 4f186f40ec34dae704cf7b949097c4795215c3e7 | 3,028 | graphs-graphs-4 | MIT License |
common4j/src/main/com/microsoft/identity/common/java/nativeauth/providers/responses/signin/AuthenticationMethodApiResult.kt | AzureAD | 109,141,516 | false | null | package com.microsoft.identity.common.java.nativeauth.providers.responses.signin
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
import com.microsoft.identity.common.java.nativeauth.util.ILoggable
data class AuthenticationMethodApiResult(
@Expose @SerializedName("id") v... | 77 | null | 35 | 41 | 944252ace420a3ebfc0fc0d126ca47084e084a8f | 856 | microsoft-authentication-library-common-for-android | MIT License |
app/src/main/java/com/mhss/app/localweather/presentation/weather/components/DailyWeatherItem.kt | mhss1 | 477,810,880 | false | {"Kotlin": 70712} | package com.mhss.app.localweather.presentation.weather.components
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.Image
import androidx.compose.material.Icon
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
im... | 1 | Kotlin | 2 | 8 | 424f58895453cb4c35f4a91ad2a90e80fb88d533 | 2,317 | LocalWeather | Apache License 2.0 |
app/src/main/java/org/p2p/wallet/history/ui/history/adapter/HistoryAdapter.kt | p2p-org | 306,035,988 | false | null | package org.p2p.wallet.history.ui.history.adapter
import android.annotation.SuppressLint
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView
import org.p2p.wallet.common.date.isSameAs
import org.p2p.wallet.common.date.isSameDayAs
import org.p2p.wa... | 16 | Kotlin | 6 | 14 | 9cf97a5edd8be594ed301c88788d71ea20483571 | 6,469 | p2p-wallet-android | MIT License |
service/src/main/kotlin/com/openlivery/service/product/domain/model/ProductModel.kt | heliohfs | 366,046,617 | false | null | package com.openlivery.service.product.domain.model
import com.openlivery.service.product.domain.entity.Product
import java.math.BigDecimal
import java.time.LocalDateTime
class ProductModel private constructor(
val id: Long,
val active: Boolean,
val createdDateTime: LocalDateTime,
val ... | 0 | Kotlin | 0 | 0 | bf403d7fa6a216f064475dd63b0f870d932c44e4 | 1,249 | openlivery | Apache License 2.0 |
src/main/kotlin/coverosR3z/timerecording/exceptions/InvalidTimePeriodException.kt | 7ep | 269,398,431 | false | null | package coverosR3z.timerecording.exceptions
/**
* Represents when the time entries exceed the boundaries of
* the time period allowed. For example, if the time
* period is 2 weeks and we calculate that the earliest
* and latest time entry are more than 2 weeks apart.
*/
class InvalidTimePeriodException : Excepti... | 0 | null | 5 | 9 | 0c132ef0d0646d2137f39d4555b50010907b57df | 324 | r3z | MIT License |
platform/vcs-impl/src/com/intellij/util/ui/cloneDialog/VcsCloneDialogExtensionListItem.kt | ingokegel | 284,920,751 | false | null | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.util.ui.cloneDialog
import com.intellij.openapi.vcs.ui.cloneDialog.VcsCloneDialogExtensionStatusLine
import com.intellij.ui.SimpleColoredComponent
import com... | 1 | null | 1 | 2 | dc846ecb926c9d9589c1ed8a40fdb20e47874db9 | 2,506 | intellij-community | Apache License 2.0 |
Android/App_Liquid/App/src/main/java/com/zktony/android/data/entities/internal/OrificePlate.kt | OriginalLight | 556,213,614 | false | {"Kotlin": 6123849, "C#": 376657, "Vue": 164353, "Rust": 101266, "C++": 63250, "TypeScript": 62359, "Python": 28781, "CMake": 18271, "C": 16214, "Less": 2885, "Dockerfile": 1898, "HTML": 648, "JavaScript": 450} | package com.zktony.android.data.entities.internal
import androidx.annotation.Keep
import androidx.compose.ui.graphics.Color
/**
* @author 刘贺贺
* @date 2023/8/1 15:38
*/
@Keep
data class OrificePlate(
val column: Int = 8,
val delay: Double = 0.0,
val previous: Double = 0.0,
val row: Int = 12,
val... | 0 | Kotlin | 0 | 1 | bcf0671b9e4ad199e579764f29683c1c575369d2 | 2,901 | ZkTony | Apache License 2.0 |
src/main/kotlin/org/yinwang/pysonar/ast/Continue.kt | lice-lang | 110,064,855 | false | {"Gradle": 2, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Java Properties": 1, "Java": 57, "Python": 24, "CSS": 1, "JavaScript": 2, "Kotlin": 55, "JSON": 10} | package org.yinwang.pysonar.ast
class Continue(file: String, start: Int, end: Int) : Node(NodeType.CONTINUE, file, start, end) {
override fun toString() = "(continue)"
}
| 1 | null | 1 | 1 | 1f8fd89c13d96919391887fbb5399ed6aba51f72 | 172 | pysonar2 | BSD Zero Clause License |
bungeecord/src/main/kotlin/me/daarkii/bungee/bungee/impl/command/BungeeCommand.kt | Daarkiii | 508,426,604 | false | null | /*
* Copyright 2022 original authors & contributors
*
* 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 applicab... | 1 | Kotlin | 0 | 0 | 8505c3ab48a7b5d5b33aed22b89d744a6dcf0a5d | 2,462 | Serverutilities | Apache License 2.0 |
app/src/main/java/com/example/shoprocks/model/Product.kt | CassioMenabueLima | 179,893,029 | false | null | package com.example.shoprocks.model
class Product(val title: String, val price: String, val image: String) | 0 | Kotlin | 0 | 1 | 543521861133de415e46ea3e46c1e964501f8033 | 107 | ShopRocks | MIT License |
app/src/main/java/com/example/shoprocks/model/Product.kt | CassioMenabueLima | 179,893,029 | false | null | package com.example.shoprocks.model
class Product(val title: String, val price: String, val image: String) | 0 | Kotlin | 0 | 1 | 543521861133de415e46ea3e46c1e964501f8033 | 107 | ShopRocks | MIT License |
AdventOfCodeDay23/src/nativeMain/kotlin/Cups.kt | bdlepla | 451,523,596 | false | {"Kotlin": 153773} | class Cups(seed:String, numCups:Int = seed.length) {
// idx are 0 based
// values are 1 based
private val cups = List(numCups) {Cup(it+1)}
private val orderedCupIdx = seed.map{it.asInt()-1} + (seed.length+1..numCups).map{it-1}
private val firstCup = cups[orderedCupIdx.first()]
private var curren... | 0 | Kotlin | 0 | 0 | 043d0cfe3971c83921a489ded3bd45048f02ce83 | 3,061 | AdventOfCode2020 | The Unlicense |
python/ide/impl/src/com/jetbrains/python/PyToolWindowLayoutProvider.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.jetbrains.python
import com.intellij.openapi.diagnostic.thisLogger
import com.intellij.toolWindow.DefaultToolWindowLayoutBuilder
import com.intellij.toolWindow.DefaultToolWindowLayoutExt... | 284 | null | 5162 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 799 | intellij-community | Apache License 2.0 |
libs/permissions/permission-datamodel/src/main/kotlin/net/corda/permissions/model/RestPermissionOperation.kt | corda | 346,070,752 | false | null | package net.corda.permissions.model
enum class RestPermissionOperation {
USER_INSERT,
USER_UPDATE,
USER_DELETE,
ROLE_INSERT,
ROLE_UPDATE,
ROLE_DELETE,
GROUP_INSERT,
GROUP_UPDATE,
GROUP_DELETE,
PERMISSION_INSERT,
PERMISSION_UPDATE,
PERMISSION_DELETE,
PROPERTY_INSERT,
... | 82 | null | 7 | 69 | d478e119ab288af663910f9a2df42a7a7b9f5bce | 608 | corda-runtime-os | Apache License 2.0 |
arc-agent-client/src/main/kotlin/graphql/DataTypes.kt | lmos-ai | 790,083,697 | false | {"JavaScript": 2554965, "Kotlin": 281930, "Java": 1707, "HTML": 1445} | // SPDX-FileCopyrightText: 2024 Deutsche Telekom AG
//
// SPDX-License-Identifier: Apache-2.0
package ai.ancf.lmos.arc.agent.client.graphql
import ai.ancf.lmos.arc.api.AgentRequest
import ai.ancf.lmos.arc.api.AnonymizationEntity
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
*... | 8 | JavaScript | 3 | 56 | 680603e0ef25432e59b36431a77bea5c2b1b8fda | 1,840 | arc | Apache License 2.0 |
kotlin-node/src/jsMain/generated/node/crypto/ECDHKeyFormat.kt | JetBrains | 93,250,841 | false | {"Kotlin": 12159121, "JavaScript": 330528} | // Generated by Karakum - do not modify it manually!
package node.crypto
@seskar.js.JsVirtual
sealed external interface ECDHKeyFormat {
companion object {
@seskar.js.JsValue("compressed")
val compressed: ECDHKeyFormat
@seskar.js.JsValue("uncompressed")
val uncompressed: ECDHKeyF... | 40 | Kotlin | 165 | 1,319 | a8a1947d73e3ed26426f1e27b641bff427dfd6a0 | 406 | kotlin-wrappers | Apache License 2.0 |
compose-sample/src/main/kotlin/me/aartikov/sesamecomposesample/services/message/MessageService.kt | aartikov | 292,022,280 | false | null | package me.aartikov.sesamecomposesample.services.message
import me.aartikov.sesame.localizedstring.LocalizedString
interface MessageService {
fun showMessage(message: LocalizedString)
} | 0 | Kotlin | 7 | 101 | 037fa0ea890efa2e4dc3b69af16a49e410cc0a0d | 192 | Sesame | MIT License |
kotlinx-crypto-hmac/src/commonMain/kotlin/HMac.kt | andreypfau | 634,197,687 | false | null | package io.github.andreypfau.kotlinx.crypto.hmac
import io.github.andreypfau.kotlinx.crypto.digest.Digest
import io.github.andreypfau.kotlinx.crypto.mac.Mac
import kotlin.experimental.xor
/**
* HMAC implementation based on RFC2104
*
* H(K XOR opad, H(K XOR ipad, text))
*/
public class HMac private constructor(
... | 0 | Kotlin | 0 | 0 | 432f266c52e4c6681700fa837c6c249ac18c2a2d | 2,869 | kotlinx-crypto | MIT License |
idea/src/org/jetbrains/kotlin/idea/parameterInfo/KotlinInlayParameterHintsProvider.kt | gigliovale | 89,726,097 | false | null | /*
* Copyright 2010-2017 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 | 6 | ce145c015d6461c840050934f2200dbc11cb3d92 | 6,857 | kotlin | Apache License 2.0 |
idea/src/org/jetbrains/kotlin/idea/parameterInfo/KotlinInlayParameterHintsProvider.kt | gigliovale | 89,726,097 | false | null | /*
* Copyright 2010-2017 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 | 6 | ce145c015d6461c840050934f2200dbc11cb3d92 | 6,857 | kotlin | Apache License 2.0 |
PegasusDesignSystemAndroid/src/main/java/br/com/cogna/pegasusdesignsystemandroid/brands/sofia/tokens/SofiaLineHeightTokens.kt | pitagorasampli | 650,752,226 | false | null |
// Do not edit directly
// Generated on Wed, 21 Jun 2023 01:17:19 GMT
package br.com.cogna.pegasusdesignsystemandroid.brands.sofia.tokens;
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.*
object SofiaLineHeightTokens {
val line_height_lg = 23.sp
val line_height_md = 22.sp
val lin... | 0 | Kotlin | 0 | 0 | a3adbcbd11e41c031cad08b43da1abdd193ac70d | 400 | pegasus-design-system-android | MIT License |
dataclass/src/main/kotlin/utils/CategoryUtils.kt | omarmiatello | 264,021,780 | false | null | package com.github.omarmiatello.noexp.utils
import com.github.omarmiatello.noexp.Category
import com.github.omarmiatello.noexp.ProductHome
data class CategoryProducts(
val category: Category,
val productsInCategory: List<ProductHome>,
val productsInChildren: List<ProductHome>
)
fun List<Category>.withPro... | 0 | Kotlin | 0 | 0 | da932571df18ec333f56f26a4f01f9bfff9547fc | 2,354 | noexp | MIT License |
magick-kt-tests/src/commonTest/kotlin/imagemagick/kotest/colors/ColorCMYKTests.kt | Gounlaf | 692,782,810 | false | {"Kotlin": 954080, "C": 942148, "C++": 3285} | package imagemagick.kotest.colors
import imagemagick.Quantum
import imagemagick.colors.ColorCMYK
import imagemagick.colors.MagickColor
import imagemagick.core.types.Percentage.Companion.percent
import imagemagick.helpers.empty
import imagemagick.helpers.shouldBeIn
import imagemagick.quantum
import io.kotest.assertions... | 0 | Kotlin | 0 | 0 | cb4e3c65d8557aec41bb4b8c22c6b2fb56073a60 | 10,727 | Magick.KT | MIT License |
usecases/src/main/kotlin/com/architects/pokearch/usecases/GetPokemonTeam.kt | timacosta | 709,007,461 | false | {"Kotlin": 259065} | package com.architects.pokearch.usecases
import com.architects.pokearch.domain.repository.PokeArchRepositoryContract
import javax.inject.Inject
class GetPokemonTeam @Inject constructor(
private val pokemonRepository: PokeArchRepositoryContract,
) {
operator fun invoke() = pokemonRepository.getPokemonTeam()
}
| 0 | Kotlin | 0 | 3 | bedd946fa112147fb0ac38eb7d1af682dc240709 | 320 | PokeArch | Apache License 2.0 |
compose/compiler/compiler-hosted/integration-tests/src/test/java/androidx/compose/compiler/plugins/kotlin/AbstractIrTransformTest.kt | KOLANICH-libs | 445,548,183 | true | {"Kotlin": 68310818, "Java": 60327498, "C++": 9028407, "Python": 292398, "AIDL": 264519, "Shell": 174895, "HTML": 21175, "ANTLR": 19860, "CMake": 12136, "TypeScript": 7599, "C": 7083, "Swift": 3153, "JavaScript": 1343} | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 0 | c542b3a7cf2c46dfe3e071ca57956761e90aaff3 | 14,387 | androidx | Apache License 2.0 |
game/src/main/kotlin/gg/rsmod/game/message/encoder/ObjAddEncoder.kt | 2011Scape | 578,880,245 | false | {"Kotlin": 8904349, "Dockerfile": 1354} | package gg.rsmod.game.message.encoder
import gg.rsmod.game.message.MessageEncoder
import gg.rsmod.game.message.impl.ObjAddMessage
/**
* @author Tom <<EMAIL>>
*/
class ObjAddEncoder : MessageEncoder<ObjAddMessage>() {
override fun extract(
message: ObjAddMessage,
key: String,
): Number =
... | 39 | Kotlin | 143 | 34 | e5400cc71bfa087164153d468979c5a3abc24841 | 662 | game | Apache License 2.0 |
src/main/kotlin/dev/emortal/immortal/debug/ImmortalDebug.kt | emortalmc | 387,273,202 | false | null | package dev.emortal.immortal.debug
import dev.emortal.immortal.commands.StatsCommand
import net.kyori.adventure.text.Component
import net.kyori.adventure.text.format.NamedTextColor
import net.minestom.server.MinecraftServer
import net.minestom.server.timer.TaskSchedule
import kotlin.math.floor
object ImmortalDebug {
... | 11 | Kotlin | 1 | 14 | 98d88cc66ddeb1a9994182c89a4953f73404ecd6 | 2,752 | Immortal | MIT License |
server/src/main/kotlin/io/rippledown/server/routes/ConditionManagement.kt | TimLavers | 513,037,911 | false | {"Kotlin": 1314083, "Gherkin": 117614} | package io.rippledown.server.routes
import io.ktor.http.*
import io.ktor.server.application.*
import io.ktor.server.request.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
import io.rippledown.constants.api.CONDITION_HINTS
import io.rippledown.constants.api.GET_OR_CREATE_CONDITION
import io.rippledo... | 0 | Kotlin | 0 | 0 | e6383d6d2364db21cbfa95fdbfb322067bcf9d13 | 1,336 | OpenRDR | MIT License |
app/src/main/java/com/nafanya/words/core/di/ApplicationComponent.kt | AlexSoWhite | 621,046,093 | false | null | package com.nafanya.words.core.di
import android.content.Context
import com.nafanya.words.core.ui.MainActivity
import com.nafanya.words.feature.learn.di.LearnComponentProvider
import com.nafanya.words.feature.manageWords.di.ManageWordsComponentProvider
import com.nafanya.words.feature.preferences.di.PreferencesCompone... | 0 | Kotlin | 0 | 0 | 1c05c3afdcc320b5726d3c8e62b27cbd35f08b00 | 1,008 | Words | MIT License |
ktor-client/ktor-client-okhttp/jvm/test/io/ktor/client/engine/okhttp/RequestTests.kt | LouisCAD | 293,843,627 | true | {"Kotlin": 4581040, "JavaScript": 775, "HTML": 165} | /*
* Copyright 2014-2019 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package io.ktor.client.engine.okhttp
import io.ktor.client.request.*
import io.ktor.client.tests.utils.*
import okhttp3.*
import kotlin.test.*
class RequestTests {
class LoggingIntercep... | 0 | null | 0 | 1 | e0525a274d2c9958778fb649df39d59c44341b2b | 875 | ktor | Apache License 2.0 |
platform/webSymbols/src/com/intellij/webSymbols/inspections/impl/WebSymbolsHighlightInLanguageEP.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.webSymbols.inspections.impl
import com.intellij.lang.Language
import com.intellij.openapi.extensions.ExtensionPointName
import com.intellij.openapi.extensions.ExtensionPointUtil... | 214 | null | 4829 | 15,129 | 5578c1c17d75ca03071cc95049ce260b3a43d50d | 1,097 | intellij-community | Apache License 2.0 |
platform/webSymbols/src/com/intellij/webSymbols/inspections/impl/WebSymbolsHighlightInLanguageEP.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.webSymbols.inspections.impl
import com.intellij.lang.Language
import com.intellij.openapi.extensions.ExtensionPointName
import com.intellij.openapi.extensions.ExtensionPointUtil... | 214 | null | 4829 | 15,129 | 5578c1c17d75ca03071cc95049ce260b3a43d50d | 1,097 | intellij-community | Apache License 2.0 |
core/src/com/rspsi/game/RS2ObjectsDecoder.kt | RSPSi | 346,727,102 | false | null | package com.rspsi.game
import com.badlogic.ashley.core.Engine
import com.badlogic.ashley.core.Entity
import com.badlogic.gdx.graphics.Color
import com.badlogic.gdx.graphics.Texture
import com.badlogic.gdx.graphics.VertexAttributes
import com.badlogic.gdx.graphics.g3d.Material
import com.badlogic.gdx.graphics.g3d.Model... | 0 | Kotlin | 1 | 0 | bd6d6344e7c3b2ea27a5931bbba2e5ab39947996 | 24,890 | RSPSiLibgdx | MIT License |
src/main/java/com/github/kornilova_l/flamegraph/plugin/server/converters/file_to_call_traces/cflamegraph/CompressedFlamegraphToCallTracesConverter.kt | abbadon123 | 142,976,444 | false | {"YAML": 1, "Gradle": 6, "Shell": 2, "Markdown": 1, "Batchfile": 1, "Text": 51, "Ignore List": 1, "Kotlin": 53, "Java": 111, "XML": 7, "Protocol Buffer": 5, "Java Properties": 1, "JSON": 2, "HTML": 4, "Closure Templates": 1, "CSS": 6, "JavaScript": 21} | package com.github.kornilova_l.flamegraph.plugin.server.converters.file_to_call_traces.cflamegraph
import com.github.kornilova_l.flamegraph.plugin.server.converters.file_to_call_traces.FileToCallTracesConverter
import com.github.kornilova_l.flamegraph.plugin.server.converters.file_to_file.ProfilerToFlamegraphConverter... | 1 | null | 1 | 1 | 5ae26bf095abcf44145185ce789c8145a6df4f24 | 2,311 | flamegraph-visualizer | MIT License |
src/app/api/src/main/kotlin/yapp/be/apiapplication/shelter/service/VolunteerActivityHomeApplicationService.kt | YAPP-Github | 634,126,325 | false | {"Kotlin": 460704, "HTML": 7648} | package yapp.be.apiapplication.shelter.service
import org.springframework.stereotype.Service
import org.springframework.transaction.annotation.Transactional
import yapp.be.apiapplication.shelter.service.model.GetVolunteerEventHomeRequestDto
import yapp.be.apiapplication.system.exception.ApiExceptionType
import yapp.be... | 0 | Kotlin | 1 | 7 | ebee64b31bfe77106c0212605ba5e0f9b9957879 | 1,709 | DangleDangle-server | Apache License 2.0 |
app/src/main/java/com/daineey/vita_log/ui/my/MyViewModel.kt | VITA-LOG | 652,340,267 | false | null | package com.yjf.myvideo.ui.my
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
class MyViewModel : ViewModel() {
private val _text = MutableLiveData<String>().apply {
value = "This is my Fragment"
}
val text: LiveData<String> = _text... | 0 | null | 5 | 8 | 1bbc6e5ab384c85296b16218491240e34dee6c4e | 322 | VITA-LOG | Apache License 2.0 |
spring-boot/src/main/kotlin/io/github/magonxesp/criteria/infrastructure/jpa/FiltersJpaPredicateAdapter.kt | magonxesp | 785,683,867 | false | {"Kotlin": 72451, "TypeScript": 3919, "Python": 3127, "Makefile": 337} | package io.github.magonxesp.criteria.infrastructure.jpa
import io.github.magonxesp.criteria.domain.Filter
import io.github.magonxesp.criteria.infrastructure.FieldMap
import jakarta.persistence.criteria.CriteriaBuilder
import jakarta.persistence.criteria.Predicate
import jakarta.persistence.criteria.Root
class Filters... | 0 | Kotlin | 0 | 0 | aa19c65bdf99f7724319d01e1957382514eb4167 | 1,187 | criteria | MIT License |
project/util-item-lib/src/main/kotlin/ink/work/taboopublicwork/utils/itemlib/impl/SNeigeItem.kt | FxRayHughes | 723,338,144 | false | {"Kotlin": 115771} | package ink.work.taboopublicwork.utils.itemlib.impl
import ink.work.taboopublicwork.utils.itemlib.SourceItem
import org.bukkit.entity.Player
import org.bukkit.inventory.ItemStack
import pers.neige.neigeitems.manager.ItemManager
import taboolib.common.LifeCycle
import taboolib.common.platform.Awake
object SNeigeItem :... | 0 | Kotlin | 3 | 6 | 8a87ef1d2818ffbc24a7dc73bfa7b95358be0695 | 1,367 | TabooPublicWork | Creative Commons Zero v1.0 Universal |
app/src/main/java/com/gdevs/apptracker/presentation/app/AppState.kt | Gu11s | 573,819,545 | false | {"Kotlin": 25896} | package com.gdevs.apptracker.presentation.app
import com.gdevs.apptracker.feature_app.domain.model.AppModel
data class AppState(
val isLoading: Boolean = false,
val apps: List<AppModel> = emptyList(),
val error: String = ""
) | 0 | Kotlin | 0 | 0 | 62c77fe1323bb997bbb5905cd927c15caafe707c | 239 | AppTracker | Academic Free License v1.1 |
server/zally-core/src/main/kotlin/org/zalando/zally/core/util/OpenApiSections.kt | zalando | 76,853,145 | false | {"Kotlin": 587437, "JavaScript": 113327, "Go": 76158, "SCSS": 3038, "Pug": 1680, "Dockerfile": 670, "Shell": 640} | package org.zalando.zally.core.util
class OpenApiSections {
companion object {
const val PATHS = "/paths"
}
}
| 62 | Kotlin | 141 | 882 | 8c7407db2be39041f61b6baa3ee74012ebdb26ad | 127 | zally | MIT License |
shared/src/main/java/de/loosetie/k8s/dsl/manifests/ConfigMapVolumeSource.kt | loosetie | 283,145,621 | false | null | package de.loosetie.k8s.dsl.manifests
import de.loosetie.k8s.dsl.K8sTopLevel
import de.loosetie.k8s.dsl.K8sDslMarker
import de.loosetie.k8s.dsl.K8sManifest
import de.loosetie.k8s.dsl.HasMetadata
@K8sDslMarker
interface ConfigMapVolumeSource_core_v1_k8s1_16: K8sManifest {
/** Name of the referent. More info: h... | 0 | Kotlin | 0 | 1 | aaf63cb956f15863ad37ebe3532cb604f9b9506c | 2,414 | k8s-dsl | Apache License 2.0 |
ksoup/src/main/java/com/kevin/ksoup/extractor/ObjectTypeExtractor.kt | xuehuayous | 340,924,944 | false | null | package com.kevin.ksoup.extractor
import com.kevin.ksoup.Ksoup
import com.kevin.ksoup.KsoupException
import com.kevin.ksoup.annontation.Pick
import org.jsoup.nodes.Element
import java.lang.reflect.Field
/**
* ObjectTypeExtractor
*
* @author <EMAIL>, Created on 2021-06-27 20:22:01
* Major Function:<b>Objec... | 0 | null | 1 | 5 | fc1e5e622a9ab58ddcf43adf5a4915d703a8ddad | 1,333 | Ksoup | Apache License 2.0 |
app/src/main/java/com/moegirlviewer/component/compose/composeSlider.kt | koharubiyori | 449,942,456 | false | null | package com.moegirlviewer.component
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.remember
import androidx.compose.ui.node.Ref
import androidx.compose.ui.viewinterop.AndroidView
import com.google.android.material.slider.LabelFormatter
import c... | 1 | Kotlin | 2 | 16 | e09753e76c11932d6f7344302d48f7a214cccf3a | 1,078 | Moegirl-plus-native | MIT License |
src/main/kotlin/csense/idea/base/bll/psiWrapper/class/operations/is/IsImported.kt | csense-oss | 226,373,994 | false | {"Kotlin": 150126} | package csense.idea.base.bll.psiWrapper.`class`.operations.`is`
import com.intellij.psi.*
import csense.idea.base.bll.psiWrapper.`class`.*
import csense.idea.base.bll.psiWrapper.`class`.operations.*
import csense.idea.base.bll.psiWrapper.imports.*
import csense.idea.base.bll.psiWrapper.imports.operations.*
fun KtPsiC... | 0 | Kotlin | 0 | 0 | 1543bcadb124ca29c5f09e6762384648e19fa6e0 | 620 | idea-kotlin-shared-base | MIT License |
app/src/main/java/com/sunnyweather/app/MainActivity.kt | lgxfdom | 623,401,017 | false | null | package com.sunnyweather.app
import android.Manifest
import android.annotation.SuppressLint
import android.content.Intent
import android.content.pm.PackageManager
import android.net.Uri
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import android.widget.Toast
imp... | 0 | Kotlin | 0 | 0 | c18db296261ae04d2b53bcffd0375a445a606d08 | 1,381 | Permission | Apache License 2.0 |
src/it/kotlin/com/michalkowol/cars/CarsControllerIntegrationSpec.kt | michalkowol | 46,172,158 | false | null | package com.michalkowol.cars
import com.despegar.sparkjava.test.SparkServer
import com.michalkowol.DataSourceResource
import com.michalkowol.H2DatabaseResource
import com.ninja_squad.dbsetup.Operations.deleteAllFrom
import com.ninja_squad.dbsetup_kotlin.insertInto
import com.softwareberg.Database
import com.softwarebe... | 0 | Kotlin | 2 | 3 | d7eae913e188a76b1df3147c5a119e4be7b0f4ff | 2,221 | kotlin-template | ISC License |
model/src/commonMain/kotlin/io/github/droidkaigi/feeder/Logger.kt | hiesiea | 343,114,662 | true | {"Kotlin": 216242, "Swift": 4804} | package io.github.droidkaigi.feeder
// FIXME: replace with library
object Logger {
fun init() {
// for future changes
}
fun d(message: String) = println(message)
fun d(e: Throwable, message: String) {
println(message)
e.printStackTrace()
}
}
| 0 | Kotlin | 0 | 1 | 34a1dd7363efc0875d49170c58783b69e0352718 | 288 | conference-app-2021 | Apache License 2.0 |
SwipeRefreshLayoutDemo/app/src/main/java/com/renyu/swiperefreshlayoutdemo/MainActivity.kt | r17171709 | 23,950,456 | false | null | package com.renyu.swiperefreshlayoutdemo
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Handler
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout
import com.renyu.swiperefreshlayoutdemo.adapter.MainAdapter
import com.renyu.swiperefreshlayoutdemo.view.BaseSwipeRefr... | 8 | null | 333 | 612 | ee75780c1187355d81bab329e62ecaad985d6832 | 1,601 | StudyDemo | Apache License 2.0 |
src/main/kotlin/juuxel/crafty/compat/ToweletteFluidloggableBlock.kt | danjhop | 173,098,317 | true | {"Kotlin": 45387} | /* This file is a part of the Crafty project
* by Juuxel, licensed under the MIT license.
* Full code and license: https://github.com/Juuxel/Crafty
*/
package juuxel.crafty.compat
import juuxel.crafty.block.CBlockSettings
import juuxel.crafty.block.CraftyBlock
import juuxel.crafty.block.Quirk
import virtuoel.towele... | 0 | Kotlin | 0 | 0 | d0b7ac6f6280b0a1000d69769e79857a57ea1777 | 544 | Crafty | MIT License |
codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/awsrestjson/AWSRestJson1ProtocolGeneratorTests.kt | awslabs | 278,475,105 | false | null | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
package software.amazon.smithy.aws.swift.codegen.awsrestjson
import io.kotest.matchers.string.shouldContainOnlyOnce
import org.junit.jupiter.api.Test
import software.amazon.smithy.aws.swift.codegen.Tes... | 196 | null | 68 | 345 | fb1d95dac0ca1c1fd42fc46b3ec31b1a506031ea | 15,938 | aws-sdk-swift | Apache License 2.0 |
app/src/main/java/com/philsoft/metrotripper/app/MetroTripperApplication.kt | polson | 29,316,612 | false | null | package com.philsoft.metrotripper.app
import android.support.multidex.MultiDexApplication
import timber.log.Timber
class MetroTripperApplication : MultiDexApplication() {
override fun onCreate() {
super.onCreate()
Timber.plant(Timber.DebugTree())
}
}
| 2 | Kotlin | 0 | 0 | 7ec1b14304e001a6c7653f7b2775245cadb43d01 | 279 | MetroTripper | Apache License 2.0 |
sample/core/src/test/java/com/maproductions/mohamedalaa/sample/core/NormalGsonConversion.kt | MohamedAlaaEldin636 | 289,080,877 | false | null | /*
* Copyright © 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 ... | 0 | Kotlin | 0 | 1 | 84408d2dfce64688f696cf9dfbb78b02d50e5461 | 6,639 | MAUtils-Gson | Apache License 2.0 |
src/main/kotlin/pl/syntaxdevteam/punisher/helpers/UUIDManager.kt | SyntaxDevTeam | 835,331,008 | false | {"Kotlin": 141588} | package pl.syntaxdevteam.helpers
import com.google.gson.Gson
import com.google.gson.JsonObject
import java.io.InputStreamReader
import java.net.HttpURLConnection
import java.net.URI
import java.util.*
import org.bukkit.Bukkit
import org.bukkit.OfflinePlayer
import org.bukkit.entity.Player
import pl.syntaxdevteam.Punis... | 0 | Kotlin | 0 | 1 | b36dfc2fd9d68271c607a8fce018d060686841fd | 2,905 | PunisherX | MIT License |
src/main/kotlin/pl/syntaxdevteam/punisher/helpers/UUIDManager.kt | SyntaxDevTeam | 835,331,008 | false | {"Kotlin": 141588} | package pl.syntaxdevteam.helpers
import com.google.gson.Gson
import com.google.gson.JsonObject
import java.io.InputStreamReader
import java.net.HttpURLConnection
import java.net.URI
import java.util.*
import org.bukkit.Bukkit
import org.bukkit.OfflinePlayer
import org.bukkit.entity.Player
import pl.syntaxdevteam.Punis... | 0 | Kotlin | 0 | 1 | b36dfc2fd9d68271c607a8fce018d060686841fd | 2,905 | PunisherX | MIT License |
src/Demo.kt | VaibhavMojidra | 634,263,227 | false | null | fun main(args: Array<String>) {
//To create a Kotlin range we call rangeTo() function on the range start value and provide the end value as an argument.
for (num in 1.rangeTo(4)) {
println(num)
}
//The rangeTo() is often called in its operator form ... So the above code can be re-written using .. operator as fo... | 0 | Kotlin | 0 | 0 | a256c4c7e817741b9e59ef97e7e4ab965f231acc | 1,732 | Kotlin---Demo-Ranges | MIT License |
uicomponents/src/main/java/info/covid/uicomponents/ViewExtensions.kt | Ciriously | 340,889,395 | false | null | package info.covid.uicomponents
import android.view.View
import androidx.core.content.ContextCompat
import androidx.fragment.app.Fragment
import com.google.android.material.bottomsheet.BottomSheetBehavior
import com.google.android.material.chip.Chip
import com.google.android.material.chip.ChipGroup
import info.covid.d... | 0 | Kotlin | 0 | 2 | e8332951a4fc288e389a18558568091ca6be1de0 | 1,147 | covid-19-stats-Kotlin | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.