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 |
|---|---|---|---|---|---|
94a0925223ca4b37918ddc3dfdae4655e03e5f2b | 1,447 | package com.github.kag0.oauth2;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSeriali... | 29.530612 | 98 | 0.803041 |
ab69ecb827fc286af68bef3314b4287c1b884a38 | 4,524 | package com.hebaiyi.www.topviewmusic.util;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.hebaiyi.www.topviewmusic.bean.Billboard;
import com.hebaiyi.www.topviewmusic.bean.Channel;
import com.hebaiyi.www.topviewmusic.bean.FoucsPic;
import com.hebaiyi.www.topviewmusic.bean.GeDan;
impo... | 30.77551 | 90 | 0.609859 |
5bf8023cd5087fa62481c213fdaab3ddd75b6c41 | 9,003 | package hotel;
import java.time.DayOfWeek;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.Scanner;
public class Booking {
static DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd-MM-yyyy HH:mm");
// TODO: make array singleto... | 29.135922 | 168 | 0.573253 |
ecc413d23de812ae49035276592bb842232117e6 | 14,820 | package org.ar.beauty_android.renderer;
import android.content.Context;
import android.graphics.SurfaceTexture;
import android.hardware.Camera;
import android.media.MediaMetadataRetriever;
import android.net.Uri;
import android.opengl.GLES11Ext;
import android.opengl.GLES20;
import android.opengl.GLSurfaceView;
import... | 36.865672 | 143 | 0.636235 |
9dba409e0914fe961bcee89277a1cedca1fcca30 | 4,003 | /*
* 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 ... | 50.0375 | 124 | 0.708469 |
52731c6c26bd92d46ae2b6d24226fe5fae232de7 | 6,385 | /*
* Copyright 2010 Proofpoint, 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 agree... | 31.146341 | 80 | 0.613156 |
dd4b7c35b3160691926ef0490ab64a010ebaf0ea | 383 | //,temp,sample_5618.java,2,14,temp,sample_5616.java,2,14
//,2
public class xxx {
public void testDestinationParam() {
final DestinationParam p = new DestinationParam(DestinationParam.DEFAULT);
Assert.assertEquals(null, p.getValue());
new DestinationParam("/abc");
try {
new DestinationParam("abc");
Assert.fail();
} catc... | 21.277778 | 74 | 0.746736 |
979db9d3e038ba969c614c9bcbee34b9e4857185 | 161 | package de.darealfive;
public interface Attractable extends Locatable {
void calculateForce(Attractable body, double timePassed);
double getMass();
}
| 17.888889 | 61 | 0.763975 |
8e0bdde1267535fd3797f7cef6276504b916c463 | 1,870 | package crud;
import java.util.Scanner;
public class Computadora extends Electronico {
private Scanner in = new Scanner(System.in);
private String modelo;
private String ram;
private String procesador;
public Computadora() {
super();
System.out.print("Introduce el modelo: ");
... | 32.241379 | 95 | 0.521925 |
90fc094b949140805fa255f47136e368108a30bf | 2,184 | /*
* Copyright (C) 2007 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 29.12 | 78 | 0.71337 |
653549b991f552672128a2ffbc0795e59979df41 | 17,375 | package com.alley.ben.movieapp;
import android.content.ContentValues;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerV... | 45.965608 | 156 | 0.605986 |
e88872f53122724cf3a7039510ba8025aed81825 | 482 | package main;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
public class Main {
public static void main(String[] args) {
Date start = new Date();
Map<Book, Double> books = new HashMap<>();
for (int i = 0; i < 10000000; i++) {
books.put(new Book(i,"Jane Eyre","Charlo... | 21.909091 | 87 | 0.599585 |
e294a5b84154b54ce787e2c72016bd866c21f74d | 1,841 | package com.devopslam.reacmiccustomer.controller;
import com.devopslam.reacmiccustomer.model.Customer;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.test.context.SpringBootTest;
import org.spring... | 36.82 | 99 | 0.727322 |
4f3f0a5cfd609dae42425b2a52a031d24a88a63b | 209 | package features;
import org.noear.solon.Solon;
import org.noear.solon.SolonApp;
public class GraphqlTest {
public static void main(String[] args) {
Solon.start(GraphqlTest.class, args);
}
}
| 19 | 45 | 0.708134 |
fced0373abbb04527763c02485ae55d04f3aee5c | 1,901 | /*
* LessCSS Compiler
* http://lesscss-compiler.projects.gabrys.biz/
*
* Copyright (c) 2015 Adam Gabrys
*
* This file is licensed under the BSD 3-Clause (the "License").
* You may not use this file except in compliance with the License.
* You may obtain:
* - a copy of the License at project page
* - a templ... | 27.955882 | 98 | 0.651762 |
69c1696e48d69631e8a9ea671c29eeee50e9212c | 1,429 | package com.shata.migration.client;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import org.apache.log4j.PropertyConfigurator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.shata.migration.utils.Config;
import com.shata.migration.utils.NamedThreadFactory;
... | 33.232558 | 107 | 0.723583 |
b56c2e02b5cc31db7bc179f27d6d64eaa3bb7fa0 | 3,994 | /*
* (c) 2015 CenturyLink. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 32.471545 | 104 | 0.702804 |
2e2a9d22797034760aedff0a47fa542b6d48725a | 4,051 | package my.interest.tamil.rest.resources.api;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import tamil.lang.TamilCharacterLookUpContext;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaTyp... | 32.408 | 154 | 0.627746 |
24bbc42a70f9b9b4973c9ee97b03643c29229555 | 1,780 | /*
* Copyright (C) 2009-2015 Johan Nilsson <http://markupartist.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 re... | 27.8125 | 76 | 0.68427 |
dfbce7e5d8abe6e1c7d9b0ba0efea5bdc0d99354 | 13,576 | /**
*
*/
package co.edu.uniquindio.logica;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Inet4Address;
import java.net.Inet6Address;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net... | 28.34238 | 116 | 0.640174 |
e1e961f5b895e86a60fa68fbbaad4bb74859964d | 1,287 | /*
* 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 ... | 29.930233 | 63 | 0.708625 |
87fd3b368953167ffb8375c86a667b362b3736f7 | 805 | /*
* Copyright (c) 2020-2021 - for information on the respective copyright owner
* see the NOTICE file and/or the repository at
* https://github.com/hyperledger-labs/acapy-java-client
*
* SPDX-License-Identifier: Apache-2.0
*/
package org.hyperledger.aries.api.issue_credential_v1;
import lombok.AllArgsConstructo... | 25.967742 | 78 | 0.787578 |
76934aafb7b5a5a7808abbb8f102a64a51da0078 | 369 | package poui;
import processing.core.PGraphics;
public interface Touchable {
public void renderToTouchSurface(PGraphics context, int actionIndex, int color);
public void applyTransformation(PGraphics _c);
public void onHover(int actionIndex, boolean in);
public void onClick(int actionIndex, boolean in);
p... | 28.384615 | 82 | 0.788618 |
228338ff91b6ef80142f39e82ba6e70b9e3fa930 | 269 | package com.dtstack.flink.sql.util;
import org.junit.Assert;
import org.junit.Test;
public class MD5UtilTest {
@Test
public void testGetMD5String(){
Assert.assertNotEquals(MD5Utils.getMD5String("aaaaa"), "d41d8cd98f00b204e9800998ecf8427e");
}
}
| 19.214286 | 99 | 0.732342 |
80cda40f9fe2af2400f6f1ba2ca6b5c33ac60c2a | 4,207 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.costmanagement.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import c... | 24.317919 | 96 | 0.630853 |
a3828475546a174279fa76210903542dfb9b32ad | 3,310 | /*
* Copyright 2010-2019 Miyamoto Daisuke.
*
* 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 applicab... | 33.434343 | 114 | 0.724169 |
f3625bb521d9e9bf66c16fc7797b57b67ba13932 | 14,189 | /*******************************************************************************
* Copyright (c) 2021 Gregory Mazo
*
* 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
*
* h... | 26.924099 | 170 | 0.727606 |
cfc493d04fcf3b70089a8d9625f53a5415333f27 | 10,264 | package com.hepengju.hekele.base.core;
import com.hepengju.hekele.base.constant.HeConst;
import lombok.*;
import org.apache.commons.io.IOUtils;
import org.springframework.core.io.DefaultResourceLoader;
import org.springframework.core.io.ResourceLoader;
import java.io.IOException;
import java.io.InputStream;
import ja... | 34.558923 | 148 | 0.545012 |
598258ed01a994e06fc986c4869bae7c6592efec | 3,159 | package org.yinan.rpc.service;
import io.grpc.Server;
import io.grpc.ServerBuilder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.yinan.config.context.ConfigContext;
import org.yinan.grpc.MapBackFeedEntry;
import org.yinan.grpc.MasterReceiveServiceGrpc.MasterReceiveServiceImplBase;
import org.yin... | 31.909091 | 112 | 0.638177 |
ef92c5e67f046341c0aa4720d34fcf911bcd3c56 | 3,748 | package de.goatfryed.pm.battleships.model;
import java.beans.PropertyChangeSupport;
import java.beans.PropertyChangeListener;
public class Shot
{
public static final String PROPERTY_column = "column";
private int column;
public int getColumn()
{
return column;
}
public Shot setColumn(in... | 20.480874 | 99 | 0.595251 |
8c8b1ad36f2a0784299db15cf16d34632dd11774 | 2,221 | package com.drools;
import lombok.extern.slf4j.Slf4j;
import org.kie.api.KieServices;
import org.kie.api.runtime.KieContainer;
import org.kie.api.runtime.KieContainerSessionsPool;
import org.kie.api.runtime.KieSession;
import org.kie.api.runtime.StatelessKieSession;
/**
* @author cWww
* @Title
* @Description
* @d... | 28.844156 | 81 | 0.715894 |
c90250bee3b8cb1aa7da3f1256eac2b439cd206a | 2,670 | /* Copyright 2006, Carnegie Mellon, All Rights Reserved */
package edu.cmu.minorthird.classify.ranking;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import edu.cmu.minorthird.classify.Classifier;
import edu.cmu.minorthird.classify.Dataset;
import edu.cmu.minorthird.classify.Example;
import ... | 29.021739 | 98 | 0.689888 |
d2f46277da1b3fa68d3142d5a79ebe7ada4210ce | 2,010 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 24.814815 | 99 | 0.718408 |
3d6af2bfdf099f249fe399c1599e08d30c632c53 | 11,339 | /*
* 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")... | 31.497222 | 86 | 0.537261 |
44457702c0a01868f1d5648b13d9f1324835c2ef | 883 | /*
* Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998-1999 IBM Corp. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/... | 24.527778 | 105 | 0.691959 |
0b9884b5c055814a50a7e76f1d0e82726222260d | 3,526 | package net.smackem.ylang.runtime;
import org.locationtech.jts.geom.Coordinate;
import org.locationtech.jts.geom.Geometry;
import org.locationtech.jts.geom.GeometryFactory;
import java.util.Iterator;
import java.util.Locale;
import java.util.Objects;
public class LineVal extends GeometryVal<PointVal> {
private f... | 26.313433 | 100 | 0.534884 |
67c926a4af367ca75ca6e89f4aaa0e1bdcf07981 | 354 | package com.pattern.designpattern.command;
import com.pattern.designpattern.command.entity.IProduct;
public class LightOnCommand implements Command {
private IProduct light;
public LightOnCommand(IProduct light) {
this.light = light;
}
@Override
public void execute() {
light.on();
}
@Override
public v... | 14.75 | 57 | 0.728814 |
13d29e99e032d721bdb6759f4ada64fa79d84e0f | 239 | package my.rnd.totp.ctrl;
import org.springframework.data.repository.CrudRepository;
import my.rnd.totp.dao.AuthSecret;
public interface AppRepository extends CrudRepository<AuthSecret, String> {
AuthSecret findByAppID(String id);
}
| 21.727273 | 75 | 0.811715 |
dbb886931857da360cb59c174f741901ca3153f7 | 257 | package com.ajoy.test;
import java.util.List;
import javafx.scene.control.ChoiceDialog;
public class ChoiceDialogBox<T> extends ChoiceDialog<T>
{
private List<T> choices;
public ChoiceDialogBox(List<T> choiceList)
{
choices = choiceList;
}
}
| 15.117647 | 55 | 0.743191 |
eeb1cd99602eaf970db7a9d53800d9b6c4910dfd | 1,067 | package com.electric_decade.calculator.api;
import java.time.LocalDate;
public class SeriesDay {
private LocalDate date;
private float[] intervals;
private float sum;
private float average;
private float min;
private float max;
public LocalDate getDate() {
return date;
}
... | 17.209677 | 49 | 0.581068 |
fcd60897c2c473f84f23964894548a7942946b49 | 705 | package com.nawy.liquidmongo.storage;
import com.mongodb.client.MongoClient;
public class DefaultMongoStorage implements StorageAdapter {
private final MongoClient mongoClient;
private final String databaseName;
public DefaultMongoStorage(MongoClient mongoClient, String databaseName) {
this.mong... | 28.2 | 111 | 0.68227 |
7d950198b21dd31aab93fd46469e087e2d292159 | 2,131 | package com.naver.nid.cover.parser.coverage.jacoco;
import com.naver.nid.cover.parser.coverage.CoverageReportParser;
import com.naver.nid.cover.parser.coverage.model.FileCoverageReport;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import java.net.URL;
import java.util.List;
import static com.... | 39.462963 | 172 | 0.773815 |
bbd09c8c8a67f38850674e1c21efc9a79a3f35fa | 196 | package us.codecraft.xsoup;
import org.jsoup.nodes.Element;
/**
* 匹配单个元素接口
*
* @author code4crafter@gmail.com
*/
public interface XElement {
String get();
Element getElement();
}
| 11.529412 | 33 | 0.673469 |
4f94011805f6c2a0ef774dd4a6a3741b1edff041 | 3,555 | /**
* Copyright 2019 DataCompressionPrimitives.
*
* Licensed under the Apache License, Version 2.0 (the "License");
*/
package org.dcp.test.util;
import org.dcp.util.EntropyUtil;
import org.junit.Test;
import java.math.BigInteger;
import static org.junit.Assert.assertEquals;
public class EntropyUtilTest {
... | 63.482143 | 402 | 0.808158 |
2e8d4446cb29b0d47c871bb9d90fdd5fc35cfce7 | 9,636 | /*
* Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 43.017857 | 105 | 0.691781 |
7956af9d2b07fc8b89d9a0008b9f6d32e76f803c | 1,028 | package main;
import helper.CompileException;
import org.jetbrains.annotations.NotNull;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
public class FileWriter {
/**
* Utility method for writing to the output directory
* @param directory The OutputDirs constant for the directory.
... | 31.151515 | 114 | 0.661479 |
1fa03b6d30f16ec19971882eee392b6e258b3fd8 | 4,348 | package havis.llrpservice.common.concurrent;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertTrue;
import static org.testng.Assert.fail;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutorService;
impor... | 31.507246 | 82 | 0.718721 |
ddf5afe7f80d855bff65f1a3d31324ba62b1ecaf | 3,291 | /**
* Copyright (c) 2013-2020 Nikita Koksharov
*
* 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... | 36.977528 | 99 | 0.727438 |
981275302e543b7fc3b289bf2ffdbd69e785e2ca | 3,086 | /*
This file is part of Intake24.
© Crown copyright, 2012, 2013, 2014.
This software is licensed under the Open Government Licence 3.0:
http://www.nationalarchives.gov.uk/doc/open-government-licence/
*/
package uk.ac.ncl.openlab.intake24.client.survey.rules;
import org.pcollections.PSet;
import org.workcraft.gwt.s... | 36.305882 | 151 | 0.597213 |
3a0decfc7d26e9ae9216c75f27711a3384bc7992 | 480 | package uk.ac.ebi.spot.goci;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.support.SpringBootServletInitializer;
/**
* Created by dwelter on 22/06/15.
*/
@SpringBootApplication
public class PussycatApplicat... | 30 | 73 | 0.797917 |
6ab1a2cde2b018fe3ee258c160c3889f3d67d0ab | 4,503 | package io.github.delirius325.jmeter.config.livechanges.api.resources;
import io.github.delirius325.jmeter.config.livechanges.LiveChanges;
import io.github.delirius325.jmeter.config.livechanges.ResultHolder;
import io.github.delirius325.jmeter.config.livechanges.SamplerMap;
import io.github.delirius325.jmeter.config.l... | 48.419355 | 119 | 0.686209 |
60e4056d416930700fbb395f70377857a249b65d | 4,768 | package com.hernandes.pontointeligente.entities;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Optional;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;... | 23.033816 | 110 | 0.730076 |
7fed4d96cb3c0cba88f01aa211a621581fe3bb49 | 162 | @RDFNamespaces("pkg = http://example.com/package-ns#")
package org.cyberborean.rdfbeans.test.reflect;
import org.cyberborean.rdfbeans.annotations.RDFNamespaces;
| 32.4 | 58 | 0.808642 |
385801cfca4b9fe1de6d0d9eed3c4d085f4d0a9e | 1,616 | package net.savantly.sprout.module.content.model.webPage;
import java.util.List;
import net.savantly.spring.fixture.AbstractBaseFixture;
import net.savantly.spring.fixture.Fixture;
import net.savantly.sprout.module.content.model.webPageLayout.WebPageLayout;
import net.savantly.sprout.module.content.model.webPa... | 36.727273 | 147 | 0.803218 |
ed06204da14c34cab0b0a3fa1684c75e2c33f92c | 3,176 | public class Heap {
private class PriorityQueue {
int size;
int capacity;
int[] elements;
public PriorityQueue(int capacity) {
this.capacity = capacity;
this.size = 0;
// elements[0] is a sentinel
elements = new int[capacity + 1];
// this is a min heap
elements[0]... | 22.685714 | 78 | 0.531486 |
57bf52bfb7774c66a858ee541656fc2796fc89ba | 212 | package com.sunyi.cloud;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class DependenciesApplication {
public static void main(String[] args) {
}
}
| 19.272727 | 68 | 0.787736 |
473d95b3884ab462292a0cc09dc152a53f89368f | 34,623 | /*
Copyright 2018-2021 WeAreFrank!
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... | 34.178677 | 159 | 0.733414 |
eeee8504b6d860d0f815caadc2e40c550ccaed6f | 486 | package org.theospi.portfolio.tagging.api;
import java.util.List;
import java.util.Set;
import org.sakaiproject.taggable.api.TaggableItem;
public interface DecoratedTaggableItem {
public String getTypeName();
public void setTypeName(String typeName);
public Set<TaggableItem> getTaggableItems();
public List<... | 22.090909 | 63 | 0.808642 |
0312e184d76c2cf306b9f20d78d162b6b9e7d9d8 | 1,876 | package com.joker17.redundant.model;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 存放属性所对应的值
*/
public class ChangedVo {
private Map<String, Object> beforeValMap = new HashMap<String, Object>();
private Map<String, Object> currentValMap = new HashM... | 23.45 | 120 | 0.668977 |
1f21c3c9c31a7a4c0add62c370e0028d006770f2 | 3,956 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Name: Pritish Wadhwa *
* RollNumber: 2019440 *
* Section: A *
* Stream: CSE *
* Topic: Assignment 2 *
* SubTopic: Main Class For Assignment 2 ... | 34.103448 | 102 | 0.655207 |
ef71a37864f884dd44971fc28b829bd6ad7b718d | 8,532 | package com.xjeffrose.xio.http;
import static io.netty.handler.codec.http.HttpMethod.*;
import static io.netty.handler.codec.http.HttpResponseStatus.*;
import static io.netty.handler.codec.http.HttpVersion.*;
import com.google.common.util.concurrent.Uninterruptibles;
import io.netty.buffer.ByteBuf;
import io.netty.bu... | 35.55 | 96 | 0.719526 |
3ae4b527fc7251e987d09b2f922c3d39f6155edd | 2,048 | package es.urjc.LDMpiratas.juego;
/**
* Created by liliana.santacruz on 14/11/2016.
*/
import es.urjc.LDMpiratas.liliana.core.FileIO;
import java.io.*;
public class Configuraciones {
public static boolean sonidoHabilitado = true;
public static int[] maxPuntuaciones = new int[]{100, 80, 50, 30, 10};
... | 28.84507 | 73 | 0.485352 |
d769925d3168cc7331054692e7eafaeb36eb3641 | 216 | @ParametersAreNonnullByDefault @MethodsReturnNonnullByDefault
package com.jozufozu.flywheel.backend.state;
import javax.annotation.ParametersAreNonnullByDefault;
import net.minecraft.MethodsReturnNonnullByDefault;
| 30.857143 | 61 | 0.893519 |
7c6ebcfab7a957ff29529d2ee34da180fa5c05ef | 8,104 | /*Domain class of table m_prj_notifications*/
package com.airback.module.project.domain;
import com.airback.core.arguments.ValuedBean;
import com.airback.db.metadata.Column;
import com.airback.db.metadata.Table;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.apach... | 29.576642 | 90 | 0.655849 |
dd5896e4f20c63062a6e89da9e65b047b743840e | 3,343 | /*
* Copyright 2019-2021 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 ap... | 32.456311 | 108 | 0.693987 |
72aa6dbc166c29adf45abadbd99638de0ec569cd | 1,976 | package com.example.root.amtab.database;
import android.provider.BaseColumns;
/**
* Created by root on 29/10/16.
*/
public final class EntryContract {
private EntryContract() {}
/* Inner class that defines the table contents */
public static class BusStopEntry implements BaseColumns {
public ... | 40.326531 | 76 | 0.723178 |
3dcfa542d231237b7e66c1cc82703a7a436f3c33 | 1,303 | package com.example.demo.doa;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.jn... | 28.326087 | 106 | 0.726017 |
e0bc0d99fc85833b94ac70460594f6cc183c7d7f | 933 | package com.revolsys.gis.parallel;
import com.revolsys.parallel.channel.Channel;
import com.revolsys.parallel.process.BaseInOutProcess;
import com.revolsys.record.Record;
import com.revolsys.util.count.LabelCountMap;
import com.revolsys.util.count.LabelCounters;
public class StatisticsProcess extends BaseInOutProcess... | 28.272727 | 100 | 0.755627 |
1f0a0f0b195c128bee35bc23f0216b55e5bfd69f | 51 | package a.a.a;
public final class g extends q {
}
| 10.2 | 32 | 0.686275 |
508375028cd585e562e31481d0acb46bfd3ab488 | 4,856 | package com.jlhood.ddbcopier;
import static com.jlhood.ddbcopier.EventualConsistency.waitUntil;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.amazonaws.ser... | 38.848 | 140 | 0.672158 |
4a27cc9539560d7a3c8f5be3112d6e595ca07a20 | 2,183 | package ch.hslu.oop.person;
import nl.jqno.equalsverifier.EqualsVerifier;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class PersonTest {
private Person person;
@BeforeEach
void setUp() {
person = new Person(1,"vor... | 27.2875 | 107 | 0.594595 |
e1e00b33c23ae1e3a39d71521e947f82b554d980 | 2,985 | package com.general.controller.api;
import java.util.List;
import com.general.dto.*;
import com.general.param.student.ConfirmCodeParam;
import com.general.param.student.ProjectListParam;
import com.general.param.student.ProjectMemberParam;
import com.general.service.ProjectService;
import org.springframework.beans.fa... | 42.642857 | 128 | 0.79062 |
fbc7d32c117dd1ca7b81f5574006f8ec29a29bb4 | 6,585 | package com.sequenceiq.cloudbreak.service.cluster;
import static com.sequenceiq.cloudbreak.service.stack.connector.VolumeUtils.buildVolumePathString;
import static com.sequenceiq.cloudbreak.service.stack.connector.VolumeUtils.getLogVolume;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashM... | 45.413793 | 140 | 0.633561 |
3ff2c2b666f3f5d370785be451873d839ee64a72 | 207 | package edge.javax.xml.bind;
import au.net.netstorm.boost.bullet.scalpel.core.Edge;
public interface JAXBContext extends Edge {
Marshaller createMarshaller();
Unmarshaller createUnmarshaller();
}
| 20.7 | 54 | 0.777778 |
d7bf7d2c5b28b41334a53086499de9f0c89cc17e | 678 | // Copyright Eagle Legacy Modernization, 2010-date
// Original author: Steven A. O'Hara, Feb 11, 2011
package com.eagle.programmar.Gupta.Declarations;
import com.eagle.programmar.Gupta.Gupta_Declaration;
import com.eagle.programmar.Gupta.Terminals.Gupta_CommentToEndOfLine;
import com.eagle.programmar.Gupta.Terminals.... | 35.684211 | 69 | 0.833333 |
4b64836f34a23b8f3f02dfd3176a75b528e1b2f1 | 6,162 | package com.njlabs.guide.android.dev;
import java.io.IOException;
import java.io.InputStream;
import com.actionbarsherlock.app.ActionBar;
import com.actionbarsherlock.app.SherlockActivity;
import com.actionbarsherlock.view.MenuInflater;
import com.actionbarsherlock.view.MenuItem;
import com.actionbarsherlock.view.Men... | 39.5 | 398 | 0.662285 |
42bc185b996a4c84c670f2d1a64005088b16bff2 | 661 | package sarf.verb.quadriliteral.unaugmented;
import java.util.*;
/**
* <p>Title: قائمة الجذور الرباعية المجردة </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2006</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class UnaugmentedQuadriliteralRo... | 21.322581 | 80 | 0.639939 |
b54489ab8befddd4a9f2a6243df590f75a39f21f | 2,088 | package io.github.lama06.llamagames.llama_says;
import io.github.lama06.llamagames.GameCommand;
import io.github.lama06.llamagames.LlamaCommand;
import io.github.lama06.llamagames.LlamaGamesPlugin;
import net.kyori.adventure.text.Component;
public class LlamaSaysCommand extends GameCommand {
public LlamaSaysComma... | 46.4 | 134 | 0.650862 |
e024cdb2bb3e49eac60bdcdb4bc7855dbae6a761 | 3,129 | package com.github.nilstrieb.commands.fun;
import com.github.nilstrieb.cofig.Config;
import com.github.nilstrieb.core.command.Command;
import net.dv8tion.jda.api.EmbedBuilder;
import net.dv8tion.jda.api.entities.Message;
import net.dv8tion.jda.api.entities.MessageEmbed;
import java.util.*;
public class FightCommand ... | 28.972222 | 153 | 0.537552 |
fb2c1afa3062487d9e8625d081cdcbf7ebe4f632 | 19,078 | /*******************************************************************************
* 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... | 33.470175 | 110 | 0.543715 |
623ca90f097f202169e4d4e80b08a3b89cb325cb | 9,088 | package lapr.project.data;
import lapr.project.model.User;
import oracle.jdbc.OracleTypes;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
public class UsersAPI extends DatabaseAPI {
public UsersAPI() {
super();
}
public UsersAPI(String databaseUrl, String datab... | 36.497992 | 239 | 0.585057 |
d7e94738a9fd4a5fe19114b4a564fa853b7b9e02 | 252 | package sunrise.raas.sdk.core.requests.rest;
import java.util.Map;
public final class GetRequest extends AbstractRestRequest {
public GetRequest(String route, Map<String, String> headers) {
super(HttpVerb.Delete, route, headers);
}
}
| 25.2 | 66 | 0.738095 |
278f4d29d8000f1de7761acb99197dc9bcf65947 | 8,786 | package codejam.y2014.qualifications.krige.d;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Scanner;
import java.util.concurrent.Callable;
import java.util.concurrent.Execution... | 39.755656 | 80 | 0.712156 |
699c4e3476ae5dd532d6c070e8f26949f9bdcf09 | 6,083 | package com.aquima.plugin.xslt.ui;
import com.aquima.interactions.foundation.io.IResource;
import com.aquima.interactions.foundation.io.IResourceManager;
import com.aquima.interactions.foundation.io.ResourceException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Compo... | 36.866667 | 118 | 0.683709 |
674fcbe975524e71ed93a593a92621c7a7445e32 | 1,950 | /* Copyright (c) 2010, Carl Burch. License information is located in the
* logisim_src.Main source code and at www.cburch.com/logisim/. */
package logisim_src.std.wiring;
import java.util.Arrays;
import java.util.List;
import logisim_src.comp.EndData;
import logisim_src.data.Attribute;
import logisim_src.data.BitWi... | 27.083333 | 86 | 0.711282 |
63f7d07cc615330191acf89dcdcf1f26fd21405a | 231 | package Debugging;
public class Car {
public int run(int speed, int accelerate) {
return speed + accelerate;
}
public static void main(String[] args) {
System.out.println(new Car().run(5,4));
}
}
| 17.769231 | 47 | 0.61039 |
0d936694273d7ca5b9ab9c474d2d5d13317e271e | 1,722 | /*
* Copyright 2008 blue media labs ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 25.701493 | 75 | 0.673055 |
253b099462f71be1f750aa34939d75fbd9992cda | 904 | package com.googlecode.gwt.test;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.PushButton;
import com.googlecode.gwt.test.utils.events.Browser;
import org.junit.Test;
import static org.assertj.core.api.Assertions.as... | 25.111111 | 81 | 0.641593 |
9d9fd8b32cf67b28d637297fe8ec8543efa725b5 | 619 | /*
* 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 lab.de.onasis;
/**
*
* @author Monica
*/
public class LabDeOnasis {
/**
* @param args the command line arguments
... | 19.34375 | 79 | 0.547658 |
f5c14c568d41b36cbb566b675654ab6147dfb607 | 5,576 | package models;
import c195.Application;
import java.time.*;
import java.sql.*;
import java.util.*;
import java.util.stream.*;
import javafx.beans.property.*;
public abstract class DBEntity {
private ReadOnlyObjectWrapper<ZonedDateTime> createDate = new ReadOnlyObjectWrapper();
private ReadOnlyStringWrap... | 42.564885 | 132 | 0.647238 |
0ac1a66399beee6d424d60f91fa1feca9c63905f | 1,342 | package com.ozruit;
public class Match {
private String homeTeam;
private String awayTeam;
private int homeScore;
private int awayScore;
public Match() {
}
public Match(final String homeTeam, final String awayTeam, final int homeScore, final int awayScore) {
this.homeTeam = homeTe... | 22.366667 | 106 | 0.570045 |
8ff64bfd731c67399f6ef85f0b906098cc318929 | 1,282 | package cn.yueshutong.springprojecttree.db.service.impl;
import cn.yueshutong.springprojecttree.db.dao.MethodNodeDao;
import cn.yueshutong.springprojecttree.db.entity.MethodNode;
import cn.yueshutong.springprojecttree.db.service.MethodNodeService;
import cn.yueshutong.springprojecttree.db.service.util.ServiceUtil;
imp... | 30.52381 | 108 | 0.73869 |
a29d9e0486ec0cfee5dd00b29c4cf85aee60108f | 2,482 | package com.swdave.popular_movies_app_final.adapters;
import android.content.Context;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widg... | 27.88764 | 104 | 0.69581 |
ce5dc7ca83a464b5449488a5c671473272946e54 | 3,657 | package pro.taskana.testapi.tests;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.List;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInstance;
import org.junit.jupiter.api.TestInstance.Lifecycle;
import pro.taskana.TaskanaEngineC... | 33.861111 | 96 | 0.803391 |
5d673f70c5e5a487b7e5248dcf32f96ac936c6a2 | 203 | package org.springframework.aop.mytest;
public class Aspect2 {
public void before(){
System.out.println("Aspect2--before执行");
}
public void after(){
System.out.println("Aspect2--after执行");
}
}
| 16.916667 | 42 | 0.70936 |
9fe9c9a532c1118a550afb42f24bfde7def99cbe | 1,380 | /*
* Copyright 2018 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 a... | 37.297297 | 96 | 0.752174 |
9c4a4e12a31f562deeefd74f15e7e9e968e57d67 | 3,419 | package com.schening.phoenix.security.config;
import com.mysql.fabric.xmlrpc.Client;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPa... | 33.851485 | 116 | 0.747879 |
53cd8debf2a652709c575732316af70b5c50d3bb | 810 | /*
* 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.
*/
/**
*
* @author Same
*/
public class Laskuri {
private int arvo;
public Laskuri(int alkuarvo) {
th... | 16.530612 | 80 | 0.493827 |
333a8bd2342095d35a84bcb5f71bfc5473615da4 | 3,876 | package io.coderr.client.dto;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/***
* Represents an exception being transferred for analysis
*/
public class ExceptionDTO {
ExceptionDTO() {
Properties = new HashMap<>();
}
public ExceptionDTO(Thro... | 30.761905 | 160 | 0.653767 |
1c0ac93cba4f2bf2934ff1ae540ae9f4d373749c | 2,778 | package com.example.mvcp.controllers;
import com.example.mvcp.entities.Cart;
import com.example.mvcp.entities.CartProps;
import com.example.mvcp.entities.Users;
import com.example.mvcp.repositories.CartPropsRepository;
import com.example.mvcp.repositories.CartRepositoy;
import com.example.mvcp.repositories.CategoryRep... | 34.725 | 114 | 0.659467 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.