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 |
|---|---|---|---|---|---|
e98c2dbc5c5468f3d91b1284a44a2a145176a283 | 6,459 | /**
* (c) Copyright 2012 WibiData, Inc.
*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* 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... | 36.286517 | 99 | 0.694535 |
93b94f49a3f211a7205eae6bc269568d0adad8a2 | 3,149 | /*
* Copyright (c) 2010-2015 Pivotal Software, 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 req... | 36.616279 | 83 | 0.675135 |
f5a54f2cf2f551aac0bf5668000e6716f4a4a0bb | 809 | package com.ycbjie.ycscrollpager;
import android.content.Context;
import android.widget.ImageView;
import com.squareup.picasso.Picasso;
public class ImageUtils {
/**
* 加载图片
* @param resId
* @param target 控件
*/
public static void loadImgByPicasso(Context context , int path , int re... | 22.472222 | 99 | 0.485785 |
6fda39765d57c042642694a02630ebe7543996cb | 1,738 | package io.napadlek.graphapi.rest;
import io.napadlek.graphapi.business.service.BusinessException;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springfra... | 41.380952 | 136 | 0.766398 |
bf5d9b586d41fb11660862714574eb04326b477c | 45,516 | /* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.commonservices.ocf.metadatamanagement.server;
import org.odpi.openmetadata.commonservices.ffdc.RESTExceptionHandler;
import org.odpi.openmetadata.commonservices.multitenant.OCFOMASServiceIns... | 44.233236 | 132 | 0.61965 |
6605df3d780618b74f5d2f89d7b995efe017ac19 | 8,636 | /*
* (C) Copyright IBM Corp. 2020.
*
* 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 w... | 25.031884 | 118 | 0.661649 |
6cb7c5ecf41bc3425b07e1204f59cbb2e476e02d | 718 | package org.jeecg.modules.project.service.impl;
import org.jeecg.modules.project.entity.Papers;
import org.jeecg.modules.project.mapper.PapersMapper;
import org.jeecg.modules.project.service.IPapersService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceI... | 28.72 | 109 | 0.786908 |
379b0ff4b087e0841d7cc0dd6f8561a45bffbbc2 | 1,297 | /*
* Copyright (C) 2017, Megatron King
*
* 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 ... | 32.425 | 100 | 0.724749 |
61cc40bbf773d37ca4c2ff544ecdf893b908fffd | 19,464 | /*
* Copyright 2018 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 39.48073 | 234 | 0.659525 |
716a03329474c1a66a5a36473fb4d163159a8dc0 | 3,267 | //This package contains all the libraries we need to program the FTC Robot Controller
package org.firstinspires.ftc.teamcode;
//Import all the classes we will need
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.hardware.... | 41.35443 | 120 | 0.725742 |
dfbf46adeb8ca8a2105f473394f1ee3157f7c2f0 | 1,662 | package com.github.gianlucanitti.javaexpreval;
import junit.framework.TestCase;
public class ExpressionListTest extends TestCase{
public void testAdd(){
ExpressionList expList = new ExpressionList();
try{
expList.addItem(new ConstExpression(1));
}catch(Exception ex){
fail(ex.getMessage());
... | 28.655172 | 99 | 0.659446 |
1ce63714aa75d67b0f95076c26fb5e91973c4b06 | 1,455 | package net.gudenau.minecraft.redstoneplus.client;
import net.minecraft.block.BlockState;
import net.minecraft.block.RedstoneWireBlock;
import net.minecraft.client.color.block.BlockColorProvider;
import net.minecraft.util.DyeColor;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.MathHelper;
imp... | 34.642857 | 105 | 0.670103 |
472db83c5a059aff50644190e59844d4ab766f4c | 643 | package com.example.playground.monadic.parser.combinators;
import org.junit.Test;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
public class SeqParserTest {
@Test
public void shouldParseSequenceOfLetters() {
Parser pars... | 33.842105 | 109 | 0.709176 |
83abf1f5c943c9d3d217337f553bdb529213056c | 292 | package org.multiverse.stms.gamma.transactions.fat;
public class FatVariableLengthGammaTxn_initTest extends FatGammaTxn_initTest<FatVariableLengthGammaTxn> {
@Override
protected FatVariableLengthGammaTxn newTransaction() {
return new FatVariableLengthGammaTxn(stm);
}
}
| 29.2 | 105 | 0.80137 |
9085cbdc61f125a9541fef6db9f15e4d7663e80f | 449 | package ua.com.zno.online.domain.question;
/**
* Created by quento on 02.04.17.
*/
public enum QuestionType {
//radio button question
QUESTION_WITH_ONE_CORRECT_ANSWER,
//checkbox question
QUESTION_WITH_MULTIPLY_CORRECT_ANSWERS,
//question with sub_questions (radio button or checkbox) e.g. many... | 22.45 | 96 | 0.743875 |
239d6dfea7df2a438f3e490da75e40f91febb6ea | 305 | package example2;
import org.noear.solon.SolonBuilder;
/**
* @author noear 2021/7/30 created
*/
public class Example2App {
public static void main(String[] args) {
new SolonBuilder()
.onError(e->e.printStackTrace())
.start(Example2App.class, args);
}
}
| 20.333333 | 48 | 0.613115 |
8eded4e3e7556abc49bfae4d6c0afe59e05257e9 | 3,136 | /**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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 requ... | 34.086957 | 75 | 0.537628 |
000f85347a1d26fae03d9e757ecacc796cbe969f | 700 | package lee.code.code_820__Short_Encoding_of_Words;
import java.util.*;
import lee.util.*;
/**
*
*
* 820.Short Encoding of Words
*
* difficulty: Medium
* @see https://leetcode.com/problems/short-encoding-of-words/description/
* @see description_820.md
* @Similiar Topics
* @Similiar Problems
* Run solution from Un... | 20.588235 | 73 | 0.707143 |
949173538c315e9ffdbea6fd2ab5c3dbbffd702a | 2,869 | package jvm;
/**********************************************************************
* <p>文件名:StrIntern.java </p>
* <p>文件描述:(描述该文件做什么)
* @project_name:test
* @author zengshunyaojava
* @create 2020/3/17 0:55
* @history
* @department:政务事业部
* Copyright ChengDu Funi Cloud Code Technology Dev... | 32.235955 | 78 | 0.533287 |
d1dd25158a541480b0c509a763ff09f7a041f235 | 203 | package me.batizhao.dp.domain;
import lombok.Data;
/**
* @author batizhao
* @date 2021/4/12
*/
@Data
public class Props {
private String value = "value";
private String label = "label";
}
| 12.6875 | 35 | 0.650246 |
d623d7138474088b72e3afd2c245b89d133d2f9f | 7,480 | package model.beans;
// Generated 23/11/2020 16:41:25 by Hibernate Tools 4.3.1
import java.util.Date;
/**
* Leituras generated by hbm2java
*/
public class Leituras implements java.io.Serializable {
private Long id;
private Clientes clientes;
private Medidores medidores;
private Date mesAno;
... | 28.014981 | 430 | 0.649733 |
08a3c47ee33f7f43a0140d63ac6fb433ae80b05b | 3,992 | /*
* Copyright 2019-2020 StreamThoughts.
*
* 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,... | 41.154639 | 115 | 0.717936 |
50e12adbdb4e1edcc7d311ee5d1f7eb24d16d9b0 | 3,075 | /*
* 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 com.vishnu.Calc.IO;
/**
* Easily manipulate the XML by the functions
*
* @author Vishnu
* @version 1.0
*
*/
public class... | 24.798387 | 151 | 0.556098 |
1f49e60ddcee2c9c534ed8b0f5e60c39b4858b57 | 1,561 | package com.github.marivaldosena.casadocodigo.autores;
import com.github.marivaldosena.casadocodigo.livros.Livro;
import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
@Entity
@Table(name = "autores")
public class Autor {
@Id
@GeneratedValue(strategy =... | 20.539474 | 63 | 0.622678 |
a7539b6794810f8166bde1b862bc47d9cca1176b | 602 | package com.br.zup.academy.lais.proposta.SistemFinanceiro;
public class AvaliacaoRespose {
public String documento;
public String nome;
public String idProposta;
public StatusAnalise resultadoSolicitacao;
public AvaliacaoRespose(String documento, String nome, String idProposta, StatusAnalise resul... | 30.1 | 115 | 0.732558 |
d0255f3572f7926285ad2fab0adf85bc46fbe213 | 40,035 | /*
* 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... | 42.772436 | 103 | 0.679855 |
7b372b98b346bf955a2d6c77991f02f7d7305a7f | 333 | package ru.otus.hw1.dao;
import org.springframework.core.io.Resource;
import ru.otus.hw1.utils.DataValidationException;
import java.util.List;
public interface Dao<T> {
List<T> getAll();
T getById(int id) throws DataValidationException;
int getCount();
void reloadData(Resource re... | 17.526316 | 54 | 0.693694 |
af5fc937a675062e5f8a966133ba97eca2750d32 | 43 | package gr.helix.lab.web.controller.action; | 43 | 43 | 0.837209 |
d83f332ea5786be463e365a8f5f1099e19e2ed5a | 3,526 | /*
* ====================================================================
* StreamEPS Platform
*
* Distributed under the Modified BSD License.
* Copyright notice: The copyright for this software and a full listing
* of individual contributors are as shown in the packaged copyright.txt
* file.
* All right... | 35.26 | 82 | 0.658253 |
0c94cea035a4851571f2248d0be6b487df702616 | 343 | package com.gerenciador.bovino.exception;
public class LoteNotFoundException extends RuntimeException {
/**
*
*/
private static final long serialVersionUID = 1L;
public LoteNotFoundException(String mensagem) {
super(mensagem);
}
public LoteNotFoundException(String mensagem, Throwable causa) {
super(me... | 19.055556 | 65 | 0.752187 |
0796421edcf34c3a0cb548dbfa886073be379cc3 | 349 | package com.lenovo.compass.sys.mapper;
import com.lenovo.compass.sys.entity.SysUserRole;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* Mapper 接口
* </p>
*
* @author suozq
* @since 2021-08-24
*/
@Mapper
public interface SysUserRoleMapper extends ... | 19.388889 | 68 | 0.744986 |
3c7f2193163ae34811cdee0882c09dbd276c8857 | 595 |
package mage.abilities.mana;
import mage.Mana;
import mage.abilities.effects.mana.BasicManaEffect;
import mage.constants.ColoredManaSymbol;
/**
*
* @author BetaSteward_at_googlemail.com
*/
public class BlackManaAbility extends BasicManaAbility {
public BlackManaAbility() {
super(new BasicManaEffect(... | 19.833333 | 56 | 0.707563 |
3742630836ad71c766efbf14ba9bec0bf3a87a8f | 1,749 | /*-
* ========================LICENSE_START=================================
* JSoagger
* %%
* Copyright (C) 2019 JSOAGGER
* %%
* 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
*
* ... | 32.388889 | 100 | 0.705546 |
3ea3fc4d320fd4e9b2aa2d830e362c6e4705cdc8 | 11,763 | /*
* Copyright (C) 1999-2011 University of Connecticut Health Center
*
* Licensed under the MIT 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.opensource.org/licenses/mit-license.php
*/
package cbi... | 32.766017 | 146 | 0.701182 |
01777496882cb9ed26381f7a6ce7ded0613a80e1 | 862 | package implementation;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
/**
*
* @author minchoba
* 백준 1448번: 삼각형 만들기
*
* @see https://www.acmicpc.net/problem/1448/
*
*/
public class Boj1448 {
public static void main(String[] args) throws Exception {
// 버퍼를 통한 값 입력
... | 20.52381 | 75 | 0.592807 |
1498e2874af41ae7f3619362c3f662c8b27e1952 | 355 | package com.stevesoltys.movieglu.net;
import com.stevesoltys.movieglu.model.nowshowing.NowShowingResponse;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
/**
* @author Steve Soltys
*/
public interface MoviegluService {
@GET("filmsNowShowing/")
Call<NowShowingResponse> getNow... | 20.882353 | 68 | 0.766197 |
516187c95768a73198de13e34e57a50ac562566d | 10,810 | package tech.coinbub.daemon.testutils.docker;
import com.github.dockerjava.api.DockerClient;
import com.github.dockerjava.api.model.Frame;
import com.github.dockerjava.core.DockerClientBuilder;
import com.github.dockerjava.core.command.LogContainerResultCallback;
import com.googlecode.jsonrpc4j.IJsonRpcClient;
import ... | 42.062257 | 117 | 0.662997 |
59c8b0c74626e8969312b650526441be30d5e405 | 279 | package commons.model;
public class Authentication {
private String secret;
private String pem;
private String password;
public String getSecret() {
return secret;
}
public String getPem() {
return pem;
}
public String getPassword() {
return password;
}
}
| 11.625 | 30 | 0.706093 |
1fb07733c706f7a22c9cdf1c7ab4ce146aa9f3b0 | 989 | package com.home.commonClient.net.sceneBaseResponse.unit;
import com.home.commonClient.constlist.generate.GameResponseType;
import com.home.commonClient.constlist.generate.SceneBaseResponseType;
import com.home.commonClient.net.sceneBaseResponse.base.UnitSResponse;
import com.home.shine.bytes.BytesReadStream;
/*... | 23 | 71 | 0.731041 |
ef82d9c53b3565bcb4823fb9db01f9e1ac2f2f4e | 613 | package ru.job4j;
/**
* Created by Anton on 25.05.2017.
*/
public class EasyHash {
/**
* Hashsum.
*/
private int hash;
/**
* Number.
*/
private int number;
/**
* Constructor.
* @param hash
* @param number
*/
public EasyHash(int hash, int number) {
... | 14.255814 | 43 | 0.469821 |
0b7bb4b5d7bbd9a7da51adb9cea948a92e94f277 | 268 | package de.adesso.gitstalker.core.resources.member_Resources;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.ArrayList;
@Data
@NoArgsConstructor
public class RepositoriesContributedTo {
private ArrayList<NodesRepoContributedTo> nodes;
}
| 19.142857 | 61 | 0.828358 |
46f59bbfafb29b582b00fbf664c57d5178e9c57c | 1,628 | package cs132.vapor.ast;
import cs132.util.SourcePos;
/**
* A function definition.
*/
public class VFunction extends VTarget
{
/**
* All functions in a single program are assigned an index contiguously, starting
* from zero.
*/
public final int index;
/**
* The function's parameter list.
*/
public fi... | 22.611111 | 100 | 0.665848 |
25a76d7de6c11f4ab355cf46a6bd869c27477748 | 947 | package pub.gordon.dg.maven.bean;
/**
* @author Gordon
* @date 2017-11-03 11:26
*/
public class MavenNode {
private String groupId;
private String artifactId;
private String version;
public MavenNode(String groupId, String artifactId, String version) {
this.groupId = groupId;
this... | 22.547619 | 73 | 0.600845 |
fc4f45e933cf244176ae0d0c08d1fd13465fb60e | 1,166 | package com.jstfs.practice.designpattern.creational.factorymethod;
import com.jstfs.practice.designpattern.creational.factorymethod.factory.AppleGardener;
import com.jstfs.practice.designpattern.creational.factorymethod.factory.FruitGardener;
import com.jstfs.practice.designpattern.creational.factorymethod.factory.Gra... | 29.897436 | 92 | 0.76072 |
6a1f7bed851faa569939e6e53c8d1a5e3fd9d449 | 1,812 | package com.ihealthink.ks.system.webapi;
import com.ihealthink.ks.common.redis.service.RedisService;
import com.ihealthink.ks.core.web.controller.BaseController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
impo... | 33.555556 | 113 | 0.742826 |
2d6f4ba04c8593190732507ac7a2005b34564cb7 | 600 | package me.roitgrund.chess.stream;
import org.junit.Test;
import java.util.Arrays;
import java.util.stream.Collectors;
import static com.google.common.truth.Truth.assertThat;
import static me.roitgrund.chess.stream.Streams.reverseIntStream;
public class StreamsTest {
@Test
public void testReverseIntStream(... | 26.086957 | 72 | 0.616667 |
d20a2acfefc8688bba8272885f9857bf76e98a61 | 85 | package com.myhome.domain;
public enum SecurityTokenType {
RESET, EMAIL_CONFIRM
}
| 14.166667 | 31 | 0.788235 |
17dbb8dfd48229296bb22db5b26adf0c2785cf5c | 497 | package com.lh.learning.leetcode.no61_70.no70;
import org.junit.BeforeClass;
import org.junit.Test;
/**
* @auther: loneyfall
* @date: 2021/4/23
* @description:
*/
public class Question70Test {
private static Question70 question70;
@BeforeClass
public static void beforeClass() {
question70 = n... | 19.88 | 54 | 0.668008 |
b1d0b800d05b701d9dbe8a2c696137902343b60f | 738 | package asset.core;
import asset.util.Asset;
public class Skill extends Asset {
private Attributes att;
private Trait[] trts;
private boolean avail;
private boolean debugAvail;
public Skill(String name, String desc) {
super(name, desc);
}
public void setConditions(Attributes att, Trait[] trts) {
this.att... | 17.162791 | 58 | 0.712737 |
cb84e45aacb5187a56957515630489c6b7f2e766 | 931 | package ru.job4j.search;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
/**Модель справочника.
*@author IvanPJF (teaching-light@yandex.ru)
*@since 14.10.2018
*@version 0.1
*/
public class PhoneDictionary {
private List<Person> persons = new ArrayList<>();
public vo... | 29.09375 | 77 | 0.615467 |
a054758f21ee1d7e67cabe7484f6d73e2cc3148e | 444 | package android.support.v7.view.menu;
import android.widget.ListView;
public abstract interface r
{
public abstract void dismiss();
public abstract ListView getListView();
public abstract boolean isShowing();
public abstract void show();
}
/* Location: /Users/gaoht/Downloads/zirom/clas... | 22.2 | 112 | 0.698198 |
060b16e35a98c754c67d14b05637f627cb3b507f | 9,589 | /*
* Project Sc2gears
*
* Copyright (c) 2010 Andras Belicza <iczaaa@gmail.com>
*
* This software is the property of Andras Belicza.
* Copying, modifying, distributing, refactoring without the authors permission
* is prohibited and protected by Law.
*/
package hu.belicza.andras.sc2gearsdb;
import s... | 36.880769 | 181 | 0.667223 |
0cebd5944154b8081872bf91944d8709804aa8ea | 2,877 | package com.trivadis.plsql.formatter.settings.tests.grammar.plsql;
import com.trivadis.plsql.formatter.settings.ConfiguredTestFormatter;
import oracle.dbtools.app.Format;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.io.IOException;
public class Sqlcode_function extends Conf... | 35.518519 | 77 | 0.443865 |
ca77b5d55a9490fcec8ffa8da51f604e6ef045d4 | 1,148 | package br.com.marcosatanaka.easypoi.demo;
import br.com.marcosatanaka.easypoi.excel.ExcelColumn;
import br.com.marcosatanaka.easypoi.util.StringToBigDecimal;
import com.google.common.base.MoreObjects;
import java.math.BigDecimal;
import java.util.Objects;
public class ImportacaoDTO {
@ExcelColumn(name = "NOME")
... | 19.457627 | 60 | 0.707317 |
f8d9318cb25c238236be77596388eaca53bead99 | 961 | package org.radargun.service;
import org.infinispan.protostream.SerializationContext;
import org.radargun.Service;
import org.radargun.traits.ProvidesTrait;
/**
* @author Vojtech Juranek <vjuranek@redhat.com>
*/
@Service(doc = JDG66HotrodService.SERVICE_DESCRIPTION)
public class JDG66HotrodService extends Inf... | 28.264706 | 102 | 0.722164 |
089e9eea1923ff53e9aa288ba208ba9ddcdc2cf6 | 677 | package g_BuiltInQueryMethodsStreamAPIExercises;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class p05_FilterByEmail {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
List<String> students = new ArrayList<>();
whi... | 24.178571 | 86 | 0.568685 |
87039819442fb85796c499dbfd9aba9b9ee6126d | 371 | package com.itdr.mapper;
import com.itdr.pojo.GameDetail;
public interface GameDetailMapper {
int deleteByPrimaryKey(Integer id);
int insert(GameDetail record);
int insertSelective(GameDetail record);
GameDetail selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(GameDetail record)... | 21.823529 | 55 | 0.773585 |
61f1468ae2ca908a9477db71a2581f413b24fbac | 351 | package exceptions.publix;
import play.mvc.Http;
/**
* It causes the request to return with an HTTP status 403 (Forbidden).
*
* @author Kristian Lange
*/
@SuppressWarnings("serial")
public class ForbiddenPublixException extends PublixException {
public ForbiddenPublixException(String message) {
super(message,... | 19.5 | 71 | 0.757835 |
99b0f49b60b24f3e8f7ea4655b71c6a6ab03b320 | 1,532 | package com.skewpixel.rltut2019.ecs;
import com.skewpixel.rltut2019.ecs.components.Component;
import java.util.HashMap;
import java.util.Map;
public class Entity {
private Map<String, Component> componentMap = new HashMap<>();
public Entity(){}
public Entity(Component... components){
for(Compo... | 25.966102 | 93 | 0.60705 |
d58c1ac4ebce1bdf0f138c3190a47eaa4278dd48 | 1,071 | package ru.stqa.dmiv.mantis.appmanager;
import org.openqa.selenium.By;
import ru.stqa.dmiv.mantis.model.UserData;
public class AdminHelper extends HelperBase {
public AdminHelper(ApplicationManager app) {
super(app);
}
public void resetPassword(UserData user) {
adminLogin();
wd.get(ap... | 32.454545 | 98 | 0.677871 |
4ef27644b7aa1bcd781ec5796011dd327eeed9dc | 573 | package br.jus.tst.tstunit;
import org.junit.*;
/**
* Testes unitários da {@link Configuracao}.
*
* @author Thiago Miranda
* @since 26 de jan de 2017
*/
public class ConfiguracaoTeste {
private Configuracao configuracao;
@Before
public void setUp() {
configuracao = Configuracao.getInstance... | 22.038462 | 85 | 0.699825 |
afe96121642b37a0ff57d317b1286fdb5e062801 | 263 | /*
* Copyright Anatoly Starostin (c) 2017.
*/
package treeton.gui.trnedit;
import treeton.core.IntFeatureMap;
public interface IntFeatureMapEditorListener {
public void imapEdited(IntFeatureMap source, IntFeatureMap attrs, IntFeatureMap inducedAttrs);
}
| 21.916667 | 98 | 0.790875 |
cdb079689262f63b2b0e109b7d8bfdb29c4a4a76 | 632 | package org.krash.jpinba.servlet;
import org.krash.jpinba.data.JPinbaRequest;
import javax.servlet.ServletRequest;
/**
* Helper, attaching and extracting JPinbaRequest from Servlet, via custom attribute
*/
abstract public class Helper {
public static final String ATTRIBUTE_NAME = "org.krash.jpinba.servlet.REQ... | 25.28 | 85 | 0.753165 |
2dc208fcadd0d75262d1572cf517422100ea4ddc | 655 | package com.demo.schoolregistration.service;
import com.demo.schoolregistration.model.Course;
import com.demo.schoolregistration.repository.CourseRepository;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
@Service
@Slf4j
public class CourseService {
private final CourseRepository ... | 27.291667 | 80 | 0.784733 |
16981bbdfc212844384062750b6bf8a51ffaf078 | 180 | package com.github.kolorobot.mockito.annotations;
class ConsolePrinter implements Printer {
@Override
public void print(String s) {
System.out.println(s);
}
}
| 20 | 49 | 0.7 |
6bf3b2eaa6d379060979480af84779490333302c | 540 | package me.jugal.cabs.repositories;
import me.jugal.cabs.entities.Driver;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
... | 28.421053 | 76 | 0.796296 |
93ddda4be93c860162d6d984f147ebd5fbfcbc8f | 412 | /**
* Copyright (C) 2017, TP-LINK TECHNOLOGIES CO., LTD.
*
* SimpleAppInfo.java
*
* description
*
* Author Deng Xinliang Created at 3/30/17.
*
* Ver 1.0, 3/30/17, Deng Xinliang, Create file
*/
package com.mx.dxinl.quicklauncher.model;
import android.graphics.drawable.Drawable;
public final class SimpleAppI... | 18.727273 | 53 | 0.703883 |
8db8e21a95aadcf0f32b17a36e5b903f8cc34540 | 3,443 | package net.minecraft.data.worldgen.placement;
import java.util.Random;
import net.minecraft.SystemUtils;
import net.minecraft.core.IRegistry;
import net.minecraft.data.RegistryGeneration;
import net.minecraft.util.random.SimpleWeightedRandomList;
import net.minecraft.util.valueproviders.ConstantInt;
import net.minecr... | 62.6 | 357 | 0.805112 |
a19b6c3caee6c106d999e1c0abc2ad19f76775e8 | 8,775 | package com.avira.antivirusimplementation;
import android.app.AlertDialog;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.pm.ApplicationInfo;
import android.cont... | 36.869748 | 126 | 0.615954 |
547ee36007cc9be1c2e7f8466c5e2d298737835a | 2,400 | package at.crimsonbit.nodesystem.examples.customnode;
import java.util.logging.Level;
import com.google.common.collect.Sets.SetView;
import at.crimsonbit.nodesystem.gui.GNodeGraph;
import at.crimsonbit.nodesystem.gui.animation.Animator;
import at.crimsonbit.nodesystem.gui.node.GNode;
import at.crimsonbit.nodesystem.... | 34.285714 | 114 | 0.728333 |
b23bfe7b0c66ffe55e9c583a1747368476a3aa59 | 2,680 | package name.mjw.jquante.math.interpolater;
/**
* Same as @class TriLinearInterpolater but use a specified sub interpolater to
* perform individual point interpolation.
*
* @author V.Ganesh
* @version 2.0 (Part of MeTA v2.0)
*/
public class ThreePointInterpolater extends Interpolater {
/** Creates a new insta... | 23.304348 | 79 | 0.631716 |
b592d5a59d2d1bf805fdf24ff3a52343ab8cb050 | 3,534 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See License.txt in the repository root.
package com.microsoft.tfs.core.clients.versioncontrol.soapextensions.internal;
import com.microsoft.tfs.core.clients.versioncontrol.VersionControlConstants;
/**
* This class does not implement... | 28.272 | 103 | 0.56961 |
f41df8bdba42335bbe0b74b69b553783dbb7cf44 | 6,444 | package org.dc.penguin.core.utils;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.util.Enumeration;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicInteger;
import java.ut... | 36.613636 | 156 | 0.719274 |
359bd643e2a4f86a87d936232db46f0c0fb2dfea | 90 | package p;
class A{
int m(int i){
}
}
class B extends A{
int m(int i){
int o= i;
}
} | 9 | 18 | 0.544444 |
60faaaf032726d0029604c9f67c80af2c65a0419 | 4,807 | package hudson.util;
import hudson.Functions;
import hudson.os.PosixAPI;
import hudson.os.PosixException;
import java.io.*;
import java.util.regex.Pattern;
/**
* Adds more to commons-io.
*
* @author Kohsuke Kawaguchi
* @since 1.337
*/
public class IOUtils extends org.apache.commons.io.IOUtils {
/**
* D... | 32.70068 | 145 | 0.617849 |
0d38cc21f8ed6a596391bbee6cbaa1b3b0f72d33 | 4,145 | package com.epam.brest.service.impl;
import com.epam.brest.model.Car;
import com.epam.brest.service.config.ServiceTestConfig;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframew... | 40.242718 | 168 | 0.662002 |
dc1f2f70571fac3cdca2fa55ec4387df66b5b84c | 964 | package com.zackratos.ultimatebarx.sample;
import android.os.Bundle;
import android.view.View;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import com.zackratos.ultimatebarx.library.UltimateBarX;
/**
* @Author : Zackratos
* @Date : 2020/7/11 4:10
... | 24.717949 | 88 | 0.66805 |
65e5fa9a377d1254580b34aa524d7906486ee54d | 723 | package rlbotexample.app.physics.state_setter;
import rlbot.gamestate.*;
import rlbotexample.dynamic_objects.car.ExtendedCarData;
import util.game_constants.RlConstants;
import util.game_situation.GameSituation;
import util.math.vector.Vector3;
public class CarStateSetter {
public static void applyPhysics(Physic... | 38.052632 | 95 | 0.795297 |
bd74bf3e91273b9870085d7c3bbad0096aba1acf | 9,773 | package io.github.jhipster.sample.repository;
import com.datastax.oss.driver.api.core.CqlIdentifier;
import com.datastax.oss.driver.api.core.CqlSession;
import com.datastax.oss.driver.api.core.PagingIterable;
import com.datastax.oss.driver.api.core.cql.BatchStatement;
import com.datastax.oss.driver.api.core.cql.BatchS... | 41.764957 | 134 | 0.717692 |
04bddbbeb3ac5a9d7550d0ce119b5ad1ba3950b2 | 1,227 | package edu.rafat.tushar.onlinestore;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
import com.craftman.cardform.Card;
import com.craftman.cardform.CardForm;
import com.craftman.cardform.OnPayBtnCl... | 31.461538 | 135 | 0.711491 |
e8f94defd4e00efadcc01a03ee47c813eb603d89 | 215 | package io.girirajvyas.gof.designpatterns.structural.bridge.shapewithbridge;
public class BlueColour implements Colour {
@Override
public void applyColour() {
System.out.println("Applying Blue Colour");
}
}
| 19.545455 | 76 | 0.781395 |
8e87eb4dfd210ca9f917c49f2f1774bac53bac25 | 863 | package com.example.librx.rx.http;
import com.example.librx.rx.BaseResult;
import java.util.ArrayList;
import java.util.List;
import io.reactivex.functions.Function;
/**
* @author 李栋杰
* @time 2017/7/29 10:25
* @desc 用于处理操作成功(data为空,又需要提示的情况)的情况
*/
public class ServerResultWithDataFunc <T extends BaseResult> im... | 23.972222 | 88 | 0.660487 |
85777684954ce2a9a6b4268cf9009d69a1ffa1a7 | 1,758 | package sonia.scm.schedule;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.inject.Inject;
import javax.inject.Singleton;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
@Singl... | 28.819672 | 93 | 0.750853 |
b5ca34dc905744ccf302e1895be4e991d38c9e56 | 2,131 | // Copyright 2014 Google 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 required by applicable ... | 28.039474 | 75 | 0.700141 |
1026f63924b328d34fb8582c9bf248ad98c630dc | 220 | package com.semihshn.passengerservice.adapter.jpa.contactInfo;
import org.springframework.data.jpa.repository.JpaRepository;
public interface ContactInfoJpaRepository extends JpaRepository<ContactInfoEntity, Long> {
}
| 31.428571 | 90 | 0.859091 |
3d3bee6b9a3397f1bc845b69c229a9bf70f84016 | 4,001 | /*
* Copyright (c) 2010-2018 Nathan Rajlich
*
* 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... | 28.992754 | 83 | 0.712572 |
9b491cc29ebf731fb6c4cb07e3ecf3455f345b55 | 8,154 | package org.apache.maven.shared.release;
/*
* 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 Lic... | 27.924658 | 133 | 0.586951 |
fe879097595f22e87fcaf05ae61dc96b3d7e6147 | 2,900 | package com.blogpessoal.model;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persist... | 24.576271 | 90 | 0.771379 |
6fcc26262e5ddc9171487bc2f7483f722c514f31 | 734 | import java.io.InputStream;
import java.io.OutputStream;
import java.io.IOException;
import gnu.io.*;
public class Test
{
static public void main(String[] args) throws IOException, NoSuchPortException, PortInUseException, UnsupportedCommOperationException
{
CommPortIdentifier id = CommPortIdentifier.getPo... | 30.583333 | 136 | 0.652589 |
49f14b420dbd2f9124449e90df1fe6ab3a71fec5 | 1,636 | package cn.com.tsjx.infomation.dao.impl;
import java.util.List;
import org.springframework.stereotype.Repository;
import cn.com.tsjx.common.dao.BaseDaoImpl;
import cn.com.tsjx.common.enums.Deleted;
import cn.com.tsjx.common.web.model.Pager;
import cn.com.tsjx.common.web.model.Params;
import cn.com.tsjx.inf... | 32.078431 | 100 | 0.695599 |
b10996ef049cfbf36ce93ea0ca0e1ac7af84bac5 | 3,200 | package com.taoerxue.manager.service;
import com.taoerxue.common.bean.Result;
import com.taoerxue.common.cache.redis.JedisClient;
import com.taoerxue.common.exception.SQLException;
import com.taoerxue.mapper.AdminUserMapper;
import com.taoerxue.pojo.AdminUser;
import com.taoerxue.pojo.AdminUserExample;
import com.taoe... | 35.955056 | 121 | 0.691875 |
032138e9a05a5b07a6d89933fc8ac9adb681fda8 | 1,128 | /*
* */
package com.synectiks.process.server.shared.plugins;
import javax.inject.Inject;
import com.synectiks.process.server.plugin.rest.PluginRestResource;
import java.util.Map;
import java.util.Set;
/**
* This class provides the map of {@link PluginRestResource} classes that are available through the Guice mapb... | 32.228571 | 119 | 0.73227 |
6ac1758968fcc7baebf901ca7ead246abe061abc | 3,823 | /*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
* Licensed under the Zeebe Community License 1.0. You may not use this file
* ... | 27.113475 | 88 | 0.509809 |
630366995d1cab9c55bbc4b3896f3a38dda76b0c | 1,960 | /*
* Copyright 2000-2017 Vaadin 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 to... | 36.981132 | 89 | 0.707653 |
e64186efa191129fe287b297ba562da8d20c331f | 268 | /*
* Copyright 2010-2011, Sikuli.org
* Released under the MIT License.
*
*/
package org.sikuli.script;
public class AppearEvent extends SikuliEvent {
public AppearEvent(Object ptn, Match m, Region r){
super(ptn, m, r);
type = Type.APPEAR;
}
}
| 16.75 | 53 | 0.660448 |
a4245e62b7fb3d40082b1d5ad6320491b8c6eb38 | 525 | package pers.jay.wanandroid.widgets;
import android.app.Activity;
import android.content.Context;
import per.goweii.anylayer.AnyLayer;
import per.goweii.anylayer.DialogLayer;
import pers.jay.wanandroid.R;
public class ConfirmDialog extends DialogLayer {
public ConfirmDialog(Activity activity) {
super(ac... | 21.875 | 80 | 0.725714 |
ce644060acad355fe83e4bb934ec380261b5326c | 4,068 | package com.stock.chart.core.services;
import com.stock.chart.core.entities.*;
import com.stock.chart.core.repos.*;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.xssf.usermode... | 33.9 | 111 | 0.645034 |
d2de82bbfe5490bf2ff709b57b083b0cdae82b2b | 3,710 | /*
* The MIT License (MIT)
*
* Copyright (c) 2021-2022 Yegor Bugayenko
*
* 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
*... | 34.672897 | 81 | 0.630728 |
bd6448632cc757629ce2cd33c65f6ab85c99a428 | 5,458 | /*
* 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 ... | 37.902778 | 93 | 0.716013 |
28fe8cbc43ec75909c99a833d74ba18e8f16aab6 | 2,390 | package com.redescooter.ses.web.ros.controller.warehouse.cn;
import com.redescooter.ses.api.common.vo.base.GeneralEnter;
import com.redescooter.ses.api.common.vo.base.PageResult;
import com.redescooter.ses.api.common.vo.base.Response;
import com.redescooter.ses.web.ros.service.wms.cn.WmsWhInService;
import com.redesco... | 38.548387 | 135 | 0.777824 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.