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 |
|---|---|---|---|---|---|
707d3967c0b01ffcc988b5e2afbbc2a9babd9019 | 3,721 | import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
/**
* Connects to the MySQL-Server
*
* @author timob
*
*/
public class Database {
Connection conn;
public Database(){
try {
Class.forName("com.my... | 24.006452 | 155 | 0.620532 |
a1510cb45562ae14d4d163ab689b4dc27ae1f6de | 532 | package com.demosoft.onepage.entiry.form;
import com.google.common.base.MoreObjects;
import lombok.Getter;
import lombok.Setter;
/**
* Created by Andrii_Korkoshko on 9/6/2016.
*/
public class UserForm {
@Getter
@Setter
private String username;
@Getter
@Setter
private String password;
... | 19 | 47 | 0.62782 |
06931c6171feadc7a5a91f88d469a8dfcf169a5f | 5,145 | /*
* 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.incidencias.resources;
import co.edu.uniandes.csw.incidencias.dtos.TecnicoDTO;
import co.edu.unian... | 33.627451 | 126 | 0.632459 |
3a847ef44b18ecd60316ddd3e3586fb4c21ea355 | 577 | package in.balamt.practice.string;
import com.sun.xml.internal.ws.util.StringUtils;
import java.util.Arrays;
public class CapitalCaseApp {
public static void main(String[] args) {
toCapitalCase("Hash Map App");
}
public static String toCapitalCase(String text){
StringBuilder captialCa... | 21.37037 | 60 | 0.658579 |
ef9dc7ac37db8c2206073eaad141f15ad00708da | 456 | package dev.xdark.ssvm.api;
import dev.xdark.ssvm.execution.ExecutionContext;
import dev.xdark.ssvm.execution.Result;
import org.objectweb.asm.tree.AbstractInsnNode;
/**
* Instruction interceptor.
* Does not work if code is JITted.
*
* @author xDark
*/
public interface InstructionInterceptor {
/**
* @param c... | 21.714286 | 63 | 0.752193 |
68bd8c601f5e5e64b98093f9fd53c2e02b7aa889 | 2,873 | package com.theif519.sakoverlay.Widgets.Adapters;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.theif519.sakoverlay.R... | 38.824324 | 114 | 0.678385 |
4cd53a95b83c3ce125900418935fe7288e2f219b | 2,267 | /*
* Copyright (c) 2000 by Matt Welsh and The Regents of the University of
* California. All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without written agreement is
* hereby granted, provided that the above copyrig... | 32.855072 | 88 | 0.683723 |
c2a9b09790b646147969e3a531907caa3261b133 | 1,744 | package net.zkbc.p2p.fep.message.protocol;
import java.util.List;
/**
* 获取物流信息.服务端响应
*
* @author 代码生成器v1.0
*
*/
public class GetOrderLogiInfoResponse extends ResponseSupport {
/**
* @see net.zkbc.p2p.message.protocol.GetOrderLogiInfoResponse#getLogiInfoList
*
*/
public static class ElementLogiInfoLis... | 17.616162 | 79 | 0.693807 |
ad847ef0b6b139b1d106a658df6468a6f0063019 | 3,096 | package io.github.nichetoolkit.socket.service;
import io.github.nichetoolkit.socket.manager.Jt808SessionManager;
import java.lang.ref.SoftReference;
import java.util.Collections;
import java.util.Map;
/**
* <p>Jt808CacheService</p>
* @author Cyan (snow22314@outlook.com)
* @version v1.0.0
*/
public interface Jt80... | 26.461538 | 119 | 0.624677 |
1e1c45b52bf9d18e33e212bdb9d4656910731e72 | 7,696 | /*
* Copyright 2017-2019 The OpenTracing 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 applicable law or ... | 40.505263 | 100 | 0.735707 |
184a2e95402a7b407a27e0a1eb91136ab354ad19 | 2,023 | package io.github.qyvlik.formula.modules.formula.model;
import com.google.common.collect.Maps;
import io.github.qyvlik.formula.modules.formula.service.VariableService;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.List;
import java.util.Map;
public class CurrencyConvertContext {
pu... | 38.903846 | 109 | 0.685121 |
92da04f5d73f041e521f9d51a19b44371d6fff40 | 346 | package net.folivo.springframework.security.abac.attributes;
public class StandardRequestAttributeFactory implements RequestAttributeFactory {
@Override
public RequestAttribute build(AttributeCategory category, String id, Object value) {
return new StandardRequestAttribute(new StandardRequestAttributeMetadata(cat... | 31.454545 | 97 | 0.83815 |
b07bc750db6ee430abcd540420d13fab29bdf360 | 1,032 | package no.fint.personnel.handlers;
import no.fint.event.model.Event;
import no.fint.event.model.ResponseStatus;
import no.fint.model.administrasjon.personal.PersonalActions;
import no.fint.model.resource.FintLinks;
import no.fint.personnel.model.ArbeidsforholdRepository;
import no.fint.personnel.service.Handler;
impo... | 31.272727 | 84 | 0.781008 |
a213950fcc6ee95e647bb64a8c61e755ae88bbab | 1,063 | package com.hosta.Floricraft3.potion;
import com.hosta.Flora.potion.EffectBase;
import com.hosta.Flora.util.EffectHelper;
import com.hosta.Floricraft3.module.ModuleCore;
import net.minecraft.entity.LivingEntity;
import net.minecraft.potion.EffectType;
public class EffectActive extends EffectBase {
public EffectAct... | 19.327273 | 74 | 0.707432 |
4402573da99a91e30f83099497aca6fbd1850a6a | 2,433 | package no.nav.foreldrepenger.selvbetjening.innsending.domain.tilrettelegging;
import static com.fasterxml.jackson.annotation.JsonInclude.Include.NON_EMPTY;
import java.time.LocalDate;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonInclude;
@JsonInclude(NON_EMPTY)
public class Tilrettelegging {
... | 28.623529 | 107 | 0.704891 |
1a05d3dcced4633615d327d1af0352c4bd989d32 | 5,075 | package com.buykop.console.thread;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Vector;
import com.alibaba.fastjson.JSONObject;
import com.buykop.framework.annotation.SysThread;
import com.buykop.framework.http.NetWorkTime;
import com.buykop.framework.http.UrlUtil;
impo... | 24.399038 | 113 | 0.644138 |
d20dc58641b9d354b1d6220d92699560ef98922c | 139 | package dev.park.e.bookcafemanager.repository;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface CategoryMapper {
}
| 15.444444 | 46 | 0.81295 |
f60a1f2c5344709941bad8449826a3a9e49f7792 | 196 | package com.github.charlemaznable.core.net.ohclient.testclient;
import com.github.charlemaznable.core.net.ohclient.OhClient;
@TestClientMapping
@OhClient
public class TestHttpClientConcrete {
}
| 21.777778 | 63 | 0.841837 |
79ecc6b98132cad2aab012f870cfbd1c96341884 | 611 | package com.datastaxdev.todo;
import java.util.Map;
import io.quarkus.test.junit.QuarkusTestProfile;
import com.datastaxdev.todo.config.AstraConfig;
/**
* Sets the {@code astra-service.type} property equal to {@code dao} so that the
* {@link com.datastaxdev.todo.service.AstraService AstraService} implementation u... | 27.772727 | 85 | 0.779051 |
84f4de7350e3a068bb7255779676f1be5ac3ab3a | 858 | package com.bugvm.javacpp.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import com.bugvm.javacpp.FunctionPointer;
import com.bugvm.javacpp.tools.Generat... | 34.32 | 96 | 0.758741 |
a9f7c2fabdd62a3cf3ea6d4236a6d44d76719b30 | 93 | package org.apache.log4j.spi;
public interface OptionHandler {
void activateOptions();
}
| 15.5 | 32 | 0.763441 |
5c88baff8276e56d8da1355c86c3799b87a975c7 | 5,345 | /**
* Copyright 2014 Thomas Naeff (github.com/thnaeff)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 29.530387 | 139 | 0.668849 |
a1f0145228972e5c04653ecb19b7306d25c5368d | 1,056 | package com.amazonaws.config;
import dagger.internal.Factory;
import dagger.internal.Preconditions;
import javax.annotation.Generated;
import software.amazon.awssdk.services.dynamodb.DynamoDbClient;
@Generated(
value = "dagger.internal.codegen.ComponentProcessor",
comments = "https://google.github.io/dagger"
)
pu... | 28.540541 | 89 | 0.778409 |
88f4b4b21c815c024c0f38d2e7cd64ac23a428a0 | 549 | package wazzle.model.minigame.attempt;
/**
* Computes the attempt result returning a {@link MiniGameWord} containing the result.
*
* @param wordToCompute - the string containing the wrong word to compute.
* @return MiniGameWord - the computed attempt
*/
public interface WordChecker {
MiniGameWord computeAttemp... | 26.142857 | 86 | 0.728597 |
82bfe7fabda4df83da0bfa45451e59a10e2c6a2f | 1,752 | package com.linuxtek.kona.app.social.entity;
import java.util.LinkedHashMap;
import com.linuxtek.kona.data.entity.KEnumObject;
import com.linuxtek.kona.data.entity.KEnumUtil;
public enum KInvitationStatus implements KEnumObject {
// ---------------------------------------------------------------
PENDING(10... | 24 | 70 | 0.58105 |
fc718120ba5b23674a2ce1439d46f5aca547f6e1 | 1,726 | package cabernet1.monopoly.domain.game.die;
import cabernet1.monopoly.domain.game.die.enumerators.SpeedDieFaces;
public class SpeedDie extends IDie {
private static final long serialVersionUID = -2706407479654611703L;
private int absoluteDieValue;
public SpeedDie() {
super();
}
... | 26.553846 | 84 | 0.548088 |
98035a22cb7129ec6a9a171e24372527d9523113 | 989 | /*
* Copyright (c) 2015-2019 Uli Bubenheimer
*
* 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... | 30.90625 | 75 | 0.724975 |
b61d97678b141909065c23f2699273ae7bb9ac2b | 77 | /**
* WebSocket handlers.
*/
package io.hosuaby.restful.websocket.handlers; | 19.25 | 46 | 0.74026 |
6061eed5512e93941e4d12acc805143b58d08bb4 | 861 | package com.checkout.hybris.core.payment.oxxo.service;
import com.checkout.hybris.core.model.CheckoutComAPMConfigurationModel;
import com.checkout.hybris.core.oxxo.session.request.OxxoPayerRequestDto;
import de.hybris.platform.core.model.order.CartModel;
import java.util.Optional;
/**
* Used to Oxxo APM configurati... | 29.689655 | 108 | 0.747967 |
6af96e3e7557e8ebff3ee87003f08a9252e68d9b | 152 | package com.amack.scii.units;
import com.github.ocraft.s2client.protocol.unit.Unit;
public interface IdleUnitStrategy
{
void command(Unit unit);
}
| 13.818182 | 53 | 0.782895 |
dbcd03907650885633f73c6dbde247debc24863a | 467 | // This file is part of PDQ (https://github.com/ProofDrivenQuerying/pdq) which is released under the MIT license.
// See accompanying LICENSE for copyright notice and full details.
package uk.ac.ox.cs.pdq.regression.acceptance;
/**
@author Michael Benedikt
This package contains various criteria for a test... | 35.923077 | 135 | 0.747323 |
5ecc917d76fa2dc809c61ef9c811ad260926fc0e | 19,797 | package com.samulitfirstproject.supply365;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.cardview.widget.CardView;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.content.Intent;
import and... | 41.765823 | 165 | 0.486538 |
c7840293c820bc9ed9bbe1d0a21f9e6ee887ae62 | 3,382 | package com.navercorp.pinpoint.web.statistics.git;
import com.navercorp.pinpoint.web.statistics.git.entity.GitCommitFileEdge;
import com.navercorp.pinpoint.web.statistics.git.entity.GitCommitInfo;
import com.navercorp.pinpoint.web.statistics.git.entity.GitCommitRetn;
import java.io.IOException;
import java.util.*;
... | 44.5 | 146 | 0.555884 |
1acc78c1e7ddf44db00b98c7161d9ce776ce76b6 | 3,379 | package graphs.graph;
import java.io.BufferedReader;
import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
public class GraphReader {
public static Graph readGraph(Path file) throws IOException {
Graph graph = new G... | 27.92562 | 119 | 0.531518 |
302ceb6264f2c16526dd980061d9c6796b2d1d87 | 98 | package com.burtelov.homework;
public enum KeyTag {
POSITION,
NUMBER,
COUNT
}
| 12.25 | 31 | 0.622449 |
0147d263ac9ee3d5d539c47861da8eb339da06e7 | 221 | package com.example.myapplication.Utils;
public class CommonUtils {
public static final String baseUrl = BaseUrl_ConstantClass.BASE_URL;
public static int check = 1;
public static int checkautostart=1;
}
| 22.1 | 72 | 0.755656 |
cde20fb88bb03243047d3e7ff00ea02d93a9728a | 645 | package com.github.cwdtom.gateway.thread;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.atomic.AtomicInteger;
/**
* default thread factory
*
* @author chenweidong
* @since 1.7.2
*/
public class DefaultThreadFactory implements ThreadFactory {
/**
* host
*/
private String... | 20.806452 | 80 | 0.652713 |
62f219b88e601a775514eb04be65ac822b1d8634 | 614 | package org.ar.armeet;
import android.graphics.Color;
import android.widget.TextView;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
public class LogAdapter extends BaseQuickAdapter<String,BaseViewHolder> {
public LogAdapter() {
super(android.R... | 29.238095 | 73 | 0.741042 |
323c4e59b7e1b2bb93de0778646e07eb4b562514 | 1,548 | package de.hsmainz.cs.semgis.arqextension.test.linestring.editor;
import static org.junit.Assert.assertEquals;
import java.util.LinkedList;
import java.util.List;
import org.apache.jena.sparql.expr.NodeValue;
import org.junit.jupiter.api.Test;
import org.locationtech.jts.geom.Coordinate;
import de.hsmain... | 39.692308 | 127 | 0.741602 |
6fc0678a137007d97f9bea02b6ec96d3ed5f647f | 772 | package com.chudichen.spring.aop;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.stereotype.C... | 26.62069 | 81 | 0.78886 |
42a0c104b7f0c2e0703feeeb8275a2a7d8534a39 | 1,591 | package org.opencb.bionetdb.app.cli.admin.executors;
import org.opencb.bionetdb.app.cli.CommandExecutor;
import org.opencb.bionetdb.app.cli.admin.AdminCliOptionsParser;
import org.opencb.bionetdb.core.exceptions.BioNetDBException;
import org.opencb.bionetdb.lib.BioNetDbManager;
import org.opencb.commons.utils.FileUtil... | 36.159091 | 146 | 0.750471 |
37ab416950e44dd03b3b82a9fee7f3a491ec77b0 | 3,023 | package b01.foc.formula;
import b01.foc.Globals;
import b01.foc.desc.FocObject;
import b01.foc.desc.field.FFieldPath;
import b01.foc.property.FAttributeLocationProperty;
import b01.foc.property.FProperty;
import b01.foc.property.FPropertyListener;
public class PropertyFormulaContext extends FocAbstractFormulaContext ... | 26.991071 | 161 | 0.706914 |
7ab99827ff968b4f94bbc221cd229e99e456d352 | 1,051 | package ch.bfh.bti7081.s2020.green.protomed.management;
import ch.bfh.bti7081.s2020.green.protomed.model.Configuration;
import lombok.Getter;
import org.yaml.snakeyaml.Yaml;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Paths;
public class ConfigurationManager {
private static Con... | 26.948718 | 98 | 0.702188 |
edb09f74bccab3f15c37541465e5d6f410e61e76 | 377 | package M2.Objet_Architectural.Interface_Communication;
public abstract class Port extends Interface {
String elmtStocke;
/**
* @return l'elmt stocké
*/
public String getElmtStocke() {
return elmtStocke;
}
/**
* @param elmtStocke
* l'elmtStocke à modifier
*/
public void setElmtStocke(St... | 16.391304 | 55 | 0.69496 |
66de8b03eb941191c4340a2b238bc763c256d1c4 | 224 | package io.joaoseidel.message.application.exceptions;
public class InvalidScheduleDateException extends Exception {
public InvalidScheduleDateException() {
super("Message does not have a valid schedule date!");
}
}
| 28 | 61 | 0.790179 |
38cccea7ba772a903edf92f55dc5c91c1008fe78 | 137 | package com.ugsbo.gui;
public class StartApplication {
public static void main(String[] args) {
MainApp.main(args);
}
} | 17.125 | 44 | 0.656934 |
ed169890ad15a934e009a296a4ba24e04441532a | 909 | package br.com.zupacademy.augusto.mercadolivre.usuario;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import org.hibernate.validator.constraints.Length;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import br.com.zupacademy.augusto.... | 25.25 | 87 | 0.779978 |
91dc435378fa6980ebf0a313e748d4b7509e039b | 5,906 | /*
* Copyright 2010 netling project <http://netling.org>
*
* 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 app... | 29.979695 | 79 | 0.610396 |
9a30104a38788dd9165018652d414f4b9f8ae35e | 3,359 | /*
* ****************************************************************************************************************
* Authors: SanAndreasP
* Copyright: SanAndreasP
* License: Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
* http://creativecommons.org/licenses/by-nc-sa/4.0/
* *******... | 59.982143 | 138 | 0.675201 |
78f8fd186ceba45e244b7d7df4a6da9d86ae49d5 | 1,252 | package edu.depaul.se359.agilegame.GameState;
/*
The game state context class. Hold the current game state. Also get and set game state.
Author: Ethan Lin
Created on: October 5, 2018
*/
import java.util.Map;
import java.util.HashMap;
import java.util.ArrayList;
import edu.depaul.se359.agilegame.Play... | 20.52459 | 91 | 0.634185 |
60f7916a9adba4e1c4077a4fd72d57729435cd3f | 6,530 | /*
* Copyright (c) 2016-2019 VMware, Inc. All Rights Reserved.
*
* This product is licensed to you under the Apache License, Version 2.0 (the "License").
* You may not use this product except in compliance with the License.
*
* This product may include a number of subcomponents with separate copyright notic... | 30.231481 | 108 | 0.632772 |
7f90e3274ff8d3696d8d33978c4441cf1d9ad6a7 | 412 | package com.utocat.catalizr.core.APIs;
import com.utocat.catalizr.core.AuthorizationToken;
/**
*
* @author Cedric PAUCHET cedric.pauchet@utocat.com
*
*/
public interface AuthenticationApi {
/**
* Gets the new token used for requests authentication.
*
* @return {@link AuthorizationToken} obje... | 21.684211 | 72 | 0.708738 |
1449599343d1d1d7d078e3a311e39be9d15a0f89 | 15,600 | package io.muserver.murp;
import io.muserver.*;
import org.eclipse.jetty.client.HttpClient;
import org.eclipse.jetty.client.api.Request;
import org.eclipse.jetty.client.util.DeferredContentProvider;
import org.eclipse.jetty.http.HttpField;
import org.eclipse.jetty.http.HttpFields;
import org.eclipse.jetty.http.HttpHea... | 47.129909 | 221 | 0.633333 |
860f4f7282e685a56427b0547dcc3f6e7c69155b | 1,914 | /**
* Name: David Töyrä
* CS: dv15dta
* Date: 2017-08-08
* File: ClockTest.java
*/
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class ClockTest
{
private Clock clockTestObject;
private int hour;
private int minute;
@Test
public void create... | 22.517647 | 64 | 0.591954 |
11834d81c278df74b400cacf73ccf44df6693ae3 | 1,233 | /*
* Copyright (c) 2011-2016 Pivotal Software Inc, 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
*
* Unles... | 27.4 | 75 | 0.70884 |
211eb2cf47e4e8e483b974aafcc5273bebac4d03 | 776 | /**
* generated by Xtext 2.22.0
*/
package org.sodalite.sdl.ansible.ide;
import com.google.inject.Guice;
import com.google.inject.Injector;
import org.eclipse.xtext.util.Modules2;
import org.sodalite.sdl.ansible.AnsibleDslRuntimeModule;
import org.sodalite.sdl.ansible.AnsibleDslStandaloneSetup;
/**
* Initializatio... | 33.73913 | 96 | 0.80799 |
5d2580099156ac924ef04edf9b18378fa9c23bb2 | 1,395 | package com.hazelcast.samples.eureka;
import com.hazelcast.config.Config;
import java.util.Arrays;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client... | 34.875 | 91 | 0.723297 |
d1d032fcc199a8c2aea9a127cc5e2bfc5f191280 | 1,761 | package com.dyingtosurvive.rpcregistryzk;
import com.dyingtosurvive.rpccore.common.ZKInfo;
import com.dyingtosurvive.rpcinterface.model.ZKNode;
import com.dyingtosurvive.rpccore.registry.Registry;
import org.I0Itec.zkclient.ZkClient;
import java.util.ArrayList;
import java.util.List;
/**
* ZK实现的注册中心
* Created b... | 25.897059 | 106 | 0.611584 |
f7ef79a6357fd2f17587d98caf1f0110c9ecb5f6 | 390 | package org.batfish.question.int_expr;
import org.batfish.question.Environment;
public abstract class BaseIntExpr implements IntExpr {
public static final String print(IntExpr expr, Environment environment) {
return expr.evaluate(environment).toString();
}
@Override
public final String print(Envi... | 21.666667 | 76 | 0.746154 |
2fff45b6ca66e19eef3a1fa946747d1012ccd84b | 2,485 |
package mage.cards.t;
import java.util.UUID;
import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.common.RemoveCountersSourceCost;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.costs.mana.GenericManaCost;
import mage.abilities.effect... | 37.651515 | 161 | 0.742857 |
04b0b9050db1f4bcb845dd1625837a090ea4a9f9 | 3,141 | //Move the Smallest and largest to head and tail of Singly Linked List
import java.util.*;
class linkedList
{
Node head;
static class Node
{
int data;
Node next;
Node(int d)
{
data = d;
next=null;
}
}
static linkedL... | 21.965035 | 98 | 0.395415 |
a7e3c2282b45fc9a9d981917c0d60781301eded7 | 1,916 | package com.jyc.learn.poplar.classload;
import java.lang.reflect.Method;
/**
* Created By poplar on 2019/11/8
* 1.每个类加载器都有自己的命名空间,命名空间由该加载器及所有父加载器所加载的类构成;
* 2.在同一个命名空间中,不会出现类的完整名字(包括类的包名)相同的两个类;
* 3.在不同的命名空间中,有可能会出现类的完整名字(包括类的包名)相同的两个类;
* 4.同一命名空间内的类是互相可见的,非同一命名空间内的类是不可见的;
* 5.子加载器可以见到父加载器加载的类,父加载器也不能见到子加载器加载的类... | 42.577778 | 128 | 0.723904 |
b3c57e92b49c487743295630c32871451ab59050 | 6,567 | /*
* Copyright (c) 2010 WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... | 56.612069 | 126 | 0.775392 |
48bdb215aed0c187c3e9a4a22ebf2de41fc94475 | 5,922 | /*
* Copyright (C) 2019 The Calrissian 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 applicable law or... | 32.360656 | 124 | 0.632219 |
f04c0b17ca02b69f4211502d4ed98b0ad3ab1ac8 | 1,224 |
package com.linkb.jstx.message.handler;
import android.content.Context;
import android.content.Intent;
import com.linkb.jstx.app.Constant;
import com.linkb.jstx.database.GlideImageRepository;
import com.linkb.jstx.database.MicroServerRepository;
import com.linkb.jstx.model.MicroServer;
import com.farsunset.cim.sdk.a... | 34.971429 | 120 | 0.77451 |
23d0530105481de75f00e9554bb05300a5e15484 | 4,010 | package com.chero.client.service.impl;
import com.chero.client.dao.ReportRepository;
import com.chero.client.domain.DateNumber;
import com.chero.client.domain.MonthNumber;
import com.chero.client.domain.ReaderNumber;
import com.chero.client.domain.Report;
import com.chero.client.service.ReportService;
import c... | 38.190476 | 214 | 0.719451 |
6f5f67790390e4a5e6102d70d70fbd9aa901736d | 105 | package com.appcoins.eskills2048.repository;
public enum StatisticsTimeFrame {
TODAY, WEEK, ALL_TIME
}
| 17.5 | 44 | 0.809524 |
e322afd0e3886705e85bb89433b70d65a8348a02 | 5,244 | /**
* This class is generated by jOOQ
*/
package org.jooq.test.mariadb.generatedclasses.tables;
/**
* This class is generated by jOOQ.
*
* An entity holding books
*/
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class TBook extends org.jooq.impl.TableImpl<org.jooq.test.mariadb.generatedc... | 47.672727 | 331 | 0.769832 |
d69f5b7d9cfa5d255bcaa11835f8ef6ee57ab79a | 2,210 | /*
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com... | 32.985075 | 98 | 0.760633 |
c989e1d57e4a1fbae21aee4aaaf7ebb2971a2308 | 5,759 | package io.atlasmap.xml.v2;
import io.atlasmap.api.AtlasException;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
/**
*/
public class DocumentXmlFieldReader extends XmlFieldTrans... | 44.3 | 142 | 0.612085 |
4a126e8b03640a092824ca05f33f6e5ab387a851 | 4,742 | package edu.hm.hafner.analysis.parser;
import java.util.Optional;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.lang3.RegExUtils;
import org.apache.commons.lang3.StringUtils;
import edu.hm.hafner.analysis.Issue;
import edu.hm.hafner.analysis.IssueBuilder;
import edu.hm.haf... | 37.936 | 133 | 0.616196 |
a279218646496d943c6ad07a4cb6c6f976453d77 | 2,070 | package com.kingston.jforgame.server.cross.core.callback;
import com.kingston.jforgame.common.utils.TimeUtil;
import com.kingston.jforgame.server.cross.core.client.C2SSessionPoolFactory;
import com.kingston.jforgame.server.cross.core.client.CCSession;
import com.kingston.jforgame.socket.message.Message;
import java.u... | 33.387097 | 76 | 0.620773 |
829801fde151c4ff3dd71da22d4a73975c9c69c6 | 2,286 | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | 43.961538 | 100 | 0.690289 |
ede5e24fe668e50ac52776c33772de430c233ae8 | 1,496 | package com.bumptech.glide.load.p111b;
import android.net.Uri;
import com.bumptech.glide.load.C6349k;
import com.bumptech.glide.load.p111b.C6128u.C6129a;
import com.mopub.common.Constants;
import java.io.InputStream;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;... | 32.521739 | 142 | 0.689171 |
2b0dd5640482a2c6f6ace0b4b367b2d2b8dea24b | 5,587 | package tech.sollabs.heimdallr.web;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpServletResponse;
import org.springframework.security.authentication.TestingAuthenticationToken;
import org.... | 41.69403 | 100 | 0.73152 |
ade3b1d9d57b68bf60816aaec4e6e66668f54d50 | 363 | package geeksforgeeks.beginner.basics;
public class P10_StepByStepCondition {
static void isDivisibleByPrime(int n) {
if (n % 11 == 0) {
System.out.println("Eleven");
} else if (n % 3 == 0) {
System.out.println("Three");
} else if (n % 2 == 0) {
System.out.println("Two");
} else {
... | 22.6875 | 41 | 0.570248 |
b16cc7a9efc3712b6d43bfd2e36ebcb90c4a00e7 | 1,741 | package com.pertamina.tbbm.rewulu.ecodriving.fragment;
public class Backstack {
private static boolean about;
private static boolean hisOntories;
private static boolean mainmenu;
private static boolean maintracking;
private static boolean result;
private static boolean splash;
private static boolean usersetting... | 16.580952 | 54 | 0.677197 |
4757920403eabef45b7e5cfcf3dfa25c02964d33 | 1,121 | package com.protectsoft.ide.buildAndRun;
import java.io.IOException;
import com.protectsoft.ide.Consts;
import com.protectsoft.ide.buildAndRun.parserStream.JavacStream;
public class Run implements Runnable {
private Thread errorStream;
private Thread outputStream;
@Override
public void run() {
... | 16.485294 | 102 | 0.629795 |
cf09b3286380304433d890a574d029d627fef963 | 463 | package tld.yggdrasill.services.gcm.core.model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ActivePower {
@Schema(example = "23.0")... | 19.291667 | 50 | 0.773218 |
d0e3298e08d900a8f3ded91b74cce2256b0bd9a0 | 4,221 | /*
* Copyright 2013 Projects Exception
* Copyright 2012 Uwe Trottmann
*
* 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 ... | 36.387931 | 144 | 0.700782 |
2c2d929026a296ed718436c7246cdcf973cdd58c | 2,912 | /*
Copyright 2015 Google Inc. 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
Unless required by applicable law or agreed to in ... | 34.258824 | 102 | 0.773352 |
631eb6350655dc027c117364df6e04caf609ff74 | 998 | package gw.plugin.ij.extensions;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.psi.search.DelegatingGlobalSearchScope;
import com.intellij.psi.search.GlobalSearchScope;
import gw.lang.reflect.TypeSystem;
import gw.plugin.ij.filesystem.IDEAFile;
import g... | 28.514286 | 121 | 0.760521 |
00d878277b218deed67a5a64a5c5bae32dbdaa6f | 2,746 | /*
* @author <a href="mailto:novotny@gridsphere.org">Jason Novotny</a>
* @author <a href="mailto:oliver@wehrens.de">Oliver Wehrens</a>
* @version $Id$
*/
package org.gridsphere.layout;
import org.gridsphere.portletcontainer.impl.JavaXMLBindingFactory;
import org.gridsphere.services.core.persistence.PersistenceMana... | 39.797101 | 134 | 0.742535 |
babf70b829d6dc6986735b5ba0d836edc6fadc7f | 2,994 | package ser;
import junit.framework.Assert;
import org.junit.Test;
import org.nustaq.offheap.BinaryQueue;
import org.nustaq.offheap.bytez.ByteSink;
import org.nustaq.offheap.bytez.onheap.HeapBytez;
import java.util.Arrays;
/**
* Created by ruedi on 09.09.2015.
*/
public class TestQ {
@Test
public void... | 29.94 | 72 | 0.499666 |
29475d9290c82b7b2f3fae6315be5a82e0e12e82 | 2,526 | package ff.ecochallenges.game;
import android.content.Intent;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.provider.ContactsContract;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.util.Log;
import com.goog... | 25.77551 | 96 | 0.634204 |
861a2b018ca01552bc7d5dfd8e8c23d626ccf03a | 12,194 | /**
* Copyright 2014-2017 Linagora, Université Joseph Fourier, Floralis
*
* The present code is developed in the scope of the joint LINAGORA -
* Université Joseph Fourier - Floralis research program and is designated
* as a "Result" pursuant to the terms and conditions of the LINAGORA
* - Université Joseph Fourie... | 36.076923 | 173 | 0.72101 |
c9ccc59e54896a6de4668151e5ccbacae352877d | 585 | package com.sciatta.openmall.service.pojo.query;
import lombok.Data;
import java.io.Serializable;
/**
* Created by yangxiaoyu on 2021/8/9<br>
* All Rights Reserved(C) 2017 - 2021 SCIATTA<br><p/>
* UserAddressQuery
*/
@Data
public class UserAddressQuery implements Serializable {
private static final long... | 22.5 | 70 | 0.726496 |
a2d014e4fbde4107f013cd24ab20918efe258b1e | 5,093 | package jetbrains.mps.lang.textGen.structure;
/*Generated by MPS */
import jetbrains.mps.lang.smodel.LanguageConceptIndex;
import jetbrains.mps.lang.smodel.LanguageConceptIndexBuilder;
import jetbrains.mps.smodel.adapter.ids.SConceptId;
import org.jetbrains.mps.openapi.language.SAbstractConcept;
public final class L... | 48.04717 | 116 | 0.796387 |
6116d45f1e0f69baf547a96d37790f9b9ffca129 | 3,032 | package org.societies.android.api.internal.contentproviders;
/**
* Simple description of Service Table Structure.
* @author Luca (Telecomitalia)
*/
public class CssProfileTable implements IContentProvider {
// Database table
public static final String TABLE_NAME = "css_profile_table";
... | 34.850575 | 88 | 0.649077 |
9824259e8982e2d2e01fb63f4c9707e801148571 | 517 | package com.fincatto.documentofiscal.cte200.transformers;
import com.fincatto.documentofiscal.cte200.classes.CTRetiraMercadoria;
import org.simpleframework.xml.transform.Transform;
public class CTRetiraMercadoriaTransformer implements Transform<CTRetiraMercadoria> {
@Override
public CTRetiraMercadoria read(f... | 30.411765 | 85 | 0.779497 |
f243ae6989b2e43e8d066870681bdcaf08001035 | 12,264 | package com.Liamengine.Engine.Entry;
import com.Liamengine.Engine.AbstractClasses.ILevel;
import com.Liamengine.Engine.Components.Vector;
import com.Liamengine.Engine.Utils.MusicUtils;
import com.Liamengine.Engine.Utils.UtilManager;
import com.Liamengine.Engine.Utils.imageUtils;
import java.awt.CardLayout;
import java... | 30.132678 | 171 | 0.6144 |
a3daa4abd955c71345ad47fa9963a29699f862bd | 5,572 | /*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distribute... | 44.222222 | 134 | 0.695262 |
f3aac22c1ef650e4761c2c847ef86e53c26eec20 | 270 | package uk.co.thefishlive.maths.tasks;
/**
* Represents a task to be executed by the application.
*/
public interface Task extends Runnable {
/**
* Get the name of this task.
*
* @return the name of this task
*/
public String getName();
}
| 19.285714 | 55 | 0.633333 |
71f193ee3c94d7fe2e51e44f637d922e40c2c9c8 | 261 | package Tiles.Interior.PatternedCarpet;
import Graphics.Assets;
import Tiles.Tile;
public class PatternedCarpetBottomMiddle extends Tile {
public PatternedCarpetBottomMiddle(int id) {
super(Assets.patternedCarpetBottomMiddle, id, false);
}
} | 21.75 | 61 | 0.773946 |
b7b9059a0bca3d5d9934e517ca25f5fc0622c187 | 19,949 | /*
* 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 ... | 50.123116 | 95 | 0.656173 |
2a49d501368f5f902909a75fc78fcd9d320d9816 | 2,301 | package entities;
import java.sql.Date;
public class Books {
private String isbn;
private String book_tittle;
private String book_author;
private String year_of_publication;
private String publisher;
private String image_url_s;
private String image_url_m;
private String image_url_l;
private Date... | 21.504673 | 113 | 0.717949 |
ddb6b87da7901b23631c58fa967a32a74c27ab1e | 3,575 | package net.lll0.base.http;
import net.lll0.base.BaseApplication;
import java.io.File;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import java.util.concurrent.TimeUnit;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSessi... | 30.818966 | 88 | 0.573147 |
c06dc879f7296c721be12b7e2377192bf9253d15 | 1,690 | package org.apache.maven.scm.provider.svn.svnexe.command.remoteinfo;
/*
* 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
*... | 35.957447 | 101 | 0.759763 |
4b6a2d916c4298c38921d27dbe78556bec3c2364 | 892 | // Copyright 2000-2021 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 org.jetbrains.plugins.terminal;
import org.jetbrains.annotations.Nullable;
public class TerminalProcessOptions {
private final String myWorkingDirectory;
private fi... | 29.733333 | 140 | 0.776906 |
e8df5872f9309ef90cb9751b1b7e9aae7de9f195 | 1,542 | package com.jiuyv.supplychain.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;
import com.webank.webase.app.sdk.client.AppClient;
import com.weban... | 28.036364 | 99 | 0.745136 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.