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 |
|---|---|---|---|---|---|
0b045b552161ea5ce82b5116ce8af299e0867acc | 972 | package es.toni.services;
import es.toni.config.JpaIntegrationConfig;
import es.toni.domain.Product;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.Con... | 27.771429 | 74 | 0.781893 |
d41f2e8104c8bcffa78e88b111dc7a4265afb108 | 583 | package org.kie.kogito.saga.orchestrator;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import io.cloudevents.CloudEvent;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@Path("/broker")
public class Broker... | 23.32 | 62 | 0.728988 |
432da458f1fae9de888de316e43857cc010e5479 | 364 | package io.github.finikes.rmi.client;
import java.util.Map;
public class ClientAdapter implements Client {
public String doGet(String httpUrl, Map<String, Object> params) {
return null;
}
public String doPost(String httpUrl, Map<String, Object> params) {
return null;
}
public String doRpc(String url, Map<S... | 21.411765 | 67 | 0.736264 |
796b28c49ced24ee4e66b85f1540376843459020 | 1,863 | package org.devon.parallel.knnclassifier;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;
/**
* @author dewen.ye
* @date 2019/3/11 23:54
*/
public class KnnClassifierParallelGroup {
... | 33.267857 | 163 | 0.648953 |
616d7b07ffa0dfa39c1722c94ef961bb564f76ff | 68 | package StreamApprox;
public enum Source {
Zipf,
Uniform
}
| 9.714286 | 21 | 0.676471 |
1a69543db6ac67c344c52c21dd5c2fc18a335b04 | 4,414 | package org.liquidengine.legui.system.renderer.nvg.component;
import org.joml.Vector2f;
import org.joml.Vector4f;
import org.liquidengine.legui.component.Tooltip;
import org.liquidengine.legui.component.optional.TextState;
import org.liquidengine.legui.component.optional.align.HorizontalAlign;
import org.liquidengine.... | 40.495413 | 139 | 0.57227 |
3bd97c3945de01fe8bada115dab3b178ad5600cc | 20,460 | package com.tns.binding.tests;
import org.ow2.asmdex.AnnotationVisitor;
import org.ow2.asmdex.ApplicationWriter;
import org.ow2.asmdex.ClassVisitor;
import org.ow2.asmdex.FieldVisitor;
import org.ow2.asmdex.MethodVisitor;
import org.ow2.asmdex.structureCommon.Label;
public class DumpObject
{
public static void dump... | 61.074627 | 199 | 0.716178 |
4cd2c2452b6c892849ee32300b2a850e1844ea6a | 1,660 | package com.lvmoney.frame.authentication.oauth2.center.service.impl;
import com.lvmoney.frame.authentication.common.exception.AuthorityException;
import com.lvmoney.frame.authentication.oauth2.center.exception.CustomOauthException;
import com.lvmoney.frame.authentication.oauth2.center.service.Oauth2RedisService;
impor... | 40.487805 | 116 | 0.810843 |
8e8ba774ee74e25fee6fb6adceb2ea181a1389d9 | 3,256 | package com.example.hyczlf.ringview;
import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;
import com.example.hyczlf.ringview.view.CircleMenuLayout;
import com.example.hyczlf.ringview.view.Constants;
import com.example.hyczlf.ringv... | 34.638298 | 131 | 0.628378 |
6b941037cea9aa6230c2eef916caac3932201c02 | 4,657 | /*
* Copyright 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 applica... | 43.523364 | 146 | 0.716556 |
4565351756ae2b1d5649a997ab99adabf9a7b347 | 461 | package softuni.winelovers.service.factories.base;
import softuni.winelovers.config.annotations.Factory;
import softuni.winelovers.data.models.news.News;
import softuni.winelovers.service.factories.NewsFactory;
import java.util.Date;
@Factory
public class NewsFactoryImpl implements NewsFactory {
@Override
p... | 24.263158 | 56 | 0.752711 |
e7db6c76302d71a427116f40fba8b0da9abb6091 | 2,388 | package org.semanticweb.yars.jaxrs.header;
import java.io.IOException;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import javax.ws.rs.HttpMethod;
import javax.ws.rs.container.ContainerRequestContext;
import javax.ws.rs.container.ContainerResponseContext;
import javax.ws.rs.container.Conta... | 39.8 | 124 | 0.80067 |
dc3399b9dc5a735db015e6caa4b8b0326a014f4e | 329 | package com.danger.app.devconf;
import lombok.Data;
import java.util.Date;
@Data
public class DevConfigModel {
private Long id;
private String name;
private String val;
private String summary;
private Integer status;
private Integer deleted;
private Date gmtCreate;
private Date gmtMod... | 18.277778 | 31 | 0.723404 |
1ae1666e78a4af4c7642d4df1d4bc17bc4988423 | 382 | package de.mhaeusser.designpatterns.flyweight;
/** from https://en.wikipedia.org/wiki/Flyweight_pattern */
@FunctionalInterface
interface Order {
void serve();
static Order of(String flavourName, int tableNumber) {
var flavour = CoffeeFlavour.intern(flavourName);
return () -> System.out.printl... | 29.384615 | 91 | 0.693717 |
9b85d3aa45795fafdc855dea246ba6b688c49e22 | 3,316 | package vswe.stevescarts.modules.realtimers;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.item.ItemStack;
import net.minecraft.util.NonNullList;
import net.minecraft.util.math.BlockPos;
import net.minecraftforg... | 27.180328 | 202 | 0.690591 |
72d187132402d1b128e45ba0406644dc3b46267d | 1,826 | package uni.bielefeld.cmg.reflexiv.pipeline;
import uni.bielefeld.cmg.reflexiv.util.DefaultParam;
import java.io.BufferedReader;
import java.io.BufferedWriter;
/**
* Created by rhinempi on 22.07.2017.
*
* Reflexiv
*
* Copyright (c) 2017.
* Liren Huang <huanglr at cebitec.uni-bielefeld.de>
*
... | 28.092308 | 83 | 0.697152 |
66e0c6130ce3f4ecdbe7f4d154e29f5fa25e6ad8 | 1,294 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 28.755556 | 63 | 0.721793 |
398737fb5cae6ba9d8b3009ed7b15faea7b677c9 | 1,313 | package co.pimote.web.deserializer;
import static com.fasterxml.jackson.core.JsonToken.END_OBJECT;
import static com.fasterxml.jackson.core.JsonToken.START_OBJECT;
import co.pimote.model.Socket;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterx... | 35.486486 | 126 | 0.663366 |
88a60db4701795b92fe8fdb0ba70a7e0f4dcdf09 | 1,172 | package com.github.extermania.leetcode;
import java.util.HashMap;
import java.util.Map;
public class $0013_Roman_to_Integer_58_51 {
static class Solution {
static String[] a1000 = new String[] { "", "M", "MM", "MMM" };
static String[] a100 = new String[] { "", "C", "CC", "CCC", "CD", "D", "DC", "DCC", ... | 30.051282 | 102 | 0.540956 |
4e0635cbbbd20601c6ac6a9aa1d616cd28e58fa0 | 170 | package vad;
public class ScoredMove {
public Move move;
public int score;
public ScoredMove(Move move, int score) {
this.move = move;
this.score = score;
}
}
| 14.166667 | 42 | 0.688235 |
3a3ab41b42bc739d9a4e836d0b8ca3307115ab87 | 4,506 | package co.nyzo.verifier.relay;
import co.nyzo.verifier.util.LogUtil;
import co.nyzo.verifier.util.PrintUtil;
import co.nyzo.verifier.web.*;
import java.io.File;
import java.net.URL;
import java.net.URLConnection;
import java.nio.ByteBuffer;
import java.nio.channels.Channels;
import java.nio.channels.ReadableByteChan... | 42.11215 | 113 | 0.622059 |
54a06fd500f80448fbd3b581f3f4b4c179ea97d6 | 3,623 | package svenhjol.charm.smithing.module;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.enchantment.EnchantmentData;
import net.minecraft.enchantment.EnchantmentHelper;
import net.minecraft.item.EnchantedBookItem;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minec... | 38.136842 | 133 | 0.677063 |
04bbb66eb915949061f553e1f300a3a10af9d566 | 944 | package recursionAndBacktracking2;
import java.util.Scanner;
public class Permutaion_2 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.nextLine());
int r = Integer.parseInt(sc.nextLine());
sc.close();
... | 23.6 | 93 | 0.46928 |
8b9d97c991fbdcb782accd4c41df296821400268 | 5,782 | package io.consentric.connector.service.model;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class CitizenDetails {
@Id
private String citizenId;
private String externalRef;
private String organisationName;
private String email;
private String telephone;
priv... | 24.294118 | 79 | 0.675545 |
c7a135042e758a01d6ab35a862047c368b7fff01 | 5,154 | package com.example.mobileordersystem;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;
import android... | 37.897059 | 141 | 0.585565 |
a2e244d84d51a5da363ba2e246ce1246f13f73fa | 1,433 | /*
* 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 database.console.demo;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.S... | 28.66 | 82 | 0.607118 |
bccaa38bf5d95c7b685749e92f8d2e8c95bcefd0 | 2,257 | /*
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Server
* Copyright (C) 2011, 2012, 2013, 2014, 2016 Synacor, Inc.
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software Foundation,
* versi... | 32.710145 | 93 | 0.696943 |
c3a0040e432df744eb1c5c4b887d750d08b937d7 | 5,289 | package com.jude.beam.expansion.list;
import android.view.View;
import com.jude.beam.R;
public class ListConfig implements Cloneable{
static ListConfig Default = new ListConfig();
public static void setDefaultListConfig(ListConfig config){
Default = config;
}
boolean mRefreshAble = false;
... | 31.295858 | 93 | 0.706372 |
b5ff70849e425678ea4b52ffae472b64656f424b | 1,017 | package unrealunity.visit.model.person;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
import unrealunity.visit.testutil.TypicalVisits;
public class VisitListTest {
@Test
public void equals() {
... | 29.911765 | 87 | 0.705998 |
c1f1ea4d986f104dfdf882aeb3774ecbde28137c | 576 | /*
* 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.codemage.sql.util;
import java.math.BigInteger;
import java.security.SecureRandom;
import org.springframework.stereotype.C... | 23.04 | 79 | 0.734375 |
eccc6a7a9b809041e33f20291aefa219e11df651 | 212 | package io.github.sergiusac.tasq;
import io.quarkus.test.junit.NativeImageTest;
@NativeImageTest
public class NativeTaskResourceIT extends TaskResourceTest {
// Execute the same tests but in native mode.
} | 23.555556 | 60 | 0.801887 |
042a3e1e73af8d7160fdc0447c05271ea0045d0b | 1,141 | package in.spcct.spacedoc.md.renderer.externalcode.memorymap;
import lombok.Data;
/**
* Represents a memory map entry, containing a starting and ending address of a range,
* the number of lines this entry should take in the final image,
* whether it should be rendered as a continuous block or not, and a label.
*/... | 28.525 | 104 | 0.680982 |
345190d2f046145b82a58b1b5d8f356fcee82b8b | 5,953 | /*-
* Copyright (C) 2011, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This file was distributed by Oracle as part of a version of Oracle NoSQL
* Database made available at:
*
* http://www.oracle.com/technetwork/database/database-technologies/nosqldb/downloads/index.html
*
* Please see the LICENS... | 19.777409 | 96 | 0.552663 |
fc67b5765f4afcf7b79cfa9cef0364e106970883 | 2,901 | package com.rdshoep.android.ui.adapter;
/*
* @description
* Please write the DemosAdapter module's description
* @author Zhang (rdshoep@126.com)
* http://www.rdshoep.com/
* @version
* 1.0.0(5/5/2016)
*/
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view... | 28.722772 | 91 | 0.652878 |
ce5d27a701f2a6f639b974590326ee0a2ec6e0f0 | 638 | package com.coshx.springbok;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;
import org.robolectric.annotation.Config;
@Config(emulateSdk = 18, reportSdk = 18)
@RunWith(RobolectricTestRunner.class)
public class UserTest {
@Test
pu... | 22.785714 | 53 | 0.644201 |
efc263d83ca4f4d1749e7f7f3f65b6076ba9aed4 | 2,661 | package riskOfSpire.relics.Common;
import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.actions.common.RelicAboveCreatureAction;
import com.megacrit.cardcrawl.cards.DamageInfo;
import com.megacrit.cardcrawl.core.CardCrawlGame;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
i... | 39.132353 | 168 | 0.691094 |
3ddf063babaaddc66bb33868573bc73250b3c20f | 254 | package com.ouc.dcrms.core.service;
import com.ouc.dcrms.core.model.Instrument;
/**
* @author WuPing
* @version 2017年2月10日 下午7:59:27
*/
public interface InstrumentServiceCore {
public Instrument selectByPrimaryKey(Integer insid);
}
| 15.875 | 56 | 0.720472 |
afef36e01cd897b2612fe7404ef26dd6321aeac5 | 1,279 | /*
* 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 ec.edu.ups.controlador;
import ec.edu.ups.modelo.*;
import ec.edu.ups.vista.VistaElectrodomestico;
import ec.edu.ups.IElectrodo... | 26.645833 | 117 | 0.689601 |
1502bf05089136bf07c86bcf4101026d3abcc5a0 | 277 | package com.lhrsite.xshop.repository;
import com.lhrsite.xshop.po.StorageOutMaster;
/**
* 出库单主表(StStorageOutMaster)表数据库访问层
*
* @author lhr
* @since 2018-09-03 21:56:33
*/
public interface StorageOutMasterRepository extends BaseRepository<StorageOutMaster, Integer> {
} | 19.785714 | 95 | 0.772563 |
14ee34f172f1e6e27d4374b594745e58e752a1bd | 3,964 | /*
* Copyright 2011 Goldman Sachs.
*
* 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 ... | 35.711712 | 131 | 0.729818 |
d5c81abac20a3df95dce39acfd810f9da8565b85 | 1,410 | package com.urcodebin.backend.service;
import com.urcodebin.backend.entity.CodePaste;
import com.urcodebin.backend.interfaces.ExpirationService;
import com.urcodebin.backend.repository.CodePasteRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Auto... | 37.105263 | 107 | 0.785106 |
3e3e7478e40fcb5fbf68701751711de1ee4c1abf | 1,290 | package com.arjuna.jca;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import com.arjuna.ats.arjuna.ObjectType;
import com.arjuna.ats.arjuna.common.Uid;
import com.arjuna.ats.arjuna.state.InputObjectState;
import com.arjuna.ats.arjuna.state.OutputObjectS... | 28.043478 | 98 | 0.790698 |
9b345c917e43dc864ad2e86f1517c75169a9ddc3 | 17,292 | package com.simpleerp.Control;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import com.simpleerp.database.BD;
import com.simpleerp.entidades.Insumo;
import com.simpleerp.entidades.Producao;
import com.simpleerp.entidades.Produto;
import com.simpleerp.entidades.Usuario;
impor... | 30.020833 | 100 | 0.471837 |
0199af2d39c845907799f826fff15e2d18ef3499 | 1,495 | /**
* Copyright 2016 SPeCS.
*
* 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 writi... | 23 | 118 | 0.696321 |
f9af41887739760cd0c7b4ffbfde8d043692c86a | 1,539 | package org.example.bbbbb;
import java.util.function.Function;
import java.util.function.Supplier;
public class Main {
public static void main(String[] args) {
System.out.println(Optional.some("Hello").map(String::length));
System.out.println(Optional.<String>none().map(String::length));
}
... | 29.596154 | 77 | 0.51397 |
d43a70531c7c94b2d86b4dbf1530229bddeecefe | 2,649 | package no.nav.syfo.util.time;
import java.time.LocalDate;
public class NorskeHelligDagerUtil {
public NorskeHelligDagerUtil() {
}
public static boolean erNorskHelligDag(LocalDate dato) {
int mnd = dato.getMonth().getValue();
int dag = dato.getDayOfMonth();
LocalDate paaskedag = h... | 30.802326 | 83 | 0.523594 |
c8286aa17dc61cc641db50ec08c92f703bb5a4a7 | 3,780 | import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Queue;
import java.util.Stack;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import org.apache.commons.beanutils.ConvertUtils;
i... | 23.625 | 140 | 0.497884 |
46a9b08e43438a927fe25bc38632ec27b07caf72 | 1,359 | package com.robidium.demo.compiler.builder.variables;
import com.robidium.demo.compiler.builder.ScriptBuilder;
import org.w3c.dom.Element;
public class FDMap implements Variable {
public static final String NAME = "FD";
private static final FDMap INSTANCE = new FDMap();
private Element dictionary;
pr... | 32.357143 | 97 | 0.662252 |
bb94d6471466989bb0404188790f87e7f1f73cf5 | 4,703 | package be.tusca.swing.filter.inline.filters;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import javax.swing.AbstractAction;
... | 29.39375 | 95 | 0.729534 |
c12cbed4fecfff483d8c036e0c41c11c9e906e96 | 5,230 | package edu.cs4730.fbdatabaseauthdemo;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget... | 34.183007 | 103 | 0.617208 |
9d715d5b5b7ee012eb9dcb46a4b325b3c8c027a9 | 2,003 | /*
* Copyright 2015 Muhammed Olgun <141129113@ogrenci.firat.edu.tr>.
*
* 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... | 38.519231 | 86 | 0.672491 |
4c0145b12de7bd63e49a15cbcb02772b37d01a4b | 1,888 | package jointfaas.serverless;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.net.URL;
import java.net.URLClassLoade... | 28.606061 | 89 | 0.655191 |
69ef3cb0dd98dc92de5285d9cdb56a681545de6c | 807 | /*
* Copyright 2007 The JA-SIG Collaborative. All rights reserved. See license
* distributed with this file and available online at
* http://www.ja-sig.org/products/cas/overview/license/
*/
package org.jasig.cas.mock;
import org.jasig.cas.validation.Assertion;
import org.jasig.cas.validation.ValidationSpecificatio... | 26.032258 | 77 | 0.737299 |
63a4d55055f5c114564540730a19f8a57d1df79a | 1,022 | package edu.njnu.reproducibility.domain.project.dto;
import edu.njnu.reproducibility.common.dto.ToDomainConverter;
import edu.njnu.reproducibility.domain.project.Creator;
import edu.njnu.reproducibility.domain.project.Project;
import edu.njnu.reproducibility.domain.project.support.Record;
import lombok.Data;
import j... | 23.767442 | 66 | 0.720157 |
1f55067ca0e8aa2bf0ea26409d2ceeb8fab14b67 | 2,494 | package chalmers.pimp.service;
import chalmers.pimp.model.IRenderer;
import chalmers.pimp.model.canvas.layer.ILayer;
import chalmers.pimp.model.canvas.layer.IReadOnlyLayer;
import chalmers.pimp.model.viewport.ViewportFactory;
import chalmers.pimp.view.renderer.RendererFactory;
import java.util.Objects;
import javafx.s... | 34.638889 | 95 | 0.711708 |
261ff5d99380ae5ec345a48ac7561cdfbf276d1e | 2,381 | package com.mssdevlab.baselib.upgrade;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import androidx.annotation.LayoutRes;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.databinding.DataBindingUtil;
import androidx.databinding.ViewDataBinding;
import andr... | 29.395062 | 106 | 0.717766 |
ee727d68380f99ea4944d86df916b5702b81eade | 3,321 | package b.l.e;
import b.l.a.c.b.a;
import b.l.e.e0.o;
import b.l.e.e0.z.m;
import b.l.e.e0.z.p;
import b.l.e.e0.z.q;
import java.lang.reflect.Type;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.ut... | 34.59375 | 188 | 0.575429 |
30396092504450ab98552ab0a054ff03afe0a15c | 1,680 | package a3.editor.controller.controls;
import java.io.IOException;
import a3.MyGame;
import a3.editor.MyGameEditor;
import a3.editor.avatar.PlaceableAvatars;
import net.java.games.input.Event;
import ray.input.action.Action;
import ray.rage.rendersystem.Renderable.Primitive;
import ray.rage.scene.Entity;
import ray.r... | 27.096774 | 88 | 0.750595 |
51a092068a5bfab5fc9772e880deabead8107840 | 1,197 | /*
* Copyright 2020 Esri, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 29.925 | 81 | 0.739348 |
0a0a3ff1f6ed3172f77f591695b86ffb259e0fc8 | 352 | package uk.ac.uea.cmp.srnaworkbench.tools.qualitycheck;
/**
* Thrown if a query (usually one passed in to a method) returned an unexpected type
* or property.
* @author Matthew
*/
public class UnexpectedQueryReturnTypeException extends RuntimeException {
public UnexpectedQueryReturnTypeException(String msg)
... | 25.142857 | 84 | 0.738636 |
24c555d4c4ec25687235d76f6af1acfac7aa6c81 | 2,769 | /*
* *****************************************************************************
* Cloud Foundry
* Copyright (c) [2009-2015] Pivotal Software, Inc. All Rights Reserved.
* This product is licensed to you under the Apache License, Version 2.0 (the "License").
* You may not use this product exce... | 30.428571 | 94 | 0.66775 |
296eb9be80ef98efe8a81cc1fe82ade9a4649b7c | 4,078 | package br.com.pi.util;
import br.com.pi.interfaces.ConnectionObservable;
import br.com.pi.interfaces.ConnectionObserver;
import java.io.FileInputStream;
import java.io.IOException;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;
import java.sql.DriverManager;
import java.sql.SQLExcep... | 31.859375 | 118 | 0.568416 |
ef75ef088d8347774f6349979cd67849527979a6 | 6,672 | /*
* 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 ... | 45.081081 | 149 | 0.722272 |
9af2bce3c28043fab84158589682746f88d3f418 | 1,147 |
package averagetemperature;
/*
* 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.
*/
/**
*
* @author slave
*/
import java.io.IOException;
import org.apache.commons.lang.StringUtils;
impor... | 30.184211 | 128 | 0.76286 |
60345f685690c1e7cd70774c2220e69ea28f6ae9 | 2,830 | package com.androidyuan.libcache.data;
import android.graphics.Bitmap;
import com.androidyuan.libcache.core.BaseTicket;
import com.androidyuan.libcache.core.TicketStatus;
import java.nio.ByteBuffer;
/**
* After you put this bitmap ,you can't use it due to it is recycled.
* Device version Higher than 8.0 that don'... | 25.963303 | 129 | 0.615194 |
0fc0ea82ca170eadf518af88b16d5b2cd89aea6a | 6,886 | package me.uberpilot.jetengine.language;
import me.uberpilot.jetengine.JPlugin;
import org.bukkit.ChatColor;
import org.junit.Assert;
import org.junit.Before;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
import org.mockito.Mockito;
import java.util.MissingFormatArgum... | 41.987805 | 380 | 0.685884 |
0637e7b28dd3b713be0d012fa260deb7787a70bb | 9,750 | //
///////////////////////////////////////////////////////////////////////////////////////////
//
// File: PrmMergeDb.java
// Author: ECC
// Date: 05/19/2009
// Description:
// Taking a source OMM DB and copy of the missing organization and attributes to the target.
// Note that it only copy the definiti... | 29.545455 | 112 | 0.594872 |
41e0d1a95902e6318b5ca9b7e5e4310b8c498d23 | 4,222 | public class PrintTree {
/**
* printTree method iterates through the given string by character
* and processes the output format based on what char it receives
*
* @param input
* @return
*/
protected String printTree(String input) throws Exception {
// Build output string ... | 32.476923 | 72 | 0.408811 |
cbd940c13e6d01d87d8e8d9ca37019add7efc9dd | 8,602 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.alienideology.aibot.audio;
import com.sedmelluq.discord.lavaplayer.player.AudioPlayer;
import org.alienideology.aibot.mai... | 37.238095 | 159 | 0.582771 |
4d07ed029b00345910ca6a33531a307c91bea36f | 804 | package leetcodejava.array;
import org.junit.Assert;
import org.junit.Test;
/**
* 按摩师接客问题
*
* @author: zhangyu
*/
public class TheMasseuseLCCI16 {
@Test
public void theMasseuseLCCTest() {
int[] arr = {1, 2, 3, 1};
int result = massage(arr);
System.out.println(result);
Asse... | 20.615385 | 61 | 0.493781 |
cfeee3cecce08755b1872ef92787e6ee7754fc43 | 4,130 | package org.iutools.loganalysis;
import ca.nrc.json.PrettyPrinter;
import org.apache.log4j.Logger;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.nio.file.Path;
import java.util.*;
import java.util.regex.Pattern;
/**
* This cla... | 26.818182 | 99 | 0.709443 |
ab18d149f134cb04ccdae0d4798e72dd42918efd | 3,192 | /*
* 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")... | 37.116279 | 99 | 0.72995 |
90f9817d2df1861acdb9885552835430564375cb | 498 | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. */
package p.runtime.exceptions;
import java.util.Optional;
import p.runtime.*;
public class GotoStmtException extends Exception {
private IState state;
private Optional<Object> payload;
public GotoStmtException(IState state, Optional<Objec... | 23.714286 | 72 | 0.732932 |
7a2ddbc9df1c03422cc219a0086343655225ede8 | 8,461 | package com.cloudwarriors.containercrush.cloudwarriors.db.repositories;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Query;
import org.hibernate.query.NativeQuery;
import org.springframework.beans.factory.annotation.Autowired;
... | 34.534694 | 705 | 0.609857 |
ada8d003633f000cf52f5bb9318873dde4baab2d | 1,180 | package com.omtlab.algorithmrecipe.recursion.map;
import java.util.HashMap;
import java.util.Map;
/**
* 377. Combination Sum IV
*
* Given an integer array with all positive numbers and no duplicates, find the number of possible combinations that
* add up to a positive integer target.
*
* Example:
*
* nums = ... | 20.701754 | 117 | 0.54661 |
48aaeb9e2efad495a88916846e07ea2660f02261 | 401 | package handy.marketsim.investors.holders;
import handy.marketsim.Position;
public class OilPortfolioInvestor extends HoldPortfolioInvestor {
public OilPortfolioInvestor(double cash){
super(cash);
positions.add(new Position("XOM", 25.0f));
positions.add(new Position("CVX", 25.0f));
positions.add(new... | 26.733333 | 66 | 0.718204 |
9eb91e57e204e7db1b984aa148691ce87a5454e1 | 990 | /*
* This Java source file was generated by the Gradle 'init' task.
*/
package code.challenges;
import org.junit.Test;
import static org.junit.Assert.*;
public class ArrayShiftTest {
@Test
public void testInsertShiftArray() {
ArrayShift classUnderTest = new ArrayShift();
int[] inputArr = ne... | 29.117647 | 66 | 0.615152 |
324a7142e6708c83d2a89f735fbf68f893c60fce | 3,111 | package server.wenjapvp.hcf.timer.type;
import com.doctordark.util.DurationFormatter;
import com.google.common.base.Predicate;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.L... | 40.402597 | 200 | 0.673095 |
a72d3f668fff5814a9308c367727b76d4a4fbe1b | 1,520 | package io.sniffy.influxdb.lineprotocol;
import org.junit.Test;
import static org.junit.Assert.*;
public class FieldStringValueTest {
@Test
public void testAsBoolean() {
assertTrue(new FieldStringValue("true").asBoolean());
assertFalse(new FieldStringValue("false").asBoolean());
asse... | 34.545455 | 70 | 0.640132 |
31b1c3dd39db48c8f4ec5fb3374cf04bc2a1571e | 11,279 | /*************************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.88716 | 122 | 0.70946 |
1ba95c02610e3dc0eeb9a9516a80d1b267ae598e | 3,795 | package org.apache.commons.cli;
public final class OptionBuilder {
private static String argName;
private static String description;
private static OptionBuilder instance = new OptionBuilder();
private static String longopt;
private static int numberOfArgs = -1;
private static boolean optionalA... | 26.172414 | 77 | 0.591568 |
3b311b97013a7d9c3910af7fd171e543036727fd | 3,762 | package com.airwallex.airskiff.flink;
import com.airwallex.airskiff.common.Pair;
import com.airwallex.airskiff.flink.types.PairTypeInfo;
import org.apache.flink.api.common.typeinfo.TypeInformation;
import org.apache.flink.api.java.typeutils.MapTypeInfo;
import org.apache.flink.streaming.connectors.kafka.FlinkKafkaCons... | 40.021277 | 105 | 0.707337 |
937eb21e600ee6f1a1ab21973fc3ce425fba7e8d | 2,539 | /**
* Copyright 2011-2017 Asakusa Framework Team.
*
* 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... | 34.780822 | 117 | 0.695156 |
86a57ee9df8ae9171537d05d6bf85ef43589f579 | 4,818 | /*
* Copyright (C) 2013-2015 RoboVM AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 44.611111 | 151 | 0.732254 |
c4f50abfb5c80cd552beeaa22cdd7a854b27291d | 5,949 | package controllers;
import com.typesafe.config.Config;
import helpers.Encryption;
import helpers.JsonHelper;
import interfaces.OffenderApi;
import interfaces.OffenderSearch;
import lombok.val;
import play.Logger;
import play.libs.concurrent.HttpExecutionContext;
import play.mvc.Controller;
import play.mvc.Result;
imp... | 41.894366 | 195 | 0.674735 |
f67f28f6c0e094450e213e44d214520aa42d5966 | 5,175 | /*
* Copyright 2017 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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.apa... | 40.116279 | 149 | 0.70087 |
04cd23b2c166fca31238db062dae5a62cd401302 | 521 | /*
* 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 Factory;
/**
*
* @author USER
*
*/
public class Main {
public static void main(String[] args) {
... | 21.708333 | 80 | 0.579655 |
f0dc864af59894b259f5205a49508d69487ef03c | 2,314 |
package ru.mos.emias.notifications.v1.subscription;
import javax.xml.bind.annotation.XmlRegistry;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the ru.mos.emias.notifications.v1.subscription package.
* <p>An ObjectFactory allows you to ... | 28.567901 | 156 | 0.705704 |
331a34584b01ac8477df21daa9e746403e956788 | 1,023 | package com.stormmq.java.parsing.ast.intermediates.annotationInstanceIntermediates;
import com.stormmq.java.parsing.ast.details.annotationInstanceDetails.AnnotationInstanceDetail;
import com.stormmq.java.parsing.ast.details.methodDetails.MethodDetail;
import com.stormmq.java.parsing.ast.intermediateRecorders.MemberInt... | 56.833333 | 216 | 0.868035 |
42fd57bda948476da817152e79a49a840a594ddb | 2,013 | /*
* Copyright 2000-2009 JetBrains s.r.o.
*
* 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... | 30.969231 | 94 | 0.772976 |
f5323781476c39e0191be8ec16c8d91c1dc5e482 | 208 | package datasources.elasticsearch;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
@Data
public class SearchRange {
@JsonProperty("@timestamp")
SearchTimestamp timestamp;
} | 20.8 | 53 | 0.793269 |
8d8ce12aa8f208b0dfa15e11028e3baa9fbe536d | 2,816 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... | 20.705882 | 77 | 0.700284 |
6168ff1af85b7d6a169c0982f3f09109d22a2938 | 1,419 | package com.xpf.recyclerview.entity;
/**
* Created by xpf on 2018/12/25 :)
* Function:StatusEntity
* {# @link https://github.com/xinpengfei520/RecyclerView_demo}
*/
public class StatusEntity {
private boolean isResend;
private String text;
private String userName;
private String userAvatar;
pr... | 21.179104 | 110 | 0.631431 |
d39833f429b6c64308ae662925b88030cb4bd680 | 5,935 | /*
* 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")... | 29.527363 | 77 | 0.664532 |
97e0f405a2f40918bbcc7e72c1dd9704f9340bad | 3,382 | package io.miti.shortstop.model;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.StringTokenizer;
public final class UrlTemplate {
/** The URL template. */
private String template = null;
/** The parsed version. */
private List<TemplateField> fields = null;... | 22.851351 | 83 | 0.599054 |
c4d5b943480c90d53b25519382ac3ea15ce9196d | 3,827 | package org.cemrc.correlator.wizard;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.cemrc.correlator.Correlator;
import org.cemrc.data.CorrelatorDocument;
import org.cemrc.data.CorrelatorState;
import javafx.beans.binding.When;
import javafx.beans.property.IntegerProperty;
imp... | 26.034014 | 115 | 0.73086 |
c41be4eb0fff4a76fe9143974b619b1d53bd6e9a | 3,951 | package com.udacity.gradle.builditbigger;
import android.content.Context;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.Fragment;
import android.text.TextUtils;
import android.view.LayoutInflater;
import an... | 34.356522 | 89 | 0.722855 |
c3096f42b5b68c9971034ec7305b19d67473002c | 356 | package ch.supsi.dti.i2b.shrug.optitravel.api.GTFS_rs.models;
import com.jsoniter.annotation.JsonObject;
import java.util.List;
@JsonObject
public class StopTimes {
private String stop;
private List<TripTimeStop> time;
public StopTimes(){
}
public List<TripTimeStop> getTime() {
return time;
}
public Str... | 14.833333 | 61 | 0.738764 |
a1c8c7b728cba4649974cffc31dbb1ddd177016b | 10,764 | package id.co.veritrans.sdk.activities;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.text.TextUtils;
im... | 33.6375 | 98 | 0.643534 |
d14d768dfbad86878a0434d6abcd387ef0a3251f | 886 |
package facerecognition.gui;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.File;
import javax.imageio.ImageIO;
import javax.swing.JPanel;
public class ImageDisplayPanel extends JPanel {
private static final long serialVersionUID = 1L;
private Buff... | 21.609756 | 75 | 0.61851 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.