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 |
|---|---|---|---|---|---|
7d3910ddb2ea292b59cd76d0572f7fd2e8802f80 | 1,846 | /**
* Filename: TVGuideListAdapter.java
* Author: Peter Piech
* Date: 3/15/2013
* Description: TVGuideListAdapter class draws the ListView
* from the TVGuideFragment class.
*/
package edu.rpi.rpimobile;
import java.util.List;
import android.content.Context;
import android.content.Intent;
import an... | 23.666667 | 106 | 0.752438 |
177befd36b7455ac10111efc41a8ae5e26d9a7d8 | 277 | package org.bf2.cos.catalog.camel.maven.connector.validator;
import org.bf2.cos.catalog.camel.maven.connector.support.Connector;
import com.fasterxml.jackson.databind.node.ObjectNode;
public interface Validator {
void validate(Connector connector, ObjectNode schema);
}
| 27.7 | 67 | 0.812274 |
bbbb113a004554dac17b2bf5ce157e742838d454 | 8,877 | /*
* 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 m... | 35.086957 | 98 | 0.613946 |
6534ad5219396035faf2025e454109ec0595289e | 1,835 | package com.liangwenchao.android.utils.bitmap;
import android.content.Context;
import android.graphics.Bitmap;
import android.os.Environment;
import android.widget.Toast;
import java.io.File;
import java.io.FileOutputStream;
import java.util.UUID;
/**
* Created by LiangWenchao on 2016/8/5.
*/
public class BitmapUt... | 28.671875 | 120 | 0.60545 |
1f8138c2ca007c4e3488025f0e18ab1f3b707c4a | 1,721 | package leetcode.medium;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
@author :
Gaurav Kaushik
https://leetcode.com/kaushikgaurav08/
https://www.linkedin.com/in/gvk28/
https://github.com/gauravkaushik
========================================================... | 24.585714 | 101 | 0.471238 |
59b7f11fdc4448f7a36ece106e7a1c3401c383a9 | 3,867 | import java.rmi.Naming;
import javax.swing.JOptionPane;
public class Client {
static String state = null;
static Bank selected = null;
static int key = -1;
public static void main(String[] args) {
try {
// Requisita todos os Bancos com qual existe o "convênio"
Bank bank1 = (Bank) Naming.loo... | 33.051282 | 116 | 0.528575 |
aa0c4f7b3838de57d49ff6d098805bc5b16d8c58 | 1,578 | /*
* Copyright (c) 2015 Spotify AB.
*
* 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,... | 34.304348 | 96 | 0.739544 |
4bb312ef58101b802bd5feff45938f6196141752 | 1,725 | /*! (c) Copyright 2015 - 2018 Micro Focus or one of its affiliates. */
//
// Licensed under the Apache License, Version 2.0 (the "License");
// You may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Apache Licens... | 34.5 | 122 | 0.764058 |
abbd5e35cddeb24f985cbb07513d45120b69b759 | 2,101 | /* Ball.java created on Dec, 19, 2016
*
* Copyright (c) <2016> Pin-Ying Tu <dbi1463@gmail.com>
*
* This file is part of MVCExample under the MIT license.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"... | 30.449275 | 81 | 0.693003 |
a03b1086709f7077892e500d540d177de68f3add | 12,545 | /* =============================================================================
*
* COPYRIGHT 2010 BBN Technologies Corp.
* 1300 North 17th Street, Suite 600
* Arlington, VA 22209
* (703) 284-1200
*
* This program is the sub... | 29.039352 | 81 | 0.706018 |
3fee3300bd8be2277c2a4ef114becc8e46e3513c | 391 | package com.github.forax.vmboiler.sample.script;
import java.util.Objects;
public class Binding {
private Type type;
public Binding(Type type) {
this.type = Objects.requireNonNull(type);
}
public Type type() {
return type;
}
public void type(Type type) {
this.type = type;
}
@Override... | 16.291667 | 48 | 0.644501 |
266c5845cf2fb49fbad3d6376b9dd519e2f72195 | 3,286 | /*
PLEASE DO NOT EDIT THIS FILE
*/
package cool;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Arrays;
import org.antlr.v4.runtime.ANTLRInputStream;
import org.antlr.v4.runtime.CommonTokenStream;
import org.antlr.v4.runtime.Token;
import org.antlr.v4.runtime.BaseErrorListener;
import o... | 28.573913 | 367 | 0.599817 |
dc5b562a87925a06a943d0e09fb2bb1abd225811 | 7,510 | /**
* 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... | 34.608295 | 109 | 0.696538 |
005a10c2167916e5607005a7fcbc0c7f252ef7d8 | 443 | package com.linkedin.samples.pf.dao;
import com.linkedin.samples.pf.dto.Customer;
import com.linkedin.samples.pf.dto.Order;
import java.io.Serializable;
import java.util.Collection;
/**
*
* @author SIGINT-X
*/
public interface OrderDAO<M> extends Serializable {
M getOrders();
M getOrders(Customer cu... | 17.038462 | 51 | 0.697517 |
5c63e49d2b981a52efc7617d79d843fedd30ece8 | 9,261 | package services;
import java.sql.Connection;
import java.sql.SQLException;
import org.bson.Document;
import org.json.JSONException;
import org.json.JSONObject;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoDatabase;
import db.Database;
import tools.CommentTools;
import tools.ErrorJSON;
... | 38.111111 | 137 | 0.788036 |
5517624b0cb49937d26aa81d99c776bdb2cf56d9 | 4,623 | package com.haxademic.demo.draw.shapes;
import java.util.ArrayList;
import com.haxademic.core.app.P;
import com.haxademic.core.app.PAppletHax;
import com.haxademic.core.app.config.AppSettings;
import com.haxademic.core.app.config.Config;
import com.haxademic.core.debug.DebugView;
import com.haxademic.core.draw.contex... | 33.258993 | 136 | 0.758382 |
f6601abf5b92880054b932e04f3462a9deb004ea | 910 | package com.github.jstN0body.adventofcode.java.day12;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class PassagePathing {
public static void main(String[] args) {
List<String> caves = new ArrayList<>();
for (String s : args) {
String[] ar = s.spli... | 32.5 | 94 | 0.582418 |
36f2260fdce2e084771df836b682fe38b1f0eca4 | 1,391 | // Copyright 2000-2021 Nokia
//
// Licensed under the Apache License 2.0
// SPDX-License-Identifier: Apache-2.0
//
package com.nextenso.radius.agent.impl;
import com.nextenso.proxylet.radius.RadiusAttribute;
import com.nextenso.proxylet.radius.acct.DisconnectUtils;
/**
* The Disconnect Request (RFC 5176).
*/
publi... | 23.183333 | 126 | 0.74982 |
292ffc9a55a0af72614b0f87c449c6bbc373ebc3 | 12,527 | /*
* 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 ... | 37.618619 | 103 | 0.586014 |
ee1bcd2fc5a0a0e071a6254bfe8632520d483ce5 | 3,878 | package jetbrains.mps.lang.actions.testLanguage.constraints;
/*Generated by MPS */
import jetbrains.mps.smodel.runtime.base.BaseConstraintsDescriptor;
import jetbrains.mps.smodel.runtime.ConstraintFunction;
import jetbrains.mps.smodel.runtime.ConstraintContext_CanBeParent;
import org.jetbrains.annotations.NotNull;
im... | 61.555556 | 297 | 0.825168 |
c3a59191674cd91f731f317fdb13df1f36766d90 | 1,631 |
package frc.robot.commands;
import edu.wpi.first.wpilibj2.command.CommandBase;
import frc.robot.Constants;
import frc.robot.subsystems.drivetrainsub;
//commented out lines are for distance-based autonomous (using encoders)
//current lines are for time-based autonomous
public class autoDrive extends CommandBase{
... | 22.342466 | 77 | 0.637032 |
5d013a83f12060a7b71cd6daacb1b14811b17a71 | 225 | package com.demofamilies.app.base;
import android.support.v7.app.AppCompatActivity;
/**
* author: xujiaji
* created on: 2018/5/18 10:30
* description:
*/
public abstract class BaseActivity extends AppCompatActivity
{
}
| 17.307692 | 60 | 0.755556 |
aa84945e2cd50da8988697178b5525924e1adc02 | 8,791 | package com.service.impl;
import java.sql.Timestamp;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.dao.StayRegisterDao;
import com.page.Page;
import com.p... | 27.996815 | 129 | 0.77568 |
31d6a0fcdc6d44e400c595687d9f77edf4458511 | 2,196 | package jef.common;
import jef.common.Configuration.ConfigItem;
import jef.common.log.LogUtil;
import jef.tools.StringUtils;
/**
* 所有配置类的基类
* @author Administrator
*
*/
public abstract class Cfg {
static class Config implements ConfigItem{
String key;
public Config(String key){
this.key=key;
}
@Overri... | 19.263158 | 80 | 0.653461 |
40fba157552366f0d5f194f626e5fe13a9b6681b | 2,209 |
package edu.rice.cs.hpcviewer.ui.handlers;
import java.util.List;
import javax.inject.Named;
import org.eclipse.e4.core.di.annotations.Execute;
import org.eclipse.e4.ui.di.AboutToShow;
import org.eclipse.e4.ui.model.application.MApplication;
import org.eclipse.e4.ui.model.application.ui.basic.MWindow;
import org.e... | 30.680556 | 88 | 0.749208 |
4ddb29a7f0fe1a7518cac2cd19c85d05658b1243 | 115 | class C {
/**
* Some method.
*
* @param value some (©) param.
*/
abstract void m(int value);
} | 14.375 | 38 | 0.521739 |
764d3eed3e1ddee68439bd8c79193e98f2c6f5b2 | 3,457 | /*
* Copyright 2013, 2014 Megion Research & Development GmbH
*
* 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... | 27.007813 | 107 | 0.680069 |
d709834be8a73ea581d7081af0340a99c3bf4c62 | 1,014 | package com.logginghub.logging.filters;
import com.logginghub.logging.LogEvent;
import com.logginghub.utils.filter.Filter;
/**
* A Filter<LogEvent> that passes events whose message matches exactly the string passed in at
* construction time.
*
* @author James
*/
public class MessageIsFilter implement... | 23.045455 | 95 | 0.588757 |
e3d3dc522f16119aa73588447180e4a2c8bdca0a | 865 | package no.nav.repository.pensjon.common.cache;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import net.sf.ehcache.CacheException;
import net.sf.ehcache.Ehcache;
import net.sf.ehcache.Element;
public class LoggingElementPutCacheEventListener extends DefaultCacheEventListener {
private final Logger l... | 30.892857 | 136 | 0.721387 |
e2c942168e14c8e1f4621ebec2cb6b25e63afe3d | 443 | package project.marketbot.models.pojo;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import project.marketbot.models.db.CompanyIndicators;
/**
* Retrieved from MarketWatch
*/
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class MarketWa... | 19.26087 | 53 | 0.805869 |
6513fc3e361824b81ed5158fbf2436675ab14cb4 | 1,132 | /*
* Copyright 2015 Matthew Aguirre
*
* 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... | 28.3 | 75 | 0.691696 |
279a46ea8f2f36d62d7cb85711bfccf1a0be8940 | 371 | package activitystreamer.commands.processors.impl;
import activitystreamer.command.Command;
import activitystreamer.commands.processors.CommandProcessor;
public class AbstractCommandProcessor<T extends Command> implements CommandProcessor<T> {
@Override
public void processCommand(T command) {
}
protected ... | 20.611111 | 89 | 0.784367 |
6cbde884ce72e2c346eef61a3d7e2ae1f512b2a1 | 1,596 | /**
* Copyright © 2015 Christian Wulf, Nelson Tavares de Sousa (http://teetime-framework.github.io)
*
* 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/licens... | 33.25 | 96 | 0.743734 |
e749a14994348d58e60fd452e28a860444d9d289 | 1,690 | package io.shiftleft.overflowdb.util;
import org.apache.tinkerpop.gremlin.process.traversal.util.FastNoSuchElementException;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/**
* Subclass-safe variant of MultiIterator
*/
public final class MultiIterator2<T... | 23.802817 | 86 | 0.65503 |
5817067afcebd61455ff5f90613520c3010956ca | 1,633 | package io.github.muxiaobai.common.ConvertUtil;
import java.io.*;
import java.util.Iterator;
import java.util.Set;
import java.util.TreeSet;
public class DuplicateFile {
private void load(Set set, String path){
BufferedReader reader= new BufferedReader(new InputStreamReader(this.getClass().getResourceAs... | 28.649123 | 116 | 0.540723 |
fd40bb26326601e271ac4a57a7a0e2a48b12be28 | 2,453 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.irobot.a;
import java.util.Locale;
// Referenced classes of package com.irobot.a:
// g, d
class g$25
implements j.a
{
public void a(j.b... | 29.914634 | 90 | 0.483082 |
dc449fb16a406855ff03e054aeda972a2530a5cd | 1,550 | /*
* Copyright (C) 2016 The Dagger 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 applicable law or ag... | 27.678571 | 99 | 0.743226 |
cde87b4b1c1c5f705f989e30e1bc4dc635c8e693 | 3,708 | import java.util.*;
import org.junit.Test;
import static org.junit.Assert.*;
// LC1296: https://leetcode.com/problems/divide-array-in-sets-of-k-consecutive-numbers/
//
// Given an array of integers nums and a positive integer k, find whether it's possible to divide
// this array into sets of k consecutive numbers.
/... | 33.405405 | 97 | 0.514293 |
fd436f0c1339f661556037866c01658a4b3d1cc5 | 69 | package test;
public final class Simple {
public Simple() { }
}
| 11.5 | 27 | 0.652174 |
14337aa692c6bfc99ef63bf3300e73112bd5218b | 6,283 | package com.echecs.api.web.controller;
import com.echecs.api.model.*;
import com.echecs.api.shared.MovementPieces;
import com.echecs.api.shared.SequenceGeneratorService;
import com.echecs.api.Repository.SessionRepo;
import org.bson.json.JsonObject;
import org.springframework.beans.factory.annotation.Autowired;
impo... | 34.333333 | 257 | 0.652714 |
47fa11e2682f763bfa46634afbe0801384736268 | 1,538 | /**
* Licensed to the Austrian Association for Software Tool Integration (AASTI)
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. The AASTI licenses this file to you under the Apache License,
* Version 2... | 29.576923 | 94 | 0.704161 |
f93e1664c4b79f1eafcd9d6658bb6cdd85eaad27 | 579 | package uk.gov.register.util;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import java.io.IOException;
public class ToArrayConverter extends JsonSerializer<Object> {
public ToArrayConverter() {
... | 27.571429 | 111 | 0.74266 |
34a7056e519ed02ea1d98dbdca3c79bcdd28db1b | 1,312 | import dagger.MyApplicationLoader;
import org.junit.Test;
import play.Application;
import play.ApplicationLoader;
import play.Environment;
import play.mvc.Http;
import play.mvc.Result;
import play.test.Helpers;
import play.test.WithApplication;
import java.util.Arrays;
import java.util.List;
import java.util.TimeZone;... | 30.511628 | 102 | 0.722561 |
7d646d5295b60e8cf0047df615de292eae419d2c | 248 | package kr.webgori.lolien.discord.bot.dto.league;
import java.time.LocalDateTime;
import lombok.Builder;
import lombok.Data;
@Builder
@Data
public class LeagueDto {
private int idx;
private String title;
private LocalDateTime createdDate;
} | 19.076923 | 49 | 0.790323 |
35b6414565b910432c65e05eb5aa0118d10dcbeb | 958 | package org.jetbrains.jps.builders.java;
import org.jetbrains.jps.ExtensionsSupport;
import java.io.File;
import java.io.IOException;
import java.util.Collection;
/**
* @author Eugene Zhuravlev
*/
public abstract class JavaSourceTransformer {
public static abstract class TransformError extends IOException {
... | 25.891892 | 154 | 0.76096 |
c39eb939094ded2520afb4ac19c44c88c3b7b39d | 277 | package com.randomappsinc.simpleflashcards.quiz.constants;
import androidx.annotation.IntDef;
@IntDef({
QuestionType.MULTIPLE_CHOICE,
QuestionType.FREE_FORM_INPUT
})
public @interface QuestionType {
int MULTIPLE_CHOICE = 0;
int FREE_FORM_INPUT = 1;
}
| 21.307692 | 58 | 0.747292 |
6ed8fb186e71e48ea3ad55aec6166da5f5439707 | 87 | package edu.tum.cs.i1.pse;
public class House extends AbstractCompositeComponent {
} | 17.4 | 55 | 0.793103 |
b9ea02dbad56d5264cd107d761370e841ebbaac0 | 10,842 | package io.github.syncmc.murdersleuth.listeners;
import java.util.Map.Entry;
import java.util.UUID;
import io.github.syncmc.murdersleuth.enums.GameString;
import io.github.syncmc.murdersleuth.enums.PlayerRole;
import io.github.syncmc.murdersleuth.events.GamePlayerEvent.MurdererAcquiredBowEvent;
import io.github.syncm... | 53.408867 | 119 | 0.513374 |
f454283a4681b27f930fb1b4dd621b116d1867d6 | 1,592 | /**
* Copyright (C) 2002 Mike Hummel (mh@mhus.de)
*
* 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... | 23.072464 | 75 | 0.631281 |
f71f6ab158cce25bbf9b4c01240bf00a6fb793dc | 1,122 | package me.panavtec.cleancontacts.di;
import android.app.Application;
import com.squareup.picasso.Picasso;
import dagger.Module;
import dagger.Provides;
import javax.inject.Singleton;
import me.panavtec.cleancontacts.di.qualifiers.UiThread;
import me.panavtec.cleancontacts.presentation.CleanContactsViewInjector;
impor... | 32.057143 | 95 | 0.807487 |
ee50c4d6e77a798909560280c09d95eb9c700e28 | 10,578 | package com.chen.data;
import android.util.Log;
import android.widget.Button;
import android.widget.Toast;
import com.chen.activity.BaseActivity;
import com.chen.activity.R;
import com.chen.handle.HttpUtil;
import com.chen.handle.Util;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObj... | 38.326087 | 166 | 0.54065 |
29df529816ae5b9db4450d77849883878a2b1712 | 2,481 | package net.jadfreex.pv.logic;
import java.util.HashMap;
import java.util.Map;
import net.jadfreex.pv.model.Articulo;
import net.jadfreex.pv.model.Contenedor;
/**
*
* @author 170828 Grupo Salinas
*/
public abstract class ContenedorLogic<T extends Contenedor> {
abstract T newInstance();
pub... | 33.986301 | 93 | 0.598146 |
11c1f0a8752fd4e462dbaba326ae8d422448b454 | 1,907 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.mdrsolutions.web;
import com.mdrsolutions.web.mp3.MP3ReadDirectory;
import com.mdrsolutions.web.mp3.model.MP3Tag;
import java.io.IOException;
import java.util.List;
import javax.servlet.ServletException;
imp... | 34.053571 | 140 | 0.718406 |
c823dd4a2ea6bf1ecda22de1219d23b88f01b14f | 446 | package com.bulain.sort;
public class BubbleSort implements Sort {
public void sort(int[] params) {
int temp;
for (int i = params.length - 1; i > 0; i--) {
for (int j = 0; j < i; j++) {
if (params[j] > params[j + 1]) {
temp = params[j];
... | 24.777778 | 53 | 0.390135 |
9d0cd20658029af27b98b038ff4b19956633eaf5 | 6,045 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. The ASF licenses this file to You
* 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
*
* ... | 41.40411 | 91 | 0.726882 |
24e35b465dc7412280d3935d794e14017a80b592 | 1,411 | // ============================================================================
//
// Copyright (C) 2006-2018 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have... | 35.275 | 119 | 0.64068 |
7ed5af52c24b51e799407be30f2934fb6783d1c2 | 1,206 | package org.clafer.ir;
import org.clafer.common.Check;
import org.clafer.domain.Domain;
/**
* Returns array[index].
*
* @author jimmy
*/
public class IrSetElement extends IrAbstractSet {
private final IrSetArrayExpr array;
private final IrIntExpr index;
IrSetElement(IrSetArrayExpr array, IrIntExpr i... | 22.333333 | 94 | 0.613599 |
df179079a3f5f1402c8c75f12ebfb7243c98c9ac | 3,120 | //
// Copyright (c) 2008-2011, Kenneth Bell
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, ... | 30.291262 | 90 | 0.661218 |
c37190aff690988555240af97d190853fab17ebd | 3,423 | /*
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* The Universal Permissive License (UPL), Version 1.0
*
* Subject to the condition set forth below, permission is hereby granted to any
* person obtaining a copy of ... | 46.256757 | 100 | 0.748758 |
40f17ae565b4a882a171cc2530b0e8833497c000 | 2,015 | package org.venity.jphp.ext.android.android.classes;
import com.gluonhq.charm.glisten.control.AppBar;
import com.gluonhq.charm.glisten.visual.MaterialDesignIcon;
import javafx.scene.Node;
import org.venity.jphp.ext.android.AndroidExtension;
import org.venity.jphp.ext.android.fx.classes.UXControl;
import org.venity.jph... | 24.573171 | 78 | 0.691315 |
2a24881f67fa90426db1691b6aa6bcb40ab50c1c | 11,983 | /*
* 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... | 31.785146 | 86 | 0.669365 |
90d773eb14c7724ffc4056a1885578d59ee0391c | 1,104 | package org.aikodi.jlo.model.expression;
import org.aikodi.chameleon.core.element.ElementImpl;
import org.aikodi.chameleon.core.lookup.LocalLookupContext;
import org.aikodi.chameleon.core.lookup.LookupException;
import org.aikodi.chameleon.core.reference.CrossReferenceTarget;
import org.aikodi.chameleon.core.validatio... | 32.470588 | 121 | 0.787138 |
600d92109482cbda8df3aaac9f435510f5a1a9be | 5,274 | /*
* Copyright 2006-2009, 2017, 2020 United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The NASA World Wind Java (WWJ) platform is licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this f... | 41.203125 | 119 | 0.669132 |
88af8ca7ce08cad690138ebf0c52588b9abcbb2a | 3,007 | /* */ package org.springframework.instrument.classloading.weblogic;
/* */
/* */ import java.lang.instrument.ClassFileTransformer;
/* */ import java.lang.instrument.IllegalClassFormatException;
/* */ import java.lang.reflect.InvocationHandler;
/* */ import java.lang.reflect.Method;
/* */ import jav... | 29.480392 | 177 | 0.502162 |
2fc80ef648e6b77960492edbe100c063f65d0a3d | 928 | package ru.arsmagna;
import org.jetbrains.annotations.*;
import java.util.ArrayList;
import java.util.Collection;
/**
* Секция INI-файла.
*/
public final class IniSection
{
/**
* Имя секции.
*/
public String name;
/**
* Строки.
*/
public Collection<IniLine> lines;
//======... | 16.571429 | 79 | 0.422414 |
73454f31d34a7b8ac63328502699c5d1e2e02f62 | 1,180 | package org.gecko.config;
import org.gecko.core.gen.converter.DataTypeConverter;
import org.gecko.core.gen.converter.WidgetTypeConverter;
import org.gecko.core.gen.parser.BeetlParser;
import org.gecko.core.gen.parser.FreeMarkerParser;
import org.gecko.core.gen.parser.Parser;
import org.gecko.core.gen.parser.ParserComp... | 26.818182 | 60 | 0.733898 |
e80fea920fd9391e466c60774ec61f45a21c0e72 | 2,456 | package com.insulin.shared.constants;
/**
* Large class of constants used for email, starting from the configuration to the actual message passed
* to the user.
*/
public final class EmailConstants {
public static final String SIMPLE_MAIL_TRANSFER_PROTOCOL = "smtps";
public static final String FROM_EMAIL = ... | 68.222222 | 174 | 0.724756 |
a509c934b76e8649a255365241eced6df7dca8e5 | 2,583 | package factory;
import factory.validator.TransactionValidator;
import factory.validator.ValidationResult;
import fileio.repository.BanknoteRepository;
import fileio.repository.CoinRepository;
import fileio.repository.DatabaseResult;
import model.Currency;
import model.Transaction;
import state.*;
import state.Transac... | 34.44 | 116 | 0.75842 |
ab404b0bcfe42cd6437ccb11d64ac70f4a1e6e05 | 2,105 | package com.bazl.dna.database.compare.constants;
import com.bazl.dna.common.PublicConstants;
public class QuickCompareConstants extends PublicConstants {
/**
* 查询数不能大于线程数
*/
public static final int COMPARE_PAGE_SIZE = 10;
/**
* 队列类型
*/
public static final String QUEUE_TYPE = "quickCompareDirect";
/... | 30.507246 | 118 | 0.767221 |
d6940bd3f68e8d24ef95b9c72da19ad9aba9a762 | 3,544 | /**
* Copyright (c) 2014, 2015 ControlsFX
* 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 o... | 30.033898 | 86 | 0.646727 |
47d5045fc71a5b3ad92c8faacaf354550b485ae7 | 1,615 | package sg.ncl.service.experiment.validation;
import io.jsonwebtoken.Claims;
import lombok.extern.slf4j.Slf4j;
import sg.ncl.common.authentication.Role;
import sg.ncl.common.exception.base.ForbiddenException;
import sg.ncl.common.jwt.JwtToken;
import sg.ncl.service.realization.domain.Realization;
import java.util.Enu... | 35.888889 | 190 | 0.679257 |
975448796be790ca2edc6af270223f99f336798e | 2,481 | /*-
* #%L
* PhantomJS Maven Core
* %%
* Copyright (C) 2013 - 2017 Kyle Lieber
* %%
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation th... | 31.807692 | 80 | 0.731963 |
a46e64d903c1884e3a5788802ade9d524438bd57 | 2,034 | package jetbrains.mps.lang.context.defs.behavior;
/*Generated by MPS */
import jetbrains.mps.core.aspects.behaviour.BaseBehaviorAspectDescriptor;
import jetbrains.mps.core.aspects.behaviour.api.BHDescriptor;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.mps.... | 49.609756 | 451 | 0.826942 |
f898a9075314ef4b433eae8dd35cb1bd27290715 | 231 | package ro.msg.internship.timesheet.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import ro.msg.internship.timesheet.model.Psp;
public interface PspRepository extends JpaRepository<Psp, Integer> {
}
| 23.1 | 68 | 0.82684 |
d22e01685df008565b5bbd42135f9886eb0bc5c0 | 2,367 | package fr.openwide.core.wicket.more.link.descriptor.builder.state.terminal;
import org.apache.wicket.Page;
import org.apache.wicket.model.IModel;
import org.apache.wicket.request.resource.ResourceReference;
/**
* A state where the build can be terminated, returning the result of the build.
*/
public interface ILat... | 45.519231 | 117 | 0.782847 |
22c9a0ebed31119abf8297dd24f0cac712be78db | 1,211 | package com.nextbreakpoint.blueprint.designs.controllers;
import com.nextbreakpoint.blueprint.common.core.Controller;
import com.nextbreakpoint.blueprint.common.core.Json;
import com.nextbreakpoint.blueprint.common.events.DesignDocumentUpdateCompleted;
import com.nextbreakpoint.blueprint.designs.model.DesignChangedNot... | 36.69697 | 113 | 0.757225 |
ce401c97760d6ff5fde568f280748c1655925fc8 | 7,208 | package org.jboss.resteasy.cdi;
import org.jboss.resteasy.cdi.i18n.LogMessages;
import org.jboss.resteasy.cdi.i18n.Messages;
import org.jboss.resteasy.util.GetRestful;
import javax.decorator.Decorator;
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.context.RequestScoped;
import ja... | 39.604396 | 128 | 0.688957 |
5ba9a3e3f7a77d7fc0fc4c6dd1a0212e319725e2 | 1,159 | package cn.smile.smilemall.ware.service;
import cn.smile.common.utils.PageUtils;
import cn.smile.smilemall.ware.entity.WareSkuEntity;
import cn.smile.smilemall.ware.vo.SkuHasStockVo;
import cn.smile.smilemall.ware.vo.WareSkuLockVo;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
imp... | 21.462963 | 65 | 0.679034 |
c4cb61af9098501950b29fa8b8565933f57a7cf9 | 9,503 | package com.gmail.a93ak.andrei19.threads.MyAsync;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.Callable;
import java.util.concurrent.CancellationException;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Executor;
import java.util.concurrent.FutureTask;
import java... | 36.833333 | 177 | 0.651163 |
cf95c008cbc42897ed3dca5e57d44fdf68dab1ee | 335 | package com.dn.andrewphan.bixolonprinter;
/**
* Package: com.dn.andrewphan.bixolonprinter
* Created by andrew.phan
* on 5/24/18 10:01 AM
*/
import com.bixolon.printer.BixolonPrinter;
public class BixolonPrinterManager {
public class OutValue{
public int intValue;
}
static BixolonPrinter mBix... | 18.611111 | 44 | 0.728358 |
1a4ee9047d8fdd562447c3248e12802b2afa996e | 3,660 | /*
This file is part of the iText (R) project.
Copyright (c) 1998-2020 iText Group NV
Authors: iText Software.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3
as published by the Free Software Foundation ... | 43.058824 | 109 | 0.725683 |
4d78e120199e12078c54219de468ecb78e7a8636 | 8,334 | /*
* Copyright (c) 2008-2019 Haulmont.
*
* 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 agr... | 46.558659 | 130 | 0.736741 |
65ae144f6d529c38f04c15588504cee23d7a2d9e | 6,765 | package model.suffixtreebased.suffixtrees;
import model.genomes.WordArray;
/**
* Represents a Generalized Trie - each edge has only 1 char
* A string inserted to the Trie is the concatenation of labels from the root to a node with a key of that string
*/
public class Trie {
/**
* The root of the suffix tr... | 30.890411 | 121 | 0.539394 |
94fc515d3895cfe443401a1e9a41550efc889004 | 8,058 | /*
* Copyright 2016-2021 Micro Focus or one of its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | 42.410526 | 136 | 0.696327 |
407f2cfccc82f20a46277815bc5dbc27df3fc848 | 7,017 | package com.cognizant.databaseActivity;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayLis... | 32.943662 | 101 | 0.647998 |
a172d6dd0e6bed9d9b67e51e7bdfe45863b22f4d | 789 | package ru.job4j;
import net.jcip.annotations.ThreadSafe;
import java.util.concurrent.atomic.AtomicReference;
/**
* The {@code CASCount} is atomic non-blocking counter.
*
* @author Merkurev Sergei (merkurevsergei@yandex.ru)
* @version 0.1
* @since 0.1
*/
@ThreadSafe
public class CASCount {
private final At... | 18.785714 | 56 | 0.560203 |
f9f22258716b8927deec6340321ced2f7bad87e0 | 3,345 | /*
* Copyright (c) 2013 Yolodata, LLC, 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 app... | 32.794118 | 131 | 0.727952 |
cfe12eea3f5206de6d74a26960465759f999ccf6 | 261 | package net.datafaker.service;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
class FakerIDNTest {
@Test
void toASCIINoError() {
assertThat(FakerIDN.toASCII("hello")).isEqualTo("hello");
}
}
| 18.642857 | 65 | 0.712644 |
dcca8ae18eda02ad3fee1ed56589fccb33503cc1 | 1,162 | import java.awt.image.BufferedImage;
import java.awt.image.Raster;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import javax.imageio.ImageIO;
public class BmpToFile {
public static void main(String[] args) {
BufferedImage img = null;
try {
img = ImageIO.read(new File("... | 23.714286 | 81 | 0.517212 |
6eda24f6d53c9a8cc9247e775f1c750251df60b0 | 790 | package de.dseelp.database.api.storage;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
/**
* @author DSeeLP
* @since 0.1-ALPHA
*/
@AllArgsConstructor
@NoArgsConstructor
public class StringStorage implements StorageObject {
private String s;
@Override
public Object get() {
re... | 18.809524 | 57 | 0.626582 |
81779d1bd82076a6362eaff4b381a23a62ed4f60 | 5,501 | /*
* 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 ... | 34.167702 | 120 | 0.682603 |
1f678bc020e74aee8ae7f3c9bd3cde7244f2bfc6 | 2,734 | package seedu.address.storage;
import static seedu.address.commons.util.CollectionUtil.requireAllNonNull;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInpu... | 33.753086 | 105 | 0.721287 |
3dc45e5c5078aa4bb189562a09b65a76a532c7fe | 4,257 | /*
* Copyright 2017 Tran Le Duy
*
* 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 ... | 41.735294 | 101 | 0.662908 |
567ecebdcf455dc1143d7a94afb690eb1c7f0177 | 578 | package realm.service;
public enum RegisterExceptionEnum{
UNKOWN_ERROR(-1, "未知错误,注册失败"),
SUCCESS(0, "注册成功"),
Mail_Register_Exception(1, "mail注册失败"),
Phone_Register_Exception(2, "phone注册失败"),
VerificationCode_Expired(3,"验证码失效")
;
private Integer code;
private String m... | 20.642857 | 61 | 0.588235 |
714361474742451e770700f91ebf88baf6caea3d | 2,358 | package com.mdimension.jchronic.repeaters;
import java.util.Calendar;
import com.mdimension.jchronic.tags.Pointer;
import com.mdimension.jchronic.tags.Pointer.PointerType;
import com.mdimension.jchronic.utils.Span;
import com.mdimension.jchronic.utils.Time;
public class RepeaterMinute extends RepeaterUnit {
public... | 31.026316 | 105 | 0.686175 |
3f534b332577e8e6a6448eb0ad644a427adc0f27 | 549 | package com.ctsi.hook;
import com.ctsi.hook.waiqin.WaiqinHook;
import com.ctsi.hook.weixin.WxapkgHook;
import de.robv.android.xposed.IXposedHookLoadPackage;
import de.robv.android.xposed.callbacks.XC_LoadPackage.LoadPackageParam;
/**
* Created by wanglin on 2018/5/14.
*/
public class XposedInit implements IXpose... | 24.954545 | 87 | 0.772313 |
30df93f92fdb744bcd68a77682dc7fbcd92f10fa | 7,471 | /*
* This file is part of SpongeAPI, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Soft... | 42.448864 | 97 | 0.709142 |
583de5d8adf3da1cca0ca5d5aeb75aee3c6ea446 | 184 | package mytest.lookup;
/***
*
* @author Jshu
* @since 2021/3/10 21:13
*/
public class Teacher extends User{
public void showMe(){
System.out.println("i am teacher");
}
}
| 13.142857 | 39 | 0.630435 |
09998c16f15f4b00a56d9a905261976fa75ea6ff | 6,197 | /*
* Decompiled with CFR 0_79.
*
* Could not load the following classes:
* android.util.SparseArray
*/
package org.anddev.andengine.entity.layer.tiled.tmx;
import android.util.SparseArray;
import java.util.ArrayList;
import org.anddev.andengine.entity.layer.tiled.tmx.TMXLayer;
import org.anddev.andengine.entity... | 37.331325 | 120 | 0.703082 |
2f6fe3e187e742478b0c2991642864dca934dc19 | 432 | package net.mgsx.game.examples.platformer.tasks;
import net.mgsx.game.examples.platformer.inputs.PlayerController;
import net.mgsx.game.plugins.btree.annotations.TaskAlias;
@TaskAlias("onGround")
public class OnGroundCondition extends ConditionTask
{
@Override
public boolean match() {
PlayerController player = P... | 24 | 73 | 0.789352 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.