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 |
|---|---|---|---|---|---|
f3765cc489a6f142dc3d8a85be48f480286170ea | 3,536 | package main.server.Workout;
import com.google.gson.Gson;
import main.server.Server;
import spark.Request;
import spark.Response;
import java.sql.*;
import java.util.ArrayList;
public class WorkoutUtil {
/**
* Select a specific existing workout from the database, given its ID.
*
* @param request The requi... | 29.966102 | 100 | 0.645079 |
cd3d754eb2ac88d4a31f822c13e8af5a96a43f07 | 274 | public class Print_out_Arrays
{
public static void main(String [] args)
{
int x[]={1,2,3,4,5,6,7,8,9};
System.out.println("Array: ");
for(int y=0;y<x.length;y++)
{
System.out.print(" "+x[y]);
}
}
}
| 21.076923 | 44 | 0.452555 |
c56f2cfaba09ec4770a2b52f5345162d3322fad3 | 459 | package com.example.eduservice.client;
import com.example.commonutils.R;
import org.springframework.stereotype.Component;
import java.util.List;
@Component
public class VodFileDegradeFeignClient implements VodClient{
//出错之后执行
@Override
public R removeAlyVideo(String id) {
return R.error().message(... | 22.95 | 60 | 0.714597 |
b691da7e19ff545b7474f8c6cb9e3e5d6572746d | 618 | package com.hwangfantasy;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.MarkerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication(scanBasePackages = "com.hwangfantasy")
public class SpringBo... | 34.333333 | 97 | 0.828479 |
a21afeada1abe164cafdb473e9a6d93b59a8416f | 4,104 | /* */ package com.levigo.jbig2.io;
/* */
/* */ import java.io.IOException;
/* */ import javax.imageio.stream.ImageInputStream;
/* */ import javax.imageio.stream.ImageInputStreamImpl;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* ... | 26.307692 | 109 | 0.422515 |
dfdb3748d8c3444fff4ede91c9e0547ba7f776f3 | 246 | package com.symphony.bdk.core.service.stream.constant;
import org.apiguardian.api.API;
/**
* The list of available sort order for looking up the attachments.
*
*/
@API(status = API.Status.STABLE)
public enum AttachmentSort {
ASC,
DESC
}
| 17.571429 | 67 | 0.731707 |
2304b91c5b48f9417fbd6bc2ae801bd102a6b23f | 4,298 | package seedu.contax.commons.util.datetimeparser;
import java.util.List;
import java.util.regex.Pattern;
/**
* Provides regex patterns for parsing dates. This class is package-private and is only visible to
* the {@code datetimeparser} package.
*/
class DateParserPatternProvider {
// Intermediate parts for na... | 47.755556 | 109 | 0.704979 |
26b7dbf89251e10736bc12563e34ae2fb5d39a26 | 173 | package com.swust.admins.Base.delegate;
/**
* Created by sky on 22/02/2018.
*/
public interface TitleBarButtonOnClickedDelegate {
void titleBarOnClicked(int id);
}
| 15.727273 | 50 | 0.734104 |
96b9aff07785d92695247266015ae3d58c58bfeb | 103 | package com.mapsa.dotin.dotin.model.email;
public enum EmailStatus {
SENT,
DRAFT,
ERROR
}
| 12.875 | 42 | 0.679612 |
8ddc22fdf7da5c60080589b973adc8f5b69120e3 | 7,172 | /*
The MIT License (MIT)
Copyright (c) 2015 Andreas Marek and Contributors
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 ri... | 55.596899 | 135 | 0.72295 |
bdded709cc8b76f00a61f0393af6b881cca08da1 | 1,899 | package br.com.marcellogalhardo.simplesettings.ui;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import br.com.marcellogalhardo.s... | 37.98 | 123 | 0.744602 |
19c0c062cf494323f81c5887f3e794b48a1f35b6 | 1,528 | package com.example.application.backend.entity;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.ArrayList;
import java.util.List;
@JsonIgnoreProperties(ignoreUnknown = true)
public class Search {
@JsonProperty(value = "page")
... | 22.144928 | 61 | 0.606675 |
835272c2ac31f2a0484e90d865046b6d8b903995 | 1,814 | package com.smarthane.admiralcomponent.common.mvp.presenter;
import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.OnLifecycleEvent;
import com.smarthane.admiral.component.common.sdk.http.eapi.EapiCallback;
import com.smarthane.admiral.core.mvp.BasePresenter;
import com.smarthane.admiral.core.util.LogUtils;
... | 31.824561 | 89 | 0.706174 |
3bdcb41254b74e0f95600fc892ff1b8b6be1bb94 | 8,227 | /*
* Copyright (C) 2014 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 agree... | 43.529101 | 131 | 0.66148 |
0aa0776ed6b7addc55602cc2e761011aac9f0a96 | 5,678 | package snowball;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.nio.file.Path;
import java.util.Objects;
import java.util.Optional;
import java.util.Scanner;
import java.io.File;
import com.google.common.net.InternetDomainName... | 34.412121 | 117 | 0.619937 |
300e139eb8c6b4bb3f8ab1da9b5349b32c2470dd | 4,140 | /**
* Copyright (C) 2004-2011 Jive Software. 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 requir... | 27.6 | 160 | 0.718599 |
c8b13fb9e671331a9523d5f53c5d1eba6eaada51 | 3,163 | package ua.com.nc.nctrainingproject.services;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import ua.com.nc.nctrainingproject.models.*;
import ua.com.nc.nctrainingproject.persistance.dao.postgre.*;
import java.util.ArrayList;
import java.util.List;
@Se... | 41.618421 | 194 | 0.69491 |
faf53ac9b0eec34b142f9db82a996b2dc8909235 | 11,339 | /*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* 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 ... | 33.35 | 117 | 0.542111 |
06edd289d9ea1556e7771b937130281dfdcf65e8 | 1,652 | package com.minzheng.blog.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* 查询条件
*
* @author 11921
*/
@Data
@ApiModel(description = "查询条件")
public class ConditionVO {
/**
* 分类id
*/
@ApiModelProperty(name = "categoryId", value =... | 21.736842 | 94 | 0.599274 |
e4ea032a1f7d912a3db1982972d10085bfd0f274 | 1,236 | package it.aldi.app.service.domain;
import it.aldi.app.domain.UserOrganization;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.List;
import java.util.Optional;
/**
* Service Interface for managing UserOrganization.
*/
public interface UserOrganization... | 22.888889 | 67 | 0.660194 |
e36178b581f033be8eac2fcd4550e8b72d959fad | 1,321 | package br.com.unibh.compiler.pasc.lexic.states.impl;
import br.com.unibh.compiler.pasc.lexic.exceptions.UnexpectedSymbolException;
import br.com.unibh.compiler.pasc.lexic.model.Operators;
import br.com.unibh.compiler.pasc.lexic.states.State;
import br.com.unibh.compiler.pasc.lexic.states.ValidateStateHelperTest;
impo... | 40.030303 | 80 | 0.757002 |
13dbbab99d4fda147430552a204a1280ff75c695 | 1,035 | package org.kiwiproject.dropwizard.error.model;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.CsvSource;
@DisplayName("Persist... | 32.34375 | 94 | 0.62029 |
1986ccf4e6b294d28b418b7fbb4d103eaebd9ef4 | 3,926 | package com.clouck.comparator;
import java.lang.reflect.ParameterizedType;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Objects;
import org.apache.commons.lang3.Validate;
import org.apache.commons.lang3.tuple.Pair;
import org.springframework.beans.factory.annotation... | 33.555556 | 164 | 0.638818 |
a04aba945b1f4c16466c96fb3893bbd324b820d2 | 2,937 | package com.dchip.door.smartdoorsdk.receiver;
import android.app.ActivityManager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.dchip.door.smartdoorsdk.service.ACWebSocketService;
import com.dchip.door.smartdoorsdk.utils.LogUtil;
import java.util... | 37.653846 | 108 | 0.64113 |
6e062253d9e7d90215b7c654b42b3c3d8e526002 | 222 | package com.transilink.framework.core.model.datacontainer;
/**
*
* @author huangxin (3203317@qq.com)
*
*/
public abstract interface Property {
public abstract String getName();
public abstract Class<?> getType();
} | 18.5 | 58 | 0.725225 |
30b53c00002ff34c8b401afe1932a46151e46833 | 1,127 | package com.vaguehope.morrigan.gui.preferences;
import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.core.runtime.preferences.DefaultScope;
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
import com.vaguehope.morrigan.gui.Activator;
public class Pre... | 37.566667 | 85 | 0.813665 |
e1bccf498e7922275b10720a0ccc6268bda09f3d | 3,776 | package dk.alexandra.fresco.samples.mult3;
import static dk.alexandra.fresco.samples.Id.*;
import dk.alexandra.fresco.framework.Party;
import dk.alexandra.fresco.framework.configuration.NetworkConfiguration;
import dk.alexandra.fresco.framework.configuration.NetworkConfigurationImpl;
import dk.alexandra.fresco.framew... | 39.747368 | 153 | 0.62553 |
3cc18c707fbb1f0db14196258babe34558364e78 | 216 | package com.uark.ml;
/**
* Created by rakib on 1/24/2018.
*/
public class OrdinaryLeastSquareException extends Exception {
public OrdinaryLeastSquareException(String message) {
super(message);
}
}
| 19.636364 | 61 | 0.708333 |
0f719ad49bfa4fb0d95689c00ecfc22cb268bc9a | 8,804 | /*
* 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")... | 32.367647 | 102 | 0.642095 |
fb466ca8b754e5ebad46227503b6b1bc1651d469 | 11,340 | package App.Controllers;
import App.Main;
import App.Models.Pack;
import App.Models.Question;
import com.google.gson.Gson;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.Scene;
import javaf... | 32.215909 | 157 | 0.579365 |
4dabaca3a14f34c6bf903144c79e29875157155a | 12,049 | /*
* 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 ... | 29.898263 | 170 | 0.720641 |
3d41e03e015dc87f35d08f658f1fa78ac416abe7 | 22,391 | /*
* Tencent is pleased to support the open source community by making QMUI_Android available.
*
* Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the MIT License (the "License"); you may not use this file except in
* compliance with the License. You may obtain ... | 36.948845 | 117 | 0.621946 |
7d2ec694a72686129d1cdf5aa38fee41f3fe4491 | 4,409 | package net.canarymod.help;
import net.canarymod.chat.ChatFormat;
import net.canarymod.chat.MessageReceiver;
import net.canarymod.commandsys.CanaryCommand;
import net.canarymod.commandsys.CommandOwner;
/**
* Contains relevant information about a piece of help.
* One help node contains the localized description of a... | 24.909605 | 107 | 0.580404 |
012895f18ac231ecdb36b20d3ccde2cc34a85dc5 | 468 | package org.xmlet.htmlapifaster;
import org.xmlet.xsdasmfaster.classes.infrastructure.EnumInterface;
public enum EnumCrossoriginCrossOriginType implements EnumInterface<String> {
ANONYMOUS(String.valueOf("anonymous")),
USE_CREDENTIALS(String.valueOf("use-credentials"));
private final String value;
priva... | 24.631579 | 77 | 0.754274 |
d8a5fbcfeaa24b8231ae4867c96cca7a9e586e51 | 3,563 | package com.longluo.leetcode.tree;
import com.longluo.datastructure.TreeNode;
import com.longluo.datastructure.TreeUtils;
import java.util.LinkedList;
import java.util.Queue;
/**
* 617. 合并二叉树
* <p>
* 给定两个二叉树,想象当你将它们中的一个覆盖到另一个上时,两个二叉树的一些节点便会重叠。
* 你需要将他们合并为一个新的二叉树。合并的规则是如果两个节点重叠,那么将他们的值相加作为节点合并后的新值,
* 否则不为 NULL 的... | 32.688073 | 90 | 0.510244 |
9d7e54adb94ff6fc084c58a331cedc288ae3de4e | 4,724 | package com.marverenic.music.activity.instance;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.os.Build;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;... | 33.985612 | 95 | 0.622566 |
e98bc464d23b84dd1bd3df51ed9040d7489a5a73 | 20,190 | package live.lingting.virtual.currency.bitcoin;
import static live.lingting.virtual.currency.bitcoin.util.BitcoinUtils.PROPERTY_PREFIX;
import static org.bitcoinj.core.Transaction.Purpose;
import static org.bitcoinj.core.Transaction.SigHash;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.colle... | 31.25387 | 117 | 0.729173 |
214c06973928e60b6996ad2c32a07a5d19e9226e | 6,568 | package seedu.saveit.model;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.saveit.testutil.Assert.asse... | 37.747126 | 105 | 0.719245 |
32557f66e31c9f809e39e70b6cb29943682f3533 | 777 | package <%- packageName %>.view;
import java.io.Serializable;
import javax.faces.view.ViewScoped;
import javax.inject.Named;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.transaction.Transactional;
import <%- packageName %>.model.<%-targetName2%>Model;
@ViewScoped... | 20.447368 | 65 | 0.741313 |
83f27340d8184112c10f93819e468fc4ab43b093 | 3,555 | /*******************************************************************************
* (c) Copyright 2017 Hewlett Packard Enterprise Development LP 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 ... | 46.776316 | 100 | 0.675105 |
5bd31b9d71970527a2b5ffff21e0fd8bff021dc3 | 1,475 | package com.mertcansegmen.locationbasedreminder.model;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;
@Entity(tableName = "alarm_attribute")
public class AlarmAttribute {
@PrimaryKey(autoGenerate = true)
private int id;
@ColumnInfo(name = "reminder_id")
... | 21.071429 | 95 | 0.651525 |
9db52163ab63bd9c3ddfef9be2c2d5e91af2ac2c | 810 | package com.sa.web;
import com.sa.web.dto.SentenceDto;
import com.sa.web.dto.SentimentDto;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.client.RestTemplate;
@CrossOrigin(origins = "*")
@RestController
public class Sentiment... | 30 | 130 | 0.740741 |
009e4b87b8076a704300a7a0f414aa45164076ee | 1,317 | package com.amyliascarlet.jsontest.bvt.serializer;
import junit.framework.TestCase;
import com.amyliascarlet.lib.json.JSON;
import com.amyliascarlet.lib.json.serializer.SerializeConfig;
import com.amyliascarlet.lib.json.serializer.SerializerFeature;
public class WriteClassNameTest extends TestCase {
public void... | 23.945455 | 90 | 0.606682 |
f4c9e5431f744d887330ce4c80e5e5a649b0b518 | 952 | package com.baeldung.localdate;
import java.time.LocalDate;
import java.time.Month;
import java.time.format.DateTimeFormatter;
public class LocalDateExample {
public LocalDate getCustomDateOne(int year, int month, int dayOfMonth) {
return LocalDate.of(year, month, dayOfMonth);
}
public LocalDate ... | 29.75 | 81 | 0.726891 |
bfbbcea79a618a8dceddb9f0c4da64a5f0ea5af6 | 8,753 | package com.github.stefvanschie.quickskript.core.file.alias;
import com.github.stefvanschie.quickskript.core.file.alias.exception.AliasFileFormatException;
import com.github.stefvanschie.quickskript.core.file.alias.exception.AliasFileResolveException;
import com.github.stefvanschie.quickskript.core.file.alias.exceptio... | 37.088983 | 120 | 0.598766 |
890c49a60d3a7c30720eba22812691e9edea8a0a | 893 | package de.deutschebahn.bahnhoflive.backend;
import com.android.volley.AuthFailureError;
import com.android.volley.Request;
import com.android.volley.toolbox.BaseHttpStack;
import com.android.volley.toolbox.HttpResponse;
import java.io.IOException;
import java.util.Map;
public class CountingHttpStack extends HttpSta... | 29.766667 | 136 | 0.777156 |
c3add2a5c2a8a008057396d8acc7c8c731b5e4f0 | 530 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ejercicio1;
/**
* Hacer un pseudocodigo que imprima los numeros del 1 al 100.
* @author isaac
* @version 1.0
*/
public cla... | 24.090909 | 79 | 0.632075 |
88c907d0c7c342c9fcdf025c9e155f1aa7c9961d | 922 | package com.lothrazar.cyclic.item.boomerang;
import com.lothrazar.cyclic.item.boomerang.BoomerangItem.Boomer;
import com.lothrazar.cyclic.registry.EntityRegistry;
import com.lothrazar.cyclic.registry.ItemRegistry;
import net.minecraft.entity.EntityType;
import net.minecraft.entity.LivingEntity;
import net.minecraft.en... | 31.793103 | 96 | 0.804772 |
ab40882232c4f43d82bb66370d103cc04de7583b | 5,778 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.core.experimental.http.policy;
import com.azure.core.credential.TokenCredential;
import com.azure.core.credential.TokenRequestContext;
import com.azure.core.experimental.implementation.AuthenticationChall... | 43.119403 | 109 | 0.645725 |
665e5fce035d36079ceac42b6b61ba9d08aaaeac | 460 | package github.tornaco.android.thanos.plugin;
import androidx.annotation.Keep;
import lombok.Data;
import lombok.ToString;
@Data
@ToString
@Keep
public class PluginResponse {
private String name;
private String packageName;
private long versionCode;
private String versionName;
private String desc... | 20.909091 | 45 | 0.765217 |
58458221b7aa34c517eab922930377dffaaca77f | 9,025 | import org.omg.PortableServer.THREAD_POLICY_ID;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionListener;
import java.util.ArrayList;
import java.util.Iterator;
/**
* Attention, il ne ... | 34.711538 | 131 | 0.584266 |
c49d9be791d19c1f5baa9bc2a5e1f19d8d9af371 | 874 | /**
* Copyright (C) 2014 Next Generation Mobile Service JSC., (NMS). All rights
* reserved.
*/
package com.nms.vnm.eip.entity;
import com.nms.vnm.eip.entity.validation.Url;
import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.validatio... | 23 | 77 | 0.685355 |
3def5b8295e31d78b46c08f745c68157890ec283 | 677 | package org.batfish.representation.juniper;
import java.io.Serializable;
import java.util.Set;
import java.util.TreeSet;
import org.batfish.datamodel.Prefix;
public class PrefixList implements Serializable {
/** */
private static final long serialVersionUID = 1L;
private boolean _ipv6;
private String _name... | 16.925 | 50 | 0.692762 |
37e63cb1fce7b7252d1a6125d97877cc647fd857 | 370 | package de.adorsys.opba.protocol.api.dto.request.authorization;
import lombok.Data;
import java.time.LocalDate;
@Data
public class AisConsent {
private AisAccountAccess access;
private Integer frequencyPerDay;
private Boolean recurringIndicator;
private Boolean combinedServiceIndicator;
private ... | 21.764706 | 63 | 0.783784 |
6d5350290847f201e83104a707e738f47fa68f17 | 1,297 | package com.hastobe.csms.model;
import java.io.Serializable;
public class Components implements Serializable {
private Double energy;
private Double time;
private Double transaction;
public Components() {
}
public Components(Double energy, Double time, Double transaction) {
this.ener... | 22.754386 | 71 | 0.593678 |
2bc864383d4a825408c90eb9620a1f85df4fbc92 | 4,338 | /*******************************************************************************
* Copyright (c) 2004 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 availabl... | 25.22093 | 107 | 0.670124 |
6ce498ad08e86ad9c745a06208b83eddd6e19b92 | 2,353 | /*
* Copyright (C) 2016 android@19code.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 appl... | 30.960526 | 88 | 0.628984 |
1da1c2f66a36a2b1ce4c7fde68f09d2c3b11b301 | 4,898 | package edu.ucdenver.ccp.nlp.uima.shims.document.impl;
import java.io.File;
/*
* #%L
* Colorado Computational Pharmacology's nlp module
* %%
* Copyright (C) 2012 - 2014 Regents of the University of Colorado
* %%
* Redistribution and use in source and binary forms, with or without modification,
* are permitted ... | 32.223684 | 164 | 0.763577 |
f7c2309ebd8e6b5a6b7d90e70f1c983286f94819 | 719 | package net.saliman.gradle.plugin.cobertura;
import org.gradle.api.Task;
import org.gradle.api.internal.CollectionCallbackActionDecorator;
import org.gradle.api.reporting.SingleFileReport;
import org.gradle.api.reporting.internal.TaskGeneratedSingleFileReport;
import org.gradle.api.reporting.internal.TaskReportContain... | 35.95 | 109 | 0.79694 |
915bf735e40bc6c02a183cea026d817c479bb577 | 1,273 | package com.revature.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.... | 31.825 | 121 | 0.82011 |
29963f904604ad62853361228c604ea03ef34e55 | 567 | package src.main.gov.va.vha09.grecc.raptat.gg.textanalysis.preprocessors.contextanalysis.tokencontext.negation;
import src.main.gov.va.vha09.grecc.raptat.gg.textanalysis.preprocessors.contextanalysis.tokencontext.TokenMarker;
public class NegationTokenMarker extends TokenMarker {
/** */
private static final long... | 33.352941 | 113 | 0.802469 |
8ed6c2a805617ff7dacc63972bc35a4735c6f7ce | 482 | package jp.chang.myclinic.practice.javafx.parts;
import jp.chang.myclinic.dto.ShinryouMasterDTO;
import jp.chang.myclinic.client.Service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class ShinryouSearchBox extends SearchBoxOld<ShinryouMasterDTO> {
private static Logger logger = LoggerFactory.... | 28.352941 | 84 | 0.771784 |
e0b4eb021e31198fcc805b53a03b9cba544956a6 | 281 | package com.helencoder.lda;
/**
* LDA模型类
*
* Created by helencoder on 2017/12/6.
*/
public class Model {
public boolean initNewModel(LDAOption option) {
return true;
}
public boolean initEstimatedModel(LDAOption option) {
return true;
}
}
| 13.380952 | 57 | 0.637011 |
387278cccedb4b445ca375756a5e649699ac9e13 | 961 | package com.codergray.lintcode.twoPointers;
import java.util.Arrays;
/**
* Created by cwang on 4/20/17.
*/
public class TwoSum5 {
public int twoSum5(int[] nums, int target) {
// Write your code here
if (nums == null || nums.length <= 1) {
return 0;
}
int count = 0;
... | 23.439024 | 50 | 0.408949 |
70992efa3b0afe9ad5e4320e6a64a3d81a203c6c | 412 | package com.sap.cloud.lm.sl.mta.model;
import java.util.Collection;
import java.util.List;
import java.util.stream.Collectors;
public interface Descriptor {
String getId();
static List<String> getIds(Collection<? extends Descriptor> descriptors) {
return descriptors.stream()
... | 22.888889 | 78 | 0.635922 |
15b16e3ee8dc57eed9d4546c684a3db40e2dce77 | 7,607 | /*
* The author disclaims copyright to this source code. In place of
* a legal notice, here is a blessing:
*
* May you do good and not evil.
* May you find forgiveness for yourself and forgive others.
* May you share freely, never taking more than you give.
*/
package org.sqlite.driver;
import java.sq... | 32.097046 | 156 | 0.684633 |
a7edb29af1593dedf3a3fea4f7894a9c826bc6e9 | 1,372 | /**
* Copyright 2006 Envoi Solutions 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 36.105263 | 214 | 0.689504 |
5912aa1b70677965f2905b28ef20cceac2130f30 | 473 | package com.suolashare.file.api;
import com.baomidou.mybatisplus.extension.service.IService;
import com.suolashare.file.domain.CommonFile;
import com.suolashare.file.vo.commonfile.CommonFileListVo;
import com.suolashare.file.vo.commonfile.CommonFileUser;
import java.util.List;
public interface ICommonFileService ext... | 36.384615 | 66 | 0.832981 |
6221c6a560322ddb66198b84d95419e9d9a13cd0 | 468 | package de.tp971.splitscreen;
public class Encoder {
private String name;
private String title;
private boolean def;
public Encoder(String name, String title, boolean def) {
this.name = name;
this.title = title;
this.def = def;
}
public String getName() {
return name;
}
public String getTitle()... | 14.181818 | 57 | 0.660256 |
dc33a2d0c3fd9fa1e369f27a3428b233eb06c43b | 691 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package contrastenhancement.diffusion;
import contrastenhancement.Image2D;
/**
* Interface for used diffusion scheme
* @author Anna... | 28.791667 | 83 | 0.7178 |
039bd1d8c4c049e11257b8c72bce89013202f81f | 25,693 | /*******************************************************************************
* Copyright (c) 2017, 2018 Pegasystems Inc. All rights reserved.
*
* Contributors:
* Manu Varghese
*******************************************************************************/
package com.pega.gcs.tracerviewer;
import java.a... | 34.34893 | 116 | 0.655548 |
8a2b65ef9691fab5c6f91191a0def1041a46f7bd | 2,582 | package org.camunda.bpm.tasklist;
import java.util.logging.Logger;
import org.camunda.bpm.engine.identity.Group;
import org.camunda.bpm.engine.identity.User;
import org.camunda.bpm.tasklist.spi.AbstractProcessEngineAware;
/**
* @author: drobisch
*/
public class TasklistDemoData extends AbstractProcessEngineAware {... | 36.885714 | 109 | 0.724632 |
7ed1d10b8e640559ba5407b585d5062a358a03b4 | 1,728 | package com.stackify.api.common.util;
import org.junit.Assert;
import org.junit.Test;
import java.io.File;
import java.util.Map;
public class PropertyUtilTest {
@Test
public void readResource() {
// test via resource success
Map<String, String> mapSuccess = PropertyUtil.read("/stackify-api.... | 36.765957 | 161 | 0.676505 |
350036b9750d4c76e6bc64e83805cbede4d05086 | 1,604 | /*
* Copyright 2015 lifetime.
*
* 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... | 29.703704 | 82 | 0.708853 |
f58f4ac7eb1afce58999d9b014abd9d2d9cb5255 | 1,296 | package com.postmen.javasdk.model;
import java.util.List;
import com.google.api.client.util.Key;
public class Label {
@Key
private String id;
@Key
private String status;
@Key("created_at")
private String createdAt;
@Key("updated_at")
private String updatedAt;
@Key("tracking_numbers")
private List<String> t... | 19.058824 | 63 | 0.721451 |
8b72bb5c7f5e921115b7fb4bbc3a588fa1d197c0 | 3,847 | /**
* Copyright (C) 2014-2016 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... | 26.531034 | 106 | 0.565636 |
38b1178403d9d37ef635b6ed725ad75366894dae | 5,122 | package uk.gov.defra.plants.formconfiguration.service.filters;
import static java.util.Collections.singletonList;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.when;
import static uk.gov.defra.plants.common.constants.PageType.SINGULAR;
import java.util.Arrays;
import java... | 33.92053 | 96 | 0.696408 |
80e29f445c6b4f9f2d627224e53705756d7232f0 | 321 | package jp.crestmuse.cmx.math;
import jp.crestmuse.cmx.misc.Encodable;
public interface IntArray extends Array,Encodable {
int get(int index);
void set(int index, int value);
// Object clone() throws CloneNotSupportedException;
int[] toArray();
// DoubleArray subarrayX(int from, int thru);
String encode();
}... | 26.75 | 53 | 0.741433 |
00eb898965e1c5a95e127d274185f0e7bfaf004a | 28,827 | /*
* 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 ... | 37.196129 | 100 | 0.731675 |
d32b8c7ad9ed071eddaabee62cdf0ee7bfa12d24 | 9,884 | /*
* @(#)MmeS4If.java 1.0 09/12/14
*
* This file has been auto-generated by JNC, the
* Java output format plug-in of pyang.
* Origin: module "hcta-epc", revision: "2014-09-18".
*/
package hctaEpc.mmeSgsn.interface_.mmeS4;
import Element;
import Epc;
import JNCException;
import com.tailf.jnc.YangEleme... | 28.48415 | 97 | 0.621914 |
7eb1780be688a25ac76e97704f76b3d632354183 | 1,573 | package me.EpicKidCreations.Permisons.commands;
import org.bukkit.Bukkit;
import org.bukkit.OfflinePlayer;
import org.bukkit.BanList.Type;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import me.EpicKidCreations.... | 30.843137 | 100 | 0.721551 |
c10d361f3f313be38b3efd61bd7060a38ae7abfc | 280 | package com.ecfinder.exception;
public class FieldsNotMarkedAsUniqueException extends RuntimeException {
public FieldsNotMarkedAsUniqueException(Class<?> clazz) {
super(String.format("No fields in class: %s not marked as @ECFUnique", clazz.getSimpleName()));
}
}
| 35 | 103 | 0.757143 |
6238613e6be8029d43909c80704a369eada68a2a | 1,009 | package io.walkers.planes.pandora.spring.dependency.source;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import javax.annotation.PostConstruct;
/**
* 非 Spring 管理对象,ResolvableDependency 作为依赖来源
... | 28.828571 | 150 | 0.765114 |
2e25c8cd149c604957e6b0638a5808bf42cfc2ca | 986 | package com.example.yuan_wanandroid.model.http.api;
import com.example.yuan_wanandroid.model.entity.Articles;
import com.example.yuan_wanandroid.model.entity.BaseResponse;
import com.example.yuan_wanandroid.model.entity.Tab;
import java.util.List;
import io.reactivex.Observable;
import retrofit2.http.GET;
import ret... | 24.65 | 91 | 0.650101 |
af683ca2a117a6c8134fad7817f4581c40b551c4 | 2,142 | package com.casanova.simcard.service.controller;
import com.casanova.simcard.service.entity.SimCard;
import com.casanova.simcard.service.service.SimCardService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import jav... | 33.46875 | 83 | 0.704949 |
a49fd27dc647ffb7f4faf070f68327b2e2cfed38 | 4,858 | package xreliquary.common;
import cpw.mods.fml.common.FMLCommonHandler;
import net.minecraftforge.fluids.FluidContainerRegistry;
import net.minecraftforge.fluids.FluidRegistry;
import net.minecraftforge.fluids.FluidStack;
import xreliquary.Reliquary;
import xreliquary.blocks.tile.TileEntityAltar;
import xreliquary.in... | 56.488372 | 212 | 0.802594 |
718f06bfcc7eebdfde846eaecd4cddcf545c7093 | 937 | package games;
import java.util.InputMismatchException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
LightsOut game = new LightsOut(5);
game.randomize();
System.out.println(game);
Scanner sc = new Scanner(System.in);
while (!game.... | 28.393939 | 68 | 0.491996 |
31a7699d56eb82f06de7d65107ed96ef827f5e66 | 434 | import java.sql.*;
class a6q4 {
public static void main(String args[]) throws ClassNotFoundException,SQLException {
Class.forName("oracle.jdbc.OracleDriver");
Connection c=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","system","oracle");
Statement st=c.createStatement();
int n=st.executeUp... | 33.384615 | 100 | 0.737327 |
c46b4dc346dc9075c022bea6ae4eb65e14279a3d | 1,479 | package p;
interface I0 <error descr="Invalid permits clause: 'I0' must be sealed">permits</error> I {}
sealed interface I extends I0 permits <error descr="Cannot resolve symbol 'Unresolved'">Unresolved</error>, <error descr="Duplicate class: 'p.I1'">I1</error>, <error descr="Duplicate class: 'p.I1'">I1</error>{}
non-... | 49.3 | 210 | 0.757268 |
3f568c9bcfac9aa6e714d7174dfb65c51473bf98 | 491 | package com.delmar.sysSettings.dao.mybatis;
import org.springframework.stereotype.Repository;
import com.delmar.core.dao.mybatis.CoreDaoMyBatis;
import com.delmar.sysSettings.dao.SysSettingsDao;
import com.delmar.sysSettings.model.SysSettings;
@Repository("SysSettingsDao")
public class SysSettingsDaoMybatis extends ... | 27.277778 | 97 | 0.828921 |
53f8ed1413b53a3cdd246d9262441216f4eb5dd3 | 2,470 | package ru.medisov.home_finance.common.parser;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.SAXException;
import ru.medisov.home_finance.common.model.TransactionModel;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parser... | 35.285714 | 126 | 0.605263 |
1c3f3e86c515ef4809f85545f176d4da6ffd6201 | 7,007 | package org.ovirt.engine.ui.uicommonweb.models.quota;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.ovirt.engine.core.common.businessentities.Disk;
import org.ovirt.engine.core.common.businessentities.Disk.... | 50.410072 | 182 | 0.626802 |
6f96e44e66fafa770f0261fc8e15a3226240b941 | 1,005 | package com.example.activiti.demo.servies.impl;
import com.example.activiti.demo.model.Person;
import com.example.activiti.demo.model.Wife;
import com.example.activiti.demo.repo.PersonRepository;
import com.example.activiti.demo.repo.WifeRepository;
import com.example.activiti.demo.servies.PersionService;
import org.s... | 29.558824 | 64 | 0.750249 |
76c19c6c0932f1de9ea96f29275a91d5c2d7e9da | 3,646 | package de.mineformers.investiture.allomancy.api;
import com.google.common.collect.FluentIterable;
import de.mineformers.investiture.allomancy.api.metal.MetalMapping;
import de.mineformers.investiture.allomancy.api.misting.Misting;
import de.mineformers.investiture.allomancy.impl.misting.temporal.SpeedBubble;
import n... | 32.265487 | 116 | 0.695831 |
d9a0c1fb82c7698e67787746a48bf5e228e1c2bd | 324 | package cn.com.warlock.wisp.db.fetch;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DbDataContext {
private String driverClass;
private String dbUrl;
private String userName;
private String userPassword... | 19.058824 | 37 | 0.790123 |
580fc57fdbfb411ac4d7584192cc4ff2e0c4f4ce | 364 | /*
* Copyright (c) 2020. 代码由Cyberhan编写,不保证其准确性,仅供参考。
* 注意:代码不可进行商业用途,本项目遵寻Apache 2.0开源协议。
* 本人有权对开源协议进行修改和更换。
*/
package cn.hselfweb.webpub.webpubmiddleware.security;
import lombok.Data;
@Data
public class Role {
private Integer id;
private String name;
public Role(){
}
public Role(Strin... | 14 | 53 | 0.659341 |
f6dff7e919a825a21f0f67c0024e933ef5875497 | 1,679 | /*******************************************************************************
* Copyright (c) 2012 GigaSpaces Technologies Ltd. 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 th... | 31.679245 | 86 | 0.659917 |
bb9b5ef04209ff140fce9cce31241c905855ded0 | 7,562 | /*
* Copyright 2002-2006 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 30.615385 | 170 | 0.651415 |
cae3771bd4879e9b3a17bcc0015df52d9abd72a5 | 2,435 | /**
* Find Security Bugs
* Copyright (c) Philippe Arteau, All rights reserved.
*
* 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; either
* version 3.0 of the License, or (at your op... | 28.647059 | 102 | 0.682136 |
9756c670d3646224bbc0002972105f3158cf8620 | 3,264 | package fr.polytech.permispiste.controllers;
import java.util.Arrays;
import java.util.HashSet;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annot... | 35.868132 | 112 | 0.782169 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.