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 |
|---|---|---|---|---|---|
cbd95360922df3360cd0f85afdd842fce865ee13 | 5,751 | // Copyright © 2011-2018, Esko Luontola <www.orfjackal.net>
// This software is released under the Apache License 2.0.
// The license text is at http://www.apache.org/licenses/LICENSE-2.0
package fi.jumi.actors;
import fi.jumi.actors.eventizers.*;
import fi.jumi.actors.listeners.FailureHandler;
import fi.jumi.actors.... | 27.782609 | 113 | 0.642149 |
686f31e6bfc3bb269c38c3b4d0c146d1f7850750 | 2,123 | package org.greenplum.pxf.automation.utils.exception;
import java.io.IOException;
import jsystem.framework.report.Reporter;
import org.greenplum.pxf.automation.utils.jsystem.report.ReportUtils;
import org.greenplum.pxf.automation.utils.regex.RegexUtils;
/**
* Utilities for parsing Exceptions and validate it messag... | 36.603448 | 132 | 0.72162 |
c1ca88a1f0468d79523e5f4f2bb1d52965e539e8 | 5,448 | package com.test.interview;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.NavigableMap;
import java.util.SortedMap;
im... | 30.954545 | 167 | 0.651065 |
1c8d0210419b43ccc473142b33f54d4624a5420f | 3,347 | package com.github.rasika.bpmn2solidity.tree.model.toplevel;
import com.github.rasika.bpmn2solidity.solidty.SolidityCodeTemplate;
import com.github.rasika.bpmn2solidity.solidty.SolidityConstructor;
import com.github.rasika.bpmn2solidity.solidty.SolidityContract;
import com.github.rasika.bpmn2solidity.solidty.SolidityF... | 39.376471 | 110 | 0.637287 |
1084d25ad0c5acee53a8e6ddd9e43624693d05c3 | 5,494 | /*
* 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 applica... | 36.144737 | 197 | 0.694212 |
06c5f44c9fc3c7c16a8769dbac2aa94f0acf9497 | 2,799 | /*
* Copyright 2020-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 26.657143 | 93 | 0.743837 |
8e9811a493ab4a94112dc706c8d84b4976cd1644 | 3,963 | package com.uncooleben.lab03_gizmoball.gui.section;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import javax.swing.ButtonGroup;
import javax.swing.JPanel;
import com.uncooleben.lab03_gizmoball.gui.button.componentbutton.AbsorbButton;
import com... | 30.022727 | 108 | 0.793591 |
11618df2cee8e65f091206d931d0bc1a0f78e6f7 | 1,215 | package org.frekele.fiscal.focus.nfe.client.model.entities.backup;
import org.frekele.fiscal.focus.nfe.client.testng.InvokedMethodListener;
import org.testng.annotations.Listeners;
import org.testng.annotations.Test;
import static org.testng.Assert.*;
/**
* @author frekele - Leandro Kersting de Freitas
*/
@Listene... | 28.928571 | 72 | 0.651852 |
ffdac7b28fdfa69c5c77c3e386cb79b250fca3b8 | 5,922 | package com.cody.app.framework.hybrid.core;
import android.net.Uri;
import android.text.TextUtils;
import com.cody.app.BuildConfig;
import com.cody.repository.Domain;
import com.cody.xf.utils.NetUtil;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Pattern;
/**
* Created by chen.huarong on 2... | 34.231214 | 98 | 0.501013 |
7ad474eb241a7b7325943726aa1b03329250d0e9 | 10,163 | /*
* Aipo is a groupware program developed by Aimluck,Inc.
* Copyright (C) 2004-2011 Aimluck,Inc.
* http://www.aipo.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, eit... | 32.573718 | 83 | 0.671455 |
927a1591fdc3e2d25ca19fedb38b007f887e94b4 | 1,242 | package androidcourse.android.jonaswu.yahoo.com.todolists.dao_helper;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT. Enable "keep" sections if you want to edit.
/**
* Entity mapped to table TODOLIST.
*/
public class todolist {
private Long id;
private String name;
private java.util.Date ... | 20.360656 | 97 | 0.557166 |
9f9886a4bedd738281183e83af7e307f92b69af1 | 1,512 | package tools;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.Properties;
public class DBUtils {
// 事务是基于连接的。不同用户用同一个事务,用单例设计有问题,解决办法Continue。。。
private static Connectio... | 23.625 | 100 | 0.704365 |
53bdd1a06d08acab753ebb6aa7c121cb9c5d908e | 866 | package digital.one.produtsCatalog.controller;
import digital.one.produtsCatalog.model.Product;
import digital.one.produtsCatalog.repository.ProductRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.Optional;
@RestController
@... | 30.928571 | 64 | 0.764434 |
d06a91cbb8628b609adfa107066d799d1475d622 | 202 | package Game.Network.Server;
public class StaticData
{
public static boolean netWorkGame = false;
public static boolean startAsServer = false;
public static boolean startAsClient = false;
} | 25.25 | 48 | 0.762376 |
5ecec86e8d11fd9caed4eef84a62c670d73477b7 | 2,608 | /*
* Copyright 2003-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... | 33.435897 | 121 | 0.755752 |
8266e034f5601255774100f4cd70aa95ca7f6da5 | 8,801 | /**
* vertigo - application development platform
*
* Copyright (C) 2013-2020, Vertigo.io, team@vertigo.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/li... | 40.934884 | 223 | 0.762981 |
f27b1f16a18bbdcff695737c70eabaef1e3474ef | 1,206 | // DRUNKWATER TEMPLATE(add description and prototypes)
// Question Title and Description on leetcode.com
// Function Declaration and Function Prototypes on leetcode.com
//801. Minimum Swaps To Make Sequences Increasing
//We have two integer sequences A and B of the same non-zero length.
//We are allowed to swap element... | 46.384615 | 171 | 0.693201 |
0ffdcd7bb1e29186b609bf6dfc253cfb1b280c32 | 248 | package com.dakare.streamlabs.repository;
import com.dakare.streamlabs.domain.AppDbProperty;
import org.springframework.data.jpa.repository.JpaRepository;
public interface AppDbPropertyRepository extends JpaRepository<AppDbProperty, String> {
}
| 27.555556 | 87 | 0.850806 |
5c66b08fc35f27843f745bc355907b32cbb8ab14 | 357 | package mapper.mocks;
import nl.jiankai.annotations.Column;
public class OverrideObject {
@Column(name = "overridden_name")
private String overriddenName;
public String getOverriddenName() {
return overriddenName;
}
public void setOverriddenName(String overriddenName) {
this.over... | 21 | 58 | 0.714286 |
e32b952c17ac5dbc602daea216d81b7a6f3f0e0a | 3,411 | /*
* Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | 47.375 | 156 | 0.747288 |
6a958c5fef5a417b72f1ad2624c7b4079a2df6b0 | 631 | package com.wkk.demo.proxy.staticproxy;
import com.wkk.demo.proxy.dao.IUserDao;
import com.wkk.demo.proxy.entity.UserEntity;
/**
* @Description 静态代理
* @Author wangkunkun
* @Date 2018/06/22 12:23
**/
public class StaticUserDaoProxy implements IUserDao{
private IUserDao userDao;
public StaticUserDaoProxy(... | 24.269231 | 57 | 0.679873 |
06be13a8bbb153e0348eefdc5a884b33c644d825 | 4,366 | package tracker.database;
import lombok.Setter;
import lombok.extern.log4j.Log4j;
import java.sql.*;
import java.util.Optional;
@Log4j
public class SqlConnector
{
@Setter
private static String dbName = "masz";
@Setter
private static String tableName = "UserInvites";
@Setter
private static Str... | 34.650794 | 140 | 0.575813 |
5b58e5c4caf34d62859dcd8a03253e3a2696f02c | 705 | package pr9_CollectionHierarchy.classes;
import pr9_CollectionHierarchy.interfaces.AddCollection;
import pr9_CollectionHierarchy.interfaces.MyList;
import java.util.ArrayList;
import java.util.List;
/**
* Created by mm on 13.7.2016 г..
*/
public abstract class MyCollections implements AddCollection, MyList {
p... | 20.735294 | 70 | 0.673759 |
554dfb64eafb98e87d699ef09a5eb7af43adb7b9 | 8,121 | /*
*
* Copyright (c) 2018-2099, qiqucode.com 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 of... | 43.196809 | 132 | 0.703977 |
04af0329a81bc6154b366a000495e90761edc0d9 | 770 | package in.bitanxen.app;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.messaging.rsocket.RSocketRequ... | 30.8 | 90 | 0.731169 |
b6cd3817377452ed91dd23a4f82397f40121c749 | 2,587 | package tech.brownbear.soy;
import com.google.template.soy.SoyFileSet;
import com.google.template.soy.data.SoyRecord;
import com.google.template.soy.shared.SoyGeneralOptions;
import com.google.template.soy.tofu.SoyTofu;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.net.URL;
import java.util.Li... | 30.797619 | 93 | 0.647082 |
3485571a304c425143726733f32b2b4f8200c29f | 113 | package com.datapublica.diachron.service.data;
/**
* @author Jacques Belissent
*/
public class Completion {
}
| 14.125 | 46 | 0.734513 |
683aa1183c06679773cddfea8dcecc3e36a205db | 750 | package io.seventytwo.springbootstore.repository;
import io.seventytwo.springbootstore.entity.PurchaseOrder;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
import org.springfr... | 27.777778 | 71 | 0.793333 |
1a12e667fd41c0502341199f46f78422249cbc9c | 5,429 | /****************************************************************
* 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... | 39.057554 | 116 | 0.630134 |
7f379e68c0b142b2609afddbfd2d6d42c6041b99 | 11,535 | /*
* 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.819672 | 170 | 0.670568 |
5f323f08ae0aef7e069a7cf6bbac8f8d96d142b7 | 350 | package org.movie.dao;
import org.movie.model.Admin;
public interface IAdminDao {
int deleteByPrimaryKey(Integer id);
int insert(Admin record);
int insertSelective(Admin record);
Admin selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(Admin record);
int update... | 20.588235 | 51 | 0.714286 |
80dc2758a62cb48192a824ebd6cc051f93302e20 | 3,351 | package com.jordijaspers.webfluxapiannotations.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.util.List;
import java.util.Objects;
/**
* The result retrieved from the Star Wars API.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class StarWarsResult {
/**
* The am... | 20.432927 | 112 | 0.527604 |
da938c7b9a96acb8b32f728d54519616eb68b043 | 1,228 | package xyz.brassgoggledcoders.steamagerevolution.modules.mining.drill;
import com.teamacronymcoders.base.multiblock.MultiblockControllerBase;
import com.teamacronymcoders.base.multiblock.validation.IMultiblockValidator;
import xyz.brassgoggledcoders.steamagerevolution.utils.multiblock.ISARMultiblock;
import xyz.bras... | 27.288889 | 95 | 0.830619 |
04611260e48dc1e6df2cf4e18988e453e3307cc8 | 990 | package com.mikeletux.dockeradapter.dockerclient.models;
import java.util.List;
public class GenerateExecBody {
private final boolean AttachStdin;
private final boolean AttachStdout;
private final boolean AttachStderr;
private final boolean Tty;
private final List<String> Cmd;
public Generate... | 24.75 | 141 | 0.671717 |
092b70706ef3bc81edb2b510236048fd221a8731 | 6,315 | /*
* The MIT License
*
* Copyright 2014-2016 Christopher Suarez, Oleg Nenashev
*
* 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 r... | 37.147059 | 102 | 0.699604 |
8e1e930dc94898074d41f09bcb90782d122eb1d9 | 1,648 | /*
* Copyright (c) 1997, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: ... | 28.413793 | 92 | 0.699636 |
302d4746678d9e2a9f663f913b8f1212dc74bdd0 | 3,545 | /* */ package psdi.webclient.beans.doclinks;
/* */
/* */ import java.rmi.RemoteException;
/* */ import psdi.app.doclink.DocinfoSetRemote;
/* */ import psdi.app.doclink.DoclinksSetRemote;
/* */ import psdi.mbo.MboRemote;
/* */ import psdi.mbo.MboSetRemote;
/* */ import psdi.util.MXExcept... | 40.284091 | 130 | 0.555712 |
0c80d3f27d3627f348dbc90bddd7760a58d3a1ed | 6,880 | package ca.edchipman.silverstripepdt.language;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Plugin;
import org.eclipse.dltk.core.IScriptProject;
import o... | 42.732919 | 229 | 0.685465 |
9795c174b63380370384521438de91bc00ef7298 | 8,603 | // RobotBuilder Version: 2.0
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the blocks... | 30.725 | 86 | 0.734395 |
7a3e7c90552bda32b5d4fb657d72a870ae8b0ff4 | 629 | package net.sf.esfinge.querybuilder.utils;
import static org.junit.Assert.*;
import org.junit.Test;
import net.sf.esfinge.querybuilder.Repository;
import net.sf.esfinge.querybuilder.methodparser.Person;
import net.sf.esfinge.querybuilder.utils.ReflectionUtils;
public class TestGetGenericRepositoryType {
... | 28.590909 | 118 | 0.786963 |
e923b48ec0e801fc92497fdef6a14dd983e99b21 | 1,421 | package com.acker.cafemanagement.entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/***
* I wish I have used Hibernate or any ORM because this is getting confusing :(
* Maybe my design sucks, I have made many mistakes but just realizing them.
* "Akılsız başın cezasını ... | 24.5 | 79 | 0.741731 |
f58bcebddbb3e885db4c3dc979af90e3f77347c1 | 8,070 | package it.unive.lisa.outputs;
import it.unive.lisa.util.datastructures.graph.Edge;
import it.unive.lisa.util.datastructures.graph.Graph;
import it.unive.lisa.util.datastructures.graph.Node;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.Reader;
import java.io.Str... | 32.02381 | 135 | 0.671004 |
ac1c40525b32d68d341e240f8977f2b6ccac9a6e | 58 | /**
* JPA domain objects.
*/
package org.kafmin.domain;
| 11.6 | 26 | 0.655172 |
29b95db3525615e58fde4708f96bbf5f016e88e0 | 1,707 | package com.wondernect.elements.redis.base;
import com.wondernect.elements.common.utils.ESObjectUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.ListOperations;
import java.util.List;
/**
* Copyr... | 32.826923 | 98 | 0.724077 |
f14ff3567c012601de26dc07675a688f0d1d1fa1 | 634 | package com.tramchester.testSupport;
import com.tramchester.domain.id.HasId;
import com.tramchester.domain.input.Trip;
import com.tramchester.domain.places.Station;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
public class TransportDataFilter {
public static Set<Trip>... | 27.565217 | 90 | 0.65142 |
60de6981649129f62488b6f72c6cc61f0309258a | 7,679 | package org.pale.gorm.roomutils;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Random;
import org.bukkit.Material;
import org.bukkit.World;
import org.bukkit.block.Block;
import org.bukkit.block.Chest;
import org.bukkit.block.CreatureSpawner;
import org.bukkit.entity.EntityType;
import or... | 27.722022 | 94 | 0.631593 |
782bd7c1c2d2d78e6c0a7fd2675a05e89baf6910 | 670 | package gameengine.systems.statistics;
import gameengine.attributes.Level;
import gameengine.entities.EntityInterface;
import gameengine.systems.statistics.interfaces.LevelStatisticsInterface;
import gameengine.systems.statistics.interfaces.StatisticsInterface;
import javafx.beans.property.DoubleProperty;
/**
* @aut... | 24.814815 | 86 | 0.808955 |
9f911af22c0754778609b096ad783fdf703ad19f | 2,876 | /*
* Copyright © 2018 Apple Inc. and the ServiceTalk project 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 requi... | 36.871795 | 97 | 0.716968 |
42622ab1f861cc31aa4dc5de0d1404b2f0340b07 | 7,031 | package voldemort.store.stats;
import java.util.concurrent.atomic.AtomicReference;
import voldemort.utils.SystemTime;
import voldemort.utils.Time;
/**
* A thread-safe request counter that calculates throughput for a specified
* duration of time.
*
*
*/
public class RequestCounter {
private final AtomicRe... | 33.802885 | 192 | 0.603613 |
6a2c551c1b4c369d0307035206694fbe5ebfa0b2 | 4,896 | package edu.ucla.cs.wis.bigdatalog.database.type;
import edu.ucla.cs.wis.bigdatalog.database.store.ByteArrayHelper;
import edu.ucla.cs.wis.bigdatalog.database.store.bplustree.BPlusTreeStoreStructure;
import edu.ucla.cs.wis.bigdatalog.database.store.type.SetStorageManager;
import edu.ucla.cs.wis.bigdatalog.database.sto... | 26.042553 | 113 | 0.708538 |
2a21a5e5dda7308ff89c7bc08d3fb35d2087fad8 | 4,419 | /**
* 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.255814 | 98 | 0.719846 |
984886feab07fa7222efb4fd38eb4c8ee3ea8348 | 4,550 | package com.yangyu.web.config;
import com.fasterxml.jackson.core.JsonGenerator;
import com.yangyu.common.Const;
import com.yangyu.common.converter.String2DateConverter;
import com.yangyu.common.converter.StringToEnumConverter;
import com.yangyu.common.converter.StringToNumberConverter;
import com.yangyu.common.convert... | 45.049505 | 116 | 0.753187 |
a8ea53bb8af8de23ac9c721c7084519a5cf9f8e5 | 39,487 | /*
* The MIT License (MIT)
*
* Copyright (c) 2010 Technische Universitaet Berlin
*
* 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 t... | 32.339885 | 104 | 0.668676 |
bb963ffa7c3399eeb305fa4c805be6234078ca47 | 911 | package cn.springcloud.gray.zuul.performance;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
//@Component
@Aspect
public class GrayPerformanceAspect {
@Pointcut("execution(* cn.spring... | 29.387097 | 164 | 0.692645 |
20829c9f33daa5618479c4dcd1644a1d7103ca39 | 3,252 | /**
*
*/
package com.sudhanshu.work.suranshu.blogs.component.blog;
import static org.junit.Assert.fail;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import org.junit.After;
im... | 24.451128 | 146 | 0.70203 |
c1d8502448918671e35d8c211db2955e97f221d1 | 851 | package at.bartendr.backend.service;
import at.bartendr.backend.model.Location;
import at.bartendr.backend.model.LocationRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.HashSet;
import java.util.List;
import java.util.Optional;... | 24.314286 | 62 | 0.743831 |
83c90acb210bf360d00539eeb3869d473684e393 | 412 | package com.singlethreadzzz.dim.service.dataDisplay;
import java.util.List;
import com.singlethreadzzz.dim.pojo.SalesVolumeInfo;
import com.singlethreadzzz.dim.pojo.SalesVolumeTypeInfo;
public interface DataDisplayService {
public List<SalesVolumeInfo> getGoodsSalesVolumeTop10() throws Exception ;
... | 24.235294 | 84 | 0.798544 |
346e833ad1a7379c2bd4aaa4449b89aefab731af | 6,380 | package edu.pdx.cs410J.family;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import java.rmi.RemoteException;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertNull;
/**
* This class tests the functionality of the variou... | 29.400922 | 73 | 0.704702 |
95505cddc7576c4a2792bc481b5f4401e244dfc1 | 6,559 | /*
* 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 com.mycompany.io2.primerparcial.frontend;
/**
*
* @author marito
*/
public class ventanaPrincipal extends javax.swing.JFram... | 46.85 | 180 | 0.681964 |
9ec067332709303e2bcc0867711620fec00013b9 | 28,145 | package com.imarcats.internal.server.interfaces.market;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import com.imarcats.interfaces.client.v100.dto.helpers.ExecutionSystemWrapperDto;
import com.imarcats.interfaces.client.v100.dto.helpers.MarketStateWrapperDto;
import com.imarcats.... | 56.177645 | 255 | 0.798863 |
afd7fb1e444f0c554d884339008107f7cd782847 | 2,938 | import java.util.Scanner;
public class ConnectFour{
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("Bem vindo ao ConnectFour");
System.out.println("Contra qual algoritmo é que pretende jogar?");
System.out.println("1 - MinMax");
System.... | 29.979592 | 122 | 0.565351 |
27a12618b1a983dae942f1431e9a453cebf64fd5 | 4,341 | /*
* Copyright (C) 2012 Google 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 ... | 33.651163 | 85 | 0.721953 |
7780294e59c3f29350c0b6eca196939658f2f4f8 | 24,639 | package com.birfincankafein.customcamera;
import android.animation.ArgbEvaluator;
import android.animation.ValueAnimator;
import android.content.Context;
import android.graphics.Color;
import android.graphics.ImageFormat;
import android.graphics.SurfaceTexture;
import android.hardware.Camera;
import android.media.Camc... | 37.559451 | 141 | 0.636146 |
a4862962b3814f7582b05ead4ab8f461ce421340 | 2,313 | package eu.jangos.realm.network.packet.client.query;
import eu.jangos.realm.network.opcode.Opcodes;
import eu.jangos.realm.network.packet.AbstractRealmClientPacket;
import io.netty.buffer.ByteBuf;
/*
* Copyright 2016 Warkdev.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use th... | 22.90099 | 110 | 0.599222 |
214b60cb11d460f787b5a7fcd548b70ecc5c6c3f | 1,045 | package cn.e3mall.sso.controller;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
imp... | 31.666667 | 88 | 0.799043 |
9020397403e7dd868515c511fd89ab1e4525dac7 | 2,273 | package io.renren.modules.app.controller.api;
import java.util.Arrays;
import java.util.Map;
import io.renren.modules.app.entity.PresentTypeEntity;
import io.renren.modules.app.service.PresentTypeService;
import io.renren.modules.app.vo.PresentEntityVo;
import org.springframework.beans.factory.annotation.Autowired;
i... | 24.706522 | 150 | 0.674879 |
a1c257b74ab26adb3f207dc14a2db647cc8e0835 | 1,332 | /**
Copyright 2016 Siemens AG.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | 23.785714 | 98 | 0.725976 |
7d4fff39432f1349e2a0e1f5c8c324ae771f92e7 | 1,989 | package com.nike.backstopper.jersey1sample;
import com.nike.backstopper.jersey1sample.config.Jersey1SampleConfigHelper;
import com.sun.jersey.api.core.ResourceConfig;
import com.sun.jersey.api.core.servlet.WebAppResourceConfig;
import com.sun.jersey.spi.container.servlet.ServletContainer;
import org.eclipse.jetty.se... | 34.293103 | 129 | 0.733032 |
c6bd15aa2114e8b3609c6401f41ab9520cbce217 | 11,482 | package com.ulfy.master.ui.custom_dkplayer;
import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Bitmap;
import android.view.MotionEvent;
import android.view.View;
import android.view.animation.Animation;
import android.widget.FrameLayout;
import android.widget.ImageView;
imp... | 43.328302 | 141 | 0.659032 |
b4ff88c07b14efeab3261b4710363571048e3cdd | 235 | package com.android.github.marvelapp.marvelapp.presentation.ui.list;
import com.android.github.marvelapp.marvelapp.data.api.entity.MovieResponse;
public interface OnMovieClickListener {
void onMovieClick(MovieResponse movie);
}
| 26.111111 | 76 | 0.825532 |
2f8f754833d10a4f787ab8ee1c3656553209bdc5 | 892 | package com.thoughtworks.translationCards.page;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
/**
* Created by nliao on 8/23/16.
*/
public class SourceLanguage {
public WebDriver sourceLanguageDriver;
By lnk_next = By.id("org.mercycorps.translationcards:id/deck_source_language_next_t... | 33.037037 | 274 | 0.745516 |
0c26f78f44eadbe0aa32e97d81390dcdbf4c4771 | 4,024 | package gr.sublime.world.gen.feature;
import gr.sublime.init.ModBlocks;
import net.minecraft.block.BlockLeaves;
import net.minecraft.block.state.IBlockState;
import net.minecraft.init.Blocks;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.min... | 45.727273 | 197 | 0.634195 |
ca49f325eaaf3c6282a9c6db8600c6c29de766ae | 959 | package com.xing.admin.api.feign.fallback;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xing.admin.api.feign.TokenServiceApi;
import com.xing.common.core.util.R;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import java.util.M... | 19.18 | 72 | 0.711157 |
eaf0a6394b339195da1d683bc10ac6e46e7b675b | 1,280 | package com.jackson.myengine;
import java.util.LinkedList;
import org.newdawn.slick.BasicGame;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Input;
import org.newdawn.slick.SlickException;
import com.jackson.cyberpunk.Game;
import com.jackson.myengine.Scene;
pub... | 21.333333 | 73 | 0.734375 |
2e8db68e579de0279d8da9a338c1100f9d3cfe36 | 347 | /*
* 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 DB_Mix;
/**
*
* @author MartyMcAir
*/
public interface intrfCRUD {
void create(String a);
void delete(String a);
... | 20.411765 | 79 | 0.694524 |
9c0fab7a0d8cd63eb6b53016964d354264332f61 | 18,886 | package org.sagebionetworks.table.worker;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNull;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Random;
import org.junit.jupiter... | 42.250559 | 155 | 0.77666 |
6924c5123214a38bfec863053ea04db6065963a1 | 2,534 | package cz.muni.fi.pa165.dao;
import cz.muni.fi.pa165.entity.Room;
import cz.muni.fi.pa165.entity.Hotel;
import javax.validation.ConstraintViolationException;
import java.util.List;
/**
* @author Martin Páleník
*/
public interface RoomDao {
/**
* Creates a new {@link Room}. The argument passed must not b... | 31.283951 | 80 | 0.658642 |
47a1b914174e535b8bba31b755f3e73e6ccaae46 | 367 | package org.jitsi.gov.nist.javax.sip.header;
import java.util.Map;
import java.util.Map.Entry;
import org.jitsi.javax.sip.address.Address;
import org.jitsi.javax.sip.header.Parameters;
public interface AddressParameters extends Parameters {
Address getAddress();
Map<String, Entry<String, String>> getParamete... | 24.466667 | 55 | 0.768392 |
8e4ac172dcb019c74132273b893f965d41f484cc | 794 | package ru.itis.backend.dto.forms;
import lombok.Builder;
import lombok.Data;
import ru.itis.backend.validation.ValidPasswords;
import javax.validation.constraints.Email;
import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
@Data
@Builder
@V... | 19.365854 | 49 | 0.70403 |
9fee72d90bcb6932b0d57a18fb609c02eebfec96 | 479 | package mathutils.parser;
public abstract class ParserFunction<T> {
private String funcName;
private int paramCount;
/**
* @param funcName
* @param paramCount
*/
public ParserFunction(String funcName, int paramCount) {
this.funcName = funcName;
this.paramCount = paramCount;
}
public ... | 17.107143 | 58 | 0.676409 |
52776b886a8032e9358b413895fb0cb8f370359d | 731 | package net.ickis.deluge.samples;
import io.reactivex.Observable;
import io.reactivex.disposables.Disposable;
import net.ickis.deluge.event.TorrentRemovedEvent;
public class HandlingEvents {
public static void main(String[] args) {
SimpleClient.create(client -> {
Observable<String> observable ... | 30.458333 | 114 | 0.651163 |
4d019f786eff64e484b27c119058a1c615e86b19 | 2,874 | package com.desertkun.brainout.content.components;
import com.badlogic.gdx.utils.Json;
import com.badlogic.gdx.utils.JsonValue;
import com.desertkun.brainout.content.components.base.ContentComponent;
import com.desertkun.brainout.data.active.PlayerData;
import com.desertkun.brainout.data.components.ServerFreeplayPlaye... | 25.210526 | 90 | 0.69485 |
63c97f841897fc4a4c7a59caf7094d02af243ebc | 7,382 | package top.stuck.link.core.utils;
import javax.crypto.Cipher;
import java.security.*;
import java.security.spec.PKCS8EncodedKeySpec;
import java.security.spec.X509EncodedKeySpec;
import java.util.Base64;
/**
* Created on 2019-11-07
*
* @author Octopus
*/
public class RSAUtil {
//非对称密钥算法
private static f... | 29.766129 | 100 | 0.6123 |
35c887e24a36fa52661ea2a56289e073c2fa9985 | 13,989 | /*******************************************************************************
* Pentaho Data Integration
*
* <p/>
* Copyright (c) 2002-2018 Hitachi Vantara. All rights reserved.
* <p/>
* ******************************************************************************
*
* Licensed under the Apache License, Vers... | 37.304 | 104 | 0.678033 |
0eec318167bd085aa45a9ef583b42f25464a5b7e | 3,125 | /*
* 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 org.redkale.test.convert;
import java.io.*;
import org.redkale.convert.json.JsonConvert;
import org.redkale.convert.j... | 41.118421 | 131 | 0.63168 |
99ef5c09c58496140456151cf779d5778c5afd25 | 21,880 | package io.bhpw3j.protocol;
import io.bhpw3j.model.types.AssetType;
import io.bhpw3j.model.types.GASAsset;
import io.bhpw3j.model.types.BhpAsset;
import io.bhpw3j.model.types.TransactionAttributeUsageType;
import io.bhpw3j.model.types.TransactionType;
import io.bhpw3j.protocol.core.BlockParameterIndex;
import io.bhpw3... | 41.67619 | 512 | 0.683638 |
97e08a0e247417dde5e3f535a4e73596d43ee1de | 8,740 | /*
* Copyright 2012, CMM, University of Queensland.
*
* This file is part of AclsLib.
*
* AclsLib is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any late... | 37.191489 | 94 | 0.631808 |
7350570b64744706a89551780a1f6f29027967f9 | 31,420 | /*
* The MIT License (MIT)
*
* Copyright (c) 2016. Diorite (by Bartłomiej Mazur (aka GotoFinal))
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including withou... | 53.435374 | 306 | 0.515341 |
144f2d995b6159f3235e9c51b32bc8517c51a2d0 | 1,177 | /*
* Copyright 1999-2021 Alibaba Group Holding Ltd.
*
* 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... | 26.75 | 75 | 0.700935 |
2aecf90606a065fd6dc0721bcdc0b1cd0d5a6ba2 | 16,246 | package analysis;
import java.util.*;
import notquitejava.ast.*;
/**
* Analysis visitor to handle most of the type rules specified to NQJ.
*/
public class Analysis extends NQJElement.DefaultVisitor {
private final NQJProgram prog;
private final List<TypeError> typeErrors = new ArrayList<>();
private N... | 33.155102 | 96 | 0.576511 |
7a1541b1b391f171e6f84dde2ad577708cb4c330 | 291 | for (int i = 0; i < Math.min(s.length(), t.length()); i++) {
if (s.charAt(i) != t.charAt(i)) {
return s.substring(i + (s.length() >= t.length() ? 1 : 0))
.equals(t.substring(i + (s.length() <= t.length() ? 1 : 0)));
}
}
return Math.abs(s.length() - t.length()) == 1;
| 36.375 | 69 | 0.491409 |
15e7317abaf8ceeef3921f1c405a47d980c1c565 | 3,514 | package com.ybz;
import com.ybz.utils.DataBaseUtils;
import com.yonyou.iuap.context.InvocationInfoProxy;
import org.apache.ibatis.io.Resources;
import org.junit.Test;
import java.sql.*;
import java.util.*;
/**
* 获取数据库接口
*
* @author zhangybt
* @create 2017年08月09日 15:05
**/
public class DatabaseTe... | 30.556522 | 88 | 0.507684 |
0ac22cf1b2e49be347a98e240f632423c9dfb842 | 22,049 | /*
* Copyright (c) 2016-present, RxJava 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | 26.56506 | 112 | 0.537984 |
da18985748db2129d16b83411b67db0342b0c8ba | 512 | package com.example.hades.tdd.junit.test_runners.suite;
import com.example.hades.tdd.junit.MessageUtil;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class TestJunit2 {
private String message = "Robert";
private MessageUtil messageUtil = new MessageUtil(message);
@Test
... | 25.6 | 63 | 0.710938 |
2215a1df311ad8b829cf9a3abcb2a3d35722eacf | 2,001 | package type.argument;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import runtime.Env;
import type.TypeException;
/**
*
* @author kudo
*
*/
public class UnifySolver {
/**
* パスから型変数へのマップ
*/
private final Map<Path,TypeVar> pat... | 22.738636 | 93 | 0.682659 |
31aac0933d16c183763ee5b58d33ff8538004ac5 | 16,608 | package com.adpetions.optimus.writers;
import com.adpetions.optimus.exceptions.TransformException;
import com.adpetions.optimus.namespaces.TransformNamespaceContext;
import com.adpetions.optimus.nodes.WriterNode;
import javax.xml.namespace.QName;
import javax.xml.stream.XMLStreamException;
import java.io.Reader;
/**... | 40.507317 | 138 | 0.701529 |
3fa9c267564256214c3a55a43c8a2e122113a80b | 381 | package io.zbus.mq.server.auth;
import java.util.concurrent.ConcurrentHashMap;
public class TokenTable extends ConcurrentHashMap<String, Token> {
private static final long serialVersionUID = 7167983253412165928L;
private boolean enabled = false;
public boolean isEnabled() {
return enabled;
}
public void s... | 21.166667 | 67 | 0.769029 |
34acbb4e2285a79d2d039de3c8e6b0833c491b99 | 1,099 | package ch.hslu.oop.vererbung;
import ch.hslu.oop.kontrollstrukturen.Point;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class RectangleTest {
private Rectangle rectangle;
@BeforeEach
public void SetUp()
{
rect... | 19.625 | 58 | 0.613285 |
6cb0f7d4f5f8692c110fe57ce37873a6b7febbe8 | 161,663 | /*
* 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... | 41.49461 | 140 | 0.566759 |
ee383a465456e818b25d82c799c0f414833ed2d5 | 3,571 | /**
*
*/
package de.prob.ui.assertion;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Shell;
import de.prob.core.Animator;
import de.prob.core.ProBJobFinishedListener;
import de.prob.core.command.ConstraintBasedDynamicAssertionCheckCommand;
import de.prob... | 34.009524 | 231 | 0.74853 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.