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 |
|---|---|---|---|---|---|
96a3356fba7c4a8ceec25d1bf007fd24a48f6a9c | 441 | package com.regent.rpush.dto.enumration;
/**
* 方案值类型
*
* @author 钟宝林
* @since 2021/4/5/005 10:29
**/
public enum SchemeValueType {
AUTO,
INTEGER,
DECIMAL,
STRING,
BOOLEAN,
TEXTAREA,
// ===========以下为特殊处理的类型============
/**
* 接收人分组
*/
RECEIVER_GROUP,
/**
* 接... | 11.605263 | 40 | 0.44898 |
a99662cadb164137308c3549742a407141a35f5b | 586 | package br.com.project.api.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.hateoas.RepresentationModel;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal... | 21.703704 | 65 | 0.800341 |
ccb3bd845ae24d2b80af9436d171ebb5564e3f6e | 827 | import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int t = in.nextInt();
for(int a0 = 0; a0 < t; a0++){
int n = in.nextInt(... | 27.566667 | 68 | 0.449819 |
e999b932b8b2f5e11b2c2af4a4614ac441b6b342 | 966 | package io.delta.sql.parser;
/**
* Fork from <code>org.apache.spark.sql.catalyst.parser.PostProcessor</code>.
* <p>
* @see https://github.com/apache/spark/blob/v2.4.4/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/ParseDriver.scala#L248
*/
public class PostProcessor$ extends io.delta.sql.parser.D... | 53.666667 | 139 | 0.755694 |
c6515dfb8941e0a960d1116c5433135ac1ab998b | 450 | package net.la.lega.mod.item;
import net.la.lega.mod.initializer.LItemGroups;
import net.la.lega.mod.loader.LLoader;
import net.minecraft.item.Item;
import net.minecraft.util.Identifier;
public class RiceOilBottle extends Item
{
public static final Identifier ID = new Identifier(LLoader.MOD_ID, "rice_oil_bottle")... | 26.470588 | 90 | 0.746667 |
ad7961bb12bdc0cded9b302a5fb9a884a9d01681 | 506 | package ml.sun.demo.controller;
import ml.sun.demo.common.CommonResult;
import ml.sun.demo.service.IStudentService;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
@RestController
@RequestMapping("stu")
public class StudentController {
@Resource
private IStudentService ser... | 25.3 | 74 | 0.756917 |
fe554e5d1bc4805164d27a95e4db28df5792a572 | 1,426 | package com.sap.olingo.jpa.processor.core.testmodel;
import java.util.List;
import javax.persistence.CollectionTable;
import javax.persistence.Column;
import javax.persistence.ElementCollection;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import ja... | 24.586207 | 88 | 0.699158 |
daefa57721841e15b1d1c0527a135b395e9debed | 298 | package com.csis3275.group4.repository;
import org.springframework.data.mongodb.repository.MongoRepository;
import com.csis3275.group4.entity.User;
import org.springframework.stereotype.Repository;
@Repository
public interface UserRepository extends MongoRepository<User, String>{
}
| 24.833333 | 71 | 0.812081 |
c117e632afe7280030f5bc3cb17da6229b47fb91 | 930 | package com.jason.se.simple.composite;
import java.util.Arrays;
import java.util.List;
public class CihSort {
public static void main(String[] args) {
int[] arr={2 , 17, 16, 16, 7, 31, 39, 32, 38 , 11};
List<?> list=bubbleSort(arr);
System.out.println(list.get(0));
}
//1.冒泡排序(找出每轮比较的最大的数,往上冒)... | 23.846154 | 54 | 0.539785 |
c1a008c83e2acec6372e01773f9a238393c0072a | 588 | package b.m.a.t;
import b.m.a.r;
import java.util.Comparator;
public class n implements Comparator<r> {
/* renamed from: h reason: collision with root package name */
public final /* synthetic */ r f5976h;
/* renamed from: i reason: collision with root package name */
public final /* synthetic */ ... | 25.565217 | 104 | 0.634354 |
397faeaeef060abaade74bfcf0b3c1b7bcab3c30 | 2,720 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.avs.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jacks... | 28.041237 | 102 | 0.681618 |
4218903baa6fd846851fb0259e6483900fd655b0 | 432 | package FlyWeight;
public class FlyWeightFactory {
private static Map<ReceiptEnum,,Receipt> listReceipe= new HashMap<ReceiptEnum,Receipt>();
public Receipt getReceipt(ReceiptType type) {
Receipt = new Receipt(type);
listReceipe.put(type,receipt);
return receipt;
/* switch(type) {
... | 24 | 94 | 0.625 |
e267a8d9402e25ad2f906d08661e87a9ebd2818d | 1,162 | package org.minijax.rs;
import java.io.IOException;
import java.io.OutputStream;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import java.nio.charset.StandardCharsets;
import jakarta.ws.rs.WebApplicationException;
import jakarta.ws.rs.core.MediaType;
import jakarta.ws.rs.core.MultivaluedMap;... | 33.2 | 136 | 0.707401 |
0fce76441b2f54460ab97e2a4ddc53e7b34f8cd1 | 12,018 | package com.rainbow_umbrella.wopogo_medals;
import android.app.Notification;
import android.app.Service;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.res.Resources;
import android.graphics.PixelForma... | 31.134715 | 115 | 0.667582 |
4212cf9ad98cf2bd6ffa5dacd1322563b92c1203 | 8,945 | /*
*
* Copyright (c) 2013-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 ... | 43.004808 | 108 | 0.683622 |
fb6bea49a2879aa41b86b12c01b4c94b693df5f3 | 2,268 | /*
* Copyright 2020 Haulmont.
*
* 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... | 34.892308 | 136 | 0.711199 |
3d2d1a237bb916e3414033ef99bd62e9bce7f5bc | 1,315 | /*
* Copyright (c) 2020. Adam Arthur Faizal
*/
package Praktikum09Collections;
import java.util.HashMap;
import java.util.Map;
public class HashMap3 {
public static void main(String[] args) {
HashMap<Integer, String> hashMap2 = new HashMap<>();
hashMap2.put(100,"Adam");
hashMap2.put(10... | 34.605263 | 74 | 0.587072 |
fec696235a7d0c5c5ea0cacc1034658ee14a84b8 | 859 | package com.example.fugle_realtime_java_sdk_core.dto.response.chart;
import java.util.List;
public class Chart {
private List<Double> o;
private List<Double> h;
private List<Double> l;
private List<Double> c;
private List<Double> v;
private List<Double> t;
public List<Double> getO() {
return o;
}
publi... | 16.843137 | 68 | 0.641444 |
2597d4205c5c7e7b074783af760db84f17c55570 | 661 | package com.example.pass.view.popWindows.fontstylePopWindows.bean;
import android.graphics.Typeface;
public class TextTypeface {
/**
* 本地ttf文件路径
*/
private String ttf_path;
/**
* 字体样式文字解释
*/
private String text;
public TextTypeface(String ttf_path, String text) {
th... | 17.394737 | 66 | 0.603631 |
fae5e77c18da8d9717460796f8c9d453e37cb209 | 1,423 | package game;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
/** CODE WRITTEN BY: MARY GOONERATNE (@mmg53)
* YouWin() is a object definition to define a scene to be displayed at the victory of
* Breakout game
*
*/
public class YouWin{
... | 28.46 | 114 | 0.668306 |
821e780aadc70b00b36abf96ee6cbee84d15172a | 29,275 | /*
* Copyright 2006-2014 smartics, Kronseder & Reiner GmbH
*
* 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... | 33.883102 | 106 | 0.672758 |
88c23edd9cdc997caf563d0aac4045750cb3b155 | 847 | package wybren_erik.hanzespel.dialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.DialogFragment;
import android.support.v7.app.AlertDialog;
public class ArrivedDialog extends DialogFragment {
... | 32.576923 | 80 | 0.661157 |
cc8b16d9eed119307be41e823f36ca31c77040c4 | 1,262 | package com.chizganov.puzzlers.leetcode.may;
import com.chizganov.puzzlers.util.TestSource;
import org.junit.jupiter.params.ParameterizedTest;
import java.io.BufferedReader;
import java.io.IOException;
import java.nio.file.Path;
import java.util.Arrays;
import java.util.List;
import static java.nio.file.Files.newBuf... | 37.117647 | 111 | 0.692552 |
e226110d8391f589ba4ee7f94814ced13419ef93 | 11,917 | package ssangyong.dclass.seoulexploration.activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.view.MenuItem;
import and... | 36.003021 | 149 | 0.634472 |
48b50ff765e80b9d470acf3f4a25a85814eda0cf | 19,519 | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common
* Development and Distribution License("CDDL") (... | 39.194779 | 132 | 0.554742 |
267ac2bb431cd65da07176d6a5c80904cdae1019 | 4,912 | package com.hbm.items.weapon;
import com.hbm.entity.particle.EntitySSmokeFX;
import com.hbm.entity.projectile.EntityBulletBase;
import com.hbm.handler.BulletConfigSyncingUtil;
import com.hbm.interfaces.IHoldableWeapon;
import com.hbm.items.ModItems;
import com.hbm.lib.HBMSoundHandler;
import com.hbm.lib.Library;
impor... | 29.95122 | 184 | 0.701547 |
d3f3d714c2d8ab0fa231aa18d7b5059354339ff9 | 1,575 | /**
* Copyright (c) 2018, hiwepy (https://github.com/hiwepy).
*
* 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... | 32.142857 | 81 | 0.692698 |
db4b31603920335910fb5fb0e0239f9d7949da0d | 1,328 | package com.builtbroken.icbm.content.launcher.launcher;
import com.builtbroken.icbm.ICBM;
import com.builtbroken.icbm.content.launcher.TileAbstractLauncher;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.t... | 29.511111 | 152 | 0.71988 |
2db48d2ca1fcb57bba7cbe85eedd72545a3315b4 | 3,832 | package edu.cmu.cs.sb.drem;
import edu.cmu.cs.sb.core.*;
import edu.umd.cs.piccolo.nodes.PPath;
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import java.text.NumberFormat;
import java.io.*;
import javax.imageio.*;
import java.awt.image.*;
import edu.... | 26.985915 | 82 | 0.659447 |
1080962750c7b2a52d63ec8c13f2c7ff4cbeb8bf | 3,706 | /*
* 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... | 58.825397 | 126 | 0.796816 |
453e7dbd10e1a5399070aacd73bdedc40bb00725 | 2,285 | package com.stardust.autojs.core.image.capture;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.annotation.RequiresApi;
import com.stardust.app.OnActivityResultDelegate;
... | 33.602941 | 133 | 0.707221 |
d533b59f04f0a0cab2a334af9abdf89745bc58ba | 17,772 | package edu.pse.beast.saverloader;
import java.awt.Component;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import ja... | 42.113744 | 117 | 0.579957 |
a45ca01c5a07ec5ab579f25571c7b7081019659d | 3,034 | /*
* Copyright (c) 2021 Aaron Coburn 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
*
* Unless require... | 36.119048 | 112 | 0.691496 |
4f97c564269bc71407a2b1192a99b3566dbf14c0 | 2,284 | package com.basho.riak.client.core;
import com.basho.riak.client.api.RiakClient;
import com.basho.riak.client.api.RiakCommand;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.mo... | 30.453333 | 109 | 0.720665 |
89952eb814aff2be1c0586df197eead15b0da866 | 6,293 | /*
* Copyright 2021 EPAM Systems
*
* 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 ... | 44.631206 | 136 | 0.791355 |
2f8178c6235824bbfddeabe2d8aa2cec1fc2192d | 8,167 | package com.salesmanager.core.business.modules.cms.product.local;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardCopyOption;
import java.util.List;
import javax.annotation.PostConstruct;
import org.... | 26.26045 | 99 | 0.724501 |
44e073d9cc3a07bf50be3aaa3619d0c93e1b02b0 | 536 | package org.forestguardian.DataAccess.Local;
import com.google.gson.annotations.Expose;
import io.realm.RealmObject;
/**
* Created by emma on 27/07/17.
*/
public class DeviceInfo extends RealmObject{
@Expose
private String firebase_registration_token;
public String getFirebaseRegistrationToken() {
... | 22.333333 | 89 | 0.764925 |
956ad2285f8c8df1a324c3b0dc56fbee9aae340d | 3,418 | package com.example.rachs.tutorapp_mobapde;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.Edit... | 37.977778 | 152 | 0.677297 |
8672a2548e162a022b1d222a0bf696464a7e5af2 | 753 | package com.yikuan.androidcommon;
import android.app.Application;
import android.content.Context;
/**
* @author yikuan
* @date 2019/09/08
*/
public class AndroidCommon {
private static Application sApplication;
private AndroidCommon() {
throw new UnsupportedOperationException("cannot be instantiat... | 24.290323 | 74 | 0.653386 |
3bba1cb997b3462ff7ed6f824fe597c3ab26fb9e | 741 | package org.femtoframework.coin.exception;
/**
* Bean doesn't have expected kind
*
* @author fengyun
* @version 1.00 2009-2-3 14:28:22
*/
public class BeanNotExpectedException extends BeanCreationException
{
public BeanNotExpectedException(String objectName, Class objectType, Class expectedType)
{
... | 26.464286 | 97 | 0.669366 |
dc0a333a06fb36cebbc1a6f71fb81d0c14f5362d | 12,549 | /*
* 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.144262 | 110 | 0.52817 |
f899b71162dbb2cc76da3b77589d4db4d37583d4 | 2,276 | package com.workhub.z.servicechat.entity;
import java.util.Date;
import java.io.Serializable;
/**
* 字典词汇表(ZzDictionaryWords)实体类
*
* @author makejava
* @since 2019-05-17 14:56:57
*/
public class ZzDictionaryWords implements Serializable {
private static final long serialVersionUID = -16442401804845507L;
/... | 19.62069 | 69 | 0.623462 |
ad7303e26b6737eb8c8fe3587f46d39f49cf542d | 3,076 | package net.powermatcher.examples;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;
import org.osgi.service.component.annotations.ReferenceCardinality;
import org.osgi.service.component.annotations.ReferencePolicy;
import org.osgi.service.metatype.annota... | 38.936709 | 117 | 0.705462 |
3cbcdf735df4e8b916491b04d9f9cb0e57d289ce | 4,694 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 35.560606 | 84 | 0.558585 |
53e2f99f69d9e0986cc87faa7f5994c77b211ee7 | 1,486 | /*
* 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
* distribut... | 31.617021 | 75 | 0.701211 |
3637bb2da93f0e515ade8d2746851d85afd076a4 | 4,101 | /*
* 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 ... | 28.678322 | 170 | 0.703975 |
1b81cf093c0bd2713e278a9260ef290e85a41411 | 6,227 | /*
* JBoss, Home of Professional Open Source.
* Copyright 2006, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify i... | 31.933333 | 106 | 0.669825 |
c2f02e5562448c2a58c8ec80cb01ef7b10b08945 | 1,843 | ////////////////////////////////////////////////////////////////////////////////
//
// Created by NUebele on 10.08.2018.
//
// Copyright (c) 2006 - 2018 FORCAM GmbH. All rights reserved.
////////////////////////////////////////////////////////////////////////////////
package com.forcam.na.ffwebservices.model.workplace;... | 36.86 | 148 | 0.539881 |
9813c865b6fc66ecab82000e48b4bba24e1ec277 | 539 | package org.jboss.resteasy.test.microprofile.restclient.resource;
import javax.enterprise.context.ApplicationScoped;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.core.Response;
@Path("/thePatron")
@ApplicationScoped
public class FollowRedirectsResource {
@Path("redirected")
@GET
pu... | 21.56 | 65 | 0.710575 |
ec0ed07c1765a07773af9b60daa3cfb75a893397 | 66,444 | /*
* 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... | 56.644501 | 259 | 0.738426 |
f30aa28558b8d81f46da51816f0dec72e0a1321a | 4,338 | package simpledb.execution;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import simpledb.common.Type;
import simpledb.storage.Field;
import simpledb.storage.IntField;
import simpledb.storage.Tuple;
import simpledb.storage.TupleDesc;
import simpledb.storage.TupleIterator;
/**
* Knows ho... | 37.721739 | 114 | 0.665053 |
0e42b3d3e4520ea8c020c075f9d7d1865c8785bb | 1,770 | package org.sandcast.canopy.config;
import java.util.ArrayList;
import java.util.List;
public class Recipe {
private List<List<String>> layout = new ArrayList<>();
private List<String> biomes;
private Builder builder;
private Boolean randomRotation = true;
private String name;
... | 22.987013 | 62 | 0.586441 |
300258bebb8c38ad4301d6bbb3cc6ad352cfff93 | 17,701 | package fi.aalto.dmg.frame;
import api.datastream.NoWindowJoinedStreams;
import fi.aalto.dmg.exceptions.UnsupportOperatorException;
import fi.aalto.dmg.exceptions.WorkloadException;
import fi.aalto.dmg.frame.functions.*;
import fi.aalto.dmg.frame.functions.FilterFunction;
import fi.aalto.dmg.frame.functions.FlatMapFun... | 45.857513 | 170 | 0.592791 |
0a241e8f12bb31bfc51a7afe31bcdf7e3b343e00 | 3,566 | /*
* 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 ... | 32.715596 | 88 | 0.655356 |
7b54742f4abac1a234c0292b4a7ca16dd9f1198a | 3,996 | package Fonts;
import java.awt.Font;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
public class FontRender {
public static Font getProgressStyle() {
try {
InputStream myStream = new BufferedInputStream(
... | 36 | 112 | 0.584334 |
6330e0732452d44b7639c3ab9d6a4c4114de2493 | 1,061 | package postprocessor;
enum ErrorType {
SYNTAX("syntax", 10.0),
SEMANTIC("semantic", 1.0),
STYLE("style", 0.1);
private final String type;
private final double deductedMarks;
ErrorType(String type, double deductedMarks) {
this.type = type;
this.deductedMarks = deductedMarks;
... | 24.674419 | 77 | 0.589067 |
878c3fe011cd35e5291294385d4210db887223a3 | 1,531 | package com.scaleunlimited.flinkcrawler.functions;
import java.util.Collections;
import org.apache.flink.configuration.Configuration;
import org.apache.flink.streaming.api.functions.async.ResultFuture;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.scaleunlimited.flinkcrawler.pojos.RawUrl;
impor... | 29.442308 | 93 | 0.714566 |
4da008994b3e9729ac859c647cac28b0dae0b86c | 364 | package cn.laoshini.dk.domain.common;
import java.io.Serializable;
import java.util.List;
import lombok.Data;
/**
* @author fagarine
*/
@Data
public class MethodDescriptor implements Serializable {
private static final long serialVersionUID = 1L;
private String name;
private String comment;
pri... | 15.826087 | 55 | 0.733516 |
bcd66ce94acfb643a3ac82d5e60ea5161353df8b | 9,116 | package fi.vtt.moodtracker;
import android.app.Activity;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardwar... | 38.464135 | 106 | 0.646994 |
01538147c7c89a4071dc4e0de9a838b8820cf083 | 5,301 |
/*
* This file is public domain.
*
* SWIRLDS MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
* THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
* TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
* PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SWIRLDS SHALL NOT BE LIABLE FO... | 35.34 | 170 | 0.732692 |
cbfdb35e5be822391c9af6f7dc353fd0a9b8ad89 | 472 | package com.supervisor.sdk.pgsql.statement;
import com.supervisor.sdk.datasource.Base;
import java.util.Arrays;
public final class PgDeleteSingleStatement extends PgStatementUpdatable {
public PgDeleteSingleStatement(final Base base, final String tableName, final Long id) {
super(base, statement(tableName), Arra... | 26.222222 | 89 | 0.775424 |
aba08fd155ebfd8cbb558db1cd4ad5e8b63bb39e | 1,462 | /*******************************************************************************
* Copyright (c) 2004, 2007 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is av... | 21.820896 | 81 | 0.601231 |
c579eb0961f6e774c4fa0cd740338783a7341ed8 | 1,490 | /**
* Copyright Dingxuan. All Rights Reserved.
* <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 required by appli... | 26.140351 | 112 | 0.695302 |
056790d6ddbea2f19e3ddbdbc0c972691c8eae4a | 380 | package com.cloud.legacymodel.acl;
import com.cloud.legacymodel.domain.PartOf;
import com.cloud.legacymodel.user.OwnedBy;
/**
* ControlledEntity defines an object for which the access from an
* access must inherit this interface.
*/
public interface ControlledEntity extends OwnedBy, PartOf {
Class<?> getEntity... | 22.352941 | 66 | 0.734211 |
667b91afa0b79635aa076d353a3a78bfcbe90b0f | 1,549 | /**
* 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... | 23.469697 | 75 | 0.712718 |
a7bd77767bcf6031f599077776eb95ea2eaa819b | 376 | package com.github.mustfun.mybatis.plugin.inspection;
import com.intellij.codeInspection.LocalQuickFix;
import org.jetbrains.annotations.NotNull;
/**
* @author yanglin
* @updater itar
* @function 通用快速修复
*/
public abstract class GenericQuickFix implements LocalQuickFix {
@NotNull
@Override
public Stri... | 18.8 | 64 | 0.728723 |
94ead80a79b91a157d182a0e7bcf4f360748bca0 | 2,299 | package com.example.curious.model;
public class CommentData {
private String author;
private String body;
private String score;
private String id;
private String permalink;
private String created_utc;
private String retrieved_on;
private String subreddit;
private String subreddit_i... | 19.818966 | 60 | 0.627229 |
7f5531d8904a8a9dd2770879e740d214bfc63561 | 2,452 | package oop_project;
import java.awt.image.BufferedImage;
public abstract class IntegratedCircuit extends Sprite{
private final Node[] pins;
public Node vcc;
public Node grnd;
public IntegratedCircuit(BufferedImage[] images, int pins) {
super(images);
this.pins = new Node[pins];
... | 27.550562 | 139 | 0.541599 |
7024180cffafe35fb777f443145cea07a2778c1c | 7,632 | /*
* Copyright 2020 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 applica... | 32.615385 | 113 | 0.801101 |
ef3ad19a7b633e6992e0281e00c04ed921ce7b39 | 629 | package org.cloud.ssm.service;
import javax.annotation.Resource;
import org.cloud.ssm.entity.Employee;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@RunWith(SpringJUnit4Cla... | 26.208333 | 79 | 0.801272 |
61b535a77a95824db772a20200fd83d48186f763 | 17,666 | /*
* EventAdaptor.java --
*
* Base class for event adaptors classes generated by Tcl.
*
* Copyright (c) 1997 Sun Microsystems, Inc.
*
* See the file "license.terms" for information on usage and
* redistribution of this file, and for a DISCLAIMER OF ALL
* WARRANTIES.
*
* RCS: @(#) $Id: EventAdaptor.java,v 1.3... | 24.002717 | 75 | 0.570135 |
16d835214ab7702c5d9f788eed1251eaa52cf5e1 | 942 | /*
* generated by Xtext 2.9.2
*/
package org.lilychant.ide.contentassist.antlr;
import org.antlr.runtime.Token;
import org.antlr.runtime.TokenSource;
import org.eclipse.xtext.parser.antlr.AbstractIndentationTokenSource;
import org.lilychant.ide.contentassist.antlr.internal.InternalLilyChantParser;
public class Lily... | 23.55 | 78 | 0.791932 |
9fd160a21a863ad109879bf0969fb28acbcac5d0 | 2,279 | package org.jumpmind.db.platform.postgresql;
import java.util.Map;
import org.jumpmind.db.model.Column;
import org.jumpmind.db.platform.DatabaseInfo;
public class PostgreSqlDmlStatement95 extends PostgreSqlDmlStatement {
public PostgreSqlDmlStatement95(DmlType type, String catalogName, String schemaName, String... | 33.514706 | 128 | 0.627907 |
85320cbbd9fafee6f5d7d43be6e7ace10e64fe98 | 97 | /**
* Provides low- and high-level bindings to the DNAnexus Platform.
*/
package com.dnanexus;
| 19.4 | 66 | 0.721649 |
c548916367ace3c2a29df8f71e857c056315efd1 | 686 | package services;
import exceptions.DBException;
import exceptions.NotFoundException;
import models.Event;
import models.User;
import java.util.List;
public class UserService {
public Integer create(User newUser) throws DBException {
try{
newUser.save();
} catch (RuntimeException e... | 19.6 | 61 | 0.641399 |
b453827a0c0e64dfd44012be819e126a8529c63d | 2,385 | package dev.hbeck.kdl.parse;
import dev.hbeck.kdl.TestUtil;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import java.io.IOException;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import static org.hamcrest.CoreMatchers.eq... | 33.591549 | 76 | 0.514046 |
32e8bc1a18f089e02e76d2884602ce190fa4743f | 8,849 | /*
* Copyright (c) 2016-2020, MiLaboratory LLC
* All Rights Reserved
*
* Permission to use, copy, modify and distribute any part of this program for
* educational, research and non-profit purposes, by non-profit institutions
* only, without fee, and without a written agreement is hereby granted,
* provided that ... | 51.748538 | 119 | 0.682902 |
79e693e3693536936371891d0de9039ac3c49db6 | 1,163 | import java.util.Calendar;
import java.util.GregorianCalendar;
public class Person {
private String name;
private double height;
private int birthYear;
// Constructor Method
public Person (String name, int birthYear, double height) {
this.name = name;
this.height = height;
this.birthYear = birthYear;
}
... | 21.537037 | 61 | 0.676698 |
6c938dc436d04fb6dddf8193278a249d6045bd86 | 1,023 | /**
* iBizSys 5.0 用户自定义代码
* http://www.ibizsys.net
*/
package net.ibizsys.psrt.srv.common.demodel.service.uiaction;
import java.util.List;
import java.util.HashMap;
import org.hibernate.SQLQuery;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotati... | 26.230769 | 92 | 0.797654 |
8798d71f29de26a4b78305ae3267203012f3efb3 | 32,359 | /*
* Copyright (c) 2016-2018 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.authentication.impl.evaluator;
import java.util.Collection;
import javax.xml.datatype.Duration;
im... | 54.20268 | 181 | 0.726784 |
74d023cf96f3bff80fb9b600a9454905e280900c | 1,807 | package net.ibizsys.paas.sysmodel;
import net.ibizsys.paas.codelist.ICodeList;
/**
* 全局字典代码表模型对象
* @author Administrator
*
*/
public class GlobalScopeDictCatCodeListModel extends DynamicCodeListModelBase
{
/**
* 词条类别
*/
private String strCat = "";
/**
* 所有者类型
*/
private String strOwnerType = "";
... | 13.9 | 77 | 0.645822 |
84b000288515131c14c244522e0fc3fcd692ff3d | 1,706 | package com.thamirestissot.service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
impo... | 27.516129 | 90 | 0.669402 |
e5499aa5f1a7673c4cc8c8a22e1d3a4520ca0dda | 2,508 | /*
* Copyright 2022, TeamDev. 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
*
* Redistribution and use in source... | 35.323944 | 88 | 0.726874 |
4016d528de50c7ae61d8394f7175a6c6d226dc08 | 654 | package test.com.b50.migrations.generators;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import com.b50.migrations.generators.MigrationClassGenerator;
public class MigrationClassGeneratorTest {
@Test
public void testGeneration() throws Exception ... | 29.727273 | 101 | 0.795107 |
bb3fe213149dbbaeea52fbce79b76f3f5453de26 | 607 | package slidingwindows;
import java.util.*;
//https://leetcode.com/problems/longest-substring-without-repeating-characters/
public class NoRepeatSubstring {
public int lengthOfLongestSubstring(String str) {
HashMap<Character, Integer> map= new HashMap<>();
int n= str.length();
int max=0;
... | 28.904762 | 79 | 0.540362 |
3545c8231db39c7636f609814c6df471a30b7950 | 2,984 | package net.ericsson.emovs.utilities.errors;
import static java.lang.String.format;
import static java.util.Locale.ENGLISH;
public enum ResponseCode {
OK(200, "OK", null),
DEVICE_LIMIT_EXCEEDED(400, "DEVICE_LIMIT_EXCEEDED", "The account is not allowed to register more devices"),
SESSION_LIMIT_EXCEEDED(400... | 55.259259 | 146 | 0.706769 |
06168950aeba5b0c254152ae32a0e22b0feae473 | 15,948 | /*
* JBoss, Home of Professional Open Source.
* Copyright 2010, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* unde... | 33.504202 | 129 | 0.552922 |
ddc37eaa8fb5ab12355fd51ac7b14e3901ea7221 | 2,876 | package edu.first.util.list;
/**
* An ordered collection (also known as a <i>sequence</i>). The user of this
* interface has precise control over where in the list each element is
* inserted. The user can access elements by their integer index (position in
* the list), and search for elements in the list.
*
* @s... | 31.26087 | 80 | 0.637691 |
d48e1f4bcc92981e59869094e4dff7a195d21ee5 | 4,670 | package email.kleck.demo.jsainsburyplc.module.parser;
import email.kleck.demo.jsainsburyplc.module.parser.internal.Node;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Utility class
*/
public final class ParserUtil {
/**
* Generate a stack from the provided patt... | 38.595041 | 124 | 0.54561 |
a069a8a6ce9e952ed74cd924118be36eddbffc77 | 5,722 | /*
* Copyright 2020 Guo Chaosheng
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 38.662162 | 137 | 0.65589 |
57ae4eabada13ce74f3b6e72e809a39be37606c2 | 1,780 | /**
* Copyright (C) 2013 Matija Mazi
*
* 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, merge, publis... | 39.555556 | 97 | 0.757303 |
ed829163b3d7af4737e76d1e898fe1171050b28a | 839 | package net.padaf.preflight.font;
import net.padaf.preflight.ValidationConstants;
import org.apache.pdfbox.pdmodel.font.PDFont;
/**
* Because Type3 font program is an inner type of the PDF file,
* this font container is quite different from the other because
* all character/glyph are already checked.
*
*/
pub... | 28.931034 | 98 | 0.709178 |
5f98c0a3d7a268531b54f1a8fdffd76f59b7c8ea | 1,991 | /*
* Copyright 2015 Ignacio del Valle Alles idelvall@brutusin.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... | 34.327586 | 149 | 0.650427 |
5202187b0326d0122970bfc490b191daa0b21b33 | 2,238 | package lt.lb.luceneindexandsearch.config;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.Map;
import java.util.Optional;
import java.util.stream.Collectors;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
/**
*
* @author laim... | 31.083333 | 107 | 0.634942 |
365017a009f81a64a2a38043bc58f4dc611bfe41 | 1,634 | package com.game.persistence.models;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
/**
* @author pachi
* Modelo de la tabla requisitos.
*/
@Entity
public class Requisitos {
@Id
@G... | 18.359551 | 61 | 0.741126 |
d551f0c6dba06ae839767c0c0303a4edb94b0f75 | 282 | package ru.sipivr.core.result;
/**
* Created by Karpukhin on 01.01.2016.
*/
public class Conference extends AbstractResult {
private String name;
public Conference(String name) {
this.name = name;
}
public String getName() {
return name;
}
} | 17.625 | 48 | 0.634752 |
905974d9c1c43999f30ddc5999cb9ad257d7f363 | 742 | package br.com.carlos.repository;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import br.com.carlos.dto.ComboBoxDTO;
import br.com.carlos.model.Functionality;
@Repository
p... | 28.538462 | 85 | 0.756065 |
b596a80488dd456e3477ac0fea1fd2945e1878f9 | 1,159 | package org.infinispan.persistence.jdbc.mixed;
import org.infinispan.configuration.cache.PersistenceConfigurationBuilder;
import org.infinispan.persistence.BaseStoreFunctionalTest;
import org.infinispan.persistence.jdbc.configuration.JdbcMixedStoreConfigurationBuilder;
import org.infinispan.test.fwk.UnitTestDatabaseMa... | 46.36 | 131 | 0.823123 |
a45aa3b8aae7488b875ab4da5ed19d474dce989d | 2,478 | package de.sanandrew.mods.turretmod.client.gui.element.tcu;
import com.google.gson.JsonObject;
import de.sanandrew.mods.sanlib.lib.client.gui.GuiElementInst;
import de.sanandrew.mods.sanlib.lib.client.gui.IGui;
import de.sanandrew.mods.sanlib.lib.client.gui.element.Text;
import de.sanandrew.mods.sanlib.lib.client.util... | 39.333333 | 145 | 0.684019 |
0022d5fe9d29f0abfb8096c758af70baa6dc4a77 | 1,385 | /*
* Copyright © 2014-2020 Vladlen V. Larionov and others as noted.
*
* 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.477273 | 79 | 0.771119 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.