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 |
|---|---|---|---|---|---|
393b4ba12c3f3dbe89b2055bf7baaf2e41683a00 | 2,930 | /*
* Copyright (C) 2018, 2019 HaiYang Li
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 22.19697 | 136 | 0.547782 |
0f6f79b1152463a661946a567c1aff7e7b2c6372 | 1,008 | package com.femto.post.fragment;
import android.app.Activity;
import android.content.Context;
import android.support.v4.app.Fragment;
import com.femto.post.customview.CustomProgressDialog;
public class BaseFragment extends Fragment {
private CustomProgressDialog pd = null;
protected Context mContext;
@Override
... | 21.913043 | 73 | 0.717262 |
fd840880efe7ca9b69029b4e68848eb6bdd98df3 | 1,951 | package com.jd.app.modules;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.Req... | 29.119403 | 82 | 0.754997 |
1e819da0c894df0be499777aa4606fce1ff11812 | 108 | package net.xilla.boot.log;
public enum LogLevel {
DEBUG,
INFO,
WARN,
ERROR,
FATAL
}
| 9 | 27 | 0.583333 |
898789b3434963bd7482ef98e83ae21dbb1b3824 | 1,021 | package com.fuwafuwa.workflow.plugins.cipher.lib;
import java.nio.charset.Charset;
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
public class HMAC_SHA256 {
private static final String HMAC_SHA1_ALGORITHM = "HmacSHA256";
public static String encode(String data, String key) {
if (k... | 34.033333 | 118 | 0.629775 |
179fa43f3da2b54b69db239a2c550eb08ab40fb3 | 11,795 | /**
* 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... | 43.847584 | 162 | 0.678253 |
b301a2dc3c769b64e9e29d1187344bf0cdf24a1f | 10,565 | package org.support.project.web.dao.gen;
import java.util.List;
import java.sql.Timestamp;
import org.support.project.web.entity.UserGroupsEntity;
import org.support.project.ormapping.dao.AbstractDao;
import org.support.project.ormapping.exception.ORMappingException;
import org.support.project.ormapping.common.SQLM... | 33.22327 | 143 | 0.751822 |
ccc951d7ade6608ca30dcc93bb3b889d2429a276 | 504 | package com.github.chen0040.leetcode.day07.easy;
/**
* Created by xschen on 2/8/2017.
*
* summary:
* Given an integer n, return the number of trailing zeroes in n!.
*
* link: https://leetcode.com/problems/factorial-trailing-zeroes/description/
*/
public class FactorialTrailingZeroes {
public class Solution ... | 21 | 77 | 0.589286 |
1e1cfb7fcd242279bace501f1de75951f7b12116 | 747 | // Copyright 2016 Pants project contributors (see CONTRIBUTORS.md).
// Licensed under the Apache License, Version 2.0 (see LICENSE).
package com.twitter.intellij.pants.util;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
/**
* Wrapper temporary file that is auto closable.
*/
public cl... | 22.636364 | 82 | 0.725569 |
79087a4c63f0244ea02daa64fdfcc46826059e02 | 18,362 | /**
* Copyright 2020 ArcSoft Corporation Limited. 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 require... | 42.406467 | 128 | 0.635334 |
4d623527b2d24bb708a05a0abd17e465540c5799 | 1,554 | package io.nosqlbench.driver.jms.conn;
import io.nosqlbench.driver.jms.util.PulsarConfig;
import java.util.Map;
public class JmsPulsarConnInfo extends JmsConnInfo {
private final String webSvcUrl;
private final String pulsarSvcUrl;
private final PulsarConfig extraPulsarConfig;
public JmsPulsarConnI... | 36.139535 | 120 | 0.714929 |
6a5bd5055bab97e99b711b1030227ac4d541665e | 7,235 | package org.iota.qupla.qupla.statement;
import java.util.ArrayList;
import org.iota.qupla.helper.TritVector;
import org.iota.qupla.qupla.context.base.QuplaBaseContext;
import org.iota.qupla.qupla.expression.AffectExpr;
import org.iota.qupla.qupla.expression.AssignExpr;
import org.iota.qupla.qupla.expression.CondExpr;... | 24.777397 | 117 | 0.659157 |
6be006277574f95e0429c6a74273ce19d4def52b | 1,272 | package com.randomappsinc.studentpicker.listpage;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentStatePagerAdapter;
public class ListTabsAdapter extends FragmentStatePagerAdapter {
private final String[... | 28.909091 | 86 | 0.676101 |
5c38cf57530b132b3554f390118f66f7aa5dcab7 | 3,875 | package com.amazonaws.ssm.opsmetadata;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import com.amazonaws.ssm.opsmetadata.translator.property.MetadataTranslator;
import com.amazonaws.ssm.opsmetadata.translator.request.RequestTranslator;
import software.amazon.awssdk.services.ssm.SsmClient... | 53.082192 | 132 | 0.744258 |
a3c2b032bef561a28ea055903c7c51c9cb72eb10 | 452 | package org.bschlangaul.examen.examen_66116.jahr_2019.herbst.prozess_verwaltung;
/**
* Entspricht der „KonkreterZustand“-Unterklasse in der Terminologie der „Gang of
* Four“.
*/
public class ZustandBereit extends ProzessZustand {
public ZustandBereit(Prozess prozess) {
super("bereit", prozess);
}
public... | 25.111111 | 81 | 0.74115 |
f41dd6e44f79381f803ed3477f6cfc5faba207e2 | 10,140 | package org.carlspring.strongbox.testing.storage.repository;
import java.io.IOException;
import java.nio.file.Files;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.stream.Collectors;
import javax.annotation.PreDestroy;
import org.carlspring.stron... | 41.387755 | 132 | 0.650099 |
e54e3955d4f7b0bc9b96d3674f3c4ad2974553f4 | 9,409 | package com.taobao.weex.analyzer.view;
import android.content.Context;
import android.content.Intent;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import android.net.Uri;
import android.os.Build;
import android.provider.Settings;
import and... | 33.24735 | 150 | 0.579977 |
a871740259d693cdeffb83e06506fef83434fa5a | 806 | package com.chrismin13.additionsapi.events.item;
import org.bukkit.event.Cancellable;
import org.bukkit.event.player.PlayerShearEntityEvent;
import com.chrismin13.additionsapi.items.CustomItemStack;
public class CustomItemShearEntityEvent extends CustomItemStackEvent implements Cancellable {
private PlayerShearEnt... | 25.1875 | 93 | 0.822581 |
91ebc70debb0aaf2ffec707036e27d3626405261 | 1,411 | /*******************************************************************************
* Copyright (c) 2013 IBM Corporation.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v. 1.0 which accompa... | 29.395833 | 87 | 0.649185 |
8b0e6a4984eedf70f59bdfc872071ca87646f377 | 1,429 | package edu.jhu.thrax.util;
import java.util.HashMap;
public class Vocabulary {
private static HashMap<String,Integer> word2id = new HashMap<String,Integer>();
private static HashMap<Integer,String> id2word = new HashMap<Integer,String>();
private static int size = 0;
private static boolean fixed =... | 21.651515 | 83 | 0.520644 |
0963eebb6ae63507e61be0dbdad299e6cb59e08e | 3,735 | package com.fangyuzhong.intelliJ.hadoop.core.util;
import com.fangyuzhong.intelliJ.hadoop.fsconnection.ConnectionHandler;
import com.fangyuzhong.intelliJ.hadoop.globalization.LanguageKeyWord;
import com.fangyuzhong.intelliJ.hadoop.globalization.LocaleLanguageManager;
import com.intellij.ide.DataManager;
import com.int... | 35.913462 | 183 | 0.699063 |
4e58eefaf378280821cf05988832f60a6420ebf6 | 551 | package org.iproduct.invoicing.dao;
import org.iproduct.invoicing.model.Contragent;
import java.util.Collection;
import java.util.List;
public class MockContragentRepository extends MockRepository<Long, Contragent>
implements ContragentRepository {
@Override
public Contragent findByName(String name) ... | 26.238095 | 78 | 0.666062 |
28e265b63c9d445280baacde683fc7bcaeb872f4 | 1,200 | package com.lijq.mybatis.typehandlers;
import org.apache.ibatis.type.BaseTypeHandler;
import org.apache.ibatis.type.JdbcType;
import org.apache.ibatis.type.MappedJdbcTypes;
import java.sql.CallableStatement;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
/**
* @author Li... | 29.268293 | 138 | 0.75 |
83adfc430940428b70b046290e72f85f5cd1b8d0 | 2,233 | package com.ydc.excel_to_db.util;
import java.util.Date;
/**
* @Description: 常量
* @Author: Joss xu
* @Date: Created in 2018-2-6
*/
public class Constant {
// 未通过格式校验的数据
public static final String failListKey = "excelToDB:failListKey";
// 已通过格式校验的数据
public static final String successListKey = "exc... | 33.833333 | 99 | 0.720107 |
b5074f1f0f31c855f8366c2748f9021c077b8b06 | 89 | package creational.abstractFactory;
public class ProductB2 extends AbstractProductB {
}
| 17.8 | 49 | 0.842697 |
dfd6e47c7dcf431e8617a4851c639987c404f910 | 5,653 | /**
* Copyright (c) 2011, Samuel R. Baskinger <basking2@yahoo.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to... | 28.407035 | 86 | 0.599858 |
9144fad5c36722f0a01d1c8d1c72d5cff42a9562 | 15,577 | package com.github.vedunz.difftool.ui;
import com.github.vedunz.difftool.control.DiffConsumer;
import com.github.vedunz.difftool.control.LineDiffConsumer;
import com.github.vedunz.difftool.control.LineDiffController;
import com.github.vedunz.difftool.diff.DiffInterval;
import com.github.vedunz.difftool.diff.DiffResult... | 47.20303 | 128 | 0.662515 |
8bfa3a6f749dd068cbc6e230c55b7273519ba6e0 | 971 | package frc.robot.commands;
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup;
import frc.robot.RobotContainer;
import frc.robot.subsystems.SubClimber;
public class Agrp_Transverse extends SequentialCommandGroup {
public Agrp_Transverse() {
//addCommands(new CmdMoveExtender());
//addCo... | 33.482759 | 61 | 0.682801 |
2abb7a51b3bc3b6ee2d70f1ef25675e63ba548d5 | 78 | /**
* @author Ruzhev Alexander
* @since 01.12.2017
*/
package ru.job4j.map; | 15.6 | 27 | 0.653846 |
0a015ab91289b3cff4e5fd04336b5bcb9e692b6e | 224 | package com.hundredwordsgof.decorator;
/**
*
* ConcreteComponent, define object where new features can be added
*
*/
public class ConcreteComponent implements Component {
public void operation() {
}
}
| 17.230769 | 68 | 0.691964 |
a4661b073f97db2e11b33043b15ee31ef9941e0d | 3,296 | /*
* Copyright (c) 2011, Regents of the University of Massachusetts Amherst
* 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... | 32.313725 | 112 | 0.707828 |
1ed8b661aa441afb3d2d93e8d54b36238ed8086b | 5,590 | /**
* Copyright © 2018 Mayo Clinic (RSTKNOWLEDGEMGMT@mayo.edu)
*
* 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 ... | 30.380435 | 103 | 0.747406 |
217f01f5c953cb432467e47b957abd13789b56f0 | 3,612 | /*
* 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 ... | 36.12 | 100 | 0.76412 |
4def75cdaf952c39eaf04fd69b318146e1195b2d | 3,624 | package com.webcheckers.appl;
import com.webcheckers.model.*;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import java.util.HashMap;
import java.util.Map;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.... | 27.664122 | 73 | 0.624724 |
0812ccebfa66b02d8f53996d8f3c89dc6a9220a9 | 1,272 | package com.huomai.business.service;
import com.huomai.business.bo.HuomaiVideoLoveAddBo;
import com.huomai.business.bo.HuomaiVideoLoveEditBo;
import com.huomai.business.bo.HuomaiVideoLoveQueryBo;
import com.huomai.business.domain.HuomaiVideoLove;
import com.huomai.business.vo.HuomaiVideoLoveVo;
import com.huomai.commo... | 20.190476 | 80 | 0.735849 |
812632298f8021142545261ccd6b2771e8479bfa | 1,028 | package com.oct.entity.chap52;
import org.hibernate.annotations.NaturalId;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
/**
* @Author: Administrator
* @CreateDate: 2020/12/28 17:21
* @Description: default
*/
@Entity(name = "Book")
public class Book {
@Id
... | 16.31746 | 49 | 0.614786 |
3386a068ff9a279161fc9d83e6286bd5a0696257 | 23,655 | /**
* All files in the distribution of BLOAT (Bytecode Level Optimization and
* Analysis tool for Java(tm)) are Copyright 1997-2001 by the Purdue
* Research Foundation of Purdue University. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the ... | 25.994505 | 81 | 0.624815 |
1d79ee726badbaa8e0fccd8811b2dad21f8b70f9 | 770 | package com.tvd12.ezyfox.testing.util;
import org.testng.annotations.Test;
import com.tvd12.ezyfox.function.EzyApply;
import com.tvd12.ezyfox.reflect.EzyInterfaces;
import com.tvd12.test.base.BaseTest;
public class EzyInterfacesTest extends BaseTest {
@Override
public Class<?> getTestClass() {
return EzyInterfa... | 22 | 100 | 0.757143 |
2f38cc7881df383ab42e02cce0b78975c899a0c8 | 603 | package com.hvscode.iperf3test.model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class Connected {
@SerializedName("socket")
@Expose
private Integer socket;
@SerializedName("local_ho... | 20.793103 | 50 | 0.729685 |
f05dbeb3f3a8de81c8d183f24ed713bee0c34c7e | 523 | package fr.bobsonic.overidle.info;
import java.util.Calendar;
public class Date
{
public static Calendar cal = Calendar.getInstance();
public static boolean isDecember() {
Calendar cal = Calendar.getInstance();
int month = cal.get(2);
return (month == 12);
}
public static boolean isOctob... | 19.37037 | 56 | 0.629063 |
55a84c4ac3564d73f8d61a4c1d8854bbfb6cebf1 | 1,037 | package io.crnk.core.repository.foward.strategy;
import io.crnk.core.engine.query.QueryContext;
import java.io.Serializable;
public class SetOppositeStrategy<T, I extends Serializable, D, J extends Serializable>
extends ForwardingStrategyBase implements ForwardingSetStrategy<T, I, D, J> {
@Override
public void... | 33.451613 | 108 | 0.795564 |
1e2ea4f139e4a62020da38427222a1f0a908c0e4 | 889 | package com.redhat.service.smartevents.shard.operator;
import com.redhat.service.smartevents.infra.models.dto.BridgeDTO;
import com.redhat.service.smartevents.shard.operator.resources.BridgeIngress;
import io.fabric8.kubernetes.api.model.Secret;
import io.fabric8.kubernetes.api.model.Service;
import io.fabric8.kubern... | 35.56 | 98 | 0.834646 |
71b43bea6e6bc555264992cd2bb5b4c0f5914b7a | 1,536 | package club.bugmakers.seed.config.setting;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* 数据源连接池设置
* @Author: Bruce
* @Date: 2018/12/14 18:46
* @Version 1.0
*/
@ConfigurationProperties(prefix = "spring.datasource")
@Data
public class DruidSettings {
pri... | 34.909091 | 99 | 0.736979 |
10bd4100a78cb14fe1f5d1b321adc77d65ad3663 | 286 | class InvertBooleanParameterTest {
void foo(boolean bInverted) {
boolean c = bInverted;
bInverted = true;
}
{
foo(false);
}
}
class Drv extends InvertBooleanParameterTest {
void foo(boolean bInverted) {
super.foo(bInverted);
}
} | 17.875 | 46 | 0.604895 |
b573f09ea32dd76003c7a8db738e31375642a808 | 632 | package org.devefx.spring.boot.cqhttp.api;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.RequiredArgsConstructor;
import org.devefx.spring.boot.cqhttp.api.resp.GroupInfo;
import javax.validation.constraints.NotNull;
/**
* 获取群列表
*/
@Data
@A... | 21.066667 | 56 | 0.732595 |
5ecd22ceeab83972d4c70e16c1fc3f1e5a60834e | 13,421 | /*
* Copyright 2021 Guo Chaosheng
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 37.384401 | 119 | 0.57723 |
075187f984588ad09ddee3037712f097a9626d3e | 1,236 | package JavaCode.top_interview_questions_easy.others;
import java.util.ArrayList;
import java.util.List;
public class PascalTriangle
{
class Solution {
public List<List<Integer>> generate(int numRows) {
List<List<Integer>> lists=new ArrayList<>();
if(numRows>=1)
{
... | 23.769231 | 92 | 0.456311 |
5099e5d7f5cfced8daa024e1cf3d2c25e4add734 | 341 | import java.util.ArrayList;
import java.util.List;
public class Basket {
private List<Product> basket = new ArrayList<>();
private Product product;
public Basket() {
}
public void addProduct(Product product){
basket.add(product);
}
public List<Product> getProducts(){
retu... | 16.238095 | 53 | 0.636364 |
ab75063ea392f63ee0ace00461940e0252e76fc1 | 1,287 | package results;
import util.jpa.GenericJpaDao;
import javax.persistence.Persistence;
import java.util.List;
/**
* DAO class for the {@link TetrisGameResults} entity.
*/
public class TetrisGameResultsDao extends GenericJpaDao<TetrisGameResults> {
private static TetrisGameResultsDao instance;
private Tetr... | 30.642857 | 154 | 0.680653 |
343d22164e9516a2da3970daa5b192fcd50dd543 | 545 | package org.robobinding;
import java.util.Collection;
import org.robobinding.attribute.MissingRequiredAttributesException;
/**
*
* @since 1.0
* @version $Revision: 1.0 $
* @author Cheng Wei
*/
public interface ViewResolutionErrors {
Object getView();
int numErrors();
void assertNoErrors()... | 19.464286 | 85 | 0.73578 |
33830e4b79d27cbf6d473d2e734c7f4b4ac61fe6 | 874 |
import java.util.*;
public class _07_FixEmails {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
LinkedHashMap<String, String> lhmap = new LinkedHashMap();
String s, key = null;
boolean odd = true;
while (!(s = sc.nextLine()).equal... | 30.137931 | 70 | 0.422197 |
658639af59d35e1cd1c6a31cd5092f8db73f133d | 896 | package zj.test.base;
import com.alibaba.fastjson.JSON;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.junit.Before;
import org.junit.runner.RunWith;
import org.mockito.MockitoAnnotations;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.... | 25.6 | 75 | 0.790179 |
49db5ba859a53b428c797df71149a8dee5f5f283 | 1,403 | package com.prismaqf.callblocker;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.telephony.TelephonyManager;
import android.util.Log;
/**
* Receiver to detect the state of the telephone ringing and ensu... | 36.921053 | 94 | 0.699929 |
763e509dded712ea98b2cb2d8e310fe03226a034 | 7,363 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | 27.371747 | 102 | 0.669836 |
acec8568306aac307a350166f845a556a213fc34 | 1,293 | package com.overops.plugins.jenkins.query;
import java.util.List;
import com.overops.plugins.jenkins.query.RegressionReportBuilder.RegressionReport;
import hudson.model.Action;
import hudson.model.Run;
public class OverOpsBuildAction implements Action {
private final Run<?, ?> build;
private final Regressio... | 23.944444 | 82 | 0.674401 |
faf2ebbd37dc64d8e1598ae1be787499cee98569 | 3,283 | package io.rala.shell.testUtils.io;
import java.io.IOException;
import java.io.InputStream;
import java.io.StringReader;
import java.util.concurrent.BlockingQueue;
import static io.rala.shell.testUtils.io.Converter.convertByteArrayToCharArray;
import static io.rala.shell.testUtils.io.Converter.convertCharArrayToByteA... | 30.971698 | 86 | 0.627779 |
e92787345eb66169e4ba58cf113abd592b37cea8 | 6,920 | /*
* ==========================================================================================
* = JAHIA'S ENTERPRISE DISTRIBUTION =
* ==========================================================================================
*
* ... | 44.358974 | 136 | 0.645231 |
c152aab145d45ad97508e2d67f9be4fce4e49496 | 1,342 | package com.eu.habbo.messages.outgoing.catalog;
import com.eu.habbo.Emulator;
import com.eu.habbo.habbohotel.items.Item;
import com.eu.habbo.messages.ServerMessage;
import com.eu.habbo.messages.outgoing.MessageComposer;
import com.eu.habbo.messages.outgoing.Outgoing;
import gnu.trove.set.hash.THashSet;
import java.ut... | 38.342857 | 131 | 0.676602 |
540fe379011fc3d1c99b2e5d43f67e6e15b13b79 | 2,402 | package net.violet.platform.datamodel.factories;
import java.util.List;
import java.util.Map;
import net.violet.db.records.factories.RecordFactory;
import net.violet.platform.datamodel.ConfigFiles;
import net.violet.platform.datamodel.ConfigFilesImpl;
import net.violet.platform.datamodel.Lang;
import net.violet.platf... | 32.90411 | 117 | 0.751873 |
f3bb917be2e2450ca0c57ebdf79cc8b919e174b3 | 3,675 | /* Copyright 2019, Gurobi Optimization, LLC */
/* This example considers the following separable, convex problem:
minimize f(x) - y + g(z)
subject to x + 2 y + 3 z <= 4
x + y >= 1
x, y, z <= 1
where f(u) = exp(-u) and g(u) = 2 u^2 - 4 u, for all real u... | 28.710938 | 71 | 0.557551 |
1695403eda9f279965c5bc2a5d9fa6b69d29a7fa | 455 | package com.pncalbl.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pncalbl.domain.SysPrivilege;
import java.util.Set;
/**
* @author pncalbl
* @date 2021/10/15 20:37
* @e-mail pncalbl@qq.com
* @description
* ${TAGES}
**/
public interface SysPrivilegeMapper extends BaseMapper<SysP... | 19.782609 | 70 | 0.70989 |
4bbe50153bacccd7197bfa5e2760b7eb2dd79e5f | 165 | package teamroots.embers.power;
@Deprecated
public interface IEmberPacketProducer extends teamroots.embers.api.power.IEmberPacketProducer {
//Stub for compat
}
| 23.571429 | 95 | 0.818182 |
5cd8437ac2f6d933701412dbb9356c39d05dc2cc | 1,280 | package classProject2;
import java.util.ArrayList;
public class Inventory {
public static ArrayList<String> inventory = new ArrayList<String>();
public static int checkInv(){
Textgame.getName();
System.out.print(" has ");
if (inventory.size() <= 1) {
if (inventory.size() == 1) {
System.out.println(... | 20.31746 | 68 | 0.61875 |
b569b71f62c1b6b2efc092afb611cd65c6e61419 | 818 | package gov.healthit.chpl.dao;
import java.util.List;
import gov.healthit.chpl.dto.AddressDTO;
import gov.healthit.chpl.entity.AddressEntity;
import gov.healthit.chpl.exception.EntityCreationException;
import gov.healthit.chpl.exception.EntityRetrievalException;
public interface AddressDAO {
AddressEntity creat... | 31.461538 | 110 | 0.825183 |
79cf174b7124416ff53ba6bd3db082bc16bdb3d0 | 97 | package GOF23.A1_abstractFactory;
/**
* 汽车引擎
*/
public interface Engine {
void work();
}
| 9.7 | 33 | 0.649485 |
bfc2f3f9a0f986747c1bbd1f026a0d866714c4c7 | 1,585 | /*
* Copyright (c) 2017, MegaEase
* 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 ap... | 27.807018 | 92 | 0.706625 |
8d35459acc8cbd7dd58a72133317a560f1f258b5 | 663 | /**
* Copyright © 2012-2014 <a href="http://www.kszhineng.cn">OA</a> All rights reserved.
*/
package com.szcxsl.oa.modules.oafinorg.dao;
import java.util.List;
import com.szcxsl.oa.common.persistence.CrudDao;
import com.szcxsl.oa.common.persistence.annotation.MyBatisDao;
import com.szcxsl.oa.modules.oafinorg.e... | 25.5 | 91 | 0.755656 |
bbd290893df2107b137a61c315299ab5952930f7 | 11,996 | package com.strongloop.android.remoting.test;
import android.test.MoreAsserts;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.strongloop.android.remoting.Repository;
import com.strongloop.android.remoting.VirtualObject;
import com.strongloop.android.remoting.... | 37.72327 | 93 | 0.505919 |
5e335435ee0ee5bb1dde37c09639d65533574dd3 | 2,673 | package com.youche.mongodb.utils;
import lombok.Data;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
@Data
public class Pagination<T>... | 23.447368 | 104 | 0.617658 |
27aecb2e41c9ed14798be83a9fa3f02e7137e593 | 3,749 | package se.somath.publisher.formatter;
import org.junit.Test;
import java.util.LinkedList;
import java.util.List;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
public class HtmlFormatterTest {
private HtmlFormatter formatter = new HtmlFormatter();
@Test
public v... | 32.6 | 173 | 0.59856 |
bf9861200bcd6821351626545162696e6012b48c | 1,636 | package practice.dp;
/**
* Created by sharanya.p on 7/25/2018.
* https://www.geeksforgeeks.org/0-1-knapsack-problem-dp-10/
*/
public class Knapsack {
public static void main(String[] args) {
int val[] = new int[]{60, 100, 120};
int wt[] = new int[]{10, 20, 30};
int W = 50;
int n... | 28.206897 | 85 | 0.414425 |
2e9340cb444965b9ebfc6f465af446661aae64e2 | 1,349 | package com.amazon.alexa.auto.setup.dependencies;
import android.content.Context;
import com.amazon.alexa.auto.apps.common.util.config.AlexaPropertyManager;
import com.amazon.alexa.auto.apps.common.util.config.LocalesProvider;
import java.lang.ref.WeakReference;
import java.util.concurrent.ExecutorService;
import j... | 28.104167 | 110 | 0.736101 |
f03984e5dec9b7c9550aad8f06cae735056f2f64 | 1,443 | package Practice;
import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.regex.*;
public class AngryKids {
// Complete the angryChildren function below.
static long angryChildren(int k, int[] packets) {
Li... | 27.75 | 77 | 0.55648 |
89fee1c8f94ca5180fd5734b50b26c49ff4c8724 | 2,472 | package org.movoto.selenium.example;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
/**
* ... | 29.082353 | 114 | 0.620146 |
566cb9ab2f75d4b146acc0bd2657e5231d013845 | 5,048 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... | 64.717949 | 159 | 0.775357 |
9f9813ab16cd764c3bc07d7f051698cf08906f8b | 4,903 | package de.btu.swt.backend.file;
import de.btu.swt.backend.user.User;
import de.btu.swt.backend.user.UserRepository;
import de.btu.swt.backend.util.ErroneousFile;
import de.btu.swt.backend.util.FileExport;
import de.btu.swt.backend.version.Permissions;
import de.btu.swt.backend.version.Version;
import de.btu.swt.backe... | 47.601942 | 138 | 0.698552 |
8cb49347d7a7647875a4c1b0f453d282d896cf0a | 14,577 | /*
* Copyright 2019 The Context Mapper Project Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | 47.022581 | 181 | 0.682308 |
763b502944906598c9f049bd3805176eb07357f4 | 21,829 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.core.management.implementation;
import com.azure.core.management.AzureEnvironment;
import com.azure.core.credentials.TokenCredential;
import com.azure.core.http.HttpMethod;
import com.azure.core.http.Http... | 51.727488 | 120 | 0.61968 |
82c9627c4c6c91e7c8dd130977d4a2e1e9ad7af4 | 608 | /*
* Copyright (c) 2016, GoMint, BlackyPaw and geNAZt
*
* This code is licensed under the BSD license found in the
* LICENSE file in the root directory of this source tree.
*/
package io.gomint.proxprox.api.data;
import io.gomint.proxprox.api.entity.Server;
import lombok.AllArgsConstructor;
/**
* @author geNAZ... | 17.882353 | 59 | 0.677632 |
5883ccc627e3633af952385d841d2fed4031c511 | 2,360 | package dhaka.jast;
import com.google.common.collect.Lists;
import org.jooq.lambda.Unchecked;
import javax.annotation.Nonnull;
import javax.sql.DataSource;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
import java.util.function.Consumer;
import java... | 30.25641 | 95 | 0.623729 |
9acd6504a1511301409c851a6797b51ecf3e07d3 | 3,326 | /**
* Copyright 2017-2021 Fred Feng (paganini.fy@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 applicable ... | 29.175439 | 112 | 0.737823 |
b9764aa895d7362073907796ce48d84a8b612531 | 1,941 | package com.lenspot.devtools.cache.impl;
import com.google.common.base.Preconditions;
import com.lenspot.devtools.cache.Cache;
import com.lenspot.devtools.cache.CacheSetFactory;
/**
* Factory for creating cache object instances.
*
* @author Raymond Tsang
*
* @param <K>
* the type of the keys
* @para... | 30.328125 | 77 | 0.638331 |
9d16b66ff15c7c90a71c89125bda4ecbc1b2dc09 | 125 | package com.shz.gift.handler;
public interface IHandler<E> {
public void handleEvent(E o);
public String getName();
}
| 12.5 | 30 | 0.72 |
3fd94bd14085e167712ed3e5ddd0fc3a856562d2 | 222 | package pinacolada.interfaces.subscribers;
import com.megacrit.cardcrawl.cards.AbstractCard;
public interface OnTagChangedSubscriber
{
void OnTagChanged(AbstractCard card, AbstractCard.CardTags tag, boolean value);
} | 27.75 | 83 | 0.833333 |
643a8833190f11e5dba1a6506f5a487ee6b3b9f3 | 8,240 | /*******************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is av... | 18.392857 | 81 | 0.64818 |
c46c593cb00bef01dfc1faa63c679324a5618dd6 | 3,242 | package com.github.egbakou.mrtcompilers.process.stream.slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.github.egbakou.mrtcompilers.process.stream.CallerLoggerUtil;
/**
* Creates output streams that write to {@link Logger}s.
*
*/
public class Slf4jStream {
private final Logger log;
... | 26.793388 | 100 | 0.670574 |
9990ee823418413d75ca492385c6d5e66e5d90ef | 4,432 | package com.nts.iot.modules.miniApp.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.n... | 31.211268 | 131 | 0.677572 |
52bc22d456a077fc76943a47bbacc2535dd8faeb | 1,327 | package com.snell.michael.kawaii.time;
import com.snell.michael.kawaii.ComparableMicroType;
import java.time.LocalTime;
import java.time.temporal.Temporal;
import java.time.temporal.TemporalAdjuster;
import java.time.temporal.TemporalField;
import java.time.temporal.TemporalUnit;
public abstract class LocalTimeMicro... | 26.019608 | 119 | 0.714393 |
4fb0ad1d7cb7fe3346d9adeb9cdbc20a8797a99b | 487 | package kr.re.etri.smartwearableclient;
import java.util.ArrayList;
import java.util.List;
class Log {
private static List<LogItem> list = new ArrayList<>();
static void append(String msg) {
list.add(new LogItem(msg));
e("CLIENT", msg);
}
static List<LogItem> getList() {
retu... | 18.730769 | 58 | 0.597536 |
a9f0274e2797e170d9d29149c66fe1fd175376ab | 2,778 | /*
######################################################################################
## ##
## (c) 2006-2012 Cable Television Laboratories, Inc. All rights reserved. Any use ##
## of this documentation/package is subject to the terms... | 35.164557 | 86 | 0.612671 |
127aaecbe22c9c98b13d0a8f33c6e524eb536a5d | 180 | package contagionJVM.System;
import org.nwnx.nwnx2.jvm.NWObject;
public class QuestSystem {
public static void SpawnQuestItems(NWObject oChest, NWObject oPC)
{
}
}
| 15 | 69 | 0.733333 |
04cc4e4f2d738c1f87ab716d96ba0aa669c946c1 | 9,463 | package com.graphql_java_generator.client.domain.allGraphQLCases;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.graphql_java_generator.GraphQLField;
import com.graphql_java_generator.annotation.GraphQLInputPar... | 27.508721 | 151 | 0.745852 |
fe9cb54889045d474f9e71fb96f5fae7b9f51c96 | 460 | package com.tencent.angel.psagent.matrix.transport.response;
import com.tencent.angel.ps.server.data.response.ResponseData;
import com.tencent.angel.psagent.matrix.transport.FutureResult;
import com.tencent.angel.psagent.matrix.transport.adapter.UserRequest;
import io.netty.buffer.ByteBuf;
public interface IHandler {... | 38.333333 | 94 | 0.836957 |
6e8e6132ea6da9c651b02278611160d510291abb | 3,719 | package com.rimalon.onlinetesting.controllers;
import com.rimalon.onlinetesting.datamodel.dto.RequestResultJSON;
import com.rimalon.onlinetesting.helpers.CacheHelper;
import com.rimalon.onlinetesting.interfaces.StatisticsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Aut... | 50.256757 | 116 | 0.732724 |
ae5f1bc00a7af1e22b3437a863e616ac7828d224 | 4,099 | package charlie.nbtweak;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import cpw.mods.fml.common.network.NetworkRegistry;
import cpw.mods.fml.common.network.simpleimpl.SimpleNetworkWrapper;
import cpw.mods.fml.relauncher.Side;
import net.java.games.input.Keyboard;
import net.minecraft.... | 30.139706 | 116 | 0.65577 |
01ff906a80265bda6beb4271bd118b9e1625a687 | 3,825 | package com.antfortune.freeline;
import android.app.Application;
import android.content.Context;
import android.content.pm.PackageManager;
import android.text.TextUtils;
import android.util.Log;
import com.antfortune.freeline.util.ReflectUtil;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileRe... | 33.26087 | 147 | 0.619346 |
7f5f4a8234eea54b346a98a396a2f3713b833ebf | 3,882 | /*
* Copyright (c) 2021. MIT License License
*
* Coded by HypherionMC based on code originally created by MCrafterzz. Code used with written permission
*/
package me.hypherionmc.mcrafterzzreborn.items;
import me.hypherionmc.mcrafterzzreborn.ModConstants;
import me.hypherionmc.mcrafterzzreborn.init.ModItems;
impor... | 38.058824 | 127 | 0.653272 |
a422f22920fed550923e2f5a0cf37d6fb78bded8 | 588 | package com.tvd12.ezymq.rabbitmq.testing;
import java.util.concurrent.Executors;
import org.testng.annotations.Test;
import com.tvd12.ezymq.rabbitmq.endpoint.EzyRabbitConnectionFactory;
public class EzyRabbitConnectionFactoryTest {
@Test
public void test() {
EzyRabbitConnectionFactory factory = new EzyRabbitC... | 19.6 | 72 | 0.741497 |
afdbac545e96da80a27f5e96fa38b8faaf4d53b9 | 263 | package model;
public class Teacher {
private String id, name;
public Teacher(String _id, String _name) {
// TODO Auto-generated constructor stub
id = _id;
name = _name;
}
public String getId() {
// TODO Auto-generated method stub
return id;
}
}
| 16.4375 | 43 | 0.684411 |
14784b4439a2d1278e470c3f55b77db560ea3049 | 5,337 | package com.kwpugh.simple_backpack.backpack;
import com.google.common.collect.Sets;
import com.kwpugh.simple_backpack.bundle.SimpleBundleItem;
import com.kwpugh.simple_backpack.bundle.VoidBundleItem;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.entity.player.PlayerInventory;
import net.minecra... | 31.579882 | 206 | 0.606708 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.