hexsha stringlengths 40 40 | size int64 8 1.04M | content stringlengths 8 1.04M | avg_line_length float64 2.24 100 | max_line_length int64 4 1k | alphanum_fraction float64 0.25 0.97 |
|---|---|---|---|---|---|
0ade868ce6e5f97c25aad9f8b892414ab5f220a1 | 727 |
/**
* Author: ARUN BALAJI R
* Date: 14 July 2021 (Wednesday)
*/
import java.util.*;
public class RotateSubArray{
public static void main(String args[]){
Solution s = new Solution();
int arr[]= {1,2,3,4,5};
s.rotateSubArray(arr,3);
}
}
class Solution{
public void rotateSubArray(int arr[],int k){
ro... | 18.641026 | 46 | 0.502063 |
304dce361fb06ee2e7b4b16d7f45f6264040cb45 | 11,459 | /*
* Copyright (C) 2021 Bayer AG
*
* 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 ... | 53.050926 | 258 | 0.589231 |
015d835dc718922bf806f8a99c5c996385a71f44 | 1,964 | package act.test.util;
/*-
* #%L
* ACT Framework
* %%
* Copyright (C) 2018 ActFramework
* %%
* 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/... | 27.661972 | 75 | 0.610489 |
41aab48a045392fd663ba21af75ab06b8f3381ea | 4,952 | package com.igoso.me.xdf;
import com.igoso.me.xdf.executor.ExecutorUtil;
import com.igoso.me.xdf.executor.MediaLoader;
import com.igoso.me.xdf.util.ClientUtil;
import com.igoso.me.xdf.util.HttpUtil;
import com.igoso.me.xdf.util.TimeUtil;
import io.netty.handler.codec.http.HttpHeaders;
import io.netty.handler.codec.htt... | 39.301587 | 115 | 0.622577 |
943d9dbba43265d915ea2c335e8fa8c28f365fa7 | 1,987 | package com.light.myilists.db;
import android.content.Context;
import com.j256.ormlite.dao.RuntimeExceptionDao;
import com.j256.ormlite.stmt.QueryBuilder;
import com.light.myilists.model.TodoInfoBean;
import java.sql.SQLException;
import java.util.List;
/**
* Created by light on 15/6/23.
*/
public class DataBaseU... | 25.151899 | 100 | 0.65224 |
34d753fccdc91e460cfa0e6ec092916fdaa3d5a1 | 461 | package com.github.lwhite1.tablesaw.columns;
import com.github.lwhite1.tablesaw.api.DateTimeColumn;
import com.github.lwhite1.tablesaw.filtering.predicates.LongPredicate;
import it.unimi.dsi.fastutil.longs.LongArrayList;
/**
*
*/
public interface DateTimeColumnUtils extends Column {
LongPredicate isMissing = i... | 27.117647 | 72 | 0.776573 |
0ab3615a340a6af74891df79068582ac66a2ddf2 | 26,042 | package org.signature.ui.audioPlayer;
import javafx.application.Platform;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.hibernate.Session;
import or... | 39.698171 | 167 | 0.493088 |
1060a1d707a5b2595862758f3218ef9023789b78 | 21,195 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package falconserver;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputSt... | 46.176471 | 121 | 0.507903 |
dd5fe734194ec6e2a4394ec28aec57ba693c293a | 7,426 | package epicsquid.roots.integration.crafttweaker.tweaks;
import crafttweaker.CraftTweakerAPI;
import crafttweaker.annotations.ZenRegister;
import crafttweaker.api.entity.IEntityDefinition;
import crafttweaker.api.item.IIngredient;
import crafttweaker.mc1120.CraftTweaker;
import epicsquid.roots.Roots;
import epicsquid.... | 35.874396 | 321 | 0.713843 |
7845b466beff95af3cf0f67a5e0296b2591a1131 | 331 | package me.mateus.milkshake.core.command.interfaces;
import me.mateus.milkshake.core.command.ArgumentType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Retention(RetentionPolicy.RUNTIME)
public @interface Argument {
String name();
ArgumentType type();
boolean oblig... | 23.642857 | 53 | 0.785498 |
0626fd08d1f99d54acb77aa028331255d5625a41 | 2,082 | /*
* Copyright 2015-2018 Micro Focus or one of its affiliates.
*
* 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... | 40.823529 | 136 | 0.731028 |
983d1851de20f02d600de7f937bfc22ae00b0c77 | 2,214 | package net.boostedbrightness;
import java.lang.Math;
import org.lwjgl.glfw.GLFW;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper;
import net.minecraft.client.options.KeyBindi... | 28.753247 | 74 | 0.725836 |
c5cd9b4686abd42397e2e23ebbb9b5bd61bfa80b | 1,394 | /*
* Copyright (c) 2022 [The original author]
*
* 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 ... | 35.74359 | 106 | 0.787661 |
2bd3805a7323cd12b20f4031f905c58abb51d2ea | 1,075 | package com.ruoyi.project.system.files.service;
import com.ruoyi.project.system.files.domain.PlaysOrder;
import java.util.List;
/**
* 播放顺序 服务层
*
* @author yc
* @date 2018-12-25
*/
public interface IPlayOrderService
{
/**
* 查询播放顺序信息
*
* @param id 播放顺序ID
* @return 播放顺序信息
*/
public Play... | 17.33871 | 59 | 0.614884 |
1027f4327a6926f9b18193faf8fefc795df22ffb | 2,203 | package en.mikula.adventure.gui;
import en.mikula.adventure.items.Item;
import en.mikula.adventure.utils.ItemUtils;
import en.mikula.adventure.utils.Observer;
import javafx.scene.Node;
import javafx.scene.control.TitledPane;
import javafx.scene.control.Tooltip;
import javafx.scene.image.Image;
import javafx.scene.imag... | 25.616279 | 80 | 0.623695 |
01ad3368d1f68707fec2e82a4ee7708e34e2b48e | 1,984 | /**
* Meal Plan Calculator using while loops
* @author Victor Lourng
* @version 2016
*/
import java.util.Scanner;
public class LoopWhile {
/**
* Ask user for information about their meal plan, then runs methods below.
*/
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.... | 40.489796 | 178 | 0.677419 |
8736fbd4df55e0fedc8b1a7f81e473bda6066b4b | 111 | package io.jenkins.plugins.tuleap_api.client;
public interface AccessKeyScope {
String getIdentifier();
}
| 18.5 | 45 | 0.783784 |
d352ca3cb519542447adc8d00b62115898026adb | 421 | package com.goat.chapter105.item07.buzz05;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
@Configuration
@ComponentScan("com.goat.chapter105.item07.buzz05")
public class MyConfig2 {
@Bean
... | 22.157895 | 60 | 0.790974 |
d3b9af2d5781d042167ae66e651b5e2b7bc7b910 | 14,267 | package com.harmonycloud.zeus.service.k8s.impl;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.harmonycloud.caas.common.model.middleware.IngressDTO;
import com.harmonycloud.caas.common.model.middleware.Middleware;
import com.... | 48.199324 | 122 | 0.682835 |
dd78b1c6210b73d32aa26cfeb5fcf163a443bb6b | 246 | package com.gentics.mesh.core.rest.node.field;
import com.gentics.mesh.core.rest.common.RestModel;
public interface Field extends RestModel {
/**
* Return the field type.
*
* @return Type of the field
*/
public String getType();
}
| 16.4 | 51 | 0.707317 |
d3fb2c1832bb21f309beb2db1c9ea78b114f9277 | 14,243 | /*
* Copyright 2000-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 39.896359 | 146 | 0.706733 |
29e4d12f4597ef96a1a94fd798352e1476c8a3b7 | 9,394 | /*
* Copyright (C) 2016, 2017, 2018, 2019 HaiYang Li
*
* 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... | 25.950276 | 110 | 0.443581 |
fbdee23245bed874d92bba4ce52cef180736d8b0 | 2,500 | package eu.darken.ommvplib.injection;
import android.app.Activity;
import android.app.Fragment;
import eu.darken.ommvplib.base.Presenter;
import eu.darken.ommvplib.base.PresenterSource;
import eu.darken.ommvplib.injection.activity.HasManualActivityInjector;
import eu.darken.ommvplib.injection.fragment.HasManualFragme... | 37.878788 | 127 | 0.7104 |
4fc673d12cc079c81a5ee8661bd363e0efbc9197 | 987 | package com.ecommerce.dao;
import com.ecommerce.pojo.StoStoreOrder;
import com.ecommerce.pojo.StoStoreOrderExample;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface StoStoreOrderMapper {
long countByExample(StoStoreOrderExample exa... | 31.83871 | 120 | 0.802432 |
df92ec7d73b7e2b515914ef51c4a5e8960e1f80c | 9,284 | package gregicality.science.common.metatileentities.multiblock;
import gregicality.science.api.recipes.GCYSRecipeMaps;
import gregicality.science.api.recipes.recipeproperties.NoCoilTemperatureProperty;
import gregicality.science.client.render.GCYSTextures;
import gregicality.science.common.metatileentities.GCYSMetaTil... | 44.850242 | 215 | 0.684942 |
510b266d09fffe1676941cf0543c5bffc23690f1 | 3,474 | package com.littlechoc.olddriver.ui.fragment;
import android.bluetooth.BluetoothDevice;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AlertDialog;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v... | 27.354331 | 107 | 0.724525 |
2146adcb2549b7b270ecce3dac368f3a41c40242 | 6,662 | /*
* Process Services Enterprise API
* Provides access to the complete features provided by Alfresco Process Services powered by Activiti. You can use this API to integrate Alfresco Process Services with external applications.
*
* OpenAPI spec version: 1.0
*
*
* NOTE: This class is auto generated by the swagge... | 27.643154 | 191 | 0.654158 |
0fe43b0ea9570a8c6e67301ca6050bb8b4a466d3 | 1,995 | package github.toby0622.operators;
public class Main {
public static void main(String[] args) {
// int a = 5;
//
// a = a + 2;
// a += 2;
// a++;
// a--;
// ------------------------------------------------
// int a = 5;
// int b = 3;
//
// boolean answer = ... | 23.197674 | 72 | 0.363409 |
f99594ee256454d259b052882e1743aef1e0032a | 6,207 | package com.zondy.mapgis.mobile.react;
import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.Promise;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactMethod;
import com.facebook.re... | 35.672414 | 109 | 0.591912 |
6b9df8b0e50d61998a67551710f4de42de45d28d | 9,234 | /*
* Copyright 2022 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... | 45.940299 | 113 | 0.816114 |
7876ff09bf3a409318b879d98e8cf337714787e4 | 749 | package dev.bukgeuk.polarmagic.util;
import net.minecraft.entity.EntityType;
import java.io.Serializable;
import java.util.UUID;
public class MagicCircleEntityData implements Serializable {
public EntityType<?> type;
public UUID entityUUID;
public int entityID;
public double x;
public double y;
... | 25.827586 | 139 | 0.654206 |
488a4d660affd1ccd73b039528c7d431b3358272 | 1,484 | package nl.mvdr.adventofcode.adventofcode2019.day20;
import java.util.stream.Stream;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import nl.mvdr.adventofcode.IntSolver;
/**
* Solution to the day 20 puzzle of 2019's Advent of Code:
* <a href="https://adventofcode.com/2019/day/20">Donut Maze</a>.
*
* ... | 26.035088 | 87 | 0.647574 |
7bd8b91e92d417fda2f5dfa0ddd7c485636791ec | 2,651 | package com.github.cukedoctor.extension;
import static com.github.cukedoctor.extension.util.FileUtil.loadTestFile;
import static com.github.cukedoctor.extension.util.FileUtil.readFileContent;
import static org.assertj.core.api.Assertions.assertThat;
import java.io.File;
import static com.github.cukedoctor.extension.C... | 34.881579 | 134 | 0.694078 |
4f127bd39dd8f360d29afea58986de9daad80490 | 7,613 | /*
Copyright 2018 Andrew Holbrook
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sub... | 39.445596 | 118 | 0.757914 |
1297ad28e7c3af5aaa716770381339645d3ac26b | 135 | package com.pattern.design;
public class Cat extends Animal {
public Cat() {
super();
setSound("Meow");
}
}
| 12.272727 | 33 | 0.562963 |
d728eaf3b9127b12ec41235df26f554af7a26c77 | 1,150 | package com.hjwylde.qbs.builder.resources;
import static java.util.Arrays.asList;
import com.google.common.collect.ImmutableSet;
import java.util.Iterator;
/**
* A set of resources.
*
* @author Henry J. Wylde
*/
public class ResourceSet extends AbstractResourceCollection {
private final ImmutableSet<Resour... | 21.698113 | 76 | 0.637391 |
fb0246862e691ca342fd59e8607852883107da96 | 8,987 | package org.robolectric.shadows;
import android.app.Activity;
import android.content.res.ColorStateList;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.content.res.XmlResourceParser;
import android.graphics.drawable.AnimationDrawable;
import android.graphics.drawable.Bit... | 36.092369 | 152 | 0.717147 |
322e3f6133bbf8bf05b82aa05f70d9f7d2cf039b | 1,920 | package pt.pedroguerra.pgjava;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assertions.assertEquals;
import com.github.fridujo.rabbitmq.mock.MockConnectionFactory;
import org.junit.jupiter.api.Test;
import org.springframework.amqp.rabbit.connection.CachingConnectionFac... | 29.538462 | 90 | 0.815625 |
5c91dd7cf364405748ed552942fdc739a2f9ec3a | 3,397 | /*
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 42.4625 | 140 | 0.727112 |
ce96a5a6418bb2fe4692aae8798e383d891b2df0 | 121 | /*
* Provides classes for specifying and using Cyc inference metrics.
*/
package com.cyc.baseclient.inference.metrics;
| 24.2 | 67 | 0.77686 |
9ed83826bc54f403be0d6b852c6da9c54a5740b8 | 213 | package org.track.arthas;
import org.junit.Test;
import org.track.DanielTrackApplicationTests;
public class AlibabaArthasTests extends DanielTrackApplicationTests {
@Test
public void test() {
}
}
| 15.214286 | 69 | 0.755869 |
af799514e309651e0e01216011ac9a5c91c517ab | 182 | /**
*
*/
package com.tangdao.scheduler.provider;
/**
* <p>
* TODO 描述
* </p>
*
* @author ruyang
* @since 2021年4月13日
*/
public class SchedulerJobService {
}
| 10.705882 | 40 | 0.543956 |
b5ed7f67edf139fd06ee26e1326b67d8c5c118f5 | 3,095 | package jgraphs.subsystem.persistence;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
import jgraphs.algorithm.backtracking.BacktrackingAll;
import jgraphs.app.permutation.PermutationModule;
import jgraphs.app.permutation.Permut... | 39.177215 | 137 | 0.726333 |
49232db9c4e9efe88b51c84084cf5e24936dc27b | 1,786 | package org.apereo.cas;
import org.apereo.cas.config.CasCoreUtilConfiguration;
import org.apereo.cas.config.CasPersonDirectoryConfiguration;
import org.apereo.cas.config.CasPersonDirectoryGroovyConfiguration;
import org.apereo.cas.config.CasPersonDirectoryGrouperConfiguration;
import org.apereo.cas.config.CasPersonDir... | 39.688889 | 79 | 0.819149 |
25b507ce10f1416699d565fc154aca326138af86 | 16,957 | /*
* Copyright (c) Huawei Technologies Co., Ltd. 2020-2022. 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
*
... | 29.388215 | 115 | 0.64811 |
f72780cbc1bd780a85d27388e180a9f8e17f4727 | 18,376 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.firebase.client.core;
import com.firebase.client.*;
import com.firebase.client.authentication.NoopCredentialStore;
import com.firebase.client.... | 37.8107 | 140 | 0.575969 |
cf61ada8032baaa60e798e7a5bbf4c2f4a8083ed | 644 | package uz.pc.backend.Models;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.lang.Nullable;
import javax.persistence.*;
import java.time.LocalTime;
@Entity
@Table(name="settings")
@Getter
@Setter
@NoArgsConstr... | 18.941176 | 52 | 0.714286 |
60d21e4fe3538cc0522f540f9f817d56de7de218 | 4,572 | package frc.robot;
import java.util.HashMap;
import java.util.Map;
/**
*
*/
public class ControlLime {
public enum LedMode {
kpipeLine(0), //0 use the LED Mode set in the current pipeline
kforceOff(1), //1 force off
kforceBlink(2), //2 force blink
kforceOn(3); //3 force o... | 22.302439 | 116 | 0.523403 |
0d181aedda70a0553392bb79fe8581e9aa5f23ab | 3,074 | package jetbrains.mps.lang.checkedName.typesystem;
/*Generated by MPS */
import jetbrains.mps.lang.typesystem.runtime.SubtypingRule_Runtime;
import jetbrains.mps.lang.typesystem.runtime.ISubtypingRule_Runtime;
import java.util.List;
import org.jetbrains.mps.openapi.model.SNode;
import jetbrains.mps.typesystem.inferen... | 59.115385 | 248 | 0.824658 |
8c907c5f0628a5fad8dee3b9fcb39820c97b8648 | 4,663 | /*
* Copyright 2015 Key Bridge 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 25.342391 | 80 | 0.6365 |
089d8c4400549fcc304361e25d96deca89c49f5f | 2,840 | /*
* Copyright (C) 2020 panpf <panpfpanpf@outlook.com>
*
* 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... | 35.949367 | 114 | 0.641549 |
bdfee0408026ae9f497e4dff9f24c72448be02f1 | 495 | package com.solution.leetcode;
public class AdditiveNumber {
public static boolean isAdditiveNumber(String num) {
boolean isAdditiveNo = true;
for (int i = 2; i < num.length(); i++) {
int currNo = num.charAt(i) - 48;
int prevNo = num.charAt(i - 1) - 48;
int prevN... | 27.5 | 56 | 0.523232 |
fe73cab6a95377434cb143ede25014fc74d8aff6 | 1,454 | package com.PT.test;
import com.PT.service.DepositService;
import com.PT.tools.OutputMessage;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class DepositTest extends Base... | 24.644068 | 95 | 0.604539 |
b3f6c1f47c9c7c678a685e7a95dfba839789846c | 3,918 | package uk.co.gresearch.siembol.configeditor.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.apache.commons.lang3.exception.ExceptionUtils;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import uk.co.gresearch.siembol.common.result.SiembolResult;
imp... | 36.616822 | 93 | 0.717968 |
dce04326232928389316c6468d8630df18c056c3 | 1,611 | package com.founder.console.web.config;
import com.founder.Exception.OperationException;
import com.founder.console.web.config.annotation.AjaxControllerAdvice;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bi... | 25.571429 | 84 | 0.681564 |
25aa9a1df0836629382138606ca9f815e5e1f2ec | 1,220 | package com.bklimt.surgetracker.view;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.content.DialogInterface;
import android.os.Bundle;
import com.bklimt.surgetracker.model.RootViewModel;
import com.bklimt.surgetracker.model.Surge;
/**
* Created by klimt... | 32.972973 | 84 | 0.67459 |
e62dc2a0a9a5cd09128b913cd57e16202d5f9fda | 3,034 | package egovframework.com.cop.com.service.impl;
import static org.junit.Assert.assertEquals;
import java.util.Date;
import javax.annotation.Resource;
import org.junit.Test;
import org.springframework.test.context.ContextConfiguration;
import egovframework.com.cmm.LoginVO;
import egovframework.com.cmm.util.EgovUser... | 26.155172 | 103 | 0.748517 |
33f9ecfb1282ca8ee43fd3172888c7dbf341a6cc | 6,031 | package com.linkedin.databus.core.util;
/*
*
* Copyright 2013 LinkedIn Corp. 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/L... | 35.269006 | 158 | 0.719947 |
5e5739918cb2f0bdde749823f5eb54a0bb1d2717 | 897 | package com.cxsj.runhdu.utils;
import com.cxsj.runhdu.bean.sport.RunningInfo;
import org.litepal.crud.DataSupport;
import java.util.List;
/**
* Created by Sail on 2017/5/10 0010.
* 查询跑步数据操作数据库的封装工具类
*/
public class RunningQueryUtil {
/**
* 普通查找
*
* @param conditions 查找条件
* @return
*... | 20.386364 | 84 | 0.626533 |
86c02ff54bb067f3cb5b082404012f1e4edddf50 | 4,171 | /*
* Copyright 2010 The gwtquery plugins team.
*
* 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... | 28.568493 | 92 | 0.712779 |
c361e8097f6d4ad0e802d925acea8b9e49e184c8 | 5,460 | package ac.uk.bristol.cs.santa.grotto;
import ac.uk.bristol.cs.santa.grotto.business.UserService;
import ac.uk.bristol.cs.santa.grotto.business.data.*;
import com.github.springtestdbunit.DbUnitTestExecutionListener;
import com.github.springtestdbunit.annotation.DatabaseSetup;
import org.junit.Assert;
import org.junit... | 30.847458 | 120 | 0.685897 |
68f7281f2d9cdf02680d5f8e3518cc1fcc23006a | 573 | package N37;
/**
* 统计一个数字在排序数组中出现的次数。
* 二分法查找
*/
public class Solution {
public int GetNumberOfK(int[] array, int k){
if(array.length == 0)
return 0;
return helper(array, 0, array.length, k);
}
private int helper(int[] array, int begin, int end, int k){
... | 22.92 | 84 | 0.486911 |
98b9ddf21793fd5d3c6a303b25d3aa8213ef15ca | 8,404 | package com.anvil.adsama.nsaw.fragments;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.constraint.ConstraintLayout;
import android.support.design.widget.Snackbar;
import android.support.v4.app.Fragm... | 38.027149 | 189 | 0.688482 |
af3940613e29b1f0177f9013f4d7c4acc1ec96ab | 7,506 | /*
* The MIT License
*
* Copyright 2015 EPresident <prez_enquiry@hotmail.com>.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitatio... | 35.57346 | 105 | 0.519851 |
cc0ad35570e50979164b1888b04e8ec70a13025d | 929 | package com.sforce.soap.enterprise;
import com.sforce.ws.ConnectorConfig;
import com.sforce.ws.ConnectionException;
/**
* Generated by ConnectionCodeGenerator.java. Please do not edit.
*/
public class Connector {
public static final String END_POINT = "https://login.salesforce.com/services/Soap/c/16.0";
publi... | 30.966667 | 113 | 0.753498 |
19c777cd79ab59431b2eb4ca982dba580c7058bf | 1,912 | package br.com.zupacademy.rafael.proposta.novaproposta;
import br.com.zupacademy.rafael.proposta.criarcartao.Cartao;
import javax.persistence.*;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Positive;
import java.math.BigDecimal;
@Entity
... | 21.727273 | 120 | 0.626569 |
2605eb0cf09a1b5f20208d09bd5ec98e1f3f31d8 | 4,356 | // SPDX-FileCopyrightText: 2018 Paul Schaub <vanitasvitae@fsfe.org>
//
// SPDX-License-Identifier: Apache-2.0
package org.pgpainless.key;
import java.net.URI;
import java.net.URISyntaxException;
import java.nio.Buffer;
import java.nio.ByteBuffer;
import javax.annotation.Nonnull;
import org.bouncycastle.openpgp.PGPKe... | 29.04 | 98 | 0.635904 |
24bc1fa304f742432935b76a372c3da5bfe18466 | 5,983 | package com.example.pilipili;
import com.example.pilipili.model.User;
import com.example.pilipili.service.UserService;
import com.example.pilipili.service.auth.LoginService;
import com.example.pilipili.service.auth.SignupService;
import com.example.pilipili.web.UserController;
import org.json.JSONObject;
import org.ju... | 38.6 | 89 | 0.641484 |
dfa661f8c9d348598e6e1f33da386c421c2c8e54 | 867 | package ttftcuts.morvyblox.shape;
import ttftcuts.morvyblox.item.ItemPart;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
public class BlockMeta {
public final Block block;
public final int meta;
public BlockMeta(Block b... | 22.815789 | 65 | 0.72203 |
39fee4fd198275a9c6ee70a6e0b47a8f28e7fe01 | 1,320 | package com.wang;
import com.alibaba.fastjson.JSONObject;
import com.wang.enums.HandlerTypeEnum;
import com.wang.factory.EventHandler;
import com.wang.factory.HandlerFactory;
import com.wang.handler.DecodeHandler;
import com.wang.handler.EncryptHandler;
import com.wang.handler.ParamValidHandler;
import com.wang.handle... | 35.675676 | 119 | 0.740909 |
024a079f2b2722aad2c98c8b61b9319cbf578dc0 | 1,616 | package mchorse.blockbuster.api.formats.vox.data;
import mchorse.blockbuster.api.formats.vox.VoxReader;
import javax.vecmath.Matrix3f;
import javax.vecmath.Matrix4f;
import javax.vecmath.Vector3f;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
public class VoxTra... | 25.650794 | 107 | 0.703589 |
e5f6b0d2f4cc1c6cba3b03780bec5f6f16327dfa | 5,395 | package com.emerchantpay.gateway.api.requests.financial.apm;
import com.emerchantpay.gateway.api.Request;
import com.emerchantpay.gateway.api.RequestBuilder;
import com.emerchantpay.gateway.api.constants.TransactionTypes;
import com.emerchantpay.gateway.api.interfaces.customerinfo.CustomerInfoAttributes;
import com.em... | 33.930818 | 122 | 0.708434 |
350d416ac6f52cb18a1137a4f11fe11ba4db11bf | 3,024 | package org.intellij.sonar.javaassist;
@SuppressWarnings("UnusedDeclaration")
public class Test {
/*public static void main(String[] args) throws IllegalAccessException, InstantiationException {
List<SonarSettingsBean> sonarSettingsBeans = new ArrayList<SonarSettingsBean>(3);
sonarSettingsBeans.add(new Sonar... | 43.2 | 116 | 0.686508 |
fa57d213daa65c26c79ecba41bc19702eb3e82aa | 2,063 | package com.baiyi.opscloud.event.customer.impl;
import com.baiyi.opscloud.datasource.manager.DsAccountGroupManager;
import com.baiyi.opscloud.datasource.manager.DsServerGroupManager;
import com.baiyi.opscloud.domain.generator.opscloud.UserPermission;
import com.baiyi.opscloud.domain.types.BusinessTypeEnum;
import com.... | 34.383333 | 96 | 0.736791 |
eea839a0b644e63deca4b6f146a38281d031ca46 | 1,437 | /*
* Software Name : OCast SDK
*
* Copyright (C) 2017 Orange
*
* 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 ... | 32.659091 | 106 | 0.723034 |
60afcde72e829af8802e5c9cc3b693891b350044 | 904 | package org.fluentlenium.utils;
final class SeleniumVersionCheckerTestConstants {
private static final String POM_NAME = "dummy_pom.xml";
private static final String PATH_TO_TEST_FOLDER = "src/test/resources/org/fluentlenium/utils/poms/";
static final String EXPECTED_VERSION = "3.141.59";
static final... | 50.222222 | 119 | 0.77323 |
6f94a04c781c1d9eb0de0fe90ae6a4d07b2969b2 | 250 | package com.specure.core.response.measurement.result.web.response;
import lombok.Builder;
import lombok.Data;
@Builder
@Data
public class MeasurementDataResult {
private int classification;
private String title;
private String value;
}
| 19.230769 | 66 | 0.78 |
0d34bcfe85f95cdd0d4e1956790ed514cdfea580 | 18,250 | /*
* Copyright (c) 2010-2013 the original author or authors
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, cop... | 34.695817 | 145 | 0.591068 |
c4f2a5b29f5e5a14726165651eef8b3e410a5e8c | 462 | package com.robin.springboot02config;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;
//@ImportResource(locations = {"classpath:beans.xml"})
@SpringBootApplication
public class Springb... | 28.875 | 68 | 0.831169 |
e67d89dabb164f851586c715addfbb015125a012 | 4,593 | package no.unit.nva.alma;
import org.junit.jupiter.api.Test;
import javax.ws.rs.core.Response;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit... | 51.033333 | 114 | 0.765295 |
e122bb2f3a1445b9c527b9351e1501799cbfdd98 | 2,337 | /*
* Copyright (C) 2018 QAware GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | 32.013699 | 93 | 0.669234 |
d7d04bcdaae7d4947361186cbd312318b343ec80 | 378 | package com.artemis.link;
import com.artemis.Component;
import com.artemis.World;
import com.artemis.utils.reflect.Field;
/**
* <p>Internal interface. Used for reading/writing entity
* fields pointing to a single entity.</p>
*/
public interface UniFieldMutator {
int read(Component c, Field f);
void write(int val... | 23.625 | 57 | 0.748677 |
33fd3997144679d00b7b4c57d1075bc45c0bea12 | 2,662 | /*
* Copyright (C) 2014 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... | 36.972222 | 144 | 0.766341 |
fa42f1f84739fb0efa444f4596dafc6c53949236 | 5,301 | /*
* Copyright 2020 Red Hat, Inc. and/or its affiliates.
*
* 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 a... | 38.413043 | 127 | 0.736276 |
4bb408caad2fe17f1f34d08bcea77c9790fb30a9 | 2,268 | /*
* Sonar ESQL Plugin
* Copyright (C) 2013-2020 Thomas Pohl and EXXETA AG
* http://www.exxeta.com
*
* 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/lice... | 38.440678 | 134 | 0.768959 |
18a4bd6f4daad976eb17a213c58cdd63182ba9f9 | 5,022 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 49.722772 | 151 | 0.714058 |
c638e8c85b96188b70e03156a6d57d3b5299d64f | 11,963 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 44.805243 | 120 | 0.76093 |
3e97f7c8961f8c10ae3ea7df97e1e4d67c88d7cb | 2,479 | package strings;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
/**
* 08/10/18
**/
public class FindPermutationNumber {
public static void main(String[] args) {
int n = 5500;
// Formula used for permutations: n!/[a!*r1! * r2!... ]
// ... | 30.9875 | 134 | 0.56313 |
0d03e760194577b7e7f2b7c1a0e4aff8b90b349e | 1,762 | package at.ac.fhcampuswien;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class TyrannyRocketEquation {
List<Integer> loadDatalist = new ArrayList<>();
private Integer sumofCalcs;
public TyrannyRocketEquation... | 27.53125 | 76 | 0.57378 |
5e9fd7fe34eeb282cb118b7f94aa4686adb545d9 | 5,178 | package org.boofcv.android.calib;
import android.app.AlertDialog;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android... | 31.573171 | 115 | 0.764195 |
2a6cc99246c6c9db612b922710ad7c23980c22dd | 215 | package be.lukin.poeditor.response;
import be.lukin.poeditor.models.Project;
import be.lukin.poeditor.models.Response;
public class ProjectDetailResponse {
public Response response;
public Project item;
}
| 21.5 | 41 | 0.790698 |
ea00d1147484a7fbb89d02e8971f06c324c04d2c | 2,031 | /*
* Copyright 2017 dmerkushov.
*
* 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... | 25.708861 | 95 | 0.671098 |
2c31cea51671c9080aa175622a19e16ef3d812f9 | 6,757 | package com.ibm.ets.ita.ce.store.parsing.model;
/*******************************************************************************
* (C) Copyright IBM Corporation 2011, 2017
* All Rights Reserved
*******************************************************************************/
import static com.ibm.ets.ita.ce.store.... | 28.876068 | 157 | 0.701199 |
251c93a9800fbd6fa45cac26431068e65b4d8153 | 1,390 | /*
* Copyright 2006-2010 the original author or authors.
*
* 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... | 30.888889 | 95 | 0.706475 |
892a7f1ce251dbee9a820a481db2acc74dcd8ecd | 1,553 | package com.backendless.utils;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
/**
* When using easyLogin (for Facebook, Google+ or Twitter) the returne... | 29.865385 | 119 | 0.637476 |
03363fb3b4cdb0b5b3e3244a4903b9630ac8faa9 | 1,447 | package com.informasi.bencana.app;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import com.informasi.bencana.R;
import mehdi.sakout.fancybuttons.FancyButton;
public class LoginActivity extends MasterActivity {
private FancyButton btnLogin;
... | 30.787234 | 111 | 0.645473 |
6f9313d755e2f4cd0757f863ce4c42db5499032e | 702 | package by.bsuir.verkpavel.db.dao.db.threadpool;
import java.sql.ResultSet;
public class DBTask {
private String request;
private ResultSet resultSet;
private boolean useTrasaction;
private int number;
public DBTask(String request, boolean isTransaction, int number){
this.request = request;
this.us... | 19.5 | 66 | 0.7151 |
7e85bf65936a8f870d116d0ad4822cf26c9891fb | 543 | package de.uxnr.tsoexpert.ui;
import java.awt.Dimension;
import javax.swing.BoxLayout;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.SoftBevelBorder;
public class StatusBar extends JPanel {
private static final long serialVersionUID = -2959948628247896789L;
public StatusBar(JFr... | 27.15 | 69 | 0.773481 |
06cda76b7d585b328ac697aea686132d1293eaa5 | 368 | package org.coffeemine.app.spring.auth;
import org.coffeemine.app.spring.data.User;
/**
* Simple interface for authentication and authorization checks.
*/
public interface AccessControl {
boolean signIn(String username, String password);
void signOut();
boolean isUserSignedIn();
boolean isUserIn... | 18.4 | 64 | 0.730978 |
ddb0da60a7fef91a65e7a6d36654ecb3bf84233b | 6,476 | /*
* Copyright 2014 NAVER Corp.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 46.589928 | 201 | 0.725757 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.