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 |
|---|---|---|---|---|---|
e9da3a7a4ae6e599f21cc2ab9a46a8ef1910a5a7 | 5,952 | // Copyright (C) 2014 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 applicable ... | 39.417219 | 99 | 0.713206 |
31f98b109884d54e41bea124832ef2e16c8ba781 | 1,605 | package com.appbestsmile.voicelikeme.db;
import java.util.List;
import io.reactivex.Single;
import io.reactivex.schedulers.Schedulers;
public class ScheduleItemDataSource {
private ScheduleItemDao scheduleItemDao;
public ScheduleItemDataSource(ScheduleItemDao scheduleItemDao) {
this.scheduleItemDao = schedu... | 32.1 | 101 | 0.771963 |
dacbc64a81834274d8658d5847dc337eadc2436c | 1,335 | package ru.stqa.training.selenium.adminLiteCart;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import java.util.List;
import static junit.framework.TestCase.assertTrue;
public class Task7MoveToAllSectionsTest extends TestBase {
@Test
public void testMoveToAllS... | 39.264706 | 119 | 0.655431 |
0e01ec595204b57ce9ef5f2dda6cd831b760d68b | 2,293 | /*
* BSD 3-Clause License
*
* Copyright (c) 2022, CGATechnologies
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright not... | 40.946429 | 81 | 0.759267 |
1df6a2e28e171b8f8bd589bd2bb9338bba5f5b85 | 620 | package co.edu.sena.programming.lesson05;
public class Ejemplo02 {
public static void main(String[] args) {
System.out.println(EstadosComputador.APAGADO);
System.out.println(EstadoComputador2.APAGADO);
System.out.println(EstadosComputador.APAGADO.ordinal());
System.out.println(Estad... | 41.333333 | 67 | 0.719355 |
7bbf7f43f2927f6542e576032825acbb5535ef5b | 2,329 | package seedu.address.logic.commands;
import static seedu.address.logic.commands.CommandTestUtil.assertCommandFailure;
import static seedu.address.logic.commands.CommandTestUtil.assertCommandSuccess;
import static seedu.address.testutil.TypicalAssignments.getTypicalProductiveNus;
import static seedu.address.testutil.T... | 36.968254 | 99 | 0.753542 |
b72e0951308301d2ab37bc19928f925d310d87d4 | 5,268 | package com.zzx.cicd.cdk;
import software.amazon.awscdk.core.Aws;
import software.amazon.awscdk.core.Construct;
import software.amazon.awscdk.core.SecretValue;
import software.amazon.awscdk.core.SecretsManagerSecretOptions;
import software.amazon.awscdk.core.Stack;
import software.amazon.awscdk.core.StackProps;
import... | 47.459459 | 125 | 0.679954 |
d6da1a256c143de85968d0c1ed22e848b9281ab9 | 565 | package com.nirvanaxp.types.entities.user;
import com.nirvanaxp.types.entities.POSNirvanaBaseClass_;
import javax.annotation.Generated;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;
@Generated(value="Dali", date="2019-03-22T13:53:23.373+0530")
@StaticMetamod... | 40.357143 | 79 | 0.846018 |
fd115feff0f001e0c57c4f360253a76f05c01a2d | 14,366 | package org.fcrepo.server.security.xacml.pdp.data;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import jav... | 38.106101 | 109 | 0.505429 |
a93fb7e07524dce858799b51019b8dc81b2dc6fe | 1,267 | package org.kendar.servers.utils.models;
public class RegexpData {
private String regexp;
private String matcherString;
private boolean caseInsensitive;
private boolean literal;
private boolean unicodeCase;
private boolean multiline;
public String getRegexp() {
return regexp;
}... | 21.474576 | 61 | 0.656669 |
1064586880f0b44a0ae1aa049df88dbaee309de1 | 17,904 | package com.github.yellowstonegames;
import com.badlogic.gdx.Application;
import com.badlogic.gdx.ApplicationAdapter;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.InputAdapter;
import com.badlogic.gdx.graphics.Camera;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
impo... | 51.30086 | 186 | 0.591823 |
368a21ae6285783edfe0fa6cfc5c98074e6e01e5 | 2,237 | package com.elmakers.mine.bukkit.protection;
import org.bukkit.Location;
import org.bukkit.block.Block;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;
import com.elmakers.mine.bukkit.api.protection.BlockBreakManager;
import com.elmakers.mine.bukkit.api.protection.BlockBuildManager;
import com.elmak... | 32.42029 | 127 | 0.621815 |
339a5ea279d59470ff7852038beedc993c19b721 | 7,971 | package io.github.flarroca.liferay.util;
import java.util.Map;
import javax.portlet.PortletPreferences;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.model.ResourceConstants;
import com.liferay.portal.service.PortletPreferencesLocalService;
import com.liferay.portal.service.Po... | 56.133803 | 211 | 0.612094 |
6b87c8b9a7cc5091a5999cade1dcb76262e52742 | 27,878 |
package mage.sets;
import mage.cards.ExpansionSet;
import mage.constants.Rarity;
import mage.constants.SetType;
/**
* @author JayDi85
*/
public final class Masters25 extends ExpansionSet {
private static final Masters25 instance = new Masters25();
public static Masters25 getInstance() {
return in... | 99.209964 | 132 | 0.719671 |
d5e8298e5f931267b47593fd4b6d81f8818245a2 | 128 | /**
* This package provides functionality for outputting data to Yaml format.
*/
package com.fortify.cli.common.output.yaml;
| 21.333333 | 74 | 0.757813 |
bc6eee9aa0cfb5fbb4b482fe31340845be7bf455 | 56 | package com.jmsoftware.maf.osscenter.read.service.impl;
| 28 | 55 | 0.839286 |
61403fe78c3410d77bf21f6452d6a4a856f44f5f | 6,108 | /*
* MIT License
*
* Copyright (c) derrop and derklaro
* Copyright (c) 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... | 27.513514 | 158 | 0.616732 |
f22e374db388fc82309940a806d53cdc3f598a66 | 357 | package com.monoya.my.cake.web.api.web.dto;
import lombok.Data;
import java.io.Serializable;
/**
* 商品数据传输对象
*/
@Data
public class CakeDTO implements Serializable {
private Long id;
private String cakeName;
private String cakeTaste;
private String pic;
private String url;
private Integer pri... | 17.85 | 46 | 0.717087 |
8b8c44dc43375812a1a3e1aa44b94c32366940fb | 5,040 | package com.jokers.pojo.bo;
/**
* <p>AmapBo class.</p>
*
* @author yuton
* @version 1.0
* 高德API消息接收
* @since 2017/4/17 11:22
*/
public class AmapBo {
/**
* status : 1
* info : OK
* infocode : 10000
* result : {"type":"4","location":"113.9434017,22.5496889","radius":"550","desc":"广东省 深圳市... | 22.702703 | 261 | 0.518254 |
53303e02cbfc98c5fb930ebf2b6dc739558385fe | 1,739 | package array;
/**
* 63. Unique Paths II
*
* A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).
* The robot can only move either down or right at any point in time. The robot is trying to reach
* the bottom-right corner of the grid (marked 'Finish' in the diagram bel... | 28.983333 | 99 | 0.510063 |
2bc93500ade358db1c8268680e4ff642a0db7311 | 1,467 | /*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Copyright @ 2015 Atlassian Pty 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.or... | 28.211538 | 75 | 0.718473 |
fa72c1ce095b9ef4ee3cf955b61298a89fc1bb0b | 14,904 | /*
* Copyright (C) 2010-2021 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.repo.common.activity.run.buckets.segmentation;
import com.evolveum.midpoint.repo.common.activity.r... | 39.638298 | 123 | 0.605408 |
c1e64165c9f25c7daf5ef500e4595d6f7a685a48 | 13,981 | /*
* File: MutableIntegerTest.java
* Authors: Justin Basilico
* Company: Sandia National Laboratories
* Project: Cognitive Foundry
*
* Copyright June 14, 2011, Sandia Corporation.
* Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
* lice... | 29.187891 | 80 | 0.573636 |
b51eb5f5d86712b4efc9404f3e0f8238568ecf95 | 2,800 | /*
* Copyright 2015-2021 Alejandro Sánchez <alex@nexttypes.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... | 31.818182 | 86 | 0.746786 |
a283af6a7cf905d3f1bc3190c5e0e6eb3b12aab4 | 2,916 | package com.workhub.z.servicechat.dao;
import com.workhub.z.servicechat.VO.FileMonitoringVo;
import com.workhub.z.servicechat.VO.GroupFileVo;
import com.workhub.z.servicechat.entity.group.ZzGroupFile;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
import java.util.List;
import jav... | 28.038462 | 168 | 0.664609 |
3a275b0686be71839348dafbad3d0085d08328ad | 4,001 | /*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2021 DBeaver Corp and 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/LICE... | 31.257813 | 81 | 0.547863 |
341c4301c2a32e114682e1faab25e1f6f83e768d | 5,765 | /*
* 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 ... | 40.598592 | 119 | 0.703036 |
8bfe584e8af4297e777b7e44338fa74e3977218c | 490 | package com.dnastack.ga4gh.dataconnect.adapter.security;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
@Configuration
@... | 40.833333 | 102 | 0.865306 |
0e0963d4faf2ceee0c6c48c2c14e55e853c9196b | 47,395 | /*
*AVISO LEGAL
© Copyright
*Este programa esta protegido por la ley de derechos de autor.
*La reproduccion o distribucion ilicita de este programa o de cualquiera de
*sus partes esta penado por la ley con severas sanciones civiles y penales,
*y seran objeto de todas las sanciones legales que correspondan.
*Su... | 33.805278 | 652 | 0.763562 |
7020f9b98f2d483ae273d63bac49c58427e2b9d8 | 3,203 | package org.kohsuke.github;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.io.IOException;
import java.net.URL;
import java.util.Date;
/**
* A comment attached to a commit (or a specific line in a specific file of a commit.)
*
* @author Kohsuke Kawaguchi
* @see GHRepository#listCommitComme... | 27.612069 | 129 | 0.635654 |
f6525c97edce1dfa794d6cc5a41164c2013ca0f6 | 2,625 | /*
*
*
*
*/
package com.cms.template.directive;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.beanutils.ConvertUtilsBean;
import org.apache.commons.lang.ArrayUtils;
import com.jfinal.template.Directive;
import com.jfinal.template.expr.ast.Assign;
import com.jfinal.template.expr.ast... | 21.694215 | 81 | 0.586667 |
35745b23aa0be43de23cd442b7cd8350d9b31973 | 460 | package ENCAPSULATION.example2.fix;
import java.math.BigDecimal;
import java.util.Currency;
public class Amount {
private final BigDecimal value;
private final Currency currency;
/*
For the Love of Immutability
*/
public Amount(BigDecimal value, Currency currency) {
this.value = value;
this.cur... | 17.037037 | 54 | 0.704348 |
68f57638d71bc72a0b917c6058029b16f77a4a5f | 3,498 | /*
* Copyright 2015-2017 Emmanuel Keller / QWAZR
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by app... | 37.212766 | 117 | 0.739851 |
b59646a6ddb9aa0e0e57d8ecff412218bd729762 | 838 | package com.jdroid.android.dialog;
import android.support.v4.app.FragmentActivity;
import com.jdroid.android.R;
import com.jdroid.android.utils.ExternalAppsUtils;
public class AppInfoDialogFragment extends AlertDialogFragment {
public static void show(FragmentActivity fragmentActivity, int titleResId, int messageR... | 38.090909 | 141 | 0.810263 |
857bd4b12d62bdebb4bfa9861dca6e9d0b8794cb | 2,509 | package com.taoswork.tallycheck.descriptor.metadata.processor.handler.fields.basics;
import com.taoswork.tallycheck.datadomain.base.presentation.FieldType;
import com.taoswork.tallycheck.datadomain.base.presentation.typed.DateCellMode;
import com.taoswork.tallycheck.datadomain.base.presentation.typed.DateMode;
import ... | 39.203125 | 99 | 0.706656 |
c4cb39a6e8fc8526225f1fe7106763f189cba96c | 1,356 | package io.github.scottleedavis.mattermost.slashjira.io;
import com.atlassian.jira.rest.client.api.JiraRestClient;
import com.atlassian.jira.rest.client.api.domain.Issue;
import com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClientFactory;
import org.springframework.beans.factory.annotation.Autowire... | 32.285714 | 133 | 0.713864 |
be35f733bd8a0a183dadea6a527ae58f696042ef | 1,626 | /*
* 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 co.edu.uniandes.csw.maratones.entities;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.... | 21.116883 | 80 | 0.600861 |
41cb94a17a98acec74952942f50f14676d5f1836 | 645 | package com.DesignPattern.VisitorPattern.demo1;
/**
* Demo 1: 不使用 Visitor Pattern 访问者模式
*/
public class Demo1 {
public static void main(String[] args) {
Goods clothes = new Clothes("Green", 22.3);
Goods pc = new Pc("Black", 3333.33);
System.out.println("Demo1: 不使用 Visitor Pattern 访问者模式")... | 28.043478 | 69 | 0.531783 |
f3f86591a08c0e4a6530c68b66218ba5e6c0e2ee | 513 | package org.reasm.commons.messages;
import org.reasm.AssemblyErrorMessage;
/**
* An error message that is generated during an assembly when there is a syntax error in an effective address.
*
* @author Francis Gagné
*/
public class SyntaxErrorInEffectiveAddressErrorMessage extends AssemblyErrorMessage {
/**
... | 25.65 | 110 | 0.752437 |
3efd28207e16a1d240d045c3db69d513a4258a10 | 531 | package org.sorcerers.asm;
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.IOException;
public class BytecodeVersionChecker {
public static int checkClassVersion(String filename) throws IOException {
DataInputStream in = new DataInputStream(new FileInputStream(filename));
int mag... | 24.136364 | 74 | 0.741996 |
a8d8cae1278b0cccec38afeec3078ffe5f4396d0 | 3,971 | package com.github.TKnudsen.ComplexDataObject.model.processors.features.mixedData;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import com.github.TKnudsen.ComplexDataObject.data.features.Feature;
impo... | 34.530435 | 105 | 0.716444 |
8ab3d0a266e1930e3ae6964c19858beb9a2a7c2b | 692 | package es.upm.miw.apaw_practice.domain.models.vet_clinic;
public class VetLeaf implements VetComponent {
private final Vet vet;
public VetLeaf(Vet vet) {
this.vet = vet;
}
public Vet getVet() {
return this.vet;
}
@Override
public boolean isComposite() {
return f... | 19.771429 | 110 | 0.627168 |
1ac563202e47d3f461b6de4aba788f3773328bb6 | 8,915 | // Copyright 2009 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 to in writ... | 28.034591 | 79 | 0.671116 |
553396b1e80164fc52827879d4fb672a724f1d2c | 21,701 | package com.cactusteam.money.sync;
import com.cactusteam.money.sync.changes.ChangeItem;
import com.cactusteam.money.sync.changes.ChangesApplier;
import com.cactusteam.money.sync.changes.ChangesList;
import com.cactusteam.money.sync.changes.ChangesListProvider;
import com.cactusteam.money.sync.changes.IChangesStorage;
... | 38.890681 | 145 | 0.627805 |
18ac84ca3a18d3c69162916994f74f62b43b5d36 | 3,479 | package uk.gov.companieshouse.api.accounts.interceptor;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInstance;
import org.junit.jupiter.api.TestInstance.Lifecycle;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.InjectMocks;
import ... | 35.5 | 96 | 0.745329 |
4f66e616db132ee1e4214c13fe07615b562f7465 | 6,168 | package water.fvec;
import static org.junit.Assert.*;
import org.junit.BeforeClass;
import org.junit.*;
import water.*;
public class NewVectorTest extends TestUtil {
@BeforeClass() public static void setup() { stall_till_cloudsize(1); }
static final double EPSILON = 1e-6;
private void testImpl( long[] ls, in... | 40.847682 | 106 | 0.584955 |
1cb33bf66da7998ae32794e92068a0b52fd07ef2 | 1,225 | package com.sdl.ecommerce.api.model.impl;
import com.sdl.ecommerce.api.model.ProductAttribute;
import com.sdl.ecommerce.api.model.ProductPrice;
import com.sdl.ecommerce.api.model.ProductVariant;
import java.util.List;
/**
* Generic Product Variant
*
* @author nic
*/
public class GenericProductVariant implements ... | 23.557692 | 100 | 0.634286 |
dafc8c623b0113a28b02d45a814f25551e5735b5 | 4,810 | package me.tatiyanupanwong.supasin.android.libraries.kits.location.internal.huawei.model;
import android.app.Activity;
import android.content.Context;
import android.location.Location;
import android.os.Looper;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.Require... | 42.566372 | 114 | 0.735551 |
e2655a13f0c42cfa69eaa335b7566eb7e8799f94 | 1,083 | package com.common.util;
import java.util.LinkedList;
import java.util.Queue;
import com.leetcode.struct.TreeNode;
public class TreeUtils {
public static TreeNode toTree(Integer[] nums) {
if (nums.length == 0)
return null;
TreeNode head = new TreeNode(nums[0]);
Queue<TreeNode>... | 30.083333 | 67 | 0.498615 |
de55c7221d233ba54e5a4f4a2087a082a226b164 | 1,024 | package com.jannchie.word.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet... | 30.117647 | 77 | 0.624023 |
0f0825a9120dce28e163a975f9650fb13ea84b77 | 9,268 | package com.ltv.aerospike.management.form;
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Frame;
import java.awt.GridLayout;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import ... | 40.121212 | 167 | 0.597324 |
4f22053424db573e6fe23256cba50ed057ab70d9 | 158 | package Exercise_01_12;
public class Exercise_01_12 {
public static void main(String[]args) {
System.out.println(24*60*60/(100*60+35)*1.6);
}
}
| 14.363636 | 48 | 0.677215 |
4d9d6ecc648e6be716722d4ab97c58f7fb5d7ef1 | 225 | class dis
{
public static void main(String args[])
{
float sp=960;
float lp=4;
float cp,p;
cp=100/(100-lp)*sp;
float nsp=1160;
p=nsp-cp;
System.out.println("cost price="+cp);
System.out.println("profit"+p);
}
}
| 15 | 39 | 0.64 |
552b8507f960b030cf20abc250840643e00ecf98 | 1,038 | package org.jetbrains.android.util;
import org.jetbrains.annotations.NotNull;
public class WaitingStrategies {
public static abstract class Strategy {
private Strategy() {
}
}
public static class DoNotWait extends Strategy {
private static final DoNotWait INSTANCE = new DoNotWait();
private Do... | 19.584906 | 66 | 0.668593 |
736304be197c177f0c5a0a5474cacc7f70159dec | 9,193 | package whelk.history;
import whelk.JsonLd;
import java.util.*;
public class History {
private final HashMap<List<Object>, Ownership> m_pathOwnership;
// The last version added to this history, needed for diffing the next one against.
private DocumentVersion m_lastVersion;
private final JsonLd m_js... | 38.95339 | 132 | 0.528663 |
eee5a2ff7f7cf4d73cbd9b10404c75dc7a7ef420 | 749 | package com.sva.test.dao;
import java.util.List;
import javax.annotation.Resource;
import org.junit.Assert;
import org.junit.Test;
import com.sva.dao.PhoneDao;
import com.sva.model.PhoneModel;
public class PhoneDaoTest extends BasicDaoTest{
@Resource
PhoneDao dao;
@Test
public void getAllDataTes... | 24.16129 | 60 | 0.659546 |
d9ea2f745846cb7df95ac605007c170260d55778 | 5,138 | package com.mt.access.infrastructure.oauth2;
import com.mt.access.application.ApplicationServiceRegistry;
import com.mt.access.domain.DomainRegistry;
import com.mt.access.domain.model.client.Client;
import com.mt.access.domain.model.client.ClientId;
import com.mt.access.domain.model.permission.PermissionId;
import com... | 55.847826 | 188 | 0.678279 |
1a6d3597646e7defc53c10536a84232a191a7b62 | 2,057 | /*
* Copyright (c) 1997, 2018 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: ... | 23.375 | 100 | 0.691298 |
986ad02132ffebc286a42a556964bf1b927a7709 | 1,661 | package com.destiny.squirrel.utils;
import com.google.common.collect.Lists;
import org.junit.Test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Spliterator;
import java.util.concurrent.ConcurrentHashMap;
import java.util.f... | 24.426471 | 83 | 0.686936 |
0c9e8db862a7e368e343cb7c8db66d88afd25e44 | 4,035 | package io.jenkins.plugins.analysis.core.util;
import java.util.Map;
import java.util.NoSuchElementException;
import org.junit.jupiter.api.Test;
import edu.hm.hafner.analysis.Severity;
import edu.hm.hafner.util.SerializableTest;
import io.jenkins.plugins.analysis.core.util.IssuesStatistics.StatisticProperties;
imp... | 44.340659 | 101 | 0.702354 |
6cf7a185d7ea5f8410812a8997154b0bebe141a7 | 3,841 | package net.sf.javagimmicks.collections8.decorators;
import java.io.Serializable;
import java.util.Collection;
import java.util.Map;
import java.util.Set;
import java.util.function.BiConsumer;
import java.util.function.BiFunction;
import java.util.function.Function;
/**
* A basic class for {@link Map} decorators tha... | 21.948571 | 116 | 0.659203 |
d6e9b9681117dcbab46539a22a7459800e7c03a1 | 9,397 | /*
* Copyright 2002-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 35.327068 | 181 | 0.785996 |
93287917b3f4fd781facf01f9f165502cc41537b | 519 | package org.highmed.dsf.fhir.webservice.secure;
import org.highmed.dsf.fhir.help.ResponseGenerator;
import org.highmed.dsf.fhir.webservice.specification.NamingSystemService;
import org.hl7.fhir.r4.model.NamingSystem;
public class NamingSystemServiceSecure extends AbstractServiceSecure<NamingSystem, NamingSystem... | 34.6 | 104 | 0.828516 |
3bee1fc523432826342c8855ec27b9f275fc8862 | 1,201 | package datawave.query.iterator;
import org.apache.accumulo.core.data.Range;
import org.apache.commons.jexl2.parser.ASTJexlScript;
import datawave.query.function.JexlEvaluation;
public class NestedQuery<T> {
protected NestedIterator<T> iter;
protected Range iterRange;
protected ASTJexlScript script;
... | 21.446429 | 54 | 0.630308 |
4292d5ef2cd41309407bf97e75274fce8d61167c | 1,144 | package com.lys.utils;
import java.sql.Date;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import net.sf.json.JsonConfig;
import net.sf.json.processors.JsonValueProcessor;
/**
* json 自我封装需要的类
* @author shuang
*/
public class JsonDateValueProcessor implements JsonValueProcessor {
private DateForm... | 27.238095 | 83 | 0.766608 |
f2438782f7cd6916960158d5eeccf9d07c10af0c | 1,484 | /*
* DISCLAIMER
*
* Copyright 2016 ArangoDB GmbH, Cologne, Germany
*
* 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 req... | 26.981818 | 75 | 0.661051 |
80d4507af38ca4ff3b625b1b8e736cb0c74548ed | 12,941 | /*
* Copyright 2018 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for details.
*/
package org.rf.ide.core.testdata.model.table;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.EnumSet;
import ... | 35.070461 | 122 | 0.615254 |
bf0e8b8615ab1f75845530298242b3ced4eecb60 | 3,522 | package io.syndesis.connector.jms.springboot;
import javax.annotation.Generated;
/**
* Publish JMS Messages
*
* Generated by camel-package-maven-plugin - do not edit this file!
*/
@Generated("org.apache.camel.maven.connector.SpringBootAutoConfigurationMojo")
public class ActiveMQPublishConnectorConfigurationComm... | 23.959184 | 78 | 0.661272 |
eb7d9343472f25e814c408acccb9ceb07c37f002 | 54 | package br.utfpr.crud;
public class MenuBar {
}
| 9 | 22 | 0.666667 |
559d6d804dce46a66b4c4ce916c43abae9fce9e5 | 725 | package quimica.ufc.br.estequiometria.parser;
import java.util.HashMap;
import quimica.ufc.br.estequiometria.interactions.Interaction1Activity;
import static quimica.ufc.br.estequiometria.InteractionAcitivity.ELEMENTS_HASH;
/**
* Look up table. Stores information about the atoms.
* @author vladymirbezerra
*
*/
... | 19.594595 | 79 | 0.729655 |
fc51aa7bf26c697bb684e3ddbbd5e8310471d6c7 | 1,234 | package project;
import java.io.*;
class add
{
int a,b,c;
double x,y,z;
String k,l,m;
add()
{
}
add(int m,int n)
{
a=m;
b=n;
c=a+b;
System.out.println(c);
}
add(double x1,double y1)
{
x=x1;
y=y1;
z... | 22.436364 | 80 | 0.483793 |
304d08798f6915e493b7365432ba8e97635bacba | 3,025 | package com.northgateps.nds.beis.ui.selenium.pagehelper;
import java.util.Locale;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.ui.Select;
import com.northgateps.nds.beis.ui.selenium.pageobject.PersonalisedLandlordAddressPageObject;
import com.northgateps.nds... | 37.345679 | 136 | 0.715702 |
90c34d3dd3808ae210420716ab2afa905df14843 | 2,843 | package com.hl.p2p.pojo;
import java.math.BigDecimal;
import java.util.Date;
public class Paymentscheduledetail {
private Long id;
private BigDecimal bidamount;
private Long bidId;
private BigDecimal totalamount;
private BigDecimal principal;
private BigDecimal interest;
private int ... | 19.472603 | 62 | 0.642279 |
6afe3f8ac4d90f944552dd9852c3c6a5f4b10c6c | 535 | package com.nbs.iais.ms.meta.referential.common.messageing.events.statistical.program;
import com.nbs.iais.ms.common.dto.impl.StatisticalProgramDTO;
import com.nbs.iais.ms.common.dto.wrappers.DTOBoolean;
import com.nbs.iais.ms.common.messaging.events.abstracts.AbstractEvent;
public class RemoveStatisticalProgramLegis... | 35.666667 | 109 | 0.813084 |
4f5cead799d7a69547137a8c8fd102842eaf3f02 | 334 | package com.github.skjolber.jsh;
import java.io.IOException;
import org.junit.Test;
public class JsonStreamContextListenerTest extends AbstractHighlighterTest {
@Test
public void testHighlistSubtree() throws IOException {
SubtreeJsonStreamContextListener l = new SubtreeJsonStreamContextListener();
handl... | 19.647059 | 78 | 0.790419 |
a19bb287a128da7684cc6664440c0b4d5e06b926 | 2,856 | package org.planetearth.words.repository;
import java.util.List;
import java.util.Set;
import org.planetearth.words.domain.Word;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
/**
* Repositor... | 46.819672 | 106 | 0.672619 |
e038b0e58525cad680b2816d432ad18f6c3de526 | 2,689 | package com.github.derrop.simplecommand.argument;
import org.jetbrains.annotations.NotNull;
import java.util.Arrays;
import java.util.Collection;
import java.util.Optional;
import java.util.stream.Stream;
public class CommandArgumentWrapper {
private final CommandArgument<?>[] arguments;
public CommandArgum... | 31.635294 | 125 | 0.639271 |
58b1170aab2f2c736f601d5c2e4c7d7752c490fa | 17,416 | package com.ihs.odkate.base.utils;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.res.AssetManager;
import android.util.Log;
import com.ihs.odkate.base.Odkate;
import com.ihs.odkate.base.R;
import... | 39.944954 | 157 | 0.569706 |
aeb9af28983ea0e2fd4bd215a31d7fdb44593748 | 2,055 | /*
* Copyright (c) 2017 The Regents of the University of California.
* All rights reserved.
*
* '$Author: crawl $'
* '$Date: 2017-08-29 15:27:08 -0700 (Tue, 29 Aug 2017) $'
* '$Revision: 1392 $'
*
* Permission is hereby granted, without written agreement and without
* license or royalty fees, to use, copy, m... | 37.363636 | 85 | 0.739173 |
e48a0c19031a6edd9437b8597623d5565a2b51f7 | 555 | package entidades;
public class Tbl_rolOpciones {
private int idRolOpciones;
private int idRol;
private int idOpciones;
public Tbl_rolOpciones() {}
public int getIdRolOpciones() {
return idRolOpciones;
}
public void setIdRolOpciones(int idRolOpciones) {
this.idRolOpciones = idRolOpciones;
}
public i... | 15.416667 | 50 | 0.726126 |
5f3ca35ef6288214ad5c002a225da022dedd94a8 | 3,359 | package cc.boeters.bikeplanner.service;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.mchange.v2.c3p0.ComboPooledDataSource;
import cc.boeters.bikeplanner.util.QueryUtil;
pu... | 31.392523 | 112 | 0.713308 |
90a09e71210e0dde60bc28ce76ba55a2a68a3243 | 1,485 | package com.danisola.restify.url.types;
import com.danisola.restify.url.RestParser;
import com.danisola.restify.url.RestUrl;
import org.junit.Test;
import static com.danisola.restify.url.RestParserFactory.parser;
import static com.danisola.restify.url.matchers.IsInvalid.isInvalid;
import static com.danisola.restify.u... | 39.078947 | 90 | 0.709764 |
fa32cfc405c56d3d0295f54223e1123d6c46980a | 4,199 | /*
* 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... | 49.4 | 80 | 0.765182 |
8f52e79ed24201b694d5455a94ff9800702e0bba | 3,605 | package com.amazon.alexa.auto.setup.workflow.fragment;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import android.app.Application;
import android.vi... | 35 | 106 | 0.73509 |
24d512d85ccb5a5a0de0ad0197f8661c324592e2 | 2,538 | /*
* 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 ... | 40.935484 | 102 | 0.670213 |
0efe9848e6ac3cb58fe66cd830922298c8d2d277 | 12,325 | /*
* Copyright 2004-2015 the Seasar Foundation 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 ... | 33.13172 | 100 | 0.581258 |
a9165df18a17ae64b84a403956e47bcb9a1c669a | 17,426 | /*
* Copyright Anatoly Starostin (c) 2017.
*/
package treeton.gui;
import org.jdesktop.swingx.JXTree;
import treeton.gui.util.MergedIcon;
import treeton.prosody.corpus.Corpus;
import treeton.prosody.corpus.CorpusEntry;
import treeton.prosody.corpus.CorpusFolder;
import treeton.prosody.corpus.CorpusListener;
import... | 35.782341 | 157 | 0.641513 |
3a5fbaa6a563b12afa2f071abb1776887aae2779 | 7,403 | package com.kemal;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
import zemberek.morphology.TurkishMorphology;
import zemberek.morphology.analysis.AnalysisFormatters;
import zemberek.morphology.analysis.InformalAnalysisConverter;
... | 29.145669 | 99 | 0.68972 |
cb51883f3ff9979287ccf255a8a69c894e19b723 | 406 | package com.jakduk.api.restcontroller.vo.gallery;
import com.jakduk.api.common.Constants;
/**
* Created by pyohwanjang on 2017. 4. 14..
*/
public class LinkedItemForm {
private String itemId; // 아이템 ID
private Constants.GALLERY_FROM_TYPE from; // 출처
public String getItemId() {
return itemId;
... | 19.333333 | 51 | 0.674877 |
e1576b4a86c12e89b1cde32512a0f4ad23a9b38d | 11,818 | /**
* Copyright 2014-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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 43.933086 | 172 | 0.670418 |
fc99dfd8db28fe5a2723b07d772954486ae60a3f | 1,168 | package com.gutotech.narutogame.utils;
import android.content.Context;
import android.content.SharedPreferences;
public class SettingsUtils {
public static final String BG_MUSIC_KEY = "bgMusicEnabled";
public static final String SOUND_KEY = "soundMusicEnabled";
public static final String NOTIFICATIONS_KEY... | 36.5 | 96 | 0.737158 |
a5e63d734927f77a254d3cba0e44df216b248fdd | 273 | package controllers;
import be.objectify.deadbolt.java.actions.Group;
import be.objectify.deadbolt.java.actions.Restrict;
import play.mvc.*;
@Restrict(@Group("Admin"))
public class Application extends Controller {
public Result index() {
return ok();
}
}
| 21 | 51 | 0.725275 |
e566766bc7ac21a1d09d4f3b4496a63737cdabd3 | 2,403 | /*
* Copyright 2016 Sam Sun <me@samczsun.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... | 34.826087 | 176 | 0.601748 |
6caac94b6fb4457d34ec3cdd4ebc898f209cdcda | 4,042 | package arcs.android;
import arcs.api.RuntimeSettings;
import com.google.auto.value.AutoValue;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Optional;
import java.util.function.Function;
import java.util.logging.Logger;
import javax.inject.Inject;
/** For Javascript-based Arcs runt... | 35.769912 | 97 | 0.715982 |
f88c37349e43ca5fcfd184868929e4d09d7fffc1 | 7,583 | package imoucheg.ihm;
import imoucheg.app.App;
import imoucheg.services.Services;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.SystemColor;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import... | 31.205761 | 95 | 0.680469 |
a47f955489702836cdca25e7de0e3ee734b0c480 | 8,749 | package cgeo.geocaching.network;
import cgeo.geocaching.R;
import cgeo.geocaching.StoredList;
import cgeo.geocaching.cgeoapplication;
import cgeo.geocaching.compatibility.Compatibility;
import cgeo.geocaching.connector.ConnectorFactory;
import cgeo.geocaching.files.LocalStorage;
import cgeo.geocaching.utils.IOUtils;
i... | 36.302905 | 141 | 0.606698 |
0d5f4cf0dc4fb4479b4b0139cf47dea3c36c6788 | 343 | package com.kgc.oop.designpatterns.Factory_mode.abstract_factory;
/**
* @author:杨涛
* 黑色动物生产工厂
* 生产黑色的猫、狗
*/
public class BlackAnimalFactory implements IAanimalFactory{
@Override
public ICat createCat() {
return new BlackCat();
}
@Override
public IDog createDog() {
return n... | 18.052632 | 65 | 0.650146 |
f01101f25fb96832077faccd5f6457c91abb7d08 | 5,409 | /*
* The MIT License
*
* Copyright 2016 Universidad de los Andes - Departamento de Ingeniería de Sistemas.
*
* 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, includ... | 42.590551 | 162 | 0.685154 |
31238d7b40665d286b1e13ac214e52abef3fa7dc | 2,284 | package com.github.zhenwei.network.bio;
import java.net.ServerSocket;
import java.net.Socket;
import java.nio.charset.StandardCharsets;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
public class BioServer implements Runnable {
... | 25.098901 | 92 | 0.648862 |
20c0f8f2a055430f5896f9844938c51ff5f75074 | 2,617 | package parameterize;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* Created by Edgar on 2016/4/6.
*
* @author Edgar Date 2016/4/6
*/
public class FilteringApples {
public static void main(String[] args) {
List<Apple> inventory = Arrays
.asList(new Apple(80,... | 28.445652 | 92 | 0.644249 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.