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 |
|---|---|---|---|---|---|
af0ac3dcbafa9470b769fa112ecafe979c2abf91 | 3,147 | /* ====================================================================
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 Y... | 32.78125 | 82 | 0.645059 |
cdb286f4efe6a3c3e2599e461117d3732cbad3c8 | 1,079 | class ConstructBinaryTreeFromPreorderInorderTraversal {
public TreeNode buildTree(int[] preorder, int[] inorder) {
if (preorder == null || inorder == null) return null;
HashMap<Integer, Integer> map = new HashMap<Integer, Integer>();
for (int i = 0 ; i < inorder.length ; i ++){
map.put(inorder[i]... | 43.16 | 130 | 0.665431 |
d3f0097e6e255cba9db3482650f1216bccdd3d18 | 7,079 | /*
* Copyright 2009-2016 University of Hildesheim, Software Systems Engineering
*
* 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... | 30.645022 | 101 | 0.58949 |
2db62708ca4f2f44a03e8fd969c88ace0e369f77 | 338 | package jsdl;
public class SDLInteger implements SDLData
{
private int m_integer;
public SDLInteger(int integer)
{
m_integer = integer;
}
@Override
public String getType()
{
return "integer";
}
@Override
public void generateData(StringBuilder out_sdlBuffer)
{
out_sdlBuffer.append(Integer.toString(... | 14.083333 | 54 | 0.736686 |
0caa9ff7dbcc17f48209fa4ed22d65c0eddcd646 | 277 | package softuni.users.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import softuni.users.entities.Picture;
@Repository
public interface PictureRepository extends JpaRepository<Picture, Long> {
}
| 27.7 | 73 | 0.848375 |
552a761d1a2769071f97b6c28540d6ac9a210e26 | 788 | /*
* Copyright (C) 2016 Khadajico
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
package com.arrggh.eve.blueprint.utilities;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.time.format.DateTimeFor... | 31.52 | 85 | 0.724619 |
521801d7b653ffeb1cb18840b72a5ffe1703991c | 2,294 | /*
* (C) Copyright 2012 Nuxeo SA (http://nuxeo.com/) and others.
*
* 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 require... | 37.606557 | 232 | 0.727114 |
fa2e775dad762ead463f742fa04925aaa0315efc | 62 | package flow;
public interface Struct<T> {
T[] toArray();
}
| 10.333333 | 28 | 0.66129 |
9d35c96d5f667dc9a253e077521cca21b4773735 | 17,124 | /*
* 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... | 28.828283 | 80 | 0.599743 |
5c85bfee9b5f3f75b47a262242dfe8be328ac248 | 16,391 | package com.dyc.factorymode;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
import android.telephony.TelephonyManager;
import com.android.internal.telephony.PhoneConstants;
import android.graphics.Color;
import android.view.WindowManager;
import android.bluetooth.BluetoothAdap... | 41.707379 | 160 | 0.579708 |
3add825857309fee82be3aed23d509d70b6c7d5b | 3,996 | package com.xsp.library.activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.ViewPager;
import android.view.View;
import android.widget.LinearLayout;
import com.xsp.library.R;
import com.xsp.library.fragment.Bas... | 28.340426 | 102 | 0.613614 |
9360cb30f3107de16ee5cf5f58415401901c4f3f | 995 | /*
* 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 edu.neu.coe.info6205.codelength;
/**
* @author prospace
*/
public class Solution {
private final double[][][] f = new do... | 28.428571 | 79 | 0.445226 |
71803bc6c3d0645efa73fcb3778d7a1dab531f5c | 2,724 | /*
* This software is licensed under the Apache 2 license, quoted below.
*
* Copyright (c) 1999-2022, Algorithmx 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.a... | 38.366197 | 127 | 0.73605 |
c98f038de898e424c8ce962ec2cded8d6afee07c | 1,471 | package cn.net.iscream.hyouka.pojo;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import javax.persistence.*;
/**
* ClassName : HyoukaMenu
* Description : 菜单实体类
* Author : Jeanne d'Arc
* Date : 2020-03-05 21:48
*/
@Entity
@Table(name = "hyouka_menu")
@JsonIgnoreProperties({"handler", "hibernateL... | 18.858974 | 62 | 0.628824 |
e4e5746df2c7a99f4cea71f332cdf14778d9b45a | 889 | package com.wirelust.aa.api.v1.resources;
import javax.inject.Inject;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import com.wirelust.aa.api.helpers.StatusHelper;
import com.wirelust.aa.api.v1.representations.Status... | 21.166667 | 75 | 0.743532 |
093fd2da7a8f9f18e8f7b9788706588af614c49f | 949 | /*
This is the Sieve of Eratosthenes algorithm,
It is used to find prime numbers.
Complexity is O(n.log(log n))
*/
//import java.util.Scanner;
//import java.util.Arrays;
import java.util.*;
public class Main
{
static int N;
static int[] primeArray;
public static void primeDisplay(int n)
... | 21.088889 | 84 | 0.498419 |
933885ea32dfbd13bbd3307adcdc699e970f6a55 | 3,377 | package com.github.mjaroslav.mjutils.configurator;
import com.github.mjaroslav.mjutils.util.io.ResourcePath;
import lombok.Getter;
import org.apache.commons.lang3.StringUtils;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.I... | 28.618644 | 96 | 0.606752 |
102f7c11054b70e6ee7038447eb13ed6b84c3e8f | 3,350 | /*
* 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 ... | 30.18018 | 87 | 0.675821 |
938a5bb293f41c7974b80f7ec20c49fd0a551bf6 | 1,077 | package net.ronasoft.wsfamilytracking.model;
import java.io.Serializable;
import java.time.ZonedDateTime;
import java.util.UUID;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persist... | 21.979592 | 70 | 0.780873 |
0981dd8a4aaf750c339da03674806d4e9aafc7ad | 2,207 | package uk.gov.companieshouse.efs.api.submissions.service;
import java.security.SecureRandom;
import java.util.Arrays;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import uk.gov.companieshous... | 31.084507 | 118 | 0.691436 |
6155080cd5baedfd4be67c86e102c13f8b643083 | 334 | package com.bsuir.wtlab3.model.command;
import com.bsuir.wtlab3.exception.LogicException;
public class Manager {
private CommandHelper commandHelper = new CommandHelper();
public Object execute(CommandName commandName, String request) throws LogicException{
return commandHelper.getCommand(commandName).execute(r... | 27.833333 | 86 | 0.811377 |
7cd32a95e9f63a1b54397cf9f6a30180d8d295cb | 1,517 | /* Copyright 2017 Great Ape Software 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 ag... | 27.581818 | 81 | 0.6882 |
bd2975ae73ea45cb0632655a80e73ace22964248 | 26,994 | /*
* Copyright 2002.2.rc1710017 Barcelona Supercomputing Center (www.bsc.es)
*
* 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/LICENS... | 40.169643 | 138 | 0.552012 |
33e0cbed96b581c8a1e0bf62a646564e30bb4bff | 5,394 | /* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed... | 38.255319 | 122 | 0.650538 |
7da1ff2ca55bb86ab2595889b5d8d306316c525e | 3,939 | package com.example.mobilesafe74.service;
import android.app.PendingIntent;
import android.app.Service;
import android.appwidget.AppWidgetManager;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.Intent... | 32.553719 | 122 | 0.682661 |
44823cbd84eebf8ad30967c8d26dd37d3181b377 | 9,472 | package de.aaaaaaah.velcom.backend.data.repocomparison;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.mockito.Matchers.anyCollection;
import static org.mockito.Matchers.eq;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import de.aaaaaaah.velcom.backen... | 39.798319 | 94 | 0.75454 |
2b11a9515297755097d001e562bb895c5271274f | 5,745 | package com.ss.editor.ui.control.property.impl;
import static java.util.Objects.requireNonNull;
import com.jme3.math.Vector3f;
import com.ss.editor.model.undo.editor.ChangeConsumer;
import com.ss.editor.ui.control.property.AbstractPropertyControl;
import com.ss.editor.ui.css.CSSClasses;
import com.ss.editor.ui.css.CS... | 33.208092 | 151 | 0.675892 |
1a1ebad4f5d8ee2fbf53ec8d2b10fa56523cb848 | 2,161 | /*
* 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.mycompany.thislike.listener;
import org.bukkit.plugin.Plugin;
import org.bukkit.ChatColor;
import org.bukkit.Material;
imp... | 35.42623 | 143 | 0.680703 |
4f2c5a74f4f0aa416e5b816865611fa36c8a3928 | 2,982 | /*
* Copyright (C) 2020 Peter Paul Bakker, Stokpop Software Solutions
*
* 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 re... | 33.133333 | 105 | 0.670355 |
1a89e66d35a32c2db12d0ebf3b8efb5b81c6ec46 | 2,204 | package com.gulj.common.util;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.spr... | 25.929412 | 87 | 0.622958 |
69f1c50fe260198e01cb9becdb9c451d0171f8df | 6,368 | /*
* Copyright 2013-2014 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 ap... | 42.172185 | 169 | 0.760992 |
ff2b8b8a524aad650931c75ddc0b0b74bbe2d172 | 1,024 | package by.post.control.ui;
import javafx.scene.control.Alert;
import javafx.util.converter.IntegerStringConverter;
/**
* Custom implementation of IntegerStringConverter
*
* @author Dmitriy V.Yefremov
*/
public class CheckedIntegerStringConverter extends IntegerStringConverter {
private int defaultValue;
... | 23.272727 | 92 | 0.641602 |
0198a6739a476b7f8f3e9e60629334775504585e | 11,061 | package com.hlq.capture.fragment;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import android.support.v4.app.... | 38.141379 | 162 | 0.5476 |
b0e31fa9aa32eac922c86c5930130fc21b5be848 | 2,128 | /**
*/
package aadl2.tests;
import aadl2.Generalization;
/**
* <!-- begin-user-doc -->
* A test case for the model object '<em><b>Generalization</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are tested:
* <ul>
* <li>{@link aadl2.Generalization#getGeneral() <em>General</em>}</li>
* <li... | 25.638554 | 108 | 0.648026 |
386fe7ab05e093251ecf0c4cf96e45d5e8cee019 | 56,740 | package com.huaweicloud.sdk.as.v1;
import com.huaweicloud.sdk.core.HcClient;
import com.huaweicloud.sdk.core.ClientBuilder;
import com.huaweicloud.sdk.core.invoker.SyncInvoker;
import com.huaweicloud.sdk.as.v1.model.*;
public class AsClient {
protected HcClient hcClient;
public AsClient(HcClient hcClient) {
... | 43.780864 | 333 | 0.776489 |
2b751ad53e0417ed8183237696f1ef9edbe6000f | 962 | package org.yanmai.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.yanmai.model.UserTaskLog;
import org.yanmai.model.example.UserTaskLogExample;
import org.springframework.stereotype.Repository;
@Repository
public interface UserTaskLogMapper {
int countByExample(UserTaskLogExampl... | 31.032258 | 116 | 0.795218 |
31b417db8b6b3aca72b841ad29ddbd97821c217e | 184 | package prueba2;
public class DriverConfiguracion {
public static void main(String[] args) {
Configuracion c = Configuracion.getInstance();
}
}
| 15.333333 | 55 | 0.608696 |
f02000524254cf19c3e092c9fbeb838cb4adc708 | 702 | package com.codefortomorrow.beginner.chapter9.practice;
/*
* Create a program called MadLibs
* which prompts the person for different
* types of words (like in a game of Mad Libs)
* and then prints the Mad Libs story with the
* given words. You can use the Mad Libs template
* below, or you can search up your own... | 27 | 79 | 0.710826 |
525912411bafc6e1b2de6e043bef1b9f0b8a3a3c | 1,209 | /* ###
* IP: GHIDRA
*
* 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 writin... | 34.542857 | 95 | 0.752688 |
214ded24aaf43845e64ec004d397bb0da441d990 | 4,439 | /*
Copyright (c) 2008 Jiri Vanek <judovana@email.cz>
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 an... | 35.798387 | 81 | 0.681009 |
ef4170c5b4db1ba2d7aa8a9c45a46762516a88b3 | 12,939 | package hudson.plugins.git;
import hudson.RelativePath;
import hudson.plugins.git.GitSCM.DescriptorImpl;
import hudson.plugins.git.extensions.GitSCMExtension;
import hudson.plugins.git.extensions.GitSCMExtensionDescriptor;
import hudson.plugins.git.extensions.impl.*;
import hudson.plugins.git.extensions.impl.DisableRe... | 29.011211 | 122 | 0.614576 |
6bc68fc4d5d035113edc51101f8a70701a2b8098 | 17,299 | /*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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
... | 24.712857 | 113 | 0.584311 |
6318c3fe948571aab920d1cd11c1e7f9626d59b6 | 571 | package ru.sbtqa.tag.pagefactory.web.drivers;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
import java.util.function.Supplier;
public class CreatedFirefoxDriver implements Supplier<WebDriver> {
private final Desire... | 25.954545 | 73 | 0.774081 |
bb149192e02951374739f350de37cb6c6fd388ed | 8,045 | class O {
public boolean[] GtRH (void T6bP2W_B9yN4N1) {
void[][][][][] _Elm0 = kUet.AvnXnTEZ = ( ( Wg8GCvddhTyoM.XBeU1()).e2XPG3EjtuI6xy).C();
{
void[] rl;
}
void V;
int[][][][] HOIU;
bweuME7aiC6J[] biZQkoLw = !new Csdm4lXiru8PY[ false.KAXVRNSLLtu][ fa... | 31.798419 | 264 | 0.454692 |
edceb6152d6662d6039ee0feea03b0a4500cf676 | 4,045 | package pandas.gather;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.w... | 40.45 | 191 | 0.721879 |
f3c94c1f30383c00bb4897a7b7246a3ac9c3af08 | 149 | package com.widemouth.library.span;
import android.text.style.LeadingMarginSpan;
public interface WMLeadingMarginSpan extends LeadingMarginSpan{
} | 21.285714 | 63 | 0.852349 |
ff7f37b2a4b126489b4d43c3d99fc8f30834b95f | 97 | package io.spotnext.inject;
/**
* Marker interface for events.
*/
public interface Event {
}
| 10.777778 | 31 | 0.690722 |
b7ad207c9838ae705b25cf8bf435e939444d1bd6 | 3,116 | /*******************************************************************************
* Copyright 2013, the Optique Consortium
* 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... | 33.869565 | 89 | 0.672978 |
0f8309b7d2dfa2fe85d1be4313586a682eabf698 | 1,838 | package com.mimall.vo;
public class Users {
private String UUID ; //小米ID
private String UPHONE; //手机
private String UPASSWORD; //密码
private String UEMAIL; //邮箱
private int UAGE; //年龄
private String UNAME; // 用户名
private int USEX ;//性别 DEFAULT 0,
private String COUNTRY;//国籍 DEFAULT '中国',
private... | 20.886364 | 109 | 0.621328 |
c1dcd423031c2123caec906c264ccf7f9454499a | 685 | package net.demilich.metastone.game.cards.concrete.rogue;
import net.demilich.metastone.game.cards.Rarity;
import net.demilich.metastone.game.cards.SpellCard;
import net.demilich.metastone.game.entities.heroes.HeroClass;
import net.demilich.metastone.game.spells.ReturnMinionToHandSpell;
import net.demilich.metastone.g... | 29.782609 | 68 | 0.794161 |
a51c637566702bd5af2003f1b0d495c72bd9d6ed | 3,450 | // ============================================================================
//
// Copyright (C) 2006-2018 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// https://github.com/Talend/data-prep/blob/master/LICENSE
//
// You should have received a copy of the agreement
//... | 34.848485 | 128 | 0.697971 |
02bf1f779acd807ec74e69042d6d33446dde3078 | 2,360 | package limmen.kth.se.id2208.hw1.parsing.xslt.application_profile_combine;
import limmen.kth.se.id2208.hw1.validation.SchemaValidator;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerConfigurationException;
import javax.xml.transform.TransformerException;
import javax.xml.transform.Trans... | 38.688525 | 98 | 0.762288 |
691cd74ae47491c6d3caa39fc48f9e19c732812a | 554 | package JsonObject;
import java.util.List;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class ApiData {
@SerializedName("metadata")
@Expose
private Metadata metadata;
@SerializedName("results")
@Expose
private List<Result> results = null;
public Metadata getMe... | 17.3125 | 50 | 0.774368 |
08aae60bbc4ab17504420768a2d0514049b52922 | 14,013 | /**
* 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... | 40.151862 | 145 | 0.610933 |
fc5efc626b968c5b530d39b996fc06f99550534f | 241 | package com.daxiang.typehandler;
import com.daxiang.model.page.By;
/**
* Created by jiangyitao.
*/
public class ByListTypeHandler extends ListTypeHandler {
@Override
public Class getTypeClass() {
return By.class;
}
}
| 17.214286 | 56 | 0.697095 |
d8d14bfdfc0efd9961f32e77d4d3edf6fbc96747 | 5,312 | package com.ideal.flyerteacafes.caff;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Environment;
import android.os.Handler;
import android.os.Message;
im... | 32.193939 | 78 | 0.579819 |
d97be545685078abccd37115e830fd8d5966f031 | 3,061 | package com.example.rushi.smartwatch;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.ListView;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import java.util.Arra... | 38.2625 | 210 | 0.653381 |
d3d4a2c0bcf95f3b08543268b0ad92c66282fd5b | 12,251 | package io.github.punishmentsx.punishments;
import io.github.punishmentsx.ConfigValues;
import io.github.punishmentsx.Locale;
import io.github.punishmentsx.PunishmentsX;
import io.github.punishmentsx.profiles.Profile;
import io.github.punishmentsx.utils.Notifications;
import io.github.punishmentsx.utils.PlayerUtil;
im... | 42.099656 | 195 | 0.542731 |
bd62a0d7924527bcdc05f59a5bada10dec9bfc2d | 2,680 | /**
* This code was auto-generated by a Codezu.
*
* Changes to this file may cause incorrect behavior and will be lost if
* the code is regenerated.
*/
package com.mozu.api.contracts.productruntime;
import java.util.List;
import java.io.Serializable;
import com.fasterxml.jackson.annotat... | 30.11236 | 273 | 0.746642 |
d01cf1bddea94d77f3dc5d1abd75ac011adf4940 | 299 | package cpu_scheduler;
public class Process {
public int pid, arrivalTime, serviceTime, burstTime, completionTime;
public Process(int pid, int arrivalTime, int burstTime) {
this.pid = pid; // unique
this.arrivalTime = arrivalTime;
this.burstTime = burstTime;
this.serviceTime = 0;
}
}
| 21.357143 | 69 | 0.735786 |
2641fa71b551d71b55cc549b0f64e890bfcc9c99 | 5,657 | /*
* Copyright (c) 2015-present, Parse, LLC.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.par... | 27.461165 | 100 | 0.637264 |
de4c28d5d1d91cb993322e77b1c40926d36742d0 | 374 | package xyz.tehbrian.restrictionhelper.spigot;
import org.bukkit.Location;
import org.bukkit.entity.Player;
import xyz.tehbrian.restrictionhelper.core.RestrictionHelper;
/**
* The main class which holds the list of {@code Restriction}s to be checked
* against.
*/
public class SpigotRestrictionHelper extends Restri... | 26.714286 | 101 | 0.802139 |
1b02a6eb22e5d17f907e4e5d1fd086a141670e43 | 627 | package com.jivesoftware.boundaries.restz.usecase.box.api.models;
/**
* Created with IntelliJ IDEA.
* User: bmoshe
* Date: 1/16/13
* Time: 7:45 PM
*/
public class BoxUser
extends BoxObject
{
final String type = "user";
private String name;
private String login;
public String getType()
{
... | 14.928571 | 65 | 0.583732 |
ca04d238498317af6ca039a68efe363ceed77745 | 1,840 | /*
* Copyright 2002-2021 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... | 36.078431 | 97 | 0.773913 |
4e4de456c2cfc5324848e7c2b2bcf32f6e71a817 | 564 | package org.micro.neural.config.event;
import org.micro.neural.extension.SPI;
/**
* The Event Notify.
*
* @author lry
**/
@SPI("log")
public interface IEventListener {
/**
* The initialize
*
* @param eventConfig {@link EventConfig}
*/
void initialize(EventConfig eventConfig);
/**... | 16.588235 | 54 | 0.599291 |
5ef3272609b0984fa37810563af021b7850ebcd8 | 643 | package de.tu_berlin.cit.intercloud.webapp.components;
import org.apache.wicket.markup.html.form.TextField;
import org.apache.wicket.model.IModel;
import org.apache.wicket.util.convert.IConverter;
import java.time.Duration;
public class DurationTextField extends TextField<Duration> {
private IConverter durationC... | 30.619048 | 105 | 0.752722 |
f8c5243a770ce7a276669750d4d5b1fedb3e74d2 | 779 | package com.bihe0832.android.common.test.log;
import com.bihe0832.android.common.test.R;
import com.bihe0832.android.lib.adapter.CardBaseHolder;
import com.bihe0832.android.lib.adapter.CardBaseModule;
/**
* @author hardyshi code@bihe0832.com
* Created on 2019-11-21.
* Description: Description
*/
p... | 24.34375 | 65 | 0.703466 |
973b5097424047b1611a0d5b2c92ff6aae92be00 | 711 | package com.querydsl.collections;
import java.math.BigDecimal;
import java.util.Arrays;
import org.junit.Test;
import com.querydsl.core.types.dsl.Expressions;
import com.querydsl.core.types.dsl.NumberPath;
public class BigDecimalTest {
@Test
public void Arithmetic() {
NumberPath<BigDecimal> num = E... | 29.625 | 100 | 0.715893 |
116d938c44462bf80390aee97c4717600f673900 | 3,934 | import java.util.Scanner;
//A class that keeps a fleet of different types of vehicles
public class FleetOfVehicles {
//An array of vehicles
private Vehicle[] fleet;
public static final int MAX_VEHICLES = 100;
public FleetOfVehicles()
{
fleet = new Vehicle[MAX_VEHICLES];
}
public Vehicle[] getFleet()
{
retur... | 27.51049 | 107 | 0.684545 |
15b128fa8fb1904bcb11724ff80458d5294c22e4 | 26,412 | package com.treebricks.ewuhub.ui;
import android.app.ProgressDialog;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.os.Handler;
import android.preference.PreferenceManager;
imp... | 44.690355 | 140 | 0.545661 |
387b79dc47629109584a1425203d9edb4dc0dfa6 | 364 | package com.github.misterchangray.monitor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class FasterMonitorServerApplication {
public static void main(String[] args) {
SpringApplication.run(FasterMoni... | 26 | 74 | 0.81044 |
10ffd30473b0ce3491a5b1e3d654559ca69025dc | 11,149 | package com.janeirodigital.sai.authentication;
import com.janeirodigital.mockwebserver.RequestMatchingFixtureDispatcher;
import com.janeirodigital.sai.httputils.HttpHeader;
import com.janeirodigital.sai.httputils.HttpMethod;
import com.janeirodigital.sai.httputils.SaiHttpException;
import okhttp3.OkHttpClient;
import ... | 57.469072 | 153 | 0.76545 |
90632adec4a692add9d48a082785d29516669272 | 1,709 | package com.zcprog.arithmetic;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
/**
* @Description 两个数组的交集
* @Author zhaochao
* @Date 2020/12/16 21:25
* @Email zcprog@foxmail.com
* @Version V1.0
*/
public class LeetCode_0349_IntersectionOfTwoArrays {
/**
* LeetCode地址:https://lee... | 25.507463 | 78 | 0.506144 |
67bb5ef8ffcdb576fd93e01b0b4d05f065bfb015 | 3,085 | /**
* This file is part of the twigcs-plugin package.
*
* (c) Laurent Muller <bibi@bibi.nu>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
package nu.bibi.twigcs.resolution;
import java.io.UnsupportedEncodingException;
import or... | 22.194245 | 74 | 0.685251 |
f4e3d3be01ff8d69996158069458ea96ed330844 | 469 | package bg.softuni.pethotel.model.entity;
import bg.softuni.pethotel.model.enums.DogSizeEnum;
import javax.persistence.*;
@Entity
@DiscriminatorValue("DOG")
public class DogEntity extends AnimalEntity {
private DogSizeEnum size;
public DogEntity() {
}
@Enumerated(EnumType.STRING)
public DogSize... | 18.76 | 51 | 0.684435 |
76e679b02624ef93bd44fbc7f8084f6a265f97cf | 5,685 | package org.codegeny.jakartron.servlet;
/*-
* #%L
* jakartron-servlet
* %%
* Copyright (C) 2018 - 2021 Codegeny
* %%
* 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://... | 39.206897 | 151 | 0.728584 |
163427fe4f17b766f4f5d1b4a958a579b0497de9 | 6,098 | /******************************************************************
*
* CyberX3D for Java
*
* Copyright (C) Satoshi Konno 1997-2002
*
* File : CylinderSensorNode.java
*
* Revisions:
*
* 12/07/02
* - Changed the super class from SensorNode to DragSensorNode.
* - Moved the following fields to DragSensorNode.
* autoOf... | 25.198347 | 76 | 0.631847 |
049393f99530523b19fb5199774fdcffbffeee7b | 677 | package cn.smile.smilemall.cart.smilemallcart;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;... | 30.772727 | 79 | 0.838996 |
fac1e022c37ece3d0e581ddbfac9882625cc384b | 418 | package com.scloudic.rabbitframework.jbatis.exceptions;
public class DbaseException extends RuntimeException {
private static final long serialVersionUID = 1L;
public DbaseException() {
super();
}
public DbaseException(String message) {
super(message);
}
public DbaseException(String message, Throwable cau... | 19 | 57 | 0.753589 |
2bd4beeba19c3ea4e7c57ab76524963da982e34d | 1,116 | package de.hosenhasser.togfence.togfence.Toggl;
import java.util.ArrayList;
import java.util.List;
public class TogglStopTimeEntryResponse {
public String description;
public int id;
public int uid;
public int wid;
public String guid;
public boolean billable;
public String start;
publi... | 31.885714 | 69 | 0.530466 |
3ab1aadbf216c109fe19c4ee2b31046bbed67e38 | 499 | package p005cm.aptoide.p006pt.home.apps;
import p026rx.p027b.C0129b;
/* renamed from: cm.aptoide.pt.home.apps.Mb */
/* compiled from: lambda */
public final /* synthetic */ class C3567Mb implements C0129b {
/* renamed from: a */
private final /* synthetic */ AppsPresenter f6950a;
public /* synthetic */ ... | 24.95 | 65 | 0.673347 |
442bf94dadcdc8674946387cd40f0c9e6c2996ed | 5,386 | package kafka.twitter;
import com.google.common.collect.Lists;
import com.twitter.hbc.ClientBuilder;
import com.twitter.hbc.core.Client;
import com.twitter.hbc.core.Constants;
import com.twitter.hbc.core.Hosts;
import com.twitter.hbc.core.HttpHosts;
import com.twitter.hbc.core.endpoint.StatusesFilterEndpoint;
import c... | 37.144828 | 119 | 0.651318 |
3037b935ee73a66794478b4ad221c5e6b77f049e | 618 | package com.keanesf.bakingapp.models;
import java.io.Serializable;
public class RecipeStep implements Serializable {
private int id;
private String shortDescription;
private String description;
private String videoURL;
private String thumbnailURL;
public int getId() {
return id;
... | 18.727273 | 49 | 0.66343 |
0b430e9e394ba728de728ed0fd3724c2f1262ee5 | 18,418 | /*
* Copyright 2015-2016 USEF Foundation
*
* 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... | 47.963542 | 146 | 0.704637 |
93d03b46b4ae0362f78ea598f1aec2b9f0c4e8c9 | 3,922 | package org.bouncycastle.math.ec;
import java.math.BigInteger;
/**
* Class implementing the WTNAF (Window
* <code>τ</code>-adic Non-Adjacent Form) algorithm.
*/
public class WTauNafMultiplier extends AbstractECMultiplier
{
// TODO Create WTauNafUtil class and move various functionality into it
static f... | 34.104348 | 98 | 0.566548 |
d6b34fa3d5b2675b4335067c52de69c5936ceda4 | 733 | package com.greencode.enticement_android.Helpers;
import android.util.Patterns;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Created by Hung Nguyen on 11/30/2016.
*/
public class StringChecker {
public static final String EMAIL_PATTERN = "^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@((\\[[0-9]{1... | 31.869565 | 180 | 0.654843 |
2e7d65907a65adbbb492b0838cc40c40fc69dad8 | 2,215 | /*
** 2011 April 5
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
** May you do good and not evil.
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
*/
package info.ata... | 29.144737 | 68 | 0.617156 |
cbffa2344b0897ab77da51b0bc21725ab3b36b3a | 383 | package org.wickedsource.coderadar.graph.domain.file;
import org.neo4j.ogm.typeconversion.AttributeConverter;
public class FileIdConverter implements AttributeConverter<FileId, String> {
@Override
public String toGraphProperty(FileId value) {
return value.getValue();
}
@Override
public FileId toEntity... | 22.529412 | 76 | 0.770235 |
e93b81e98cc015e469bbe53c7b94f6ee7fc2e12b | 317 | package com.ganwhat.hummingbird.resources.etcd;
/**
* @author : yaodongliu
* @date : 2019/8/25
*/
public interface EtcdLock {
String getEtcdKey();
void setEtcdKey(String etcdKey);
void tryLock() throws Exception;
void lock() throws Exception;
boolean haveLocked();
void unlock();
}
| 14.409091 | 47 | 0.662461 |
a91471688796f8e79a5882ac548aac04c992d712 | 2,340 | /*
* 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... | 28.888889 | 102 | 0.682906 |
79e0f852b9f191b6be24210d4f174369f6da8a69 | 483 | package pt.isel.ps.li61n.model.dal.web.dtos;
import io.netty.handler.codec.http.HttpResponseStatus;
/**
* Created on 07/07/2016.
*
* @author Carlos Marques - carlosmmarques@gmail.com
* Tiago Venturinha - tventurinha@gmail.com
*/
public final class ErrorDto {
public final String url;
public fina... | 19.32 | 54 | 0.63354 |
ab76418ed23ceacedac0500e9b52c325de5349e6 | 121 | package io.mateu.mdd.core.interfaces;
public interface ObjectArrayDeserializableRow {
void fill(Object[] data);
}
| 15.125 | 47 | 0.760331 |
f6e184694c5230f8b32575806565f1d4f38a2546 | 3,347 | /*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2002, 2017 Oracle and/or its affiliates. All rights reserved.
*
*/
package com.sleepycat.util.test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import ja... | 29.619469 | 79 | 0.599044 |
85325587f08f0220ad74d78b0edfed1ceef1dc52 | 142 | package net.smactechnology.medha;
import android.support.v7.app.AppCompatActivity;
public class BlankActivity extends AppCompatActivity {
}
| 20.285714 | 54 | 0.838028 |
d52236356e668b913dfea4af1fb657d9b6dffbf1 | 3,100 | /*
Copyright 2016 Goldman Sachs.
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... | 39.240506 | 122 | 0.740968 |
64da3e57ebcbbfb0b0859872c52b767856f249ac | 292 | package uk.gov.ida.eventemitter;
import static java.lang.String.format;
public class EventEmitterConfigurationException extends RuntimeException {
public EventEmitterConfigurationException(String message, Exception e) {
super(format("%s: %s", message, e.getMessage()));
}
}
| 29.2 | 76 | 0.756849 |
c93043979d14ce192d3c3752b0d60562c581b82e | 356 | package top.yekongle.fileupload;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SpringbootFileuploadSampleApplication {
public static void main(String[] args) {
SpringApplication.run(SpringbootFileuploadSa... | 25.428571 | 75 | 0.842697 |
83a016cedb2932b51694cb3f820ce833b56ee405 | 2,549 | /* ==================================================================
* GeneralLocationDatumMetadataDao.java - Oct 17, 2014 3:01:44 PM
*
* Copyright 2007-2014 SolarNetwork.net Dev Team
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public Licens... | 41.112903 | 112 | 0.713221 |
49784f90240dac981edeabd4915f94c6c089ff85 | 120,118 | /*
*AVISO LEGAL
© Copyright
*Este programa esta protegido por la ley de derechos de autor.
*La reproduccion o distribucion ilicita de este programa o de cualquiera de
*sus partes esta penado por la ley con severas sanciones civiles y penales,
*y seran objeto de todas las sanciones legales que correspondan.
*Su... | 37.269004 | 545 | 0.758512 |
7a2973d2825ca00c3f04c810c952a9bf69e98001 | 1,786 | package acsse.csc2a.entities;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Rectangle;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import acsse.csc2a.ui.Game;
/**
* Snake gives Telekinesis powers to the Player
... | 18.412371 | 64 | 0.599664 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.