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 |
|---|---|---|---|---|---|
4d5161319e1a8f30cd0803c8d8011522388fe151 | 2,089 | /*
* Copyright 2014 Attila Szegedi, Daniel Dekany, Jonathan Revusky
*
* 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 requi... | 21.989474 | 91 | 0.622307 |
36025b2870a33d8a39c619b6751b41b69f6aae3d | 4,251 | package com.example.android.miwok.FilmsModule.DBHelpers;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import java.util.ArrayLis... | 31.029197 | 148 | 0.638203 |
f5b5edb126aa89872bb5001896dae1baa1db02d9 | 4,706 | // Copyright 2020 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 to ... | 40.222222 | 259 | 0.634509 |
c915d9174b45910fb3b2147cbdb9f502fad8e798 | 482 | package soya.lang;
/**
* @author: Jun Gong
*/
public class Long extends EvalObject implements Comparable, Pattern {
private long value;
@Override
public int compareTo(Object o) {
return 0; //To change body of implemented methods use File | Settings | File Templates.
}
@Override
p... | 22.952381 | 100 | 0.676349 |
5f22f30b9f22cf02d932d555d4621daaffc0f067 | 1,214 | package com.boscotec.livedatapreference.adapters;
import android.content.SharedPreferences;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.boscotec.livedatapreference.converters.Converter;
import static androidx.core.util.Preconditions.checkNotNull;
public final class Converter... | 34.685714 | 102 | 0.730643 |
338759426b59046b117c6ffb7f45ab3e47488f6a | 340 | package happyjava;
import org.junit.Test;
import java.sql.Timestamp;
import static org.junit.Assert.assertEquals;
@SuppressWarnings(value = "unused")
public class DatetimeUtilsTests {
@Test
public void getNowTimeStamp() {
assertEquals(Timestamp.class, DatetimeUtils.getNowTimeStamp().getC... | 21.25 | 83 | 0.708824 |
61808df10dad3e7b31eb9ab124d5522b54f50608 | 19,302 | package com.bergerkiller.bukkit.common.protocol;
import com.bergerkiller.bukkit.common.Common;
import com.bergerkiller.bukkit.common.Logging;
import com.bergerkiller.bukkit.common.collections.ClassMap;
import com.bergerkiller.bukkit.common.conversion.DuplexConversion;
import com.bergerkiller.bukkit.common.internal.Com... | 56.604106 | 151 | 0.750078 |
67251a720006dfd6a94b55e819e4eb6d272d7bba | 807 | package com.cz.item.domain;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.cz.common.base.BaseModel;
import lombok.*;
import java.util.List;
/**
* Created by jomalone_jia on 2017/9/15.
*/
@TableName("sys_item")
@Data
@NoArgsConstructor
@Eq... | 23.735294 | 55 | 0.737299 |
4d07c53af9c8928709b65325bac7914309fb6681 | 290 | package com.example.apt_demo;
import java.util.Map;
/**
* Created by yhj on 2015/9/18.
*/
public abstract class PushRouterBasicMessage extends BasicMessage {
Map<String, String> mMap;
public PushRouterBasicMessage(Map<String, String> map) {
this.mMap = map;
}
}
| 16.111111 | 67 | 0.686207 |
23ebb8ad022f9c702502183fcd3f8f78b702a81c | 855 | package com.je_chen.game.Main;
import com.je_chen.game.Canvas.Canvas_Game;
import javax.swing.*;
import java.awt.*;
public class Game{
private JFrame frame;
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
Game window = new Game... | 21.375 | 60 | 0.642105 |
9c09d33f3431310d1a93f906f5453e806cd5e291 | 10,572 | /*-
* #%L
* Simmetrics Core
* %%
* Copyright (C) 2014 - 2020 Simmetrics 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... | 21.888199 | 98 | 0.699773 |
9042b02085685e429e449fdfa6bfb117328dde2a | 3,644 | /*
* MIT License
*
* Copyright (c) 2020 Airbyte
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, ... | 40.94382 | 104 | 0.741218 |
56a6aa98a8f87394fe321b181767b3026863c54f | 15,233 | /**
*/
package org.ecore.service.communicationPattern.impl;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.impl.EPackageImpl;
import org.ecore.base.basicAttributes.BasicAttributesPackage;
import org.ecore.service.com... | 31.538302 | 128 | 0.732357 |
55bba0299e5189a5ba7e9ed157d09a3282fc285f | 6,434 | /*
* Copyright 2014 The Closure Compiler 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 applicable... | 37.847059 | 94 | 0.70345 |
12898c7d11ee6fe88224abbaa6a980af33152908 | 1,198 | /*
* Copyright 2003-2009 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 applicable... | 34.228571 | 82 | 0.783806 |
5461b239228dd8bfefa9d3ecc4c5f1a423b3a6a2 | 687 | package com.github.highcharts4gwt.model.array.jso;
import com.github.highcharts4gwt.model.array.api.Array;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArray;
public class JsoArray<T> extends JsArray<JavaScriptObject> implements Array<T>
{
protected JsoArray()
{
... | 20.818182 | 78 | 0.673945 |
d45b8b65f722c106b6f4b885491007dfb27ceda3 | 3,860 | package com.dangdang.ddframe.job.reg.zookeeper;
import com.dangdang.ddframe.job.fixture.EmbedTestingServer;
import com.dangdang.ddframe.job.reg.base.ElectionCandidate;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.framework.CuratorFrameworkFactory;
import org.apache.curator.retry.Retr... | 38.989899 | 158 | 0.724611 |
a8d1092cabdd1b004093c9d0cc381fd300dc320f | 220 | package mutual_recursive;
public class Test01 {
public void a(int x) {
if (x>0) {
b(x);
} else {
b(-x);
}
}
private void b(int y) {
if (y%2==0) {
System.out.println("x");
a(y-1);
}
}
}
| 9.565217 | 27 | 0.490909 |
269756feaa836283926a4b7026f262c513b93cc9 | 1,695 | /*
* 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... | 23.873239 | 75 | 0.676696 |
2cf6013c9c1126ddf2df2c82ec491091a183ce29 | 154 | package com.bluetools.events;
public interface IDefaultEventBus {
void registerWithBus(Object object);
void unregisterWithBus(Object object);
}
| 19.25 | 42 | 0.779221 |
fee708ccbd186591736c97cf608a018de6077b2b | 3,999 | package gov.nist.drmf.interpreter.pom;
import gov.nist.drmf.interpreter.common.constants.GlobalPaths;
import gov.nist.drmf.interpreter.pom.common.meta.AssumeMLPAvailability;
import gov.nist.drmf.interpreter.pom.data.LexiconConverterConfig;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
impo... | 33.325 | 84 | 0.677919 |
8da2c7122c36bd15834684907091310795d5d44c | 2,054 | /*
* Copyright 2021 Shulie Technology, Co.Ltd
* Email: shulie@shulie.io
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | 25.675 | 73 | 0.618306 |
5e1e96e55a4586a9ba2d53cd8f43c952b9b06985 | 1,919 | package core.services;
import core.apis.last.ConcurrentLastFM;
import dao.ChuuService;
import dao.entities.EntityInfo;
import dao.entities.Genre;
import dao.entities.ScrobbledArtist;
import org.apache.commons.lang3.tuple.Pair;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.... | 39.163265 | 172 | 0.695154 |
8a5aa4dd1cd04e25c690ff306cb195bbaf69c1c8 | 2,570 | package frc.robot.subsystems;
import edu.wpi.first.networktables.NetworkTable;
import edu.wpi.first.networktables.NetworkTableEntry;
import edu.wpi.first.networktables.NetworkTableInstance;
import edu.wpi.first.wpilibj.Encoder;
import edu.wpi.first.wpilibj.Spark;
import edu.wpi.first.wpilibj.Ultrasonic;
import edu.wpi... | 27.052632 | 185 | 0.731907 |
109fbea6213992d4ec49c3731aa0b5fad7281880 | 2,826 | /**
* The MIT License (MIT)
*
* Copyright (c) 2015 Peter Nemes
*
* 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
*... | 33.642857 | 123 | 0.664897 |
294d2d6d5d3a66701c4981038a3773ead8dbec18 | 5,324 | package io.github.muhittinpalamutcu.schoolmanagementsystem.service;
import io.github.muhittinpalamutcu.schoolmanagementsystem.dto.StudentDTO;
import io.github.muhittinpalamutcu.schoolmanagementsystem.entity.Student;
import io.github.muhittinpalamutcu.schoolmanagementsystem.exceptions.BadRequestException;
import io.git... | 31.134503 | 115 | 0.668107 |
d258120a9dbf104804d00de54264cffc7e682c02 | 6,002 | package Framework.GridsAndAgents;
import Framework.Interfaces.AgentToBool;
import java.io.Serializable;
import java.util.ArrayList;
import static Framework.Util.*;
/**
* extend the AgentPT2D class if you want agents that exist on a 2D continuous lattice
* with the possibility of stacking multiple agents on the sa... | 25.649573 | 120 | 0.543652 |
5d1b7a2aa98b87d3adb41a579dfea3fad4a22663 | 6,860 | /*
* Borderblocks
* Copyright (C) 2018 SilentChaos512
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation version 3
* of the License.
*
* This library is distributed in the hope tha... | 42.608696 | 129 | 0.651603 |
b853702fb62d903a3ab4d3afc575e66cc3491be9 | 1,173 | /*
*
* @Author: Sandeep Sasidharan
*/
package Plot100s;
import java.io.FileInputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Logger;
import Graph.Pair;
import... | 27.928571 | 88 | 0.745098 |
d719313a162d51d3b2cca4934ef664e0f6905893 | 4,977 | /*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 36.595588 | 99 | 0.638336 |
6fb2b02ace143e8e9a12d5bef91c661939eaf950 | 896 | package org.bukkit.event.entity;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Pose;
import org.bukkit.event.HandlerList;
import org.jetbrains.annotations.NotNull;
/**
* Called when an entity changes its pose.
*
* @see Entity#getPose()
*/
public class EntityPoseChangeEvent extends EntityEvent {
p... | 19.911111 | 75 | 0.646205 |
4a9e5da2f5e035ceab61ddafa3a08b776d146a54 | 1,167 | package net.pladema.staff.repository.entity;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.EqualsAndHashCode;
i... | 25.933333 | 77 | 0.795201 |
bd116e396ef2077c9971ff66cb0483901270cef2 | 10,573 | /*
* Copyright 2013 Gunnar Kappei.
*
* 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... | 37.228873 | 168 | 0.57486 |
751d98deec588bda361c6c4aacb4ba27ac28a4e1 | 4,114 | package graficador.graficos;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import javax.swin... | 29.385714 | 81 | 0.748906 |
4824c32588913b657395481c46da22a9ac4ad0ad | 2,992 | package autodagger.compiler.utils;
import com.google.auto.common.MoreElements;
import com.google.auto.common.MoreTypes;
import java.util.ArrayList;
import java.util.List;
import javax.lang.model.element.AnnotationMirror;
import javax.lang.model.element.AnnotationValue;
import javax.lang.model.element.Element;
import... | 41.555556 | 154 | 0.708222 |
a4cfa18428e581d75047d6e1c5bb4dc4fcedc180 | 1,694 | /*
* Copyright 2019 Arcus 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 applicable law or agreed to ... | 27.322581 | 75 | 0.724321 |
8ec7e389b602683391e36c4d9d6cbd8ac3753d82 | 2,775 | import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Scanner;
public class Login {
public Login() {
}
public void startProcess(){
Scanner in = new Scanner(System.in);
String menu;
do {
printLoginMenu();
System.out.print("Select menu : ");
menu = in.nextLine();
... | 26.179245 | 117 | 0.598198 |
b397c70b93194925053ae02785e42faada3e73f4 | 1,623 | /**
* Copyright (C) 2014-2018 LinkedIn Corp. (pinot-core@linkedin.com)
*
* 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
*
* Unle... | 35.282609 | 107 | 0.772643 |
37548e7d782eec3852425e483544088f986da254 | 1,867 |
package com.tuya.open.sdk.example;
import com.alibaba.fastjson.JSON;
import com.tuya.open.sdk.mq.AESBase64Utils;
import com.tuya.open.sdk.mq.MqConfigs;
import com.tuya.open.sdk.mq.MqConsumer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class ConsumerExample {
private static final Logger logg... | 41.488889 | 128 | 0.624531 |
a4e58d3b6571b61e8f4cfd49b59b7a935fdb1f2c | 1,334 | package org.xujin.moss.model;
import org.xujin.moss.base.BaseModel;
public class ProjectModel extends BaseModel {
/**
* 项目名称
*/
private String name;
/**
* 负责人名称
*/
private String ownerName;
/**
* 应用负责人Id
*/
private String ownerId;
/**
* 所属项目名
*/
... | 15.694118 | 52 | 0.554723 |
4f271f111281d3293615bfa3e34e861c014d0aaf | 1,083 | package com.ab.cache.service;
import com.ab.cache.entity.User;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.CachePut;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereot... | 24.066667 | 77 | 0.690674 |
c95590f8be3f23b051fbb5d1a6ad7fa122cfe880 | 235 | package xdvrx1ProjectSwing;
class MainMethod {
public static void main(String[] args) {
//okay, let us build it!
ConverterApp converterApp = new ConverterApp();
converterApp.build();
}
}
| 21.363636 | 60 | 0.604255 |
222ea57e957769787fca923143ceefa4a69bdbe9 | 958 | package club.zhcs.thunder.hanlder;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger;
import org.apache.shiro.authz.UnauthenticatedException;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.ann... | 28.176471 | 96 | 0.794363 |
dd6965a98917243d748104b5a23836b2963b8424 | 353 | package com.codefarme.imchat.mapper;
import com.codefarme.imchat.pojo.Gift;
public interface GiftMapper {
int deleteByPrimaryKey(Integer id);
int insert(Gift record);
int insertSelective(Gift record);
Gift selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(Gift record);
int u... | 20.764706 | 49 | 0.756374 |
4c5c1c05de8806c14b90475db5ef732c5369fd94 | 2,359 | /*
* 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 ... | 33.7 | 116 | 0.698177 |
826cb300a68e1517d2014a79256c127a84c2a643 | 1,092 | package com.ontology2.centipede.shell;
import com.ontology2.centipede.errors.ExitCodeException;
import com.ontology2.centipede.errors.ShutTheProcessDown;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
public abstract class CommandLineApplication extends ResourceAwareObject... | 34.125 | 81 | 0.663004 |
a85beee0d084102e89e253b3afd23b5a578d01f4 | 3,911 | package ifml.player.view;
import java.net.URL;
import java.util.ResourceBundle;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import ifml.core.engine.IfmlEngineImpl;
import javafx.application.Platform;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.fxml.... | 30.795276 | 110 | 0.649962 |
e257ddc2a484f037dbb1ad2d7cde5ddf2ffdaef4 | 3,128 | import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Image;
import java.io.IOException;
import javax.imageio.ImageIO;
import javax.swing.BoxLayout;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swin... | 25.85124 | 115 | 0.719949 |
b3bf2b08b67783ee1fd9137a17492da3cb753f40 | 706 | package com.echoohce.jpa.hibernate.demo.repository;
import com.echoohce.jpa.hibernate.demo.entity.Course;
import java.util.List;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.rest.core.annot... | 30.695652 | 73 | 0.796034 |
a25f73b04e51bb38b0f71f73dc221a0efd439d50 | 679 | package com.xubin.starclass.https;
import android.util.Log;
import com.lidroid.xutils.exception.HttpException;
import com.lidroid.xutils.http.ResponseInfo;
import com.lidroid.xutils.http.callback.RequestCallBack;
import com.xubin.starclass.utils.DialogUtil;
/**
* Created by Xubin on 2015/9/8.
*/
public abstract cl... | 26.115385 | 65 | 0.712813 |
6b93561af25afad15aa12c9e0307edce5667cfcf | 11,835 | /*
* Copyright 2016 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.apach... | 39.58194 | 177 | 0.708661 |
73f2c8f3846d25e0d01395c7fc0c991bc3352ad9 | 159 | package com.letv.lepaysdk.wxpay;
import com.tencent.mm.sdk.modelbase.BaseResp;
public interface WXPayCallback {
void wxPayCallback(BaseResp baseResp);
}
| 19.875 | 45 | 0.792453 |
fbaf01a2394ba8aeab4c802e5bbce7941bbd52cc | 240 | package org.springframework.social.directline.data;
import org.springframework.util.MultiValueMap;
/**
* @author Anton Leliuk
*/
public interface MultipartItem {
Object getBody();
MultiValueMap<String, String> getHeaders();
}
| 17.142857 | 51 | 0.745833 |
2ee8fdcc7c2967c515dd902c19a1c2bdd00af139 | 27,659 | /*
* 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... | 31.147523 | 97 | 0.581619 |
ddc0af5cd14c7b15f87b415962ae9181e2b18324 | 4,184 | /*
* JBoss, Home of Professional Open Source.
* Copyright 2014 Red Hat, Inc., and individual 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 Licen... | 43.583333 | 288 | 0.691444 |
e359dc0fb152521166abfc71c0fa2c1053a1fa73 | 459 | package org.nypl.simplified.profiles.api;
import java.util.Collections;
/**
* An exception raised when the user tries to create a profile that already exists.
*/
public final class ProfileCreateDuplicateException extends ProfileDatabaseException {
/**
* Construct an exception.
*
* @param message The ex... | 21.857143 | 85 | 0.745098 |
9970450b90ae7fe498c125a6a1dbe4c91d6ad1da | 1,828 | package com.tracy.gd.IDao;
import com.tracy.gd.domain.Expense;
import com.tracy.gd.dto.updateExpense;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface ExpenseMapper {
int deleteByPrimaryKey(Integer eId);
int inse... | 26.492754 | 215 | 0.67779 |
cdfb734b9840e28d4c1ecb88cd60033a881ab099 | 7,971 | package com.roden.study.java.util.stream;
import org.junit.Test;
import java.util.*;
import java.util.stream.Collectors;
public class StreamTest {
@Test
public void test1(){
ArrayList<User> users = new ArrayList<User>();
users.add(new User(22, "王旭", "123456", (short)1, true));
users.a... | 40.055276 | 135 | 0.575587 |
56cc136698521c063a2323313d0b49fc6938d941 | 1,340 | // Copyright 2014 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... | 31.904762 | 90 | 0.720896 |
65f89ce58c2687de749c423d8603591b8b72c2cb | 713 | import enums.Muscularity;
import enums.PartLocation;
public class Tentacle extends Part implements Parts {
private int size;
private Muscularity muscularity = Muscularity.HIGH_MUSCLES;
//TODO: implement “lapki”
Tentacle(String name, PartLocation partLocation) {
super(name, partLocation);
... | 23.766667 | 63 | 0.671809 |
4d50e75274ab2354e0146fa9f9bad45ec36e5e4f | 2,623 | /**
* @file TreeStory.java
* @author Valery Samovich
* @version 1
* @date 2015/05/11
*/
package org.samovich.technologies.basics.concepts.strings.treehouse;
import java.io.Console;
import java.util.Scanner;
public class TreeStory {
public static void main(String[] args) {
// __Name__ is a __adjecti... | 36.430556 | 84 | 0.564621 |
289b96b05d8ef2070015a4619ec4efb94db98666 | 1,259 |
package io.automatiko.engine.workflow.marshalling.impl;
import java.io.IOException;
import io.automatiko.engine.api.runtime.process.NodeInstance;
import io.automatiko.engine.api.runtime.process.NodeInstanceContainer;
import io.automatiko.engine.api.runtime.process.ProcessInstance;
import io.automatiko.engine.api.run... | 37.029412 | 115 | 0.842732 |
7834b39b7749ff596952395eca91d7dd0547a08e | 518 | package example.micronaut.domain;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Optional;
public interface CmcQuoteRepository {
Optional<CmcQuoteEntity> findById(Long id);
CmcQuoteEntity save(CmcCoinEntity cmcCoinEntity, String currencyId, BigDecimal price, BigDecimal marketCa... | 37 | 200 | 0.828185 |
43be78ee74f9506c7efbb5844ff5d64b814202d1 | 18,772 | /*
* 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 ... | 43.453704 | 265 | 0.604677 |
ca76390210f9ef89e24c2deb01a10c6bcadb5c02 | 1,564 | package com.pocketchat.controllers.multimedia;
import com.pocketchat.models.controllers.request.multimedia.GetMultimediaListRequest;
import com.pocketchat.models.controllers.response.multimedia.MultimediaResponse;
import com.pocketchat.services.multimedia.MultimediaService;
import org.springframework.beans.factory.ann... | 40.102564 | 188 | 0.798593 |
256504b54adb4b93286c0acaf718863736136740 | 197 | package kodlamaio.northwind.business.abstracts;
import java.util.List;
import kodlamaio.northwind.entıtıes.concretes.Product;
public interface ProductService {
List<Product> getAll();
}
| 14.071429 | 54 | 0.781726 |
fc6739075e00f55324303563c2e3a6929cffc2a5 | 2,650 | package stategraph;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.batfish.datamodel.AbstractRoute;
import org.batfish.datamodel.Prefix;
import org.batfish.log.BgpLog;
import org.batfish.log.BgpLogs;
public class State {
private List<RibIn> ribs;
pri... | 26.767677 | 74 | 0.62566 |
052a8c5f901605a43f9611ea009034e3f2c02bee | 3,378 | package org.literacyapp.handwriting;
import android.content.res.Resources;
import android.media.MediaPlayer;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import org.literacyapp.contentprovider.ContentProvider;
import org.literacyapp.conten... | 32.480769 | 98 | 0.695678 |
195b36531b7e4bf932e995680a97e675f6bfee8c | 856 | package com.nacid.regprof.web.model.applications.report.internal;
import com.nacid.bl.NacidDataProvider;
import com.nacid.bl.impl.applications.regprof.RegprofTrainingCourseDetailsImpl;
import com.nacid.regprof.web.model.applications.report.base.RegprofTrainingCourseForReportBaseWebModel;
//RayaWritten----------------... | 57.066667 | 154 | 0.71028 |
71c8a8b3de1b2af062bc4b8f860cc415c93f411e | 825 | package model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown = true)
public class Comment {
public final Integer id;
public final User author;
public final Post post;
public final Comment parent;
public final String content;
public final Strin... | 28.448276 | 101 | 0.65697 |
a32cff828a1516dba1659012799745c8a3c6f132 | 1,534 | package dev.controller;
import dev.entity.User;
import dev.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.annotation.Secured;
import org.springframework.web.bind.annotation.*;
import j... | 30.078431 | 83 | 0.689048 |
abeeb412acf0247fd70d7d4d56aa42d326e95da3 | 500 | package com.duiyi.util;
import java.util.List;
import com.duiyi.domain.Customer;
public class JSONUtil {
public static String listToJsonString(List<Customer> custList) {
if (custList == null || custList.isEmpty()) {
return "";
}
StringBuffer buff = new StringBuffer();
buff.append("[");
for (Customer cu... | 20.833333 | 65 | 0.65 |
69e00e37e6eb1e545e64b9b2db03acb34502c28e | 1,606 | package es.udc.paproject.backend.rest.dtos;
public class SportTestSummaryDto {
private Long id;
private String name;
private Long sportTestTypeId;
private Long provinceId;
private Long testStart;
private Long averageRating;
public SportTestSummaryDto() {}
public SportTestSummaryDto(L... | 22 | 91 | 0.627646 |
09c1d1ca4eaf1923dad478e9a680aa4abba02bcd | 2,538 | /*
* Copyright © 2009 HotPads (admin@hotpads.com)
*
* 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... | 35.746479 | 92 | 0.795902 |
42e9b264cf9e7e3edd822c6646306ac118ec190f | 2,361 | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot.commands;
import edu.wpi.first.math.geometry.Rotation2d;
import edu.wpi.first.math.kinematics.SwerveM... | 29.5125 | 89 | 0.714104 |
f371b35bd754c2eef8050f5da84792ce564d17ca | 8,473 | package vu.cornetto.dwn;
import org.xml.sax.helpers.DefaultHandler;
import org.xml.sax.SAXParseException;
import org.xml.sax.SAXException;
import org.xml.sax.InputSource;
import org.xml.sax.Attributes;
import javax.xml.parsers.SAXParserFactory;
import javax.xml.parsers.SAXParser;
import java.util.HashMap;
import java... | 40.932367 | 99 | 0.493332 |
99867ff89a333b17a63dcbf314b9f75940d85ee5 | 704 | package org.codehaus.jet.hypothesis.io.readers;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.fail;
/**
*
* @author Mauro Talevi
*/
public class DefaultReaderProviderTest {
@Test
public void canHandleReader... | 25.142857 | 81 | 0.673295 |
66579ca2b033e938259b7bc76915146b5233b59e | 3,882 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
// Source File Name: TrainingInfo.java
package edu.msu.cme.rdp.readseq.utils.orientation;
import java.io.*;
// Referenced classes of package edu.msu.cme.rdp.reversee... | 28.755556 | 91 | 0.5966 |
b63e7c66dead0c254711e1f56e0a0d960d9628d5 | 2,145 | package org.orienteer.camel.tasks;
import org.orienteer.core.OrienteerWebApplication;
import org.orienteer.core.tasks.ITaskSession;
import org.orienteer.core.tasks.OTaskSessionRuntime;
import org.orienteer.core.util.OSchemaHelper;
import com.orientechnologies.orient.core.db.ODatabaseSession;
import com.orientechnolog... | 33 | 101 | 0.778089 |
7fdd310e2f947b17a9807ca5b4e9606a70521958 | 2,863 | package com.bitprogress.exception;
import com.bitprogress.auth.base.AuthException;
import com.bitprogress.auth.base.Result;
import org.springframework.boot.autoconfigure.web.ErrorProperties;
import org.springframework.boot.autoconfigure.web.ResourceProperties;
import org.springframework.boot.autoconfigure.web.reactive... | 42.731343 | 146 | 0.741181 |
7888c0efff9089cff0fb5c6d03361b2474ca670d | 2,645 | package com.builtbroken.test.as.accelerator.connection;
import com.builtbroken.atomic.content.machines.accelerator.data.TubeConnectionType;
import com.builtbroken.atomic.content.machines.accelerator.data.TubeSide;
import com.builtbroken.atomic.content.machines.accelerator.data.TubeSideType;
import net.minecraft.util.E... | 36.232877 | 108 | 0.666919 |
e84017623cbb73d776c2c162669fab8e43ffd3e6 | 835 | package featurescomparison.workingwithcellsrowscolumns.iterate.java;
import java.io.FileInputStream;
import java.io.InputStream;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi... | 28.793103 | 87 | 0.736527 |
1461069105f05c455a1d4d315cff3b6b3c108c10 | 15,121 | /*
* 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... | 48.620579 | 137 | 0.672376 |
ecbdb5de26d4542cf8a18528c031b54fe150ef62 | 763 | package org.jnew.features.j9.langandlib;
import java.time.LocalDate;
import java.time.Period;
import java.time.Year;
import java.util.stream.Stream;
public class DatesUntil {
public static void main(String... args) {
LocalDate start = LocalDate.of(2017, 12, 1);
Stream<LocalDate> dates = start.dat... | 28.259259 | 92 | 0.622543 |
2eee57fe255555f3d94c90255379eaeae78271f6 | 1,608 | package ru.stqa.pft.addressbook.tests;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import ru.stqa.pft.addressbook.model.ContactData;
import java.util.Arrays;
import java.util.stream.Collectors;
import static org.hamcrest.CoreMatchers.*;
import static org.hamcrest.MatcherAssert.*;
... | 36.545455 | 160 | 0.699005 |
cc5f01aebca9f1b470926c0b58eca1557c70bfeb | 499 | package concurrent.comcurrent;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
/**
* TODO 类的功能描述。
*
* @author liming
* @version 2.2.0
* @date 2014-08-12 10:50
* @id $Id$
*/
public class BlockingQueueTest {
public static void main(String[] args) throws InterruptedExc... | 19.192308 | 70 | 0.693387 |
636380914b5b9763776bd9db068c13dc5184bfce | 11,968 | /**
* Copyright (C) 2014 Kasper Kronborg Isager.
*/
package dk.itu.donkey;
// General utilities
import java.util.List;
// SQL utilities
import java.sql.SQLException;
/**
* The Query class is used for executing Data Manipulation Language (DML)
* statements against a database and returns {@link Row}-representation... | 27.015801 | 80 | 0.641461 |
06f0cffe49958ffb76a07263b708a899e2e96eaf | 16,982 | package com.xht.android.myweibo.mode;
import android.app.Activity;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.text.Html;
import android.text.SpannableString;
import an... | 50.996997 | 182 | 0.613532 |
6b5493bf916fd5cd3114bd4a14b232d7379f23b8 | 5,875 | /**
Copyright (c) 2012-2014 Microsoft Corporation
Module Name:
AST.java
Abstract:
Author:
@author Christoph Wintersteiger (cwinter) 2012-03-15
Notes:
**/
package com.microsoft.z3;
import com.microsoft.z3.enumerations.Z3_ast_kind;
/**
* The abstract syntax tree (AST) class.
**/
public class AS... | 22.003745 | 88 | 0.536681 |
7fea0aa13f52443cfb1ce11f9bbbc6a09046e05a | 1,943 | package net.xpece.android.support.preference;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.InsetDrawable;
import android.os.Build;
import androidx.annotation.NonNull;
/**
* Before Lollipop insets didn't count to intrinsic size. This class aims to fix this ... | 35.327273 | 160 | 0.700463 |
0a29886ac7e45f57268a57d6e22f8e8b13aa40e2 | 555 | package com.shooting-bus;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.transa... | 30.833333 | 78 | 0.848649 |
f878022d5166bb993432fe49f103df2ec490eac6 | 542 | package org.apache.eagle.hadoop.queue.model.scheduler.fair;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public class FairSchedulerWra... | 25.809524 | 63 | 0.774908 |
f9b2aa2081caeb3edfe530c928e766ccb2d1d005 | 9,172 | /*
* 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 ... | 61.972973 | 127 | 0.758286 |
e309e0791d4913c1207f66db737287a679eedfb8 | 9,664 | package io.blueocean.ath.sse;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.blueocean.ath.BaseUrl;
import io.blueocean.ath.JenkinsUser;
import org.glassfish.jersey.client.authentication.HttpAuthenticationFeature;
import org.glassfish.jersey.media.sse.EventListener;
import org.glassfish.jersey.media.sse... | 30.582278 | 144 | 0.664011 |
1e358db783f62e4b828117a52ec1e7a79884276e | 4,160 | /**
* <a href="http://www.openolat.org">
* OpenOLAT - Online Learning and Training</a><br>
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at the
* <a href="http://www.apache... | 38.518519 | 144 | 0.758413 |
4b8d622ab50a0e17c93f8d909cef4cbcdadfab2a | 8,661 | /*
* 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... | 42.665025 | 123 | 0.615402 |
fba5d43601168b9448db338b4c2ec8cf36db6bb2 | 1,534 | package pixlepix.auracascade.lexicon.page;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.util.ChatComponentTranslation;
import net.minecraft.util.ChatStyle;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft... | 32.638298 | 172 | 0.728814 |
deb065738727d2d8c99297c442e9b86b3af27fe6 | 1,278 | package me.giraffetree.java.boomjava.alg.sort.practice.second;
import me.giraffetree.java.boomjava.alg.sort.SortUtils;
import java.util.Arrays;
/**
* 09:25 ~ 09:57
* 想了蛮久的
* 大概能记起来怎么做, 但是具体细节都忘光了
* 还可以,最后写出来了, 最重要的是 partition 函数
*
* @author GiraffeTree
* @date 2020/1/21
*/
public class QuickSort {
publi... | 20.612903 | 62 | 0.478873 |
d9070df5a0f25e21a6aedffc6a532ca68c550fea | 3,221 | /*
* Copyright (C) 2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 33.206186 | 94 | 0.708165 |
ddcb226a1a71193d84a31da9dc745486dcdcb3d7 | 7,422 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.02.08 at 03:02:... | 35.175355 | 186 | 0.667475 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.