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 |
|---|---|---|---|---|---|
a5573bdc087e3946615a9a9f8e5b5c1e6fcc0ae7 | 1,040 | package io.musician101.mcdnd.sponge.equipment.tool;
import io.musician101.mcdnd.sponge.currency.CurrencyHolder.Cost;
import io.musician101.mcdnd.sponge.data.type.CurrencyTypes;
import io.musician101.mcdnd.sponge.equipment.tool.Tool.GamingSet;
import java.util.Arrays;
import java.util.Collections;
import java.util.List... | 47.272727 | 158 | 0.782692 |
945b017968068ab1989748a0e064f08915a40ad9 | 1,728 | package string;
import java.util.ArrayList;
import java.util.List;
public class SubstringTextPosition {
public List<SubStringPosition> subPositions(String text, String pattern) {
//TODO: Add input sanity checks
List<SubStringPosition> result = new ArrayList<>();
int subSize = pattern.len... | 26.584615 | 85 | 0.512153 |
fa48abfdbea6179d0e51ebb463f42c50d9197abc | 838 | package us.mrvivacio.porno;
import org.junit.Test;
import static org.junit.Assert.*;
public class porNoTest {
// isPorn() is sent URL hostnames, so test with those only
@Test
public void isPorn() {
boolean malformedURL = porNo.isPorn("pornhub com");
assertFalse(malformedURL);
}
... | 25.393939 | 131 | 0.669451 |
d5a9e23ee26ddd4c4571aa95a38807bbaf91f24c | 3,207 | /**
* --------------------------------------------------------------------------
* SBML4j
* --------------------------------------------------------------------------
* University of Tuebingen, 2020.
*
* This code is part of the SBML4j software package and subject to the terms
* ... | 35.633333 | 149 | 0.688182 |
3e31522633e4693a3142b46a94aa61fa8659df0b | 1,246 | package main;
/**
* Classe Item de um Pedido
*/
public class Item {
// Descrição do item de um pedido
private String descricao;
// Preço do item de um pedido
private double preco;
/**
* Método construtor do item de um pedido
* @param descricao Descrição textual de um item
* @param... | 23.074074 | 63 | 0.605939 |
4006aaa4286123704a3c2a4e2f199aa4db47df3b | 704 | package de.digitalcollections.cudami.server.business.api.service.identifiable.entity.work;
import de.digitalcollections.cudami.server.business.api.service.identifiable.entity.EntityService;
import de.digitalcollections.model.identifiable.entity.DigitalObject;
import de.digitalcollections.model.identifiable.entity.work... | 35.2 | 98 | 0.830966 |
89a566a1401831c4a1ae6058cc34c8069ab064b5 | 3,069 | /*
* MIT License
*
* Copyright (c) 2017-2019 nuls.io
*
* 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, mod... | 35.275862 | 112 | 0.713587 |
9048ceb05999a88f6d8d6e5a13608702fc91d7e9 | 364 | package me.chanjar.weixin.mp.bean.invoice.merchant;
import java.io.Serializable;
/**
* 拒绝开票请求参数
*/
public class InvoiceRejectRequest implements Serializable {
/**
* 开票平台标示
*/
private String sPappid;
/**
* 订单id
*/
private String orderId;
/**
* 拒绝原因
*/
private String reason;
/**
... | 11.741935 | 59 | 0.620879 |
acf6144ec183f316ee55d0a7f427277649d20ef1 | 1,980 | /**
* 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... | 32.459016 | 86 | 0.675253 |
9f981b04449823a6e7aecc440cce44a5c8d3816b | 5,031 | /*
* 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 ... | 30.125749 | 102 | 0.666667 |
e7b3c539ac3332535335740ceb66bd9d1f25d728 | 12,099 | /**
* generated by Xtext 2.15.0-SNAPSHOT
*/
package org.xtext.example.mydsl.tURN.impl;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENot... | 26.886667 | 158 | 0.634846 |
ac3267539f7eedc5b78f84d29d59062d205dcabc | 2,222 | package io.basc.framework.jackson;
import java.io.IOException;
import java.util.Iterator;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.JsonSerializable;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.ja... | 27.432099 | 105 | 0.788929 |
6320c6a5adbeadff91e972dffa9c8f7de6caf75e | 5,293 | package org.codemucker.cqrs.service;
import java.io.PrintWriter;
import java.io.StringWriter;
import javax.ws.rs.Path;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpUriRequest;
import ... | 33.713376 | 115 | 0.612507 |
5612e78e02260954a6c65e2fc6c2af087dda3373 | 730 | package slogo_back;
import java.util.LinkedList;
import java.util.Queue;
public class QueueNode implements ISyntaxNode {
Queue<ISyntaxNode> myValueQueue;
public QueueNode(String valueBlock, Parser parser){
Queue<String> tokenQueue = parser.inputTokenizer(valueBlock);
myValueQueue = ... | 22.8125 | 69 | 0.650685 |
860fde1c21c847c0193174858d361fc1e764d4cc | 30,681 | package io.sphere.sdk.orders.commands;
import io.sphere.sdk.carts.CustomLineItem;
import io.sphere.sdk.carts.ItemState;
import io.sphere.sdk.carts.LineItem;
import io.sphere.sdk.carts.LineItemLike;
import io.sphere.sdk.messages.queries.MessageQuery;
import io.sphere.sdk.models.Address;
import io.sphere.sdk.models.Refe... | 53.45122 | 205 | 0.667058 |
aa3c388aa952380518118d702b8e0fd0dd641031 | 872 | package it.polimi.eftaios.model.turn;
import it.polimi.eftaios.model.position.Position;
import java.io.Serializable;
/**
* Interfaccia con i metodi che devono essere implementati da tutti gli stati. I
* metodi rappresentano tutte le possibili transizioni.
*
* @author Riccardo Mologni
*
*/
public ... | 24.222222 | 81 | 0.735092 |
6251a5e49021806994400da2dd5ac8840ccbc46e | 790 | package com.cezarykluczynski.stapi.auth.api_key.operation.read;
import org.springframework.stereotype.Service;
@Service
class ApiKeysReadCriteriaMapper {
ApiKeysReadCriteria fromAccountId(Long accountId) {
return ApiKeysReadCriteria.builder()
.accountId(accountId)
.pageNumber(0)
.build();
}
ApiKeys... | 29.259259 | 92 | 0.792405 |
f19231fe59b1de6310fab619a6466df548e45b9c | 2,229 | package com.qualcomm.ftcrobotcontroller.opmodes;
import com.qualcomm.robotcore.eventloop.opmode.OpMode;
import com.qualcomm.robotcore.hardware.DcMotor;
/**
* Created by Administrator on 2016/1/20.
*/
public class teleoptest extends OpMode{
DcMotor left;
DcMotor right;
DcMotor bkleft;
DcMotor bkright... | 28.576923 | 58 | 0.436967 |
2977c47383a4a28c2730071185bed49fa5eb47e0 | 613 | /*
* 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.github.hiteshlilhare.jcpss.db;
/**
*
* @author Hitesh
*/
public class DAOFactory {
public final static String SQLI... | 21.892857 | 79 | 0.657423 |
3c8497f35720994520d63138b9a149dfd0765ca6 | 269 | package org.adicoin.core;
import java.net.InetSocketAddress;
public class DnsPeerDiscovery implements PeerDiscovery {
@Override
public InetSocketAddress[] getPeers() throws PeerDiscoveryException {
throw new PeerDiscoveryException("Not Implemented Yet!");
}
}
| 20.692308 | 70 | 0.799257 |
18fd9d0addd34441167bdbd2d6f1379b6b4d58f1 | 98 |
package org.springframework.scripting;
public interface Messenger {
String getMessage();
}
| 8.909091 | 38 | 0.755102 |
4737814117a87822e17401f12163d78752026eba | 2,057 | package com.android.fresco.demo;
import android.os.Bundle;
import android.view.View;
import com.facebook.drawee.view.SimpleDraweeView;
import com.facebook.fresco.helper.ImageLoader;
import com.facebook.fresco.helper.Phoenix;
import com.facebook.fresco.helper.utils.MLog;
import androidx.annotation.Nullable;
import an... | 32.140625 | 89 | 0.707341 |
6e571208dcbfbe6e3fb089c5e56cf8533644a0a0 | 8,575 | /*
* Copyright (c) 2014-2016 Jan Strauß <jan[at]over9000.eu>
*
* 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, cop... | 28.969595 | 101 | 0.724431 |
6232171a7da50a56e99d8c07717107b74418358a | 2,067 | package android.support.v7.internal.view.menu;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import java.util.ArrayList;
final class t extends BaseAdapter
{
private MenuBuilder a;
private int b = -1;
public t(s params, MenuBuilde... | 24.317647 | 99 | 0.626512 |
633fb55b6311724f1d5ebfc0695e77bed597b52a | 1,181 | package br.eti.arthurgregorio.library.domain.repositories.administration;
import br.eti.arthurgregorio.library.domain.entities.administration.User;
import br.eti.arthurgregorio.library.domain.repositories.DefaultRepository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
i... | 23.156863 | 83 | 0.678239 |
bce76183062ea64cbde5742fe16486e9c309d6d7 | 2,921 | package me.pm.dragoncosmetics.cosmetics.features;
import me.pm.dragoncosmetics.Main;
import me.pm.dragoncosmetics.cosmetics.models.base.WingModelBase;
import me.pm.dragoncosmetics.cosmetics.models.wings.DragonWingsModel;
import me.pm.dragoncosmetics.utils.Util;
import net.minecraft.client.MinecraftClient;
import net.m... | 51.245614 | 253 | 0.756248 |
c7764a9898773d0aad7fa40c2132d88f216f95c3 | 2,104 | package cz.nalezen.osm.extractor.data;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.stream.Collectors;
import cz.nalezen.osm.extractor.MapUtils;
public class CzechRepublicAddresses {
private ArrayList<District> districts = new ArrayList<>()... | 24.183908 | 139 | 0.69962 |
314f42dac6e0457e5f2f524da574faa3137de4c8 | 111 | package com.ruesga.siocc.resolvers;
public interface DependencyResolver {
<T> T resolve(Class<T> type);
}
| 18.5 | 37 | 0.738739 |
8539ed356172a77dbf4158868ead07ae79c249ce | 12,409 | package com.lilithsthrone.game.dialogue.utils;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import com.lilithsthrone.game.character.GameCharacter;
import com.lilithsthrone.game.character.effects.PerkManager;
import com.lilithsthrone.game.character.... | 37.60303 | 201 | 0.684423 |
cd3802b39c0416767fd783dda778acbc9fb86351 | 4,767 | /*
Copyright (c) 2012, Apps4Av Inc. (apps4av.com)
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions an... | 29.608696 | 765 | 0.528844 |
52e406b4c73284fd34738523f333db2f02731abe | 969 | package com.oom.hive.central.service;
import com.oom.hive.central.AppSettings;
import com.oom.hive.central.model.HiveBotData;
import com.oom.hive.central.repository.model.HiveBot;
import com.oom.hive.central.repository.model.HiveBotEvent;
import java.util.EnumSet;
import java.util.List;
public interface BotReportin... | 34.607143 | 96 | 0.675955 |
8ac4817d20c462fc653f2d6feb05f0964730aae2 | 4,236 | package com.patrickfeltes.graphingprogram.userinterface.graphs;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.DividerItemDecoration;
import android.support.v7.widget.LinearLayoutM... | 36.517241 | 94 | 0.682247 |
c0d312d981b34d7491f37732505cc9242b40017a | 2,393 | //
// 此文件是由 JavaTM Architecture for XML Binding (JAXB) 引用实现 v2.2.11 生成的
// 请访问 <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 在重新编译源模式时, 对此文件的所有修改都将丢失。
// 生成时间: 2017.05.27 时间 06:15:25 PM CST
//
package com.erp.biz.api.model.response;
import javax.xml.bind.annotation.XmlEnum;
import java... | 26.588889 | 79 | 0.647723 |
b1087cc17f362bb5446abf8cdcb6dfe468507c94 | 2,074 | package gui.view;
import java.util.Observer;
import authoringenvironment.model.IEditableGameElement;
import authoringenvironment.model.IEditingElement;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.control.Button;
/**
* This class serves as the abstract class for all classes... | 25.604938 | 110 | 0.759402 |
3c0615047abfba3bc4a4bba011cb07318bca4adc | 315 | package be.kdg.repaircafe.frontend.controllers.resources.errors;
public class ErrorResource
{
private final String errorMessage;
public ErrorResource(String errorMessage)
{
this.errorMessage = errorMessage;
}
public String getErrorMessage()
{
return errorMessage;
}
}
| 18.529412 | 64 | 0.698413 |
e84c21326a1bd7fe187559492c58d82f7bf8aeb8 | 3,761 | package com.kidozh.discuzhub.activities;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.provider.MediaStore;
import android.ut... | 34.190909 | 167 | 0.625366 |
1f383425fde54f6f339593171cda255e26f1736d | 912 | package gregtech.api.gui.impl;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.inventory.Inventory;
import net.minecraft.inventory.SimpleInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.screen.slot.Slot;
class EmptySlotPlaceholder extends Slot {
private static final Inve... | 21.714286 | 90 | 0.691886 |
55c8c3f3737215b830027b488365448bf0a0e094 | 1,706 | /*
* Copyright (C) 2019 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.65 | 123 | 0.783705 |
16ea48a2ede575b7afeaa2bb45702ecde8207d93 | 9,702 | /*
* 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.750973 | 107 | 0.707792 |
39737df7b9d296830dbfefa4f7058e31b50d40b3 | 1,316 | package mage.cards.b;
import mage.MageInt;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.effects.mana.AddManaOfAnyColorEffect;
import mage.abilities.keyword.NightboundAbility;
import mage.abilities.mana.SimpleManaAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.... | 27.416667 | 85 | 0.702128 |
1e6c24a5a2ca58f1bbac42772b07300132f4f283 | 4,752 | /**
* Copyright 2016 - 2017
*
* Daniel Hintze <daniel.hintze@fhdw.de>
* Sebastian Scholz <sebastian.scholz@fhdw.de>
* Rainhard D. Findling <rainhard.findling@fh-hagenberg.at>
* Muhammad Muaaz <muhammad.muaaz@usmile.at>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this f... | 36.553846 | 145 | 0.648779 |
677365f7dfe565f691301e8c2b11aa0fc18de61f | 10,250 | package fr.avalonlab.warp10;
import fr.avalonlab.warp10.dsl.GTSInput;
import fr.avalonlab.warp10.dsl.Warpscript;
import fr.avalonlab.warp10.exception.MissingMandatoryDataException;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLPara... | 37.408759 | 190 | 0.653561 |
13b618c209f4feba0582f0c6084dd5501936878a | 1,222 | package com.diamondq.traffic.analyzer.ingest;
import com.diamondq.common.storage.kv.IKVTransaction;
import com.diamondq.common.storage.kv.inmemory.InMemoryStore;
import org.javatuples.Pair;
import org.junit.Assert;
import org.junit.Test;
public class GetHostNameProcessorTest {
@Test
public void simpleHostTest() t... | 27.155556 | 87 | 0.744681 |
f25c2d03f360827c224b11eee7db991b3287d769 | 1,325 | /*
* @lc app=leetcode.cn id=646 lang=java
*
* [646] 最长数对链
*/
// @lc code=start
import java.util.*;
import static java.util.stream.Collectors.*;
class Solution {
// 动态规划
public int findLongestChain(int[][] pairs) {
// 创建对象并排序好
List<Pair> pairList = Arrays.stream(pairs).map(Pair::new).sorte... | 21.370968 | 93 | 0.550189 |
1fb9d4663a555a65cf34d0e8130b3093ac3c5472 | 104 | package eu.f3rog.dagger.provider.di;
import javax.inject.Scope;
@Scope
public @interface AppScope {
}
| 13 | 36 | 0.769231 |
673d700cc1fdbd083840168810e1ccdc5ab43e1b | 1,388 | package com.xtoon.boot.sys.domain.specification;
import com.xtoon.boot.common.domain.StatusEnum;
import com.xtoon.boot.sys.ApplicationTest;
import com.xtoon.boot.sys.domain.model.tenant.*;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.junit.runner.RunWith;
import org.springfra... | 33.853659 | 127 | 0.768012 |
60a17d3620b591b43c4056e3ada31e8b68840cb7 | 19,390 | package ModelDao;
import ConnectBean.ConnectionProvider;
import LocalModel.KieuhoiList;
import LocalModel.TableImportDataApi;
import LocalModel.TableImportdataApiModel;
import LocalModel.VwApiDetailChualaydulieu;
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.PreparedStatement;
import j... | 39.571429 | 182 | 0.546622 |
c57107bdd36f299dadeb77e1056be544afd0775a | 264 | package ru.geekbrains.pocket.backend.repository.DB;
import org.springframework.data.mongodb.repository.MongoRepository;
import ru.geekbrains.pocket.backend.domain.entitiesDB.Project;
public interface ProjectRepository extends MongoRepository<Project,String> {
}
| 33 | 76 | 0.852273 |
2808696b68da45dca26e0bb7fab887b84d637320 | 8,968 | package com.jme3.util;
import com.jme3.asset.AssetManager;
import com.jme3.asset.TextureKey;
import com.jme3.bounding.BoundingSphere;
import com.jme3.material.Material;
import com.jme3.math.Vector3f;
import com.jme3.renderer.queue.RenderQueue.Bucket;
import com.jme3.scene.Geometry;
import com.jme3.scene.Spatial;
impor... | 41.711628 | 188 | 0.659902 |
70fe270bf544118d83fdf2acac9305feb145bf27 | 5,480 | // Authors Simon Gredal & Malthe Gram & Mark Friis Larsen
package gruppe8.nebula.repositories;
import gruppe8.nebula.models.Task;
import gruppe8.nebula.services.DatabaseManager;
import gruppe8.nebula.entities.TaskEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Rep... | 44.552846 | 154 | 0.637409 |
a867224d6949b2ed8e0f3628a374f14897b88f41 | 2,076 | package com.udacity.gradle.builditbigger;
import android.support.test.InstrumentationRegistry;
import android.support.test.espresso.Espresso;
import android.support.test.espresso.idling.CountingIdlingResource;
import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
import ... | 43.25 | 153 | 0.762524 |
a4de8767ad775b2afd3cb0cff225bc9648fbfb0e | 399 | package starter.lichess.screenplay.pages;
import net.serenitybdd.screenplay.targets.Target;
import org.openqa.selenium.By;
public class PlayPage {
public static final Target CHESS_BOARD =
Target.the("chess board").located(By.cssSelector("cg-board"));
public static final Target ONLINE_OPPONENT=
... | 30.692308 | 78 | 0.729323 |
78035672acdb560f3201d4b0cd94325df43ceba2 | 4,323 | /*
* Copyright 2012-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 36.635593 | 103 | 0.780477 |
a60c1cc2b89ca1ca3e1763bcfa383ad92f42b699 | 329 | package com.cognifide.slung.api.handler.picker;
import com.cognifide.slung.api.context.handler.HandlerContext;
import com.cognifide.slung.api.handler.Handler;
import com.google.common.base.Optional;
public interface HandlerPickingStrategy {
String getName();
Optional<Handler> pickUsing(HandlerContext handlerCon... | 25.307692 | 62 | 0.817629 |
96f9bca61796a155566c48e51a1691b4b1eee552 | 3,431 | package com.jacquessmuts.rxstarter.sample;
import android.support.test.espresso.ViewInteraction;
import android.support.test.espresso.matcher.ViewMatchers;
import android.support.test.filters.LargeTest;
import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
import android... | 41.337349 | 121 | 0.597202 |
c53ae386ed67effef4823ad956c4bbb028f79659 | 575 | package uk.gov.hmcts.reform.fpl.service.orders.docmosis;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.Value;
import lombok.experimental.SuperBuilder;
import uk.gov.hmcts.reform.fpl.model.docmosis.DocmosisChild;
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Value
@SuperBui... | 27.380952 | 77 | 0.817391 |
4427ee04f61c060d6030ccee3a4b1c57201c0f1f | 7,488 | /*
*
* Copyright: (c) 2012 Enough Software GmbH & Co. KG
*
* Licensed under:
* 1. MIT: http://www.opensource.org/licenses/mit-license.php
* 2. Apache 2.0: http://opensource.org/licenses/apache2.0
* 3. GPL with classpath exception: http://www.gnu.org/software/classpath/license.html
*
* You may not use this file... | 26.459364 | 86 | 0.66266 |
ab8d1b203e56057da051da1ccec0003374981d0e | 47,936 | /**
* Copyright (C) 2002-2015 The FreeCol Team
*
* This file is part of FreeCol.
*
* FreeCol 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, either version 2 of the License, or
* (at your optio... | 40.658185 | 92 | 0.57218 |
ede62a5e6e9b5e068ab04f35ed2082c8ebc538df | 2,226 | package survival.labs.bot.events;
import com.jagrosh.jdautilities.commons.waiter.EventWaiter;
import net.dv8tion.jda.api.events.ReadyEvent;
import net.dv8tion.jda.api.events.message.guild.GuildMessageReceivedEvent;
import net.dv8tion.jda.api.hooks.ListenerAdapter;
import org.bukkit.plugin.Plugin;
import survival.labs.... | 37.728814 | 104 | 0.71743 |
7fd8b5d80f422d7e1b180890369ebba2caa8305c | 10,285 | package org.werk.engine.sql.jobload;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
import org.apache.log4j.Logger;
import org.json.JSONException;
import org.json.JSONObject;
import org.pillar.db.interfaces.Transa... | 37.95203 | 121 | 0.733204 |
2668f84f5e75cbf8a89a7a1b64eac49cf1f36e59 | 1,481 | package me.lachlanap.physicsplayground.ui.tools;
import java.awt.Color;
import java.awt.Graphics2D;
import me.lachlanap.physicsplayground.physics.World;
import me.lachlanap.physicsplayground.ui.View;
/**
*
* @author lachlan
*/
public class DeleteTool implements Tool {
private final World world;
private fi... | 25.101695 | 93 | 0.579338 |
8fd8176734799523dd2f0e2bdc88b2bd81cca155 | 1,832 | // Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.vcs.changes;
import gnu.trove.TObjectHashingStrategy;
import org.jetbrains.annotations.NotNull;
import java.util.Objects;
public class ChangeListCh... | 29.548387 | 140 | 0.679585 |
9934feb3554c8c0158a04917565f2760f6c82c1a | 3,939 | package com.room.db.view_model;
import android.app.Application;
import android.arch.lifecycle.AndroidViewModel;
import android.arch.lifecycle.LiveData;
import android.os.AsyncTask;
import android.support.annotation.NonNull;
import android.util.Log;
import com.room.db.db.AppDatabase;
import com.room.db.db.dao.BookDao;... | 28.135714 | 120 | 0.615131 |
11af996be2098affb96c53a64fddf9f55cea5c73 | 2,767 | /*
* Copyright 2013-2018 John Ericksen
*
* 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.407895 | 106 | 0.608601 |
cdf788183eb2e06b5b11de69f2c7f374570af484 | 3,154 | /*
* 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. Camunda licenses this file to you under the Apache License,
* Version 2.0; y... | 38.938272 | 91 | 0.731135 |
203d3ce02c78a27afbd8e68bad22f244fe84517e | 2,671 | package de.windowsfreak.testjni;
import de.windowsfreak.testjni.writer.*;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.LinkedList;
import java.util.List;
/**
* Created by lazer_000 on 25.06.2015.
*/
public abstract class SinkFactory {
public static List<SinkFactory> cf = new LinkedL... | 33.810127 | 119 | 0.471733 |
6d7f1e91a2e3a0dcf4e26df9cfda027d899005ed | 3,080 | package mirror.tasks;
import java.time.Duration;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.atomic.AtomicBoolean;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
import mirror.Utils;
/**
* Provides some basic "sta... | 25.882353 | 148 | 0.635714 |
626a6058e1b1257d352ddbbbb905f5263b4d844f | 1,063 | package com.goosen.commons.model.request.login;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotEmpty;
import com.goosen.commons.model.request.BaseReq;
@ApiModel(value="登录")
public class LoginReqData extends BaseReq{
private sta... | 24.159091 | 68 | 0.751646 |
3a1d111fb39207478ed8fc4a7d2add631dd5a574 | 292 | package co.lq.mp.service.dto;
import java.io.Serializable;
import lombok.Data;
/**
* @author billy
* @date 2019-10-06
*/
@Data
public class CacheDTO implements Serializable {
private String key;
// 缓存数据
private String result;
// 缓存时间
private Integer addTime;
}
| 13.272727 | 47 | 0.667808 |
7c658f7db39a2481a0cb69fa0cbc1522c1115360 | 760 | package com.github.attemper.common.param.dispatch.arg.ext;
import com.github.attemper.common.param.CommonParam;
import lombok.ToString;
@ToString
public class SqlArgParam implements CommonParam {
protected String dbName;
protected String sql;
@Override
public String validate() {
if (sql == ... | 19.487179 | 70 | 0.614474 |
f03f4af5c6a7a00ee3a199c1750c26ec8ed3950c | 4,691 | package cc.twittertools.util;
import java.io.IOException;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.lucene.analysis.Analyzer.TokenStreamComponents;
import org.apache.lucene.analysis.TokenStream;
import org.apache.l... | 35.007463 | 102 | 0.690045 |
3a6da72970aed68b22b7d482cad18152d130394e | 3,251 | package com.ecoevents.restful.bs.dao.impl;
import java.util.List;
import org.hibernate.Criteria;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.criterion.Example;
import org.hibernate.transform.Transformers;
import org.springframework.transaction.an... | 28.269565 | 116 | 0.760381 |
b997da46c3b64ac5abb346c017fbefa1ae5c25b5 | 49,803 | /*
* Copyright (c) 2013 The Johns Hopkins University/Applied Physics Laboratory
* All rights reserved.
*
* This material may be used, modified, or reproduced by or for the U.S.
* Government pursuant to the rights granted under the clauses at
* DFARS 252.227-7013/7014 or FAR 52.227-14.
... | 98.424901 | 120 | 0.571853 |
aed2957bacdc4085aed8319768f9f95ee1ae1048 | 8,500 | package com.cjm721.overloaded.client.gui;
import com.cjm721.overloaded.Overloaded;
import com.cjm721.overloaded.client.gui.button.GuiPositiveFloatTextField;
import com.cjm721.overloaded.client.gui.button.GuiSlider;
import com.cjm721.overloaded.client.gui.button.GuiToggle;
import com.cjm721.overloaded.item.functional.a... | 50.595238 | 393 | 0.702941 |
ed07f06efdd64286a3259ea28e2ccc3f969fb232 | 3,246 | package be.patricegautot.getorganized.activities;
import android.content.Intent;
import android.net.Uri;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;
import com.goog... | 36.066667 | 145 | 0.636168 |
c13f82ea79b8ba8b5c4ca8cf8b7cf4a312ac0822 | 472 | package com.beimi.web.service.repository.jpa;
import com.beimi.web.model.AccountConfig;
import com.beimi.web.model.AccountRecordModel;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
public abstract interface AccountRecordRepositor... | 36.307692 | 101 | 0.84322 |
10bb80913fa5ec6ecdbdf48ef5018e7842545c14 | 4,406 | /*
* 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")... | 35.532258 | 77 | 0.59714 |
7f0ee606e39ef91ab82a9ef7c52f6c412e0fb8ae | 460 | package com.bm.dao;
import com.bm.model.BSort;
import com.bm.model.TBook;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface BSortMapper {
int deleteByPrimaryKey(Integer id);
int insert(BSort record);
int insertSelective(BSort record);
BSort selectByPrimaryKey(Int... | 18.4 | 50 | 0.745652 |
bea5c897b31ee656d9ecd24dc4d8c15b968629f4 | 3,728 | package com.github.davidmoten.grumpy.wms.demo;
import static com.github.davidmoten.grumpy.core.Position.position;
import static com.github.davidmoten.grumpy.wms.RendererUtil.draw;
import static com.github.davidmoten.grumpy.wms.RendererUtil.fill;
import static com.github.davidmoten.grumpy.wms.RendererUtil.toPathGreatCi... | 32.417391 | 163 | 0.738197 |
5e9e68b183c6e9621e6a86d60459f737a148447a | 1,811 | package org.folio.rest.persist;
import org.folio.cql2pgjson.CQL2PgJSON;
import org.folio.cql2pgjson.exception.FieldException;
import org.folio.rest.persist.Criteria.Limit;
import org.folio.rest.persist.Criteria.Offset;
import org.folio.rest.persist.cql.CQLWrapper;
import java.util.LinkedList;
import java.util.List;
... | 26.632353 | 104 | 0.688018 |
e32f0d53345de8f073da98127c6ecf168495c9f2 | 318 | package com.bakerbeach.market.tax.api.service;
import java.math.BigDecimal;
import com.bakerbeach.market.core.api.model.TaxCode;
public interface TaxService {
public static final String DEFAULT_CUSTOMER_TAX_CODE = "NORMAL";
BigDecimal getTaxRate(TaxCode productTaxCode, TaxCode customerTaxCode, String key);
}
| 22.714286 | 84 | 0.811321 |
c2f4f05eeb3a2715d94a7ac820562aeb199229f5 | 1,850 | /* Copyright 2009-2018 David Hadka
*
* This file is part of the MOEA Framework.
*
* The MOEA Framework is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or (at your
... | 28.461538 | 78 | 0.67027 |
35588600a43594e2befce8fb97ca3a5670f9e536 | 2,786 | package net.dubboclub.restful;
import com.alibaba.dubbo.common.Constants;
import com.alibaba.dubbo.common.URL;
import com.alibaba.dubbo.common.extension.ExtensionFactory;
import com.alibaba.dubbo.common.extension.ExtensionLoader;
import com.alibaba.dubbo.common.utils.ConfigUtils;
import com.alibaba.dubbo.remoting.http... | 36.181818 | 149 | 0.71967 |
378c7c1b17d995063a9d5ab79ac5c4b8c09dfd0f | 2,148 | package com.bitwig.extensions.controllers.akai.mpk_mini_mk3;
import java.util.UUID;
import com.bitwig.extension.api.PlatformType;
import com.bitwig.extension.controller.AutoDetectionMidiPortNamesList;
import com.bitwig.extension.controller.ControllerExtension;
import com.bitwig.extension.controller.ControllerExtensio... | 20.653846 | 109 | 0.655028 |
b9a02dd858e4a3e7fcccd9657e3bd1e34bdba978 | 3,036 | /*
*
* 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"); y... | 34.896552 | 118 | 0.713768 |
e8cff34c4579f253c417cd155a4cdaf6e6122826 | 164 | package org.gortz.alarm;
import org.gortz.alarm.View.View;
public class Startup {
public static void main(String[] args) {
new View(args);
}
}
| 12.615385 | 44 | 0.646341 |
794b1683495924f9f02602b59ae7f7ad593659c4 | 155 | package moviebooking;
/**
* @author : alexchen
* @created : 9/13/20, Sunday
**/
public enum Genre {
Romantic,
Crime,
Story,
Fiction
}
| 11.071429 | 29 | 0.587097 |
154979fa4214ce9218b3d92577fc719375b53072 | 624 | package com.example.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.open... | 28.363636 | 72 | 0.852564 |
b08dc3728af43f29cb4fab9624405f9d26e337b4 | 2,171 | /*
* Copyright [2011-2016] "Neo Technology"
*
* 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 t... | 27.1375 | 308 | 0.644864 |
f818f8e733cad7c13417223371e031e152d041f2 | 1,144 | package fr.esiea.glpoo.Eurodroo.ihm;
import fr.esiea.glpoo.Eurodroo.ihm.TirageJFrame;
import org.apache.log4j.Logger;
import java.awt.Color;
import java.awt.Component;
import java.awt.Graphics;
import java.awt.GridLayout;
import java.util.ArrayList;
import java.util.List;
import javax.swing.JFrame;
im... | 21.584906 | 73 | 0.707168 |
e92a84f3ef7a0bd1055f044e07ccd0c3a02ef646 | 8,562 | /*
* Copyright (c) 2002 and later by MH Software-Entwicklung. All Rights Reserved.
*
* JTattoo is multiple licensed. If your are an open source developer you can use
* it under the terms and conditions of the GNU General Public License version 2.0
* or later as published by the Free Software Foundation.
*
* see: gp... | 37.884956 | 110 | 0.588764 |
b36baad0d6d138cfba2845e30f720ad695495573 | 67,465 | /*
* Copyright 2015 The SageTV Authors. 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 ap... | 35.028557 | 131 | 0.598058 |
41d84aa27f2f8506b8aaa8b95f550b9aaf6f6fae | 17,964 | package it.smartcommunitylab.aac.internal.provider;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.jsoup.Jsoup;
import org.jsoup.safety.Safelist;
import org.springframework.transaction.annotation.... | 35.501976 | 120 | 0.676854 |
d52a9fb5454fef5bc9d88afdb37427cb66f26dc3 | 411 | package com.example.arthur.cabraldrums11.Class.Bancos.Instr;
import com.example.arthur.cabraldrums11.Class.Bancos.ClassAux.CriarInst;
import com.example.arthur.cabraldrums11.Class.Bancos.Pad.Pad;
public class PratoAtk {
public static Pad pAtk = new Pad("pAtk");
public static int numEmUso = 1;
public sta... | 20.55 | 72 | 0.722628 |
c76402803e96dfd9a41eccaf3c1919259c76257f | 5,950 | package org.ovirt.engine.core.bll.validator;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.when;
import static org.ovirt.engine.core.bll.utils.NumaTestUtils.createVdsNumaNode;
import static org.ovirt.engine.core.bll.utils.Num... | 36.280488 | 132 | 0.720168 |
dc1ad99de5137c0d9744f30bc3516a98ffb7a2eb | 291 | package com.cheng.jetblog.utils;
import org.apache.commons.codec.digest.DigestUtils;
/**
* @author cheng
* @since 2021/8/19 00:38
**/
public class EncryptStr {
public static String encryptShortSHE256(String s) {
return DigestUtils.md5Hex(DigestUtils.sha256Hex(s));
}
}
| 19.4 | 60 | 0.707904 |
36baaddbef41bafee50a11f3f5ee168030c4c310 | 1,423 | package leetcode.list;
/**
* https://leetcode-cn.com/problems/sum-lists-lcci/
*/
public class SumLists {
/**
* 因为已经是逆序了,则不需要反转链表了
*/
public ListNode addTwoNumbers(ListNode left, ListNode right) {
ListNode pLeft = left,
pRight = right,
dummy = new ListNode(),
p = dummy;
// 遍历相加
... | 20.042254 | 64 | 0.479269 |
c6d8a7247cbd9230455376587a233ba80bb8afd6 | 2,204 | public byte[] saveToByteArray() {
boolean isThisPacketZipped = false;
boolean isThisPacketEncrypted = false;
byte[] workTab = tab;
if (zipData) {
try {
byte[] zipTab = ByteUtils.packRaw(workTab);
if (zipTab.length < workTab.length) {
... | 48.977778 | 146 | 0.583031 |
71209c3b92b3338c504758cd4b8dcfd22aca647e | 6,248 | package com.guoxiaoxing.lrucache.demo;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.util.LruCache;
import android.view.Vie... | 37.190476 | 146 | 0.638444 |
b4bdc5c6450a8a5c3d4a5a5df55fdf8d778ec733 | 531 | package dev.jeka.core.api.depmanagement;
import org.junit.Test;
@SuppressWarnings("javadoc")
public class JkExternalModuleTest {
@SuppressWarnings("unused")
@Test
public void testOf() {
JkDependency dep;
dep = JkModuleDependency.of(JkModuleId.of("org.hibernate", "hibernate-core"),
... | 27.947368 | 86 | 0.65725 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.