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 |
|---|---|---|---|---|---|
4bee67ce37d43cd42644c4ede9180acedf8554f1 | 1,523 | package org.eatsy.appservice.service;
import org.eatsy.appservice.model.RecipeModel;
import java.util.List;
/**
* Interface for interacting with recipes
*/
public interface RecipeFactory {
/**
* Retrieves all recipe model objects.
*
* @return The list of all recipe model objects that exist.
... | 33.108696 | 109 | 0.688772 |
632c60988a0383e51e006cfd31aa380cef168c7d | 4,193 | package me.sam.czxing;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.drawable.BitmapDrawable;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android... | 29.95 | 92 | 0.5886 |
1de63ea6b0dbf0a7125f91f55bb321c576fe211d | 1,686 | /*
* 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... | 41.121951 | 123 | 0.794781 |
58fd62c74c113edea921a86b9edef7627cf1c1db | 320 | package com.example.system;
import org.springframework.stereotype.Component;
import javax.annotation.PreDestroy;
/**
* @Auther: Administrator
* @Date: 2018/10/24 15:49
* @Description:
*/
@Component
public class PreDestory {
@PreDestroy
public void destory(){
System.out.println("程序退出");
}
}
| 15.238095 | 48 | 0.6875 |
40dda4adec952d4e9c2cb631fd34942361e4c11d | 3,656 | package cn.compose.admin.entity;
import java.io.Serializable;
import java.util.Date;
public class Source implements Serializable {
private Long id;
private Long sourceGroupId;
private String sign;
private String name;
private Integer partitionNumber;
private Integer replicationFactor;
... | 24.211921 | 84 | 0.628556 |
08c86dd1e56d9da6d00d98ac177949bd21f63453 | 80,790 | /*
* 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 ... | 44.31706 | 129 | 0.760032 |
fcd4225dccb40d67fa41bd64e49bab79851f1a56 | 536 | package xyz.model;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
public class User {
@NotBlank
private String name;
@Max(value = 18)
@Min(value = 10)
private Integer age;
public String getName() {
ret... | 16.242424 | 45 | 0.623134 |
7ffbcc90b5a6ff5332876c72225574118f02d6e4 | 5,583 | package com.arcussmarthome.ipcd.server;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.Channel;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelOption;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.socket.SocketChannel;
import io.netty.channel.socket.nio... | 28.927461 | 125 | 0.732581 |
741d7bf377c2d8bcfab0c9536b474aab5805238c | 61 | package com.example.lucas.buseye;
public class Terminal {
}
| 12.2 | 33 | 0.770492 |
ebd54604bff587ab1f7ae77c18d434590683ac23 | 6,328 | package frc.robot.subsystems;
import org.photonvision.PhotonCamera;
import org.photonvision.targeting.PhotonTrackedTarget;
import edu.wpi.first.wpilibj2.command.SubsystemBase;
import edu.wpi.first.math.controller.PIDController;
import edu.wpi.first.math.util.Units;
import frc.robot.Constants;
import frc.robot.utility.... | 27.876652 | 134 | 0.615202 |
5ea51f9e13befb854b62984bca03d6fdc3479246 | 8,008 | package com.mobgen.halo.android.content.mock.instrumentation;
import android.support.annotation.NonNull;
import com.mobgen.halo.android.content.mock.dummy.DummyItem;
import com.mobgen.halo.android.content.models.HaloContentInstance;
import com.mobgen.halo.android.content.models.Paginated;
import com.mobgen.halo.andro... | 41.278351 | 157 | 0.594031 |
6e07eefffeb4749ffab1f8b6179afe07e662b445 | 3,078 | package com.lodz.android.agiledev.ui.idcard;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.TextView;
import com.lodz.android.agiledev.R;
import com.lodz.android.comp... | 30.176471 | 84 | 0.610461 |
0cccc72b8a32739c23f04f18e90bec8e6ed3a834 | 12,549 | package de.emaeuer.environment.pong;
import de.emaeuer.environment.AgentController;
import de.emaeuer.environment.math.Vector2D;
import de.emaeuer.environment.pong.configuration.PongConfiguration;
import de.emaeuer.environment.pong.elements.Ball;
import de.emaeuer.environment.pong.elements.Paddle;
import java.util.Ar... | 40.092652 | 183 | 0.635349 |
5f82a1a805b2bf8205a6023b85a195320dedc7a5 | 528 | package work.inabajun.filterdemo;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import javax.servlet.DispatcherType;
@Configuration
public class SampleConfiguration {
@Bean
... | 26.4 | 69 | 0.75947 |
51c416173fb61addf7568ab34a30df14873266c9 | 1,282 | package enhancedstream;
import java.io.DataInputStream;
import java.io.IOException;
import java.io.InputStream;
public class EnhancedInputStream extends DataInputStream {
public EnhancedInputStream(InputStream in) {
super(in);
}
public int readCmpInt() throws IOException {
int a = 0;
... | 22.103448 | 58 | 0.460218 |
1ead7ee52a9a516ecfdb8d9d17b11b23c8e54217 | 1,679 | package ru.ospos.npf.commons.domain.document.regcard;
import lombok.Getter;
import lombok.Setter;
import ru.ospos.npf.commons.domain.base.FileStorage;
import javax.persistence.*;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Objects;
@Getter
@Setter
@Entity(name = "RegistrationCardFil... | 27.983333 | 93 | 0.712924 |
2f44e83971051a900265f44e373d1ac37192cd7b | 977 | package com.ibm.lab.stock.repository.vo;
public class StockOrderHistoryVo {
private String productName;
private String adjustmentType;
private Long qty;
private String orderId;
public StockOrderHistoryVo() {
}
public StockOrderHistoryVo(String productName, String orderId, String adjustmentType, Long qty) {... | 18.092593 | 98 | 0.74002 |
fe2ebf907e0d7fb9035cc46c6171df7f19c4f0cd | 6,176 | /*
*
* 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 n... | 40.631579 | 100 | 0.756801 |
22bb522c0deb1781fb2a5a55388d544ff0895aef | 721 | package p5;
public class P5D {
public static void main(String[] args) {
char[][] grid = new char[6][5];
char nextChar = 'a';
for(int row = 0; row < grid.length; row++ ) {
for( int col = 0; col < grid[0].length; col++) {
grid[row][col] = nextChar;
... | 24.033333 | 61 | 0.385576 |
f33159bbaae05b601ade591b30f77755ba57cf39 | 2,723 | package co.airy.mapping;
import co.airy.mapping.model.Image;
import co.airy.mapping.model.Text;
import co.airy.mapping.sources.google.GoogleMapper;
import org.junit.jupiter.api.Test;
import org.springframework.util.StreamUtils;
import java.nio.charset.StandardCharsets;
import static org.hamcrest.MatcherAssert.assert... | 57.93617 | 934 | 0.795813 |
c08335d48cb91c584afcacbc025e99a56ba2eb2c | 773 | package com.lara;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;
import java.sql.SQLException;
public class Manager5 {
public static void main(String arg[])
{
Connection con=null;
Statement st=null;
ResultSet rs=null;
try
{
con=Manager3.getConnect... | 19.820513 | 48 | 0.5511 |
d90b93ff211068e274b681bc9bff186484184f1b | 2,163 | package Jtrdr;
import java.awt.Color;
import java.awt.Component;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;
import javax.swing.JButton;
import javax.swing.JInternalFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
imp... | 36.05 | 147 | 0.704577 |
4d88aafc160a1afb12d8b64f1d94d488e5fe2fb0 | 3,408 | /*
* Tencent is pleased to support the open source community by making BK-JOB蓝鲸智云作业平台 available.
*
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
*
* BK-JOB蓝鲸智云作业平台 is licensed under the MIT License.
*
* License for BK-JOB蓝鲸智云作业平台:
* ----------------------------------------------... | 38.727273 | 116 | 0.676056 |
74fc607fe3d05514c498412ce667c9b9dd1e65a1 | 5,000 | package org.pcap4j.packet;
import static org.junit.Assert.*;
import java.net.Inet6Address;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
... | 31.847134 | 99 | 0.6976 |
440edcaff181ce786e2c78971466a01598652b54 | 7,279 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.apollographql.apollo.internal.subscription;
import com.apollographql.apollo.subscription.OperationServerMessage;
import java.util.concurrent.E... | 40.438889 | 189 | 0.640473 |
ee013a071f349e58b62b3fef51fc642a78bf0089 | 1,237 | package com.temelt.schmgt.web.entity.yonetim;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
imp... | 22.907407 | 99 | 0.651576 |
1e8c37f90c895d934f1fd23876862ece645cac0e | 2,662 | package org.folio.services;
import static java.util.stream.Collectors.groupingBy;
import static java.util.stream.Collectors.toList;
import static org.folio.invoices.utils.HelperUtils.buildIdsChunks;
import static org.folio.invoices.utils.HelperUtils.collectResultsOnSuccess;
import static org.folio.invoices.utils.Helpe... | 40.333333 | 124 | 0.764838 |
13ed6fe54b1f9a1ff9bbc8347e1c2428b7a49a9f | 542 | // recursive solution
public class Solution {
public double pow(double x, int n) {
if (n == Integer.MIN_VALUE) {
if (Math.abs(x) > 1.0) return 0.0;
else return x * pow(x, Integer.MAX_VALUE); // abs(Integer.MIN_VALUE) - 1 = Integer.MAX_VALUE
}
if (n == 0 || Math.abs(x ... | 33.875 | 104 | 0.472325 |
31c9c1294b8914c5c609ed3384246b80d8aac524 | 6,255 | package com.ybj366533.videolib.videoplayer;
import android.view.Surface;
import com.ybj366533.videolib.utils.LogUtils;
import java.lang.ref.WeakReference;
/**
* Created by YY on 2018/1/23.
*/
public class VideoPlayer {
public interface IYYVideoPlayerListener {
void onPrepared(VideoPlayer player);
... | 24.433594 | 97 | 0.607514 |
1af583b11a8c6f0b169ec509caefde18bb0d36ef | 2,063 | package com.majors.paranshusinghal.krishi;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import org.json.JSONObject;
... | 29.471429 | 113 | 0.638875 |
08f6d1b3abc16734a6b9d594bc149b7e1551f714 | 7,709 | package to.ares.gamecenter.games.snowwar.objects;
import to.ares.gamecenter.games.snowwar.room.SnowWarRoom;
import to.ares.gamecenter.games.snowwar.stages.SynchronizedStage;
import to.ares.gamecenter.util.MathUtil;
import to.ares.gamecenter.games.snowwar.room.pathfinding.*;
public class SnowBallObject extends BaseObj... | 28.872659 | 203 | 0.527046 |
1186f37af9dc61c74bb91862974ff61f6129f954 | 13,551 | /*
* Copyright (C) 2014 Ali-Amir Aldan.
*
* 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 agr... | 28.831915 | 121 | 0.678695 |
b8dd85f964a6a2f45c2c0f0d885076197dc97dc6 | 2,370 | import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class DataBase {
private Connection con;
private Statement statement;
private String db = "";
public DataBase(String db) {
this.db = db;
}
p... | 24.183673 | 77 | 0.6173 |
ef28f66986973c94ca416ca41757aa8f1294314f | 556 | package com.fame.zbw;
import com.zbw.fame.service.OptionService;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
/**
* @author zhangbowen
* @since 2019/6/24 10:44
*/
@Slf4j
public class OptionServiceTests extends BaseTests {
@Autowired
... | 19.857143 | 62 | 0.690647 |
9bae369b84ad46f41c9d38745dd318d320efbba0 | 8,437 | package api.version_2_2_0.trackstestdata;
import api.version_2_2_0.tracks.TracksApi_v2_2;
import api.version_2_2_0.tracks.entity.TracksContext_v2_2;
import api.version_2_2_0.wunderlist.appasapi.Project;
import api.version_2_2_0.wunderlist.appasapi.Todo;
import api.version_2_2_0.wunderlist.appasapi.Wunderlist;
import a... | 38.35 | 125 | 0.607562 |
47ae78ff7a0390eac41916929e2609e08edfd960 | 237 | /**
* Provides smoothing techniques for transforming raw classifier
* scores into calibrated probabilities. Includes implementations, utilities
* builders, and abstract classes
*/
package com.dsi.parallax.ml.classifier.smoother; | 39.5 | 77 | 0.78903 |
981d499f5197e48ae7cce47a0ae003f6fbc3a75a | 1,562 | /*
* JBoss, Home of Professional Open Source
* Copyright 2013, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not us... | 27.403509 | 75 | 0.689501 |
dcb9a007bbfc8c3ebb500d89840ccd40d00dc13b | 518 | package com.luxoft.cddb.services;
import java.util.Optional;
import org.springframework.security.core.userdetails.UserDetailsService;
import com.luxoft.cddb.beans.user.UserBean;
public interface IUserService extends IDefaultService<UserBean>, UserDetailsService {
public Optional<UserBean> findByName(St... | 25.9 | 86 | 0.783784 |
35bd3506cfd86d1932559617016912a5df9b0424 | 2,874 | /*
* 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... | 23.95 | 91 | 0.599165 |
5176f0f243cdc7367391c9f4662dfaafd12e1d00 | 889 | package mx.code.challenge.bowling.domain;
public class BowlDomain {
private Integer frame;
private String name;
private Integer pinfalls;
private Integer score;
private Integer hit;
private Boolean fault;
public Integer getFrame() {
return frame;
}
public void setFrame(Integer frame) {
this.frame = f... | 17.431373 | 44 | 0.699663 |
7d27e637cc42a43949f436c104142d99e635a47a | 1,406 | /**
* Copyright (C) 2006-2019 Talend Inc. - www.talend.com
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless requi... | 38 | 96 | 0.72973 |
a3440ab4b3b2d966dde4273d3202ed0ebfeeb3ce | 11,486 | package com.zdd.myutil.bluetooth;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothProfile;
import android.bluetooth.BluetoothSocket;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import and... | 40.875445 | 116 | 0.539439 |
00bc44ff2001cf7918919e4615ff4bde54714ce1 | 794 | package ua.dirproy.profelumno.loginout.models;
import com.avaje.ebean.Model;
/**
* Created by facundo on 3/11/15.
*/
public class FacebookLogger extends Model {
private String fb_email;
private String fb_name;
private String fb_surname;
public String getFb_email() {
return fb_email;
... | 19.85 | 54 | 0.59194 |
66bb0d1cd43053f5d5b8f4c94d8df864c6bbb70e | 2,072 | /*
* Copyright 2020 Google LLC
*
* 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 applicable law or agreed to ... | 35.118644 | 91 | 0.704151 |
43913bc94a2e393f4ff7f0da4036c6f4dc7b8c15 | 3,485 | package havis.middleware.ale.core.depot.service.pc;
import havis.middleware.ale.base.exception.DuplicateNameException;
import havis.middleware.ale.base.exception.ImplementationException;
import havis.middleware.ale.base.exception.NoSuchNameException;
import havis.middleware.ale.base.exception.ValidationException;
impo... | 24.201389 | 78 | 0.694692 |
cc7d99d0de88147f1c2cdd162799a37f5ded69da | 2,267 | package com.sflpro.notifier;
import com.sflpro.notifier.services.notification.NotificationProcessingService;
import com.sflpro.notifier.services.notification.push.PushNotificationSubscriptionRequestProcessingService;
import com.sflpro.notifier.services.system.event.ApplicationEventDistributionService;
import org.sprin... | 52.72093 | 179 | 0.75783 |
93e451a5773c6241e7fa2e7bfdd4d3fe767d106e | 16,821 | /*
* This file is part of ELKI:
* Environment for Developing KDD-Applications Supported by Index-Structures
*
* Copyright (C) 2019
* ELKI Development Team
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the... | 28.704778 | 141 | 0.579216 |
2c1d2d818e9c68acd29f43ccf7152e1e2073e7fa | 636 | /*
* Decompiled with CFR 0.150.
*/
package us.myles.viaversion.libs.fastutil.objects;
import java.io.Serializable;
import us.myles.viaversion.libs.fastutil.objects.Object2IntFunction;
public abstract class AbstractObject2IntFunction<K>
implements Object2IntFunction<K>,
Serializable {
private static final long s... | 21.931034 | 71 | 0.731132 |
9b6bbbb9b47d48b38636d74c76a54c042fc51045 | 2,711 | package com.example.practical_4;
public class TemeratureConverter {
private String source,destination;
double firstNumber,secondNumber;
public TemeratureConverter(String source, String destination, double firstNumber) {
this.source = source;
this.destination = destination;
this.fi... | 33.060976 | 87 | 0.389155 |
129b3e582ca01cf234f4a1fdf9c9d73c97cf9d93 | 3,050 | package yc.com.english_study.study_1vs1.model.bean;
import android.os.Parcel;
import android.os.Parcelable;
import com.alibaba.fastjson.annotation.JSONField;
/**
* Created by wanglin on 2018/12/19 15:09.
*/
public class SlideInfo implements Parcelable{
private String id;
private String title;
private ... | 21.180556 | 79 | 0.594098 |
bf135728065cca5a89fc2046ec3653d60d89791c | 2,563 | package problems;
import java.util.HashMap;
import java.util.Map;
/**
* https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/description/
* algorithms
* Medium (34.02%)
* Total Accepted: 136.4K
* Total Submissions: 400.1K
* Testcase Example: '[3,9,20,15,7]\n[9,3,15,20,7]'... | 25.63 | 119 | 0.585642 |
107a466e0adf07917f0bd9720ebe2e5dcb61f4d4 | 4,815 | package cz.balikobot.api.model.aggregates;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.stream.Collectors;
import lombok.Data;
import cz.balikobot.api.contracts.Countable;
import cz.balikobot.api.contracts.IteratorAggregate;
import cz.balikobot.api.definitions.Shippe... | 23.719212 | 151 | 0.659398 |
b30092ab7f049ad849e373e583478b6ac4870252 | 96 | package com.hazelcast.test;
public class ExpectedRuntimeException extends RuntimeException {
}
| 19.2 | 64 | 0.84375 |
140a13d1585bb59796700a24e13cd5452f9bb995 | 18,738 | package pokecube.core.items.pokecubes;
import java.util.List;
import java.util.Set;
import java.util.function.Predicate;
import javax.annotation.Nullable;
import com.google.common.collect.Sets;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.resources.I18n;
import net.minecraft.cl... | 41.364238 | 146 | 0.549685 |
ac347249ee45693212ac49f1e13b715d353a0cdf | 8,814 | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.content_shell_apk;
import static org.chromium.base.test.util.ScalableTimeout.scaleTimeout;
import android.annotation.TargetApi;
imp... | 43.418719 | 99 | 0.680281 |
f55c27e075996c68553801fd6451d8f6a44795a4 | 2,105 | /*
* Copyright 2017 StreamSets 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... | 29.236111 | 104 | 0.719715 |
1064c839e8b00187aab935e710ef2ec2ab73b3cd | 1,816 | package practicaltest01.eim.systems.cs.pub.ro.practicaltest01var02.view;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import practicaltest01.eim.systems.cs.pub.ro.practi... | 32.428571 | 78 | 0.68337 |
18553fe31eebb88924371ef9fa0389b69f23c8e3 | 137 | public class HelloWorld {
public static void main(String[] args) {
System.out.println("give me a bottle of rum!");
}
}
| 17.125 | 55 | 0.620438 |
8df6f83fb860144b65509b5b9b6476b1f2666ba7 | 1,657 | /*
* MIT License
*
* Copyright (c) 2018 Tassu <hello@tassu.me>
*
* 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,... | 36.021739 | 81 | 0.738081 |
c1ee45a3914178849d2b95ccc6d82652f75fff6f | 8,535 | /**
*
* 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 ... | 41.033654 | 141 | 0.56321 |
513514f3f9fce161df38f96e740334ca9aad7d46 | 2,970 | /**
* @class RMEPUBSearchItem.java
* @date 2014-3-12
* @copyright 版权(C)重庆软媒科技有限公司 2013-2014
* @author vken
*/
package rmkj.lib.read.epub.search;
import java.util.ArrayList;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import rmkj.lib.read.util.LogU... | 23.385827 | 69 | 0.651515 |
5b8a3807da4ef8d2450721a90a3f35d33fee2560 | 1,197 | package domainTests;
import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import carPool.domain.GeoPosition;
public class TestGeoPosition {
private static Logger logger = LoggerFactory.getLogger(TestGeoPosi... | 27.204545 | 90 | 0.734336 |
026f027948b3ea20347dfed0e6454ed3b921bf1d | 1,470 | package de.naclstudios.btj.components;
import de.edgelord.saltyengine.components.Component;
import de.edgelord.saltyengine.core.graphics.SaltyGraphics;
import de.naclstudios.btj.B4TJEntity;
public abstract class EnemyMovement< T extends B4TJEntity> extends Component< T > {
public static final String TAG = "de.na... | 23.709677 | 105 | 0.623129 |
2f4c5d89a4467d21969961db5af961a67377493d | 684 | /**
*
*
*
*
*
*/
package ecc;
/**
* An abstract elliptic curve point class representing a
* point on the curve as two finite field elements x and y.
*
* @version 0.90
*/
public abstract class ECPoint {
/**
* The x coordinate of the point.
*/
public Fq x;
/**
* The x coordinate of the point.
... | 14.553191 | 62 | 0.595029 |
dacdcf96ccf634fa0b9f4e8332d589d50c35857a | 2,823 | package com.dedicatedcode.paperspace.feeder;
import com.dedicatedcode.paperspace.BinaryService;
import com.dedicatedcode.paperspace.TestHelper;
import com.dedicatedcode.paperspace.model.Binary;
import com.dedicatedcode.paperspace.model.OCRState;
import org.apache.commons.io.FileUtils;
import org.junit.jupiter.api.Befo... | 37.64 | 166 | 0.754162 |
1afeae59477742eca1be3c2a43c066e589130388 | 941 |
package com.simon.service.impl;
import com.simon.common.service.impl.CrudServiceImpl;
import com.simon.mapper.DictTypeMultiLanguageMapper;
import com.simon.model.DictTypeMultiLanguage;
import com.simon.repository.DictTypeMultiLanguageRepository;
import com.simon.service.DictTypeMultiLanguageService;
import lombok.ext... | 33.607143 | 140 | 0.844846 |
045d4b31d0d725fa57fa58831f7e8a44ec165ef2 | 92 | package api.util;
/**
* @author ve
* @date 2020/2/23 22:40
*/
public enum DigestKit {
}
| 10.222222 | 24 | 0.608696 |
6d194472b84d684c816250b06f445645c73d6448 | 1,988 | package com.sleekbyte.tailor.format;
import java.util.Arrays;
import java.util.stream.Collectors;
/**
* {@link com.sleekbyte.tailor.output.ViolationMessage} output formats.
*/
public enum Format {
XCODE,
JSON,
CC,
HTML;
private String name;
private String className;
private String descr... | 26.506667 | 120 | 0.624748 |
7197c79a796c64f539eb488b9d377778abc40092 | 315 | package org.jee.cdi.events;
import javax.enterprise.event.Event;
import javax.inject.Inject;
/**
* @author Radim Hanus
*/
public class GreetingSender implements EventSender {
@Inject
private Event<String> event;
@Override
public void send(String message) {
event.fire(message);
}
}
| 17.5 | 52 | 0.692063 |
4df16796da4eba56e332c6dd1c0f6a99eb0964e5 | 2,494 | package ru.sdetteam.easygauge.models.issue_model;
import com.fasterxml.jackson.annotation.*;
import java.util.HashMap;
import java.util.Map;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"id",
"name",
"label"
})
public class Reproducibility {
@JsonProperty("id")
pri... | 25.44898 | 134 | 0.582598 |
b9824165a339c1cc258f40e39b9a02c65382f530 | 1,962 | package com.karim.examples.java.audit.dal.orm.audit;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import com.karim.exam... | 21.8 | 86 | 0.727829 |
ee242d5d45bbd41fbd57d4a8a96b03022a7c986f | 3,983 | /*
Suggestion Provider for RDP bookmarks
Copyright 2013 Thinstuff Technologies GmbH, Author: Martin Fleisz
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
... | 32.120968 | 119 | 0.750439 |
3cd678959adb73a75273b2dc7517eb19a051303e | 5,707 | /*
* Copyright 2015 Viliam Repan (lazyman)
*
* 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... | 30.036842 | 92 | 0.63536 |
7fae54945eaf53ecf993f9694e9498c4693a5fee | 4,499 | package me.iwf.photopicker.widget;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.support.annotation.IntDef;
import android.support.v7.widget.OrientationHelper;
import android.support.v7.widget.Sta... | 28.11875 | 109 | 0.663036 |
81699e1a98ce0adb31409cd781d0f52a78ea0e07 | 2,187 | /*
* Copyright 2018 Netflix, 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 a... | 37.706897 | 110 | 0.722451 |
7fbe4f3d93e18fc06bc5fc8c164163f134782e2e | 1,766 | /*
* Copyright (c) 2008-2016 MongoDB, 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 a... | 29.932203 | 113 | 0.656852 |
d8e6b1096f2c7bc1f283dd77a75a17601c2ed449 | 2,804 | import javafx.animation.Animation;
import javafx.animation.KeyFrame;
import javafx.animation.Timeline;
import javafx.application.Platform;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;
import javafx.util.Duration;
import java.io.IOException;
publ... | 23.965812 | 97 | 0.689729 |
d8c81297ec79a00e37321dce7228043699e5c339 | 400 | package RunProgram;
import Applikation.Applikation;
/**
* MTG2BEM
*
* @author Barry Al-Jawari
*/
public class MTG2BEM {
public static void main(String[] args) {
String mode = "mtg2bem";
String in = RunProgram.FilePlace + RunProgram.Imagefile + ".mtg";
String ut = RunProgram.FilePlace +... | 21.052632 | 73 | 0.64 |
67ee97a1ecebf65343468ad55e8c5110cf603692 | 4,409 | package com.nhl.dflib;
import com.nhl.dflib.series.IntArraySeries;
import com.nhl.dflib.unit.DataFrameAsserts;
import org.junit.jupiter.api.Test;
import static com.nhl.dflib.Exp.*;
import static org.junit.jupiter.api.Assertions.assertThrows;
public class DataFrame_SelectRowsTest {
@Test
public void testInts... | 27.216049 | 100 | 0.457927 |
e1d79643890a95b036910ca87d54c88b78c1007f | 2,958 | /* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* (C) Copyright 2009-2020, Arnaud Roques
*
* Project Info: https://plantuml.com
*
* If you like this project or if ... | 26.410714 | 76 | 0.659905 |
c6a66a86d0eda3e52d72b18e4368e5150a0eed4d | 1,123 | package ampcontrol.model.training.model.validation.listen;
import org.nd4j.evaluation.classification.Evaluation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.function.Consumer;
import java.util.function.Supplier;
/**
* Logs evaluation results
*
* @author Christian Skärby
*/
public cl... | 28.794872 | 79 | 0.692787 |
ce760d63ac8d9dfdba2e3049efe25e0003ed1dff | 2,038 | package osgl.func;
/*-
* #%L
* OSGL Core
* %%
* Copyright (C) 2017 OSGL (Open Source General Library)
* %%
* 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... | 23.697674 | 75 | 0.610402 |
d3ce915b3347fb67a0d895fbff4ae8a60f04397f | 2,560 | /*
* Copyright 2010 the original author or authors.
* Copyright 2010 SorcerSoft.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.... | 38.208955 | 106 | 0.725391 |
25a30844a32ab26721c3d34869006f0defe57bc2 | 1,563 | package org.xmlet.regexapi;
import java.util.function.Consumer;
public final class SingleLineMode<Z extends Element> implements CustomAttributeGroup<SingleLineMode<Z>, Z>, TextGroup<SingleLineMode<Z>, Z> {
protected final Z parent;
protected final ElementVisitor visitor;
public SingleLineMode(ElementVisitor... | 24.809524 | 141 | 0.678823 |
02d27e1dff406f67714d4f0562a1ce1e7a742a25 | 8,675 | package org.jboss.windup.web.services.rest;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.net.URL;
import java.util.Collection;
import java.util.stream.Collectors;
import javax.ws.rs.client.Entity;
import javax.ws.rs.core.GenericEntity;
import javax.ws.rs.core.MediaType;... | 45.182292 | 144 | 0.709395 |
53a548d651a6eb8f27ad4132d413aa38aefbad2e | 878 | package com.example.demo02.service.imp;
import com.example.demo02.dao.IUser;
import com.example.demo02.entity.User;
import com.example.demo02.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class... | 23.105263 | 122 | 0.751708 |
95f81c06d7bd68f72cd86a83487f732f5e90f480 | 4,189 | package org.springframework.data.tarantool.core.convert;
import org.springframework.core.convert.converter.Converter;
import org.springframework.data.convert.Jsr310Converters;
import org.springframework.data.convert.ReadingConverter;
import org.springframework.data.convert.WritingConverter;
import java.time.*;
import... | 31.977099 | 109 | 0.711387 |
f6c8db87b5fe8930765ad435233833f3dafc9b62 | 4,127 | // Copyright 2020 Fraser McCallum and Braden Palmer
//
// 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... | 32.242188 | 110 | 0.658105 |
1951bc1d08b314a1516f1d6ccf886ab27ce4bcbb | 80 | package com.sample.domain.service;
public abstract class BaseService {
}
| 13.333333 | 36 | 0.7375 |
072504d0a7458762626e55711057393e5c8138d4 | 2,564 | package me.mervin.core.tree;
import java.util.Map;
import me.mervin.core.Attribute;
/**
* Link.java
*
* @author Mervin.Wong DateTime 2014年3月21日 下午6:29:40
* @version 0.4.0
*/
public class Link {
//private Number adjNodeId = 0;//邻接点的ID
private Vertex parent = null;//源节点
private Vertex child = nu... | 19.278195 | 80 | 0.629875 |
da9c036c4d735131b84d9fd76457d93c92501f81 | 6,857 | package com.example.tempus.ui.friends;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import com.applandeo.Tempus.R;
import java.io.BufferedR... | 34.984694 | 116 | 0.571095 |
c287ae8626af6f955a4ea814fd37ce5e7a922b78 | 174 | package util.exception.runtime;
public class IllegalFirstParamException extends RuntimeException{
public IllegalFirstParamException(String message){
super(message);
}
}
| 21.75 | 65 | 0.827586 |
35857a63f0f80e7eb19ffc73d4a50b4ed10e3bc8 | 2,730 | package kr.co.popone.fitts.model.post;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public final class PostCoverImage {
private int coverImageId;
@NotNull
private String coverImagePath;
@NotNull
public stat... | 29.673913 | 169 | 0.593407 |
d1000afd555c57d85c38884f5890bce1ce5d12ef | 899 | package edu.prahlad.dp.sdp.flyweight;
import java.time.Duration;
//Unshared concrete flyweight.
public class UserBannedErrorMessage implements ErrorMessage {
//All state is defined here
private String caseId;
private String remarks;
private Duration banDuration;
private String msg;
public ... | 24.297297 | 64 | 0.631813 |
1e5701da44c1f8b749e26d4015c210072a8096d8 | 2,042 | // 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... | 32.412698 | 95 | 0.726249 |
4c06231f79abfed668251f22040b8af319d74f3d | 2,225 | /*
* 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.887097 | 88 | 0.693933 |
989a45f187a0cb9c1996b0abf29579bb6571cea2 | 2,806 | // 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 ... | 38.438356 | 152 | 0.696365 |
d6053de724eb2eaf4d72b460459999b38e0d7469 | 2,416 | package au.gov.amsa.ais;
import java.io.File;
import java.io.IOException;
import java.util.List;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.Scope;
import org.openjdk.jmh.annotations.State;
import rx.Observable;
import au.gov.amsa.ais.message.AisShipStaticA;
import au.gov.amsa.ai... | 28.761905 | 164 | 0.745861 |
faf9f3c43a5e569998eef7c5bbe4422d96160f4b | 1,213 | public class O16MyPower {
public static double myPow(double x, int n) {
if (n == 0) {
return 1;
}
if (n == 1) {
return x;
}
if (n == -1) {
return 1 / x;
}
double res = myPow(x, n / 2);
double res2 = res * res;
... | 20.559322 | 56 | 0.35202 |
bac337064205c4c322d00db5c37b710d560673c3 | 521 | /*When squirrels get together for a party, they like to have cigars. A squirrel
party is successful when the number of cigars is between 40 and 60, inclusive.
Unless it is the weekend, in which case there is no upper bound on the number
of cigars. Return true if the party with the given values is successful,
or ... | 40.076923 | 80 | 0.68906 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.