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 |
|---|---|---|---|---|---|
71c795ec344f63e226f0358aa63ddfed0f330904 | 12,928 | package cl.uchile.dcc.scrabble.type;
import java.math.BigInteger;
import java.util.Objects;
/**
* Implementation of a Scrabble int as a class.
* @author Victor Vidal Paz
*/
public class ScrabbleInt extends AbstractType {
private final int value;
/**
* Constructor of ScrabbleInt.
* @param value ... | 34.752688 | 118 | 0.644879 |
fd9075d9e93de886e224fe3a15648d5c0a376d86 | 1,151 | package triton.coreModules.robot.ally.advancedSkills;
import triton.config.globalVariblesAndConstants.GvcPathfinder;
import triton.coreModules.ball.Ball;
import triton.coreModules.robot.ally.Ally;
import triton.misc.math.linearAlgebra.Vec2D;
import static triton.misc.math.coordinates.PerspectiveConverter.normAng;
pu... | 37.129032 | 89 | 0.664639 |
56fe1f0d4a94c6e3fb547b91ac0cf9d612d2a7ec | 3,009 | package constants;
import java.util.Arrays;
import java.util.List;
public class ServerConstants {
public static final int MAPLE_LOCALE = 6;
public static final short MAPLE_VERSION = 145;
public static final String MAPLE_PATCH = "1";
public static final String WZ_PATH = "./wz";
public static Strin... | 28.657143 | 117 | 0.603855 |
967889e0559ff41ac39dde6d17880f94ec94b509 | 4,844 | package org.blondin.mpg.root;
import static com.github.tomakehurst.wiremock.client.WireMock.aResponse;
import static com.github.tomakehurst.wiremock.client.WireMock.equalToJson;
import static com.github.tomakehurst.wiremock.client.WireMock.get;
import static com.github.tomakehurst.wiremock.client.WireMock.post;
import... | 52.086022 | 148 | 0.670314 |
6ba7d28905df34d1a95e825c3d18a4ee4c6581b8 | 1,089 | package net.cactusthorn.routing.convert;
import java.lang.annotation.Annotation;
import java.lang.invoke.MethodHandle;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.MethodType;
import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.Map;
public class StringConstructorConverter imple... | 31.114286 | 117 | 0.687787 |
3eeb37dd6cac02884abf0a54c45aba167321c588 | 533 | package com.climate.mirage.cache.disk;
import android.support.annotation.IntDef;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
public class DiskCacheStrategy {
public static final int NONE = 1;
public static final int SOURCE = 2;
public static final int RESULT = 4;
public s... | 24.227273 | 44 | 0.780488 |
a11c04984b010ad5deda1904ace60799365ab6aa | 1,635 | package com.justbuyit.model.event.subscription;
import javax.xml.bind.annotation.XmlRootElement;
import com.justbuyit.model.Company;
import com.justbuyit.model.Order;
import com.justbuyit.model.event.Event;
import com.justbuyit.model.event.EventType;
import com.justbuyit.model.event.Payload;
import com.justbuyit.mode... | 26.803279 | 158 | 0.679511 |
ac3102090e16341f40a3f0f806166225ce42e4cd | 1,723 | // 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.internal.cast;
import android.view.Display;
import com.google.android.gms.common.api.Status;
final class zzdy
implements ... | 27.349206 | 88 | 0.56123 |
b6456e1a6446d9896f645b320e2237be9afa50bc | 1,992 | /*
* 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 ... | 33.2 | 75 | 0.75502 |
729e0d3ef89426d8d6126a41d172220b7786d3b6 | 7,491 | /*
* Copyright (C) 2015 Square, Inc.
* Copyright (C) 2021 Scality, 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
*
* Unles... | 34.05 | 124 | 0.623281 |
bbcddfa6829a9200d049926a854bc85e6af60580 | 2,077 | /**
* TLS-Attacker - A Modular Penetration Testing Framework for TLS
*
* Copyright 2014-2017 Ruhr University Bochum / Hackmanit GmbH
*
* Licensed under Apache License 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*/
package de.rub.nds.tlsattacker.core.protocol.handler;
import de.rub.nds.tlsattacker.core.prot... | 29.253521 | 104 | 0.718344 |
6333c5530628c07afd2177cc46038af79f64ad96 | 1,081 | package com.ps.domain;
public class WebResponse<T> {
private boolean ok;
private String message;
private T responseObject;
public WebResponse(boolean ok, String message) {
this.ok = ok;
this.message = message;
this.responseObject = null;
}
public WebResponse(boolean... | 20.788462 | 70 | 0.560592 |
3f03f222a286b07edee723c13f398712e0dac0e4 | 2,492 | package org.jboss.resteasy.test.interceptor;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.container.test.api.RunAsClient;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.resteasy.test.interceptor.resource.PriorityExecutionResource;
import org.jboss.resteasy.test... | 34.136986 | 89 | 0.721509 |
53797c2350409110bf27b75ebabc1520083e7e27 | 2,868 | /**
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in ... | 42.80597 | 124 | 0.724198 |
c27d2b13b392191aee8a597c86a7ad2875e94a10 | 3,500 | /*
* 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 pt.inescid.nosqlundo.recovery;
import java.util.ArrayList;
import org.bson.Document;
import org.bson.types.ObjectId;
import pt... | 38.043478 | 126 | 0.560286 |
78bc347e775931a66e271c6a7c3277b7fb40902c | 4,447 | /*
*
* * Copyright 2013 Jive 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
* *
* * U... | 28.324841 | 113 | 0.595233 |
9c0d798d566c8a362f1a7fe0c7641405ff8cc14c | 584 | package com.mz.model.weather;
import com.mz.model.cad.listener.IListener;
/**
* Created by Jamin on 8/5/15.
*/
public class WeatherManager {
private WeatherHandler mHandler = null;
private static final WeatherManager sManager = new WeatherManager();
public static WeatherManager getInstance() {
... | 21.62963 | 91 | 0.700342 |
8bdc6503e1c04c90d5d082d1fd142153d2f7a300 | 396 | package io.airlift.http.client.spnego;
import java.net.URI;
import java.net.URISyntaxException;
class UriUtil
{
public static URI normalizedUri(URI uri)
{
try {
return new URI(uri.getScheme(), null, uri.getHost(), uri.getPort(), null, null, null);
}
catch (URISyntaxExceptio... | 22 | 98 | 0.618687 |
81b69ede8318e8d58f42200235cc989d497cffc9 | 3,063 | /**
* Copyright 2014 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | 35.616279 | 106 | 0.755468 |
0d1146b1523f860abbaace6a1b43a3f77cbca5c9 | 4,812 | /**
* Copyright (c) 2015 See AUTHORS file
* 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 conditions and... | 41.843478 | 758 | 0.736492 |
d6808c4107e698bd76e599ea1d5784a178f857e7 | 849 | package com.lanking.cloud.domain.support.common.auth;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
/**
* 支撑系统权限-角色&菜单关系表
*
* @since 3.9.3
* @author <a href="mailto:sikai.wang@elanking.com">sikai.wang</a>
* @version 2017年3月... | 16.98 | 67 | 0.706714 |
d6f5f3671e6f14b10e5de5f590092ecec7d227ff | 1,358 | package com.sunsharing.eos.common.serialize.support.json;
import com.alibaba.fastjson.parser.ParserConfig;
import com.sunsharing.eos.common.serialize.ObjectInput;
import com.sunsharing.eos.common.serialize.ObjectOutput;
import com.sunsharing.eos.common.serialize.Serialization;
import java.io.IOException;
import java... | 30.177778 | 75 | 0.684831 |
0f3750630c907450687974fce73c8d66dbe03564 | 2,003 | package com.gongsir.wxapp.controller.admin;
import com.gongsir.wxapp.utils.SHA1;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestControll... | 31.296875 | 85 | 0.662007 |
f657fb16368bd72bf374660417fe8271d548e05f | 11,891 | package biz.paluch.logging.gelf.intern;
import org.json.simple.JSONValue;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.math.BigDecimal;
import java.nio.ByteBuffer;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.zip.GZIPOutputStream;
/**
* (... | 31.965054 | 128 | 0.603818 |
d518c860afefb1264aeb060bf31c48a1d24697ee | 3,938 | /*
* 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 no... | 40.597938 | 126 | 0.711783 |
4e60df1df539abd12a7c47cccc7af5ad2aaab331 | 1,090 | package com.chisw.start.sandbox;
public class MyFirstProgram {
public static void main(String[] args) {
System.out.println("Hello, World1!");
hello();
hello("Test"); //вызов функции с параметром
System.out.println(area(8.90));
double a1 = 5;
double b1 = 7;
S... | 24.772727 | 100 | 0.581651 |
52438b9b82eda41cc8947a603085413ae0a01a43 | 7,545 | /*
* Copyright 2017 JessYan
*
* 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 ... | 36.100478 | 123 | 0.614314 |
ce1c06ea404796ae05a17fc79348492a4da5aaab | 3,615 | package com.github.megatronking.svg.iconlibs;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.Paint;
import com.github.megatronking.svg.support.SVGRenderer;
/**
* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was autom... | 37.65625 | 102 | 0.562102 |
70a32888d0bd538ca74ad9f58b98f2975f48b1b2 | 2,578 | package com.cosium.spring.data.jpa.entity.graph.repository.support;
import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.aop.framework.ProxyFactory;
import org.springframework.util.Asse... | 33.921053 | 153 | 0.75834 |
744c21c24eed3cf11a722d017296618fbe1ecb7b | 273 | package com.cryptobase.coinmarketcap.api;
import com.cryptobase.coinmarketcap.model.CoinMarket;
import java.util.List;
import retrofit2.Call;
import retrofit2.http.GET;
public interface CoinMarketAPI {
@GET("ticker")
Call<List<CoinMarket>> listCoinMarket();
}
| 18.2 | 53 | 0.772894 |
84d2d538d2018a2ca4578a2c451c08607643c31d | 12,836 | package pro2E.model;
/**
* <pre>
* The <b><code>AntennaArrayFunctions</code></b> class contains a set of static methods to calculate various antenna array parameters.
* </pre>
*
* @author pro2E - Team3
*
*/
public class AntennaArrayFunctions {
public static final double C = 3e8;
public static final double T... | 30.561905 | 153 | 0.597928 |
b2a27aad41900320585237b46b03e91ccb792742 | 643 | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.11
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* -----------------------------... | 37.823529 | 83 | 0.566096 |
703a9be5abfd5c0b02bd819c24ebb46c4c27cec5 | 2,839 | package chapter7;
class QuickCount
{
protected long[] theArray;
protected int nElems;
protected static long copies;
protected static long comparisons;
public QuickCount(int maxSize)
{
theArray = new long[maxSize];
nElems = 0;
copies = 0;
comparisons = 0;
}
public void insert(long val... | 20.278571 | 65 | 0.596337 |
b009cc83405d2bef6122b1c622df174f02fde621 | 1,577 | // Targeted by JavaCPP version 1.5.8-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.bullet.Bullet3OpenCL;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static org.bytedeco.javacpp.presets.javacpp.*;
import org.bytedeco.bullet.Bullet3Common.*;
import static o... | 42.621622 | 150 | 0.775523 |
6953aba7be7935c83734353a92d6ea3d409991d0 | 5,424 | /*
* Copyright (c) 1998-2018 University Corporation for Atmospheric Research/Unidata
* See LICENSE for license information.
*/
package thredds.inventory;
import ucar.nc2.time.CalendarDate;
import ucar.nc2.time.CalendarDateRange;
import java.io.IOException;
import java.util.ArrayList;
import java.util.... | 29.318919 | 105 | 0.612463 |
9faa093ae0e3bd9c558ee7fbe314c0fddcf4ae02 | 1,714 | package com.jpattern.service.log.reader;
import com.jpattern.service.log.AExecutor;
import com.jpattern.service.log.IExecutor;
import com.jpattern.service.log.NullExecutor;
import com.jpattern.service.log.event.DebugEvent;
import com.jpattern.service.log.event.ErrorEvent;
import com.jpattern.service.log.event.I... | 31.163636 | 112 | 0.710035 |
cc2fd76016f59ba48613c70556c7e9fc7aa9ff08 | 1,606 | /*
* 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... | 41.179487 | 100 | 0.742217 |
6c03f4a0202ffed59f884d0114a3f687b94a2d31 | 5,874 | package com.umiwi.ui.fragment;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ListView;
import com.umen... | 36.259259 | 220 | 0.672966 |
e297ff9754ffdeacfea4503036dfe529f09b5a1e | 2,717 | /**
*
*/
package de.kjEngine.scene.physics;
import java.util.ArrayList;
import java.util.List;
import de.kjEngine.component.Container.Implementation;
import de.kjEngine.math.Vec3;
import de.kjEngine.scene.Entity;
import de.kjEngine.scene.Scene;
import de.kjEngine.scene.physics.collission.Collider;
import de.kjEngi... | 26.637255 | 151 | 0.694516 |
80de589e0092e9ba5557ca18eff8f50ff0f7668d | 1,225 | package api.longpoll.bots.methods.impl.stories;
import api.longpoll.bots.config.VkBotsConfig;
import api.longpoll.bots.methods.impl.VkMethod;
import api.longpoll.bots.model.response.IntegerResponse;
/**
* Implements <b>stories.hideAllReplies</b> method.
* <p>
* Hides all replies in the last 24 hours from the user ... | 29.166667 | 105 | 0.709388 |
30cb11e921e0eb9cdd4bd34b47439e42283ccac3 | 167 | package com.lyx.observer;
/**
* Created by FollowWinter on 11/10/2016.
*/
public class Observer {
protected Subject subject;
public void update(){
}
}
| 13.916667 | 41 | 0.658683 |
6e6d6f51bc16cfe8776ba073adc57ddf7b39d60a | 1,763 | /*
Copyright 2018 Samsung SDS
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, sof... | 26.313433 | 74 | 0.744186 |
524ddadad47950219bccc9da842a5241a6065c2c | 2,508 | package com.civica.grads.boardgames.model;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import com.civica.grads.boardgames.enums.Colour;
import com.civica.grads.boardgames.enums.CounterType;
import com.civica.grads.boardgames.interfaces.Describable;
import com.civica.grads.boar... | 17.416667 | 109 | 0.726475 |
0adc9dd7f1f48afb14a0bbbd0aa517016692bc8e | 5,531 | /*
* Copyright (C) 2016 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 app... | 38.409722 | 138 | 0.713976 |
ec105c7ae7d42cd585078f220343417df05950be | 1,262 | /*
* Copyright © 2017 camunda services GmbH (info@camunda.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | 25.755102 | 75 | 0.701268 |
bc42de81caee3c4d2728928df4d98745863c2859 | 1,592 | /*
* 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.jpa.test.criteria.nulliteral;
import javax.persistence.Entit... | 28.945455 | 94 | 0.758794 |
d800a99d76afccfb4c3b0dd59153fb0c688d1095 | 4,669 | package crazypants.enderio.machine.hypercube;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
impo... | 26.988439 | 91 | 0.649604 |
7607f003fb7d4f79fc88a1d590ca0dcd64a7da70 | 6,828 | /*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
*... | 35.378238 | 94 | 0.643527 |
a60b7c371b40a9c4bab86ce362ae599d48f14c7b | 281 | package br.com.zup.bootcamp.gateway.database.repository;
import br.com.zup.bootcamp.gateway.database.model.AdviseTripDBDomain;
import org.springframework.data.repository.CrudRepository;
public interface AdviseTripRepository extends CrudRepository<AdviseTripDBDomain, String> {
}
| 35.125 | 90 | 0.854093 |
663dfde3c02daa2f785f92c37a705e515157a965 | 974 | package com.dapidi.events.services;
import com.dapidi.events.models.Rule;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.List;
/**
* Created for K and M Consulting LLC.
* Created by Jose M Leon 2017
**/
public class CheckRules implements Runnable {
private static final Logger log = ... | 24.974359 | 80 | 0.579055 |
e00895f6838ca9fae3c992cb9eba139ad25f2e9b | 5,011 | /*******************************************************************************
* 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
... | 35.539007 | 99 | 0.687288 |
96fd3e51cdca49da9d7b2de64fe6681f3235cc42 | 8,193 | /*
* Copyright 2022 KCodeYT
*
* 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... | 48.767857 | 209 | 0.613451 |
dfa250b7c3373cbfc1ce23829ec76ad85a12ad7b | 2,678 | /*
The Command class checks given command is valid or not. And keeps the data is given by command.
*/
public class Command{
private String[] command;
//Patterns of all commands.
private static final Object[][] COMMAND_PATTERN = new Object[][]{
{2, "load", "load;file_name"},
{6, "addAgency", "addAgency... | 35.236842 | 144 | 0.67177 |
4f017b78fb871de18d9484bc657d8531e58f9475 | 6,335 | package seedu.scheduler.testutil;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
import seedu.scheduler.model.person.DefaultValues;
import seedu.scheduler.model.person.Departme... | 41.677632 | 111 | 0.65809 |
75d0cf1631ced56bd01e54325c2db9750fd08fb5 | 5,133 | package com.mrh0.buildersaddition.gui;
import com.mojang.blaze3d.matrix.MatrixStack;
import com.mojang.blaze3d.platform.GlStateManager;
import com.mrh0.buildersaddition.BuildersAddition;
import com.mrh0.buildersaddition.config.Config;
import com.mrh0.buildersaddition.container.SpeakerContainer;
import com.mrh0.builder... | 33.54902 | 170 | 0.742646 |
11b4093e78ea4e4e14da1911703bf57d27258f62 | 4,333 | /*
* VTrackGenerator_Test.java
*
* Created on July 24, 2007, 11:54 AM
*
* $Id: VTrackGenerator_Test.java,v 1.1.1.1 2010/04/08 20:38:00 jeremy Exp $
*/
package org.lcsim.recon.tracking.trfbase;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import junit.framework.TestCase;
import o... | 35.809917 | 79 | 0.474267 |
e27bed4f31c698dbb1ee9e7f2f7a6119bf9f045c | 4,416 | /*
* 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 ma... | 31.542857 | 133 | 0.697917 |
ed624ea67add605e99b4801e70d1fc34c00af229 | 574 | package xyz.lgvalle.tddpersistence;
import java.util.Date;
public class TaskMapper {
public TaskDBModel fromDomain(Task task) {
Date expiration = task.getExpiration();
if (expiration == null) {
expiration = new Date();
}
return new TaskDBModel(
task.ge... | 21.259259 | 53 | 0.555749 |
e114d7ad4ac92f854d4a91f19ce953e4668e435c | 1,277 | package com.bytesfly.jwt.component;
import com.alibaba.ttl.TransmittableThreadLocal;
import com.bytesfly.jwt.model.CurrentUser;
import com.bytesfly.jwt.model.RequestContext;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.ste... | 28.377778 | 113 | 0.7361 |
d0d1c5848229f03f471d757115374b3f75ec5118 | 5,830 | /*----------------------------------------------------------------------------------------------------------------------
NumberUtil sınıfı
----------------------------------------------------------------------------------------------------------------------*/
package org.csystem.util;
import static java.lang.Math.*;... | 20.45614 | 121 | 0.430532 |
937273169dfc9033777d3decbf428e0e88ee50d1 | 5,270 | import javax.swing.*;
import java.awt.*;
public class Buttons {
public static void createButtons(JFrame frame) {
JButton one = new JButton("1");
JButton two = new JButton("2");
JButton three = new JButton("3");
JButton four = new JButton("4");
JButton five = new JButton("5")... | 47.053571 | 136 | 0.613283 |
3b59ab312055420b5f6cd30aa544242d8d03474b | 2,343 | package seedu.address.model.task;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.address.logic.commands.CommandTestUtil.INVALID_TASK_DEADLINE_1;
import static seedu.address.logic.commands.CommandTestUtil.VALID_TASK_DEADLINE_0;
... | 37.190476 | 94 | 0.748186 |
aea4ff2b0b12cfda04d4520ceb62aa873d522176 | 19,415 | package controller;
import java.io.IOException;
import java.net.URL;
import java.util.*;
import java.util.function.Predicate;
import javafx.beans.value.ObservableValue;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.beans.property.Read... | 40.280083 | 120 | 0.591038 |
df10ea1f52d91980871c579a0f8151c0f34753c7 | 444 | package ch.uepaa.quickstart;
public class GlobalVar {
public String getGlobalVar1() {
return GlobalVar1;
}
public void setGlobalVar1(String GlobalVar1) {
this.GlobalVar1 = GlobalVar1;
}
private String GlobalVar1 = "";
private static final GlobalVar instance = new GlobalVar()... | 17.76 | 62 | 0.650901 |
508d39217ce24dc1a07946bd9afaedeb02ce5fd0 | 3,104 | package com.github.pettyfer.caas.framework.core.restful;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.pettyfer.caas.framework.biz.entity.BizSqlBuild;
import com.github.pettyfer.caas.framework.biz.entity.BizSqlBuildHistory;
imp... | 37.39759 | 135 | 0.746456 |
d63a87e3d33e827d51bb9377a568c64da5fd23bd | 1,613 | package com.xixi.approval.myapproval.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
/**
* @au... | 20.679487 | 153 | 0.645381 |
dbbf04e1634b0bd100c9986bb39b9ea4b75dded5 | 4,196 | package charistas.actibit;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.NumberPicker;
im... | 37.464286 | 120 | 0.679218 |
402a5dd3dc25dcd8ffdac5a070b9b8ea2360d26c | 4,668 | package net.npg.abattle.server.game.impl;
import java.util.Collection;
import java.util.List;
import net.npg.abattle.common.model.Board;
import net.npg.abattle.common.model.CellTypes;
import net.npg.abattle.common.model.Player;
import net.npg.abattle.common.utils.FieldLoop;
import net.npg.abattle.common.utils.... | 43.222222 | 129 | 0.734362 |
9cfc830c761300a134289087b72c7fb4a79ecba0 | 1,142 | package ru.job4j.controller.servlets;
import ru.job4j.model.entity.Item;
import ru.job4j.model.store.HibernateORM;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
impo... | 31.722222 | 114 | 0.725044 |
4774fe258e95563ae5f82b48812c1f94ffb5d5ee | 1,745 | package com.github.seratch.jslack.api.methods.request.dnd;
import com.github.seratch.jslack.api.methods.SlackApiRequest;
public class DndSetSnoozeRequest implements SlackApiRequest {
/**
* Authentication token. Requires scope: `dnd:write`
*/
private String token;
/**
* Number of minutes, ... | 26.044776 | 130 | 0.643553 |
09ad26c277c9cbc6b3d00cc708ec7f7c5681a8e1 | 7,213 | package com.blue.sky.mobile.manager.music.cache;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import com.blue.sky.common.db.DBHelper;
import com.blue.sky.common.utils.Strings;
import com.blue.sky.mobile.mana... | 41.217143 | 139 | 0.608485 |
735e18318ec38c875d82e02f6d0b178273dcbafc | 1,716 | package com.h5190066.sumeyye_cakir_final.activity;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.webkit.WebView;
import android.widget.ImageView;
import android.widget.TextView;
import com.h5190066.sumeyye_cakir_final.R;
import com.h5190066.sumeyye_cakir_final.model.Makyaj... | 31.2 | 107 | 0.77331 |
8e55fe71783e21b570bf5f2b29d289f1b8538b54 | 20,098 | class YgMn3 {
public static void t1VXbmeFK71om (String[] ad30rcQcCWhhd_) throws yMwHV {
{
void[] x3f2ME75;
{
;
}
return;
iwtAmsO6 qsMn_CSq87O8g2;
;
void cS1JO4qaw3cL;
boolean FvdolxbzIN;
... | 40.35743 | 333 | 0.488705 |
d0d9f8103ca993d811bba51a8578b0a88ac28e9f | 2,489 | /*
* Copyright 2017-2018 Frederic Thevenet
*
* 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 b... | 31.910256 | 164 | 0.676979 |
8cad03ae4a2916760a266feb1de98727fdcc9607 | 1,790 | public boolean performFinish() {
try {
IJavaProject javaProject = JavaCore.create(getProject());
final IProjectDescription projectDescription = ResourcesPlugin.getWorkspace().newProjectDescription(projectPage.getProjectName());
projectDescription.setLocation(null);
... | 51.142857 | 167 | 0.612849 |
00f80b5ad46bda36f1692fa2e8ec6fd37cf12a2f | 320 | package com.example.deneme123;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class Deneme123Application {
public static void main(String[] args) {
SpringApplication.run(Deneme123Application.class, args);
}
}
| 22.857143 | 68 | 0.825 |
60e0eaa4d1de50c968158f78ebeae4625077c784 | 3,751 | /**
* Copyright (C) 2011 Pierre-Yves Ricau (py.ricau at gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | 30.25 | 166 | 0.684617 |
04a8ff21aca3b93f176b506e40fadf83be8ae718 | 18,681 | package org.xcolab.service.members.domain.member;
import org.jooq.Condition;
import org.jooq.DSLContext;
import org.jooq.Field;
import org.jooq.Record;
import org.jooq.Record1;
import org.jooq.SelectQuery;
import org.jooq.impl.DSL;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframewo... | 44.691388 | 111 | 0.592955 |
e44825709816e8f2a9b086a9b5c92a79c1f8442d | 2,094 | package cz.hartrik.common.reflect;
/**
* Jednoduché stopky, které slouží hlavně k testování.
*
* @version 2015-07-25
* @author Patrik Harag
*/
public class StopWatch {
// --- statické metody ---
/**
* Vytvoří stopky, spustí metodu {@link Runnable#run()} a vrátí stopky s
* výsledn... | 27.194805 | 81 | 0.557307 |
85806e03601c6e9f7feb11610a19996b0a9254ee | 232 | package edu.njnu.reproducibility.domain.method.support;
import lombok.Data;
/**
* @Author :Zhiyi
* @Date :2021/3/31 16:46
* @modified By:
* @version: 1.0.0
*/
@Data
public class Authorship {
String name;
String id;
}
| 14.5 | 55 | 0.659483 |
d5d0e5f7c16639a90727649b8601c269206ae884 | 247 | package com.globant.bootcamp.patterns.factory;
import java.util.Properties;
import com.globant.bootcamp.repository.Connection;
public abstract class ConnectionAbstractFactory {
public abstract Connection getConnection(Properties properties);
} | 27.444444 | 65 | 0.846154 |
616322d02f737ca99cae9df76757d586e5964340 | 420 | package com.github.soniex2.notebetter.util;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
/**
* @author soniex2
*/
public class StreamHelper {
public static void copy(InputStream is, OutputStream os) throws IOException {
byte[] bytes = new byte[4096];
int l... | 22.105263 | 81 | 0.62619 |
f8143a03e8d86c23c7d4061be55970577a146dd3 | 2,385 | package crazypants.enderzoo.entity.ai;
import java.util.List;
import crazypants.enderzoo.entity.EntityUtil;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.EntityCreature;
import net.minecraft.entity.ai.EntityAIBase;
import net.minecraft.util.mat... | 30.189873 | 143 | 0.710273 |
a6f909384ccb69e4fdcd9fa94e01f361675abdba | 4,818 | package gamesoftitalia.bizbong;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.media.MediaPlayer;
import android.os.AsyncTask;
import android.os.Handler;
import android.os.IBinder;
import android.os.Vibrator;... | 33.929577 | 118 | 0.617891 |
1018d138a14ed92b109a14239e11e9e3cf1823a9 | 1,570 | package gr.uom.java.xmi;
import java.io.Serializable;
public class UMLAnonymousClass extends UMLAbstractClass implements Comparable<UMLAnonymousClass>, Serializable, LocationInfoProvider {
private String codePath;
public UMLAnonymousClass(String packageName, String name, String codePath, LocationInfo locationInfo... | 24.920635 | 134 | 0.681529 |
ebbff9bb8d82063830e0484686d8a9433af9fdc3 | 2,528 | package com.whyn.asm.recorders.interfaces.impl;
import com.whyn.bean.element.FieldBean;
import com.whyn.bean.element.InnerClassBean;
import com.whyn.bean.element.MethodBean;
import com.whyn.asm.recorders.interfaces.IClassReader;
import org.objectweb.asm.ClassVisitor;
import org.objectweb.asm.MethodVisitor;
import ja... | 29.741176 | 134 | 0.660206 |
a078c619c54926314421c150f7cefa8ddd6d48bd | 279 | // It is not allowed to static-import a package-private type from another package.
// https://bitbucket.org/extendj/extendj/issues/289/illegal-static-type-import-is-allowed
// .result: COMPILE_FAIL
import static my.thing.A.Thing; // Error: illegal import.
public class Test { }
| 39.857143 | 89 | 0.763441 |
95b4f262f470dcd7ba66c930092259ada1fea7e4 | 2,835 | /*
* Copyright (C) 2013 Guillaume Lesniak
* Copyright (C) 2012 Paul Lawitzki
*
* 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 2
* of the License, or (at your option) any l... | 31.853933 | 98 | 0.711111 |
1289b52d3a9f8c6c4f0afb2823c268e0bba9c6eb | 4,682 | package com.mercadopago.resources;
import com.mercadopago.core.MPBase;
import com.mercadopago.core.MPRequestOptions;
import com.mercadopago.core.MPResourceArray;
import com.mercadopago.core.annotations.rest.GET;
import com.mercadopago.core.annotations.rest.POST;
import com.mercadopago.exceptions.MPException;
import co... | 31.006623 | 159 | 0.71273 |
c90877e8a89c520d978f7bceaf0c34daca4314e1 | 553 | package org.kyojo.schemaorg.m3n5.doma.core.container;
import org.seasar.doma.ExternalDomain;
import org.seasar.doma.jdbc.domain.DomainConverter;
import org.kyojo.schemaorg.m3n5.core.impl.ICAO_CODE;
import org.kyojo.schemaorg.m3n5.core.Container.IcaoCode;
@ExternalDomain
public class IcaoCodeConverter implements Doma... | 24.043478 | 77 | 0.804702 |
eddfe3dca15def447dacee06d699a5f0d85ced24 | 71 | package com.blamejared.mas.events;
public class CommonEvents {
}
| 11.833333 | 34 | 0.732394 |
3cb5f33233d7e9da560c184dcdf7cb6a120fd37d | 12,244 | /*
Copyright 2014-2016 Intel Corporation
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... | 37.558282 | 234 | 0.742159 |
16f809ce01f959fce620c3f73ca585c610459995 | 1,621 | package io.conceptive.quarkus.plugin.runconfig.executionfacade;
import com.intellij.execution.configurations.RunConfiguration;
import com.intellij.execution.process.ProcessHandler;
import io.conceptive.quarkus.plugin.runconfig.options.IQuarkusRunConfigurationOptions;
import org.jetbrains.annotations.*;
import java.ut... | 33.770833 | 166 | 0.740901 |
74556470159205e9cd737542923c1e403ae35be7 | 1,694 | package atomicStuff;
/**
* Run the main method of this class and you will see Runners in different threads get the same value
*/
public class UnsafeCounter {
private int count;
public int increment() {
return ++count;
}
public static void main(String[] args) {
UnsafeCounter counter... | 27.770492 | 101 | 0.411452 |
9161ae09034ef55b20d1e8280f84b348d7845a89 | 2,940 | /*
* Copyright 2017 ~ 2050 the original author or authors <Wanglsir@gmail.com, 983708408@qq.com>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/license... | 22.790698 | 102 | 0.695578 |
e2c2b2badc5898433188506d31837e39c5105eff | 28,812 | package com.econtabil.integration.controller;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.HashMap;
import java.util.List;
import org.springframework.beans.factory.annotat... | 42.246334 | 340 | 0.700715 |
7e13096d923125a401efeb6295ab487a32072301 | 360 | package com.atguigu.gmall.wms.dao;
import com.atguigu.gmall.wms.entity.WareSkuEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 商品库存
*
* @author zhangkai
* @email zhk@atguigu.com
* @date 2019-10-28 22:34:33
*/
@Mapper
public interface WareSkuDao ... | 20 | 63 | 0.755556 |
1d8b35342f5be1c535df7496b44ba057959e8431 | 215 | package ch.the.force.server;
import lombok.AllArgsConstructor;
import lombok.Data;
import java.util.Date;
@Data
@AllArgsConstructor
public class Event {
private final Long id;
private final Date when;
}
| 14.333333 | 33 | 0.75814 |
f42971f555daee055bb02ba54a8592a07c12abc0 | 387 | package com.gb.ir;
public class Constant {
private static final String MESSAGE_HEAD = "=====MessageHead=====";
public static final byte[] MESSAGE_HEAD_BYTES = MESSAGE_HEAD.getBytes();
private static final String MESSAGE_END = "=====MessageEND=====";
public static final byte[] MESSAGE_END_BYTES = MESSAG... | 38.7 | 76 | 0.713178 |
abf052001ea2ad4a537a4cbced44528cb57cf15f | 2,084 | package me.gookven.swingx.generictable;
import me.gookven.swingx.generictable.api.ColumnDescriptor;
import me.gookven.swingx.generictable.api.ColumnDescriptorFactory;
import me.gookven.swingx.generictable.api.GenericTableColumn;
import java.beans.PropertyDescriptor;
public class DefaultColumnDescriptorFactory implem... | 30.647059 | 101 | 0.630518 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.