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 |
|---|---|---|---|---|---|
f7f6db7db0436aabe2bf39c81131b60a7bb9f00d | 7,647 | /*
* 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 games.rockola.musa.controlador;
import com.google.gson.Gson;
import java.lang.reflect.Type;
import com.google.gson.reflect.Typ... | 34.138393 | 120 | 0.587812 |
d59e7fed26978a444c23048b6ec06d59ebe5d971 | 373 | package james.gustavo.helloworldrestrepositories;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class HelloworldrestrepositoriesApplication {
public static void main(String[] args) {
SpringApplication.run(Hello... | 26.642857 | 75 | 0.849866 |
d7e3edb2c0d79044ab2b0c3e0c680841e87d0fc7 | 1,806 | package com.bber.company.android.service;
import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;
import android.util.Log;
import com.bber.company.android.constants.Constants;
import com.bber.company.android.tools.SharedPreferencesUtils;
import com.bber.company.... | 26.558824 | 90 | 0.645072 |
1054f58f4dbfe0d8e352edcf65fc165cdcfc2be0 | 20,948 | //
// ========================================================================
// 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... | 41.563492 | 149 | 0.595379 |
e314c09e6f5f078331d2f40b064b6158b55bd39c | 421 | /**
* Server-side support for testing Spring MVC applications with {@code MockMvc}
* and the Selenium {@code HtmlUnitDriver}.
* @see org.springframework.test.web.servlet.MockMvc
* @see org.openqa.selenium.htmlunit.HtmlUnitDriver
*/
@NonNullApi
@NonNullFields
package org.springframework.test.web.servlet.htmlunit.we... | 32.384615 | 79 | 0.800475 |
5c16bd169e16cea3e8f9f18ef44fa49917c1dc2c | 728 | package com.supinfo.supsms.client.dto;
public class Contact {
private Long _ID;
private String DNAME;
private String EMAIL;
private String PNUM;
public Long get_ID() {
return _ID;
}
public void set_ID(Long _ID) {
this._ID = _ID;
}
public String g... | 17.333333 | 41 | 0.537088 |
87487052cbd59296b10c5de50625c6bf33223612 | 720 | package com.wxm.pt.dao;
import com.wxm.pt.entity.Student;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* @author... | 34.285714 | 133 | 0.7875 |
86c521b9eefdbf87c319b7a20940c0f4f363aebc | 1,071 | package dbAccess;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import resources.LoanAccount;
public class LoanAccountDao {
public static int saveAccount(LoanAccount newAccount) {
int status = 0;
try {
Connection con = DB.getConnection();
PreparedStatemen... | 29.75 | 169 | 0.711485 |
55663c65ee848ea86d05c340a5c7473300474f8f | 135 | package co.uk.rushorm.android.testobjects;
/**
* Created by Stuart on 21/01/15.
*/
public class MyClass {
public String name;
}
| 15 | 42 | 0.688889 |
6033683cc6e0d7c0d1ff1bc2946400d5d997ea78 | 498 | package com.example.springsourcedemo.bean.test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
/**
* @ClassName BeanTest
* @Description TODO
* @Author chenzl
* @Date 2020/9/25 15:31
*/
public class BeanTest {
public static void main(String[] args) {
AnnotationConfigApplicat... | 27.666667 | 98 | 0.7751 |
e9cd259f9be26dd1c7a395147c5911871f42feb2 | 2,702 | public class Cell {
// Square objects drawn on screen, can contain occupants, and are the basis of
// interaction
int gridX, gridY;
Grid pGrid;
int bgc;
// determines bgc of square
Occupant occupant;
int terrainType;
Cell(Grid gridP, int gx, int gy) {
gridX = gx;
gridY = gy;
this.pGrid = gridP;
o... | 27.02 | 131 | 0.630644 |
ae4713b77d4c39bf8c248e760ff49155881e690c | 1,966 | package models;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@Entity
public class WorkOrderItemsDetail
{
@Id
@GeneratedValue(strategy = GenerationType... | 21.844444 | 168 | 0.676501 |
6c420d80f0d9527fc468b098cb8578a45b50cc68 | 382 | package com.biprom.bram.amcalapp.mongoRepositories;
import com.biprom.bram.amcalapp.data.entity.mongodbEntities.Korting;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface KortingRepository extends MongoRepository <Korting... | 34.727273 | 78 | 0.84555 |
e1866b0745cca08ee9bacd8ea96b16bd6516b5ee | 2,236 | /* Copyright (c) 2001-2019, The HSQL Development Group
* 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... | 36.655738 | 80 | 0.729428 |
f8e8cb498141c1124252addcd2728fdc289f1006 | 1,251 | package repast.simphony.visualization.decorator;
import org.jogamp.java3d.Group;
import repast.simphony.space.projection.Projection;
import repast.simphony.visualization.visualization3D.Display3D;
/**
* Interface for classes that will decorate projection visualizations. Decorating
* a projection refers to... | 26.617021 | 82 | 0.711431 |
ba02df23481449109264b1dde8e558e1b5a0f08c | 103 | package com.maprosoft.maproweb.jira;
public interface MaprosoftJiraComponent {
String getName();
} | 20.6 | 41 | 0.786408 |
c0a37b2207ddaab8bbe136b276487defb01340d3 | 425 | package com.revolsys.record.io.format.openstreetmap.model;
import org.jeometry.common.data.identifier.SingleIdentifier;
public class OsmWayIdentifier extends SingleIdentifier {
public OsmWayIdentifier(final long id) {
super(id);
}
@Override
public boolean equals(final Object other) {
if (other insta... | 21.25 | 60 | 0.72 |
8578a4c1db93d4e9b485a8a7e409dcd819ba6493 | 1,278 | package kr.co.popone.fitts.di.module;
import dagger.internal.Factory;
import dagger.internal.Preconditions;
import okhttp3.HttpUrl;
public final class GlobeConfigModule_ProvideBaseUrl$app_productionFittsReleaseFactory implements Factory<HttpUrl> {
private final GlobeConfigModule module;
public Globe... | 42.6 | 176 | 0.791862 |
1a92b4b2a081e87b3a9fe44c96ee4a739181b536 | 784 | /*
* Copyright (c) 2015 EMC Corporation
* All Rights Reserved
*/
package com.emc.storageos.api.mapper.functions;
import com.emc.storageos.api.mapper.BlockMapper;
import com.emc.storageos.db.client.model.UnManagedDiscoveredObjects.UnManagedVolume;
import com.emc.storageos.model.block.UnManagedVolumeRestRep;
import c... | 29.037037 | 94 | 0.769133 |
fe9dc688278ebaf68eb3864cac0a0c72ca88594c | 393 | package com.marceltbr.okready.repositories.okrs;
import com.marceltbr.okready.entities.okrs.YearSemester;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
@RepositoryRestResource
public interface YearSemesterRepository extends J... | 35.727273 | 83 | 0.849873 |
47935c03dfbe4148504bb3ead8d0510579384f23 | 6,264 | package cn.hylstudio.android.testdatabase.fragment;
import android.app.AlertDialog;
import android.app.ListFragment;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.util.Log;
import android.view.ContextMenu;
import android.view.LayoutInflater;
import and... | 35.794286 | 106 | 0.647031 |
2d8c7197fc97ba8e3f1b2f3f0ab6f77367616825 | 270 | package com.staxrt.tutorial.service;
import com.staxrt.tutorial.model.IsvedimoDuomenys;
import java.io.IOException;
import java.util.List;
public interface AtbulinisIsvedimasService {
IsvedimoDuomenys AtliktiAtbuliniIsvedima(String goal1, List<String> facts1);
}
| 24.545455 | 80 | 0.822222 |
11a04de01550cb7486263d4082808a6345be0c08 | 666 | import java.util.ArrayList;
/**
* Created by Marci Blum on 2017.07.16..
*/
public class Queen implements PieceType{
ArrayList<Coords> directions;
public Queen(){
directions = new ArrayList<>();
directions.add(Directions.UP);
directions.add(Directions.UP_LEFT);
directions.add(... | 25.615385 | 50 | 0.659159 |
4d3ffdb07e4fe5bd7b6643543cfac0af442e0836 | 5,943 | /*-
* #%L
* OfficeFrame
* %%
* Copyright (C) 2005 - 2020 Daniel Sagenschneider
* %%
* 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.... | 31.278947 | 113 | 0.72455 |
50a49fbef186b2ca82bf10e1b6ef871d9c0cbf05 | 1,473 | package stacksandcompilers;
import java.io.Reader;
import java.util.Stack;
public class Balance {
private int errors;
private Tokenizer tok;
public Balance(Reader inStream) {
errors = 0;
tok = new Tokenizer(inStream);
}
private int checkBalance() {
char ch;
Symbol match = null;
Sta... | 21.347826 | 93 | 0.578411 |
1e7b9cec7be07d810b4146d9c3834ad381cc5486 | 21,947 | package com.tal.wangxiao.conan.agent.service.impl;
import com.google.common.collect.Lists;
import com.tal.wangxiao.conan.agent.service.RecordService;
import com.tal.wangxiao.conan.common.api.ResponseCode;
import com.tal.wangxiao.conan.common.constant.enums.HttpMethodConstants;
import com.tal.wangxiao.conan.common.con... | 45.914226 | 179 | 0.661275 |
ca224d77d5e1fe26594975dd192d21cca9651021 | 33,382 | /*
* Copyright 2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 43.865966 | 269 | 0.75996 |
13fa09862da2908f5b2c9b8d10d1c29239cea2c3 | 1,425 | /*
* This file is part of jTransfo, a library for converting to and from transfer objects.
* Copyright (c) PROGS bvba, Belgium
*
* The program is available in open source according to the Apache License, Version 2.0.
* For full licensing details, see LICENSE.txt in the project root.
*/
package org.jtransfo;
imp... | 27.941176 | 88 | 0.712982 |
1d35ef97ee7da8df4ecd837f0b21990116dddad2 | 849 | package com.intenthq.challenge;
import java.util.Collections;
import java.util.List;
public class JConnectedGraph {
// Find if two nodes in a directed graph are connected.
// Based on http://www.codewars.com/kata/53897d3187c26d42ac00040d
// For example:
// a -+-> b -> c -> e
// |
// +-> d
// run(a... | 24.257143 | 67 | 0.623086 |
cdeeb38ab5a0435651d7ecb5119e06bf291b170d | 5,529 | /*
* Copyright 2017 Rakuten, 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... | 31.594286 | 97 | 0.71333 |
c95c4c0572c496ac722179e19013a2e7e83a0a2d | 1,537 | package org.opendatakit.data;
import org.opendatakit.database.data.Row;
import org.opendatakit.database.data.UserTable;
import java.util.Map;
import java.util.TreeMap;
/**
* Created by clarice on 3/22/16.
*/
public class ColorGuideGroup {
private Map<String, ColorGuide> mRowIdToColors = new TreeMap<String, Colo... | 20.77027 | 92 | 0.644763 |
5e67aed68dc21c8b7c0711033fd1bbe22186d0fe | 13,285 | package logbook.gui;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;
import javax.imageio.IIOImage;
import javax.imageio.ImageIO;
... | 35.905405 | 116 | 0.541362 |
6e2f1dab630315ced2926be94371371aed14c9de | 5,538 | package com.momohelp.controller;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.an... | 27.829146 | 112 | 0.699892 |
8a50dfef7455e5269314dff56e66e3e90e4ad924 | 2,756 | /* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package net.sf.mmm.ui.toolkit.impl.swing.view.widget;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import javax.swing.JButton;
import javax.... | 26.5 | 99 | 0.701379 |
6698c980bc4566ca41b40f77e2777f1d8b560385 | 896 | package com.example.antoan.planit.ui;
import android.content.Context;
import com.mikepenz.materialdrawer.model.PrimaryDrawerItem;
import java.util.List;
import dagger.Module;
import dagger.Provides;
/**
* Created by Antoan on 2/19/2017.
*/
@Module
public class UiModule {
@Provides
LoadingDialog provideL... | 20.837209 | 76 | 0.716518 |
94bc639ccb841733aafbf9ff4637cace26189909 | 1,134 | package ru.intertrust.cm.core.config.form.widget;
import ru.intertrust.cm.core.config.LogicalErrors;
import ru.intertrust.cm.core.config.WidgetConfigurationToValidate;
import static ru.intertrust.cm.core.config.form.widget.WidgetLogicalValidatorHelper.fieldTypeIsBoolean;
import static ru.intertrust.cm.core.config.for... | 40.5 | 109 | 0.737213 |
0549f310f2fe89b887fec9f5895f0cb80b58b675 | 2,225 | package com.example.dhp.chat;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Tex... | 34.230769 | 75 | 0.671461 |
20396d5eac7cca01b6b336a376e1caf807d3e0a3 | 476 | // This is a generated file. Not intended for manual editing.
package com.smcplugin.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface SmcStartState extends SmcStateFullName {
@NotNull
List<SmcComment> getCommentList();
@NotNull
SmcStartMapNa... | 19.833333 | 61 | 0.781513 |
1e102d855403a0dc0ae835d577564c71e34129c0 | 4,382 | // This file is part of CPAchecker,
// a tool for configurable software verification:
// https://cpachecker.sosy-lab.org
//
// SPDX-FileCopyrightText: 2007-2020 Dirk Beyer <https://www.sosy-lab.org>
//
// SPDX-License-Identifier: Apache-2.0
package org.sosy_lab.cpachecker.cpa.automaton;
import com.google.common.base.... | 36.516667 | 100 | 0.717481 |
a861972f8e6d8f33dd0599a4f65d00c9be7b2d39 | 82 | package me.camdenorrb.sweetsqlj.impl.value.impl.bundle;
public class SqlEnum {
}
| 16.4 | 55 | 0.792683 |
7779742181de1898de3fd24124b9ec165c8642c7 | 1,801 | package com.njfsoft_utils.artpad.filters;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.ColorMatrix;
import android.graphics.ColorMatrixColorFilter;
import android.graphics.Paint;
public class ReliefFilter {
// 浮雕效果函数
public static Bitmap chang... | 30.525424 | 95 | 0.65186 |
6ce83de79f5e3d611a664788c85b2c46b3b5714f | 6,820 | /*
* Copyright 2012-2017 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... | 30.311111 | 132 | 0.618622 |
fa644963227d99b4ba239c6e263fd69e4b74c312 | 204 | import javax.swing.SwingUtilities;
public class Main {
public static void main(String args[]) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
new Login();
}
});
}
}
| 13.6 | 45 | 0.647059 |
c46fb83396da14f67e4c45194331c75ee1f5ba1a | 159 | package io.smallrye.graphql.test.apps.jsonp.api;
import jakarta.json.JsonObject;
public class Token {
public String name;
public JsonObject value;
}
| 17.666667 | 48 | 0.754717 |
81d8ab3a65442ce48a94478d550b6be325bbcaac | 19,148 | package bg.bas.iinf.sinus.wicket.owl.filter.searchresults;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.apache.commons.lang3.StringUtils;
import org.apache.wicket.AttributeModifier;
import org.apache.wicket.MarkupContainer;
import org.apache.wicket.ajax... | 36.196597 | 317 | 0.712816 |
871bec474f48e76c03429fd2f2b04814623720f8 | 3,070 | /*-
* #%L
* anchor-image-io
* %%
* Copyright (C) 2010 - 2020 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche
* %%
* 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 with... | 39.87013 | 93 | 0.705537 |
8385dcc40c4fd8b8749798693a7a4be8c04223bb | 1,191 | package com.iotoast.todo.mapper;
import com.iotoast.todo.pojo.IoTodo;
import org.apache.ibatis.annotations.*;
import java.util.List;
@Mapper
public interface TodoDao {
/**
* 通过ID查询todo信息
* @return todo信息
*/
@Select("SELECT * FROM io_todo WHERE id = #{id}")
IoTodo findTodoById(@Param("id") ... | 26.466667 | 197 | 0.607053 |
5d3a46cc056f21d407510ab2ef22a812c942e90d | 122 | package p019d.p273h.p276c.p282f;
/* renamed from: d.h.c.f.e */
/* compiled from: BaseApi */
public interface C12868e {
}
| 17.428571 | 32 | 0.688525 |
d5a639d9971a5349c5213ec108993eb5c64c14ff | 1,149 | package com.study.jpkc.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.study.jpkc.entity.SectionComment;
import org.apache.ibatis.annotations.Param;
/**
* <p>
* Mapper... | 26.113636 | 117 | 0.698869 |
e0b13ed884176abc93e6339cdea22a06ab35bb8d | 2,330 | /**
* Copyright 2008-2017 Qualogy Solutions 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... | 32.816901 | 137 | 0.72618 |
417d2e2a5babc679a27d39d2bf2b2f4b604eb30e | 434 | package topic0.Exercise2;
public class ConnectionFactory extends AbstractFactory{
@Override
public Connection getConnection(String connection) {
if (connection.equalsIgnoreCase("POSTGRE")) {
return new PostgreConnection();
}
if (connection.equalsIgnoreCase("MYSQL")) {
return new MysqlConnection();
... | 18.869565 | 55 | 0.718894 |
9dda65e4b86148ceabc25615384d6ba8d6d5baa6 | 583 | import java.util.Scanner;
public class Exercicio11 {
public static void main(String[] args)
{
int numero = 0;
Scanner entrada = new Scanner(System.in);
System.out.println("Informe um numero: ");
System.out.println("Antecessor de " + numero + " : " + (numero - 1));
... | 29.15 | 81 | 0.545455 |
8124da83e4369c3f426cf9b2ba464fd1eba6481a | 4,118 | /*
* Copyright 2014 Alexey Plotnik
*
* 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 ... | 37.099099 | 140 | 0.698883 |
225a95aa91a4dc62dca4873711e2725c69593d62 | 744 | package de.nb.federkiel.feature;
import com.google.common.collect.ImmutableSet;
import de.nb.federkiel.interfaces.IFeatureType;
import de.nb.federkiel.interfaces.IFeatureValue;
/**
* A feature type for string feature values.
*
* @author nbudzyn
*/
public class StringFeatureType implements IFeatureTyp... | 19.578947 | 62 | 0.63172 |
aeb7bde6132552a286bc6c6bda51a370d0da168d | 4,964 | /*
* Copyright (c) 2016-2019 VMware, Inc. All Rights Reserved.
*
* This product is licensed to you under the Apache License, Version 2.0 (the "License").
* You may not use this product except in compliance with the License.
*
* This product may include a number of subcomponents with separate copyright notices
* ... | 41.366667 | 117 | 0.710113 |
2a408c68c30a704bc58cf85c58d5ab14fa050bfb | 791 | package au.edu.ardc.registry.oai.exception;
import au.edu.ardc.registry.exception.APIException;
public abstract class OAIException extends APIException {
public static final String badArgumentCode = "badArgument";
public static final String cannotDisseminateFormatCode = "cannotDisseminateFormat";
public static ... | 26.366667 | 84 | 0.798989 |
9419a307fe44654c7feb7479a3209012dce1a2c1 | 492 | package com.blueskykong.lottor.core.netty;
import com.blueskykong.lottor.common.config.TxConfig;
/**
*
*/
public interface NettyClientService {
/**
* 启动netty客户端
*
* @param txConfig 配置信息
*/
void start(TxConfig txConfig);
/**
* 停止服务
*/
void stop();
/**
* 连接n... | 11.714286 | 53 | 0.502033 |
853116e142adc27b2a13f7dd29462a505d16c100 | 402 | package com.damon.appwheel.model.util;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* 各种转换方法的工具类
* Created by yao on 2016/10/2.
*/
public class ModelConvertUtils {
public static <T> ArrayList<T> array2List(T[] array) {
List<T> list = Arrays.asList(array);
Arr... | 18.272727 | 58 | 0.664179 |
2ad0fdcf63ea83eb7ee904efe387203f1942a7b0 | 790 | package com.sf.minesweeper.timer;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import com.sf.minesweeper.panel.MineState;
import com.sf.minesweeper.tools.Tools;
public class Timers implements ActionListener{
private int times;
MineState mineState;
public Timers(MineState mineState){
... | 21.351351 | 56 | 0.726582 |
d0c7202d5f4fe59457e0479ddf8332e1890cef60 | 1,765 | package com.example.liangwenchao.appdemo.ui.view.fragment;
import android.os.Bundle;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.GridLayout;
import com.example.liangwenchao.appdemo.R;
impo... | 28.934426 | 102 | 0.630595 |
6c3b39a7836a324a8b8ec08ddde66687dc287c22 | 603 | package com.techelevator.model;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
public class BeerTypeTest {
private BeerType testBeerType;
@Before
public void setUp() {
testBeerType = new BeerType();
}
@Test
public void sameTypesAreSame() {
BeerType actual = new Be... | 18.272727 | 57 | 0.719735 |
4804804641004f4c91a131d1d3cc4f08ec67e587 | 883 | /**
*
*/
package org.hamster.weixinmp.dao.entity.user;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.hamster.weixinmp.config.WxConfig;
import org.hamster.weixinmp.dao.entity.... | 23.236842 | 68 | 0.771234 |
95e50cbb4ef6d7ae8a4d33f3bfe774c45f8b6978 | 332 | package com.imran.SpringBoot.service;
import java.util.List;
import com.imran.SpringBoot.dto.Products;
public interface ProductService
{
List<Products> findAllProducts();
List<Products> deleteProduct(int id);
List<Products> updateProduct(int id, Products product);
List<Products> addProduct(Products pr... | 23.714286 | 57 | 0.762048 |
a64385cfe8d5b22464cd3a13d39a0f95f900c7a7 | 10,216 | package com.rfin.service;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.fail;
import java.math.BigDecimal;
import java.sql.SQLException;
import java.util.ArrayList;
import org.junit.Test;
import org... | 39.750973 | 120 | 0.763508 |
64dbeae61c46675480f4d4eca65b5dce123c7bf9 | 2,975 | package com.zebrunner.reporting.web.documented;
import com.zebrunner.reporting.domain.dto.errors.ErrorResponse;
import com.zebrunner.reporting.domain.entity.integration.IntegrationInfo;
import com.zebrunner.reporting.domain.entity.integration.IntegrationPublicInfo;
import io.swagger.annotations.Api;
import io.swagger.... | 45.769231 | 168 | 0.688403 |
699e37f6689c22b788ea1e9549470cb33aebdf75 | 16,217 | package com.android.vending.billing.InAppBillingService.LACK.widgets;
import android.app.PendingIntent;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.graphics.Col... | 47.418129 | 368 | 0.621632 |
2308e01d4e219593729f12448d4d86b1ebb5cded | 10,551 | /*
* 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 ... | 52.492537 | 137 | 0.715003 |
6ab90c696368880bd86b1d5c32f41ca6d615a389 | 1,010 | /* Import1: A Maze-Solving Game */
package studio.ignitionigloogames.twistedtrek.import1.items.combat;
import studio.ignitionigloogames.twistedtrek.import1.effects.Effect;
import studio.ignitionigloogames.twistedtrek.import1.items.Item;
import studio.ignitionigloogames.twistedtrek.import1.items.ItemCategoryConstants;
... | 27.297297 | 99 | 0.753465 |
38de7f1d70dd3c652182853c54a499f8eaf4a761 | 1,586 | package com.bigdata.datashops.server.worker.executor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.bigdata.datashops.common.utils.FileUtils;
import com.bigdata.datashops.common.utils.JSONUtils;
import com.bigdata.datashops.model.pojo.job.JobInstance;
import com.bigdata.datashops.protocol.GrpcRe... | 35.244444 | 115 | 0.701765 |
c96e7d6b5473356524c476e76790abeaab687fbb | 30,922 | package edu.cmu.ml.proppr.util;
import java.util.Arrays;
import java.util.Properties;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.DefaultParser;
import org.apache.commons.cli.HelpFormatter;
import org.apache.commons.cli.Option;
import org.apache.commons.cli.OptionBuilder;
import org.apach... | 42.243169 | 210 | 0.713052 |
a3931b82a819f4ae879f283aee9546ec7194ac0d | 1,095 | /*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/
package org.opensearch.knn.plugin.transport;
import org.opensearch.action.support.DefaultShardOperationFailedException;
import org.opensearch.action.support.broadcast.BroadcastResponse;
import org.opensearch.common.io.stream.StreamInpu... | 33.181818 | 104 | 0.76895 |
f1895c48530b91ffec4f13635e22127f95346cc2 | 618 | package com.algawork.pedidovenda.pesquisa;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
@ManagedBean
@RequestScoped
public class PesquisarGruposBean implements Serializable {
private static final long s... | 16.263158 | 58 | 0.7411 |
7e6ac4e1269b1d82d46a1cffa987abbe642ef749 | 1,545 | package com.example.algamoney.api.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import jdk.jfr.Name;
import javax.persistence.*;
import java.util.Objects;
import java.util.UUID;
import javax.validation.constraints.*;
@Entity
@Table(name = "pessoa")
public class Pessoa {
//Atributos próprios
@Id
... | 19.3125 | 66 | 0.60712 |
e6d80506934220fcb526ce6cda283b9d60fd2f56 | 798 | package com.tester.finder.core;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import... | 25.741935 | 62 | 0.763158 |
0a632f1e7d61de886868e06492dcb043f1492024 | 4,820 | // --------------------------------------------------------------------------------
// Copyright 2002-2021 Echo Three, LLC
//
// 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:/... | 37.076923 | 128 | 0.719502 |
7c1df141956df789b2ced83747e463bc60d709bb | 4,118 | package org.dmc.services.data.entities;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "resource_projects")
public class ResourceProje... | 20.186275 | 81 | 0.647159 |
b071eff7f00a722416150298d611ba8df4ee1214 | 654 | package alfredo.phx;
import alfredo.Component;
import alfredo.Entity;
import alfredo.Scene;
import alfredo.geom.Vector;
import java.util.ArrayList;
/**
*
* @author TheMonsterOfTheDeep
*/
public class Physics {
public static final Vector gravity = new Vector(0, 9.807f);
public static void tick() { ... | 21.8 | 65 | 0.568807 |
39141ed02badc78eab78a556fed2a720593d0984 | 200 | package com.yoyiyi.soleil.bean.app.support;
/**
* @author zzq 作者 E-mail: soleilyoyiyi@gmail.com
* @date 创建时间:2017/5/29 15:52
* 描述:
*/
public class SearchTagSelect {
public String title;
}
| 18.181818 | 51 | 0.68 |
636373f16fe48a6cc202c3c572f8ed0b8936883c | 749 | package grump;
import org.antlr.v4.runtime.ParserRuleContext;
import org.antlr.v4.runtime.tree.ErrorNode;
import org.antlr.v4.runtime.tree.ParseTreeListener;
import org.antlr.v4.runtime.tree.TerminalNode;
public class GrumPParseTree implements ParseTreeListener {
@Override
public void visitTerminal(TerminalNo... | 27.740741 | 72 | 0.700935 |
0e2daa23521b57cc4127fc15eb3af29ae22981ec | 20,985 | /*
* Copyright (c) 2007 Tom Parker <thpr@users.sourceforge.net>
*
* This program 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; either version 2.1 of the License, or (at your option)
* any... | 27.182642 | 98 | 0.681487 |
3d6e1055e6a076154334659cf6740151bc9115a6 | 2,167 | package soot.dexpler.typing;
/*-
* #%L
* Soot - a J*va Optimization Framework
* %%
* Copyright (C) 1997 - 2018 Raja Vallée-Rai and others
* %%
* This program 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... | 28.142857 | 109 | 0.715275 |
b5a62ded64c669fd543a0a08952da4ef992879bf | 13,889 | /*******************************************************************************
* Copyright 2016, 2018 vanilladb.org 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
... | 32.225058 | 115 | 0.634963 |
cbd618a225242491413de9493c1b85288853b5dd | 1,635 | /*
* Copyright (C) 2017 Red Hat, 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 ... | 32.058824 | 98 | 0.715596 |
c172a64825a9a682a2d39fb27cefa85246270f04 | 1,250 | /*
* Copyright 2009 Inspire-Software.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 26.041667 | 78 | 0.66 |
615e72225bb8121a60cb1c06e39be3704a7f4f38 | 2,795 | package lt.hototya.team;
import java.util.ArrayList;
import java.util.List;
import cn.nukkit.Player;
import cn.nukkit.Server;
import lt.hototya.team.event.AddPlayerEvent;
import lt.hototya.team.event.RemovePlayerEvent;
import lt.hototya.team.interfaces.ITeam;
public class Team implements ITeam {
private String tea... | 20.40146 | 70 | 0.714132 |
ad42202316d628c637ea0cda47779b54a55dab6b | 1,908 | package chat.rocket.android;
import android.os.StrictMode;
import android.support.multidex.MultiDexApplication;
import com.facebook.stetho.Stetho;
import com.uphyca.stetho_realm.RealmInspectorModulesProvider;
import java.util.List;
import chat.rocket.android.helper.OkHttpHelper;
import chat.rocket.persistence.realm.R... | 30.285714 | 92 | 0.73847 |
d825dc264bab4b97dce17e1c53b4386ed6ce8c52 | 1,501 | package org.vadimjprokopev.token;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import static org.vadimjprokopev.token.TokenType.*;
public class Tokenizer {
private static Map<String, TokenType> TOKEN_MAP = new HashMap<>();
static {
TOKEN... | 27.796296 | 75 | 0.588941 |
6c085829e964f2f56ac07423030cc629428793e1 | 2,978 | /*
* 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 ... | 38.179487 | 118 | 0.80591 |
2f1308280e56af76123bbdd3b046e951268d46b7 | 188 | package com.ntk.reactor;
public class ReactorConstants {
public static final String HOST = "http://pornreactor.cc";
// public static final String HOST = "http://joyreactor.com";
}
| 26.857143 | 64 | 0.718085 |
d59320d0773391bb0c55a36f7fe06922923dd109 | 8,082 | /**
* RELOAD TOOLS
*
* Copyright (c) 2004 Oleg Liber, Bill Olivier, Phillip Beauvoir
*
* 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 withou... | 28.659574 | 97 | 0.668151 |
059586da2c0c805180f2bbd81e1a19ee8a8b7879 | 1,339 | package de.adorsys.ledgers.middleware.impl.sca;
import de.adorsys.ledgers.middleware.api.domain.sca.ChallengeDataTO;
import de.adorsys.ledgers.middleware.api.domain.sca.ScaDataInfoTO;
import de.adorsys.ledgers.middleware.api.domain.um.ScaMethodTypeTO;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.io.IOUt... | 31.880952 | 96 | 0.728902 |
acc1f3247fd61192a6bbd35f530fe02100183f57 | 960 | package mysteryDungeon.patches;
import com.evacipated.cardcrawl.modthespire.lib.*;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.cards.CardGroup;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import mysteryDungeon.interfaces.onDiscardInterface;
public class OnDiscardPatc... | 34.285714 | 103 | 0.694792 |
65761c05db02ab06ebaf6e6a27c994c719d15a2e | 611 | /**
* This package contains the Hibernate code - entities and repository.
*
* There's absolutely nothing GraphQL specific about anything in this package. It could very well be replace with
* other database library tools like QueryDSL, JDBC a NoSQL data repository, etc.
*
* Some might find that the entity relation... | 55.545455 | 117 | 0.772504 |
956f7708bc861bf8e417c1ba439ab6c5d333ac5b | 1,872 | package org.opensha.refFaultParamDb.vo;
/**
* <p>Title: Reference.java </p>
* <p>Description: This class has information about the references </p>
* <p>Copyright: Copyright (c) 2002</p>
* <p>Company: </p>
* @author not attributable
* @version 1.0
*/
public class Reference {
private int referenceId=-1; // ref... | 24.96 | 92 | 0.738782 |
2c099744815a1f16199449b6fa4d93468e2de37b | 5,325 | package com.hadoop.mapreduce;
import java.io.IOException;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.conf.Configured;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Job;
import org.apac... | 34.803922 | 120 | 0.711737 |
d69a10c1e1c0093bd11c16c4a045162e23d79336 | 4,040 | /*****************************************************************
* 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
* ... | 37.06422 | 134 | 0.683416 |
bd60db2f9c11cebe1a04ebfa7f5afae0967232d3 | 4,852 | /*
* Copyright 2011, 2012:
* Tobias Fleig (tobifleig[AT]googlemail[DOT]com)
* Michael Haas (mekhar[AT]gmx[DOT]de)
* Johannes Kattinger (johanneskattinger[AT]gmx[DOT]de
*
* - All rights reserved -
*
* 13ducks PROPRIETARY/CONFIDENTIAL - do not distribute
*/
package de._13ducks.spacebatz.client.sound;
import ... | 31.303226 | 138 | 0.599547 |
57095d4d5a436899581f7c5e189b4f696fb9b311 | 1,319 | package mclaudio76.persistence.springjpajta.services;
import java.util.logging.Logger;
import javax.transaction.TransactionManager;
import javax.transaction.UserTransaction;
import org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform;
import org.springframework.beans.factory.annotation.... | 26.38 | 108 | 0.774071 |
62398f55edbe0588d20547c63c140cbadf19e80c | 482 | package com.xhh.demo.http.aop.spring;
import org.springframework.stereotype.Service;
/**
* BookServiceImpl
*
* @author tiger
* @version 1.0.0 createTime: 14-4-19
* @since 1.6
*/
@Service
public class BookServiceImpl {
public void save(String bookName) {
System.out.println("执行 save 方法");
}
... | 17.851852 | 46 | 0.634855 |
77632784ccf092a6e702e3089e121c23f2330830 | 4,726 | /*
* 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... | 70.537313 | 141 | 0.801312 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.