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
bc33707d3dd4c508bdc9ff62d87c459e24b71efa
3,861
/* * Copyright 2018-Present Hikvision Inc. * */ package org.bumble.registry; import java.util.List; import org.bumble.registry.data.MngrNode; import org.bumble.registry.data.RegistryData; /** * * Registry API * <p> * There are 3 kind of roles who will connect to this registry.<br> * 1. Transaction manager:...
26.627586
110
0.695934
2e885f4773b7c1fa8671d5735d2b069f89d57986
308
/** * Created by computerito on 6/9/15. */ public class Circle extends SimpleShape { private static final float PI = 3.1415926f; private float radius; public Circle(float radius) { this.radius = radius; } public float area() { return PI*radius*radius; } }
17.111111
47
0.607143
e7dc114bc8e0ca59e8b1a7bdf931aa95914ae3df
1,282
/* * Copyright 2008 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 appl...
29.813953
98
0.705148
aba0554aaaf68aad1146ee9dca94bbad78e4cc4a
3,289
package es.illescasdaniel.commons.types; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.ToString; import lombok.val; import javax.validation.constraints.NotNull; import java.util.Iterator; import java.util.List; import java.util.TreeSet; import java.util.stream.Collectors; import java.util.strea...
26.103175
132
0.692308
4bd213c9bb0ad4078a2daa15daba8f577feaaeda
134
package com.quarantyne.lib; public enum HttpRequestMethod { OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT, PATCH, OTHER }
19.142857
69
0.738806
af0f522d504c3b20f66daac529347eecc0898ac4
5,623
package net.channel.handler; import java.net.InetAddress; import java.rmi.RemoteException; import client.MapleBuffStat; import client.MapleCharacter; import client.MapleClient; import net.AbstractMaplePacketHandler; import net.channel.ChannelServer; import net.world.MapleMessengerCharacter; import net.world....
44.275591
134
0.597012
f4d0dd0a0770edfd105769f37f820269b527bb0d
3,153
package Gracia.lab; import java.util.Scanner; public class Lab04 { public static void main(String[] args) { // #16 - if 문 int n = 1; int k = 2; int r = n; // r = 1 if (k < n) // 2 < 1 r = k; System.out.printf("%d %d %d\n", n, k, r); int q; if (n < k) // 1 < 2 q = k; // q = 2 ...
18.656805
50
0.446242
940a4d7176825d58ba973a443804fc5a608a6a20
693
package ui.cart; import android.annotation.SuppressLint; import android.os.Bundle; import android.widget.ImageView; import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.widget.Toolbar; import com.example.munche.R; public class EmptyCartActivity extends AppCompatActivity { @Override pr...
23.896552
68
0.737374
4bb827383f597d62e3a27648af70b9057379dc38
265
package com.github.jnoee.xo.dfs.obs; import org.springframework.boot.test.context.SpringBootTest; import com.github.jnoee.xo.dfs.AbstractDfsClientTest; @SpringBootTest("xo.dfs.type=obs") public class ObsDfsClientTest extends AbstractDfsClientTest { }
24.090909
62
0.788679
b2a827169a66d24b2edd0971c91051b2d8794df1
534
package cn.testin.analysis; public final class in { private final ii a = paramArrayOfii[0]; private final ii b = paramArrayOfii[1]; private final ii c = paramArrayOfii[2]; public in(ii[] paramArrayOfii) {} public ii a() { return this.a; } public ii b() { return this.b; } publi...
17.225806
103
0.610487
51a6e82cd822a5d3e03b105b5b10289e1cf25eec
1,174
package au.gov.ga.earthsci.worldwind; import gov.nasa.worldwind.util.gdal.GDALUtils; import org.osgi.framework.BundleActivator; import org.osgi.framework.BundleContext; /** * Plugin activator for the Earthsci Worldwind plugin */ public class Activator implements BundleActivator { private static BundleContext con...
23.959184
76
0.759796
8875092b04353febc84795c9cf5cfbba2e9f2698
2,691
/* * Copyright 2016 The gRPC 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 agree...
33.6375
100
0.723894
69b067aee1b1c4bff80afa29a2b7d77a12f5fca6
6,731
package healthABM; import java.util.ArrayList; import java.util.LinkedHashMap; /** * This class is a blueprint for each possible illness. Combining all instances of this class provides the full catalogue of illnesses. There is only one instance of * each illness and it is independent of people actually suffering th...
31.018433
233
0.725598
d46a7383d40b7a44e33a6a7f4e48dbfb395bed09
1,532
package com.dylandewit.skeleton.api.permission; import com.dylandewit.skeleton.api.base.BaseController; import com.dylandewit.skeleton.api.base.models.OkResponse; import com.dylandewit.skeleton.api.permission.dto.PermissionGetDto; import com.dylandewit.skeleton.api.permission.dto.PermissionPostDto; import com.dylandew...
34.044444
107
0.787206
2d6425926802811ccd6a93b101d2c71d116f97fd
443
package com.gigaspaces.annotation.pojo; import com.gigaspaces.client.storage_adapters.PropertyStorageAdapter; import java.lang.annotation.Retention; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.METHOD; import static java.lang.annotation.RetentionPolicy.RUNTIME; @Target(METHOD) ...
27.6875
69
0.8307
2e449d31af312a4f6d9f0e97bf15f841248303ba
522
package fr.high4technology.high4resto; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.context.properties.ConfigurationPropertiesScan; import org.springframework.scheduling.annotation.EnableScheduling; @SpringBootA...
32.625
79
0.860153
066ce635754db1280c68d10fe7c007d7c810240e
642
//package com.krakn.CF.B1159; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n; n = sc.nextInt(); int[] arr = new int[n]; for (int i = 0; i < n; i++) { arr[i] = sc....
21.4
52
0.423676
f3b3a8cbdb825a647e7eb0dd1ac6fcd4e79f1adc
660
package com.github.dannil.steamwebapiclient.model.userstats; public class Achievements { private String name; private double percent; public String getName() { return this.name; } public void setName(String name) { this.name = name; } public double getPercent() { return this.percent; } public void ...
18.333333
60
0.712121
9f4746d4e095009b2e1eb2b3e8baebaa709066d2
333
package org.metaborg.parsetable.symbols; public class LayoutSymbol extends NonTerminalSymbol implements ILayoutSymbol { public LayoutSymbol(SyntaxContext syntaxContext, SortCardinality cardinality) { super(syntaxContext, cardinality); } @Override public String descriptor() { return "LAYOU...
23.785714
83
0.738739
95589a2d7f6b289eeddcb6bf70be9c9d88820acd
16,209
package jp.co.sony.csl.dcoes.apis.common.util.vertx; import java.security.GeneralSecurityException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; import javax.crypto.Cipher; import io.vertx.core.AsyncResult; import io.vertx.core.CompositeFutu...
32.745455
146
0.662348
8e81f16444d24c4e888e28ab22cc2cbcb02f0eed
6,091
package com.martijndashorst.euler; import java.math.BigDecimal; import java.util.Arrays; import org.hamcrest.CoreMatchers; import org.junit.Assert; import org.junit.Test; /** * Work out the first ten digits of the sum of the following one-hundred * 50-digit numbers. */ public class Euler13 { @Test public void s...
83.438356
111
0.885569
57749f36afb0a2631ee83b747a5a921dd3bc6e45
1,248
package com.volmit.react.util; import com.volmit.react.Surge; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.player.AsyncPlayerChatEvent; import org.bukkit.event.player.PlayerCommandPreprocessEvent; import org.bukkit.event.player.PlayerQ...
23.111111
60
0.582532
becccdab50dd0b8dc395ef71edc5e83619ac4271
1,030
/* * Copyright 2013-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
25.75
75
0.703883
9342fff86d0e15ad1d6aee0485e776f666097047
2,972
package com.fc.crm.domain; import java.io.Serializable; /** * * * @author fengchi * @email * @date 2019-09-14 15:03:04 */ public class SomatometricRecordDO implements Serializable { private static final long serialVersionUID = 1L; // private Integer id; //会员id private Integer memberId; //测量时间 priv...
15.893048
71
0.661844
0c6beeedcb1fd609eaf53af6be23213eec09c023
2,257
package com.github.onblog.snowjenaticketserver.rule.service; import com.github.onblog.commoon.entity.RateLimiterRule; import com.github.onblog.snowjenaticketserver.rule.entity.Result; public interface RuleService { String INSTANCE = "$INSTANCE$"; //实例前戳 String RULE = "$RULE$"; //规则前戳 String LOCK = "$LOCK...
29.697368
105
0.655738
657121fab339c9178d550e54d43c1e4fd95ab0af
1,254
/* * Copyright 2000-2015 JetBrains s.r.o. * * 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...
36.882353
124
0.771132
f3958599a0ea95d8a521f881376804cb7fbddc89
1,410
/* * * Copyright (c) 2021-2015, wuyanshen 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 the above copyright notice, * this list of...
31.333333
79
0.719149
d4a017eda15c8dae6cee75c30013351b9073876f
322
package org.memo.translator.preprocess; import org.memo.extractor.DocumentedExecutable; import org.memo.extractor.JavadocComment; public class Trim implements PreprocessingPhase { @Override public String run(JavadocComment tag, DocumentedExecutable excMember) { return tag.getComment().getText().trim(); } ...
23
73
0.78882
1f038babeec1cbf7be75096a469cc63240d5e46f
3,519
/* * Copyright 2007 Kasper B. Graversen * * 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.6
101
0.746235
f34095ebe980c4ae54fd78ee7d8393adc61e1bd5
9,039
/* * ============================================================================= * * Copyright (c) 2011-2012, The THYMELEAF team (http://www.thymeleaf.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 ...
30.0299
104
0.610244
ca8a58e9df622d785119e24f5dbb41cc2fcca27f
5,658
/** * The MIT License (MIT) * * Copyright (c) 2017 Oskar Mendel * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use...
25.146667
81
0.684164
ba6e4a849f3e235330405149e1182b83e65acd67
6,080
/* * 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 ...
34.545455
127
0.587829
46777b4fe4f683999aaf37c74c62fb9d2c315e4e
2,893
/* * Copyright 2006 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
41.927536
120
0.746975
d332ccc353e243e7a3d8a9e68bc2b2336f466f0b
2,296
package au.id.wolfe.bamboo.ruby.tasks.rake; import java.util.List; import au.id.wolfe.bamboo.ruby.common.RubyLabel; import au.id.wolfe.bamboo.ruby.common.RubyRuntime; import au.id.wolfe.bamboo.ruby.locator.RubyLocator; import au.id.wolfe.bamboo.ruby.rvm.RvmUtils; import au.id.wolfe.bamboo.ruby.tasks.AbstractRubyTask;...
37.032258
129
0.710366
1c3b43b2bf5275aa275826daaff60d291d00fd3b
1,994
/* Copyright (c) 2005 - 2016 Hewlett Packard Enterprise Development LP -*- Java -*- * * Create Date: September 10, 2013 */ package com.vertica.JavaLibs; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.RandomAccessFile; import com.v...
28.084507
101
0.626881
50fab815e0cc9df73139ba0abb1736d1419935e0
324
package org.zalando.zmon.service; import java.io.IOException; import org.zalando.zmon.domain.TrialRunRequest; import org.zalando.zmon.domain.TrialRunResults; public interface TrialRunService { String scheduleTrialRun(TrialRunRequest request) throws IOException; TrialRunResults getTrialRunResults(String id)...
23.142857
72
0.817901
5095e999402d9c3e1b7d189216208ece91065b47
6,521
package com.ixchou.core.utils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class ByteUtils { private final static Logger logger = LoggerFactory.getLogger(ByteUtils.class); /** * 十六进制 转换 byte[] * * @param hexStr * @return */ public static byte[] hexString2Byte...
26.72541
91
0.479374
76d9b0170f03666144ba8bb79898d732bbc56bc7
1,362
package exam.service; import exam.domain.entities.User; import exam.domain.models.service.UserServiceModel; import exam.repository.UserRepository; import org.apache.commons.codec.digest.DigestUtils; import org.modelmapper.ModelMapper; import javax.inject.Inject; import java.util.List; import java.util.stream.Collecto...
31.674419
112
0.744493
bc6df4899e58a2848689dfe31f9e41e507dceb95
32,217
class CW63kVAEZkzZ { public static void wN5fCfoKm (String[] gkcnxc) throws wVIMjwXnNCF5j { int[] nqBE = --true[ true.jp]; if ( !!!379572._fZeSvxQzoKH) return;else if ( cQQydx.y4gG) return; return; int[] hsgnyFwukfb7 = !8425095.eTYbgwdKzfBV = gODugiiyq.D7Fd(); { ...
39.433293
358
0.497874
99ee82fec5a4984bd6cc37f4961fda8d826b112d
82
package animals; public enum mammalType { Ungulates, NotUngulate }
11.714286
25
0.658537
e6a00c6d8e8f8ad4b2a5ae7af561f4ae6bf620be
67
/** * Input/output. */ package edu.washington.escience.myria.io;
13.4
41
0.686567
aabeaecd2bb8eb8a5fd3a03a7625a19c44805a4b
310
package com.shj.javalib.designMode.jinShi.create.builder; //创建一个MealBuilder类,实际的builder类负责创建套餐Meal对象。 public interface Builder {//也是工厂 void buildApple(int price);//设置苹果 void buildBanana(int price);//设置香蕉 void buildOrange(int price);//设置桔子 FruitMeal getFruitMeal();//返回创建的套餐 }
22.142857
58
0.716129
bf40e817dda900878fc7e16874ad7a1581cfeffc
273
package jworldsim3d.enums; /** * * @author Vuvk */ public interface wColorFormat { public static final int wCF_A1R5G5B5 = 0; public static final int wCF_R5G6B5 = 1; public static final int wCF_R8G8B8 = 2; public static final int wCF_A8R8G8B8 = 3; }
21
45
0.688645
de509b942d5fc37c187ce7a4d3d29dafafe5fc0a
5,410
/*------------------------------------------------------------------------- * * Copyright (c) 2004-2014, PostgreSQL Global Development Group * Copyright (c) 2004, Open Cloud Limited. * * *------------------------------------------------------------------------- */ package org.postgresql.core; import org.postgresql.PGN...
29.889503
92
0.64122
460dea4b5010db09bb6b453890ce7f1bb857cbef
16,564
package org.smartgresiter.wcaro.activity; import android.app.AppComponentFactory; import android.app.FragmentTransaction; import android.content.Intent; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.design.widget.AppBarLayout; import android.support.v4.view.ViewPager; imp...
35.468951
167
0.716131
88b48bf40f77ffb6c4b139f875a616b04e6cea04
5,680
package seedu.ezwatchlist.model; import static java.util.Objects.requireNonNull; import java.util.List; import java.util.Set; import javafx.collections.ObservableList; import seedu.ezwatchlist.model.actor.Actor; import seedu.ezwatchlist.model.show.Genre; import seedu.ezwatchlist.model.show.Name; import seedu.ezwatch...
32.090395
111
0.654754
65fec1a3893c71f2d0dc314acc09b57b93d47563
2,180
package generative.components; //import processing.core.*; import java.util.*; public class Chromosome { // myParent is a reference to the parent sketch // PApplet myParent; //ArrayList<Float> genes; double metabolicRate; double maxVel; double maxEnergy; double springCoef; double splitRate; /** * Const...
23.956044
149
0.657339
fee9c09f8e4a6f575d4231a95269511d399210da
6,185
package com.vcoders.on_demand_youtube_player.features.searchVideos; import android.os.Bundle; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.text.Editable; import android.text.TextWatcher; import android.view.KeyEvent; import android.view.View; impor...
31.237374
120
0.64996
b6ad68555a3cc28eb125fdb3f59da6d5ff835ff0
56
package de.thm.adapterPattern; public class Client { }
11.2
30
0.767857
2e6b613b769602c9bd4a234eeedc7a7a016b28e8
22,378
package Assignment2; import java.awt.*; import java.util.*; import static Assignment2.Team.*; /* * The piece abstract class's purpose is to define generalised methods and variables applicable to all chess pieces * whilst defining methods common to all pieces */ abstract class Piece { Coord positi...
30.446259
124
0.509071
2643f580df95fa17c658210a22532063b0012646
6,509
package b.l.a.c.f.e; import android.content.Context; import android.util.Log; import androidx.annotation.NonNull; import b.l.a.c.c.n.a; import b.l.d.o.d; import b.l.d.o.x; import java.util.Objects; public final class ii extends si { public static final a c = new a("FirebaseAuth", "FirebaseAuthFallback:"); pub...
34.807487
94
0.578123
e91544edd18392c2dc7667c6923386a6c009d436
1,012
package org.springframework.security.test.context.showcase; import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; import org.springframework.security.core.Authentication; import org.springframework.security.core.context.SecurityContext; import org.springframework.security.core.context...
40.48
113
0.843874
0c94e9a372481d85c26eac6f4186f606bd1e3e78
1,352
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ package org.elasticsearch.xpack.core.security.action.saml; import ...
27.591837
80
0.715237
d4aade5776a902bd2f86360eea9961279ecad27f
6,438
package com.likya.tlossw.web.definitions; import java.io.Serializable; import javax.annotation.PostConstruct; import javax.faces.application.FacesMessage; import javax.faces.bean.ManagedBean; import javax.faces.bean.ViewScoped; import javax.faces.context.FacesContext; import javax.faces.event.ActionEvent; i...
30.657143
150
0.751631
40006d1d4b182238eb341296b2b0976585b7d023
2,570
package mekanism.generators.client.gui; import java.util.Collections; import mekanism.client.gui.GuiMekanismTile; import mekanism.client.gui.element.GuiEnergyInfo; import mekanism.client.gui.element.GuiRedstoneControl; import mekanism.client.gui.element.GuiSlot; import mekanism.client.gui.element.GuiSlot.SlotOverlay; ...
49.423077
120
0.775875
6c3557d0ca03cbc36ad029673d8b809ae7b3c11f
125,713
/* * Generated by the Jasper component of Apache Tomcat * Version: Apache Tomcat/7.0.55 * Generated at: 2016-07-19 06:48:04 UTC * Note: The last modified time of this file was set to * the last modified time of the source file after * generation to assist with modification tracking. */ package org.ap...
68.137127
274
0.737123
648f0a37a42067dcb3e181c040fc69e1f8f6ca90
4,049
/*-------------------------------------------------------------------------------------------------------------------*\ | Copyright (C) 2014 PayPal | | ...
57.028169
120
0.528526
d385d6fe5cb5b35d095f6b2a216da47f7b8a528a
490
package devCamp.WebApp.services; import org.springframework.scheduling.annotation.Async; import org.springframework.stereotype.Service; import java.util.concurrent.CompletableFuture; @Service public interface AzureStorageService { @Async CompletableFuture<Void> addMessageToQueueAsync(String IncidentId, Str...
25.789474
134
0.816327
7992f2aa6834f33cb2f4c1e57510b3ae23efdf0f
2,375
package com.github.khaledroushdy.jsonParser; import org.openqa.selenium.By; public class LocatorFactory { // private static final String = null; public static By createLocator(WebElement element) { By by = null; String locator = element.getLocator(); if(locator.equalsIgnoreCase((LocatorTypes.ID.getLocato...
33.450704
82
0.680421
618bce4a77c33ffa236cb70577bf6390386c846a
261
package com.tom.kafka.examples.model; import com.fasterxml.jackson.annotation.JsonValue; import lombok.*; @Data @NoArgsConstructor @AllArgsConstructor @Builder public class PriceEvent { private String id; private String stock; private long newPrice; }
14.5
50
0.789272
70198297f3526b6a96f4ca32fd2db19671f661a5
595
package org.gridmodel.index; import java.util.NavigableMap; import java.util.Set; import java.util.function.Function; /** * Represents the behavior of an index tree. * Index tree is the memory representation of an index, built as a associative array of * indexed values as keys and primary keys as values. * @par...
28.333333
91
0.72437
98061388d19fd4c57fed87527dd92ca765b20485
1,124
package com.sample.weather.weather.domain; import javax.persistence.*; import java.util.Date; @Entity @Table(uniqueConstraints={ @UniqueConstraint(columnNames = {"country", "city"}) }) public class Weather { @Id @GeneratedValue(strategy= GenerationType.IDENTITY) private long id; private Strin...
18.733333
60
0.619217
a52c9ca084c96c99d1a32723fc24a6e63b599e17
1,016
package handson.example.springshopsearch.service; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import handson.example.springshopsearch.model.item.Item; import hands...
26.051282
87
0.816929
fcbebdc492d66bf6089f7a0d1fbaf447a8ab3d27
1,062
package models; import com.avaje.ebean.Model; import javax.persistence.*; @Entity public class Raceresult extends Model { private String result_id; private String meeting_id; private String race_id; private String created_date; private String update_date; public String getResult_id() { return result_id; } ...
22.125
97
0.757062
f1f15cda954c1c48dc8f6827e5e1a9b591334fba
16,616
package net.minecraft.block; import com.google.common.collect.Maps; import java.util.Map; import java.util.Random; import net.minecraft.block.material.MapColor; import net.minecraft.block.material.Material; import net.minecraft.block.properties.IProperty; import net.minecraft.block.properties.PropertyBool; import net....
42.172589
424
0.612602
99398501514dccbe3b066a021523e0ce1e111cea
413
package me.xhsun.guildwars2wrapper.model.v2; import me.xhsun.guildwars2wrapper.model.identifiable.IdentifiableStr; /** * For more info on files API go <a href="https://wiki.guildwars2.com/wiki/API:2/files">here</a><br/> * Model class for asset file * * @author xhsun * @since 2017-06-19 */ public class Asset ext...
21.736842
101
0.726392
b8a1bc5da9823ffc9e7c41d46857bdcbc811a1b7
21,992
package com.sequenceiq.cloudbreak.service.image; import static com.sequenceiq.cloudbreak.service.image.StatedImage.statedImage; import static com.sequenceiq.cloudbreak.service.image.StatedImages.statedImages; import static com.sequenceiq.cloudbreak.util.NameUtil.generateArchiveName; import static com.sequenceiq.cloudb...
45.438017
155
0.701482
b0151ddb37b47c2647c63a454f5b1b6c910eb595
1,581
package com.wanshare.wscomponent.update.utils; import com.wanshare.wscomponent.update.update.UpdateHelper; import org.junit.After; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; import static org.junit.Assert.*; public class UpdateHelperTest{ String m...
19.518519
68
0.607843
c1085037fe0ab226c29afcd15de6ee0e0ce76ba9
2,084
/* * 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...
33.079365
76
0.702015
ac7d9400ce21e763a4d9d46a0d6a689bcd47d0a3
1,522
package com.longluo.leetcode.greedy; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; /** * 455. 分发饼干 * 假设你是一位很棒的家长,想要给你的孩子们一些小饼干。但是,每个孩子最多只能给一块饼干。 * 对每个孩子 i,都有一个胃口值 g[i],这是能让孩子们满足胃口的饼干的最小尺寸;并且每块饼干 j,都有一个尺寸 s[j] 。 * 如果 s[j] >= g[i],我们可以将这个饼干 j 分配给孩子 i ,这个孩子会得到满足。你的目标是尽可能满足越多数量的孩...
23.78125
95
0.513141
f255fd5a3a04f1eac9eac936ab3c5fa1954a89b7
5,155
/* * Copyright 2015 calotocen * * 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...
26.989529
135
0.677595
4d9de5abb1e31ecdb4679494f93383f246b219ed
2,042
package com.sqifun.jtc.week11.config; import com.sqifun.jtc.week11.receiver.OrderReceiver; import org.springframework.cache.annotation.EnableCaching; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.data.redis.connection.RedisCo...
37.814815
126
0.79236
30357e0d9af00db35129bd777ad4bcd1fad60cf7
3,114
/* Copyright (C) 2013-2019 TU Dortmund * This file is part of LearnLib, http://www.learnlib.de/. * * 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/...
38.925
150
0.707771
86b29b8918f529b5884fe7b3e0d19cb9d8d0f79c
3,986
package com.app.tbd.ui.Activity.Picker; import android.app.Activity; import android.app.Dialog; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.DialogFragment; import android.text.Editable; import android.text.TextWatcher; import android.util.Log; ...
34.068376
128
0.710988
7430cda729bfbf373e2856454974ff91265d304d
855
package architecture.community.album.dao; import java.util.List; import architecture.community.album.Album; import architecture.community.album.AlbumContents; import architecture.community.album.AlbumImage; import architecture.community.album.AlbumNotFoundException; import architecture.community.image.Image; public ...
28.5
100
0.809357
60abd313aa0f91a51dce266d348b6966f814b4fc
2,481
/* * Copyright 2016-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
28.193182
81
0.694478
90a4062fcd1f9d4609326c10e59fd4f23b845448
103
package com.twu.biblioteca.Exception; public class ItemAlreadyReturnedException extends Exception{ }
17.166667
60
0.84466
6e6debbb521695b3feeecd1bdc7dbe1b82fe8a4a
7,663
package vt.finder.gui.fragments; import java.util.ArrayList; import vt.finder.R; import vt.finder.schedule.UserMadeCourse; import android.content.DialogInterface; import android.os.Bundle; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import andr...
38.507538
121
0.568315
3f36a857823092bd5f3aaaf5a06c01a7a32a8bde
663
package org.cujau.db2.dto; import org.junit.Ignore; @Ignore public class TestInfo { private int id; private String key; private int val; private String prio; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getKey() { ...
14.733333
38
0.542986
5947d2231db807f4f469155656dacb9bb7d6b2ae
276
package behavioral.state.sample1; public class ParkingState implements State { private Car car; public ParkingState(Car car) { this.car = car; } @Override public void handle() { System.out.println("Switched to parking sample1"); } }
18.4
58
0.644928
d29b90dd154b822805615de63341999046fe0408
245
package org.ovirt.engine.core.common.businessentities.gluster; /** * Enum of Gluster task operations supported by Gluster Volume tasks */ public enum GlusterTaskOperation { START, PAUSE, ABORT, STOP, STATUS, COMMIT; }
17.5
68
0.697959
891ae489afa87e36ec8b40e2929098fd24036468
6,976
/** * Copyright 2019 ForgeRock AS. * * 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, ...
39.636364
142
0.707425
08ca283d468268d9804dbe510227ec09c9e469d3
10,855
/* * Copyright 2000-2017 JetBrains s.r.o. * * 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...
51.445498
143
0.627269
ee1f9a6de427e2aa873ad4a3ede37e14d08e2600
286
package org.ovirt.engine.core.sso.utils; public class OAuthBadRequestException extends OAuthException { private static final long serialVersionUID = -1473602520785131331L; public OAuthBadRequestException(String code, String errorMsg) { super(code, errorMsg); } }
26
71
0.762238
2912c1a5d413a9219daafc83517a71fd571120cc
2,761
// Copyright (c) 2017, the R8 project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. package com.android.tools.r8.ir.code; import com.android.tools.r8.code.FilledNewArray; import com.android....
28.463918
95
0.713147
0fdc082122ba723afe06a83f3b05dd60fea97689
722
package de.scravy.jazz.examples; import de.scravy.jazz.Animation; import de.scravy.jazz.Color; import de.scravy.jazz.Jazz; import de.scravy.jazz.Picture; import de.scravy.jazz.pictures.mutable.Pictures; import de.scravy.jazz.pictures.mutable.Text; public class Texts { public static void main(String... args) { ...
22.5625
57
0.628809
0504a44babf5d72d5dbe41462ffdfa2330b0b808
1,322
import java.util.*; public class QueueLinkedList <E> { private LinkedList<E> data; public QueueLinkedList() { data = new LinkedList<E>(); } public int size() { return data.size(); } public boolean isEmpty() { return data.size() == 0; } public void enque(E e) { data.addLast(e); } public...
20.338462
68
0.636914
58b5dc830af360f24e57e0d2e3fd7a42a5058562
7,495
package no.saua.remock.internal; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.FactoryBean; import org.springframework.beans.factory.annotation.AnnotatedBeanDefinition; import org.springframework.beans.factory.config.BeanDefinition; import org.springframework.beans.f...
44.88024
142
0.642161
742402c701db1c636340fc9a8b9c960f4109588c
991
package de.cotto.lndmanagej.controller.dto; import org.junit.jupiter.api.Test; import java.util.List; import static de.cotto.lndmanagej.model.ChannelIdFixtures.CHANNEL_ID; import static de.cotto.lndmanagej.model.ChannelIdFixtures.CHANNEL_ID_3; import static de.cotto.lndmanagej.model.ChannelIdFixtures.CHANNEL_ID_5; i...
34.172414
76
0.679112
768ddd5aac1f33c2419c20d860ac0c1530d818d8
11,691
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
31.01061
118
0.689248
dd5fd0e7141240026bc3d8ae7875cfa3f2779075
1,053
package com.example.vlad.androidapp.Interactors; import com.example.vlad.androidapp.Contracts.ProductDetailContract; import com.example.vlad.androidapp.Entities.ProductResponse; import com.example.vlad.androidapp.ExApplication; import retrofit2.Call; import retrofit2.Callback; import retrofit2.Response; public class...
37.607143
100
0.718898
6148c449de87404b8d628f31e43c5b08c0bb3609
2,851
package com.tenable.io.api.scans.models; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** * Copyright (c) 2017 Tenable Network Security, Inc. */ public class ScanHostDetailsInfo { private String hostStart; private String macAddress; private String hostFqdn; private...
18.756579
68
0.569975
29ece1d74f3a76494dbb63be7c4b23772cc64b2e
1,167
/* * 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 vehicletest; /** * * @author Steven Gordon <s.d.gordon@cqu.edu.au> */ public class Car extends Vehicle { private i...
21.218182
80
0.603256
dd6645a9147aef66662196bd4d76686f29aeee07
3,539
/* * Copyright (c) 2016, Jason Waataja * 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 of con...
35.747475
92
0.751625
94295ec5fc5f84fce84ac7ec1407b3ceba782e07
2,278
/******************************************************************************* * Copyright (c) 2004, 2005 Actuate Corporation. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is av...
29.584416
121
0.661545
c97c7e0d3ee097c7dbde1e43e60bf0dd6fb86d9c
463
package com.crio.starter.service; import com.crio.starter.data.*; import com.crio.starter.exchange.*; import javax.validation.constraints.NotNull; import org.springframework.stereotype.Service; import org.springframework.web.bind.annotation.RequestParam; @Service public interface MemesService { public getRespons...
23.15
75
0.809935
530e328340268a53dd6c5a8e5e8295d8418f018b
474
package com.pattern.designpattern.apply.noifelse4; import org.junit.After; import org.junit.Before; import org.junit.Test; public class Client { private Customer customer; @Before public void setUp() throws Exception { customer = new Customer(); } @After public void tearDown() throws Exception { } ...
15.8
50
0.694093
43b5406e2ca8e3e673b7d3b35872e2e707552dd7
1,638
package android.bishe.fragment; import android.bishe.R; import android.bishe.activity.BaiDuActivity; import android.bishe.activity.BaiduSS; import android.bishe.activity.MusicActivity; import android.bishe.activity.SearchActivity; import android.content.Context; import android.content.Intent; import android.os.Bundle;...
24.447761
81
0.76862
68bb90fee19eaf20766cffb9ac6e2c4f5a45c8fe
1,987
package br.com.gestaodealunos.controllers; import br.com.gestaodealunos.services.AlunoService; import io.restassured.http.ContentType; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconf...
34.859649
115
0.715148
f8cb425796513abf1dce367a39e939103a5e4d67
650
// FCMOD package net.minecraft.src; public class FCItemArmorChain extends FCItemArmorMod { static final int m_iRenderIndex = 1; public FCItemArmorChain( int iItemID, int iArmorType, int iWeight ) { super( iItemID, EnumArmorMaterial.CHAIN, m_iRenderIndex, iArmorType, iWeight ); ...
25
88
0.576923