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 |
|---|---|---|---|---|---|
bce907be547d1a3001d0bed5153b200901b34a43 | 5,244 | package eu.dnetlib.iis.wf.affmatching.match;
import static eu.dnetlib.iis.wf.affmatching.match.voter.AffOrgMatchVotersFactory.createNameCountryStrictMatchVoter;
import static eu.dnetlib.iis.wf.affmatching.match.voter.AffOrgMatchVotersFactory.createNameStrictCountryLooseMatchVoter;
import static eu.dnetlib.iis.wf.affma... | 48.555556 | 183 | 0.748474 |
40f912adf9d4830ed8c46abe6f5e6bfd3a79478c | 828 | package com.learn_weather.sun.tryweather.mode;
/**
* Created by Sun on 2016/11/8.
*/
public class HeWeathCodition {
String codeDaily;
String codeNight;
String txtDaily;
String txtNight;
public String getCodeDaily() {
return codeDaily;
}
public void setCodeDaily(String codeDaily... | 18.4 | 48 | 0.634058 |
adb9d6a1509d191d2c898a3390b71c50fa489f0b | 760 | package org.iot.iotuser.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.iot.iotcommon.model.Permission;
import org.iot.iotcommon.model.PageCondition;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;... | 29.230769 | 75 | 0.792105 |
480c6e3fabd6a8fe34d1035ccec89da6e40a16e1 | 2,073 | /**
* Copyright 2009 - 2011 Sergio Bossa (sergio.bossa@gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* ... | 31.409091 | 108 | 0.66329 |
a68c75212c1e99bde0625c1ef46fdccad58caa80 | 104 | package cgeo.geocaching.maps.interfaces;
public interface MapReadyCallback {
void mapReady();
}
| 11.555556 | 40 | 0.75 |
59fc039e6bee1600ccda0a2fb2b40b6eac85f086 | 676 | package io.volkan;
import java.util.Collections;
import java.util.List;
public class Student {
private List<TestScore> testScores;
private String name;
public Student(List<TestScore> scores, String name) {
this.testScores = Collections.unmodifiableList(scores);
this.name = name;
}
... | 20.484848 | 63 | 0.621302 |
fcb5093e94115303336a0dd216c325c432b83dfd | 1,739 | /*
* Copyright 2018-2022 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 a... | 32.811321 | 115 | 0.703278 |
52f98d8aeb6bdf967e566a95938cc62df65dd1f6 | 1,307 | package com.Karim.Art.core;
import com.android.volley.Request;
import com.google.gson.reflect.TypeToken;
import com.Karim.Art.ArtistoApplication;
import com.Karim.Art.utils.NetworkUtils;
import java.util.Map;
/**
* Created by HP-HP on 01-10-2016.
*/
public class BaseService {
//Opens connection port via GET M... | 40.84375 | 164 | 0.742158 |
d6455302200f1cdc94afd0419a09d4ff5d597872 | 1,431 | /*
* Copyright 2019 GridGain Systems, Inc. and Contributors.
*
* Licensed under the GridGain Community Edition License (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.gridgain.com/products/software/community-edition... | 26.5 | 102 | 0.682041 |
3a8324749c34e2d9b73a45fbd6acf8b2b9c979c1 | 1,867 | /*
* 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 cap_datos;
import cap_logica.Docente;
import cap_logica.Persona;
import java.util.ArrayList;
import java.util.Iterat... | 27.057971 | 80 | 0.519014 |
ecf7c31cf921c2f3074a22ed0e0bd47943f78966 | 1,291 | package de.fau.cs.mad.smile.android.encryption.remote;
import android.os.AsyncTask;
import android.os.Environment;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.FilenameUtils;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import de.fau.cs.mad.smile.android.encry... | 30.738095 | 128 | 0.722696 |
d3b3243d31148ba1b846dbf85b44953107f58135 | 2,516 | package org.flowant.stats.dao;
import static org.flowant.stats.dao.Doc.EXP_DLR;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Optional;
import org.flowant.stats.BaseTest;
import org.flowant.util.DateTimeUtil;
import org.junit.Assert;
import... | 34.465753 | 107 | 0.628776 |
f73ee51fbf9933fcc2b36eb2b4e5a3f3a872906d | 7,281 | /*
* 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 ... | 38.52381 | 119 | 0.611867 |
1f58fe0a9786309e4d35e59e3381bf3273f1e7ea | 308 | package com.ashish.comparator;
import com.ashish.Employee;
import java.util.Comparator;
/**
* Created by shaashis on 10/23/2015.
*/
public class SalaryComparator implements Comparator<Employee> {
public int compare(Employee o1, Employee o2) {
return o1.getSalary() - o2.getSalary();
}
}
| 20.533333 | 63 | 0.711039 |
05fa104040b7546b5c80f9cb5924ef269f17180b | 2,169 | package de.koudingspawn.vault;
import static com.github.tomakehurst.wiremock.client.WireMock.*;
public class TestHelper {
public static void generateLookupSelfStub() {
stubFor(get(urlEqualTo("/v1/auth/token/lookup-self"))
.willReturn(aResponse()
.withStatus(200)
... | 51.642857 | 101 | 0.288151 |
c1b36719d8f5cf29eb5e4343cc813b731e03aa89 | 3,927 | package pl.polsl.orderadoctor.services;
import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import pl.polsl.orderadoctor.dto.MedicalProductD... | 38.126214 | 123 | 0.69315 |
8c5c6fedacd3d9b469324ae57228d5011b194ae2 | 1,339 | package com.csci.parser;
import com.csci.grammar.*;
public interface ParserInterface {
/**
* Parse program
*
* @return program
* @throws Exception syntax exception
*/
Program parseProgram() throws Exception;
/**
* Parse definition list
*
* @return ListDef
* @... | 18.597222 | 44 | 0.584765 |
620e4cf21df4d47fd05983d657c15093545c449b | 373 | package conqueror.castle.exceptions;
public class CastleNameAlreadyExistsEcpetion extends RuntimeException {
public CastleNameAlreadyExistsEcpetion(String message, Throwable cause) {
super(message, cause);
}
public CastleNameAlreadyExistsEcpetion(String message) {
super(message);
}
... | 24.866667 | 77 | 0.742627 |
4f3d827403bdd9fabb251485afe5b201157bff6c | 678 | package com.baeldung.junit5;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assumptions.*;
public class AssumptionUnitTest {
@Test
public void trueAssumption() {
assumeTrue(5 > 1, () -> "5 is greater the 1");
... | 24.214286 | 87 | 0.620944 |
3071d213282d054e100f5efb58d182b393960809 | 662 | package com.github.tonydeng.desgin.command.fs.command;
import com.github.tonydeng.desgin.command.fs.FileSystemReceiver;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Created by tonydeng on 15/9/27.
*/
public class OpenFileCommand implements Command {
private static final Logger log = LoggerFact... | 25.461538 | 85 | 0.703927 |
edf2b767b7fe095da2d2faeb6847d9ff4d93281b | 790 | package com.unascribed.fabrication.mixin.g_weird_tweaks.disable_lightning_fire;
import com.unascribed.fabrication.support.EligibleIf;
import com.unascribed.fabrication.support.MixinConfigPlugin;
import net.minecraft.entity.LightningEntity;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.in... | 37.619048 | 79 | 0.824051 |
3169a23b849a118bebad9e6afbc43d083e96eb45 | 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 file to You under the Apache License, Version 2.0 (the
* "License"); you may not ... | 37.04466 | 100 | 0.777754 |
6a180ba8aff67903707121b9aef2b59726c0d951 | 775 | package com.apprisingsoftware.util;
import java.util.function.BiFunction;
/**
* Represents a function that accepts two int-valued arguments and produces a
* result. This is the {@code int}-consuming primitive specialization for
* {@link BiFunction}.
*
* <p>This is a <a href="package-summary.html">functional int... | 26.724138 | 77 | 0.695484 |
dcff76cef839085c75a4bc8a1f375ac7c6eb6642 | 736 | import java.sql.*;
class JDBCPrep4
{
public static void main(String[] args)
{
try
{
Connection con = DriverManager.getConnection("jdbc:odbc:NGP","","");
PreparedStatement pst = con.prepareStatement("delete from emp where empno=?");
pst.setString(1,args[0]);
int a = pst.executeUpdate();
System.... | 25.37931 | 103 | 0.654891 |
4870b104fe4d019c1d8f32d621a9d25023304ab9 | 1,575 | package com.jc.es.service.impl;
import com.jc.es.service.BookService;
import org.elasticsearch.action.search.SearchRequest;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.client.RestHighLevelClient;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.index.query... | 34.23913 | 70 | 0.694603 |
50c2baad35fdea60c492305eabf1cc41724bc85f | 8,898 | package com.coralogix.jenkins.pipeline;
import com.cloudbees.plugins.credentials.common.StandardListBoxModel;
import com.cloudbees.plugins.credentials.domains.DomainRequirement;
import com.cloudbees.plugins.credentials.domains.URIRequirementBuilder;
import com.cloudbees.workflow.rest.external.RunExt;
import com.google... | 30.57732 | 142 | 0.587548 |
bb9c3130e843596deb9c188af654a861ddc43efe | 654 | package com.alipay.api.response;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.user.auth.secondparty.token.verify response.
*
* @author auto create
* @since 1.0, 2019-07-16 20:05:01
*/
public class AlipayUserAuthSecondpartyTokenVerif... | 21.096774 | 83 | 0.711009 |
bba1e4df4e9b6a7664600dc0fb00c33524432443 | 11,527 | /*
* Copyright (c) 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/... | 40.304196 | 115 | 0.741737 |
768e0d1b1a4b3ce8dae5e3f0ca1c922a0395c069 | 2,753 | package mcjty.rftools.shapes;
import io.netty.buffer.ByteBuf;
import mcjty.lib.network.TypedMapTools;
import mcjty.lib.thirteen.Context;
import mcjty.lib.typed.Key;
import mcjty.lib.typed.Type;
import mcjty.lib.typed.TypedMap;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.item.ItemStack;
impo... | 36.223684 | 99 | 0.621504 |
ba2a8bbb09126000ab1da7fdba56d01c54155ecf | 775 | package com.sen.concurrency2.chapter17;
import java.util.Random;
/**
* @Author: Sen
* @Date: 2019/12/11 01:34
* @Description: 取货工人
*/
public class WorkerThread extends Thread {
private final Channel channel;
private final static Random RANDOM = new Random(System.currentTimeMillis());
public WorkerT... | 22.794118 | 80 | 0.579355 |
7959ee68c023ba643e4495882942a8ae3d2b1b0e | 5,353 | package org.apache.lucene.test;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.DoublePoint;
import org.apache.lucene.document.Field;
import org.apache.lucene.document.IntPoint;
import org.apache.lucene.document.LatLonDocValuesField;
import org.apache.lucene.document.LatLonPoint;
import o... | 37.433566 | 115 | 0.615543 |
e94fc3d2dded81b3c8767444b77e09adacab758e | 4,214 | /*
* Copyright 2017-2020 Alfresco Software, 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 ... | 46.822222 | 155 | 0.738728 |
d5edbfbf6fea6f018388ae072392742a8845e802 | 4,721 | package medical.home;
import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.widget.CheckBox;
import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.core.content.ContextCompat;
import... | 32.784722 | 116 | 0.622326 |
38b15bdf8f43181032a95b753a845646f7842ffd | 3,242 | package com.dea42.watchlist.search;
import com.dea42.watchlist.entity.Shows;
import com.dea42.watchlist.utils.MessageHelper;
import java.io.Serializable;
import java.util.Date;
import javax.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.sprin... | 30.584906 | 405 | 0.70512 |
6eac99c154492beac77966bc73f808e4e9e28ffa | 1,600 | /*
Licensed to Diennea S.r.l. under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. Diennea S.r.l. licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except ... | 28.571429 | 74 | 0.716875 |
06bccc2b1e646d5a02546169a61202d8f94e1e08 | 842 | package com.kenshine.pattern2.decorator;
/**
* @version v1.0
* @ClassName: Client
* @Description: 测试类
* @Author: kenshine
*
*
* 装饰者模式
*/
public class Client {
public static void main(String[] args) {
//点一份炒饭
FastFood food = new FriedRice();
System.out.println(food.getDesc() + " " ... | 24.057143 | 70 | 0.502375 |
70a35b68805bc996612b7910222fabf4c1c6d529 | 2,602 | /**
*
*/
package com.nowgroup.kenan.batch;
import java.io.Serializable;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
/**... | 18.323944 | 75 | 0.617986 |
a2b6f833a3e47a57299f907523b5a4073e0d3af1 | 252 | package com.codeboy.hadoop.base;
public class HadoopConstants {
public static final String CONFKEY_FS_NAME = "fs.default.name";
public static final String CONFKEY_JOB_UGI = "hadoop.job.ugi";
public static final String HDFS_PREFIX = "hdfs://";
}
| 25.2 | 64 | 0.761905 |
aa891a2fe6537927e3128939eb6a7caa47c076fe | 4,520 | package com.yunpian.sdk.service;
import java.io.UnsupportedEncodingException;
import java.util.Arrays;
import java.util.List;
import org.junit.BeforeClass;
import org.junit.Test;
import com.yunpian.sdk.model.FlowPackage;
import com.yunpian.sdk.model.FlowStatus;
import com.yunpian.sdk.model.ResultDO;
import com.yunpi... | 32.517986 | 114 | 0.73031 |
f88297a06efa208d52c31d0aeaa95a32aec88462 | 8,384 | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* gradle plugin from the resource data it found. It
* should not be modified by hand.
*/
package com.facebook.drawee;
public final class R {
private R() {}
public static final class attr {
private attr() {}
... | 65.5 | 428 | 0.754771 |
646b468e0c1a5fb7aac7f1282b8057ae446aa76b | 5,722 | /*
* Copyright 2021 DeNA Co., 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 agreed ... | 34.46988 | 105 | 0.590877 |
b3bca9fd6c025f4b5dfe84438a9b8a2dcdefc38b | 4,589 | package com.iheartradio.m3u8.data;
import java.util.List;
import java.util.Objects;
public class MasterPlaylist {
private final List<PlaylistData> mPlaylists;
private final List<IFrameStreamInfo> mIFramePlaylists;
private final List<MediaData> mMediaData;
private final List<String> mUnknownTa... | 33.253623 | 173 | 0.615603 |
d541bceb3031c7d12caeb93def163e37eb3ef93d | 707 | package net.andreinc.mockneat.unit.user;
import net.andreinc.mockneat.MockNeat;
import net.andreinc.mockneat.abstraction.MockUnitBase;
import net.andreinc.mockneat.abstraction.MockUnitString;
import net.andreinc.mockneat.types.enums.DictType;
import java.util.function.Supplier;
public class NonBinaryGenders extends ... | 26.185185 | 78 | 0.759547 |
d82027d975e46bffb3f0825daff4009791cfb9cf | 9,469 | /* Copyright 2018 Telstra Open Source
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | 43.837963 | 120 | 0.679375 |
9ae84bfc523fb1e9d31248cd0c2aa024ff7f8a74 | 2,891 | /*******************************************************************************
* Software Name : RCS IMS Stack
*
* Copyright (C) 2010-2016 Orange.
*
* 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 th... | 42.514706 | 130 | 0.643376 |
2d549525e71c8e8f59656a68992f99113234fb8b | 1,185 | package org.qw3rtrun.aub.engine.opengl;
import org.lwjgl.opengl.GL20;
import org.lwjgl.opengl.GL41;
import static org.lwjgl.opengl.GL11.GL_FALSE;
import static org.lwjgl.opengl.GL20.*;
public abstract class Shader extends GLObject {
private final ShaderTypeEnum type;
private final String glsl;
Shader(... | 27.55814 | 132 | 0.632068 |
100c1b8301ef48a6852b4b4eee5d13f71d4a8681 | 14,021 | package repository;
import static com.google.common.base.Preconditions.checkNotNull;
import static com.google.common.collect.ImmutableSet.toImmutableSet;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableList;
import com.goog... | 43.679128 | 100 | 0.683974 |
82195d320b50bb5f86282615fe703783da42139c | 3,799 | /**
* Copyright (c) 2016 - 2018 Syncleus, 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 la... | 33.324561 | 138 | 0.62885 |
fa824e59caffc1feec8673b4e1cb2326e099f7ff | 833 | package mn223dn_assign3;
public class MultiDisplay {
private int displayCount = 0;
private String displayMessage = "" ;
public MultiDisplay(){
}
public MultiDisplay(String msg, int count){
displayMessage = msg;
displayCount = count;
}
public void setDisplayMessage(String msg){
displa... | 21.358974 | 45 | 0.678271 |
714da9084aa7a9a07493b35160e3a5561d5150cd | 3,701 | package android.support.p000v4.view;
import android.os.Bundle;
import android.view.View;
import android.view.View.AccessibilityDelegate;
import android.view.ViewGroup;
import android.view.accessibility.AccessibilityEvent;
import android.view.accessibility.AccessibilityNodeInfo;
import android.view.accessibility.Access... | 43.034884 | 121 | 0.734396 |
0abd90dfbb594c4038f19f4dae5e7fd30e170e24 | 903 | package com.springboot.controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servl... | 30.1 | 85 | 0.707641 |
41c957210cd8699cae527f437f6b8b83866af71d | 1,287 | package algorithm.easy;
import java.util.*;
/**
* Created by Kyle on 09/05/2017.
*/
public class IntersectionOfTwoArray {
public int[] intersection(int[] nums1, int[] nums2) {
HashMap<Integer, Integer> map = new HashMap<>();
List<Integer> result = new ArrayList<>();
for (int num : nums1... | 27.978261 | 72 | 0.496503 |
0e779f46b3c38b9ee0cd674a5ae9b96255ffc829 | 248 | package org.robolectric.shadows;
import android.text.TextPaint;
import org.robolectric.annotation.Implements;
/**
* Shadow for {@link android.text.TextPaint}.
*/
@Implements(TextPaint.class)
public class ShadowTextPaint extends ShadowPaint {
}
| 20.666667 | 50 | 0.78629 |
751163fd98878fd1b04dadd02aac98d6cb9ef562 | 1,935 | package com.andcreations.ae.tex.font;
import java.io.File;
import com.andcreations.ae.tex.font.data.TexFontData;
/**
* @author Mikolaj Gucki
*/
public class TexFontCfg {
/** The font identifier. */
private String id;
/** The font data. */
private TexFontData data;
/** ... | 19.744898 | 78 | 0.497674 |
1209b5015d9157d35494ccc8fbda2ba948a72642 | 8,946 | package com.lufax.jijin.daixiao.gson;
import com.lufax.jijin.fundation.gson.BaseGson;
import java.util.List;
public class JijinDaixiaoInfoGson extends BaseGson{
private List<JijinExBuyLimitGson> jijinExBuyLimitGsons; //2.1 认申购起点限额
private List<JijinExDiscountGson> jijinExDiscountGsons;//2.2 优惠费率
privat... | 33.380597 | 98 | 0.75218 |
cef74ae12ae74247b6c043e2adf1a46bcb3c7110 | 5,098 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.resourcemanager.authorization.implementation;
import com.azure.core.http.rest.PagedFlux;
import com.azure.core.http.rest.PagedIterable;
import com.azure.resourcemanager.authorization.AuthorizationManager;... | 38.916031 | 114 | 0.695175 |
4bb373be74c213295531d2a41b42aaa9b409db89 | 797 |
package mage.cards.r;
import java.util.UUID;
import mage.abilities.effects.common.continuous.BoostControlledEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
/**
*
* @author Styxo
*/
public final class RallyingFire extends CardImpl {... | 23.441176 | 94 | 0.705144 |
920a54f264afb322e47d1d8e3f62f806378d52d2 | 4,043 | /**
* 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... | 28.272727 | 89 | 0.664358 |
bc637ed4f5b91188faa79982b1aabf5836218fb5 | 4,947 | /*
* Copyright 2010 Capgemini and Contributors
*
* 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... | 25.369231 | 103 | 0.717202 |
ac37563a117f0fb2bc3df895dcc7925712ddf0ea | 245 | package com.example.financia.exception;
public class ErroAutenticacao extends RuntimeException{
/**
*
*/
private static final long serialVersionUID = 1L;
public ErroAutenticacao(String mensagem) {
super(mensagem);
}
}
| 17.5 | 56 | 0.706122 |
5c1f89874603d61726064a475d977f113eb1a499 | 2,577 | /*
* 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 org.multireserve.interceptor;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
imp... | 31.048193 | 89 | 0.638339 |
5782b1856984b7b7a3c40bb3e051f203adf1d27f | 11,653 | /*
* 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 not u... | 47.954733 | 198 | 0.648331 |
a203ff98830749e79f976e71230ed92d4a80d7c2 | 2,390 | package aima.core.environment.map;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
import aima.core.agent.Action;
import aima.core.agent.Percept;
import aima.core.agent.impl.DynamicPercept;
import aima.core.search.framework.ActionsFunction;
import aima.core.search.framework.PerceptToState... | 26.263736 | 86 | 0.758159 |
4e7908d482938cb6b21aa92620ca7fe12bbb4d1a | 2,200 | // by MisaGani 2018
// Tesla Showcase
package com.misagani.teslashowcase;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import java.util.ArrayList;
public class ... | 31.428571 | 108 | 0.681818 |
965524d5617e9d3d9abdfa4456b6717fcc863dee | 15,523 | package org.xbib.netty.http.client.transport;
import io.netty.channel.Channel;
import io.netty.handler.codec.http.HttpHeaderNames;
import io.netty.handler.codec.http.HttpMethod;
import io.netty.handler.codec.http.multipart.DefaultHttpDataFactory;
import io.netty.handler.codec.http.multipart.HttpDataFactory;
import io.... | 36.016241 | 135 | 0.550989 |
7d218a24680d76c466ef042a3091ad46c293735d | 971 | /*
* Copyright (C) 2018 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 appli... | 30.34375 | 75 | 0.734295 |
331370bba6ee368406b34820d254dee7eb1b62db | 1,441 | import java.util.ArrayList;
public class MergeSortFreq {
public int count = 0;
public void mergesort(ArrayList<Term> theArray){
ArrayList<Term> tempArray = new ArrayList<Term>();
mergesort(theArray, tempArray, 0, theArray.size()-1);
}
private void merge(ArrayList<Term> theArray, ArrayList<Term> tempArray, ... | 23.241935 | 113 | 0.651631 |
cb49a1689cf80e4e6c6bbbbd66e947d6ed1d35d9 | 16,934 | /**
* Copyright (c) 2011, SOCIETIES Consortium (WATERFORD INSTITUTE OF TECHNOLOGY (TSSG), HERIOT-WATT UNIVERSITY (HWU), SOLUTA.NET
* (SN), GERMAN AEROSPACE CENTRE (Deutsches Zentrum fuer Luft- und Raumfahrt e.V.) (DLR), Zavod za varnostne tehnologije
* informacijske družbe in elektronsko poslovanje (SETCCE), INS... | 40.223278 | 131 | 0.703319 |
3b037b83233b6a3ce7e2ed2d7f3050e2b2fac828 | 17,408 | package net.honarnama.sell.activity;
import com.google.android.gms.analytics.HitBuilders;
import com.google.android.gms.analytics.Tracker;
import net.honarnama.GRPCUtils;
import net.honarnama.HonarnamaBaseApp;
import net.honarnama.base.BuildConfig;
import net.honarnama.base.utils.GravityTextWatcher;
import net.honarn... | 40.672897 | 185 | 0.605182 |
d5e9d8441689e27f48d196ad5d5d983bb6102a3e | 114,376 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: WAL.proto
package org.apache.hadoop.hbase.protobuf.generated;
public final class WALProtos {
private WALProtos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public enum ScopeType
... | 37.872848 | 240 | 0.64183 |
e6f45ae4b7e84c69bc58308e1e27163e41ff5deb | 1,294 | package ru.job4j.converter;
public class Converter {
public static int rubleToEuro(int value) {
return value / 70;
}
public static int rubleToDollar(int value) {
return value / 60;
}
public static int euroToRuble(int value) {
return value * 70;
}
public static int... | 30.093023 | 99 | 0.608964 |
fa981ea25136a8f8b87555a4d51009472457ec95 | 284 | package hahaha.lalala.inheri3;
/*
1.父类的私有属性是可以继承但是 不能直接访问
2.子类调用资源时 优先在本类中查找 当 本类中没有时去上一层查找 如果都没有 报错
*/
public class Test {
public static void main(String[] args) {
Cat cat = new Cat();
System.out.println("cat.age = " + cat.age);
cat.eat();
}
}
| 15.777778 | 51 | 0.612676 |
5d2c60c579304aca59c6d661439454cadce93732 | 297 | package ru.ajana.work.pattern.behavior.interpreter;
/**
* Составное правило (правило ссылается на другое правило)
*
* @author Andrey Kharintsev on 16.02.2019
*/
public class NonterminalExpression implements AbstractExpression {
@Override
public void interpreter(Context context) {
}
}
| 21.214286 | 66 | 0.760943 |
218584433bbab342a9fe85188d1155ef34a2ebf0 | 7,054 | package com.example.momentum;
import android.app.Activity;
import android.widget.EditText;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.rule.ActivityTestRule;
import com.example.momentum.habits.HabitYearActivity;
import com.example.momentum.habits.ViewHabitActivity;
import com.exam... | 35.094527 | 106 | 0.656223 |
71eaa57d1b68565a99b7c6de208e69a6576cfc15 | 4,868 | package com.example.vincentale.leafguard_core.model;
import java.util.ArrayList;
import java.util.List;
/**
* Created by vincentale on 29/01/18.
* Observation for caterpillars data summary
*/
public class CaterpillarObservation extends AbstractObservation {
public static final int OBSERVATION_LIMIT = 2;
... | 31.205128 | 157 | 0.643385 |
8f7d64af6cf9bda4bede0344ce72bfb12aceaee4 | 1,630 | package seedu.address.model.recruitment;
import static java.util.Objects.requireNonNull;
import static seedu.address.commons.util.AppUtil.checkArgument;
/**
* Represents a RecruitmentPost's minimal working experience in the address book.
* Guarantees: immutable; is always valid
*/
public class WorkExp {
publi... | 29.636364 | 98 | 0.663804 |
9077e730fbe543a7981ccc1efec9b6cb89428328 | 2,628 | package com.redoop.modules.admin.partner.repository;
import com.redoop.modules.admin.partner.entity.Partner;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifyi... | 30.206897 | 121 | 0.688356 |
0e2f76229769c8381bdb1f69440abd94f282d334 | 1,778 | package com.github.ivanshafran.cleanarchsample;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
public class ExchangeActivity extends AppCo... | 27.353846 | 81 | 0.677728 |
f48e9a4e7dc36d57480a2ee28ee046b0bb6f91b3 | 540 | package com.vishnus1224.rxjavateamworkclient.client;
import java.text.ParseException;
/**
* Allows for passing the updatedAfterTime param to a query.
* Created by Vishnu on 8/27/2016.
*/
interface UpdatedAfterTime<Type> {
/**
* Sets the updatedAfterTime query param.
* @param timeString time string i... | 28.421053 | 67 | 0.727778 |
ee9468a665e663d36678a3021fb8307cb063b27f | 2,625 | /*
* Copyright @ 2015 Atlassian Pty 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... | 32.8125 | 78 | 0.678476 |
aab8ee746422b376de9483b54ac3cc7d20819de1 | 2,881 | package edu.miu.cs544.team6.domain;
import java.util.Date;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
im... | 20.578571 | 104 | 0.725443 |
6a3287fbf7200486169441ea72113669508cb64f | 243 | /**
* create by 陶江航 at 2017/11/5 16:27
*
* @version 1.0
* @email taojianghang@xinzhentech.com
* @description 代理模式,包括动态代理和静态代理
* <p>
* 其中staticpattern存放静态代理,dynamic实现动态代理,cglib是使用cglib实现的动态代理
*/
package com.ternence.designpattern.proxy; | 24.3 | 59 | 0.744856 |
295fb2a866b40fdf967fc021f33235ae24d3778d | 952 | package com.cannolicatfish.rankine.init;
import net.minecraft.item.ItemGroup;
import net.minecraft.item.ItemStack;
public class RankineSetup {
public ItemGroup rankineWorld = new ItemGroup("rankine_world") {
@Override
public ItemStack createIcon() { return new ItemStack(RankineBlocks.REFRACTORY_B... | 31.733333 | 102 | 0.690126 |
fa9e3dc85a2173eb93ee16d7160cb3e85f5b84ad | 1,220 | package ca.bc.gov.open.pssg.rsbc.figaro.ords.client.organization;
/**
* Represents a Validate Org Party Requests
*
* @author carolcarpenterjustice
*/
public class ValidateOrgPartyRequest {
String orgCity;
String orgPartyId;
String orgSubname1;
String orgSubname2;
String orgSubname3;
Strin... | 29.047619 | 171 | 0.713115 |
a70f8829404a90a857c79f5a6373b058cb2f2b29 | 730 | package br.com.juliocnsouza.projects.products.controllers;
import br.com.juliocnsouza.projects.products.DataInitializer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframe... | 27.037037 | 102 | 0.738356 |
1eb2c1662e9306aeb07e8cebc6b53e5943cead66 | 3,328 | package com.frostphyr.avail.math;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertThrows;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import org.junit.function.ThrowingRunnable;
public class MatrixUtilsTest {
... | 20.930818 | 71 | 0.65625 |
5a0a6c3c27cf2490f341c8e4399fca64ad1ab65c | 4,952 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.datafactory.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.... | 36.681481 | 120 | 0.635905 |
0293cb3fb4c555f66eabcc1d9768aae4ebf697b8 | 1,167 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package br.senac.tads.dsw.exemplosspring;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
... | 31.540541 | 81 | 0.735219 |
135c834642908708570af5eaaecd4bb6eb4f2d0d | 729 | package com.data.big.trying.tryingbigdata.helper;
import org.springframework.util.ResourceUtils;
import java.io.File;
import java.nio.file.Files;
public class JsonHelper {
public static final String loadTemperatureRequest(String filename) throws Exception {
return loadFile("classpath:requests/temperatur... | 31.695652 | 91 | 0.73251 |
34de4e5610dc2f73d25246362dfbfd75311a2a79 | 6,404 | /*
* Copyright (c) 2019-2022 Team Galacticraft
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, mer... | 51.645161 | 268 | 0.625859 |
00c3e8aac6fad85bf7eefc6555db21c6d29b271e | 4,239 | package org.orecruncher.dsurround.effects.blocks.producers;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.block.AbstractFurnaceBlock;
import net.minecraft.block.BlockState;
import net.minecraft.block.Blocks;
import net.minecraft.tag.FluidTags;
import net.minecraft.util.math... | 40.371429 | 119 | 0.63765 |
ac6dbb8aa3dbacdb2e8d02ad3ae9c3413e8f118f | 6,337 | package ru.easydonate.easypayments.task;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import org.bukkit.plugin.Plugin;
import ru.easydonate.easypayments.EasyPaymentsPlugin;
import ru.easydonate.easypayments.cache.ReportCache;
import ru.easydonate.easypayments.execution.ExecutionBundle;
import ru.ea... | 41.418301 | 130 | 0.647941 |
40b1d2c08eb5fd53b856951bb1a35b6826250cfa | 1,166 | package io.github.rbxapi.javablox.api.groups;
public interface SocialLink {
/**
* https://groups.roblox.com/docs#!/SocialLinks/get_v1_groups_groupId_social_links
*
* @param groupId Group ID
* @return Links
*/
String getLinks(double groupId);
/**
* https://groups.roblox.com/do... | 29.15 | 102 | 0.665523 |
ef280501940c2d3a6226c3ade1a9929edc081b85 | 6,337 | /**
* Copyright (c) 2014 Baidu, Inc. 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 r... | 37.276471 | 109 | 0.6279 |
db8ef88ea5d8a0e299fc1340738770eee739fa79 | 5,063 | package com.github.ryan.data_structure.concurrent.list;
import java.util.Arrays;
import java.util.concurrent.locks.ReentrantLock;
/**
* A thread-safe variant of java.util.ArrayList in which all mutative
* operations add, set, and so on are implemented by making a fresh
* copy of the underlying array.
*
* This is... | 32.044304 | 85 | 0.619988 |
6be2be405d2ee13a9c9b657f16a4138a3940e06e | 469 | package jv16;
import javax.swing.*;
import java.awt.*;
class CarDrawingPanel extends JPanel {
public void paint(Graphics g) {
g.clearRect(0, 0, getWidth(), getHeight());
g.drawRect(100, 110, 200, 40);
g.drawRect(150, 70, 100, 40);
g.setColor(Color.RED);
... | 24.684211 | 48 | 0.552239 |
35d2f6971e5c023455a309f13cae6d50f30dc559 | 40,363 | package org.mybatis.jpetstore.domain;
import java.io.Serializable;
import java.math.BigDecimal;
public class Calculate implements Serializable {
public void hello()
{
System.out.println("JPET Store Application");
System.out.println("Class name: Calculate.java");
System.out.println("Hello World");
System.out.println(... | 47.88019 | 73 | 0.562371 |
ac948e4ab4b08aa96c093ea8cc85926c52bb5339 | 2,720 | package io.emqtt.emqandroidtoolkit.model;
import org.eclipse.paho.client.mqttv3.MqttMessage;
import android.os.Parcel;
import android.os.Parcelable;
import io.emqtt.emqandroidtoolkit.util.StringUtil;
/**
* ClassName: Publication
* Desc:
* Created by zhiw on 2017/3/23.
*/
public class Publication implements Par... | 21.085271 | 105 | 0.609559 |
8bf7875e6f51a9213602929edf2b2acd191b3430 | 1,505 |
package mage.cards.m;
import java.util.UUID;
import mage.abilities.effects.common.DestroyTargetEffect;
import mage.abilities.effects.common.search.SearchLibraryPutInPlayEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.filter.... | 32.717391 | 143 | 0.750831 |
e6a05270b1b4c129600fe1b913006cac917c862b | 7,910 | package org.motechproject.ivr.it;
import org.apache.http.HttpStatus;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.motechproject.ivr.domain.CallDetailRecord;
import org.motechproject.ivr.domain.Config;
import org.motechproject.ivr.domain.Configs;
im... | 39.748744 | 140 | 0.701264 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.