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 |
|---|---|---|---|---|---|
66800afa065473b06dea1fa8ca797ff5a14c1ec7 | 856 | package org.umi.boot.service.mapper;
import org.springframework.stereotype.Service;
import org.umi.boot.commons.utils.LevelUtil;
import org.umi.boot.commons.utils.impl.DefaultLevelUtil;
import org.umi.boot.domain.Dict;
import org.umi.boot.web.rest.vm.DictLevelVM;
import java.util.List;
import java.util.Objects;
impor... | 28.533333 | 112 | 0.740654 |
0ac6f2f1a8c86f0bf199b5e952225fe56b1b368d | 365 | package external_exercises;
import java.util.Scanner;
public class ExSixtyOne {
public static void main(String[] args) {
Scanner scan= new Scanner(System.in);
System.out.print("Write a word : ");
String word= scan.nextLine();
char[] wrd= word.toCharArray();
for(int i= (wrd.length-1); i>=0; i--) {
System... | 21.470588 | 41 | 0.660274 |
8591689307efa03db2171eadaa7849ed7f1b48e8 | 573 | package nullsafety.java;
import com.sun.istack.internal.Nullable;
public class NullSafety {
public static void main(String[] args) {
System.out.println(new NullSafety().getCountForCharacter("Hardik", 'a'));
}
private int getCountForCharacter(@Nullable final String data, final char characterToSea... | 24.913043 | 97 | 0.556719 |
32218aa8d592f502faa810d85a078256a3aefd17 | 3,407 | /*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
* The Federal Office of Administration (Bundesverwaltungsamt, BVA)
* licenses this file to you under the Apache License, Version 2.0 (the
* License). You may not use this file except in compliance with t... | 29.37069 | 108 | 0.661579 |
9942d2580e68f79e2de24e9fb52160b527ec8fd5 | 10,872 | /*
* Copyright (C) 2011 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... | 35.645902 | 97 | 0.604397 |
5215bda9f398ae11fdd015957756ac9715ab32b4 | 4,089 | /**
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
package co... | 34.075 | 85 | 0.67865 |
ea07e942bf5e793a3c7676f1925b7e978da1d4f8 | 394 | package com.inyaa.web.auth.bean;
import lombok.Data;
import javax.persistence.*;
import java.time.LocalDateTime;
@Data
@Entity
@Table(name="sys_role")
public class RoleInfo {
@Id
@GeneratedValue(strategy= GenerationType.IDENTITY)
private Integer id;
private String roleName;
private String role... | 15.76 | 54 | 0.733503 |
2bd744b84ff61dfaf182b63879c67b4423a15fbd | 3,948 | import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class CustomerTest {
private Customer customer;
@Before
public void setUp() {
customer = new Customer("Arthur Dent");
}
@Test
public void should_return_print_str_for_regular_mo... | 39.089109 | 104 | 0.617275 |
10c1e6a238aab8e06ce57e9b4d1f767198a4571a | 2,694 | package com.github.stefvanschie.quickskript.bukkit.skript;
import com.github.stefvanschie.quickskript.bukkit.plugin.QuickSkript;
import com.github.stefvanschie.quickskript.bukkit.context.CommandContextImpl;
import com.github.stefvanschie.quickskript.bukkit.skript.util.ExecutionTarget;
import com.github.stefvanschie.qu... | 36.405405 | 134 | 0.726058 |
3073a30ae91e2d2e23929b315d58520567bc2834 | 940 | package com.skeqi.finance.pojo.vo;
import com.skeqi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* 货币符号视图对象 t_bd_coin_symbol
*
* @author toms
* @date 2021-07-12
*/
@Data
@ApiModel("货币符号视图对象")
public class TBdCoinSymbolVo... | 16.785714 | 49 | 0.676596 |
7b38b427cfdc864f480640db56d63fb26fbba008 | 116 | package com.link.coffee.mod.registry;
public class ModItems {
public static void registerItems() {
}
}
| 10.545455 | 40 | 0.681034 |
5834c156f4375f6806a0b294b49777fd2d6b340e | 2,490 | /*
* Copyright (C) 2014-2021 Philip Helger (www.helger.com)
* philip[at]helger[dot]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/LICEN... | 35.571429 | 112 | 0.725301 |
edd949283b1931cb812981db9c96e5a289e58771 | 504 | package cn.edu.neu.shop.pin.service;
import cn.edu.neu.shop.pin.model.PinSettingsConstant;
import cn.edu.neu.shop.pin.util.base.AbstractService;
import org.springframework.stereotype.Service;
@Service
public class SettingsConstantService extends AbstractService<PinSettingsConstant> {
public String findByKey(Stri... | 31.5 | 83 | 0.77381 |
abf6e40271963ca2d92c4877ac9fc87c9db19558 | 2,113 | package se.nrm.dina.dnakey.logic;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import javax.enterprise.concurrent.ManagedExecut... | 26.4125 | 103 | 0.687175 |
b7ffb5be1c4ad8aba7923abe7b4f24c27c9b4ae9 | 1,288 | package com.bridgelabz.cookieHandling;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
public cla... | 29.953488 | 124 | 0.727484 |
060f26607a08a09a3f3e88e65eaa8b4eabb72356 | 1,157 | package cn.itechyou.cms.entity;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Data;
/**
* 表单模型
* @author 王俊南
* Date: 2020-12-29
*/
@Data
@Table(name = "system_forms")
public class Form implements Se... | 18.078125 | 49 | 0.685393 |
af59033be3b72c72db2f70073eac7c08535fddf5 | 11,086 | package com.cy.core.donation.action;
import com.cy.core.dict.entity.Dict;
import com.cy.core.dict.utils.DictUtils;
import com.cy.system.SystemUtil;
import com.cy.util.DateUtils;
import com.google.common.collect.Maps;
import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger;
import java.util.Date;
i... | 23.995671 | 150 | 0.706206 |
afe1b5be1d3c8183a9710d5c2c99fcc0eadd28e3 | 954 | package org.folio.okapi.service.impl;
import io.vertx.core.Future;
import io.vertx.ext.mongo.MongoClient;
import java.util.List;
import org.folio.okapi.bean.ModuleDescriptor;
import org.folio.okapi.service.ModuleStore;
/**
* Stores ModuleDescriptors in a Mongo database.
*/
public class ModuleStoreMongo implements M... | 22.186047 | 59 | 0.734801 |
62f885debe10ae84ad71c774f2ac7ec8ee6d6ca1 | 45,354 | /*
* Copyright 2015-2020 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | 49.351469 | 155 | 0.711161 |
dca725b105ec40157b639d73b9ebebf70e616b6d | 6,436 | package lk.ijse.dep.rcrmoto.controller;
import lk.ijse.dep.rcrmoto.AppConfig;
import lk.ijse.dep.rcrmoto.AppInitializer;
import lk.ijse.dep.rcrmoto.business.BOFactory;
import lk.ijse.dep.rcrmoto.business.BOTypes;
import lk.ijse.dep.rcrmoto.business.custom.CustomerBO;
import com.jfoenix.controls.JFXButton;
import com.j... | 38.771084 | 152 | 0.6055 |
94c7a8bc3d4f1064687f5624f06ac0f694157e3d | 1,777 | package com.lj.app.core.common.generator.tree;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
*
* bootstrap树
*
*/
public class BootStrapTreeView {
private String id;
private String text;
private String icon;
private String parentId;
private Stri... | 16.302752 | 56 | 0.636466 |
df2aae3a05b71912019cf5514c664c03add09c0a | 1,761 | package org.alfresco.rest.workflow.deployments;
import org.alfresco.rest.RestTest;
import org.alfresco.rest.model.RestDeploymentModel;
import org.alfresco.rest.model.RestErrorModel;
import org.alfresco.utility.model.TestGroup;
import org.alfresco.utility.model.UserModel;
import org.alfresco.utility.testrail.ExecutionT... | 40.953488 | 133 | 0.770585 |
e730c96d8d733cb080da48399f787643fd026476 | 6,817 | package seedu.unite.logic.parser;
import static java.util.Objects.requireNonNull;
import static seedu.unite.commons.core.Messages.MESSAGE_INVALID_THEME;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
import seedu.unite.commons.core.index.Index;
import seedu.unite.commons.util.StringUtil... | 35.505208 | 114 | 0.663928 |
e8abeeb1c5287c7d683be161f9b83abe20b81087 | 705 |
JSONObject policy1 = new JSONObject()
.put("roleId", "myrole");
JSONObject policy2 = new JSONObject()
.put("roleId", "default")
.put("restrictedTo", new JSONArray()
.put(new JSONObject().put("index", "index1"))
.put(new JSONObject()
.put("index", "index2")
.put("collections",new JSONArray().... | 21.363636 | 63 | 0.649645 |
24d3c38fad27ffe686c632ccb32bca1225693553 | 4,704 | /**
* Copyright (c) 2000-2020 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... | 35.636364 | 112 | 0.702381 |
903c9908f96b5c5ab38143adcd7347d5e7a49823 | 131 | package org.broadinstitute.dsm.model.ups;
import lombok.Data;
@Data
public class UPSTrackResponse{
UPSShipment[] shipment;
}
| 14.555556 | 41 | 0.770992 |
968169682164b13385d6d253d4ebe896cf0c7deb | 3,662 | package shade.powers;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
import com.megacrit.cardcrawl.actions.common.ApplyPowerAction;
import com.megacrit.cardcrawl.actions.common.ReducePowerAction;
import com.megacrit.cardcrawl.actions.common.RemoveSpecificPowerAction;... | 37.367347 | 121 | 0.675314 |
4fa436382dc23b6b0da19188307b61b7bc60a842 | 870 | package com.mogujie.trade.utils;
import java.util.Arrays;
import java.util.Set;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import com.mogujie.route... | 32.222222 | 91 | 0.764368 |
8e028c0b40309e097efff8dcb1661a9636844b43 | 1,972 | package org.embulk.output.bigquery_java;
import java.util.Collections;
import org.embulk.config.TaskReport;
import org.embulk.output.bigquery_java.config.PluginTask;
import org.embulk.output.bigquery_java.visitor.JsonColumnVisitor;
import org.embulk.output.bigquery_java.visitor.BigqueryColumnVisitor;
import org.embul... | 28.57971 | 98 | 0.668864 |
d1086c643414935fab90640ea124830375cfcd33 | 5,487 | /**
* This class is generated by jOOQ
*/
package org.jooq.examples.sqlserver.adventureworks.humanresources.tables;
/**
* This class is generated by jOOQ.
*/
@java.lang.SuppressWarnings("all")
public class EmployeeDepartmentHistory extends org.jooq.impl.TableImpl<org.jooq.examples.sqlserver.adventureworks.humanreso... | 53.271845 | 494 | 0.817387 |
0548d20b1a42c89c57c36c0a641e81a2cc072639 | 7,943 | package com.cs5520.covid19;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.graphics.Col... | 39.517413 | 120 | 0.655168 |
c2f3fc0dda0ea7fe63fa1ad5e1c86219183ff119 | 5,363 | package org.openxmlformats.schemas.spreadsheetml.x2006.main;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.Reader;
import java.net.URL;
import java.util.List;
import javax.xml.stream.XMLStreamReader;
import org.apache.poi.POIXMLTypeLoader;
import org.apache.xmlbeans.Schema... | 38.307143 | 210 | 0.750699 |
5f0b1abe5382a72912093163a510bc7559d791d0 | 7,803 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.10.... | 27.967742 | 122 | 0.583109 |
f74192a1075c24df0cf4c35b6a68861e367149f0 | 5,651 | /**
* Copyright (C) 2019 Expedia, 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 ... | 40.654676 | 148 | 0.755265 |
b491e5eaddebcbc2a5db6842798e9985c501cbbe | 2,381 | /*
* Copyright 2017 Tony.lau 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 a... | 29.7625 | 94 | 0.723226 |
047bae26b04b00b97c9bb864dee088c8c9764371 | 704 | package com.net.oya.repository;
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.Repository;
import com.net.oya.model.O... | 28.16 | 72 | 0.764205 |
bbd2fb3d7811ae738dd356c405f505c00da9a5a3 | 1,993 | package org.batfish.question.definedstructures;
import static com.google.common.base.MoreObjects.firstNonNull;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Strings;
import javax.annotation.Nonnull;
import javax.annotation.Null... | 28.471429 | 84 | 0.750627 |
5c235ca302ccded4b0d5f57e1bd04578dd43fb8c | 2,580 | package com.scorelab.ioe.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* Created by tharidu on 6/14/16.
*/
@ConfigurationProperties(prefix = "ioe", ignoreUnknownFields = false)
public class IoeConfiguration {
private final Cassandra cassandra = new Cassandra();
pr... | 27.446809 | 114 | 0.632558 |
0eacabeae6d0fccdcc79179a1fad75d2ee01ebb1 | 861 | package com._1n5aN1aC.tacotek.common;
public class ModInfo {
//Static Mod Values
public static final String MOD_NAME = "TacoTek";
public static final String MOD_VERSION = "0.0.2";
public static final String MOD_ID = "tacotek";
public static final String MOD_CHANNEL = "";
public static final String MOD_CLIENT_PRO... | 35.875 | 89 | 0.774681 |
ebd01077963d44306774a7f9d1e0ba57e59987dd | 630 | package com.fishercoder;
import com.fishercoder.solutions._1708;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.assertArrayEquals;
public class _1708Test {
private static _1708.Solution1 solution1;
@BeforeClass
public static void setup() {
solution1 = new _17... | 23.333333 | 102 | 0.65873 |
ad5830d584ec9f1638f55912eff5806d59944335 | 2,142 | // Autor y desarrollador parcial o total: Santiago Hernández Plazas (santiago.h.plazas@gmail.com).
package co.gov.ideamredd.web.admin.servlets;
import java.io.IOException;
import java.util.ArrayList;
import javax.ejb.EJB;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servl... | 31.5 | 111 | 0.73436 |
9668bc5899ff1d9b5b0cb9abb422cfe9aeb4c19e | 1,162 | package br.com.zupacademy.matheus.transacao.transacao;
import br.com.zupacademy.matheus.transacao.cartao.Cartao;
import br.com.zupacademy.matheus.transacao.estabelecimento.Estabelecimento;
import javax.persistence.*;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@Entity
public class Transacao {
@... | 23.714286 | 128 | 0.712565 |
4f23f5b3e5b5e4073bd269cdf93db82ace6eeb3e | 8,531 | /*
* SpatialObjectQueryPlan.java
*
* This source file is part of the FoundationDB open source project
*
* Copyright 2015-2019 Apple Inc. and the FoundationDB project authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ... | 36.930736 | 149 | 0.712812 |
e561dacdc253c797fa71ed1ecf6800df229168bf | 3,813 | /*
* Copyright 2020 Hazelcast Inc.
*
* Licensed under the Hazelcast Community License (the "License"); you may not use
* this file except in compliance with the License. You may obtain a copy of the
* License at
*
* http://hazelcast.com/hazelcast-community-license
*
* Unless required by applicable law or agree... | 37.019417 | 113 | 0.661684 |
e33b93d30538c450cdff05a5c41d72e96791ef75 | 1,824 | /*
* 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 cn.hanbell.crm.ejb;
import cn.hanbell.crm.comm.SuperEJBForCRM;
import cn.hanbell.crm.entity.REPPA;
import cn.hanbell.crm.entit... | 26.434783 | 121 | 0.652412 |
489da235dd149c3506d645f1c6f174ddfa0d9c8c | 1,492 | package com.rs.stayconnected.ui.list;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
impo... | 28.150943 | 132 | 0.754021 |
dabaa97e7feca0863d2efe23b09d19346a83cbec | 219 | package com.tollge.modules.web.http2;
import java.lang.annotation.*;
@Target({ ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface Http2 {
String value() default "";
}
| 18.25 | 37 | 0.748858 |
be1dbd23c9f5af3e4d70d2128b9689a39b9033ca | 153 | package org.batfish.question;
public class FailureQuestion extends Question {
public FailureQuestion() {
super(QuestionType.FAILURE);
}
}
| 15.3 | 47 | 0.72549 |
d5d5bd5e0b166525f8d116e42f1b735d0324fae2 | 1,287 | package org.github.kaninhop.parser.simple.xml;
import lombok.Getter;
import lombok.NoArgsConstructor;
import javax.xml.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;
@XmlRootElement(name = "data")
@XmlAccessorType(XmlAccessType.FIELD)
class SimpleXmlModel {
@Getter
@XmlElement(name = ... | 25.74 | 73 | 0.645688 |
0f5753836e14d5b5f77c5fc5349a55adf749b6f7 | 1,020 | package com.huifer.idgen.my.service.exmple.springboot;
import com.huifer.idgen.my.service.GenIdService;
import com.huifer.idgen.my.service.bean.Id;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootA... | 27.567568 | 68 | 0.753922 |
02a4fd3940faa75e46f9b0fd75f8742cfa867ee7 | 360 | package club.agirl.web.blog.bean.yuque;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import java.io.Serializable;
@Data
public class BaseBean implements Serializable {
protected Integer id;
@JSONField(name = "updated_at")
protected String updatedAt;
@JSONField(name = "created... | 22.5 | 49 | 0.755556 |
3da1e8b6cd61383310729e317fd6051b2f72a6ed | 569 | package fi.riista.feature.permit.invoice;
public enum InvoiceState {
// Invoice is created but not further processed
CREATED,
// Invoice is delivered to recipient
DELIVERED,
// Invoice is paid
PAID,
// Reminder is sent; Paytrail payment must not be possible anymore
REMINDER,
//... | 22.76 | 97 | 0.699473 |
dfd8e30f4f0d52fb2ee453d653ec2c41a47e78ed | 4,558 | // (c) Copyright 2015 Cloudera, Inc.
package com.cloudera.director.aws.common;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Matchers.anyString;
import static org.mockito.Matchers.eq;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import com.clo... | 40.336283 | 115 | 0.750987 |
65fe7d1123fa6282b2f0b1c80040a995b98c65a6 | 2,580 | /**
*
*/
package cz.darujdetem.web.page.admin;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import org.apache.wicket.authroles.authorization.strategies.role.Roles;
import org.apache.wicket.authroles.authorization.strategies.role.annotations.AuthorizeInstantiation;
import org.apach... | 30 | 119 | 0.751163 |
92aa583375793eb8e4b129c0012aa990b3998e1e | 6,905 | package com.lydiaralph.decisiontracker.activities;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.Text... | 45.728477 | 123 | 0.656191 |
987936f07b1f4556e5135dc83ff0d572f5d298ab | 4,499 | package lumien.randomthings.tileentity;
import lumien.randomthings.lib.IRedstoneSensitive;
import net.minecraft.block.Block;
import net.minecraft.block.state.IBlockState;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.NetworkManager;
import net.minecraft.network.play.server.SPacketUpdateTileEnti... | 24.451087 | 191 | 0.769504 |
623e7e4c3df0dd367505829920edc03d1bfbd8e5 | 1,180 | package edu.amrita.medishop.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import edu.amrita.medishop.model.Product;
import edu.amrita.medishop.repository.ProductRepository;
@Service
public class ProductService {
@Autow... | 26.818182 | 62 | 0.755932 |
f23594b79451374d35b963210060d0e0d4a12b3f | 1,711 | package me.yufan.gossip.service.impl;
import me.yufan.gossip.converter.entity.CommentConverter;
import me.yufan.gossip.mybatis.mapper.CommentMapper;
import me.yufan.gossip.rest.dto.ArticleDTO;
import me.yufan.gossip.rest.dto.CommentDTO;
import org.junit.Test;
import java.util.List;
import static com.google.common.co... | 38.886364 | 127 | 0.783752 |
84896f0838f22d8c1f10a8a2d5d4c61a3a12681f | 116 | package io.smallrye.graphql.execution.context;
public class ContextNotActiveException extends RuntimeException {
}
| 23.2 | 65 | 0.853448 |
64811c83bf80586ec51717075c459febe4f70a5e | 537 | package xyz.rexlin600.mybatisplus.crud;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* My batis plus crud application
*
* @author hekunlin
*/
@MapperScan(value = {"xyz.rexlin600"})
@Spri... | 21.48 | 68 | 0.763501 |
cf59075813ebe01454b2ed6386de7cb0f7a6c33a | 11,973 | package andreas.restexample;
import android.content.DialogInterface;
import android.support.annotation.NonNull;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Lin... | 45.181132 | 157 | 0.576464 |
df205b2bd423e41395235b707defb22e63897f7c | 1,108 | package com.gamecraft.service;
import com.gamecraft.domain.Team;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
/**
* Service Interface for managing Team.
*/
public interface TeamService {
/**
* Save a team.
*
* @param team the entity to save
*... | 20.90566 | 55 | 0.594765 |
41133c46b5250c15a490013f1d5022b41ff4cc91 | 2,291 | package com.launchdarkly.client;
import com.google.gson.Gson;
import com.google.gson.JsonElement;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class EvaluationReasonTest {
private static final Gson gson = new Gson();
@Test
public void testOffReasonSerialization() {
Evaluat... | 34.19403 | 91 | 0.707988 |
3263a30428c5d23114fe7ca0e9e21d470cbbc105 | 262 | package net.kiberion.swampmachine.scripting.api;
public interface SwampScriptInvokationResult {
public <T> T getVariableValue(String varName);
public default <T> T getResult() {
return getVariableValue(SwampScript.SCRIPT_RESULT);
}
}
| 21.833333 | 59 | 0.729008 |
5c65e30414f8fc554adb2634b5d4b94787184c84 | 2,079 | import java.io.*;
import java.util.*;
class helper{
int num=0;
int time=0;
int score=0;
public helper(int time, int score,int num) {
this.time=time;
this.score=score;
this.num=num;
}
}
public class test {
public static void main(String[] args) throws IOException {
// TODO Auto-genera... | 21.43299 | 80 | 0.613276 |
bac3a931175c874f4161d443852932db7ff8f10d | 787 | package org.activitymgr.ui.web.view.impl.internal.util;
import org.activitymgr.ui.web.logic.ILabelLogic;
import org.activitymgr.ui.web.logic.ILabelLogic.View;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Label;
@SuppressWarnings("serial")
public class LabelView extends Label implements View {
... | 21.27027 | 65 | 0.748412 |
9a050ede3f6f988135847d77d1da8a53983f0ed4 | 555 | package zj.dao.impl;
import zj.dao.UserFileDao;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Created by lzj on 2016/9/23.
*/
public class UserFileDaoImpl implements UserFileDao {
private static Map<String, List<String>> files = new HashMap<>();
... | 17.903226 | 69 | 0.646847 |
0489f9c32318a385b198b99adee963c818f87937 | 17,337 | package info.thereisonlywe.core.essentials;
import info.thereisonlywe.core.cosmology.Element;
import info.thereisonlywe.core.cosmology.Gender;
import info.thereisonlywe.core.cosmology.Letter;
import info.thereisonlywe.core.cosmology.Modality;
import info.thereisonlywe.core.cosmology.Planet;
import info.thereisonlywe.c... | 28.895 | 89 | 0.703005 |
8be88b9f5678c50adec9edf36253157c4002ca02 | 139 | package com.healthpoints;
import com.reactnativenavigation.NavigationActivity;
public class MainActivity extends NavigationActivity {
}
| 17.375 | 54 | 0.848921 |
ff1f0beadfff492bfec9aba765427cd5698fa9e8 | 509 | package frc.team708.robot.util;
import edu.wpi.first.wpilibj2.command.button.Trigger;
import edu.wpi.first.wpilibj.XboxController;
/**
* Makes moving an axis up on a joystick result in a button input
*/
public class AxisDown extends Trigger {
private XboxController gamepad;
private int axis;
public AxisD... | 21.208333 | 65 | 0.719057 |
b1a48d8555eadee1d23eaaf11b364d7f92e9a09b | 4,190 | package cn.zealon.book.app.book.service;
import cn.zealon.book.app.book.bo.BookAuthorBO;
import cn.zealon.book.app.book.dao.BookAuthorMapper;
import cn.zealon.book.app.book.dao.BookMapper;
import cn.zealon.book.app.book.entity.BookAuthor;
import cn.zealon.book.common.Const;
import cn.zealon.book.common.base.AbstractBa... | 33.790323 | 100 | 0.667303 |
31831c2972c9c0e7d45fcc1b953d7d537e6e55aa | 2,865 | /*******************************************************************************
* Copyright (c) 1998, 2012 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. ... | 40.928571 | 95 | 0.646073 |
b61c99ce356fbdd7041670312ed4cbe38e541c12 | 3,038 | package com.haiyu.manager.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import javax.persistence.*;
@ApiModel(value="com.haiyu.manager.dto.MainData")
@Table(name = "main_data")
public class MainData {
/**
* 主键id
*/
@GeneratedValue... | 16.245989 | 94 | 0.502304 |
fe707ffb40f0c2cb2a5023758f542d9959f19024 | 12,138 | package com.example.mao.twozerofoureight;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Typeface;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawa... | 38.411392 | 168 | 0.576619 |
5e9d7fe754f876118ee334c22d57ea92494b7987 | 1,107 | package android.util;
import java.util.HashMap;
/**
* Utility functions for constant arrays
*
* @author Almos Rajnai
*/
public class ConstantArrayUtils {
/**
* Try to find an existing instance of the a constant array in the specified list and return it, or fall back
* to the provided default new in... | 34.59375 | 118 | 0.657633 |
05ffd6dd5f65e4c0551dfa26e5991d8b2741b62d | 19,146 | /*******************************************************************************
* Copyright (c) 2015 Low Latency Trading Limited : Author Richard Rose
* 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 L... | 34.622061 | 133 | 0.544448 |
e4d4d2b6d631b97bacb94cc58ad8c9d7b3925045 | 289 | /**
* @author Prof. Frank Ferrie
* @author Christopher Boustros
* ECSE 202 Introduction to Software Engineering
*/
package assets;
import project.gBall;
// A node of a binary tree for the bTree class
public class bNode {
public gBall ball;
public bNode left;
public bNode right;
} | 19.266667 | 48 | 0.737024 |
0e2711e51c5aa0e6c1a734e806307d78f4daa452 | 4,440 | /**
* Copyright 2019 The JoyQueue 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 applicable law or... | 21.871921 | 75 | 0.604955 |
3417d07fc487b8ed7ab99ee177bdf3136ab964d3 | 4,612 | /*
* Copyright 2021 The University of Manchester
*
* 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 ... | 46.12 | 128 | 0.739159 |
089eabf16a53c2c82dd5aa2fc4a2150ae6532245 | 1,457 | /*
* Copyright 2018 Andy Boothe
*
* 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 ... | 30.354167 | 89 | 0.676733 |
b7d9bc31ecde0da15f3901c732cc50f537d0a818 | 3,263 | package com.github.agjacome.httpserver.util;
import org.junit.Test;
import org.junit.contrib.theories.Theories;
import org.junit.contrib.theories.Theory;
import org.junit.runner.RunWith;
import com.pholser.junit.quickcheck.ForAll;
import com.pholser.junit.quickcheck.From;
import com.pholser.junit.quickcheck.generator... | 34.712766 | 80 | 0.732455 |
b01cf984bdb7d83709002996a10086370bf4f032 | 1,767 | package org.seqcode.viz.genomicplot;
import java.io.File;
import javax.swing.JFrame;
import org.seqcode.deepseq.experiments.ExptConfig;
import org.seqcode.genome.Genome;
import org.seqcode.genome.GenomeConfig;
import org.seqcode.genome.Species;
import org.seqcode.gseutils.ArgParser;
import org.seqcode.gseutils.Args;... | 31 | 78 | 0.697227 |
c4c73791c3d743abab72c48531c4064748c0e460 | 2,303 | /*
* Copyright Terracotta, 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 ... | 34.893939 | 132 | 0.732957 |
408d8f670af0a315b6b1ac6209641295b311f3d0 | 1,349 | package org.arcanic.ramm;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.ser... | 32.902439 | 116 | 0.79911 |
df93b0ab74744a63e1c4bc4f535d8b3ecc42693e | 1,081 | package com.ghunteranderson.jsemver;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
/**
* Collection of operators that, when applied to a single version, create a
* range.
*/
@RequiredArgsConstructor
@Getter(AccessLevel.PACKAGE)
public enum RangeOperator {
/**
* Include... | 23 | 76 | 0.706753 |
8635acfee56ceef7da548a1476a183bc43736351 | 3,465 | package net.sf.regadb.db;
import java.util.Date;
/**
* TestResult generated by hbm2java
*/
public class TestResult implements java.io.Serializable {
private Integer testResultIi;
private int version;
private Test test;
private DrugGeneric drugGeneric;
private ViralIsolate viralIsolate;
... | 21 | 73 | 0.635498 |
bdbc856ae7becf49821b014abdf8563f0ab20962 | 961 | package be.cleardata.jascom;
import com.sun.jna.platform.win32.OaIdl;
import com.sun.jna.platform.win32.Ole32;
public class CameraTest {
public static void main(String[] args) throws InterruptedException {
String simulator = "ASCOM.Simulator.Camera";
Ole32.INSTANCE.CoInitializeEx(null, Ole32.COIN... | 29.121212 | 79 | 0.677419 |
faadfb6ef255bf8b4b94c4e9e54ad47afdccb818 | 285 | package com.fengzhi.basislearning.gl.day19;
public class OneRunable implements Runnable{
private int num = 0;
public void run() {
num++;
//获取当前线程对象
Thread thread = Thread.currentThread();
//获得当前线程名称
String name = thread.getName();
System.out.println(name+":"+num);
}
}
| 20.357143 | 44 | 0.698246 |
88074eac1a9e7203f0f731af6f3a2d3a44a76bcc | 1,372 | package readlearncode.session3.subsection3;
import readlearncode.session3.subsection3.exceptions.ConnectionException;
import readlearncode.session3.subsection3.exceptions.DatabaseConnectionException;
import readlearncode.session3.subsection3.exceptions.InternetConnectionException;
import java.util.Random;
/**
* Sou... | 32.666667 | 81 | 0.650146 |
30d83d5f371d8e5148147cfaab5245b8c2fa9a82 | 754 | /*
* 文件名称: Frame.java
* 版权所有@2001-2014 虹软(杭州)科技有限公司
* 编译器: android2.2
* 时间: 下午1:34:44
*/
package com.arcsoft.office.officereader;
import android.content.Context;
import android.graphics.Color;
import android.widget.LinearLayout;
/**
* 文件注释
* <p>
* <p>
* Read版本: Rea... | 16.042553 | 42 | 0.509284 |
bb37832dc791325827e2d9212d404787aa9feb21 | 1,587 | /*Copyright by MonnyLab*/
package com.xlab.vbrowser.widget;
import android.content.Context;
import android.support.design.widget.CoordinatorLayout;
import android.support.design.widget.FloatingActionButton;
import android.util.AttributeSet;
import android.view.View;
public class FloatingEraseButton extends FloatingA... | 29.388889 | 106 | 0.678639 |
891791f474650a30be9f5af3689aa17145e3b9d0 | 1,868 | /*
* @lc app=leetcode id=524 lang=java
*
* [524] Longest Word in Dictionary through Deleting
*
* https://leetcode.com/problems/longest-word-in-dictionary-through-deleting/description/
*
* algorithms
* Medium (50.41%)
* Likes: 1103
* Dislikes: 306
* Total Accepted: 111.2K
* Total Submissions: 220.6K
*... | 21.976471 | 89 | 0.616702 |
82e05b4a6b32ff19cc3eff06f4c9803733a66371 | 597 | /*
* @lc app=leetcode.cn id=69 lang=java
*
* [69] x 的平方根
*/
// @lc code=start
class Solution {
public int mySqrt(int x) {
//想法 二分查找
if(x == 0 || x == 1){
return x;
}
//确定边界
int left =0,right = x,res = -1;
while(left<=right){
//获取中间值
... | 16.135135 | 44 | 0.360134 |
1a3072ac96288eaee3b19983b6f5e535c96da330 | 2,254 | package com.chuandong.yummyadapter.demo.provider;
import android.content.Context;
import android.widget.Toast;
import com.chuandong.yummyadapter.demo.model.User;
import com.chuandong.yummyadapter.lib.BaseItemProvider;
import com.chuandong.yummyadapter.lib.BaseViewHolder;
import com.chuandong.yummyadapter.lib.IndexPat... | 31.746479 | 111 | 0.634871 |
178444db0c7c7180cb66922d95ec8a5a25c70e06 | 506 | package com.group5.mbs.api.mappers;
import com.group5.mbs.api.dtos.SubmitThesis;
import com.group5.mbs.entities.SubmitThesisEntity;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
@Mapper
public interface SubmitThesisMapper {
SubmitThesisMapper INSTANCE = Mappers.getMapper(SubmitThesisMapper.c... | 28.111111 | 89 | 0.837945 |
7689141c213416c808269fe70e322253099fc69c | 4,750 | package org.fortune.doc.common.utils;
import net.coobird.thumbnailator.Thumbnails;
import org.fortune.doc.common.domain.Constants;
import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.geom.AffineTransform;
import java.awt.image.BufferedImage;
import java.awt.image.ColorModel;
import java.awt.image.Writabl... | 33.216783 | 279 | 0.570316 |
67a4925bd18ee2ca8d1c3a1d754184587c6f7ca7 | 1,958 | import java.util.HashMap;
import java.util.Scanner;
public class Program {
enum Direction {
N(Vector.of(0, 1)),
S(Vector.of(0, -1)),
E(Vector.of(-1, 0)),
O(Vector.of(1, 0));
private Vector vector;
Direction(Vector vector) {
this.vector = vector;
... | 26.821918 | 90 | 0.548008 |
58c24bfe384567f9807c85648240f12f1261d6e5 | 111 | /**
* Contains an example for using identity tokens.
*/
package com.oracle.coherence.hibernate.demo.identity; | 27.75 | 53 | 0.765766 |
fde9ab9ab31755244383639c9d171377e2817292 | 9,303 | package com.amituofo.xfs.plugin.fs.ftp;
import java.io.IOException;
import java.io.PrintWriter;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLServerSocketFactory;
import javax.net.ssl.TrustManager;
import javax.net.s... | 33.464029 | 108 | 0.720843 |
279fc88b113d45a64b3174835ea22486c4440c65 | 6,281 | package com.aspirin;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
class Learner {
private static File file = null;
private static List<String> text = null;
Learner(String filepath) {
if (filepath == null){
... | 44.864286 | 161 | 0.539882 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.