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 |
|---|---|---|---|---|---|
e0bd9c7732bb3fc6096d12575ac00236da99492d | 238 | package 刷题.待面试.字节跳动;
/**
* https://leetcode-cn.com/problems/k-th-smallest-in-lexicographical-order/
*
* @author zhushuangquan
*/
public class _21_440_字典序的第K小数字 {
public int findKthNumber(int n, int k) {
return 0;
}
}
| 18.307692 | 75 | 0.668067 |
697ab997972edcad7efdc9fe4946cf76d1341f8f | 323 | package com.java110.user.bmo.owner;
import com.alibaba.fastjson.JSONObject;
import com.java110.po.owner.OwnerPo;
import org.springframework.http.ResponseEntity;
public interface IChangeOwnerPhone {
/**
* 修改业主手机号
* @param ownerPo
* @return
*/
ResponseEntity<String> change(OwnerPo ownerPo);... | 20.1875 | 51 | 0.718266 |
3a2b9961cf32c72abb7aac769279b04e1f418bf8 | 6,287 | /*
* Copyright (c) 2017, Harald Kuhr
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* list of condition... | 41.635762 | 174 | 0.703038 |
539f57131fd7be3ab7aba17808c0139a0e2d36fd | 3,039 | /*
* Copyright 2019 Arcus 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 applicable law or a... | 25.974359 | 105 | 0.602172 |
8646514243f8268b5a7cfdbfab69ea678f2369b7 | 11,226 | package cz.tomkren.fishtron.latticegen;
import net.fishtron.types.Sub;
import net.fishtron.types.Type;
import net.fishtron.types.TypeTerm;
import net.fishtron.types.Types;
import net.fishtron.utils.ABC;
import net.fishtron.utils.Checker;
import net.fishtron.utils.F;
import net.fishtron.utils.Log;
import org.json.JSONO... | 32.53913 | 162 | 0.485035 |
29056a57f609dc9573bdb9ad2f2cc6c84f7de659 | 580 | package com.eagle.adventurersamulets.api.amp;
import net.minecraft.item.ItemStack;
public interface IAMPItem {
/**
* Returns the amount of AMP stored in the ItemStack.
*/
int getCurrentAMP(ItemStack itemStack);
/**
* Returns the maximum amount of AMP that can be stored in the ItemStack.
*/
int g... | 20.714286 | 75 | 0.703448 |
438d0f5c3d5717495efb1ad7eda3e21efabdef4a | 15,362 | package urn.ietf.params.xml.ns.yang.nfvo.nsd.rev141027.nsd.descriptor;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import org.opendaylight.yangtools.concepts.Builder;
import org.opendaylight.yangtools.yang.binding.Augmentation;
... | 41.407008 | 301 | 0.59543 |
2d501864c1d1b96164f3ed3d87d95747d490b697 | 7,021 | package com.hdw.common.exception;
import com.hdw.common.result.ResultMap;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.ConversionNotSupportedException;
import org.springframework.beans.TypeMismatchException;
import org.springframework.dao.DuplicateKeyException;
import org.s... | 29.012397 | 101 | 0.683663 |
3f5c418e2c37efc38fbbb028dfa13a6de56f72ac | 2,088 | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.policyinsights.v2018_07_01_preview;
import java.... | 29.408451 | 117 | 0.715996 |
5caf0de62220f94ae341614d7b0749d253147223 | 3,202 | /*
* JBoss, Home of Professional Open Source.
* Copyright 2022 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* 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 ... | 41.051282 | 115 | 0.674891 |
2ffb91ef47dad22a1bca998f94686ff8e6639447 | 23,129 | /**
* 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... | 37.547078 | 104 | 0.619006 |
1f06c7a10389f4ee59d7e380c9d21c0a78cd888f | 1,420 | package com.sap.cloud.lm.sl.cf.process.steps;
import java.util.List;
import org.cloudfoundry.client.lib.domain.CloudApplication;
import org.flowable.engine.delegate.DelegateExecution;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.Scope;
import org.spring... | 40.571429 | 106 | 0.800704 |
f73d9bbc161becea462c06bd82cc7dbe5ea63a7b | 3,060 | /**
* 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 m... | 33.26087 | 85 | 0.688889 |
a646dc6b2d2381dacd317fcc4f329a6bb0d051c9 | 3,109 | package com.heaven7.android.glew.app;
import android.app.Activity;
import android.opengl.GLES20;
import android.opengl.GLES30;
import android.opengl.GLSurfaceView;
import android.util.Log;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import javax.microedition.khronos.opengles.GL10;
public abstr... | 29.609524 | 88 | 0.616919 |
d85cfd460df913ebb6ee97bf6b8901be2b326630 | 8,682 | // This file was automatically generated from IFCDOC at https://technical.buildingsmart.org/.
// Very slight modifications were made to made content align with ifcXML reference examples.
// Use this class library to create IFC-compliant (web) applications with XML and JSON data.
// Author: Pieter Pauwels, Eindhoven Uni... | 36.478992 | 348 | 0.792329 |
141cf898663555b2bad5bef1ba320a594f7aa1b1 | 4,396 | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot;
import com.ctre.phoenix.motorcontrol.NeutralMode;
import com.ctre.phoenix.motorcontrol.TalonFXInvert... | 40.703704 | 130 | 0.713376 |
060d68796fb59999e7bf65a9a8435a9084707bc2 | 372 | package ru.job4j.array;
/**
* Square.
*
* @author Maksym Mateiuk (maxymmateuk@gmail.com)
*/
public class Square {
public int[] calculate(int bound) {
int[] rst = new int[bound];
int start = 1;
for (int i = 0; i < rst.length; i++) {
rst[i] = (int) Math.pow(start, 2);
... | 18.6 | 49 | 0.497312 |
4bca49a5b83298c4716609b946cfcca177675aed | 2,462 | /*
* ported to v0.56
* using automatic conversion tool v0.01
*/
package WIP.mame056.sndhrdw;
import static arcadeflex056.fucPtr.*;
import static mame056.sound.samples.*;
import static mame056.sound.samplesH.*;
public class gotya
{
public static class gotya_sample
{
public int sound_command;
... | 24.868687 | 117 | 0.594232 |
b0e6a4c0ae062a6874b7386ebee2964b10ea54db | 6,912 | package com.ruoyi.project.device.devList.controller;
import com.ruoyi.common.exception.BusinessException;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.framework.aspectj.lang.annotation.Log;
import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.framework.jwt.JwtUtil;
import com.r... | 25.6 | 105 | 0.698351 |
16b1da710c312f2743727730465fcf3db780a3d2 | 1,050 | package net.shadowpie.sadiinso.sfc.commands.handlers;
import net.shadowpie.sadiinso.sfc.commands.Commands;
import net.shadowpie.sadiinso.sfc.commands.context.CommandContext;
import org.jetbrains.annotations.NotNull;
import java.util.HashMap;
import java.util.Map;
public class GroupedCommandHandler extends AbstractCo... | 30.882353 | 93 | 0.771429 |
17b109ea7d1376910f6c3580dd550715287d7d89 | 803 | package com.vogella.javastarter.exercises1;
class Person {
String firstName;
String lastName;
int age;
private Address address;
public Person(String a, String b, int value) {
firstName = a;
lastName = b;
age=value;
}
public String getFirstName() {
return firstName;
}
public void setFirstName(Strin... | 14.6 | 47 | 0.686177 |
dc3bfcfb2a4e4a7a5129e8e597ca8d05f63ed4a9 | 481 | package net.minecraft.world.level.block;
import net.minecraft.world.item.DyeColor;
import net.minecraft.world.level.block.state.BlockBehaviour;
public class StainedGlassBlock extends AbstractGlassBlock implements BeaconBeamBlock {
private final DyeColor color;
public StainedGlassBlock(DyeColor pDyeColor, Block... | 28.294118 | 88 | 0.769231 |
0afe7560238b51fcced5dac5ee7a5f414af92170 | 3,287 | package com.viettel.android.gsm.services;
import android.os.Bundle;
import com.viettel.android.gsm.ViettelClient;
import com.viettel.android.gsm.ViettelClient.OnConnectionCallbacks;
import com.viettel.android.gsm.ViettelError;
/**
*
* Use ViettelClientSimpleActivity with no service in my app.
* You can custom li... | 27.391667 | 150 | 0.736234 |
690df731472c0f3b1551345a91910a027646bddf | 2,768 | package org.firstinspires.ftc.redshiftrobotics.config;
import android.util.Log;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import org.json.*;
/**
* Created by adam on 9/29/16.
*/
public class Config <E extends Number> { //... | 30.417582 | 166 | 0.539379 |
15fb1e8bad60890d020d548db0af1758456b3437 | 258 | package org.rs.core.page;
public abstract interface IDialect {
public abstract StringBuilder bulildPageSql(String paramString, IPage paramIPage);
public abstract boolean supportsPaged();
public abstract String getSelectCountSql(String paramString);
}
| 23.454545 | 83 | 0.817829 |
13da5663439755cd087100752d22c44641ea7ed5 | 2,013 | package com.cc.cairou.main;
import java.util.Calendar;
import java.util.Random;
import com.cc.cairou.R;
import android.app.Notification;
import android.app.Notification.Builder;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.... | 27.958333 | 121 | 0.754098 |
9b0411572b6b52ea958836849363098259a1b391 | 2,779 | package edu.nyu.oop.util;
import xtc.lang.JavaFiveParser;
import xtc.parser.Result;
import xtc.tree.GNode;
import xtc.tree.Node;
import xtc.tree.Token;
import xtc.tree.Visitor;
import java.io.*;
import java.util.List;
import java.util.LinkedList;
public class NodeUtil {
// A class representing a location inside... | 32.694118 | 96 | 0.563512 |
fc474852cf7ba98f8d1605f797fb6ab7c8c50c17 | 976 | package cn.enncy.scs.swing.frame.base.view.index.card.courses;
import cn.enncy.scs.pojo.Course;
import cn.enncy.scs.pojo.Teacher;
import cn.enncy.scs.swing.component.ScsList;
import cn.enncy.scs.swing.component.dialog.ScsDialog;
import cn.enncy.scs.swing.component.panel.ScsWhitePanel;
import javax.swing.*;
import ja... | 27.111111 | 63 | 0.683402 |
073a362d9c59e3a24557303ca9919aec8ac14f71 | 1,652 | package com.wu.lewei.web.rest;
import com.codahale.metrics.annotation.Timed;
import com.wu.lewei.dto.BusRouteDTO;
import com.wu.lewei.service.BusRouteService;
import com.wu.lewei.web.rest.resource.BusRouteResource;
import com.wu.lewei.web.rest.resourceassembler.BusRouteResourceAssembler;
import org.apache.commons.logg... | 35.913043 | 128 | 0.779056 |
bfe362ebabbf2e5c57f86d58f5e848595988b411 | 3,954 | package services.impl;
import com.google.common.base.Strings;
import com.google.common.primitives.Longs;
import com.google.inject.Inject;
import io.jsonwebtoken.*;
import models.PrivateRoom;
import play.Logger;
import play.Play;
import play.mvc.Http;
import security.Secured;
import services.PrivateRoomService;
import ... | 33.226891 | 115 | 0.652251 |
59522dfa93051a9cf9fe965784795c65e8a00a0d | 2,984 | /*******************************************************************************
* Copyright (c) 2000, 2019 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
... | 33.52809 | 127 | 0.72252 |
7c9ed8aa572202951530bad79ba190c86f0ca8d4 | 24,123 | package com.github.thorqin.webapi.utility;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.io.StringReader;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Map.Ent... | 29.671587 | 113 | 0.638768 |
6b66fa9a4c4aec1ec079cf817d7d05ec72f3bdfc | 4,171 | package com.jetbrains.env.python.dotNet;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.projectRoots.Sdk;
import com.jetbrains.TestEnv;
import com.jetbrains.env.EnvTestTagsRequired;
import com.jetbrains.env.PyEnvTestCase;
import com.jetbrains.env.Staging;
import com.jetbrains.p... | 25.746914 | 138 | 0.672501 |
02d0da84ccdb89d56ab7277d5ec688fb8069a39f | 6,548 | package resources.projects.pluginwizard;
import ca.cgjennings.ui.EditorPane;
import ca.cgjennings.ui.JIconList;
import ca.cgjennings.ui.wizard.WizardModel;
import java.util.EnumSet;
import javax.swing.DefaultListModel;
import static resources.Language.string;
/**
* A standard plug-in wizard page that allows the user... | 39.684848 | 136 | 0.700214 |
0fa40dd8fea7cb9cca4f40dcd36f595bf435dd98 | 31,175 | package oghamcloudhopper.it;
import static fr.sii.ogham.testing.assertion.OghamAssertions.assertThat;
import static fr.sii.ogham.testing.assertion.hamcrest.ExceptionMatchers.hasAnyCause;
import static fr.sii.ogham.testing.sms.simulator.bean.NumberingPlanIndicator.ISDN;
import static fr.sii.ogham.testing.sms.simulator.... | 43.17867 | 146 | 0.395477 |
c926bcf4a6be84896fb59e9fb060433a1ef76bf6 | 7,542 | package graphql.nadel.engine.transformation;
import graphql.language.Argument;
import graphql.language.AstNodeAdapter;
import graphql.language.Field;
import graphql.language.FragmentDefinition;
import graphql.language.InlineFragment;
import graphql.language.Node;
import graphql.language.NodeVisitorStub;
import graphql... | 52.375 | 202 | 0.695306 |
7e7fa19c1fe169a1217e4264f0bbdcb3d1662c2c | 1,693 | package presentacion.eventos;
/**
* The Class EventosLibro.
*/
public class EventosLibro {
/** The Constant ALTA_LIBRO. */
public static final int ALTA_LIBRO = 51;// TODO
/** The Constant ALTA_LIBRO_KO. */
public static final int ALTA_LIBRO_KO = 57;
/** The Constant ALTA_LIBRO_OK. */
// Resultados de ... | 26.453125 | 50 | 0.710573 |
36c12ff42e0c63cb7de9d464a2bb79b00adc5c33 | 219 | package com.example.skincancer;
public class YoutubeConfig {
public YoutubeConfig(){
}
private static final String API_key = "";
public static String getAPI_key() {
return API_key;
}
}
| 16.846154 | 48 | 0.648402 |
03f384ddc2328820f1a3801e9de1c9afed77b782 | 525 | package pl.uw.mim.jnp.rock.paper.money.app.usecases.game;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Component;
import pl.uw.mim.jnp.rock.paper.money.api.models.GameProgress;
import pl.uw.mim.jnp.rock.paper.money.app.services.GameInfoService;
import reactor.core.publisher.Mono;
@Component... | 27.631579 | 67 | 0.809524 |
4713bab5ae39c671f902a020c7fd59238736545c | 1,021 | package com.hujiayi.auxiliaryteach.edu.controller.dto;
import com.hujiayi.auxiliaryteach.common.dto.ChapterDto;
import com.hujiayi.auxiliaryteach.edu.entity.Chapter;
import com.hujiayi.auxiliaryteach.edu.service.ChapterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.w... | 36.464286 | 72 | 0.787463 |
9b29ad3a7482cfd306ad8e78640f75e8a9118814 | 6,374 | /**
* There are <a href="https://github.com/thinkgem/jeesite">JeeSite</a> code generation
*/
package com.zhongxin.ctsms.modules.coal.entity;
import com.zhongxin.ctsms.common.persistence.DataEntity;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate... | 22.131944 | 128 | 0.6401 |
2c43d7c7028a75620503d8886acb70424b6d18b2 | 26,229 | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chromoting;
import android.content.Context;
import android.graphics.Matrix;
import android.graphics.PointF;
import android.graphics.... | 37.793948 | 99 | 0.626292 |
ef37a0398aecb6554ea57295647bcbc9faefae7a | 7,219 | /*
* Copyright 2017 StreamSets 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... | 35.561576 | 119 | 0.700651 |
f2a30f0719a90c0ee2d09bad9b7c02a18b6d5aa6 | 343 | /**
* このパッケージは、リソースやストリームに対する入出力処理に関するクラスを提供します。<br>
* <p>
* Java標準APIで提供されるストリームやファイルに対するシステム入出力処理を拡張した特殊な入出力処理を行うためのクラス等を提供します。<br>
* </p>
*
*<!--
* 更新日 更新者 更新内容
* 2017/06/09 Kitagawa 新規作成
* 2018/05/16 Kitagawa 再構築(SourceForge.jpからGitHubへの移行に併せて全面改訂)
*-->
*/
package org.id... | 26.384615 | 75 | 0.658892 |
56a44a979c6534fc95d448e77d5d144e684b3ac5 | 3,279 | package com.ceco.geekit.app.adapter;
import android.content.Context;
import android.graphics.Typeface;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseExpandableListAdapter;
import android.widget.TextView;
import com.ceco.geekit.R;
import java.ut... | 31.228571 | 125 | 0.706008 |
463975bf0f5f81df702ee66815c03cb3362ab558 | 1,809 | package land.basso.android.popularmovies;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import com.squareup.picasso.Picasso;
/**
* Created by jbasso on 7/10/2015.
*/
public class ImageAdapter extends BaseAdapter
{
private Context mCo... | 26.602941 | 153 | 0.599226 |
7b878ae8212efda3e0116669549b80882a2b082a | 883 | package dao.entities;
public class CrownableArtist {
private final String artistName;
private final int playNumber;
private final int maxPlaynumber;
private final int rank;
private final int totalListeners;
public CrownableArtist(String artistName, int playNumber, int maxPlaynumber, int rank,... | 22.641026 | 112 | 0.656852 |
aa895c6f3222820dbacbc7f9f83d7a3934910c00 | 1,535 | package com.alipay.api.response;
import java.util.List;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
import com.alipay.api.domain.ItemVO;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.open.mini.item.page.query response.
*
* @au... | 20.743243 | 74 | 0.694463 |
da95c42a744c6d597628355728b8db9e486dae67 | 3,252 | /*
* 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 ... | 36.954545 | 127 | 0.648831 |
c425d1fd217fec28041c15f5a0d4dc14b4735cea | 1,059 | class Solution {
public void nextPermutation(int[] num) {
int n = num.length;
if (n < 2)
return;
int index = n - 1;
while (index > 0) {
if (num[index - 1] < num[index])
break;
index--;
}
if (index == 0) {
... | 25.214286 | 60 | 0.374882 |
b6a3a0ea9d88b8e303ed53895f73072a3fee6f18 | 2,161 | package langModel;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TestName;
/**
* This JUnit Test Class has been generated by right clicking on the NgramUtils class
* and selecting "New > Junit Test Case". After that, you have to sel... | 24.280899 | 92 | 0.689033 |
a5424f2c894d2c109ea175f247cc56d949e956b1 | 107 | package tech.arauk.ark.activesupport.ace.base;
public class Case {
public static class Dice {
}
}
| 15.285714 | 46 | 0.700935 |
320014ea0f7bf85aded015e5553aa6eb70c381fb | 548 | package command;
/**
* Interface for commands implementing various program functions.
* The only method is getResult() which formats results, which are computed by void execute() method. Execute itself cannot be part of interface,
* since every command requires different set of arguments. Results of execute() metho... | 42.153846 | 145 | 0.760949 |
3429b2c4fddd54cf73b4f436753006edaeac53ed | 1,081 | package implementation;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Boj10984 {
public static final String SPACE = " ";
public static final String NEW_LINE = "\n";
public static final Double TEN = 10.0;
public static void main(String ar... | 27.025 | 76 | 0.625347 |
fecaa574ab3c88f250916ea9a89e6da952518511 | 596 | package psd.parser.layer.additional;
import java.io.IOException;
import psd.parser.PsdInputStream;
import psd.parser.layer.LayerAdditionalInformationParser;
public class LayerIdParser implements LayerAdditionalInformationParser {
public static final String TAG = "lyid";
private final LayerIdHandler handler;
pu... | 22.923077 | 84 | 0.77349 |
ab469394ecd3c2dfc437bcdc8097eaa3d6452efa | 869 |
package pepmhc.junit;
import java.io.File;
import java.util.List;
import jene.peptide.ProteinChange;
import jene.tcga.TumorBarcode;
import pepmhc.miss.MissCleavageDriver;
import pepmhc.miss.MissCleavageRecord;
import pepmhc.miss.MissCleavageTable;
import org.junit.*;
import static org.junit.Assert.*;
public class... | 25.558824 | 88 | 0.733026 |
2dca67d8d57d861a58d2aacaddea70e10f5cfbcd | 3,310 | package com.ty.nanfangscanner.bean;
public class CheckInfo {
/**
* brandName : 未知品牌
* productName : 未知产品
* registrationTime : 2018/07/24 14:38:25
* activationTime : 2018/07/24 14:39:09
* activationStatus : 已激活
* activationCount : 2
* seqNumCount : 2
* status : 1
* ente... | 23.81295 | 69 | 0.669184 |
ff275eeaeb5c2e4550550dea99ea617a85612903 | 4,510 | package io.renren.controller;
import io.renren.annotation.SysLog;
import io.renren.entity.YlDepartmentEntity;
import io.renren.entity.YlHospitalEntity;
import io.renren.entity.YlOrganizationEntity;
import io.renren.service.YlDepartmentService;
import io.renren.service.YlHospitalService;
import io.renren.service.YlOrga... | 28.726115 | 104 | 0.747228 |
33e934d3f7f0b448d0119dbc90d490e2f68561c2 | 840 | package com.study.controller;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind... | 26.25 | 72 | 0.771429 |
fec451bab9bd653e522d2f448dad2a4fc59924c5 | 7,535 | /*
* Part of the CCNx Java Library.
*
* Copyright (C) 2008, 2009, 2010, 2011 Palo Alto Research Center, Inc.
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License version 2.1
* as published by the Free Software Foundation.
* This ... | 33.193833 | 109 | 0.729662 |
80a81f31e59f2f669666fa1c8a40ac5a68c815f0 | 671 | package co.uk.acme.deliveryday;
import java.time.LocalDate;
/**
* @author psamatt
*/
final public class ScheduleDeliveryDay {
final private DeliveryDayId deliveryDayId;
final private Capacity capacity;
final private LocalDate date;
public ScheduleDeliveryDay(DeliveryDayId deliveryDayId, Capacity c... | 20.96875 | 96 | 0.678092 |
da8dbbfae192ae6a28dc6dd2c6734582291a1c4b | 9,132 | /*
* Copyright 2020 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... | 36.528 | 100 | 0.720543 |
c66ba8626f1135a9b5c1667eb2a0fd1a996e7c3f | 7,356 | package com.test.leetcode.hard;
import java.util.*;
/**
* Created by ben on 2017/7/18.
*/
public class _30_SubstringWithConcatenationOfAllWords {
public List<Integer> findSubstring(String s, String[] words) {
List<Integer> result = new ArrayList<>();
if (null == s || s.length() == 0 || words ==... | 34.698113 | 95 | 0.430941 |
dafe38d3974029b490f3ddefc6d45a279753d8ad | 930 | package louisiana.Classes;
import javafx.scene.shape.Rectangle;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class ReferenceTargetPairTest {
@Test
void ReferenceTargetIncreaseWidth(){
int dim1[] = {2000, 500};
int dim2[] = {2000, 500};
... | 21.627907 | 50 | 0.552688 |
7fe6debc520d68e2b6f32eb6609c8473ab0fa116 | 8,585 | /*
* @(#)DOMOutput.java
*
* Copyright (c) 1996-2010 by the original authors of JHotDraw and all its
* contributors. All rights reserved.
*
* You may not use, copy or modify this file, except in compliance with the
* license agreement you entered into with the copyright holders. For details
* see accompanying l... | 31.5625 | 126 | 0.601281 |
cef807fd5f4596f051ac984d702c17c2b6d863d4 | 1,133 | package com.nrusev.web.ui.mvp;
import com.google.common.eventbus.EventBus;
import com.vaadin.navigator.Navigator;
import com.vaadin.navigator.View;
import com.vaadin.navigator.ViewChangeListener;
import com.vaadin.ui.UI;
import org.springframework.beans.factory.annotation.Autowired;
import javax.annotation.PostConstr... | 21.377358 | 72 | 0.762577 |
698229d46cc21593de34a2acf741bd7ba7e693e8 | 1,392 | /*
* 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 com.hm.serviceapp.service.impl;
import com.hm.serviceapp.dao.PaisDAO;
import com.hm.serviceapp.dto.PaisDTO;
import com.hm.serv... | 24.857143 | 79 | 0.653736 |
22fd2d9885fbe42481bf4de29e39fac77bb4c4ef | 13,332 | /*
* Copyright 2000-2015 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... | 45.814433 | 149 | 0.682118 |
92b50c181949e3b3a6410434984dc5ac2a1a6ff9 | 4,498 | package rivet.cluster.hbase;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.Cell;
import org.apache.hadoop.hbase.CellUtil;
import org.apache.hadoop.hbase.HBaseCon... | 34.6 | 118 | 0.739662 |
8716d1e59aa08894d0c0d6700a083ca9aff0d3d6 | 1,511 | //Leetcode problem 406 Queue Reconstruction by Height
//Solution written by Xuqiang Fang on 21 April, 2018
import java.util.Arrays;
import java.util.Comparator;
import java.util.LinkedList;
class Solution{
public int[][] reconstructQueue(int[][] people){
if(people == null || people.length == 0)
... | 27.981481 | 63 | 0.487756 |
8f6855be8938f952a590c00a4778955e9f819c19 | 1,645 | package com.webcheckers.ui;
import static spark.Spark.halt;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.logging.Logger;
import spark.ModelAndView;
import spark.Request;
import spark.Response;
import spark.Route;
import spark.TemplateEngine;
import com.webcheckers.appl.... | 25.307692 | 94 | 0.712462 |
d7e4597dad382bbb15b3207493541498b07755df | 1,413 | package com.nettm.exercise.random;
import lombok.experimental.UtilityClass;
import java.math.BigDecimal;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
@UtilityClass
public class DateTimeGenerator extends BaseDataGenerator {
protected BigDecimal minValue = new BigDecimal... | 27.705882 | 96 | 0.750885 |
de2676de978b4cac1af44627dd46e7ac28566b4c | 4,237 | /*
* ICARUS2 Corpus Modeling Framework
* Copyright (C) 2014-2021 Markus Gärtner <markus.gaertner@ims.uni-stuttgart.de>
*
* 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
*
* ... | 26.816456 | 83 | 0.655417 |
f7d4edc6e3fc75d876772f0aa9398aa34b8474b6 | 48,119 | package com.abina.basetype;
import java.beans.XMLDecoder;
import java.io.BufferedInputStream;
import java.io.ByteArrayInputStream;
import java.io.StringWriter;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.security.MessageDigest;
import java.... | 23.18988 | 119 | 0.534945 |
23df9e28630006daee813de5a46b9d5f4c46404e | 323 | package category.thread.ch04.z3_ok.extthread;
import category.thread.ch04.z3_ok.service.MyService;
public class MyThreadA extends Thread {
private MyService myService;
public MyThreadA(MyService myService) {
super();
this.myService = myService;
}
@Override
public void run() {
myService.waitMethod();
}
... | 16.15 | 52 | 0.749226 |
c887921d2ff65b497b3c5240dd578c47178273a3 | 3,302 | package com.nortal.sk.client.digidoc4j.processor;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import org.apache.commons.codec.binary.Hex;
import org.apache.commons.io.IOUtils;
import org.digidoc4j.Container;
import org.digidoc4j.ContainerBuilder;
import org.digidoc4j.DataToSign;
import ... | 31.447619 | 113 | 0.705936 |
2bbf6556ee987b2ed71ca88232065e99ff936a05 | 271 | package com.appApi.service;
import com.appApi.model.Mask;
import java.util.List;
public interface MaskService {
List<Mask> getMasks();
Mask createMask(Mask mask);
Mask getMaskById(Long id);
Mask updateMaskById(Long id, Mask mask);
Mask deleteMaskById(Long id);
} | 20.846154 | 41 | 0.760148 |
f62665c38014d63aa404c370148071bab44f1d56 | 461 | package Lecture6;
public class CheckIfArrayContains7 {
public static void main(String[] args) {
// TODO Auto-generated method stub
int[] arr = { 1, 2, 95, 6, 8 };
boolean x = check(arr, 7, 0);
System.out.print(x);
}
public static boolean check(int[] arr, int find, int si) {
if (si==arr.length... | 18.44 | 60 | 0.572668 |
8623c4f95e0a18529c888f5fa4d1438748892287 | 1,985 | package eiteam.esteemedinnovation.api;
import eiteam.esteemedinnovation.api.util.ItemStackUtility;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.FurnaceRecipes;
import javax.annotation.Nonnull;
import java.util.HashMap;
import java.util.Map;
public class SteamingRegistry {
/**
* Al... | 34.824561 | 117 | 0.688161 |
e15e42841ffda8d928172e6eca84d54758e3261d | 11,661 | /**
* Copyright 2016 Crawler-Commons
*
* 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... | 30.76781 | 105 | 0.51565 |
f8377e44021e5f012cb8f336b0b9a9c6ce8e9cf4 | 2,061 | package mage.cards.f;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.BecomesBlockedByCreatureTriggeredAbility;
import mage.abilities.effects.OneShotEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.con... | 28.625 | 129 | 0.684619 |
f7b9307aba4cf387afb6047dcdbab19f4d2909ac | 7,646 | package org.frankframework.frankdoc;
import static org.frankframework.frankdoc.DocWriterNewXmlUtils.addComplexType;
import static org.frankframework.frankdoc.DocWriterNewXmlUtils.addElementWithType;
import static org.frankframework.frankdoc.DocWriterNewXmlUtils.getXmlSchema;
import static org.junit.Assert.assertEquals... | 45.784431 | 153 | 0.78407 |
e97321bce4f4022602faf3e5e537d48473448036 | 2,374 | package com.cisco.app.dbmigrator.migratorapp.sqlbuilder.queries;
import com.cisco.app.dbmigrator.migratorapp.sqlbuilder.entities.OracleColumn;
import com.cisco.app.dbmigrator.migratorapp.sqlbuilder.entities.OracleTable;
import com.cisco.app.dbmigrator.migratorapp.sqlbuilder.entities.QueryConstants;
import com.cis... | 32.520548 | 115 | 0.743892 |
289df8908b0099964978e0d61fec8e8c94b89e7c | 408 | package io.github.vikeshpandey;
import org.aspectj.lang.JoinPoint;
public class TrackOperation {
public void myadvice(JoinPoint jp, Object result)// it is advice (after advice)
{
System.out.println("additional concern");
System.out.println("Method Signature: " + jp.getSignature());
System.out.println("Result... | 27.2 | 80 | 0.730392 |
612a872db108fda9b012f0e4face90209a7ab048 | 1,211 | package java.net;
import com.jtransc.annotation.haxe.HaxeMethodBody;
import java.io.UnsupportedEncodingException;
import java.util.BitSet;
public class URLEncoder {
static private BitSet normal = new BitSet(0x100);
static private String normalTable = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ... | 26.326087 | 107 | 0.676301 |
81cd5845e84818516661ad0624913518d667347d | 3,993 | /*
* 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")... | 35.336283 | 132 | 0.627849 |
cf33b524b21f94c9c8cb5c18962fde444ec7dfa6 | 5,032 | // ============================================================================
//
// Copyright (C) 2006-2018 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have... | 41.933333 | 115 | 0.594793 |
b4169e2c5ac66d5ae78c0c394682fce73c3c8f18 | 1,365 | /**
* Created by Edgar on 2016/3/17.
*
* @author Edgar Date 2016/3/17
*/
public class IDMain {
public static void main(String[] args) {
// instagram
// 使用41 bit来存放时间,精确到毫秒,可以使用41年。
// 使用13 bit来存放逻辑分片ID。
// 使用10 bit来存放自增长ID,意味着每台机器,每毫秒最多可以生成1024个ID
int nodes = 10;//分片数
int userId = 31341;
... | 31.022727 | 69 | 0.630037 |
b387fca37b96e63942d649a6631cc6d2889e1668 | 1,009 | import java.util.Scanner;
public class P04SeriesOfLetters {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
char[] input = scanner.nextLine().toCharArray();
StringBuilder sb = new StringBuilder();
boolean isCharDifferent = true;
char previ... | 27.27027 | 56 | 0.481665 |
c4670c2d3477f670303d46f9541603f74125e1b7 | 1,060 | package io.github.krobbi.fabricmc.endfix.mixin.client;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.block.entity.EndPortalBlockEntity;
import net.minecraft.util.math.Direction;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Overwrite;
/**
* ... | 35.333333 | 76 | 0.767925 |
60f0061a376faf0025e4e47b0accb2d253d6d30b | 4,761 | /**
* Copyright ${license.git.copyrightYears} 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/LICEN... | 34.5 | 138 | 0.698803 |
02d35a0331194f25b046069fbf998a904f066a92 | 401 | package jalgor_gen2.leetcode.part2;
public class Q223_RectangleArea {
public int computeArea(int A, int B, int C, int D, int E, int F, int G, int H) {
int x1 = Math.max(A, E), y1 = Math.max(B, F);
int x2 = Math.max(x1, Math.min(C, G)), y2 = Math.max(y1, Math.min(D, H));
int area1 = (C - A) * (D - B), a... | 33.416667 | 84 | 0.561097 |
5cdc685d23235ba130ba44cd708b3693e16ea4df | 2,418 | /*
* 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 solver.dp;
import collection.TList;
import static org.testng.Assert.*;
import org.testng.annotations.BeforeMethod;
import org.... | 35.043478 | 149 | 0.648056 |
79aa463b604b618cabfeaadfdedea62643915e25 | 602 | package com.rabbit.samples.springjafumongodb.repos;
import com.mongodb.client.result.DeleteResult;
import com.rabbit.samples.springjafumongodb.domain.User;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
/**
* @author Matteo Baiguini
* matteo@solidarchitectures.com
* 16 Feb 2019
*/
public... | 19.419355 | 56 | 0.759136 |
c20c0f30d1214218aafe9fa55c56ef0cf12af12e | 8,405 | package org.rcsb.cif.api.generated;
import org.rcsb.cif.model.*;
import javax.annotation.Generated;
import java.util.Map;
/**
* This category contains details for the chromatographic steps used in the
* purification of the protein.
*/
@Generated("org.rcsb.cif.generator.SchemaGenerator")
public class PdbxEntitySrc... | 35.167364 | 112 | 0.654491 |
bef5640c9fa90171ff3acc9a85750287f121dd8e | 2,948 | /**
* @author Asifur
*/
package org.opensrp.rest.services;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import org.opensrp.rest.repository.LuceneFormRepository;
import org.opensrp.rest.util.ConvertDateStringToTimestampMills;
import org.springframe... | 51.719298 | 331 | 0.765943 |
63220d8814647c746676967673ff2fdca629bbe5 | 1,621 | package com.illusion.avrillavigne.adapter;
import java.util.ArrayList;
import com.illusion.avrillavigne.R;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
public class Entry... | 28.438596 | 88 | 0.732264 |
75d53e581b8982fc943bc6a0133122e801f12ab4 | 119 | package com.github.burgerguy.handwriter.page;
public enum WordWrapMode {
NONE,
BEFORE_WORD,
AFTER_WORD;
}
| 14.875 | 45 | 0.722689 |
39310339d4b4f6d5350a46a72b4689a5f949c1c3 | 3,653 | /**********************************************************************;
* Project : simple fuzzy member function library
* Program name : fuzzylib.h
*
* Author : Diego Vallejo
*
* Date created : 12/10/2017
*
* Purpose : data for the study of fuzzy inference... | 16.381166 | 88 | 0.471667 |
267d96e0ce65bdc1313fe4499c217ee8c0c0db96 | 3,539 | //Copyright 2019 HP Inc.
package com.hp.composer.sdk.api.v1.resources.output.pdf;
import com.hp.composer.sdk.api.v1.resources.common.ResourceIdCollection;
public class PdfResource {
public PdfResource(){}
private Output output;
private String fileName;
private String templateResourceId;
private String dataReso... | 27.015267 | 116 | 0.790054 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.