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 |
|---|---|---|---|---|---|
36ec5c033009f72b773b96a6122961883896f842 | 1,163 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.flags;
import javax.annotation.concurrent.Immutable;
import java.util.Objects;
import java.util.regex.Pattern;
/**
* @author hakonhall
*/
@Immutable
public class FlagId implements Compara... | 24.229167 | 104 | 0.619948 |
0bab283579aac8fcdceca09c047481d9b29d487f | 1,453 | package com.ohmdb.dsl;
/*
* #%L
* ohmdb-dsl
* %%
* Copyright (C) 2013 - 2014 Nikolche Mihajlovski
* %%
* 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... | 30.270833 | 75 | 0.733655 |
ec24cf8aa4bc9ef87c185f73a641eea80740a510 | 2,506 | package br.utp.sustentabilidade.network;
import java.util.List;
import br.utp.sustentabilidade.models.Agrotoxico;
import br.utp.sustentabilidade.models.Organico;
import br.utp.sustentabilidade.models.Reciclagem;
import br.utp.sustentabilidade.models.Residuo;
import br.utp.sustentabilidade.models.RespostaJSON;
import ... | 30.560976 | 90 | 0.690343 |
0ce213ccfc2ba3a06bb699d317b8f5023cad76cc | 383 | package main;
import java.awt.Dimension;
public class Mid {
java.awt.Toolkit toolkit=java.awt.Toolkit.getDefaultToolkit();
Dimension screenSize=toolkit.getScreenSize();
int screenWidth = screenSize.width/2; // 获取屏幕的宽
int screenHeight = screenSize.height/2; // 获取屏幕的高
public int returnWidth() {
return screenWidt... | 22.529412 | 63 | 0.751958 |
a8e1b0408199fc0ee5c0212681cbc3524bdbe0dc | 7,205 | package com.bstek.urule;
import com.bstek.urule.action.Action;
import com.bstek.urule.action.ExecuteMethodAction;
import com.bstek.urule.action.VariableAssignAction;
import com.bstek.urule.model.library.Datatype;
import com.bstek.urule.model.rule.*;
import com.bstek.urule.model.rule.lhs.*;
import com.bstek.urule.scrip... | 32.75 | 131 | 0.652741 |
64b80906f418f1e816a1ed2398de1628926afefb | 2,312 | package io.github.vm.patlego.lambda.db;
import java.util.Properties;
import org.apache.commons.lang3.StringUtils;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import io.github.vm.patlego.lambda.db.impl.LiquibaseImpl;
public class TestLiquibaseImpl {
@Test
public void testEmpt... | 28.9 | 95 | 0.638841 |
42c1be28465147b662cc3c0e64a6c38efc39bf9b | 8,418 | package com.onarandombox.multiverseinventories.util;
import com.dumptruckman.minecraft.util.Logging;
import com.onarandombox.multiverseinventories.MultiverseInventories;
import org.bukkit.Bukkit;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.permissions.Permission;
... | 37.0837 | 138 | 0.616655 |
42c52e525a33e701b8987421bfaea59ca8860ad3 | 787 | package com.plumdo.identity.response;
import java.util.ArrayList;
import java.util.List;
import com.plumdo.common.model.ObjectMap;
import com.plumdo.common.utils.ObjectUtils;
import com.plumdo.identity.domain.Role;
/**
* 角色数据转换类
*
* @author wengwenhui
* @date 2018年3月28日
*/
public class RoleConverter {
public ... | 25.387097 | 94 | 0.702668 |
17214cc85e4046e9546d0abc9316b68ea2339692 | 1,956 | package com.davidcubesvk.clicksPerSecond.command;
import com.davidcubesvk.clicksPerSecond.ClicksPerSecond;
import com.davidcubesvk.clicksPerSecond.command.subcommands.*;
import com.davidcubesvk.clicksPerSecond.utils.command.CommandUtil;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
impo... | 33.724138 | 157 | 0.608896 |
81177a92bf4c901ebf6c7e0e96ff2df8acb14e8f | 1,512 | /*L
* Copyright Moxie Informatics.
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/calims/LICENSE.txt for details.
*/
/**
*
*/
package gov.nih.nci.calims2.ui.inventory.quantity;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import gov... | 21.295775 | 125 | 0.716931 |
d8cc2d8a66b8610f704d23165f3d381ed3a2667e | 1,697 | /**
* Copyright © 2017 Salzburg Research Forschungsgesellschaft (graphium@salzburgresearch.at)
*
* 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/LI... | 22.932432 | 91 | 0.683559 |
7e49599d46787bba5354f74bdc0685b031da6886 | 559 | module jline {
requires transitive jansi;
requires transitive java.logging;
exports org.jline.builtins;
exports org.jline.keymap;
exports org.jline.style;
exports org.jline.terminal;
exports org.jline.utils;
exports org.jline.reader;
exports org.jline.reader.impl;
exports org.jl... | 27.95 | 46 | 0.724508 |
65d7d4fd533d64bfb565126fe3d2d357941f5aeb | 759 | package com.crashinvaders.texturepackergui.utils;
import com.badlogic.gdx.math.Rectangle;
public class GeoUtils {
public static float[] copyVertices(Rectangle rectangle) {
float[] vertices = new float[8]; // clockwise vertices
vertices[0] = rectangle.x;
vertices[1] = rectangle.y;
vertices[2] = rect... | 29.192308 | 68 | 0.6917 |
52b0902733612788c4acd32b06fbfe10f3342588 | 16,238 | /*
* JBoss, Home of Professional Open Source.
* Copyright 2016 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 Licen... | 42.731579 | 146 | 0.623476 |
4d403947c402fffdac4c7fbca69d72eb036738c2 | 3,302 | package org.contentmine.ami.wordutil;
import java.io.File;
import java.io.IOException;
import java.util.List;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.core.WhitespaceAnalyzer;
import org.apache.lucene.analysis.standard... | 28.222222 | 107 | 0.692005 |
5535125df3c112338c772e46549bbe65f0068723 | 1,104 | package com.intellij.jira.ui.renders;
import com.intellij.ui.JBColor;
import com.intellij.util.ui.JBUI;
import javax.swing.*;
import javax.swing.border.Border;
import java.awt.*;
public class DefaultJiraListCellRender extends JPanel implements ListCellRenderer<Object> {
private static final Border DEFAULT_LINE_... | 27.6 | 133 | 0.684783 |
0fcf03bfb92a5dc2063d6b6f37e48982a3fad597 | 1,890 | package theInvoker.cards.allies;
import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.actions.common.ApplyPowerAction;
import com.megacrit.cardcrawl.actions.common.DamageAction;
import com.megacrit.cardcrawl.cards.DamageInfo;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
i... | 37.058824 | 102 | 0.742857 |
8bb0b87799ecefcf9a959f484d085ded7bcd4bad | 2,497 | package com.jeffdisher.thinktank;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.util.concurrent.CountDownLatch;
import org.eclipse.jetty.client.HttpClient;
import org.eclipse.jetty.client... | 33.293333 | 117 | 0.759712 |
093298c16f3773e616b532a8edbc124d9710e406 | 362 | package de.atomfrede.mate.application.wicket.register;
import org.wicketstuff.annotation.mount.MountPath;
import de.atomfrede.mate.application.wicket.base.AbstractBasePage;
@SuppressWarnings("serial")
@MountPath(value = "/register")
public class RegisterPage extends AbstractBasePage{
public RegisterPage() {
add(... | 24.133333 | 66 | 0.798343 |
7ff566728bd25374d697082c11b2112e0e0b28d7 | 4,329 | /*
* 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
*
* ... | 30.485915 | 110 | 0.693925 |
f799c78059392de5c2040af3b23fbe9bc2cc3a6c | 827 | package com.alachisoft.ncache.springbootsample;
import org.springframework.boot.autoconfigure.cache.JCacheManagerCustomizer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import javax.cache.CacheManager;
import javax.cache.configuration.MutableConfigu... | 39.380952 | 104 | 0.830713 |
8df98e308a1b57bc583ae89d16f9bff1b15a4f9d | 1,147 | package com.easy.ancFeign;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springfr... | 26.674419 | 67 | 0.672188 |
f73c0a1a1cfad83b4b5e83756f1740b06bb6d11a | 2,554 | /*
* Copyright 2016 The Bazel Authors. 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.697674 | 96 | 0.721222 |
1e851dde61511c06b4e54027b383c971bf2b17e6 | 3,226 | package com.example.hospitalfinder.activity;
import android.app.Activity;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import static java.lang.Character.toLowerCase;
import static java.lang.Character.toUpperCase;
... | 29.59633 | 101 | 0.556107 |
e9e4353942eccfc894498bd28baf916016a53237 | 2,673 | /*
* Copyright 2017 Byte Mechanics.
*
* 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... | 27.84375 | 129 | 0.680883 |
384ee0d87ba36a19ced4472af06388a82f94871b | 801 | /*
* Licensed under MIT (https://github.com/ligoj/ligoj/blob/master/LICENSE)
*/
package org.ligoj.bootstrap.core.resource.mapper;
import java.sql.SQLException;
import org.junit.jupiter.api.Test;
import org.ligoj.bootstrap.core.resource.AbstractMapperTest;
import org.springframework.jdbc.CannotGetJdbcConnectionExcep... | 32.04 | 92 | 0.777778 |
ae6af2c113ce39b03b42fb7ed495f1f1f4949747 | 36,982 | /**
* **************************************************************************
* BaseBrowserFragment.java
* ****************************************************************************
* Copyright © 2015-2017 VLC authors and VideoLAN
* Author: Geoffrey Métais
*
* This program is free software; you can redistri... | 40.461707 | 228 | 0.596777 |
7f1f7c51e2233579ec02a55ebf611ff1435acc9e | 910 | package com.luv2code.springdemo;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
/*Spring config with java Code
*
*
* */
//Step1.... | 24.594595 | 62 | 0.752747 |
2f60d54af2a0d67c5c9c31f2f7cbe6887531d85a | 2,401 | package com.joindoo.jdwechat.controller;
import com.joindoo.jdwechat.WeChatFields;
import com.joindoo.jdwechat.codeGen.beans.TXtAqZhxxDtoModel;
import com.joindoo.jdwechat.data.DataService;
import com.joindoo.jdwechat.entity.config.DruidConfig;
import com.joindoo.jdwechat.entity.config.SysProperties;
import com.joindo... | 40.016667 | 110 | 0.706372 |
a0aaac3b001d362fdad78774268acd05674fe1b1 | 519 | package com.explore.models.google;
public enum PlaceType {
MUSEUM("museum", "museum"),
RESTAURANT("restaurant", "restaurant"),
SHOPPING("shops", "shopping_mall"),
ZOO("zoo", "zoo"),
CINEMA("cinema", "movie_theater");
private String query;
private String type;
PlaceType(String query, S... | 19.961538 | 43 | 0.601156 |
536c7a5ac2aa7f3e0f26660dfd133e3a517791e3 | 1,967 | /*
* Copyright (c) 2019-2022 The EntityC Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.md file in the project root.
*/
package org.entityc.compiler.structure.code;
public class CSVariableDeclaration extends CSAnnotatableNode {
priv... | 25.881579 | 84 | 0.67514 |
aa794617eaf8fc485fdecaf83d854b5eba3cf10a | 1,034 | package com.scipionyx.butterflyeffect;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework... | 29.542857 | 96 | 0.817215 |
162033cc84e4c6c331dcdd47ed981dd71054fdef | 188 | package com.yeyu.dearinformaton.View;
import com.yeyu.dearinformaton.View.BaseView.BaseView;
/**
* Created by gaoyehua on 2016/9/19.
*/
public interface VideoView extends BaseView {
}
| 18.8 | 54 | 0.765957 |
011f62835ec96a4321971c0832fc7e493ba0dc77 | 1,855 | package com.ace.config;
import javax.sql.DataSource;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
imp... | 38.645833 | 115 | 0.757951 |
59726921b687816d6d7533bd0bf8e94e4274e88e | 13,293 | /**
* (C) Copyright IBM Corp. 2015, 2019.
*
* 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 ... | 41.540625 | 118 | 0.761228 |
8bd3755dc789211f862cd6a47ead7adfe1ad4e19 | 2,975 | package org.firstinspires.ftc.teamcode;
import android.os.AsyncTask;
import android.util.Log;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.net.Socket;
import java.net.Unknow... | 25 | 108 | 0.548571 |
38019b8e76a1a9f1293f849aa456ef33d03b252b | 1,158 | /*LC1509: Minimum Difference Between
Largest and Smallest Value in Three Moves
https://leetcode.com/problems/minimum-difference-between-largest-and-smallest-value-in-three-moves/
Given an array nums, you are allowed to choose
one element of nums and change it by any value in one move.
Return the minimum difference bet... | 27.571429 | 99 | 0.677893 |
bd7116bf703a234e3b2e510224d80e2a91fc7b81 | 3,791 | package com.siimkinks.sqlitemagic;
import com.siimkinks.sqlitemagic.Select.OrderingTerm;
import com.siimkinks.sqlitemagic.internal.SimpleArrayMap;
import java.util.ArrayList;
import java.util.LinkedList;
import androidx.annotation.CheckResult;
import androidx.annotation.NonNull;
import static com.siimkinks.sqlitema... | 23.69375 | 120 | 0.678185 |
2e0fda3e22d2ad674628ed76e1a23ce7859cd9ff | 1,429 | package com.stocktwitlist.api.value;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.google.auto.value.AutoValue;
import com.google.common.collect.ImmutableList;
import jav... | 30.404255 | 90 | 0.786564 |
b9abe887e03db39f21a46067bec6473974eb3e8a | 6,093 | package com.spotinst.sdkjava.model.api.azure.elastiGroup.V3;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
@JsonIgnoreProper... | 23.1673 | 74 | 0.611193 |
f8eb1606f9f7c4b4adf5046c8d74d0f5fb9dae73 | 2,923 | package entities.p04_HospitalDatabase;
import entities.BaseEntity;
import javax.persistence.*;
import java.time.LocalDate;
import java.util.HashSet;
import java.util.Set;
@Entity
@Table(name = "patients")
public class Patient extends BaseEntity {
private String firstName;
private String lastName;
private... | 23.384 | 74 | 0.651386 |
dc3532504b9958757ee8f5b6ee0c1b5a394fa67a | 977 | package com.okgo.goodhelper.utils;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
public class JsonUtil {
private static ObjectMapper objectMapper=new ObjectMapper();
public static String toJson(Object object){
try {
return objectMa... | 31.516129 | 82 | 0.635619 |
210d16a3c711ff283dcb928da2eef7836fffa161 | 5,265 | package us.ihmc.robotics.math.trajectories.waypoints;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import us.ihmc.euclid.transform.interfaces.Transform;
import us.ihmc.euclid.tuple3D.Point3D;
import us.ihmc.euclid.tuple3D.Vector3D;
import us.ihmc.euclid.tuple3D.interfaces.Point3DBasics;
import us.ih... | 26.19403 | 124 | 0.740171 |
539454e8dae993b13ad212d65f9e1f541ea94067 | 112 | package pers.yuzhyn.azylee.study.designpattern.structural.proxy;
public interface Image {
void display();
} | 22.4 | 64 | 0.776786 |
e16f827284aecb9acd57e976925b1df0fa5f1a48 | 3,331 | /*
* Copyright 2014-2021 Hunan Huinong Technology Co.,Ltd.
*
* 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... | 32.980198 | 100 | 0.748724 |
ad8746d4348542078a7c88ffdd2b7dc61d499a68 | 4,462 | package com.blacklabelops.crow.console.executor.console;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
import java.util.Arrays;
import java.util.stream.Collectors;
import java.util.stream.S... | 35.133858 | 111 | 0.768265 |
ce848d477f3810b3da7504130b446b4158343db8 | 189 | package uk.ac.cam.cares.jps.chatbot.config;
public class ChatbotConstants {
public static String ChatbotPortNumber = "5000";
public static String SubDirectory = "chemistry_chatbot";
}
| 23.625 | 57 | 0.783069 |
615803153f5198ed2a56da7968e4160646efa0c5 | 11,217 | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// © 2011-2021 Telenav, 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 t... | 25.493182 | 120 | 0.517072 |
ef10437e028ba65c285ac6d8a9d2066b93b6493b | 2,135 | package edu.kit.ss17.chatsys.team1.client.GUI.Plugin.PluginAccessor;
import edu.kit.ss17.chatsys.team1.client.Model.ContentInterface;
import edu.kit.ss17.chatsys.team1.client.Model.TextContentFragmentInterface;
import edu.kit.ss17.chatsys.team1.shared.Roster.ContactInterface;
import edu.kit.ss17.chatsys.team1.shared.U... | 26.358025 | 141 | 0.751288 |
0d419fa92c1678be60d2d517c8ec877abe640f50 | 1,870 | package de.cotto.bitbook.lnd;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import de.cotto.bitbook.backend.transaction.model.Coins;
import de.cotto.bitbook.lnd.model.OnchainTransaction;
import org.junit.jupiter.api.Tes... | 38.163265 | 110 | 0.667914 |
a823d0e78613df04b0ca8e386c0613163bbdc856 | 2,405 | package com.crescentflare.unilayout.views;
import android.content.Context;
import android.text.Layout;
import android.util.AttributeSet;
import android.view.ViewGroup;
import android.widget.TextView;
import com.crescentflare.unilayout.helpers.UniLayoutParams;
/**
* UniLayout view: a view with simple text
* Extends... | 25.315789 | 139 | 0.605405 |
58b5175ab1dc97ef7d1ee17c12887996d7d7b9c2 | 3,276 | package org.springrain.weixin.sdk.xcx.api;
import org.springrain.weixin.sdk.common.api.IWxXcxConfig;
import org.springrain.weixin.sdk.common.exception.WxErrorException;
import org.springrain.weixin.sdk.common.util.http.RequestExecutor;
import org.springrain.weixin.sdk.xcx.bean.result.CodeInfo;
import org.springr... | 30.333333 | 143 | 0.687424 |
52d67c09b5a969f9a34a2854403de294ac53f92e | 5,050 | package com.ranger.xyg.xygapp.ui.activity;
import android.content.Context;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.... | 34.121622 | 108 | 0.651485 |
a7da368ce14bc1cbdd2551c744e91bf16222f63f | 5,977 | package com.github.gv2011.util.beans.imp;
import static com.github.gv2011.testutil.Assert.assertThat;
import static com.github.gv2011.util.BeanUtils.beanBuilder;
import static com.github.gv2011.util.icol.ICollections.emptyList;
import static com.github.gv2011.util.icol.ICollections.mapBuilder;
import static com.... | 36.224242 | 103 | 0.665719 |
11f301c6088d6279ead27f6ee32256ba442a8e27 | 22,856 | // package com.webank.wecross.test.routine.xa;
//
// import com.webank.wecross.account.UniversalAccount;
// import com.webank.wecross.exception.WeCrossException;
// import com.webank.wecross.resource.Resource;
// import com.webank.wecross.routine.xa.XATransactionManager;
// import com.webank.wecross.routine.xa.XATransa... | 47.22314 | 98 | 0.463817 |
7eccb2d5fa0601a22f28c06fc35be7c80cf022f5 | 8,508 | package jetbrains.mps.vcs.diff.ui;
/*Generated by MPS */
import jetbrains.mps.annotations.GeneratedClass;
import org.apache.log4j.Logger;
import org.apache.log4j.LogManager;
import org.jetbrains.mps.openapi.model.SNodeId;
import java.util.List;
import com.intellij.openapi.vcs.history.VcsFileRevision;
import java.util... | 36.515021 | 188 | 0.671368 |
ba9c175a3a2771739403cd398a588ffa03ca2e63 | 8,942 | /*
* Copyright (c) 2010, 2014, Oracle and/or its affiliates.
* All rights reserved. Use is subject to license terms.
*
* This file is available and licensed under the following license:
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the followin... | 39.919643 | 178 | 0.637218 |
5ec6d794020fadd0145118b81316b81a0f2fd4b7 | 2,734 | /*
* Copyright 2019 MovingBlocks
*
* 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 t... | 26.038095 | 188 | 0.662765 |
dda387ffd1cc2b58959a0b33ac6232fcb09e6eae | 12,445 | /*
* Copyright 2021 kings1990(darkings1990@gmail.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... | 47.681992 | 193 | 0.599598 |
7f0f60a6a020c74f91371908b972035ad883a6be | 1,425 | package org.mage.test.cards.single.m21;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
public class CarrionGrubTest extends CardTestPlayerBase {
@Test
public void etbTrigger() {
// Carrion Grub gets +X/+0, w... | 32.386364 | 105 | 0.672982 |
5cdcdd0fb2d3adfd8b7ab0fe88f0b8eaffb8b032 | 390,386 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: umee/peggy/v1/events.proto
package umeenetwork.umee.peggy.v1;
public final class Events {
private Events() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void regis... | 37.024469 | 168 | 0.67421 |
f50c812aa65d5febab8bd4bdb7da5746c0639915 | 13,119 | /*
* (C) Copyright 2006-2021, by John V Sichi and Contributors.
*
* JGraphT : a free Java graph-theory library
*
* See the CONTRIBUTORS.md file distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* t... | 37.482857 | 100 | 0.595548 |
f4ec1ca1c44485f58130abdb76e404dad378b393 | 6,175 | package eu.neclab.ngsildbroker.storagemanager.repository;
import java.sql.SQLException;
import javax.annotation.PostConstruct;
import javax.sql.DataSource;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.spr... | 45.404412 | 262 | 0.693441 |
f82832fb08899ed3b55f3550595828df20b81600 | 354 | package com.ruoyi.assetspackage.domain.phoneStatus.Enum;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* @author guozeqi
* @create 2020-08-28
*/
@Getter
@AllArgsConstructor
public enum PhonestatusOperationEnum {
DX("1","电信"),
LT("2","电信"),
YD("3","电信"),
QT("4","电信");
private Strin... | 17.7 | 56 | 0.663842 |
92beb5dfe35e032fe3cdcb7b7ddc59b645b3434b | 3,168 | package org.jvfs.dummyfiles;
/**
* Provides information about the environment.
*
* <p>The information provided by this class -- which is not intended to
* be instantiated or extended -- includes the locale, which operating system
* is running, where to locate resources for the functionality, and generic
* values... | 36.413793 | 83 | 0.674874 |
c7917dbf50ecfcfead332f131bf802703c60b684 | 4,555 | package org.immutables.fixture.with;
import org.junit.jupiter.api.Test;
import java.math.RoundingMode;
import java.util.Optional;
import static org.immutables.check.Checkers.check;
import static org.junit.jupiter.api.Assertions.assertThrows;
public class WithEnumsTest {
private static final ImmutableWithEnums TES... | 41.036036 | 109 | 0.763117 |
7c8e17a5108d2cafc972dc26ed5ba0f9c9699a90 | 419 | package com.jedi.service.imp;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.jedi.bean.User;
import com.jedi.dao.IUserDao;
import com.jedi.service.IUserService;
@Service("userService ")
public class UserServiceImp implements IUserService {
@Resource
private IU... | 16.76 | 53 | 0.763723 |
2a8cb2144dc4a6de6ad9f7649f710303842a1fdb | 3,079 | /*
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")... | 49.66129 | 200 | 0.744398 |
49b21e3bd80170fa6322614f02ab4c7ab7e8e846 | 1,309 | package com.qinweizhao.system.module.monitor.controller;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qinweizhao.api.system.dto.query.SysLogPageQry;
import com.qinweizhao.api.system.vo.SysLogVO;
import com.qinweizhao.common.core.response.Result;
import com.qinweizhao.system.module.manage.convert.Sy... | 29.75 | 105 | 0.786096 |
3bc79047b591720195bfa102c2e53b0bae6e5e2e | 6,528 | package org.ehrbase.client.classgenerator.examples.geccoserologischerbefundcomposition;
import com.nedap.archie.rm.archetyped.FeederAudit;
import com.nedap.archie.rm.datastructures.Cluster;
import com.nedap.archie.rm.generic.Participation;
import com.nedap.archie.rm.generic.PartyIdentified;
import com.nedap.archie.rm.... | 39.563636 | 143 | 0.728554 |
2b993da26c698548ce995afad41a02fc25d751db | 2,164 | package net.dataexpedition.ukpsummarizer.server.logic.datasets;
import net.dataexpedition.ukpsummarizer.server.logic.datasets.model.DatasetDescription;
import net.dataexpedition.ukpsummarizer.server.logic.datasets.model.TopicDescription;
import org.jboss.logging.Logger;
import org.springframework.beans.factory.annotat... | 32.787879 | 131 | 0.710259 |
e8ffe67be01795125ed151217fe04eeee050249a | 6,432 | package testScripts.apitests;
import java.net.HttpURLConnection;
import java.util.HashMap;
import org.testng.Assert;
import org.testng.annotations.*;
import base.API;
import utils.Utility;
public class Tests extends API {
final String BaseURL = "https://api.zotero.org/";
String PathURL = "";
Stri... | 32.816327 | 113 | 0.506996 |
b845068da14811bceb570653c1dec7aebf0941d2 | 3,068 | package com.quickd.quickdestinations;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.design.widget.BottomNavigationView;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.suppor... | 40.368421 | 95 | 0.652216 |
d6123c70993d922f29466a93b50a6997ecb8be8e | 936 |
package org.secureauth.sarestapi.data.DFP;
import com.fasterxml.jackson.annotation.*;
import java.util.HashMap;
import java.util.Map;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"architecture"
})
public class UaCPU {
@JsonProperty("architecture")
private Object architecture;
@Js... | 22.829268 | 85 | 0.711538 |
1c72abf58e9331dc4b93af0bd51983e2a92f0a11 | 400 | /**
* Copyright © 2016-2022 liuhangjun All rights reserved.
*/
package com.channelsharing.pub.dao;
import com.channelsharing.common.dao.CrudDao;
import com.channelsharing.pub.entity.ScheduleJobLog;
import org.apache.ibatis.annotations.Mapper;
/**
* 定时任务日志Dao接口
* @author liuhangjun
* @version 2018-08-04
*/
... | 21.052632 | 68 | 0.7725 |
c70e868c3f0305ea3cad936ea1a813bee75dacd7 | 2,480 | /*
* Copyright (C) 2010-2014 Hamburg Sud and the contributors.
*
* 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... | 33.066667 | 114 | 0.675806 |
4eed830626c18d9c0d201493f13bcef90bc1e588 | 1,878 | package com.mercury.finalserver.controller;
import com.mercury.finalserver.bean.User;
import com.mercury.finalserver.bean.UserWithAddedCard;
import com.mercury.finalserver.bean.UserWithPassword;
import com.mercury.finalserver.response.Response;
import com.mercury.finalserver.service.UserService;
import org.springframe... | 30.786885 | 84 | 0.736422 |
f91d8b9b65bbf9ad4928b4a44c4d9e01c9a44acb | 118 | package fr.yncrea.scorpion.model;
public class Person {
public String firstName;
public String lastName;
}
| 13.111111 | 33 | 0.728814 |
937b29bc56df38e1bceae76f5ece9f18bf2ef3f5 | 318 | package com.cts.training.companyservice;
import java.util.List;
public interface CompanyService {
public Company addCompany(Company company);
public Company updateCompany(Company company);
public void deleteCompany(int id);
public Company getCompanyById(int id);
public List<Company> getAllCompanies();
}
| 21.2 | 47 | 0.789308 |
6c92b37faacab0b88cfe660e35cb6eee586fcba4 | 2,105 | package com.telerikacademy.cosmetics.core;
import com.telerikacademy.cosmetics.commands.contracts.Command;
import com.telerikacademy.cosmetics.core.contracts.*;
import com.telerikacademy.cosmetics.core.factories.CommandFactoryImpl;
import com.telerikacademy.cosmetics.core.factories.CosmeticsFactoryImpl;
import com.tel... | 39.716981 | 126 | 0.692637 |
27c456d28955b6d0819604bcc2c39bd17c0b9e0a | 1,045 | package cn.zjiali.api.model.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
/**
* @author zJiaLi
* @since 2021-12-03 22:32
*/
@Getter
@Se... | 21.770833 | 68 | 0.662201 |
ed9934bba8fca5b0b93666fc77858fd1ec05a579 | 1,314 | package org.frankframework.frankdoc.wrapper;
import static org.junit.Assert.assertEquals;
import java.util.Arrays;
import java.util.Collection;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameter;
import org.junit.runners.Pa... | 31.285714 | 109 | 0.785388 |
b84597059f38ecc4280492021593fb784b799cc0 | 758 | package com.yilian.mall.ctrip.adapter;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yilian.mall.R;
import com.yilian.networkingmodule.entity.ctrip.CtripSiteCityByDistrictsEntity;
/**
* 携程 选择城市 搜索 适配器
*
* @author Created by Zg on 2018/8/17.
... | 29.153846 | 125 | 0.770449 |
5eabd3fcd745b590da97360d288eff03b029ac68 | 1,180 | package cn.fxbin.record.websocket.handler;
import cn.fxbin.record.websocket.message.SendResponse;
import cn.fxbin.record.websocket.message.SendToOneRequest;
import cn.fxbin.record.websocket.message.SendToUserRequest;
import cn.fxbin.record.websocket.util.WebSocketUtils;
import org.springframework.stereotype.Component;... | 31.052632 | 98 | 0.732203 |
561984936c03e43e82a5d69c1dafe1697afec436 | 268 | package com.hyh.download.core;
/**
* @author Administrator
* @description
* @data 2018/12/29
*/
public interface IRetryStrategy {
boolean shouldRetry();
void clearCurrentRetryTimes();
void subtractTotalRetryTimesIfReachMax();
void cancel();
} | 14.888889 | 45 | 0.697761 |
ee18deac8e2593faa776be4c2d2a2da530f45671 | 1,346 | /**
*
*/
package za.co.sindi.email;
import java.io.File;
import java.net.URL;
import za.co.sindi.email.exception.MailException;
/**
* @author Bienfait Sindi
* @since 18 April 2014
*
*/
public abstract class AbstractMultipartMailMessage extends AbstractMailMessage implements MultipartMailMessage {
/* (non-Ja... | 24.925926 | 112 | 0.722883 |
596ffa097e1e2d0a0c11e5394d35a515977d9c46 | 1,893 | /*
* 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 ... | 35.055556 | 117 | 0.732699 |
5d59d58dc85c5d373814ded3cb5b27a2d9b01d93 | 1,100 | package io.kyberorg.example.tests.ui.pages;
import io.kyberorg.example.tests.ui.SelenideTest;
import io.kyberorg.example.tests.ui.pageobjects.HomePage;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import static com.codeborne.s... | 26.190476 | 81 | 0.718182 |
68ee0d726e839fd5330a2e5beeac6152b8e1c18a | 3,908 | /*
*
* Copyright (c) 2018, WSO2 Inc., WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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
*
* ... | 33.982609 | 101 | 0.633316 |
463fb3f772eb7fe1f154330945bab09c58fb0dee | 1,098 | import java.net.*;
import java.io.*;
public class TimeClient {
private Socket socket = null;
private DataInputStream input = null;
private String currTime = null;
BufferedReader inFromClient = null;
public TimeClient(String url) throws UnknownHostException, IOException {
socket = new Socket(url, 13);... | 27.45 | 85 | 0.696721 |
4e5347c3efd4941484d0b31409950003de5d8326 | 62,872 | /*
* Copyright (C) 2015 University of Oregon
*
* You may distribute under the terms of either the GNU General Public
* License or the Apache License, as specified in the LICENSE file.
*
* For more information, see the LICENSE file.
*/
package vnmr.util;
import javax.swing.*;
import javax.swing.text.*;
import ... | 31.1556 | 97 | 0.453079 |
75618ff704b213706cc34af8c4485bcac4db9922 | 1,226 | /*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the "License"). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... | 26.652174 | 98 | 0.73491 |
ececb0eb81eab984d6e2dc7acd8583d6ab22dfd3 | 3,639 | /******************************************************************************
* Compilation: javac Stopwatch.java
* Execution: java Stopwatch n
* Dependencies: none
*
* A utility class to measure the running time (wall clock) of a program.
*
* % java8 Stopwatch 100000000
* 6.666667e+11 0.5820 secon... | 32.491071 | 81 | 0.62792 |
88bf54be20094a18ef2d4ed2693385c083e4adf4 | 509 | package zielu.gittoolbox.util;
import com.google.common.collect.ImmutableCollection;
import com.google.common.collect.ImmutableList;
import git4idea.update.GitFetchResult;
public class FetchResult {
private final GitFetchResult result;
private final ImmutableCollection<Exception> errors;
public FetchResult(Git... | 25.45 | 73 | 0.779961 |
b5dfa9ac2b18af26a790770886a74179fd907d4a | 3,599 | /**
* Copyright (C) 2013-2015 all@code-story.net
*
* 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... | 24.154362 | 107 | 0.720756 |
d49bc722bcb7987939d15551c93eb3b2cf71d2ed | 1,271 | package io.github.ninobomba.commons.request;
import io.github.ninobomba.commons.checkpoints.CheckPointFactory;
import lombok.SneakyThrows;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
public class RequestManagerTest
{
static Request request = Request
... | 24.921569 | 65 | 0.612116 |
55b66b6294c9b74bd39ef8bba1f177f1012d7f4f | 3,082 | /*
* Copyright 2016 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... | 32.442105 | 149 | 0.747891 |
9a4ae595fbc03416e5e5f529e8a84e7d1f8bb084 | 328 | package ch.bag.screening.web.api.screening;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class InitialQuestionDto {
private String version;
private String initialNodeId;
private NodeDto ... | 19.294118 | 43 | 0.820122 |
ff1e6d2b039725a4fb232556a739b49a42f758c2 | 1,976 |
package mage.cards.h;
import mage.MageObject;
import mage.abilities.Ability;
import mage.abilities.effects.OneShotEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Outcome;
import mage.constants.SubType;
import mage.game.Game;
import mage.players.... | 28.228571 | 122 | 0.630567 |
b359e9a6c015ba7117d3bd7a08fc635dac78f539 | 1,126 | package com.covid.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "\"UserLocation\"")
public class UserLocation {
@Id
@Gener... | 17.873016 | 53 | 0.730906 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.