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/wms/android/ui/check/CheckQueryActivity.kt | nickcalotu | 291,623,185 | false | null | package com.wms.android.ui.check
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.recyclerview.widget.LinearLayoutManager
import com.wms.android.R
import com.wms.android.adapter.CheckQueryAdapter
import com.wms.android.adapter.OutstockAdapter
import com.wms.android.adapter.Outst... | 0 | Kotlin | 0 | 0 | 52a321a10626e834e2541b21c9b981ea03507fc4 | 2,402 | WMSAndroid | Apache License 2.0 |
app/src/main/java/com/forcetower/uefs/feature/purchases/SkuDetailsAdapter.kt | Matoro17 | 171,460,349 | false | {"Gradle": 7, "INI": 1, "Markdown": 9, "Shell": 2, "Text": 6, "Ignore List": 4, "Batchfile": 1, "Java Properties": 1, "Proguard": 2, "XML": 320, "JSON": 21, "Kotlin": 398, "Java": 48, "Gradle Kotlin DSL": 6, "YAML": 1} | /*
* Copyright (c) 2019.
* <NAME> <<EMAIL>>
*
* This file is part of the UNES Open Source Project.
*
* UNES is licensed under the MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in th... | 1 | null | 1 | 1 | 000e7aa8b9123959d2704ee5dc9b45b03b46dbb1 | 2,618 | Melon | MIT License |
src/main/kotlin/com/ak47/cms/cms/advice/GlobalExceptionHandlerAdvice.kt | AK-47-D | 110,919,327 | false | {"JavaScript": 1586688, "CSS": 1071932, "Java": 117681, "Kotlin": 93766, "FreeMarker": 92511} | package com.ak47.cms.cms.advice
import org.springframework.web.bind.annotation.ControllerAdvice
import org.springframework.web.bind.annotation.ExceptionHandler
import org.springframework.web.servlet.ModelAndView
import javax.servlet.http.HttpServletRequest
@ControllerAdvice
class GlobalExceptionHandlerAdvice {
@... | 0 | JavaScript | 3 | 3 | 5f216e4af86fd89254d6783b32d6887e41f195fe | 770 | cms-spider | Apache License 2.0 |
feature/lightbox/view/implementation/src/main/kotlin/com/savvasdalkitsis/uhuruphotos/feature/lightbox/view/implementation/ui/LightboxBackHandler.kt | savvasdalkitsis | 485,908,521 | false | {"Kotlin": 2667740, "Ruby": 1294, "PowerShell": 325, "Shell": 158} | /*
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 writing, software
distribu... | 70 | Kotlin | 26 | 358 | a1159f2236f66fe533f7ba785d47e4201e10424a | 1,744 | uhuruphotos-android | Apache License 2.0 |
app/src/main/java/com/acalapatih/oneayat/core/domain/model/hafalanquran/HafalanAyatModel.kt | acalapatih | 768,430,197 | false | {"Kotlin": 309390} | package com.acalapatih.oneayat.core.domain.model.hafalanquran
import com.acalapatih.oneayat.core.data.source.remote.response.GetAyatResponse
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flowOf
data class HafalanAyatModel(
val namaSurat: String,
val nomorAyat: String,
val lafadzAyat: ... | 0 | Kotlin | 0 | 0 | 402c62f0591e2c780cf2aa09d7ceefb255054165 | 870 | OneAyat_mobileApp | MIT License |
app/src/main/java/com/example/dropy/ui/components/rider/incomingjobs/incomingjoblist/IncomingJobsList.kt | dropyProd | 705,360,878 | false | {"Kotlin": 3916897, "Java": 20617} | package com.example.dropy.ui.components.rider.incomingjobs.incomingjoblist
import android.util.Log
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import andro... | 0 | Kotlin | 0 | 0 | 6d994c9c61207bac28c49717b6c250656fe4ae6b | 3,678 | DropyLateNights | Apache License 2.0 |
src/backend/ci/core/process/api-process/src/main/kotlin/com/tencent/devops/process/pojo/BuildStageProgressInfo.kt | TencentBlueKing | 189,153,491 | false | {"Kotlin": 30176725, "Vue": 6739254, "JavaScript": 1256623, "Go": 616850, "Lua": 567159, "TypeScript": 461781, "SCSS": 365654, "Shell": 157561, "Java": 153049, "CSS": 106299, "HTML": 96201, "Python": 39238, "Less": 24714, "Makefile": 10630, "Smarty": 10297, "Dockerfile": 5097, "Batchfile": 4908, "PowerShell": 1626, "VB... | package com.tencent.devops.process.pojo
import io.swagger.v3.oas.annotations.media.Schema
@Schema(title = "阶段进度")
data class BuildStageProgressInfo(
@get:Schema(title = "阶段进度", required = true)
var stageProgressRete: Double? = null,
@get:Schema(title = "task进度", required = true)
var taskProgressList: ... | 719 | Kotlin | 498 | 2,382 | dd483c38bdbe5c17fa0e5e5bc3390cd1cd40757c | 358 | bk-ci | MIT License |
lib/src/commonMain/kotlin/xyz/mcxross/ksui/client/SuiWebSocketClient.kt | mcxross | 611,172,630 | false | null | package xyz.mcxross.ksui.client
import io.ktor.client.plugins.websocket.*
import io.ktor.http.*
import io.ktor.websocket.*
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.buildJsonObject
import kotlinx.serialization.json.put
import kotlinx.serialization.json.putJsonArray
import kotlinx.seriali... | 0 | Kotlin | 1 | 3 | 5f84bf90bc7676794a4d27ec05ef35b30d245a56 | 2,724 | ksui | Apache License 2.0 |
src/main/kotlin/fr/chsfleury/cryptomoon/infrastructure/dto/ATHRecord.kt | chsfleury | 454,322,300 | false | null | package fr.chsfleury.cryptomoon.infrastructure.dto
import fr.chsfleury.cryptomoon.domain.model.Currencies
import fr.chsfleury.cryptomoon.domain.model.Currency
import java.math.BigDecimal
import java.sql.ResultSet
class ATHRecord(resultSet: ResultSet) {
val currency: Currency = Currencies[resultSet.getString("curr... | 0 | Kotlin | 1 | 0 | 40673008d2f9addda353f1225067ee9e433c0a34 | 390 | cryptomoon | Apache License 2.0 |
idea/testData/inspectionsLocal/removeRedundantSpreadOperator/doubleArrayOf.kt | git-ztx | 96,293,402 | true | {"Java": 23919831, "Kotlin": 23392350, "JavaScript": 138621, "Protocol Buffer": 57064, "HTML": 52379, "Lex": 18174, "Groovy": 14228, "ANTLR": 9797, "IDL": 8057, "Shell": 5883, "CSS": 4679, "Batchfile": 4437} | fun foo(vararg x: Double) {}
fun bar() {
foo(*doubleArrayOf<caret>(1.0))
}
| 0 | Java | 0 | 1 | d97fa604e11940db8cd0e70eedfadf702de6327f | 80 | kotlin | Apache License 2.0 |
backend/src/main/kotlin/uk/gov/justice/digital/backend/controller/PublishController.kt | ministryofjustice | 620,391,775 | false | null | package uk.gov.justice.digital.backend.controller
import io.micronaut.http.HttpResponse
import io.micronaut.http.HttpStatus.UNPROCESSABLE_ENTITY
import io.micronaut.http.MediaType.APPLICATION_JSON
import io.micronaut.http.annotation.Controller
import io.micronaut.http.annotation.Error
import io.micronaut.http.annotati... | 1 | Kotlin | 1 | 1 | d3706af83531ec6116768c25ce94d0bfe78e9d5f | 1,223 | digital-prison-reporting-domain-builder | MIT License |
backend/src/main/kotlin/uk/gov/justice/digital/backend/controller/PublishController.kt | ministryofjustice | 620,391,775 | false | null | package uk.gov.justice.digital.backend.controller
import io.micronaut.http.HttpResponse
import io.micronaut.http.HttpStatus.UNPROCESSABLE_ENTITY
import io.micronaut.http.MediaType.APPLICATION_JSON
import io.micronaut.http.annotation.Controller
import io.micronaut.http.annotation.Error
import io.micronaut.http.annotati... | 1 | Kotlin | 1 | 1 | d3706af83531ec6116768c25ce94d0bfe78e9d5f | 1,223 | digital-prison-reporting-domain-builder | MIT License |
src/test/kotlin/com/oaat/web/MessageApiTest.kt | pull-vert | 114,529,834 | false | null | /*
* Copyright 2018-2019 OAAT's author : <NAME>. Use of this source code is governed by the Apache 2.0 license.
*/
package com.oaat.web
import com.oaat.REACTOR_IS_OUT_UUID
import com.oaat.repositories.MessageRepository
import com.oaat.web.dtos.MessageGetDto
import com.oaat.web.dtos.MessageSaveDto
import org.assertj... | 0 | Kotlin | 0 | 1 | fc45ad63284830e138c57256d123d02dd1061a92 | 11,970 | oaat-old | Apache License 2.0 |
src/main/kotlin/com/buckstabue/stickynotes/idea/toolwindow/activenote/ActiveStickyNoteViewModel.kt | Buckstabue | 225,958,036 | false | null | package com.buckstabue.stickynotes.idea.toolwindow.activenote
data class ActiveStickyNoteViewModel(
val showEmptyState: Boolean,
val activeNoteDescription: String,
val showOpenActiveStickyNoteButton: Boolean
)
| 9 | Kotlin | 2 | 9 | ab07743f043a69a6a7c19d8f36bf483e1205fc06 | 223 | sticky_notes_idea | Apache License 2.0 |
src/main/kotlin/cn/labzen/network/tcp/server/TcpServerHandlerAdapter.kt | labzen | 840,102,322 | false | {"Kotlin": 85609, "Java": 2479} | package cn.labzen.network.tcp.server
import cn.labzen.network.tcp.TCP
import cn.labzen.network.tcp.TcpCommandDispatcher
import cn.labzen.network.tcp.TcpCommunicationMode
import cn.labzen.network.tcp.TcpHandler
import io.netty.channel.ChannelHandler
import io.netty.channel.ChannelHandlerContext
import io.netty.channel.... | 0 | Kotlin | 0 | 0 | 69ade39417c23ca4272427fdb86613b98e3e98bc | 2,102 | network | Apache License 2.0 |
ground/src/main/java/com/google/android/ground/MainViewModel.kt | google | 127,777,820 | false | null | /*
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 184 | Kotlin | 110 | 196 | 8cf2b6a0ecb71f9b476f45c44a8c1662ec71b604 | 5,033 | ground-android | Apache License 2.0 |
core/src/test/kotlin/ch/ergon/dope/resolvable/expression/unaliased/type/conditional/SearchResultTest.kt | ergon | 745,483,606 | false | {"Kotlin": 1205709} | package ch.ergon.dope.resolvable.expression.unaliased.type.conditional
import ch.ergon.dope.DopeQuery
import ch.ergon.dope.DopeQueryManager
import ch.ergon.dope.helper.ManagerDependentTest
import ch.ergon.dope.helper.someBoolean
import ch.ergon.dope.helper.someNumber
import ch.ergon.dope.helper.someNumberField
import ... | 7 | Kotlin | 0 | 4 | 42fa0cae0dd7aaa9f8434ec7fdbc60369abac6ea | 9,492 | dope-query-builder | MIT License |
kotlin-node/src/jsMain/generated/node/wasi/WASI.class.kt | JetBrains | 93,250,841 | false | {"Kotlin": 13127769, "JavaScript": 292124} | // Generated by Karakum - do not modify it manually!
@file:JsModule("node:wasi")
package node.wasi
/**
* The `WASI` class provides the WASI system call API and additional convenience
* methods for working with WASI-based applications. Each `WASI` instance
* represents a distinct environment.
* @since v13.3.0, v... | 34 | Kotlin | 165 | 1,285 | 773f04a2a29200495c039e8c026170c4bf2965aa | 2,278 | kotlin-wrappers | Apache License 2.0 |
app/src/main/java/io/awesdroid/asrdemokt/viewmodel/MyViewModel.kt | gaoyiyeah | 185,906,598 | false | null | package io.awesdroid.asrdemokt.viewmodel
import android.app.Application
import android.arch.lifecycle.AndroidViewModel
import android.arch.lifecycle.LiveData
import android.arch.lifecycle.MutableLiveData
import android.util.Log
import io.awesdroid.asasr.Event
import io.awesdroid.asasr.SpeechService
import io.awesdroid... | 0 | Kotlin | 0 | 0 | 343e0e2bddb61b20461b0db668430bd9d257d78d | 2,417 | AsrDemoKt | Apache License 2.0 |
app/src/main/kotlin/moe/pine/meteorshower/services/setting/Setting.kt | pine | 177,103,749 | false | null | package moe.pine.meteorshower.services.setting
data class Setting(
val excludeRepositories: List<SettingExcludeRepository>,
val excludeForked: Boolean,
val excludeGist: Boolean
) | 0 | Kotlin | 0 | 0 | 0f9bffd7066283fa8cb63275378ce30eaef30e0d | 191 | meteorshower-server | MIT License |
src/main/kotlin/me/damon/schoolbot/commands/sub/school/course/CourseView.kt | day-mon | 450,948,808 | false | {"Kotlin": 308718, "Dockerfile": 1374} | package me.damon.schoolbot.commands.sub.school.course
import me.damon.schoolbot.objects.command.CommandCategory
import me.damon.schoolbot.objects.command.CommandEvent
import me.damon.schoolbot.objects.command.SubCommand
import me.damon.schoolbot.service.CourseService
import org.springframework.stereotype.Component
@C... | 0 | Kotlin | 0 | 2 | 7fc75f84a247060a53049ca04eb9c61fedf4b3b8 | 1,017 | Schoolbot-kt | Apache License 2.0 |
app/shared/src/main/java/com/vallem/sylph/shared/data/remote/EventVotesRemoteDataSource.kt | leonardovallem | 613,461,263 | false | {"Kotlin": 308660} | package com.vallem.sylph.shared.data.remote
import com.amazonaws.services.dynamodbv2.model.DeleteItemResult
import com.amazonaws.services.dynamodbv2.model.PutItemResult
import com.vallem.sylph.shared.data.dynamo.dto.EventVote
interface EventVotesRemoteDataSource {
suspend fun vote(vote: EventVote): PutItemResult?... | 0 | Kotlin | 0 | 0 | 27615ff4672845892d2150ed7069702b521115ef | 634 | sylph | MIT License |
code/1608. Completing the Detail List View Layout your_second_app_p3-e7/Final/ListMaker/app/src/main/java/com/raywenderlich/listmaker/ListSelectionRecyclerViewAdapter.kt | iOSDevLog | 186,328,282 | false | null | package com.raywenderlich.listmaker
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.ViewGroup
/**
* Created by Brian on 2/22/18.
*/
class ListSelectionRecyclerViewAdapter(val lists : ArrayList<TaskList>, val clickListener: ListSelectionRecyclerViewClickListener) ... | 0 | null | 1 | 4 | 8b81fbeb046abfeda95f9870c3c29b4998dbb12d | 1,304 | raywenderlich | MIT License |
03-flow-of-control/src/FocApp6.kt | johnehunt | 286,785,922 | false | null | fun main() {
val snowing = true
val temp = -1
if (temp < 0) {
println("It is freezing")
if (snowing) {
println("Put on boots")
}
println("Time for Hot Chocolate")
}
println("Bye")
} | 0 | Kotlin | 0 | 3 | 9fe70db1b4a3435dcfb002512c345e519db1a5f8 | 247 | kotlin-book | Apache License 2.0 |
app/src/main/java/com/bitshares/oases/MainApplication.kt | huskcasaca | 464,732,039 | false | null | package com.bitshares.oases
import android.content.Context
import android.net.ConnectivityManager
import androidx.appcompat.app.AppCompatDelegate
import androidx.core.content.getSystemService
import androidx.lifecycle.AndroidViewModel
import com.bitshares.oases.database.BlockchainDatabase
import com.bitshares.oases.da... | 0 | Kotlin | 4 | 5 | 2522ec7169a5fd295225caf936bae2edf09b157e | 3,232 | bitshares-oases-android | MIT License |
app/src/main/java/com/cyberflow/sparkle/im/view/IMScanAct.kt | sparkle-technologies | 678,261,271 | false | {"Java": 2622804, "Kotlin": 426072} | package com.cyberflow.sparkle.im.view
import android.content.Context
import android.content.Intent
import android.graphics.Rect
import android.os.Bundle
import android.provider.MediaStore
import android.text.TextUtils
import android.util.Log
import android.view.View
import android.widget.FrameLayout
import android.wid... | 1 | null | 1 | 1 | dfb48c9312186d3ccd47702c18f175bd0e620a87 | 8,799 | Sparkle-Android-V2 | MIT License |
idea/testData/inspections/unusedSymbol/typeParameter/unusedClassTypeParameter.kt | JakeWharton | 99,388,807 | true | null | class UnusedClassTypeParameter<T>(p: String) {
{
println(p)
}
}
fun main(args: Array<String>) {
UnusedClassTypeParameter("")
} | 0 | Kotlin | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 147 | kotlin | Apache License 2.0 |
app/src/main/java/openfoodfacts/rackluxury/scrachx/openfood/features/product/view/ingredients_analysis/IngredientsAnalysisViewModel.kt | HarshAProgrammer | 408,843,801 | false | null | package openfoodfacts.rackluxury.scrachx.openfood.features.product.view.ingredients_analysis
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.liveData
import androidx.lifecycle.switchMap
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.... | 1 | null | 1 | 1 | 0c1b8e7a463d55d2b160c3a28ef6daefdaca939f | 927 | FoodFacts | Apache License 2.0 |
app-kotlin/src/main/java/fudi/freddy/mokitosample/mvp_sevice/ModelPresent.kt | romellfudi | 142,795,499 | false | null | package fudi.freddy.mokitosample.mvp_sevice
import android.R
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.support.v4.content.LocalBroadcastManager
import android.util.Log
import android.view.View
import android.... | 1 | null | 1 | 2 | c753df77b037498cbc90cd5351d58002698809c7 | 2,290 | MockitoSample | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/findUsages/libraryUsages/findLibraryFunctionUsages/labeledReturns/_library/labeledReturns.kt | ingokegel | 72,937,917 | false | null | package library
fun <R> foo(f: () -> R) = f()
fun test() {
foo {
return@foo false
}
foo(fun(): Boolean { return@foo false })
}
| 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 152 | intellij-community | Apache License 2.0 |
app/src/main/java/eu/kanade/tachiyomi/ui/base/activity/BaseRxActivity.kt | goldbattle | 236,610,893 | false | null | package eu.kanade.tachiyomi.ui.base.activity
import eu.kanade.tachiyomi.ui.base.presenter.BasePresenter
import nucleus.view.NucleusAppCompatActivity
abstract class BaseRxActivity<P : BasePresenter<*>> : NucleusAppCompatActivity<P>() {
init {
}
}
| 1 | null | 1 | 2 | eaaa6a674a111571c9abfa6db4c63978fc1ae854 | 258 | Neko | Apache License 2.0 |
BBChat/src/main/java/id/bluebird/chat/Platform.kt | bluebird-id | 715,886,189 | false | {"Gradle": 5, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 4, "Batchfile": 1, "Git Attributes": 1, "Markdown": 3, "INI": 1, "Proguard": 3, "Kotlin": 37, "XML": 154, "Java": 137, "Protocol Buffer": 1, "JSON": 2} | package id.bluebird.chat
enum class Platform(val value: Int) {
iOS(1),
Android(2),
Huawei(3)
} | 0 | Java | 0 | 0 | 292935626a93cdba391ebe4d69862532debc8e4e | 107 | bb-chat-android | Apache License 2.0 |
Data/app/src/androidTest/java/com/microsoft/azureandroiddatasample/ExampleInstrumentedTest.kt | NateRickard | 108,568,001 | false | null | package com.microsoft.azureandroiddatasample
import android.support.test.InstrumentationRegistry
import android.support.test.runner.AndroidJUnit4
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.Assert.*
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT... | 1 | Kotlin | 1 | 1 | 4eab6b9b30698081e7f7092e3b5d7e5645fd33f9 | 780 | Azure.Android | MIT License |
src/chapter4/GetterSetter.kt | KyleYoung214 | 188,695,649 | false | null | package chapter4
class Someone(val name: String) {
var address: String = "unspecified"
set(value) {
println("$name is living at/in/on $value")
field = value
}
}
class LengthCounter {
var counter: Int = 0
private set // cannot modify outside the class
... | 1 | null | 1 | 1 | 4caefa6a8bbd6ebd61a06542333e84a825226d7d | 591 | kotlinLearning | MIT License |
2nd Course/Projects/Programacion Multimedia y Dispositivos/BLOQUE 1/ProyectoCerveza/src/main/kotlin/Main.kt | stanmkr | 505,510,534 | false | {"Java": 915903, "C#": 86315, "Python": 56896, "Kotlin": 32374, "HTML": 22653, "CSS": 6768, "XQuery": 3005} | import java.text.DecimalFormat
import kotlin.math.*
/**
* Autor: <NAME>
* 2º DAM
* Septiembre / 2022
*/
fun programaTerminado(){
println("Introduce bien las cantidades máquina, que eres un máquina...\n")
println("Terminando programa...")
println("Programa terminado.")
}
fun esPositivo (valor: Double):... | 1 | null | 1 | 1 | 1442b56b9363210583086461157d67ebc67c2f18 | 2,295 | IES-Thiar | MIT License |
src/main/java/de/fhg/ipa/ced/awx_jwt_authenticator/awx/model/Team.kt | FabOS-AI | 607,163,616 | false | null | package org.eclipse.slm.awx_jwt_authenticator.awx.model
import java.util.*
data class Team(
var id: Int,
var type: String,
var url: String,
var related: Map<String, String>,
var summary_fields: Map<String, Any>,
var created: Date,
var modified: Date,
var name: String,
var descripti... | 1 | null | 1 | 1 | 41d7dd5c63ced45fe62689e8c55a6bf69f60c5be | 361 | awx-jwt-authenticator | Apache License 2.0 |
app/src/main/kotlin/it/italiancoders/mybudget/preferences/chart/ChartColorThemePickerPreference.kt | fattazzo | 129,799,746 | true | {"Kotlin": 508532, "Java": 6218} | /*
* Project: myBudget-mobile-android
* File: ChartColorThemePickerPreference.kt
*
* Created by fattazzo
* Copyright © 2018 <NAME>. All rights reserved.
*
* MIT License
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Sof... | 0 | Kotlin | 0 | 0 | 67bed5db00ef3d8c255f571d66b1be27f9451652 | 7,446 | myBudget-mobile-android | MIT License |
Example/kotlinapp/src/main/java/com/stripe/example/fragment/location/HeaderViewHolder.kt | stripe | 152,157,636 | false | {"Java": 148060, "Kotlin": 121781} | package com.stripe.example.fragment.location
import android.view.View
import androidx.recyclerview.widget.RecyclerView
import com.stripe.example.R
import com.stripe.example.databinding.ListItemHeaderBinding
/**
* Bind Info about a location list to a header view.
*/
class HeaderViewHolder(
parent: View,
) : Recy... | 30 | Java | 45 | 93 | 43798b715868ecea7b1e9c94216a8eba0701a1e6 | 699 | stripe-terminal-android | MIT License |
http4k-security-oauth/src/main/kotlin/org/http4k/security/oauth/server/IdTokens.kt | s1monw1 | 235,355,864 | false | {"Gradle": 38, "Text": 6, "Shell": 13, "JSON": 3, "Markdown": 74, "Ignore List": 3, "Batchfile": 1, "YAML": 3, "Kotlin": 655, "XML": 5, "JavaScript": 5, "Java": 6, "HTML": 20, "Java Properties": 3, "Handlebars": 10, "CSS": 1, "OASv3-json": 3, "HTTP": 1, "Gradle Kotlin DSL": 2} | package org.http4k.security.oauth.server
import org.http4k.core.Request
import org.http4k.core.Response
import org.http4k.security.AccessToken
import org.http4k.security.openid.IdToken
import org.http4k.security.openid.Nonce
interface IdTokens {
fun createForAuthorization(request: Request, authRequest: AuthReque... | 1 | null | 1 | 1 | e21006a6eb9a968b67479a0b539b04cf45d63d8d | 1,170 | http4k | Apache License 2.0 |
idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/plusOnLibType.kt | JetBrains | 278,369,660 | false | null | // "Create extension function 'Int.plus'" "true"
// WITH_RUNTIME
// COMPILER_ARGUMENTS: -XXLanguage:-NewInference
class A<T>(val n: T)
fun test() {
val a: A<Int> = 2 <caret>+ A(1)
} | 0 | null | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 187 | intellij-kotlin | Apache License 2.0 |
Common/src/main/kotlin/com/existing/boilerx/common/base/repository/base/DefaultNetworkBoundResource.kt | THE-EXISTING | 176,088,785 | false | null | package com.existing.boilerx.common.base.repository.base
import com.existing.nextwork.engine.AppExecutors
import com.existing.nextwork.engine.bound.NextworkBoundResource
import com.existing.nextwork.operator.NLog
import com.existing.boilerx.common.base.repository.base.model.AppResult
import com.existing.boilerx.common... | 1 | null | 1 | 2 | 6483e245ea45db0c8642b30366d6a81e86d8b48d | 1,137 | boilerx-android-architecture | Apache License 2.0 |
src/com/iot/resources/UserResource.kt | StoneIoT | 85,785,707 | false | {"Text": 1, "Ignore List": 1, "Markdown": 1, "Shell": 1, "Kotlin": 6, "Java": 6, "Java Server Pages": 1, "XML": 1} | package com.iot.resources
import com.google.gson.Gson
import com.iot.database.dao.DevicesDAO
import com.iot.model.Device
import com.iot.model.User
import java.util.*
import javax.ws.rs.*
import javax.ws.rs.core.Context
import javax.ws.rs.core.MediaType.APPLICATION_JSON
import javax.ws.rs.core.UriInfo
/**
* Created b... | 1 | null | 1 | 1 | aad43afe3c992a89cd1147b0537cd970c7b3a70e | 772 | establishment-api | MIT License |
app/src/main/java/com/zyqzyq/hinao/ui/activities/settings/MoveSetting.kt | zyqzyq | 101,360,118 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Java": 2, "XML": 31, "Kotlin": 22, "ABNF": 1, "INI": 1} | package com.zyqzyq.hinao.ui.activities.settings
import android.app.Activity
import android.os.Bundle
import android.preference.Preference
import android.preference.Preference.OnPreferenceChangeListener
import android.preference.PreferenceFragment
import com.zyqzyq.hinao.R
class MoveSetting: Activity(){
override... | 1 | null | 1 | 1 | 101e8c5f37230db24b32480cf64fc4f0771f6f2c | 1,103 | HiNao-Kotlin | MIT License |
server/src/main/com/broll/gainea/server/core/cards/impl/play/C_KillSoldier.kt | Rolleander | 253,573,579 | false | {"Kotlin": 521531, "Java": 313909, "HTML": 1714, "CSS": 1069, "Shell": 104, "Batchfile": 100, "JavaScript": 24} | package com.broll.gainea.server.core.cards.impl.play
import com.broll.gainea.server.core.cards.Card
import com.broll.gainea.server.core.cards.EffectType.DISRUPTION
import com.broll.gainea.server.core.utils.UnitControl.kill
import com.broll.gainea.server.core.utils.isCommander
import com.broll.gainea.server.core.utils.... | 0 | Kotlin | 0 | 3 | ab47587c08ce2884269653a49c8fd8351cc4349f | 850 | Gainea | MIT License |
sketch/src/main/java/com/github/panpf/sketch/resize/PrecisionDecider.kt | jawalkwan | 97,818,573 | true | {"Gradle Kotlin DSL": 14, "Markdown": 35, "Java Properties": 2, "Shell": 1, "TOML": 1, "Ignore List": 1, "Batchfile": 1, "Text": 1, "Proguard": 12, "XML": 105, "Kotlin": 514, "Java": 12, "SVG": 2, "INI": 11} | package com.github.panpf.sketch.resize
import com.github.panpf.sketch.Sketch
import com.github.panpf.sketch.util.JsonSerializable
/**
* Decide which precision to use
*/
interface PrecisionDecider : JsonSerializable {
val key: String
fun get(
sketch: Sketch, imageWidth: Int, imageHeight: Int, resiz... | 0 | Kotlin | 0 | 0 | 625ad5114fe13ae649a4fa9377001a5747f8e3fe | 369 | sketch | MIT License |
library/src/main/java/com/trinity/record/exception/RecordingStudioException.kt | wlanjie | 172,678,032 | false | null | package com.trinity.record.exception
abstract class RecordingStudioException(detailMessage: String) : Exception(detailMessage) {
companion object {
private const val serialVersionUID = -3494098857987918589L
}
}
| 69 | null | 267 | 830 | 309618a75782274379c5d3b77472bcc2bcf7adcb | 222 | trinity | Apache License 2.0 |
compiler/testData/psi/newLabels/recovery.kt | JakeWharton | 99,388,807 | true | null | fun foo() {
x2.filter c @ { // should be no space after c
return 2
}
x3.filter @ { // no label identifier
return 3
}
loop2 @ for (i in 1..100) { // should be no space after loop2
return@ loop2 5
return @ loop2 7
return
@loop2 4
}
@ while (1... | 179 | Kotlin | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 674 | kotlin | Apache License 2.0 |
simplified-ui-images/src/main/java/org/nypl/simplified/ui/images/ImageIconViews.kt | ThePalaceProject | 367,082,997 | false | null | package org.nypl.simplified.ui.images
import android.content.res.AssetManager
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.drawable.Drawable
import android.net.Uri
import android.util.Base64
import android.widget.ImageView
import com.google.common.base.Preconditions
imp... | 1 | null | 4 | 8 | 330252fd69ba690962b87d5554f71f19a85df362 | 2,210 | android-core | Apache License 2.0 |
idea/tests/testData/highlighter/Todo.kt | JetBrains | 278,369,660 | false | null | // <info descr="TODO This is a todo in line comment">TODO This is a todo in line comment</info>
/* <info descr="TODO This is a todo in block comment ">TODO This is a todo in block comment </info>*/
/**
* <info descr="TODO This is a todo in KDoc">TODO This is a todo in KDoc</info>
*/
//<info descr="todo: This is
mu... | 0 | null | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 975 | intellij-kotlin | Apache License 2.0 |
src/main/kotlin/me/arrdem/ox/compiler.kt | ox-lang | 20,969,453 | false | {"Maven POM": 1, "Ignore List": 1, "EditorConfig": 1, "Makefile": 1, "Markdown": 1, "Kotlin": 13, "Java": 4} | /**
* @author Reid 'arrdem' McKenzie 2019-09-07
*
* The Ox compiler
*/
package me.arrdem.ox
import io.lacuna.bifurcan.Maps
import java.lang.ref.ReferenceQueue
import java.lang.ref.SoftReference
import java.time.Instant
import java.util.*
import javax.naming.Name
class OxClassLoader : ClassLoader() {
private va... | 3 | Kotlin | 3 | 66 | 90d76bf6e70624e9977f026f28c08c292d887842 | 1,292 | ox | BSD Source Code Attribution |
src/main/kotlin/me/arrdem/ox/compiler.kt | ox-lang | 20,969,453 | false | {"Maven POM": 1, "Ignore List": 1, "EditorConfig": 1, "Makefile": 1, "Markdown": 1, "Kotlin": 13, "Java": 4} | /**
* @author Reid 'arrdem' McKenzie 2019-09-07
*
* The Ox compiler
*/
package me.arrdem.ox
import io.lacuna.bifurcan.Maps
import java.lang.ref.ReferenceQueue
import java.lang.ref.SoftReference
import java.time.Instant
import java.util.*
import javax.naming.Name
class OxClassLoader : ClassLoader() {
private va... | 3 | Kotlin | 3 | 66 | 90d76bf6e70624e9977f026f28c08c292d887842 | 1,292 | ox | BSD Source Code Attribution |
intellij-plugin-verifier/verifier-cli/src/main/java/com/jetbrains/pluginverifier/output/OutputFormat.kt | JetBrains | 3,686,654 | false | {"Markdown": 10, "Text": 11, "Ignore List": 1, "TOML": 5, "Gradle Kotlin DSL": 36, "Shell": 5, "Batchfile": 5, "INI": 11, "Kotlin": 810, "XML": 90, "Java": 456, "YAML": 7, "Gradle": 1, "JSON": 19, "CSS": 1, "JavaScript": 1, "Java Properties": 2, "desktop": 1, "SVG": 1} | package com.jetbrains.pluginverifier.output
enum class OutputFormat {
PLAIN,
HTML,
MARKDOWN;
fun code() = this.name.lowercase()
}
val DEFAULT_OUTPUT_FORMATS = listOf(OutputFormat.PLAIN, OutputFormat.HTML) | 1 | null | 1 | 1 | 87f7a15fe0485314deac32184fd33cfe5133b0ee | 215 | intellij-plugin-verifier | Apache License 2.0 |
fuzzer/fuzzing_output/crashing_tests/verified/innerClass.kt-1475611147.kt | ItsLastDay | 102,885,402 | false | null | class Outer {
inner class Inner @JvmOverloads constructor(val s1: String, val s2: String = "OK") {
}
}
fun box(): String {
val outer = Outer()
val c = Outer.Inner::class.java.getConstructor((Outer)?::class.java, String::class.java).newInstance(outer, "shazam")
return c.s2
} | 1 | null | 1 | 6 | bb80db8b1383a6c7f186bea95c53faff4c0e0281 | 279 | KotlinFuzzer | MIT License |
DailyDiet/app/src/main/java/com/example/dailydiet/bottomNavigationUI/dailydiet/Models/FoodItem.kt | Ruckz279 | 218,409,262 | false | null | package com.example.dailydiet.bottomNavigationUI.dailydiet.Models
import java.io.Serializable
data class FoodItem(
var food_ID:Int?,
var menu:String?,
var title:String?,
var calorie: String?,
var brand:String?,
var servingSize:String?,
var servingUnit:String?,
var ingredients:String?,
... | 0 | Kotlin | 0 | 1 | c65d1fcb69c556ef3d7241cd810b9c2b9d475934 | 360 | MobileComputingProject | The Unlicense |
aareg/src/main/kotlin/no/nav/helsearbeidsgiver/inntektsmelding/aareg/ArbeidsforholdLøser.kt | navikt | 495,713,363 | false | null | @file:Suppress("NonAsciiCharacters", "ClassName")
package no.nav.helsearbeidsgiver.inntektsmelding.aareg
import kotlinx.coroutines.runBlocking
import no.nav.helse.rapids_rivers.JsonMessage
import no.nav.helse.rapids_rivers.RapidsConnection
import no.nav.helse.rapids_rivers.River
import no.nav.helsearbeidsgiver.aareg.... | 12 | Kotlin | 0 | 2 | 039ca9c63d3be849eaae96e15718af3ca40b2a30 | 3,472 | helsearbeidsgiver-inntektsmelding | MIT License |
app/src/main/java/com/fsmmmssaleschampionhoneywell/features/stockCompetetorStock/api/AddCompStockApi.kt | DebashisINT | 644,251,838 | false | null | package com.fsmmmssaleschampionhoneywell.features.stockCompetetorStock.api
import com.fsmmmssaleschampionhoneywell.app.NetworkConstant
import com.fsmmmssaleschampionhoneywell.base.BaseResponse
import com.fsmmmssaleschampionhoneywell.features.orderList.model.NewOrderListResponseModel
import com.fsmmmssaleschampionhoney... | 0 | Kotlin | 0 | 0 | de788c0759321b9e93fedfd4dcb4af5afb3f2e4e | 1,913 | Honeywell | Apache License 2.0 |
app/src/main/java/com/fsmmmssaleschampionhoneywell/features/stockCompetetorStock/api/AddCompStockApi.kt | DebashisINT | 644,251,838 | false | null | package com.fsmmmssaleschampionhoneywell.features.stockCompetetorStock.api
import com.fsmmmssaleschampionhoneywell.app.NetworkConstant
import com.fsmmmssaleschampionhoneywell.base.BaseResponse
import com.fsmmmssaleschampionhoneywell.features.orderList.model.NewOrderListResponseModel
import com.fsmmmssaleschampionhoney... | 0 | Kotlin | 0 | 0 | de788c0759321b9e93fedfd4dcb4af5afb3f2e4e | 1,913 | Honeywell | Apache License 2.0 |
payments-core/src/main/java/com/stripe/android/model/parsers/RadarSessionJsonParser.kt | stripe | 6,926,049 | false | null | package com.stripe.android.model.parsers
import com.stripe.android.core.model.StripeJsonUtils
import com.stripe.android.core.model.parsers.ModelJsonParser
import com.stripe.android.model.RadarSession
import org.json.JSONObject
internal class RadarSessionJsonParser : ModelJsonParser<RadarSession> {
override fun pa... | 64 | Kotlin | 522 | 935 | bec4fc5f45b5401a98a310f7ebe5d383693936ea | 550 | stripe-android | MIT License |
array/src/commonTest/kotlin/array/InverseFnTest.kt | lokedhs | 236,192,362 | false | null | package array
import array.complex.Complex
import kotlin.test.Test
import kotlin.test.assertFailsWith
class InverseFnTest : APLTest() {
@Test
fun negateInverse() {
assertSimpleNumber(-10, parseAPLExpression("(-inverse) 10"))
}
@Test
fun subInverse0() {
assertSimpleNumber(1, parseA... | 0 | null | 2 | 42 | da36cfa80b2344840c6f9a468447dc82d76520e0 | 4,661 | array | MIT License |
src/commonTest/kotlin/br/com/zup/nimbus/core/unity/utils/ListTest.kt | ZupIT | 478,990,009 | false | {"Kotlin": 554266, "Ruby": 1581, "Shell": 1049} | /*
* Copyright 2023 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA
*
* 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... | 14 | Kotlin | 5 | 7 | ff8df66e5bbd823c9d3a9c2a92ff5bf57c04aae9 | 1,391 | nimbus | Apache License 2.0 |
src/main/kotlin/Data.kt | Mitr-yuzr | 534,764,277 | false | {"Kotlin": 14692} | package net.reincarnatey
import org.ktorm.database.Database
import org.ktorm.entity.Entity
import org.ktorm.entity.sequenceOf
import org.ktorm.schema.*
import java.time.LocalDate
interface Message: Entity<Message> {
companion object : Entity.Factory<Message>()
var sender: Long
var group: Long
var bot:... | 0 | Kotlin | 1 | 9 | fa87de39d946bf326941f1edb8d388e39e79986a | 780 | Mirai-NLPHelper | Apache License 2.0 |
app/src/main/java/com/trueedu/inout/db/InOutRecordBase.kt | seirion | 234,075,186 | false | null | package com.trueedu.inout.db
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
@Database(entities = [InOutRecord::class], version = 1)
@TypeConverters(InOutConverters::class)
abstract class InOutRecordBase : Roo... | 1 | Kotlin | 0 | 0 | 5095bf81bcff562517f5fe5294e34243404a8bbd | 1,054 | in-and-out | Apache License 2.0 |
app/src/main/java/org/gelecekbilimde/ui/activitys/MainActivity.kt | gelecekbilimde | 872,116,250 | false | {"Kotlin": 145897, "HTML": 130990} | package org.gelecekbilimde.ui.activitys
import android.os.Bundle
import android.view.ViewGroup
import android.widget.PopupMenu
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.NavController
import androidx.navigation.findNavController
import com.google.firebase.FirebaseApp
import dagger.hilt.... | 0 | Kotlin | 0 | 0 | c078990ddb6331586cef48e0f219c79e4ae40349 | 1,797 | android-new | MIT License |
src/commonMain/kotlin/com.adamratzman.spotify/SpotifyExceptions.kt | canaangifford | 333,619,381 | true | {"Kotlin": 642293, "JavaScript": 88} | /* Spotify Web API, Kotlin Wrapper; MIT License, 2017-2020; Original author: Adam Ratzman */
package com.adamratzman.spotify
import com.adamratzman.spotify.models.AuthenticationError
import com.adamratzman.spotify.models.ErrorObject
import io.ktor.client.features.ResponseException
public sealed class SpotifyException... | 0 | null | 0 | 0 | d0e714293a7fb89f96fbf723404040265ec0a211 | 2,335 | spotify-web-api-kotlin | MIT License |
code/app/src/main/java/com/tanfra/shopmob/smob/data/remote/utils/MissingResponseException.kt | fwornle | 440,434,944 | false | null | package com.tanfra.shopmob.smob.data.net.utils
import io.ktor.client.plugins.ResponseException
import io.ktor.client.statement.HttpResponse
// custom 2xx response exception (404 - Page not found)
class MissingPageException(response: HttpResponse, cachedResponseText: String) :
ResponseException(response, cachedRe... | 0 | Kotlin | 0 | 0 | e202df0b49a3a499cedf2b36df5c887dda828c0f | 498 | ShopMob | MIT License |
hub/src/main/kotlin/uk/co/sentinelweb/cuer/hub/ui/home/HomeComposeables.kt | sentinelweb | 220,796,368 | false | {"Kotlin": 2326535, "CSS": 205156, "Java": 98919, "Swift": 85812, "HTML": 19322, "JavaScript": 12105, "Ruby": 2170} | package uk.co.sentinelweb.cuer.hub.ui.home
import androidx.compose.desktop.ui.tooling.preview.Preview
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.material.*
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.L... | 93 | Kotlin | 0 | 2 | ab69345493414bae27c055cb10120376d456f518 | 4,270 | cuer | Apache License 2.0 |
implementation/src/main/kotlin/eu/mikroskeem/helios/mod/configuration/ExploitConfiguration.kt | OrionMinecraft | 94,067,244 | false | {"Java": 139022, "Kotlin": 18618} | /*
* This file is part of project Helios, licensed under the MIT License (MIT).
*
* Copyright (c) 2017-2018 <NAME> <<EMAIL>>
* Copyright (c) Contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to dea... | 1 | Java | 1 | 3 | 7c4ee76ce95039c9c7d82770722f9dd1cfc7c420 | 2,864 | Helios | MIT License |
src/jvmMain/kotlin/framework/engine/serialization/interfaces/ContentNegotiationConfig.kt | MikeDirven | 655,573,300 | false | null | package framework.engine.serialization.interfaces
import framework.engine.classes.ContentType
interface ContentNegotiationConfig {
val serializers: MutableMap<ContentType, Serializer<*>>
} | 0 | Kotlin | 0 | 1 | 24f8f0a8051188e87723192095ac388f36f44277 | 194 | MDS | Apache License 2.0 |
app/src/main/java/com/kevalpatel2106/yip/splash/SplashActivity.kt | kevalpatel2106 | 166,789,807 | false | null | package com.kevalpatel2106.yip.splash
import android.os.Bundle
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.core.app.TaskStackBuilder
import androidx.navigation.navArgs
import com.kevalpatel2106.yip.R
import com.kevalpatel2106.yip.dashboard.DashboardActivity
impor... | 0 | Kotlin | 1 | 16 | 61311ba7d40802ba7fed87b2f16b72089c6f7746 | 1,552 | year-in-progress | Apache License 2.0 |
src/main/kotlin/com/app/features/user/domain/entities/User.kt | AdamHavlicek | 511,786,665 | false | null | package com.app.features.user.domain.entities
import arrow.core.Either
import com.app.core.exceptions.InvalidOperationException
import java.util.Date
data class User(
val id: Int,
val email: String,
val password: String,
val createdAt: Date,
val updatedAt: Date,
val tasks: Collection<Int>,
... | 0 | Kotlin | 0 | 0 | 2defcbeb580048595619457a1c2657f6192803d0 | 684 | spring-todo-ddd | Do What The F*ck You Want To Public License |
starfield/src/main/java/drwdrd/ktdev/starfield/ParallaxEffectEngine.kt | drdwrd | 381,307,559 | false | null | package drwdrd.ktdev.starfield
import android.content.res.Configuration
import android.hardware.Sensor
import android.hardware.SensorEvent
import android.hardware.SensorEventListener
import android.hardware.SensorManager
import drwdrd.ktdev.kengine.*
import kotlin.NullPointerException
interface ParallaxEffectEngine {... | 0 | Kotlin | 0 | 0 | f2b533603f0ba143e7c5253b4593b393e2043b40 | 13,331 | StarfieldLiveWallpaper | MIT License |
library/src/main/kotlin/io/github/tomplum/libs/solutions/benchmark/utility/BenchmarkUtility.kt | TomPlum | 317,517,927 | false | null | package io.github.tomplum.libs.solutions.benchmark.utility
import io.github.tomplum.libs.solutions.benchmark.data.BenchmarkComparison
import io.github.tomplum.libs.solutions.benchmark.data.BenchmarkResult
import io.github.tomplum.libs.solutions.benchmark.report.BenchmarkCompactReport
import io.github.tomplum.libs.solu... | 0 | Kotlin | 0 | 0 | 064eef1317d931ee1c686cca5997cf388fc39b5c | 1,567 | advent-of-code-libs | Apache License 2.0 |
instantsearch-core/src/commonMain/kotlin/com/algolia/instantsearch/core/subscription/SubscriptionEvent.kt | algolia | 55,971,521 | false | {"Kotlin": 690317} | package com.algolia.instantsearch.core.subscription
public class SubscriptionEvent<T> : Subscription<T>() {
public fun send(event: T) {
notifyAll(event)
}
}
| 15 | Kotlin | 30 | 156 | eaf37a61303a8b9c5688a596e8aeab29dfbba398 | 175 | instantsearch-android | Apache License 2.0 |
app/src/main/java/com/mezhendosina/sgo/app/ui/journalFlow/journal/JournalFragment.kt | mezhendosina | 448,087,094 | false | {"Kotlin": 580262, "Java": 5030} | /*
* Copyright 2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | Kotlin | 1 | 11 | 906eb58931e8532a55c02645fa38ea9d8cfbc231 | 2,924 | che-zadali-app | Apache License 2.0 |
src/main/kotlin/org/rust/ide/refactoring/RsDirectoryRenameProcessor.kt | intellij-rust | 42,619,487 | false | null | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.ide.refactoring
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.project.Project
import com.intellij.psi.PsiDirectory
import com.intellij.psi.PsiDirectoryContainer
import co... | 1,841 | null | 380 | 4,528 | c6657c02bb62075bf7b7ceb84d000f93dda34dc1 | 2,213 | intellij-rust | MIT License |
parser/src/test/kotlin/io/sniffy/influxdb/parser/LineProtocolParserTest.kt | sniffy | 126,586,658 | false | {"Gradle": 4, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "YAML": 2, "Markdown": 1, "Java Properties": 1, "Java": 12, "Kotlin": 2} | package io.sniffy.influxdb.parser
import io.sniffy.influxdb.lineprotocol.FieldBooleanValue
import io.sniffy.influxdb.lineprotocol.FieldFloatValue
import io.sniffy.influxdb.lineprotocol.FieldIntegerValue
import io.sniffy.influxdb.lineprotocol.FieldStringValue
import org.junit.jupiter.api.Assertions.*
import org.junit.j... | 1 | Kotlin | 1 | 1 | 51f6def5a21dafb7d00a9631b703b26daceb7144 | 31,225 | influxdb-tools | Apache License 2.0 |
app/src/main/java/com/ulvijabbarli/pronote/ui/splash/SplashActivity.kt | ulvij | 232,341,604 | false | null | package com.ulvijabbarli.pronote.ui.splash
import android.content.Intent
import android.os.Bundle
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import com.ulvijabbarli.pronote.R
import com.ulvijabbarli.pronote.ui.main.MainActivity
import dagger.hilt.EntryPoint
import dagger.hilt.a... | 0 | Kotlin | 0 | 4 | 4048ffcf72c997547dbaf7e029a5d97a06594323 | 769 | Pronote | Apache License 2.0 |
core/java/androidx/test/core/view/ViewCapture.kt | android | 41,148,494 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 294 | null | 313 | 967 | df9ed7dd7445b70c765a98265ce3af45e8657144 | 6,250 | android-test | Apache License 2.0 |
completion/src/org/jetbrains/kotlin/idea/completion/smart/ArrayLiteralsInAnnotationItems.kt | JetBrains | 278,369,660 | false | null | /*
* Copyright 2010-2019 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.idea.completion.smart
import com.intellij.codeInsight.lookup.LookupElement
impor... | 0 | null | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 2,774 | intellij-kotlin | Apache License 2.0 |
kotlin/kotlin-gradle-plugin/bin/main/com/hypo/driven/kotlin_gradle_plugin/ExampleGradlePlugin.kt | kackey0-1 | 542,333,436 | false | null | package com.hypo.driven.kotlin_gradle_plugin
/**
* Precompiled [ExampleGradle.gradle.kts][com.hypo.driven.kotlin_gradle_plugin.ExampleGradle_gradle] script plugin.
*
* @see com.hypo.driven.kotlin_gradle_plugin.ExampleGradle_gradle
*/
class ExampleGradlePlugin : org.gradle.api.Plugin<org.gradle.api.Project> {
... | 3 | Kotlin | 0 | 0 | d9dffb6a17f624ea0dec86434906fa58be98970b | 769 | from-scrach | Apache License 2.0 |
game/src/main/kotlin/gg/rsmod/game/model/container/listener/ItemContainerListener.kt | andtheysay | 283,298,024 | true | {"Kotlin": 3891210, "Dockerfile": 1354} | package gg.rsmod.game.model.container.listener
import gg.rsmod.game.model.entity.Player
/**
* @author Tom <rspsmods@gmail.com>
*/
interface ItemContainerListener {
fun clean(player: Player)
} | 0 | Kotlin | 0 | 0 | ff6ba961acf3905a89746682b3e7c2eaad558bf5 | 200 | rsmod | Apache License 2.0 |
app/src/main/java/net/aiscope/gdd_app/dagger/BuildersModule.kt | theaiscope | 187,222,295 | false | {"Kotlin": 221933, "HTML": 26526, "Shell": 103} | package net.aiscope.gdd_app.dagger
import dagger.Binds
import dagger.Module
import dagger.android.AndroidInjector
import dagger.android.ContributesAndroidInjector
import dagger.multibindings.ClassKey
import dagger.multibindings.IntoMap
import net.aiscope.gdd_app.coroutines.DefaultDispatcherProvider
import net.aiscope.... | 2 | Kotlin | 23 | 9 | add462d9096483178552bf703974c673558019cf | 1,938 | GDD-app | MIT License |
app/src/main/java/com/example/mytrainingpal/model/view_models/ExerciseViewModel.kt | MichaelBuessemeyer | 572,939,495 | false | {"Kotlin": 256987} | package com.example.mytrainingpal.model.view_models
import android.content.Context
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.example.mytrainingpal.model.TheMuscleBase
import com.example.mytrainingpal.model.entities.Exercise
import com.e... | 14 | Kotlin | 0 | 2 | 5ef8c98c684bf2bb863dc6781a457c16ab8bb6e1 | 1,162 | MyTrainingsPal | Apache License 2.0 |
src/main/java/com/twsihan/examples/entities/City.kt | twsihan | 190,689,951 | false | null | package com.twsihan.examples.entities
import com.twsihan.examples.components.base.BaseEntity
import javax.persistence.GeneratedValue
import javax.persistence.GenerationType
import javax.persistence.Id
import javax.persistence.Table
@Table(name = "city")
data class City(
@Id
@GeneratedValue(strategy = Generati... | 1 | Kotlin | 0 | 0 | d5b318296ff2764f9b9e30ed972e886b94ac3f30 | 435 | springboot-kotlin-examples | The Unlicense |
src/main/kotlin/org/axonframework/intellij/ide/plugin/resolving/handlers/types/CommandHandler.kt | AxonFramework | 10,942,246 | false | null | /*
* Copyright (c) 2022. Axon Framework
*
* 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... | 22 | null | 19 | 34 | 781f71ca1707df9d23e624adddefa7050a408307 | 1,526 | IdeaPlugin | Apache License 2.0 |
simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Freebsd.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36719092} | package compose.icons.simpleicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
impor... | 17 | Kotlin | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 3,003 | compose-icons | MIT License |
SuprsendCore/src/commonMain/kotlin/app/suprsend/base/KotlinExtension.kt | suprsend | 375,401,176 | false | {"Kotlin": 167868, "Swift": 160313, "Ruby": 2281, "Objective-C": 402} | package app.suprsend.base
import app.suprsend.database.json
import kotlinx.serialization.json.JsonElement
import kotlinx.serialization.json.JsonObject
import kotlinx.serialization.json.JsonPrimitive
import kotlinx.serialization.json.buildJsonObject
import kotlinx.serialization.json.jsonObject
fun String?.toKotlinJson... | 2 | Kotlin | 1 | 1 | 6b46005b066608623128d078912a53f3764d4038 | 2,749 | suprsend-kmm-sdk | MIT License |
app/src/main/kotlin/com/juniperphoton/myersplash/widget/item/PhotoItemView.kt | kunwar97 | 139,461,540 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Git Attributes": 1, "Text": 1, "Markdown": 1, "XML": 108, "JSON": 2, "Proguard": 1, "Kotlin": 72, "Java": 1} | package com.juniperphoton.myersplash.widget.item
import android.content.Context
import android.graphics.RectF
import android.graphics.drawable.ColorDrawable
import android.net.Uri
import android.util.AttributeSet
import android.view.View
import android.view.ViewGroup
import android.widget.FrameLayout
import butterknif... | 1 | null | 20 | 1 | c719b6e5a2c60d731dd9620cecac883fbac96155 | 3,762 | MyerSplash.Android | MIT License |
news/news_data/src/main/java/com/lenibonje/news_data/di/NewsDataModule.kt | lenblazy | 676,934,859 | false | null | package com.lenibonje.news_data.di
import com.lenibonje.news_data.network.NewsApiService
import com.lenibonje.news_data.repository.NewsRepositoryImpl
import com.lenibonje.news_data.room.NewsDAO
import com.lenibonje.news_domain.repository.NewsRepository
import dagger.Module
import dagger.Provides
import dagger.hilt.Ins... | 0 | Kotlin | 0 | 0 | 6686cfb61511a4f03138fe75417a64a6a6ed2a89 | 803 | NewsMMApp | Apache License 2.0 |
test-shared/src/main/java/com/christopher_elias/test_shared/network/DefaultRemoteConfig.kt | ChristopherME | 362,646,710 | false | null | package com.christopher_elias.test_shared.network
import com.christopher_elias.network.models.base.ResponseError
import com.squareup.moshi.JsonAdapter
import com.squareup.moshi.Moshi
/*
* Created by <NAME> on 3/05/2021
* <EMAIL>
*
* Loop Ideas
* Lima, Peru.
*/
object DefaultRemoteConfig {
private val mosh... | 1 | Kotlin | 65 | 358 | 31a086be2dc7eb7eb2dd84a28dbc152fd53a28bc | 465 | movies-android | Apache License 2.0 |
compiler/testData/diagnostics/tests/script/SuppressAnnoInLastExpression.kts | JetBrains | 3,432,266 | false | null | // FIR_IDENTICAL
@Suppress("UNCHECKED_CAST")
java.io.File(".").list() as? Array<String>
| 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 88 | kotlin | Apache License 2.0 |
app/src/main/java/org/fossasia/openevent/general/order/OrderService.kt | fossasia | 34,847,604 | false | null | package org.fossasia.openevent.general.order
import io.reactivex.Single
import org.fossasia.openevent.general.attendees.Attendee
import org.fossasia.openevent.general.attendees.AttendeeDao
import org.fossasia.openevent.general.event.Event
import org.fossasia.openevent.general.event.EventDao
import org.fossasia.openeve... | 73 | null | 562 | 1,942 | e3214589f83c155e477f9e727370d7bbef8fd915 | 3,110 | open-event-attendee-android | Apache License 2.0 |
eafall/src/androidTest/kotlin/com/yaroslavlancelot/eafall/test/game/entity/gameobject/unit/UnitTest.kt | YaroslavHavrylovych | 92,613,651 | false | {"Java": 1005917, "Kotlin": 31159, "Python": 1363, "Shell": 831} | package com.yaroslavlancelot.eafall.test.game.entity.gameobject.unit
import android.content.Context
import com.badlogic.gdx.math.Vector2
import com.badlogic.gdx.physics.box2d.Body
import com.badlogic.gdx.physics.box2d.BodyDef
import com.badlogic.gdx.physics.box2d.FixtureDef
import com.yaroslavlancelot.eafall.EaFallApp... | 0 | Java | 0 | 3 | 188d71dd9f5e7da5923627397c77e2a29b7c642e | 7,183 | eafall | Apache License 2.0 |
c2-ssm/ssm-sdk/ssm-sdk-core/src/main/kotlin/ssm/sdk/core/invoke/builder/CmdBuilder.kt | komune-io | 746,795,057 | false | {"Kotlin": 356643, "MDX": 96903, "Java": 38556, "Gherkin": 18221, "Makefile": 12580, "Dockerfile": 8687, "Go": 5435, "HTML": 2659, "Shell": 1993, "JavaScript": 1881, "CSS": 102} | package ssm.sdk.core.invoke.builder
import ssm.chaincode.dsl.model.AgentName
import ssm.sdk.dsl.SsmCmd
import ssm.sdk.dsl.SsmCmdName
import ssm.sdk.dsl.SsmCmdSigned
import ssm.sdk.json.JsonUtils
import ssm.sdk.sign.SsmCmdSigner
open class CmdBuilder<T>(
private val value: T,
private val commandName: SsmCmdName,
pr... | 0 | Kotlin | 0 | 0 | bb1504c99733c81c35edbaeb92c841ed191f9a38 | 844 | fixers-c2 | Apache License 2.0 |
app/src/main/java/instamovies/app/domain/model/person/credits/PersonCast.kt | mubashirpa | 720,638,343 | false | {"Kotlin": 450402} | package instamovies.app.domain.model.person.credits
data class PersonCast(
val firstAirDate: String? = null,
val id: Int? = null,
val mediaType: String? = null,
val name: String? = null,
val posterPath: String? = null,
val releaseDate: String? = null,
val title: String? = null,
val vote... | 0 | Kotlin | 0 | 1 | fd45c156c6f6f63526946e7c524f9200558fd13a | 347 | InstaMovies-v2 | Apache License 2.0 |
app/src/main/java/xyz/bboylin/dailyandroid/data/entity/CollectItem.kt | bboylin | 120,625,830 | false | {"Gradle": 3, "Markdown": 1, "Java Properties": 2, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Text": 1, "Proguard": 1, "Kotlin": 71, "XML": 42, "Java": 1} | package xyz.bboylin.dailyandroid.data.entity
data class CollectItem(val publishTime: Long = 0,
val visible: Int = 0,
val niceDate: String = "",
val author: String = "",
val zan: Int = 0,
val origin: Strin... | 0 | Kotlin | 0 | 5 | ec9dca120b5ef89c2d8851c4d9c9f86437556696 | 795 | DailyAndroid | Apache License 2.0 |
src/main/kotlin/dev/toby7002/ketone/items/GlassCutter.kt | toby7002 | 783,212,186 | false | {"Kotlin": 41978} | package dev.toby7002.ketone.items
import net.minecraft.world.InteractionResult
import net.minecraft.world.entity.item.ItemEntity
import net.minecraft.world.item.*
import net.minecraft.world.item.context.UseOnContext
import net.minecraft.world.level.block.state.BlockState
import net.neoforged.neoforge.common.Tags
clas... | 0 | Kotlin | 0 | 0 | e09f4c50f965cd398c213c498e582a223c5b070b | 1,272 | Ketone | MIT License |
app/android/ui/app/public/src/test/kotlin/build/wallet/ui/app/send/FeeOptionsScreenSnapshots.kt | proto-at-block | 761,306,853 | false | {"C": 10424094, "Kotlin": 7156393, "Rust": 2046237, "Swift": 700307, "Python": 331492, "HCL": 271992, "Shell": 111209, "TypeScript": 102700, "C++": 64770, "Meson": 64234, "JavaScript": 36227, "Just": 28071, "Ruby": 9428, "Dockerfile": 5731, "Makefile": 3839, "Open Policy Agent": 1552, "Procfile": 80} | package build.wallet.ui.app.send
import build.wallet.kotest.paparazzi.paparazziExtension
import build.wallet.ui.app.core.form.PreviewFeeOptionsFormScreen
import io.kotest.core.spec.style.FunSpec
class FeeOptionsScreenSnapshots : FunSpec({
val paparazzi = paparazziExtension()
test("fee options screen") {
papa... | 0 | C | 10 | 98 | 1f9f2298919dac77e6791aa3f1dbfd67efe7f83c | 386 | bitkey | MIT License |
samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/viewmodel/ComponentsViewModel.kt | JetBrains | 440,164,967 | false | {"Kotlin": 1608992, "Java": 22778, "Shell": 361} | package org.jetbrains.jewel.samples.standalone.viewmodel
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateListOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import org.jetbrains.jewel.samples.standalone.StandaloneSampleIcons
import org.jet... | 80 | Kotlin | 34 | 670 | 008d9696fe7c0b83bd778dff4f12151144aa23c3 | 4,288 | jewel | Apache License 2.0 |
crawler.fetchimgs/src/main/kotlin/com/net/crawlers/ProductImgInfo.kt | dongqianwei | 139,382,680 | false | {"Kotlin": 28659} | package com.net.crawlers
data class ProductImgInfo(val category: String, val title: String, val url: String, val imgLocation: String) | 0 | Kotlin | 1 | 0 | aef3bf01cf4e6f31cb6c0c367e8217a0fd389f94 | 134 | webmagicKt | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.