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 |
|---|---|---|---|---|---|
de08f2fa755ee338ab3246a1194c5231349f43e4 | 1,519 | package io.github.jackson.introspector;
import java.util.Collection;
import java.util.LinkedHashSet;
import java.util.Set;
import org.codehaus.jackson.map.AnnotationIntrospector;
import org.codehaus.jackson.map.MapperConfig;
import org.codehaus.jackson.map.introspect.AnnotatedClass;
import org.codehaus.jacks... | 28.12963 | 106 | 0.736669 |
931fd291cb6ba9346312964964493e4c36938895 | 3,964 | package net.twasi.core.database;
import net.twasi.core.database.models.TwitchAccount;
import net.twasi.core.database.models.User;
import net.twasi.core.database.models.permissions.PermissionEntity;
import net.twasi.core.database.models.permissions.PermissionEntityType;
import net.twasi.core.database.models.permissions... | 34.77193 | 99 | 0.618063 |
90dd8b3ea00d3b0409f3346f6280fb8ade560815 | 313 | package com.mt.access.application.user.representation;
import com.mt.access.domain.model.user.User;
import lombok.Data;
@Data
public class UserPublicCardRepresentation {
private String id;
public UserPublicCardRepresentation(User bizUser) {
this.id = bizUser.getUserId().getDomainId();
}
}
| 22.357143 | 55 | 0.750799 |
1dfc781b5d77885ba0f62ebe0ca5d34bfc82ffce | 963 | package com.barmpas.asthma.data;
import android.net.Uri;
import android.provider.BaseColumns;
/*
* The contract class for the local SQLite Database class where the user stores the session.
*/
public final class SessionContract {
public static final String CONTENT_AUTHORITY = "com.barmpas.asthma";
public s... | 35.666667 | 99 | 0.727934 |
c296742ce1cdb7235b27f6ec1e2b3be59bda4f83 | 128 | package com.astronautlabs.mc.rezolve.common;
public interface IMachineInventory {
void outputSlotActivated(int index);
}
| 21.333333 | 45 | 0.789063 |
fef1eac382609ea9c4667eb3c33c1c96e1c8dd69 | 2,908 | /*
* Copyright (c) 2002-2019 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
*
* 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.... | 45.4375 | 148 | 0.758597 |
e163da453931c7b2db3d663692bf8db883c54567 | 2,079 | package fr.nantes.cta.test;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import fr.nantes.cta.Airway;
import fr.nantes.cta.CompassDirection;
import fr.nantes.cta.one.AirwayImpl;
import fr.nantes.cta.one.LatitudeImpl;
import fr.nantes.cta.one.Lo... | 28.479452 | 162 | 0.714286 |
5393e3eafb6f8c7bf5684000255c0258d5e42533 | 1,302 | package com.uDash.DesktopApp.Controllers;
import com.uDash.DesktopApp.Dto.WidgetDto;
import com.uDash.DesktopApp.Services.WidgetService;
import com.uDash.Utils.Bussines.Widget;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.... | 32.55 | 76 | 0.791859 |
6198d523f3967dc73c2ea79f1bb1cfeec9c27cd1 | 522 | package com.easy.popkart.domain.dao;
import lombok.*;
import java.sql.Timestamp;
import java.util.List;
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@ToString
public class UserInfoDAO extends BaseDAO {
private String id;
private String userName;
private String account;
private String... | 22.695652 | 42 | 0.754789 |
afcc35217816106deb9f9edf144e12beceb4371e | 644 | package org.zstack.sdk;
public class PciDeviceMetaDataEntry {
public java.lang.String key;
public void setKey(java.lang.String key) {
this.key = key;
}
public java.lang.String getKey() {
return this.key;
}
public PciDeviceMetaDataOperator op;
public void setOp(PciDeviceMe... | 21.466667 | 53 | 0.631988 |
ba958969d09d71ec6b65391fb319dfa4dc640716 | 381 | /*
* 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 de.codekings.common.Enumerators;
/**
*
* @author Jan
*/
public enum ClassType {
T_FILM, T_DVD, T_KUNDE, T_MITARBEITER, ... | 25.4 | 101 | 0.734908 |
0f718c1ccf2f284c0b36464648bcdae852ccbea5 | 14,319 | // Copyright 2000-2021 Nokia
//
// Licensed under the Apache License 2.0
// SPDX-License-Identifier: Apache-2.0
//
package com.alcatel.as.util.serviceloader;
// Jdk
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.lang.reflect.Constru... | 37.192208 | 113 | 0.652979 |
3092e9cb6e85eed4706460c6415ad259f2a3e43c | 4,145 | package com.ycombinator.news.dto;
import android.annotation.SuppressLint;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.ycombinator.news.service.HackerNewsMapper;
import java.io.IOExceptio... | 43.177083 | 191 | 0.725452 |
cae7d077d31dc609604cdec14ae925d2f4fb57de | 9,593 | package org.linlinjava.litemall.admin.web;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.PageInfo;
import com.google.gson.JsonObject;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;
import org.linlinjava.litemall.admin.config.webS... | 39.315574 | 179 | 0.644011 |
add4a8cc48d4cda98f5b98c1ce84e17cdfd04218 | 1,421 | package com.helloingob.bluefever;
import org.junit.Assert;
import org.junit.Test;
import com.helloingob.bluefever.command.encoder.PasswordEncoder;
public class PasswordEncoderTests {
@Test
public void test_datecoder() {
int pin = 123;
Assert.assertTrue(PasswordEncoder.encode(pin).equals(enco... | 29.604167 | 107 | 0.612245 |
0158ab4749bea9a9c841e8b514d2dc69e8d7943a | 1,416 | package sneckomod.relics;
import basemod.abstracts.CustomRelic;
import com.badlogic.gdx.graphics.Texture;
import com.megacrit.cardcrawl.actions.common.DrawCardAction;
import com.megacrit.cardcrawl.actions.common.GainEnergyAction;
import com.megacrit.cardcrawl.actions.utility.UseCardAction;
import com.megacrit.cardcraw... | 33.714286 | 118 | 0.728814 |
0fffd0df1f4e389722dc052ac2908bf3521dc3ff | 3,220 | package com.jdon.util;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
/**
* Creates instance of any object, given its full qualified class name is given
* and it has a public accessable constructor. This class is a static class it
* can not be instantiated
*
... | 31.568627 | 90 | 0.673913 |
e8d0067866ea5c899d62e556a4e33c911033b40e | 21,761 | package com.thefuntasty.infinity;
import android.os.Looper;
import android.support.annotation.IntRange;
import android.support.annotation.LayoutRes;
import android.support.annotation.NonNull;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.LinearLayoutManager;
import android.suppor... | 28.445752 | 148 | 0.731446 |
0f22c726caaa93f266471a78fd0d5766bd2f6604 | 539 | import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.ui.WebDriverWait;
public class RequestTourPage extends BaseActions {
public RequestTourPage(WebDriver driver, WebDriverWait wait) {
super(driver, wait);
}
String currentTourRequest;
public String RequestTourSecti... | 31.705882 | 68 | 0.714286 |
ff3c81e518420365d235e3e33a9e2cdbdc1bfa44 | 480 | package com.robert.java.unioviscope.model;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
@Entity
@DiscriminatorValue("ADMIN")
public class Admin extends User {
private static final long serialVersionUID = -3901544609521291065L;
Admin() {
}
public Admin(String use... | 19.2 | 75 | 0.6875 |
f716c9d28307c7e9af149c9d81e3df55e9bb30df | 7,012 | /* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 2000 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... | 34.712871 | 108 | 0.605819 |
86c1fecb2e3679849b7b909893683d72705d46d5 | 3,110 | /**
* Copyright 2013 Netflix, 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 t... | 32.395833 | 110 | 0.620579 |
facf8d2dfc177f43317201f3e1d04aabcac2bd15 | 3,953 | package ghost.framework.web.mvc.nginx.ui.plugin.controller;
import cn.hutool.core.util.NumberUtil;
import cn.hutool.core.util.RuntimeUtil;
import cn.hutool.core.util.StrUtil;
import ghost.framework.beans.annotation.injection.Autowired;
import ghost.framework.web.angular1x.context.controller.ControllerBase;
import ghos... | 33.5 | 108 | 0.715406 |
fdb994d3187d1d5444351352ebc843bcc44eeddf | 7,281 | // Copyright 2017 The Nomulus 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... | 45.223602 | 100 | 0.754429 |
86910724708d442ea05a7c61a6fa82a360c9c917 | 1,208 | package mcjty.lib.varia;
import net.minecraft.entity.player.ServerPlayerEntity;
import net.minecraft.network.play.server.SPlaySoundEffectPacket;
import net.minecraft.util.SoundCategory;
import net.minecraft.util.SoundEvent;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
public class SoundT... | 38.967742 | 145 | 0.667219 |
4a0c2fa6ed92d64983015eb459f7fa0e1b1469ac | 1,436 | package com.pulu.robot.service;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import com.pulu.robot.om.EM;
import com.pulu.robot.om.Experience;... | 24.758621 | 56 | 0.707521 |
baa4852b9bd6bb867f0935140a11d9ad63ad7fd5 | 6,126 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 37.353659 | 115 | 0.679889 |
d64462e86eea69836741d3df50334baa9ef9f1b2 | 1,793 | /*
* Copyright 2013 Robotoworks Limited
* 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 ... | 31.45614 | 88 | 0.737869 |
20002601d610c0776858e0aec6483853a871e543 | 2,591 | package org.im97mori.rbt.ble.advertising;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.NonNull;
import org.im97mori.ble.BLEUtils;
import org.im97mori.ble.ByteArrayCreater;
import org.im97mori.ble.advertising.ManufacturerSpecificData;
import org.im97mori.rbt.RbtConstants;
/**
*... | 21.237705 | 103 | 0.588962 |
fcffe516545e249f53642efa18d11caed8400a87 | 994 | package questions.leetcode113;
import questions.dataStructure.TreeNode;
import java.util.ArrayList;
import java.util.List;
public class PathSum2 {
private List<List<Integer>> res;
public List<List<Integer>> pathSum(TreeNode root, int sum) {
res = new ArrayList<>();
if (root == null) retur... | 24.85 | 81 | 0.55332 |
ec52eba1556161bca751649a5c6053aa929f1d75 | 19,588 | /* -*- mode: Java; c-basic-offset: 2; indent-tabs-mode: nil; coding: utf-8-unix -*-
*
* Copyright © 2019 microBean™.
*
* 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... | 39.651822 | 124 | 0.629926 |
ddf893acd6541cfb0153c2769d303715aea1264f | 3,606 | package com.huaweicloud.sdk.bcs.v2.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.function.Consumer;
/** DmsKafkaInfo */
public class DmsKafkaInfo {
@J... | 27.318182 | 106 | 0.628674 |
ddb53ed489f463d635b45fc1b1794cd113851234 | 1,557 | /*
* Copyright 2021-2022 Aklivity Inc
*
* Licensed under the Aklivity 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
*
* https://www.aklivity.io/aklivity-community-license/
*
* Unless required by applicable law ... | 30.529412 | 85 | 0.669878 |
882008899b6cc326d061e4600f988f1f08c9d3fa | 2,039 | package org.apache.http.message;
import java.io.Serializable;
import org.apache.http.FormattedHeader;
import org.apache.http.HeaderElement;
import org.apache.http.ParseException;
import org.apache.http.annotation.NotThreadSafe;
import org.apache.http.util.Args;
import org.apache.http.util.CharArrayBuffer;
@NotThreadS... | 32.365079 | 88 | 0.695929 |
4be9d6b50438501264fdb802de39fce7268b9f0c | 216 | package net.fabricmc.example;
import net.fabricmc.example.items.FabricItem;
import net.minecraft.item.BlockItem;
public class Items {
public static FabricItem FABRIC_ITEM;
public static BlockItem BARREL;
}
| 21.6 | 45 | 0.791667 |
421cdb8714e0651525ca95f3261cc9bce920fd4f | 628 | package com.java.study.answer.zuo.emiddle.class08;
public class Code01_Self_Crossing {
public static boolean isSelfCrossing(int[] x) {
if (x == null || x.length < 4) {
return false;
}
if ((x.length > 3 && x[2] <= x[0] && x[3] >= x[1])
|| (x.length > 4 && ((x[3] <= x[1] && x[4] >= x[2]) || (x[3] == x[1] ... | 24.153846 | 80 | 0.420382 |
fa71eeee59cb3777b6b0f89f97a17751ccaa3783 | 2,174 | package tlb.twist;
import tlb.factory.TlbFactory;
import tlb.service.Server;
import tlb.utils.SystemEnvironment;
import tlb.utils.XmlUtil;
import tlb.utils.FileUtil;
import org.apache.tools.ant.Task;
import org.apache.tools.ant.BuildException;
import org.apache.commons.io.FileUtils;
import org.dom4j.Element;
import j... | 31.507246 | 109 | 0.687213 |
03b8bc38e3ff50b7240e45350cdd7aebca66dcac | 2,208 | package mcjty.rftoolsbase.modules.worldgen;
import mcjty.rftoolsbase.RFToolsBase;
import mcjty.rftoolsbase.modules.worldgen.blocks.DimensionalShardBlock;
import mcjty.rftoolsbase.modules.worldgen.blocks.DimensionalShardBlock.OreType;
import net.minecraft.block.Block;
import net.minecraft.item.BlockItem;
import net.min... | 63.085714 | 221 | 0.815217 |
33c19f74d5bb704d3b13103d93f109b000439e9f | 346 | package de.cxp.ocs.smartsuggest.spi;
public class DummySuggestDataProvider implements SuggestDataProvider {
@Override
public boolean hasData(String indexName) {
return false;
}
@Override
public long getLastDataModTime(String indexName) {
return -1;
}
@Override
public SuggestData loadData(String indexNam... | 16.47619 | 70 | 0.763006 |
da689944025e8418503013953de70571b02f19b1 | 710 | package cn.zhoujianfeng.baidumap;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class Set extends Activity {
private Button bt_back;
@Override
public void onCreate( Bundle savedInstanceState) {
... | 25.357143 | 66 | 0.653521 |
e79856d3eeedab912f1a837c989d8809637eef4e | 368 | package com.platform.aix.cmd.biz.baseconf.cmd40910;
import lombok.Data;
import java.util.Date;
/**
* 角色组功能关联
*
* @author: Advance
* @date: 2018/8/1
* @description:
*/
@Data
public class Cmd40910Resp {
private String rolegrpid;
private String functionidlist;
private Integer sysflag;
private Dat... | 16 | 51 | 0.706522 |
878499157a2602997e9c9862becbb3d3f32c2ed4 | 965 | package model;
/**
* TtTask (Time triggered Task) represents an infinite set of time triggered jobs.
*/
public class TtTask extends Task {
private final int releaseTime;
private final int executionTime;
/**
* See Task class for other parameters
* @param releaseTime job release time relative t... | 26.805556 | 89 | 0.653886 |
dbaa9b80db7f7050047ccdcd8c54d635ac26a36d | 1,191 | package com.moringa.gohire;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
p... | 31.342105 | 85 | 0.738875 |
4746d7441f97c3d80c946b21f443721698c79370 | 276 | package io.github.yexiaoxiaogo.DAOSelect;
import java.util.List;
public interface WebsitesDao {
public List<Websites> getAllWebsties();
public Websites getWebsites(int id);
public void updateWebsites(Websites websites);
public void deleteWebsites(Websites websites);
}
| 23 | 47 | 0.804348 |
86b2aced7301e821fe4700f008f0491e54c65e0e | 3,572 | /*
* Copyright 2011-2017 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 "lice... | 39.252747 | 104 | 0.702128 |
4397fc393efe7f946228b2ed5b69466d75f6f296 | 376 | package com.zyj.spring.importTest;
import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;
public class ImportSelectorTest implements ImportSelector {
@Override
public String[] selectImports(AnnotationMetadata importingClassMetadata) {
System.out.prin... | 28.923077 | 75 | 0.824468 |
1bcbfb57df2cd9fb7db0c008c8dac5cb89eed89b | 2,314 | /**
*
* Copyright (c) 2018 Fractus IT d.o.o. <http://fractus.io>
*
*/
package io.fractus.osgi.tutorial.service.listener;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceEvent;
import org.osgi.framework.ServiceListener;
/**
* This... | 32.138889 | 105 | 0.65471 |
38e97a3d5e3782986689e8f3fc5d992fa8543354 | 785 | package com.winfun.controller;
import com.winfun.entity.pojo.ApiResult;
import com.winfun.service.DubboServiceOne;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework... | 29.074074 | 96 | 0.766879 |
95b03e56e3335373b70a1c766005e592118c0507 | 80 | package incendius.game.players.content.misc;
public class WildernessDitch {
}
| 13.333333 | 44 | 0.8 |
3f491bc534151b06920c55c3d411f5cda8e70b0a | 434 | import java.util.HashMap;
public class E10 {
public static void main(String args[]) {
// create hash map
HashMap<Integer, String> newmap = new HashMap<>();
// populate hash map
newmap.put(1, "tutorials");
newmap.put(2, "point");
newmap.put(3, "is best");
//... | 25.529412 | 68 | 0.582949 |
a7c55ebd52fb4aaeec752622fc67dec1ffc96fc6 | 3,580 |
package com.boringbalcomb.YelpApiCacher.BusinessDetails.model;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
... | 24.353741 | 64 | 0.60838 |
a49166a050565a23955058dc333d8e775f325e0f | 13,657 | package com.github.chrisblutz.networking.exceptions;
import com.github.chrisblutz.networking.Listenable;
import com.github.chrisblutz.networking.properties.Localization;
/**
* A utility class for creating {@code Exceptions} based on localizations
*/
public class Errors {
public static void threadErrored(Strin... | 30.281596 | 322 | 0.642821 |
184d9d65ed97ae842561ea5b08b03419a0e7d0a4 | 3,178 | /*
* Copyright 2000-2014 Vaadin 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 39.234568 | 82 | 0.685651 |
d0e5245d87a6fe7a194899b93f734485e934181a | 780 | package threads;
import org.junit.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
public class UserStorageTest {
@Test
public void test() {
UserStorage storage = new UserStorage();
User user1 = new User(1, 100);
User user2 = new User(... | 30 | 63 | 0.635897 |
cbc7f7152cf6b5da8d667eb091455932f6a00d64 | 403 | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package u.aly;
public final class cu
{
public final byte a;
public final int b;
public cu()
{
this((byte)0, 0);
}... | 16.12 | 62 | 0.593052 |
968b17abe0f341e22628082ddbd9df75c2fb990d | 3,646 | package cn.wendong.admin.core.shiro.session;
import java.util.Collection;
import java.util.Date;
import org.apache.shiro.session.InvalidSessionException;
import org.apache.shiro.session.Session;
import org.apache.shiro.session.UnknownSessionException;
import org.apache.shiro.session.mgt.SessionContext;
import ... | 24.635135 | 86 | 0.71311 |
f077f18904fd0709eb313beed3625a78c9d4bfa4 | 5,928 | package com.mcjty.smalltales.modules.story.client;
import com.mcjty.smalltales.modules.story.blocks.StoryAnchorTile;
import com.mcjty.smalltales.modules.story.network.PacketUpdateKnowledge;
import com.mcjty.smalltales.setup.Messages;
import com.mojang.blaze3d.matrix.MatrixStack;
import mcjty.lib.gui.*;
import mcjty.li... | 33.874286 | 127 | 0.628543 |
1fe55566d82ec35e22ac16e4ab1fc0498e5933a2 | 321 | package io.jutil.jdo.internal.core.reflect2;
import java.util.Set;
/**
* @author Jin Zheng
* @since 2022-05-01
*/
public class RefelctConst {
public static final Set<String> IGNORE_METHOD_SET = Set.of("wait", "equals", "toString", "hashCode", "getClass",
"notify", "notifyAll");
private RefelctConst() {
}
}... | 18.882353 | 113 | 0.685358 |
4675cca91e3e531128b511444e5ec69bf34a795a | 68,434 | /*
* Copyright (C) 2021 Alberto Irurueta Carro (alberto@irurueta.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
*
* Unles... | 37.997779 | 88 | 0.651854 |
3ae2fd6a6af2a8212e58c7cbd82d1637655c5f8e | 12,808 | /**
* 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... | 24.773694 | 81 | 0.745628 |
26a4f9279408800d80af2f5c4987915248ef667a | 183 | package cn.myperf4j.base.util;
/**
* Created by LinShunkang on 2019/04/05
*/
public interface SysProperties {
String LINE_SEPARATOR = System.getProperty("line.separator");
}
| 16.636364 | 65 | 0.726776 |
50b1fb90abe9c0e992d60c55715e5c38104b8cfd | 2,043 | /*
* Copyright 2010-2011 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 ap... | 32.428571 | 80 | 0.770436 |
40733c8ef0579408a829ec8a9c1e5a4172e5c10c | 5,448 | /*
* Copyright 2018-2021 Ki11er_wolf
*
* 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... | 35.376623 | 114 | 0.68025 |
83628a7cab02e4494092c3405d8a285c745748ca | 2,758 | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* gradle plugin from the resource data it found. It
* should not be modified by hand.
*/
package android.support.v7.cardview;
public final class R {
public static final class attr {
public static int cardBackgrou... | 48.385965 | 198 | 0.725163 |
4871b1131b6adc7ef734049abdbc98b5f114bbef | 377 | /**
* @author: Gadigeppa Muthu
* @date: 27-Apr-2020
*
* Question: Given two integers, write a function that swaps them without using any temporary variables.
*
**/
public class SwapVariablesSolution{
public static void main(String[] args){
int a = 5;
int b = 3;
a = a ^ b;
b = a ^ b;
a = a ^ b;
... | 12.566667 | 103 | 0.578249 |
74b08993bfb1fdba8411060b5ada03a7cb482651 | 2,085 | package org.opencb.opencga.storage.hadoop.variant.metadata;
import org.apache.hadoop.conf.Configuration;
import org.opencb.opencga.storage.core.exceptions.StorageEngineException;
import org.opencb.opencga.storage.core.metadata.models.Lock;
import org.opencb.opencga.storage.core.metadata.adaptors.SampleMetadataDBAdapto... | 42.55102 | 135 | 0.783693 |
94804ede76f24d5a467008f61b79dd82dc64938b | 5,154 | package us.ilite.robot;
public class Enums {
public enum EClimberMode {
VELOCITY,
POSITION,
PERCENT_OUTPUT,
BEGIN_HANG,
DEFAULT
}
public enum ERungState {
NULL,
// Driver activates move to initial position
GROUND,
// Grab the mid ba... | 25.141463 | 119 | 0.496702 |
3c5d1b2f343c26467f2880890ed9c8071a93d81d | 497 | /*
* Copyright 2005-2010 Ignis Software Tools Ltd. All rights reserved.
*/
package com.aqua.services.fixtures;
import jsystem.framework.fixture.Fixture;
public class ParentExampleFixture extends Fixture {
public ParentExampleFixture() {
}
public void setUp() throws Exception {
report.step(" in parent exampl... | 19.88 | 69 | 0.742455 |
e69b050bee2f60d6b0d6f937fb62d60276e09086 | 41,994 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.google.android.gms.internal.ads;
import android.content.Context;
import android.util.JsonWriter;
import com.google.android.gms.common.util.*;
... | 37.162832 | 147 | 0.532028 |
f77d18e95cacc3eb87eb4349cb527bc3f9e5d70d | 1,552 | package frogger.service;
import java.util.ArrayList;
import frogger.model.actor.staticActor.Digit;
/**
* <h2>ScoreBoardUpdater</h2>
*
* <p>The {@link ScoreBoardUpdater} class is an singleton class of utility to update the {@link Digit} created in map
* when the {@link frogger.model.Score} changed
*... | 27.714286 | 145 | 0.653995 |
82fac4fd76553529c0f2cdb94d281607a3e0090e | 1,318 | package com.jagrosh.jmusicbot.interactions;
import com.jagrosh.jdautilities.command.Command;
import com.jagrosh.jdautilities.command.CommandClient;
import com.jagrosh.jmusicbot.utils.CommandConverter;
import net.dv8tion.jda.api.entities.Guild;
import net.dv8tion.jda.api.hooks.EventListener;
import net.dv8tion.jda.api.... | 31.380952 | 90 | 0.743551 |
0966d414cad8829116bb71a43bb802d30b89a059 | 994 | package se.atg.sam.ui.dropwizard.db;
import org.bson.Document;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.codahale.metrics.health.HealthCheck;
import com.mongodb.MongoClientException;
import com.mongodb.client.MongoDatabase;
public class MongoDatabaseHealthCheck extends HealthCheck {
priv... | 27.611111 | 95 | 0.748491 |
7a3d07c9ac4c71ab4e983461366386670fe986c4 | 15,833 | /*
* Copyright 2017 Austin Lehman
*
* 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 ... | 41.997347 | 306 | 0.641256 |
10e2b9c8d546259973e7ed40e261568d7aded98e | 2,805 | package com.lambdaschool.watermyplant.controllers;
import com.lambdaschool.watermyplant.models.Plant;
import com.lambdaschool.watermyplant.models.User;
import com.lambdaschool.watermyplant.services.PlantService;
import com.lambdaschool.watermyplant.services.UserService;
import org.springframework.beans.factory.annotat... | 34.62963 | 105 | 0.723351 |
0b1cc7c27468365a3f38384a6b6afb4c5f010cd4 | 280 | /* SPDX-License-Identifier: Apache 2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.repositoryservices.connectors.stores.archivestore;
public class MockOpenMetadataArchiveStoreProvider extends OpenMetadataArchiveStoreProviderBase
{
}
| 35 | 94 | 0.835714 |
1c2349143555485447846dbe337d2a480facbdae | 3,865 | package mage.cards.b;
import mage.MageObjectReference;
import mage.abilities.Ability;
import mage.abilities.DelayedTriggeredAbility;
import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.effects.common.continuous.BoostTargetEffect;
import mage.abilit... | 33.903509 | 176 | 0.732471 |
63fbe6a0e5598cd12f48a09640a75dc5a52bdf28 | 72 | public class AB extends B {
public AB(String s) {
super(s);
}
}
| 12 | 27 | 0.583333 |
de0c1262ce8a202063977bc46255918e4144d770 | 563 | package com.mini_pfe.Config;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;
@Configuration
public class ConfigCors extends WebMvcConfigurationSuppor... | 29.631579 | 84 | 0.738899 |
76b98d61cd59ad466e832290c04b8e1fa20b1302 | 1,823 | /*
*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may n... | 34.396226 | 100 | 0.781679 |
0a169d2fa6c343fa4829001b75be75c18f755d92 | 4,326 | /**
* MIT License
* <p>
* Copyright (c) 2019-2020 nerve.network
* <p>
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to... | 41.2 | 110 | 0.709663 |
0a2cf26dc4f1e122192ae8b5882d5d698a2d2931 | 2,297 | package com.github.amarcinkowski.metro.command;
import com.google.common.base.Splitter;
import lombok.extern.slf4j.Slf4j;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Vector;
import java.util.concurrent.T... | 32.814286 | 86 | 0.58337 |
e318bf00c40dc4585a9b84758a5ae27fdf921610 | 5,321 | /**
* Copyright 5AM Solutions Inc, ESAC, ScenPro & SAIC
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/caintegrator/LICENSE.txt for details.
*/
package gov.nih.nci.caintegrator.file;
import edu.wustl.icr.asrv1.segment.SampleWithChromosomalSegmentSet;
import gov.nih.nci.c... | 37.737589 | 119 | 0.710017 |
5f766153fc2c7aedda6380534ad2aa99f2f38153 | 6,147 | package eu.socialsensor.clustering;
import java.util.HashSet;
import java.util.Set;
import java.util.concurrent.ExecutionException;
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.CacheLoader;
import com.google.common.cache.LoadingCache;
import eu.socialsensor.graphdatabases.GraphDatabase... | 38.660377 | 109 | 0.589231 |
e8f6fbfb32393feab33a83bc639b798ac1227172 | 3,009 | package moze_intel.projecte.gameObjs.blocks;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import moze_intel.projecte.gameObjs.EnumRelayTier;
import moze_intel.projecte.gameObjs.tiles.RelayMK1Tile;
import moze_intel.projecte.gameObjs.tiles.RelayMK2Tile;
import moze_intel.projecte.gameObjs.tiles.Re... | 30.704082 | 190 | 0.775673 |
7416c0c35b222d2a4908c0381130592e255d1681 | 815 | package pbuf;
import io.grpc.ManagedChannel;
import io.grpc.ManagedChannelBuilder;
import pbuf.App.BiobtreeGetRequest;
import pbuf.App.BiobtreeGetResponse;
import pbuf.BiobtreeServiceGrpc.BiobtreeServiceBlockingStub;
public class Client {
public static void main(String args[]) {
ManagedChannelB... | 29.107143 | 102 | 0.721472 |
59aeb23e4fbed0324235cd2ec498bcbe79535807 | 735 | package com.aidanwhiteley.books.repository.dtos;
import com.aidanwhiteley.books.domain.Book;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
class BooksByRatingTest {
@Test
void testEqu... | 35 | 91 | 0.715646 |
c48284bc4774c185d20624e0183c21ae2a373ee7 | 1,260 | package web;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import dao.UserDAO;
import entity.User;
public class AddUserServlet extends ... | 18.80597 | 48 | 0.684921 |
008059fda9e770924cf33132880eb06c8d3b125d | 11,042 | /*
* Copyright 2001-present Stephen Colebourne
*
* 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 b... | 45.069388 | 298 | 0.62869 |
9424c0f0923d4bd37f66e7dc3422b8b8205f0a0b | 3,327 | package com.dargoz.jetpack.ui.movie;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ProgressBar;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment... | 36.56044 | 88 | 0.724376 |
8bc2c9f50691e4293af392e269ef231bfbbb6258 | 1,209 | package com.napier.gp2;
//A parent class of city with attributes
public class City {
// city name
private String name;
// country of city
private String country;
// district of city
private String district;
// population of city
private int population;
// set city name
public ... | 20.844828 | 66 | 0.635236 |
ca10e999ce4b2bb33212bb9fffc2bf35140a8803 | 1,630 | /**
* Copyright 2005-2016 Restlet
*
* The contents of this file are subject to the terms of one of the following
* open source licenses: Apache 2.0 or or EPL 1.0 (the "Licenses"). You can
* select the license that you prefer but you may not use this file except in
* compliance with one of these Licenses.
*
* ... | 30.185185 | 77 | 0.704294 |
8584aa424740e5122ab2ae6cf4ef8f080b246f15 | 883 | package it.andreafailli.remindme.common.models;
public class Subscription extends BaseEntity {
private String userId;
public Subscription() {}
public Subscription(String id) {
super(id);
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
... | 18.787234 | 71 | 0.667044 |
65c8fe37e5b7e19d80d6bd205f119bed7dad26b1 | 8,365 | package common.ejb;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.SynchronousQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import junit.framework.TestCase;
import... | 31.685606 | 103 | 0.756844 |
9b7e619a6f4568529e3fb1096eb8c765f1c187e8 | 2,729 | package org.syftkog.web.automation.framework.test;
import org.syftkog.web.test.framework.DriverFactory;
import org.syftkog.web.test.framework.DesiredCapabilitiesFactory;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.phantomjs.PhantomJSDriver;
//import org.openqa.selenium.phantomjs.PhantomJSDri... | 36.386667 | 217 | 0.695493 |
53df230bbd91c2d8a7964a5d83d7d78e69bae741 | 12,249 | package com.andrefthompson.arcadiaquest;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
import de.hdodenhof.circleimageview.CircleIma... | 50.407407 | 103 | 0.501592 |
fb899ca8c13b5d1b6128b090043576ca815c52e0 | 645 | package com.drumge.kvo.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Created by chenrenzhan on 2018/4/29.
*
* 修饰观察 @KvoSource 中的指定的一个属性
*/
@... | 22.241379 | 44 | 0.703876 |
2746069895d6dae89db723724fa0ab9ea789360a | 391 | package com.dadsunion.tron.service;
import com.dadsunion.tron.domain.TronAddress;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/**
* 地址管理Service接口
*
* @author l8oo8l
* @date 2021-03-06
*/
public interface ITronAddressService extends IService<TronAddress> {
/**
* 查询... | 19.55 | 68 | 0.731458 |
6dbfe70e5291672fdcc3093c2505e76ed6729280 | 7,687 | package edu.tamu.dspace.proxylicense;
import java.io.IOException;
import java.io.InputStream;
import java.sql.SQLException;
import java.util.Arrays;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.ap... | 42.236264 | 163 | 0.682321 |
c82de52ced1b4bdcbfba7a0825bc324e788c1020 | 8,890 | package net.cartola.emissorfiscal.api.controller;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import org.junit.FixMethodOrder;
import or... | 41.737089 | 143 | 0.786389 |
358d4787409c52d721aa97546280e907b9c58cb3 | 137 | package glassmaker.testmod.proxy;
public class CommonProxy implements IProxy {
@Override
public void registerRenderers() {
}
}
| 12.454545 | 44 | 0.744526 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.