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 |
|---|---|---|---|---|---|
242110462d937384bbb9805c357f14f3d1ee6057 | 1,740 | /*******************************************************************************
* Copyright 2016 MediaMath
*
* 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.or... | 25.970149 | 80 | 0.627011 |
86cceaf6bf267606afb3659f34dc2025a437a468 | 3,716 | package io.virusafe.security.encryption;
import io.virusafe.exception.EncryptionProviderException;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertThrows;
class SymmetricEncryptionProviderImplTest {
private static final String SYMME... | 54.647059 | 393 | 0.775027 |
f640ff3ed974872dde9324b853fedc1fe2042c74 | 8,039 | package com.puzzle15.terminal;
import com.puzzle15.puzzles.Position;
import com.puzzle15.puzzles.Puzzles;
import com.puzzle15.puzzles.PuzzlesImpl;
import com.puzzle15.puzzles.factory.ShuffledPuzzlesFactory;
import com.puzzle15.puzzles.factory.WinPuzzlesFactory;
import com.puzzle15.puzzles.state.ModifiablePuzzlesState;... | 51.203822 | 142 | 0.719368 |
9d52898d4a7b5ba3731412b91ef634c8503e47fe | 704 | package de.fu_berlin.imp.apiua.groundedtheory.handlers;
import org.apache.log4j.Logger;
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.swt.widgets.FileDialog;
import org.eclipse.ui.handlers.Handl... | 28.16 | 72 | 0.8125 |
8f8eed071c3e50fcfc3c1c5dd749ea69738c82fb | 3,807 | package org.firstinspires.ftc.teamcode.drivers;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.Servo;
// MovementDriver 1.0.1
// NOT backwards compatible
// TODO: Fix targetRotation()
public class MovementDriver extends Driver {
public DcMotor fl=null;
public DcMotor fr... | 31.204918 | 145 | 0.572367 |
7ba10c1ce31f895a085a094121cbff43d36a0c60 | 434 | package hu.tamaskojedzinszky.android.materialsearch.sample.data;
public class Person {
public final String firstName;
public final String lastName;
public final String company;
public final String address;
public Person(String[] fields) {
int i = 0;
this.firstName = fields[i++];
... | 24.111111 | 64 | 0.638249 |
640da205c203a03cad79676af76c31e21bf11c8f | 3,483 | package com.rideaustin.config;
import javax.inject.Inject;
import javax.sql.DataSource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;
import org.... | 46.44 | 159 | 0.805914 |
e725d6aa963f1eec27142a035e6e869c6f88a8b7 | 570 | package com.vivek.actorsystem.message;
public class Message {
private String tag; //operation
private String target; //unique actor address
private String data; //data to be used for operation. Keeping it string for extensibility
public Message(String tag, String target, String data) {
this.t... | 21.111111 | 93 | 0.624561 |
e339ba22170dcb1862cf9703c2f616e7fc4870d9 | 1,851 | package com.packtpub.yummy.ui;
import com.packtpub.yummy.model.Bookmark;
import com.packtpub.yummy.service.BookmarkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotatio... | 30.85 | 74 | 0.703944 |
2b803b5879550acde01f7d50551a9dffff85afc6 | 1,725 | package com.knowgate.encryption;
import java.nio.charset.StandardCharsets;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
public class SHA512 implements HashProvider {
private String inputValue;
private String salt;
public SHA512() {
salt = null;
}
public SHA512(final St... | 24.295775 | 83 | 0.710145 |
18435e205ce9b3e9432205426b1f2b3d0eea02a9 | 10,853 | /*
* 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 ... | 48.022124 | 179 | 0.689763 |
1e2ba8d4d1dc32f905b86db548dd66587fb174ec | 2,865 | package org.hisp.dhis.jdbc.statementbuilder;
/*
* Copyright (c) 2004-2018, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain th... | 27.815534 | 82 | 0.675044 |
5b55dd1492f7f94b21c5b4e75f15998ea21987c1 | 5,186 | // Copyright 2000-2018 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 com.intellij.codeInsight.template.postfix.templates;
import com.intellij.codeInsight.completion.*;
import com.intellij.codeInsight.lookup.Lookup;
import com.intellij.code... | 44.706897 | 140 | 0.685114 |
8f0b0ead51842174073f9545186478d8e84c6250 | 51,742 | /*
* Copyright 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 39.558104 | 100 | 0.648004 |
b09992b55c9f2b769474544f063db7d839fe10ae | 9,296 | /* $Id$
*
* 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")... | 25.538462 | 97 | 0.645331 |
861f913d3586d4370e4167fa48a6dc0f84cc8dfc | 1,842 | package bfs;
import java.util.ArrayDeque;
import java.util.Queue;
/**
* 1162. 地图分析
* <p>
* 根据陆地源向外搜索海洋,搜索过一次的海洋不能重复搜索
*
* @author Muxuan
* @email muxuan@maihaoche.com
* @since 2020-03-29
*/
public class MaxDistance1162 {
public int maxDistance(int[][] grid) {
int n = grid.length;
//放入队列
... | 26.695652 | 56 | 0.338762 |
108c7ed6c3d3b034b624fac8518ddf54b1074e1f | 120 | package com.torlus.jnl.entities;
public class Or2u extends Or2 {
public Or2u() {
// Same as OR2 (?)
super();
}
}
| 13.333333 | 32 | 0.633333 |
1b266aa59ab89dcb02da9982ec5bb156e30057ec | 1,357 | // Greedy
// There are N children standing in a line. Each child is assigned a rating value.
// You are giving candies to these children subjected to the following requirements:
// Each child must have at least one candy.
// Children with a higher rating get more candies than their neighbors.
// What is the minimum ... | 33.097561 | 104 | 0.59101 |
3c7dd86f04456499b2a95d9797a6e68550451941 | 912 | package in.xnnyygn.concurrent.stm2;
import javax.annotation.Nonnull;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedList;
class TObjectLog {
private static final Object EMPTY_VALUE = new Object();
private long version;
private Object newValue = EMPTY_VALUE;
private L... | 22.243902 | 90 | 0.661184 |
dc3da36efbf96ebe5ed734b84b7f6fa34369dae8 | 1,316 | package ch.skymarshall.tcwriter.generators;
import java.io.IOException;
import java.util.Collection;
import ch.skymarshall.tcwriter.generators.model.persistence.IModelPersister;
import ch.skymarshall.tcwriter.generators.model.persistence.JsonModelPersister;
import ch.skymarshall.tcwriter.generators.model.testapi.Test... | 32.097561 | 113 | 0.804711 |
1b15736d5c8c3895444898ec08f6904de576c251 | 1,510 | package io.yapix.parse.parser;
import com.intellij.openapi.module.Module;
import com.intellij.openapi.project.Project;
import com.intellij.psi.PsiType;
import io.yapix.config.YapixConfig;
import io.yapix.model.DataTypes;
import io.yapix.parse.util.PropertiesLoader;
import io.yapix.parse.util.PsiTypeUtils;
import java.... | 29.607843 | 103 | 0.696689 |
5028406029f711aa40168de38c56adda6589e5fa | 3,058 | package cn.stj.settings.model;
import android.content.Context;
import android.content.Intent;
import android.media.Ringtone;
import java.util.List;
import java.util.Locale;
public interface SettingModel {
/**
* set airplane mode
* @param isOpen
*/
public void setAirplaneMode(Context context,boolean isOpen)... | 20.662162 | 114 | 0.653695 |
b14329f32effc9e856e0340f02a0c1428d79e529 | 453 | package com.example.administrator.rxjavaandretrofitsimple.mvp.view;
import com.example.administrator.rxjavaandretrofitsimple.bean.WeChatResponse;
import com.example.administrator.rxjavaandretrofitsimple.mvp.view.base.BaseView;
/**
* 作者:quzongyang
*
* 创建时间:2017/1/20
*
* 类描述:微信精选
*/
public interface WeChatView e... | 21.571429 | 80 | 0.761589 |
e293661782b336ea875afce8c1f6a7bc24ceb72d | 2,463 | package com.guimeira.rrtcontrol.gui;
import com.guimeira.rrtcontrol.algorithm.*;
import java.util.List;
import javax.swing.*;
import java.awt.*;
public class MainWindow extends JFrame {
private WorldPane worldPane;
private ModelChooserPane modelChooserPane;
private PlannerPane plannerPane;
public Ma... | 30.7875 | 111 | 0.676817 |
bd7ce95370f646a545b18518083d06526d85e6ab | 2,122 | /**
* Copyright 2011 Membase, 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 ... | 27.205128 | 91 | 0.587182 |
02cfe742dbba03524fceca18c8afe8311548ebc8 | 990 | package visnode.pdi.process;
import org.paim.commons.Image;
import org.paim.commons.ImageFactory;
import visnode.commons.Input;
import visnode.commons.Output;
import visnode.pdi.Process;
/**
* Process for getting image informations
*/
public class InformationProcess implements Process {
/** Information process... | 21.521739 | 72 | 0.636364 |
7fcf5296cdaa4ff4967eda833edbde391a606eaf | 669 | package com.DesignPatterns.CreationalPatterns.abstractFactory.ant;
import com.DesignPatterns.CreationalPatterns.abstractFactory.Button;
import com.DesignPatterns.CreationalPatterns.abstractFactory.TextBox;
import com.DesignPatterns.CreationalPatterns.abstractFactory.WidgetFactory;
import com.DesignPatterns.CreationalP... | 31.857143 | 76 | 0.804185 |
303dfcf4764183229bab46634a2d17e6a73e8a2a | 3,489 | /*******************************************************************************
* Copyright 2020 Pinterest, 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.apac... | 30.605263 | 109 | 0.676698 |
f85a91d8706ccf579e0517f0846f36d3c09dd295 | 1,731 | /*
* jGnash, a personal finance application
* Copyright (C) 2001-2018 Craig Cavanaugh
*
* This program 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 3 of the License, or
* (at your opti... | 33.941176 | 84 | 0.737724 |
1e0f9da9f2452d12ab59dd73616b971d56bfa37b | 3,046 | /*
* Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 37.604938 | 94 | 0.709127 |
7974aa9b3f551b8ac25331dffca8635881e65aa8 | 609 | package de.fraunhofer.iais.eis.mixins;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import de.fraunhofer.iais.eis.*;
import de.fraunhofer.iais.eis.util.*;
@JsonTypeName("RouteStep")
@JsonTypeInfo(us... | 29 | 72 | 0.796388 |
294049804378939389014ae7eaac344e9d8f282a | 221 | package diferencia;
import org.apache.hadoop.util.ToolRunner;
public class Main
{
public static void main(String[] args) throws Exception
{
System.exit(ToolRunner.run(null, new Worker(), args));
}
}
| 18.416667 | 62 | 0.687783 |
ba148264786b3365ff2f948b319c6ede0401092a | 1,466 | /*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.test.loadplans.walking;
import javax.persistence.Entity;
imp... | 25.719298 | 94 | 0.759209 |
bb3bf72d5ba679938903344912d43571dc0198e6 | 1,606 | package com.ikaimen.javase;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
import java.util.concurrent.*;
/**
* @ClassName TestMultThread
* @Description TODO
* @Author chentao
* @Date 2019/8/7 1:47 PM
* @ModifyDate 2019/8/7 1:47 PM
* @Version 1.0
*/
public class TestMultThread {
private ... | 22.305556 | 113 | 0.615816 |
07543f18fb06c2e0d9aab113f0f8de966905256a | 7,011 | package org.talchain.net.rlpx;
import com.typesafe.config.ConfigFactory;
import org.talchain.config.NoAutoscan;
import org.talchain.config.SystemProperties;
import org.talchain.core.Block;
import org.talchain.core.TransactionReceipt;
import org.talchain.crypto.ECKey;
import org.talchain.facade.Ethereum;
import org.tal... | 37.897297 | 166 | 0.6089 |
dc1761c2a6fe6fa9a96c7627805f844b114fe5f5 | 159 | import name.falgout.jeffrey.testing.processor.ExpectError;
public class Expectations {
@ExpectError(value = "foo", lineOffset = 5)
public void foo() {}
}
| 22.714286 | 58 | 0.735849 |
5d61eb15c23c10da24856a667644e7e7e4b1ac6a | 1,379 | package hu.bme.mit.theta.solver.smtlib.impl.princess;
import hu.bme.mit.theta.solver.ItpSolver;
import hu.bme.mit.theta.solver.smtlib.impl.generic.GenericSmtLibSolverBinary;
import hu.bme.mit.theta.solver.smtlib.impl.generic.GenericSmtLibSolverFactory;
import hu.bme.mit.theta.solver.smtlib.impl.generic.GenericSmtLibSy... | 44.483871 | 110 | 0.791878 |
14a67c740f5d8bf09847a5bb2b67433dee47d2ce | 718 | package io.github.jarvisjin.finexpr.operator;
import java.math.BigDecimal;
import java.math.MathContext;
import java.util.List;
import io.github.jarvisjin.finexpr.expr.ExprException;
public class DivideOperator extends Operator {
public static final String SYMBOL = "/";
private static DivideOperator instance = n... | 23.933333 | 65 | 0.75766 |
ae774c8a857916b413ef84fe0357b11651d85173 | 2,988 | package io.freedriver.serial;
import io.freedriver.base.util.ByteArrayBuilder;
import io.freedriver.base.util.UncheckedCloseable;
import io.freedriver.serial.api.exception.SerialResourceException;
import java.util.Iterator;
import java.util.Objects;
import java.util.function.Function;
import java.util.logging.Logger;... | 28.457143 | 115 | 0.621486 |
27600663ef41a0a61eafc89b0ed8196edbca6221 | 2,971 | package me.paulhobbel.marsphotos.providers.models;
import android.os.Parcel;
import android.os.Parcelable;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.Serializable;
public class Photo implements JSONModel<Photo>, Parcelable {
public static final Creator<Photo> CREATOR = new Creato... | 22.507576 | 75 | 0.566813 |
2a7453b5669d65fe6ce0385d045efc46e555b4f4 | 1,592 | package com.udn.ntpc.od.model.tag.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Gene... | 26.533333 | 150 | 0.761935 |
d4f654fa94a34574ee6743542602a5d3c5ab9702 | 1,714 | package com.hqc.service;
import com.hqc.entity.SysAdminEntity;
import java.util.List;
import java.util.Map;
/**
* 系统用户
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2016年9月18日 上午9:43:39
*/
public interface SysAdminService {
/**
* 查询用户的所有权限
*
* @param userId 用户ID
* @return ... | 17.313131 | 73 | 0.56126 |
e911fd9178da235ef6ba85eb3a3ab663018f964f | 2,366 | package Problem_2573;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Scanner;
public class Main {
static int N, M;
static int[][] arr;
static boolean[][] isvisited;
static int[] dx = { 0, 1, 0, -1 };
static int[] dy = { 1, 0, -1, 0 };
public static void bfs() {
int cnt;
... | 22.11215 | 84 | 0.406593 |
e4bd78a6e9ab7e2f9c07dd8807051a4de48d0e80 | 787 | package question2;
public class FahrenheitCelsius{
public static void main(String[] args){
int fahrenheit;
float celsius;
try{
for(int i = 0; i < args.length; i++){
fahrenheit = Integer.parseInt(args[i]);
celsius = fahrenheitEnCelsius(fahrenheit);
... | 27.137931 | 85 | 0.493011 |
ad73c39b2f124998687615f0321cbd9508c33e29 | 1,712 | package com.github.zkejid.springdemo.web;
import com.github.zkejid.springdemo.entities.TextEntity;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemp... | 32.301887 | 105 | 0.699182 |
c8b5bda4cf41f911e82e03c0f7f1242dbf0c88fb | 836 | package com.jastley.exodusnetwork.collections;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.ViewModel;
import com.jastley.exodusnetwork.Utils.LiveDataResponseModel;
import com.jastley.exodusnetwork.app.App;
import com.jastley.exodusnetwork.repositories.CollectionsRepository;
import javax.inject.Inje... | 29.857143 | 85 | 0.801435 |
dcd5f9c8431854665cb9eaf47b3b35d8cf82272a | 3,248 | /*******************************************************************************
* The MIT License
*
* Copyright (c) 2018 knokko
*
* 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 with... | 43.306667 | 81 | 0.702894 |
609adff0d4bc7a6610d2044d1938221f00899a2e | 2,308 | /*
* #%L
* =====================================================
* _____ _ ____ _ _ _ _
* |_ _|_ __ _ _ ___| |_ / __ \| | | | ___ | | | |
* | | | '__| | | / __| __|/ / _` | |_| |/ __|| |_| |
* | | | | | |_| \__ \ |_| | (_| | _ |\__ \| _ |
* |_| |_| \__,_|___/... | 27.152941 | 79 | 0.623484 |
44bf7ed64f0bed8fbcc0cbde4e6ce3512c7d0542 | 512 | package org.lionsoul.jcseg.test;
import org.lionsoul.jcseg.IWord;
import org.lionsoul.jcseg.segmenter.Word;
public class WordTest
{
public static void main(String[] args)
{
IWord word1 = new Word("科技", IWord.T_CJK_WORD);
IWord word2 = word1.clone();
word2.setPosition(120);
... | 25.6 | 96 | 0.636719 |
e45a63c1783f7545781d64c2612ec4e871a01a06 | 3,126 | /*
* Copyright 2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 46.656716 | 160 | 0.740883 |
ec3cb26c115f55269f7738ad6fd2a524078ceb4e | 2,932 | /*******************************************************************************
* Copyright (c) 2011, 2015 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
... | 40.164384 | 124 | 0.690314 |
0ca703bade9b3dbb51c81cb263480907eb1b9cfc | 1,789 | package com.jerry.controller;
import com.jerry.model.LogModel;
import com.jerry.model.ResultModel;
import com.jerry.project.ProjectFile;
import com.jerry.service.LogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller... | 23.853333 | 62 | 0.759083 |
575469034615f02f61cb75601e7c54d6340e6e76 | 924 | package de.bht.ema.around.exceptions;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody... | 35.538462 | 90 | 0.83658 |
57551e2b470f286f30af1f40f8bb4f876ac40d82 | 1,187 | package kr.starbridge.web.domain.bridge.controller;
import kr.starbridge.web.domain.bridge.dto.RoomRoleDTO;
import kr.starbridge.web.domain.bridge.service.RoomRoleService;
import kr.starbridge.web.domain.member.dto.MemberDTO;
import kr.starbridge.web.global.common.response.ApiResult;
import kr.starbridge.web.global.ut... | 33.914286 | 87 | 0.802022 |
b3be183fdf1aa2b7ee39b8e8a07e888c5bb656bd | 1,359 | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.metrics.impl;
import net.sourceforge.pmd.lang.java.ast.ASTAnyTypeDeclaration;
import net.sourceforge.pmd.lang.java.ast.ASTAnyTypeDeclaration.TypeKind;
import net.sourceforge.pmd.lang.java.metr... | 30.886364 | 83 | 0.755703 |
88893d4d1127ae3bd658c39c2cd1a3d4f75deca8 | 2,427 | package controllers.ngCodeGen;
//
// Author: Alexey Zorkaltsev (alexey@zorkaltsev.com)
//
import code.docflow.DocflowConfig;
import code.docflow.codegen.DocflowCodeGenerator;
import code.docflow.compiler.enums.BuiltInTypes;
import code.docflow.controlflow.Result;
import code.docflow.model.DocType;
import code.docflow.... | 40.45 | 138 | 0.650597 |
a330e2a5ef95d917d3b77410ac2beb082351fc86 | 128 | class C {
void foo(int n) {
String s = "";
if (n > 0) {
String x<caret> = "x";
}
}
} | 16 | 34 | 0.320313 |
9587e96e3c0c0f4d963e54092905db9e144912fe | 1,891 | package fi.riista.feature.shootingtest;
import org.springframework.stereotype.Component;
import static fi.riista.feature.account.user.SystemUser.Role.ROLE_ADMIN;
import static fi.riista.feature.account.user.SystemUser.Role.ROLE_MODERATOR;
import static fi.riista.feature.organization.occupation.OccupationType.AMPUMAKO... | 52.527778 | 122 | 0.83871 |
1c19224fc02523622cfb23a4a7c7a1559b588562 | 8,133 | /*
* Copyright (c) 2016, 2017, 2018, 2019 FabricMC
*
* 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... | 45.183333 | 205 | 0.785811 |
a052fdeda57059eb194e3e1c966308947cff6941 | 1,781 | package org.batfish.representation.aws;
import com.google.common.base.MoreObjects;
import com.google.common.collect.ImmutableList;
import java.util.Objects;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import javax.annotation.ParametersAreNonnullByDefault;
import org.batfish.datamodel.acl.AclLine... | 27.4 | 97 | 0.759124 |
22242f4264a11060e3fe174c0601a8d2cdb90fab | 7,732 | import dataStructure.DynamicStack;
import dataStructure.LinkedList;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;
import shape2D.Line;
import shape2D.Oval;
im... | 32.902128 | 187 | 0.598939 |
f0e6906f04156c44adbf234dadacf7ba31dacc47 | 585 | package com.facebook.rocks.swift;
import com.facebook.swift.codec.*;
import java.util.*;
@ThriftStruct("RocksIterateResponse")
public class RocksIterateResponse
{
private RetCode status;
@ThriftField(value=1, name="status")
public RetCode getStatus() { return status; }
@ThriftField(value=1, name="status")
public vo... | 23.4 | 69 | 0.740171 |
2bb01f3a97d36e3ace6f28194e6492ac9cd74ccb | 989 | package com.yirendai.infra.cicada.config;
import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
@Getter
@Component
public class CicadaCollectorProps {
@Value("${elasticsearch.node.addr}")
private String esNodeAddr;
@Value("${elasticse... | 24.121951 | 58 | 0.747219 |
3c58b59606d6f9f079667d14c46d8f04cdaddf79 | 8,403 | /*
* Copyright 2016 "Henry Tao <hi@henrytao.me>"
*
* 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 ... | 29.278746 | 115 | 0.699869 |
4c1cef34d138dd6897e624ce8057c4016e129c93 | 650 | package com.manoharprabhu.wellrested.vo;
/**
* Created by mprabhu on 12/8/2016.
*/
public class Column {
public Column(String columnType, String columnName) {
this.columnName = columnName;
this.columnType = columnType;
}
private String columnType;
private String columnName;
pu... | 18.055556 | 57 | 0.650769 |
411a43cb4dea5c150ee008bf6465aefe6aa29f17 | 883 | package le.cache.util;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
*
* @author ledwinson
*
*/
@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.... | 29.433333 | 130 | 0.705549 |
bd5be31f2d887f2a2326bb1452a02753abc5e1d5 | 783 | package com.happy3ing.juc.test.reentrant;
/**
* @Author: Dai Mengmeng
* @Description: synchronized 可重入验证 情况2:证明可重入不要求是同一个方法
* @Date: 2021/4/7 10:07
*/
public class Reentrant2 implements Runnable{
static Reentrant2 reentrant2 = new Reentrant2();
public static void main(String[] args) {
Thread thre... | 23.727273 | 69 | 0.641124 |
17fac1731b5b89bd30a9bfa3f19014917c540644 | 3,299 | /*
* Copyright 2014 - 2022 Blazebit.
*
* 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 agre... | 32.663366 | 80 | 0.642316 |
5fa19b3d4ca71fb232d62edc6b0c48422dcd6f9d | 238 | package com.code.common.batch.worker;
public abstract class AbstractMiddleWorker<E, T> extends AbstractWorker<E, T> {
public AbstractMiddleWorker() {
super();
}
protected abstract void lastWork() throws Exception;
}
| 23.8 | 79 | 0.714286 |
961564ec42ec0c542702dd933931d35f73a63849 | 2,061 | package com.twu.biblioteca.Model;
import com.twu.biblioteca.Item;
import com.twu.biblioteca.Model.Exceptions.BookAlreadyPresentException;
import com.twu.biblioteca.Model.Exceptions.InvalidInputException;
import com.twu.biblioteca.Model.Exceptions.NotFoundException;
import com.twu.biblioteca.Model.Exceptions.UserNotLog... | 31.227273 | 133 | 0.669578 |
7aec3a2eb20fa08c4c04259800786bd8f59be342 | 291 | package se.purplescout.pong.competition.compiler;
import java.io.IOException;
import java.nio.file.Path;
public class UnableToReadSourceCodeFileException extends Throwable {
public UnableToReadSourceCodeFileException(Path p, IOException ex) {
super(p.toString(), ex);
}
}
| 24.25 | 72 | 0.769759 |
2f55f650f3c15d9b88b8768eedb097a99c499491 | 838 | package ru.job4j.simpleIO;
import java.io.IOException;
import java.io.InputStream;
/**
* Byte stream. Check byte stream has even number.
* @author atrifonov.
* @version 1.
* @since 12.02.2018.
*/
public class ByteStream {
/**
* Check byte stream has even number.
* @param in InputStream.
* @ret... | 23.277778 | 52 | 0.536993 |
a9d9b2c081a4930e56f7d2a7ec15f8aff1dc088a | 1,076 | package de.visualaxon.generator;
import de.visualaxon.generator.generator.Generator;
import de.visualaxon.generator.init.guice.BaseModule;
import de.visualaxon.generator.init.guice.StandaloneModule;
import com.google.inject.Guice;
import com.google.inject.Injector;
public class VisualAxonApplication {
// publi... | 38.428571 | 107 | 0.740706 |
094fbe8de36c044216c10d207f8e1eb55cf0a7a7 | 1,355 | package com.raven.algorithm.dynamicarray;
import com.raven.algorithm.dynamicarray.entity.Car;
/**
* Description:
* date: 2022/4/30 10:39
*
* @author raven
*/
public class Main {
public static void main(String[] args) {
//ArrayList list = new ArrayList();
//list.add(99);
//list.add(88... | 27.653061 | 51 | 0.526199 |
fce7f31e738253cdc1e056eaa1ecc9e901024eae | 1,006 | package com.tvd12.ezyfox.binding.writer;
import java.util.Map;
import com.tvd12.ezyfox.binding.EzyMarshaller;
import com.tvd12.ezyfox.binding.EzyWriter;
import com.tvd12.ezyfox.builder.EzyObjectBuilder;
import com.tvd12.ezyfox.entity.EzyObject;
import com.tvd12.ezyfox.util.EzyEntityBuilders;
@SuppressWarnings("rawty... | 25.794872 | 77 | 0.767396 |
21adebe6c76e8e3650f436b90956cf71d7e43151 | 1,291 | /*
* 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 com.hackerrank.skilltrack;
import java.util.Scanner;
/**
*
* @author rommel
*/
public class JavaDatatypes {
public st... | 28.065217 | 79 | 0.4756 |
94ddce78d7b066af359be7cf8827e3f10fdf864a | 523 | package com.themastergeneral.ctdmythos.common.items.misc;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagList;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
public class GlowingItem extends BaseItem
{
public GlowingItem(String name)
{
... | 22.73913 | 59 | 0.728489 |
98ecb6628d705a218ac23af585a61a1854bc9585 | 366 | package artrointel.designpattern.creational.factory_method;
public class Client {
public Client() {
// Creation by the overriden method PizzaStore#createPizza()
PizzaStore mStore = new NewyorkPizzaStore();
Pizza myPizza = mStore.createPizza();
mStore = new ChicagoPizzaStore();
... | 24.4 | 68 | 0.674863 |
c775ad6c2480d006764d2aa362d4ce282362d6fb | 2,917 | package jason.datastructure.graph;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;
import java.util.Arrays;
import java.util.stream.Collectors;
import org.junit.Test;
/*
* Let G = (V, E) be a directed graph in which each vertex u∈V is labeled with a unique
integer L(u) fr... | 27.009259 | 122 | 0.629071 |
202e85833169e66b41b763cc538b158d7b519e41 | 281 | package com.hsdi.NetMe.ui.ContactListUtils;
import com.hsdi.NetMe.models.Contact;
public interface OnContactClickListener {
/**
* Called when a contact has been clicked
* @param contact the contact that was clicked
* */
void onClick(Contact contact);
}
| 23.416667 | 53 | 0.704626 |
8842f8caf46322aac7900fa65d2588fe69ec3361 | 1,425 | package com.hadoop.yi.mr.topn;
import com.hadoop.yi.mr.writable.FlowBean;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;
import org.apache.hadoop.mapre... | 32.386364 | 63 | 0.695439 |
46c0cfdb1f8021d54351389e03686f6a0ca647d0 | 3,655 | /*
* Copyright (c) 2011-2014 Gilbert Peffer, Barbara Llacay
*
* The source code and software releases are available at http://code.google.com/p/systemic-risk/
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obta... | 42.011494 | 182 | 0.680711 |
2f09bf60c68f2e5de862cb2f3dfb85ac8f2478a7 | 685 | package com.inf1.app.dto;
import java.time.LocalDate;
public class IndicateurDTO {
LocalDate date;
String typeIndicateur;
String typeModel;
int value;
public LocalDate getDate() {
return date;
}
public void setDate(LocalDate date) {
this.date = date;
}
public String getTypeModel() {
return typeModel... | 14.574468 | 55 | 0.716788 |
cd297f17e69da033ce5db23d3e5c3f5b37f6f4b8 | 1,806 | /*
* Copyright 2017 Axway Software
*
* 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... | 29.606557 | 80 | 0.642303 |
2379cc6dac13af0930c74522ab13b3f8a2ddfd88 | 1,135 | package tourism.backstage.service.impl;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tourism.backstage.dao.OrdersDao;
import tourism.backstage.entity.Orders;
import tourism.backstage.service.OrdersService;
... | 21.415094 | 63 | 0.679295 |
5abf0f2561002fb8de5960ba7df49f41c6ce08a8 | 2,650 | package com.haohan.platform.service.sys.modules.xiaodian.entity.printer;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.hibernate.validator.constraints.Length;
import com.haohan.platform.service.sys.common.persistence.DataEntity;
/**
* 易... | 22.844828 | 85 | 0.707547 |
0375f2fff8d20578161571108b775e4d0b4f38e3 | 1,560 | package com.yitianyigexiangfa.bellman;
public class BellmanItem {
private BellmanTask task;
private BellmanPolicy policy;
private Long lastRunTime;
private Long nextRunTime;
public BellmanItem(BellmanTask task, BellmanPolicy policy, Long lastRunTime, Long nextRunTime) {
this.task = task;
... | 23.636364 | 100 | 0.6 |
9b958194a58cfa0091fa9b71986ca2ea422b5f5f | 4,490 | package eu.yvka.shadersloth.app.materialEditor.shaders;
import eu.yvka.shadersloth.app.App;
import eu.yvka.slothengine.shader.source.ShaderSource;
import impl.org.controlsfx.skin.AutoCompletePopup;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.event.Event... | 32.536232 | 137 | 0.641425 |
7ea5a7d53fd0455581349534c6b7f05feb946c6d | 1,370 | package bfs;
import java.util.LinkedList;
import java.util.Queue;
public class BfsTest {
public static void main(String[] args) {
System.out.println(bfs(10));
}
private static int bfs(int n){
int mazeArr[][] = new int[n][n]; //表示的是01矩阵
int stepArr[][] = {{-1,0},{1,0},{0,-1},{0,1}};... | 29.148936 | 67 | 0.453285 |
96242638b7f1634cbd5ca599dcb86d01325ac87e | 193 | package org.uwpr.metagomics.go_counter.database;
public class InvalidGOTermException extends Exception {
/**
*
*/
private static final long serialVersionUID = 7158027598672675957L;
}
| 17.545455 | 67 | 0.772021 |
d3282e3ce4fd2edfdf90c6df3b11d799c5193def | 4,957 | package com.graphhopper.geocoder;
import com.graphhopper.util.Helper;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
impo... | 29.505952 | 124 | 0.575348 |
6c66d7f4b73092ecb57ad519c46ae4a113265ea4 | 4,800 | package api.support.fixtures;
import static api.support.http.CqlQuery.exactMatch;
import static api.support.http.ResourceClient.forAccounts;
import static api.support.http.ResourceClient.forFeeFineActions;
import java.util.UUID;
import api.support.http.IndividualResource;
import api.support.builders.AccountBuilder;... | 36.641221 | 93 | 0.735208 |
5c6ca7476ebc03c291293ea972dc2bb58a47788b | 5,178 | /*
* 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.521739 | 104 | 0.5618 |
976c83c64d0a72ffc1dff36868cb74625def6f26 | 12,910 | /*
* JBoss, Home of Professional Open Source
* Copyright 2009, Red Hat, Inc. and/or its affiliates, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may ... | 37.204611 | 143 | 0.755616 |
de988af3797dcdb9ea2b37ec9a652b5a1176d5b7 | 908 | package de.pawlidi.jbpm.rest.data;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown = true)
public class Containers implements Serializable {
private String type;
private String msg;
private ContainersResult result;
public Containers... | 14.885246 | 61 | 0.6663 |
ce57c3d69e9070495cc74b902d90d9428c9fb9ae | 1,014 | package top.zsmile.core.config;
import freemarker.template.Configuration;
import top.zsmile.core.constant.DefaultConstants;
import top.zsmile.core.utils.FileUtils;
import java.io.File;
import java.io.IOException;
import java.util.Locale;
public class FreemakerConfig {
public static final Configuration INSTANCE;
... | 31.6875 | 93 | 0.717949 |
d1efaaa5a5a8102de0ca75a63abd39ad193b2deb | 4,868 | package com.adgear.anoa.write;
import com.fasterxml.jackson.core.JsonGenerator;
import org.apache.thrift.TBase;
import org.apache.thrift.protocol.TBinaryProtocol;
import org.apache.thrift.protocol.TCompactProtocol;
import org.apache.thrift.protocol.TJSONProtocol;
import org.apache.thrift.transport.TFileTransport;
imp... | 29.865031 | 96 | 0.68673 |
b7c150660f4459f1ee4017b98a1c52da455cfd66 | 446 | package org.cloudfoundry.identity.uaa.provider;
import java.net.URL;
public class XOIDCIdentityProviderDefinition extends AbstractXOAuthIdentityProviderDefinition<XOIDCIdentityProviderDefinition> {
private URL userInfoUrl;
public URL getUserInfoUrl() {
return userInfoUrl;
}
public XOIDCIden... | 24.777778 | 128 | 0.76009 |
43503ff3dd735924432cfdec266e86e8bf00da4c | 153 | package net.pryoscode.kanai.code;
import lombok.experimental.StandardException;
@StandardException
public class SingletonException extends Exception {} | 25.5 | 52 | 0.856209 |
a58cf2f99dfb5a2bb8a9b08aa3b0338039d4c1a8 | 3,963 | /*
* Copyright 2015-2017 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://w... | 34.763158 | 118 | 0.679788 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.