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 |
|---|---|---|---|---|---|
952de933b9438f43345312461d92ac122d249163 | 179 | class Solution {
public boolean isFlipedString(String s1, String s2) {
if (s1.length() != s2.length()) return false;
return (s1 + s1).indexOf(s2) >= 0;
}
} | 29.833333 | 57 | 0.586592 |
bfff30b505c745824a5176b090665bb82d09a02b | 1,661 | /**
* <a href="http://www.openolat.org">
* OpenOLAT - Online Learning and Training</a><br>
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at the
* <a href="http://www.apache... | 33.897959 | 84 | 0.71463 |
2a15a638de007b003fcc7effa40323a6d8d53d47 | 3,322 | package com.recyclegrid.app;
import android.content.Context;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ListView;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.J... | 36.505495 | 117 | 0.630042 |
8bd44965ffb4674c4599f4b0eb4014d40d2d1a72 | 992 | package io.renren.modules.model;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
@Table(name = "city")
public class City {
@Id
@GeneratedValue(generator = "JDBC")
private String id;
private String name;
@Colum... | 16.533333 | 46 | 0.553427 |
1df0d8aedf93d445c1c6e1d922b513b5b885e60a | 1,626 | import java.io.File;
import java.util.Hashtable;
import net.runelite.mapping.Export;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("fw")
public class class170 {
@ObfuscatedName("d")
public static boolean field2214;
@ObfuscatedName("z")
public s... | 27.1 | 127 | 0.635916 |
99be3b661d8873fa96e58e2b2afeaf42ea375677 | 2,392 | package es.upv.grycap.tracer.service;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.StandardCharsets;
import org.apache.commons.codec.binary.Hex;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
public class NodeKeysMan... | 40.542373 | 100 | 0.825669 |
bb9afbafe7eb345c29a20c94e55ce89639994c6c | 5,696 | package com.poa.POAvanzados.service;
import com.poa.POAvanzados.TestUtils;
import com.poa.POAvanzados.dao.manager.ManagerDAOImpl;
import com.poa.POAvanzados.dao.worker.WorkerDAOImpl;
import com.poa.POAvanzados.exception.NoWarehouseWithEnoughStock;
import com.poa.POAvanzados.exception.QuantityExceedsMaxSlots;
import co... | 48.271186 | 118 | 0.752282 |
27c50774f747b30de8b59c9b8ede67c60ee16f42 | 2,277 | /*
* Copyright 2009 Kantega AS
*
* 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... | 29.192308 | 105 | 0.67545 |
d7d6702e193fe663c0d0ca1fa8b548f1147af0f0 | 1,875 | /*
* Copyright 2019 Confluent Inc.
*
* Licensed under the Confluent Community License (the "License"; you may not use
* this file except in compliance with the License. You may obtain a copy of the
* License at
*
* http://www.confluent.io/confluent-community-license
*
* Unless required by applicable law or agr... | 30.737705 | 81 | 0.7472 |
074a2ea490ed57337f516aee73bc4b7c0bf4dd83 | 3,071 | /*
* Copyright 2016 Arseniy Tashoyan
*
* 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... | 34.505618 | 85 | 0.671768 |
f891c19cefa05ec614e5fdf97d3ef6abc1a52da5 | 11,174 | /**
* 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... | 27.121359 | 147 | 0.646053 |
10dc8430cf8bb9cd62f5b3db011bc3b2b8ab3d0d | 3,583 | package com.hzy.baselib.adapter;
import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import androidx.annotation.Nullable;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.hzy.baselib.R;
import com.hzy.baselib.... | 36.191919 | 96 | 0.592241 |
8934df6ffc2da5efb5f37c572666553843acd018 | 2,800 | package readinglist;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;
import org.activiti.editor.constants.ModelDataJsonConstants;
import org.activiti.engine.RepositoryService;
import org.activiti.engine.repository.Model;
import org.apache.commons.lang3.StringU... | 38.356164 | 111 | 0.694286 |
3317d57373ed51d9c2ebb415e80b27bd1af487b0 | 6,458 | package com.hdev.exoplayer;
import android.content.Context;
import android.net.Uri;
import com.google.android.exoplayer2.DefaultLoadControl;
import com.google.android.exoplayer2.ExoPlayer;
import com.google.android.exoplayer2.ExoPlayerFactory;
import com.google.android.exoplayer2.SimpleExoPlayer;
import com.google.an... | 48.924242 | 186 | 0.765407 |
bf6031a937a9d35d4f00b87437cc387055bcd98a | 312 | package com.cloud.base.user.repository.dao.mapper;
import com.cloud.base.user.repository.entity.SysRes;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* 用户中心-资源表
*
* @author lh0811
* @email lh0811
* @date 2022-01-05 18:01:19
*/
public interface SysResMapper extends BaseMapper<SysRes> {
}
| 18.352941 | 58 | 0.74359 |
a5360dc97d3030e2a53165b8ebbeb221f64c75b0 | 31,081 | package cn.org.rapid_framework.generator.provider.db.table;
import cn.org.rapid_framework.generator.GeneratorProperties;
import cn.org.rapid_framework.generator.common.GeneratorConsts;
import cn.org.rapid_framework.generator.provider.DatabaseMetaDatCache;
import cn.org.rapid_framework.generator.provider.db.DataSource... | 36.015064 | 177 | 0.626975 |
86144a7b96c2786e5dc3f8259e5c4d69cbf3e6fa | 3,216 | package evolith.helpers;
import java.awt.Color;
/**
*a
* @author Erick González
* @author Carlos Estrada
* @author Víctor Villarreal
* @author Moisés Fernández
*/
public interface Commons {
public static final int ORGANISM_SIZE = 30; // organism size
public static final int INITIAL_POINT = 10... | 44.054795 | 103 | 0.681903 |
083ec9482086c7bc42d7e8fdfb41227841b2c8e2 | 217 | package ru.job4j.linkedlist;
/**
* Интерфейс для связанного списка.
*
* @author Evgenii Kapaev
* @since 23.01.22
*/
public interface List<E> extends Iterable<E> {
void add(E value);
E get(int index);
}
| 15.5 | 46 | 0.658986 |
9e77f6023d8cd75b5c42ca437de6f11e7a72b717 | 2,239 | package com.jeanboy.component.permission.utils;
import android.content.Context;
import android.os.Binder;
import android.os.Build;
import android.provider.Settings;
import android.view.WindowManager;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
/**
* @author caojianbo
* @since 2019/12/26 15:53
... | 33.41791 | 100 | 0.594462 |
0631817020614836e5e0030d1bc4036e3d297392 | 1,581 | package org.kairosdb.core.processingstage;
import com.google.common.collect.ImmutableList;
import org.kairosdb.core.processingstage.metadata.FeatureProcessingMetadata;
public interface FeatureProcessor
{
/**
* Returns an {@link ImmutableList} of {@link FeatureProcessingFactory}
* instances for the feat... | 35.931818 | 98 | 0.724225 |
35f2550f21474b2eabdefd5503bcefbb60fe839d | 2,262 | package ava.coding.challenge.main.organization;
import ava.coding.challenge.main.organization.access.rights.AccessRightsService;
import ava.coding.challenge.main.organization.entities.MasterOrganization;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
i... | 42.679245 | 126 | 0.78382 |
da698528a2b0cb1528fa647eae8d577c411c579e | 861 | package com.hiriver.unbiz.mysql.lib.protocol.binlog.extra;
import com.hiriver.unbiz.mysql.lib.protocol.Request;
/**
* 描述mysql binlog的同步点。当一个事务结束时需要记录同步点,当重新同步时可以从该同步点继续同步。<br>
*
* <ul>
* <li>mysql5.6.9之前,同步点是binlog file name + offset</li>
* <li>mysql5.6.9之后,同步点可以是gtid,当从mysql从库复制数据时,当一个从库崩溃,可以自动切换到其他从库,此时 gtid特... | 21.525 | 106 | 0.645761 |
ad8f0c5163768340e726c028facceb0e70ee756f | 1,472 | package io.github.boavenn.selfimprovementhelper.todos.todogroup.dto;
import io.github.boavenn.selfimprovementhelper.todos.todo.model.Todo;
import io.github.boavenn.selfimprovementhelper.todos.todogroup.model.TodoGroup;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Leng... | 28.862745 | 104 | 0.682745 |
b2883c5dccad16709f1e7fe59597ef1c407b4c61 | 193 | package com.plaid.client.response;
/**
* Response from /sandbox/item/set_verification_status endpoint.
*/
public final class SandboxItemSetVerificationStatusResponse extends BaseResponse {}
| 27.571429 | 83 | 0.818653 |
297e9c34afbfbd8ac559e56b44a7f16682924568 | 5,184 | /*-
* ============LICENSE_START=======================================================
* Copyright (C) 2020 Nordix Foundation.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in ... | 47.559633 | 134 | 0.687886 |
1a80f9638a5fe043272fecc6191504dd68fd9b6e | 2,141 | /**
* 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... | 32.938462 | 95 | 0.744045 |
88b91b471db875d2af6dbad56639db6cf55c64a3 | 2,820 | package p3.feedbackgenerator.htmlgenerator;
import java.util.ArrayList;
import p3.feedbackgenerator.message.CommentFeedbackMessage;
import p3.feedbackgenerator.message.FeedbackMessage;
import p3.feedbackgenerator.message.SyntaxFeedbackMessage;
import p3.feedbackgenerator.token.FeedbackToken;
public class HtmlTableTu... | 30.652174 | 75 | 0.745035 |
b4e50540d7ffc9cbc2600d4243fec01baa1ea083 | 781 | /********************************************************************
********************************************************************/
package jtersow.interceptors;
import jtersow.components.AppHandler;
import jtersow.components.AppReflection;
import jtersow.servlet.application.InterceptorHandler;
public clas... | 33.956522 | 70 | 0.527529 |
37e84cc3a0f937088538b5d89832af9720601919 | 2,241 | /**
* Copyright (c) 2015, 玛雅牛[李飞] (lifei@wellbole.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 app... | 29.88 | 89 | 0.709058 |
9fb1873c1b28916ea5188847be210f775992376e | 1,310 | /*
* Copyright 2010-2021 James Pether Sörling
*
* 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 o... | 25.192308 | 86 | 0.723664 |
cb2cfc7dd4fd525b65e962005d8d34cef7bef118 | 1,371 |
package com.farsunset.httpserver.netty.iohandler;
import com.farsunset.httpserver.netty.http.NettyHttpResponse;
import io.netty.channel.ChannelFutureListener;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
import io.netty.ha... | 29.170213 | 128 | 0.71116 |
26d85b815c9197c656a3e8ebe95d8f5e9a802eb3 | 1,359 | /*
* Copyright 2004-2010 the Seasar Foundation and the Others.
*
* 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.886364 | 71 | 0.716703 |
b50140e93e763aec5771145c4df7201dd14f87cc | 3,163 | /**
*
*/
package org.ovirt.engine.core.bll.adbroker;
import java.security.PrivilegedAction;
import javax.naming.directory.SearchControls;
import javax.security.auth.Subject;
import javax.security.auth.login.LoginContext;
import org.ovirt.engine.core.ldap.LdapProviderType;
import org.springframework.ldap.core.NameC... | 30.413462 | 145 | 0.717989 |
f36627a77da166ad1f8d9bc184359183167f052e | 620 | package saedc.example.com.Model.Dao;
import java.util.List;
import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import saedc.example.com.Model.Entity.User;
@Dao
public interface UserDao {
@Query("SELECT C... | 20 | 52 | 0.724194 |
63aca1a8cb8277d9a50cac7e01c99492045515e5 | 267 | package com.dimdol.sql;
public enum Statement {
INSERT_INTO,
DROP_DATABASE,
ALTER_TABLE,
DROP_TABLE,
TRUNCATE_TABLE,
CREATE_INDEX,
DROP_INDEX,
CREATE_VIEW,
CREATE_OR_REPLACE_VIEW,
DROP_VIEW
} | 10.68 | 28 | 0.602996 |
82d070ff77d46c3f33e0cf330a6b02e6499a1ea6 | 10,013 | package gov.nih.nci.evs.reportwriter.core.util;
import gov.nih.nci.evs.restapi.util.*;
import com.opencsv.CSVReader;
import java.io.*;
import java.text.*;
import java.util.*;
/**
* <!-- LICENSE_TEXT_START -->
* Copyright 2011, MSC. This software was developed in conjunction
* with the National Cancer Institute,... | 33.046205 | 120 | 0.658244 |
dbf5cf1e32590a573d19eb255bbf703caa5b77fb | 1,023 | /*
*
* Headwind MDM: Open Source Android MDM Software
* https://h-mdm.com
*
* Copyright (C) 2019 Headwind Solutions LLC (http://h-sms.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 Licens... | 25.575 | 75 | 0.683284 |
095e82f98654f613a68252a00ebe2b71b82d88c5 | 3,365 | package com.thinkgem.jeesite.common.aop.processor;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.reflect.MethodSignature;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.an... | 36.182796 | 127 | 0.807132 |
64256a0925bdd856c2fa9c625fbded88d42f59f3 | 1,416 | package org.neo4j.arrow.job;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.neo4j.arrow.gds.Edge;
public class EdgePackingTest {
@Test
public void testEdgePackingLogic() {
long startId = 123;
long endId = 456;
boolean isNatural = true;
l... | 35.4 | 79 | 0.627825 |
c1a6dc57fc14d8bb748debe3266d95026fe49e29 | 9,825 | /*
* Copyright 2010-2011, Sikuli.org
* Released under the MIT License.
*
*/
package org.sikuli.script;
import java.io.*;
import java.awt.*;
import java.awt.image.*;
import java.awt.event.*;
import java.util.Date;
import javax.swing.*;
import javax.imageio.*;
public class CapturePrompt extends TransparentWindow im... | 28.561047 | 124 | 0.564885 |
0d1f12eee28af936da1cac6388636d0913a489c7 | 4,904 | package de.dietzm.booksintoapps.servicespublic;
import java.util.Iterator;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import javax.ws.rs.Consumes;
import javax.ws.rs.FormParam;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
im... | 28.678363 | 151 | 0.731444 |
0143f9fee1e8f455cb1a9b40367dba463a587a78 | 629 | package io.github.frame.prj.validate.rule;
import io.github.frame.prj.validate.ValidateONGL;
import io.github.util.StringUtils;
import java.math.BigDecimal;
/**
* 数值小于等于校验
*
* @author Updated by 思伟 on 2020/8/6
*/
public class MinIncludeValidate {
public static String exec(Object obj, String param, String va... | 28.590909 | 115 | 0.677266 |
080c9b64433a2c171e4a88985f8f255f31f3454d | 2,578 | /*
* Copyright 2016 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 "license" ... | 28.644444 | 85 | 0.610551 |
937390a2999ff448b7dd163115e0b0d838127fdc | 373 | package com.masivian.casino.dto;
import com.masivian.casino.models.Roulette;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
@AllArgsConstructor
public class ResultsDto {
@Getter
@Setter
private int winningNumber;
@Getter
@Setter
private String color;
@Gett... | 13.321429 | 43 | 0.72118 |
744e89e004fd94d375909adbd71e884c71da1665 | 1,428 | package com.spring4all.digitalsign.demo.controller;
import com.spring4all.digitalsign.demo.utils.HttpClientUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.io.... | 28 | 131 | 0.651961 |
9c67dfc2649941dc69097c3f15ed61018260e5ff | 326 | package apidez.com.databinding.model.entity;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* Created by nongdenchet on 10/21/15.
*/
public class GoogleSearchResult {
@SerializedName("status")
public String status;
@SerializedName("results")
public List<Place> resul... | 18.111111 | 50 | 0.730061 |
cd6e19cec8fb8fe117cfd78649ae36165fdeeee8 | 3,337 | package ai.labs.property.impl;
import ai.labs.expressions.Expression;
import ai.labs.expressions.utilities.IExpressionProvider;
import ai.labs.expressions.value.Value;
import ai.labs.property.model.PropertyEntry;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import java.util.Arrays;
import ... | 43.337662 | 141 | 0.643093 |
48bb0db9a5bb583d5fe5e33e314a35887640cf34 | 2,837 | package com.green.bank;
import java.io.IOException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServl... | 31.876404 | 100 | 0.756785 |
ee586de73269141be68df254da2411d684539d97 | 2,898 | package igorilin13.com.github.main.datastructures.tree;
import org.jetbrains.annotations.NotNull;
public class OrderedStatisticsTree<K extends Comparable<K>> extends RedBlackTree<K> {
@Override
TreeNode<K> createNode(K key) {
return new OrderedStatisticsTreeNode<>(key);
}
@Override
void ... | 28.411765 | 97 | 0.586611 |
19103f52dcedc00956c173805c47900f8b474936 | 8,534 | /*
* The MIT License
*
* Copyright 2019 Ing. Dexus José Pérez <jose_perezmiranda@outlook.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 ... | 46.63388 | 166 | 0.678931 |
5dd67521ee8a53ac8f33b47a0a0f1c6874cb076f | 572 | package com.vladmihalcea.hibernate.masterclass.laboratory.batch;
import java.util.Properties;
/**
* DefaultDialectOrderedBatchingTest - Test to check ordered inserts and updates batching
*
* @author Vlad Mihalcea
*/
public class DefaultDialectOrderedBatchingTest extends DefaultDialectBatchingTest {
@Override... | 28.6 | 89 | 0.741259 |
b050206fe64442742f6fceda47e6587061677efa | 1,033 | package edu.virginia.vcgr.genii.client.jsdl;
import java.io.Serializable;
import java.util.Map;
import edu.virginia.vcgr.genii.client.jsdl.Filesystem;
public class FilesystemRelative<Type> implements Serializable
{
static final long serialVersionUID = 0L;
private String _filesystemName;
private Type _target;
p... | 22.955556 | 89 | 0.738625 |
26173b6cb051f23bd7359eb8b13b59c07a7c8214 | 2,382 | package com.fabianuribe.newssearch.adapters;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.fabianuribe.newssearch.R;... | 29.775 | 91 | 0.667086 |
f739d690562369eb65688db8d26f974c1d1e4585 | 1,459 | package ellus.ESM.roboSys;
import java.awt.Toolkit;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.StringSelection;
import java.awt.datatransfer.UnsupportedFlavorException;
import java.io.IOException;
import java.util.Timer;
import java.util.TimerTask;
... | 26.053571 | 80 | 0.636737 |
392689cb69fc0fb086f2296356872e875c5c8531 | 229 | package com.fh.fhzhihudaily.ui.base;
/**
* LoadingView <br/>
* Created by Jason.fang on 2016-04-25.
*/
public interface LoadingView {
void showLoading();
void hideLoading();
void showError(CharSequence msg);
}
| 15.266667 | 39 | 0.676856 |
e5202ca9ffcced928c1b729e6557361fe111ec99 | 307 | package com.jsong.algorithm.linear_program;
/**
*
* 线性规划求解
*
* @see 线性规划算法详解 https://blog.csdn.net/we_phone/article/details/81268857
* @see 单纯形法算法 https://www.hrwhisper.me/introduction-to-simplex-algorithm/
* @author jsong
* @date 12/7/2018 1:38 PM
* @since 1.0
*/
public class LinearProgram {
}
| 19.1875 | 74 | 0.70684 |
cad1a929eb44a226fb2ff6c9a054eac0d4c25492 | 1,263 | package gov.va.med.srcalc.web.controller;
import gov.va.med.srcalc.web.view.VariableEntry;
import java.util.*;
import org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder;
/**
* For testing purposes. Represents a set of dynamic variable value parameters
* to add to an HTTP request.
*/
publi... | 25.77551 | 82 | 0.639747 |
cd1d35b458b6a99c6b36eb0ef727ff8f06331cbc | 1,269 | package mekanism.common;
import universalelectricity.core.item.IItemElectric;
import ic2.api.IElectricItem;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
public class SlotEnergy
{
public static class SlotCharge ext... | 29.511628 | 142 | 0.745469 |
252fc8deec2879e682bcddb37ee368db220da8dd | 1,313 | package com.woaiqw.library.model;
import java.util.ArrayList;
import java.util.List;
/**
* Created by haoran on 2018/10/22.
*/
public class Counter {
private static volatile Counter instance = null;
private List<Image> list = new ArrayList<>();
public static Counter getInstance() {
if (null ==... | 22.637931 | 68 | 0.50952 |
a5d0723e1970089769d3c5b205544e8b6b26f7f2 | 417 | package com.jyutwaa.zhaoziliang.glimpse.Model.MainBgImage;
import com.google.gson.annotations.SerializedName;
/**
* Created by zhaoziliang on 17/2/5.
*/
public class ImageResponse {
@SerializedName("data")
private ImageData imageData;
public ImageData getImageData() {
return imageData;
}
... | 18.954545 | 58 | 0.70024 |
644491d39aa193164509addb5b7d8ccea8048245 | 260 | package yinlei.com.mvpdemo.mvp.view.impl;
import yinlei.com.mvpdemo.mvp.view.MvpView;
/**
* 在此写用途
*
* @version V1.0 <描述当前版本功能>
* @FileName: BaseMvpView.java
* @author: 若兰明月
* @date: 2016-08-14 23:07
*/
public class BaseMvpView implements MvpView {
}
| 16.25 | 45 | 0.696154 |
78b81773ea00d14eaea32b4ad6f4d96c3ab02610 | 1,191 | package com.neusoft.core.dubbo;
import org.apache.log4j.MDC;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.alibaba.dubbo.rpc.Filter;
import com.alibaba.dubbo.rpc.Invocation;
import com.alibaba.dubbo.rpc.Invoker;
import com.alibaba.dubbo.rpc.Result;
import com.alibaba.dubbo.rpc.RpcException;
impo... | 29.04878 | 89 | 0.68094 |
40a39ee40920d72e9dc3205d68cf2d215409dc4e | 804 | package sagex.miniclient.android.ui.settings;
import android.os.Bundle;
import android.preference.Preference;
import androidx.preference.PreferenceFragmentCompat;
import sagex.miniclient.android.R;
import sagex.miniclient.android.prefs.AndroidPrefStore;
public class FixedRemuxingFragment extends PreferenceFragmentCo... | 32.16 | 152 | 0.829602 |
4daf03a4fe44d77b9cbea8406f1e2f553f6b6dde | 5,751 | /*
* 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 ... | 39.122449 | 123 | 0.696575 |
6b855fe975f69cf3efaaf3513565f6d4fe897e60 | 1,440 | package org.fkjava.menu.repository;
import java.util.List;
import org.fkjava.menu.domain.Menu;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.sp... | 28.235294 | 108 | 0.781944 |
802e7c4d4d3800f2b629d30208fb411bc2014a3d | 5,678 | //| Copyright - The University of Edinburgh 2011 |
//| |
//| Licensed under the Apache License, Version 2.0 (the "License"); |
//| you may not use this file except in compliance with the License. |
//| You ... | 40.269504 | 130 | 0.643184 |
d6b3efcca1081045083cd22aa8f343bcd2f2c81a | 1,473 | /*
* Copyright © 2017 camunda services GmbH (info@camunda.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 ... | 32.021739 | 92 | 0.740665 |
89f368c4216c94d6ac816c766e70a1997e25771a | 1,695 | package pokecube.core.moves.implementations.attacks.special;
import net.minecraft.entity.EntityLivingBase;
import pokecube.core.interfaces.PokecubeMod;
import pokecube.core.interfaces.pokemob.moves.MovePacket;
import pokecube.core.moves.PokemobDamageSource;
import pokecube.core.moves.templates.Move_Basic;
pub... | 38.522727 | 114 | 0.637168 |
b1bbb4f64a4df5b8410120ae8561ac7cf09fde62 | 18,743 | /*
* Copyright (C) 2015 Jared Luo
* jaredlam86@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 ap... | 38.095528 | 186 | 0.596809 |
0ccb3ecf84ce2ed0fbdac48bba5f66c85bbf5e9f | 2,724 | /*
* 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 model;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet... | 33.62963 | 129 | 0.567915 |
e4e32daebb33f09456f898bc111cd52a5c18dea9 | 282 | package org.brapi.test.BrAPITestServer.repository.core;
import org.brapi.test.BrAPITestServer.model.entity.pheno.TraitEntity;
import org.brapi.test.BrAPITestServer.repository.core.BrAPIRepository;
public interface TraitRepository extends BrAPIRepository<TraitEntity, String> {
}
| 31.333333 | 79 | 0.847518 |
07f24e84b11557a6209ca39dfa9f64a60a48e95c | 3,271 | package br.ufsc.ppgcc.experion.model.evidence;
import br.ufsc.ppgcc.experion.extractor.evidence.PhysicalEvidence;
import br.ufsc.ppgcc.experion.model.evidence.builder.LogicalEvidenceBuilder;
import br.ufsc.ppgcc.experion.model.expert.Expert;
import br.ufsc.ppgcc.experion.view.expertise.Expertise;
import com.fasterxml.... | 25.960317 | 112 | 0.679303 |
e268bb8e872e6cad1f04914be3fed9397de23c44 | 4,585 | package dev.cstv.musify.domain;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.hibernate.validator.constraints.Range;
import org.hibernate.validator.constraints.URL;
import javax.persistence.*;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.ArrayList;
impo... | 23.156566 | 101 | 0.592803 |
93c49aec5c67c363e1127b4072ce7161cc4c2a5c | 5,828 | /*
* 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.886076 | 94 | 0.652539 |
00d411d3687a00838e0c121c0ac5c42028f9e4f4 | 474 | package com.wytings.scananimation;
import android.app.Activity;
import android.os.Bundle;
import android.widget.FrameLayout;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.... | 27.882353 | 66 | 0.748945 |
4eb0510e0333e50a7d739c2f2edd7baa6b39b906 | 4,299 | /*
* Copyright (C) 2017-2018 Dremio Corporation
*
* 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 l... | 42.147059 | 153 | 0.788788 |
e9870d484a3b4f850775256b1059ba611e1a97b8 | 6,109 | /*
* Copyright 2017 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 app... | 44.591241 | 114 | 0.624161 |
02563e4ce7268f69bbfb7b7208f45ddcda66934a | 807 | package org.erpmicroservices.accounting_and_budgeting.endpoint.rest.accounting_and_budgetingapirest.models;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.data.jpa.domain.AbstractPersistable;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;... | 25.21875 | 107 | 0.840149 |
a7dbca8bb7c84099abdabe15c7281d2e386ace93 | 530 | package com.atguigu.gulimall.order.dao;
import com.atguigu.gulimall.order.entity.OrderEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* 订单
*
* @author lnj
* @email tongjianwhu@gmail.com
* @date 2021-02-2... | 26.5 | 123 | 0.762264 |
244ff9d0a1ba5c3218582906343c822e2144ac80 | 1,644 | package zj.echo;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.Channel;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.nio.NioServerSocketChanne... | 35.73913 | 115 | 0.620438 |
ddaf0af2e1c604ea503396160102c3add71d06b4 | 10,049 | package zamorozka.ui;
import com.google.common.base.Predicates;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.EntitySelectors;
import net.minecraft.util.math.Vec3d;
import net.minecraft.util.math.*;
import j... | 38.949612 | 270 | 0.66335 |
8251b0bfba101354043f8971ba76adbc29f0bc5d | 5,663 | /**
* Copyright 2013 Giwi Softwares (http://giwi.free.fr)
*
* 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 requir... | 28.174129 | 81 | 0.682324 |
79e30865f71114081ea8ccc2997793d1a770f422 | 2,582 | /**
* core/is_filename_with_wildcard.java
*
* This file was generated by MapForce 2017sp2.
*
* YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE
* OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.
*
* Refer to the MapForce Documentation for further details.
* http://www.altova.com/mapforce
*/
package com.mapforc... | 22.649123 | 531 | 0.687452 |
23304e3c5a695bc84b5a43f2a109dadaf6215183 | 499 | package org.soaringforecast.rasp.soaring.json;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class SUARegionFiles {
@SerializedName("sua_regions")
@Expose
private List<SUARegion> suaRegionList = null;
public List<SUARegio... | 22.681818 | 65 | 0.735471 |
09974fb22eed72ab4052744b930b08a44025046a | 1,171 | package se.bluebrim.view.example;
import java.awt.Dimension;
import java.awt.geom.Dimension2D;
import java.util.Iterator;
import se.bluebrim.view.Layoutable;
import se.bluebrim.view.ParentView;
import se.bluebrim.view.layout.AbstractLayout;
/**
* Set the size to fraction of the container and put them in
... | 25.456522 | 128 | 0.672075 |
f4741745982999a42ac2725e264096a1828a296a | 1,030 | package b.l.c.b;
import java.util.AbstractSet;
import java.util.Collection;
import java.util.Iterator;
import java.util.Objects;
import java.util.Set;
public abstract class a0<E> extends AbstractSet<E> {
public boolean removeAll(Collection<?> collection) {
Objects.requireNonNull(collection);
if (c... | 27.837838 | 74 | 0.541748 |
a26ea8d70bfff77355e9d09f706e8f930b53890a | 4,630 | /**
* Apache Licence Version 2.0
* Please read the LICENCE file
*/
package org.hypothesis.data.model;
import javax.persistence.Access;
import javax.persistence.AccessType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationTy... | 24.240838 | 154 | 0.689849 |
d42376f8df99a339300032b2927286b5d127a8e2 | 1,087 | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.storageimportexport.v2016_11_01;
import rx.Obser... | 36.233333 | 124 | 0.769089 |
2b512f6e604c72a8809d6f8c092c2d11186ab513 | 2,270 | /*
Copyright (c) 2013, Groupon, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disc... | 41.272727 | 73 | 0.652863 |
a3e6e58b117bd04bfa71864fb79ab8ed0ffc76bc | 180 | // PARSER_WEEDER,CODE_GENERATION
public class J1_ArrayCreateAndIndex {
public J1_ArrayCreateAndIndex() {}
public static int test() {
return 123 + (new int[1])[0];
}
}
| 22.5 | 38 | 0.694444 |
9572dc8f664b26bb652269c6123772ed4f14982f | 449 | package easy.cloud.core.oauth;
import org.crazycake.shiro.RedisManager;
/**
* @author daiqi
* @create 2018-06-23 16:21
*/
public class EcCoreOauthApplicationTest {
public static void main(String[] args) {
RedisManager redisManager = new RedisManager();
redisManager.setHost("120.78.74.169");
... | 26.411765 | 87 | 0.683742 |
6277e47c876ea68b9f320060f0fc4116a08bc723 | 694 | package com.github.lit.plugin.exception;
import org.springframework.context.annotation.Condition;
import org.springframework.context.annotation.ConditionContext;
import org.springframework.core.type.AnnotatedTypeMetadata;
/**
* User : liulu
* Date : 2017/6/18 16:35
* version $Id: EnableExceptionHandlerCondition.ja... | 34.7 | 111 | 0.78098 |
68f28c85b4a9a6875e2df2144b66524b8de9a3d1 | 3,580 | package seedu.cakecollate.ui;
import java.util.Comparator;
import java.util.Map;
import javafx.fxml.FXML;
import javafx.scene.Node;
import javafx.scene.control.Label;
import javafx.scene.layout.FlowPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Region;
import seedu.cakecollate.model.order.Order;
im... | 32.252252 | 114 | 0.656145 |
72c9d286b85b86ac2f821106505bfa5484132d1a | 2,919 | /*******************************************************************************
Copyright 2008, Oracle and/or its affiliates.
All rights reserved.
Use is subject to license terms.
This distribution may include materials developed by third parties.
****************************************************... | 32.797753 | 89 | 0.495718 |
0744e3b10b20de95244b8ff68628e7ca10d453a6 | 3,655 | /*
* 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
* di... | 39.728261 | 123 | 0.693297 |
18c0f621918d1e2bd5322adfb06bf9fc2310c237 | 7,547 | /*******************************************************************************
* Copyright SemanticBits, Northwestern University and Akaza Research
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/caaers/LICENSE.txt for details.
******************************************... | 54.688406 | 144 | 0.77077 |
5c5bce47a94a3ac0327c4d31ba59769299677e2d | 92 | /**
* Spring Security configuration.
*/
package com.bytatech.ayoos.consultation.security;
| 18.4 | 49 | 0.76087 |
971a6f5547412db81c9b97d8653c99664782250b | 119 | package net.gobbob.mobends.client.model;
public interface IBendsModel
{
public Object getPartForName(String name);
}
| 17 | 43 | 0.806723 |
a49109ef89814eca5514476fb9d784f03b400674 | 3,123 | package org.deta.tinos.list;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.deta.tinos.stable.Stable;
public class ListValidation{
public static boolean ListSetsCheck(List<Object> list, String setsType) {
Iterator<Object> iterator= list.iterator();
while(iterator... | 25.598361 | 75 | 0.614473 |
2d8f0eabd2c2faba5e3988118d13a26ad07d6b3a | 1,195 | package conditionals;
public class Simulator {
public static void main(String[] args) {
int x = 10;
int y = 100;
/*
* Conditional statements apply to the next line OR
* block of code
*/
// if (x > y)
// System.out.println("X is greater than y!");
// else
// System.out.println("X is not greater ... | 21.727273 | 59 | 0.574059 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.