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 |
|---|---|---|---|---|---|
7482f35f0fc152387585aa1ca206f36ea921daac | 970 | package com.muscidae.parrot.gateway;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAut... | 40.416667 | 142 | 0.828866 |
7ca4ae1cff61558c85e3769afdfe3cf495117a54 | 14,368 | package com.cyc.kb.client;
/*
* #%L
* KBAPI
* %%
* Copyright (C) 1995 - 2014 Cycorp, Inc
* %%
* This software is the proprietary information of Cycorp, Inc.
* Use is subject to license terms.
* #L%
*/
import com.cyc.base.CycAccessManager;
import com.cyc.base.CycApiException;
import com.cyc.base.CycConnection... | 37.416667 | 109 | 0.660565 |
ee32742b97dc315d399d98bb36d376bc7673ed1d | 1,995 | package com.iflytek.guitar.core.data.dataformat;
import org.apache.hadoop.io.BytesWritable;
public class TextLineRecord extends DataRecord {
private String data = null;
public TextLineRecord() {
}
public TextLineRecord(String lineString) {
this.data = lineString;
}
@Override
pu... | 25.909091 | 79 | 0.653133 |
90b765e4160c879050656d7f2cbf656cdad46139 | 10,743 | package dev.codesoapbox.dummy4j.dummies.internet;
import dev.codesoapbox.dummy4j.Dummy4j;
import dev.codesoapbox.dummy4j.exceptions.UrlCouldNotBeCreatedException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.List;
import java.util.Optional;
import java.util.StringJoiner;
import static... | 33.157407 | 115 | 0.650749 |
d9f5f69d7a86694ae2f6c5514c49c2437aebc46c | 6,221 | /*
* #%L
* ACS AEM Commons Bundle
* %%
* Copyright (C) 2017 Adobe
* %%
* 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... | 39.373418 | 120 | 0.702781 |
5669fc8cef424dc5d01cf670b923acb6669e78e8 | 10,681 | package seedu.booking.logic.commands;
import static java.util.Objects.requireNonNull;
import static seedu.booking.logic.commands.CommandShowType.COMMAND_SHOW_BOOKINGS;
import static seedu.booking.logic.parser.CliSyntax.PREFIX_BOOKING_END;
import static seedu.booking.logic.parser.CliSyntax.PREFIX_BOOKING_START;
import ... | 40.003745 | 120 | 0.666417 |
b3d900446f2eec1b75e8bfa0861a25448d814c80 | 503 | package com.webpieces.http2engine.impl.shared.data;
import java.util.concurrent.CompletionException;
public class NoTransitionStreamError extends CompletionException {
private static final long serialVersionUID = 1L;
public NoTransitionStreamError() {
}
public NoTransitionStreamError(String message) {
super(... | 20.12 | 66 | 0.787276 |
5e422ccbb5b2c6dc75ac1431720717c46a68bf46 | 343 | package com.hawaso.javacampus.controllers.portfolios;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class PortfolioController {
@GetMapping(path = { "/portfolio", "/portfolio/index" })
public String index() {
return "por... | 26.384615 | 60 | 0.746356 |
d5b5f26d78584db18edae0d8521873e792476282 | 2,792 | package org.ovirt.engine.api.restapi.types;
import org.ovirt.engine.api.model.Permit;
import org.ovirt.engine.api.model.PermitType;
import org.ovirt.engine.core.common.businessentities.ActionGroup;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class PermitMapper {
private static final Logger lo... | 36.736842 | 126 | 0.637894 |
f9f054eb36050697460bb2679aec45ac16ae25fc | 960 | package FunctionalCoreTests;
import Factory.ServerFactory;
import FunctionalCore.HTTPCore;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class HTTPCoreTest {
private int port = 5000;
private String directory = System.getProperty(... | 30 | 87 | 0.680208 |
e32edd9f382138b5769ff4cbf89b46ef19b5ca71 | 1,087 | /*
* Copyright (C) 2016 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... | 24.704545 | 76 | 0.639374 |
fcdae5a8e3804cf90b0e7430cf29b31280186931 | 834 | package com.siyeh.igtest.bugs.castConflictingInstanceof.andAnd;
public class AndAnd {
public String getCanonicalText(PsiElement resolved) {
if (resolved instanceof PsiMember || resolved instanceof PsiNamedElement) {
PsiClass clazz = ((PsiMember) resolved).getContainingClass();
if (... | 26.903226 | 83 | 0.58753 |
e17733df72ccf6b2455018dbffcc4ec31e24fdfb | 5,175 | /*
* MIT License
*
* Copyright (c) 2017 Sijmen Huizenga
*
* 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, ... | 35.689655 | 89 | 0.628986 |
6c4fc248f881bf0f807e175544de3d6f4a82f332 | 2,899 | // Targeted by JavaCPP version 1.5.5: DO NOT EDIT THIS FILE
package org.bytedeco.arrow;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static org.bytedeco.javacpp.presets.javacpp.*;
import static org.bytedeco.arrow.global.arrow.*;
/** Options for the HDFS implem... | 49.135593 | 138 | 0.769921 |
84b45ec41934dd5d0b88018317c507ad6471cafe | 1,625 | package image2ascii.colors.factory;
import com.github.elementbound.asciima.image2ascii.colors.factory.HSVColorFactory;
import com.github.elementbound.asciima.image2ascii.colors.model.HSVColor;
import com.github.elementbound.asciima.image2ascii.colors.model.RGBColor;
import org.testng.annotations.BeforeMethod;
import o... | 36.931818 | 100 | 0.648615 |
b70714cb12209c39c5266d2efbc9f69bde65cf70 | 820 | package ru.job4j.profession;
/**
* @author Egor Stogov (egst@rambler.ru)
* @version $Id$
* @since 0.1
*/
public class Engineer extends Profession {
/**
* Коэфициент интеллекта.
*/
private int iq;
/**
* Конструктор.
* @param name имя
* @param profession профессия
* @par... | 15.185185 | 61 | 0.532927 |
606febb9dd05e9b6989d4cd4ec34d2621e4bbb32 | 2,838 | package org.eclipse.persistence.internal.sequencing;
import org.eclipse.persistence.descriptors.ClassDescriptor;
import org.eclipse.persistence.internal.sessions.AbstractSession;
import org.eclipse.persistence.sequencing.Sequence;
import java.util.ArrayList;
import java.util.Collection;
import java.util.concurrent.Co... | 30.516129 | 138 | 0.688865 |
64e483eeec31946c9ec202eb749c99df42b2b61b | 2,843 | /*
* Copyright (c) 2016, Team Mion
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIM... | 29.309278 | 75 | 0.516004 |
1d00728c095b0425421da606b3656a95328cacdc | 846 | package ok;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import ok.database.DB;
impor... | 23.5 | 71 | 0.755319 |
c3ae95d143f24d340ba31ff3b03cb4a7e141f92f | 2,186 | /*
* Copyright 2013 David Kunzler
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | 38.350877 | 86 | 0.694419 |
ddfd57c20d1af43599d82ba397c13ed3e02d3b5d | 220 | package com.bich.idl.file.icons;
import com.intellij.openapi.util.IconLoader;
import javax.swing.*;
public class IdlIcons {
public static final Icon DEFAULT_ICON = IconLoader.getIcon("/icons/idl-x-small.png");
}
| 20 | 89 | 0.754545 |
3be30ba1d712fabca72012cb2397de0906fa2499 | 14,884 | /*
* Copyright 2006-2012 Amazon Technologies, Inc. or its affiliates.
* Amazon, Amazon.com and Carbonado are trademarks or registered trademarks
* of Amazon Technologies, Inc. or its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this ... | 36.841584 | 99 | 0.525531 |
5a66b1ddd20b1aca94ab951f2cffdfc0dfb84fc7 | 3,561 | package test.kvolkov.badootestapp.controller.transactions;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v4.content.AsyncTaskLoader;
import java.util.List;
import test.kvolkov.badootestapp.controller.AppController;
import test.kvolkov.badootestapp.model.transaction... | 31.236842 | 118 | 0.644201 |
7df927d0c16f4e647613f34756d35f515d4b046c | 1,062 | import java.io.IOException;
import java.util.concurrent.Callable;
/**
* For using TrendsAPIWrapper with threads (each TrendsCallable instance represents an asynchronous
* task which can be executed by a separate thread).
*/
public class TrendsCallable implements Callable<TrendsResult> {
String trendsFunction;
S... | 27.947368 | 100 | 0.72693 |
e5e017760e370253df9ccf60867dae0aa7553a29 | 21,475 | /*
Copyright 2012 Harri Smatt
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 wri... | 32.836391 | 77 | 0.691548 |
f65071d02769151f255bb7c86540fd11239cccee | 1,430 | /*
* Copyright 2017 Sam Sun <github-contact@samczsun.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 29.183673 | 88 | 0.672727 |
34cd11df7e90f02c97e0fb0bbdc0e64bb309a14f | 670 | package com.sky.skyserver.service.inter;
import com.sky.skyentity.bean.TaskInfoParams;
import com.sky.skyentity.entity.TaskInfo;
import com.sky.skyserver.exception.BaseException;
import java.util.List;
public interface TaskInfoService {
// 新增
void save(TaskInfo taskInfo) throws BaseException;
//查询全部任务
... | 29.130435 | 74 | 0.765672 |
615f35ef627fc161362fbbac9099a8d5cc0040dd | 332 | package xyz.tomd.cameldemos.springboot.restdsl;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class RestDslApplication {
public static void main(String[] args) {
SpringApplication.run(RestDslApplication.class, ... | 25.538462 | 68 | 0.828313 |
c6fd3451407bc2d88b65bccfde49ddb6b966807d | 3,357 | package hwanjan;
import java.util.Scanner;
public class hwanone {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
Scanner myInput = new Scanner(System.in);
final double wonperEUR = 1347.42;
final double wonperUSD = 1132.60;
final double wonperJPY = 1025.85;
... | 28.449153 | 88 | 0.640155 |
2bdac062c4063ebb1e33538042156bc51d4d9b31 | 5,636 | package org.ovirt.engine.ui.uicommonweb.models.networks;
import org.ovirt.engine.core.common.businessentities.OpenstackNetworkProviderProperties;
import org.ovirt.engine.core.common.businessentities.Provider;
import org.ovirt.engine.core.common.businessentities.comparators.NameableComparator;
import org.ovirt.engine.c... | 33.152941 | 128 | 0.690561 |
b123beaa2b75e40ee5f3cbde217bb9c0c12adf1d | 1,821 | /*
* 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 battleship3;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
im... | 28.453125 | 99 | 0.601318 |
0d737660ed31f2f12b304c26c87f227efec5a6ff | 227 | package fullcontact.contacts.api.responses.account;
import fullcontact.contacts.api.models.Account;
import lombok.Getter;
import lombok.Setter;
public class AccountResponseBody {
@Getter @Setter public Account account;
}
| 22.7 | 51 | 0.810573 |
5db5f838134f8fbaf6766d5591fa70b57c71a2ca | 1,058 | package com.rgand.x_prt.lastfmhits.util;
/**
* Created by x_prt on 21.04.2017
*/
public class AppConstants {
public static final String APP_CASH_DIRECTORY = ".LastFMCash";
public static final String APP_CASH_FILE_NAME = "cover.png";
public static final String MEGA_FILE_PREFIX = "mega_";
public sta... | 35.266667 | 79 | 0.752363 |
88f80a1998f63a60add68517a49859ac37e68a57 | 4,646 | package com.donkingliang.groupedadapterdemo.adapter;
import android.content.Context;
import com.donkingliang.groupedadapterdemo.R;
import com.donkingliang.groupedadapterdemo.entity.ChildEntity;
import com.donkingliang.groupedadapterdemo.entity.GroupEntity;
import library.group.list.adapter.holder.BaseViewHolder;
impo... | 32.041379 | 100 | 0.658846 |
1a435dc7710f172dd7c4a9aa4137512de544eba6 | 6,957 | package org.bouncycastle.pqc.crypto.test;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.HashMap;
import junit.framework.TestCase;
import org.bouncycastle.crypto.AsymmetricCipherKeyPair;
import org.bouncycastle.crypto.SecretWithEncapsulation;
import org.b... | 46.072848 | 213 | 0.602127 |
cd1ccfac720712713349fede15d3c7e48826a7bf | 2,439 | /*
* Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package sun.java2d.loops;
public final class RenderCache {
final class Entry {
private Sur... | 23.451923 | 79 | 0.469045 |
8a6d75eb0277c8c6b56b91c1f05dd1b05ad4ae18 | 1,790 | package edu.eci.cvds.controller;
import edu.eci.cvds.model.entities.element.type.ElementTypeName;
import edu.eci.cvds.model.entities.role.RoleName;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
@ManagedBean(name = "enumsBean", eager = true)
@RequestScoped
@SuppressWarnings("deprecation")... | 24.189189 | 64 | 0.693296 |
2db2c7ab25378bca797052118b8a162a5af56218 | 1,320 | /*
* Copyright 2009-2012 Aluminum 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 36.666667 | 105 | 0.762121 |
03ae9aa34f4ac1076ed414135180cb9a161558ca | 6,488 | /**
* 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.490909 | 96 | 0.677559 |
de60fb890322831883a575849860db1e7b99cd50 | 10,079 | package ca.ualberta.moodroid.ui;
import android.content.Context;
import android.graphics.Color;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import an... | 36.386282 | 188 | 0.629328 |
47309c66ebb8f653ce404e0579a18136065a0a39 | 3,414 | /**
* Akylas
* Copyright (c) 2014-2015 by Akylas. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
package ti.modules.titanium.audio;
import org.appcelerator.kroll.KrollFunction;
import org.appcelerator.kroll.Kro... | 32.826923 | 115 | 0.733743 |
006d0ebcb0702e56de9ca2dd2827e4d64eece35d | 8,985 | package com.example.intelligentpotver2;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;
import android.os.SystemClock;
import android.support.v4.content.LocalBroadcastManager;
import andro... | 44.261084 | 123 | 0.565164 |
555b5605c71b263fdeff828c4edcab2e8be176de | 1,479 | package com.ondemandbay.taxianytime.db;
import android.content.Context;
import com.ondemandbay.taxianytime.models.User;
public class DBHelper {
private DBAdapter dbAdapter;
public DBHelper(Context context) {
dbAdapter = new DBAdapter(context);
}
// public void addLocation(LatLng latLng) {
// ... | 20.260274 | 56 | 0.617309 |
613c9f565466082281cec4c7c0b3cc3b6c13cc8f | 3,177 | package com.gade.zaraproductcheckerapp.db.entities;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.Index;
import androidx.room.PrimaryKey;
import androidx.room.TypeConverters;
import com.gade.zaraproductcheckerapp.db.converters.DateConverter;
import ja... | 21.910345 | 95 | 0.651243 |
0e63a2883aa76453c22cd3bbd68fb820fd1a13da | 1,666 | package physics;
import particles.Particles;
import terrain.Terrain;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.math.Vector2;
import com.mygdx.game.Camera;
public class Grenade extends Missile
{
private static fin... | 20.825 | 107 | 0.690876 |
89e4ffacc6fac65f19b74b0e8c6b229e743aec26 | 1,621 | /*
* TCSS 305
* Assignment 5 - PowerPaint
*/
package shapes;
import java.awt.Color;
import java.awt.Shape;
import java.awt.geom.Line2D;
import java.awt.geom.Path2D;
/**
* A pencil shape to be used by the GUI.
*
* @author Trevor N. Lowe
* @version November 19, 2015 - 12:18 PM
*/
public fina... | 26.145161 | 69 | 0.581123 |
eef3b030cf86f172af4ed446a41c1a7f4c54bfc8 | 17,331 | package com.foxinmy.weixin4j.qy.api;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.StringWriter;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
im... | 33.982353 | 168 | 0.695748 |
ba9ece0505ef148f774fbf5e3729b8c93371c392 | 243 | package com.mapcat.mapcatsdk.maps.renderer;
/**
* Can be used to schedule work on the map renderer
* thread or request a render.
*/
public interface MapRendererScheduler {
void requestRender();
void queueEvent(Runnable runnable);
}
| 17.357143 | 51 | 0.740741 |
122363fd304490819afd75a094542ad251c994a3 | 1,679 | package com.hope.domain;
public class Situation {
private String UserName;
private int CourseID;
private double ActualCredit;
private double Actualperiod;
private double TestScore;
private String Rank;
private Integer times;
public Integer getTimes() {
return times;
}
... | 22.386667 | 117 | 0.588446 |
c2d19bb191a2abc0f15562b9f1df61ddc26f93e3 | 1,386 | package ge.vq.tlv.parser.strategies;
import ge.vq.tlv.structure.StringTypeValue;
import ge.vq.tlv.utils.BiteCodeUtils;
import java.io.UnsupportedEncodingException;
import java.util.List;
import static ge.vq.tlv.constants.CommonConstants.DATA_SIZE_BYTES_LENGTH;
import static ge.vq.tlv.constants.CommonConstants.UTF16_... | 37.459459 | 127 | 0.777778 |
c837bbf5f5811423db97aa766b10558c38ee33bd | 3,546 | package com.heaven7.java.data.io.util;
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.Closeable;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.StringWriter;
/** Provides utility meth... | 37.326316 | 113 | 0.724478 |
af0483de99019d36f41e22f9ac640e0f62d2260b | 5,229 | package com.example.mymentoapp.activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.widget.Button;
import android.widget.RatingBar;
import android.widget.TextView;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcomp... | 44.313559 | 162 | 0.654618 |
3246dad84d95f243bfd30930012c23630cf9bb02 | 675 | package org.domainrobot.json.textcomparator;
import com.fasterxml.jackson.databind.JsonNode;
/**
* Object to which the {@link JsonTextComparator} forwards two {@link JsonNode}s for comparing. It's useful, if you have
* to compare 'special' nodes.
*/
public interface NamedNodeComparator {
/**
* Processes the co... | 23.275862 | 148 | 0.714074 |
2f9742abc1759f48c299f5603c7ba26adb899803 | 1,353 | /*
Copyright 2013 Twitter, 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 agreed to in writing, software
distr... | 30.066667 | 78 | 0.765706 |
a590c0c2d4a142008a0ba09d05f5760b319240a2 | 2,130 | package com.github.zmzhoustar;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import javax.annotation.PostConstruct;
import org.apache.pulsar.client.api.Consumer;
import org.apache.pulsar.client.api.Message;
import org.apache.pulsa... | 27.662338 | 79 | 0.748357 |
e3884b32c7c534a811ff5aea48d0bf00a470c4ee | 5,282 | /*
* Copyright 2018 The GraphicsFuzz Project 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 applic... | 39.714286 | 98 | 0.737978 |
d7df4d21e96526b447e5be24d072c8a8b111ae6d | 4,070 | package com.mrbysco.dailydad.config;
import com.mrbysco.dailydad.DailyDad;
import net.minecraftforge.common.ForgeConfigSpec;
import net.minecraftforge.common.ForgeConfigSpec.ConfigValue;
import net.minecraftforge.common.ForgeConfigSpec.EnumValue;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecr... | 47.325581 | 113 | 0.703931 |
b7bafc8a7753480e72c38c765fb7d0dd71a19e6b | 9,139 | /**
* Copyright 2020 Alibaba Group Holding Limited.
*
* 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 appli... | 34.486792 | 112 | 0.649852 |
a5ea665d49273b875b10b392983cc8764fb55081 | 328 | package org.n3r.aoc.check.impl.right;
import org.n3r.aoc.check.Order;
public class StopOrder implements Order {
public static StopOrder instance = new StopOrder();
@Override
public String keyValue() {
return null;
}
@Override
public Object fieldValue(String s) {
return null;
... | 18.222222 | 55 | 0.658537 |
c67203c235c6942a13c25ace5b37819b9ee2f654 | 110 | package io.dblog.common.cache;
/**
* Created by Pelin on 17/6/29.
*/
public class CacheExpiredListener {
}
| 13.75 | 35 | 0.7 |
bb3a6272f19686609d8b5fe291b8bd7181cfe5b9 | 947 | package org.cajunc2.dev80.ui.help.instructions;
import java.util.Arrays;
import java.util.List;
public class RRCInstructionDetail implements InstructionDetail {
private static final List<InstructionVariant> variants = Arrays.asList(new InstructionVariant[] {
new InstructionVariant("RRC (HL)", "CB 0E", "15"... | 30.548387 | 212 | 0.682154 |
a3ddda9e3f9c8a1de7e2e75b21490eb6198d9b5d | 1,015 | package de.dai_labor.conversation_engine_core.skills;
/**
* Stores a simple recipe for testing purposes
*
* @author Marcel Engelmann
*
*/
public class Recipe {
private String name;
private String[] ingredients;
private String[] instructions;
public Recipe(String name, String[] ingredients, String[] instruct... | 21.145833 | 74 | 0.689655 |
6f1446b79c85f042d2a37c1d6a0763e4cb09ae01 | 2,608 | package crazypants.enderio.item.darksteel;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
public class EnergyContainer {
private int capacityRF;
private int maxReceiveRF;
private int maxExtractRF;
public EnergyContainer(int capacityRF, int maxReceiveRF, int maxExtractRF) {
... | 29.636364 | 113 | 0.711273 |
492d811660695ce3544f6b89278b0ac1f49e3e23 | 5,659 | package carbon.widget;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.util.AttributeSet;
import androidx.annotation.AttrRes;
import androidx.a... | 31.438889 | 119 | 0.650645 |
feabb14849955ba70bf3c492478135cb39ae55bd | 1,437 | package com.yeleman.ortm_droid;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.BuildConfig;
import android.text.Html;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
/**
* Created by fad ... | 29.9375 | 93 | 0.674322 |
182055a771dea0bd019bd22e991df1a1e27da229 | 2,532 | package edu.jhu.pacaya.util;
import java.util.Arrays;
import org.junit.Assert;
public class JUnitUtils {
private JUnitUtils() {
// private constructor
}
public static void assertArrayEquals(double[][][] a1, double[][][] a2, double delta) {
assertSameSize(a1, a2);
for (int i=0; i... | 32.050633 | 111 | 0.57425 |
8d4c0de667c7bfb15ea0a55404e91c4e8cefe234 | 3,106 | package ru.job4j.store;
import org.junit.Assert;
import org.junit.Test;
import ru.job4j.html.Post;
import ru.job4j.html.SqlRuPost;
import ru.job4j.quartz.Config;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import static org.hamcrest.core.Is.is;
/**
* Тесты класса PgSqlStore.
*/... | 34.898876 | 83 | 0.619124 |
038da1cde7df9227b7317d95df3329674d19e44d | 783 | package com.codingpixel.healingbudz.static_function;
import android.app.ActivityManager;
import android.content.Context;
import java.util.List;
public class Helper {
public static boolean isAppRunning(final Context context, final String packageName) {
final ActivityManager activityManager = (ActivityMan... | 34.043478 | 117 | 0.689655 |
22639c2d8ba21cbb671ddab4c9ce0ac4ed54ad2b | 2,479 | package com.nbs.iais.cloud.zuul.filters.post;
import com.nbs.iais.cloud.zuul.jwt.service.SecurityService;
import com.netflix.zuul.ZuulFilter;
import com.netflix.zuul.context.RequestContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import or... | 35.414286 | 112 | 0.715611 |
3a98274cc4f0476ba262b598cd78008a0be30e4e | 3,007 | /*
*
* * ******************************************************************************
* * * Copyright (c) 2015-2019 Skymind Inc.
* * * Copyright (c) 2019 Konduit AI.
* * *
* * * This program and the accompanying materials are made available under the
* * * terms of the Apache License, Version 2.0 wh... | 34.170455 | 136 | 0.661124 |
ba06f776ec2e8acb066b4805c67fb4623e2e47da | 6,154 | /*
Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed i... | 40.754967 | 89 | 0.688983 |
7f59cb6c4edbe8e3f6d3b75496596ac96d44956b | 9,256 |
/**
* Represents a mutable matrix of field elements, supporting linear algebra operations.
* Note that the dimensions of a matrix cannot be changed after construction.
*/
public final class Matrix<E> implements Cloneable {
/*---- Fields ----*/
// The values of the matrix stored in row-major order, with each ... | 28.745342 | 123 | 0.62446 |
89a161bcd6eafdfe22497bb2d0657233b54a64a8 | 792 | package com.example.demo.model;
import javax.persistence.*;
import javax.xml.crypto.Data;
import java.util.Date;
@Entity
@Table(name = "book")
public class Book {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private long id;
@Column(name = "BOOK_NAME",length = 50)
private String name;
... | 15.529412 | 51 | 0.598485 |
5594de44a15f931af6f6a8cb4a8a5374c3c53b1f | 1,029 | package org.artsicleprojects.textadventure.Areas;
import org.artsicleprojects.textadventure.Commands.Game;
import org.artsicleprojects.textadventure.Enums.AreaClasses;
import org.artsicleprojects.textadventure.Enums.GameMessages;
import org.artsicleprojects.textadventure.Enums.ItemClasses;
import org.artsicleprojects.... | 27.810811 | 61 | 0.691934 |
28db25374f21a150634d97795f49fb6e3caa3205 | 2,338 | /*
* Copyright 2016 Dmytro Titov
*
* 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... | 30.763158 | 167 | 0.688623 |
b45d20825af32195cb50e35e1b9e8db7c1eed6ae | 5,512 | package com.glovo.service.impl;
import java.math.BigDecimal;
import java.security.KeyManagementException;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import java.security.cert.X509Certificate;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
imp... | 35.792208 | 142 | 0.766509 |
994fe45fe14a647556958b1eda11f92a68f34660 | 6,166 | /**
* Copyright 2016 Yahoo 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 agreed to ... | 36.922156 | 102 | 0.674019 |
5d5c0a79cec0afb242ff34a0b9d615a60df3c703 | 3,574 | package team.easytravel.model.trip;
import static java.util.Objects.requireNonNull;
import java.util.List;
import javafx.collections.ObservableList;
import team.easytravel.model.util.uniquelist.UniqueList;
/**
* Represents a DaySchedule in the Trip. DaySchedule contains list of schedule entries.
* Duplicates are ... | 31.350877 | 114 | 0.682988 |
2b098d588431bca8dc61a67ca43bf60cba907387 | 893 | package com.deltaqin.sys.mapper;
import com.deltaqin.sys.model.SysCompany;
import com.deltaqin.sys.model.SysCompanyExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface SysCompanyMapper {
long countByExample(SysCompanyExample example);
int deleteByExample(SysCompanyExam... | 29.766667 | 114 | 0.784994 |
6472abdc03857891ff63c932d6d6ab375112e0b6 | 1,232 | package br.com.ernanilima.gc;
import javafx.application.Application;
import javafx.collections.ObservableList;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
/**
* @author Ernani
*/
public class Main exten... | 27.377778 | 83 | 0.633929 |
cf49fe848d712c7f3bf82c5991e60cec0d646af2 | 296 | package com.weimore.caringhelper.ui.model;
import com.weimore.base.BaseModel;
import com.weimore.caringhelper.ui.contract.WelcomeContract;
/**
* @author Weimore
* 2019/1/1.
* description:
*/
public class WelcomeModel extends BaseModel implements WelcomeContract.Model {
} | 19.733333 | 78 | 0.733108 |
3acff37f5e1a74372f89e30dce89c1cccd43897c | 574 | package com.chinaway.tms.basic.dao;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;
import com.chinaway.tms.basic.model.Cpmd;
import com.chinaway.tms.core.BaseMapper;
public interface CpmdMapper extends BaseMapper<Cpmd, Integer> {
/**
* 查询所有商品信息
* @param argsMap
* @r... | 18.516129 | 73 | 0.716028 |
2222ee3fd8774e46ef9db357d6e61e177eed3400 | 14,533 | /*
*
* Copyright (c) 2013 - 2019 Lijun Liao
*
* 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... | 31.593478 | 97 | 0.700956 |
61246300b6c34ab82ea94938018d8f5a0de70777 | 1,727 | package ir.ac.iust.dml.kg.raw.distantsupervison.database;
import com.mongodb.*;
import ir.ac.iust.dml.kg.raw.distantsupervison.Configuration;
import ir.ac.iust.dml.kg.raw.distantsupervison.Constants;
import ir.ac.iust.dml.kg.raw.distantsupervison.Sentence;
import java.util.List;
import static ir.ac.iust.dml.kg.raw.d... | 35.244898 | 106 | 0.68095 |
9b824898b4b2690c47de1c6a0ca6b0ed5b2cf0e0 | 257 | package Rendering.Common;
import Rendering.Scene.Node;
public interface Renderer {
void onRender(UpdateLoop render);
void start();
void shutdown();
void useShader(String name) throws ShaderException;
void addToRenderList(Node node);
}
| 21.416667 | 55 | 0.735409 |
8a5a093ca0172274109c87709a4dc0864041a82e | 1,793 | package seedu.address.model.employee;
import static java.util.Objects.requireNonNull;
import static seedu.address.commons.util.AppUtil.checkArgument;
/**
* Represents a Employee's Total Salary Paid in the address book.
* Guarantees: immutable; is valid as declared in {@link #isValidSalaryPaid(String)}
*/
public cl... | 25.614286 | 84 | 0.640825 |
927d7f6252058662a7405f0d270bbbdc838a7779 | 2,167 | package com.github.silexrr.yandex_market_api.shop.service;
import com.github.silexrr.yandex_market_api.shop.model.Shop;
import com.github.silexrr.yandex_market_api.shop.repository.ShopRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.... | 34.951613 | 106 | 0.634518 |
393d4b15762a1cac7f5943a964c6f5ec3cc73ea1 | 3,232 | package wmas.gui.run.editor;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JSpinner;
import javax.swing.JTabbedPane;
import javax.swing.JTextField;
imp... | 26.710744 | 75 | 0.735149 |
4931deb6c3809f05542801a9eea08ec15b560b93 | 11,979 | /*******************************************************************************
* Copyright (c) 2016, 2018 Farrukh Ijaz
*
* 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://... | 26.97973 | 136 | 0.71066 |
9dd0a5b22f4752ae0c007eb750effb4c853b2640 | 365 | /**
* @file NonStaticCounter.java
* @author Valery Samovich
* @version 1
* @date 2015/01/05
*/
package org.samovich.technologies.basics.concepts.classes.staticex.counter;
public class NonStaticCounter {
// Will get memory when instance is created.
int count = 0;
NonStaticCounter() {
count++... | 18.25 | 75 | 0.663014 |
c75611e9f67d012c9415cdc342e9a471eefad636 | 1,318 | package com.oes.server.exam.basic.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.oes.common.core.exam.entity.PaperQuestion;
import java.util.List;
import java.util.Map;
/**
* @author chachae
* @since 2020-06-03 16:43:16
*/
public interface IPaperQuestionService extends IService<Pap... | 19.671642 | 72 | 0.676783 |
e707a08d0f6873e805cdd04c9b8dbb8d6bed4769 | 265 | package edu.virginia.vcgr.genii.ui.xml;
import javax.swing.tree.DefaultMutableTreeNode;
class XMLErrorTreeNode extends DefaultMutableTreeNode
{
static final long serialVersionUID = 0L;
XMLErrorTreeNode(String errorMessage)
{
super(errorMessage, false);
}
} | 20.384615 | 53 | 0.803774 |
cd68880890c212d9a36f08457b14a5de4c5ae1ee | 1,992 | package com.quizapp;
public class Game {
Question[] questions=new Question[5];
Player player=new Player();
String[] questionsdata={"The depletion of the ozone layer causes?", "What is the closest planet to sun?",
"Which one of the following is an artificial ecosystem?", " Environment... | 32.129032 | 110 | 0.52008 |
4d3a843cdf87cb2aec2e9f259f5648b76c7c71af | 2,541 | /*
* Copyright (C) 2011 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 35.788732 | 100 | 0.653286 |
f84b08d686570a2eed6fa8e5e3ecf1ef0866bf6b | 398 | package com.osomapps.pt.admin.user;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Getter
@Setter
class UserProgramRequestDTO {
... | 19.9 | 41 | 0.801508 |
f69aa3cab7fee8439149cce3a2fdfeae40def028 | 9,128 | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.xdebugger.impl.ui;
import com.intellij.openapi.application.AppUIExecutor;
import com.intellij.openapi.application.ApplicationManager;
impor... | 37.563786 | 158 | 0.738606 |
def93d375b1d499d27dfbf84458c5d7f69fc67b5 | 1,735 | package acids2;
import java.util.ArrayList;
import java.util.TreeMap;
import utility.StringUtilities;
/**
* @author Tommaso Soru <tsoru@informatik.uni-leipzig.de>
*
*/
public class Resource implements Comparable<Resource> {
private String ID;
/**
* Properties including symbols.
*/
... | 23.445946 | 87 | 0.650144 |
745e283778b9cb7c387560eacb087df08b2190dd | 726 | package br.com.pilatestudio.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class OiMundo extends HttpServlet{
@Override... | 26.888889 | 112 | 0.743802 |
851cb278f8b343501eb19326e7ff5c0c5cf76115 | 2,239 | package com.github.statemachine;
import com.github.statemachine.StateMachineException.Code;
/**
* Extend the functor to provide a tuple of {fromState, toState} and the business logic that will
* allow the StateMachine to transition either forward ({@link #progress()} or backward
* {@link #regress()} between them.
... | 32.926471 | 100 | 0.718624 |
00bb1171330fb69f8d486f71fd7a6b0f9994ecf7 | 1,556 | package com.oneiroi.networking;
public class OneiroiHTTPD extends NanoHTTPD {
public static final String MIME_PLAINTEXT = "text/plain";
public static final String MIME_HTML = "text/html";
public static final String MIME_JS = "application/javascript";
public static final String MIME_CSS = "text/css";
public ... | 33.106383 | 359 | 0.713368 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.