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 |
|---|---|---|---|---|---|
b43f108a2b5762d58ec5722c48ff1474402f740a | 2,913 | package org.migration.migrators;
import java.util.LinkedHashMap;
import java.util.Map;
import org.jdom2.Element;
import org.migration.MigrationSet;
import org.migration.SimpleFormat;
import org.migration.TypeSetDissecter;
import org.migration.generic.EntityField;
import org.migration.generic.EntityType;
import org.mi... | 37.831169 | 121 | 0.714384 |
6b4f3d107acb9765bb45027b21e713f810cc39f4 | 4,082 |
package org.drip.sample.sequence;
import org.drip.quant.common.FormatUtil;
import org.drip.sequence.metrics.*;
import org.drip.sequence.random.BoundedUniform;
import org.drip.service.env.EnvManager;
/*
* -*- mode: java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*/
/*!
* Copyright (C) 2017 Laksh... | 31.890625 | 108 | 0.701127 |
b162129880ec81003c2fbae344ac6c7c4695b517 | 129 | package rikka.api.entity.living.golem;
import rikka.api.entity.living.ICreature;
public interface IGolem extends ICreature {
}
| 18.428571 | 43 | 0.806202 |
46a768f899bda2961296f2f3d2a1873d7472a387 | 3,161 | package com.peoplepowerco.virtuoso.parser;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.peoplepowerco.virtuoso.models.PPSMSSubscriberModel;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
/**
* Created by edwardliu on 2017/7/14.
*/... | 43.902778 | 114 | 0.559317 |
48fd715d8676e10d52d67b8aa509aa41ac16ee26 | 1,508 | package com.activequant.server.web.utils;
import java.security.Principal;
import java.util.ArrayList;
import java.util.List;
import javax.security.auth.Subject;
import org.eclipse.jetty.security.HashLoginService;
import org.eclipse.jetty.server.UserIdentity;
public class JettyWordpressLoginService extends HashLogin... | 20.106667 | 74 | 0.715517 |
e3287d71a6690631c50ad91b847b26aec504086d | 2,050 | package ca.cglab.jagl.unused;
import java.util.ArrayList;
import java.util.Collection;
import ca.cglab.jagl.graph.EdgeDirection;
import ca.cglab.jagl.graph.UndirectedGraph;
/**
* An undirected simple graph that is suitable for graphs with high average connectivity ( < 5,000,000 edges)
*
* @author Evren Kaya
*/
... | 16.532258 | 109 | 0.683415 |
e1a53f26355b9b75f915352226017141e6471826 | 2,338 | package com.examples.rmqt;
import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.BindingBuilder;
import org.springframework.amqp.core.DirectExchange;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.TopicExchange;
import org.springframework.amqp.rabbit.conne... | 33.884058 | 137 | 0.806245 |
8fe12b921d1516a9c4ff15c124f187a7f8cc687d | 5,954 | /*
* Copyright 2014 WSO2 Inc. (http://wso2.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
*
* Unless required by applicabl... | 38.412903 | 120 | 0.662076 |
354518215a3c33801626fc0e548456bd2f5ccb80 | 7,331 | /*
* Copyright (c) 2009-2016 Dmytro Pishchukhin (http://knowhowlab.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
*
... | 39.203209 | 108 | 0.640977 |
67944229a7ea1ab3fa200273e43fa8229ec80973 | 2,352 | package im.qq.com.im.controller.fragment;
import android.content.Intent;
import android.support.v4.app.Fragment;
import com.hyphenate.EMMessageListener;
import com.hyphenate.chat.EMClient;
import com.hyphenate.chat.EMConversation;
import com.hyphenate.chat.EMMessage;
import com.hyphenate.easeui.EaseConstant;
import c... | 26.426966 | 95 | 0.657313 |
a58b5dbd1d8297cecb657260d801b5d5fdce1477 | 1,683 |
package edu.stanford.protege.webprotege.sharing;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
@RunWith(org.mockito.runners.MockitoJUnitRunner.class)
public class PersonId_TestCase {
private PersonId personId;
... | 26.296875 | 131 | 0.699346 |
544e7d798c1a0b101de4144d57668d0c10ecb4b3 | 1,155 | package com.vmturbo.testJavaMultipleFiles;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import org.junit.Test;
import com.vmturbo.protoc.spring.rest.testJavaMultipleFiles.JavaMultipleFilesTestREST;
import com.vmturbo.protoc.spring.rest.testJavaMultipleFiles.Msg1;
i... | 32.083333 | 89 | 0.705628 |
73e1d0c54a18c891dcee49eb3f21f2feef4a6f7a | 788 | package com.jn.agileway.zip.tests;
import com.jn.agileway.zip.archive.AutowiredArchiveSuiteFactory;
import com.jn.agileway.zip.archive.Expander;
import org.junit.Test;
import java.io.File;
public class ZipTests {
@Test
public void testCommonUncompress() throws Throwable{
String filepath = "e:/tmp/ca... | 27.172414 | 96 | 0.717005 |
136bb316e96db4c492181a0fd4da9b660785741d | 2,535 | //
// Decompiled by Procyon v0.5.36
//
package org.apache.maven.scm.provider.git.gitexe.command.info;
import org.apache.maven.scm.CommandParameter;
import org.apache.maven.scm.ScmException;
import org.codehaus.plexus.util.cli.Commandline;
import org.apache.maven.scm.command.info.InfoScmResult;
import org.codehaus.p... | 46.090909 | 171 | 0.742801 |
600ef511a0898c47fd600c23d5f6f1bd7ce7e62b | 9,128 | package services;
import java.util.ArrayList;
import java.util.Collection;
import javax.transaction.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.encoding.Md5PasswordEncoder;
import org.springframework.stereotype.Service;
import org.s... | 26.229885 | 79 | 0.726994 |
f457d483368672c0baa3a6c9e3514d23eb4e897d | 332 | package com.stylefeng.guns.film.common.persistence.dao;
import com.stylefeng.guns.film.common.persistence.model.YearDictT;
import com.baomidou.mybatisplus.mapper.BaseMapper;
/**
* <p>
* 年份信息 Mapper 接口
* </p>
*
* @author Michael.Chu
* @since 2019-03-24
*/
public interface YearDictTMapper extends BaseMapper<Year... | 19.529412 | 66 | 0.743976 |
40e4154a566c583020d10c9e4371dfd380543d9a | 1,127 | package com.t70.vector.client.constant;
/**
*
The status of a resource.
*/
public enum ResourceStatus
{
/**
* The resource is fully active and can be used per normal.
*/
ACTIVE(0),
/**
* The resource is no longer active and can no longer be used.
*/
INACTIVE(1),... | 19.431034 | 68 | 0.535936 |
080b51b275316fb639d13db54aa9f979133a6570 | 321 | package com.redlimerl.speedrunigt.mixins.access;
import net.minecraft.stat.ServerStatHandler;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Invoker;
@Mixin(ServerStatHandler.class)
public interface ServerStatHandlerAccessor {
@Invoker("asString")
String invokeAsString();
}... | 22.928571 | 48 | 0.803738 |
e8d1d55fab19f73796e3180b3c03aa914936fe9c | 3,885 | /**
* ImageActionsOJ.java
* fully documented 18.5.2010
*
* ImageActionsOJ supplies listener methods that are
* connected to submenu items of ObjectJ>Linked Images
* Not all action listeners are used
*/
package oj.gui.menuactions;
import ij.IJ;
import ij.ImagePlus;
import ij.WindowManager;
import ij... | 32.923729 | 96 | 0.670785 |
a334f3b4de9868c26ba0f3dc70eb90f3c73d0c1f | 2,385 | package betty.socialnetwokkata.print;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import java.time.LocalDateTime;
import org.junit.jupiter.api.Test;
import betty.socialnetwokkata.business.time.Clock;
import betty.socialnet... | 28.058824 | 83 | 0.716981 |
90129757a855707aec0e574163133ed6e780d458 | 1,567 | package codility;
// This is a simple solution with O(n^2) the performance score is low (but 100% correct)
// note: need to import (to use "Arrays.sort(int[])" )
import java.util.*;
class NumberOfDiscIntersections_SimpleLowPerformance {
public int solution(int[] A) {
// main idea:
// 1. store all... | 36.44186 | 103 | 0.535418 |
6db1b4c9beabe50e701e6cd70c277c5907db5c09 | 496 | package com.github.jferrater.opadatafilterjpaspringbootstarter.repository;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;
/**
* The generic dao class for filtering data using OPA
*
* @author joff... | 26.105263 | 74 | 0.810484 |
8bc4f217a19d51f3c1d0e55b57107daee7a69e17 | 545 |
package ca.sukhsingh.actions.on.google.request.originalrequest;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Created by sukhSingh on 2017-08-09.
*/
public class OriginalRequest {
@JsonProperty("source")
private String source;
@JsonProperty("version")
private String version;
@Jso... | 18.166667 | 63 | 0.656881 |
60db82b6562b233ea2c68d1a728999a452497fb7 | 3,858 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | 32.15 | 122 | 0.724209 |
2382dbdac2aa593761b47e5622fa80f59826c790 | 4,172 | /*
* Copyright 2010-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | 33.918699 | 112 | 0.775168 |
411a4b399503908a6e2947282f039aef3cc48689 | 2,225 | /*
Copyright 2011-2013 Software Freedom Conservancy
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... | 31.338028 | 89 | 0.691685 |
331de8dff5470b40c854332e7b77828b8f06226e | 733 | package br.edu.utfpr.pb.jeanpeiter.tcc.persistence.dao.nivelprogresso;
import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;
import java.util.List;
import br.edu.utfpr.pb.jeanpeiter.tcc.persistence.modelo.nivelprogresso.dto.UsuarioNivelProgressoDTO;
@Dao
pub... | 26.178571 | 101 | 0.80764 |
944921c5ba421e8c9e49300c6896556be58f4aa8 | 1,128 | /**
* Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.web.analytics.formatting;
import com.opengamma.engine.value.ValueSpecification;
import com.opengamma.financial.analytics.ircurve.InterpolatedYieldCurveSpecific... | 32.228571 | 99 | 0.742908 |
cd631cc063ee0cc9b4ad8d79f5b35c94e0ed612d | 490 | /**
* Project Name:libcomm
* File Name:BaseModel.java
* Package Name:com.wonderingwall.base
* Date:Oct 8, 201411:35:43 AM
* Copyright (c) 2014, spt_genius@hotmail.com All Rights Reserved.
*
*/
package com.wonderingwall.base;
/**
* ClassName:BaseModel <br/>
* Function: TODO ADD FUNCTION. <br/> ... | 20.416667 | 67 | 0.620408 |
5bd92fb153397eb1a0da8125c72b798fec0a2af5 | 2,712 | package ru.r2cloud.logging;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.util.Properties;
import java.util.logging.Level;
import java.util.logging.LogManager;
import java.util.logging.LogR... | 31.905882 | 184 | 0.764381 |
b36df3dd4b835ba9d6a021de094d6f9911e561b1 | 1,178 | package com.cw.controller;
import com.cw.utility.Sound;
import com.cw.utility.world.Director;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Label;
import javafx.scene.image.ImageView;
import javafx.scene.input.MouseEvent;
import javafx.scene.text.Font;
import javafx.scene.text.... | 23.098039 | 73 | 0.707131 |
5ca109045f177b76bed8afd2afa2f1fc521450a3 | 316 | package com.fisher.coder.chapter1;
import org.junit.Assert;
import org.junit.Test;
public class _1_5_test {
@Test
public void test1() {
Assert.assertEquals(true, _1_5.oneAway("a", ""));
}
@Test
public void test2() {
Assert.assertEquals(true, _1_5.oneAway("a", "ac"));
}
}
| 17.555556 | 59 | 0.617089 |
adf6ed84aada60074ea016fe7b6e66b0bc531f2b | 61 | package com.rhodey.lib_network;
public class HttpClient {
}
| 12.2 | 31 | 0.786885 |
23c6d8bc3ddcc17e2ecf55c3a0a91e27fcd9673e | 168 | package org.fujion.chartjs.enums;
public enum CartesianAxisEnum {
X, Y;
@Override
public String toString() {
return name().toLowerCase();
}
}
| 15.272727 | 36 | 0.630952 |
5c4aeb45327dc8f221177f9bf5ed6628fa90c71e | 677 | package org.apache.jena.examples;
import java.io.InputStream;
import org.apache.clerezza.rdf.core.Graph;
import org.apache.clerezza.rdf.core.serializedform.Parser;
import org.apache.clerezza.rdf.core.serializedform.Serializer;
import org.apache.clerezza.rdf.core.serializedform.SupportedFormat;
public class ExampleCl... | 30.772727 | 67 | 0.782866 |
dd8d4a5a1cd891d54f6aa36d4fce3acce22380ec | 3,873 | /*
* Copyright (c) 2008, Swedish Institute of Computer Science.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* n... | 34.580357 | 85 | 0.723987 |
19855e003b63a80d9627d9169bc6d9de9335d58b | 6,092 | /*
* Copyright (c) 2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* you may obtain a copy of the License at
*
* http://www.apache.org/... | 36.921212 | 94 | 0.737032 |
01fd6d119ec3593446f8787bea89852a6d355d48 | 1,400 | /*
* Decompiled with CFR 0_115.
*
* Could not load the following classes:
* org.bukkit.Bukkit
* org.bukkit.event.Event
* org.bukkit.plugin.Plugin
*/
package net.darepvp.update;
import net.darepvp.Janitor;
import net.darepvp.update.UpdateType;
import net.darepvp.update.events.UpdateEvent;
import org.bukkit.B... | 26.415094 | 115 | 0.601429 |
5efab6a59235973037dd27908c2965c0fac48565 | 764 | /*
* 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 erp.interfaces.servico;
import erp.OBJECTS.Funcionario;
import erp.exceptions.FornecedorException;
import erp.exceptions.Funci... | 33.217391 | 84 | 0.794503 |
a466e7c2b053a469fdb94cdc1f839dc483a2e313 | 9,337 | /**
* Copyright (c) 2004-2005, Regents of the University of California
* 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 ... | 30.917219 | 115 | 0.576095 |
5e47ba6d84a62a4aad0eb6c66d9e12086e1cb3d7 | 27,922 | package com.support.android.designlibdemo;
/**
* Created by amitagarwal3 on 10/7/2015.
*/
import android.content.ContentValues;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.util.Log;
import com.parse.FindCallback;
import com.p... | 55.732535 | 140 | 0.466836 |
403a5bb002f86d78a91d11669c1f70d472b003ef | 4,108 | /*
* Copyright 2009-2017. DigitalGlobe, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 31.6 | 103 | 0.776047 |
fb932f83cae65a00680b7db07ba62c8453917994 | 3,074 | /*******************************************************************************
* Copyright (c) 2019 Red Hat, Inc. Distributed under license by Red Hat, Inc.
* All rights reserved. This program is made available under the terms of the
* Eclipse Public License v2.0 which accompanies this distribution, and is
* avai... | 33.413043 | 133 | 0.64216 |
9de2960ab56c52d96f5bdba4bd06f8f7b7538f13 | 3,990 | /*-
* #%L
* ELK Reasoner Core
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2011 - 2016 Department of Computer Science, University of Oxford
* %%
* 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 Lice... | 32.439024 | 111 | 0.750627 |
308eeba64a6ebe5526cc298327e28b4d24c66877 | 1,149 | package com.gsugambit.partydjserver.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundExc... | 32.828571 | 99 | 0.817232 |
d4485188a0ba4b9121dc2246f3630386e89b544a | 681 | package arch.resource;
import java.io.Serializable;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.core.Response;
import arch.entity.BaseEntity;
import arch.service.Service;
/**
*
* @author Rafael Guterres
* @param <T>
* @param <I>
*/
public interface Resource<T extends B... | 20.029412 | 94 | 0.729809 |
03f15d64eddf3d71c7f12b183d2f95f66452929a | 12,938 | package blanco.restautotest.message;
import java.text.MessageFormat;
import java.util.Locale;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
/**
* メッセージ定義[BlancoRestAutotest]が内部的に利用するリソースバンドルクラス。
*
* リソースバンドル定義: [BlancoRestAutotestMessage]。<BR>
* このクラスはリソースバンドル定義書から自動生成されたリソースバンドルクラスで... | 37.393064 | 128 | 0.637193 |
4154a0afb65e773e979f1abdbdb7fd002d0fd4d1 | 6,072 | /*
* Copyright 2002-2007,2009 The Apache Software Foundation.
*
* 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... | 37.02439 | 140 | 0.692029 |
121e99f7aeb5edfb3ff5e8d8ca12dad0b6a963c3 | 562 | /**
* Copyright © 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.thinkgem.jeesite.modules.ce.dao;
import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.mod... | 28.1 | 108 | 0.781139 |
ec0a4d719a2230d8dae6128316ba38c1486e9b3e | 2,065 | /**
* TodoFacade.java
* Copyright 2010 James Dempsey
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later ver... | 32.265625 | 80 | 0.691525 |
adf8749997b3a5bad9cfb77fcee856e23e6d5580 | 9,872 | package com.github.cataclysmuprising.jpa.common;
import com.fasterxml.jackson.databind.exc.InvalidFormatException;
import com.github.cataclysmuprising.jpa.exception.ConsistencyViolationException;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.TypeMi... | 54.241758 | 176 | 0.789607 |
7764b7e17ee4dcc3fb4ec34f6a6f8de26b2fe9ef | 3,666 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package se.pmdit.clipboardmanager;
import java.awt.Image;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.StringSelection;
import java.awt.datatransfer.Transferable;
import java.awt.datatransfer.U... | 23.5 | 117 | 0.674577 |
340afb4065f4f4f97f982d358736dd1ab76859cd | 391 | package rp.systems;
/**
* An interface for a runnable that also includes a public stop method. Calling
* the stop method should cause the runnable to stop running and the run()
* method to exit.
*
*
* @author Nick Hawes
*
*/
public interface StoppableRunnable extends Runnable {
/**
* Stop the runnable, ... | 20.578947 | 79 | 0.690537 |
d33061ebfb57e86f6aa6a3d722f07e132d974747 | 951 | /* package codechef; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Codechef
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner sc = new Scanner(System.in);
in... | 21.133333 | 69 | 0.397476 |
0483048dbd8b4f3015ce924863192d81be85a7c9 | 3,569 | // Template Source: BaseMethodRequestBuilder.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// -----------------------------... | 40.101124 | 377 | 0.66237 |
4128da378352a7bcff0dd4482b77065595056c77 | 2,614 | /*
* 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.816901 | 118 | 0.709258 |
fa114eec0ede1e489d8c4e5d4f046530d51c40e7 | 7,596 | // Generated from INI.g4 by ANTLR 4.4
package ini;
import org.antlr.v4.runtime.atn.*;
import org.antlr.v4.runtime.dfa.DFA;
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.misc.*;
import org.antlr.v4.runtime.tree.*;
import java.util.List;
import java.util.Iterator;
import java.util.ArrayList;
@SuppressWarnin... | 29.44186 | 85 | 0.69247 |
7a96937ca67def905c9a911c7a08adcc472a8c13 | 4,824 | package dynks.cache.test.integration;
import org.apache.http.Header;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.ResponseHandler;
import org.apache.http.client.methods.*;
import org.apache.http.impl.client... | 30.15 | 163 | 0.673922 |
ff63d3e9391819d519883cc44167b3ca5aad38ae | 8,465 | /*
* EDF Extended Depth of Field
* http://bigwww.epfl.ch/demo/edf/
*
* Organization: Biomedical Imaging Group (BIG)
* Ecole Polytechnique Federale de Lausanne (EPFL), Lausanne, Switzerland
* Authors: Daniel Sage, Alex Prudencio, Jesse Berent, Niels Quack, Brigitte Forster
*
* Reference: B. Forster, D. ... | 31.007326 | 147 | 0.687655 |
6cd1d2ae1ecbc7e1da3281d6bff0b52211dbdd3e | 4,277 | package com.twilio.sdk.resource.instance.trunking;
import com.twilio.sdk.TwilioRestException;
import com.twilio.sdk.TwilioRestResponse;
import com.twilio.sdk.TwilioTrunkingClient;
import com.twilio.sdk.resource.NextGenInstanceResource;
import org.apache.commons.lang3.StringUtils;
import java.util.Calendar;
import jav... | 24.163842 | 100 | 0.703764 |
5256fe893d09695b31f40ad3c3f6cc33e93d1a37 | 3,573 | package org.pengfei.Lesson01_Java_Standard_API.S02_Exploring_Java_lang.source;
import org.pengfei.Lesson00_Java_Basics.S07_Interfaces_Packages.source.B;
public class PrimitiveTypeWrapper {
public static void exp1(){
Float f1=new Float( 8.8);
Float f2=Float.valueOf(8.8f);
Float f3=Float.va... | 35.376238 | 89 | 0.600896 |
642b7b1178ebe2c458a0909619558f61c15a93cc | 2,857 | package colour;
public class ColourScheme {
private static final Colour light = new Colour("F7E9BD");
private static final Colour cave = new Colour("391E53");
private static final Colour dark = new Colour("161D23");//161D23
private static final Colour ally = new Colour("10ADBD");
private static final Colour enemy... | 35.271605 | 73 | 0.758838 |
8950c157c142c383fd6f5967fc369d972eb27217 | 3,012 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.storage.file.datalake.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Defines hea... | 29.821782 | 77 | 0.674635 |
8464c60ed7d4fd12635e47d2ea2919796a8df9d9 | 4,025 | /**
* Copyright (C) 2012 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 30.492424 | 75 | 0.708075 |
b42744d43af3d62a64af3aeb9f28ee8256049dc9 | 316 | package jp.dodododo.dao.util;
/**
*
* @author Satoshi Kimura
*/
public class CacheObject<T> {
private T cacheValue;
CacheObject() {
}
public T getValue() {
return cacheValue;
}
public void setValue(T cacheValue) {
this.cacheValue = cacheValue;
}
public void clear() {
cacheValue = null;
}
}
| 12.153846 | 37 | 0.658228 |
93621f303734578dc7575096cd679c4cb6ace9d4 | 1,360 | package test.module.framework.tests.functional.service;
import java.util.concurrent.atomic.AtomicInteger;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import configManager.ConfigVariable;
import core.apiCore.TestDataProvider;
import core.he... | 28.93617 | 121 | 0.786029 |
b95f79753110e6cce52ccadb8eac8ed06f9ca0b4 | 1,281 | /*
* 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 ups.edu.ec.dao;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import ups.edu.ec.idao.ITelefonoD... | 23.290909 | 79 | 0.674473 |
9fab195b670f4ee3445048257bd8802691315504 | 220 | package techmoc.extensibility.plugins.green;
import techmoc.extensibility.interfaces.Fly;
public class GreenFly implements Fly {
@Override
public String buzz() {
return this.getClass().getSimpleName();
}
}
| 16.923077 | 44 | 0.75 |
488c27312ef7fd6b0bb5462db6d2e8591eae1c29 | 12,163 | /*
* Copyright (C) 2016 Jared Rummler <jared.rummler@gmail.com>
* Copyright (C) 2015 The Android Open Source Project
*
* 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://ww... | 35.564327 | 119 | 0.712571 |
5f4d68bd23a511cf1e47a0aa4b30160afbce4ebc | 3,920 | package br.pucrio.opus.smells.ui.util;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import br.pucrio.opus.smells.filechanges.TypeChangesHolder;
import br.pucrio.opus.smells.patterns.model.PatternModel;
imp... | 30.866142 | 104 | 0.721173 |
ec911be1a561322f7e8467da0caa7964dc8fdcab | 1,318 | package com.thanos.common.utils;
import com.thanos.common.annotations.ToMap;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Created by wangjialong on 6/13/18.
*/
public class ObjectTransform {
public static Map<Class<?>,... | 30.651163 | 92 | 0.581184 |
e3a2c55fda6b041385a5b2fd54eec90e09a98831 | 3,934 | /*
Derby - Class org.apache.derby.impl.services.cache.ReplacementPolicy
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... | 38.950495 | 79 | 0.681749 |
19a172e3c2f81025d6aa2da6b950cbfc92a3473b | 2,197 | package me.wbprime.springdbusecase.hibernate.java.config;
import org.hibernate.SessionFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.jdbc.datasource.DataSo... | 33.8 | 97 | 0.755576 |
48ac08ff967695391073daa01865556d8fba78c9 | 880 | package com.jukusoft.mmo.engine.shared.client.events.load;
import com.jukusoft.mmo.engine.shared.client.ClientEvents;
import com.jukusoft.mmo.engine.shared.events.EventData;
import java.util.Map;
import java.util.Objects;
/**
* event which is fired if gameserver sends a LoadMapResponse message with region to sync ma... | 25.142857 | 98 | 0.717045 |
8eee7c78e7c4430d13e9641b7a420e4ed940add2 | 897 | package org.dmc.services.data.models;
import javax.persistence.Column;
public class DMDIIMemberContactModel extends BaseModel {
private DMDIIContactTypeModel contactType;
@Column(name = "first_name")
private String firstName;
@Column(name = "last_name")
private String lastName;
@Column(name = "email")
priv... | 17.588235 | 64 | 0.74359 |
1cf146b9ee7719dfb5c702f9265771f0fd05cde2 | 194 | package com.javaonlinecourse.b2lesson2.homework.hw03;
/**
* Написать четыре метода void print с разными параметрами.
* Метод использует System.out.println()
*/
public class HomeTask02 {
}
| 21.555556 | 60 | 0.757732 |
5e71df5e3fb6f8bddc69a391326ebf9e7b540a40 | 19,129 | package pro.taskana.simplehistory.query;
import pro.taskana.BaseQuery;
import pro.taskana.TimeInterval;
import pro.taskana.exceptions.InvalidArgumentException;
import pro.taskana.simplehistory.impl.HistoryEventImpl;
/** HistoryQuery for generating dynamic sql. */
public interface HistoryQuery extends BaseQuery<Histor... | 30.029827 | 100 | 0.695018 |
e6eb6eec476319b0babcdc59bb272c9b52ad1fa4 | 2,701 | package com.sailthru.client;
import com.sailthru.client.exceptions.ApiException;
import com.sailthru.client.handler.response.JsonResponse;
import com.sailthru.client.params.Purchase;
import com.sailthru.client.params.PurchaseItem;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import... | 40.313433 | 162 | 0.569049 |
964eb3281c8e8e2d47476a58e7c7052e7bf10b27 | 1,208 | package com.reactive.app.authentication.handlers;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.security.core... | 36.606061 | 102 | 0.831954 |
ce883df8a9540965898598563a792cc1d8cfde4c | 5,588 | package cn.regionsoft.one.core.dbconnection;
import java.sql.SQLException;
import java.sql.Statement;
import cn.regionsoft.one.common.Logger;
import cn.regionsoft.one.core.CommonUtil;
import cn.regionsoft.one.core.ContextConfig;
import cn.regionsoft.one.core.H2OContext;
import cn.regionsoft.one.utils.ThreadD... | 32.300578 | 134 | 0.681818 |
013eba7e17cf8e09bb6e6bcd6faf5ffcefe07a2c | 354 | package info.albertcode.utils.http.builder;
import info.albertcode.utils.http.domain.HttpGetRequestAndResponse;
/**
* @Description: 建造 Get 请求的建造者类
* @Author: Albert Shen
*/
public class HttpGetRequestBuilder extends HttpRequestBuilder{
public HttpGetRequestBuilder() {
this.requestAndResponse = new Htt... | 23.6 | 67 | 0.762712 |
f6735d53ca15a11de1b7a44c5e481d2443ccb0d1 | 12,623 | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 2011 Oracle and/or its affiliates. All rights reserved.
*
* Oracle and Java are registered trademarks of Oracle and/or its affiliates.
* Other names may be trademarks of their respective owners.
*
* The contents of this file are subject... | 42.501684 | 146 | 0.601521 |
ba6ed34970869e033d979dd3fccf02d1e186eadb | 6,139 | package rajawali.util;
import java.io.File;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.nio.IntBuffer;
import java.nio.ShortBuffer;
import java.util.zip.GZIPOutputStream;
import rajawali.BaseObject3D;
import rajawali.Geometry3D... | 28.16055 | 150 | 0.688712 |
872ef3c095ab9f8e0bc5978935b43847c2cf6923 | 3,649 | /*
* The MIT License (MIT)
*
* Copyright (c) 2019 University of Wisconsin Board of Regents
*
* 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 limi... | 39.236559 | 131 | 0.707591 |
bb73e1f42173a6f1ed286390c089823dd0dd6fe4 | 2,782 | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.search.federation.test;
import com.google.common.collect.ImmutableList;
import com.yahoo.component.ComponentId;
import com.yahoo.component.chain.Chain;
import com.yahoo.prelude.Index... | 39.742857 | 123 | 0.706686 |
343fe31e7df9cad5f75b3aea619d48a643d2bdd8 | 353 | package com.hh.listeners;
import android.view.View;
import android.widget.RadioGroup;
/**
* Created by Wajdi Hh on 13/08/2016.
* wajdihh@gmail.com
*/
public interface OnRecycleCheckedRadioButtonGroupChangeListener {
public void onCheckedChanged(View parentView,RadioGroup radioButtonGroup,String widgetTag,int ... | 25.214286 | 128 | 0.796034 |
9f80a8a29d219b436acd755c54c1ac8a191818e2 | 2,262 | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2019 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | 36.483871 | 93 | 0.681698 |
9f2ad1202c18da7c2b221827bc4dbf96fcfe54ad | 499 | package com.jspiders.spring.RealTimeEx;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class Testaccount {
public static void main(String[] args) {
ClassPathXmlApplicationContext context = null;
context = new ClassPathXmlApplicationContext("com/jspiders/spring/RealTi... | 22.681818 | 99 | 0.725451 |
e7614fe6089b961f5d3a945a161bc8c4173857fa | 996 | package com.ajavac.netty;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelOption;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.socket.SocketChannel;
import io.netty.channel.socket.nio.NioServerSocketChannel;
/**
* Netty启动工厂
* C... | 35.571429 | 134 | 0.710843 |
3d9253aac6a72db37499d9c6cedd501eabfac66e | 11,177 | package dk.aau.netsec.hostage.ui.adapter;
import android.app.AlertDialog;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.CompoundButton;
import android.widget.TextView;
import com.go... | 40.496377 | 159 | 0.591483 |
dcd3aa372f41ad9652d4b9fbe975a4f330eb2a98 | 1,310 | package com.johnhunsley.graph.d3domain;
import java.util.HashSet;
import java.util.Set;
/**
* <p>
* The API response to a query request which will contain the resulting {@link Node} objects,
* {@Link Link} objects and the {@Link Options} object which are used to populate the vue-d3-network component
*
* ... | 21.47541 | 114 | 0.594656 |
a3cd8c1790ff0aff4f9b7dc6c0e1e6e38d64a68e | 3,873 | /* See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* Esri Inc. licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
... | 28.065217 | 80 | 0.654273 |
03eee3570281bc156963e26e3ea70dec9919f2b4 | 9,825 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/** * 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 license... | 15.644904 | 814 | 0.80855 |
b037d3e5293584d9bd157aac9450db02620539a0 | 167 | package io.yggdrash.core.exception;
public class DuplicatedException extends RuntimeException {
public DuplicatedException(String s) {
super(s);
}
}
| 18.555556 | 59 | 0.724551 |
b6c7ac1bff2b33767527d211b71722a272830fe7 | 42,313 | // 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 android.support.v4.media;
import android.media.AudioAttributes;
import android.os.Bundle;
import android.util.Log;
import android.util.SparseIntAr... | 33.212716 | 145 | 0.525134 |
334a8eb4cf1559c839da28fc8690723a313f09fb | 1,098 | package net.machina.networkjava.class6;
import java.util.Arrays;
import java.util.Random;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
public class Bank {
private int[] accts;
private Random random;
private Lock lock;
public Bank() {
accts = new in... | 28.153846 | 135 | 0.56102 |
e24b4e9f36f90c1f5ba9aa2336c047eb84e12c21 | 1,848 | import java.util.Scanner;
import java.util.Random;
class Longest_increasing_subsequence{
public static void main (String [] args) {
Scanner s = new Scanner(System.in);
Random r = new Random();
int N;
do {
System.out.print("Enter number of Invitations:\t");
N = s.nextInt();
} while (N<1);
int ... | 28 | 97 | 0.590368 |
b132abc46420f365c8359cb8c964adc3c41141fe | 543 | package fitaview.automaton.transition;
import fitaview.Triple;
import fitaview.automaton.Variable;
import fitaview.messaging.DefaultMessageSender;
public final class TransitionsSender
extends DefaultMessageSender<Triple<Variable, String, String>>
{
private static TransitionsSender instance = null;
pr... | 21.72 | 70 | 0.701657 |
d606a6584faebeb716b323622f5a08177f5b38d6 | 8,656 | /**
* maps4cim - a real world map generator for CiM 2
* Copyright 2013 Sebastian Straub
*
* 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-... | 30.586572 | 108 | 0.50647 |
85e6e6ba9d3328c79b966ccc16bd9e793e88515f | 6,202 | package com.daxin;
import java.io.Serializable;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
public class TimeList implements Serializable {
private static final long serialVersionUID = 1L;
// 存储历史数据的容器,权衡读写效率:使用LinkedList提高数据的插入效率(LinkedList的JDK实现是双向链表,查找支持二分查找,所以综合来说... | 24.808 | 100 | 0.51951 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.