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 |
|---|---|---|---|---|---|
fb5e38ad36de0c0655c0637d7863dc7b681ba398 | 4,840 | package com.v5ent.xiubit.view.popupwindow;
import android.content.Context;
import android.graphics.drawable.ColorDrawable;
import android.support.v4.content.ContextCompat;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Windo... | 32.483221 | 127 | 0.686364 |
782ee07bcb19d028050d4f5a381a6532700cda1c | 1,593 | package com.fulin.String;
/**
* '.' matches any single character
* '*' matches zero or more or the preceding element
*
*
* @author mfl4482
*
*/
public class RegularExpressionMatch {
public static void main(String[] args) {
System.out.println(isMatch("aa", "a"));
System.out.println(isMatch("... | 30.056604 | 91 | 0.472693 |
80a1f586daf6e5aabf3d7c6b03a79614d4e502fc | 9,662 | package wintersteve25.primutils.common.te;
import com.google.common.collect.ImmutableList;
import fictioncraft.wintersteve25.fclib.common.helper.MiscHelper;
import fictioncraft.wintersteve25.fclib.common.interfaces.IHasProgress;
import fictioncraft.wintersteve25.fclib.common.interfaces.IHasValidItems;
import fictioncr... | 36.737643 | 356 | 0.622128 |
9086225fd743e67350a2d8191e203971c0c7d80c | 445 | //,temp,TestUpdateDeleteSemanticAnalyzer.java,147,156,temp,TestUpdateDeleteSemanticAnalyzer.java,95,103
//,3
public class xxx {
@Test
public void testUpdateAllNonPartitionedWhere() throws Exception {
try {
ReturnInfo rc = parseAndAnalyze("update T set b = 5 where b > 5",
"testUpdateAllNonPartiti... | 29.666667 | 103 | 0.694382 |
e78a5d336422b11986a3fda328f93ddff349ab35 | 57,616 | /* Copyright 2004-2019 Jim Voris
*
* 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 applicab... | 46.804224 | 227 | 0.619949 |
1c29565f7f9823e6a656a91145a946474049a43d | 5,008 | package org.openxmlformats.schemas.spreadsheetml.x2006.main;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.Reader;
import java.net.URL;
import javax.xml.stream.XMLStreamReader;
import org.apache.poi.POIXMLTypeLoader;
import org.apache.xmlbeans.SchemaType;
import org.apache... | 43.172414 | 209 | 0.757987 |
6cefb7e3792c902656cc6e5408c4c93aefd7dbc8 | 1,062 | package com.martin.ads.omoshiroilib.constant;
/**
* Created by Ads on 2017/1/26.
*/
public enum Rotation {
NORMAL, ROTATION_90, ROTATION_180, ROTATION_270;
private Rotation() {
}
public int asInt() {
switch(ordinal()) {
case 0:
return 0;
case 1:
... | 24.136364 | 123 | 0.479284 |
710d3f3c7af9d4b10176f20f0fe7399b43b602ff | 1,182 | package com.log.web.service.impl;
import java.util.Enumeration;
import java.util.Properties;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
import org.springframework.core.io.support.PropertiesLoaderUtils;
import org.springframework.stereotype.Service;
import org.sp... | 27.488372 | 69 | 0.755499 |
3c452212b8032e820e1059230d5ee3f4fafe6b32 | 14,643 | /*
* Copyright © 2015 Cask Data, 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 t... | 55.676806 | 120 | 0.722734 |
65107fcb5ade969e17dccf3a06282c13f38a95ac | 7,132 | package io.windflow.eternalengine.configuration;
import io.windflow.eternalengine.entities.DomainLookup;
import io.windflow.eternalengine.persistence.*;
import io.windflow.eternalengine.services.CryptoService;
import io.windflow.eternalengine.entities.ExtensionData;
import io.windflow.eternalengine.entities.Page;
impo... | 48.189189 | 311 | 0.717751 |
c676224579b50b6ceef7a2e291f5d53e3234b71b | 26,955 | /*
* 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 ma... | 35.844415 | 157 | 0.610239 |
9f8843d4f81faf876c3d005689526a74f5abc209 | 37,297 | /*
* 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 main.be.ua.mbarbier.slicemap.lib.roi;
import static main.be.ua.mbarbier.slicemap.lib.Lib.linearSpacedSequence;
import ... | 34.217431 | 177 | 0.650964 |
82d24414e25136ba2e0af41a7d4e4c3476664290 | 1,770 | package org.ovirt.engine.ui.common.widget.table;
import com.google.gwt.user.cellview.client.Column;
/**
* Contract for table widgets that support controlling their columns in terms of visibility and positioning.
*
* @param <T>
* Table row data type.
*/
public interface ColumnController<T> {
int N... | 24.246575 | 108 | 0.609605 |
1635b0af7aeeb1bb89f37390f884e5bce28daa7d | 828 | package Warmup;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class _23timeConversion {
public static void main(String[] args) throws Exception {
BufferedReader scanner=new BufferedReader(new InputStreamReader(System.in));
String timeInput=scanner.readLine();
String timeZone=(timeInpu... | 28.551724 | 81 | 0.721014 |
e3f55df28384c8f59c2f1fdc620394220fdcab3c | 1,587 | package kaptainwutax.ssg;
import com.seedfinding.latticg.reversal.DynamicProgram;
import com.seedfinding.latticg.reversal.calltype.java.JavaCalls;
import kaptainwutax.mcutils.version.MCVersion;
import kaptainwutax.seedutils.lcg.LCG;
import java.util.HashMap;
import java.util.Map;
import java.util.stream.Stream;
publ... | 31.74 | 107 | 0.765595 |
0287d45c808876647449236f8fcded37b36de4a1 | 418 | package io.machinebox.classificationbox.common;
import com.google.gson.annotations.SerializedName;
public enum ModelOption {
/**
* The number of word n-grams to generate from a body of text (default is 1)
*/
@SerializedName("ngrams") NGRAMS,
/**
* The distance between words from which to g... | 26.125 | 92 | 0.691388 |
9f7d75eb033e955ec87e7f7ef262e4f086e40af7 | 219 | package dev.fiki.forgehax.asm.events.render;
import dev.fiki.forgehax.api.event.Event;
import lombok.AllArgsConstructor;
@AllArgsConstructor
public class NearClippingPlaneEvent extends Event {
public float value;
}
| 21.9 | 51 | 0.821918 |
221f2b38eb2f708f0b86942c065992979d8cbe53 | 2,028 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 34.372881 | 98 | 0.725838 |
730327db201ad462715a5f8f9697955617cecddb | 1,149 | /*
* Copyright 2019 Web3 Labs 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 in w... | 34.818182 | 118 | 0.67624 |
8cd544933974a9fb9970debf3dafc4adc587a38f | 13,460 | /* Copyright (c) 2001-2009, The HSQL Development Group
* 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... | 27.137097 | 104 | 0.660104 |
604f657cd73ae7e698ecca5cb2b1761296060e4a | 1,611 | /*
* Copyright (c) 2008-2013 Haulmont. All rights reserved.
* Use is subject to license terms, see http://www.cuba-platform.com/license for details.
*/
package com.haulmont.cuba.web.toolkit.ui.client.menubar;
import com.haulmont.cuba.web.toolkit.ui.CubaMenuBar;
import com.vaadin.client.UIDL;
import com.vaadin.clie... | 25.983871 | 95 | 0.659839 |
cfe37080fb49db9eb3d39d9c760b7ebfa848ab0e | 1,781 | import noogel.xyz.drools.config.DroolsAutoConfiguration;
import noogel.xyz.drools.entity.PromotionCtx;
import noogel.xyz.drools.entity.PurchaseItem;
import noogel.xyz.drools.entity.User;
import org.drools.core.base.RuleNameEndsWithAgendaFilter;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.kie.api.... | 32.381818 | 85 | 0.717013 |
bfde7bb5f700b6c148404d929c4347f345b0df64 | 6,796 | /*
* 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 ... | 31.174312 | 96 | 0.66392 |
98870c28fe252e832ebb98ad55b70768c9e74582 | 3,854 | /*
* Copyright 2021 the original author or authors.
* <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>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by... | 40.568421 | 144 | 0.628957 |
3edf7388c24c22d55c01aecfd27dc47b5d3020e7 | 1,699 | package com.gocardless.ws;
import com.google.common.collect.Sets;
import org.eclipse.jetty.websocket.api.Session;
import org.eclipse.jetty.websocket.api.WebSocketAdapter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.util.Set;
public class BroadcastSocket extends We... | 29.807018 | 93 | 0.67216 |
2914f871f0cb42805b04c13c1d38aafcdf54f16e | 1,314 | package mekanism.common.tile.prefab;
import mekanism.api.IConfigCardAccess;
import mekanism.api.providers.IBlockProvider;
import mekanism.api.recipes.MekanismRecipe;
import mekanism.common.base.ISideConfiguration;
import mekanism.common.capabilities.Capabilities;
import mekanism.common.capabilities.resolver.basic.Basi... | 35.513514 | 171 | 0.80137 |
d8a658b82a0671718c567a2eaac2693f30265d35 | 488 | package com.lvmoney.frame.db.mysql.base.config;/**
* 描述:
* 包名:com.lvmoney.frame.member.info.handler
* 版本信息: 版本1.0
* 日期:2020/1/20
* Copyright XXXXXX科技有限公司
*/
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;
/**
* @describe:
* @author: l... | 22.181818 | 68 | 0.741803 |
7683e7637572e7f1ef212f956aedc8a327501011 | 1,815 | package com.emall.search.service.impl;
import com.alibaba.fastjson.JSON;
import com.common.to.es.SkuEsModel;
import com.emall.search.config.ElasticSearchConfig;
import com.emall.search.constant.EsConstant;
import com.emall.search.service.ProductSavaService;
import lombok.extern.slf4j.Slf4j;
import org.elasticsearch.ac... | 35.588235 | 121 | 0.746006 |
95cd9884c32e7f164283eb70c0640062a4aa171c | 1,984 | /*
* 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")... | 33.066667 | 105 | 0.708165 |
c98d5b003f6181e4df91ac397509b5ebb0d1079c | 3,101 | package com.fincatto.documentofiscal.nfe310.classes.nota;
import java.util.List;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.ElementList;
import com.fincatto.documentofiscal.DFBase;
import com.fincatto.documentofiscal.nfe310.classes.NFModalidadeFrete;
import com.fincatto.documentofiscal.va... | 28.981308 | 90 | 0.711061 |
721c344b37a2a8cd766087a684a92196e38f687c | 645 | package pig.dream.utils;
import com.google.common.io.Resources;
import com.intellij.openapi.util.ClassLoaderUtil;
import com.intellij.openapi.vfs.VirtualFile;
import javax.swing.*;
import java.io.*;
import java.net.URL;
import java.util.ResourceBundle;
/**
*
* Created by zhukun on 2017/3/21.
*/
public class Gener... | 23.888889 | 65 | 0.703876 |
6ffa79e536c9d21595596c909ae9fce165aead05 | 752 | // Write a program to print the maximum of given numbers
import java.util.Scanner;
import java.util.*;
public class MaximumOfNumbers {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("Enter numbers : ");
String input = sc.nextLine();
... | 28.923077 | 85 | 0.589096 |
11806f8bdc226d28a769b131e706c552fd739827 | 846 | package ru.croc.ctp.jxfw.reporting.xslfo.renderer.core;
/**
* Перечисление стилей шрифта.
* Аналог System.Drawing.FontStyle в .Net
* Created by vsavenkov on 28.06.2017.
*/
public enum FontStyle {
/**
* Normal text.
*/
Regular(0),
/**
* Bold text.
*/
Bold(1),
/**
* It... | 15.107143 | 55 | 0.514184 |
dcd6128e29845e44abd0e5c35c1a8490630a3e33 | 2,910 | package com.madgaze.watchsdk_java;
import android.os.Bundle;
import com.google.android.material.floatingactionbutton.FloatingActionButton;
import com.google.android.material.snackbar.Snackbar;
import com.madgaze.watchsdk.MobileActivity;
import com.madgaze.watchsdk.WatchActivity;
import com.madgaze.watchsdk.WatchExcep... | 31.630435 | 89 | 0.678351 |
6fcdba52db2250bc00f800a5b599d862cbac5e1f | 82 | module m {
uses p.I;
provides p.I with p.A;
provides p.I with p.B;
}
| 11.714286 | 26 | 0.54878 |
13ca958a1cf1ffc9102e7787d6bd969f7f98b62f | 1,472 | package mcjty.theoneprobe.api;
import com.mojang.blaze3d.vertex.PoseStack;
/**
* Using this interface (that you can get from ITheOneProbe) you can
* do custom overlay rendering from within your mod.
*/
public interface IOverlayRenderer {
/**
* Return the default overlay style as configured in the The One... | 36.8 | 83 | 0.703125 |
44858b7989a64a478807f98291a4d0852ec90606 | 2,719 | package com.plopcas.twiliohackathon.cpd.service;
import com.plopcas.twiliohackathon.cpd.model.Alert;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;
import java.util.*;
import static java.util.Collecti... | 36.253333 | 103 | 0.656124 |
66a31986b6e5af7f8c8934a6901e74ad9a4bb05b | 749 | // 215. Kth Largest Element in an Array (Medium)
// https://leetcode.com/problems/kth-largest-element-in-an-array/
/*
Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element.
Example 1:
Input: [3,2,1,5,6,4] and k = 2
Output: 5
Examp... | 24.966667 | 141 | 0.615487 |
b766aeac107b12cde1c98f7eb4f9174ed26f0c68 | 7,914 | /*
* 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 gui;
import reader.*;
/**
*
* @author hasalp
*/
public class Client extends javax.swing.JFrame {
Reader temperature, h... | 43.483516 | 133 | 0.643038 |
feb2fcd792920ca3609b035981c8cc633340c313 | 851 | package io.automatiko.engine.quarkus;
import java.util.Optional;
import io.automatiko.engine.api.config.WebsocketEventsConfig;
import io.quarkus.arc.config.ConfigProperties;
import io.quarkus.runtime.annotations.ConfigGroup;
import io.quarkus.runtime.annotations.ConfigItem;
@ConfigGroup
@ConfigProperties(prefix = "q... | 23.638889 | 75 | 0.723854 |
071210429f01a9d3e45a92c1168db1b27e96072e | 196 | package ro.ase.acs.state;
public class DeliveringProductState implements VendingMachineState {
@Override
public void doAction() {
System.out.println("Please pick-up your product :)");
}
}
| 17.818182 | 68 | 0.75 |
4c7a0a97a138238dc59a6b9ebde28ca77c7afa16 | 474 | package com.abms.af.projeversion02.Models;
public class Profilfotosilmesonuc{
private String profilfotosilmesonuc;
public void setProfilfotosilmesonuc(String profilfotosilmesonuc){
this.profilfotosilmesonuc = profilfotosilmesonuc;
}
public String getProfilfotosilmesonuc(){
return profilfotosilmesonuc;
}
@... | 21.545455 | 66 | 0.755274 |
a15b78f2fde669d3292d6bd449790559f5bba901 | 11,527 | //
// Decompiled by Procyon v0.5.36
//
package org.codehaus.groovy.runtime.callsite;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import org.codehaus.groovy.reflection.ParameterTypes;
import org.codehaus.groovy.reflection.CachedMethod;
import groovy.lang.GroovyObject;
import ... | 38.551839 | 177 | 0.604407 |
aff172616c8afde8eca0481a96a5bed4500c3453 | 11,750 | /*
* 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 ... | 41.373239 | 121 | 0.679319 |
727dcab4a0b4f5a54fd19794331aab1cfd411e27 | 479 | package com.jdksource.java8;
import com.google.common.collect.Lists;
import java.util.ArrayList;
/**
* @author bo6.zhang
* @date 2021/6/28
*/
public class StreamForeachReturnTest {
public static void main(String[] args) {
ArrayList<String> list = Lists.newArrayList("1", "2", "3", "4", "5");
... | 17.740741 | 77 | 0.553236 |
9e3fa1494c22af00757117848f61dc26dcce7e38 | 11,704 | package valandur.webapi.command;
import org.slf4j.Logger;
import org.spongepowered.api.Sponge;
import org.spongepowered.api.command.CommandManager;
import org.spongepowered.api.command.CommandMapping;
import org.spongepowered.api.command.CommandResult;
import org.spongepowered.api.command.args.CommandElement;
import o... | 48.363636 | 135 | 0.59407 |
176cbbb136de975dc0ac4d9a38b4dfff507fa8f7 | 554 | package com.example.tests;
import org.testng.annotations.Test;
public class ContactModificationTests extends TestBase{
@Test
public void modifySomeContact() {
app.getNavigationHelper().openMainPage();
app.getContactHelper().editContact(1);
ContactData contact = new ContactData();
contact.address = "London";... | 27.7 | 55 | 0.749097 |
30bdd743078dd730c40b23965c53b98148f5cd98 | 1,595 | /*
* Copyright 2018-2018 adorsys GmbH & Co KG
*
* 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 ... | 30.09434 | 220 | 0.731661 |
946632e1dbf366ecfd6d07216991966d9fe1f12d | 3,142 | package org.calvin.__Book.epi;
import epi.test_framework.BinaryTreeUtils;
import epi.test_framework.EpiTest;
import epi.test_framework.GenericTest;
import epi.test_framework.TimedExecutor;
public class DescendantAndAncestorInBst {
public static boolean
pairIncludesAncestorAndDescendantOfM(BstNode<Integer> possib... | 40.282051 | 80 | 0.661044 |
393bb2c501b2fa9d68c2a5cc902c5c24e66a5fe7 | 19,573 | /*
* Copyright (c) 2015-2017 Erik Derr [derr@cs.uni-saarland.de]
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 37.932171 | 192 | 0.723088 |
3bb79d7a781bbb088d66a58e5dba7f5142372715 | 837 | package com.github.fppt.jedismock.operations.hashes;
import com.github.fppt.jedismock.datastructures.Slice;
import com.github.fppt.jedismock.operations.AbstractRedisOperation;
import com.github.fppt.jedismock.operations.RedisCommand;
import com.github.fppt.jedismock.server.Response;
import com.github.fppt.jedism... | 33.48 | 82 | 0.707288 |
e305d3155091b023bbcdac26ab09258d22fb36f5 | 960 | package ru.fizteh.fivt.students.SergeyAksenov.shell;
import java.io.File;
public final class RmCommand implements Command {
public void run(final String[] args, final Environment env)
throws ShellException {
if (!Executor.checkArgNumber(2, args.length, 3)) {
ErrorHandler.countArgum... | 33.103448 | 66 | 0.564583 |
830c7ce5e53156243c03eab74ade362c1a5e0600 | 11,759 | /*
* Copyright (c) Open Source Strategies, Inc.
*
* Opentaps 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, either version 3 of the License, or
* (at your option) any later version.
*
* Opentap... | 52.730942 | 164 | 0.657284 |
8b5a753a55a6f45588c8a47897d48c3c69f57511 | 3,102 | package com.advancedtechnicalengineering.sparkdemo.twitter;
import com.google.common.collect.Lists;
import com.twitter.hbc.ClientBuilder;
import com.twitter.hbc.core.Client;
import com.twitter.hbc.core.Constants;
import com.twitter.hbc.core.Hosts;
import com.twitter.hbc.core.HttpHosts;
import com.twitter.hbc.core.endp... | 34.466667 | 119 | 0.70374 |
996a03a34590b7244ff15b36f00771289a06e852 | 1,520 | package retrogdx.generic.readers;
import retrogdx.utils.SmartByteBuffer;
import java.nio.ByteOrder;
public class Palette {
public int[] colors;
public static Palette fromRGB16(SmartByteBuffer buffer) {
buffer.order(ByteOrder.LITTLE_ENDIAN);
buffer.position(0);
Palette palette = new ... | 28.679245 | 133 | 0.584211 |
dd6c299db98f0ff61a4ddb5e75481119c62e2f43 | 248 | package br.com.podrao.auth.core.models.commands;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
@Getter
@RequiredArgsConstructor
public class CadastrarFuncaoCommand {
private final String codigo;
private final String descricao;
} | 20.666667 | 48 | 0.830645 |
7bc8a710ccc868d8b9e25b29c19d0a9df8d7ba65 | 620 | package com.example.gab.babylove.entity;
import java.io.Serializable;
import java.util.List;
/**
*
* @author Gab
* @date 2018/3/14 0014
*/
public class OrnamentalListBean implements Serializable {
private List<CourseDetails.DataBean.GroupsBean.ActionsBean> data;
public List<CourseDetails.DataBean.Group... | 22.142857 | 89 | 0.712903 |
e04463fe1fed045baf5ed79b1b58c44554438c96 | 7,647 | package org.sunbird.integration.test.user;
import com.consol.citrus.annotations.CitrusTest;
import com.consol.citrus.testng.CitrusParameters;
import javax.ws.rs.core.MediaType;
import org.springframework.http.HttpStatus;
import org.sunbird.common.action.UserUtil;
import org.sunbird.integration.test.common.BaseCitrusTe... | 47.203704 | 100 | 0.796522 |
62da6b30618b936e5160dec680f2253286466942 | 3,381 | package com.ofg.infrastructure.discovery;
import com.google.common.collect.Iterables;
import com.ofg.infrastructure.discovery.util.LoadBalancerType;
import org.apache.commons.lang.StringUtils;
import org.springframework.cloud.zookeeper.discovery.ZookeeperDiscoveryProperties;
import org.springframework.cloud.zookeeper.... | 53.666667 | 175 | 0.716948 |
9e7f6da2869dfbccac250b23121a53f8ad076fda | 8,253 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|// Copyright (C) 2014 The Android Open Source Project
end_comment
begin_comment
comment|//
end_comment
begin_comment
comment|// Licensed under the Apache License, Version 2.0 (the "License");
end_comment
begin_comment
comment|// you m... | 16.150685 | 83 | 0.808676 |
4127abc15582e56548efee135559a72ba5f9d8f5 | 1,640 | package net.sourceforge.ganttproject.time.gregorian;
import java.text.MessageFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import net.sourceforge.ganttproject.language.GanttLanguage;
import net.sourceforge.ganttproject.language.GanttLanguage.Event;
import net.sourceforge.... | 38.139535 | 102 | 0.787805 |
6cb6876ab8db12b9074f3476e3e8d6dbe5376ea6 | 442 | package com.example.demo.service;
import com.example.demo.entity.User;
import com.example.demo.repositories.UserRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
@Service
@RequiredArgsConstructor
public class UserServiceImpl implements UserService {
private UserRepo... | 24.555556 | 53 | 0.791855 |
a0607dc9e750396a0193b17b3671244100aa6466 | 499 | /*
* IntPTI: integer error fixing by proper-type inference
* Copyright (c) 2017.
*
* Open-source component:
*
* CPAchecker
* Copyright (C) 2007-2014 Dirk Beyer
*
* Guava: Google Core Libraries for Java
* Copyright (C) 2010-2006 Google
*
*
*/
package org.sosy_lab.cpachecker.core.interfaces;
public inter... | 19.96 | 75 | 0.731463 |
85d0b66947fbb83a89d7c54d319d504376ef4331 | 198 | package edu.utfpr.xbi.collector.browsers;
import edu.utfpr.xbi.collector.BrowserCollector;
public interface Browsers {
public BrowserCollector createCollector (String url) throws Exception;
}
| 24.75 | 74 | 0.813131 |
c2cd718016fc9c3788f4afd7f44d25ae56ff5747 | 34,627 | /* $Id$
*****************************************************************************
* Copyright (c) 2009-2012 Contributors - see below
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, ... | 33.009533 | 121 | 0.586999 |
6510b527c07fd9ed188a388d6787385067dafe78 | 1,542 | package com.api.se.entities;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "prova_aluno")
public class ProvaAluno {
@Id
@Generated... | 18.141176 | 58 | 0.741894 |
5b363afaf882bae36ce1bee6d67bbd7b6652e89a | 129 | package soar.core;
/**
* Bridging
*
* @author xiuyuhang [xiuyuhang]
* @since 2018-05-05
*/
public final class Bridging {
}
| 11.727273 | 32 | 0.651163 |
5f04ae1e9c6d257925e88f01b9d8f96217d8ef96 | 23,544 | /* */ package jp.cssj.sakae.pdf.c;
/* */
/* */ import java.awt.Font;
/* */ import java.awt.GraphicsEnvironment;
/* */ import java.io.File;
/* */ import java.io.FileInputStream;
/* */ import java.io.IOException;
/* */ import java.io.InputStream;
/* */ import java.io.RandomAccessFile;... | 41.744681 | 163 | 0.393136 |
7e2f9b661eaa0b9aff9d27181673e0584597da65 | 2,174 | package gaurav.com.mvpexample.ui.main;
import gaurav.com.mvpexample.managers.DataManager;
/**
* Created by gaurav on 11/6/17.
*/
class MainPresenter {
private MainViewInterface viewInterface;
private DataManager dataManager;
private MainState state;
MainPresenter(DataManager dataManager) {
... | 30.194444 | 91 | 0.645354 |
b3bde08b5891366d5a0b1b79c2110c4dbb116847 | 1,929 | package org.innovateuk.ifs.management.competition.setup.fundinglevelpercentage.populator;
import org.innovateuk.ifs.category.resource.ResearchCategoryResource;
import org.innovateuk.ifs.category.service.CategoryRestService;
import org.innovateuk.ifs.competition.resource.CompetitionResource;
import org.innovateuk.ifs.c... | 49.461538 | 149 | 0.833074 |
43e40d379ca3fcb0e9617a6c16d0621746e13292 | 2,205 | package com.houxy.days.base;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.houxy.days.base.i.OnItemClickListener;
import com.houxy.days.base.i.OnItemLongClickListener;
import butte... | 32.426471 | 121 | 0.71746 |
0899268d39ae758386b3aa4168899f1ec7007dbb | 5,006 | package io.atleon.rabbitmq;
import com.rabbitmq.client.Address;
import com.rabbitmq.client.Connection;
import com.rabbitmq.client.ConnectionFactory;
import com.rabbitmq.client.ConnectionFactoryConfigurator;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.u... | 37.639098 | 123 | 0.721534 |
1d1bfb572fe1c68878674aefabef347c8d3691de | 6,556 | package com.hunonic.funsdkdemo.devices.settings;
import android.os.Bundle;
import android.os.Message;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.TextView;
import com.hunonic.funsdkdemo.ActivityDemo;
import com.hunonic.funsdkdemo.R;
import com.lib.F... | 38.116279 | 173 | 0.642923 |
118ec343296132727f81806ebb8489bbd79a0269 | 2,306 | package com.eloKeyboard.ime;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import androidx.annotation.NonNull;
import androidx.core.content.ContextCompat;
import com.eloKeyboard.android.PowerSaving;
import com.eloKeyboard.overlay.OverlayData;
import com.eloKeyboard.overlay.OverlyDataCreator... | 37.193548 | 98 | 0.585863 |
d315bbe2ccaae44e640ba567b3b4b0a61b40673b | 4,689 | package nio.handler;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.ServerSocketChannel;
import java.nio.channels.SocketChannel;
import java.util.Iterator;
import socket.ProtocolConstants;
/**
* 处理SocketChanne... | 32.5625 | 148 | 0.708893 |
4eef496ae679d261f9873cd03441f3339fe52960 | 2,941 | package com.codepath.apps.simpleTweets.fragments;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.widget.SwipeRefreshLayout;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androi... | 30.635417 | 120 | 0.693982 |
31a26321aa9afce7345fa7f575d0fcd856d7b393 | 5,559 | /*
* 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.104294 | 137 | 0.697248 |
88b384a68aebc38d77a2ae14735e2a615bb0cbfa | 1,622 | package net.modificationstation.stationapi.impl.config;
import net.modificationstation.stationapi.api.config.Property;
import java.io.*;
public class PropertyImpl implements Property {
private final String name;
private String value;
private String comment;
public PropertyImpl(String name) {
... | 22.527778 | 83 | 0.580148 |
ff08382b7c6ec5046d8d7b1c4ef3509aff230c9c | 2,139 | package com.ansj.vec;
import java.io.*;
public class initTxt{
public static void main(String[] args) throws IOException {
remove();
}
public static void remove() throws IOException {
BufferedReader br = new BufferedReader(new FileReader("C:\\Users\\jayjosby.liu@sap.com\\Desktop\... | 35.065574 | 191 | 0.531557 |
2cdee444f627df1a1072f55b721c09f3a3a2b2e6 | 285 | package com.example.dialogues.utils;
/**
* Created by vivek on 26/02/18.
*/
public interface BaseScreen {
void doInit();
void showLoadingProgress();
void hideLoadingProgress();
void showNetworkError();
void showApiError();
void showError(String msg);
}
| 15 | 36 | 0.673684 |
510c7a4a58f8054cf670a7c9063f5cdbec182eb4 | 815 | package play.learn.java.design.momento;
import java.util.Stack;
// https://java-design-patterns.com/patterns/memento/
public class MomentoDemo {
public static void main(String[] args) {
Stack<StarMemento> states = new Stack<>();
Star star = new Star(StarType.SUN, 10000000, 500000);
System.out.println(star.toS... | 27.166667 | 55 | 0.699387 |
60c45f7b8d0c488cf3c75b0819de0d624258043d | 2,113 | package org.apereo.cas.web.support;
import org.apereo.cas.audit.config.CasSupportJdbcAuditConfiguration;
import org.apereo.cas.config.CasHibernateJpaConfiguration;
import org.apereo.cas.config.CasJdbcThrottlingConfiguration;
import lombok.Getter;
import lombok.val;
import org.apereo.inspektr.common.web.ClientInfo;
im... | 35.813559 | 130 | 0.780407 |
b1ccd92a2a05b30bf3b962126422461163683d13 | 877 | package com.appier.android.sample.common;
import android.graphics.Rect;
import android.view.View;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
public class MyRecyclerViewItemDecoration extends RecyclerView.ItemDecoration {
private int mSpace;
public MyRecyclerViewIt... | 29.233333 | 140 | 0.703535 |
8e0a3fe9fff15a4be40956cfee21bd869dff1a16 | 2,309 | package org.solteh;
import org.springframework.context.MessageSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.support.ReloadableResourceBundleMessageSource;
import org.springframework.mail.javamail.JavaMailSende... | 38.483333 | 106 | 0.711563 |
c65aeba3d0f9c6f7cda5bd439768fdf49f3a4fc7 | 1,879 | /*
The NIST RCS (Real-time Control Systems)
library is public domain software, however it is preferred
that the following disclaimers be attached.
Software Copywrite/Warranty Disclaimer
This software was developed at the National Institute of Standards and
Technology by employees of the Federal Government in t... | 28.044776 | 132 | 0.720596 |
01f15c81c28ec91a1eda86df99e2ae1933804ad4 | 7,107 | /*
* Copyright (c) 2021 Huawei Device Co., 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 ag... | 36.634021 | 111 | 0.628113 |
592983a6a4363c73ad05e02c86bfbb7044bb5d2f | 2,231 | package cards;
import generator.idgenerator;
import java.util.Calendar;
import java.util.Date;
import java.util.LinkedList;
public class deck {
private LinkedList<card> deck;
private String deck_id;
private int weekstamp;
private int year;
private Boolean shuffle;
public int getCount() {
... | 18.90678 | 69 | 0.55939 |
5c261ba84bba3ae14ff172f43a6c22b31636eb1f | 1,581 | package org.omg.hw.HW_mstpProtection;
/**
* Generated from IDL definition of enum "HW_AtmPGSwitchDirect_T"
* @author JacORB IDL compiler
*/
public final class HW_AtmPGSwitchDirect_T
implements org.omg.CORBA.portable.IDLEntity
{
private int value = -1;
public static final int _HW_ASD_NA = 0;
public static final... | 29.830189 | 97 | 0.764073 |
c011e5c6b5dcc2b441156b0767e6d022f1cddac5 | 7,372 | package br.com.waiso.recommender.data;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.yooreeka.algos.reco.collab.model.Content;
public class Empresa implements Serializable {
/**
... | 29.13834 | 108 | 0.686923 |
a2c160e612ac2f31091fc40b885c61b1a2c63ae9 | 855 | package com.lihengl.dizu;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.content.Intent;
import android.widget.EditText;
public class MainActivity extends Activity
{
public final static String EXTRA_MESSAGE = "com.lihengl.dizu.MESSAGE";
@Override
public v... | 25.909091 | 74 | 0.700585 |
31a61268698c6b2ec07881ebd343dd6ec7f13ce9 | 8,381 | /*
* 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... | 25.168168 | 80 | 0.539076 |
67e2ae305d8cecb1faa15c06c0a8d739af3dd545 | 225 | package com.aoeai.spin.accelerator.themes.frame.exception;
/**
* @author aoe
* @date 2020/8/24
*/
public class ThemeException extends RuntimeException {
public ThemeException(String msg){
super(msg);
}
}
| 17.307692 | 58 | 0.688889 |
486f58b1ee19cb36ac4e81c36ae24e67b376ecc6 | 402 | package com.jakduk.batch.repository;
import com.jakduk.batch.model.db.ArticleComment;
import org.bson.types.ObjectId;
import java.util.List;
/**
* Created by pyohwan on 16. 11. 30.
*/
public interface ArticleCommentRepositoryCustom {
/**
* 기준 ArticleComment ID 이상의 ArticleComment 목록을 가져온다.
*/
Lis... | 21.157895 | 85 | 0.741294 |
5c02b05138e573bff9aa09e68fbd0e3778157d13 | 1,258 | package com.practice.algorithm.leetcode_passing;
/**
*
* @author Higmin
* @date 2020/3/29 20:01
*
* leetcode 328. 奇偶链表
* 给定一个单链表,把所有的奇数节点和偶数节点分别排在一起。请注意,这里的奇数节点和偶数节点指的是节点编号的奇偶性,而不是节点的值的奇偶性。
*
* 请尝试使用原地算法完成。你的算法的空间复杂度应为 O(1),时间复杂度应为 O(nodes),nodes 为节点总数。
*
* 示例 1:
*
* 输入: 1->2->3->4->5->NULL
* 输出: 1->3->5-... | 23.735849 | 71 | 0.582671 |
187652c3ba7cffcb3e00535079119461e53d57f0 | 7,645 | package com.tang.activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.text.TextUtils;
impor... | 30.458167 | 96 | 0.649967 |
41d865a964bf5bea64de69a74d913f782da57dfb | 11,562 | /* FileSystemView.java --
Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath 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 2, or ... | 28.131387 | 80 | 0.651012 |
26615555cfd73ccc45b7b2c901bf2d5c276b0427 | 9,739 |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file is autogenerated by:
// mojo/public/tools/bindings/mojom_bindings_generator.py
// For:
// third_party/blink/public/mojom/mediastream... | 39.913934 | 215 | 0.616388 |
98b1060b181929c525117c4e907ea265373e9a26 | 2,032 | package com.inicu.models;
import javax.persistence.Column;
public class NeuroVitalsJSON {
private String nnNeurovitalsTime;
private String sedationScore;
private String uhid;
private Integer gcs;
private Integer ccp;
private Integer icp;
private String loggeduser;
private String leftPupilsize;
private ... | 19.538462 | 61 | 0.747047 |
42a62ea84f5715efc0fc8da02d340c6337c41be3 | 14,979 | /*
* Copyright (c) 2009-2021 jMonkeyEngine
* 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 ... | 33.965986 | 99 | 0.577008 |
f11a0d7cef7e93644451078f66b4c8596a4088f4 | 2,731 | /* Copyright (C) 2013-2020 TU Dortmund
* This file is part of LearnLib, http://www.learnlib.de/.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/... | 36.413333 | 119 | 0.734163 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.