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 |
|---|---|---|---|---|---|
1f94a1c7c8865e419d559be6a85a57bd836d241c | 71 | public class java{
private String name;
private int age;
}
| 10.142857 | 23 | 0.633803 |
756636a00f1a5f18860cc5951b9869a2455e8acc | 411 | package org.contentmine.norma.sections;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import nu.xom.Element;
public class JATSTitleElement extends JATSElement {
private static final Logger LOG = Logger.getLogger(JATSTitleElement.class);
static {
LOG.setLevel(Level.DEBUG);
}
static final Str... | 17.125 | 76 | 0.756691 |
7ead365ddc5372b1bb4ebb3a7dc1bb9c54230644 | 1,244 | package kr.ync.project.admin.persistence;
import java.util.List;
import javax.inject.Inject;
import org.apache.ibatis.session.SqlSession;
import org.springframework.stereotype.Repository;
import kr.ync.project.admin.domain.CategoryBigVO;
@Repository
public class CategoryBigDAOImpl implements CategoryBi... | 23.471698 | 75 | 0.729904 |
4f482407dc2c3c361783ba396382bde014280798 | 1,225 | package javarepl.console.commands;
import com.googlecode.totallylazy.Option;
import javarepl.Evaluator;
import javarepl.completion.CommandCompleter;
import javarepl.console.ConsoleLogger;
import java.lang.reflect.Type;
import static com.googlecode.totallylazy.Strings.startsWith;
import static javarepl.rendering.Type... | 34.027778 | 161 | 0.73551 |
5f1026d83a4a163ec69ae6e925583e45e8577039 | 8,841 | package model.analyzer;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.Collectors;
import javax.swing.SwingUtilities;
import org.jfree.data.DomainOrder;
import or... | 26.3125 | 107 | 0.685217 |
a1a2df33404fd2569715b2faed3f3bff1c289f70 | 900 | package com.leetcode_restart;
public class SearchIn2DMatrixOptimized {
public boolean searchMatrix(int[][] matrix, int target) {
int maxRow = matrix.length;
int maxCol = matrix[0].length;
int left = 0;
int right = maxRow * maxCol - 1;
while (left <= right) {
i... | 29.032258 | 68 | 0.492222 |
e84a584e8b0a25a2bc8a4ef8536973e7d0a47f91 | 1,783 | package models.bean.specialities;
import application.enums.STATUS;
import java.io.Serializable;
/**
* Created by pkonwar on 7/2/2016.
*/
public class SpecialityBean implements Serializable {
public SpecialityBean() {
}
public SpecialityBean(Long specialityId) {
this.specialityId = specialityI... | 22.012346 | 99 | 0.650028 |
e2f7719c0fb861fbf44f4dbd8c35376ae0f2afd2 | 213 | package ru.sberned.statemachine.state;
/**
* Created by Evgeniya Patuk (jpatuk@gmail.com) on 31/10/2016.
*/
public interface StateChanger<T, E> {
void moveToState(E state, T item, StateChangedInfo info);
}
| 23.666667 | 62 | 0.723005 |
f9e7900e335baed7ae5d2e02816358e0248af2b1 | 6,944 | package proyectofinalmetodos;
import java.util.ArrayList;
import java.util.List;
/**
* PolyEquation
* Clase que simula una ecuación polinomial
* Fecha de creación: 29/10/16
* Fecha de última modificación: 3/11/16
* Autor original: Josué Morales
* Autor de última modificación: Josué Morales
* Descripción de últ... | 30.725664 | 139 | 0.488047 |
827a36c9e6c00c602d2f80321fd42946b1d964c1 | 6,698 | package malte0811.controlengineering.gui.logic;
import com.mojang.blaze3d.vertex.PoseStack;
import malte0811.controlengineering.gui.StackedScreen;
import malte0811.controlengineering.gui.widget.PageSelector;
import malte0811.controlengineering.logic.schematic.client.ClientSymbols;
import malte0811.controlengineering.l... | 39.869048 | 117 | 0.630188 |
fe7d202f14435db4983c28794d5b1b3aa29bde85 | 4,955 | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
package org.elasticsearch.xpack.ml.rest.modelsnapshots;
import org... | 48.106796 | 133 | 0.680121 |
318fffdfbd13287ad2e7f49f5a0e968467c0dd66 | 12,543 | package com.kylin.electricassistsys.entity.project;
import com.kylin.electricassistsys.entity.BaseEntity;
import com.kylin.electricassistsys.entity.enumparam.KeyValueType;
import com.kylin.electricassistsys.utility.FieldMeta;
import com.kylin.electricassistsys.utility.TagType;
import org.hibernate.validator.constrain... | 18.418502 | 142 | 0.573627 |
478c053b9357f2205b26a51a4d09c3c542dba057 | 802 | package com.example.nanchen.aiyaschoolpush.ui.activity;
import android.os.Bundle;
import com.example.nanchen.aiyaschoolpush.R;
import com.example.nanchen.aiyaschoolpush.ui.view.TitleView;
import me.wangyuwei.particleview.ParticleView;
public class AboutActivity extends ActivityBase {
private TitleView mTitleBa... | 27.655172 | 75 | 0.744389 |
8abc7302e7ac86505e23d86efa817ed279ae8c4a | 317 | import java.util.*;
public class conheo {
//public class Main {
public static int sum(int a, int b) {
return a + b;
}
public static void main(String[] args) {
int sum = sum(2,5);
System.out.println(sum);
}
}
| 21.133333 | 49 | 0.44164 |
250a68407fa5542f136fbc455c6d89118f5a217d | 4,920 | // Copyright 2012,2013 Vaughn Vernon
//
// 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... | 30 | 125 | 0.652236 |
72f115e134f1bc8a532d7e4af1b4fe66c0a43b8a | 30,538 | package com.rabbit.gui.component.code.parser;
// Generated from Python3.g4 by ANTLR 4.5.3
import org.antlr.v4.runtime.ParserRuleContext;
import org.antlr.v4.runtime.tree.ErrorNode;
import org.antlr.v4.runtime.tree.TerminalNode;
/**
* This class provides an empty implementation of {@link Python3Listener}, which
* c... | 16.022036 | 83 | 0.636289 |
80a48c4c1b643578eb4f09e32edf532675666fce | 4,110 | /*
Copyright (C) 2002-2004 MySQL AB
This program is free software; you can redistribute it and/or modify
it under the terms of version 2 of the GNU General Public License as
published by the Free Software Foundation.
There are special exceptions to the terms and conditions of the GPL
as it is applied to this ... | 22.336957 | 74 | 0.62944 |
37b5e76cc5ac2cb52a2aafd7929cd1631e998e08 | 131 | /**
* Contains an extensible framework for writing an HttpClient uses within Morpheus.
*/
package com.zavtech.morpheus.util.http; | 32.75 | 83 | 0.778626 |
23394f8fef0d35612cf7caacd1a7846c6b0033f8 | 3,126 | package com.company.Tries;
import com.company.Heap.HeapGeneric;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
public class HuffmanEncoder {
HashMap<Character, String> Encoder;
HashMap<String, Character> Decoder;
public HuffmanEncoder(String feeder) {
// 1. create... | 29.214953 | 68 | 0.504159 |
ec0d11e1c1cd8ae77a3118b615fc81afd4271a4f | 2,893 | // CSD 2013, Pablo Galdámez
import java.rmi.*;
import java.rmi.server.*;
import java.util.*;
//
// Simple ChatChannel implementation
//
public class ChatChannel
extends UnicastRemoteObject
implements IChatChannel
{
public static final String LEAVE = "LEAVE";
public static final String JOIN = "JOIN";
... | 25.830357 | 93 | 0.614587 |
984f1d0f35c96e451765ade74bece67755002ca9 | 3,433 | /*
* Copyright © 2014 Cask Data, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 38.573034 | 113 | 0.707836 |
bb4b28068a47578a2e09f9957db295262ce83d88 | 2,249 | /*
* 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 Model;
import javax.swing.JOptionPane;
/**
*
* @author EDUARDO
*/
public class Matricula {
private int id;
... | 24.445652 | 86 | 0.633615 |
af94974766223b91ee275c9febfcc965cf0651d6 | 1,072 | /**
*
*/
package br.javamagazine.learning.lambda.pojo;
import java.math.BigDecimal;
/**
* Represents a gamer through a gameplay
*
* @author dinhego
*
*/
public class Gamer {
private final String name;
private final BigDecimal healthPercentage;
/**
* Creates a single user of the videogame
*
* @param... | 17.015873 | 52 | 0.662313 |
68c6a1127b65069d5be6fc65408c216b460e3dfc | 713 | package cloud.javacoder.bbcnewsgems.dictionary;
import lombok.Data;
import java.util.Objects;
/*
* Represents word data
*/
@Data
public class DictionaryEntry {
private int rank;
private String word;
private String partOfSpeech;
private int frequency;
private float dispersion;
@Override
... | 21.606061 | 66 | 0.646564 |
1460bf0a5f5cdaa7442b44253ce38f71575b070a | 7,836 | /*
* $Id: JSONValue.java,v 1.1 2006/04/15 14:37:04 platform Exp $
* Created on 2006-4-15
*/
package org.json.alt.simple;
import java.io.IOException;
import java.io.Reader;
import java.io.StringReader;
import java.io.StringWriter;
import java.io.Writer;
import java.util.Collection;
// import java.util.List;
import j... | 25.196141 | 88 | 0.637315 |
6e279764ca9ff2495d4bb04dd14f7b9354eb1afe | 2,304 | package br.com.economize.bean;
/**
* @author Mateus Henrique Tofanello
*
*/
import java.io.IOException;
import java.io.Serializable;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.context.ExternalContext;
import javax.faces.conte... | 25.6 | 109 | 0.771701 |
de4d328ca36abef87232a3618a451b2e931eb051 | 5,222 | /*
* Copyright Strimzi authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
package io.strimzi.api.kafka.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotati... | 37.568345 | 204 | 0.751628 |
1c3e38c1dd33a450f5764c6529babcd0add26088 | 482 | package greencity.security.service;
import greencity.security.dto.SuccessSignInDto;
/**
* Provides the google social logic.
*
* @author Nazar Stasyuk && Yurii Koval
* @version 1.0
*/
public interface GoogleSecurityService {
/**
* Method that allow you authenticate with google idToken.
*
* @pa... | 22.952381 | 62 | 0.695021 |
f133ed6704acffc8c8447f1c6a2c790e7da55d03 | 16,199 | /*******************************************************************************
*
* Copyright FUJITSU LIMITED 2016
* ... | 41.429668 | 94 | 0.657757 |
59fa2935243e871baa358fd0ee616f4c23cab22f | 1,631 | package unl.cse.lists;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;
public class EqualsDemo {
public static void main(String args[]) {
ArrayList<UserClassA> listA = new ArrayList<UserClassA>();
ArrayList<UserClassB> listB = new ArrayList<UserClassB>();
UserCla... | 27.183333 | 74 | 0.656652 |
e4e07dcb16b9fa42c74d3b09367a1738164b46d2 | 391 | package com.app.phedev.popmovie.sync;
import android.app.IntentService;
import android.content.Intent;
/**
* Created by phedev in 2017.
*/
public class MovieIntentService extends IntentService {
public MovieIntentService(){
super("MovieIntentService");
}
@Override
protected void onHandle... | 17.772727 | 55 | 0.705882 |
97fdd5e7f156a6f3926ded483b266f4d207b74ce | 722 | package net.osomahe.pulsarsourceapp.zip.boundary;
import net.osomahe.pulsarsourceapp.message.boundary.MessageService;
import net.osomahe.pulsarsourceapp.zip.control.ZipService;
import net.osomahe.pulsarsourceapp.zip.entity.ZipInfo;
import javax.inject.Inject;
import javax.validation.Valid;
import javax.ws.rs.Consumes... | 25.785714 | 67 | 0.760388 |
5ee378cfa4b29e2f84c3a60ae1c6d9ff660aa2cc | 1,037 | package org.wyw.lanplay.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swa... | 23.044444 | 71 | 0.75217 |
661c72f3f7bdd54c5e3a613aaf96a47a4a0571f1 | 1,974 | package com.eilikce.osm.shop.controller;
import java.util.List;
import javax.servlet.http.HttpSession;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotati... | 29.029412 | 91 | 0.765957 |
838bd182b0ade93c20c08be189051b5e9d902c18 | 2,679 | package org.bouncycastle.gpg.keybox;
import java.security.Security;
import java.util.Arrays;
import junit.framework.TestCase;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import org.bouncycastle.util.test.SimpleTest;
public class KeyBoxByteBufferTest
extends SimpleTest
{
public static void mai... | 21.094488 | 67 | 0.535274 |
cce346379ea760e6b670bb04381b2ce41d748bce | 1,145 | /*
* Copyright 2010
*
* 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, soft... | 30.131579 | 80 | 0.750218 |
263c5d9ce949410206c400982d2b0f55aefbcc6e | 2,134 | package G45502.Pentago.view;
/**
* Cette classe permet l'écriture d'un texte coloré 4/11/2104 - Ajout d'un main
* - MCD
*/
public class Color {
/**
* Méthode de couleur default du BASH.
*
* @return La couleur default.
*/
private static String toDefault() {
return "\033[0m";
... | 21.77551 | 79 | 0.53702 |
4ce7a5b16ec099c79240679748e99b9b7c0b6bd4 | 709 | package io.github.rbxapi.javablox.api.accountsettings.tradesettings;
/**
* https://accountsettings.roblox.com/docs#/TradeSettings
*/
public interface TradeValue {
/**
* Get a user's trade quality filter setting
* https://accountsettings.roblox.com/docs#!/TradeSettings/get_v1_trade_value
*
* @... | 25.321429 | 82 | 0.610719 |
b95ef679bc5ddad719a72e09ac565807b3254377 | 486 | package com.cldt.provider;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
... | 24.3 | 75 | 0.777778 |
10735d88fa981d5501c8c9c414fa54449218b63f | 220 | package com.github.gpor0.jooreo;
import org.jooq.DSLContext;
import org.jooq.TableRecord;
/**
* Author: gpor0
*/
public interface JooreoInsertFilter {
<T extends TableRecord> int filter(DSLContext dsl, T r);
}
| 15.714286 | 60 | 0.731818 |
b50c995509af97c65180c43b5dad8212e81e8702 | 3,547 | package com.analytics.google.pjcyber.googleanalyticsmanyevents;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.... | 33.462264 | 175 | 0.563575 |
3393e0dc909c06bc3e3f8929efbf7fe45df72104 | 2,484 | package be.sel2.api.controller_tests;
import be.sel2.api.AbstractTest;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.http.MediaType;
import org.springframework.mock.web.MockMultipartFile;
import org.springframework.test.web.servlet.MvcResult;
import org.springfr... | 36.529412 | 109 | 0.702093 |
5e6b17248b2c339be7a0f823b03d9ff4520f4ddd | 2,742 | /*******************************************************************************
* Copyright (c) 2004 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is availabl... | 30.131868 | 128 | 0.706783 |
cb62a6ea8247894fac49a3c519cd4dbb2a31c857 | 2,915 | package com.company.crm.service;
import com.company.crm.CrmService;
import com.company.crm.model.Customer;
import com.company.crm.model.CustomerDTO;
import com.company.crm.service.impl.CustomerServiceImpl;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
... | 32.388889 | 91 | 0.729674 |
c1f68709754f2543f0d5645e25c2b2b8fc3a0818 | 1,423 | package com.interview.codechef.ccdsap_2.leetcode.design;
import java.util.Stack;
public class QueueUsingStacks {
//https://leetcode.com/problems/implement-queue-using-stacks/
Stack<Integer> stack;
public QueueUsingStacks() {
stack = new Stack<>();
}
//Below solution works fine, one more... | 23.327869 | 117 | 0.581167 |
038340425577c5695ac52a9c3654267106526bea | 2,346 | /*
* 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 ... | 35.014925 | 75 | 0.698636 |
94a2acb6695f85653e5b686c786ad3cb0d773447 | 16,321 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * Copyright (C) 2008 The Guava 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://... | 14.716862 | 608 | 0.804424 |
c8b6b5648653d61585aeed002d54de030a061062 | 139 | /**
* A mini application/framework to dynamically generate/update files based on a list of endpoints
*/
package net.dean.jraw.endpoints;
| 27.8 | 97 | 0.769784 |
bd1ffec0c215c7a272d90c0f1b1c837a2df4d211 | 493 | package cn.com.bugmanager.develop.model;
/**
* Created by threegrand2 on 15-6-18.
*/
public class RolePermission {
private String roleName;
private String permToken;
public String getRoleName() {
return roleName;
}
public void setRoleName(String roleName) {
this.roleName = roleN... | 18.961538 | 48 | 0.647059 |
696058ddc5224bc17231ae0a6ef52e84258f8443 | 2,884 | /**
* 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... | 39.506849 | 111 | 0.634882 |
b0dbb26aa12e2b283827c9a0d81a180decc95abc | 4,787 | /*
* 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 ... | 39.237705 | 98 | 0.756215 |
34d78aa5105ddfec3085af5ce533b8afbbbb547d | 12,282 | package me.isaiah.mods.permissions.commands;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CompletableFuture;
import java.util.function.Predicate;
import com.mojang.brigadier.CommandDispatcher;
import com.mojang.brigadier.arguments.StringArgumentType;
impor... | 45.657993 | 161 | 0.492265 |
5d3499f58de6ae5c95fb3335ed07eb9d96c87d76 | 1,804 | package com.ean.client.v3.domain;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonRootName;
/**
* Contains the hotel itinera... | 25.771429 | 112 | 0.681818 |
60d9194ff63013bc6d0e82ed2bfbdf380088cd54 | 345 | package com.gigamole.sample;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class MirrorButton extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate( savedInstanceState );
setContentView( R.layout.activity_... | 24.642857 | 58 | 0.756522 |
313a624a15c3e3af6ab66ea995ef7c6c9de1c6d5 | 1,468 | /*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.javaagent.instrumentation.api;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.ServiceLoader;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public cl... | 35.804878 | 99 | 0.723433 |
92150c46a01af5757f587f8d209ea9f02388c283 | 1,286 | package edu.hm.cs.fs.app.presenter;
import android.support.annotation.NonNull;
import java.util.List;
import edu.hm.cs.fs.app.database.ICallback;
import edu.hm.cs.fs.app.database.FsModel;
import edu.hm.cs.fs.app.database.ModelFactory;
import edu.hm.cs.fs.app.view.IFsNewsView;
import edu.hm.cs.fs.common.model.News;
... | 25.215686 | 74 | 0.601089 |
1644879a08d6243bad26d8f70780fb836a73fe29 | 2,437 | package com.tencent.smtt.export.external.interfaces;
import com.knziha.polymer.browser.webkit.WebResourceResponseCompat;
import com.knziha.polymer.widgets.Utils;
import java.io.InputStream;
import java.util.Map;
public class WebResourceResponse {
private String mMimeType;
private String mEncoding;
private i... | 27.077778 | 159 | 0.724661 |
d5c3ad507d4c4a757649f97abc3f33e00f04cde0 | 3,648 | package mmm.comercial.centro.model;
import java.util.List;
import javax.annotation.Resource;
import javax.sql.DataSource;
import org.springframework.dao.EmptyResultDataAccessException;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import mmm.comercial.centro.mo... | 28.724409 | 134 | 0.717379 |
369a6d4de9a98da28348de1eaceedd5e7e2a5139 | 7,793 | package knowledge.consumer;
import org.hamcrest.Description;
import org.jmock.Expectations;
import org.jmock.Mockery;
import org.jmock.api.Action;
import org.jmock.api.Invocation;
import org.jmock.lib.legacy.ClassImposteriser;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import ... | 32.069959 | 91 | 0.743744 |
2f4fa75e15f60939d9d0c623b2a10d7cad431b61 | 303 | package org.usfirst.frc.team3339.robot.triggers;
import org.usfirst.frc.team3339.robot.OI;
import edu.wpi.first.wpilibj.buttons.Trigger;
/**
*
*/
public class TriggerChangeCollectHeightModeUp extends Trigger {
@Override
public boolean get() {
return OI.operatorController.GetPOV_Right();
}
}
| 17.823529 | 63 | 0.765677 |
9b386d286ef27a34e5b8d6f84ace2a2f10ad1ae4 | 221 | public class Main {
public static void main(String[] args) {
// observable
GlobalVariables g1 = new GlobalVariables(1);
// observer
Window1 w1 = new Window1("test window 1", g1);
g1.addObserver(w1);
}
}
| 18.416667 | 48 | 0.660633 |
2696a0806e52da45b046068d5b147d3c82525a0b | 17,117 | /*
* Copyright (C) 2018 Seoul National University
*
* 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... | 44.002571 | 113 | 0.693287 |
d162a67e48e436705365f683236d3bec582ca10b | 16,939 | /*
* Copyright 2000-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 31.310536 | 109 | 0.741366 |
fc09ae7adcb95438c2a38f0e6a10b25709067f5c | 896 | package com.virtual.lab.mapper;
import com.virtual.lab.pojo.RoleFunctionExample;
import com.virtual.lab.pojo.RoleFunctionKey;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface RoleFunctionMapper {
int countByExample(RoleFunctionExample example);
int deleteByExample... | 33.185185 | 122 | 0.773438 |
22d62c2dc98c1d97bf712cd4544da21565dd1ab8 | 11,457 | package org.sagacity.sqltoy.configure;
import static java.lang.System.err;
import java.util.ArrayList;
import java.util.List;
import org.sagacity.sqltoy.SqlToyContext;
import org.sagacity.sqltoy.config.model.ElasticEndpoint;
import org.sagacity.sqltoy.dao.SqlToyLazyDao;
import org.sagacity.sqltoy.dao.impl.SqlToyLazy... | 36.839228 | 118 | 0.751942 |
cb43645b09f1b6efaa975acb816572e5f5dddcf5 | 1,794 | package robson.games.tictactoe.game.ai.rules;
import org.junit.Assert;
import org.junit.Test;
import robson.games.tictactoe.model.Field;
import robson.games.tictactoe.model.Path;
import robson.games.tictactoe.model.Player;
import java.util.ArrayList;
import java.util.List;
public class DestroySomeoneElseVictoryTest ... | 27.181818 | 104 | 0.641583 |
9680dc8b979ddee748affea96035e504240350a1 | 169 | package com.minimal.mapper.back;
import com.minimal.entity.model.Menu;
import tk.mybatis.mapper.common.Mapper;
public interface BackMenuMapper extends Mapper<Menu> {
} | 24.142857 | 54 | 0.810651 |
7d2f6964ff649d414ee1e2533a553c68702bfc76 | 7,997 | /*
* Copyright 2009-2020 Exactpro (Exactpro Systems Limited)
*
* 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... | 37.544601 | 137 | 0.659622 |
74f99fa5e0ec1800bf44ba172aa3e874e84c2fc4 | 1,228 | /*
* Copyright (c) 2015 Oracle and/or its affiliates. All rights reserved. This
* code is released under a tri EPL/GPL/LGPL license. You can use it,
* redistribute it and/or modify it under the terms of the:
*
* Eclipse Public License version 1.0
* GNU General Public License version 2
* GNU Lesser General Public... | 31.487179 | 89 | 0.693811 |
711da4e4b5f9edf9706b17ac261d18588d65965b | 3,544 | /*
* MoonPhasesPreference.java
*
* TKWeek (c) Thomas Künneth 2016 - 2021
* Alle Rechte beim Autoren. All rights reserved.
*/
package com.thomaskuenneth.tkweek.preference;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.prefe... | 39.377778 | 103 | 0.727144 |
f89c9cf510adbe4a343f519ffc02505a75839524 | 10,495 | package org.bouncycastle.pqc.crypto.rainbow;
import javax.security.SecureRandom;
import org.bouncycastle.pqc.crypto.rainbow.util.GF2Field;
import org.bouncycastle.pqc.crypto.rainbow.util.RainbowUtil;
import org.bouncycastle.util.Arrays;
/**
* This class represents a layer of the Rainbow Oil- and Vinegar Map. Each ... | 32.49226 | 84 | 0.537589 |
725bd2bb9339062cde63287c9b33534dcf6f2e53 | 8,388 | package org.corfudb.integration;
import static org.assertj.core.api.Assertions.assertThat;
import java.io.File;
import java.util.Arrays;
import java.util.Collections;
import lombok.extern.slf4j.Slf4j;
import org.junit.Before;
import org.junit.Test;
/**
* This suite of tests verifies the behavior of log replication... | 35.542373 | 122 | 0.599905 |
10032a29d1b48e60bdc3a134f025b2334a4fac23 | 5,646 | /*
* 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.390728 | 100 | 0.716259 |
9467424c1ac18533ee8ef93a89bf01ccf698e765 | 2,301 | /**
* netcell-gui - A Swing GUI for netcell ESB
* Copyright (C) 2009 Adrian Cristian Ionescu - https://github.com/acionescu
*
* 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
*
* ... | 36.52381 | 90 | 0.777488 |
ae69160be035ea8ee75fe0e620c9824b81cb725d | 422 | package com.github.base.widget.status.core;
import android.content.Context;
import android.view.View;
/**
* @ClassName: Transport
* @Description: java类作用描述
* @Author: crazyandcoder
* @email: lijiwork@sina.com
* @CreateDate: 2020/6/27 4:13 PM
* @UpdateUser: 更新者
* @UpdateDate: 2020/6/27 4:13 PM
* @UpdateRemark:... | 21.1 | 43 | 0.706161 |
4f61e94f1d60f0480e6b852bf27d064ceddd3ef8 | 1,495 | package camelinaction;
import java.util.concurrent.ExecutorService;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.builder.ThreadPoolBuilder;
import org.apache.camel.test.junit4.CamelTestSupport;
import org.junit.Test;
/**
* Demonstrates how to use a custom thread pool with the WireTap EIP pa... | 31.808511 | 77 | 0.610702 |
3da35c13201d8ccad8501e1eb795ec7c34b88b53 | 999 | package annotationInteraction;
import java.awt.font.TextLayout;
import java.awt.geom.Rectangle2D;
import java.util.List;
public class SonnetWordPairs {
private int sonnet_id;
private List<WordPair> antonyms;
//private List<WordPair> synonyms;
private Rectangle2D sonnet_id_bounds;
private TextLay... | 16.377049 | 65 | 0.686687 |
ddb839292eebc2c0cd9f96cfaa434614367e6c60 | 721 | package net.shiruba.tinkerforge.weatherstation.listener;
import com.tinkerforge.BrickletBarometer;
import net.shiruba.tinkerforge.weatherstation.data.AirPressureMeasurement;
import net.shiruba.tinkerforge.weatherstation.data.AirPressureMeasurementRepository;
import org.springframework.beans.factory.annotation.Autowire... | 36.05 | 87 | 0.84466 |
9dca5ecf8845a0934e07397eca53a8d878a91364 | 1,368 | /*
* 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 ... | 35.076923 | 76 | 0.746345 |
98ae30b5564a6e5ffea97593b221ed035d7d4906 | 685 | package in.cubestack.lib.event.core;
import in.cubestack.lib.event.handler.EventHandler;
import org.springframework.stereotype.Component;
@Component
public class EventExtractionHelper {
public Class<? extends Event> getEventsManagedBy(EventHandler eventHandler) {
Class eventHandlerClass = eventHandler.ge... | 34.25 | 113 | 0.750365 |
f6156408e3bb55ec2954334670ecd0eca92a20bc | 596 | package de.thb.paf.scrabblefactory.models.assets;
/**
* Enumeration of all supported asset file types.
*
* @author Dominic Schiller - Technische Hochschule Brandenburg
* @version 1.0
* @since 1.0
*/
public enum AssetFileType {
JSON(".json"),
XML(".xml"),
TEXTURE_ATLAS(".atlas"),
TRUE_TYPE_FONT("... | 19.866667 | 63 | 0.637584 |
d8c70431ffd71f9e2ccf74199ed19f324007a0f8 | 4,307 | package mod.azure.doom.recipes;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.apache.commons.lang3.tuple.Pair;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
import com.google.gson.JsonElement;
import com.google.gson.JsonObjec... | 34.733871 | 107 | 0.726956 |
7ec7ba4d9cd4f36c86c93719f7da2d86dbfac3cf | 16,130 | package main.java.model;
import java.awt.*;
import java.time.LocalTime;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
/**
* Uses the minimax algorithm with alpha-beta pruning and a heuristic to determine the best available move for the AI.
*
* @author tp275
*/
public class AI... | 40.835443 | 150 | 0.512709 |
9dbadd248c56b885f113dc37533e8fe167945f50 | 2,507 | package com.jmall.util;
import com.jmall.common.RedisCluster;
import lombok.extern.slf4j.Slf4j;
import redis.clients.jedis.JedisCluster;
@Slf4j
public class RedisClusterUtil {
public static String set(String key,String value) {
JedisCluster jedisCluster = null;
String result = null;
try {... | 28.168539 | 81 | 0.588751 |
cc0725c2ae1321d1d471efa9f06d1a314fe6a20b | 701 | package org.accounting.system.repositories.metric;
import org.accounting.system.entities.Metric;
import org.accounting.system.repositories.modulators.AccessControlModulator;
import org.accounting.system.repositories.modulators.AccessEntityModulator;
import org.bson.types.ObjectId;
import javax.enterprise.context.Appl... | 31.863636 | 91 | 0.831669 |
5f0acf1191282e4901210ae6d436c93d33c79401 | 3,294 | package com.github.ormfux.common.utils.object.testequalsbuilder;
import org.junit.Test;
import com.github.ormfux.common.utils.object.EqualsBuilder;
public class ConstructorTest extends AbstractEqualsBuilderTest {
@Test
public void testInheritanceRelation() {
MockType1 mock = new MockTy... | 32.613861 | 70 | 0.586217 |
0ffc0d5ca0825d3f9b2b857f164538ff00a4c70f | 1,274 | package com.golike.myapplication.customviews.hencoder;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.view.View;
/**
* Created by admin on 2018/2/6.
*/
public class PropetyAnimationView extends View {
Pai... | 25.48 | 91 | 0.632653 |
6949622484307e1849d5641280e4dc4303bbdbcd | 188 | package org.snomed.authoringtemplate.domain.logical;
public interface HasCardinality {
void setCardinalityMin(String cardinalityMin);
void setCardinalityMax(String cardinalityMax);
}
| 20.888889 | 52 | 0.835106 |
f4e6d3b9a93330ecdcc06994a4c4079ca5a67a12 | 3,604 | /* Copyright 2016 Urban Airship and Contributors */
package com.urbanairship.push.notifications;
import android.content.Context;
import android.graphics.BitmapFactory;
import android.support.annotation.ColorInt;
import android.support.annotation.DrawableRes;
import android.support.annotation.NonNull;
import android.s... | 32.178571 | 110 | 0.675361 |
1b7c9580521d9c06d2114d5abf8e66ccfe9a4285 | 2,747 | package covid.vaccine.openapi;
import java.io.IOException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import org.jsoup.Jsoup;
import org.jsoup.Connection.Method;
import org.jsoup.Connection.Response;
/**
* https://www.data.go.kr/data/15078166/openapi.do GET Vaccinated Stats by use
* OpenAP... | 31.574713 | 104 | 0.560248 |
71759928efa8d7684f6913364ac2b16e69a7babb | 653 | package io;
public class ConsoleIO implements IO {
@Override
public void print(String l) {
System.out.print(l);
}
public int readInt() {
return Console.readInt("Saisissez un entier :");
}
public boolean readBool() {
int i;
do {
i = Console.readInt(... | 22.517241 | 86 | 0.562021 |
ceaf45fc2f53bbee50cbdfccc23c0492c5e8b66e | 3,094 | package com.zeus.tool.cogen.design;
import java.util.List;
import com.zeus.persist.annotation.Table;
import com.zeus.persist.util.MapUtil;
import com.zeus.tool.cogen.annotation.HibernateSupport;
import com.zeus.tool.cogen.annotation.JDBCSupport;
import com.zeus.tool.cogen.annotation.MarkDelete;
import com.ze... | 35.159091 | 105 | 0.740142 |
d9da5f0c1685bca9e92bce3433d729c40402065d | 348 | package com.gtc.opportunity.trader.repository.stat.general;
import com.gtc.opportunity.trader.domain.stat.general.XoTradeStatTotal;
import org.springframework.stereotype.Repository;
/**
* Created by Valentyn Berezin on 26.02.18.
*/
@Repository
public interface XoTradeStatTotalRepository extends BaseXoTradeStatRepos... | 29 | 97 | 0.827586 |
e9ab039d09f2cd8f0d3f482da98efcad3e338683 | 34,846 | /*******************************************************************************
* This program and the accompanying materials are made available under the terms of the MIT License available at
* https://opensource.org/licenses/MIT
*******************************************************************************/
pac... | 38.461369 | 261 | 0.729266 |
0e1e07398527bbcee99c6bf4512fa791c70ad0f5 | 1,877 | package zjp.translateit.web.Interceptor;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.test.context.TestPr... | 42.659091 | 92 | 0.722962 |
44c7d3cfb088d46190760b451e7ac51cf94aa784 | 2,988 | /*
* Copyright (C) 2014 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.35 | 92 | 0.685408 |
fb006944368d2b45e4ba86873f02ec15b727081e | 782 | package de.j13g.manko.util;
import java.io.Serializable;
import java.util.Objects;
public class Pair<A, B> implements Serializable {
protected final A first;
protected final B second;
public Pair(A first, B second) {
this.first = first;
this.second = second;
}
public A getFirst(... | 20.051282 | 72 | 0.575448 |
d6f1f0fa90093845414c6142d0c882c5441c6380 | 2,731 | package cn.edu.hhu.reg.activity;
import java.util.ArrayList;
import cn.edu.hhu.reg.R;
import cn.edu.hhu.reg.adapter.DepartmentListViewAdapter;
import cn.edu.hhu.reg.api.ApiClient;
import cn.edu.hhu.reg.api.ResponseUtils;
import cn.edu.hhu.reg.api.SimpleResponse;
import cn.edu.hhu.reg.common.CustomProgressDialog;
impo... | 30.685393 | 111 | 0.741487 |
ea01b8a1a6faa9dd654825ce4a50842c4a643033 | 9,014 |
package controladores;
import beans.Informe_Final;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRespon... | 37.558333 | 123 | 0.534502 |
cd2ad333e76b13e8e31e1c89a4a2e699354ca8dc | 356 | package com.google.android.play.core.common;
import android.content.Intent;
import android.content.IntentSender;
import android.os.Bundle;
public interface IntentSenderForResultStarter {
void startIntentSenderForResult(IntentSender intentSender, int i, Intent intent, int i2, int i3, int i4, Bundle bundle) throws ... | 35.6 | 164 | 0.823034 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.