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 |
|---|---|---|---|---|---|
f5c6dd81dc8c64a687e3f1d641e9fff23b07e6df | 4,969 | /*MIT License
*
*Copyright (c) 2021 AlgoTeam
*
*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 use, copy, modify, merge, p... | 77.640625 | 323 | 0.782652 |
2e4e3141e862c180430f44ea193a85033898597b | 1,753 | package org.radargun.stages.test.legacy;
import org.radargun.Operation;
/**
* Implementations specify what operations should be executed during the stress test.
* Each stressor thread uses single instance of this class.
*
* @author Radim Vansa <rvansa@redhat.com>
*/
public abstract class OperationLogic {
... | 29.711864 | 109 | 0.702225 |
b5e7eebc1bd26b41a1bbcb3a87538e6f7f974c19 | 7,057 | package id.unify.gaitauth_sample_app.fragments;
import android.annotation.SuppressLint;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.AsyncTask;
import android.os.Bundle;
import androidx.annotation.NonNul... | 34.257282 | 129 | 0.64064 |
d371d29ec23146cd9e04c8935f1357ada632c2b7 | 4,401 | import java.io.*;
public class Test {
public static void main(String[] args) {
int[] array = {
8413, 9917, 5236, 1644, 4512, 7173, 3616, 2606, 8762, 2968, 595, 4903, 7077, 3509, 533, 5523, 1192, 7378, 8718, 2400,
1526, 9543, 7403, 5739, 7022, 4550, 1729, 8374, 8270, ... | 64.720588 | 148 | 0.569643 |
fe71e1d0ee303b6b56210a896431f3ec6221134c | 206 | package org.dotwebstack.framework.core.model;
import java.util.Map;
import javax.validation.Valid;
import lombok.Data;
@Data
public class Context {
@Valid
private Map<String, ContextField> fields;
}
| 15.846154 | 45 | 0.771845 |
31263abbd07dc600042cff88f5467994e12a6b37 | 1,226 | package com.road.crawler.meizitu.crawler;
import java.util.Date;
import javax.annotation.Resource;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import com.geccocrawler.gecco.pipeline.Pipeline;
import com.road.crawler.meizitu.exec.DownloadAction;
import co... | 27.863636 | 76 | 0.769984 |
f916491970b178ef0025a4b88fb0974949e25858 | 6,302 | package io.opensphere.analysis.export;
import java.awt.Component;
import java.awt.Dialog.ModalityType;
import java.awt.Dimension;
import java.awt.EventQueue;
import java.io.File;
import javafx.application.Platform;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JTable;
imp... | 39.886076 | 131 | 0.690733 |
c37ce7547313f779d41931f6963ffbc8a4a7601b | 1,035 | package com.xuegao.im.manager.impl;
import com.xuegao.im.domain.doo.SysUser;
import com.xuegao.im.manager.interfaces.ISysUserManager;
import com.xuegao.im.mapper.ISysUserMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfram... | 29.571429 | 88 | 0.740097 |
21e6a111ccc72fcfc9308bbac8f13dd89c3cd22e | 12,019 | package us.ihmc.robotics.math.frames;
import javax.vecmath.Point2d;
import javax.vecmath.Tuple2d;
import javax.vecmath.Tuple3d;
import javax.vecmath.Tuple3f;
import javax.vecmath.Vector2d;
import us.ihmc.robotics.dataStructures.listener.VariableChangedListener;
import us.ihmc.robotics.dataStructures.registry.YoVariab... | 28.822542 | 165 | 0.707879 |
5b0ef53f36367d8a69f05711f62b0f6cbdf4cba1 | 3,609 | package servlet;
import com.google.gson.Gson;
import java.io.PrintWriter;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
im... | 29.826446 | 114 | 0.683015 |
ccee7ed6da6038c41b8f56433353acd2c5b6b903 | 5,100 | /*
* MIT License
*
* Copyright (c) 2018 Udo Borkowski, (ub@abego.org)
*
* 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
* ... | 39.230769 | 107 | 0.671961 |
65c31bc2034a27e029ff9bddcc97c93306656216 | 273 | package org.activiti.engine.identity;
import org.activiti.engine.query.NativeQuery;
/**
* Allows querying of {@link org.activiti.engine.identity.Group}s via native (SQL) queries
*
*/
public interface NativeGroupQuery extends NativeQuery<NativeGroupQuery, Group> {
} | 22.75 | 90 | 0.772894 |
f5baa26e40b47fe77cc97834e1caaedf4fe2a949 | 471 | package com.leyou.order.pojo;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;
@Data
@Table(name = "tb_order_detail")
public class OrderDetail {
@Id
@KeySql(useGeneratedKeys = true)
private Long id;
private Long orderId;
... | 20.478261 | 43 | 0.726115 |
8e277da8aebffb7f95fe171fa0e6d74f0dfdd737 | 3,093 | package com.hyperledger.export.propwindow;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
impo... | 25.775 | 102 | 0.648561 |
3dcafae2bc79bd504b72679723a6405a7c56ca41 | 667 | package org.charlie.chess.pieces;
import org.charlie.chess.Board;
import org.charlie.chess.Square;
import org.charlie.chess.moves.PossibleMoves;
import org.charlie.chess.moves.StraightLineMove;
import org.charlie.chess.players.Player;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static o... | 27.791667 | 91 | 0.752624 |
8b57d50bc33b0497d006d2cf7bc252a5c5112fed | 814 | package com.atguigu.gmall.sms.api;
import com.atguigu.gmall.common.bean.ResponseVo;
import com.atguigu.gmall.sms.vo.ItemSaleVo;
import com.atguigu.gmall.sms.vo.SkuSaleVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.w... | 31.307692 | 96 | 0.765356 |
28070a97e0dae9c7bfb1200350167352f8c24c2c | 1,556 | /*
* Copyright (c) 2012 M. M. Naseri <m.m.naseri@gmail.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 use, copy, m... | 33.826087 | 97 | 0.694087 |
ee60652b6ff8095a128716d33acc0db731e98140 | 7,146 | package kh.edu.npic.unitgrader.grade;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Scanner;
import javax.swing.JFileChooser;
import javax.swing.JOptionPane;
im... | 27.590734 | 144 | 0.683599 |
f7d1f3d5233815590b72b98b1b2339a621d93e30 | 6,456 | /*
* Licensed to Elastic Search and Shay Banon under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Elastic Search licenses this
* file to you under the Apache License, Version 2.0 (the
* "License"); you m... | 53.8 | 167 | 0.68355 |
0ffb569263d5c95e99c94b91585a6006ba5183f5 | 1,207 | package cc.sylar.elasticsearch.proxy.beans.search.request.geo;
import java.io.Serializable;
/**
* @author sylar
* @Description:
* @date 2018/10/30 3:17 PM
*/
public class GeoPoint implements Serializable {
/**
* 经度
*/
private Double lon;
/**
* 纬度
*/
private Double lat;
pri... | 18.014925 | 62 | 0.502071 |
368a91a44c3ec723837982fc99f296cff337b16d | 5,898 | /*
* The MIT License
*
* Copyright 2021 Vladi.
*
* 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 use, copy, modify, m... | 39.059603 | 146 | 0.683452 |
8b01375e7970212cb7ecf243a18c8bfe39a4a3d9 | 9,335 | /*
* 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 br.org.gdt.beans;
import br.org.gdt.model.GchAlternativas;
import br.org.gdt.model.GchAlternativasperguntas;
import b... | 31.537162 | 172 | 0.652598 |
ca1a5f595857aa28821b607cc9eb8fa51a3fecd6 | 1,135 | package team.univ.magic_conch.bundle;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.EntityGraph;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;
import te... | 36.612903 | 96 | 0.787665 |
5c655aa6dc96ed72090a4cf0c2b1d0488fa8af1c | 2,946 | /*
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Server
* Copyright (C) 2011 Zimbra, Inc.
*
* The contents of this file are subject to the Zimbra Public License
* Version 1.3 ("License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
... | 35.926829 | 116 | 0.712492 |
04933c3c31a17432b76ed44eccdb8fedf5dfb086 | 757 | package apitrace.github.io.eglretrace;
import android.net.LocalServerSocket;
import android.net.LocalSocket;
import java.io.IOException;
public abstract class AbstractServer extends Thread {
public AbstractServer(String name) throws IOException {
m_localServer = new LocalServerSocket(name);
}
pr... | 23.65625 | 59 | 0.627477 |
42969a91428400c9fd4663fe45a284e17ac65b90 | 906 | package org.educama.common.exceptions;
/**
* Exception to throw if resource cannot be found.
*/
@SuppressWarnings("serial")
public class ResourceNotFoundException extends RuntimeException {
private final String messageKey;
/**
* Constructor to initialize exception with a message key to translate.
... | 25.166667 | 91 | 0.6766 |
06b8e6a9f74346688bdb457cff07b5daae351ee8 | 1,874 | /*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
* Version 2.0; y... | 40.73913 | 141 | 0.770544 |
a7b42a3c21263b70ece6cf14cbe887985428d51d | 7,867 | /*
* Copyright (c) 2009-2012 jMonkeyEngine
* 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... | 41.188482 | 221 | 0.619169 |
70549bc5cd6578d5d1ba48bbd8b56f76b4084d7e | 485 | package com.cloudskol.apiman.base64;
import com.cloudskol.apiman.base.APIManException;
import org.junit.Test;
/**
* @author tham
*/
public class Base64ManagerTest {
@Test
public void testEncode() throws APIManException {
final String encoded = Base64Manager.getInstance().encode("Thamizharasu");
... | 24.25 | 82 | 0.71134 |
cae33708993baa08973768a802eac811e62aea65 | 1,294 | package sumofmultiples;
import java.util.ArrayList;
/** program to find all multiples of 3 or 5 below 1000 then find the result of adding them all together. **/
public class SumOfMultiples {
public static void main(String[] args) {
// Calculate sum of all multiples.
long sumOfMultiples =... | 30.093023 | 108 | 0.578825 |
6bec7b0e062f663b8cda71156ccca6427fc59c9e | 850 | package com.misty.jmm;
/**
* @ClassName VolatileDemoTest
* @Description TODO
* @Author HeTao
* @Date 2021/4/15 15:35
* @Version 1.0
**/
public class VolatileDemoTest {
private static int num = 0;
public static void main(String[] args) throws InterruptedException {
Thread[] threads = new Thread[... | 22.972973 | 72 | 0.476471 |
589dcb27d5f7e50d40107af028ac269f3ff12472 | 5,445 | package emissary.place.sample;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import emissary.core.IBaseDataObject;
import emissary.place.ServiceProviderPlace;
import emissary.server.mvc.DocumentAction;
/**
... | 29.917582 | 116 | 0.553168 |
baa291ceef61012fbb043ba17e59369060bf4c6a | 1,625 | /*
* Copyright 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" file ... | 33.854167 | 117 | 0.710769 |
cdb0dca6a336f658c18a1fd526d194b10b0aa424 | 2,061 | /*
* JBoss, Home of Professional Open Source
* Copyright 2016, Red Hat, Inc., and individual contributors as indicated
* by the @authors tag.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the Licen... | 38.886792 | 120 | 0.749636 |
c77cd80ec3db3fa95a8c12873b00a29ce8c21125 | 65,811 | /*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 31.869734 | 149 | 0.645622 |
d1d45cb9f1e8eac2a502bd31402cef7087824d62 | 10,398 | /*
* Copyright 2008 Marc Boorshtein
*
* 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 ... | 32.595611 | 136 | 0.744278 |
10d4b244a39bf3b06f7518e5a851ca93e4eb1ab5 | 3,268 | /*
* 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 catastro.logica.servicios;
import accesoDatos.AccesoDatos;
import catastro.logica.entidades.TipoLote;
import java.sql... | 40.345679 | 98 | 0.621175 |
55636af34528ebd6834952593636e858a91c4db1 | 1,946 | /*
* Copyright (C) 2007-2009 Jive Software. 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
*
* Unles... | 37.423077 | 102 | 0.732271 |
cf0fa1ff362a4d02f2589d44edcf9a36c657d47c | 11,618 | package cf.khanhsb.icare_v2.Fragment;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.I... | 47.227642 | 133 | 0.611809 |
ab9a19ac4c14236aea0566c0cdd20b84b1e44461 | 829 | package net.hotslicer.pancake.material;
import net.kyori.adventure.text.Component;
import net.minestom.server.item.Material;
import net.minestom.server.utils.NamespaceID;
/**
* @author Jenya705
*/
public interface PancakeMaterial {
static PancakeMaterial minestom(Material material) {
return new Minesto... | 23.685714 | 126 | 0.735826 |
3751b8d5be1f8cffd0159fa6b5776f21ca34631d | 23,472 | /*
* 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 ttaiit.blogspot.com;
import javax.swing.JOptionPane;
/**
*
* @author shikha
*/
public class fork extends javax.swing.JFrame... | 42.521739 | 176 | 0.564886 |
42885f47f6064e66c476ae82ef01327495376a72 | 599 | package javarraria.inventory;
public class Inventory {
private String name = "";
private ItemStack[] slots;
public Inventory(String name,int slotsN) {
this.name = name;
this.slots = new ItemStack[slotsN];
}
public boolean isEmpty(int slot) {
return slots[slot] == null;
}
public int getC... | 23.038462 | 47 | 0.647746 |
2d246db297a1b973b579ecb408490f46dec93ba7 | 5,679 | /*
* 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 ... | 45.798387 | 139 | 0.735165 |
fb9ff81d6e5023ae51918d34c9ce24d497b31f1d | 910 | package com.five35.minecraft.greenthumb;
import java.util.Map;
import net.minecraftforge.fml.relauncher.IFMLLoadingPlugin;
import net.minecraftforge.fml.relauncher.IFMLLoadingPlugin.MCVersion;
import net.minecraftforge.fml.relauncher.IFMLLoadingPlugin.Name;
import net.minecraftforge.fml.relauncher.IFMLLoadingPlugin.Tr... | 25.277778 | 81 | 0.791209 |
c6c868ccdcf3ccbf8d8efcd92503a4c496e8c6a8 | 706 | package com.easy.cloud.core.operator.sysfilterconfig.pojo.query;
import com.easy.cloud.core.basic.pojo.query.EcBaseQuery;
/**
* 描述:查询类
*
* @author THINK
* @date 2018-06-25 16:36:55
*/
public class SysFilterConfigQuery extends EcBaseQuery {
/**
* url的匹配模式
*/
private String urlPattern;
/**
... | 19.081081 | 64 | 0.641643 |
a7debaba2e3b444b8daf097066ff3ee83bf7ec4d | 7,229 | package com.ruoyi.merchant.controller;
import java.util.Date;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transacti... | 35.787129 | 123 | 0.736478 |
0a17664e085697f68b778f2206cdb1e938ad9f01 | 1,874 | package patternMatching.fcpm;
import patternMatching.fcpm.preprocessing.Product;
import patternMatching.fcpm.table.APTableStatisticsFactory;
import patternMatching.fcpm.table.DebuggingAPTable;
import patternMatching.fcpm.table.IAPTable;
import patternMatching.fcpm.table.array.ArrayBasedTable;
import patternMatc... | 42.590909 | 119 | 0.702775 |
0c8c3c32d0e182ce15189a06720bc99eaa78cb6a | 4,010 | package com.apollographql.apollo.sample.feed;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import androi... | 33.697479 | 92 | 0.763342 |
721abf603346dc38be455da48453ec36d3bca716 | 206 | package sudoku.constants;
public class Messages {
public static final String GAME_COMPLETE = "Congratulations, you habe won!";
public static final String ERROR = "An error has occured.";
}
| 25.75 | 81 | 0.713592 |
2bdf48e70240b2986c4d62b5ece5f3aeb538fe4d | 3,784 | package org.test.webcam.controller.view;
import java.io.Serializable;
import java.security.Principal;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.security.access.prepost.PreAuthorize;
import org.... | 39.010309 | 129 | 0.772463 |
2e6e834600def75ec7c43a3c32cf79fa505ba051 | 11,693 | /*
* Copyright 2013-2016 Brian Thomas Matthews
*
* 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 la... | 40.600694 | 126 | 0.671684 |
85444c2d690964c7afbd20eb47dc225123b7bc29 | 1,308 | package com.overlord.mathematics.iterative;
import java.util.Arrays;
/*
* @Description:
*
* @author MischaGeng
* @Created Date: 2020/03/30
* @Since JDK 1.8
* @Title: BinarySearch
* @ProjectName overlord
*
* @Modified by:
* @Modified date:
* @Problem no:
*/
public class BinarySearch {
public static voi... | 21.096774 | 91 | 0.511468 |
22caaaebac4e1b0c6f917746c4aca80a590802ef | 4,468 | package com.yunbao.video.dialog;
import android.content.Context;
import android.graphics.drawable.ColorDrawable;
import android.support.v7.widget.LinearLayoutManager;
import android.text.TextUtils;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;... | 31.687943 | 135 | 0.640107 |
65abd180644ebd4487cc0ce66d54cd70ae148ccd | 486 | package com.lgwork.sys.dao;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import com.lgwork.domain.po.FileStoragePO;
/**
*
* 文件储存
*
* @author irays
*
*/
public interface FileStorageDAO extends JpaRepository<FileStorageP... | 17.357143 | 117 | 0.751029 |
c2c3c25799773bfa4e920295d1d8e5658daba945 | 54,078 | // 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.itextpdf.text.pdf.codec;
import com.itextpdf.text.error_messages.MessageLocalization;
import com.itextpdf.text.pdf.RandomAccessFileOrArray;
im... | 39.444201 | 172 | 0.551278 |
f1bf8af39eec9a91cd1d4ba3f386f8c12504bfb2 | 2,895 | /**
* Copyright (C) 2008-2010 Matt Gumbley, DevZendo.org <http://devzendo.org>
*
* 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
*... | 30.15625 | 113 | 0.669775 |
b91c553d8d512e7ee9933d1bc5c80674ce3990ed | 4,790 | /**
* 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 under ... | 39.916667 | 118 | 0.719833 |
42fde27d280a7e7ae1801245e3705e934e4252c1 | 984 | package com.mcjty.mytutorial.setup;
import com.mcjty.mytutorial.blocks.FirstBlockScreen;
import com.mcjty.mytutorial.blocks.ModBlocks;
import com.mcjty.mytutorial.entities.WeirdMobEntity;
import com.mcjty.mytutorial.entities.WeirdMobRenderer;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.Scree... | 31.741935 | 102 | 0.779472 |
0ceb640e17172cb53d2aa02cc282f13ee181ed94 | 2,794 | /**
* <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... | 24.508772 | 82 | 0.675376 |
1cb6df1141077890589f29465a701b468e4b0f73 | 3,632 | /* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* (C) Copyright 2009-2020, Arnaud Roques
*
* Project Info: https://plantuml.com
*
* If you like this project or if ... | 26.129496 | 76 | 0.674284 |
b7b15818bab66fd0267a90da7f470db9c0a894b5 | 655 | package p;
import java.util.function.*;
class I<E> {
<F> String searchForRefs() {
return "";
}
/**
* @see I#searchForRefs()
*/
public void bar() {
this.searchForRefs();
Supplier<String> v1 = new I<Integer>()::<>searchForRefs;
Supplier<String> v2 = this::<>se... | 22.586207 | 70 | 0.584733 |
89a4d9408cca84d6cc42d774a5d6e4353ba8e330 | 3,489 | package cz.vutbr.fit.openmrdp.model;
import cz.vutbr.fit.openmrdp.model.base.RDFTriple;
import cz.vutbr.fit.openmrdp.model.informationbase.InformationBaseService;
import cz.vutbr.fit.openmrdp.model.informationbase.InformationBaseTestService;
import org.junit.Before;
import org.junit.Test;
import java.util.HashSet;
im... | 39.647727 | 147 | 0.752078 |
52554990c83085d37d3ac25c56c332ebeeac95d3 | 3,040 | package com.datastax.events;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import org.slf4j.Logger;
import org.sl... | 24.715447 | 85 | 0.679934 |
24ae30f8531ef11f055095901f11b9c70f0b1a6c | 1,550 | //
// ========================================================================
// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... | 33.695652 | 87 | 0.645806 |
403013f338c23ebd6fc429069c066f79ca73e019 | 4,720 | package com.angelolamonaca.bitcoinWalletTracker.activities;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.database.sqlite.SQLiteConstraintException;
import android.os.Build;
import android.os.Bundle;
import android.util.Log;
import android.widget.Button;
import android.widget.Ed... | 47.2 | 137 | 0.576271 |
ddcb499a9dc1e5e9f0086e2eaa83de7769e4284e | 1,009 | package interviewquestions.medium;
import java.util.ArrayList;
import java.util.List;
/**
* Created by sherxon on 1/24/17.
*/
public class SummaryRanges {
public static void main(String[] args) {
System.out.println(summaryRanges(new int[]{0}));
}
static List<String> summaryRanges(i... | 29.676471 | 68 | 0.459861 |
183b9959b92593a47874b1109b47aeae3663754d | 2,453 | /**
* Copyright 2021-2022 jinzhaosn
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law o... | 32.706667 | 93 | 0.710151 |
9b6c5e50f63c5cb9422280b69cb7193b34732c51 | 1,030 | package io.confluent.developer.moviesgenerator;
import org.apache.kafka.clients.admin.NewTopic;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotatio... | 27.837838 | 76 | 0.798058 |
60d6fbd645fd700707f0adc33e52be50e0935dbc | 21,024 | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.groovy.compiler.rt;
import groovy.lang.Binding;
import groovy.lang.GroovyClassLoader;
import groovy.lang.GroovyShell;
import groovyjarjarasm.asm.Opcodes;
im... | 40.045714 | 212 | 0.660008 |
032f0b2183f2e51f24d12ed6c2b62ce7699eca5e | 1,845 | package mod.vemerion.wizardstaff.Helper;
import net.minecraft.entity.Entity;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.BlockRayTraceResult;
import net.minecraft.util.math.RayTraceContext;
impor... | 31.271186 | 107 | 0.725203 |
4df9ba14e5d8ec868617a52dfa5acb02d4807bf4 | 1,782 | package org.oreilly.books.chapter3;
import java.util.Arrays;
import java.util.List;
public final class FruitPermit {
public static void main(String[] args) {
List<Apple> apples = Arrays.asList(new Apple(1), new Apple(10));
List<Orange> oranges = Arrays.asList(new Orange(1), new Orange(10));
List<Fruit> fruits... | 26.597015 | 92 | 0.680696 |
e4824963861b2c6b23acdfde912896829b0110b8 | 2,141 | package top.fastsql.datasource;
import javax.sql.DataSource;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.Driver;
import java.sql.SQLException;
import java.sql.SQLFeatureNotSupportedException;
import java.util.Properties;
import java.util.logging.Logger;
@Deprecated
public class FastDataSou... | 26.7625 | 122 | 0.70341 |
4e56f944547a5893668a4c0bfd21664d92a67c57 | 6,957 | package com.knight.lib.ble.bleControl;
import android.annotation.TargetApi;
import android.bluetooth.BluetoothGatt;
import android.bluetooth.BluetoothGattCallback;
import android.bluetooth.BluetoothGattCharacteristic;
import android.content.Context;
import android.os.Build;
import com.knight.lib.ble.BleManager;
impor... | 34.959799 | 90 | 0.616789 |
fc4a4a7585b63d419d120d44ef1725a1872d2a1c | 2,052 | package org.anddev.andengine.entity.layer.tiled.tmx;
import org.anddev.andengine.opengl.texture.region.TextureRegion;
public class TMXTile
{
int mGlobalTileID;
TextureRegion mTextureRegion;
private final int mTileColumn;
private final int mTileHeight;
private final int mTileRow;
private final i... | 24.141176 | 126 | 0.692982 |
6fc300b17128038a8746756cee93d37d50b18119 | 5,312 | package de.hpi.is.md.hybrid.impl.preprocessed;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.fail;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.doCallRealMethod;
import static org.mockito.Mockito.doThrow;
import static org.mockito.Mockito.... | 34.051282 | 84 | 0.749435 |
e1dba80c747c93c5e25be26af0be0ced9ecd94ac | 11,760 | package com.eiualee.easyvalidate_compiler.processor;
import com.eiualee.easyvalidate_annotations.ValidateCheck;
import com.eiualee.easyvalidate_annotations.ValidateNull;
import com.eiualee.easyvalidate_annotations.ValidateRegular;
import com.eiualee.easyvalidate_compiler.AnnotationProcessor;
import com.eiualee.easyval... | 40.273973 | 180 | 0.637245 |
2455dd740a73b3e1e31e1d5997d56381fb30f81e | 291 | package tn.insat.rest.services;
import tn.insat.rest.entities.UserTest;
import java.util.List;
/**
* Created by zied on 20/02/2018.
*/
public interface UserTestService {
public List<UserTest> getUserTestsById(Integer userId);
public UserTest addUserTest(UserTest userTest);
}
| 18.1875 | 59 | 0.749141 |
0789e2bed0799d3eb464bc4799994fcdeae86271 | 700 | package demo3.service;
import demo3.dao.UserDao;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
/**
* @author : CodeWater
* @create :2022-04-05-19:27
* @Function Description :
*/
@Component(value = "userService")
publi... | 22.580645 | 58 | 0.667143 |
85e4191c921335ea4b214a021ca2bc44d4ac4eeb | 1,899 | package ru.majordomo.hms.personmgr.repository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import java.util.List;
import java.util.Set;
import ru.majordomo.hms.personmgr.model.service.AccountService;... | 65.482759 | 132 | 0.850974 |
6c5b609290bd9ec3d3d9fb41d861cb7576451cfa | 667 | package com.techmonad.payment;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
@EnableAutoConfiguratio... | 31.761905 | 78 | 0.833583 |
cc3e9bccc5567f829fcdac03e8d9989e10ea8445 | 3,213 | /*
* 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 Projeto01;
import java.util.ArrayList;
/**
* @author joao
*/
public class Lista {
No ini;
// Criar uma lista enca... | 21.709459 | 79 | 0.460629 |
90a870396454136132ac18c0cfa7b2a81b70a0c3 | 200 | package com.stardust.easyassess.assessment.services;
import com.stardust.easyassess.assessment.models.ArticleReader;
public interface ArticleReaderService extends EntityService<ArticleReader> {
}
| 22.222222 | 76 | 0.85 |
2379b310faceef315fa8bb5abc4745aefdc73eb4 | 1,393 | /*
* ----------------------------------------
* Jenkins Test Tracker Connection
* ----------------------------------------
* Produced by Dan Grew
* 2017
* ----------------------------------------
*/
package uk.dangrew.jtt.connection.login;
import java.util.Arrays;
import java.util.L... | 28.428571 | 97 | 0.58794 |
9e7aea18e3aedef85454b61a01145fcc5ee636cb | 161 | package eu.kerdev.testApp.model;
/**
* Amount type used to define the type of billing
* @author Michal Jendrzejek
*/
public enum AmountType {
NET, BRU
}
| 16.1 | 49 | 0.701863 |
90895d9a40586b294ef59f2e22279f3ce1b15c7b | 1,959 | package org.nodes.random;
import static nl.peterbloem.kit.Series.series;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.nodes.DTGraph;
import org.nodes.Graph;
import org.nodes.Graphs;
import org.nodes.MapUTGraph;
import org.nodes.Node;
import org.nodes.U... | 20.195876 | 77 | 0.683002 |
142b0a4bb15e851d4becb97f1f4e8e83a177260b | 4,627 | /*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2019 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | 38.239669 | 126 | 0.641452 |
a3b7f9270827d3aef2cb3ed339ebc9b9c7eb63f0 | 9,484 | /*
* Copyright 2013-2018 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 "licen... | 39.190083 | 137 | 0.654154 |
f14d15b0408f8713019348b73cbc7afda0b78859 | 2,144 | /**
* Implementation of a Binomial Tree
*
* Lily Xu
* January 2017
*/
public class BinomialTree {
private Integer key;
private BinomialTree parent = null;
private BinomialTree child = null;
private BinomialTree left = null;
private BinomialTree right = null;
private int degree;
/**
* BinomialTree co... | 16.366412 | 50 | 0.628731 |
b0dbfdf56bc19ce1287b66ebf0b03cde07d50802 | 20,733 | /*******************************************************************************
* Copyright (C) 2018-2019 Arpit Shah and Artos Contributors
*
* 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 Sof... | 25.981203 | 115 | 0.617036 |
38c20fe753d13ff517dfe8907f9560fbf67a120e | 805 | package com.elegion.tracktor.ui.results;
import android.arch.lifecycle.MutableLiveData;
import android.arch.lifecycle.ViewModel;
import com.elegion.tracktor.data.IRepository;
import com.elegion.tracktor.data.model.Track;
import java.util.List;
/**
* @author Azret Magometov
*/
public class ResultsViewModel extends... | 23.676471 | 75 | 0.701863 |
93067b4477965a638b119cf622db436bfdc352d5 | 1,092 | /**
* Baidu.com,Inc.
* Copyright (c) 2000-2013 All Rights Reserved.
*/
package com.baidu.hsb.parser.ast.stmt.dal;
import com.baidu.hsb.parser.ast.stmt.SQLStatement;
import com.baidu.hsb.parser.visitor.SQLASTVisitor;
/**
* @author xiongzhao@baidu.com
*/
public class DALSetNamesStatement implements SQLStatement {
... | 24.266667 | 91 | 0.681319 |
de251dd1a5546f0edeea765ce859aa3a19c455e0 | 2,368 | package org.appfuse.webapp.action;
import org.appfuse.model.User;
import org.appfuse.webapp.util.RequestUtil;
import org.springframework.mail.MailException;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
/**
* Managed Bean to send password hints to registered users.
*
* <p>
* <a h... | 34.318841 | 96 | 0.601774 |
78e192283f6131300b869a6798335a9d9441376e | 2,647 | package com.example.eqdietmobile;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
public class MainActivity extends AppCompatActivity {
// Objects declarations
private EditText jE... | 31.511905 | 102 | 0.533056 |
5cde39c2d5306699f1b2c31a1214505f3a6572eb | 1,935 | package com.flyingsoftgames.googleplayquery;
import com.flyingsoftgames.googleplayquery.QueryReceiver;
import org.apache.cordova.CallbackContext;
import org.apache.cordova.CordovaInterface;
import org.apache.cordova.CordovaWebView;
import org.apache.cordova.CordovaPlugin;
import org.apache.cordova.PluginResult;
impor... | 37.211538 | 121 | 0.791214 |
40d23d2cffc96d9fb394ab865304ecfd8b1d6caa | 1,442 | package com.lykke.tests.api.service.campaigns.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.PropertyNamingStrategy.UpperCamelCaseStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import com.lykke.api.testing.annotations.NetClassName;
imp... | 42.411765 | 115 | 0.776006 |
e614bea42e4781a26a1951c9710c9148bf6e16cf | 1,141 | /**
* Copyright 2014 Heroic Efforts LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 36.806452 | 79 | 0.736196 |
807dfa1380794e7071790816f4d3ea0b07d1e104 | 1,461 | /**
* %SVN.HEADER%
*/
package net.sf.javaml.classification;
import java.io.File;
import java.io.IOException;
import java.util.Random;
import net.sf.javaml.classification.evaluation.CrossValidation;
import net.sf.javaml.classification.tree.RandomTree;
import net.sf.javaml.core.Dataset;
import net.sf.javaml.core.Defa... | 27.055556 | 63 | 0.706366 |
d414d3e7abe7da33fab74794496e655f09da9fc0 | 5,780 | /*
* 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 ... | 34.819277 | 96 | 0.681661 |
192923b5c3f635d9bc7866df37eff116d320be37 | 1,259 | package com.web.model;
import java.io.Serializable;
import javax.persistence.*;
/**
* The persistent class for the cards database table.
*
*/
@Entity
@Table(name="cards")
@NamedQuery(name="Card.findAll", query="SELECT c FROM Card c")
public class Card implements Serializable {
private static final long serialVe... | 16.786667 | 62 | 0.710087 |
6b9e7247d52467e31071659dbf4559cf4b7f852f | 2,671 | /**
*
* Copyright 2017 Florian Erhard
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 27.536082 | 85 | 0.708723 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.