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 |
|---|---|---|---|---|---|
f10726f996603fd15d69f4c7b816c41fe093eb69 | 1,446 | /*
* 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 eu.diversify.ffbpg.evolution;
import eu.diversify.ffbpg.Application;
import eu.diversify.ffbpg.BPGraph;
import eu.diversify.f... | 31.434783 | 132 | 0.711618 |
7bbda39c4354165063e195a87418d052640e74b4 | 17,379 | /*
* Copyright 2000-2014 Vaadin 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 applicable law or agreed to... | 36.664557 | 101 | 0.611543 |
d7306c6554183a507589319824d3d49799226aea | 858 | package io.github.zhmushan.simpletool;
public class ExpressionTreeNode {
private Object sympol;
private ExpressionTreeNode left;
private ExpressionTreeNode right;
public ExpressionTreeNode(Object sympol) {
this.sympol = sympol;
this.left = null;
this.right = null;
}
p... | 19.5 | 52 | 0.623543 |
4bb6b7cc4ef61f3e88788782d9759563f7475002 | 7,101 | /*
* Copyright 2013 SPeCS.
*
* 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 writin... | 32.424658 | 118 | 0.655682 |
668c955be778e7b28ff7eeca924a5de13ba8be5a | 2,925 | package com.jantvrdik.intellij.latte.lexer;
import com.intellij.lexer.Lexer;
import com.intellij.lexer.LookAheadLexer;
import com.intellij.psi.tree.IElementType;
import com.intellij.psi.tree.TokenSet;
import static com.jantvrdik.intellij.latte.psi.LatteTypes.*;
import com.jantvrdik.intellij.latte.utils.LatteTypesUtil;... | 31.793478 | 132 | 0.759316 |
4e5b010b530a2fc1fc85c0df54b3ca60a3d94204 | 353 | package com.qp.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.qp.model.VideoItem;
@Repository
public interface VideoItemRepository extends JpaRepository<VideoItem, Integer> {
VideoItem findByfilePath (String path);
VideoItem... | 20.764706 | 80 | 0.813031 |
35035843f91e86162d237bdf300859bf2f6583c6 | 1,394 | // -----------------------------------------------------------------------
// <copyright file="FieldFilter.java" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------
package com.microsoft.store... | 26.301887 | 102 | 0.605452 |
e181f7d79105b4469c24250241ad1ca9665cae7a | 2,455 | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.streamanalytics.v2020_03_01_preview;
import java... | 19.95935 | 75 | 0.577597 |
bde4a1d9efe407abbe61aa5d22d4ddb0c38ba50f | 2,599 | package com.ulisesbocchio.jasyptspringboot.filter;
import com.ulisesbocchio.jasyptspringboot.EncryptablePropertyFilter;
import com.ulisesbocchio.jasyptspringboot.properties.JasyptEncryptorConfigurationProperties;
import com.ulisesbocchio.jasyptspringboot.util.Singleton;
import lombok.extern.slf4j.Slf4j;
import org.spr... | 49.980769 | 162 | 0.709119 |
81be9ce4f75e0d0e4f1f47c80cc28cb5c1ad09ee | 441 | package org.cloudgraph.store.mapping.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.cloudgraph.store.mapping.KeyFieldCodecType;
@Target(ElementType.FIELD)
@Retention(RetentionPolic... | 29.4 | 75 | 0.84127 |
0263e93499e0a5feaa1745bacbb52f7d9f4fb47c | 2,371 | package org.odk.collect.android.widgets.utilities;
import android.app.Activity;
import androidx.lifecycle.LifecycleOwner;
import org.javarosa.form.api.FormEntryPrompt;
import org.odk.collect.android.listeners.PermissionListener;
import org.odk.collect.android.utilities.PermissionUtils;
import org.odk.collect.android... | 36.476923 | 199 | 0.699705 |
425f263683ad198aa38483ce5e0fbb7abbe69ae2 | 16,044 | package com.dachung.getvediofrominternet.Util;
import android.annotation.TargetApi;
import android.content.Context;
import android.graphics.Bitmap;
import android.media.MediaRecorder;
import android.os.Build;
import android.os.Environment;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;... | 32.023952 | 115 | 0.567253 |
fc8ac65b28ba9830703ee395a14dc93432be83b8 | 630 | package io.morethan.dagger_experiments.module_composition.impl;
import java.util.Set;
import io.morethan.dagger_experiments.models.Server;
import io.morethan.dagger_experiments.models.ServerService;
public class ServerModuleVariant1 extends AbstractServerModule {
private final int _port;
public ServerModul... | 24.230769 | 64 | 0.714286 |
ee000117c8435de20e36692e0d2130c95024de63 | 2,472 | package org.batfish.datamodel;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
p... | 26.297872 | 99 | 0.676375 |
db35f9f8b6d19bfc6c6f0f421c9c1ef50832689a | 1,748 | /*
* Copyright 2016 ElasticBox
*
* Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or http://apache.org/licenses/LICENSE-2.0>
* or the MIT license <LICENSE-MIT or http://opensource.org/licenses/MIT> , at your option.
* This file may not be copied, modified, or distributed except according to those ... | 38 | 128 | 0.745995 |
335be07992e7b79732d6e85b9e591b66a7bece38 | 742 | package nl.hu.bdsd.domain.serde;
import com.fasterxml.jackson.databind.ObjectMapper;
import nl.hu.bdsd.domain.Message;
import org.apache.kafka.common.serialization.Deserializer;
import java.util.Map;
public class MessageSerdeDeserializer implements Deserializer<Message> {
@Override
public void configure(Map... | 22.484848 | 72 | 0.653639 |
93f861fe83ee31a225270e86b84f80083e4c2a8f | 12,561 |
import java.awt.*;
import java.awt.event.*;
public class Scrabble extends Frame implements ActionListener, WindowListener,
MouseListener, MouseMotionListener {
Image backbuffer;
Graphics backg;
Button Submit = new Button("Submit");
Button Reset = new Button("Reset");
Board myBoard = new B... | 34.795014 | 109 | 0.547249 |
2284040efd25ad354bc8ab3adb9fde80eaadd523 | 1,579 | package strategy;
import java.util.ArrayList;
import java.util.List;
import application.RouletteContext;
import enums.BetType;
import enums.Spot;
import model.Bet;
/**
* 98.48パーセント法.<br>
* http://www.xn--9ckk7he3f9633bhel9uq.jp/9848_percent.html
*
* @author cyrus
*/
public class Rate_98_48_Perce... | 27.224138 | 97 | 0.70741 |
1c4df2943919e14ce3f1203a992cd1eb135b6a06 | 977 | package org.opentosca.container.api.dto;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import com.fasterxml.jackson.annotation.JsonProperty;
... | 31.516129 | 80 | 0.779939 |
9f145c11a3d0875c3e071f79e4a9f76f9fe0c625 | 15,554 | /**
* Copyright (c) 2011, SOCIETIES Consortium (WATERFORD INSTITUTE OF TECHNOLOGY (TSSG), HERIOT-WATT UNIVERSITY (HWU), SOLUTA.NET
* (SN), GERMAN AEROSPACE CENTRE (Deutsches Zentrum fuer Luft- und Raumfahrt e.V.) (DLR), Zavod za varnostne tehnologije
* informacijske družbe in elektronsko poslovanje (SETCCE), INS... | 39.178841 | 232 | 0.699241 |
86f64beb6ae4f05491c797e08afbbc968b1454f5 | 2,543 | /*
* Copyright 2010-2020 Australian Signals Directorate
*
* 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 appl... | 31.395062 | 113 | 0.658671 |
df1eb0229e296914ac8de9fff60420758845ad73 | 1,259 | package com.srs.tetris.game;
/**
* The state for the game's input.
*/
public class Input implements Cloneable {
private boolean rotateLeft, rotateRight;
private boolean left, right;
private boolean down;
private boolean drop;
private boolean swap;
@Override
public Input clone() {
try {
return (Input) ... | 15.7375 | 50 | 0.691819 |
d4477c0d96f13436bfd9d4d4ef6702c5fb88e96e | 2,851 | package com.siggemannen.backgroundrunner;
import java.util.function.Consumer;
import java.util.function.Supplier;
import javax.swing.SwingWorker;
import com.siggemannen.functional.throwing.ThrowingConsumer;
import com.siggemannen.functional.throwing.ThrowingRunnable;
import com.siggemannen.functional.throwing.Throwi... | 25.230088 | 128 | 0.596633 |
31a750453cb4c63f00036c0d60824b61f1ecc333 | 4,758 | /*
* Copyright (c) 2018 Tarokun LLC. All rights reserved.
*
* This file is part of BlobBase.
*
* 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/LICENS... | 25.580645 | 81 | 0.602984 |
cd38aaeeb449b15246a4fc9f2dc13fdfcb3a2d7e | 363 | package com.vodafone.projectoverview.repository;
import com.vodafone.projectoverview.data.Misc;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface MiscRepository extends Neo4jRepository<Misc, Long> {
... | 25.928571 | 69 | 0.826446 |
e79493f6572e0f6fdf59f6635a7c97ac92d0fb20 | 3,955 | /*
* MIT License
*
* Copyright (c) 2017 Eugene Dementiev
*
* 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 ... | 28.25 | 167 | 0.666245 |
4b48aa6080d6cf98a45e53e05948d4bd767ab0c7 | 2,420 | package com.tersesystems.proxyjsse.builder;
import java.io.File;
import java.security.KeyStore;
import java.security.Provider;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class KeyStoreBuildersBuilder {
private KeyStoreBuildersBuilder() {}
public interface BuilderFinal {
... | 28.809524 | 100 | 0.727273 |
f84cedb0b13e959a2bb874b6c305748318e56adc | 1,106 |
package com.laytonsmith.core.functions;
import com.laytonsmith.core.exceptions.ConfigCompileException;
import static com.laytonsmith.testing.StaticTest.SRun;
import org.junit.*;
import static org.junit.Assert.assertEquals;
/**
*
* @author Layton
*/
public class CryptoTest {
public CryptoTest() {
}
... | 22.12 | 100 | 0.685353 |
52f0d64a1cad627ce03f5f8b26a3fed018e5c8e2 | 6,974 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you m... | 39.851429 | 120 | 0.695727 |
ce4026d10aac18425d416d4488ecec4b368b7419 | 411 | package eta.runtime.apply;
import eta.runtime.stg.StgClosure;
import eta.runtime.stg.StgContext;
import eta.runtime.stg.StackFrame;
public class ApPV extends StackFrame {
public StgClosure p;
public ApPV(StgClosure p) {
this.p = p;
}
@Override
public void stackEnter(StgContext context) {... | 20.55 | 48 | 0.673966 |
e1859c7a56d190bfe5107f35b75f1b61039fdec6 | 10,622 | package com.tle.webtests.test.contribute;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertFalse;
import static org.testng.Assert.assertTrue;
import com.tle.webtests.framework.TestInstitution;
import com.tle.webtests.pageobject.IntegrationTesterPage;
import com.tle.webtests.pageobje... | 43.004049 | 94 | 0.751177 |
78ede729e010932e504fbfdebf1916519c2573ee | 2,080 | package io.github.ihelin.demo.other.arithmetic.pat.b1015;
import java.util.Scanner;
import java.util.Set;
import java.util.TreeSet;
/**
* @author iHelin
* @since 2018/2/5 10:30
*/
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scan... | 29.295775 | 90 | 0.476923 |
6ae6ec14fe4a7960c85e620bae46ade369c9d56a | 501 | package com.ztiany.main.binding.data;
import java.util.List;
/**
* @author Ztiany
* Email: ztiany3@gmail.com
* Date : 2017-05-23 14:55
*/
public interface BindingDataSource {
void loadBindingBeanList(Callback callback);
void loadBindingBean(String id ,Callback callback);
abstract cl... | 17.275862 | 70 | 0.658683 |
5b9e884bbc8d91e923695830a0921084c94d97d8 | 361 | package fi.maanmittauslaitos.pta.search.text.stemmer;
import java.util.Map;
public class StemmerFactory {
public static Stemmer createFinnishStemmer() {
return new FinnishVoikkoStemmer();
}
public static Stemmer createFinnishStemmer(Map<String, String> preStem, Map<String, String> postStem) {
return new Finni... | 25.785714 | 104 | 0.786704 |
42dd1b59275358cf18ae7632777d8684eaa6fb65 | 596 | package com.lemonade.leetcode.t1000.t800;
import java.util.HashMap;
@SuppressWarnings("unused")
public class JewelsAndStones771 {
public int numJewelsInStones(String jewels, String stones) {
HashMap<Character, Integer> map = new HashMap<>();
char[] jewelsArr = jewels.toCharArray();
for (c... | 24.833333 | 64 | 0.555369 |
17c8e14cc5f7fe2ed8db082616fe89d3ec0620f0 | 109 | package ch.noebuerki.java.mvvm.general.sizes;
public interface Size {
int getWidth();
int getHeight();
}
| 13.625 | 45 | 0.733945 |
ee8ec8ee760cb784c2aa7ef02353d8e46b7646f7 | 2,689 |
package com.google.api.ads.adwords.jaxws.v201402.cm;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for TemplateElementField.Type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simp... | 19.918519 | 187 | 0.455188 |
f704255937e6deb24fa2b78a13962486a56bd264 | 4,170 | /***********************************************************************************************************************
*
* Copyright (C) 2010-2013 by the Stratosphere project (http://stratosphere.eu)
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance... | 46.333333 | 120 | 0.68705 |
b13bfe215e03cf43b460a3efacde0eb3a4576aef | 1,310 | package eu.phisikus.pivonia.crypto;
import com.google.crypto.tink.Aead;
import com.google.crypto.tink.CleartextKeysetHandle;
import com.google.crypto.tink.JsonKeysetReader;
import com.google.crypto.tink.aead.AeadConfig;
import java.io.IOException;
import java.security.GeneralSecurityException;
class SymmetricalEncry... | 29.111111 | 72 | 0.667176 |
5421e9b99e74adff89068cd6437e52081b81e294 | 215 | package cc.kpug.cloudnative.customer.domain.account;
import org.springframework.data.repository.PagingAndSortingRepository;
public interface AccountRepository extends PagingAndSortingRepository<Account, Long> {
}
| 30.714286 | 86 | 0.860465 |
7fe8ac6f8edd79a2b768d9965d19b6776f6afa17 | 30,270 | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.codeInspection;
import com.google.common.collect.Lists;
import com.intellij.analysis.AnalysisScope;
import com.intellij.codeInspection.ex.*;
import com.intel... | 41.352459 | 158 | 0.688603 |
996b8d8aa03be404473ddf83ac53c0b1497a14f0 | 1,081 | package com.ericande;
import com.gargoylesoftware.htmlunit.html.DomNode;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
import org.junit.Test;
import java.io.File;
import java.io.FileInputStream;
import java.io.ObjectInputStream;
public class PageSerializerTest {
private static final String EXAMPLE_PATH = "... | 36.033333 | 100 | 0.723404 |
41c612d58c1012385b9b0749bece37be7d2d37f6 | 3,170 | /*
* Copyright (c) 2010, WSO2 Inc. (http://www.wso2.org) 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
*
* Un... | 38.192771 | 106 | 0.788328 |
1f375fc2b6e1587e379c2521970e6c433b17c916 | 3,445 | package com.apkspectrum.util;
import java.io.File;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URL;
import java.net.URLDecoder;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
public class ClassFinder {
//https://dzone.com/ar... | 34.108911 | 119 | 0.683309 |
e6bc70f1c133aede5f8453f9f0af157b34be1698 | 17,675 | /*
* Copyright 2019, Perfect Sense, 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 a... | 35.779352 | 221 | 0.621103 |
e5ab016f7f34b8b9fed81fea1f90ccff5021319b | 4,629 | package org.extErp.sysCommon.party;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import javolution.util.FastMap;
import org.extErp.sysCommon.content.UtilFileUpload;
import org.ofbiz.base.util.UtilProperties;... | 37.634146 | 156 | 0.739469 |
2ce38a0c3e0d406d63452eea313aaa924f34d7df | 917 | package nl.java.shakespearelang.parser.line;
public class TextSimplifiers {
private TextSimplifiers(){
// static class
}
public static final String THEDIFFERENCEBETWEEN = "THEDIFFERENCEBETWEEN";
public static final String THESUMOF = "THESUMOF";
public static final String THEPRODUCTOF = "THE... | 41.681818 | 87 | 0.739368 |
f2dac5fc9655f98dd7b480e9eafa8abf65ab6657 | 9,686 | package com.henrikroslund.pipeline.stage;
/*-
* #%L
* crispr-cas12a
* %%
* Copyright (C) 2020 - 2022 Henrik Roslund
* %%
* 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 restr... | 45.261682 | 145 | 0.642474 |
e69ff6601dc52552d376f7160bbb1e921949ce23 | 1,976 | package www.znq.com.myapplication.proxy;
import android.os.Build;
import android.support.annotation.NonNull;
import android.support.annotation.RequiresApi;
import android.view.MotionEvent;
import java.util.ArrayList;
import java.util.List;
/**
* @author jiiiiiin
* @version 1.0
*/
public class FragmentOnTouchMng {... | 27.068493 | 132 | 0.675101 |
4ae454a64c826cfef7037e12bebda502e9124ebb | 428 | package me.itzg.stomprelay.handlers;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.stomp.StompCommand;
import io.netty.handler.codec.stomp.StompHeaders;
/**
* @author Geoff Bourne
*/
public interface StompFrameHandlerFactory {
StompCommand getComman... | 26.75 | 99 | 0.803738 |
12dcad686d187c5a6f7d8fd1e787d289c1b09e9b | 549 | package com.adtec.gulimall.ware.dao;
import com.adtec.gulimall.ware.entity.WareSkuEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* 商品库存
*
* @author hgzz
* @email 2333@gmail.com
* @date 2020-09-15 22:09:0... | 24.954545 | 112 | 0.748634 |
77660867272dc887cd892587a7747b44c8d85bd8 | 1,885 |
package com.manriqueweb.mwepgmedia.model;
import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fas... | 25.821918 | 85 | 0.689655 |
030068d28421e84abefa5f0b6c1d3c435df5abea | 2,065 | package org.opencommercesearch.deployment;
import javax.jms.JMSException;
import javax.jms.TextMessage;
import atg.dms.patchbay.MessageSource;
import atg.dms.patchbay.MessageSourceContext;
import atg.nucleus.GenericService;
public class EvaluationServiceSender extends GenericService implements MessageSource{
Messa... | 29.084507 | 87 | 0.68862 |
f48af384aae5a7e4f7e8c7d3150d7af9598d7edc | 13,560 | package gov.usgs.cida.wqp.validation;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.containsInAnyOrder;
import static org.junit.Assert.assertEquals;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyString;
import static org.mockito... | 41.595092 | 150 | 0.761873 |
ca831f53cc368728257ecceffcc9e14e371d0e4c | 4,301 | /**
* ######################## SHENBAISE'S WORK ##########################
* 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 thi... | 29.060811 | 101 | 0.671704 |
61b15a9fb36f7315b29d54044f00c31a5e3b0ee3 | 743 | /**
* This package contains variants of basic functional constructs that can throw checked exceptions.
* E.g. {@link de.team33.libs.exceptional.v4.functional.XFunction} as a variant of {@link java.util.function.Function}.
* <p>
* In addition, it contains tools and utilities that enable the functional constructs def... | 57.153846 | 119 | 0.763122 |
dffc4787a09a4460e336451a86d9a48c4ac8f605 | 11,511 | /* Contributed in the public domain.
* Licensed to CS GROUP (CS) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* CS licenses this file to You under the Apache License, Version 2.0
* (the "License"); yo... | 38.242525 | 90 | 0.626705 |
f829f16e694bd019a7e9f5296d3643680c9efbac | 1,027 | package br.com.casadocodigo.controller;
import br.com.casadocodigo.model.Livro;
import br.com.casadocodigo.repository.LivroRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.we... | 32.09375 | 76 | 0.789679 |
6b318e1b24f318bb3e25c2369d9736dd36b9f849 | 960 | package com.github.wenzhu.maven.user.dao;
import org.hibernate.Session;
import com.github.wenzhu.maven.user.model.User;
import com.github.wenzhu.maven.user.util.HibernateUtil;
public class UserDao implements IUserDao {
public void add(User user) {
Session session = null;
try {
session = Hibernat... | 22.325581 | 66 | 0.663542 |
ddb8f01bdedff837c4087e2cd8f33b8b6d41c7b9 | 5,971 | /*
* 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 n... | 30.937824 | 105 | 0.611288 |
f3706b1c4803b7798959de809e87b1ea651fbf21 | 5,609 | /*
* 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 ... | 36.422078 | 101 | 0.769299 |
06783c2cb12713304433bf6a64a0d9c03fcad309 | 1,399 | /*
* 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 ... | 31.795455 | 75 | 0.711222 |
c932d9cda14141e4c581913db99ae57d7c67e6fc | 6,009 | package edu.gmu.cds.javaecho;
import edu.gmu.cds.javaecho.debug.Assert;
import edu.gmu.cds.javaecho.utils.Array;
import edu.gmu.cds.javaecho.utils.IntPair;
import java.util.*;
import edu.gmu.cds.javaecho.iterator.BitIterator;
/*
* 12-14-2016 RCT:Replaced depreciated classes:
* - Vector and Hash... | 28.079439 | 78 | 0.590448 |
8f28b21d077a4d4f2a8af76304e2efbfdf232be2 | 664 | package Fabricas_concretas;
import Fabricas_abstractas.Asesino;
import Fabricas_abstractas.Factory;
import Fabricas_abstractas.Mago;
import Fabricas_abstractas.Paladin;
import Productos_concretos.Elfo_Asesino;
import Productos_concretos.Elfo_Magico;
import Productos_concretos.Elfo_paladin;
public class Fabrica_Elfos ... | 20.75 | 47 | 0.786145 |
dfd4b50bfe2ed2535f09a77c4b5a323b40cd7388 | 13,115 | /*
* 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
* distribut... | 40.353846 | 157 | 0.591536 |
ac1368075761d5a7356fad41e85070c78a8373c9 | 3,912 | package by.bsuir.kaziukovich.task8.sequencecombination;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
/**
* Class containing methods to combine two sequences of real numbers and show theirs position in new sequence
*/
public class SequenceCombinator {
/... | 35.563636 | 127 | 0.620399 |
add487b31434a96b885a7675b5de443c4c48e006 | 1,693 | package com.myorg.springaction.connectionPool;
import java.sql.Connection;
import java.util.HashMap;
/**
* Created by huyan on 2015/8/17.
* 连接池管理类
*/
public class ConnectionPoolManager {
private HashMap<String, ConnectionPool> pools = new HashMap<String, ConnectionPool>();
private ConnectionPoolManager()... | 23.84507 | 90 | 0.623154 |
3b1de7f53d90a0f17e2ebef132126f55efeb99ab | 1,310 | /*
ID: awesomelemonade
LANG: JAVA
TASK: numtri
*/
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.StringTokenizer;
public class numtri {
public static void main(String[] args)... | 27.87234 | 95 | 0.678626 |
35cb803749b592867f91a0bcaa9d2083e47358ab | 44 | package Game.Map;
public class MiniMap {
}
| 8.8 | 22 | 0.727273 |
7c988ba3d0dc8de86444a937fb6eff2a7fbbe1cc | 217 | package com.coolweather.android.gson;
/**
* Created by ivokc on 2017/11/9.
*/
public class AQI {
public AQICity city;
public class AQICity{
public String aqi;
public String pm25;
}
}
| 14.466667 | 37 | 0.62212 |
0e9140e1f90519e8597da845b5a7b5d7d0ddf680 | 718 | package javierrodriguez94.rasp_api;
import android.os.Bundle;
import android.preference.PreferenceActivity;
public class PreferencesActivity extends PreferenceActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//setContentView(R.layou... | 28.72 | 70 | 0.707521 |
c23b6d470ba074cecf583e9b2ea1a93c2b30c456 | 960 | package io.funxion.logviewer;
import java.util.Timer;
import java.util.TimerTask;
import java.util.logging.Logger;
import javax.annotation.PostConstruct;
public class LogGenerator {
private static Logger logger = Logger.getLogger(LogGenerator.class.getName());
private static Timer timer = new Timer();
private s... | 28.235294 | 79 | 0.634375 |
e6e9dd524fcaf738873c9820b3ff8ded3d0e4ac5 | 20,162 | package com.demeter.cloud.model.entity;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Arrays;
public class WorksInfo {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table demeter_works_info
*... | 35.186736 | 146 | 0.60614 |
373214feace4e8a57eceb43ebb4384d3ec643224 | 389 | package me.kys2406.kinesiscloud.sync;
import org.springframework.cloud.stream.annotation.Input;
import org.springframework.messaging.SubscribableChannel;
public interface KinesisTest2Sink {
/**
* Input channel name.
*/
String INPUT = "kinesis_test2";
/**
* @return input channel.
*/
... | 20.473684 | 57 | 0.701799 |
a5cfcbd8fe7620c218851239a5b5dc5af777a6d4 | 551 | package JavaCollection.task3702;
import JavaCollection.task3702.female.FemaleFactory;
import JavaCollection.task3702.male.MaleFactory;
public class FactoryProducer {
public static AbstractFactory getFactory(HumanFactoryType humanFactoryType){
switch (humanFactoryType){
case FEMALE:
... | 22.958333 | 80 | 0.644283 |
14d465e4aba3f3f59bd3e61e3563368a204292de | 185 | package com.hyq0719.mktapi.vivo.token;
import com.hyq0719.mktapi.common.token.ExternalTokenService;
public abstract class VivoExternalTokenService implements ExternalTokenService {
}
| 26.428571 | 80 | 0.854054 |
b0a84ff16d6303bcc61ff85e8ef7f3a56ab40ac2 | 632 | package de.aw.evolution.domain.model;
import org.junit.Test;
import static de.aw.evolution.domain.data.TestDataBuilder.aGenom;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.is;
/**
* @author armin.weisser
*/
public class Couple... | 25.28 | 65 | 0.705696 |
61245c8265c013beab4dc4e98f983ae8d9ea018d | 236 | package com.example.GenericType;
public class BoxExt<T extends Employee> {
T element;
void setElement(T valueOfElement) {
this.element = valueOfElement;
}
T getElement() {
return this.element;
}
} | 18.153846 | 42 | 0.639831 |
e92dff4a2869a6095d5d003273c7ba391131d80c | 4,265 | package pl.edu.agh.emotionalrobot.recognizers.video;
import android.content.Context;
import android.content.res.AssetFileDescriptor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.support.test.InstrumentationRegistry;
import org.junit.Test;
import org.junit.runner.RunWith;
impor... | 36.452991 | 167 | 0.671278 |
966362b2fed9ca79a9971cb7c16a9ca0f4dbbf24 | 2,819 | // Copyright 2022 Google LLC
//
// 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 applicable law or agreed to in ... | 43.369231 | 96 | 0.7116 |
b567868431622f2e05cef6870e79c39146ee24cd | 4,315 | package P1;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.File;
import java.io.FileWriter;
import java.util.ArrayList;
import java.util.regex.Pattern;
import java.util.regex.Matcher;
public class MagicSquare {
public static boolean isNumber(String str) { //判... | 26.96875 | 77 | 0.578679 |
c972dc8ba127837de0ea870f87a81d91d8e89e49 | 5,629 | import net.runelite.mapping.Export;
import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("ls")
@Implements("FriendsChat")
public class FriendsChat extends UserList {
@Obfuscate... | 23.260331 | 151 | 0.69213 |
9c909fa5f3bf7e0dba2fc00585f26a49485ccf18 | 3,362 | package com.ak47.cms.cms.filter;
import com.ak47.cms.cms.entity.ShiroMenu;
import com.ak47.cms.cms.service.ShiroMenuService;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.spring.web.ShiroFilterFactoryBean;
import org.apache.shiro.spring.web.config.AbstractShiroWebFilterConfiguration;
import org.apache... | 46.694444 | 196 | 0.674896 |
75b8c215074de27ee0b3d96103f710fe62c8933b | 201 | package com.saharw.pooledobject;
/**
* Created by Sahar on 01/27/2017.
*/
public interface PooledTypeAdapter<T> {
T fromObject(Object in);
void toPooled(T value, PooledObject<T> dest);
}
| 16.75 | 50 | 0.691542 |
4551c4bf2aaf0ff905434c886b0e037620c7a453 | 11,922 | package chat;
import com.sun.istack.internal.NotNull;
import java.io.IOException;
import java.net.ServerSocket;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.*;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.c... | 35.064706 | 106 | 0.585808 |
5bb0db658a24deac8bdb410e3b4dc0dde2f37fff | 1,911 | package b.j.a.b.t;
import b.j.a.b.s.b;
import java.io.CharConversionException;
import java.io.InputStream;
public final class a {
public final b a;
/* renamed from: b reason: collision with root package name */
public final InputStream f1498b;
public final byte[] c;
public int d;
/* renamed... | 25.824324 | 108 | 0.513867 |
9a5d96eed2e4864a59ba0fd8a46a25df811e597f | 2,213 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/devtools/cloudbuild/v1/cloudbuild.proto
package com.google.cloudbuild.v1;
public interface CreateBuildRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.devtools.cloudbuild.v1.CreateBuildRequest)
com.googl... | 28.012658 | 107 | 0.641663 |
a0d20a3fed9599e92f23f4cba66aab764c6d9526 | 3,910 | package com.hiscene.testapp.recycler;
import android.content.Context;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.view.View;
import a... | 29.621212 | 107 | 0.588747 |
077316490c82feec63fc8d3678ac912583cabca0 | 2,035 | package study.com.cameralibrary.manager;
import android.app.Application;
import android.media.MediaPlayer;
import android.view.Surface;
import study.com.cameralibrary.utils.LogUtils;
/**
* 由于拍摄跟播放都关联TextureView,停止播放时要释放mediaplayer
*/
public class MediaPlayerManager {
private Application app;
private Me... | 24.22619 | 80 | 0.507125 |
e48bf2974e09f6c423eb68493e90c3dbb4d6e357 | 3,584 | /*
* Copyright 2016-2019 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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://ww... | 31.165217 | 96 | 0.626674 |
4bddad18843b94151c5457a33a16e11bf2224b10 | 101 | package org.hubotek.service.tika;
public enum MimeTypeEnum {
ATOM,
RSS,
XML,
JSON,
OTHER;
}
| 8.416667 | 33 | 0.683168 |
f43bac74697a5123acfee62ac885bb7a72cf01dd | 1,739 | package dk.brics.tajs.test;
import dk.brics.tajs.Main;
import dk.brics.tajs.options.Options;
import org.junit.Before;
import org.junit.Test;
/**
* Misc tests for string-escaping
*/
public class TestMicroStringEscaping {
@Before
public void before() {
Main.reset();
Options.get().enableTest()... | 24.842857 | 113 | 0.592294 |
40a183c5b58cf2c95887aabeb3f990a9c0910052 | 2,195 | package collabware.web.client.js;
import java.util.Collection;
import org.timepedia.exporter.client.Export;
import org.timepedia.exporter.client.Exportable;
import collabware.model.graph.ModifyableGraph;
import collabware.model.graph.ModifyableNode;
import collabware.model.internal.graph.exception.NoSuchNodeExceptio... | 21.31068 | 102 | 0.685649 |
b18d5601d7994e2cd806933a8f0156cc8e566836 | 2,245 | package com.manos.prototype.service;
import java.util.Properties;
import javax.mail.Authenticator;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.PasswordAuthentication;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax... | 33.014706 | 95 | 0.74343 |
19e4163050d5a7e9e147ced84a0fcf502a282964 | 3,330 | package uk.ac.ox.it.ords.security.services.impl.hibernate;
import org.apache.commons.lang.SerializationUtils;
import org.apache.shiro.session.Session;
import org.apache.shiro.session.mgt.SimpleSession;
import org.hibernate.SessionFactory;
import uk.ac.ox.it.ords.security.SimplePersistentSession;
import uk.ac.ox.it.or... | 32.970297 | 114 | 0.77027 |
8c52ac3d324da780b2e62be8a24fe5c258192899 | 754 | package be.kdg.repaircafe.frontend.config.orika.custom.convertors;
import be.kdg.repaircafe.backend.dom.users.roles.Role;
import ma.glasnost.orika.CustomConverter;
import ma.glasnost.orika.metadata.Type;
import org.springframework.stereotype.Component;
import java.util.List;
import java.util.stream.Collectors;
@Comp... | 34.272727 | 121 | 0.771883 |
1644da81dd6d15f3d8ebb4f0fe49e08db2238bbc | 2,049 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
* You may obtain a copy of the License at
*
* http://www.apache.... | 37.944444 | 87 | 0.721816 |
6a880ffa85794aa1aaa28fe257e7d0a5fa542d85 | 2,215 | package com.rapid7.armor.entity;
import com.rapid7.armor.schema.ColumnId;
import com.rapid7.armor.schema.DataType;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOException;
import java.util.Arrays;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
pu... | 32.573529 | 77 | 0.70474 |
e7237bf6df5f98bc6ae0f6e7bbddfb7f520257de | 768 | package com.zhangjikai.array;
/**
* Created by zhangjk on 2017/7/9.
*/
public class BinarySearch2 {
public int binarySearch(int[] nums, int target) {
if (nums == null) {
return -1;
}
int start = 0;
int end = nums.length - 1;
int mid;
int targetPos = -1;... | 21.942857 | 73 | 0.423177 |
39d5b9ba97d785600e25719a420792103fdeb4b1 | 161 |
package org.mybatis.generator.api.dom.xml;
public interface DocTypeVisitor<R> {
R visit(PublicDocType docType);
R visit(SystemDocType docType);
}
| 17.888889 | 42 | 0.726708 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.