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 |
|---|---|---|---|---|---|
65f80f2006d2cc9c95330695be0cc47b23c545db | 3,725 | package gov.uk.courtdata.laastatus.service;
import gov.uk.courtdata.entity.WqCoreEntity;
import gov.uk.courtdata.enums.JobStatus;
import gov.uk.courtdata.enums.WQStatus;
import gov.uk.courtdata.exception.MAATCourtDataException;
import gov.uk.courtdata.model.CpJobStatus;
import gov.uk.courtdata.repository.WqCoreReposit... | 33.558559 | 118 | 0.695034 |
882a47e64a8719d9e79b0720336da48b2c934a05 | 110 | package com.richard.statemachine;
public enum Event {
SUBMIT,
PAYMENT_RECEIVED,
PAYMENT_FAILED
}
| 13.75 | 33 | 0.727273 |
031d29270e739cb661a3a855aae94a5e86f90704 | 2,362 | import org.checkerframework.checker.interning.qual.*;
import java.util.*;
public class StringIntern {
// It would be very handy (and would eliminate quite a few annotations)
// if any final variable that is initialized to something interned
// (essentially, to a literal) were treated as implicitly @Inter... | 35.253731 | 82 | 0.602879 |
271c1263b01e9182581947944aa21b30429a2554 | 420 | package de.exxcellent.challenge.readers;
import java.util.List;
/**
* Reader for JSON files.
*/
public class ReaderJSON implements Reader {
private String filePath;
public ReaderJSON(String filePath) {
this.filePath = filePath;
}
@Override
public List<String[]> read() {
//TODO:... | 20 | 85 | 0.661905 |
9bc1cc26368521937b343c109b39d60d0462ac4d | 2,049 | package org.firstinspires.ftc.teamcode;
/*
Main class of Operation where we set up the max time for each operation and all the other operations
come from this class
*/
public class Operation {
protected RoverRobot robot;
public long timeoutMS=9999;
public long startMS=System.currentTimeMillis();
public... | 28.458333 | 100 | 0.586628 |
76651884924f879028f5965faca9da16c27ff9e6 | 2,316 | /*
* Copyright 2015-present Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 37.354839 | 81 | 0.689119 |
b454acb4e13136da245db29373e64f5dbcc2a22b | 1,575 | package ru.unatco.rss.adapters;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import java.util.List;
import butterknife.Bind;
import butterknife.ButterKnife;
import ru.unatco.rss.R;
import ru.unatco.rss.... | 23.507463 | 79 | 0.645714 |
71d9a69072eef8eecab0ca20387d9d7ec21a6322 | 1,788 | package dcraft.db.util;
public class UtilitiesAdapter {
/* TODO rethink
protected DatabaseManager db = null;
protected DatabaseInterface conn = null;
protected DatabaseTask task = null;
// TODO protected TenantManager dm = null; replace this with a very simple concept of TM, used in indexing only
protected Tabl... | 28.83871 | 148 | 0.690157 |
5238a58613a8db3c835c1f360ddc51e2e4e179ca | 1,687 | package finalExamPrep.archive;
import java.util.*;
import java.util.stream.Collectors;
public class P03EnduranceRally {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String[] names = scan.nextLine().split(" ");
Map<String, Double> participants = new Linked... | 34.428571 | 93 | 0.489627 |
296740e901e96334fa477f17e90ae150766201b8 | 2,621 | package com.pivotal.resilient;
import java.math.BigDecimal;
import java.text.DecimalFormat;
public class Trade {
long id;
long accountId;
String asset;
long amount;
boolean buy;
long timestamp;
BigDecimal price;
private static DecimalFormat priceFormat = new DecimalFormat("##.00");
... | 23.612613 | 90 | 0.575734 |
173fe567655729b7680a39fafb33dddba5e536d1 | 1,095 | /*package seedu.address.logic.commands;
import static seedu.address.logic.commands.CommandTestUtil.assertCommandSuccess;
import static seedu.address.logic.commands.ExitCommand.MESSAGE_EXIT_ACKNOWLEDGEMENT;
import static seedu.address.logic.commands.NoteCommand.MESSAGE_VIEW_SUCCESS;
import static seedu.address.logic.pa... | 37.758621 | 112 | 0.779909 |
342ffffea21303b6f13599de704194814d1e246b | 814 | package com.pisces.core.primary.expression.calculate;
import java.util.Map.Entry;
import com.pisces.core.entity.EntityObject;
import com.pisces.core.primary.expression.Expression;
import com.pisces.core.primary.expression.ExpressionNode;
public class BracketCalculate implements Calculate {
private Expressi... | 24.666667 | 78 | 0.711302 |
e5b007aca420d2aa7d9c36d768fbe6323cc08880 | 162 | boolean b = true;
for(backend.unit.Unit unit: team.getOwnedUnits(gameState.getGrid())){
b = (unit.getMovePoints().getCurrentValue().intValue() == 0);
}
return b; | 32.4 | 69 | 0.716049 |
b0952125ab5cdf5fb2b2ef93962356a790f300ac | 27,950 | /*
* Copyright 2018 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 applica... | 40.390173 | 100 | 0.54068 |
d90793fb3c7dce1bdfe73738c077c1a9aadf5d42 | 1,586 | /*
*/
package de.friedrichs.malteser.data.entity;
import org.junit.Test;
import static org.junit.Assert.*;
/**
*
* @author AFR
*/
public class FahrgastTest {
public FahrgastTest() {
}
@Test
public void testGetAnschrift() {
System.out.println("getAnschrift");
Fahrgast... | 24.4 | 55 | 0.540984 |
d6525878981f11aeea2788f6491a7a074ba6c73c | 810 | package com.GH.king;
import org.springframework.stereotype.Component;
import javax.servlet.*;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
* Created by alex on 2016/1/25.
*/
@Component
public class CrosConfig implements Filter {
@Override
public void doFilter(ServletReques... | 27.931034 | 82 | 0.704938 |
16800409e30d321fde2b6fd9e6b58933e2e72692 | 4,378 | package com.iboxapp.ibox.adapter;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.wi... | 32.42963 | 106 | 0.662631 |
190d9b28283db2fa239888e6ee02bb0af16624d3 | 546 | package com.github.ayltai.newspaper.view;
import javax.annotation.Nonnull;
import android.app.Activity;
import androidx.annotation.NonNull;
import dagger.Module;
import dagger.Provides;
@Module
public final class RouterModule {
@Nonnull
@NonNull
private final Activity activity;
public RouterModule... | 18.827586 | 84 | 0.714286 |
9ad7f24f86e6a10e9f065894134accb8326dcf1f | 18,628 | /*
* Copyright (c) 1997-2018 Oracle and/or its affiliates. All rights reserved.
* Copyright 2004 The Apache Software 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
*
* ... | 34.753731 | 101 | 0.5707 |
3b0333b7f3f05265eef9f1912a88234301276095 | 5,429 | package com.dada.android;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.os.Environment;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.B... | 32.508982 | 141 | 0.581691 |
9a10c59ea8ab40f7f885f7c72356ca8284a1e753 | 600 | package com.xiao.jvm.classLoader;
/**
* @author Malone Xiao
* @ClassName TestSon.java
* @Description
* @createTime 2021年05月25日 23:39:00
*/
public class TestSon {
public static void main(String[] args) {
Father father = new Son();
father.print();
}
}
class Father {
int i= 10;
Fathe... | 16.216216 | 44 | 0.533333 |
c2cd6f24ccb977c8d626d5a9ea8f84c9416a7e1a | 1,747 | /*
* Copyright (c) 2018-present PowerFlows.org - 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 r... | 23.608108 | 75 | 0.661133 |
bda65ce75c6d380a0c59a1c0f4f5f8ed5c130e63 | 14,714 | package in.elango.tamillearning;
import android.app.Activity;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Color;
import android.graphics.Typeface;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.os.Handler;
import android.util.DisplayMetric... | 23.392687 | 116 | 0.668547 |
9a1cb93f90409921a55e9ff6f6904d6794a3bb32 | 15,200 | package no.ks.eventstore2.eventstore;
import akka.ConfigurationException;
import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import akka.actor.Props;
import akka.actor.UntypedActor;
import akka.cluster.Cluster;
import akka.cluster.ClusterEvent;
import akka.cluster.singleton.ClusterSingletonManager;
import akka... | 47.648903 | 237 | 0.620855 |
418b82fdeaa21c582146312ad18b48de0e8c4551 | 8,747 | /*
* Copyright (C) 2011 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... | 31.577617 | 95 | 0.640905 |
e0a89732497f773a2b1e0481b4b6b79f13a3dea0 | 1,501 | // Copyright 2007 The Apache Software 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 l... | 39.5 | 120 | 0.727515 |
2c1024cfc23683f151d30209d0558821fba9d14a | 1,182 | /*
* This file is generated by jOOQ.
*/
package de.warhog.fpvlaptracker.jooq.tables.pojos;
import java.io.Serializable;
import javax.annotation.Generated;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.11.11"
},
comments = "Thi... | 19.064516 | 60 | 0.594755 |
24179f9fdb3c607af2587fdf22124ad482cb5e8d | 83,867 | // ===============================================================================
// Authors: AFRL/RQQA
// Organization: Air Force Research Laboratory, Aerospace Systems Directorate, Power and Control Division
//
// Copyright (c) 2017 Government of the United State of America, as represented by
// the Secretary of th... | 46.463712 | 162 | 0.458369 |
682ba0d29a32d917fa4912899d808c0ad2e80ac2 | 2,357 | /*
* Copyright (c) 2008-2013 Haulmont. All rights reserved.
* Use is subject to license terms, see http://www.cuba-platform.com/license for details.
*/
package com.haulmont.cuba.gui.components.actions;
import com.haulmont.cuba.gui.ComponentVisitor;
import com.haulmont.cuba.gui.ComponentsHelper;
import com.h... | 35.712121 | 101 | 0.649979 |
696e035df89722b7f4b95bd61cfe344a5f6d1037 | 958 | package org.assimbly.gateway.service;
import org.assimbly.gateway.service.dto.QueueDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.Optional;
/**
* Service Interface for managing {@link org.assimbly.gateway.domain.Queue}.
*/
public interface Queue... | 20.826087 | 76 | 0.624217 |
2a9736b158e4454eb7d7aa1137057c513bded9b6 | 2,568 | package org.drools.task;
import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.io.Serializable;
import java.util.Collections;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Embeddable;
import j... | 33.789474 | 141 | 0.650701 |
dfeaf9b6d593ffb4dc964a9815206d653061a3d2 | 3,459 | /*
* 文件名称: WPPageListItem.java
*
* 编译器: android2.2
* 时间: 上午10:24:57
*/
package com.wxiwei.office.wp.control;
import com.wxiwei.office.common.ICustomDialog;
import com.wxiwei.office.constant.EventConstant;
import com.wxiwei.office.fc.pdf.PDFHyperlinkInfo;
import com.wxiwei.office... | 25.065217 | 98 | 0.627349 |
4cd2dd0a4ee16996c544f6d21faa666663c8d6d8 | 21,680 | /*
* Copyright (c) 2008-2013, Matthias Mann
*
* 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... | 26.998755 | 80 | 0.686485 |
1b4ff67a976a281bf4950bdcc3e4c54783182426 | 2,301 | import static java.lang.Math.pow;
import java.util.Arrays;
import io.jenetics.Genotype;
import io.jenetics.Mutator;
import io.jenetics.engine.Codec;
import io.jenetics.engine.Engine;
import io.jenetics.engine.EvolutionResult;
import io.jenetics.ext.SingleNodeCrossover;
import io.jenetics.ext.util.Tree;
import io.jene... | 23.242424 | 61 | 0.662321 |
a93bf70d43906f215b030ab150f6723765f1f1ed | 2,778 | package org.smartrplace.contest.app.profiletaker;
import org.ogema.core.application.ApplicationManager;
import org.ogema.core.logging.OgemaLogger;
import org.ogema.core.resourcemanager.AccessPriority;
import org.ogema.core.resourcemanager.pattern.ResourcePatternAccess;
import org.smartrplace.contest.app.profiletaker.... | 38.583333 | 178 | 0.784377 |
1a833a4d8206924e5604848b97dc8a2816e9c66a | 126 | package com.cloudata.structured;
public interface Listener<V> {
public boolean next(V value);
public void done();
}
| 15.75 | 33 | 0.706349 |
6c3b89cf9d831406efc7e7fc49e399679c81420b | 978 | package org.basex.query.func.index;
import static org.basex.util.Token.*;
import org.basex.data.*;
import org.basex.index.*;
import org.basex.index.query.*;
import org.basex.query.*;
import org.basex.query.iter.*;
import org.basex.query.value.*;
/**
* Function implementation.
*
* @author BaseX Team 2005-20, BSD L... | 24.45 | 80 | 0.706544 |
95ed4f7e72a6482015936b02fff4c4f8000cfe08 | 15,822 | package com.github.masonm.wiremock;
import com.fasterxml.jackson.databind.JsonNode;
import com.github.tomakehurst.wiremock.WireMockServer;
import com.github.tomakehurst.wiremock.common.Json;
import com.github.tomakehurst.wiremock.testsupport.WireMockResponse;
import com.github.tomakehurst.wiremock.testsupport.WireMock... | 53.09396 | 114 | 0.336051 |
3ed6895ec8dd28876670891824ed6b94f08c9b74 | 1,564 | package edu.cs4730.VideoCap;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.util.Log;
public class VideoCapture extends Activity implements OnClickListener {
boolean recor... | 30.666667 | 129 | 0.743606 |
402c15b21ff5114d1a57d03269171784de6e7e34 | 111 | package com.example.bookstore;
import android.app.Activity;
public class QueryDataBase extends Activity{
}
| 13.875 | 45 | 0.801802 |
200e48f1d357cd8068101258b99d3b3a5fae725e | 1,422 | package org.vaadin.erik;
import com.vaadin.flow.component.Component;
import com.vaadin.flow.component.UI;
import com.vaadin.flow.server.VaadinSession;
/**
* @author erik@vaadin.com
* @since 24/01/2020
*/
public class SecurityService {
private static final String USER_ATTRIBUTE = "SecurityService.User";
p... | 27.346154 | 80 | 0.660338 |
f63a1a33f33f303bcf0bab4e5e1cb0f7bcf4bee1 | 358 | package zhushen.com.shejimoshi.leetcode;
/**
* Created by Zhushen on 2018/9/11.
*/
public class titleToNumber {
public int titleToNumber(String s) {
int result = 0;
for (int i = 0; i <s.length() ; i++) {
int x = s.charAt(i) - 'A' + 1;
result*=26;
result+=x;
... | 21.058824 | 46 | 0.505587 |
045e04f7d01d3ae78611c44c7d55d0ea71567160 | 307 | package org.apache.poi.ss.usermodel.charts;
public enum AxisOrientation {
MAX_MIN("MAX_MIN", 0),
MIN_MAX("MIN_MAX", 1);
// $FF: synthetic field
private static final AxisOrientation[] $VALUES = new AxisOrientation[]{MAX_MIN, MIN_MAX};
private AxisOrientation(String var1, int var2) {}
}
| 20.466667 | 92 | 0.70684 |
6c033292050a83b9f786c095f52fa093da3c6e68 | 1,039 | // Driver code for LP4, part f
// Do not rename this file or move it away from cs6301/g??
// Change following line to your group number. Make no other changes.
package cs6301.g26;
import cs6301.g00.Graph;
import cs6301.g00.Graph.Vertex;
public class LP4f {
static int VERBOSE = 0;
public static void main(Stri... | 31.484848 | 74 | 0.674687 |
4d9d9fc9472223ce2a51a6c116e56988f2ce0276 | 3,061 | package volume;
import bijnum.*;
import ij.*;
/**
* Plugin containing methods to equalize imageas and volumes.
* It is mainly useful to correct vignetting, i.e. anisotropic nonlinear illumination differences over the retinal image.
*
* Copyright (c) 1999-2003, Michael Abramoff. All rights reserved.
* @author: Mich... | 38.2625 | 121 | 0.682457 |
6b5a1f1d443e85f7eaaf6f97affd20b9e0c3a8ca | 495 | package com.example.demo.utils;
import org.elasticsearch.client.transport.TransportClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.Resource;
/**
* @Author: fwb
* @Date: 2019/2/27 17:09
*/
public class EsTest {
private static Logger LOG = LoggerFactory.getLogger(EsTes... | 20.625 | 70 | 0.715152 |
316534b54b101161529a88e7e7b3cfc33206c066 | 1,256 | /**
* Project Name:aescContract
* File Name:TyhtServiceImpl.java
* Package Name:com.aesc.service.impl
* Date:2017年8月17日上午9:59:38
* Copyright (c) 2017, smolky7@gmail.com All Rights Reserved.
*
*/
package com.aesc.service.impl;
import java.util.List;
import javax.annotation.Resource;
import jav... | 20.258065 | 63 | 0.687102 |
356e8a32b5cbe9d8047efcea2f9c1729efde95b2 | 1,642 |
package com.netsuite.webservices.platform.common.types;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for LandedCostSource.
*
* <p>The following schema fragment specifies the expected content contained withi... | 28.310345 | 108 | 0.683922 |
df6b10e7b0f2335602489cf02678c212ef2c34e9 | 1,866 | package net.gvsun.gswork.vo.courseInfo;
import java.io.Serializable;
/**************************************************************************
* Description: 文档VO
*
* @author:lixueteng
* @date:2018/2/6 0006
**************************************************************************/
public class DocumentVO impl... | 19.851064 | 76 | 0.555198 |
f83346272063c5a922cdb543a5c454f646747c11 | 1,038 | package com.jianma.yxyp.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.transact... | 22.085106 | 64 | 0.793834 |
769c56eb6b995a4b5f56802425a85eb13334b138 | 6,723 | /*
* Copyright 2008 Marc Boorshtein
*
* 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 ... | 32.478261 | 96 | 0.784025 |
8e3206dc5f861e2171f938dc00db96c842d1da92 | 2,954 | /*
* Copyright 2014-16 Skynav, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and... | 31.763441 | 114 | 0.675355 |
ed5bf162fa212bf378fdd1c816fded006245d8e0 | 12,134 | package com.xiaoaiai.PagesBeans.AccostBeans;
import com.lazy.annotations.Android;
import com.lazy.annotations.Description;
import com.lazy.bean.BaseBean;
import com.lazy.controls.ImageView;
import com.lazy.controls.TextView;
import macaca.client.MacacaClient;
public class ChartBean extends BaseBean {
@Android... | 36.881459 | 210 | 0.718477 |
4de21efb3ce7a6f36f8fe8fdd92608280088f898 | 4,742 | /*
* 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 u... | 80.372881 | 204 | 0.866723 |
85861507f09bb2a3190aef6fe4d31921366273f6 | 1,305 | package cloud.lemonslice.afterthedrizzle.helper;
public final class ColorHelper
{
public static int getRed(int color)
{
return color >> 16 & 255;
}
public static int getGreen(int color)
{
return color >> 8 & 255;
}
public static int getBlue(int color)
{
return ... | 24.166667 | 88 | 0.590038 |
3d58c335ccef6f2cf2de1fdf8726b11b56d8001f | 2,258 | package org.hswebframework.web.organizational.authorization.simple;
import com.alibaba.fastjson.JSON;
import org.hswebframework.web.bean.BeanFactory;
import org.hswebframework.web.bean.FastBeanCopier;
import org.hswebframework.web.organizational.authorization.*;
import org.hswebframework.web.organizational.authorizati... | 39.614035 | 100 | 0.627547 |
1a749536cb57fe7b8e2e71e95772d05c391f4f7a | 8,628 |
// ConfigurationList.java --
//
// ConfigurationList.java is part of ElectricCommander.
//
// Copyright (c) 2005-2012 Electric Cloud, Inc.
// All rights reserved.
//
package ecplugins.xen.client;
import java.util.HashMap;
import java.util.Map;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.g... | 35.506173 | 96 | 0.551808 |
f8de7ac38bb8f29a5aa32667d366c9c704482821 | 587 | package com.stevesun.solutions;
/** Given an unsorted array nums, reorder it in-place such that nums[0] <= nums[1] >= nums[2] <= nums[3]....
For example, given nums = [3, 5, 2, 1, 6, 4], one possible answer is [1, 6, 2, 5, 3, 4]*/
public class _280 {
public void wiggleSort(int[] nums) {
for(int i = 1; i < ... | 32.611111 | 108 | 0.507666 |
b627bda5e6c157845a65bbdee52e26a0217eb3d5 | 613 | package ru.job4j.ioc;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* Created by gavrikov.a on 31/08/2017.
*/
public class ImportUserTest {
@Test
public void whenUserAddInStructureThenStructureHasS... | 30.65 | 94 | 0.738989 |
38df0a24a753a20a00ec898df32077458ddaf598 | 3,479 | /*
* Copyright 2021, TeamDev. 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
*
* Redistribution and use in source... | 37.408602 | 96 | 0.669158 |
5070587f0ba1187a4295fe2964dffa1ec44d4b39 | 317 | package com.a6raywa1cher.imageprocessingspring.util;
import javafx.scene.canvas.Canvas;
public class ResizableCanvas extends Canvas {
@Override
public boolean isResizable() {
return true;
}
@Override
public void resize(double width, double height) {
this.setWidth(width);
this.setHeight(height);
}
}
| 16.684211 | 52 | 0.757098 |
39890248209efbf12bbb55294c0ae864f6505e6f | 143 | package com.neandroid.preferences;
public interface PreferencesConfig {
String SHARED_PREFS_NAME = "com.android.calendar_preferences";
}
| 20.428571 | 66 | 0.804196 |
15b2ff77b26764d6023cdcfd6bd47682a7a36ed2 | 856 | package state.action.movement;
import state.agent.AgentUtils;
import state.agent.IAgent;
/**
* Allows an agent to move straight to a specified target agent.
* @author Jorge Raad
* @author David Miron
*/
public class MoveStraightToAgent extends MovementAction {
IAgent baseAgent;
public MoveStraightToAgent... | 29.517241 | 112 | 0.700935 |
7683ab8108a82dab383179675232c6f61e578ab7 | 1,993 | /*
* Copyright 2015 herd contributors
*
* 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 ... | 32.145161 | 106 | 0.718013 |
c1c3b08ac92e0ef9930b4b667713c6524489abdc | 12,647 | /*
* Copyright (C) 2016-2020 Marco Collovati (mcollovati@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 ... | 31.460199 | 117 | 0.626315 |
f7c1a85f4109b9f492c1b352e81888b5723e90aa | 12,803 | /*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | 34.790761 | 137 | 0.617902 |
d2886db198fe96bab51b0481e6cd7ac98ac60d7a | 1,532 | package it.sorint.welearnbe.repository.entity;
import java.util.List;
import java.util.UUID;
import org.springframework.data.mongodb.core.mapping.Document;
@Document(collection="projects")
public class ProjectBE {
private UUID id;
private String name;
private UUID previousProjectID;
private int version;
List<St... | 23.569231 | 96 | 0.745431 |
b4480ee4b676c26797dfebaeb7df11642f80bf07 | 422 | package app.datamodel.pojos.enums;
public enum StorablePojoState
{
INIT, /* The MongoDB driver has created the POJO class and it is filling its fields */
IGNORED, /* Ignored (detached) POJO. Modifications will not be registered and saved */
UNTRACKED, /* Newly created POJO, still not saved */
STAGED, /* POJO con... | 38.363636 | 88 | 0.739336 |
4f4bdc3a0a0d8ad987ec98a7c86618d562bb061c | 218 | package p;
/**
* Packet 14 Request Window serverbound
*
* @author sn
*
*/
public class Packet14 extends Packet {
@PacketField
private final int id = 14;
@PacketField
private String spatialID;
}
| 14.533333 | 40 | 0.655963 |
ae63e0e66f856ec1dfa6c6e17d6256f5f9baf74b | 976 | package com.hl.module_shoppingcart.model.bean;
import com.hl.anotation.NotProguard;
import com.hl.base_module.adapter.BaseMulDataModel;
@NotProguard
public class GettedGiftItemBean extends BaseMulDataModel {
private int id;
private String name;
private String price;
private int number;
private Str... | 18.074074 | 58 | 0.607582 |
02b061e6b9f78c15b8d1183efde107c48b518722 | 4,159 | package sample.http;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import common.data.JsonObject;
import common.TextUtil;
import core.http.HttpMethod;
import core.http.HttpRequest;
import core.http.HttpResponse;
import core.http.HttpUrl;
import core.http.IWeb... | 24.609467 | 94 | 0.675162 |
af5c94b0fdb751f85e2e58fe98a70ac82bd4fea0 | 539 | package com.spring.model.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.spring.model.dao.DepartmentDao;
import com.spring.model.service.DepartmentService;
@Service("departmentServiceImpl")
public class Dep... | 22.458333 | 65 | 0.801484 |
5716419f8a87f90d264442f9950344c9855643ba | 1,898 | package zener.zcomm.gui.zcomm_nr;
import io.github.cottonmc.cotton.gui.networking.NetworkSide;
import io.github.cottonmc.cotton.gui.networking.ScreenNetworking;
import io.github.cottonmc.cotton.gui.widget.WTextField;
import net.minecraft.entity.player.PlayerInventory;
import net.minecraft.item.ItemStack;
import... | 32.169492 | 150 | 0.64647 |
8a66e5e3fac68134f739ea52f6917ff12b7dad46 | 2,691 | package org.radargun.util;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* @author Matej Cimbora
*/
public class MapReduceTraitRepository extends CoreTraitRepository {
public static Map<Class<?>, Obje... | 24.916667 | 92 | 0.613527 |
f5f55f1db90de7b2b60576d407184686622a9295 | 4,537 | package io.github.pramcharan.wd.binary.downloader.download;
import io.github.pramcharan.wd.binary.downloader.domain.OsEnvironment;
import io.github.pramcharan.wd.binary.downloader.domain.URLLookup;
import io.github.pramcharan.wd.binary.downloader.enums.TargetArch;
import io.github.pramcharan.wd.binary.downloader.enums... | 35.724409 | 156 | 0.689442 |
456ff635fe98534af496ce9e3e6b4566f0d254d3 | 12,849 | package uk.gov.hmcts.ccd.domain.service.search.elasticsearch;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Nested;
import org.junit.ju... | 44.926573 | 120 | 0.662075 |
7ef96905143d7f70821829c1edf051c89b1d6b82 | 455 | package main.sqlipa.ast.expr;
import main.sqlipa.ast.Block;
public abstract class InExpr extends Expression {
public enum Operator {
IN,
NOT_IN
}
public Operator operator;
public Expression expr;
public InExpr() {
super();
}
public InExpr(Block ... | 17.5 | 68 | 0.591209 |
392302c1f2c8dbf05dbd98af63e25ca0e3e993f3 | 4,135 | package seedu.tinner.model.reminder;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.tinner.testutil.Assert.assertThrows;
import static seedu.tinner.testutil.TypicalRe... | 37.93578 | 99 | 0.691173 |
46ea9072d40e1b7dd93820aeef75c2a9bb2e5752 | 1,546 | package Stream;
import java.util.Arrays;
import java.util.Optional;
import java.util.function.Function;
import java.util.stream.Stream;
public class TestOptionalStream3 {
public static void main(String[] args) {
test1();
}
public static void test1() {
OptionalFlatMap.test("Add brackets",... | 26.655172 | 63 | 0.472833 |
df2f7450b108265c5855697f8f42319a784dcb27 | 2,907 | package com.vansuita.gaussianblur.sample.act;
import android.os.Bundle;
import android.support.design.widget.TabLayout;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.AppCompatSeekBar;
import android.support.v7.widget.Toolbar;
import android.... | 31.945055 | 121 | 0.729962 |
4779f54d798dac3d76b8a9852e4b894db82ca693 | 2,062 | package com.quickblox.sample.pushnotifications.activities;
import android.os.Bundle;
import android.view.View;
import com.quickblox.auth.QBAuth;
import com.quickblox.auth.model.QBSession;
import com.quickblox.core.QBEntityCallback;
import com.quickblox.core.exception.QBResponseException;
import com.quickblox.sample.c... | 32.730159 | 109 | 0.663434 |
3dc444c7e22c9ba64ffb35c5a73894cd8ce5ccc7 | 1,191 |
/*Authors:Sourlantzis Dimitrios , AEM:9868, Phone number:6955757756 - 6948703383, e-mail:sourland@ece.auth.gr
* Sidiropoulos Evripidis, AEM:9679, Phone number:6971947855, e-mail:evripids@ece.auth.gr
*/
public class Trap {
private int id;
private int x;
private int y;
private String type;
private int point... | 15.075949 | 109 | 0.609572 |
62fd4f971db1a1b9f4c57a0266aed3270ecf5eea | 38,204 | /*
* Copyright (c) 2019, Oracle and/or its affiliates. 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... | 33.163194 | 79 | 0.625406 |
8f919efbaa6e5c618402b2bbf3b9f8ef480a6b12 | 721 | package com.kiwigrid.k8s.helm.tasks;
import java.io.File;
import com.kiwigrid.k8s.helm.HelmPlugin;
import org.gradle.api.tasks.OutputDirectory;
import org.gradle.api.tasks.OutputFile;
import org.gradle.api.tasks.OutputFiles;
import org.gradle.api.tasks.TaskAction;
/**
* created on 28.03.18.
*
* @author Jörg Eichh... | 24.862069 | 72 | 0.750347 |
cbd4ca9e75379078fab72d0a7a7bd76dd9924510 | 3,207 | /*
* Copyright (c) 2018, ITINordic
* 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... | 32.07 | 99 | 0.692548 |
a454fd5c0bdf0efb1fa6201f52a73b077abf9a69 | 613 | package org.maxur.ddd.service;
import org.maxur.ddd.domain.User;
import org.skife.jdbi.v2.sqlobject.Bind;
import org.skife.jdbi.v2.sqlobject.BindBean;
import org.skife.jdbi.v2.sqlobject.SqlQuery;
import org.skife.jdbi.v2.sqlobject.SqlUpdate;
import java.util.List;
/**
* @author myunusov
* @version 1.0
* @since <p... | 19.15625 | 52 | 0.714519 |
6d7a32d0597412bd48974dd25215861d7027d499 | 39,071 | package com.telecominfraproject.wlan.alarm;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.uti... | 56.136494 | 225 | 0.714648 |
d90c16e999ff85a463c4010063bd7bd7825c15b4 | 1,962 | package com.italankin.lnch.model.repository.store.json;
import com.italankin.lnch.model.descriptor.Descriptor;
import com.italankin.lnch.model.descriptor.impl.AppDescriptor;
import com.italankin.lnch.model.descriptor.impl.DeepShortcutDescriptor;
import com.italankin.lnch.model.descriptor.impl.GroupDescriptor;
import c... | 47.853659 | 91 | 0.77421 |
e4e4e3e8440ddbc1cc8aafc02584f1b2225d3408 | 351 | package swt6.spring.bl;
import sun.rmi.runtime.Log;
import swt6.spring.domain.Employee;
import swt6.spring.domain.Issue;
import swt6.spring.domain.LogbookEntry;
import java.util.List;
public interface LogbookEntryManager extends BaseManager<LogbookEntry, Long> {
List<LogbookEntry> findAllByEmployeeAndIssue(Empl... | 27 | 81 | 0.811966 |
9050427b600ae46dee1522c1a389a50e4e4ad54d | 349 | package org.albianj.mvc.service;
import org.albianj.mvc.config.AlbianHttpConfigurtion;
import org.albianj.service.IAlbianService;
/**
* Created by xuhaifeng on 16/12/6.
*/
public interface IAlbianMVCConfigurtionService extends IAlbianService {
String Name ="AlbianMvcConfigurtionService";
AlbianHttpConfigurt... | 26.846154 | 71 | 0.802292 |
8a8f3f9dfff6abcbe33920cc57a70d8ef54f9fde | 17,797 | /**
* Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose eith... | 35.665331 | 246 | 0.600719 |
11247b9c819cfb4241c8cccf910c1fbbe552fca1 | 6,149 | package com.github.rschmitt.dynamicobject.internal;
import com.github.rschmitt.dynamicobject.Cached;
import com.github.rschmitt.dynamicobject.DynamicObject;
import com.github.rschmitt.dynamicobject.Key;
import com.github.rschmitt.dynamicobject.Meta;
import com.github.rschmitt.dynamicobject.Required;
import java.lang.... | 37.266667 | 150 | 0.649699 |
8bc6eb6e80da08249955b19eecbc14542291e588 | 15,444 | package com.intuit.service.dsl.evaluator;
import static com.github.tomakehurst.wiremock.client.WireMock.aResponse;
import static com.github.tomakehurst.wiremock.client.WireMock.absent;
import static com.github.tomakehurst.wiremock.client.WireMock.equalTo;
import static com.github.tomakehurst.wiremock.client.WireMock.e... | 42.662983 | 124 | 0.723582 |
c46ffcd25caab2ea37ae003f52ff1d8f050f0331 | 2,206 | package cz.cuni.mff.xrg.odalic.api.rdf.values;
import java.util.Set;
import com.complexible.pinto.annotations.RdfProperty;
import com.complexible.pinto.annotations.RdfsClass;
import com.google.common.collect.ImmutableSet;
import cz.cuni.mff.xrg.odalic.api.rdf.values.util.Annotations;
import cz.cuni.mff.xrg.odalic.ta... | 28.282051 | 98 | 0.740707 |
259ca73060478742e317ed374c8d6c5d4940a58f | 4,965 | package seedu.weme.logic.commands.memecommand;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.weme.logic.commands.CommandTestUtil.assertCommandFailure;
import static seedu.weme.logic.commands.CommandTestUtil.assertCommandSucces... | 41.033058 | 111 | 0.765156 |
a6d70e69cd7e66319f027d7484df0ce86075020e | 7,483 | package com.skeqi.mes.pojo.chenj.srm.rsp;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* @author ChenJ
* @date 2021/7/1
* @Classname CSrmSendCommodityH
* @Description ${Description}
*/
/**
* 送货单头表
*/
@ApiModel(value = "com-skeqi-pojo-chenj-CSrmSendCommodityH")
p... | 23.23913 | 88 | 0.601898 |
3c37162209974f24b9fe21e5dc2728d1e84a1fbd | 5,844 | package edu.cmu.oli.content.boundary.managers;
import com.google.gson.Gson;
import com.google.gson.JsonElement;
import com.google.gson.JsonPrimitive;
import edu.cmu.oli.content.AppUtils;
import edu.cmu.oli.content.ResourceException;
import edu.cmu.oli.content.controllers.LockController;
import edu.cmu.oli.content.logg... | 41.446809 | 115 | 0.680185 |
2dec230caa1ce8f9558cebccafe3df7d6baee885 | 5,596 | package weixin;
import com.alibaba.fastjson.JSONObject;
import org.apache.log4j.Logger;
import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSocketFactory;
import javax.net.ssl.TrustManager;
import java.io.*;
import java.net.ConnectException;
import java.net.HttpURLConnect... | 31.615819 | 98 | 0.604718 |
7d1e95e6daef8cac629f4847b82ade97bc1f71ee | 8,650 | package com.mridang.computer;
import android.app.NotificationManager;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.support.v4.app.NotificationC... | 29.725086 | 112 | 0.721156 |
74f48f5c88e07cddf19a0a49887d7f0593008263 | 4,816 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/** * 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 license... | 15.192429 | 814 | 0.775748 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.