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 |
|---|---|---|---|---|---|
b69423f093e5a7edadb44af0ed526874545dd985 | 1,229 | package me.joshmcfarlin.cryptocompareapi.api;
import com.google.gson.Gson;
import me.joshmcfarlin.cryptocompareapi.CryptoCompareAPIConstant;
import me.joshmcfarlin.cryptocompareapi.Exceptions.OutOfCallsException;
import me.joshmcfarlin.cryptocompareapi.models.social.SocialStats;
import me.joshmcfarlin.cryptocompareapi... | 38.40625 | 109 | 0.7738 |
dd0e2983979d4ad8b3da0d828f6984d0d271c2fa | 2,879 | package org.kairosdb.client.testUtils;
import com.google.common.collect.ArrayListMultimap;
import com.google.common.collect.ListMultimap;
import com.google.gson.*;
import org.kairosdb.client.builder.Grouper;
import org.kairosdb.client.builder.QueryBuilder;
import org.kairosdb.client.builder.grouper.TagGrouper;
import ... | 31.637363 | 166 | 0.77388 |
cf1b0efc6532c9b176ed63c26e55cb43022bb233 | 1,329 | /*
* Copyright 2021 LinkedIn Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 37.971429 | 100 | 0.776524 |
d9aa7b318f78bbe3bcd2a47e6f29a63b0a78318d | 4,737 | /*
* Copyright 2016-2017 Lukhnos Liu. 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 appli... | 38.201613 | 119 | 0.759341 |
b43078499e93daff96341acda17447509d38e104 | 3,905 | package com.fanxin.huangfangyi.main.activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.fanxin.huangfangyi.R;
import com.fanxin.huangfangyi.main.FXConstant;
import com.fa... | 32.272727 | 113 | 0.659667 |
188574f57ab1bc4599644f22788fb8acd6dd4b29 | 1,946 | /*
* Copyright 2017-present Open Networking Foundation
*
* 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... | 28.202899 | 89 | 0.690647 |
76bc8181c30db12dc1aa9269eabd74a3de32d2ad | 2,734 | package es.upm.miw.apaw_practice.adapters.mongodb.school.entities;
import es.upm.miw.apaw_practice.domain.models.school.Subject;
import org.springframework.beans.BeanUtils;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb... | 25.551402 | 77 | 0.626554 |
bdce66860977038d0f0195acb47d81207f822c36 | 3,445 | package com.oktaice.scim.model.scim;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.util.ArrayList;
import java.util.List;
import java.util.M... | 25.330882 | 100 | 0.570392 |
3c8975b52e7649be6cdc0c376351dbd7d9bcca1d | 1,685 | /**
* Copyright (c) 2015 Intel Corporation
*
* 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 ... | 34.387755 | 97 | 0.775668 |
6f282dbde041cba0891ae23a875e3e3a59c37619 | 168 | package com.notronix.etsy.api.model;
public enum ReceiptAssociations
{
Country,
Buyer,
GuestBuyer,
Seller,
Transactions,
Listings
}
| 14 | 37 | 0.636905 |
93d4bb8a8a1478bdf9f0a0e90fc0fc194a6efffc | 1,632 | package mdhim;
import org.bridj.BridJ;
import org.bridj.Pointer;
import org.bridj.StructObject;
import org.bridj.ann.Field;
import org.bridj.ann.Library;
/**
* <i>native declaration : mdhim-tng-ycsb/src/range_server.h:1368</i><br>
* This file was autogenerated by <a href="http://jnaerator.googlecode.com/">JNAerator</... | 30.792453 | 183 | 0.675245 |
5276e73f7eaf164fe9767fba69da4819484f9b56 | 2,098 | package com.hyd.jfapps.httprequest;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.*;
import javafx.scene.image.ImageView;
import javafx.scene.web.WebView;
import lombok.Getter;
import java.util.Map;
@Getter
public abstract class HttpToolView implements Initializable {
@FXML
... | 29.549296 | 82 | 0.811249 |
d34ebf24b3c09f0be21d246271302b9941b4549b | 580 | package br.com.zup.mercadolivre.compra.data.repository;
import br.com.zup.mercadolivre.compra.data.domain.Compra;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import java.util.Optional;
@Repository... | 38.666667 | 139 | 0.808621 |
ff6f7a90eea4612b52087b370884666866481f01 | 3,761 | /**
* Copyright (c) 2016-2018, the Alpha Team.
* All rights reserved.
*
* Additional changes made by Siemens.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1) Redistributions of source code must retain th... | 30.577236 | 88 | 0.738633 |
bed5efac815ca3dd56be0c6de8c689a059646422 | 276 | package com.sampa.camerax.arch.camera;
public interface ICameraModel {
void validatePath(String path, ICameraModel.ICameraModelCallback callback);
interface ICameraModelCallback {
void onValidatePathSuccess();
void onValidatePathFailure(Throwable t);
}
}
| 17.25 | 76 | 0.775362 |
442b3240e9f04bbe46842cfcaf354b2adafec0d2 | 12,215 | /*
* Copyright 2017 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 applica... | 35 | 100 | 0.625706 |
f790aa7a39ec7c7739c37b3c51c8389172fca756 | 5,161 | package tv.dyndns.kishibe.qmaclone.client.game.input;
import java.util.Collections;
import java.util.List;
import tv.dyndns.kishibe.qmaclone.client.constant.Constant;
import tv.dyndns.kishibe.qmaclone.client.game.AnswerView;
import tv.dyndns.kishibe.qmaclone.client.game.SessionData;
import tv.dyndns.kishibe.qmaclone.... | 37.671533 | 96 | 0.7702 |
59be46c2ce05408d23c8eaa1e6c263c6af3b9425 | 1,558 | package com.alibaba.jstorm.message.zeroMq;
import java.nio.ByteBuffer;
import backtype.storm.serialization.KryoTupleDeserializer;
/**
* virtualport send message
*
* @author yannian/Longda
*
*/
public class PacketPair {
private int port;
private byte[] message;
public PacketPair(int port, byte[] message) {... | 21.054054 | 67 | 0.675225 |
b0d1528a4c8d795d09d7f66a01d67b4785172714 | 9,861 | /*
* 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 ... | 35.728261 | 108 | 0.692932 |
f193e4c8db38f28f2b425857396327a24756d398 | 1,768 | package ru.itis.servlets;
import ru.itis.entities.Event;
import ru.itis.entities.User;
import ru.itis.models.ConnectionCreator;
import ru.itis.DAO.ParticipantsDAO;
import ru.itis.repositories.EventsRepository;
import ru.itis.repositories.EventsRepositoryJdbcImpl;
import javax.servlet.RequestDispatcher;
import javax.s... | 38.434783 | 113 | 0.751697 |
1eb2e2c571c393359f9a4347958d6942cb159d1f | 1,853 | package com.example.models;
// Generated 09/05/2017 05:06:06 PM by Hibernate Tools 4.0.1.Final
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
* Home object for do... | 26.855072 | 77 | 0.740961 |
9aab20e8807c6163bc7b24b0be77ed9d3d0bd169 | 2,732 | /*
* 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 app... | 39.028571 | 134 | 0.699122 |
9e07ad4dfa59cca1859647d58c48df6cb9a8eeab | 1,461 | package io.vertx.core.impl;
import io.vertx.core.Handler;
import io.vertx.core.spi.metrics.PoolMetrics;
import com.newrelic.api.agent.NewRelic;
import com.newrelic.api.agent.Segment;
import com.newrelic.api.agent.Token;
import com.newrelic.api.agent.Trace;
import com.newrelic.api.agent.weaver.MatchType;
import com.ne... | 28.647059 | 112 | 0.767967 |
4d3b49881413af1c447a1dec5dda9929f92da01d | 5,651 | /*
* 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 ... | 35.765823 | 109 | 0.720757 |
1e054a16920cd10ba799676aba01bb99c367eea7 | 6,206 | /*************************GO-LICENSE-START*********************************
* Copyright 2014 ThoughtWorks, 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... | 43.704225 | 133 | 0.628746 |
e534e22e9d32a40dbb1590cb0d6176f2a5d02095 | 894 | package org.tt.admin.service;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.util.Assert;
import org.tt.admin.po.User;
import javax.annotation.Resou... | 27.090909 | 71 | 0.746085 |
c2faa4b553312ae0dd14f2343909cf52cb2f4826 | 7,081 | package util;
import java.io.*;
import org.assertj.core.util.Files;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.gson.Gson;
import ch.aaap.harvestclient.core.Harvest;
import ch.aaap.harvestclient.domain.*;
import ch.aaap.harvestclient.domain.reference.GenericReference;
import ch.aaap.h... | 32.934884 | 113 | 0.685496 |
e3ec037dac3201e3c6e4febfeeab88a3a5031874 | 396 |
package net.eduard.spawn.event;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;
import net.eduard.spawn.Main;
public class SpawnEvent implements Listener {
@EventHandler
public void event(PlayerJoinEvent e) {
if (Main.config.contains("spaw... | 20.842105 | 60 | 0.762626 |
9fea5a12b9fa641c67b5f8b7336ebd3d8fa1883f | 1,102 | package cspace.render2d;
import javax.media.opengl.GL2;
import jgl.math.vector.Vec3f;
import cspace.scene.CSArc.Arc;
import cspace.scene.Scene;
import cspace.scene.Sub;
import cspace.util.CachedRenderer;
public class SubRenderer extends CachedRenderer {
private Scene scene;
private Camera camera;
public Sub... | 22.489796 | 73 | 0.681488 |
f453eac4a350d8a3f3d9f4530bd531ead24cd82a | 1,821 | package com.example.android.sunshine.app.wearsupport;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.util.Log;
import com.example.android.sunshine.app.sync.SunshineS... | 40.466667 | 101 | 0.673806 |
37a141be945569bbf57cb993f8da194da3ae773f | 15,892 | /*
* JBoss, Home of Professional Open Source
* Copyright 2015, Red Hat, Inc., and individual contributors as indicated
* by the @authors tag.
*
* 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 Licen... | 32.834711 | 152 | 0.644727 |
b8ee91250b0883b30a2ea703c78352cbdebeb654 | 907 | package View;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.control.Button;
import javafx.scene.layout.VBox;
public class BackButtonView {
protected Button backToMainButton;
protected VBox mainView, backToMainVBox;
public BackButtonView() {
mainView = new ... | 23.25641 | 72 | 0.674752 |
24327cd6f4c67391a6496f499e38e1bc1553ca25 | 1,662 | package ir.apend.slidersample;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.AdapterView;
import java.util.ArrayList;
import java.util.List;
import ir.apend.slider.model.Slide;
import ir.apend.slider.ui.Slider... | 41.55 | 182 | 0.72864 |
5903d1d10dbee835af0b1e5cf3893c71c192e945 | 2,548 | //Chapter 12 - Exercise 12.12
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.J... | 21.411765 | 82 | 0.700942 |
76a903e6656cd3578dcf6eb300eb3ebb79526f56 | 5,363 | // Generated from graphql_java_gen gem with template Input.java.erb
package com.contentbig.kgdatalake.graphql.generated;
import com.shopify.graphql.support.ID;
import com.shopify.graphql.support.Input;
import com.shopify.graphql.support.Tuery;
import java.io.Serializable;
import java.util.List;
public class Messag... | 26.949749 | 82 | 0.543353 |
48997ace726aff62cd913bbeaf7cf5ec2bbe9f35 | 513 | package macbury.forge.promises;
import com.badlogic.gdx.utils.Disposable;
/**
* Created by macbury on 16.03.15.
*/
public class GdxPromiseFrameTicker implements Disposable {
private GdxFutureTask target;
public void setTarget(GdxFutureTask target) {
this.target = target;
}
public GdxFutureTask getTarg... | 17.1 | 58 | 0.674464 |
b0eda8e765066a1011f7199c1d6a79e54bcc435c | 762 | package com.horvat.dragutin.survey.controllers;
import com.horvat.dragutin.survey.exception.SurveyException;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.servl... | 38.1 | 94 | 0.843832 |
7e4b4056b95f12151d0f4df234b0c12d56d2a54f | 158 | package devos.jlsl;
import devos.jlsl.fragments.*;
@FunctionalInterface
public interface CodeFilter
{
public CodeFragment filter(CodeFragment fragment);
}
| 15.8 | 51 | 0.810127 |
61b4544b04a4a1d430f02f730497cf5003803a13 | 1,122 | package abapci.coloredProject.model.projectColor;
import static org.junit.Assert.*;
import org.eclipse.swt.graphics.RGB;
import org.junit.Test;
public class ProjectColorFactoryTest {
private static final RGB RED_COLOR = new RGB(255,0,0);
@Test
public void testCreateRGB() {
ProjectColorFactory pro... | 33 | 97 | 0.778966 |
6037289be2e76d4b8d1a65ceffcac364ccb58a60 | 116 | package ms.springframework.bean.tx;
public class BookService {
public void checkout(String name, int age){
}
}
| 12.888889 | 44 | 0.741379 |
c7bcad6347cbaacd3ea0d8a0ddc879e39d84113e | 1,632 | package org.numbercounter;
import java.util.NavigableMap;
import java.util.TreeMap;
/**
* Class to be used for capturing data points and calculating statistics on those data points.
*/
public class DataCapture {
final NavigableMap<Integer, Long> pointCounts = new TreeMap<>();
long totalPointCount = 0;
/**
... | 35.478261 | 96 | 0.715074 |
51b198503b7949f677c3ded1ece0d3b79f44741e | 1,594 | package com.luckypeng.mock.core.util;
import java.io.*;
import java.lang.reflect.Array;
import java.util.Collection;
import java.util.Map;
/**
* @author coalchan
* @since 1.0
*/
public class ObjectUtils {
public static boolean isEmpty(Object obj) {
if (obj == null) {
return true;
}
... | 24.90625 | 99 | 0.534504 |
9d54f3daf0b0717210e1e826403fed9f8b2467ef | 1,064 | package com.github.serializepojo;
import java.io.Closeable;
import java.io.IOException;
import java.io.OutputStream;
import java.util.Arrays;
import com.github.serializepojo.api.Formatter;
import com.github.serializepojo.api.Serializer;
/**
* Base class to facilitate different implementations.
*
* @see Reflectio... | 20.862745 | 98 | 0.726504 |
ab54f572d328c54c128cf8c3d48646984e2d098a | 974 | /*
* @(#)TabColorProvider.java 4/1/2011
*
* Copyright 2002 - 2011 JIDE Software Inc. All rights reserved.
*/
package com.jidesoft.swing;
import java.awt.*;
/**
* A Color Provider to provide background and foreground for both {@link JideTabbedPane} and {@link SidePaneItem}.
* <p/>
* It has higher ... | 29.515152 | 159 | 0.666324 |
6c27ef9acbc6d10b5abac4efa1ac5dae29cafa35 | 1,975 | package samples;
import com.slack.api.bolt.App;
import com.slack.api.bolt.AppConfig;
import com.slack.api.methods.response.views.ViewsOpenResponse;
import com.slack.api.model.view.View;
import util.ResourceLoader;
import util.TestSlackAppServer;
import java.net.URLDecoder;
public class ViewDefaultToCurrentConversati... | 38.72549 | 120 | 0.618734 |
9d1bc88e8a5a4a01078bd9a8aeab10add4b8e184 | 4,254 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 50.642857 | 118 | 0.780207 |
8eeac2c056f8bfa0d0ae0d89393d1bbf5ff6c8c6 | 1,744 | package net.fortytwo.ripple.model.types;
import net.fortytwo.ripple.RippleException;
import net.fortytwo.ripple.io.RipplePrintStream;
import net.fortytwo.ripple.model.ModelConnection;
import net.fortytwo.ripple.model.RippleType;
import net.fortytwo.ripple.model.StackMapping;
import net.fortytwo.ripple.model.StackMappi... | 30.596491 | 117 | 0.704702 |
2fe9a06470feb62522b0cef22b640f9676872a75 | 533 | package lista05;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;
public class ExportadorFormatoB implements Exportador {
public void exportar(File destino, List<Conta> contas) throws IOException {
PrintWriter out = new PrintWriter(destino);
for... | 24.227273 | 90 | 0.624765 |
52a53eb38da21c36d2f1706ccb051a80b18445ca | 6,383 | /*
* Copyright 2020 Horstexplorer @ https://www.netbeacon.de
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | 30.251185 | 90 | 0.506032 |
1265f40620651a37520c0924ff0c3f2857c4ac5f | 4,926 | package com.github.badoualy.telegram.tl.api;
import static com.github.badoualy.telegram.tl.StreamUtils.*;
import static com.github.badoualy.telegram.tl.TLObjectUtils.*;
import com.github.badoualy.telegram.tl.TLContext;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.la... | 26.202128 | 184 | 0.620382 |
453d8c1342774a1779bda6e7d361468220b39d46 | 1,834 | package com.lvonce.logicweaver.persistent;
import com.lvonce.logicweaver.interfaces.ILogicNode;
/**
* Created by WangWei on 2017/3/16.
*/
public class BehaviorDumper {
public static String dump(Object entity, ILogicNode unit) {
/*
IBehaviorUnit.TYPE type = unit.getType();
Logi... | 32.75 | 137 | 0.47928 |
048b4537f364e8a6c37e6c4d1e5f1b2869537790 | 959 | package com.dante.tedd.extraction;
public class DependencyGraphExtractionConfig {
private String dependencyGraphOptimized;
private String fixedSelectedTestSuite;
public void setParetoFrontSolution(String dependencyGraphOptimized) {
this.dependencyGraphOptimized = dependencyGraphOptimized
... | 33.068966 | 91 | 0.72367 |
764517b2da51edcda21de9abedc0cba113727431 | 509 | package com.zhaoq.spring3.demo2;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class BeanConfig {
@Bean(name="mycar")
public Car showCar(){
Car car = new Car();
car.setName("长安");
car.setPrice(40000d);
ret... | 20.36 | 61 | 0.689587 |
4efeb87cf9afca3832ae12d8b37ce8c632df7119 | 443 | package io.gomint.server.inventory.item;
import io.gomint.inventory.item.ItemType;
import io.gomint.server.registry.RegisterInfo;
import io.gomint.taglib.NBTTagCompound;
/**
* @author geNAZt
* @version 1.0
*/
@RegisterInfo(sId = "minecraft:lever", id = 69)
public class ItemLever extends ItemStack implements io.go... | 21.095238 | 88 | 0.733634 |
be1e958b56925aae4bc963997cf8449044bcabe4 | 1,046 | package enhancedbooks.client.core;
import cpw.mods.fml.client.registry.ClientRegistry;
import cpw.mods.fml.client.registry.RenderingRegistry;
import enhancedbooks.client.models.ModelFlyingBook;
import enhancedbooks.client.renderers.RenderFlyingBook;
import enhancedbooks.client.renderers.StorageShelfRenderer;
import en... | 36.068966 | 132 | 0.813576 |
f8c66440f0f22e234167facd1f15a760133ca993 | 2,489 | /*
* Copyright (c) 2020 John Mayfield
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following d... | 24.89 | 79 | 0.679791 |
7e19b7f799e8076cdb13726fefebc0c422e26e7a | 329 | package cn.orgid.message.domain.dao.message;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import cn.orgid.message.domain.model.message.ReportMessage;
public interface ReportMessageDAO extends JpaRepository<ReportMessage, Long>{
List<ReportMessage> findTop200ByOrderByIdA... | 20.5625 | 78 | 0.817629 |
f0dc3554dd781fecbaf5eab3775e79f4618ac4ad | 4,117 | package org.usergrid.rest.applications.collection.activities;
import org.codehaus.jackson.JsonNode;
import org.junit.Rule;
import org.junit.Test;
import org.usergrid.rest.AbstractRestIT;
import org.usergrid.rest.TestContextSetup;
import org.usergrid.rest.test.resource.CustomCollection;
import java.util.ArrayList;
imp... | 27.817568 | 105 | 0.653145 |
ce950b2176b5535742fe3f95935f8d6835bbd7df | 8,885 | package com.alauda.jenkins.plugins;
import com.alauda.jenkins.plugins.cluster.ClusterRegistryExtension;
import com.alauda.jenkins.plugins.cluster.DefaultClusterRegistry;
import hudson.Extension;
import hudson.ExtensionList;
import hudson.Util;
import hudson.model.AbstractDescribableImpl;
import hudson.model.Descriptor... | 37.331933 | 129 | 0.619471 |
e195fd73d75d6c2ab0732ad837866a85c669296b | 1,381 | package us.davidandersen.tyche.random;
import java.lang.reflect.Field;
import us.davidandersen.tyche.Randomize;
public class ObjectRandomizer
{
final Randomizer randomizer;
public ObjectRandomizer()
{
randomizer = new BasicRandomizer();
}
ObjectRandomizer(final Randomizer randomizer)
{
this.randomizer = r... | 23.40678 | 87 | 0.655322 |
4eea41723f7d9ccccf1c782793154245fb4c56bd | 1,004 | package org.odata4j.producer.server;
import javax.ws.rs.core.Application;
import org.odata4j.producer.resources.AbstractODataApplication;
import org.odata4j.producer.resources.DefaultODataApplication;
import org.odata4j.producer.resources.RootApplication;
/**
* Generic OData server
*/
public interface ODataServer ... | 21.361702 | 73 | 0.705179 |
1f39bea043916e24f5efff772fddf1bf0a8372dc | 1,621 | package br.com.zer0framework.filter;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.annotation.WebFilter... | 27.948276 | 135 | 0.727329 |
11b0a328478e8b11023e9647316f3669a7404b1b | 1,140 |
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.keyword.FlyingAbility;
import java.util.Arrays;
/**
*
* @author spjspj
*/
public final class ThopterToken extends TokenImpl {
public ThopterToken() {
super("Th... | 24.255319 | 87 | 0.657895 |
8018de4b4f8c00aa2206e2ac07268dcf240f3590 | 3,724 | package org.ljrobotics.lib.util.motion;
import static org.junit.Assert.*;
import org.junit.Test;
public class SetpointGeneratorTest {
public MotionState followProfile(SetpointGenerator spg, MotionProfileConstraints constraints,
MotionProfileGoal goal, MotionState start_state, double dt, int max_iter... | 40.923077 | 118 | 0.66783 |
6d4d03360f4d804edc51ece9b6bed42a68024071 | 6,064 | /*
* Copyright 2004-2014 ICEsoft Technologies Canada Corp.
*
* 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... | 45.939394 | 113 | 0.671669 |
3446b64ef07b74c34ba453eddcc9d15dca296c83 | 397 | package com.bonvio.staff.dao;
import com.bonvio.staff.models.Ticket;
import java.util.List;
/**
* Created by mil on 04.06.15.
*/
public interface TicketDAO {
public List<Ticket> getAllTickets();
public Ticket getTicketById(Integer id);
public Integer insertTicket(Ticket ticket);
public Integer del... | 22.055556 | 48 | 0.738035 |
dff6488df860825359a1b42026718362366b068f | 91 | package pr04.interfaces;
public interface Callable {
void calling(String address);
}
| 13 | 33 | 0.747253 |
79a27f49179c8bf4b9f017d6b7c6bd45ede95bfb | 2,917 | package com.swagger.yaml;
import com.swagger.yaml.utils.RefUtil;
import java.io.FileWriter;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
/**
* Created by dpujari on 11/11/16.
*/
public class MergeYaml {
Path sourceFilePath;
Path destFilePat... | 28.048077 | 123 | 0.58999 |
4c3c0d0ae1e5947dee900eba9a7e6b86d211d795 | 6,641 | // Copyright 2011, 2014 The Apache Software Foundation
//
// 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... | 38.166667 | 122 | 0.692667 |
30bd075ca65fb2f338e4d121d3a41e7845d4b8d4 | 4,833 | package com.teamb6.shop.controller.front;
import com.teamb6.shop.domain.*;
import com.teamb6.shop.service.GoodsService;
import com.teamb6.shop.service.ShopCartService;
import com.teamb6.shop.util.Msg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
impor... | 34.035211 | 104 | 0.643493 |
de44e0179305db914e3a279844ce5230f44a8bdb | 752 | package com.zsw.orm.utils;
import lombok.*;
/**
* @author ZhangShaowei on 2019/7/15 16:56
**/
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class TestDto {
private String a;
private String b;
private String c;
private String d;
private String e;
private String f;
private... | 17.904762 | 42 | 0.655585 |
1d06ad208e4c695293193c71853b52984bcb6a7f | 1,561 | // Developer:
// ======================================================
//
// Date Created: December 28,2013
//
// Program Description:
// This program implements the doubly iterator object.
// It iterates over a doubly linkedlist.
//
// ======================================================
package datastructur... | 24.015385 | 59 | 0.532992 |
c7cdfd5e1ac4362104724e33ff7512a3e50be7a1 | 1,581 | package eu.nullstack.kidlike.kyu6;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class VasyaClerkTest {
@Test
public void test1() {
assertEquals("YES", VasyaClerk.Tickets(new int[]{25, 25, 50}));
}
@Test
public void test2() {
assertEquals("NO", VasyaC... | 25.5 | 118 | 0.569892 |
f07a1cc6cffbb9c2d709870a5fba382e0039589d | 3,826 | /**
* Copyright 2009-2017 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 ap... | 42.511111 | 105 | 0.710925 |
34179d36c44acc352c88c02ac4983fe69191be17 | 1,838 | package com.github.florent37.myyoutube.model;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Created by florentchampigny on 17/06/15.
*/
public class Snippet implements Parcelable{
String title;
String description;
Thumbnails thumbnails;
String channelTitle;
public Snippet(){}
... | 22.414634 | 75 | 0.631121 |
525aa2ff1bfb6dfbf989317296d87f3ed8a9dc63 | 63,645 | /*
* 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.883929 | 100 | 0.585859 |
4f3b3f24c5d438939412bbfd194bf7ee970fb1a7 | 574 | package com.sourcegraph.lsp.domain.params;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public class CacheGetParams {
private String key;
public stati... | 21.259259 | 61 | 0.691638 |
eec4b1a5db39d18db85122005b35f97e68ed4eee | 471 | package io.connectedhealth_idaas.eventbuilder.dataobjects.clinical.fhir.r4.common;
public class Entry {
public String fullUrl;
public Resource resource;
public String getFullUrl() {
return fullUrl;
}
public void setFullUrl(String fullUrl) {
this.fullUrl = fullUrl;
}
publ... | 19.625 | 82 | 0.66242 |
feda3842d7b579f6327deabb14498d0faa4f6f2a | 487 | package com.kevinlorenzo.learning.junit.payments;
public class PaymentProcessor {
private PaymentGateway paymentGateway;
public PaymentProcessor(PaymentGateway paymentGateway) {
this.paymentGateway = paymentGateway;
}
public boolean makePayment(double amount) {
PaymentResponse paymen... | 28.647059 | 100 | 0.761807 |
7d6dc2f78004f617ada7c933090a0e3687b49740 | 5,316 | package com.thanple.little.boy.websocket;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.thanple.little.boy.web.entity.msg.RedisPubBean;
import com.thanple.little.boy.web.entity.msg.RedisPu... | 31.832335 | 117 | 0.657449 |
d1a609c5f35bcb1fd276b7cdbdf3300444633ce0 | 178 | package com.droidsonroids.workcation.common.model;
import com.google.gson.annotations.SerializedName;
public class Step {
@SerializedName("polyline") Polyline polyline;
}
| 19.777778 | 50 | 0.792135 |
b9334f9a1ad92f38180b7be92c1171936a2d8aaa | 5,909 | package com.catzhang.linkedlist.singlelinkedlist;
import java.util.Stack;
/**
* @author: crazycatzhang
* @date: 2020/7/27 8:11 下午
* @description: Simple implementation of a single linked list
*/
public class SingleLinkedListDemo {
public static void main(String[] args) {
SingleLinkedList singleLinkedL... | 27.483721 | 82 | 0.5055 |
bd7d75bc765564cb226cb4e94f1371b5a71033ea | 7,263 | package graph.hbase;
import com.carrotsearch.hppc.LongHashSet;
import com.carrotsearch.hppc.LongSet;
import org.janusgraph.diskstorage.BackendException;
import org.janusgraph.diskstorage.IDAuthority;
import org.janusgraph.diskstorage.IDBlock;
import org.janusgraph.diskstorage.common.DistributedStoreManager;
import org... | 40.127072 | 142 | 0.694066 |
449196ca18f1dc24efc1a629b3334e6d280318b4 | 6,133 | package org.kairosdb.plugin.prometheus;
import com.google.common.collect.ImmutableSortedMap;
import org.junit.Before;
import org.junit.Test;
import org.kairosdb.core.datapoints.DoubleDataPoint;
import org.kairosdb.eventbus.FilterEventBus;
import org.kairosdb.eventbus.Publisher;
import org.kairosdb.events.DataPointEven... | 33.331522 | 147 | 0.745801 |
1964317471d46067abd8697e110de6969c3af8c0 | 2,059 | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.12
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* -----------------------------... | 27.092105 | 97 | 0.646916 |
9871ba9984322b7658d1288aac4ada51fe944419 | 2,709 | package io.github.mewore.tsw.config;
import java.io.IOException;
import java.util.Collections;
import java.util.List;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Mock;
import org.mockito.junit.jupiter.MockitoExtension;
import org.springframework.core.io.Res... | 36.12 | 119 | 0.749723 |
9082cbccfaac328abe0e9c53efc77d402105eabf | 896 | package com.hills.mcs_02.dataBeans;
public class BeanListViewMineMinor6Notification {
private int icon;
private String Id;
private String time;
private String content;
public BeanListViewMineMinor6Notification(int icon, String Id, String time, String content) {
this.icon = icon;
... | 19.478261 | 98 | 0.563616 |
0323386cf1feaad6787e3792aac57b4d799ef855 | 3,486 | package de.lyca.xml.res;
import static org.junit.Assert.fail;
import java.io.IOException;
import java.lang.reflect.Method;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set... | 30.051724 | 85 | 0.657774 |
8b4d444736d6aaa5f93b514f011c80fb2dbc15ac | 2,771 | // The MIT License (MIT)
// Copyright © 2015 AppsLandia. All rights reserved.
// 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
... | 35.075949 | 135 | 0.702995 |
5be6cb18a511b6be3974afb6fca397683e767c1a | 2,040 | package at.ac.tuwien.big.xmlintelledit.intelledit.change.primitive;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
public class PrimitiveChanges {
private static Map<Class<?>, List<ValueGenerator<?>>> generato... | 35.789474 | 118 | 0.730392 |
1b17ebebbde0fdbbea7c97ef4a416877e1215c87 | 619 | package com.cloud.dips.tag.service;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.cloud.dips.common.core.util.Query;
import com.cloud.dips.tag.api.entity.GovTagDescription;
import com.cloud.dips.tag.api.vo.GovTagDescriptionVO;
/**
* @author ZB
*/
public i... | 22.107143 | 79 | 0.751212 |
84e99c816785a25ff1e65ea00a05b82b9e8e4e67 | 5,026 | package info.ephyra.trec;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
/**
* A parser for the TREC 8-12 QA tracks.
*
* @author Nico Schlaefer
* @version 2007-05-25
*/
public class TREC8To12Parser {
/** Type... | 28.39548 | 78 | 0.607839 |
58587138498843468951846b6ff97934a5baceee | 8,631 | package org.firstinspires.ftc.teamcode.subsystem.positioning;
import com.qualcomm.robotcore.hardware.HardwareMap;
import org.apache.commons.io.IOUtils;
import org.firstinspires.ftc.robotcore.external.ClassFactory;
import org.firstinspires.ftc.robotcore.external.hardware.camera.WebcamName;
import org.firstinspires.ftc... | 42.517241 | 138 | 0.773723 |
b04b7cae3840e157b833cd036226badfe88cc44a | 11,042 | package de.pxav.kelp.core.inventory.metadata;
import com.google.common.hash.HashCode;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.builder.HashCodeBuilder;
/**
* Represents a color that can be used for dyeing items such
* as leather armor or represent colors inside minecraft in general... | 31.104225 | 94 | 0.658305 |
fb97ac3a209768b3b5b8307a36c9c72e53ecb127 | 9,009 | /**
* Licensed to Jasig under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Jasig licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in co... | 43.73301 | 451 | 0.725164 |
38fa84d5845b7ebb4c8c9331bda3955e2b1be6bf | 3,380 | package com.joymain.jecs.pm.webapp.action;
import java.util.Locale;
import java.math.BigDecimal;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.bind.ServletRequestDataBinder;
import org.apache.commons.lang.StringUtils;
import com.joymain.je... | 35.578947 | 81 | 0.774556 |
6d42b3fa777d0152adec6c3db311d21ee6e8db78 | 4,159 | package com.alsan_grand_lyon.aslangrandlyon.service;
import android.content.Context;
import android.os.AsyncTask;
import com.alsan_grand_lyon.aslangrandlyon.R;
import com.alsan_grand_lyon.aslangrandlyon.dao.MessageDAO;
import com.alsan_grand_lyon.aslangrandlyon.model.DataSingleton;
import com.alsan_grand_lyon.aslangr... | 35.853448 | 129 | 0.606396 |
bfd271b89f5d0a15355c87bbdd1052d95b5b9f58 | 209 | package org.firstinspires.ftc.teamcode.Autonomous;
public class VuforiaTest extends AutoBase{
@Override
public void runOpMode() throws InterruptedException {
//encoderDrive(0.1 , 3);
}
}
| 20.9 | 57 | 0.712919 |
12c4582d546a807a4ffb09e53f749a77c2b1c052 | 252 | package com.afqa123.shareplay.common;
public abstract class StoppableThread extends Thread {
private volatile boolean stop = false;
protected boolean isStopped() {
return stop;
}
public synchronized void requestStop() {
stop = true;
}
}
| 16.8 | 54 | 0.738095 |
fc9470fdd6ab765912b8a3740c3cd40b28225c16 | 1,150 | package com.blackmorse.hattrick.api.matches.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
@JsonIgnoreProperties(ignoreUnknown = true)
public class LeagueLevelUnit {
@JacksonXmlProperty(localName = "LeagueLevelUnitID"... | 29.487179 | 74 | 0.748696 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.