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 |
|---|---|---|---|---|---|
882e0026d71b90dab2795adb58e2d18efee2de1b | 9,350 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.eas.client.model.gui.view.model;
import com.eas.client.metadata.Field;
import com.eas.client.metadata.TableRef;
import com.eas.client.model.Entity;
import com.eas.client.model.Relation;
import com.eas.client... | 37.550201 | 136 | 0.647914 |
812c4c65ab30b85dbb6250a0714dd7420e57bda7 | 88 | package interfaces.logical;
public interface UpdatingObject {
public void update();
}
| 14.666667 | 33 | 0.784091 |
fec77623d0d4d11596f3fd96e62ee4c64336fb3b | 251 | package com.autenticar.tuid.model;
import com.google.gson.annotations.SerializedName;
public class LoginResponse extends ResponseBase {
@SerializedName("name")
public String Name;
@SerializedName("IdUser")
public Integer userID;
}
| 19.307692 | 50 | 0.752988 |
f6de5e20692c2408e1de75295a536466e7e20645 | 4,306 | package dev.vality.dark.api.util;
import dev.vality.dark.api.exceptions.DeadlineException;
import java.time.Instant;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@SuppressWarnings("ParameterName")
public class DeadlineUt... | 39.145455 | 119 | 0.624942 |
2b9be4b45fc9dced658d0bb68ded0aa407036026 | 3,327 | package seedu.room.logic;
import java.util.ArrayList;
import seedu.room.model.Model;
import seedu.room.model.person.ReadOnlyPerson;
//@@author shitian007
/**
* AutoComplete class integrated into {@code Logic} to keep track of current set
* of autocomplete suggestions according to user input
*/
public class AutoCo... | 32.617647 | 119 | 0.611061 |
bd3dddb62d0cba6e5931fa7eb44c2b8c7a23a2f5 | 990 | package com.bstek.urule.parse.deserializer;
import com.bstek.urule.model.scorecard.ComplexScorecardDefinition;
import com.bstek.urule.parse.scorecard.ComplexScorecardParser;
import org.dom4j.Element;
/**
* @author fred
* 2018-12-12 2:05 PM
*/
public class ComplexScorecardDeserializer implements Deserializer<Comple... | 31.935484 | 95 | 0.774747 |
9f2f499a612fb119c1cb560527e1c6f7736bb0b8 | 11,033 | package analysis;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class Planner {
// Application topology
private final List<Node> nodes;
private final Map<String,List<String>> binding;
// List of all possible global states
private fin... | 43.437008 | 120 | 0.508475 |
e0c78412a8a3ffa994667da18a704b0c4d0e4961 | 686 | package tugas2.pl.singleton;
public class ConverterOktalToDesimal {
private static ConverterOktalToDesimal instance = new ConverterOktalToDesimal();
private ConverterOktalToDesimal(){}
public static ConverterOktalToDesimal getInstance(){
return instance;
}
public v... | 29.826087 | 104 | 0.593294 |
e670d0552a2d5fa9dcb6527b0a20f68ba12777c8 | 4,396 | /*
* Copyright (C) 2019 Becoming Machinic 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 ag... | 23.382979 | 150 | 0.69222 |
2a54d54dad98e1a8ff8926bc84a33e70859d6eb2 | 1,674 | /*
* MetodoDeSimpson: implementación del método de Simpson de 1/3 para integrales.
*/
package CalculoInfinitesimal;
import org.mariuszgromada.math.mxparser.*;
public class MetodoSimpson implements CalculoIntegral{
@Override
public Double calcularIntegralDefinida(double a, double b, String funcion) {
... | 31 | 80 | 0.525687 |
3bbbf509eac09793ec302abe7799d2ae31b0e926 | 1,421 | package net.avicus.magma.util;
import com.google.gson.JsonObject;
import net.avicus.magma.Magma;
import net.avicus.magma.redis.RedisHandler;
import net.avicus.magma.redis.RedisMessage;
import org.bukkit.scheduler.BukkitRunnable;
/**
* Parses json asynchronously, handles messages on main thread.
*/
public abstract c... | 25.375 | 89 | 0.562984 |
c26c12bead15ad2a2b8d75c4fa75b69c22c9baf9 | 681 | package com.gentaliti.strategy;
import org.apache.log4j.Logger;
/*
* @author Gent Aliti <aliti.genti@gmail.com>
*/
public class AppInit {
private static Logger logger = Logger.getLogger(AppInit.class);
public static void main(String[] args) {
Duck cityDuck = new Duck(new SimpleFly());
Duck n... | 29.608696 | 72 | 0.609398 |
a2e24b8095c9dc786a3ec91521d0fde36cff4357 | 290 | package com.github.wugenshui.poi.tl;
import com.deepoove.poi.data.RowRenderData;
import lombok.Data;
import java.util.List;
/**
* @author : chenbo
* @date : 2020-04-04
*/
@Data
public class DetailData {
private List<RowRenderData> labors;
private List<RowRenderData> goods;
} | 17.058824 | 43 | 0.72069 |
4dbfc364d70a44605a326f139a5bb77d8a1a52e7 | 2,598 | package arekkuusu.betterhurttimer.mixin;
import arekkuusu.betterhurttimer.BHTConfig;
import arekkuusu.betterhurttimer.api.event.PreLivingKnockBackEvent;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.entity.ai.... | 51.96 | 238 | 0.765974 |
d483dbc93628c7b1a9acd797e7c3b7921423f104 | 2,963 | package ch.so.agi.avgbs2mtab.writeexcel;
import org.apache.poi.xssf.usermodel.XSSFSheet;
import java.util.HashMap;
import java.util.List;
public interface WriteExcel {
void writeOldParcelsInTemplate(List<Integer> orderedListOfOldParcelNumbers,
XSSFSheet xlsxSheet);
... | 39.506667 | 101 | 0.458994 |
525ce49c72ab17190626ce2ceadd533e02091abc | 992 | package com.imjustdoom.pluginsite.service.impl;
import com.imjustdoom.pluginsite.dtos.in.CreateUpdateRequest;
import com.imjustdoom.pluginsite.model.Account;
import com.imjustdoom.pluginsite.model.Resource;
import com.imjustdoom.pluginsite.model.Update;
import com.imjustdoom.pluginsite.repositories.UpdateRepository;
i... | 33.066667 | 103 | 0.777218 |
43ecc12f2df3c4c4667a1f76fff407b36f024da5 | 19,292 | /**
* Copyright (C) 2011 Brian Ferris <bdferris@onebusaway.org>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... | 31.369106 | 102 | 0.695573 |
36d64f936b3b3d0b2795d4495e7179a1ffd7079e | 809 | package com.jeffdisher.membrane.avm;
import avm.Blockchain;
/**
* A VERY simple AVM demo program. When invoked with a given key, will generate a consequence for that key with the
* next integer in sequence (starting at 1) as the value.
* Takes no value inputs and assigns a new number whether given a PUT or a DEL... | 26.096774 | 116 | 0.667491 |
ef4fe2af8545e237c8abd441a423971474d6c0c4 | 1,450 | package org.recap.model.search;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* Created by rajesh on 18-Jul-16.
*/
@Data
@ApiModel(value="SearchItemResultRow", description="Model for Displaying Item Result")
public class SearchItemResultRow extends... | 32.222222 | 175 | 0.704828 |
dba3bd084d04246a145fce3ee485a4af5e4f9358 | 314 | package br.com.supera.game.store.repository;
import br.com.supera.game.store.entity.Checkout;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.Optional;
public interface CheckoutRepository extends JpaRepository<Checkout, Long> {
Optional<Checkout> findByCartId(Long cartId);
}
| 28.545455 | 75 | 0.815287 |
288125073cd1095f00f38e63a1c95dedf38293ce | 4,494 | package org.scaledl.usageevolution.wizard.wizards;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.core.databinding.DataBindingContext;
import org.eclipse.core.databinding.beans.BeanProperties;
import org.eclipse.core.databinding.observable.value.IObservableValue;
import org.eclipse.core.resourc... | 40.125 | 146 | 0.723632 |
f6080b043365a26bc678d2315b21658ae991b06b | 3,484 | /*
* This Java source file was generated by the Gradle 'init' task.
*/
package ch.so.agi;
import org.jooq.DSLContext;
import org.jooq.Field;
import org.jooq.Insert;
import org.jooq.InsertQuery;
import org.jooq.Named;
import org.jooq.Param;
import org.jooq.Parser;
import org.jooq.Query;
import org.jooq.QueryPart;
imp... | 32.560748 | 213 | 0.529564 |
1f40cccdb879bd3084baa089a62f83e0467dfa50 | 1,337 | package com.cutter.point.blog.picture.service.impl;
import com.cutter.point.blog.picture.entity.File;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;
import com.cutter.point.blog.picture.mapper.FileMapper;
import com.cutter.point.blog.picture.service.FileService;
import com.cutter.point... | 29.065217 | 96 | 0.693343 |
b076098dd9db10224a675d56beca608777344b10 | 6,205 | /*
* 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... | 28.995327 | 146 | 0.739404 |
76e35e8703cf84e4e2e4281d4c323ad79edc1ca9 | 13,240 | /*
* Copyright 2000-2017 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... | 43.84106 | 194 | 0.702644 |
f21bc79f1ceeba9ad122415f6daedbecc4e16f8d | 1,319 | package com.truncon.javalin.mvc.api.ws;
import java.nio.ByteBuffer;
/**
* Provides functionality for sending a WebSocket response.
*/
public interface WsResponse {
/**
* Sends textual content to the client.
* @param content The text to send.
*/
void sendText(String content);
/**
* S... | 28.06383 | 79 | 0.639121 |
0cebcc4ef3fafa86d18a00e8e871b2a8f775b103 | 486 | package be.seeseemelk.sebspatchvotingplugin.exceptions;
public class VoteAlreadyPlacedException extends IllegalArgumentException
{
private static final long serialVersionUID = 6929016950674394651L;
public VoteAlreadyPlacedException()
{
}
public VoteAlreadyPlacedException(String s)
{
super(s);
}
public Vot... | 18 | 72 | 0.792181 |
b616374dfcc0cf8ab4ecc8073063bcc5edf2fab3 | 2,181 | /*
* Copyright (c) 2016—2021 Andrei Tomashpolskiy and individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* ... | 29.876712 | 125 | 0.647868 |
69e9b3f9b13bd2abd5b7907081d723eaa88964a1 | 463 | package kolejki;
import java.util.ArrayList;
import java.util.Random;
public class Generator {
public ArrayList<Proces> kolejka;
public final int rozmiar;
public Generator(int r) {
rozmiar = r;
kolejka = new ArrayList<Proces>(rozmiar);
for (int i = 0; i < rozmiar; i++) {
kolejka.add(i, new Proces(i,losu... | 20.130435 | 55 | 0.643629 |
fb1e7ca81f65371b3997db56bcc5ea4bf922e858 | 489 | package com.example.disprojectmanager;
import java.util.ArrayList;
public class team{
private String Name;
private ArrayList<member> Members;
/**
* Constructor
*/
public team(String Name, ArrayList<member> Members)
{
this.Name = Name;
this.Members = Members;
}
/**
... | 14.382353 | 55 | 0.619632 |
51cf04be75ad533427d16b818bcaa2ee948e9418 | 410 | package com.company;
public class Exercise_5_40 {
public static void main(String[] args) {
int head = 0, tail = 0;
for(int i=0; i<=1000000; i++) {
int coin = (int)(Math.random()*2);
if (coin==0)
head++;
else
tail++;
... | 25.625 | 72 | 0.45122 |
8c8717a5b0194182142534ea4a4481164823510e | 647 | package com.lemonade.leetcode.t3000;
@SuppressWarnings("unused")
public class RingsAndRods2103 {
public int countPoints(String rings) {
byte[] arr = new byte[10];
for (int i = 0; i < rings.length(); i += 2) {
int index = rings.charAt(i + 1) - '0';
switch (rings.charAt(i)) {... | 24.884615 | 53 | 0.415765 |
9d2aebd1e6cd7591804508888055d1753addd3ca | 17,125 | /*
* Copyright (C) 2006 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... | 36.513859 | 127 | 0.58727 |
5decf8ba0003107ed3ce3f306e7c6c99149769f7 | 1,749 | /*
* Copyright (c) 2020 Gomint team
*
* This code is licensed under the BSD license found in the
* LICENSE file in the root directory of this source tree.
*/
package io.gomint;
import io.gomint.server.util.performance.ASMFactoryConstructionFactory;
import io.gomint.server.util.performance.ConstructionFactory;
im... | 34.294118 | 118 | 0.786164 |
a3dc225cb95f58ef2d357b3ed881ed11ba901946 | 409 | package j2html.tags.attributes;
import j2html.tags.Tag;
public interface IScope<T extends Tag> extends IInstance<T> {
default T withScope(final String scope_) {
get().attr("scope", scope_);
return get();
}
default T withCondScope(final boolean enable, final String scope_) {
if (en... | 22.722222 | 72 | 0.603912 |
675470a21361f89d9bad89fff639d67999caf9b8 | 4,504 | /* The contents of this file is dual-licensed under 2
* alternative Open Source/Free licenses: LGPL 2.1 or later and
* Apache License 2.0. (starting with JNA version 4.0.0).
*
* You can freely decide which license you want to apply to
* the project.
*
* You may obtain a copy of the LGPL License at:
*
* h... | 30.849315 | 92 | 0.626998 |
49e6183aea3ab73bb7b05cc59c22500ec3909afb | 1,904 | package Data;
import java.util.Map;
import java.util.TreeMap;
/**
* <code>Results</code> is a class which represents a collection of <code>Modules</code> objects.
* <p>
* The purpose of this class is to use to break down year periods into different modules.
*
* @author Konstantin Terziev
*/
public class... | 28 | 130 | 0.606618 |
5888d9704f7dda48fddd14d3f4268eaf810de5cf | 13,355 | package com.yeleman.mmtkrelay;
import android.*;
import android.Manifest;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.os.PowerManager;
imp... | 39.98503 | 142 | 0.660801 |
20732a7b436ccf9d31750bc7ce7cfa10f29cb0f0 | 4,270 | /*
* 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.thespheres.betula.couchdb.users.ui;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.i... | 40.283019 | 189 | 0.690632 |
83cb4021370ccd593b9b2b76d6fb2a9a3594c470 | 990 | package com.heaven7.java.data.io.music.bridge;
import com.heaven7.java.data.io.music.adapter.ExcelToJsonAdapterV1;
import com.heaven7.java.data.io.music.out.MusicOutDelegate1;
import com.heaven7.java.data.io.music.provider.MusicCutProviderV1;
import com.heaven7.java.data.io.poi.ExcelHelper;
/**
* @author heaven7
*/... | 38.076923 | 139 | 0.768687 |
bacb3fa78bde865a02c96045175e8515db25fc4a | 3,889 | package com.vml.listofthings.app.base;
import android.animation.Animator;
import android.content.Context;
import android.support.design.widget.CoordinatorLayout;
import android.support.v4.view.ViewCompat;
import android.support.v4.view.animation.FastOutSlowInInterpolator;
import android.util.AttributeSet;
import andro... | 32.957627 | 148 | 0.609668 |
22407aceff7b0c8a0ad62d6ed0b219d2b02747ab | 2,902 | /*
* Copyright 2012 Google 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 in w... | 38.693333 | 103 | 0.731564 |
aeb03f52246c06beb1f9474e4b46dac8a3ac052f | 4,445 | /*
* 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... | 26.458333 | 86 | 0.743982 |
f6be6e6ff6eeba7298c8beb435a70f3a5690c1a9 | 3,271 | /*
* Copyright 2021 Alibaba Group Holding Limited.
*
* 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 ... | 36.344444 | 81 | 0.529502 |
cb8fab23e16025708618180799ee9ee2e13beb97 | 702 | package utils.dbtools;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;
public class DBTime {
/**
* Get the milliseconds since 01/01/1970
* @param timestamp
* @return it returns the time for the given timestamp or -1 if timestamp is null or not in the correct form
*/
pu... | 25.071429 | 110 | 0.703704 |
923bb41980da16c827604b4b51ad99291ca8b4de | 2,099 | package com.betomorrow.stubery.applications.domain;
import org.springframework.data.annotation.Id;
public class Application {
@Id
private String id;
private String name;
private String contextPath;
private String icon;
public Application() {
}
public Application(String id, String n... | 24.988095 | 113 | 0.584564 |
8027d7331690f58b891f1c671f8a592919bc3a37 | 8,154 | /*
* 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... | 42.030928 | 99 | 0.720015 |
e4ca0c72ffbcd35a2308933a8d084ebab18623bf | 2,091 | package ru.stqa.pft.addressbook.tests;
import org.testng.Assert;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import ru.stqa.pft.addressbook.model.GroupData;
import java.util.Set;
public class GroupDeletionTests extends TestBase {
@BeforeMethod
public void ensurePreconditions... | 37.339286 | 116 | 0.727403 |
036379b7f372a01e9234780379ac224e95e9f86f | 1,340 | package be.sel2.api.dtos;
import be.sel2.api.entities.Certificate;
import be.sel2.api.entities.FileMeta;
import be.sel2.api.entities.Proposal;
import be.sel2.api.exceptions.InvalidInputException;
import lombok.Getter;
import lombok.Setter;
import java.util.ArrayList;
import java.util.List;
@Getter
@Setter
public cla... | 22.711864 | 89 | 0.657463 |
5d56f8e802827027eb273f397c560e3f9f15fafb | 5,020 | /**
* Copyright (C) 2013 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.financial.convention.expirycalc;
import java.util.EnumSet;
import java.util.Set;
import org.threeten.bp.DayOfWeek;
import org.threeten.bp.LocalDate;
import or... | 38.615385 | 140 | 0.753187 |
a485f9aadeb118e4ee81cfaba0194d215c304582 | 379 | package ch.bag.screening.web.api.screening;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class NodeDto {
private String questionId;
private String question;
privat... | 19.947368 | 43 | 0.810026 |
8a86d6a0186fe5fcd12db85ac9d05c3f5ac8e1b5 | 5,053 | package com.derohimat.kamusiden;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.annotation.RawRes;
import android.support.v7.app.AppCompatActiv... | 31.981013 | 110 | 0.576885 |
829751a2301465d227f8093d787530758cafbe6c | 599 | package org.drools.mvelcompiler.context;
public class Declaration {
private String name;
private Class<?> clazz;
private boolean created = false;
public Declaration(String name, Class<?> clazz) {
this.name = name;
this.clazz = clazz;
}
public Declaration(String name, Class<?>... | 19.322581 | 70 | 0.595993 |
d1af5216024f6630f25f0c21546d7d63b0d6ca24 | 6,759 | // Copyright (c) 2008-2012 Jim Peters, http://uazu.net
//
// 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 applic... | 28.280335 | 75 | 0.623169 |
bf7d9013ca6306962c96d52cc0696dd6c852631c | 895 | package com.remondis.remap.copyObjects;
public class AResource {
private B b;
public AResource() {
super();
}
public AResource(B b) {
super();
this.b = b;
}
public B getB() {
return b;
}
public void setB(B b) {
this.b = b;
}
@Override
public int hashCode() {
final in... | 16.272727 | 63 | 0.541899 |
aa00072aa0b473d75f32b15c76bc827864d14f2e | 7,522 | /*
* Copyright © 2020 Richard de Jong
*
* 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 applic... | 28.819923 | 134 | 0.613932 |
7e82a1da659ca592e299b255b30af3068b12cd5f | 816 | package p69;
/**
* @author Glory
* @date 2020/5/9 16:20
*/
public class Solution {
/**
* 计算并返回 x 的平方根,其中 x 是非负整数。
* <p>
* 由于返回类型是整数,结果只保留整数的部分,小数部分将被舍去。
*
* 采用二分查找法实现
*/
public int mySqrt(int x) {
int min = 1, max = x, mid = 0;
while (min <= max) {
... | 20.923077 | 53 | 0.432598 |
04778b9a7031b246f6518a28c651acd0f869ddc8 | 5,464 | // 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... | 35.712418 | 146 | 0.766471 |
f23bf5019a036bcfc2c764dedaf1a5d4170b7870 | 1,027 | package com.nickperov.stud.java_samples.fork_join;
import java.util.ArrayList;
import java.util.List;
public class ValueSumCounter2 extends ValueSumCounter {
/**
*
*/
private static final long serialVersionUID = 5278250199687140013L;
public ValueSumCounter2(Node node) {
super(node);
}
... | 29.342857 | 78 | 0.587147 |
c5bc015004e27d580f35c29b545e229ce22d7a49 | 282 | package com.jwolf.service.user.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jwolf.service.user.api.entity.User;
/**
* <p>
* 用户表 服务类
* </p>
*
* @author jwolf
* @since 2021-11-04
*/
public interface IUserService extends IService<User> {
}
| 16.588235 | 59 | 0.712766 |
b85e4ba5c323d0d04c5449644280fb7ed6e205cd | 2,218 | /**
* Copyright (C) 2016 - 2030 youtongluan.
*
* 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... | 33.104478 | 110 | 0.68936 |
1ed4ac12117bddc781b793ff763cf4fee30a94a1 | 2,922 | package zeptodns;
import org.apache.commons.cli.*;
import zeptodns.handlers.NashornHandler;
import zeptodns.handlers.QueryHandler;
import zeptodns.nio.NioUdpTransport;
import javax.script.ScriptException;
import java.io.IOException;
import java.net.InetAddress;
import java.util.logging.Level;
import java.util.logging... | 29.22 | 93 | 0.622861 |
cb4d2570e49c8a5c19801fde9116a574dcf74766 | 5,443 | package com.example.photogallery.Fragment;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import android.view.LayoutInflater;
import an... | 29.263441 | 132 | 0.680875 |
3080297e2fd8cc400733c449543e55944c39300c | 11,265 | /*
* Copyright 2019 IBM 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 agreed to... | 45.979592 | 147 | 0.695162 |
c3831dace9b46b811885b9f8cf3030b61c7e1d67 | 1,775 | import java.io.File;
import java.sql.Timestamp;
import java.util.Scanner;
import java.io.IOException;
import java.io.PrintWriter;
public class TransactionList{
public TransactionList(String filename) throws IOException {
Scanner scan = new Scanner(new File(filename));
transactions = new Transaction[MAX_TRANS... | 23.051948 | 113 | 0.678873 |
5ed44c75b9ecb174992a0f4f1c44aa6b8ede6997 | 573 | package de.uop.mics.bayerl.cube.similarity.string;
import de.uop.mics.bayerl.cube.model.Cube;
import de.uop.mics.bayerl.cube.similarity.ComputeSimilarity;
/**
* Created by sebastianbayerl on 24/07/15.
*/
public class DescriptionBasedSimilarity implements ComputeSimilarity {
@Override
public String getName(... | 27.285714 | 118 | 0.743455 |
107b266a677f9804acd53decb628866760de2b0b | 3,827 | /*
* Copyright © 2014 <code@io7m.com> http://io7m.com
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AN... | 26.393103 | 78 | 0.669193 |
c6246c0c6e842181385a4bb089d848bde57efe39 | 485 | package com.knv.service;
import com.knv.dto.entity.DishSuggestionEntity;
import com.knv.repository.DishSuggestionRepository;
import com.mongodb.client.MongoDatabase;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public final class DishSuggestionService {
... | 30.3125 | 96 | 0.814433 |
07ca78ee0923238f328e8acc97b528f6f82807b3 | 8,365 | package com.neverpile.eureka.objectstore.fs;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.hamcrest.CoreMatchers.startsWith;
import static org.junit.Assert.assertThat;
import java.io.ByteArrayInputStream;
import java.io.IOException;
... | 31.927481 | 103 | 0.694082 |
e1e28df58cdd5b11abefe05ac10c754b01772a5e | 1,357 | // Generated by protoc-gen-javastream. DO NOT MODIFY.
// source: frameworks/base/core/proto/android/server/activitymanagerservice.proto
package com.android.server.am;
/** @hide */
// message UserControllerProto
public final class UserControllerProto {
// message User
public final class User {
// opt... | 29.5 | 98 | 0.716286 |
80064b9f195955605ace6adc1a9860f7bcbfc191 | 585 | package com.example.springboot.component;
import org.openapitools.model.Frequency;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;
import lombok.extern.slf4j.Slf4j;
@Slf4j
@Component
public class FrequencyConverter implements Converter<String, Frequency> ... | 25.434783 | 73 | 0.712821 |
83dfea780771bd8a2eb90de518693b8dc382dd8e | 2,161 | package com.example.carrental;
import java.net.URI;
import org.assertj.core.api.BDDAssertions;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.cloud.contract.stubrunner.junit.StubRunnerRule;
import o... | 36.016667 | 76 | 0.773253 |
c4d4b590b78471a9536d4d3af6f3eadd8ed7ae4a | 787 | package ai.foremast.metrics.demo.controller;
import ai.foremast.metrics.demo.queue.SimpleQueue;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Random;
@RestContro... | 23.147059 | 62 | 0.70521 |
391fba8672bdc64dff0b0e8a7ba730988ca10610 | 327 | package pw.spn.quizgame.repository;
import java.util.Collection;
import java.util.List;
import org.springframework.data.mongodb.repository.MongoRepository;
import pw.spn.quizgame.domain.Topic;
public interface TopicRepository extends MongoRepository<Topic, String> {
List<Topic> findByIdNotIn(Collection<String> ... | 25.153846 | 73 | 0.810398 |
d16c7e4759bb9eb0755712b6e8828c429baa4075 | 5,425 | /*
* Copyright 2017 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 in writing... | 30.649718 | 91 | 0.684793 |
c433a9543ce5a0e51b8526221b0217cfebc4406e | 1,056 | package in.ashwanik.dcp.problems.p31_60.p60;
class Solution {
boolean equalSumSubset(int[] array) {
if (array == null || array.length == 0) {
return false;
}
int sum = 0;
for (int number : array) {
sum += number;
}
///Sum odd, so can't divi... | 22.956522 | 71 | 0.397727 |
c797e44b5afd8a30cce34fc1cd00b7b2de0d614e | 1,613 | package com.feel.mall.admin.job;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.feel.mall.db.domain.MallCoupon;
import com.feel.mall.db.domain.MallCouponUser;
import com.feel.mall.db.service.MallCouponService;
import com.feel.mall.db.service.MallCouponUserService;
impor... | 31.019231 | 83 | 0.737756 |
74d94d007ab974466af91170791f394b7701916c | 3,463 | /*
* Copyright (c) 2002-2006 JGoodies Karsten Lentzsch. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyright notice,
... | 42.231707 | 81 | 0.712099 |
a54343d07a16d1180c0cf6e90bc874bb24f0bb0c | 2,842 | package com.test.imagefilter.ui.filter.filterlist;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import butterknife.Bind;
import butterknife.ButterKnife;
... | 36.435897 | 99 | 0.732583 |
449a72253b8fd86edbe6bdae6e37d414867e4d1b | 8,392 | package io.crnk.operations;
import io.crnk.core.engine.document.Relationship;
import io.crnk.core.engine.document.Resource;
import io.crnk.core.engine.document.ResourceIdentifier;
import io.crnk.core.engine.http.HttpMethod;
import io.crnk.core.utils.Nullable;
import io.crnk.operations.server.order.DependencyOrderStrat... | 36.486957 | 97 | 0.74857 |
ee9e4a9ee6d2992167559e31a5c7909d48a5d0ee | 395 | package com.wyu.Demo03StreamMethod;
import java.util.stream.Stream;
public class Demo01Stream_map {
public static void main(String[] args) {
Stream<String> s1 = Stream.of("1", "2", "3");
Stream<Integer> s2 = s1.map((String s) -> {
return Integer.parseInt(s);
});
s2.forE... | 23.235294 | 53 | 0.562025 |
07e051166b52140f2fa6489b5b21fec685ebf2bc | 3,396 | package org.nobel.rps.core;
import org.nobel.rps.Config;
import org.nobel.rps.algo.RpsAlgorithm;
import org.nobel.rps.messages.AbstractMessage;
import org.nobel.rps.messages.CleanStatisticsMessage;
import org.nobel.rps.messages.EndGameMessage;
import org.nobel.rps.messages.HelpMessage;
import org.nobel.rps.messages.Pl... | 35.010309 | 142 | 0.602179 |
5afb9acdc82323f4cb11aae7dbc2443bc9b2e02a | 1,731 | //
// Copyright (C) 2014 United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration
// (NASA). All Rights Reserved.
//
// This software is distributed under the NASA Open Source Agreement
// (NOSA), version 1.3. The NOSA has been approved by the Open Source
//... | 30.368421 | 73 | 0.700173 |
a58167ff64405fe721cfcd1cb5a4014283d5a96e | 13,910 | package com.fivevoltslab.flamecontrol;
import android.Manifest;
import android.app.Activity;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent... | 36.701847 | 293 | 0.617326 |
d6ae74d7b370e8d0ffbc46146b2683b1c8e39512 | 7,278 | /*******************************************************************************
* Copyright (c) 1998, 2015 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
... | 38.305263 | 112 | 0.650453 |
624c61370a68057c797403fcd46a152466462482 | 2,106 | package net.gminerz.survivalgames.particles.managers;
import net.gminerz.gmos.account.Account;
import net.gminerz.gmos.account.AccountManager;
import net.gminerz.gmos.enums.Particle;
import net.gminerz.gmos.game.GameAPI;
import net.gminerz.survivalgames.main.SurvivalGames;
import net.gminerz.survivalgames.particles.Pa... | 35.694915 | 128 | 0.608737 |
67cf0fa4e908162b051b1f850652b68be768befd | 1,776 | package com.ppdai.infrastructure.mq.biz.service.impl;
import java.util.Enumeration;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import javax.servlet.http.HttpServletRequest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowire... | 30.62069 | 93 | 0.804617 |
912dab53ee964d6a75e6c8a44460376b515b3430 | 37,907 | /*
* Copyright 2012-2013 inBloom, Inc. and its affiliates.
*
* 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... | 40.028511 | 139 | 0.612921 |
fcebbb3ae7f20a5c2afb9e9d18f91225051ad482 | 10,769 | /*
* Copyright (c) 2007 Mockito contributors
* This program is made available under the terms of the MIT License.
*/
package org.mockito.plugins;
import org.mockito.Incubating;
import org.mockito.MockedConstruction;
import org.mockito.exceptions.base.MockitoException;
import org.mockito.invocation.MockHandler;
impo... | 44.684647 | 151 | 0.651221 |
804fab264848c1763edc76b5b00cc656accf8336 | 2,496 | /*
* Copyright (c) 2020 - Present. Rochester Institute of 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 ... | 31.2 | 94 | 0.685497 |
e16c05425ef47885d55a4f16a0096fba94f531f7 | 10,233 | package uk.co.streefland.rhys.finalyearproject.gui.controller;
import javafx.concurrent.Task;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
impo... | 31.681115 | 127 | 0.541581 |
4cf453525d5036c823f0071524f86457a059f5ff | 90,449 | /*
* Copyright 2016-2021 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | 39.359878 | 156 | 0.610311 |
d3ec3b756442deba69b39bc50efb5032609e65f4 | 1,269 | package com.zhaoguhong.baymax;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframe... | 33.394737 | 75 | 0.799842 |
5d283aede7de7bac25595acc782c4126b790ebad | 1,388 | import com.haulmont.cuba.core.entity.FileDescriptor;
import com.haulmont.cuba.gui.components.*;
import com.company.employeeimages.entity.Employee;
import com.haulmont.cuba.gui.xml.layout.ComponentsFactory;
import javax.inject.Inject;
import java.util.Map;
import static com.haulmont.cuba.gui.components.Image.*;
publi... | 32.27907 | 91 | 0.689481 |
53a91e84a21f92c8e7686390fe9f3f9121719a74 | 20,833 | /**
* Copyright (c) 2014, by the Authors: John E Lloyd (UBC)
*
* This software is freely available under a 2-clause BSD license. Please see
* the LICENSE file in the ArtiSynth distribution directory for details.
*/
package maspack.geometry;
import java.util.Iterator;
import maspack.matrix.Point3d;
import maspack... | 35.310169 | 98 | 0.625978 |
aad0e8c28231e3f856724e7f35dafd81486646d2 | 2,459 | /*
* Zynaptic Relay MQTTv3 Client - An asynchronous MQTT v3.1.1 client for Java.
*
* Copyright (c) 2019, Zynaptic Limited.
*
* 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://... | 32.355263 | 82 | 0.726718 |
31d9be3857b9a27a70733d9f4cbe9455427a3f34 | 324 | package com.sybinal.shop.mapper;
import java.util.List;
import com.sybinal.shop.model.FootPrint;
import com.sybinal.shop.model.Product;
public interface FootPrintMapper {
int insertFootPrint(FootPrint footPrint);
List<Product> selectFootPrintRelationById(FootPrint userId);
int deleteFootPrint(FootPrint footPrint)... | 24.923077 | 61 | 0.820988 |
b46e6ecf1d9a271db192304c24ce093ed86d19d9 | 1,105 | package br.unicamp.cotuca.schmoice;
import android.graphics.Bitmap;
import java.io.Serializable;
public class Personagem implements Serializable {
private String nome;
private float width;
private float rotation;
private float x;
private float y;
public float getWidth() {
return widt... | 17.539683 | 52 | 0.586425 |
fe1ec7ee0159e3b787ef2225888a9089c1312905 | 215 | package cz.czechitas.recept.suroviny;
import cz.czechitas.recept.suroviny.intf.*;
public class Mouka extends AbstractNadobaSeSypkouSurovinou {
public Mouka(String jmeno) {
super(jmeno, 1000);
}
}
| 19.545455 | 60 | 0.730233 |
570f50a26d3454f8f540392aa30d77df047e3036 | 4,007 | package com.bt.pi.app.common.entities;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
import java.... | 39.284314 | 244 | 0.669329 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.