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 |
|---|---|---|---|---|---|
fb760e413c49369bd5118f7f8fc2da76187cd6b5 | 2,645 | /**
*
* Copyright 2014 The Darks Learning Project (Liu lihua)
*
* 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... | 20.992063 | 78 | 0.658601 |
8d629b939a4bb7ab00d7cd4eb402877adea8edce | 41,224 | /*
* Copyright 2018 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 60.181022 | 113 | 0.69639 |
7393e90ff3bf09dfaa5c4f33093c0a4f4a941e85 | 1,860 | package cn.stylefeng.guns.config;
import org.apache.catalina.Context;
import org.apache.catalina.connector.Connector;
import org.apache.tomcat.util.descriptor.web.SecurityCollection;
import org.apache.tomcat.util.descriptor.web.SecurityConstraint;
import org.springframework.beans.factory.annotation.Value;
impor... | 40.434783 | 91 | 0.705914 |
02599728b8f04d62e68748c5d2cee6e860f0bc98 | 4,727 | package com.github.k24.rrrpagination.usecase;
import com.github.k24.rrrpagination.entity.GithubRepository;
import com.github.k24.rrrpagination.entity.PaginationResult;
import com.github.k24.rrrpagination.gateway.GithubSearchGateway;
import com.github.k24.rrrpagination.presentation.DummyContent;
import com.github.k24.r... | 42.972727 | 167 | 0.642479 |
df265272b2ca053d332a5db74eb25af9b12e53db | 752 | package es.com.blogspot.elblogdepicodev.activiti.misc;
import org.activiti.engine.impl.pvm.PvmTransition;
import org.activiti.engine.impl.pvm.delegate.ActivityBehavior;
import org.activiti.engine.impl.pvm.delegate.ActivityExecution;
public class ComprobarExistenciasServiceTask implements ActivityBehavior {
@Overrid... | 37.6 | 87 | 0.804521 |
db0c34b4934bebd9c867dc478f4d953149918ecc | 1,086 | package org.myrobotlab.speech;
import java.io.IOException;
import edu.cmu.sphinx.jsgf.JSGFGrammarException;
import edu.cmu.sphinx.jsgf.JSGFGrammarParseException;
/**
* A Dialog node behavior that loads a completely new grammar upon entry into
* the node
*/
public class NewGrammarDialogNodeBehavior extends DialogN... | 22.163265 | 77 | 0.706262 |
4ab4dbc3cc74b03c97a387a5c209e09925c2511e | 4,107 | package toolkit.eventbus;
import io.vertx.core.eventbus.EventBus;
import io.vertx.ext.unit.TestContext;
import io.vertx.ext.unit.junit.RunTestOnContext;
import io.vertx.ext.unit.junit.VertxUnitRunner;
import org.gaussian.amplifix.toolkit.datagrid.DropRegistry;
import org.gaussian.amplifix.toolkit.eventbus.AmplifixEven... | 43.231579 | 150 | 0.770392 |
61901783f54e551a346b2504a06e4f778becfccb | 3,931 | // Copyright 2015 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | 39.707071 | 93 | 0.745103 |
b1a6ff7cf78513b889cafffcb63764f53b135538 | 468 | package br.com.zupacademy.sergio.ecommerce.model.dto;
import java.util.Collection;
import java.util.stream.Collectors;
import java.util.stream.Stream;
public class UploadedImagesDto {
private final Collection<ImageDto> uploadedImages;
public UploadedImagesDto(Stream<ImageDto> uploadedImages) {
this.uploadedI... | 26 | 70 | 0.786325 |
0160f4da215c0dbf2a741077f1e50122dd4852d5 | 4,376 | /**
* Copyright 2016 Pinterest, 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... | 46.553191 | 133 | 0.730804 |
00547bf156ebb97b236c80ff182d6c32b2887cd0 | 1,335 | class Solution {
public int numMagicSquaresInside(int[][] grid) {
int res = 0;
for(int i=0; i <= grid.length-3; i++)
for(int j=0; j <= grid[0].length-3; j++)
if(helper(i, j, grid)) res++;
return res;
}
private boolean helper(int x, int y, int[][] gr... | 41.71875 | 84 | 0.476404 |
4a5d50f726558f8c4b3b33af9c44848445c4b28b | 3,448 | /*
* Copyright 2016 the original author or authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | 35.183673 | 124 | 0.703016 |
1ad7bd04146f649c139797776a087813e72e6a7f | 7,347 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 40.368132 | 120 | 0.729549 |
a16a7d5d8284fb6953748a10090934bd130a7793 | 3,782 | package com.ipd.jmq.common.network.v3.command;
import com.ipd.jmq.common.message.Message;
import com.ipd.jmq.common.network.v3.session.ProducerId;
import com.ipd.jmq.common.network.v3.session.TransactionId;
import com.ipd.jmq.toolkit.lang.Preconditions;
import java.util.Arrays;
/**
* 生产消息
*/
public class PutMessag... | 26.263889 | 109 | 0.608408 |
290bca7abf87e447a711f27e4ce7e1eae5c6cd2a | 1,965 | package com.paypal.kyc.service.impl;
import com.hyperwallet.clientsdk.model.HyperwalletWebhookNotification;
import com.paypal.infrastructure.converter.Converter;
import com.paypal.kyc.model.KYCBusinessStakeholderStatusNotificationBodyModel;
import com.paypal.kyc.strategies.status.impl.KYCBusinessStakeholderStatusFacto... | 38.529412 | 160 | 0.882443 |
d76a02b9e0d1e7e9f3ba16fa1a52838c9f13e705 | 9,454 | /*
* Copyright 2018 Soojeong Shin
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 38.430894 | 114 | 0.694732 |
28e5fa4da4b534b967d672c6e94365fb8d4a72d9 | 4,735 | /*******************************************************************************
* Copyright (c) 2015 Eclipse RDF4J contributors, Aduna, and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Distribution License v1.0
* which accompanies th... | 39.132231 | 120 | 0.703696 |
8c0d7c22cb873e7d3ec081daebc96b35740049a8 | 133 | package mypack1.inner;
public class Demo3
{
public void display()
{
System.out.println("Hi! I am demo3 in sub package!!!");
}
} | 14.777778 | 57 | 0.676692 |
41af8549e82c8726825b831e5489427099a4ffea | 680 | package com.example.greenhouse.constants;
public class Constants {
// CONFIGURATIONS
public static final String ES_HOST = "127.0.0.1";
public static final String MYSQL_DB_HOST = "jdbc:mysql://localhost:3306/freedb_teamgreen?useSSL=false";
public static final String MYSQL_DB_USER = "root";
public s... | 37.777778 | 107 | 0.754412 |
1e9aa6eca7e00a7de55f6a6d7081d4b4b7dbca84 | 6,771 | package com.share.wechatShare;
import java.io.IOException;
import java.net.URL;
import org.apache.cordova.CallbackContext;
import org.apache.cordova.CordovaPlugin;
import org.apache.cordova.PluginResult;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import org.hotshare.everywhe... | 32.552885 | 131 | 0.655885 |
fc940013757d10bbeefc78882dd9d4c4105570f4 | 1,326 | package pro.taskana.common.rest.models;
import java.util.ArrayList;
import java.util.List;
import org.springframework.hateoas.RepresentationModel;
import org.springframework.lang.NonNull;
import pro.taskana.common.api.TaskanaRole;
/** EntityModel class for user information. */
public class TaskanaUserInfoRepresentat... | 23.678571 | 69 | 0.686275 |
59bce13c741056e3bff539221153382aa16a7f3e | 1,763 | package vijay.springframework.spring5recipeapp.services;
import org.junit.Before;
import org.junit.Test;
import org.mockito.ArgumentCaptor;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import org.springframework.mock.web.MockMultipartFile;
import org.springframework.web.multipart.MultipartFile;
impo... | 30.929825 | 92 | 0.752127 |
25186762a30911f96d6be437574239a5c68ee05c | 432 | package com.mmnaseri.utils.spring.data.utils;
import java.util.ArrayList;
import java.util.List;
/**
* @author Milad Naseri (m.m.naseri@gmail.com)
* @since 1.0 (4/12/16, 6:51 PM)
*/
public class TestUtils {
public static <E> List<E> iterableToList(Iterable<E> iterable) {
final List<E> list = new Array... | 20.571429 | 68 | 0.604167 |
201cd2ef3339b53d890e3f217f4a7b0ca0e470a2 | 7,511 | package rbasamoyai.industrialwarfare.common.tileentities;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nonnull;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.entity.LivingEntity;
import net.minecraft.inventory.InventoryHelper;
import net.mi... | 35.597156 | 163 | 0.774198 |
7f9d7aaaa0d73338168278e22826661ee0531294 | 1,492 | package org.keycloak.examples.domainextension.rest;
import org.jboss.resteasy.annotations.cache.NoCache;
import org.keycloak.examples.domainextension.CompanyRepresentation;
import org.keycloak.examples.domainextension.spi.ExampleService;
import org.keycloak.models.KeycloakSession;
import javax.ws.rs.Consumes;
import ... | 29.254902 | 122 | 0.747319 |
f840eb7b5e9a3f7bd73588e8a3cbf9df871a1470 | 4,750 | /*
* The MIT License (MIT)
*
* Copyright 2021 Vladimir Mikhailov <beykerykt@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitati... | 35.447761 | 118 | 0.710316 |
15996e31afce85c5664750b139b4b25be70cb161 | 1,021 | package ca.ubc.cs411.abe.expression;
import ca.ubc.cs411.abe.type.Type;
import ca.ubc.cs411.abe.value.Value;
public class If extends ABE {
private ABE pred, conseq, altern;
public If(ABE pred, ABE conseq, ABE altern) {
this.pred = pred;
this.conseq = conseq;
this.altern = altern;
... | 26.868421 | 141 | 0.573947 |
f396bd7e94ea348a13335378e21813f8517a7bac | 1,618 | /*
* Copyright (C) 2015 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... | 27.896552 | 75 | 0.697157 |
5886e019f44357ba2a4541b2c1cb2084d6582851 | 2,603 | /*-
* ============LICENSE_START=======================================================
* ONAP CLAMP
* ================================================================================
* Copyright (C) 2017 AT&T Intellectual Property. All rights
* reserved.
* =============================... | 37.724638 | 115 | 0.640799 |
059a667e5ec97101b32fc5e7d8f46970bdac06e4 | 1,072 | package concurrent.future.forkjoin;
import java.util.Random;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ForkJoinPool;
import org.assertj.core.api.Assertions;
import org.junit.Test;
/**
* ForkJoinTest.java
*
* @author: zhaoxiaoping
* @date: 2019/11/11
**/
public class ForkJoinTest... | 27.487179 | 89 | 0.716418 |
8170aed792189128d8cb827bcc260af7a9ae012d | 3,750 | package com.github.adriens.imgflip.sdk.imgflip.sdk.domain.enums;
import com.fasterxml.jackson.annotation.JsonFormat;
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum RankIcon {
ICO0("ico0", "https://imgflip.com/icons/anon.svg"),
ICO1("ico1", "https://imgflip.com/icons/anon-white.svg"),
ICO2("ico2... | 46.875 | 78 | 0.6432 |
c873c26890b97506794354c79645daad1b638f74 | 2,840 | /*-
* ============LICENSE_START=======================================================
* SDC
* ================================================================================
* Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
* ===================================================================... | 28.118812 | 83 | 0.664789 |
d4d511e4e74682652601dc394c432ce4d0bb063a | 1,415 | package cn.edu.buaa.crypto.signature.pks.bls01;
import cn.edu.buaa.crypto.algebra.generators.PairingKeyPairGenerator;
import cn.edu.buaa.crypto.algebra.serparams.PairingKeySerPair;
import it.unisa.dia.gas.jpbc.Element;
import it.unisa.dia.gas.jpbc.Pairing;
import it.unisa.dia.gas.plaf.jpbc.pairing.PairingFactory;
impo... | 40.428571 | 151 | 0.758304 |
dd1ae5e7f38716cbe5e44f73a12e727954bb33b9 | 3,181 | package com.lazaro.makario.flmaterialspinner;
/* ////
(O O)
--------oOO----(_)------------------------------
Created by Làzaro, Makario Felipe on 18/09/2017.
Email: lazaro.makario@gmail.com
Complaint Received, 10 year later...
----------------------oOO-----------------------*/
... | 35.344444 | 131 | 0.745677 |
4ec76c4fd6499454ff7d107c5975a612eb549ed8 | 332 | package org.apache.cordova.api;
// dummy class to ensure the org.apache.cordova.api package exists
// this is required to support Cordova 2.9 and 3.0 with one code base
// since I'm using wildcard imports to work around the renamed classes
// import org.apache.cordova.*;
// import org.apache.cordova.api.*;
public clas... | 36.888889 | 70 | 0.756024 |
3b9c455e83685b54abf5d9d842c19efc616b4405 | 4,340 | package selenium.pages;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
/**
*
* @author Jeroen Roovers <jroovers>
*/
public class ProfilePage ex... | 40.560748 | 118 | 0.711521 |
8879ce0c5d19e45136ecc362b3df616996048336 | 1,730 | package com.zero.spring.cloud.zuul.web.filter;
import java.io.IOException;
import javax.servlet.http.HttpServletRequest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import com.netflix.zuul.ZuulFilter;
import com.netflix.zuul.context.RequestCon... | 25.441176 | 154 | 0.686705 |
36a589aade2b39f9618805f48b57910fb9d47cb3 | 5,636 | /**
* 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... | 29.051546 | 117 | 0.646735 |
acc6eda945798ad7e3c6fb2fe087f3113dd73f1b | 1,173 | package com.capitalone.dashboard.exception;
import com.capitalone.dashboard.model.score.settings.ScoreTypeValue;
import com.capitalone.dashboard.model.ScoreWeight;
public class PropagateScoreException extends Exception {
private final ScoreTypeValue score;
private final ScoreWeight.ProcessingState state;
pub... | 26.659091 | 124 | 0.751918 |
2ac797febcb0ddc09b367eb36ccd1b6b1fc65ee8 | 3,632 | // GT_EXTERNAL_LEGEND(2014)
// Reviewed: DRCok 2016-03-09
package acsl.tests.helpers;
import java.io.PrintWriter;
import java.io.StringWriter;
import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jdt.annotation.Nullable;
import framac.helpers.Utils;
/** The logging mechanism for the plugin - used for re... | 37.061224 | 133 | 0.645099 |
fd600614bc38050fdea6f0d7d02812717a85c038 | 829 | package com.github.rich.message.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.rich.message.entity.SystemMessage;
import com.github.rich.message.domain.vo.message.UserMessageVO;
import java.util.List;
/**
* <p>
* 系统消息 服务类
* </p>
*
* @author Petty
* @since 2019-06-27
*/
... | 18.840909 | 72 | 0.64415 |
c1c7370dbfb416103551349a34e20ac4ba44d7c7 | 17,409 | /*
* Copyright 2013 LinkedIn, 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 to in... | 45.813158 | 167 | 0.620484 |
d627c5900b6b8c8d0dd0c364c71be3124a41fcb3 | 3,530 | package jetbrains.mps.lang.editor.test.generation.editor;
/*Generated by MPS */
import jetbrains.mps.editor.runtime.descriptor.AbstractEditorBuilder;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.mps.openapi.model.SNode;
import jetbrains.mps.openapi.editor.EditorContext;
import jetbrains.mps.openapi.... | 43.04878 | 184 | 0.768839 |
f13dbbab58a6937da3abeaaf67e99560d6cf9e09 | 3,238 | package pollingPack;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
public class ElectionCommissioner {
String comm_id,vid,name,ed_qualification,experience;
String f;
byte []photo=null;
Connection con=null;
PreparedStatement... | 20.493671 | 149 | 0.636504 |
fb972056dc0931a99251122f7474053306e406c4 | 2,079 | ////////////////////////////////////////////////////////////////////////////////
//
// Created by MJesser on 09.01.2018.
//
// Copyright (c) 2006 - 2018 FORCAM GmbH. All rights reserved.
////////////////////////////////////////////////////////////////////////////////
package com.forcam.na.ffwebservices.client.statusdef... | 34.081967 | 87 | 0.416546 |
297e3bdad7ced7879a0339ff8c5c28bf3a44a0e6 | 446 | package com.kagmole.workshops.basicchat.webservice.shared.exceptions;
public enum ApplicationExceptionType {
ERROR ("Error"),
ENTITY_NOT_FOUND ("Entity Not Found"),
VALIDATION_FAILED ("Validation Failed"),
USERNAME_ALREADY_TAKEN ("Username Already Taken");
private String message;
private Applicatio... | 20.272727 | 69 | 0.746637 |
d3a159c2e21f4860b3a59118978d49673588880e | 1,887 | package cz.ackee.androidskeleton.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import java.util.ArrayList;
import java.util.List;... | 24.828947 | 114 | 0.674086 |
f09d1fb96b7f806bae2e0cfa5442627c5da3877f | 6,682 | /*
* Geotoolkit - An Open Source Java GIS Toolkit
* http://www.geotoolkit.org
*
* (C) 2011, Geomatys
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation;
* vers... | 51.4 | 175 | 0.642173 |
aacf8650bce74b50c77057d884331bd65995359c | 4,512 | /**
*
* 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 ma... | 33.671642 | 88 | 0.582447 |
828cb2d3c163040b83760beaa5e8be14afe21a9e | 2,683 | package mp.jprime.files.json.beans;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.util.Date;
/**
* Описание ответа после загрузки файла
*/
@JsonPropertyOrder({
"fileCode",
"name",
"createdDate",
"length"
})
@JsonInclude(J... | 18.631944 | 85 | 0.613865 |
7998648a8b80f6b29611efead7b5fa0f19ce08ad | 6,416 | package sh.isaac.model.observable.coordinate;
import javafx.beans.property.ObjectProperty;
import javafx.beans.value.ObservableValue;
import sh.isaac.api.component.concept.ConceptSpecification;
import sh.isaac.api.coordinate.EditCoordinate;
import sh.isaac.api.coordinate.EditCoordinateImmutable;
import sh.isaac.api.ob... | 47.525926 | 208 | 0.732544 |
72bf177ac98c3f691d4a73976838f0d0a999f12a | 1,118 | package com.piggysnow.boss.core.domain;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import com.wds.base.dao.BaseEntity;
@Entity
@Table(name = "t_visit_count")
public class VisitCount extends BaseEntity implemen... | 18.633333 | 67 | 0.739714 |
0f188374ff4cebe4d43641815bcb8998f941046e | 941 | package cn.edu.imufe.service;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import cn.edu.imufe.entity.Answerhistory;
import cn.edu.imufe.entity.AnswerhistoryExample;
public interface AnswerHistoryService {
int countByExample(AnswerhistoryExample example);
int deleteByExample(Answerhis... | 28.515152 | 120 | 0.792774 |
9e9e45b88a57ff3008fe460bd14dc809c2648a4d | 11,083 | package physics.external.combatSystem;
import com.google.common.eventbus.EventBus;
import com.google.common.eventbus.Subscribe;
import messenger.external.*;
import physics.external.PhysicsBody;
import physics.external.PhysicsSystem;
import xml.XMLParser;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;... | 38.887719 | 207 | 0.637102 |
09760590aa5e9e60a2f011058c99c055c3c859da | 238 | package edu.utexas.utmpc.beaconobserver.utility;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.le.ScanRecord;
public interface Beacon {
String getDeviceAddress();
String getName();
byte[] getBeacon();
}
| 21.636364 | 48 | 0.764706 |
5862fe819ece926af5790b41dc00fef2206c9909 | 413 | //: Connection.java
package com.wuroc.chaptersix2;
/**
* @author WuRoc
* @GitHub www.github.com/WuRoc
* @version 1.0
* @2020年7月15日
* import static com.wuroc.util.Print.*;
*
*/
public class Connection {
private static int counter = 0;
private int id = counter++;
Connection(){}
public String... | 15.296296 | 41 | 0.617433 |
67ed6fafb5c32a89a0d9e474bdb23607a1f3f998 | 11,179 | package com.github.anno4j.model.impl;
import com.github.anno4j.Anno4j;
import com.github.anno4j.model.*;
import com.github.anno4j.model.impl.style.CssStylesheet;
import com.github.anno4j.model.impl.targets.SpecificResource;
import com.github.anno4j.querying.QueryService;
import org.apache.marmotta.ldpath.parser.ParseE... | 40.357401 | 175 | 0.715091 |
86c1d6d20a951a949eeadb5a43de0f15311b7254 | 1,410 | package org.firstinspires.ftc.teamcode.testOpModes;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.eventloop.opmode.OpMode;
import org.firstinspires.ftc.teamcode.RobotClass;
@Disabled
public class testMotors extends OpMode {
private RobotClass robot = new RobotClass();
... | 32.790698 | 74 | 0.653191 |
977b99f2bd958ca8ca0fc082f8e2401246f09c2c | 5,678 | /*
* Copyright (C) 2017 Republic Wireless
*
* 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... | 31.898876 | 120 | 0.680521 |
c5701428356a304a267faf868a26fbbc19ef5953 | 614 | public static File gzipLog() throws IOException {
RunnerClass.nfh.flush();
File log = new File(RunnerClass.homedir + "pj.log");
GZIPOutputStream out = new GZIPOutputStream(new FileOutputStream(new File(log.getCanonicalPath() + ".pjl")));
FileInputStream in = new FileInputStream(log);... | 43.857143 | 117 | 0.615635 |
c04e01dd6b969e5a140912989fbf43e7f08ecff8 | 1,199 | /*
* This file is generated by jOOQ.
*/
package org.jooq.mcve.java.packages.types.udt.records;
import java.util.Arrays;
import java.util.Collection;
import org.jooq.impl.ArrayRecordImpl;
import org.jooq.impl.SQLDataType;
import org.jooq.mcve.java.Devsb;
import org.jooq.mcve.java.packages.Types;
/**
* This class... | 24.979167 | 88 | 0.673061 |
9adacc84bdeb1c4361aa72e28919efaf655a6aeb | 5,977 | package com.project.qa.ui.helpers;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebDriverException;
import org.openqa.selenium.support.ui.ExpectedCondition;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.... | 33.960227 | 156 | 0.603145 |
ca044be2d1615a54b161cf3de4e2e6349d849b10 | 2,315 | package com.liulishuo.engzo.todo;
import com.liulishuo.demo.R;
import com.liulishuo.engzo.MainActivity;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import android.app.Activity;
import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
im... | 33.550725 | 136 | 0.710583 |
4d5c3964dfe32fc21727d896440e78171d92c9a4 | 17,061 | /*
* Copyright (C) 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 app... | 34.606491 | 100 | 0.602778 |
20eea70952020160e2531f69b4126a7fdcc17642 | 7,137 | package org.frekele.fiscal.focus.nfe.client.model.entities.requisicao.cancelamento;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.frekele.fiscal.focus.nfe.client.converter.OffsetDateTimeJsonConverter;
import org.frekele.fiscal.focus.nfe.client.cor... | 23.949664 | 127 | 0.644809 |
b5ad09f8ffea140cc8dad753b9c4cb89d2067751 | 1,408 | package org.jabref.gui.fieldeditors;
import org.jabref.gui.autocompleter.AutoCompleteSuggestionProvider;
import org.jabref.logic.integrity.FieldCheckers;
import org.jabref.logic.l10n.Localization;
import com.google.common.collect.BiMap;
import com.google.common.collect.HashBiMap;
public class TypeEditorView... | 38.054054 | 134 | 0.706676 |
2cc8ef8b5684d5ac200e7b3d5335c55374c7a25a | 4,551 | package Infra;
import java.time.Duration;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
/**
* Class that stores a temporal graph.
*
* @param <V> Vertex type.
* TODO: implement edges if needed
*/
public class TemporalGraph<V>
{
//region --[Classes: Pr... | 35.007692 | 127 | 0.604702 |
04a66399f3e5bd9fed1a6cbfa42ca2ae66950d66 | 1,072 |
/**
*
* @author user10
*/
public class UseVehicle {
public static void main(String[] args) {
Vehicle auto1 = new Vehicle();
auto1.printStates();
auto1.speedUp(5);
auto1.printStates();
auto1.changeGear(2);
auto1.printStates();
... | 24.363636 | 83 | 0.487873 |
1f9ab7a720f6e52a7ad8ccca55fb558d78b42b9f | 1,946 | package liquibase.parser.core.yaml;
import liquibase.changelog.ChangeLogParameters;
import liquibase.changelog.DatabaseChangeLog;
import liquibase.exception.ChangeLogParseException;
import liquibase.resource.ResourceAccessor;
import org.junit.Test;
import java.io.ByteArrayInputStream;
import java.io.IOException;
impo... | 34.140351 | 134 | 0.571429 |
a3b80bc3e0410e23a31a24aaeca4f50a09789c81 | 1,009 | package com.dungeonstory.ui.view.admin.grid;
import java.util.EnumSet;
import com.dungeonstory.backend.data.enums.Language;
import com.vaadin.data.converter.StringToBooleanConverter;
import com.vaadin.data.provider.ListDataProvider;
import com.vaadin.icons.VaadinIcons;
public class LanguageGrid extends ReadOnlyGrid<... | 40.36 | 151 | 0.747275 |
f82720ac6ae71e72d093248a4e42c3f98c17a0e0 | 279 | package io.ketill.psx;
import io.ketill.AdapterSupplier;
import org.jetbrains.annotations.NotNull;
class MockPsxController extends PsxController {
MockPsxController(@NotNull AdapterSupplier<?> adapterSupplier) {
super("psx", adapterSupplier, null, null);
}
}
| 21.461538 | 68 | 0.752688 |
8870bf959179950a76ac32e2cc24a712b3e6a388 | 1,131 | package pavlik.john.dungeoncrawl.model.events.conditionals;
import java.util.Objects;
import pavlik.john.dungeoncrawl.model.Character;
import pavlik.john.dungeoncrawl.model.events.Conditional;
import pavlik.john.dungeoncrawl.model.events.XMLAttribute;
/**
* PlayerHasMoneyConditional checks to see if the pl... | 26.302326 | 95 | 0.687887 |
c3901a0e2e9e73c1bad22138cb32b276a3db4279 | 3,004 | package com.codepath.moviemoose;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.ListView;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.reflect.TypeToken;
import com.loopj.android.http.*;
i... | 35.341176 | 110 | 0.661784 |
61cb12051356bc82eefd6f5fdf5a9c31c0b8bd4c | 569 | package com.sqh.market.constant;
/**
* 这里定义了一些结果代码
*/
public class Codes {
/**
* 登录检查结果代码
*/
public enum LOGIN_CHECK_CODES {
LOGIN_SUCCESS(1, "登陆成功"),
LOGOUT(-1, "未登录或已注销"),
UNCHECK(0, "不需要进行登录检查");
int code;
String message;
LOGIN_CHECK_CODES(int co... | 17.78125 | 53 | 0.502636 |
83903e4501b2fcdce45d834aa39d4c373799b33c | 1,398 | package com.gnopai.ji65.interpreter.instruction;
import com.gnopai.ji65.Cpu;
import com.gnopai.ji65.InstructionType;
import com.gnopai.ji65.interpreter.Operand;
import static java.lang.Byte.toUnsignedInt;
public class Sbc implements Instruction {
private final OperandResolver operandResolver = new OperandResolve... | 35.846154 | 108 | 0.716023 |
5ab8c5e7fbf118522e1de821d2832bddea187f57 | 14,765 | /*
* $Id$
* $URL$
*
* ====================================================================
* Ikasan Enterprise Integration Platform
*
* Distributed under the Modified BSD License.
* Copyright notice: The copyright for this software and a full listing
* of individual contributors are as shown in the packaged... | 35.238663 | 162 | 0.631019 |
e5a89701a89598d2723aedb13b5155818d81c4d4 | 65 | package com.amituofo.xscript;
public class ScriptContainer {
}
| 10.833333 | 30 | 0.784615 |
304a84d581a186746fe5a40d0d74dbece388de32 | 2,077 | package com.company.android.dictionary.upload.io;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.Reader;
import java.util.ArrayList;
import java.util.List;
import java.util.StringTokenizer;
import android.util.Log;
public class DictionaryReader implements IDictionaryReader {
private Buff... | 25.024096 | 97 | 0.717862 |
e68d725b0f4cbd8677d5266a724cec350fa714ca | 3,951 | package id.sch.smktelkom_mlg.project2.xirpl109103235.spotin;
import com.cloudant.sync.datastore.DocumentRevision;
import java.util.HashMap;
import java.util.Map;
class Task {
// Doc type diperlukan untuk mengidentifikasi dan mengelompokkan tipe kolektif di datastore.
private static final String DOC_TYPE = "... | 23.945455 | 101 | 0.59757 |
088c240451f9ffa2e032c0b8c9c1dbb8e8ec80b8 | 2,919 | /*
* Copyright (c) 2002-2016 Gargoyle Software 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 applica... | 38.407895 | 115 | 0.717026 |
5b62e106e85d60635d76edacd8b2272be145b071 | 986 | package com.example.procare.main.pets.newPets;
import android.content.ContentValues;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import com.example.procare.database.ProCareDatabase;
import com.example.procare.database.ProCareDbHelper;
public class NewPetsModel {
ProCareDbHel... | 29.878788 | 85 | 0.737323 |
19f4f2d92e1e021d99dae5cd2df867f7d8781c8f | 4,956 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package stats;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.S... | 40.958678 | 153 | 0.503632 |
62d792c99ef347c056a089615b9b98db8a47967b | 73,650 | /*
* Decompiled with CFR 0.150.
*
* Could not load the following classes:
* ag
* bz
* net.runelite.mapping.Export
* net.runelite.mapping.Implements
* net.runelite.mapping.ObfuscatedName
* net.runelite.mapping.ObfuscatedSignature
*/
import java.lang.reflect.Array;
import net.runelite.mapping.Export;
imp... | 43.476978 | 342 | 0.447522 |
3ea9238ef1d9510275bd4e910706cca8537f5a98 | 326 | package org.happykit.happyboot.sys.model.query;
import org.happykit.happyboot.page.PageQuery;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 分页查询对象
*
* @author shaoqiang
* @version 1.0 2020/04/01
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class SysPermissionPageQueryParam extends PageQuery... | 17.157895 | 60 | 0.766871 |
d577738ca0ce29acf08c37528ca43c307976c757 | 1,449 | package pl.kkowalewski.recipeapp.service.unitofmeasure;
import org.springframework.stereotype.Service;
import pl.kkowalewski.recipeapp.command.UnitOfMeasureCommand;
import pl.kkowalewski.recipeapp.converter.tocommand.UnitOfMeasureToUnitOfMeasureCommand;
import pl.kkowalewski.recipeapp.repository.UnitOfMeasureRepositor... | 41.4 | 90 | 0.731539 |
4a95265cca7e06ac9ce708e10fcf412c259a64c9 | 1,148 | package com.ratemarkt.models;
import java.util.ArrayList;
import java.util.List;
import org.immutables.gson.Gson;
import org.immutables.value.Value;
@Gson.TypeAdapters
@Value.Immutable
public interface Pax {
List<Integer> getChildrenAges();
Integer getNumberOfAdults();
default String toPaxString() {
List<Str... | 22.076923 | 73 | 0.700348 |
b33aca577e74340305df624acc716cfa480be691 | 1,647 | package com.ljc.autapi.config;
import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler;
import org.springframework.aop.interceptor.SimpleAsyncUncaughtExceptionHandler;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.AsyncConfigurer;
import ... | 31.673077 | 79 | 0.724954 |
ce71684b78336bbd9922a9e6052b36eb29b442ef | 9,368 | import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.GridLayout;
import java.awt.Paint;
import java.awt.Rectangle;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.geom.Rectangle2D;
imp... | 42.776256 | 167 | 0.713706 |
36d50ed9519b1b900f315ca5de86dcbb4642387a | 745 | package jp.sf.amateras.stepcounter;
import java.io.File;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IWorkspace;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
public class EclipseFileEncodingDetector impl... | 24.032258 | 74 | 0.759732 |
a799fd1fadad78fe74d33356b491ff9d0a264840 | 5,081 | package com.masanta.ratan.leetcode.study.plan.algorithms.one;
public class ReverseBits {
/*
* Problem statement
* Reverse bits of a given 32 bits unsigned integer.
* Note:
* Note that in some languages, such as Java, there is no unsigned integer type.
* In this case, both input and output will be given a... | 40.325397 | 118 | 0.670931 |
dde3aa5a7715573816f58ce08d56015e4d8e179f | 368 | package gwt.react.mobx.todo.client.components;
import gwt.react.client.proptypes.BaseProps;
import gwt.react.mobx.todo.client.state.AppState;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;
@JsType(isNative=true, namespace = JsPackage.GLOBAL, name="Object")
public class AppStateProps exte... | 30.666667 | 67 | 0.8125 |
83d5f285577530e249cf12ae4cf5195c894762b6 | 2,242 | package com.mapofzones.cleaner.processor;
import com.mapofzones.cleaner.data.constants.DateConstants;
import com.mapofzones.cleaner.data.entities.ActiveAddress;
import com.mapofzones.cleaner.data.entities.TransactionStatistics;
import com.mapofzones.cleaner.data.entities.TransferStatistics;
import com.mapofzones.clean... | 50.954545 | 124 | 0.787244 |
4107b5b31e94fba290cc91fa79ba4019880c53be | 725 | package com.klinksoftware.neurallife.item;
import com.klinksoftware.neurallife.LifeCanvas;
import com.klinksoftware.neurallife.simulation.Board;
import com.klinksoftware.neurallife.simulation.Configuration;
import java.awt.Color;
import java.util.Random;
public class ItemRobot extends Item {
public ItemRobot(Con... | 29 | 95 | 0.728276 |
42988a0f42e7c645bd592cf95860fe9083e5348e | 38,971 | package com.tinymooc.handler.team.controller;
import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.ht... | 46.783914 | 178 | 0.650561 |
bb0faa15bec2657061bd5c331026ba78bf89f121 | 1,951 | package space.polarfish.musicmeta.rest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import space.polarfish.musicmeta.data.model.Genre;
import space.polarfish.musicmeta.data.model.MusicVideoM... | 37.519231 | 127 | 0.721681 |
8f570918296f0c5aa7a96962ba28caa5e31c4c76 | 824 | package vo;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown = true)
public class OriginalRequest
{
private String source;
private Data data;
private String version;
public String getSource ()
{
return source;
}
public void setSou... | 16.816327 | 89 | 0.592233 |
ec8f1a4b6a3ebcfcffa877cd71705232f95b2bd3 | 426 | package me.codpoe.gankio.main.gank.item;
import me.drakeet.multitype.Item;
/**
* Created by Codpoe on 2016/11/14.
*/
public class GankImgSubItem extends GankSubItem implements Item {
public String mImgUrl;
public GankImgSubItem(String id, String title, String who, String type, String publishAt, String url... | 25.058824 | 122 | 0.704225 |
1c19936d8baaa454e9c070d9088bd11a09138441 | 1,211 | package projects.nyinyihtunlwin.news.events;
import android.content.Context;
import java.util.List;
import projects.nyinyihtunlwin.news.data.vo.NewsVO;
/**
* Created by Dell on 12/2/2017.
*/
public class RestApiEvents {
public static class EmptyResponseEvent {
}
public static class ErrorInvokingAPI... | 22.425926 | 99 | 0.625103 |
3b7110668123ee44dbdc1efe8acc6e2f79f0fc70 | 2,807 | /*
* 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 cn.hanbell.wco.comm;
/**
*
* @author kevindong
*/
public class MiniProgramSession {
private String openId;
private... | 20.05 | 79 | 0.602779 |
6c7635769be02956e552cfcd6c90e50db636a12c | 1,740 | /**
* Project Name: weixin-boot
* Package Name: com.guhanjie.misc
* File Name: TestThreadPoolTaskExecutor.java
* Create Date: 2016年10月3日 上午10:59:16
* Copyright (c) 2008-2016, guhanjie All Rights Reserved.
*/
package com.guhanjie.misc;
import java.util.Date;
import javax.annotation.Resource... | 31.071429 | 113 | 0.638506 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.