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 |
|---|---|---|---|---|---|
c2b8c5bee96d79ff87ffe8683a50365f29252668 | 17,631 | //
// ========================================================================
// Copyright (c) 1995-2020 Mort Bay Consulting Pty Ltd and others.
//
// This program and the accompanying materials are made available under
// the terms of the Eclipse Public License 2.0 which is available at
// https://www.eclipse.org/leg... | 33.078799 | 159 | 0.595485 |
fe82a97518825d390e0c343c316dc93d3c1ab61e | 195 | /**
* Copyright 2008-2019, Province of British Columbia
* All rights reserved.
*/
package ca.bc.gov.ols.router.open511.enums;
public enum EventSeverity {
MINOR, MODERATE, MAJOR, UNKNOWN;
}
| 19.5 | 52 | 0.728205 |
237fa647081616b6cb641eb18213b2a249df6b75 | 5,189 | package com.selfcoders.sshcheck;
import com.jcraft.jsch.JSch;
import com.jcraft.jsch.JSchException;
import com.jcraft.jsch.KeyPair;
import com.jcraft.jsch.Session;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.lang.reflect.InvocationTargetExcepti... | 38.154412 | 137 | 0.561573 |
62c7df8b33505f6159c1ac709c56bbdc7361101e | 6,285 | /*
* Copyright 2015 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 required by applic... | 42.181208 | 100 | 0.728719 |
2268a0519b143549437c460791c7bf17cec8ed11 | 1,192 | //package org.lyg.mainInterface;
//import org.springframework.boot.SpringApplication;
//import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
//import org.springframework.boot.autoconfigure.SpringBootApplication;
//import org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContaine... | 47.68 | 89 | 0.812081 |
895c0b3fe022200961f66973d590f57747faf18f | 1,509 | package com.epam.reportportal.jobs.clean;
import net.javacrumbs.shedlock.spring.annotation.SchedulerLock;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;
import java.time.LocalDateTime;
import java.time.ZoneO... | 32.804348 | 125 | 0.772697 |
4e5da8dfcb8202d308fb4d35d65d300a9921c124 | 2,364 | package br.ufscar.dc.latosensu.aplicacaofinanceira.controller;
import br.ufscar.dc.latosensu.aplicacaofinanceira.exception.NotEmptyCollectionException;
import br.ufscar.dc.latosensu.aplicacaofinanceira.exception.NotFoundException;
import br.ufscar.dc.latosensu.aplicacaofinanceira.exception.NotUniqueException;
import b... | 43.777778 | 188 | 0.798646 |
5c0ce8265ac982e7fc550fc54a44bf5e268c0ee5 | 1,499 | package lec13point24Game;
import java.util.Arrays;
import java.util.List;
import java.util.Stack;
public class BinaryTree {
String root;
BinaryTree left;
BinaryTree right;
public BinaryTree() {
root = "";
left = right = null;
}
public BinaryTree(String root, BinaryTree left, BinaryTree right) {
super();
... | 19.467532 | 69 | 0.613075 |
70cfbeb3a5ffed688a0e9b0b059bb6ff0210ec6a | 2,000 | /*
* Silent Gear -- BlueprintPackageItem
* Copyright (C) 2018 SilentChaos512
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation version 3
* of the License.
*
* This library is dist... | 40 | 127 | 0.7775 |
e232a30e70a3665bbc634904eb40f8fc19ecb460 | 2,404 | package com.anchnet.cloud.security_group;
import com.alibaba.fastjson.annotation.JSONField;
import com.anchnet.cloud.utils.CommonHelper;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Created by liangs on 17/3/13.
*/
public class DescribeSecurityGroupRequest {
@JSONField(name = "z... | 25.041667 | 81 | 0.597338 |
cc49b1a1be456b03fb00f82a38731c77f077388b | 6,659 | package hr.fer.zemris.jcms.service2.course.groups;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import hr.fer.zemris.jcms.beans.GroupBean;
import hr.fer.zemris.jcms.beans.ext.BaseUserBean;
import hr.fer.zemris.jcms.dao.DAOHelper;
import hr.fer.zemris.jcms.dao.DAOHelperFactory;
impo... | 36.190217 | 140 | 0.754317 |
0d4444ab4aec7cc9cd80bfef20d3131981225407 | 1,291 | package org.apereo.cas.web.flow;
import org.apereo.cas.authentication.CoreAuthenticationTestUtils;
import org.apereo.cas.web.support.WebUtils;
import org.junit.Test;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpServletResponse;
import org.springframework.mock.... | 41.645161 | 129 | 0.80093 |
003891f94610002c7b0ef5c123bcd2419720db9d | 1,965 | /**
* Android Library for displaying Breadcrumbs Navigation in Material Design - sample app
*
* Copyright (C) 2015-2016 MDXDave
*
* 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 ve... | 33.87931 | 109 | 0.680916 |
45fea3b7c3f59e4b2290e065efaa685cd79b4358 | 5,553 | package com.example.mayankverma.locationexchange;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.util.ArrayMap;
import android.text.TextUtils;
... | 36.774834 | 176 | 0.661084 |
7adcc44e260dc08be2bbbc217cee6605d6ec0e85 | 2,898 | /*
* 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 ... | 37.153846 | 141 | 0.789855 |
75c014dafddbfcef50fe5654577b4efa7db71124 | 1,714 | package jp.co.ctc_g.cic.hackathon.boxers;
import java.util.List;
import java.util.ArrayList;
import org.springframework.stereotype.Controller;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annot... | 32.339623 | 84 | 0.695449 |
0ea0f46e001c8e94abe10cc63d6de5828b02c141 | 602 | package com.rommelrico.designpatterns.proxy;
import com.rommelrico.designpatterns.proxy.interfaces.*;
import com.rommelrico.designpatterns.proxy.models.*;
public class Main {
public static void main(String[] args) {
Bank bank = new ProxyBank();
try {
bank.withdrawMoney("Rommel");
... | 23.153846 | 56 | 0.583056 |
05667e53fbee71f65bb6ee428c7511216bda3e82 | 3,453 | package net.bedra.maciej.springfx;
import java.util.Map;
import java.util.TreeMap;
import org.springframework.util.StringUtils;
import javafx.scene.paint.Paint;
import lombok.extern.slf4j.Slf4j;
import net.bedra.maciej.springfx.exception.ColorsPaletteException;
/**
* Colors provider (collection) for whole applicat... | 30.026087 | 108 | 0.614248 |
1176a5426271d627ee102de4f3e5db08db2dbc74 | 3,217 | package io.rx_cache2.internal.migration;
import org.junit.Test;
import java.util.Arrays;
import io.rx_cache2.internal.Record;
import io.rx_cache2.internal.common.BaseTest;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
public class DeleteRecordMatchingClassNameTest exte... | 31.23301 | 120 | 0.628536 |
6569c3d6de4bbce798ad65b975a734d2d8e3bc7b | 1,233 | package com.semkagtn.musicdatamining.vkapi;
import com.semkagtn.musicdatamining.vkapi.response.AudioSearchResponse;
/**
* Created by semkagtn on 24.02.16.
*/
public class CompositeVkApi {
private static final long CAPTCHA_WAIT = 60_000 * 3;
private long captchaExpires;
private VkApi officialApi;
p... | 33.324324 | 95 | 0.674777 |
b97e828fba247496fadd18b9d4c0795a388ec60b | 7,806 | package org.apache.archiva.xml;
/*
* 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, Ver... | 32.798319 | 99 | 0.615936 |
14b546af6e124c8007a2b612a37afa37ef8b4b32 | 7,489 | /*
* Copyright (C) 2017 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... | 37.258706 | 100 | 0.680198 |
1a498356cefd4a55deb103eb44550d17d9710403 | 2,227 | /*
* Copyright 2015-2016 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 app... | 30.094595 | 109 | 0.752582 |
e480153ae694b745aca9ecb379c572a89bc176fc | 1,135 | package com.kinstalk.satellite.utils;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class CookieUtils {
/* ------------------------- cookie ------------------------- */
public static String getCookie(HttpServletRequest re... | 34.393939 | 113 | 0.608811 |
333b7419d4f04eff9acabb034c57c4d50b2c0fa8 | 12,104 | /*
* This software is released under a licence similar to the Apache Software Licence.
* See org.logicalcobwebs.proxool.package.html for details.
* The latest version is available at http://proxool.sourceforge.net
*/
package org.logicalcobwebs.proxool;
import org.apache.commons.logging.Log;
import org.apache.commo... | 34.982659 | 120 | 0.685558 |
b654439f6e5ef962217bffc02781123ee4464141 | 2,114 | /*
* Copyright (c) 2017 HERE Europe B.V.
*
* 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 ... | 22.489362 | 74 | 0.708136 |
961985a1dd72f33031c38bbe3f2a6fc0fdbe47d4 | 6,898 | package froztigaming.fantasyorigins.blocks.containers;
import froztigaming.fantasyorigins.entities.blocks.HalflingOvenEntity;
import froztigaming.fantasyorigins.init.BlockInit;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.block.*;
import net.minecraft.block.entity.BlockEnt... | 39.417143 | 180 | 0.700493 |
5bee8b44dcb3237fab7954b469f49ef88c010960 | 393 | package com.lcg.basicquartz;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
@SpringBootApplication
public class SimpleQuartzApplication {
public static void main(String[] args) {
new SpringApplicationBuilder(SimpleQua... | 30.230769 | 110 | 0.806616 |
9452bdf77ff187a453cae039dfe2c9bc546721fa | 347 | package com.github.dreamhead.bot;
import com.github.dreamhead.bot.annotation.BotInitializer;
public class FooBotInitializer implements BotInitializer {
@Override
public void initialize(final ObjectBot bot) {
bot.define("defaultData", new Data("foo", "bar"));
bot.define("defaultData2", new Data... | 28.916667 | 61 | 0.706052 |
7be7f7a372214b0ddfc8c97d01983ce0ea870c01 | 463 | package com.hawk.utility.example.singleton;
/**
* 利用静态内部类来实现单例
* @author pzhang1
*
*/
public class CreateSingletonFromStaticInnerClass {
private CreateSingletonFromStaticInnerClass(){
}
private static class SingletonHandler{
public static CreateSingletonFromStaticInnerClass singleton = new CreateSing... | 19.291667 | 106 | 0.792657 |
9aeec3fde27dda954315b0a6c473037ee4881ac0 | 1,047 | package com.example.cyberycon.smartmeter.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
/**
* This Configuration class is primarily metadata to enable IDEs like
* IntelliJ to show application specific properties.
*/
@C... | 20.94 | 75 | 0.660936 |
85118c833f412736b63a2a134e99bcc8492fc798 | 837 | package emails;
import com.google.inject.Inject;
import play.Configuration;
import play.mvc.Controller;
import play.mvc.Result;
import java.io.IOException;
public class EmailConta extends Controller {
private final Configuration configuration;
private final String host;
private final int port;
private ... | 27 | 74 | 0.716846 |
aa7145d0eca3a7a100a1f63967b2542b6691f56a | 780 | package com.squarespace.cldrengine.api;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import lombok.Generated;
import com.squarespace.cldrengine.internal.StringEnum;
@Generated
public enum FieldWidthType implements StringEnum<FieldWidthType> {
ABBREVIATED("abbreviated"),
NARROW("narrow... | 21.081081 | 81 | 0.720513 |
0e6f3b683033f14ba1b92c44cc2c3e43d169376d | 1,472 | package br.edu.ulbra.election.candidate.output.v1;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
@ApiModel(description = "Result Output Information")
public class ResultOutput {
@ApiModelProperty(notes = "Election Information")
private ElectionOutput... | 24.131148 | 76 | 0.762908 |
db7beebcd043f0f73be43a1d252478fa23e3b009 | 618 | package de.fynn.sco.guild.gui.item.items;
import de.fynn.sco.guild.gui.inventory.CustomInventory;
import de.fynn.sco.guild.gui.item.ClickAction;
import de.fynn.sco.guild.gui.item.GUIItem;
import de.fynn.sco.guild.system.messages.MessageManager;
import de.fynn.sco.guild.system.messages.MessageType;
import org.bukkit.Ma... | 34.333333 | 144 | 0.779935 |
f98ab4a7b80d8e7f406a50fd284dccada4bbfa30 | 1,812 | package fi.riista.feature.account.payment;
import fi.riista.feature.organization.person.Person;
import fi.riista.util.DateUtil;
import org.joda.time.LocalDate;
import javax.annotation.Nonnull;
import java.util.Set;
import java.util.TreeSet;
import java.util.stream.Collectors;
public class HuntingPaymentUtil {
pu... | 37.75 | 107 | 0.729029 |
8bd87ff02e30f262717e37b7ca2f8eac28230d78 | 1,678 | package com.hedera.hashgraph.identity.hcs.vc;
import com.google.gson.Gson;
import com.google.gson.TypeAdapter;
import com.google.gson.TypeAdapterFactory;
import com.google.gson.reflect.TypeToken;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonToken;
import com.google.gson.stream.JsonWriter... | 33.56 | 112 | 0.722884 |
c1c12dd571b59ee82917a4382c777ec7acbec25c | 2,444 | package uk.gov.hmcts.dm.service;
import org.apache.commons.io.IOUtils;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.springframework.mock.web.MockMultipartFile;
import org.springframework.test.context.junit4.SpringRunner;
import org.springfr... | 38.793651 | 132 | 0.738953 |
f5bead21de35ec0874c4388c2f106a1d0a35f26f | 563 | import net.runelite.mapping.ObfuscatedName;
@ObfuscatedName("mn")
public class class349 {
@ObfuscatedName("l")
static final char[] field4075;
@ObfuscatedName("m")
static final char[] field4073;
static {
field4075 = new char[]{' ', ' ', '_', '-', 'à', 'á', 'â', 'ä', 'ã', 'À', 'Á', 'Â', 'Ä', 'Ã', 'è', 'é', 'ê', ... | 37.533333 | 298 | 0.431616 |
522c459f80a379646bb59cabe1e8d86f03d910f2 | 5,164 | package io.jeffrey.world.document;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.regex.Pattern;
import io.jeffrey.world.data.Edit;
import io.jeffrey.world.things.cor... | 26.756477 | 97 | 0.567583 |
24306b51acf4d3880d162f5c8eabef0fffabf229 | 403 | /**
*
*/
package org.iipg.hurricane;
/**
* @author lixiaojing
*
*/
public class HurricaneException extends RuntimeException {
/**
*
*/
private static final long serialVersionUID = 1L;
public HurricaneException(String msg, Throwable root) {
super( msg, root );
}
public HurricaneException(Throwable ... | 13.896552 | 58 | 0.674938 |
626a099627b8e9eec0f6626285c6296d27c0c32a | 10,654 | import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Scanner;
import java.util.TreeSet;
/**
*... | 28.036842 | 90 | 0.662568 |
437181a17cf5b1a838d3fe51622d84628b521206 | 649 | package ru.stqa.pfr.addressbook.tests;
import org.testng.annotations.Test;
import ru.stqa.pfr.addressbook.model.ContactData;
public class ContactModification extends TestBase {
@Test
public void testModificationContacts(){
app.getNaviagationHelper().gotoHomePage();
// app.getcontactHelper().sel... | 38.176471 | 161 | 0.716487 |
14bd3a99e0acc31915936ab1d95362d43b44aa48 | 19,469 | /**
* TInfoShop.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package de.epages.ws.shopconfig4.stub;
/**
* shop data output by getInfo and getAllInfo operations
*/
public class TInfoShop implements java.io.Serializable {
/* uniq... | 34.642349 | 128 | 0.626278 |
41d63ca2672beb67a89479b3c0b9cd892f628e96 | 11,729 | /*
* This file is generated by jOOQ.
*/
package storage.entities.information_schema.tables;
import org.jooq.*;
import org.jooq.impl.DSL;
import org.jooq.impl.TableImpl;
import org.jooq.types.ULong;
import storage.entities.information_schema.InformationSchema;
import storage.entities.information_schema.tables.records... | 38.455738 | 237 | 0.686504 |
82ba89a99e545e906113bb8b974520cbba292ca3 | 5,018 | package com.ys.network.utils.androidUtils;
import android.annotation.SuppressLint;
import android.content.Context;
import android.util.Log;
import android.util.TypedValue;
import java.lang.reflect.Method;
public final class NotchScreenUtil {
/**
* 华为start
*/
// 判断是否是华为刘海屏
public static boolean... | 32.797386 | 128 | 0.618175 |
519772b0f5cb9546ab0281673cb84d02328b12f5 | 216 | package de.claudioaltamura.kafka.topic.suggest.model;
import java.util.Set;
import lombok.Data;
@Data
public class KafkaReassignPartitions {
private int version = 1;
private final Set<Partition> partitions;
}
| 18 | 53 | 0.782407 |
b391bd7a906ca27ef4ed2cbba85cd28931aeef6f | 2,457 | /*
* Copyright 2018 Red Hat, Inc. and/or its affiliates.
*
* 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... | 35.608696 | 87 | 0.722426 |
c13092710b748a0b8ef21b08ca412b0fa283caf3 | 14,478 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | 48.912162 | 139 | 0.713427 |
6c8059cca48c9250208df5afa89b0abc51aeb63f | 806 | package mdlaf.components.combobox;
import javax.swing.*;
import javax.swing.plaf.basic.BasicComboBoxRenderer;
import java.awt.*;
public class MaterialComboBoxRenderer extends BasicComboBoxRenderer {
@Override
public Component getListCellRendererComponent (JList list, Object value, int index, boolean isSelected, bo... | 33.583333 | 128 | 0.790323 |
26b72222fa1b3a000c4b130a7095a0d1a660a6db | 400 | package com.github.mohitgoyal91.cosmosdbqueryutils;
/**
* The interface Add restriction interface.
*/
public interface AddRestrictionInterface {
/**
* Add restriction.
*
* @param propertyName the property name
* @param value the value
* @param comparator the comparator
*/
... | 25 | 78 | 0.685 |
b0a26a3d18c2c3f1449d40d019b32815cf54c76a | 599 | package utils;
import java.util.ArrayList;
import java.util.List;
public class MessagesSplitter {
public static List<String> getMaximumPossibleSizeSplittedMessagesList(final String input, int maximumPossibleSize) {
final List<String> messagesList = new ArrayList<>();
for (int i = 0; i < input.len... | 35.235294 | 120 | 0.687813 |
1a442dc46a93a96a43d31b9c16b819e157cdbe4a | 971 | package org.javers.spring.boot.sql;
import org.hibernate.dialect.*;
import org.javers.common.exception.JaversException;
import org.javers.common.exception.JaversExceptionCode;
import org.javers.repository.sql.DialectName;
public class DialectMapper {
public DialectName map(Dialect hibernateDialect) {
if... | 32.366667 | 124 | 0.698249 |
ef78dc0ba1814326f122cfc5d27c3cd8955c9c9b | 1,637 | package bio.terra.workspace.app.controller;
import bio.terra.workspace.app.configuration.external.VersionConfiguration;
import bio.terra.workspace.generated.controller.UnauthenticatedApi;
import bio.terra.workspace.generated.model.ApiSystemVersion;
import bio.terra.workspace.service.status.WorkspaceManagerStatusServic... | 37.204545 | 95 | 0.774588 |
f6aa845ef09eef7652a25898d8d10de6fead5902 | 12,270 | package jetbrains.mps.baseLanguage.editor;
/*Generated by MPS */
import jetbrains.mps.nodeEditor.menus.transformation.TransformationMenuBase;
import java.util.Set;
import jetbrains.mps.internal.collections.runtime.SetSequence;
import java.util.HashSet;
import jetbrains.mps.lang.editor.menus.transformation.MenuLocatio... | 51.125 | 332 | 0.763325 |
a3b5eab3e692651174981b78f538b8a702102a97 | 1,405 | /*
* Copyright 2015 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for details.
*/
package org.robotframework.red.jface.dialogs;
import org.eclipse.e4.ui.css.swt.theme.IThemeEngine;
import org.eclipse.jface.dialogs.PopupDialog;
import org.eclipse.swt.SWT;
im... | 31.931818 | 119 | 0.733808 |
732a2becb8cb88481713e4301a7e99d21ef8a422 | 14,054 | package assignment7;
import edu.princeton.cs.algs4.Picture;
public class SeamCarver {
private static final double BORDER_ENERGY = 1000.0;
private static final int R = 16;
private static final int G = 8;
private static final int B = 0;
private final int[] pic;
private int width, height;
pr... | 40.854651 | 118 | 0.538637 |
bbfdd6b631c52d271b1029f37cd221c7a1bedf0a | 778 | package education.cs.scu.entity.entityData;
import java.io.Serializable;
/**
* @Author lch
* @Create on 2017/09/05 23:49
**/
public class Hour implements Serializable{
private static final long serialVersionUID = -5247104210598820601L;
private Integer hour;
private Integer number;
private Integer ... | 19.45 | 71 | 0.6491 |
0464ebe1059f97777e2921071fa2d09a52be1843 | 352 | package Everest.Framework.Core.Inject;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* Indicates that the decorated target will be a singleton component in DI container.
*
* @author Chendjou
* @version 1
* @since 30-04-2019
*/
@Scope
@Retention(RetentionPolicy.RUNTIME)
... | 22 | 85 | 0.764205 |
993da8daf8a6de6c24984ee15c1c2e5efe027654 | 884 | package controllers;
import java.net.Socket;
import com.ning.http.client.providers.netty.Callback;
import com.ning.http.client.providers.netty.future.NettyResponseFuture;
import actors.PersonnelActor;
import dataAccess.SimpleDataAccessor;
import play.Routes;
import play.mvc.Controller;
import play.mvc.Result;
import... | 24.555556 | 71 | 0.686652 |
9e121207cd08fd8726deaf6b58d82b4147341b9c | 2,725 | package com.graduation.jasonzhu.mymoney.activity;
import android.graphics.Color;
import android.os.Bundle;
import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.... | 32.831325 | 102 | 0.729908 |
abeb7452a3fa9fdb420b652113c837e58a4e9b65 | 5,971 | /*
* Copyright 2006 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... | 34.12 | 131 | 0.697036 |
86fa5cd0cb08454a2eada0226ba92427fa7b8526 | 3,765 | package org.springframework.richclient.widget;
import org.springframework.richclient.util.GuiStandardUtils;
import org.springframework.richclient.util.RcpSupport;
import org.springframework.richclient.dialog.TitlePane;
import org.springframework.richclient.dialog.Messagable;
import org.springframework.richclient.core.... | 26.328671 | 93 | 0.695618 |
0655e2edb990827c33e1b6065b847272bd1f9013 | 2,500 | package seedu.address.ui;
import java.util.logging.Logger;
import javafx.application.Platform;
import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.scene.control.ListCell;
import javafx.scene.control.ListView;
import javafx.scene.layout.Region;
import seedu.address.commons.core.LogsCenter;... | 33.783784 | 105 | 0.6524 |
18f85c6be7db521318104d7510b237ab48e7ae18 | 5,283 | /*
* Copyright 2020 kriolSolutions.
*
* 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... | 41.928571 | 140 | 0.73216 |
bfc88a5a6515a4ed482ddebc65338e0e0aabf314 | 2,001 | package praise.the.sun.weatherapp.mvp.models;
import android.Manifest;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.pm.PackageManager;
import android.location.Location;
import android.location.LocationManager;
import android.provider.Settings;
import android.support.v4... | 28.183099 | 139 | 0.677161 |
8b96ac275049d552e619785ded4ac6a295527dac | 3,228 | /*
* The MIT License (MIT)
*
* Copyright (c) 2014-2016 Christian Schudt
*
* 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 r... | 40.35 | 135 | 0.700434 |
695df8cc4bbfe4002a6f6ae7b7e4e31b2f109851 | 386 | /**
*
* A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding.
*/
package org.bouncycastle.asn1;
/**
* Stream that outputs encoding based on distinguished encoding rules.
*/
public class DEROutputStream extends ASN1OutputStream {
public DEROutputStream(java.io.OutputSt... | 20.315789 | 97 | 0.743523 |
e3230695c1aa92a696bbe75c036619c126fad213 | 4,066 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.01.... | 27.472973 | 193 | 0.61879 |
74a05d962a1d7485e6d5d2e53186c106f706b916 | 5,577 | package com.tg.tgt.http;
/**
*
* @author yiyang
*/
public enum ResponseCode {
//系统级异常信息
NONE(-100, "NONE"),
SUCCESS(0, "SUCCESS"),
//环信api错误
EASEMOB_API_ERROR(-101, "EASEMOB_API_ERROR"),
//图片类型错误
IMAGE_TYPE_UNKNOWN(-102, "IMAGE_TYPE_UNKNOWN"),
//上传图片错误
IMAGE_UPLAOD_FAIL(-103, "I... | 29.507937 | 78 | 0.700735 |
d49cd87b3174ac88914169e1b38c3985e5bdd0f8 | 891 | package com.haowan.ytjhx5;
import android.content.Intent;
import android.graphics.Color;
import android.os.Handler;
import android.util.Log;
import com.quicksdk.QuickSdkSplashActivity;
/**
* Created by Administrator on 2016/11/9.
*/
public class SplashActivity extends QuickSdkSplashActivity {
public static Sp... | 22.275 | 61 | 0.641975 |
ac807c68a1d77c84aa2c5d99ab0354279c796d56 | 1,436 | package main;
import java.util.Scanner;
/**
* @author Tony Liang
*
*/
public class HexToDecimalConversion
{
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
System.out.print("Enter a hex number: ");
String hex = input.nextLine();
try
{
System.out.println("The de... | 20.514286 | 107 | 0.630223 |
1e8eff97e0a7e2a14852b6233371ae1aa626847d | 4,965 | /*
*
* Copyright 2012-2014 Eurocommercial Properties NV
*
*
* 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 req... | 29.909639 | 98 | 0.658207 |
3aac926844f4da831929bb6656cff36aecdc900f | 5,997 | /*
* CTS2 based Terminology Server and Terminology Browser
* Copyright (C) 2014 FH Dortmund: Peter Haas, Robert Muetzner
*
* 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... | 26.892377 | 233 | 0.734701 |
1d683b99f818c87898c9cc849dbfcd9665e91058 | 482 | package net.steel3d.physics;
import java.util.ArrayList;
import java.util.List;
public class Physics {
public List<Rigidbody> objects = new ArrayList<Rigidbody>();
public void update(){
for(int i = 0; i < objects.size(); i++){
objects.get(i).update();
objects.get(i).colliding = false;
for(int j = 0; j... | 21.909091 | 78 | 0.634855 |
501f3c4df06508b623d2302d8d94e0b7bf9a2957 | 274 | package dn.bms3.dao.interfac;
import dn.bms3.model.Product;
import dn.core3.hibernate.generic.interfac.IGenericDao;
public interface IProductDao
extends IGenericDao<Product, Long> {
public boolean existBarCode(String paramString, Long paramLong);
}
| 24.909091 | 69 | 0.751825 |
c7ab86330774981a1c1dd812719c0525966ff644 | 804 | package com.jiedangou.api.sdk.bean.param.req.biz;
import org.nutz.lang.Lang;
/**
* Created by Jianghao on 2017/12/22
*
* @howechiang
*/
public class QueryOrderList {
private Integer pageNumber;
private Integer pageSize;
public Integer getPageNumber() {
return Lang.isEmpty(pageNumber) ? 1 : p... | 20.615385 | 65 | 0.656716 |
6a244d9459d89a04d7ac3260e08e2cb64d8d97e4 | 1,996 | import org.lwjgl.opengl.GL20;
import org.lwjgl.opengl.GL32;
class Shader{
private int program;
public Shader(){
program = GL20.glCreateProgram(); //Get memory location for shader program
if(program == 0){ //If we didn't get proper pointer, show error message and quit
System.err.println("Shader: Error acq... | 28.514286 | 120 | 0.71994 |
b800cbd4a3c7ccd34da766a43c392619806fdb02 | 1,136 | package enums;
import callable.io.Print;
/**
* @author A., Didum
* @date March 21, 2013
* @description Fruits(): type-safe, new style enum definition
*/
public enum Fruits {
Apple(1.06), Banana(1.42), Orange(0.67), Grape(1.44), Pineapple(3.87), Strawberry(1.23);
//instance variables
private double price;
... | 20.285714 | 90 | 0.647007 |
2cc1b51bfd4e3c5d372e046fdea178be0b24b279 | 4,736 | /*
* #%L
* MongoCursorControl.java - mongodb-async-driver - Allanbank Consulting, Inc.
* %%
* Copyright (C) 2011 - 2014 Allanbank Consulting, 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 ... | 36.430769 | 97 | 0.65625 |
60c3ce76cd6f7140a40d39f0cdde8021d829274f | 690 | package com.intellif.lock.zookeeper.config;
/**
* @author inori
* @create 2018-11-22 20:21
*/
public class ZkConfig {
private String root = "/locks";
private int sessionTimeout = 3000;
private String addr = "localhost:2181";
public String getAddr() {
return addr;
}
public void ... | 17.692308 | 55 | 0.613043 |
2be8362d7386a88a713c76edb41a5177877f6309 | 474 | /*
* Copyright (c) 2019 CascadeBot. All rights reserved.
* Licensed under the MIT license.
*/
package org.cascadebot.cascadebot.commandmeta;
import java.util.Set;
public interface ICommandMain extends ICommandExecutable {
Module getModule();
default boolean forceDefault() {
return false;
}
... | 18.96 | 73 | 0.685654 |
ffc07837797e836f4103c512a771ed693a2b1851 | 983 | /*
* Copyright (c) 2008 Dave Ray <daveray@gmail.com>
*
* Created on Oct 25, 2008
*/
package org.jsoar.debugger;
import java.awt.Component;
import javax.swing.JOptionPane;
import org.jsoar.kernel.JSoarVersion;
/** @author ray */
public class AboutDialog {
public static void show(Component parent) {
// Somed... | 28.085714 | 93 | 0.550356 |
6c6e47eb0e842598ed5c276273e33cd0f3448e7c | 434 | package logic.database.effects;
import logic.things.Effect;
import logic.things.Move;
import logic.things.Pokemon;
public class DrainEffect extends Effect {
public DrainEffect() {
super("Drain Effect", 100, true);
}
@Override
public int resolveEffect(Pokemon attacker, Pokemon defender, Move m... | 24.111111 | 100 | 0.711982 |
9fa24a0c6d7e7052983bdb32a38ce416fb12cf58 | 509 | package ro.msg.learning.shop.entities;
import lombok.*;
import javax.persistence.*;
import java.time.LocalDateTime;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table
public class Orderr extends BaseEntity {
@ManyToOne
@JoinColumn(name = "shipped_from ")
private Location shippedFrom;
@ManyTo... | 18.851852 | 40 | 0.726916 |
839ad99c7d649551d33eb85112aee6130851ef81 | 890 | package dk.in2isoft.onlineobjects.modules.networking;
import java.util.Collection;
public class InternetAddressInfo {
private Long id;
private String name;
private String address;
private String description;
private Collection<String> tags;
public InternetAddressInfo() {
}
public void setName(String na... | 15.344828 | 53 | 0.708989 |
85bcf22de517b65bf45a0ffb96816d6c58b4148a | 11,639 | /*
* Copyright 2016 Luca Martino.
*
* 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 copyFile of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 36.832278 | 208 | 0.670848 |
dcf4d0ae0348cc372a7d708931ddeef311c597d7 | 1,117 | package com.st.fox.business.wechat.service;
import com.st.fox.business.wechat.domain.QWechatInfo;
import com.st.fox.business.wechat.domain.WechatInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cach... | 33.848485 | 88 | 0.817368 |
994bb95ed367eed6e0d96b24b28460d2a211e335 | 858 | package com.xiwh.paginator.demo.simplePaging;
import com.xiwh.paginator.annotations.NormalPaginator;
import com.xiwh.paginator.demo.common.ATablePO;
import com.xiwh.paginator.demo.common.BTablePO;
import com.xiwh.paginator.wrappers.PagingRowBounds;
import com.xiwh.paginator.wrappers.SimplePage;
import org.apache.ibati... | 33 | 97 | 0.808858 |
eb40e845e4c922b05c3d7d26d97934bafb6078f7 | 6,050 | /*
* Copyright 2016-2019 Tim Boudreau, Frédéric Yvon Vinet
*
* 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 a... | 28.403756 | 107 | 0.589917 |
90c9cd53a62ab9233ceadc628647d57be7bc28bc | 4,155 | package org.convertertopdf.convert;
import static org.junit.Assert.assertEquals;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import org.apache.commons.io.FileUtils;
import org.convertertopdf.configuration.Configuration;
import org.convertertopdf.convert.implementation.PdfCo... | 30.328467 | 134 | 0.794465 |
26e174e272b33e167648dde6f81cef1d3b097d55 | 9,533 | /*
* Copyright 2015-2102 RonCoo(http://www.roncoo.com) Group.
*
* 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 req... | 34.291367 | 187 | 0.674604 |
1ae63df8010f711e7801e0f03c87df6caf14c5d6 | 686 | package de.fhg.iais.roberta.mode.sensor;
import de.fhg.iais.roberta.inter.mode.sensor.IBrickKey;
public enum BrickKey implements IBrickKey {
ENTER( "ENTER", "2" ), LEFT( "LEFT", "1" ), RIGHT( "RIGHT", "3" ), ANY( "ANY", "123" ), BUTTON_A( "A" ), BUTTON_B( "B" ), UP(), DOWN(), ESCAPE();
private final String[] ... | 26.384615 | 149 | 0.567055 |
64b24e7d6e2330f3696d05ef8394f9addb5db470 | 858 | package dukecooks.testutil.dashboard;
import dukecooks.model.dashboard.DashboardRecords;
import dukecooks.model.dashboard.components.Dashboard;
/**
* A utility class to help with building DashboardRecord objects.
*/
public class DashboardRecordBuilder {
private DashboardRecords dashboardRecord;
public Das... | 26 | 89 | 0.723776 |
66b5642a274050ef714fa5d55eebda7cb2bac04c | 5,977 | /**
* Copyright Notice
*
* This is a work of the U.S. Government and is not subject to copyright
* protection in the United States. Foreign copyrights may apply.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obt... | 51.08547 | 148 | 0.773465 |
505d6bbde6720edafd69e02aaf3db832bc8a7476 | 216 | package com.pictet.technologies.opensource.reactive.r2dbc.todolist.model;
import lombok.Getter;
/**
* PostgreSQL notification topics
*/
@Getter
public enum NotificationTopic {
ITEM_SAVED,
ITEM_DELETED
}
| 15.428571 | 73 | 0.763889 |
de882960ff6744be6c5ecce1e8da2b1faa90cf52 | 598 | /*$Id: $
--------------------------------------
Skybility
---------------------------------------
Copyright By Skybility ,All right Reserved
* author date comment
* chenweijun@skybility.com 2015年10月10日 Created
*/
package com.cwjcsu.projecteuler.p300_400;
/**
* http://blog.dreamshire.c... | 23 | 59 | 0.551839 |
1116b95a2d94f3f9ce3a9a43269b2092be787175 | 3,968 | package io.ous.justconfig;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.verifyNoMoreInteractions;
import static org.mockito.Mockito.when;
import io.ous.concurrent... | 33.344538 | 109 | 0.750756 |
05d753f53dcba1699c77740c2001c26a524d8bed | 1,190 | package com.admin.mapper.entity.sys;
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;
import java.util.Dat... | 18.030303 | 54 | 0.591597 |
d22d67c44168efaf5c76a5c86060c951c26297cb | 9,178 | package xtdb.api.tx;
import clojure.lang.IPersistentVector;
import clojure.lang.Keyword;
import clojure.lang.PersistentVector;
import xtdb.api.XtdbDocument;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import java.util.function.Consumer;
import java.util.stream.C... | 33.49635 | 121 | 0.595337 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.