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 |
|---|---|---|---|---|---|
2e60e7e342f6f16d4a3fbd28b65431a861d32a86 | 5,923 | /*
* Copyright 2019 Haulmont.
*
* 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... | 24.679167 | 79 | 0.684619 |
f3289553e409629dfb198465038e1574879bfc7c | 409,218 | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.example.android.asymmetricfingerprintdialog;
public final class R {
public static final class anim {
public stati... | 61.871485 | 201 | 0.672898 |
11d4f0fad01fb9f6dd4f394d056baac6bc12b658 | 7,779 | /*
* 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 ... | 35.520548 | 95 | 0.653683 |
a4b17590c22ebdb3ef8cd315c3330263ce49aee4 | 2,460 | /*-
* =========================LICENSE_START==================================
* heimdall-gateway
* ========================================================================
* Copyright (C) 2018 Conductor Tecnologia SA
* ========================================================================
* Licensed under the ... | 36.176471 | 131 | 0.630081 |
fa56a937d3ca3b9225a51db9ea185387a7abb364 | 1,602 | /**
* @author Julian Eichhoff
*
* Copyright 2014 Julian Eichhoff
*/
package de.eich.rewriter.derivation;
import java.util.List;
import de.eich.rewriter.functionstructure.FunctionStructure;
import de.eich.utils.ComparableList;
public class DerivationGroupHost {
protected RuleSequence ruleSequence;
public Funct... | 31.411765 | 126 | 0.777154 |
1a058a8c0335b278e9ada191e8da45cdff51e943 | 1,830 | package com.libraries.parjanya.recorderviewslib.ExtendedRecorderClasses.Widgets;
import android.content.Context;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import com.libraries.parjanya.recorderviewslib.Constants;
import com.libraries.parjanya.recorderviewslib.RecorderEvents.ViewPager... | 33.888889 | 172 | 0.740984 |
251efe639fa4b8c38e358e73e586a1cf62ac2872 | 2,054 | package uk.co.dannybdutton.flashlightplus.activities;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import uk.co.dannybdutton.flashlightplus.R;
import uk.co.dannybdutton.flashlightplus.fdialogs.DialogInfoFragment;
import uk.co.dannybdutton.fla... | 32.603175 | 94 | 0.732717 |
cc30f55e7100d87b79999714af9d2a007fa2205f | 4,826 | /*
* Copyright 2011-Present Author or Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | 30.352201 | 126 | 0.712184 |
b5c0a2804ed14288035debf4ab465ed6508515e3 | 2,200 | package com.capgemini.ebugtracker.user.controller;
import com.capgemini.ebugtracker.bugs.entity.Bugs;
import com.capgemini.ebugtracker.bugs.servies.TicketService;
import com.capgemini.ebugtracker.exception.BugNotFoundException;
import com.capgemini.ebugtracker.staff.entity.Staff;
import com.capgemini.ebugtracker.staff... | 30.136986 | 80 | 0.740455 |
e5c8b9bd74499a219748b02e0a5f4e3b02d156cb | 3,226 | /*
* Copyright (c) 2017 Carbon Security Ltd. <opensource@carbonsecurity.co.uk>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS... | 31.940594 | 109 | 0.701488 |
d98d2f8d48801490a4d2acbdbccdd57ca7af162d | 3,863 | package org.firstinspires.ftc.teamcode.roverRuckus;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.DigitalChannel;
import com.qualcomm.robotcore.hardware.Servo;
@TeleOp(name = "LiftyTest", group = "test")
public class Lifty... | 32.737288 | 99 | 0.505566 |
00848fd0c411f2efde87136bc11c16dd86cefe63 | 6,142 | /***
* Copyright (C) Microsoft. All rights reserved.
* Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
*
* File:ObservableObjectImpl.java
****/
package com.microsoft.pmod;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
i... | 31.497436 | 105 | 0.723868 |
325a4c0074d3f7dd1d096345d17db96c82a5ceab | 1,615 | /*
* Copyright (c) 2015. Qubole Inc
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 32.3 | 88 | 0.74613 |
9c80adee30730ba6c6c2c4bb4b857dc152df3b3d | 2,809 | package consulo.msil.lang.psi.impl.elementType;
import java.io.IOException;
import javax.annotation.Nonnull;
import com.intellij.lang.ASTNode;
import com.intellij.psi.PsiElement;
import com.intellij.psi.stubs.StubElement;
import com.intellij.psi.stubs.StubInputStream;
import com.intellij.psi.stubs.StubOutputStream;
... | 30.532609 | 123 | 0.804557 |
367ca6674a18aaaecb02c4863fa765713badb155 | 1,037 | package com.showtime.userservice.service;
import com.showtime.userservice.bean.request.UserProfileRequest;
import com.showtime.userservice.domain.UserProfile;
import java.util.List;
import java.util.UUID;
/**
* @author Vengatesan Nagarajan
*/
public interface UserProfileService {
/**
* To Create User Pro... | 22.06383 | 80 | 0.678881 |
c972f97e44c45c647a9a11b8a4525a64a0b6f584 | 68 | package com.fil.ap.rabbitmq;
public class RabbitConfigHeaders {
}
| 11.333333 | 34 | 0.779412 |
0bd917df27a0716147b2d320587dd51d40883841 | 1,461 | package com.liangxiaoqiao.leetcode.day.easy;
/*
* English
* id: 1154
* title: Day of the Year
* href: https://leetcode.com/problems/day-of-the-year
* desc: Given a string date representing a Gregorian calendar date formatted as YYYY-MM-DD, return the day number of the year.
* Example 1:
* Input: date = "2019-0... | 23.564516 | 127 | 0.626968 |
51f74365f197a7144f1abde918b7870064f5ecc1 | 361 | /**
*/
package com.zipc.garden.model.arc;
import com.zipc.garden.model.core.AbstractPoint;
/**
* <!-- begin-user-doc --> A representation of the model object '<em><b>Point</b></em>'. <!-- end-user-doc -->
* @see com.zipc.garden.model.arc.ARCPackage#getARCPoint()
* @model
* @generated
*/
public interface ARCPoin... | 22.5625 | 110 | 0.67313 |
52a84f4205453cf12b25f9281d300ea26bdba7ba | 50,076 | /*
* Copyright (c) 2008-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | 40.845024 | 112 | 0.65792 |
8d756986744b89baa2235b851f6717b59c010876 | 13,534 | package com.imarcats.model;
import java.sql.Timestamp;
import java.util.Date;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import javax.persistence... | 29.745055 | 110 | 0.688932 |
d4114594677dffc70a39045fe25a3f5afd33fd39 | 1,520 | package com.eooker.lafite.modules.keep.entity.po;
import java.util.Date;
/**
* @author xiyatu
* @date 2018/6/18 19:30
* Description
*/
public class AppServerPO {
private String serverId;
private String serverName;
private String id;
private String name;
private String serverDir;
private i... | 17.882353 | 50 | 0.597368 |
802581966469b30d55871673c5f17101ed350805 | 2,258 | /*
Copyright (c) 2010, Geomatics and Cartographic Research Centre, Carleton
University
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... | 35.28125 | 76 | 0.788308 |
83a0bee35d5e034086b71ebae1c4e97fa327eb97 | 2,522 | //################################
//Name: Kyle Russell
//ID: 13831056
//DSA Assignment one
//################################
import java.util.Random;
public class CardDeck
{
private CircularlyLinkedList<Card> cards;
private NodeIterator<Card> iterator;
private Node<Card> currentCard;
public Car... | 27.714286 | 137 | 0.555511 |
10dbf12c450667f71a1864368838fa2411867a5f | 2,261 | package redis.clients.jedis.plugin.params;
/**
* @author pz
* @version 0.1
* @date 2018/8/30 17:46
* @email 226804871@qq.com
* > cl.throttle laoqian:reply 15 30 60 1
* ▲ ▲ ▲ ▲ ▲
* | | | | └───── need 1 quota (可选参数,默认值也是1)
* |... | 27.573171 | 164 | 0.559487 |
3f5112c921422fa3c1a34536478bb49e4de6d289 | 657 | package me.sniggle.matemonkey4j.robospice.product;
import me.sniggle.matemonkey4j.api.model.result.ProductResult;
import me.sniggle.matemonkey4j.product.ProductsByProducerCallable;
import me.sniggle.matemonkey4j.robospice.BaseMateMonkeyRequest;
/**
* @author tuxbox, sniggle.me
*
* Request wrapper for ProductsByPro... | 27.375 | 85 | 0.785388 |
0c666434e6a0124a9326a7d0299727c01353eabc | 8,460 | package com.wardrobe.platform.rfid.rfid.config;
/**
* Regarding UHF return code and description, please refer to Serial_Protocol_User's_Guide_V2.38_en
*
*/
public class CMD {
public final static byte RESET = 0x70;
public final static byte SET_UART_BAUDRATE = 0x71;
public final static byte GET_FIRMWARE_VERSION ... | 41.470588 | 101 | 0.589835 |
072835dff8bfa1ec62b8fd1a2bbb3b08121aecb7 | 3,596 | package main.java.com.desmond.dao;
import main.java.com.desmond.entity.Usuario;
import java.sql.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* Utiliza la entidad Usuario para la ejecucion de consultas sobre la base de datos de la tabla correspondiente a dicha
* entidad
*/
pu... | 33.296296 | 119 | 0.629588 |
cd4932c95898c4d1f62e95ff0fb6f437ca32a871 | 2,096 | package com.rakesh.simplewidget;
import android.app.PendingIntent;
import android.app.Service;
import android.appwidget.AppWidgetManager;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.os.IBinder;
import android.telephony.TelephonyManager;
import an... | 32.75 | 100 | 0.805344 |
6a27b1829f5ae80632734e096371d048c7a53423 | 3,693 | package com.github.mini.common.util;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.util.CollectionUtils;
import java.util.Collection;
import java.util.concurrent.TimeUnit;
public class RedisUtil {
private stat... | 26.191489 | 126 | 0.611427 |
15231c9b39173a05b21d58d911fadf85f845a586 | 1,438 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.inmobiliaria.services;
import com.inmobiliaria.dao.AddressDao;
import com.inmobiliaria.dao.EmployeeDao;
import com.inmobil... | 28.76 | 98 | 0.761474 |
1035834158878f0ed24720efff8bf1032f72a86d | 555 | package org.finos.springbot.workflow.annotations;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* Add this annotation to an @Work-annotated class in order to populate the
* response data with a list of chats that the bot is aware of.
*
* This is used for populating a dr... | 24.130435 | 76 | 0.76036 |
983551892233cba1d1748d03853890a6aadfdd10 | 616 | package com.plivo.api.models.call.actions;
import com.plivo.api.exceptions.PlivoRestException;
import com.plivo.api.models.base.Creator;
import java.io.IOException;
public class CallRecordCreator extends Creator<CallRecordCreateResponse> {
private final String id;
public CallRecordCreator(String id) {
this.... | 25.666667 | 85 | 0.76461 |
6ccadc0ca5c7e62410d645b445f8c6a64654671c | 2,383 | package com.compomics.icelogo.core.data;
import com.compomics.icelogo.core.enumeration.AminoAcidEnum;
import com.compomics.icelogo.core.factory.AminoAcidFactory;
import java.util.HashMap;
/**
* Created by IntelliJ IDEA. User: Kenny Date: 21-aug-2008 Time: 10:23:00 To change this template use File | Settings |
* Fi... | 25.351064 | 119 | 0.54637 |
b6607b1028391a44a9f5182bf991f8d123d9b38e | 2,805 | /*
* Copyright (c) 2016-2021 Deephaven Data Labs and Patent Pending
*/
package io.deephaven.db.v2.locations;
import io.deephaven.base.Pair;
import io.deephaven.configuration.Configuration;
import io.deephaven.db.tables.ColumnDefinition;
import io.deephaven.db.v2.sources.DeferredGroupingColumnSource;
import io.deeph... | 38.958333 | 166 | 0.743316 |
938700d8b2c690e103bfa2628f0600595ef72864 | 190 | package com.tenfactorial.back.functions;
import java.util.LinkedList;
@FunctionalInterface
public interface UnaryStackFunction {
void apply(LinkedList<Integer> stack, int operand);
}
| 19 | 55 | 0.8 |
49cf38f76775e2ff4be345d3e47f483cc409aa48 | 2,256 | package com.github.egorklimov.api.commit;
import com.github.egorklimov.api.commit.model.CommitDtoAsResponse;
import com.github.egorklimov.api.commit.model.CommitResponse;
import com.github.egorklimov.data.repository.branch.Branch;
import com.github.egorklimov.data.repository.branch.BranchRepository;
import com.github.... | 42.566038 | 115 | 0.686613 |
54cc1e553faf2600a829e1b411f17d94d737db9e | 2,843 | package remoteio.common.tile;
import cpw.mods.fml.common.Optional;
import remoteio.common.lib.DependencyInfo;
import remoteio.common.tile.core.TileCore;
import ic2.api.energy.tile.IHeatSource;
import net.minecraft.block.Block;
import net.minecraft.block.BlockFurnace;
import net.minecraft.init.Blocks;
import net.minecr... | 34.670732 | 172 | 0.680267 |
26cf3ca606297c17ea195ff03e3864aacb8a952f | 13,119 | /*
* 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 dao;
import entity.Customer;
import entity.Manufacturer;
import entity.Product;
import entity.ProductCode;
import entity.Purch... | 31.087678 | 116 | 0.487995 |
22a102264761acd64403075175e3d071f838bacb | 13,890 | package edu.salleurl.ls30394.foodfinderapp.activities;
import android.Manifest;
import android.app.ProgressDialog;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentFilter;
import android.content... | 37.238606 | 259 | 0.648884 |
b29aac2bfb0aa75aaa8e724ae0493f2431d612f0 | 914 | package com.ljs.ifootballmanager.ai.value.impl;
import com.ljs.ifootballmanager.ai.player.Player;
import com.ljs.ifootballmanager.ai.value.Value;
/** @author lstephen */
public class FfoValue implements Value {
private FfoValue() {}
public Double getValue(Player p) {
Double base = getPotential(p);
retu... | 24.702703 | 90 | 0.678337 |
74e6512284025345a14017fa3e3ed1deb734d77c | 1,535 | package dp;
class Pair implements Comparable<Pair> {
int x;
int y;
Pair(int x, int y) {
this.x = x;
this.y = y;
}
@Override
public int compareTo(Pair p) {
if (this.y < p.x)
return -1;
else if (this.y == p.x)
return 0;
else
return 1;
}
public String toString() {
return "( " + x + " , "... | 17.443182 | 73 | 0.538111 |
f8dea7926b22c80fe2c6f9e7dae20099e679cc21 | 389 | package com.ppdai.das.console.api.impl;
import com.ppdai.das.core.enums.DatabaseCategory;
import com.ppdai.das.console.api.DataSearchConfiguration;
public class DataSearchManager implements DataSearchConfiguration {
@Override
public DatabaseCategory setUp(String appId, String dbName) {
return null;
... | 21.611111 | 67 | 0.742931 |
54bcb10abb5903409932e326ca6ac72d31095f8a | 7,706 | /*
* Copyright 2008 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* Unless required by appl... | 55.438849 | 191 | 0.776278 |
7543fc20d4068d3b16a3ffebccdc3899b9ab75cf | 4,999 | /* $Id$
* $URL$
*
* Part of the EU project Adapt4EE, see http://www.adapt4ee.eu/
*
* @license
* 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/LIC... | 39.992 | 80 | 0.716943 |
c155b8892a781d7e3cb71465d446c7f943ce3cef | 6,789 | package org.firstinspires.ftc.teamcode.util.StateMachine;
import com.acmerobotics.roadrunner.drive.Drive;
import com.acmerobotics.roadrunner.geometry.Pose2d;
import com.acmerobotics.roadrunner.trajectory.Trajectory;
import com.acmerobotics.roadrunner.trajectory.TrajectoryBuilder;
import com.acmerobotics.roadrunner.tra... | 42.698113 | 209 | 0.67521 |
12f7333cbbb116c5629813250bf11354b4a51e8b | 45,873 | package com.hjwylde.quxjc.compiler;
import static com.google.common.base.Preconditions.checkNotNull;
import static org.objectweb.asm.Opcodes.AASTORE;
import static org.objectweb.asm.Opcodes.ACC_FINAL;
import static org.objectweb.asm.Opcodes.ACC_PUBLIC;
import static org.objectweb.asm.Opcodes.ACC_STATIC;
import static ... | 37.91157 | 154 | 0.549779 |
a1cfb82b0977536673dcd8dd11c266368a9c2efd | 1,930 | package com.qa.ims.persistence.domain;
import java.math.BigDecimal;
public class Item {
private Long itemid;
private String itemName;
private BigDecimal itemPrice;
public Item(String itemName, BigDecimal itemPrice ) {
this.itemName = itemName;
this.itemPrice = itemPrice;
}
public Item(Long itemid, Str... | 22.97619 | 86 | 0.660104 |
2ceb1473058c05984352bce63ff7d1cb75248277 | 4,382 |
package eu.doppel_helix.jna.tlb.outlook9;
import com.sun.jna.platform.win32.COM.util.annotation.ComMethod;
import com.sun.jna.platform.win32.COM.util.annotation.ComInterface;
import com.sun.jna.platform.win32.COM.util.IDispatch;
import com.sun.jna.platform.win32.Variant.VARIANT;
/**
* <p>uuid({0006302C-0000-0000-C0... | 31.985401 | 128 | 0.61319 |
cec1dc1fa048d58ec1984e738f448c05a546ae82 | 1,054 | package io.quarkiverse.minio.client;
import javax.enterprise.inject.Instance;
import javax.inject.Inject;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;
import io.minio.MinioClient;
import io.quarkus.runtime.configuration.Configura... | 32.9375 | 84 | 0.745731 |
8fa16d5118a045cee4bbced9c05941fbf97f2edc | 3,647 | package com.yangzg.beans;
import org.junit.Test;
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.context.support.GenericApplicationContext;
import org.springframework.expression.spel.standard.Spe... | 45.024691 | 121 | 0.702769 |
eef7fd93318d267d10ae6a94df05b7f48921c564 | 729 | class TestExp {
public static void main(String[] args) {
A a;
a = new B();
System.out.println(a.fun(10, true, a));
}
}
class A {
int num;
boolean bool;
boolean[] bool2;
public int fun(int num, boolean x, A a) {
int num_aux;
A obj;
B obj2;
obj2 = new B();
num_aux = new boolean[3].length;
obj = n... | 14.294118 | 42 | 0.577503 |
5aa6529476c3e197e51f794bdc4c3137d0f56369 | 2,251 | package myTestCharacters;
public class TestCharacters {
//fields
private String sentence1;
private String sentence2;
//default constructor
public TestCharacters()
{
sentence1="";
sentence2="";
}
//to give the fields values when
//when the object is instanciated
//mutators(setters) and
... | 19.745614 | 78 | 0.598401 |
bdb7a4207001637ae98b78a4e413a73c9b028334 | 579 | package com.fib.core.event;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Component;
/**
* 事件发布
*
* @author fangyh
* @version 1.0.0
* @date 2021-06-04
*/
@Component
public class EventPublisher {
Appli... | 21.444444 | 75 | 0.787565 |
fa04a75554c7920310d68e003bad75287e79e352 | 4,271 | package com.puresoltechnologies.graphs.statemodel;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import java.util.HashSet;
import java.util.Set;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
public class StateModelVerfierTest {
private TestStateModel... | 39.915888 | 102 | 0.780613 |
ef441e963de4474020f96df6f4aa1ded378459bd | 7,660 | package com.github.iweinzierl.mpd.player;
import android.content.Context;
import android.widget.Toast;
import com.github.iweinzierl.mpd.R;
import com.github.iweinzierl.mpd.async.PlayerControlTask;
import com.github.iweinzierl.mpd.async.PlayerPlaySongTask;
import com.github.iweinzierl.mpd.async.PlayerVolumeControlTask... | 32.457627 | 105 | 0.635248 |
8e56f5374222186b167e6174079025078df860ea | 3,786 | /**
* Copyright (C) 2015 JianyingLi <lijy91@foxmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 30.288 | 84 | 0.636292 |
be3ec66ea352a95e77ac241d3cdec2e552d138d7 | 2,603 | package cn.edu.xctf.pm.wechatproject.dao;
import android.util.Log;
import org.litepal.crud.DataSupport;
import java.util.List;
import cn.edu.xctf.pm.wechatproject.db.User;
/**
* 数据库操作语句
* @Author pangmin
* @Date 2020/11/22 2:57
**/
public class SqlManager {
/**
* 通过用户名查找用户
* @param username 用户名... | 25.519608 | 88 | 0.537457 |
98f33c359957d6815184cff3fdf53f805b2aef54 | 3,633 | package com.stephapps.alternativewidgetforkeep;
import android.appwidget.AppWidgetManager;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.widget.RemoteViews;
import android.wi... | 30.024793 | 104 | 0.671346 |
c373c7b89f3137a984b0c9c1fab849728a2f456e | 3,071 | package org.anderes.web.security.rest;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.not;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.hamcrest.CoreMatchers.startsWith;
import static org.springframework.http.MediaType.APPLICATION_JSON_UTF8;
import st... | 42.068493 | 116 | 0.702703 |
31ae2b68c8abb444891c290fe1cb83acefbbcc6a | 132 | package relacionamentos_composicoes_herancas.escritorio;
public enum Especialidade {
Civel, Criminal, Financeiro, Empresarial;
}
| 18.857143 | 56 | 0.833333 |
4183ac94ac63b944c12a004246f639c39217066c | 4,273 | /*
* Copyright 2008-2009 LinkedIn, 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 agre... | 30.963768 | 98 | 0.62462 |
3d94d28084e26bdb383eba8a045963fb4ef64f10 | 5,097 | package eu.cosbi.qspcc.interfaces;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.function.BiFunction;
import eu.cosbi.qspcc.ast.AASTNode;
import eu.cosbi.qspcc.ast.Program;
import eu.cosbi.qspcc.exceptions.ListException;
i... | 37.755556 | 167 | 0.702963 |
20533b76ab1e471e0ce9b6e52d2f8c64be044ef5 | 10,494 | /**
* 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.608434 | 139 | 0.666762 |
b3fff9fe40f295d6e8531526c3a124e4082e8793 | 620 | package com.czfx.gulimall.seckill.dto;
import lombok.Data;
import java.math.BigDecimal;
/**
* 秒杀活动商品关联
*
* @author CZFx
* @email czfx2436@gmail.com
* @date 2021-07-29 21:10:01
*/
@Data
public class SeckillSkuRelationDTO {
/**
* id
*/
private Long id;
/**
* 活动id
*/
private Long promotionId;
/**
... | 12.156863 | 38 | 0.627419 |
334b3cb9e2c21cb1c7b1c543a2a152974593c471 | 2,489 | package im.bci.jb3.bot;
import im.bci.jb3.bouchot.data.Post;
import im.bci.jb3.bouchot.logic.Norloge;
import im.bci.jb3.bouchot.logic.Tribune;
import org.apache.commons.logging.LogFactory;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apach... | 35.056338 | 137 | 0.616312 |
13a9a1234ef924dd064649eff016af65135b71dc | 10,390 | /*
* 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 ... | 48.325581 | 643 | 0.671222 |
01572a53bee624bbf6e9f7857eeef4a8b78eb6f0 | 4,372 | package com.greenpepper.util;
import static com.greenpepper.util.CollectionUtil.joinAsString;
import static com.greenpepper.util.CollectionUtil.toArray;
import static com.greenpepper.util.URIUtil.*;
import junit.framework.TestCase;
import java.io.File;
import java.net.URI;
public class URIUtilTest extends TestCase
{... | 36.433333 | 139 | 0.67086 |
727cc6328a24e6620138e79f19c727d1322bf4b4 | 12,432 | /*
* 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.726257 | 108 | 0.658864 |
09e65b876c0bf5153d7e97ecd93cd3e482afd632 | 317 | package io.amecodelabs.ims.view.dashboardstage;
public interface PresenterDashBoard<T> {
void getStockProduct(String description, String year);
void getProducts();
void getNumberProviders();
void getNumberProducts();
void getNumberTransactions();
void getNumberUsers();
DashBoardView<T> getDashBoardView();
}
| 26.416667 | 55 | 0.794953 |
11cb04aef2643f3b67aa5d4344ab402b990f0afe | 2,612 | // @formatter:off
/**
*
* This file is part of streaming pool (http://www.streamingpool.org).
*
* Copyright (c) 2017-present, CERN. 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 ... | 29.022222 | 150 | 0.724349 |
70270810446a3d73d73a0b61f77dfcb7e81ebab2 | 2,455 | package org.mb;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.kohsuke.args4j.CmdLineException;
import org.kohsuke.args4j.CmdLineParser;
import org.kohsuke.args4j.Option;
import org.mb.http.MockingbirdHandler;
import org.mb.http.basic.HTTPServer;
import org.mb.http.basic.JettyServer... | 32.302632 | 133 | 0.595519 |
29f58274cbb612ad3fb1feae9c7d8171d57b70cd | 41,747 | package android.support.v4.media.session;
import android.app.PendingIntent;
import android.content.Context;
import android.net.Uri;
import android.os.Build.VERSION;
import android.os.Bundle;
import android.os.Handler;
import android.os.IBinder;
import android.os.IBinder.DeathRecipient;
import android.os.Looper;
import... | 30.055436 | 408 | 0.684552 |
1c772ddd04b128e282bd883c0653e9beb8384fba | 4,205 | /*
* Copyright (C) 2017-2019 UBS Limited
*
* 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 agree... | 33.91129 | 145 | 0.731986 |
f897fde13eebf3598eabac34c9f9a21c952ddf0a | 6,138 | package com.moparisthebest.jdbc.util;
import java.io.Closeable;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Calendar;
import java.util.Iterator;
import java.util.NoSuchElementException;
//IFJAVA8_START
import java.util.Spliterators;
import java.util.stre... | 32.305263 | 154 | 0.730694 |
0ab51d1fef844a6513a01395bddc008b781d8fb7 | 18,474 | /*
* Copyright 2017
* Ubiquitous Knowledge Processing (UKP) Lab
* Technische Universität Darmstadt
*
* 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... | 44.196172 | 128 | 0.674949 |
c86242a07f6a077d3a0259bebb8e6e907c4bbe62 | 2,360 | package core.managers;
import static org.lwjgl.system.MemoryUtil.*;
import static org.lwjgl.vulkan.VK10.*;
import org.lwjgl.vulkan.VkApplicationInfo;
/**
* <h5>Description:</h5>
* <p>This class contains informations about <b>JVEngine</b>.</p>
* @author Cezary Choduń
*/
public class EngineVersioning {
public st... | 34.202899 | 101 | 0.715254 |
66e4f397286a1d63a7c5fede8c3c886753fa5a48 | 187 | class test {
public static void main(String args[]) {
String s = "LOL";
// System.out.println((0/0));
boolean a = true;
System.out.println(a);
}
} | 20.777778 | 44 | 0.513369 |
0c868db382b7c153b3650f6f2dde9168828befa8 | 4,281 | /*
* 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 ... | 44.59375 | 140 | 0.694931 |
f8911699c80fe954a88f39ad803511dfac9b8469 | 1,724 | /*
Copyright [2020] [https://www.xiaonuo.vip]
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... | 27.365079 | 74 | 0.75232 |
9e8fa440fa8bf2ed1e08ad62148036b7f0bfc926 | 10,191 | package de.irgendwr;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.floreysoft.jmte.Engine;
import com.google.common.collect.ImmutableList;
import de.irgendwr.models.MessageModelData;
import de.irgendwr.models.StreamModelData;
import de.irgendwr.template.RawNoopRenderer;
import de.irgendwr.template.Tel... | 47.180556 | 175 | 0.665195 |
c672a4239122d2c0ab0d2be881f4c7d93ab0094e | 8,826 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.deviceupdate.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.... | 32.32967 | 119 | 0.69148 |
e20b152a3ce260ba00f2c5f48bef20f3bb39c67c | 13,406 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * 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... | 14.186243 | 813 | 0.806654 |
a2bb24e01730a43ebfc05eeeecd2aad6133a262b | 2,034 | package org.wikipedia.feed.continuereading;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.annotation.PluralsRes;
import android.view.View;
import org.wikipedia.R;
import org.wikipedia.feed.FeedViewCallback;
import org.wiki... | 35.684211 | 94 | 0.69469 |
b1db54f4ac499aa8b18456486286f8fe34796ccf | 2,287 | package ru.kgogolev.console;
import io.netty.buffer.ByteBuf;
import ru.kgogolev.FileSystem;
import ru.kgogolev.StringConstants;
import ru.kgogolev.StringUtil;
import java.io.BufferedReader;
import java.io.File;
import java.io.InputStreamReader;
public class ConsoleHandler {
private final FileSystem fileSystem;
... | 33.632353 | 111 | 0.592916 |
2b3d8bbfa038b7d7f660b936f6afcf2ab21e5c9e | 53 | package lang.reflect;
public class RelfectTest {
}
| 8.833333 | 26 | 0.754717 |
e33b6ad4c3369a1ad0609e9f757a88c1d17413b2 | 626 | package app.netlify.nmhillusion.pi_logger;
import org.junit.jupiter.api.Test;
/**
* date: 2022-02-12
* <p>
* created-by: nmhillusion
*/
public class LineNumberLogTest {
@Test
void testLineNumber() {
PiLoggerFactory.getLogConfig()
.setColoring(true)
.setDisplayLineN... | 20.866667 | 58 | 0.615016 |
5cccb79137b0c8a35b30715e0ab8212feef8f1a4 | 8,849 | /*
* Copyright 2017 Kaiserpfalz EDV-Service, Roland T. Lichti
*
* 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 b... | 41.15814 | 125 | 0.697819 |
98bf89ed00bed42c0875ec31d222d72df07b3c15 | 6,779 | /*
* Copyright 2020 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 ... | 53.801587 | 116 | 0.73949 |
38ad08989f086e9f69d70ca9d1c4b95088de884e | 2,896 | package biz.aQute.resolve.internal;
import static test.lib.Utils.*;
import java.io.*;
import java.util.*;
import junit.framework.*;
import org.apache.felix.resolver.*;
import org.osgi.framework.*;
import org.osgi.framework.namespace.*;
import org.osgi.resource.*;
import org.osgi.service.log.*;
import org.osgi.servi... | 36.2 | 109 | 0.610497 |
ba1cef184a7e4d917288084a328c7f2151d01bb8 | 940 | package org.springframework.data.jpa.domain.sample;
import java.io.Serializable;
import jakarta.persistence.Access;
import jakarta.persistence.AccessType;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.IdClass;
@Entity
@IdClass(SampleWithIdClass.SampleWithIdClassPK.class... | 20 | 75 | 0.741489 |
fd886d6419799130f45299ed7b1680f587b01e34 | 1,026 | package com.iskinfor.servicedata.pojo;
/**
* 读书笔记
* @author Administrator
*
*/
public class ReadingNotes {
private String proId; //商品ID
private String noteData;//做笔记的日期
private int notePage;//那一夜做笔记
private String noteContent;//做笔记的内容
private int pgs;//总笔记条数
private Product product;//做笔记的产品
public String get... | 20.117647 | 49 | 0.714425 |
bb90659dbfb62b3d105779688f3c165484f928ab | 394 | // automatically generated by the FlatBuffers compiler, do not modify
package com.nvidia.spark.rapids.format;
public final class CodecType {
private CodecType() { }
/**
* no compression codec was used on the data
*/
public static final byte UNCOMPRESSED = 0;
public static final String[] names = { "UNCO... | 23.176471 | 69 | 0.703046 |
ac9511e9b18893e1a8eadcc122f629b79ce4c41e | 714 | package us.analytiq.knime.qvx.reader;
import org.knime.core.node.InvalidSettingsException;
import org.knime.core.node.NodeSettingsRO;
import org.knime.core.node.NodeSettingsWO;
public class QvxReaderNodeSettings {
static final String CFGKEY_FILE_NAME = "fileName";
private String fileName;
QvxReaderNodeSetting... | 22.3125 | 81 | 0.780112 |
197c60fbb6755046b7b809542cf0009b8f79d7e7 | 549 | package com.marshmellow.service;
import java.util.List;
import com.marshmellow.example.VO.Criteria;
import com.marshmellow.example.VO.ReplyVO;
public interface ReplyService {
public void addReply(ReplyVO reply) throws Exception;
public List<ReplyVO> listReply(Integer bNo) throws Exception;
public void modifyRep... | 26.142857 | 80 | 0.803279 |
bdd927495bca68b0626098723ff935b038001d94 | 9,822 | /*===========================================================================
Copyright (C) 2012 by the Okapi Framework contributors
-----------------------------------------------------------------------------
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in com... | 31.280255 | 109 | 0.665038 |
5b7d750839e920a0712881b1e0b996c8aba59fd7 | 281 | package com.example.common.context;
import com.example.common.utils.SpringUtil;
/**
* 获取当前登录用户上下文 Holder
*
* @author Leo
* @date 2020.02.19
*/
public class LoginContextHolder {
public static LoginContext getContext() {
return SpringUtil.getBean(LoginContext.class);
}
}
| 17.5625 | 48 | 0.740214 |
93500b72ef4208be3cc094e778c4ed37e4f0afa2 | 2,488 | package bg.sofia.uni.fmi.mjt.todoist.command.handlers;
import bg.sofia.uni.fmi.mjt.todoist.command.Command;
import bg.sofia.uni.fmi.mjt.todoist.command.CommandHandler;
import bg.sofia.uni.fmi.mjt.todoist.exceptions.WrongCreatorException;
import org.junit.jupiter.api.Test;
import java.util.List;
import static org.jun... | 45.236364 | 149 | 0.672026 |
7f8f020d1263a804277626c5251a2ee0e949813d | 250 | package com.killsystem.vo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ItemQuery {
String name;
String code;
}
| 17.857143 | 37 | 0.772 |
9758f99563c4a4c41e323aa27d2477882f988977 | 155 | package javase.util.data.format.xml.jaxp.throwable;
/**
* @see org.xml.sax
* @see org.xml.sax.SAXParseException
*/
public class SAXParseException {
}
| 15.5 | 51 | 0.722581 |
59713a77eadd75c1ba0e8caa1235fd18da895fda | 549 | package com.adou.syds.utils;
import java.io.File;
import java.io.IOException;
import org.junit.Test;
public class DeleteFile {
/**
* 删除单个文件
* @param sPath 被删除文件的文件名
* @return 单个文件删除成功返回true,否则返回false
* @throws IOException
*/
public static boolean deleteFile(String filePath) throws IOExcepti... | 19.607143 | 73 | 0.6102 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.