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 |
|---|---|---|---|---|---|
8b1f04843ed212d1870e4f73732b030a7e6f1ef5 | 6,174 | /*
* Fixture Monkey
*
* Copyright (c) 2021-present NAVER Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | 33.193548 | 111 | 0.806122 |
331d5709dcc429f46e49097d7db7f6d72b277bba | 2,026 | /*
* Copyright 2016 ELIXIR EGA
*
* 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 ... | 31.169231 | 85 | 0.700395 |
6c2b73bdca55b797002bbefa7371f0e8ec2b1d84 | 1,048 | package com.willlee.leetcode.problems701_800;
import java.util.ArrayList;
public class Leetcode731 {
}
class MyCalendarTwo {
class Pair {
Integer first, second;
Pair(int first, int second) {
this.first = first;
this.second = second;
}
}
private ArrayList... | 27.578947 | 118 | 0.545802 |
6565b09106c8cf58ef36a6566b04c600a82a823b | 900 | package net.osmand.plus.routing;
import net.osmand.plus.OsmandApplication;
import java.util.ArrayList;
import java.util.List;
public enum RouteService {
OSMAND("OsmAnd (offline)"),
BROUTER("BRouter (offline)"),
STRAIGHT("Straight line"),
DIRECT_TO("Direct To"),
ONLINE("Online engine");
private final String na... | 19.565217 | 74 | 0.688889 |
38467e801d15fb43c650c5cbf6352b141c213c37 | 481 | package main.service.net.impl;
import java.util.List;
import main.service.net.NetDiscoveryService;
/**
* Description: <br>
*
* @author GC <br>
* @version 1.0 <br>
* @CreateDate 2020年12月14日 <br>
* @since V1.0 <br>
* @see main.service.net.impl <br>
*/
public class NetDiscoveryServiceImpl implements NetDisco... | 20.041667 | 69 | 0.679834 |
18045f8184521dacaa86d33adcb81a410903ccf6 | 2,484 | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.idea.svn.status;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import javax.xml.bind.annotation.XmlEnumValue;
import... | 32.684211 | 140 | 0.720209 |
3bf3b2b675ef1feda8b48599c378cbec3a2b03a3 | 7,959 | package com.castellanos94.instances;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
import com.castellanos94.datatype.Data;
import com.castellanos94.datatype.IntegerData;
import com.castellanos94.datatype.Trapezoidal;
import com.castellanos94.problems.Problem;
/**
* Instance fo... | 40.19697 | 118 | 0.586883 |
96d439f4b73e66755340b108ed9098b16d9701ab | 76 | package uk.co.n3tw0rk.oaigatewayrelay.sockets;
public class OAISocket
{
}
| 10.857143 | 46 | 0.789474 |
50466d3e43656eaebc5dd57c488c014dd9dea615 | 6,650 | package com.jetbrains.edu.learning.stepik;
import com.google.gson.FieldNamingPolicy;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.util.Key;
import com.intellij.util.PlatformUtils;
import com.intellij.util.net.HttpConfigurabl... | 42.628205 | 131 | 0.753233 |
5765844c504d1a5f228ae32a165997ea95ce8369 | 319 | package com.infoclinika.mssharing.platform.model.impl.helper.adapters;
import com.infoclinika.mssharing.platform.model.impl.helper.DefaultUploadHelper;
import org.springframework.stereotype.Component;
/**
* @author Herman Zamula
*/
@Component
public class DefaultUploadHelperAdapter extends DefaultUploadHelper {
}
| 26.583333 | 80 | 0.830721 |
dc6aca7d63b0e5d0b6ba26ae0b2433cc810f84ee | 4,919 | /**
* Copyright 2012 Twitter, 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 ... | 32.793333 | 131 | 0.634885 |
7c2b50831b9239484b058e3947aa492b0f7eaef9 | 568 | package com.twu.biblioteca;
import com.sun.xml.internal.ws.policy.privateutil.PolicyUtils;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.util.Scanner;
public class IOHandler {
private Scanner scanner;
public IOHandler(){
this.scanner = new Scanner(System.in);
}
... | 21.846154 | 62 | 0.684859 |
21e52af3ce8c346df183945bd083bf65cc879ba9 | 438 | package com.zk.qpm.analysis;
import com.zk.qpm.callback.IAnalysisCallback;
public class QPMThreadAnalysis extends QPMBaseAnalysis {
public void onCollectThreadInfo(int threadCount, int gtThreadCount) {
analysisResult.cmntInfo.threadCount = threadCount;
analysisResult.cmntInfo.gtThreadCount = gtT... | 29.2 | 96 | 0.785388 |
2b104a9931f6c88501460985957b381a5c94ba1e | 534 | package org.thingsboard.rule.engine.telemetry;
import lombok.Data;
import org.thingsboard.rule.engine.api.NodeConfiguration;
@Data
public class TbMsgTimeseriesNodeConfiguration implements NodeConfiguration<TbMsgTimeseriesNodeConfiguration> {
private long defaultTTL;
@Override
public TbMsgTimeseriesNodeC... | 29.666667 | 110 | 0.797753 |
d31b079fddf6521b1701392d01d19991dec8d0ad | 1,838 | package com.taobao.tddl.executor.cursor.impl;
import java.util.List;
import com.taobao.tddl.common.exception.TddlException;
import com.taobao.tddl.common.utils.GeneralUtil;
import com.taobao.tddl.executor.cursor.ISchematicCursor;
import com.taobao.tddl.executor.rowset.IRowSet;
import com.taobao.tddl.executor.utils.Ex... | 32.245614 | 105 | 0.65506 |
fde4d26c8598418d64d023f7a6552e3b8b933ef3 | 2,088 | package model;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.List;
@Entity
public class Campaign {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
private String name;
@ElementCollection(fetch = FetchType.EAGER)
@CollectionTable(name = "keywor... | 20.673267 | 93 | 0.610153 |
eb5a43512ca5967a8a5031bea9faf1f6b982f2bc | 373 | package demoapp.dom.featured.customui;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.Test;
import lombok.val;
import demoapp.dom.featured.customui.latlng.LatLngUtils;
class GeocodeResponseUtilsTest {
@Test
void add() {
val add = LatLngUtils.add("51.753500", 1);
Assert... | 20.722222 | 58 | 0.715818 |
4f595719d86d55dea8fd7e1c01c6a81ff7f1c196 | 5,353 | /*
* Copyright [2019] [恒宇少年 - 于起宇]
*
* 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 ... | 35.217105 | 144 | 0.655707 |
e7c4be7328d81f07050c8d5e316f383d20bbd945 | 2,152 | package com.avaje.ebean.dbmigration.ddlgeneration.platform;
import com.avaje.ebean.config.dbplatform.DbIdentity;
import com.avaje.ebean.config.dbplatform.DbTypeMap;
import com.avaje.ebean.dbmigration.migration.AlterColumn;
/**
* MySql specific DDL.
*/
public class MySqlDdl extends PlatformDdl {
public MySqlDdl(D... | 31.647059 | 118 | 0.707714 |
e294d44c000e76f82b7a9b72c01509ad33104c3c | 3,393 | package org.bian.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.bian.dto.CRCommissionTransactionRetrieveInputModelCommissionTransactionInstanceAnalysis;
im... | 40.879518 | 195 | 0.857648 |
ceffdffe98e31a95068867442131f49201ca4c68 | 514 | package me.rhin.kingdomraiders.server.helper;
import java.util.Random;
import java.util.concurrent.ThreadLocalRandom;
public class Helper {
private static Random rnd = new Random();
// Static helper class.
public static int findIndexAt(String str, String substr, int n) {
int pos = str.indexOf(substr);
while ... | 23.363636 | 66 | 0.702335 |
09812931a5a8e39a4437e37fe17e8ca7fc058cac | 15,734 | /*
* Project: AhaThing1
* Contributor(s): M.A.Tucker, Adaptive Handy Apps, LLC
* Origination: M.A.Tucker APR 2017
*
* 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.... | 45.473988 | 165 | 0.574488 |
1ce89af27340068fa8ec269c330cd2d668ba3e24 | 1,286 | /*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
*/
package com.nabcosolutions.oopsbasic.dao.impl;
import com.nabcosolutions.oopsbasic.dao.EmployeeDAO;
import com.nabcosol... | 20.741935 | 101 | 0.601089 |
32e6717e4067bc0e213aeb77e040ea8450fd36d1 | 14,141 | package net.falappa.wwind.gazetteer;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statemen... | 43.377301 | 253 | 0.515169 |
4efcc5cee1cd2484f77d95c9748df880a96a963b | 588 | package org.kyojo.schemaorg.m3n5.doma.core.container;
import org.seasar.doma.ExternalDomain;
import org.seasar.doma.jdbc.domain.DomainConverter;
import org.kyojo.schemaorg.m3n5.core.impl.CONTACT_OPTION;
import org.kyojo.schemaorg.m3n5.core.Container.ContactOption;
@ExternalDomain
public class ContactOptionConverter ... | 25.565217 | 87 | 0.816327 |
29abccdd41f6826c21c73c8140dc641aa6d4b695 | 7,488 | package com.odin.spider.thirdparty.tushare.openapi;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value... | 32.842105 | 175 | 0.617922 |
40b31c9c680d1e9c8e5e47c78db43b50a9c41660 | 52,888 | /*
* Copyright 2019 PRImA Research Lab, University of Salford, United Kingdom
*
* 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... | 31.631579 | 220 | 0.679587 |
09f7f17003046c6445a4ee2d3664873070924fdd | 2,157 | // Copyright (C) 2020 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | 39.944444 | 92 | 0.780714 |
09e10c9de27a3f8a3ca39d81da3a70123dda4c86 | 1,533 | package monopoly.View;
import monopoly.Controller.GlobalController;
import monopoly.Model.Configs;
import java.util.Date;
import java.util.concurrent.TimeUnit;
public class Dice extends Widget{
private final int playTime;
/**
* Constructor.
*/
public Dice(int x, int y){
super(-1, -1, x... | 30.66 | 77 | 0.63666 |
296a66d493235c30e3d2d77d13c46e8efafe6f4d | 3,978 | package com.telranqa26.model;
public class Car {
private String contry;
private String address;
private String distance;
private String serial_number;
private String brand;
private String model;
private String year;
private String engine;
private String fuel_consumption;
... | 19.31068 | 62 | 0.584213 |
bcd0df74ed0499ae847481e522fb72f8eae73857 | 5,736 | /*
* 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 Modelo.DAO;
import Modelo.Usuario;
import com.ninja_squad.dbsetup.DbSetup;
import com.ninja_squad.dbsetup.DbSetupTracker;
impo... | 31.344262 | 112 | 0.623431 |
8f62e6b22c418a9c2b9bfde0935868886995e24c | 11,118 | package com.fasterxml.jackson.dataformat.cbor.gen;
import java.io.ByteArrayOutputStream;
import com.fasterxml.jackson.core.*;
import com.fasterxml.jackson.core.JsonParser.NumberType;
import com.fasterxml.jackson.dataformat.cbor.CBORGenerator;
import com.fasterxml.jackson.dataformat.cbor.CBORParser;
import com.faster... | 36.452459 | 90 | 0.598039 |
c488b3fb0ad98d275de4e62652e89fb1b8afc8af | 163 | package com.g2forge.alexandria.command.command;
import com.g2forge.alexandria.java.core.marker.ICommand;
public interface IStructuredCommand extends ICommand {}
| 27.166667 | 56 | 0.840491 |
3555d2690d5419fd973f6daab84bc72323473638 | 521 | package io.github.pleuvoir.model.dto;
import java.time.LocalDateTime;
import io.github.pleuvoir.kit.ToJSON;
public class DelayMessage implements ToJSON {
/**
* 编号
*/
private String id;
/**
* 开始时间
*/
private LocalDateTime beginTime;
// getter and setter
public String getId() {
return id;
}
pu... | 13.710526 | 52 | 0.692898 |
36c93c6bf1936d8bcc7322a98b084283dd627ef0 | 638 | package com.sauravchhabra.udacity.bakingapp.base;
import android.os.Bundle;
import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import dagger.android.support.AndroidSupportInjection;
/**
* Simple fragment class to create the fragment and i... | 26.583333 | 82 | 0.772727 |
9a6b2796e3527ad5476a193fe1e31cea521cc451 | 1,117 | /*
* 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 cn.hanbell.erp.entity;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax... | 17.730159 | 79 | 0.608774 |
4c5440bb6bb4c45360e781a93c312d00a495d995 | 1,691 | package timeseriesweka.kramerlab.pbtsm;
import java.io.IOException;
import java.util.StringJoiner;
import timeseriesweka.classifiers.BOSS;
public class LaunchBOSS extends BaseLauncher {
public static void main(String[] args) {
// --datasets ItalyPowerDemand --seed 0 2
BaseLauncher obj = new... | 33.156863 | 92 | 0.542283 |
ea84143db5ac74f0efd6f694f6579b22bab77511 | 8,488 | package com.darksoldier1404.dppc.utils;
import com.darksoldier1404.dppc.DPPCore;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.plugin.java.JavaPlugin;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.io.File;
import java.io.IOException;
impor... | 43.086294 | 150 | 0.561499 |
887879c9be313ffc63f832bb96fedb15acb08aef | 15,491 | /**
* 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... | 38.534826 | 115 | 0.644761 |
6960c33f8ab7b90355407a45ad0d62af847ce1c5 | 233 | package org.infinispan.cli.commands.server;
public class Commit extends AbstractServerCommand {
@Override
public String getName() {
return "commit";
}
@Override
public int nesting() {
return -1;
}
}
| 14.5625 | 51 | 0.652361 |
5915a1dd6cfd1f43be3cc085c4329827772494c0 | 4,323 | package com.gallery.android.gallery;
import android.Manifest;
import android.app.Activity;
import android.app.ActivityManager;
import android.content.Context;
import android.support.test.espresso.intent.rule.IntentsTestRule;
import android.support.test.rule.GrantPermissionRule;
import android.support.test.runner.lifec... | 45.505263 | 129 | 0.721721 |
eb5f4634126437b521d3e724dec70d88e256682d | 12,426 | /*
* 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")... | 37.540785 | 104 | 0.662804 |
ae44dc3d8bccea3d001cd6fe3b6a7f8a5d6327e9 | 1,584 | package sn.analytics.type;
import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryo.io.ByteBufferInput;
import sn.analytics.util.KryoPool;
import java.io.Serializable;
import java.nio.ByteBuffer;
/**
* Created by Sumanth on 27/12/14.
*/
public class GenericGroupByKey implements Comparable<GenericGro... | 24.75 | 86 | 0.654672 |
eb74252ff86df215eb35f69e4016273628a5683b | 4,515 | package com.digirati.taxman.rest.server;
import io.quarkus.test.junit.QuarkusTest;
import org.apache.http.HttpStatus;
import org.hamcrest.Matchers;
import org.junit.jupiter.api.Test;
import java.net.URI;
import java.util.Collections;
import java.util.Map;
import static com.digirati.taxman.rest.server.testing.util.Re... | 33.198529 | 154 | 0.50742 |
f4c52733b7320d2695b4a98a377f651ccaadbdc8 | 74,827 | /*******************************************************************************
* Copyright (c) 2000, 2013 IBM Corporation and others.
* 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, an... | 31.909168 | 203 | 0.685314 |
2182aa2b32d9bd6ae1b50e9c10e055feb50c3150 | 1,381 | // 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.google.android.gms.common.api.internal;
import com.google.android.gms.tasks.TaskCompletionSource;
// Referenced classes of package com.google... | 27.62 | 76 | 0.57929 |
4c96bbb93d519715d35308e49ddd30a16aa4d012 | 138 | package crypto.ssa5.interfaces;
import crypto.ssa5.spec.SAA5ParameterSpec;
public interface SAA5Key {
SAA5ParameterSpec getParams();
}
| 17.25 | 42 | 0.811594 |
58130b2462eec05b0036b24bae033b2bb27e402c | 1,537 | package jenjinn.test.evaluation;
import static jenjinn.engine.boardstate.BoardStateConstants.getEndGamePST;
import static jenjinn.engine.boardstate.BoardStateConstants.getMiddleGamePST;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import jenjinn.engine.boardstate.BoardState;
import jenjinn.eng... | 28.462963 | 77 | 0.763826 |
9cecf1b266bf04bf8b04c66c5099a4f6be92507b | 1,832 | /*******************************************************************************
* Copyright 2011 Netflix
*
* 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/... | 26.550725 | 80 | 0.605895 |
7bfd68fcb80cbbc84911442150ac76f13964a543 | 1,686 | package cc.before30.algex.general;
import org.junit.Assert;
import org.junit.Test;
import java.util.*;
import static org.junit.Assert.*;
public class TwoSumIVTest {
@Test
public void findTarget() {
List<Integer> a1 = Arrays.asList(5, 3, 6, 2, 4, null, 7);
TreeNode tree1 = createTree(a1);
... | 27.193548 | 65 | 0.47331 |
c67e458f0f605f2ee9c099afc41d884bf788b9e7 | 1,173 | package seng2200;
import static java.lang.System.out;
public class Icosahedral {
private static final int synX2454int = 2;
private static final int synX2453int = 1;
private static final int synX2452int = 0;
private static final String synX2451String = "Not enough Parameters";
private static final int synX24... | 28.609756 | 89 | 0.71867 |
61463ac8fa1e819d12a388adf79b98669b702727 | 6,553 | /**
*
* No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 1.0.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
... | 26.530364 | 131 | 0.687166 |
ff5131c3d83b94bd33855a0e73f320f85ab81ac8 | 8,094 | /*
[The "BSD licence"]
Copyright (c) 2003-2005 Terence Parr
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list ... | 32.119048 | 80 | 0.662466 |
56b82e97f28758321064cdcbc618c5e2417c0c13 | 719 | package cn.riversky.yanmo.actiontype.command.e2;
/**
* 主板开机的背景,这里应用命令模式。
* invoker-->Box;拥有命令(set方式传入),拥有开机按钮命令
* command:定义execute接口
* ConcreteCommand->OpenCommand:实现command接口,并且具有Receive(MainBoardApi)引用-》构造传入。
* Receive->MainBoardApi(这里采用接口方式-》接收者类型比较多)技嘉和微星两个实现
* @author riversky E-mail:riversky@126.com
* @v... | 28.76 | 78 | 0.668985 |
0c6b9e660ba09320d076920084b22d6c536494ee | 239 | package com.transport.irctc.TicketBooking.Models;
import lombok.*;
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Getter
@Setter
public class Seat {
private int coachNumber;
private int seatNumber;
private SeatType type;
}
| 15.933333 | 49 | 0.769874 |
1a20f209c08c5b75bd25341b68a4f644e20ed51b | 32,205 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * 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 ... | 14.882163 | 810 | 0.807049 |
7c10ef43d266826102caf2873c11fb563de1473a | 6,712 | /*
* 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... | 26.015504 | 128 | 0.751788 |
412a27768c52333c69dbbf794709afaa186faecb | 440 | package eu.the5zig.mod.config.items;
public class HexColorItem extends StringItem {
public HexColorItem(String key, String category, String defaultValue) {
super(key, category, defaultValue, 7, 8);
getColor();
}
@Override
public void action() {
try {
getColor();
} catch (NumberFormatException ignored)... | 18.333333 | 72 | 0.695455 |
9291bd98bb5a5c35fa105521e149b3db7bc74680 | 1,073 | package com.example.abhinandhari.codeforces.Api.Submission;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class Problem {
@SerializedName("contestId")
private Integer contestId;
@SerializedName("index")
private String index;
@SerializedName("name")
private ... | 22.829787 | 108 | 0.65424 |
1c89133f2da8880c468411726cfd8c85efbf3e2f | 3,467 | package br.com.desafiopubfuture.DesafioPubFuture.controller;
import br.com.desafiopubfuture.DesafioPubFuture.model.*;
import br.com.desafiopubfuture.DesafioPubFuture.service.ReceitaService;
import br.com.desafiopubfuture.DesafioPubFuture.service.ContaService;
import org.springframework.beans.factory.annotation.Autowire... | 38.098901 | 95 | 0.691664 |
cb406df8dca55caaedc0d26edc7c745ec462ff8a | 1,428 | package seedu.address.storage;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import seedu.address.commons.exceptions.IllegalValueException;
import seedu.address.model.lesson.Homework;
/**
* Jackson-friendly version of {@link Homework}.
*/
class JsonAdaptedH... | 28.56 | 105 | 0.703081 |
215542c36e724a227dca4cf6639524268cd98588 | 622 | /*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/
package org.opensearch.sql.doctest.core.annotation;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention;
import java.lang.annotation... | 21.448276 | 90 | 0.750804 |
409eee766632256373d50c5d6be39dc3c6073386 | 374 | package com.altamiracorp.bigtable.model.exceptions;
/**
* Runtime exception used to indicate that a BigTable implementation
* could not find a table that is expected to exist
*/
public class TableDoesNotExistException extends RuntimeException {
public TableDoesNotExistException(final String message, final Thro... | 28.769231 | 84 | 0.76738 |
14caedc2f278223903b51164a85c94b9de972f43 | 1,568 | /*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 30.745098 | 93 | 0.731505 |
123e53755ac864ab487ca7c50a599bb206158a36 | 9,360 | package simulation;
import automail.Automail;
import automail.MailItem;
import automail.MailPool;
import exceptions.ExcessiveDeliveryException;
import exceptions.ItemTooHeavyException;
import exceptions.MailAlreadyDeliveredException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
i... | 38.838174 | 135 | 0.687179 |
edab5345c8ee04bd2c8f3abefda2a121c73555b6 | 2,402 | /*
* This file is part of Koremods, licensed under the MIT License
*
* Copyright (c) 2021-2022 Garden of Fancy
*
* 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, in... | 41.413793 | 120 | 0.740216 |
7ba9e48de8cde2648c978a7ab65b5cbed4a1e4bc | 4,365 | package filters;
import objects.JSONArray;
import objects.JSONFile;
import objects.JSONObject;
import objects.WrappedPrimitive;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;
class BaseFilter {
<T> List<T> getAllOfType(JSONFile file, Class<T> clazz) {
JSON... | 38.973214 | 133 | 0.614891 |
37700baf180979a7d066fe3cb53d759d6e058cf0 | 6,019 | /*
* The MIT License
*
* Copyright 2016 VistaraIT, Inc. All Rights Reserved.
*
* 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... | 47.023438 | 99 | 0.736003 |
0321958b9959f812ba540d54ee91af8c4b6ca7b7 | 837 | package com.atguigu.springboot.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.Re... | 27 | 119 | 0.756272 |
39bd504fd4fc935fc9f383bd354d15aa080ca085 | 168 | package org.bantu;
import java.util.Collection;
/**
* @author Mário Júnior
*/
public interface MenuIndexer {
public void index(Collection<MenuItem> menus);
}
| 12.923077 | 50 | 0.714286 |
13503bfb98163437cde5a872803bc14ccd2ed299 | 152 | package com.nortal.spring.cw.core.web.component.modal;
/**
* @author Margus Hanni
* @since 04.03.2013
*/
public enum ModalType {
DIALOG, POPUP
}
| 12.666667 | 54 | 0.690789 |
d32b6dd10d86af2b9014c10bfd354af6888bf5d8 | 461 | package com.ee.imperator.api.handlers;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Matches variables in an API call to the annotated parameter.
*/
@Target(ElementType.PARAMETER)
@Ret... | 24.263158 | 64 | 0.739696 |
1a7638894b2a0f3364efe8a53b8ed4380091022e | 1,583 | package uk.gov.ida.verifyserviceprovider.healthcheck;
import com.codahale.metrics.health.HealthCheck;
import net.shibboleth.utilities.java.support.resolver.CriteriaSet;
import org.opensaml.core.criterion.EntityIdCriterion;
import org.opensaml.saml.metadata.resolver.MetadataResolver;
import org.opensaml.saml.saml2.meta... | 36.813953 | 145 | 0.716361 |
1244a5504168e5789a7865460d94041ae41f4d5e | 7,960 | package info.hccis.parkingPass.controllers;
import info.hccis.parkingPass.bo.ParkingPassBO;
import info.hccis.parkingPass.dao.ParkingPassDAO;
import info.hccis.parkingPass.jpa.entity.ParkingPass;
import info.hccis.parkingPass.repositories.ParkingPassRepository;
import java.util.ArrayList;
import java.util.Optio... | 33.586498 | 129 | 0.635427 |
93c455209122e866fcbd7ca502c2c52c9ef197c3 | 1,549 | import java.util.HashSet;
import java.util.Set;
public class Problem73 {
/**
* Method to get all the numbers that are co-prime to the given num
* Algo :-
* * If n has the factor 2 every 2nd number will not be relatively prime to n
* * if n has the factor 3 every 3rd number will not b... | 28.685185 | 86 | 0.481601 |
cf8ecbfe97b6e672d2a0eb5881b1e9043e77d0df | 591 | package com.huifer.springboot.mysql.repo.one;
import com.huifer.springboot.mysql.pojo.one.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* <p>Title : StudentRepoService </p>
* <p>Description : </p>
*
* @author huifer
* @date 2019-06-28
... | 23.64 | 84 | 0.72758 |
088b206ac636dd8da5df5828f0f8a30c7b7dce7c | 22,062 | /*******************************************************************************
* Copyright 2017 The MIT Internet Trust Consortium
*
* Portions copyright 2011-2013 The MITRE Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... | 36.647841 | 149 | 0.774137 |
d5e8705425c4001a1d05bd15df68a93cef768f5d | 856 | package com.ngdesk.reporting;
import java.util.List;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import com.fasterxml.jackson.annotation.JsonProperty;
public class Field {
@JsonProperty("FIELD_ID")
@NotNull(message = "FIELD_ID_NOT_NULL")
... | 17.469388 | 107 | 0.700935 |
74c39aea746847e95ee12ea04b6208ca24a749ce | 31 |
public class sample {
}
| 6.2 | 22 | 0.548387 |
583770806eea8e1dec8284433d9e0a6903bf846a | 3,044 | package Moonworks.cards;
import Moonworks.OrangeJuiceMod;
import Moonworks.cardModifiers.NormaDynvarModifier;
import Moonworks.cards.abstractCards.AbstractNormaAttentiveCard;
import Moonworks.characters.TheStarBreaker;
import Moonworks.powers.TemporaryStrengthPower;
import basemod.helpers.CardModifierManager;
import c... | 33.822222 | 158 | 0.73226 |
a20519c64c4269b09ece05f819509f25fc2dbb08 | 2,190 | package spaceInvaders;
public class Bitmap {
public int[] pixels;
public int width, height;
public Bitmap(int width, int height) {
this.width = width;
this.height = height;
pixels = new int[width*height];
}
public void drawSprite(Sprite sprite, int xp, int yp) {
for (int x... | 23.548387 | 82 | 0.487215 |
0d135411a17daefc77daf1a6e515102cd23d776b | 1,754 | /**
* Copyright (c) 2008 Pyxis Technologies inc.
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This software is ... | 31.890909 | 88 | 0.717218 |
d6fc5420a2d07acb660b5aa1104cd27494e8ed51 | 2,237 | // Copyright (c) Rory Claasen. All rights reserved.
// Licensed under the MIT License.
package dev.roryclaasen.vcsparser.measures;
import static dev.roryclaasen.vcsparser.metrics.MetricKeyConverter.getAllDatesForMetric;
import org.sonar.api.ce.ComputeEngineSide;
import org.sonar.api.ce.measure.Measure;
impo... | 40.672727 | 147 | 0.729101 |
78b90f632c25e469e5c03f473bbf3bac75acbae8 | 979 | package com.example.jeson.button;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class MainActivity extends Activity{
private Button bt_one, bt_two;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreat... | 28.794118 | 64 | 0.589377 |
13e9d9dc15978ecc404be99eef302f8b27f123fb | 7,257 | /*
* Copyright (C) 2012 Andrew Neal
* Copyright (C) 2014 The CyanogenMod Project
* Copyright (C) 2021 The LineageOS Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* h... | 34.393365 | 98 | 0.602728 |
cd24a62965e34a5fe36c41ea333a8408a4c27659 | 16,792 | /*
* Copyright 2011 Jon S Akhtar (Sylvanaar)
*
* 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 applicabl... | 42.511392 | 163 | 0.685326 |
78995a2e9999b14b8c9ddc7080666eb77528e94f | 1,077 | package com.github.edipermadi.security.blobfish;
import java.util.Set;
/**
* Blob entry data type interface
*
* @author Edi Permadi
*/
public interface Blob {
/**
* Get blob metadata
*
* @return metadata object, see {@link Metadata}
*/
Metadata getMetadata();
/**
* Get blob p... | 18.568966 | 62 | 0.518106 |
63a56c113912b78241bbb5c750a18d32fd0d1f54 | 9,900 | package io.renren.modules.management.entity;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldStrategy;
import java.io.Serializable;
import java.util.Date;
/**... | 16.638655 | 69 | 0.663838 |
643c6072467931b72b235aba4740e9a2ba63b27b | 1,943 | /**
* <h2>Registry Entry Attachments</h2>
*
* <p>
* A simple API for adding arbitrary values to any instances managed by a {@link net.minecraft.util.registry.Registry Registry}.
* <p>
* {@link org.quiltmc.qsl.registry.attachment.api.RegistryEntryAttachment RegistryEntryAttachment} contains a number of methods for... | 43.177778 | 199 | 0.718477 |
6cc3c8fc546309ea3c1d9cc014b99127d56162f6 | 3,136 | /**
* Copyright 2005-2019 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* Unless required by a... | 39.696203 | 151 | 0.729911 |
f2493fe78f5f3660212de496e7d7f11c6a314810 | 1,128 | /*
* Copyright 2008 by Emeric Vernat
*
* This file is part of Dead Code Detector.
*
* 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... | 33.176471 | 79 | 0.739362 |
d87b77a169eefa41222f74553b77bc3f14fe52e8 | 320 | package no.nav.foreldrepenger.domene.arbeidsforhold.ytelse.infotrygd.sak;
import no.nav.vedtak.exception.IntegrasjonException;
import no.nav.vedtak.feil.Feil;
public class InfotrygdUgyldigInputException extends IntegrasjonException {
public InfotrygdUgyldigInputException(Feil feil) {
super(feil);
}
}
| 29.090909 | 74 | 0.8 |
3dc0141e13ea3c50a2966920ffab1c08705613a5 | 515 | package org.terifan.vectorgraphics;
import java.awt.Graphics2D;
import java.awt.Rectangle;
public class DrawArc extends Rectangle implements Primitive
{
protected int mStartAngle;
protected int mEndAngle;
public DrawArc()
{
}
public DrawArc(int x, int y, int width, int height, int aStartAngle, int aEndAnge... | 16.612903 | 84 | 0.730097 |
15007e8fdda74550cc7bd9e0a5ebe532ad158d81 | 1,796 | package io.coin.ccbc.infra.slack;
import com.slack.api.Slack;
import com.slack.api.methods.SlackApiException;
import com.slack.api.methods.request.chat.ChatPostMessageRequest;
import com.slack.api.methods.response.chat.ChatPostMessageResponse;
import com.slack.api.model.Attachment;
import io.coin.ccbc.support.alerter... | 24.60274 | 89 | 0.622494 |
bbac3fc482eb9edcaca2c5e55280a0d5fa051db4 | 1,132 | import java.io.*;
import java.util.*;
public class main {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
int i = Integer.parseInt(sc.nextLine());
int[] arr = new int[5];
for (int j = 0; j < i; j++) {
int k = sc.nextInt();
a... | 21.358491 | 54 | 0.396643 |
aa93d0dda788c800e97fa27e19fa76e38bcee39d | 1,378 |
/**
**/
public class TestSqlLike {
public static void main(String[] args) {
String sql=" select * from person where personid like '%hello%' or name = 'asus'";
String[] strings = formatKeyValue(sql);
System.out.println("key="+strings[0]);
System.out.println("value="+strings[1]);
... | 30.622222 | 90 | 0.530479 |
47cba5311a1c337f495c0a00578a27267fdf67e6 | 990 | package br.com.igreja.cellapp.model;
import java.io.Serializable;
public class Avisos implements Serializable{
private static final long serialVersionUID = -3580551079882619913L;
private Integer id;
private String imagemEvento;
private String titulo;
private String dataEvento;
private String dataPublicacao;
... | 21.521739 | 68 | 0.754545 |
2fdf1b3fd5ca82b132b43c070154fcf524876365 | 240 | package com.biykcode.demo4;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
@Configuration
@ComponentScan("com.biykcode.demo4.event")
public class EventConfig {
}
| 21.818182 | 60 | 0.833333 |
944f8d03b471f134fab7da5490c6e487dd8db20f | 592 | package com.moto.actions;
import android.content.res.ColorStateList;
import android.os.Bundle;
import android.preference.PreferenceActivity;
public class MonetPreferenceActivity extends PreferenceActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceStat... | 37 | 98 | 0.785473 |
6ec92be65dcc9603d3b42b216eacc0ecf6894553 | 1,520 | /* This file was generated by SableCC (http://www.sablecc.org/). */
package soot.jimple.parser.node;
import java.util.*;
import soot.jimple.parser.analysis.*;
public final class ANullBaseTypeNoName extends PBaseTypeNoName
{
private TNullType _nullType_;
public ANullBaseTypeNoName()
{
}
public A... | 18.095238 | 67 | 0.534868 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.