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/widget/src/main/java/com/gmail/jiangyang5157/widget/SquareFrameLayout.kt | jiangyang5157 | 553,993,370 | false | null | package com.gmail.jiangyang5157.widget
import android.content.Context
import android.util.AttributeSet
import android.widget.FrameLayout
/**
* Created by Yang Jiang on April 21, 2018
*/
open class SquareFrameLayout : FrameLayout {
constructor(context: Context) : super(context)
constructor(context: Context... | 0 | Kotlin | 0 | 0 | bd3252ce62e592405fa2ffa4ce82e3dbab339df2 | 929 | kotlin-multiplatform-mobile | MIT License |
src/test/kotlin/ffc/airsync/api/services/util/DocumentKtTest.kt | ffc-nectec | 137,835,555 | false | {"Kotlin": 463492, "Java": 2246, "Dockerfile": 257} | /*
* Copyright (c) 2019 NECTEC
* National Electronics and Computer Technology Center, Thailand
*
* 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/... | 5 | Kotlin | 0 | 1 | 03c71b6edf2ebe8c246728a5f09700c8093a8edb | 2,387 | api | Apache License 2.0 |
2017-18/Fürholzer_Kotlin_Presentation/Material/Exercises/Solutions/2D3DObjekte/bin/main/PermimeterComperator.kt | tfuerholzer | 103,523,241 | true | {"TypeScript": 14971, "Kotlin": 13086, "JavaScript": 13006, "HTML": 5527, "Java": 1971, "CSS": 474} | package main;
import java.util.Comparator
public object PermimeterComperator : Comparator<Geometric2dObject>{
public override fun compare(obj1 : Geometric2dObject , obj2 : Geometric2dObject) : Int{
return (obj1.getPermimeter() - obj2.getPermimeter()).toInt();
}
} | 0 | TypeScript | 0 | 0 | 902cbd5a9c375e4f01d81ac6ecbadcf0a46eacb9 | 269 | htl-mobile-computing | MIT License |
app/src/main/java/com/adityakamble49/dcipher/interactor/EncryptionKeyInUseException.kt | adityakamble49 | 128,232,091 | false | null | package com.adityakamble49.dcipher.interactor
import com.adityakamble49.dcipher.model.EncryptionKey
/**
* [[EncryptionKey]] In Use Exception
*
* @author <NAME>
* @since 24/12/2017
*/
class EncryptionKeyInUseException constructor(
override val message: String) : Exception() | 1 | Kotlin | 0 | 3 | f938c74f20609759bd18ec8d7c08ac574ae1bd93 | 288 | dcipher-app | Apache License 2.0 |
Architecture/UnidirectionalKotlinCats/core/src/main/kotlin/com/odai/architecturedemo/favourite/service/FavouriteCatsService.kt | haikuowuya | 64,445,893 | false | null | package com.odai.architecturedemo.favourite.service
import com.odai.architecturedemo.cat.model.Cat
import com.odai.architecturedemo.event.Event
import com.odai.architecturedemo.favourite.model.FavouriteCats
import rx.Observable
interface FavouriteCatsService {
fun getFavouriteCatsEvents(): Observable<Event<Favou... | 0 | null | 0 | 1 | 932030763249fabaaa11d9cdd4ae69a4282920af | 462 | spikes | Apache License 2.0 |
app/src/main/kotlin/lazy/of/go/to/app/splash/SplashActivity.kt | PieceOfLazy | 132,607,214 | false | null | package lazy.of.go.to.app.splash
import android.content.Intent
import lazy.of.go.to.app.login.LoginActivity
import lazy.of.go.to.app.main.MainActivity
import lazy.of.go.to.base.MvpActivity
class SplashActivity: MvpActivity<SplashFragment, SplashContract.Presenter>(), SplashFragment.OnFragmentListener {
override ... | 0 | Kotlin | 0 | 0 | 4dc7d0ec14cf1730ff09b9c0ff21801da8142ceb | 596 | Lazy-Of-Goto | Apache License 2.0 |
app/src/main/java/me/hegj/wandroid/di/component/MainComponent.kt | hegaojian | 206,478,384 | false | null | package me.hegj.wandroid.di.component
import dagger.Component
import com.jess.arms.di.component.AppComponent
import me.hegj.wandroid.di.module.MainModule
import com.jess.arms.di.scope.FragmentScope
import me.hegj.wandroid.mvp.ui.activity.main.MainFragment
/**
* ================================================
* ... | 1 | Kotlin | 100 | 713 | 622016c9695c01f3a134a23c4af1f76686aad6f1 | 935 | WanAndroid | Apache License 2.0 |
ekyc/src/main/kotlin/org/ostelco/prime/ekyc/KycModule.kt | ostelco | 112,729,477 | false | {"Gradle Kotlin DSL": 51, "YAML": 65, "Go": 13, "Go Checksums": 1, "Markdown": 48, "Shell": 48, "Text": 3, "Ignore List": 24, "Batchfile": 1, "Go Module": 1, "Kotlin": 372, "JSON": 24, "Dockerfile": 11, "XML": 28, "Java": 11, "Java Properties": 3, "Protocol Buffer": 2, "Python": 2, "SQL": 4, "PLpgSQL": 2, "GraphQL": 2,... | package org.ostelco.prime.ekyc
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.annotation.JsonTypeName
import io.dropwizard.setup.Environment
import org.apache.http.client.HttpClient
import org.apache.http.impl.client.HttpClientBuilder
import org.apache.http.impl.conn.PoolingHttpClien... | 23 | Kotlin | 13 | 37 | b072ada4aca8c4bf5c3c2f6fe0d36a5ff16c11af | 1,881 | ostelco-core | Apache License 2.0 |
realm/realm-annotations-processor/src/main/java/io/realm/processor/RealmProxyInterfaceGenerator.kt | realm | 4,084,908 | false | {"Java": 6325742, "Kotlin": 1979843, "C++": 712592, "Shell": 39714, "JavaScript": 11116, "CMake": 10026, "Groovy": 5431, "Dockerfile": 5146, "Python": 4275, "HTML": 2519} | /*
* Copyright 2019 Realm Inc.
*
* 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... | 400 | Java | 1747 | 11,450 | e564a45fbeabb4710ac5fcd231c107642dd4aa83 | 2,980 | realm-java | Apache License 2.0 |
rendering/testSrc/com/android/tools/rendering/classloading/TestClassLocator.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 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 app... | 5 | null | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 1,036 | android | Apache License 2.0 |
app/src/main/java/org/stepic/droid/util/rx/ObservableReduceMap.kt | StepicOrg | 42,045,161 | false | {"Kotlin": 4281147, "Java": 1001895, "CSS": 5482, "Shell": 618} | package org.stepic.droid.util.rx
import io.reactivex.Observable
import io.reactivex.ObservableSource
import io.reactivex.Observer
import io.reactivex.disposables.Disposable
import io.reactivex.internal.disposables.DisposableHelper
class ObservableReduceMap<T : Any, R : Any>(
private val source: ObservableSource<T... | 13 | Kotlin | 54 | 189 | dd12cb96811a6fc2a7addcd969381570e335aca7 | 1,531 | stepik-android | Apache License 2.0 |
LargeDynamicProject/featureA/baseA/src/main/java/com/devrel/experiment/large/dynamic/feature/a/Foo699.kt | skimarxall | 212,285,318 | false | {"Markdown": 13, "Text": 10, "Ignore List": 24, "Gradle": 272, "Shell": 13, "Java Properties": 19, "XML": 1020, "Batchfile": 11, "Kotlin": 14867, "Java": 160, "Proguard": 13, "YAML": 10, "CMake": 1, "C": 1, "INI": 3} | package com.devrel.experiment.large.dynamic.feature.common.a
annotation class Foo699Fancy
@Foo699Fancy
class Foo699 {
fun foo0(){
Foo698().foo8()
}
fun foo1(){
foo0()
}
fun foo2(){
foo1()
}
fun foo3(){
foo2()
}
fun foo4(){
foo3()
}
fun foo5(){
foo4()
}
fun foo6(... | 1 | null | 1 | 1 | e027d45a465c98c5ddbf33c68deb09a6e5975aab | 399 | app-bundle-samples | Apache License 2.0 |
api/src/main/kotlin/com/openlattice/analysis/requests/FilteredNeighborsRankingAggregationResult.kt | openlattice | 101,697,464 | false | null | package com.openlattice.analysis.requests
import com.openlattice.analysis.requests.EntityAggregationResult
import java.util.*
/**
*
* @author Matthew Tamayo-Rios <matthew@openlattice.com>
*/
data class FilteredNeighborsRankingAggregationResult (
val entityKeyId: UUID,
val score: Double,
... | 1 | Kotlin | 3 | 4 | b836eea0a17128089e0dbe6719495413b023b2fb | 531 | openlattice | Apache License 2.0 |
app/src/main/kotlin/org/jdc/template/ux/individualedit/IndividualEditViewModel.kt | hanjoongcho | 161,841,314 | true | {"Kotlin": 134233, "Java": 2773} | package org.jdc.template.ux.individualedit
import android.arch.lifecycle.ViewModel
import android.databinding.ObservableField
import kotlinx.coroutines.experimental.launch
import org.jdc.template.R
import org.jdc.template.livedata.SingleLiveEvent
import org.jdc.template.model.db.main.individual.Individual
import org.j... | 0 | Kotlin | 0 | 0 | c0fb7aabcc55b40abfa9d3b4e75eb4153c113b55 | 2,854 | android-template | Apache License 2.0 |
libraries/tools/kotlin-gradle-plugin-api/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/HasKotlinDependencies.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 org.jetbrains.kotlin.gradle.plugin
import org.gradle.api.Action
import org.gradle.api.artifacts.Confi... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 3,116 | kotlin | Apache License 2.0 |
interception/src/main/kotlin/com/dickow/chortlin/interception/sending/TraceSender.kt | Dickow | 138,721,545 | false | {"Kotlin": 142028, "Java": 2441} | package com.dickow.chortlin.interception.sending
import com.dickow.chortlin.shared.trace.protobuf.DtoDefinitions
interface TraceSender {
fun send(invocationDTO: DtoDefinitions.InvocationDTO)
fun send(returnDTO: DtoDefinitions.ReturnDTO)
} | 1 | Kotlin | 1 | 2 | e43986f3f84de8f7b565557f77e1c7d2676b5c76 | 248 | chortlin | MIT License |
examples/xo_android_client/app/src/main/java/bitwiseio/sawtooth/xo/models/Game.kt | hyperledger-archives | 125,578,728 | false | {"XML": 23, "Dotenv": 1, "Ignore List": 4, "CODEOWNERS": 1, "Markdown": 4, "Maven POM": 6, "Text": 1, "Groovy": 1, "YAML": 7, "Shell": 7, "Protocol Buffer": 25, "Java": 33, "Gradle": 3, "Java Properties": 1, "Batchfile": 1, "INI": 1, "Proguard": 1, "Kotlin": 22, "Dockerfile": 4, "Makefile": 1, "reStructuredText": 5, "P... | package bitwiseio.sawtooth.xo.models
class Game(var name: String, var board: String, var gameState: String, var playerKey1: String, var playerKey2: String) {
override fun toString(): String {
return "Game(name=$name, board=$board, gameState=$gameState, playerKey1=$playerKey1, playerKey2=$playerKey2)"
}... | 7 | Java | 38 | 19 | 0b18fac9ca1a9d01a20715baff92ad0d72b0d0e0 | 323 | sawtooth-sdk-java | Apache License 2.0 |
compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/reified.fir.kt | JetBrains | 3,432,266 | false | {"Kotlin": 74444760, "Java": 6669398, "Swift": 4261253, "C": 2620837, "C++": 1953730, "Objective-C": 640870, "Objective-C++": 170766, "JavaScript": 135724, "Python": 48402, "Shell": 30960, "TypeScript": 22754, "Lex": 18369, "Groovy": 17273, "Batchfile": 11693, "CSS": 11368, "Ruby": 10470, "EJS": 5241, "Dockerfile": 513... | // !DIAGNOSTICS: -UNUSED_PARAMETER -REIFIED_TYPE_PARAMETER_NO_INLINE
fun <reified T> foo(t: T) {}
class C<reified T>(t: T)
fun test(d: dynamic) {
foo<dynamic>(d)
foo(d)
C<dynamic>(d)
C(d)
}
| 166 | Kotlin | 5771 | 46,772 | bef0946ab7e5acd5b24b971eca532c43c8eba750 | 209 | kotlin | Apache License 2.0 |
app/src/main/java/com/tarripoha/android/data/datasource/params/CloudStoreFilterParams.kt | rajatsangrame | 340,683,468 | false | {"Kotlin": 147650} | package com.tarripoha.android.data.datasource.params
data class CloudStoreFilterParams(
val data: Map<String, Any>,
var sortField: String? = null,
var asc: Boolean? = null,
var cursor: String? = null,
val limit: Long = 20
) | 0 | Kotlin | 0 | 0 | 8f9cc8efccb70b9a89ef96ccdccab53f2c1a0190 | 244 | tarripoha-android | MIT License |
src/main/kotlin/eu/automateeverything/zigbee2mqttplugin/data/UpdatePayload.kt | tomaszbabiuk | 489,254,020 | false | null | /*
* Copyright (c) 2019-2022 <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 agre... | 0 | Kotlin | 0 | 0 | 6508322d8b83553e18bdde8a3ebe7c0a37aed744 | 861 | automate-everything | Apache License 2.0 |
src/main/kotlin/util/JarLoader.kt | Mkkas3145 | 833,693,489 | false | {"Kotlin": 33181} | package util
import io.github.classgraph.ClassGraph
import server.DynamicProcessor
import java.io.File
class JarLoader {
companion object {
private val loadedFiles = ArrayList<File>()
private val loadedDynamicProcessor = mutableMapOf<File, DynamicProcessor>()
private val loadedInstances = ... | 0 | Kotlin | 0 | 0 | d2255ec7b56a92f2d1cfac821782bc89646c3b71 | 2,452 | MelonFramework | MIT License |
app/src/main/java/org/wikiedufoundation/wikiedudashboard/ui/profile/ProfileContract.kt | MarinaTaran | 212,577,753 | true | {"Gradle": 3, "Java Properties": 2, "Shell": 2, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 5, "YAML": 1, "Proguard": 1, "JSON": 1, "Java": 4, "XML": 51, "Kotlin": 109} | package org.wikiedufoundation.wikiedudashboard.ui.profile
import org.wikiedufoundation.wikiedudashboard.ui.profile.data.ProfileDetailsResponse
import org.wikiedufoundation.wikiedudashboard.ui.profile.data.ProfileResponse
import org.wikiedufoundation.wikiedudashboard.util.PresenterCallback
import org.wikiedufoundation.... | 0 | null | 0 | 0 | 6806efbd32583430452c3ca63f2b85aa18aa4d63 | 970 | apps-android-wikiedudashboard | MIT License |
app/src/main/java/com/android/sample/game/usecase/GetGifsUseCase.kt | AliRezaeiii | 378,406,012 | false | null | package com.android.sample.game.usecase
import com.android.sample.game.model.WrapperResponse
import com.android.sample.game.repository.InGameRepository
import io.reactivex.Single
import javax.inject.Inject
class GetGifsUseCase @Inject constructor(private val repository: InGameRepository) {
operator fun invoke(qu... | 0 | Kotlin | 0 | 0 | ba1ade471d269011b980f7fdd5d3fa7ea0353688 | 388 | SimpleGame-Navigation | The Unlicense |
compiler/tests-spec/testData/psi/linked/constant-literals/boolean-literals/p-1/pos/2.24.kt | damenez | 189,964,139 | true | {"Kotlin": 37481242, "Java": 7489008, "JavaScript": 157778, "HTML": 74773, "Lex": 23159, "TypeScript": 21255, "IDL": 10895, "ANTLR": 9803, "CSS": 8084, "Shell": 7727, "Groovy": 6940, "Batchfile": 5362, "Swift": 2253, "Ruby": 668, "Objective-C": 293, "Scala": 80} | /*
* KOTLIN PSI SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* PLACES: constant-literals, boolean-literals -> paragraph 1 -> sentence 2
* NUMBER: 24
* DESCRIPTION: The use of Boolean literals as the identifier (with backtick) in the variableDeclarationEntry.
* NOTE: this test data is generated by FeatureInte... | 0 | Kotlin | 1 | 2 | dca23f871cc22acee9258c3d58b40d71e3693858 | 622 | kotlin | Apache License 2.0 |
src/main/kotlin/com/github/yona168/giraffe/net/packet/pool/Pool.kt | Yona168 | 157,046,986 | false | null | package com.github.yona168.giraffe.net.packet.pool
/**
* A supplier of objects that reuses passed old ones. This allows for less instances and thus more efficiency.
*/
interface Pool<T> {
/**
* returns the next item in the pool. Equivalent to calling [get].
*/
val nextItem: T
get() = get()
... | 0 | Kotlin | 0 | 0 | dce5f9e32faf84b561724aad11fb2441435cf6c8 | 1,046 | Giraffe | Apache License 2.0 |
app/src/main/java/br/com/lucaspires/tibiainfotracker/data/model/worlds/Worlds.kt | lucaspiresdba | 363,201,525 | false | null | package br.com.lucaspires.tibiainfotracker.data.model.worlds
import com.google.gson.annotations.SerializedName
data class Worlds(
@field:SerializedName("allworlds")
val allworlds: List<AllworldsItem?>? = null,
@field:SerializedName("online")
val online: Int? = null
) | 5 | Kotlin | 0 | 1 | 154da948359b5c9d11786f18416865190cc74ad8 | 287 | tibiainfotracker_public | Apache License 2.0 |
app/src/main/java/com/ovidiu/portfolio/MainApplication.kt | ovidiu-b | 262,657,251 | false | {"Kotlin": 76041} | package com.ovidiu.portfolio
import android.app.Application
import com.jakewharton.threetenabp.AndroidThreeTen
import com.ovidiu.portfolio.di.DaggerApplicationComponent
class MainApplication : Application() {
val applicationComponent by lazy {
DaggerApplicationComponent.factory().create(applicationContext... | 0 | Kotlin | 0 | 1 | 0e325c84feb37b2d61a5be30eb74577154e83950 | 427 | ovidiu-portfolio | Apache License 2.0 |
dotmimsync/src/main/java/com/mimetis/dotmim/sync/builders/ParserString.kt | vunder | 425,091,264 | false | {"Kotlin": 436973} | package com.mimetis.dotmim.sync.builders
class ParserString {
var quotePrefix: String = "["
var quoteSuffix: String = "]"
var schemaName: String = ""
var objectName: String = ""
var databaseName: String = ""
var quotedSchemaName: String = ""
var quotedObjectName: String = ""
var quoted... | 1 | Kotlin | 2 | 0 | c5b9517786e8c497c7291eb73028a5234a4ac5c2 | 348 | dotmimsync | MIT License |
composeApp/src/commonMain/kotlin/com/justas/weather/core/data/network/nom/NOMApi.kt | gasparaitisj | 788,473,219 | false | {"Kotlin": 164495, "Swift": 594, "HTML": 517} | package com.justas.weather.core.data.network.nom
import com.justas.weather.core.data.network.ForecastApi
import com.justas.weather.core.data.response.NOMForecastResponse
import com.justas.weather.core.domain.model.CommonForecast
import com.justas.weather.core.domain.model.CommonPlace
import io.ktor.client.HttpClient
i... | 0 | Kotlin | 0 | 0 | c3ab9a9391fe32a324d797531c822874aea399bc | 972 | weather-app | Apache License 2.0 |
shared/network/src/commonTest/kotlin/com/sedsoftware/tackle/network/mapper/SearchMapperTest.kt | djkovrik | 769,140,107 | false | {"Kotlin": 795331, "Swift": 995} | package com.sedsoftware.tackle.network.mapper
import assertk.assertThat
import assertk.assertions.isNotEmpty
import assertk.assertions.isNotNull
import com.sedsoftware.tackle.domain.model.Account
import com.sedsoftware.tackle.domain.model.HashTag
import com.sedsoftware.tackle.domain.model.Search
import com.sedsoftware... | 15 | Kotlin | 0 | 1 | 820edbc507921f3b511961a1dc2b1259bed5438e | 3,846 | Tackle | MIT License |
src/app/src/main/java/heartRateMonitor/ui/views/DailyPage.kt | lukasmoers | 773,583,661 | false | {"Kotlin": 105910} | package heartRateMonitor.ui.views
import android.util.Log
import android.widget.Toast
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.Image
import androidx.compose.foundation.gestures.detectTapGestures
import androidx.compose.foundation.horizontalScroll
import androidx.compose.foundation.l... | 0 | Kotlin | 0 | 0 | bff5e1c9b1a1e2665007f17acb839a8ccb3c2106 | 22,605 | HeartRateMonitor | MIT License |
app/src/main/java/com/buychemi/crm/ui/activity/FollowUpRecordsActivity.kt | kai0726shanxi | 209,922,638 | false | {"Gradle": 5, "XML": 252, "Java Properties": 3, "Shell": 1, "Text": 1, "Batchfile": 1, "Proguard": 2, "Ignore List": 2, "JSON": 1, "Java": 33, "Kotlin": 218} | package com.buychemi.crm.ui.activity
import android.content.Intent
import android.graphics.Color
import android.support.v4.content.ContextCompat
import android.support.v7.widget.LinearLayoutManager
import android.view.View
import com.buychemi.crm.R
import com.buychemi.crm.base.BaseActivity
import com.buychemi.crm.bean... | 1 | null | 1 | 1 | d9abb27fbd3fe5bc30cdc0e7c483ab07a1668ae8 | 6,372 | CRMBuyCheMiProject | Apache License 2.0 |
androidApp/src/main/java/com/example/notekmm/android/MainActivity.kt | rvenky125 | 548,490,691 | false | {"Kotlin": 16286, "Swift": 1978, "Ruby": 1851} | package com.example.notekmm.android
import android.os.Bundle
import android.util.Log
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColu... | 0 | Kotlin | 0 | 4 | 1e044dc73d1573bf0b0aff5ec0559d7c8b67542d | 5,829 | NoteKMM | MIT License |
src/main/kotlin/com/github/michaelbull/advent/day3/Wire.kt | michaelbull | 225,205,583 | false | null | package com.github.michaelbull.advent.day3
import com.github.michaelbull.advent.Position
data class Wire(
val id: Int,
val path: List<Step>
)
fun String.toWire(id: Int): Wire {
val path = split(",").map(String::toStep)
return Wire(id, path)
}
fun List<Wire>.stepsToIntersect(from: Position, to: Posit... | 0 | Kotlin | 0 | 2 | d271a7c43c863acd411bd1203a93fd10485eade6 | 1,087 | advent-2019 | ISC License |
src/test/java/kotlinx/reflect/lite/testData/modifiers/functions.kt | Kotlin | 41,860,868 | false | {"Kotlin": 516851, "Java": 75} | /*
* Copyright 2016-2022 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package tests.modifiers.functions
import kotlinx.reflect.lite.*
import kotlinx.reflect.lite.jvm.*
import kotlinx.reflect.lite.tests.*
import kotlin.test.assertTrue
import kotlin.test.assertFalse
inline fun i... | 3 | Kotlin | 13 | 156 | 32ffe53981eb559939b6c2f15661138661b31bc6 | 2,553 | kotlinx.reflect.lite | Apache License 2.0 |
map/build/anvil/src-gen-release/de/heilsen/ganzhornfest/map/GetMarkersUseCase_Factory.kt | sebokopter | 38,719,010 | false | {"Kotlin": 315068, "Assembly": 1280} | // Generated by Anvil.
// https://github.com/square/anvil
@file:Suppress(
"DEPRECATION",
"OPT_IN_USAGE",
"OPT_IN_USAGE_ERROR",
)
package de.heilsen.ganzhornfest.map
import dagger.`internal`.Factory
import kotlin.Suppress
import kotlin.jvm.JvmStatic
public object GetMarkersUseCase_Factory : Factory<GetMarkersUs... | 0 | Kotlin | 0 | 2 | 52ad2fdffa6e35bd9f07039d141b3659e66722b5 | 541 | ganzhornfest | MIT License |
app/src/main/java/com/alpriest/energystats/ui/flow/TotalsViewModel.kt | alpriest | 606,081,400 | false | {"Kotlin": 503554} | package com.alpriest.energystats.ui.flow
import com.alpriest.energystats.models.ReportData
import com.alpriest.energystats.models.ReportResponse
import com.alpriest.energystats.models.ReportVariable
import java.lang.Double.max
import java.util.Calendar
class TotalsViewModel(val grid: Double, val feedIn: Double, val l... | 7 | Kotlin | 3 | 3 | 89405674897a5e89b6451bfd361e8691238a8de0 | 1,513 | EnergyStats-Android | MIT License |
src/main/kotlin/model/graph/Graph.kt | spbu-coding-2023 | 790,907,560 | false | {"Kotlin": 10715} | package model.graph
interface Graph<V, E> {
val vertices: Collection<Vertex<V>>
val edges: Collection<Edge<E, V>>
fun addVertex(v: V): Vertex<V>
fun addEdge(u: V, v: V, e: E): Edge<E, V>
}
| 1 | Kotlin | 0 | 0 | 01d8a1f9d9eaac81f9fa20c2f089facb8d087add | 207 | graphs-graph-10 | MIT License |
src/test/kotlin/uk/gov/justice/digital/hmpps/makerecalldecisionapi/service/PersonalDetailServiceTest.kt | ministryofjustice | 478,614,213 | false | null | package uk.gov.justice.digital.hmpps.makerecalldecisionapi.service
import com.natpryce.hamkrest.assertion.assertThat
import com.natpryce.hamkrest.equalTo
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.test.runTest
import org.assertj.core.api.Assertions.assertThat
import org.assertj.core.... | 4 | Kotlin | 1 | 0 | 961c10e6d5596b21dfcaed3a628f759496059140 | 9,981 | make-recall-decision-api | MIT License |
compiler/test/data/typescript/node_modules/mergeDeclarations/moduleWith/namespace.d.kt | Kotlin | 159,510,660 | false | {"Kotlin": 2656818, "WebIDL": 323681, "TypeScript": 135641, "JavaScript": 19475, "ANTLR": 11333} | // [test] namespace.child_process.module_resolved_name.kt
@file:Suppress("INTERFACE_WITH_SUPERCLASS", "OVERRIDING_FINAL_MEMBER", "RETURN_TYPE_MISMATCH_ON_OVERRIDE", "CONFLICTING_OVERLOADS")
package child_process
import kotlin.js.*
import org.khronos.webgl.*
import org.w3c.dom.*
import org.w3c.dom.events.*
import org.w... | 244 | Kotlin | 42 | 535 | d50b9be913ce8a2332b8e97fd518f1ec1ad7f69e | 1,459 | dukat | Apache License 2.0 |
src/test/kotlin/com/github/roroche/eoplantumlbuilder/fixtures/WrappedAssertion.kt | RoRoche | 261,711,580 | false | {"Gradle": 3, "AsciiDoc": 3, "INI": 1, "Shell": 2, "YAML": 3, "Text": 2, "Ignore List": 2, "Batchfile": 1, "PlantUML": 1, "Java Properties": 1, "Java": 3, "Kotlin": 45, "XML": 4} | package com.github.roroche.eoplantumlbuilder.fixtures
import com.pragmaticobjects.oo.tests.Assertion
/**
* Abstract class to wrap [Assertion].
*
* @property delegate The [Assertion] to wrap.
*/
abstract class WrappedAssertion(
private val delegate: Assertion
) : Assertion by delegate | 2 | Kotlin | 0 | 1 | a5cef4bcefbdc071b5832e3ae1f925e8ea6b393b | 294 | eo-plantuml-builder | Apache License 2.0 |
app/src/test/java/com/cyberfanta/talentviewer/views/DeviceUtilsTest.kt | cyberfanta | 389,012,773 | false | null | package com.cyberfanta.talentviewer.views
import junit.framework.TestCase
import org.junit.Assert
class DeviceUtilsTest : TestCase() {
private lateinit var intList : List<Int>
public override fun setUp() {
super.setUp()
intList = listOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
}
fun testGetRan... | 0 | Kotlin | 0 | 0 | fe27f89b97cd3f18306957286eba01a8e9ab8d18 | 586 | TalentViewer | Apache License 2.0 |
src/main/kotlin/com/axel/todo/repos/TodoRepo.kt | axelasa | 670,972,749 | false | null | package com.axel.todo.repos
import com.axel.todo.entities.TodoEntity
import org.springframework.data.domain.Page
import org.springframework.data.domain.Pageable
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.data.jpa.repository.Query
import org.springframework.stereotype.Reposi... | 0 | Kotlin | 0 | 0 | 6e5c7e14a24cd2357341526dc3a5d77e55cf0094 | 694 | todo_backend | MIT License |
app/src/main/kotlin/io/github/nuhkoca/vivy/domain/boundary/DoctorsBoundaryCallback.kt | nuhkoca | 258,777,733 | false | null | /*
* Copyright (C) 2020. <NAME>. All Rights Reserved.
*
* 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 applic... | 1 | Kotlin | 3 | 18 | 512412bef33ffdd0ab0ac2bb358a88ebb0a09c44 | 4,085 | vivy-challenge | Apache License 2.0 |
src/main/kotlin/org/web3kt/explorer/service/TransactionService.kt | web3kt | 829,232,856 | false | {"Kotlin": 53627} | package org.web3kt.explorer.service
import org.springframework.data.domain.Pageable
import org.springframework.data.web.PagedModel
import org.springframework.stereotype.Service
import org.springframework.transaction.annotation.Transactional
import org.web3kt.explorer.domain.transaction.QTransaction
import org.web3kt.e... | 0 | Kotlin | 0 | 0 | 88311efe428ea4be57250a793e099cd60f444ecc | 1,767 | api-explorer | MIT License |
skellig-test-step-processing/src/main/kotlin/org/skellig/teststep/processing/processor/task/StateTaskProcessor.kt | skellig-framework | 263,021,995 | false | {"Kotlin": 1283314, "CSS": 525991, "Java": 270216, "FreeMarker": 66859, "HTML": 11313, "ANTLR": 6165} | package org.skellig.teststep.processing.processor.task
import org.skellig.teststep.processing.state.TestScenarioState
import org.skellig.teststep.processing.util.logger
import org.skellig.teststep.reader.value.expression.AlphanumericValueExpression
import org.skellig.teststep.reader.value.expression.MapValueExpression... | 8 | Kotlin | 0 | 3 | ed375268b0e444f1928f22f4ac27603e9d1fb66b | 1,605 | skellig-core | Apache License 2.0 |
audit4j-kotlin-demo-springboot/src/main/kotlin/org/springframework/samples/petclinic/owner/OwnerController.kt | audit4j | 31,201,226 | false | null | package org.springframework.samples.petclinic.owner
import org.audit4j.core.AuditManager
import org.audit4j.core.annotation.Audit
import org.audit4j.core.annotation.IgnoreAudit
import org.audit4j.core.dto.AuditEvent
import org.audit4j.core.dto.Field
import org.springframework.stereotype.Controller
import org.springfra... | 2 | null | 29 | 18 | 16d62da66a3807e95b45717baa80710abbc1b64a | 3,664 | audit4j-demo | Apache License 2.0 |
app/src/main/java/com/appchamp/dragdroptwolists/MainActivity.kt | dattran2k | 710,616,300 | false | {"Kotlin": 14930, "Java": 3653} | package com.appchamp.dragdroptwolists
import android.content.ClipData
import android.content.Context
import android.os.Bundle
import android.util.Log
import android.util.TypedValue
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.animation.AlphaAnimation
imp... | 0 | Kotlin | 0 | 0 | 304b2b6c5ac53ded978b04bcdc24cc54aeff1429 | 7,900 | DragDropTwoLists | Apache License 2.0 |
plugin/src/main/kotlin/top/iseason/bukkit/sakurapurchaseplugin/util/Result.kt | Iseason2000 | 550,666,060 | false | null | package top.iseason.bukkit.sakurapurchaseplugin.util
import com.google.gson.JsonElement
import com.google.gson.JsonParser
import okhttp3.ResponseBody
import top.iseason.bukkit.sakurapurchaseplugin.manager.Connection
data class Result(
val state: Int,
val message: String,
val data: JsonElement? = null
) {
... | 2 | Java | 6 | 12 | f322ecef59437ba273a9b28bf43022ac6d9d5e91 | 1,022 | SakuraPurchase | MIT License |
graphics/graphics-core/src/main/java/androidx/graphics/opengl/FrameBufferRenderer.kt | androidx | 256,589,781 | false | {"Kotlin": 102794437, "Java": 64412412, "C++": 9138104, "AIDL": 617598, "Python": 310931, "Shell": 189529, "TypeScript": 40586, "HTML": 35176, "Groovy": 27482, "ANTLR": 26700, "Svelte": 20307, "CMake": 18033, "C": 16982, "GLSL": 3842, "Swift": 3153, "JavaScript": 3019} | /*
* Copyright 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 28 | Kotlin | 937 | 5,108 | 89ec14e39cf771106a8719337062572717cbad31 | 9,169 | androidx | Apache License 2.0 |
kgl-glfw/src/commonMain/kotlin/com/kgl/glfw/Monitor.kt | Dominaezzz | 164,507,082 | 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 in w... | 13 | null | 11 | 96 | 41155a8200602535697b872232e41cfe6f5eb20e | 833 | kgl | Apache License 2.0 |
src/main/kotlin/com/github/hotm/client/blockmodel/UnbakedLayeredModel.kt | Heart-of-the-Machine | 271,669,718 | false | null | package com.github.hotm.client.blockmodel
import com.mojang.datafixers.util.Pair
import com.mojang.serialization.Codec
import com.mojang.serialization.codecs.RecordCodecBuilder
import net.minecraft.client.render.model.BakedModel
import net.minecraft.client.render.model.ModelBakeSettings
import net.minecraft.client.ren... | 7 | Kotlin | 0 | 5 | de148c50f9c8ea1d1a3bd4f4dfb035c4614d70a1 | 3,180 | heart-of-the-machine | MIT License |
app/src/main/kotlin/com/serhatsurguvec/androidcleankotlin/layers/presentation/example/ExampleFragment.kt | SerhatSurguvec | 145,163,499 | false | null | package com.serhatsurguvec.androidcleankotlin.layers.presentation.example
import android.os.Bundle
import android.support.v7.widget.DividerItemDecoration
import android.support.v7.widget.LinearLayoutManager
import android.view.View
import android.widget.Toast
import com.serhatsurguvec.androidcleankotlin.R
import com.s... | 2 | Kotlin | 1 | 1 | d9d613685e8044908e4eb8f4ce024fdae6963331 | 2,274 | AndroidCleanKotlin | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/apigateway/IntegrationOptionsDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.apigateway
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.apigateway.IntegrationOptions
@Generated
public fun buildIntegrationOptions(initializer: @AwsCdkDsl IntegrationOptions.Builder.... | 1 | Kotlin | 0 | 0 | 451a1e42282de74a9a119a5716bd95b913662e7c | 414 | aws-cdk-kt | Apache License 2.0 |
business-networks-workflows/src/test/kotlin/net/corda/bn/flows/ActivateMembershipFlowTest.kt | manosbatsis | 307,853,517 | true | {"Kotlin": 460308} | package net.corda.bn.flows
import net.corda.bn.contracts.MembershipContract
import net.corda.bn.states.MembershipState
import net.corda.bn.states.MembershipStatus
import net.corda.core.contracts.UniqueIdentifier
import org.junit.Test
import kotlin.test.assertEquals
import kotlin.test.assertFailsWith
import kotlin.test... | 0 | Kotlin | 0 | 0 | c46d3b9ef3caa31cc77d5845757300562836b436 | 4,496 | bn-extension | Apache License 2.0 |
src/main/kotlin/com/broeskamp/postident/dto/request/signing/SignatureStampPosition.kt | broestech | 536,935,075 | false | {"Kotlin": 70997} | package com.broeskamp.postident.dto.request
import com.thinkinglogic.builder.annotation.Builder
/**
* The size of the signature stamp is 72,5 mm x 24,0 mm. The signature stamp expands from the top left corner.
*/
@Builder
data class SignatureStampPosition(
/**
* the signature page index
*
* Max l... | 6 | Kotlin | 0 | 2 | ec85789f3a67f30935d153b5573196ea338fab6e | 846 | postident_sdk | MIT License |
frontend/HackingTheBookShelf/app/src/main/java/kz/nikitos/hackingthebookshelf/BaseApplication.kt | notbot479 | 853,304,560 | false | {"Kotlin": 79263, "Python": 45672} | package kz.nikitos.hackingthebookshelf
import android.app.Application
open class BaseApplication : Application() | 0 | Kotlin | 0 | 1 | f0fd8aeaaba4f12fb8456b20045d8161ad0f2cd7 | 114 | HackTheBookshelf2024 | MIT License |
main/src/main/java/com/work/theIsle/jetpack/bean/ItemAvatarBeanUtils.kt | Tiannuo | 498,562,269 | false | {"Kotlin": 218272, "Java": 43175} | package com.work.theIsle.jetpack.bean
/**
* @Author TIKOU
* @Date 2022/7/21-14:26
* @Email <EMAIL> & <EMAIL>
* @Description
*/
object ItemAvatarBeanUtils {
public fun getData(): List<ItemAvatarBean> {
val list: MutableList<ItemAvatarBean> = mutableListOf()
val itemAvatarBean1: ItemAvatarBean =... | 0 | Kotlin | 2 | 4 | bf02c12830d80c6bcf7441c50c3f685d322fdf53 | 3,505 | AndroidWork | Apache License 2.0 |
client/app/src/main/java/com/microsoft/research/karya/database/models/PayoutInfoRecord.kt | navana-tech | 394,535,166 | true | {"TypeScript": 729546, "Kotlin": 312743, "Java": 32041, "JavaScript": 6753, "CSS": 1987, "HTML": 1428} | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
/**
* This file was auto-generated using specs and scripts in the db-schema
* repository. DO NOT EDIT DIRECTLY.
*/
package com.microsoft.research.karya.database.models
import androidx.room.Entity
import androidx.room.ForeignKey
import andro... | 0 | null | 0 | 0 | 66d97154bc39d3107a0cd0f0694a68a81bd7b251 | 1,193 | rural-crowdsourcing-toolkit | MIT License |
app/src/main/java/id/teman/app/mitra/ui/registration/food/RegistrationFoodOwnerFormScreen.kt | RifqiFadhell | 681,463,824 | false | null | package id.teman.app.mitra.ui.registration.food
import android.net.Uri
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 androidx.compose.material.Scaffol... | 0 | Kotlin | 0 | 0 | 61a520bd14c97efcef108b0576760108f3f4a687 | 5,586 | Teman-App-Mitra-Mobile | Apache License 2.0 |
app/src/main/kotlin/com/flxrs/dankchat/data/database/entity/MessageHighlightEntity.kt | flex3r | 186,238,019 | false | {"Kotlin": 977613} | package com.flxrs.dankchat.data.database.entity
import android.util.Log
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Ignore
import androidx.room.PrimaryKey
@Entity(tableName = "message_highlight")
data class MessageHighlightEntity(
@PrimaryKey(autoGenerate = true)
val id: L... | 73 | Kotlin | 38 | 266 | 49d86a05f3bba655881e6e93360f216316cee7c9 | 1,591 | DankChat | MIT License |
src/main/kotlin/com/shop/products/domain/sortCriterion/SortCriterion.kt | ortzit | 588,314,011 | false | null | package com.shop.products.domain.sortCriterion
data class SortCriterion(
val type: SortCriterionType,
val weight: Double,
)
enum class SortCriterionType {
SALES_UNITS, STOCK
}
| 0 | Kotlin | 0 | 0 | 0f62268b3a698bcfd5b31ecf180cbf972fb10ad8 | 190 | shop-products-sorting | MIT License |
extension-client/src/commonMain/kotlin/bruhcollective/itaysonlab/ksteam/models/news/NewsCalendarResponseClan.kt | iTaysonLab | 585,761,817 | false | {"Kotlin": 605935} | package bruhcollective.itaysonlab.ksteam.models.news
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
internal data class NewsCalendarResponseClan (
val source: Int,
@SerialName("clanid") val clanId: Long
) | 1 | Kotlin | 1 | 35 | 69f547a200a6eb4d89463d7ccd1e89f5ebae2162 | 263 | kSteam | MIT License |
matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/crypto/model/rest/KeysQueryResponse.kt | tuxayo | 262,321,193 | true | {"Kotlin": 5623807, "Java": 113304, "HTML": 23969, "Shell": 22784, "Python": 5234} | /*
*
* 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
* distr... | 0 | null | 0 | 0 | db0eb73a580b62593fc782a63e282a0c43326fd1 | 1,930 | riotX-android | Apache License 2.0 |
app/src/main/java/ru/aleshi/letsplaycities/remote/internal/LPSServerImpl.kt | AlexanderShirokih | 195,569,812 | false | null | package ru.aleshi.letsplaycities.remote.internal
import io.reactivex.Completable
import io.reactivex.Observable
import io.reactivex.disposables.CompositeDisposable
import io.reactivex.schedulers.Schedulers
import ru.aleshi.letsplaycities.remote.internal.LPSServer.ConnectionListener
import ru.quandastudio.lpsclient.cor... | 0 | Kotlin | 0 | 1 | 19a3153b804b0aceafc94ef764193ad2d1a551bf | 9,837 | letsplaycities2_android | MIT License |
app/src/main/java/com/lau/developerhelper/MainActivity.kt | Andrzej-Krawiec | 321,061,617 | false | null | package com.lau.developerhelper
import android.app.Activity
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.NotificationManager.IMPORTANCE_DEFAULT
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.content.Intent... | 0 | Kotlin | 0 | 0 | f81941c1958e2dfebfc1391f95dfd624afb329f0 | 2,669 | Developerhelper | Apache License 2.0 |
app/src/androidTest/java/com/petrulak/cleankotlin/di/component/ViewMockComponent.kt | Petrulak | 104,648,833 | false | null | package com.petrulak.cleankotlin.di.component
import com.petrulak.cleankotlin.di.module.PresenterMockModule
import com.petrulak.cleankotlin.di.scope.ViewScope
import com.petrulak.cleankotlin.ui.example2.Example2ActivityTest
import com.petrulak.cleankotlin.ui.example2.Example2PresenterTest
import dagger.Component
@Vie... | 0 | null | 10 | 111 | 51033f30ecdb9573000454f1b8890d20c2438002 | 570 | android-kotlin-mvp-clean-architecture | MIT License |
src/main/kotlin/io/github/pdkst/bilibili/danmu/DanmuPack.kt | pdkst | 290,203,285 | false | null | package io.github.pdkst.bilibili.danmu
import java.nio.ByteBuffer
import java.nio.charset.StandardCharsets
class DanmuPack(
val dataBuffer: ByteBuffer,
private val offset: Int = 0
) : Iterable<DanmuPack> {
constructor(byteArray: ByteArray) : this(ByteBuffer.wrap(byteArray))
val packetLength: Int
... | 0 | Kotlin | 0 | 0 | 5e16b7b58b4c69bd289189305deee0030c7c3ed4 | 2,768 | bilibili_danmu_kotlin_version | MIT License |
ksol-rpc/src/main/kotlin/com/dgsd/ksol/jsonrpc/types/RpcSubscriptionConfirmation.kt | dlgrech | 524,875,633 | false | null | package com.dgsd.ksol.jsonrpc.types
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
internal data class RpcSubscriptionConfirmation(
@Json(name = "id") val id: String,
@Json(name = "jsonrpc") val jsonRpc: String,
@Json(name = "result") val result: Long,
) | 0 | Kotlin | 2 | 9 | 153e922fa405d6ba6c33041002bcf53d6293c7cf | 317 | ksol | Apache License 2.0 |
antlr-kotlin-runtime/src/jvmMain/kotlin/com/strumenta/kotlinmultiplatform/chars.kt | phyrian | 262,794,758 | true | {"Gradle Kotlin DSL": 9, "Markdown": 25, "Shell": 3, "Ignore List": 3, "Batchfile": 2, "YAML": 1, "Kotlin": 216, "INI": 2, "HTML": 1, "Gradle": 1, "ANTLR": 55, "JavaScript": 50, "JSON": 1, "Java": 39, "Maven POM": 39, "ABNF": 3, "Text": 88, "Assembly": 5, "Apollo Guidance Computer": 39, "ASN.1": 1, "Brainfuck": 4, "Mak... | package com.strumenta.kotlinmultiplatform
actual fun Char.Companion.isSupplementaryCodePoint(codePoint: Int): Boolean {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
actual fun Char.Companion.charCount(i: Int): Byte {
TODO("not implemented") //To change ... | 0 | Kotlin | 0 | 0 | e0a14dde96b181499a7c347eca7b91c45fd77f48 | 831 | antlr-kotlin | Apache License 2.0 |
app/src/main/java/com/manarimjesse/githubprofiles/presentation/common/components/SimpleCellDescription.kt | gemaxd | 647,301,107 | false | null | package com.manarimjesse.githubprofiles.presentation.common.components
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Text
i... | 0 | Kotlin | 0 | 0 | b34e59b76b6893695013e383a9349257701affa0 | 1,485 | GITHUB-PROFILES | MIT License |
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/jerry/tasks/JerryPrecisionDriveTask.kt | Murray-Bridge-Bunyips | 495,018,266 | false | null | package org.firstinspires.ftc.teamcode.jerry.tasks
import org.firstinspires.ftc.teamcode.common.BunyipsOpMode
import org.firstinspires.ftc.teamcode.common.IMUOp
import org.firstinspires.ftc.teamcode.common.Odometer
import org.firstinspires.ftc.teamcode.common.tasks.Task
import org.firstinspires.ftc.teamcode.common.tas... | 0 | Kotlin | 0 | 3 | f3de49cd68d4e8e5aea4669437abd9270960556c | 3,792 | BunyipsFTC | BSD 3-Clause Clear License |
modules/data/src/main/kotlin/com/harleyoconnor/gitdesk/data/settings/JsonSettings.kt | Harleyoc1 | 437,374,163 | false | {"Kotlin": 627023, "CSS": 15559, "Java": 5354} | package com.harleyoconnor.gitdesk.data.settings
import com.harleyoconnor.gitdesk.util.create
import com.squareup.moshi.JsonAdapter
import java.io.EOFException
import java.io.File
class JsonSettings<T : Settings.SettingsData>(
private val dataAdapter: JsonAdapter<T>,
private val defaultData: T,
private val... | 0 | Kotlin | 0 | 0 | 88e49e1e3f1072fd16e7651dc716b891c50cfa71 | 884 | GitDesk | MIT License |
app/src/main/java/com/oxyethylene/emojiclipboard/domain/model/EmojiTnList.kt | PolyOxyethylene | 861,748,888 | false | {"Kotlin": 58608} | package com.oxyethylene.emojiclipboard.domain.model
import android.util.Log
import com.oxyethylene.emojiclipboard.domain.base.Thumbnail
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
/**
* 默认展示一个 emoji,另外还包含了以这个 emoji 为基础的衍生 emoji 列表
* @property name ... | 0 | Kotlin | 0 | 0 | 9aea343253bb49c28cfec6e7fe0da4154b222aac | 1,052 | Emoji-Clipboard | Apache License 2.0 |
src/test/kotlin/g0201_0300/s0279_perfect_squares/SolutionTest.kt | javadev | 190,711,550 | false | {"Kotlin": 4901773, "TypeScript": 50437, "Python": 3646, "Shell": 994} | package g0201_0300.s0279_perfect_squares
import org.hamcrest.CoreMatchers.equalTo
import org.hamcrest.MatcherAssert.assertThat
import org.junit.jupiter.api.Test
internal class SolutionTest {
@Test
fun numSquares() {
assertThat(Solution().numSquares(12), equalTo(3))
}
@Test
fun numSquares2... | 0 | Kotlin | 20 | 43 | 471d45c60f669ea1a2e103e6b4d8d54da55711df | 391 | LeetCode-in-Kotlin | MIT License |
sentry-android-integration-tests/sentry-uitest-android/src/androidTest/java/io/sentry/uitest/android/AutomaticSpansTest.kt | getsentry | 3,368,190 | false | {"Kotlin": 3312354, "Java": 2633084, "C": 18038, "Shell": 4181, "Python": 3773, "Makefile": 2269, "CMake": 985, "C++": 703} | package io.sentry.uitest.android
import androidx.lifecycle.Lifecycle
import androidx.test.core.app.launchActivity
import androidx.test.espresso.Espresso
import androidx.test.espresso.IdlingRegistry
import androidx.test.espresso.action.ViewActions
import androidx.test.espresso.matcher.ViewMatchers
import androidx.test.... | 300 | Kotlin | 435 | 1,155 | 378d12c8be1519ed7caea8bb7db8bcb0ab8275a0 | 6,182 | sentry-java | MIT License |
samples/containers/poetry/src/main/java/com/squareup/sample/poetry/StanzaWorkflow.kt | isabella232 | 312,556,379 | true | {"Kotlin": 782761, "Shell": 1911, "Ruby": 1461, "Java": 806} | package com.squareup.sample.poetry
import com.squareup.sample.poetry.StanzaWorkflow.Output
import com.squareup.sample.poetry.StanzaWorkflow.Output.CloseStanzas
import com.squareup.sample.poetry.StanzaWorkflow.Output.ShowNextStanza
import com.squareup.sample.poetry.StanzaWorkflow.Output.ShowPreviousStanza
import com.sq... | 1 | null | 0 | 0 | bcbf20b99d8acd278c7ebc30f2c391fd0470c8f7 | 1,866 | workflow-kotlin | Apache License 2.0 |
kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventMouse.kt | utopia-rise | 289,462,532 | false | {"Kotlin": 1482791, "GDScript": 533983, "C++": 491643, "C": 12468, "C#": 10278, "Shell": 7406, "Java": 2153, "CMake": 939, "Python": 75} | // THIS FILE IS GENERATED! DO NOT EDIT IT MANUALLY!
@file:Suppress("PackageDirectoryMismatch", "unused", "FunctionName", "RedundantModalityModifier",
"UNCHECKED_CAST", "JoinDeclarationAndAssignment", "USELESS_CAST",
"RemoveRedundantQualifierName", "NOTHING_TO_INLINE", "NON_FINAL_MEMBER_IN_OBJECT",
"Redundan... | 63 | Kotlin | 39 | 571 | 39dc30230a30d2a6ab4ec3277eb3bc270995ab23 | 6,404 | godot-kotlin-jvm | MIT License |
telegram/src/main/kotlin/com/github/ayastrebov/telegram/model/User.kt | AYastrebov | 835,151,981 | false | {"Kotlin": 32817} | package com.github.ayastrebov.telegram.model
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class User(
val id: Long,
@SerialName("is_bot")
val isBot: Boolean = false,
@SerialName("first_name")
val firstName: String,
@SerialName("last_na... | 0 | Kotlin | 0 | 0 | 55404532a5d6cece5d71dc55326e8ce54b64214c | 469 | KTelegram | MIT License |
HTTPShortcuts/app/src/main/java/ch/rmy/android/http_shortcuts/adapters/BaseAdapter.kt | staticStone | 136,870,061 | true | {"Kotlin": 435889, "Java": 57185} | package ch.rmy.android.http_shortcuts.adapters
import android.content.Context
import android.support.annotation.StringRes
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.TextView
import ch.rmy.android.http_shortcuts.R
import ch.rmy.a... | 0 | Kotlin | 0 | 0 | 2570dc75da654c232ea8f778c65116132a447978 | 2,936 | HTTP-Shortcuts | MIT License |
fontawesome/src/de/msrd0/fontawesome/icons/FA_SPIDER.kt | msrd0 | 363,665,023 | false | null | /* @generated
*
* This file is part of the FontAwesome Kotlin library.
* https://github.com/msrd0/fontawesome-kt
*
* This library is not affiliated with FontAwesome.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 0 | Kotlin | 0 | 0 | 2fc4755051325e730e9d012c9dfe94f5ea800fdd | 2,653 | fontawesome-kt | Apache License 2.0 |
fontawesome/src/de/msrd0/fontawesome/icons/FA_SPIDER.kt | msrd0 | 363,665,023 | false | null | /* @generated
*
* This file is part of the FontAwesome Kotlin library.
* https://github.com/msrd0/fontawesome-kt
*
* This library is not affiliated with FontAwesome.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 0 | Kotlin | 0 | 0 | 2fc4755051325e730e9d012c9dfe94f5ea800fdd | 2,653 | fontawesome-kt | Apache License 2.0 |
app/src/main/java/com/example/myapplication/Teacher/Subject/SubjectPresenter.kt | resurreccionerick | 709,453,429 | false | {"Kotlin": 229120} | package com.example.myapplication.Teacher.Subject
import com.example.myapplication.Models.Subject
import com.google.firebase.database.DataSnapshot
import com.google.firebase.database.DatabaseError
import com.google.firebase.database.FirebaseDatabase
import com.google.firebase.database.ValueEventListener
class Subject... | 0 | Kotlin | 0 | 0 | ef83384d40987c6e2fbaf69eb467c09d1e6cd343 | 1,989 | KindergartenCAI-MVP | MIT License |
app/src/main/java/com/rerere/iwara4a/ui/screen/playlist/PlaylistDialog.kt | jiangdashao | 349,642,808 | false | null | package com.rerere.iwara4a.ui.screen.playlist
import android.widget.Toast
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.Crossfade
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.animation.animateContentSize
import androidx.compose.foundation.E... | 0 | null | 15 | 268 | 364a2a380acb2fa7b02cda696c03e90f93447d33 | 20,454 | iwara4a | Apache License 2.0 |
platform/platform-tests/testSrc/com/intellij/execution/wsl/WslRule.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.execution.wsl
import com.intellij.openapi.diagnostic.thisLogger
import com.intellij.openapi.util.io.IoTestUtil
import org.junit.Assume.assu... | 236 | null | 4946 | 15,650 | 32f33d7b7126014b860912a5b6088ffc50fc241d | 2,132 | intellij-community | Apache License 2.0 |
app/src/main/java/org/stepik/android/cache/step/StepCacheDataSourceImpl.kt | StepicOrg | 42,045,161 | false | {"Kotlin": 4281147, "Java": 1001895, "CSS": 5482, "Shell": 618} | package org.stepik.android.cache.step
import io.reactivex.Completable
import io.reactivex.Single
import org.stepic.droid.storage.operations.DatabaseFacade
import org.stepik.android.data.step.source.StepCacheDataSource
import org.stepik.android.model.Step
import javax.inject.Inject
class StepCacheDataSourceImpl
@Injec... | 13 | Kotlin | 54 | 189 | dd12cb96811a6fc2a7addcd969381570e335aca7 | 716 | stepik-android | Apache License 2.0 |
src/main/kotlin/de/sambalmueslie/openevent/storage/account/AccountData.kt | Black-Forrest-Development | 542,810,521 | false | {"Kotlin": 334759, "TypeScript": 179633, "HTML": 73007, "SCSS": 3950, "Batchfile": 202} | package de.sambalmueslie.openevent.storage.account
import de.sambalmueslie.openevent.core.model.Account
import de.sambalmueslie.openevent.core.model.AccountChangeRequest
import de.sambalmueslie.openevent.storage.SimpleDataObject
import jakarta.persistence.*
import java.time.LocalDateTime
@Entity(name = "Account")
@Ta... | 6 | Kotlin | 0 | 1 | 43cf66668db937150ae8f14078437c1e5a7287e2 | 1,889 | open-event | Apache License 2.0 |
app/src/main/java/com/example/eonet/domain/utils/DateFormatter.kt | ntej | 849,076,151 | false | {"Kotlin": 51598, "Java": 1808} | package com.example.eonet.domain.utils
import android.util.Log
import java.time.ZoneId
import java.time.ZonedDateTime
import java.time.format.DateTimeFormatter
import javax.inject.Inject
class DateFormatter @Inject constructor() {
fun formatDate(date:String?):String{
if(date!=null){
return tr... | 0 | Kotlin | 0 | 0 | 1abc2ae3faeac1f65214d8bbfd5b31dfd3dcbf3b | 1,102 | EONET | Apache License 2.0 |
app/src/main/java/com/lsp/view/bean/Tags.kt | XDH2022 | 543,947,353 | false | {"Kotlin": 58994, "Java": 1061} | package com.lsp.view.bean
class Tags(val tag: String) | 0 | Kotlin | 0 | 0 | e3bbc2280b4461ed73605d8e80922e663535ddc1 | 54 | YandView | MIT License |
app/src/main/java/org/jamescowan/gattclient/view/MainActivity.kt | jmc420 | 134,409,956 | false | null | package org.jamescowan.gattclient.view
import android.Manifest
import android.bluetooth.BluetoothDevice
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Bundle
import android.support.v4.app.ActivityCompat
import android.support.v4.content.ContextCompat
import android.support.v7.... | 0 | Kotlin | 0 | 0 | e3c2c9e93d52867de529a9ea753c29ccd8ca2c0f | 6,479 | sample-bluetooth-le-gattclient | Apache License 2.0 |
platform/build-scripts/icons/src/org/jetbrains/intellij/build/images/sync/reportUtils.kt | xrloong | 158,166,197 | true | null | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.intellij.build.images.sync
import java.io.File
import java.util.*
import java.util.stream.Stream
import kotlin.streams.toList
internal fun report(context: ... | 0 | null | 0 | 0 | 5c1b5aa202574562f3d5dd133334d352fd04ae2b | 8,709 | intellij-community | Apache License 2.0 |
src/main/kotlin/no/nav/syfo/api/internal/SelftestRessurs.kt | navikt | 164,875,446 | false | {"Gradle": 1, "Markdown": 2, "CODEOWNERS": 1, "Gradle Kotlin DSL": 1, "Dockerfile": 1, "Shell": 2, "Ignore List": 1, "Batchfile": 1, "YAML": 13, "INI": 1, "Java": 166, "XML": 11, "SQL": 37, "Kotlin": 160, "XSLT": 2, "GraphQL": 2, "PLSQL": 1} | package no.nav.syfo.api.internal
import no.nav.security.token.support.core.api.Unprotected
import org.springframework.http.MediaType
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
@RestController
@RequestMapping(value = ["/internal"])
class ... | 7 | Java | 0 | 0 | 37290227eef2e7dee782877ae6c10af1d26bc371 | 688 | syfooppfolgingsplanservice | MIT License |
ktor-features/ktor-html-builder/jvm/src/io/ktor/html/RespondHtmlTemplate.kt | LloydFinch | 166,520,021 | true | {"Kotlin": 2419371, "Lua": 280, "HTML": 112} | package io.ktor.html
import kotlinx.html.*
import io.ktor.application.*
import io.ktor.http.*
suspend fun <TTemplate : Template<HTML>> ApplicationCall.respondHtmlTemplate(template: TTemplate, status: HttpStatusCode = HttpStatusCode.OK, body: TTemplate.() -> Unit) {
template.body()
respondHtml(status) { with(t... | 0 | Kotlin | 0 | 2 | 9b9fc6c3b853c929a806c65cf6bf7c104b4c07fc | 344 | ktor | Apache License 2.0 |
app/src/main/java/nick/mirosh/newsapp/domain/usecase/articles/FetchArticlesUsecase.kt | nsmirosh | 644,001,365 | false | {"Kotlin": 54353} | package nick.mirosh.newsapp.domain.usecase.articles
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.withContext
import nick.mirosh.newsapp.data.repository.NewsRepository
import nick.mirosh.newsapp.di.IoDispatcher
import nick.mirosh.newsapp.di.Universal
import nick.mirosh.newsapp.domain.Resource... | 0 | Kotlin | 1 | 2 | 688234d15b15265bff2a009adc131db76c7eccad | 747 | NewsApp | MIT License |
android/DartsScorecard/app/src/test/java/nl/entreco/dartsscorecard/play/Play01AnimatorHandlerTest.kt | Entreco | 110,022,468 | false | {"Markdown": 3, "Text": 3, "Ignore List": 10, "YAML": 2, "SVG": 35, "HTML": 1, "PHP": 1, "CSS": 1, "Gradle": 15, "Java Properties": 2, "Shell": 1, "Batchfile": 1, "Proguard": 7, "Kotlin": 637, "XML": 222, "JSON": 2, "Java": 2} | package nl.entreco.dartsscorecard.play
import android.view.View
import android.view.ViewPropertyAnimator
import androidx.viewpager.widget.ViewPager
import nl.entreco.dartsscorecard.base.widget.MaxHeightRecyclerView
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
import org.mockito.Mock
im... | 4 | null | 1 | 1 | a031a0eeadd0aa21cd587b5008364a16f890b264 | 2,052 | Darts-Scorecard | Apache License 2.0 |
app/src/main/java/com/kormax/universalreader/apple/vas/VasRegularCryptoProvider.kt | kormax | 813,025,174 | false | {"Kotlin": 134187} | package com.kormax.universalreader.apple.vas
import com.kormax.universalreader.sha256
import com.kormax.universalreader.toUInt
import org.bouncycastle.crypto.digests.SHA256Digest
import org.bouncycastle.crypto.generators.KDF2BytesGenerator
import org.bouncycastle.crypto.params.KDFParameters
import org.bouncycastle.jce... | 0 | Kotlin | 0 | 4 | c4faab5d9aef822e78f2bc8d54fd355410486901 | 3,947 | android-universal-reader | Apache License 2.0 |
app/src/main/java/nz/co/panpanini/kotlindatabinding/ui/repo/RepoActivity.kt | panpanini | 80,402,953 | false | null | package nz.co.panpanini.kotlindatabinding.ui.repo
import android.content.Context
import android.content.Intent
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.support.v7.widget.DividerItemDecoration
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.w... | 1 | Kotlin | 0 | 0 | a7bbf07502b49d990e089d7ef5eef5465cfffe1f | 2,454 | KotlinWithDatabinding | The Unlicense |
core/converter/api/src/main/kotlin/odoo/miem/android/core/jsonrpc/converter/api/ISerializer.kt | 19111OdooApp | 546,191,502 | false | {"Kotlin": 889625} | package odoo.miem.android.core.jsonrpc.converter.api
/**
* [ISerializer] is a converter of request
*
* @author <NAME>
*/
interface ISerializer {
/**
* This method serialize data from [clazz] with [data] to [String]
*/
fun <T> serialize(clazz: Class<out T>, data: T): String
}
| 0 | Kotlin | 1 | 5 | e107fcbb8db2d179d40b5c1747051d2cb75e58c6 | 300 | OdooApp-Android | Apache License 2.0 |
src/jsFrontendCommonMain/kotlin/de/robolab/client/ui/adapter/HammerJsExtension.kt | pixix4 | 243,975,894 | false | null | package de.robolab.client.ui.adapter
import de.robolab.client.utils.buildJsInterface
import de.westermann.kwebview.Document
import org.w3c.dom.TouchEvent
import org.w3c.dom.events.MouseEvent
@Suppress("unused")
fun Hammer.enablePan() {
get("pan").set(buildJsInterface {
this.enable = true
this.dir... | 4 | Kotlin | 0 | 2 | 1f20731971a9b02f971f01ab8ae8f4e506ff542b | 3,525 | robolab-renderer | MIT License |
ui-kit/src/main/java/com/quickblox/android_ui_kit/presentation/dialogs/FeaturesDialog.kt | QuickBlox | 637,751,718 | false | {"Kotlin": 1833847} | /*
* Created by Injoit on 3.11.2023.
* Copyright © 2023 Quickblox. All rights reserved.
*/
package com.quickblox.android_ui_kit.presentation.dialogs
import android.content.Context
import android.view.View
import com.quickblox.android_ui_kit.R
import com.quickblox.android_ui_kit.presentation.base.BaseDialog
import ... | 1 | Kotlin | 0 | 4 | 0ef856d22efb1540d6e238a073badbf31c03961a | 1,498 | android-ui-kit | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.