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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ui/profile/src/main/java/de/schnettler/scrobbler/ui/profile/ProfileScreen.kt | reyadrahman | 361,654,103 | true | {"Kotlin": 410530} | package de.schnettler.scrobbler.ui.profile
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 androidx.compose.foundation.layout... | 0 | null | 0 | 0 | 18552030e5b31016de08c75f606a5a9a2789db82 | 12,613 | Compose-Scrobbler | Apache License 2.0 |
app/src/main/java/com/blockstart/android/wallet/view/QrScannerFragment.kt | jabo38 | 189,737,189 | true | {"JavaScript": 17562425, "C": 2032522, "C++": 677918, "Kotlin": 115751, "Python": 22472, "Java": 3962, "CMake": 2259} | package com.blockstart.android.wallet.view
import android.content.Context
import android.os.Bundle
import com.blockstart.android.wallet.R
import android.graphics.PointF
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget... | 0 | JavaScript | 0 | 0 | 88c9500022bda142c87e3771f825a1208ce7c310 | 2,188 | nem-meteor-wallet-android | The Unlicense |
src/main/kotlin/br/com/zup/pix/consultas/ConsultaChavePixResponse.kt | oliboni | 346,376,061 | true | {"Kotlin": 63297, "Shell": 1157, "Dockerfile": 132} | package br.com.zup.pix.consultas
import br.com.zup.ConsultaChaveRespose
import br.com.zup.TipoChave
import br.com.zup.TipoConta
import br.com.zup.compartilhados.TipoDaChave
import br.com.zup.contaCliente.ContaCliente
import br.com.zup.pix.ChavePix
import java.time.LocalDateTime
import java.time.ZoneId
import java.util... | 0 | Kotlin | 0 | 0 | 15e98720f58a78d855a8d0568faa10adbae5c6c2 | 2,432 | orange-talents-01-template-pix-keymanager-grpc | Apache License 2.0 |
30 Days of Code (Kotlin)/day2-Operators.kt | swapnanildutta | 259,629,657 | false | null | /*
Question
In this challenge, you'll work with arithmetic operators. Check out the Tutorial tab for learning materials and an instructional video!
Task
Given the meal price (base cost of a meal), tip percent (the percentage of the meal price being added as tip), and tax percent (the percentage of the meal price bein... | 41 | Python | 202 | 65 | 01b04ee56f1e4b151ff5b98094accfeb09b55a95 | 2,066 | Hackerrank-Codes | MIT License |
android/app/src/main/kotlin/com/example/sofyan_pos/MainActivity.kt | artemtech | 381,362,609 | false | {"Dart": 48217, "HTML": 1523, "Kotlin": 135} | package id.artemtech.pencatat_keuangan
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 1 | 2 | 2f7aa26380314dfc6e1fe4344263ab0df9db0e19 | 135 | pencatat-keuangan-flutter | MIT License |
app/src/main/java/com/active/orbit/baseapp/core/enums/HealthType.kt | oakgroup | 629,001,920 | false | {"Kotlin": 482098} | package com.active.orbit.baseapp.core.enums
import android.content.Context
import com.active.orbit.baseapp.R
import com.active.orbit.baseapp.core.utils.Constants
enum class HealthType(var id: Int, var title: Int, var responseOne: List<Int>, var responseTwo: List<Int>, var responseThree: List<Int>, var responseFour: L... | 0 | Kotlin | 0 | 0 | 08f2634128739247880f5e00df31317bd3a96f06 | 4,610 | android-bhf-doctors | MIT License |
api/coroutines/v1.5.3/src/commonMain/kotlin/dev/whyoleg/ktd/api/chat/ToggleChatIsPinned.kt | whyoleg | 202,767,670 | false | null | @file:Suppress(
"unused"
)
@file:UseExperimental(
BotsOnly::class,
TestingOnly::class
)
package dev.whyoleg.ktd.api.chat
import dev.whyoleg.ktd.*
import dev.whyoleg.ktd.api.*
import dev.whyoleg.ktd.api.TdApi.*
/**
* Changes the pinned state of a chat
* You can pin up to GetOption("pinned_chat_count_max... | 7 | Kotlin | 11 | 45 | 7284eeabef0bd002dc72634351ab751b048900e9 | 866 | ktd | Apache License 2.0 |
app/src/main/java/com/github/rooneyandshadows/lightbulb/pickersdemo/views/DemoAdapterPickerView.kt | RooneyAndShadows | 417,586,412 | false | null | package com.github.rooneyandshadows.lightbulb.pickersdemo.views
import android.content.Context
import android.graphics.drawable.Drawable
import android.os.Parcelable
import android.util.AttributeSet
import androidx.databinding.BindingAdapter
import androidx.databinding.InverseBindingAdapter
import androidx.databinding... | 0 | Kotlin | 0 | 0 | 0ee3d9d75ef053c9b67c81d646237f84740d17bd | 6,909 | lightbulb-pickers | Apache License 2.0 |
app/src/main/java/com/oceanbrasil/ocean_android_jetpack_17_11_2020/LiveDataActivity.kt | paulosalvatore | 313,673,290 | false | null | package com.oceanbrasil.ocean_android_jetpack_17_11_2020
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProvider
import kotlinx.android.synthetic.main.activity_live_data.*
class LiveDataActivity : AppCompatActivity() {
... | 0 | Kotlin | 1 | 1 | 6c434e797a5e94d57cab9eba218ee2717adf2c32 | 728 | Ocean_Android_Jetpack_17_11_2020 | MIT License |
android-ui/src/androidTest/java/app/boletinhos/application/injection/TestAppComponent.kt | khalilcharfi | 285,812,434 | true | {"Kotlin": 113596} | package app.boletinhos.application.injection
import android.app.Application
import app.boletinhos.bill.injection.BillServiceModule
import app.boletinhos.rule.UsesDatabaseRule
import app.boletinhos.summary.SummaryViewTest
import app.boletinhos.summary.injection.SummaryServiceModule
import common.AppScope
import dagger.... | 0 | null | 0 | 0 | 23c3919779ba38aaa645ab60aeed68c3edb0dd88 | 754 | Boletinhos | MIT License |
messaging-core/src/main/java/com/nabla/sdk/core/data/logger/AndroidLogger.kt | AchrafAmil | 488,648,507 | false | {"Kotlin": 305347} | package com.nabla.sdk.core.data.logger
import android.util.Log
import com.nabla.sdk.core.domain.boundary.Logger
internal class AndroidLogger : Logger {
override fun debug(message: String, error: Throwable?, tag: String) {
Log.d(tag, message, error)
}
override fun info(message: String, error: Thro... | 0 | null | 1 | 0 | ff93b3c6e58ac0969b7be402b50c292bdfa8f534 | 617 | nabla-android | MIT License |
app/src/main/kotlin/com/manishsputnikcorporation/safebites/domain/model/base/Identifiable.kt | maneletorres | 597,465,387 | false | null | package com.manishsputnikcorporation.safebites.domain.model.base
interface Identifiable {
val id: String
}
data class CustomIdentifiable(override val id: String) : Identifiable
| 0 | Kotlin | 0 | 0 | 776788a70b0c89d96fd8faee1b9b8ad1eb0f665a | 181 | SafeBites | Apache License 2.0 |
src/commonMain/kotlin/com/mugames/vidsnapkit/extractor/Periscope.kt | Udhayarajan | 582,397,133 | false | null | /*
* Copyright (c) 2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 2 | null | 3 | 8 | c5ff1433b12c1f815d69cbad8dfb1b3a522957fe | 4,317 | VidSnapKit-Ultimate | Apache License 2.0 |
http4k-server/websocket/src/test/kotlin/org/http4k/server/websocket/JavaWebSocketTest.kt | http4k | 86,003,479 | false | null | package org.http4k.server.websocket
import org.http4k.client.JavaHttpClient
import org.http4k.websocket.WebsocketServerContract
class JavaWebSocketTest : WebsocketServerContract({ JavaWebSocket(it, addShutdownHook = false) }, JavaHttpClient(), httpSupported = false)
| 34 | null | 249 | 2,615 | 7ad276aa9c48552a115a59178839477f34d486b1 | 269 | http4k | Apache License 2.0 |
staticviewmodelstore/src/main/java/studio/attect/staticviewmodelstore/StaticViewModelLifecycleAccessibilityService.kt | Attect | 185,157,125 | false | null | package studio.attect.staticviewmodelstore
import android.accessibilityservice.AccessibilityService
import android.content.Intent
import androidx.annotation.CallSuper
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.ServiceLifecycleDispatcher
import androidx.lifecy... | 0 | Kotlin | 0 | 3 | 8200a2d8d19bf2a489112743c4cf165e682e6300 | 2,393 | StaticViewModelStore | MIT License |
androidApp/src/main/java/com/prof18/moneyflow/ui/components/ArrowCircleIcon.kt | prof18 | 290,316,981 | false | null | package com.prof18.moneyflow.ui.components
import androidx.annotation.DrawableRes
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.CircleS... | 0 | Kotlin | 20 | 157 | 4bba29b0749c27efd2611a54a215dfce928eb70b | 1,836 | MoneyFlow | Apache License 2.0 |
plugins/src/main/kotlin/org/jetbrains/gradle/plugins/terraform/tasks/GenerateTerraformMetadata.kt | JetBrains | 386,075,247 | false | null | package org.jetbrains.gradle.plugins.terraform.tasks
import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.Json
import org.gradle.api.DefaultTask
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.OutputFile
import org.gradle.api.tasks.TaskAction
import org.gradle.kotlin.dsl.getValue... | 7 | Kotlin | 9 | 26 | 50be7c14b3bd707ed3a2fae4536fb5e4650aa8ce | 1,040 | package-search-gradle-plugins | Apache License 2.0 |
vector/src/main/java/im/vector/app/features/location/domain/usecase/CompareLocationsUseCase.kt | tchapgouv | 340,329,238 | false | null | /*
* Copyright (c) 2022 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... | 91 | Kotlin | 4 | 9 | a2c060c687b0aa69af681138c5788d6933d19860 | 1,746 | tchap-android | Apache License 2.0 |
frontend/screen/programs/src/commonMain/kotlin/com/mindovercnc/linuxcnc/screen/programs/root/ui/ProgramsRootScreenUi.kt | 85vmh | 543,628,296 | false | null | package com.mindovercnc.linuxcnc.screen.programs.root.ui
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.ui.Modifier
import com.arkivanov.decompose.extensions.compose.stack.Children
import com.arkivanov.de... | 0 | null | 1 | 3 | 5cf42426895ba8691c9b53ba1b97c274bbdabc07 | 1,177 | mindovercnclathe | Apache License 2.0 |
src/main/kotlin/com/dannybierek/tools/hmc/ui/HeaderText.kt | dbierek | 630,756,451 | false | null | package com.dannybierek.tools.hmc.ui
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.unit.sp
data class HeaderText(
var text: String = "",
override var renderer: @Composable () -> Unit = @Composable {
... | 0 | Kotlin | 0 | 0 | 415c0501028f80f340b56d620e3adb700e2f19d3 | 429 | HitmanModCreator | Apache License 2.0 |
app/src/main/java/com/sakuna63/tumbin/extension/CanvasExtension.kt | sakuna63 | 75,534,876 | false | null | package com.sakuna63.tumbin.extension
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.RectF
import android.os.Build
fun Canvas.drawRoundRectCompat(left: Int, top: Int, right: Int, bottom: Int,
rx: Float, ry: Float, paint: Paint) {
if (Build.VERSI... | 0 | Kotlin | 1 | 0 | 6d9992cbbcdf23fea218d362478545409dfead5c | 631 | tumbin | Apache License 2.0 |
app/src/main/java/com/pine/lib_proj/MainActivity.kt | pinetrick | 578,007,654 | false | null | package com.pine.lib_proj
import android.os.Bundle
import com.pine.lib.app.PineActivity
class MainActivity : PineActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
scan()
}
fun scan() {
... | 0 | Kotlin | 0 | 0 | 3576f830c2dca769534f335dc7fbe703508430ee | 325 | pineLib2023 | Apache License 2.0 |
app/src/main/java/com/alpriest/energystats/ui/flow/home/LoadedPowerFlowView.kt | alpriest | 606,081,400 | false | {"Kotlin": 465832} | package com.alpriest.energystats.ui.flow.home
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 androidx.compose.foundation.lay... | 8 | Kotlin | 3 | 3 | 8ef86a7aa17e2c4be23dbda96587e62045289f6b | 7,727 | EnergyStats-Android | MIT License |
libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/native-cinterop/publishedLibrary/src/hostTest/kotlin/test.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... | /*
* Copyright 2010-2020 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 library.cinterop.project
import kotlin.test.*
@Test
fun testAnswer() {
assertEquals(4, publishedA... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 331 | kotlin | Apache License 2.0 |
app/src/main/java/com/thewizrd/mediacontroller/remote/viewmodels/AMRemoteViewModel.kt | thewizrd | 743,426,063 | false | {"Kotlin": 133695} | package com.thewizrd.mediacontroller.remote.viewmodels
import android.util.Log
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.squareup.moshi.Moshi
import com.thewizrd.mediacontroller.remote.model.AMEventType
import com.thewizrd.mediacontroller.remote.model.AMRemoteCommand
impor... | 0 | Kotlin | 0 | 0 | f5f1fd2a6706b02e1c238051578e562b988dae5d | 9,564 | MediaControllerRemote | Apache License 2.0 |
shared/src/main/java/de/loosetie/k8s/dsl/impls/Cronjobspec.kt | loosetie | 283,145,621 | false | {"Kotlin": 10664277} | package de.loosetie.k8s.dsl.impls
import com.fasterxml.jackson.annotation.JsonIgnore
import com.fasterxml.jackson.annotation.JsonPropertyOrder
import de.loosetie.k8s.dsl.K8sManifest
import de.loosetie.k8s.dsl.HasParent
import de.loosetie.k8s.dsl.manifests.*
@JsonPropertyOrder("concurrencyPolicy", "failedJobsHistoryLi... | 0 | Kotlin | 0 | 1 | dd616e546de56240a7a4d3edb18cb4f6529e301b | 4,306 | k8s-dsl | Apache License 2.0 |
app/src/main/java/io/cricket/app/data/source/State.kt | amirishaque | 375,128,729 | false | null | package io.cricket.app.data.source
import androidx.annotation.Nullable
class State(
var status: Status,
var message: String?
) {
var hardAlert = false
override fun toString(): String {
return "status: $status, message: $message"
}
override fun equals(other: Any?): Boolean {
... | 0 | Kotlin | 0 | 0 | 42808ddd775b5ac6f7bff0d8cf518091588df844 | 1,639 | Cricklub_livecode | MIT License |
groupchannel-operators/src/main/java/com/sendbird/chat/sample/groupchannel/operators/ui/user/ChatMemberListActivity.kt | sendbird | 468,608,032 | false | null | package com.sendbird.chat.sample.groupchannel.operators.ui.user
import android.os.Bundle
import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.DividerItemDecoration
import androidx.recyclerview.widget.RecyclerView
import com.sendbird.android.channel.GroupChann... | 5 | Kotlin | 9 | 8 | fd8285a6244bc048e693d3df6f4ef0e767b6765c | 3,975 | sendbird-chat-sample-android | MIT License |
src/main/kotlin/no/nav/personbruker/dittnav/eventaggregator/archive/PeriodicVarselArchiver.kt | navikt | 189,239,389 | false | null | package no.nav.personbruker.dittnav.eventaggregator.archive
import no.nav.personbruker.dittnav.eventaggregator.common.LocalDateTimeHelper.nowAtUtc
import no.nav.personbruker.dittnav.eventaggregator.common.PeriodicJob
import no.nav.personbruker.dittnav.eventaggregator.common.exceptions.RetriableDatabaseException
import... | 1 | Kotlin | 0 | 1 | 28a136741d767f3066483fd295c2a0c067107150 | 2,186 | dittnav-event-aggregator | MIT License |
network/src/main/java/com/oguzdogdu/network/model/collection/CollectionResponse.kt | oguzsout | 616,912,430 | false | null | package com.oguzdogdu.network.model.collection
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import com.oguzdogdu.network.model.maindto.Link
import com.oguzdogdu.network.model.maindto.Photo
import com.oguzdogdu.network.model.maindto.User
import com.oguzdogdu.domain.model.collection.Wal... | 0 | null | 0 | 8 | f4dfeea21aabb253dd4aff4001c91138d5af88e4 | 1,199 | Wallies | MIT License |
compiler/testData/codegen/box/defaultArguments/captureInTailrec.kt | JetBrains | 3,432,266 | false | null | // KT-46225
class C
fun box(): String =
C().foo("O")
tailrec fun C.foo(x: String, f: (String) -> String = { bar(it) }): String =
if (x.length < 2) foo(f(x)) else x
fun C.bar(s: String): String =
s + "K" | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 218 | kotlin | Apache License 2.0 |
src/test/kotlin/group/openalcoholics/cocktailparty/db/DatabaseTest.kt | OpenAlcoholics | 145,478,646 | false | null | package group.openalcoholics.cocktailparty.db
import group.openalcoholics.cocktailparty.TestConfigModule
import group.openalcoholics.cocktailparty.module.DatabaseModule
import name.falgout.jeffrey.testing.junit.guice.GuiceExtension
import name.falgout.jeffrey.testing.junit.guice.IncludeModule
import name.falgout.jeffr... | 4 | Kotlin | 0 | 0 | 39d9c23bfa8eaf411199063ddcf0aca7adb241fa | 1,012 | CocktailParty | MIT License |
pickcam/src/main/kotlin/com/lovoo/android/pickcam/worker/CaptureResultWorker.kt | lovoo | 224,686,577 | false | null | /**
* Copyright 2018 LOVOO GmbH
*
* 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 | 1 | 13 | 9b0d31c362e21ec44bce02d6c1d021da5076de80 | 4,427 | android-pickpic | Apache License 2.0 |
lib_util/src/main/kotlin/com/abiao/util/log/DiskLogAdapter.kt | yudengwei | 818,541,459 | false | {"Kotlin": 187639} | package com.abiao.util.log
/**
* This is used to saves log messages to the disk.
* By default it uses [CsvFormatStrategy] to translates text message into CSV format.
*/
class DiskLogAdapter : LogAdapter {
private val formatStrategy: FormatStrategy
constructor() {
formatStrategy = CsvFormatStrategy.... | 0 | Kotlin | 0 | 0 | b60914fb4abf3b9ea37a1c59fdff00560e579abe | 703 | composedemo | Apache License 2.0 |
src/main/kotlin/no/nav/hm/grunndata/register/news/NewsRegistration.kt | navikt | 572,421,718 | false | {"Kotlin": 495264, "Dockerfile": 113, "Shell": 111} | package no.nav.hm.grunndata.register.news
import io.micronaut.data.annotation.Id
import io.micronaut.data.annotation.MappedEntity
import no.nav.hm.grunndata.rapid.dto.DraftStatus
import no.nav.hm.grunndata.rapid.dto.NewsRegistrationRapidDTO
import no.nav.hm.grunndata.rapid.dto.NewsStatus
import no.nav.hm.grunndata.reg... | 0 | Kotlin | 0 | 2 | 2eafe14f8f3cfc41d3c8f16a1c4cbbdd11fd415a | 2,997 | hm-grunndata-register | MIT License |
src/main/kotlin/us/jwf/aoc2019/Day05SunnyAsteroids.kt | jasonwyatt | 318,073,137 | false | null | package us.jwf.aoc2019
import java.io.Reader
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.flow.toList
import kotlinx.coroutines.launch
import us.jwf.aoc.Day
import us.jwf.aoc.toIntFlow
class Day05SunnyAsteroids : Day<Int, Int> {
override suspend fun e... | 0 | Kotlin | 0 | 0 | 60282b121bec6b845a74507960934a03a9153178 | 1,012 | AdventOfCode-Kotlin | Apache License 2.0 |
app/src/main/java/com/cusufcan/besinkitabi/viewmodel/FoodDetailViewModel.kt | cusufcan | 837,155,191 | false | {"Kotlin": 16747} | package com.cusufcan.besinkitabi.viewmodel
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import com.cusufcan.besinkitabi.db.FoodDatabase
import com.cusufcan.besinkitabi.model.Food
import kotlinx.coroutines.la... | 0 | Kotlin | 0 | 0 | 4520208bbf948607ef03d54e62c812052f240ed7 | 686 | besin_kitabi | MIT License |
app/src/main/java/com/github/skytoph/taski/core/alarm/AlarmScheduler.kt | skytoph | 708,362,840 | false | {"Kotlin": 602263} | package com.github.skytoph.taski.core.alarm
import android.app.AlarmManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.Build
class AlarmScheduler(
private val alarm: AlarmProvider,
private val uriConverter: HabitUriCon... | 0 | Kotlin | 0 | 1 | 6639c40403f384c2125b6370499fcd6a0120a72b | 2,482 | HabitMate | The Unlicense |
shared/src/commonMain/kotlin/com/kodatos/shared/di/SharedSingleton.kt | Kodatos | 382,815,535 | false | null | package com.kodatos.shared.di
import me.tatarka.inject.annotations.Scope
@Scope
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER)
annotation class SharedSingleton
| 0 | Kotlin | 0 | 0 | 375662bdb40888891ce34e3aa40c60fe2db5bd43 | 208 | bookmark | Apache License 2.0 |
src/main/kotlin/com/chauret/api/request/IngredientRequest.kt | renchauret | 631,693,260 | false | null | package com.chauret.api.request
import com.chauret.model.recipe.IngredientType
import kotlinx.serialization.Serializable
@Serializable
data class IngredientRequest(
val name: String,
val liked: Boolean = false,
val type: IngredientType? = null,
val image: ImageRequest? = null
)
@Serializable
data cla... | 0 | Kotlin | 0 | 0 | b10fe0c9197bc7ff904e92c66fd4b4423c11dda1 | 393 | spirit-web-kotlin-react | Apache License 2.0 |
projects/create-and-vary-a-licence-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/LicenceConditionApplier.kt | ministryofjustice | 500,855,647 | false | {"Kotlin": 3260353, "HTML": 54825, "D2": 27334, "Ruby": 24334, "Shell": 12351, "SCSS": 5980, "HCL": 2712, "Dockerfile": 2414, "JavaScript": 1288, "Python": 268} | package uk.gov.justice.digital.hmpps.service
import org.springframework.stereotype.Service
import org.springframework.transaction.annotation.Transactional
import uk.gov.justice.digital.hmpps.audit.service.OptimisationTables
import uk.gov.justice.digital.hmpps.flags.FeatureFlags
import uk.gov.justice.digital.hmpps.inte... | 3 | Kotlin | 0 | 2 | f53146f969b1acf4dbd147a5d588c5ad23c15a78 | 9,987 | hmpps-probation-integration-services | MIT License |
app/src/test/kotlin/aoc2022/day01/Day01Test.kt | dbubenheim | 574,231,602 | false | null | package aoc2022.day01
import assertk.assertThat
import assertk.assertions.isEqualTo
import aoc2022.day01.Day01.calorieCountingPart1
import aoc2022.day01.Day01.calorieCountingPart2
import org.junit.jupiter.api.Test
internal class Day01Test {
@Test
fun testCalorieCountPart1() = assertThat(calorieCountingPart1(... | 2 | Kotlin | 0 | 0 | e7a1bd8a36ef09377844d50437d51d77abd15c35 | 440 | advent-of-code-2022 | MIT License |
educational-core/testSrc/com/jetbrains/edu/learning/stepik/hyperskill/HyperskillCheckEduTaskTest.kt | moglideveloper | 400,282,632 | true | {"Kotlin": 3497534, "HTML": 1879647, "Java": 531530, "CSS": 12158, "Python": 5553, "JavaScript": 315} | package com.jetbrains.edu.learning.stepik.hyperskill
import com.jetbrains.edu.learning.MockResponseFactory
import com.jetbrains.edu.learning.checker.CheckActionListener
import com.jetbrains.edu.learning.checker.CheckersTestBase
import com.jetbrains.edu.learning.checker.EduCheckerFixture
import com.jetbrains.edu.learni... | 0 | null | 0 | 0 | 628dfaed42d85f80018ecde1511fa249e4a7f7f4 | 3,179 | educational-plugin | Apache License 2.0 |
educational-core/testSrc/com/jetbrains/edu/learning/stepik/hyperskill/HyperskillCheckEduTaskTest.kt | moglideveloper | 400,282,632 | true | {"Kotlin": 3497534, "HTML": 1879647, "Java": 531530, "CSS": 12158, "Python": 5553, "JavaScript": 315} | package com.jetbrains.edu.learning.stepik.hyperskill
import com.jetbrains.edu.learning.MockResponseFactory
import com.jetbrains.edu.learning.checker.CheckActionListener
import com.jetbrains.edu.learning.checker.CheckersTestBase
import com.jetbrains.edu.learning.checker.EduCheckerFixture
import com.jetbrains.edu.learni... | 0 | null | 0 | 0 | 628dfaed42d85f80018ecde1511fa249e4a7f7f4 | 3,179 | educational-plugin | Apache License 2.0 |
app/src/main/java/com/theapache64/composeandroidtemplate/models/Tool.kt | Shivamdhuria | 453,191,274 | false | {"Kotlin": 25167, "Java": 312, "Assembly": 4} | package com.theapache64.composeandroidtemplate.models
sealed interface Tool
object Undo : Tool
object Redo : Tool
object Delete : Tool | 3 | Kotlin | 1 | 3 | b9dec2617869651cad2beea3a6f38a50864aedf8 | 136 | ComposeSketch | Apache License 2.0 |
app/src/main/java/com/kirakishou/photoexchange/helper/util/FileUtils.kt | K1rakishou | 109,590,033 | false | null | package com.kirakishou.photoexchange.helper.util
import java.io.File
interface FileUtils {
fun createTempFile(prefix: String, suffix: String): File
fun deleteFile(file: File)
fun deleteFile(filePath: String)
fun deleteAllFiles(directory: File)
fun calculateTotalDirectorySize(directory: File): Long
} | 0 | null | 1 | 4 | 15f67029376a98353a01b5523dfb42d183a26bf2 | 312 | photoexchange-android | Do What The F*ck You Want To Public License |
src/main/java/io/github/light0x00/lightregex/ast/LiteralRangeToken.kt | light0x00 | 620,782,615 | false | null | package io.github.light0x00.lightregex.ast
class LiteralRangeToken(val from: Int, val to: Int) : AbstractToken(TokenType.RANGE_LITERAL) {
override fun toString(): String {
return "${Character.toString(from)}-${Character.toString(to)}"
}
override fun copy(): LiteralRangeToken {
return Liter... | 0 | Kotlin | 0 | 1 | cb80c9a808ef42097153a6d968d866828ee221e6 | 350 | light-regex | MIT License |
src/commonMain/kotlin/dev/folomeev/kotgl/matrix/vectors/mutables/Floor.kt | folomeev | 487,706,128 | false | null | @file:kotlin.jvm.JvmName("MutableVectors")
@file:kotlin.jvm.JvmMultifileClass
package dev.folomeev.kotgl.matrix.vectors.mutables
import dev.folomeev.kotgl.matrix.FloatMapping2
import dev.folomeev.kotgl.matrix.FloatMapping3
import dev.folomeev.kotgl.matrix.FloatMapping4
import dev.folomeev.kotgl.matrix.vectors.Vec2
im... | 0 | Kotlin | 0 | 1 | e4fee9e2647579825c05c1976e15a4469dc9633e | 2,200 | kotgl-matrix | MIT License |
buildSrc/src/main/kotlin/io/getstream/chat/android/command/utils/Constants.kt | GetStream | 177,873,527 | false | {"Kotlin": 8578375, "MDX": 2150736, "Java": 271477, "JavaScript": 6737, "Shell": 5229} | package io.getstream.chat.android.command.utils
internal const val MAJOR_VERSION_MARKER = "const val majorVersion ="
internal const val MINOR_VERSION_MARKER = "const val minorVersion ="
internal const val PATCH_VERSION_MARKER = "const val patchVersion ="
| 24 | Kotlin | 273 | 1,451 | 8e46f46a68810d8086c48a88f0fff29faa2629eb | 256 | stream-chat-android | FSF All Permissive License |
util-firebase/src/main/kotlin/com/tailoredapps/androidutil/firebase/RxTasks.kt | tailoredmedia | 169,299,917 | false | null | /*
* Copyright 2019 <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 1 | Kotlin | 3 | 5 | 34a6bc88598647137da60c03e1001e0947ad84f4 | 2,290 | AndroidAppUtil | Apache License 2.0 |
util-firebase/src/main/kotlin/com/tailoredapps/androidutil/firebase/RxTasks.kt | tailoredmedia | 169,299,917 | false | null | /*
* Copyright 2019 <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 1 | Kotlin | 3 | 5 | 34a6bc88598647137da60c03e1001e0947ad84f4 | 2,290 | AndroidAppUtil | Apache License 2.0 |
compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/generators/AnnotationGenerator.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2020 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.fir.backend.generators
import org.jetbrains.kotlin.fir.FirAnnotationContainer
im... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 2,285 | kotlin | Apache License 2.0 |
Corona-Warn-App/src/deviceForTesters/java/de/rki/coronawarnapp/vaccination/ui/VaccinationTestFragmentViewModel.kt | roink | 384,519,976 | false | {"Gradle": 4, "JSON": 29, "CODEOWNERS": 1, "Java Properties": 2, "Markdown": 11, "INI": 1, "Shell": 1, "Text": 2, "Ignore List": 3, "Batchfile": 1, "EditorConfig": 1, "Proguard": 1, "YAML": 4, "XML": 722, "Java": 5, "Kotlin": 1733, "HTML": 7, "Checksums": 2, "JAR Manifest": 1, "Protocol Buffer": 56, "Groovy": 1, "SVG":... | package de.rki.coronawarnapp.vaccination.ui
import dagger.assisted.AssistedFactory
import dagger.assisted.AssistedInject
import de.rki.coronawarnapp.util.coroutine.DispatcherProvider
import de.rki.coronawarnapp.util.viewmodel.CWAViewModel
import de.rki.coronawarnapp.util.viewmodel.SimpleCWAViewModelFactory
class Vacc... | 1 | null | 1 | 1 | d121aaedc3f1133003c3fa67d8f8fca1436f7d7d | 590 | p2pcwa | Apache License 2.0 |
src/Testing/Goal.kt | SharkooMaster | 452,231,324 | true | {"Markdown": 4, "Java": 23, "Kotlin": 6, "HTML": 121, "JavaScript": 15, "CSS": 5} | package Testing
import javagameengine.components.Component
import javagameengine.components.GameObject
import javagameengine.components.colliders.SquareCollider
import javagameengine.components.sprites.Sprite
import javagameengine.msc.Debug
import javagameengine.msc.Vector2
import java.awt.Rectangle
class Goal(pos : ... | 0 | Java | 0 | 0 | 98f576bbab23504cb2bfad535d42fc18017f2422 | 915 | JavaGameEngine | MIT License |
app/src/main/java/com/dtmilano/android/culebratester2/utils/SelectorBundles.kt | dtmilano | 214,093,875 | false | {"Kotlin": 327195, "Java": 18533, "Shell": 10400} | package com.dtmilano.android.culebratester2.utils
import androidx.test.uiautomator.BySelector
import androidx.test.uiautomator.UiSelector
interface SelectorBundle<T> {
val selector: T
val selectorStr: String
val toString: String
}
data class BySelectorBundle(
override val selector: BySelector,
ov... | 3 | Kotlin | 27 | 98 | 352b6fb49c26bb5ee6456d99fe4070edbe8d9626 | 589 | CulebraTester2-public | Apache License 2.0 |
tmp/arrays/youTrackTests/7108.kt | DaniilStepanov | 228,623,440 | false | null | // Original bug: KT-21862
class Foo {
companion object {
lateinit var foo: String
fun bar() {
println(::foo.isInitialized)
}
}
}
fun main(args: Array<String>) {
Foo.bar()
}
| 1 | null | 11 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 224 | bbfgradle | Apache License 2.0 |
src/test/java/security/validators/DjangoExtraSqlInspectionTest.kt | tonybaloney | 231,985,043 | false | null | package security.validators
import org.junit.jupiter.api.AfterAll
import org.junit.jupiter.api.BeforeAll
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.TestInstance
import security.Checks
import security.SecurityTestTask
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
class DjangoExtraSqlInspectionTes... | 34 | null | 21 | 327 | 5c1ceeb1fb2a18478fa7076a81f9f47fd450e592 | 3,417 | pycharm-security | MIT License |
app/src/main/java/pl/mg6/likeornot/GridPagerAdapter.kt | mg6maciej | 81,643,752 | false | null | package pl.mg6.likeornot
import android.support.annotation.DrawableRes
import android.support.v4.view.PagerAdapter
import android.view.LayoutInflater
import android.view.View
import android.view.View.VISIBLE
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import com.bumptec... | 0 | null | 1 | 4 | bc19e74dd9c7ef17174eec2097fe7d50540828d8 | 2,752 | fluffy-octo-rotary-phone | Apache License 2.0 |
sample/src/main/kotlin/moe/leekcake/live2dforjvm/sample/SampleApp.kt | leekcake | 117,797,529 | false | null | package moe.leekcake.live2dforjvm.sample
import moe.leekcake.live2dforjvm.framework.jni.CubismFrameworkJNI
import moe.leekcake.live2dforjvm.framework.jni.extend.ExtendPALJNI
import moe.leekcake.live2dforjvm.framework.type.extend.CubismCharacter
import moe.leekcake.live2dforjvm.framework.type.math.CubismMatrix44
abstr... | 1 | C++ | 1 | 11 | 686931131b43a1a1c0a6ca6cf01839b28876af2f | 2,738 | Live2D-for-JVM | MIT License |
jetbrains-core/src/software/aws/toolkits/jetbrains/services/lambda/execution/local/SamInvokeRunner.kt | shruti0085 | 198,303,279 | false | {"Gradle Kotlin DSL": 11, "Markdown": 15, "Java Properties": 2, "Shell": 1, "Text": 7, "Ignore List": 3, "Batchfile": 1, "EditorConfig": 3, "YAML": 10, "Kotlin": 784, "XML": 67, "Java": 15, "SVG": 58, "INI": 1, "JSON": 24, "CODEOWNERS": 1, "Microsoft Visual Studio Solution": 5, "C#": 78} | // Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package software.aws.toolkits.jetbrains.services.lambda.execution.local
import com.intellij.execution.configurations.RunProfile
import com.intellij.execution.configurations.RunProfileState
import com.inte... | 1 | null | 1 | 1 | 9445fd14893aad61ffc50fa7f43997b7b0e53aee | 6,524 | aws-toolkit-jetbrains | Apache License 2.0 |
src/test/kotlin/fm/force/quiz/core/service/ScoreServiceTest.kt | night-crawler | 207,094,425 | false | null | package fm.force.quiz.core.service
import fm.force.quiz.core.repository.QuestionRepository
import io.kotlintest.matchers.collections.shouldHaveSize
import io.kotlintest.matchers.numerics.shouldBeExactly
open class ScoreServiceTest(
questionRepository: QuestionRepository,
service: ScoreService
) : AbstractCRU... | 1 | null | 1 | 7 | 0e34f5ff4cd85f877e739260a6055ada933364e2 | 1,975 | quiz | MIT License |
src/test/kotlin/fm/force/quiz/core/service/ScoreServiceTest.kt | night-crawler | 207,094,425 | false | null | package fm.force.quiz.core.service
import fm.force.quiz.core.repository.QuestionRepository
import io.kotlintest.matchers.collections.shouldHaveSize
import io.kotlintest.matchers.numerics.shouldBeExactly
open class ScoreServiceTest(
questionRepository: QuestionRepository,
service: ScoreService
) : AbstractCRU... | 1 | null | 1 | 7 | 0e34f5ff4cd85f877e739260a6055ada933364e2 | 1,975 | quiz | MIT License |
app/src/main/java/com/example/worldcup2022/data/dto/worldcup/Sound.kt | noname6996-tta | 596,634,213 | false | {"Gradle": 5, "JSON": 864, "Java Properties": 8, "Markdown": 5, "Shell": 2, "Text": 24, "HTML": 1, "Batchfile": 2, "INI": 8, "Proguard": 11, "XML": 556, "Kotlin": 191, "Java": 335, "SQL": 4, "Unix Assembly": 2, "Motorola 68K Assembly": 9, "Ignore List": 1} | package com.example.worldcup2022.data.dto.worldcup
import android.os.Parcelable
import com.squareup.moshi.Json
import kotlinx.android.parcel.Parcelize
@Parcelize
class Sound(
@Json(name = "id")
val id: String = "",
@Json(name = "createdAt")
val createdAt: Long = 0L,
@Json(name = "name")
val na... | 0 | Java | 0 | 0 | dbddd12debd5dcf85689a49f92555e5359edd130 | 458 | WorldCupApp | Apache License 2.0 |
plugins/kotlin/refactorings/kotlin.refactorings.tests.k2/test/org/jetbrains/kotlin/idea/k2/refactoring/changeSignature/KotlinFirChangeSignatureTest.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.kotlin.idea.k2.refactoring.changeSignature
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiMethod
import org.jetbrains.kotlin.descriptors.Visibility
import org.je... | 249 | null | 5023 | 15,928 | 9ba394021dc73a3926f13d6d6cdf434f9ee7046d | 2,690 | intellij-community | Apache License 2.0 |
base/build-system/integration-test/native/src/test/java/com/android/build/gradle/integration/nativebuild/CmakeMultiModuleTest.kt | qiangxu1996 | 301,210,525 | false | {"Java": 38854631, "Kotlin": 10438678, "C++": 1701601, "HTML": 795500, "FreeMarker": 695102, "Starlark": 542991, "C": 148853, "RenderScript": 58853, "Shell": 51803, "CSS": 36591, "Python": 32879, "XSLT": 23593, "Batchfile": 8747, "Dockerfile": 7341, "Emacs Lisp": 4737, "Makefile": 4067, "JavaScript": 3488, "CMake": 329... | /*
* Copyright (C) 2017 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... | 1 | Java | 1 | 1 | 3411c5436d0d34e6e2b84cbf0e9395ac8c55c9d4 | 3,175 | vmtrace | Apache License 2.0 |
festival-kotlin-web/src/main/kotlin/cn/bdqfork/kotlin/web/route/message/resolver/ContextParameterResolver.kt | bdqfork | 170,458,565 | false | null | package cn.bdqfork.kotlin.web.route.message.resolver
import io.vertx.core.MultiMap
import io.vertx.core.http.HttpServerRequest
import io.vertx.core.http.HttpServerResponse
import io.vertx.core.json.JsonObject
import io.vertx.ext.web.RoutingContext
import io.vertx.ext.web.Session
import java.lang.reflect.Parameter
/**... | 0 | Java | 19 | 46 | 093db2ce271b2f2bc061e1ddaa873a27c9d34e5d | 1,786 | festival | Apache License 2.0 |
Example Code/AppFromScratch/app/src/main/java/edu/boisestate/getitdone/ToDoManager.kt | ElectronicArmory | 234,005,475 | false | {"Text": 1, "Ignore List": 22, "Gradle": 27, "Java Properties": 18, "Shell": 9, "Batchfile": 9, "Proguard": 9, "Kotlin": 64, "XML": 144, "Java": 1, "JSON": 9, "Godot Resource": 4, "GDScript": 2, "GAP": 1, "INI": 6, "Checksums": 4, "JavaScript": 104, "NPM Config": 1, "EditorConfig": 1, "Markdown": 1, "SVG": 1, "Less": 2... | package edu.boisestate.getitdone
import android.util.Log
import edu.boisestate.getitdone.models.ToDoItem
import edu.boisestate.getitdone.models.ToDoItem_
import io.objectbox.Box
import io.objectbox.BoxStore
import io.objectbox.kotlin.query
import io.objectbox.query.QueryBuilder
import org.greenrobot.eventbus.EventBus
... | 11 | JavaScript | 1 | 4 | a78a58fe0228a046518c131ecdc0745dd5301b26 | 2,624 | Android-Spring-2020 | MIT License |
micronaut-camunda-bpm-feature/jetty-webapp-and-rest/src/test/kotlin/info/novatec/micronaut/camunda/bpm/feature/test/MnTomcatTelemetryRegistryTest.kt | tobiasschaefer | 238,050,000 | true | {"Gradle": 6, "Maven POM": 1, "Java Properties": 3, "Markdown": 7, "Shell": 1, "Text": 3, "Ignore List": 1, "Batchfile": 1, "Git Attributes": 1, "YAML": 9, "Kotlin": 36, "XML": 7, "Java": 53, "Dockerfile": 1, "INI": 1} | package info.novatec.micronaut.camunda.bpm.feature.test
import info.novatec.micronaut.camunda.bpm.feature.MnTelemetryRegistry
import io.micronaut.test.extensions.junit5.annotation.MicronautTest
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Test
import javax.inject.Inject
/**
* Tomcat Tests ... | 4 | Java | 1 | 0 | 00a7aa5f6916a5c764b6210b32063831b753168c | 779 | micronaut-camunda-bpm | Apache License 2.0 |
src/main/kotlin/com/beust/kobalt/api/IClasspathContributor.kt | cy6erGn0m | 46,068,912 | false | null | package com.beust.kobalt.api
import com.beust.kobalt.maven.IClasspathDependency
/**
* Plugins that export classpath entries need to implement this interface.
*/
interface IClasspathContributor : IContributor {
fun entriesFor(project: Project?) : Collection<IClasspathDependency>
}
| 1 | null | 1 | 1 | 49dac2a6b3e4e10321d899601214b9a80ef36087 | 291 | kobalt | Apache License 2.0 |
plugins/ide-startup/importSettings/src/com/intellij/ide/startup/importSettings/chooser/ui/WizardController.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.ide.startup.importSettings.chooser.ui
import com.intellij.ide.startup.importSettings.data.StartupWizardService
import com.intellij.ide.startup.importSettings.wizard.keymapChoose... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 2,801 | intellij-community | Apache License 2.0 |
amkotlinutil/src/main/java/dk/adaptmobile/amkotlinutil/extensions/TransitionExtensions.kt | adaptmobile-organization | 94,333,240 | false | null | package dk.adaptmobile.amkotlinutil.extensions
import android.transition.Scene
import android.transition.Transition
import android.transition.TransitionManager
import android.transition.TransitionSet
import android.view.ViewGroup
fun ViewGroup.startTransition(transition: TransitionSet) {
TransitionManager.go(Scen... | 1 | Kotlin | 1 | 2 | aea255fba3d9a5e59db9c7862573f0b20b4adf05 | 851 | amkotlinutil | Apache License 2.0 |
android/app/src/main/java/mk/grabit/gpay/util/Data.kt | JovanRisteski | 280,016,940 | false | null | package mk.grabit.gpay.util
import mk.grabit.gpay.R
import mk.grabit.gpay.data.model.Cart
import mk.grabit.gpay.data.model.CreditCard
import mk.grabit.gpay.data.model.Merchant
import mk.grabit.gpay.data.model.Transaction
object Data {
val INITIAL_TRANSACTIONS = arrayListOf(
Transaction(
"123",... | 0 | Kotlin | 0 | 0 | 2e95a6cb19f1405b2caa85b56f80a7b4f7aa8157 | 2,664 | qPay | MIT License |
dsl/src/main/kotlin/cloudshift/awscdk/dsl/services/ecs/CfnServiceLogConfigurationPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.ecs
import cloudshift.awscdk.common.CdkDslMarker
import kotlin.Any
import kotlin.String
import kotlin.c... | 1 | Kotlin | 0 | 0 | 17c41bdaffb2e10d31b32eb2282b73dd18be09fa | 7,398 | awscdk-dsl-kotlin | Apache License 2.0 |
samples/messenger/feature_chat_impl/src/main/java/com/revolut/kompot/sample/feature/chat/ui/screens/chat_list/ChatListScreen.kt | revolut-mobile | 488,970,565 | false | null | package com.revolut.kompot.sample.feature.chat.ui.screens.chat_list
import android.view.View
import com.revolut.kompot.common.IOData
import com.revolut.kompot.navigable.screen.BaseRecyclerViewScreen
import com.revolut.kompot.sample.feature.chat.R
import com.revolut.kompot.sample.feature.chat.di.ChatsApiProvider
import... | 0 | Kotlin | 5 | 91 | 1ea49978cd64b74aeac41d1d0bcce68bbcce9d6c | 1,781 | kompot | Apache License 2.0 |
app/src/main/java/com/norm/news/repository/impl/NewsArticlesRepositoryImpl.kt | ashishkharcheiuforks | 270,236,758 | true | {"Kotlin": 51506, "HTML": 24659, "Java": 11285} | package com.norm.news.repository.impl
import androidx.lifecycle.LiveData
import androidx.lifecycle.Transformations
import com.norm.news.database.NewsDatabase
import com.norm.news.database.entity.asDomainModel
import com.norm.news.domain.NewsArticles
import com.norm.news.network.NewsApiService
import com.norm.news.netw... | 0 | null | 0 | 0 | e22ecb6e00ea3bcc4de50b436afb78bbc62552f0 | 1,399 | news-1 | MIT License |
src/main/kotlin/net/devoev/vanilla_cubed/item/armor/ElytraArmorBuilder.kt | Devoev | 473,273,645 | false | {"Kotlin": 259944, "Java": 37528} | package net.devoev.vanilla_cubed.item.armor
import net.devoev.vanilla_cubed.item.modifier.ItemModifiers
import net.fabricmc.fabric.api.entity.event.v1.FabricElytraItem
import net.fabricmc.fabric.api.item.v1.FabricItemSettings
import net.minecraft.item.ArmorItem
import net.minecraft.item.ArmorMaterial
import net.minecr... | 0 | Kotlin | 2 | 1 | 606da9a71725e805f5b423a288612a046c18d782 | 1,221 | vanilla-cubed | MIT License |
data/src/main/java/com/piotrek1543/android/boilerplate/data/model/CityEntity.kt | piotrek1543 | 168,876,182 | false | null | package com.piotrek1543.android.boilerplate.data.model
/**
* Representation for a [CityEntity] fetched from an external layer data source
*/
data class CityEntity(
val id: Int?,
val name: String?,
val coordEntity: CoordEntity? = null,
val country: String? = null,
val populatio... | 0 | Kotlin | 0 | 8 | a5510a569d306660d03263f039ab02882c531e2c | 337 | sunshine_clean_architecture | MIT License |
sheets/src/main/java/com/dokar/sheets/BottomSheet.material.kt | dokar3 | 496,867,717 | false | null | package com.dokar.sheets.m3
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.Shape
import com.dokar.sheets.BottomSheetState
import com.dokar.sheets.CoreBottomSheet
import com.dokar.sheets.CoreBottomSheetDefaults... | 5 | null | 6 | 90 | 94fb60f48646103c556782711c3cba88d61f97e8 | 3,956 | sheets | Apache License 2.0 |
app/src/main/java/com/nonetxmxy/mmzqfxy/repository/create/OrderRepository.kt | AnFxy | 623,415,411 | false | null | package com.nonetxmxy.mmzqfxy.repository.create
import com.nonetxmxy.mmzqfxy.BuildConfig
import com.nonetxmxy.mmzqfxy.base.LocalCache
import com.nonetxmxy.mmzqfxy.model.*
import com.nonetxmxy.mmzqfxy.model.auth.ConfirmMessage
import com.nonetxmxy.mmzqfxy.model.response.AppBean
import com.nonetxmxy.mmzqfxy.model.respon... | 0 | Kotlin | 0 | 0 | 5fa1b0610746a42a8adad1f7da282842356851d1 | 13,370 | M22 | Apache License 2.0 |
hlibrary/src/main/java/com/hq/hlibrary/net/BaseNetProvider.kt | EnjoyLoveSky | 199,770,998 | false | {"Java": 222454, "Kotlin": 54682} | package com.hq.hlibrary.net
import android.content.Context
import com.franmontiel.persistentcookiejar.PersistentCookieJar
import com.franmontiel.persistentcookiejar.cache.SetCookieCache
import com.franmontiel.persistentcookiejar.persistence.SharedPrefsCookiePersistor
import com.hq.hlibrary.BuildConfig
import okhttp3.*... | 1 | null | 1 | 1 | 99d81582ab7900cb2b44cca0126d71eb74ee89f2 | 3,393 | HLibLX | Apache License 2.0 |
mmock-runtime/src/commonMain/kotlin/com/pega/mmock/dsl/RecordingContext.kt | pegasystems | 294,162,816 | false | null | /*
* Copyright 2020 Pegasystems Inc. All rights reserved.
* Use of this source code is governed by a Apache 2.0 license that can be found in the LICENSE file.
*/
package com.pega.mmock.dsl
import com.pega.mmock.backend.stack.ArgumentStackElement
import com.pega.mmock.backend.stack.Invocation
import com.pega.mmock.... | 12 | Kotlin | 0 | 9 | 6689bcaa9970d1daf139b1d9cc794d47b0d9c0c9 | 4,273 | mmock | Apache License 2.0 |
app/src/androidTest/java/uk/co/jakelee/daggerexperiments/proandroiddev/ProAndroidDevTests.kt | JakeSteam | 186,659,265 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Markdown": 1, "Proguard": 1, "Kotlin": 21, "XML": 20, "Java": 9} | package uk.co.jakelee.daggerexperiments.proandroiddev
import android.support.test.InstrumentationRegistry
import android.support.test.runner.AndroidJUnit4
import org.junit.Assert.assertEquals
import org.junit.Test
import org.junit.runner.RunWith
import uk.co.jakelee.daggerexperiments.R.id.tvDate
import android.support... | 1 | null | 1 | 1 | 9083208b90f66f68ad7e8b8cd27a35f9f27d0d24 | 1,688 | dagger-experiments | MIT License |
app/src/main/java/com/cleanarchitectureexample/presentation/viewModel/PostViewModel.kt | yogesh67gurjar | 780,857,597 | false | {"Kotlin": 17470} | package com.cleanarchitectureexample.presentation.viewModel
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.cleanarchitectureexample.domain.model.PostResponse
import com.cleanarchitectureexample.domain.useCase.PostUseCases
import com.cleanarchitectureexample.utils.Resource
impor... | 0 | Kotlin | 0 | 0 | d236760a2c05e41b65d96ef5732949e5e3ea8eb3 | 1,466 | Clean-Code-Architecture-With-MVVM | MIT License |
app/src/main/java/com/example/AppTodoList/utils/DataAccessStrategy.kt | luga97 | 349,090,083 | false | null | package com.example.AppTodoList.utils
import androidx.lifecycle.LiveData
import androidx.lifecycle.liveData
import androidx.lifecycle.map
import com.example.AppTodoList.data.entities.Task
import com.example.AppTodoList.data.entities.TaskResponse
import com.example.AppTodoList.utils.Resource.Status.*
import kotlinx.cor... | 0 | Kotlin | 0 | 0 | b87aae8de7af134a637f63465513914dd2b44fba | 2,111 | AppTodoList | Apache License 2.0 |
app/src/main/java/com/recep/technologynews/recyclerview/NewsAdapter.kt | recfr | 434,942,783 | false | {"Kotlin": 24898} | package com.recep.technologynews.recyclerview
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.recep.technologynews.databinding.AdapterItemNewsPosterBinding
import com.recep.technologynews.model.NewsModel
class NewsAdapter(private val newsLis... | 0 | Kotlin | 0 | 1 | e06e69315c1de5f10dfa33651057ff3efb393ee9 | 900 | TechNews | MIT License |
backend.native/tests/runtime/collections/array2.kt | rnyati | 96,370,995 | true | {"Markdown": 18, "Git Config": 1, "Gradle": 26, "Java Properties": 4, "Shell": 17, "Text": 73, "Ignore List": 1, "Batchfile": 1, "XML": 12, "Kotlin": 4344, "C": 27, "Makefile": 1, "Java": 2, "Protocol Buffer": 2, "Pascal": 1, "C++": 26, "Groovy": 6, "INI": 2, "OpenStep Property List": 1} | fun main(args : Array<String>) {
val byteArray = Array<Byte>(5, { i -> (i * 2).toByte() })
byteArray.map { println(it) }
val intArray = Array<Int>(5, { i -> i * 4 })
println(intArray.sum())
} | 0 | Kotlin | 0 | 0 | a56a53f408f18e91fcc15b0b165babc0658d2352 | 208 | kotlin-native | Apache License 2.0 |
core/generator/src/main/java/com/wada811/adx/core/generator/Generator.kt | wada811 | 562,910,344 | false | null | package com.wada811.adx.core.generator
object Generator {
@JvmStatic
fun main(vararg args: String) {
Params.values().forEach {
with(DetectorGenerator) {
it.generate()
}
with(TestResourceGenerator) {
it.generate()
}
... | 0 | Kotlin | 0 | 2 | 5584c0ecbadbede23c519636c87ce6fa4b21faae | 414 | adx | Apache License 2.0 |
src/main/kotlin/com/minmax/ultradex/jei/registires/PixelmonSpawnListener.kt | m-nny | 640,413,391 | false | null | package com.minmax.ultradex.jei.registires
import com.google.gson.JsonElement
import com.pixelmonmod.pixelmon.api.spawning.SpawnSet
import com.pixelmonmod.pixelmon.spawning.PixelmonSpawning
import net.minecraft.client.resources.JsonReloadListener
import net.minecraft.profiler.IProfiler
import net.minecraft.resources.I... | 0 | Kotlin | 0 | 0 | 78618d476f95639778cb1d6422efb17a34042c2f | 884 | ultradex | MIT License |
app/src/main/java/org/fnives/tiktokdownloader/data/local/persistent/SharedPreferencesManagerImpl.kt | fknives | 309,122,353 | false | {"HTML": 1099221, "Kotlin": 222872} | package org.fnives.tiktokdownloader.data.local.persistent
import android.content.Context
import android.content.SharedPreferences
import kotlinx.coroutines.channels.awaitClose
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.callbackFlow
import kotlin.properties.ReadOnlyProperty
import kotlin.propert... | 7 | HTML | 4 | 16 | 027f4e89d6b0fddf899005b2cb1dec0437129c6c | 4,052 | TikTok-Downloader | Apache License 2.0 |
modules/wasm-binary/src/commonMain/kotlin/reader/FunctionBodyReader.kt | wasmium | 761,480,110 | false | {"Kotlin": 352107, "JavaScript": 200} | @file:OptIn(ExperimentalUnsignedTypes::class)
package org.wasmium.wasm.binary.reader
import org.wasmium.wasm.binary.ParserException
import org.wasmium.wasm.binary.WasmBinary
import org.wasmium.wasm.binary.WasmSource
import org.wasmium.wasm.binary.toHexString
import org.wasmium.wasm.binary.tree.Opcode.*
import org.was... | 0 | Kotlin | 0 | 1 | f7ddef76630278616d221e7c8251adf0f11b9587 | 51,990 | wasmium-wasm-binary | Apache License 2.0 |
app/src/main/java/wutheringwavesguide/models/api/characterdetail/Multiplier.kt | nikunj3011 | 810,402,672 | false | {"Kotlin": 247322} | package wutheringwavesguide.models.api.characterdetail
data class Multiplier(
val Lv1: String,
val Lv10: String,
val Lv2: String,
val Lv3: String,
val Lv4: String,
val Lv5: String,
val Lv6: String,
val Lv7: String,
val Lv8: String,
val Lv9: String,
val Name: String
) | 0 | Kotlin | 0 | 0 | 9bf0e2f5bcae9938c522d9aa604777d791c2a9da | 312 | Wuthering.Waves.Android.Kotlin | MIT License |
KotlinMultiplatform/XFullStack/server/src/main/kotlin/com/pradyotprakash/xfullstack/features/chat/controllers/sendMessage/SendMessageController.kt | pradyotprksh | 385,586,594 | false | {"Kotlin": 2932498, "Dart": 1066884, "Python": 319755, "Rust": 180589, "Swift": 149003, "C++": 113494, "JavaScript": 103891, "CMake": 94132, "HTML": 57188, "Go": 45704, "CSS": 18615, "SCSS": 17864, "Less": 17245, "Ruby": 13609, "Dockerfile": 9772, "C": 8043, "Shell": 7657, "PowerShell": 3045, "Nix": 2616, "Makefile": 1... | package com.pradyotprakash.xfullstack.features.chat.controllers.sendMessage
import com.pradyotprakash.xfullstack.data.chat.ChatDataSource
import com.pradyotprakash.xfullstack.data.message.MessageDataSource
import com.pradyotprakash.xfullstack.data.tweet.TweetDataSource
import com.pradyotprakash.xfullstack.data.user.Us... | 0 | Kotlin | 11 | 24 | a31e612a63e1dc42ed4cf2f50db90b8613fb5177 | 653 | development_learning | MIT License |
sample/src/main/java/me/gm/selection/sample/SampleTheme.kt | MaterialCleaner | 755,919,230 | false | {"Kotlin": 77852} | /*
* Copyright 2024 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | Kotlin | 0 | 1 | 6105d479c1c758eaefdf60dcbca81c09e10e08be | 1,575 | compose-selection-tracker | Apache License 2.0 |
Desafio_Camp2024/app/src/main/java/com/example/desafio_camp2024/ui/Constants.kt | RafaCaire1507 | 794,316,804 | false | {"Kotlin": 39880} | package com.example.desafio_camp2024.ui
object Constants {
const val BASE_URL = "https://pokeapi.co/api/v2/"
var START_PAGE_INDEX = 0
const val PAGE_SIZE = 20
} | 0 | Kotlin | 0 | 0 | f4cb05caecb1408565bd5af43874caccbc1c4c0b | 175 | Desafio_Camp2024-Android | MIT License |
app/src/main/java/com/flixclusive/data/usecase/HomeItemsProviderUseCaseImpl.kt | rhenwinch | 659,237,375 | false | {"Kotlin": 1156049} | package com.flixclusive.data.usecase
import com.flixclusive.domain.common.Resource
import com.flixclusive.domain.config.ConfigurationProvider
import com.flixclusive.domain.model.config.HomeCategoryItem
import com.flixclusive.domain.model.tmdb.Film
import com.flixclusive.domain.model.tmdb.FilmType
import com.flixclusiv... | 4 | Kotlin | 7 | 96 | a90215b8c40ac0675cd217b38b842d2d57c90acc | 7,498 | Flixclusive | MIT License |
src/main/kotlin/org/eclipse/tractusx/bpdmcertificatemanagement/controller/CertificateController.kt | eclipse-tractusx | 708,735,788 | false | {"Kotlin": 53243, "Smarty": 2550, "Dockerfile": 806} | /*
* Copyright (c) 2023 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is availab... | 14 | Kotlin | 1 | 1 | d37c7e41d0ee984c2c17c079adad27a5b86f3672 | 1,739 | bpdm-certificate-management | Apache License 2.0 |
src/main/kotlin/com/example/passwordmanager/PasswordModel.kt | tomasbalaz | 486,977,938 | false | null | package com.example.passwordmanager
import javax.persistence.*
@Entity
@Table(name = "passwords")
class PasswordModel(
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
var id: Long? = null,
var username: String,
var password: String,
var url: String
) {
constructor() : this(null, "... | 0 | Kotlin | 0 | 0 | cfd810f2ee5345993ed427820c073e2cb083f16c | 332 | password-manager | MIT License |
watari-codec-pmp/src/main/kotlin/tv/dotstart/watari/protocol/pmp/codec/AbstractWireMessageDecoder.kt | dotStart | 517,175,816 | false | null | /*
* Copyright 2022 Johannes Donath <johannesd@torchmind.com>
* and other copyright owners as documented in the project's IP log.
*
* 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
*
* ... | 0 | Kotlin | 0 | 0 | 13214a53df9d144c6e0c81e543b4f2a0326bc6c8 | 2,385 | watari | Apache License 2.0 |
plugins/gradle/java/src/codeInspection/fix/fixUtil.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.plugins.gradle.codeInspection.fix
import com.intellij.psi.PsiElement
import com.intellij.psi.util.siblings
import org.jetbrains.plugins.groovy.lang.psi.GroovyFile
import org.je... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 1,734 | intellij-community | Apache License 2.0 |
idea/testData/intentions/loopToCallChain/toCollection/toSetWithMap.kt | JakeWharton | 99,388,807 | true | null | // WITH_STDLIB
// INTENTION_TEXT: "Replace with 'map{}.toSet()'"
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.toSet()'"
import java.util.HashSet
fun foo(map: Map<Int, String>): Collection<Int> {
val result = HashSet<Int>()
<caret>for (s in map.values) {
result.add(s.length)
}
return r... | 1 | Kotlin | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 327 | kotlin | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.