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 |
|---|---|---|---|---|---|
9bb633c731e1153bcf30418c987869f4a675f8c9 | 353 | package cmis.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import cmis.entity.UserEntity;
@Repository
public interface UserEntityRepository extends JpaRepository<UserEntity, Integer> {
UserEntity findByUsername(String username);
UserEnt... | 29.416667 | 82 | 0.84136 |
f92619ec74e80bada54fbcf98f8eeb95e53efd9c | 4,617 | package persistence;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import log.Logger;
import run.main.App;
import utils.NameFactory;
import au.... | 27.319527 | 158 | 0.538878 |
e4e114f07fea536e62fabb541277f6ef6ae36199 | 2,257 | package com.codetaylor.mc.artisanworktables.api.tool.reference;
public enum EnumWorktableToolType {
// Blacksmith
BLACKSMITHS_CUTTERS("artisans_cutters", "Cutters"),
BLACKSMITHS_HAMMER("artisans_hammer", "Hammer"),
// Carpenter
CARPENTERS_HAMMER("artisans_framing_hammer", "FramingHammer"),
CARPENTERS_HAN... | 25.942529 | 64 | 0.727071 |
aab66428c9ef27e322e24d822e8987b0a47513bf | 1,396 | package com.biemo.cloud.auth.modular.sso.mapper;
import com.biemo.cloud.auth.modular.sso.entity.AuthCertAccount;
import com.biemo.cloud.auth.modular.sso.model.params.AuthCertAccountParam;
import com.biemo.cloud.auth.modular.sso.model.result.AuthCertAccountResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;... | 24.928571 | 136 | 0.689828 |
3c4ec4a42682a4349363c1d7ef6c425c96d98bce | 3,482 | package io.agrest.it;
import io.agrest.Ag;
import io.agrest.DataResponse;
import io.agrest.it.fixture.JerseyAndDerbyCase;
import io.agrest.it.fixture.cayenne.E3;
import io.agrest.it.fixture.cayenne.E4;
import io.agrest.property.PropertyReader;
import org.apache.cayenne.Cayenne;
import org.apache.cayenne.DataObject;
im... | 29.260504 | 113 | 0.568926 |
528043893eacf7a4c17eba762036d6cccb5a6f99 | 1,291 | package net.vatri.inventory.models;
import javax.persistence.*;
@Entity
@Table(name = "users")
public class User {
private Integer id;
private String name;
private String email;
private String password;
private String accessToken;
private String created;//Todo - Date type...
@Id
@Gen... | 18.985294 | 55 | 0.609605 |
c9a3483ecb953bc9f36a79ddd08e56c590c0f9fc | 2,390 | /**
* Copyright 2019 The JoyQueue 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 applicable law or... | 25.157895 | 87 | 0.61841 |
dd40a6b2995b4e0ee497fabd1fa6cc7eeaba87b3 | 245 | package project.actions.receipts_actions;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
public class CheckBoxIL implements ItemListener{
@Override
public void itemStateChanged(ItemEvent e) {
}
}
| 15.3125 | 49 | 0.738776 |
204787316358a2b55178b7805da8026d94a9c221 | 1,158 | /*
* 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.jpmorgan.cakeshop.model.json;
public class LogViewJsonRequest {
private String logType, logFileName;
private Inte... | 20.678571 | 79 | 0.620035 |
ed57cae57cb89b0b3e4289d115c522a673a32558 | 1,603 | package grid.puzzlebits.Path;
import java.awt.*;
import java.util.List;
import java.util.Vector;
public class GridPathCell
{
private Point myloc = new Point();
private GridPathContainer gpc;
private Vector<Path> terminalPaths = new Vector<Path>();
private Vector<Path> internalPaths = new Vector<>();
... | 29.685185 | 110 | 0.671865 |
527a0caddd4c3ef050df5cd5774eabfe301c5c3c | 5,611 | /*
* Copyright 2022 Martin Absmeier
*
* 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 ... | 32.812865 | 140 | 0.674746 |
ba7df753f8f909e5dcedb1e67807cfcf33545713 | 1,836 | package com.yl.databindingdemo.ui;
import android.databinding.DataBindingUtil;
import android.databinding.ObservableArrayMap;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import com.yl.databindingdemo.R;
import com.yl.... | 31.118644 | 111 | 0.654139 |
b0848ee404a3ac6e2c678cb7cf2a54df491b6279 | 13,698 | /* ===========================================================
* JFreeChart : a free chart library for the Java(tm) platform
* ===========================================================
*
* (C) Copyright 2000-2013, by Object Refinery Limited and Contributors.
*
* Project Info: http://www.jfree.org/jfreechart/in... | 36.822581 | 79 | 0.593225 |
e66d456ec0961647cc2242a9757c8e6f0db52338 | 4,238 | /**
* Copyright (C) 2015 Orange
* 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, s... | 30.710145 | 119 | 0.733129 |
409e00e8c8c8aad5af91be9b786883e312d7904a | 2,481 | /**
* These algorithms were implemented with the goal to experiment with them and many of them were implemented from scratch from my memory (implementing what I could still remember from class).
* This file is by no means complete / tested / safe to use.
*
* Seriously: Using this code is really dangerous.
* Howev... | 31.405063 | 226 | 0.69206 |
24f5201d19e46b849fdf389b5690ed7ec353a6d8 | 2,210 | package com.floreysoft.jmte.realLife;
import static org.junit.Assert.assertEquals;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.math.BigDecimal;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.HashMap;
import jav... | 29.466667 | 74 | 0.720362 |
a5167efe1cdff028f6a45caf1b27a5572c983c8e | 8,456 | package androidx.core.view;
import android.os.Build.VERSION;
import android.view.View;
import android.view.ViewParent;
import android.view.accessibility.AccessibilityEvent;
public final class ViewParentCompat {
private static final String TAG = "ViewParentCompat";
private ViewParentCompat() {
... | 43.142857 | 131 | 0.556528 |
6e1e19ea35ed83d1ba8dc80d3ba9a407bdda0d74 | 2,431 | /*
Licensed to Diennea S.r.l. under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. Diennea S.r.l. licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except ... | 30.772152 | 115 | 0.65035 |
53d9defd038a79efa32f5cd554dda2f27ce87a29 | 1,859 | package tap;
import static org.junit.Assert.*;
import junit.framework.Assert;
import org.junit.Test;
import tap.CommandOptions;
import tap.Phase;
import tap.Pipe;
import tap.Tap;
import tap.core.SummationPipeMapper;
import tap.core.SummationPipeReducer;
public class ReducerTests {
@Test
public void summati... | 29.983871 | 125 | 0.637439 |
1d380f543e658e1621fe91d04bb4c177631e614a | 1,255 | package com.example.cocoshop.models;
public class Vocabulary {
private String mean;
private String vocabulary;
private String read;
private String spelling;
private int vocabularyCode;
public Vocabulary(String mean, String vocabulary, String read, String spelling, int vocabularyCode) {
... | 21.637931 | 105 | 0.630279 |
3a5284561884bd163dd9623aed647155a29f2e53 | 2,923 | package com.lft.pattern13.template;
/**
* Function: ADD FUNCTION.
* Reason: ADD REASON.
* Date: 2020-09-15 11:38
* <p>
* Class Name: Template
* Package Name: com.lft.pattern13.template
* @author Laifengting / E-mail:laifengting@foxmail.com
* @version 1.0.0
* @since JDK 8
*/
public cl... | 29.525253 | 104 | 0.68115 |
5e6d98931ef9090e4447dc07fbeed138ff3914b9 | 1,810 | /**
* package: ghost.framework.web.angular1x.resource.container.manage.plugin
*
* @Author: 郭树灿{gsc-e590}
* @link: 手机:13715848993, QQ 27048384
* @Description:
* @Date: 2020/5/23:20:12
*/
//插件注释
@PluginPackage(
//添加依赖
loadClass = {ResourceContainerManageConfig.class, ResourceContainerManageRestCont... | 36.938776 | 149 | 0.650829 |
b06a9c5d830adff5abbe8690b1d8b3d6bdaf465e | 2,827 | package Lab6;
import java.util.Scanner;
public class TheMain {
public static void main(String[] args) {
ElectricAppliances refr1 = new Refrigerator("холодильник", 113, (float)22.6, "white", "Japan", 40);
Iron iron1 = new Iron("праска", 2400, (float)1.7, "purple", "France", 20);
Lapto... | 46.344262 | 116 | 0.581889 |
a02ed1c7a5c76ff31051adf469eacb262a422457 | 342 | package com.gochinatv.cdn.api.proxy;
public class UserServiceImpl implements UserService{//实现类
@Override
public void addUser(String name, String password) {
System.out.println("++++执行addUser()方法++++++");
}
@Override
public void getUser(String id) {
System.out.println("++++执行getUse... | 24.428571 | 57 | 0.631579 |
df1d09233414ecd25093cb0215571a6daa890de6 | 10,827 | package org.rx.net.http;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.*;
import io.netty.handler.codec.http.*;
import io.netty.handler.codec.http.multipart.*;
import io.netty.handler.ssl.SslContext;
import io.netty.handler.ssl.SslCo... | 39.95203 | 163 | 0.519996 |
e6ba7300d0dc8d3aff803af732ebc9515b0a1d22 | 4,074 | /*
* Copyright 2019-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 agree... | 31.581395 | 89 | 0.747423 |
d989d873dfd68b59d1bf9eaf27236e11f7503e21 | 19,036 | /* Copyright (c) 2019 FIRST. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted (subject to the limitations in the disclaimer below) provided that
* the following conditions are met:
*
* Redistributions of source code must retain the above cop... | 40.502128 | 395 | 0.566873 |
0ff2f8e3922e024810e0a23d11089be35ffffde5 | 488 | package net.earthcomputer.multiconnect.protocols.v1_8.mixin;
import net.earthcomputer.multiconnect.impl.MixinHelper;
import net.minecraft.entity.data.TrackedData;
import net.minecraft.entity.passive.CatEntity;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Accessor;
@Mixin(CatEntity.... | 30.5 | 60 | 0.793033 |
2828bcdbf664d21238ae9fd268fba6a3836a6193 | 4,163 | package application;
import java.util.Arrays;
import java.util.InputMismatchException;
import java.util.List;
import java.util.Scanner;
import java.util.stream.Collectors;
import board.Piece;
import chess.ChessMatch;
import chess.ChessPiece;
import chess.ChessPosition;
import chess.Color;
public class UI {
public s... | 30.837037 | 109 | 0.700216 |
6e5377f3c3fe1ab3a0e99cf487f14d5ae915ba8d | 2,004 | /*
* 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 ... | 32.322581 | 83 | 0.667665 |
5717b098ada16545489fedf9dfbe3a9762955ad9 | 2,715 | /*
* 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 org.thespheres.betula.xmlimport;
import java.beans.PropertyVetoException;
import java.beans.VetoableChangeListener;
import jav... | 28.578947 | 90 | 0.694291 |
7c7b5b17d09adc9af066ead66d65c547b6693af0 | 718 | package com.xing.javalib.threadlocal;
public class ThreadLocalBasic {
static ThreadLocal<Integer> threadLocal = new ThreadLocal<>();
public static void main(String[] args) throws InterruptedException {
System.out.println("zhao");
Thread childThread = new Thread(new Runnable() {
@O... | 28.72 | 72 | 0.583565 |
706752dfccfd30e1bda300aca9dcb50c8dd704a1 | 3,238 | /*
*
* 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"); y... | 29.706422 | 107 | 0.634651 |
31a000ff72bff70c36108f6ec564bfc4d9641986 | 1,481 | /**
* Copyright 2016-2017 Seznam.cz, a.s.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 30.854167 | 82 | 0.754895 |
4c6ceaae8433a877b058b1d5279171f1b6dce71c | 2,541 | package org.assertj.core.error;
import org.assertj.core.internal.*;
/**
* Creates an error message indicating that an assertion that verifies that a {@code CharSequence} contains another {@code CharSequence} only
* once failed.
*
* @author Pauline Iogna
* @author Joel Costigliola
* @author Mikhail Mazursky
*/... | 47.055556 | 144 | 0.75915 |
ef050fb089783b5aa7300abc7b2c4cfe7b7f1953 | 518 | package pojo;
public class Source {
private String fruit;
private String sugar;
private String size;
public String getFruit() {
return fruit;
}
public void setFruit(String fruit) {
this.fruit = fruit;
}
public String getSugar() {
return sugar;
}
publi... | 16.1875 | 40 | 0.573359 |
7416b12dba57efc502fbfa1ee818dbb4e59d832a | 1,324 | package au.com.agic.apptesting.utils;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import javax.validation.constraints.NotNull;
/**
* Defines a service that can be used to move the mouse on the screen
*/
public interface MouseMovementUt... | 28.170213 | 70 | 0.71148 |
9669c22ab34d51e4982de42556b8c6af863c42de | 945 | package ru.stqa.pft.mantis.appmanager;
import org.openqa.selenium.By;
public class AdminNavigationHelper extends HelperBase {
public AdminNavigationHelper(ApplicationManager app) {
super(app);
}
public void loginAdmin(String username, String password) {
wd.get(app.getProperty("web.baseUR... | 29.53125 | 82 | 0.633862 |
0cff20b61f3e2a8c2a3bb34d95673258270d3baf | 2,059 | /*
* Hibernate Validator, declare and validate application constraints
*
* License: Apache License, Version 2.0
* See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>.
*/
package org.hibernate.validator.internal.constraintvalidators.bv;
import java.lang.invoke.MethodHandl... | 32.68254 | 129 | 0.784847 |
bab7424dcda293b6135afa2d1c0a5fc4e13d8468 | 3,833 | package net.minecraft.commands.arguments;
import com.mojang.brigadier.StringReader;
import com.mojang.brigadier.arguments.ArgumentType;
import com.mojang.brigadier.context.CommandContext;
import com.mojang.brigadier.exceptions.CommandSyntaxException;
import com.mojang.brigadier.exceptions.DynamicCommandExceptionType;
... | 44.569767 | 159 | 0.740412 |
523c9a61b47c5dafedec05ac28f1330d2d30accf | 8,782 | package org.mtransit.android.ui.fragment;
import java.util.ArrayList;
import java.util.HashMap;
import org.mtransit.android.R;
import org.mtransit.android.commons.BundleUtils;
import org.mtransit.android.commons.CollectionUtils;
import org.mtransit.android.commons.LocationUtils;
import org.mtransit.android.commons.MT... | 30.387543 | 129 | 0.740834 |
c643ade5f52c132c71fccb5a2015226674207c0b | 176 | package com.eStudent.user.student;
public enum Faculty {
FACULTY_OF_TECHNICAL_SCIENCES, FACULTY_OF_BUSINESS, FACULTY_OF_INFORMATICS_AND_COMPUTING, FACULTY_OF_TOURISM;
}
| 29.333333 | 111 | 0.840909 |
f65cef62cca72d5a5ecf202c2a470b96bf55edb9 | 655 | package de.cotto.lndmanagej.configuration;
public enum PickhardtPaymentsConfigurationSettings implements ConfigurationSetting {
LIQUIDITY_INFORMATION_MAX_AGE("liquidity_information_max_age_in_seconds"),
USE_MISSION_CONTROL("use_mission_control"),
QUANTIZATION("quantization"),
PIECEWISE_LINEAR_APPROXIMA... | 26.2 | 84 | 0.738931 |
1df50e696852e4274924ec681591569ca6c890cb | 8,216 | /*
* Copyright 2010 Aalto University, ComNet
* Released under GPLv3. See LICENSE.txt for details.
*/
package input;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.lang.Integer;
import java.lang.NumberFormat... | 28.929577 | 96 | 0.646908 |
36b36ec07499549c4ec5d0605e86e4e4c96ddca5 | 6,779 | /*
* Copyright 2017 Adaptris 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 or agree... | 32.748792 | 132 | 0.726803 |
e29cbf490590afc0de6f30b9003abb9071be2ad9 | 3,806 | package br.com.nao.saia.controller;
import br.com.nao.saia.dto.MerchantDTO;
import br.com.nao.saia.service.MerchantService;
import br.com.nao.saia.service.PageSupport;
import org.springframework.data.domain.PageRequest;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.a... | 46.987654 | 139 | 0.652391 |
12ffa3b4c155a601a0fddbdbe2b844325ba233f7 | 51,387 | package org.crazylab.java8.collections.juc;
import java.util.*;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.locks.ReentrantLock;
import java.util.function.Consumer;
import java.util.function.Predicate;
import java.util.function.UnaryOperator;
public class CzyCopyOnWriteArrayList<E> i... | 35.512785 | 107 | 0.522447 |
7cf4aec09d55f2f82b4698108afeb75d64ec9935 | 634 | package zju.edu.cn.platform.jsoninfo;
import lombok.Getter;
import lombok.Setter;
import zju.edu.cn.platform.application.Application;
import zju.edu.cn.platform.application.ApplicationServiceNode;
import zju.edu.cn.platform.util.PlatformUtils;
@Getter
@Setter
public class AppInfo {
private String name;
privat... | 21.862069 | 62 | 0.700315 |
62c6278e19e649aa46f8c8480e1e62de8ed76337 | 1,289 | package com.collbackend.models;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import com.fasterxml.jackson.annotation.JsonForma... | 17.418919 | 69 | 0.747867 |
3313d20199c34aeffefe57dc9eef67e4a483bd12 | 699 | package org.apache.hadoop.fs.cosn.ranger.security.sts;
public class GetSTSRequest {
private String bucketName;
private String bucketRegion;
private String allowPrefix;
public String getBucketName() {
return bucketName;
}
public void setBucketName(String bucketName) {
this.buck... | 21.84375 | 54 | 0.67382 |
937248f2f666acf13c77004e7f71dc0292e0fab7 | 6,453 | package tyvrel.mag.gui.cards;
import tyvrel.mag.core.exception.ImproperDataException;
import tyvrel.mag.core.exception.LSException;
import tyvrel.mag.core.factory.classification.ConcreteClassificationFactory;
import tyvrel.mag.core.factory.classification.ExposureClassificationFactory;
import tyvrel.mag.core.factory.cl... | 40.080745 | 115 | 0.784286 |
e7226eff113fcd413835aca1e2d394cfd80c46f1 | 1,764 | /*
* 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 co.edu.uniandes.csw.dietas.dtos;
import co.edu.uniandes.csw.dietas.entities.QuejaYReclamoEntity;
import java.io.Serializable;
... | 21.777778 | 79 | 0.612245 |
bc25fbc43b25be4e90c68d78f1a11efc9ca5c22a | 875 | // 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.base;
// Referenced classes of package com.google.android.gms.base:
// R
public static final class R$id
{
public stat... | 28.225806 | 62 | 0.707429 |
facaeed8c84e1fd52f8ecac222e1945249fa447d | 6,353 | package org.apache.mesos.elasticsearch.scheduler;
import org.apache.log4j.Logger;
import org.apache.mesos.Protos;
import org.apache.mesos.Scheduler;
import org.apache.mesos.SchedulerDriver;
import org.apache.mesos.elasticsearch.scheduler.state.*;
import java.util.Collections;
import java.util.HashMap;
import java.uti... | 42.072848 | 224 | 0.673068 |
520e4e18671ff96dd22da131ac5847dcfbaa06de | 679 | package io.github.aviatorhub.aviator.app.constant;
import org.testcontainers.containers.ClickHouseContainer;
import org.testcontainers.containers.GenericContainer;
import org.testcontainers.utility.DockerImageName;
/**
*/
public enum ContainerEnv {
REDIS(new GenericContainer<>(DockerImageName.parse("redis:6.2.5"))... | 27.16 | 79 | 0.758468 |
91e831bd401e2b6a058fbdfbff20138bdac01ce7 | 8,369 | /*
* 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.948819 | 136 | 0.759947 |
86b97304a0581c8b497e3fe26e9b34fc74faefb6 | 27,544 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.messaging.servicebus.administration;
import com.azure.core.exception.ResourceExistsException;
import com.azure.core.exception.ResourceNotFoundException;
import com.azure.core.http.HttpClient;
import com.a... | 42.245399 | 120 | 0.672451 |
62f2176761782f82ca48707fcaa0dd55d2d3827c | 2,941 | /*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... | 45.246154 | 146 | 0.775247 |
67bf0050023eedc8285d9d7e854dc915437b22b5 | 1,167 | package com.cts.map;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import java.util.TreeMap;
public class MapDemo {
public static void main(String[] args) {
// TODO Auto-generated method stub
TreeMap<String, Integer> map=new ... | 23.816327 | 101 | 0.664953 |
d81fb7e953564e73685895d2fc5a7ff5267f318f | 122 | package com.ocdsoft.bacta.swg.foundation;
/**
* Created by crush on 11/22/2015.
*/
public class TemporaryCrcString {
}
| 15.25 | 41 | 0.721311 |
75ac58457270b120753c06ecc7b5c1890f5f90e4 | 3,882 | /*
Copyright 2011 Software Freedom Conservancy.
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... | 31.056 | 98 | 0.71999 |
ebcc9079a12f867309448a1b0bb9bb06e93ea21e | 1,775 | package ru.majordomo.hms.personmgr.model.order;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonView;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.annotation.CreatedDate;
imp... | 35.5 | 96 | 0.786479 |
acb2a36fc38dffa6c2fda5051d37d3f5a5d20012 | 7,285 | package com.yboot.base.modules.base.controller.manage;
import com.yboot.common.common.constant.CommonConstant;
import com.yboot.common.common.redis.RedisTemplateHelper;
import com.yboot.common.common.utils.PageUtil;
import com.yboot.common.common.utils.ResultUtil;
import com.yboot.common.common.vo.PageVo;
import com.y... | 36.60804 | 97 | 0.666712 |
658452ada86ab60b549d7a83849302f2ce0da9ca | 650 | package util;
/**
* Greedy Policemen catch thieves.
*
* @author sonia
*
*/
public final class CatchThieves {
/**
* Returns the maximum number of thieves that can be caught.
* Each policeman can catch only one thief which is at most k away from him.
* @param seqTP is the sequence of policemen an... | 27.083333 | 84 | 0.698462 |
1c09c979ccecfe435d9c28ce985bc09d26d17e04 | 11,370 | /*
* Copyright (C) 2015 Marten Gajda <marten@dmfs.org>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 26.943128 | 174 | 0.668074 |
101f3b3cd496906434f015b0a126efe1fe38f96d | 2,541 | package com.ss.editor.ui.component.painting;
import com.ss.editor.annotation.FromAnyThread;
import com.ss.editor.annotation.FxThread;
import com.ss.editor.ui.component.editor.state.EditorState;
import com.ss.rlib.common.util.HasName;
import javafx.scene.image.Image;
import org.jetbrains.annotations.NotNull;
import org... | 21.717949 | 93 | 0.619441 |
e46d2e0bf11f80729c58ff4a82c355aea23e4e39 | 218 | package com.gsgb.introduce.reference;
/**
* @author: Dylan Kwok GSGB
* @date: 2020/8/24 23:35
* <p>
* 古之立大事者,不惟有超世之才,亦必有坚忍不拔之志——苏轼
*/
@FunctionalInterface
public interface FishingFunction {
void fishing();
}
| 16.769231 | 37 | 0.692661 |
0fcd59c9cc0698a0f2cbb110503d0a816a342f88 | 371 | package com.microsoft.azure.springcloudplayground.exception;
@SuppressWarnings("serial")
public class InvalidProjectRequestException extends GeneratorException {
public InvalidProjectRequestException(String message, Throwable cause) {
super(message, cause);
}
public InvalidProjectRequestException... | 26.5 | 76 | 0.762803 |
301ec79763c45389996d850f6281deea5010f773 | 1,528 | package pl.edu.agh.dsm.monitor.web.controller;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import or... | 41.297297 | 108 | 0.823953 |
464f5f82d7524c6ef6b549bddfeddfb6fa168e26 | 612 | import java.util.Scanner;
public class Quest9 {
public static void main(String[] args){
Scanner in = new Scanner(System.in);
int a[], i, j=0;
boolean espelho=true;
a = new int [10];
for (i=0; i<10; i++) {
System.out.println("Digite o "+(i+1)+"o valor: ");
a[i] = in.nextInt();
... | 20.4 | 54 | 0.517974 |
10e4f83534b6ce30c62793d8154c711ce96e7435 | 352 | package com.stenway.grammarsml;
import java.util.ArrayList;
public class RiGroup extends RuleItem {
public final ArrayList<RuleItem> Items = new ArrayList<>();
@Override
public String toString() {
String result = "(";
boolean isFirst = true;
for (RuleItem item : Items) {
result += " " + item.toString();
... | 20.705882 | 60 | 0.670455 |
5b5882562d53f099c6e99df728cb5aed7f8754f2 | 1,743 | package com.juaby.labs.rpc.proxy;
import com.juaby.labs.rpc.config.ServiceConfig;
import com.juaby.labs.rpc.message.ResponseMessageBody;
import com.juaby.labs.rpc.message.RpcMessage;
import com.juaby.labs.rpc.transport.RpcTransport;
import com.juaby.labs.rpc.util.RpcCallbackHandler;
import com.juaby.labs.rpc.util.Seri... | 32.277778 | 95 | 0.673551 |
cf7bec7fa7a247115db7492444ca365121b8fbfe | 10,272 | /*
* Copyright DataStax, 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 wri... | 33.459283 | 100 | 0.69704 |
fbc8bf89526b5d72b293f6426286357c57c92c72 | 11,656 | // Copyright 2018 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... | 40.61324 | 100 | 0.644818 |
c548eface845c24319cb7fd4da85e3040d498929 | 2,311 | package cn.edu.hbut.pro.design.system.ecommerce.b202011.group.kevin.service.table.impl;
import cn.edu.hbut.pro.design.system.ecommerce.b202011.group.kevin.domain.UserList;
import cn.edu.hbut.pro.design.system.ecommerce.b202011.group.kevin.mapper.UserListMapper;
import cn.edu.hbut.pro.design.system.ecommerce.b202011.gr... | 27.511905 | 97 | 0.727823 |
0ea6f389eb6bbd7bd88299c9575076ea1f296545 | 2,296 | /* Canto Compiler and Runtime Engine
*
* CantoStatement.java
*
* Copyright (c) 2018 by cantolang.org
* All rights reserved.
*/
package canto.lang;
/**
* CantoStatement is the base class of all canto statements.
*
* @author Michael St. Hippolyte
*/
abstract public class CantoStatement extends AbstractNode ... | 24.956522 | 93 | 0.61324 |
a5759f35e98b47ab10fe2967b7d94a6195b030b7 | 80,243 | /* Copyright 2005, 2006, 2012 Elliotte Rusty Harold
This library is free software; you can redistribute it and/or modify
it under the terms of version 2.1 of the GNU Lesser General Public
License as published by the Free Software Foundation.
This library is distributed in the hope that it will be u... | 32.579375 | 115 | 0.550864 |
3f622fddb98b5b78f34013caabc41130daf5ce7b | 2,822 | package frames;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import champions.Archer;
import champions.Assassin;
import champions.Mage;
import domain.Champion;
import domain.Coordinates;
import domain.GameData;
import do... | 24.327586 | 94 | 0.659816 |
b6e6ef96292904ff62281cdbf537767ef967d63c | 884 | package com.crossoverjie.niodemo;
import java.nio.ByteBuffer;
public class Slice {
public static void main(String[] args) {
ByteBuffer buffer = ByteBuffer.allocate(10);
for (int i = 0; i < buffer.capacity(); i++) {
buffer.put((byte) i);
}
System.out.println(buffer.posit... | 31.571429 | 53 | 0.575792 |
151661575649af56c5cc08fddef6b42d2c742604 | 4,488 | package parser;
import java.io.Reader;
import java.util.HashMap;
import java.util.Map;
import static parser.TokenType.*;
public class StreamTokenizer implements Tokenizer {
private static final String regEx;
private static final Map<String, TokenType> keywords = new HashMap<>();
private boolean hasNext ... | 27.2 | 102 | 0.546569 |
c0f4ef748ba299fa783f58b56a867be955bb5f1c | 2,038 | /*
* Copyright 2005-2013 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 requi... | 38.45283 | 94 | 0.729146 |
45d50e5a5ea3188e9ca0b63b002585dd9669a1e0 | 1,921 | package com.fit.testdatagen.se.normalization;
import com.fit.normalizer.AbstractStatementNormalizer;
import com.fit.normalizer.IStatementNormalizer;
import com.fit.utils.Utils;
import org.eclipse.cdt.core.dom.ast.cpp.ICPPASTArraySubscriptExpression;
import java.util.List;
/**
* Add some characters to the expression... | 30.983871 | 77 | 0.647059 |
64ba2209016f729e3e865b8c084f9234342725b5 | 4,645 | package org.noear.nami;
import org.noear.nami.common.Constants;
import org.noear.solon.Solon;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.lang.reflect.Method;
import java.lang.reflect.Type;
import java.util.Map;
/**
* Nami(Solon rest * rpc client)
*
* @author noear
* @since 1.0
* */
pub... | 22.014218 | 98 | 0.477503 |
1b8f374103679fd62c583f4c6a30afc932598bee | 156 | package rosetta;
public class MDC_DIM_X_MOLE_PER_KG_PER_DAY {
public static final String VALUE = "MDC_DIM_X_MOLE_PER_KG_PER_DAY";
}
| 17.333333 | 71 | 0.711538 |
0730d159b7d42f8c73c1e4e26d22380d6bc853e8 | 1,778 | package com.xmomen.module.wx.module.cart.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import com.xmomen.framework.mybatis.model.BaseMybatisModel;
@Entity
@Table(name = "tb_shopping_cart"... | 21.682927 | 59 | 0.610799 |
0019714a8a6f943670c6491e2e97f1047c038482 | 951 | /**
*
*/
package merge.mavenplugin_notscannedbyspring;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScan.Filter;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
/**
* The S... | 35.222222 | 97 | 0.778128 |
2cbff0cb3b19cf18939c2e00eb3a00fc0bded7a7 | 421 | /**
* <p>Title: liteflow</p>
* <p>Description: 轻量级的组件式流程框架</p>
* @author Bryan.Zhang
* @email weenyc31@163.com
* @Date 2020/4/1
*/
package com.yomahub.liteflow.test.tag.cmp;
import com.yomahub.liteflow.core.NodeCondComponent;
public class CCmp extends NodeCondComponent {
@Override
public String processCond()... | 18.304348 | 51 | 0.679335 |
3a1b94c3a01f19305597bb86f7581cf5be4b470b | 6,784 | package ca.mcgill.ecse211.lab4;
import lejos.hardware.Sound;
import static ca.mcgill.ecse211.lab4.Resources.colorSensor;
import static ca.mcgill.ecse211.lab4.Resources.*;
import static java.lang.Math.*;
public class LSLocalizer {
//********************************
// VARIABLES
//*************... | 34.612245 | 112 | 0.634876 |
11393121f893bc4b80b846c05b7cd67fe4bc20d5 | 891 | package logic;
import java.net.URL;
import java.util.List;
public class DownloadInfo {
private long size;
private String body;
private List<byte[]> datas;
private List<URL> originalURLs;
public DownloadInfo(long size, String body, List<byte[]> datas, List<URL> originalURLs) {
super();
this.size = size;
t... | 18.5625 | 90 | 0.689113 |
ab4daaee3d19a3c44c303853038fe91fe801b814 | 599 | package com.centurylink.mdw.hub.servlet;
import com.centurylink.mdw.model.StatusResponse;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
public class StatusResponder {
private HttpServletResponse servletResponse;
public StatusResponder(HttpServletResponse servletResponse) {
... | 28.52381 | 76 | 0.769616 |
c42ea39c64a0a368d68bf85a98e2d83d54389f6c | 224 | package com.praetoriandroid.cameraremote.rpc;
class StartMovieRecRequest extends BaseRequest<Void, SimpleResponse> {
public StartMovieRecRequest() {
super(SimpleResponse.class, RpcMethod.startMovieRec);
}
}
| 28 | 70 | 0.772321 |
33503c807132b5ceb8629c2059df0d07cd7616be | 1,616 | /*
* The MIT License (MIT) Copyright (c) 2020-2021 artipie.com
* https://github.com/artipie/http/blob/master/LICENSE.txt
*/
package com.artipie.http.auth;
import java.util.Arrays;
import org.hamcrest.MatcherAssert;
import org.hamcrest.core.IsEqual;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.... | 28.350877 | 95 | 0.600866 |
52f68cfe99e34dae8da061f6c8c6a3a5036d0513 | 4,236 | /*
* Patient - Warenwirtschaft (Basis)
* Synchronisation der Patienten mit der Warenwirtschaft
*
* OpenAPI spec version: 1.0.7
*
*
* 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.
*/
package io.... | 26.148148 | 134 | 0.679178 |
255a11aa2a259e6fd9877a3d1ba08dcfd8934260 | 791 | package eu.stosdev.theresistance.view;
import android.content.Context;
import javax.inject.Inject;
import eu.stosdev.theresistance.model.game.GameState;
import eu.stosdev.theresistance.model.game.Player;
import eu.stosdev.theresistance.model.game.TeamVote;
public class TeamVoteListAdapter extends AbstractPlayerList... | 27.275862 | 89 | 0.74842 |
3666cd5ebdadb8853ebdd26d5dd4c0eb64fb4d06 | 3,183 | /*************************GO-LICENSE-START*********************************
* Copyright 2014 ThoughtWorks, 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... | 43.013514 | 165 | 0.649387 |
c86f2c8a581d4f4873db52a7e308b229ae1dd9df | 13,799 | /*
* The JTS Topology Suite is a collection of Java classes that
* implement the fundamental operations required to validate a given
* geo-spatial data set to a known topological specification.
*
* Copyright (C) 2001 Vivid Solutions
*
* This library is free software; you can redistribute it and/or
* modify it u... | 35.564433 | 99 | 0.671425 |
75784c0f04a9dba6059cf536219377c555d00173 | 344 | package com.github.zxh.classpy.bitcoin.types;
import com.github.zxh.classpy.bitcoin.BlockPart;
import com.github.zxh.classpy.bitcoin.BlockReader;
public class UInt64 extends BlockPart {
@Override
protected void readContent(BlockReader reader) {
long value = reader.readLong();
setDesc(Long.toS... | 22.933333 | 52 | 0.729651 |
4130475b62c3ed5eab016b53cd8cbd49ffad5edd | 1,368 | package cell.firesim;
import java.util.List;
import cell.Cell;
import javafx.scene.paint.Color;
/**
* @author Yashas Manjunatha
* Creates and describes behavior of a Tree Cell in the Fire Simulation.
* Extends FireSimCell class.
*/
public class TreeCell extends FireSimCell{
private static final Color CELLCOLOR =... | 24.872727 | 72 | 0.708333 |
14bf3b36e0ad5acfd2108cccc07edea1887a06a0 | 533 | package com.leo.hbase.manager.common.enums;
/**
* HBase meta table
*
* @author leojie 2020/8/20 8:33 下午
*/
public enum HBaseMetaTableFlag {
/**
* HBase meta table.
*/
META_TABLE("0", "元数据表"),
USER_TABLE("2", "用户表");
private final String code;
private final String info;
HBaseMetaT... | 17.766667 | 50 | 0.579737 |
8cdabe3f12f05a5310315baf797a4f3cf80ab22a | 1,687 | package com.medical.modules.oa.web;
import java.util.Map;
import org.activiti.engine.RuntimeService;
import org.activiti.engine.TaskService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowi... | 30.125 | 80 | 0.782454 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.