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 |
|---|---|---|---|---|---|
33fa9abf8eb1c962047adf4b697dbd2cd0c4aa24 | 1,223 | /*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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
... | 38.21875 | 96 | 0.714636 |
e8be29a2f12deec2ddf8149a6750ddf809fea8c4 | 10,388 | package org.hl7.cql.model;
import org.testng.annotations.Test;
import java.util.HashMap;
import java.util.Map;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import static org.testng.Assert.fail;
public class GenericClassSignatureParserTest {
@Test
public void ... | 56.456522 | 172 | 0.675876 |
323c89dc5676f3729ae70e27726757decb08e879 | 1,065 | package com.kwery.tests.dao.smtpconfigurationdao;
import com.kwery.dao.SmtpConfigurationDao;
import com.kwery.models.SmtpConfiguration;
import com.kwery.tests.util.RepoDashDaoTestBase;
import org.dbunit.DatabaseUnitException;
import org.junit.Test;
import java.io.IOException;
import java.sql.SQLException;
import sta... | 40.961538 | 92 | 0.828169 |
d15fc109625de12cdd072cbeaeac55740f1b9e1b | 746 | package com.jailmango.concurrence.imooc.course.basic.create;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* RunnableCase <br/>
* 用Runnable方式创建线程
*
* @author jailmango
* @CreateDate 2020/4/13
* @see com.jailmango.concurrence.imooc.course.basic.create
* @since R9.0
*/
public class RunnableCase ... | 19.631579 | 85 | 0.635389 |
55159f5d9a3de9c0d7e1171bff58e82edde75d95 | 1,482 | package ru.job4j.gui.listeners;
import ru.job4j.coordinates.Bombs;
import ru.job4j.coordinates.Flags;
import ru.job4j.coordinates.UnopenedCells;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.util.concurrent.atomic.AtomicBoolean;
/**
* Victory.... | 29.64 | 82 | 0.679487 |
f84503d4b2ca3d3e237f1f7be6e60e0d6ee0b146 | 521 | package com.github.jotask.rosjam.game.item;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
import com.github.jotask.rosjam.game.entity.Entity;
/**
* Item
*
* @author Jose Vives Iznardo
* @since 22/01/2017
*/
public class Item extends Entity {
@Overr... | 15.787879 | 55 | 0.683301 |
7f4ccce64b239dade5d53f8e9d57cc93fb07d046 | 247 | package pl.surreal.finance.transaction.auth.token;
public class TokenDecoderException extends Exception {
private static final long serialVersionUID = -6949482744676203323L;
public TokenDecoderException(String message) {
super(message);
}
}
| 27.444444 | 68 | 0.813765 |
5b167a8c168234c92a5d63c0b5ac353b7b59f4d9 | 357 | package com.cc.company.test;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.classic.Session;
import org.junit.Test;
public class TestSessionFactory extends BaseSpring {
@Test
public void testSessionFactory() {
SessionFactory sessionFactory = (SessionFactory) context
... | 21 | 58 | 0.789916 |
afb5f3333fd8d1fe8691e5827590432c31014479 | 847 | package br.com.todo.todoapp.dto;
import br.com.todo.todoapp.model.Todo;
import java.util.List;
public class TodoViewDTO {
private long todoCount;
private long completedTodosCount;
private long pendingTodosCount;
private List<Todo> todos;
public TodoViewDTO(List<Todo> todos, long todoCount, lon... | 22.289474 | 108 | 0.682409 |
cb29e44abd6ad62da556a802538320a4491a3aeb | 4,579 | package com.yn.test;
import org.objectweb.asm.ClassReader;
import org.objectweb.asm.ClassVisitor;
import org.objectweb.asm.ClassWriter;
import org.objectweb.asm.MethodVisitor;
import org.objectweb.asm.Opcodes;
import org.objectweb.asm.Type;
import org.objectweb.asm.commons.AdviceAdapter;
import org.objectweb.asm.comm... | 34.428571 | 131 | 0.583534 |
6eacbf8cfa4dc6a61164ff98dfbbe54cfd2e0afb | 817 | package com.kotakotik.ponderjs.commands;
import com.kotakotik.ponderjs.PonderJS;
import com.mojang.brigadier.Command;
import com.mojang.brigadier.context.CommandContext;
import net.minecraft.command.CommandSource;
import net.minecraft.util.text.ITextComponent;
import org.antlr.v4.runtime.misc.Triple;
public class Gen... | 34.041667 | 99 | 0.718482 |
7220dc780a97ae6e2b6b8806472aa4b0d8cad20f | 10,275 | /*******************************************************************************
* * Copyright 2012 Impetus Infotech.
* *
* * 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
*... | 39.825581 | 129 | 0.580438 |
f7cf531bc25dd00ea031e58e9bde30f90f41ca87 | 731 | package io.devfactory.example.designpattern.behavior.visitor.service;
import io.devfactory.example.designpattern.behavior.visitor.Visitable;
import io.devfactory.example.designpattern.behavior.visitor.Visitor;
// 원소 객체
public class Cart extends Product implements Visitable {
public Cart(String name, int price, int... | 22.84375 | 74 | 0.678523 |
8537b9c164273b57f00f576fd119a6590453f2f9 | 2,384 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 37.84127 | 128 | 0.780201 |
3b07aff83bf1425326133806b635f572c934bdf5 | 1,103 |
package com.amazonservices.mws.jaxb;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* <p>DensityUnitOfMeasure的 Java 类。
*
* <p>以下模式片段指定包含在此类中的预期内容。
* <p>
* <pre>
* <simpleType name="DensityUnitOfMeasure">
* <restr... | 22.510204 | 69 | 0.659112 |
6bbe295dcf06bc719bc27ca1659f2ba519a02581 | 3,981 | /*******************************************************************************
* Copyright 2016, 2018 elasql.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
*
* ... | 34.318966 | 134 | 0.723688 |
49a9b4931eb727bb78b50987ac6d2b57bb7b913f | 2,602 | package com.gabriel.demo.service;
import static org.mockito.Mockito.doReturn;
import java.util.List;
import java.util.Optional;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import or... | 33.792208 | 96 | 0.759416 |
53f4a22209762137eabd207a7e1ee72d3c8bef34 | 3,272 | package org.everit.json.schema.loader;
import static java.util.Arrays.asList;
import static java.util.Collections.emptyList;
import static java.util.Collections.emptyMap;
import static java.util.Collections.singletonList;
import static java8.util.stream.Collectors.toList;
import static org.junit.Assert.assertEquals;
i... | 39.902439 | 128 | 0.719132 |
888230541d4d8eca09487588e440962d459b4a47 | 516 | package js.tiny.container.mvc;
/**
* View manager creates named views. Views handled by this manager have a name unique per application.
*
* @author Iulian Rotaru
* @version final
*/
public interface ViewManager {
/**
* Return an instance of the view identified by view name. Implementation is free t... | 27.157895 | 124 | 0.697674 |
fcfb8c9a4f0e3d9765e41d77b49545a34815c893 | 919 | package com.cskaoyan.commonbean;
import java.io.Serializable;
public class ErrResponseVo implements Serializable {
private static final long serialVersionUID = 2286291722801200318L;
int status;
String msg;
public int getStatus() {
return status;
}
public void setStatus(int status) ... | 21.880952 | 70 | 0.645267 |
6565454f23c4df6c32bb3b82acbd7b5bb3789e1c | 4,282 | /*
* Copyright 2009-2016 European Molecular Biology Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 24.609195 | 156 | 0.650864 |
f7bb1777d2b34de573f8d769dfd491c058ba2a62 | 940 | class PokretanjeVisedimenzionalniiNizPretaga {
public static void main(String[] komandnaLinija) {
int[][][] p = {{{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}, {{11, 12, 13, 14, 15}, {21, 22}},
{{101, 102, 103}, {45, 56}}};
System.out.print("Unesite broj koji se trazi");
java.util.Scanner citac = ... | 36.153846 | 89 | 0.488298 |
c44666573d999d67cfc71ede41887869ced726bf | 5,976 | package cn.yueying0083.pediyforum;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.Snackbar;
import android.text.Html;
import android.view.View;
import android.widget.TextView;
import com.google.gson.Gson;
import com.loopj.android.http.AsyncHttpClient;
import... | 38.063694 | 158 | 0.644578 |
e1f2180fc65e29f4924f9e42e47b556de12bd018 | 762 | import com.sun.org.apache.xml.internal.security.transforms.TransformationException;
class TransformXPointer extends TransformSpi {
/**
* Method enginePerformTransform
*
* @param input
* @return {@link XMLSignatureInput} as the result of transformation
* @throws TransformationException
... | 31.75 | 96 | 0.762467 |
9db300fb1a7dda4019f882bcc3555b6b5720b810 | 593 | package com.weim.service;
import com.weim.entity.Title;
import java.util.Date;
import java.util.List;
/**
* @author weim
* @date 18-7-27
*/
public interface TitleService {
Title saveTitle(Title title);
List<Title> findAllByBookId(String bookId);
Title findTitleById(String titleId);
Title findBy... | 20.448276 | 72 | 0.735245 |
a05bc9ed1ba770fe5781c3ad05274675ecdcb680 | 537 | package com.fastlib.demo.net;
import com.fastlib.adapter.BaseRecyAdapter;
import com.fastlib.annotation.ContentView;
import com.fastlib.base.RecyclerViewHolder;
import com.fastlib.demo.R;
/**
* Created by sgfb on 2020\03\06.
*/
@ContentView(R.layout.item_cloud)
public class CloudAdapter extends BaseRecyAdapter<Clou... | 26.85 | 82 | 0.746741 |
41b685d66be14d8f47e310d350621e6da3456f89 | 441 | import java.util.*;
public class Factors
{
public static void main(String args[])
{
System.out.println("Enter the number to find factors: ");
Scanner sc=new Scanner (System.in);
int N=sc.nextInt();
while(N%2==0)
{
System.out.println(2+ "");
N/=2;
}
for(int i=3;i<=Math.sqrt(N);i+=2)
{
w... | 13.363636 | 59 | 0.544218 |
634ff083240c1d90ad30848c969f44e29b902104 | 981 | /*
* Copyright 2016 NinetySlide
*
* 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 ... | 32.7 | 113 | 0.749235 |
77f93e5570506344d62eae05a94ac4446e3ad60f | 874 | package com.example.pdfuploader.payload;
public class UploadFileResponse {
private String fileName;
private String hash;
private String fileType;
private long size;
public UploadFileResponse(String fileName, String hash, String fileType, long size) {
this.fileName = fileName;
this.hash = hash;
t... | 17.836735 | 87 | 0.672769 |
19a168092b7a7b06f680c548b54953c14852a45e | 6,569 | package org.scify.jedai.gui.controllers;
import gnu.trove.iterator.TIntIterator;
import javafx.fxml.FXML;
import javafx.scene.control.Label;
import javafx.scene.control.Pagination;
import javafx.scene.control.ScrollPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import org.scify.jedai.datamodel... | 37.112994 | 106 | 0.608616 |
26180bd4690115a37fe5925fa2ef2c4707d34cda | 1,988 | package cn.code.chameleon.service;
import cn.code.chameleon.common.PageData;
import cn.code.chameleon.exception.ChameleonException;
import cn.code.chameleon.pojo.Function;
import cn.code.chameleon.pojo.Role;
import java.util.List;
import java.util.Set;
/**
* @author liumingyu
* @create 2018-05-07 下午5:15
*/
public... | 38.980392 | 144 | 0.814889 |
fda864db57f14795522791648b2e5c4abb900a88 | 3,276 | package com.example;
public class DbColNames {
// Questions
public static final String QUESTION_ID = "Id"; // Primary key
public static final String QUESTION_AUTHOR = "Author"; // Foreign key, matches with Users
public static final String QUESTION_TITLE = "Title";
public static final String QUESTIO... | 53.704918 | 131 | 0.728327 |
59d4cd7697d390568ed724384b25a57e846aae93 | 3,534 | package com.datastax.tickdata;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.at... | 28.967213 | 256 | 0.71279 |
e04bd15ca4ac25840dea74d6044acf267dda33e4 | 2,841 | package com.google.checkstyle.test.chapter4formatting.rule412nonemptyblocks;
class InputRightCurlyOtherAlone
{
/** @see test method **/
int foo() throws InterruptedException
{
int x = 1;
int a = 2;
while (true)
{
try
{
if (x > 0)
... | 19.458904 | 76 | 0.412531 |
ee761e77d731c63ebc8ea4565b36c64fd710f3dd | 9,682 | package org.apache.cassandra.service;
/*
*
* 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 Lic... | 37.382239 | 147 | 0.58521 |
19e337330ecae49ef9e6dcfd2fc440a33476d32f | 404 | package com.gaozl.logback.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented... | 21.263158 | 44 | 0.789604 |
401e603a63935d984f91ff4697a010e500e43459 | 8,834 | package org.freedom.base;
import java.io.File;
import java.io.IOException;
import java.net.URLDecoder;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;
import org.freedom.log.Log;
public class Relinker {
public ... | 29.251656 | 114 | 0.68791 |
a62c51a0252c7cd3946b34dbd66edde92d83e6f2 | 2,784 | public class Inout
{
static void output(String info)
{
System.out.println(info);
}
static void output(char info)
{
System.out.println(info);
}
static void output(byte info)
{
System.out.println(info);
}
static void output(int info)
{
System.out.p... | 19.605634 | 68 | 0.517601 |
64740dce4875ccd9e4b0ef9b5e2b695e7ff7558d | 1,971 | /*
* Copyright 2007-2008 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* Unless required by... | 37.903846 | 187 | 0.73516 |
01242f32c739eea3d17094fd35e8610544b65f8a | 7,886 | /*
*******************************************************************************
* Copyright (C) 2006-2015, International Business Machines Corporation and
* others. All Rights Reserved.
*******************************************************************************
*/
package com.ibm.icu.charset;
import java.... | 43.569061 | 93 | 0.549708 |
310d692b3cdbb29cdd966426327b214f3ac1da6c | 667 | /* 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.util.date.api;
/**
* Helper for code that is GWT incompatible and needs to be super-sourced.
*
* @author Joerg Hohwiller (hohwille at users.sourceforge.net)
* @since 4... | 22.233333 | 113 | 0.662669 |
0a61f6c813254b1b9260e9ba50772102c7f4fd8d | 920 | package com.ds365.erp.wms.pda.model.commons;
import java.io.Serializable;
import com.ds365.commons.BaseIdModel;
/**
*
* @author cgb
*
*/
public class QtyModel extends BaseIdModel<Long> implements Serializable{
/**
*
*/
private static final long serialVersionUID = -6291581817727064898L;
private Integ... | 15.333333 | 72 | 0.707609 |
3015e2977dab74ca9a2129ce0b760b3ebd85d02b | 18,922 | /**
DERT is a viewer for digital terrain models created from data collected during NASA missions.
DERT is Released in under the NASA Open Source Agreement (NOSA) found in the “LICENSE” folder where you
downloaded DERT.
DERT includes 3rd Party software. The complete copyright notice listing for DERT is:
Copyright © ... | 27.186782 | 136 | 0.698552 |
f42d435644a9d6ba2843222dc2c519c2b2db2c10 | 1,267 | package com.github.liuweijw.api.security.auth.ajax;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.H... | 30.902439 | 91 | 0.800316 |
c827ae36dc511e4675649c061f1d9a4e35300e8c | 1,825 | package battleship;
public class Ship {
/* Instance Variables */
private int row;
private int col;
private int length;
private int direction;
// Direction Constants
public static final int UNSET = -1;
public static final int HORIZONTAL = 0;
public static final int VERTICAL = 1;
// Constructor
public Ship(... | 20.977011 | 98 | 0.666849 |
1a8bb5aece6a4a33f3f04350dd9351658a810d17 | 108 | package pers.before.design.factory.simple;
public interface Sender {
public void Send();
}
| 18 | 42 | 0.657407 |
e6201470ff4036e3e32abf740d88f69167126bf6 | 19,088 | /**
* SampleWerewolf.java
*
* Copyright (c) 2018 人狼知能プロジェクト
*/
package org.aiwolf.sample.player;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Deque;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
imp... | 30.886731 | 128 | 0.67194 |
0aa87ad011b512be6ea01feba1e31bafd42c8a03 | 1,151 | package org.bgbm.biovel.drf.client.widgets;
import org.bgbm.biovel.drf.client.js.ChecklistInfoJS;
import com.google.gwt.safehtml.shared.SafeHtml;
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
import com.google.gwt.safehtml.shared.SafeHtmlUtils;
import com.google.gwt.text.shared.SafeHtmlRenderer;
pu... | 27.404762 | 90 | 0.648132 |
203084c8ca802eb883ff5dcfa5fff9fbf3cb97a1 | 4,529 | package com.example.android.miwok;
import android.content.Context;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Ad... | 39.72807 | 143 | 0.662839 |
030bae6ed90ede68ffb4545db82f531878f08fa8 | 3,101 | package v27;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;
import util.FileUtil;
import v27.MainCalcIndicator_r3.ChartInfo;
/**
* テクニカル指標(ボリンジャーバンド)を計算するクラス。
*/
public class MainCalcIndicator2_r3 implements CalcIndicator_r3 {
/**
* 基準パス。
*/
private static fina... | 26.058824 | 119 | 0.593357 |
febfc1baa2e1f4246e4c78f45bf0c616ee68ad0c | 382 | package com.payexpress.imap.ums.service;
import com.payexpress.imap.ums.domain.User;
import com.payexpress.imap.ums.support.exception.UserNotFoundException;
/**
* 用户服务
*
* @author <a href="563750241@qq.com">liusc</a>
* @date 5/10/2020
*/
public interface UserService {
User getUser(Long id);
User selec... | 19.1 | 72 | 0.740838 |
aba475bcb6431b8f2700c7f4bc8852c24de8cff7 | 1,003 | package com.rotomer.simplevm.utils;
import com.google.common.io.BaseEncoding;
import com.google.protobuf.InvalidProtocolBufferException;
import com.google.protobuf.Message;
public class ProtobufEncoderDecoder {
public static String encodeMessageBase64(final Message protobufMessage) {
final byte[] binarySe... | 32.354839 | 122 | 0.710867 |
72f0bb4cdbef5acca3085dd1c75527f3513a2dec | 4,481 | package org.xms.g.location;
/**
* Location settings specific status codes, for use in getStatusCode().<br/>
* Combination of com.huawei.hms.location.LocationSettingsStatusCodes and com.google.android.gms.location.LocationSettingsStatusCodes.<br/>
* com.huawei.hms.location.LocationSettingsStatusCodes: Location setti... | 64.942029 | 438 | 0.749386 |
bd5eb53d699ba2813055c5fc45772073342f9162 | 248 | package com.facebook.react.modules.core;
import com.facebook.react.bridge.JavaScriptModule;
import javax.annotation.Nullable;
public interface RCTNativeAppEventEmitter extends JavaScriptModule {
void emit(String str, @Nullable Object obj);
}
| 27.555556 | 68 | 0.818548 |
ba041da892707b8c1816a980a5712155aea06586 | 921 | package jef.database.datasource;
import java.util.Properties;
/**
* 描述一个数据源的配置信息
* @author jiyi
*
*/
public interface DataSourceInfo {
/**
* 返回数据库连接的JDBC url
* @return
*/
public String getUrl();
/**
* 返回数据库连接的用户名
* @return
*/
public String getUser();
/**
* 返回数据库连接的密码
* @return
*/
publ... | 12.445946 | 45 | 0.617807 |
0c6cac97caf631189b8bb85969b91ca053740c04 | 438,903 | /*
* This is the source code of Telegram for Android v. 5.x.x.
* It is licensed under GNU GPL v. 2 or later.
* You should have received a copy of the license in this archive (see LICENSE).
*
* Copyright Nikolai Kudashov, 2013-2018.
*/
package org.telegram.messenger;
import android.content.SharedPreferences;
imp... | 52.676788 | 507 | 0.477424 |
bb97ec4a0dba31ae12a25f85da691300aeb00953 | 3,961 | /*
* Copyright 2016 XING SE (http://xing.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 applicable law... | 37.367925 | 108 | 0.714466 |
e31ff1e2a9a9e64defc5a5f39dc0d76d46a86702 | 1,458 | package cryptowarriorcore;
// CryptoWarrior
import cryptowarrior.core.engine.CryptoEngineFactory;
import cryptowarrior.core.engine.CryptoEngineFactoryCreator;
import cryptowarrior.core.engine.IDecryptor;
import cryptowarrior.core.engine.IEncryptor;
import cryptowarrior.core.engine.SignStack;
import cryptowarrior.core.... | 32.4 | 126 | 0.707819 |
f7e3129d1f530e64a00f52a52bd8f9cc126d7102 | 20,136 | /*
* 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.031809 | 120 | 0.705652 |
9bc7e5fb30280e0004850f8420d4a89c04dcc661 | 2,855 | package cn.parzulpan.dao;
import cn.parzulpan.bean.Book;
import cn.parzulpan.utils.JDBCUtils;
import java.sql.Connection;
import java.util.List;
/**
* @Author : parzulpan
* @Time : 2020-12-10
* @Desc :
*/
public class BookDAOImpl extends BaseDAO<Book> implements BookDAO {
@Override
public int addBook(Co... | 39.109589 | 157 | 0.636778 |
4b8c5ed2d1dbda67c076e16ae3d6d29dbd47e959 | 105,207 | package com.codingpixel.healingbudz.activity.Wall;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.graphics.Ty... | 49.908444 | 405 | 0.563508 |
49577292d093e85bf4a73772bc93e1a4bd25f3cd | 25,100 | /*
* Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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
*
* http://www.apache.or... | 42.759796 | 115 | 0.571873 |
a4671c01b8c15d935d890cc9036ccb2cd14a2bd2 | 5,295 | /*******************************************************************************
* Copyright (c) 2008, 2011 Mateusz Matela and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and... | 39.81203 | 156 | 0.738055 |
45ce62a7bcd49fe48c714487a67e32ff985e751f | 3,006 | package com.commercetools.sunrise.wishlist.content.viewmodels;
import com.commercetools.sunrise.framework.viewmodels.GenericListViewModel;
import com.commercetools.sunrise.framework.viewmodels.PageTitleResolver;
import com.commercetools.sunrise.framework.viewmodels.content.PageContentFactory;
import com.commercetools.... | 42.338028 | 109 | 0.734531 |
6175fdbacbf3a220d1034dedaad7bb598b90def9 | 1,707 | package indi.wiio.info.character;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
import indi.wiio.utils.ReadObjectsHelper;
import indi.wiio.utils.WriteObjectsHelper;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import... | 23.067568 | 93 | 0.6942 |
476d974e8976dcef9348201cb04380eb15473122 | 13,491 | package com.haoyunhu.tools.rest.servlet;
import com.haoyunhu.tools.constant.TrueFalseConstant;
import com.haoyunhu.tools.crm.CrmCenterManager;
import com.haoyunhu.tools.exception.BizErrorBusinessException;
import com.haoyunhu.tools.rest.bean.RestControllerBeanProperties;
import com.haoyunhu.tools.rest.bean.RestTestSer... | 42.028037 | 180 | 0.631236 |
754c4cd08c139002c1e2409c0fa01b334ef8e889 | 1,871 | package com.stickycoding.rokon;
/**
* TextTexture.java
* A texture specifically tailored for bitmap fonts
*
* @author Richard
*/
public class FontTexture extends Texture {
protected char[] chars;
/**
* Creates a FontTexture from an asset, the character string must be passed
*
* @param... | 24.618421 | 81 | 0.634955 |
7d8fb0cb1c0a011e50ff36ca81bb550c39033955 | 14,788 | package org.chaostocosmos.talend.aws;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.PrintStream;
import java.io.PrintWriter;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Itera... | 26.035211 | 149 | 0.547268 |
fce67314482a854db717c1298876a20988bab236 | 2,880 | /*
* Copyright (C) 2017 Seoul National University
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 32 | 106 | 0.711111 |
fedaf236b1f1bb2595c03dc08e61704a09e5559c | 1,546 | package com.mk.entity;
import java.util.List;
import java.util.Map;
/**
* Created with IntelliJ IDEA.
* User: yonney.yang
* Date: 14-11-19
* Time: 下午5:51
* To change this template use File | Settings | File Templates.
*/
public class ExcelJsonConfig extends BaseEntity {
private Map<String,Obj... | 24.539683 | 74 | 0.635834 |
4f9b5de9f5f2129a82d1f63aa526146cae074315 | 1,467 | package com.epignosisx.configserver.security;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;
import java.util.ArrayList;
import java.util.Collection;
import java.uti... | 22.921875 | 79 | 0.670075 |
268fe131d84d3776f92e32282265b79eb8dc1989 | 1,395 | /*
* Copyright (C), 2002-2021, nixian,email nixiantongxue@163.com
* FileName: StringParam.java
* Author: nixian
* Date: 2021年6月10日 上午12:07:54
* Description: //模块目的、功能描述
* History: //修改记录
* <author> <time> <version> <desc>
* 修改人姓名 修改时间 版本号 ... | 27.352941 | 96 | 0.632258 |
e4899786fd075a6494058916c478d965cc71efa3 | 6,229 | /**
* Copyright 2012 NetDigital Sweden AB
*
* 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 ... | 36.857988 | 161 | 0.762883 |
46a03353cf5112c662fb331244f6eb7bdc55683d | 2,383 | /*
* The MIT License (MIT)
* Copyright (c) 2016 Ubiqueworks Ltd and contributors
*
* 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 rig... | 32.202703 | 133 | 0.698699 |
29f907eb16f7dd299c2858994e47f9e46b42c812 | 1,160 | package com.zlikun.jee;
import org.junit.Test;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import static org.junit.Assert.assertEquals;
/**
* 并行流,不能用于排序操作,出来仍是乱序,但可以用来计数等
*
* @author zlikun <zlikun-dev@hotmail.com>
* @date 2018/7/24 18:36
*/
public class ParallelS... | 25.217391 | 95 | 0.584483 |
7e70582bc4d947fd2b78d5f652f93e960b5a9807 | 1,600 | /*
* 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 ... | 34.042553 | 75 | 0.749375 |
016d374f6b157d13d6a54829c04bde6e85078c5e | 1,022 | /*
* generated by Xtext
*/
package protolipse.parser.antlr;
import com.google.inject.Inject;
import org.eclipse.xtext.parser.antlr.XtextTokenStream;
import protolipse.services.ProtobufGrammarAccess;
public class ProtobufParser extends org.eclipse.xtext.parser.antlr.AbstractAntlrParser {
@Inject
private Protobu... | 25.55 | 106 | 0.802348 |
eba08a0368ce6606ed35198209c905f60324ded5 | 2,133 | package glue.persistence.datasource.api;
import glue.core.exception.StartupException;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import org.slf4... | 25.698795 | 82 | 0.673699 |
5adba5d71937882de3f4ea66a7845eab316f9ad8 | 1,683 | package com.stonymoon.bboard.search;
import com.stonymoon.bboard.api.BaseDataManager;
import com.stonymoon.bboard.api.services.BillboardService;
import com.stonymoon.bboard.bean.SearchBean;
import rx.Subscriber;
import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;
public class SearchPres... | 29.017241 | 99 | 0.560903 |
3b4cdbea65ff26fe7dc751667d3b60a0eb95667e | 351 | package com.gpec.FarmFood.repositories;
import com.gpec.FarmFood.model.db.Seller;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface SellerRepository extends JpaRepository<Seller, Long> {
List<Seller>... | 27 | 71 | 0.820513 |
204435f5206a751b9f590ae2ab5e40f3057fbc34 | 5,153 | package wang.raye.springboot.model;
public class AlertSetting {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column alert_setting.id
*
* @mbg.generated
*/
private Integer id;
/**
*
* This field was generated by MyBa... | 25.636816 | 82 | 0.615952 |
c2e5c76cf909d9b3752b69ffdd97fc5ebedcc2e0 | 222 | package com.sky.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sky.domain.DictType;
/**
@author sky
@create 2021-05-20 15:56
*/
public interface DictTypeMapper extends BaseMapper<DictType> {
} | 20.181818 | 62 | 0.783784 |
14029b9c58818173546a3c4bfefb4ece26af9849 | 2,176 | /*
* Copyright (c) 2012 M. M. Naseri <m.m.naseri@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 limitation the rights to use, copy, m... | 43.52 | 148 | 0.729779 |
d892201ed31151dcb7764f5fbe51c4155a7e0b40 | 3,683 | /*******************************************************************************
* The MIT License (MIT)
*
* Copyright (C) 2014-2018 Sam Bassett (aka Lothrazar)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), ... | 35.413462 | 103 | 0.673364 |
215ac3f8ebd408e3b8bad2605438a82b791e7c56 | 2,473 | package com.sumologic.client;
import java.io.IOException;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.Ignore;
import static com.github.toma... | 31.303797 | 93 | 0.694298 |
f51707f9bd703261200537dcd0f1861a7ef4bb5e | 3,307 | package fabrica;
import javax.swing.*;
import javax.swing.border.*;
import java.awt.*;
import java.awt.event.MouseMotionAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseAdapter;
public class People extends JFrame implements Runnable {
private Box caja;
private int id = 0,x,y;
private JTextAre... | 27.558333 | 128 | 0.642879 |
dc38baff3f1c1120656594ed3491c827330dd034 | 9,928 | /*
* Dyspatch API
* # Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.i... | 28.776812 | 830 | 0.712832 |
ae07f940fbf5b2d3eab4c7fde579f82a7dd8077e | 548 | package authoring_UI.Inventory;
import java.util.ArrayList;
import java.util.List;
/**
* Class for extracting all inventory information and converting into inventory objects.
*
* @author DavidTran, Dara Buggay
*
*/
public class InventoryExtractor {
private List<Inventory> inventoryList;
public InventoryExtr... | 18.266667 | 88 | 0.742701 |
c9f951add4a537ac2376a770f184fb4dca6d0524 | 11,672 | /*
* Copyright 2012-2016 CodeLibs Project and the Others.
*
* 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 ap... | 44.212121 | 141 | 0.653016 |
e7f97d8eb53e8fe8f652bbd3ecb953f3d556a788 | 522 | /**
* Copyright © 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.thinkgem.jeesite.modules.teamcenter.dao.design;
import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.think... | 29 | 108 | 0.779693 |
85bdfcefe02e27f23bd5616781e979f7024d5bdc | 2,171 | package org.rm7370rf.estherproject.ui.presenter;
import org.rm7370rf.estherproject.EstherProject;
import org.rm7370rf.estherproject.contract.Contract;
import org.rm7370rf.estherproject.ui.view.BackupView;
import org.rm7370rf.estherproject.util.Verifier;
import org.web3j.crypto.Credentials;
import javax.inject.Inject;... | 31.926471 | 76 | 0.672962 |
a3de60b4be3d1fccf918efa77ac25f6d58c54114 | 3,025 | /*
* Copyright 2000-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 28.009259 | 102 | 0.721983 |
4e47c5d1a936e9157f43c42796085933729851ba | 3,423 | /**
* Copyright 2017 Goldman Sachs.
* 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 agree... | 46.256757 | 165 | 0.782063 |
55b7d384098fc898e243f149ed74f03da0753cb1 | 994 | package com.bitdubai.fermat_csh_api.all_definition.enums;
import com.bitdubai.fermat_api.layer.all_definition.enums.interfaces.FermatEnum;
import com.bitdubai.fermat_api.layer.all_definition.exceptions.InvalidParameterException;
/**
* Created by Yordin Alayn on 24.09.15.
*/
public enum BalanceType implements Fermat... | 29.235294 | 183 | 0.68008 |
c7ff6f11daa9666f953cbd8dcddd5435dfc3fef5 | 1,166 | package com.noleme.flow.connect.text.transformer;
import com.noleme.flow.actor.transformer.Transformer;
import java.util.function.Function;
import java.util.regex.MatchResult;
import java.util.regex.Pattern;
/**
* @author Pierre Lecerf (plecerf@lumiomedical.com)
* Created on 2020/12/17
*/
public class RegexReplac... | 25.911111 | 84 | 0.708405 |
9aecb3db69f19d8cf34e477283980965e6e7590d | 3,964 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 37.396226 | 110 | 0.65666 |
3cedf4fdcfdf0f99ec070df2505bf370d220ea2a | 225 | /**
* Copyright 2008-2019, Province of British Columbia
* All rights reserved.
*/
package ca.bc.gov.ols.router.engine.basic;
@FunctionalInterface
public interface CostFunction<A, B, C, R> {
R apply(A a, B b, C c);
}
| 17.307692 | 52 | 0.688889 |
0b79f59099e20da16d8a5f86e6e7952481fe626f | 136 | package aqoursoro.teleportcraft.capability.teleporter;
public enum EnumTeleportStatus
{
INACTIVE,
IN_PROGRESS,
SUCCEEDED,
FAILED
}
| 13.6 | 54 | 0.816176 |
d3915cf67979b4bfe9a26693a81d12d3e8072442 | 662 | package com.vimukti.accounterbb.ui;
import net.rim.device.api.system.Display;
import net.rim.device.api.ui.Color;
import net.rim.device.api.ui.Font;
import net.rim.device.api.ui.Graphics;
import net.rim.device.api.ui.Ui;
import net.rim.device.api.ui.component.LabelField;
public class StringLabelField extends LabelFie... | 26.48 | 72 | 0.756798 |
adb79abbb13cab11ff6815fcc003d76d3e556590 | 4,915 | package org.atgel.util;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.beanutils.MethodUtils;
import atg.repository... | 28.247126 | 229 | 0.687894 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.