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 |
|---|---|---|---|---|---|
ca468cc71b64c59f785380ef4661edab07fd6eac | 8,493 | package com.grainoil.system.service.impl;
import com.grainoil.common.core.domain.BaseMap;
import com.grainoil.common.core.domain.CurrentUser;
import com.grainoil.common.core.domain.R;
import com.grainoil.common.core.domain.ResponseResult;
import com.grainoil.common.exception.BusinessException;
import com.grainoil.comm... | 36.926087 | 120 | 0.621806 |
54d675685fce854f8f702e9379d46867c416ff3d | 1,421 |
package week12;
public class ProgrammingBooks {
public static void main(String[] args){
String[] books = new String[5];
books[0] = "Peral Cookbook";
books[1] = "PHP Cookbook";
books[2] = "Python in a Nutshell";
books[3] = "Javascript: The Definitive ... | 36.435897 | 88 | 0.612245 |
7f513140751389ad5fd4c941499e863952b1d961 | 1,298 | package com.fabrikam.dronedelivery.ingestion.models;
import java.util.Date;
public class ExternalRescheduledDelivery {
private String deliveryId;
private String pickupLocation;
private String dropoffLocation;
private String deadline;
private Date pickupTime;
public String getDeliveryId() {
return this.deliv... | 21.633333 | 103 | 0.748074 |
74fba2dfa5c6f08539710fbfa96d5d7b270d8588 | 740 | package com.maxqiu.mall.ware.service;
import java.util.Map;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.maxqiu.mall.common.Query;
import com.maxqiu.mall.request.PageRequest;
import c... | 29.6 | 96 | 0.791892 |
b2838afb0391ce71a8e3329a5182bf83180d70f0 | 6,656 | /*
Copyright 2016-2017 Eugenio Gianniti
Copyright 2016 Jacopo Rigoli
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... | 35.593583 | 132 | 0.732422 |
3dca1fa542614765a7ca9b3949678f43453b9c20 | 802 | package test1;
public class Algorithm200 {
//深度优先搜索
public int numIslands(char[][] grid) {
if (grid==null||grid.length==0)return 0;
int rlen=grid.length,clen=grid[0].length;
int res=0;
for (int i=0;i<rlen;i++){
for (int j=0;j<clen;j++){
if (grid[i][j]... | 23.588235 | 72 | 0.431421 |
8c55a4879b484278f77cb7cc69486250940d0c26 | 3,575 | package uk.gov.hmcts.ccd.definition.store.domain.validation.eventcasefield;
import com.google.common.base.Strings;
import org.springframework.stereotype.Component;
import uk.gov.hmcts.ccd.definition.store.domain.displaycontextparameter.DisplayContextParameter;
import uk.gov.hmcts.ccd.definition.store.domain.displaycon... | 45.833333 | 124 | 0.758601 |
7da0b8cd8fcd63f90841bba9687aa985131bfc81 | 1,898 | package com.example.houjie.studyapk.studyview.webview;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.Prog... | 33.298246 | 89 | 0.633825 |
bd7dc5512544f249b899b7301575d9a6d3190026 | 488 | package ir;
import ast.type.Type;
import ir.TempVar.TempSet;
public class TempAllocator {
public int MAX_LOCALS = 65536;
public TempVar temps[];
public int next;
public TempAllocator() {
temps = new TempVar[MAX_LOCALS];
next = 0;
}
public TempVar allocate(Type t, String label, TempSet s) {
TempVar newTe... | 18.074074 | 59 | 0.692623 |
2c8f14f7e0eb72d7c88d63b4c5f088bc29630263 | 605 | package org.springframework.cloud.service.relational;
import org.junit.After;
import org.junit.Before;
/**
*
* @author Ramnivas Laddad
*
*/
public class MysqlServiceCreatorWithMysqlDriverTest extends MysqlServiceCreatorTest {
private static final String TEST_MYSQL_DRIVER = "com.mysql.example.Driver";
@Before
... | 20.166667 | 85 | 0.747107 |
0a1d9d7100c59252375e3cf45b31ba11b6f12fbd | 3,520 | /*
* 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 ... | 25.882353 | 105 | 0.651136 |
dcb42295b3abc3044ab8e19e38dfbdb0c64e63ae | 1,421 | package org.lionsoul.dclock.component;
import java.awt.Color;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics;
import javax.swing.JPanel;
import org.lionsoul.dclock.util.IConstants;
/**
* process jpanel.
*
* @author chenxin <chenxin619315@gmail.com>
*/
public class ProcessJPanel ex... | 22.203125 | 66 | 0.696692 |
1351ae8f0c0825989b1b1fc376c70099b05cb9a0 | 1,060 | package com.alexzh.temperatureconverter.di;
import android.app.Application;
import com.alexzh.temperatureconverter.di.scope.TemperatureConverterActivityModule;
import com.alexzh.temperatureconverter.di.scope.TemperatureConverterComponent;
public class TemperatureConverterApp extends Application {
private Applica... | 31.176471 | 95 | 0.754717 |
5718e9d4170b400cd82bd1c571441b1149864336 | 3,146 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2019... | 25.370968 | 123 | 0.569612 |
d01c55ec4b3a29945439de4645b9019664152535 | 12,412 | /**
* Copyright (c) 2005, Regents of the University of California
* 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 notic... | 41.791246 | 121 | 0.659523 |
53343b08255e11b0e14e487e23aaaa1203d98773 | 389 | package com.routon.smartcampus.gradetrack;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.HorizontalScrollView;
public class SlowScrollView extends HorizontalScrollView{
public SlowScrollView(Context context, AttributeSet attrs) {
super(context, attrs);
}
@Override
pu... | 20.473684 | 61 | 0.794344 |
78b74901af9cbf099d3ea7c8cf69b6db842f2da1 | 3,191 | /**
* Copyright (C) 2013 Jiji Sasidharan (http://www.programmingforliving.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
*... | 36.261364 | 88 | 0.692259 |
d997e9a0e655366c4c4751a69ea554ecc6b2f445 | 1,867 | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.1
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ------------------------------... | 31.116667 | 119 | 0.681843 |
5e8772acf7e6fcef4ac741722f2fd234450951a8 | 10,448 | //
// Navinha is distributed under the FreeBSD License
//
// Copyright (c) 2016, Carlos Rafael Gimenes das Neves
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of sou... | 33.063291 | 103 | 0.673813 |
8858e74627053268d4e6592a3409efb024785180 | 56,673 | /**
* 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... | 46.415233 | 145 | 0.680677 |
58be2a4ee0e084b68e6f79ceedd50a0f75af94cb | 769 | package product.entities;
public class ImportedProduct extends Product {
private double customFee;
public ImportedProduct(double customFee) {
this.customFee = customFee;
}
public ImportedProduct(String name, double price, double customFee) {
super(name, price);
this.customFee ... | 23.30303 | 106 | 0.617685 |
de64099900a9fc706bec138953c991bba030e0a3 | 4,975 | package org.aion.avm.core;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.aion.avm.core.util.Helpers;
import org.aion.kernel.BloomFilter;
import org.junit.Test;
public class BloomFilterTest {
private static final... | 29.96988 | 110 | 0.648241 |
aa2abe1bea94636ec79f7221860d2b44365082df | 586 | package fi.jubic.quanta.models;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import fi.jubic.easyvalue.EasyValue;
import java.util.List;
@EasyValue
@JsonDeserialize(builder = SeriesResultData.Builder.class)
public abstract class SeriesResultData {
public abstract SeriesResult getSeriesResult... | 23.44 | 76 | 0.764505 |
def0b293110b126793852c444f08c61f65e8d334 | 604 | package cn.com.ut.pojo;
import java.io.Serializable;
import lombok.Data;
@Data
public class GoodsQueryRespVo implements Serializable {
private String store_id;
private String goods_name;
private String store_state;
private String goods_price;
private String goods_id;
private String goods_desc;
private ... | 14.380952 | 55 | 0.793046 |
f8de668eff016f63b34b88e449972d9693aa4523 | 647 | package qualify.test.unit;
import qualify.TestCase;
import qualify.doc.DocTreeNode;
import qualify.tools.TestToolStrings;
public class UT_DocTreeNode extends TestCase {
@Override
public void run() {
setRequirementTarget("Export");
TestToolStrings strings = new TestToolStrings(this);
DocTreeNode n1 = new D... | 21.566667 | 54 | 0.724884 |
b1bfbd546955248079577d56d7491638dd8c903d | 14,682 | package com.andbase.im.activity;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import org.jivesoftware.smack.Chat;
import org.jivesoftware.smack.packet.Message;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.In... | 28.289017 | 146 | 0.639014 |
cc7f171c7715f3bce09531dcfeee5114224896a4 | 734 |
package com.nsb.xmatrix.fragment.trending;
import com.nsb.xmatrix.R;
import com.nsb.xmatrix.core.BaseFragment;
import com.xuexiang.xpage.annotation.Page;
import com.xuexiang.xpage.enums.CoreAnim;
import com.xuexiang.xui.widget.actionbar.TitleBar;
/**
*
* @since 2019-10-30 00:19
*/
@Page(anim = CoreAnim.none)
pub... | 16.681818 | 52 | 0.629428 |
b3f9b05b4d0a5da7024ebfd56bdca691cc68f0d2 | 1,084 | // Chromosome.java
// From Classic Computer Science Problems in Java Chapter 5
// Copyright 2020 David Kopec
//
// 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/li... | 29.297297 | 84 | 0.74631 |
62ebba956f841abd48fbb41e27934d7b9021b4b2 | 21,568 | /*
* Copyright (c) 2018 Abex
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and ... | 26.96 | 114 | 0.628338 |
2f5c8b2bde355b7fcc710e40610492028aebe018 | 4,980 | /*
* Java Payloads trust manager loader class for Metasploit.
*
* Copyright (c) 2011, Michael 'mihi' Schierl
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistri... | 39.52381 | 84 | 0.671687 |
2430eeb8437ebce77123caa0312b85c1d4c2116d | 732 | package com.capdevon.anim.fsm;
/**
* StateMachineBehaviour is a component that can be added to an AnimatorState.
*
* @author capdevon
*/
public interface StateMachineBehaviour {
/**
* Called on the first Update frame when a state machine evaluate this state.
* @param animator
*/
public void... | 24.4 | 79 | 0.698087 |
0e321fca956f99920d44ffa6016851340eb0af5a | 2,031 | package com.stackroute.quizify.recommendationservice.serviceImpl;
import com.stackroute.quizify.recommendationservice.domain.GameIsATopic;
import com.stackroute.quizify.recommendationservice.domain.Games;
import com.stackroute.quizify.recommendationservice.repository.GamesRepository;
import com.stackroute.quizify.reco... | 30.313433 | 83 | 0.74643 |
da520f5af278d341d6256f01d428048719558e3c | 660 | package com.google.firebase.example.mlkit;
import android.support.v7.app.AppCompatActivity;
import com.google.firebase.ml.vision.cloud.FirebaseVisionCloudDetectorOptions;
public class MainActivity extends AppCompatActivity {
public void buildCloudVisionOptions() {
// [START ml_build_cloud_vision_options... | 33 | 86 | 0.692424 |
6d15a9317356b00c583d31df8fd3d76c30ca4fd1 | 1,472 | /*
* 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 ua.metlife.claims.simplecs.entity.crl;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
import jav... | 21.970149 | 79 | 0.652174 |
de8f400d01d991c378eddd5a535802e512bd8441 | 2,140 | package com.test;
import com.mongodb.MongoClient;
import com.mongodb.client.*;
import com.mongodb.client.model.Filters;
import com.mongodb.client.result.DeleteResult;
import org.apache.avro.generic.GenericData;
import org.bson.Document;
import org.bson.conversions.Bson;
import java.util.ArrayList;
import java.util.Li... | 31.014493 | 89 | 0.556075 |
4d5d14bee59bd21d792157e30eff828e8bba85cb | 2,990 | /*******************************************************************************
* Copyright (c) 2000, 2015 IBM Corporation and others.
* 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... | 36.024096 | 162 | 0.637124 |
b8266762f541be8627c3708913d0e1cff4aa8ef4 | 7,920 | package com.release;
import android.app.Activity;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Handler;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.T... | 38.076923 | 173 | 0.621086 |
b8243f056d41bd1e64cfdd0735797834548730e6 | 3,041 | package com.hello.controller;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web... | 33.054348 | 120 | 0.635646 |
af93f9865a7d1389f4b23943121ad360b8844e3b | 2,991 | // Copyright (c) 2003-2014, Jodd Team (jodd.org). All Rights Reserved.
package jodd.bean;
import jodd.introspector.ClassDescriptor;
import jodd.introspector.ClassIntrospector;
import jodd.introspector.MethodDescriptor;
import jodd.introspector.PropertyDescriptor;
import jodd.util.ArraysUtil;
import java.util.Map;
im... | 22.832061 | 89 | 0.667001 |
ecdb7d1f2f349c28300c57ba00360c1f91cead4e | 5,709 | package me.nunum.whereami.facade;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import me.nunum.whereami.controller.TrainingController;
import me.nunum.whereami.framework.response.TheMediaType;
import me.nunum.whereami.model.Localiza... | 33.19186 | 129 | 0.668068 |
5d4d2d20391145728b5c2e6445afd069ca154b91 | 75 | package com.github.aparsons.fink.controller;
public interface Dialog {
}
| 12.5 | 44 | 0.786667 |
89f1fadb7908e0a940289f2a8a08d15f0b6e068d | 4,192 | package Absorber.actions;
import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.actions.AbstractGameAction.ActionType;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.cards.AbstractCard.CardType;
import com.megacrit.cardcrawl.core.Settings;
import com.me... | 58.222222 | 193 | 0.647185 |
2b42abc203ab2ee5eb3e0cc91bc900f0e0260c08 | 84 | package liquibase.sqlgenerator;
public abstract class SqlExecutionTester {
}
| 14 | 43 | 0.77381 |
23f11e21d09adb337ea7c366558c6f352ea7532b | 835 | package com.imooc.service.impl;
import com.imooc.model.dataobject.SellerInfo;
import lombok.extern.slf4j.Slf4j;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
im... | 26.09375 | 73 | 0.771257 |
e06993c45e15506dd8e02203f4b50dd4ac3e58ef | 2,635 |
package org.neochess.core;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class Match {
private final Board board;
private final List<Move> moves;
public Match() {
board = new Board();
board.setInitialPosition();
moves = new ArrayList<>()... | 25.833333 | 105 | 0.522201 |
38cd24e612904fb3089b711c546f5f160f31ad75 | 527 | package com.tifa.framework.web.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tifa.framework.web.pojo.Rating;
import com.tifa.framework.web.service.RatingService;
import com.tifa.framework.web.mapper.RatingMapper;
import org.springframework.stereotype.Service;
/**
* @auth... | 22.913043 | 72 | 0.804554 |
4486d85e89051296b3b462058f90b894135139b5 | 1,849 | /*
* Copyright 2017 Mark Borner
*
* 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... | 29.822581 | 89 | 0.695511 |
3d37f8932df77171bd96881e62ee79b46264da1e | 1,897 | package com.example.anass.audiorecorder.Fragments;
import android.app.Fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.ImageView;
import com... | 28.313433 | 103 | 0.725356 |
be4705c4dc66ded3a4ff1ca568e251eac71c5a66 | 1,981 | package algorithem.problem19;
import algorithem.binarytree.BinaryNode;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class BinaryTreeDepthTest
{
private BinaryTreeDepth binaryTreeDepth;
@Before
public void setUp()
{
binaryTreeDepth = new BinaryTreeDepth()... | 23.583333 | 84 | 0.746088 |
458b0653dddb41ce0bb984646a4d9a5d1980e715 | 4,028 | /*
* Copyright 2013-2016 consulo.io
*
* 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 ... | 29.40146 | 159 | 0.76291 |
7455c80abe7777a718ce416183128b84cda13acd | 1,997 | package servlet;
import util.DbConn;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.OutputStream;
import ja... | 32.209677 | 122 | 0.676014 |
e5b644299dfc45084383086749446c3eb4a08bcf | 1,697 | package org.ooc.frontend.model;
import java.io.IOException;
import org.ooc.frontend.Visitor;
import org.ooc.frontend.model.tokens.Token;
import org.ooc.middle.hobgoblins.Resolver;
public class FuncType extends Type {
private FunctionDecl decl;
private FuncType(Token startToken) {
super("Func", startToken);
}... | 22.038961 | 97 | 0.711844 |
36ee8f1fde0b2b754bfd356a1a234699cc93948f | 734 | /*
* This file is part of krei. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution and at http://creativecommons.org/publicdomain/zero/1.0/. No part of krei,
* including this file, may be copied, modified, propagated, or distributed except according to the ... | 26.214286 | 115 | 0.69891 |
9912c6ff036587dcb4ea17cfe5ee06adc2f4b9d1 | 8,887 | package net.simonvt.menudrawer;
import android.app.Activity;
import android.content.Context;
import android.graphics.Canvas;
import android.os.Parcelable;
import android.util.AttributeSet;
public abstract class StaticDrawer extends MenuDrawer {
private Position mPosition;
StaticDrawer(Activity activity, int... | 31.967626 | 117 | 0.573309 |
74e29ffb2bacbe2600f072387e0c809725d37923 | 2,489 | /*
* Project Sc2gears
*
* Copyright (c) 2010 Andras Belicza <iczaaa@gmail.com>
*
* This software is the property of Andras Belicza.
* Copying, modifying, distributing, refactoring without the authors permission
* is prohibited and protected by Law.
*/
package hu.belicza.andras.sc2gears.services.plugi... | 28.94186 | 136 | 0.734431 |
2f60d33c0d0e84e0841a27063a4c76ab3261d386 | 11,063 | /*
* This file is part of Nucleus, licensed under the MIT License (MIT). See the LICENSE.txt file
* at the root of this project for more details.
*/
package io.github.nucleuspowered.nucleus.core.core.commands.nucleus;
import io.github.nucleuspowered.nucleus.core.Util;
import io.github.nucleuspowered.nucleus.core.co... | 48.1 | 150 | 0.653982 |
530861ae8b41153331d0dd76b6272c43ab1b640b | 3,787 | package ec.edu.ups.controlador;
import ec.edu.ups.modelo.Producto;
import ec.edu.ups.dao.ProductoDAO;
import ec.edu.ups.idao.IProductoDAO;
import java.util.ArrayList;
import java.util.List;
import javax.swing.table.DefaultTableModel;
public class ControladorProducto {
private Producto producto;
private IPro... | 24.121019 | 126 | 0.607869 |
34624b3b3bf5db312a5eefafad2978f1af9e3b43 | 2,946 | /*
* Copyright (c) 2005-2014, 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... | 36.825 | 111 | 0.720978 |
dce414f303f945d40892a1a2f8e9ba5b1e2dde14 | 103 | package com.xy.simplewandroid.di.module;
import dagger.Module;
@Module
class MainActivityModule {
}
| 11.444444 | 40 | 0.786408 |
c78def521d04dcef25f9f85461bcb7f95a1518f5 | 6,393 | /*
* ========================LICENSE_START=================================
* pgSqlBlocks
* %
* Copyright (C) 2017 "Technology" 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
... | 42.62 | 102 | 0.716096 |
037bb95e3d6c923dc6661d8bc56c736fad137323 | 1,323 | /* Arquivo gerado automaticamente */
package br.ufsm.viagem_gc;
import br.ufsm.gerador_cruds2.*;
import java.sql.Date;
public class ViagemPrincipal {
public static void main(String[] args) {
InputOutputTela tela = new InputOutputTela<ViagemModelo>("Viagem");
ViagemExemplo exemplo = new ViagemExemplo(tela);
... | 25.442308 | 70 | 0.519274 |
c488485ac0c94ac1180272ee4e2ce51b7f5e5e1e | 6,083 | package org.entcore.archive.controllers;
import fr.wseduc.bus.BusAddress;
import fr.wseduc.rs.Get;
import fr.wseduc.rs.Post;
import fr.wseduc.security.ActionType;
import fr.wseduc.security.SecuredAction;
import fr.wseduc.webutils.I18n;
import fr.wseduc.webutils.http.BaseController;
import fr.wseduc.webutils.http.Rende... | 42.243056 | 129 | 0.60069 |
aa77053d79a9cd9b061f5820f24d20d61ed15721 | 945 | package cn.lcy.answer.vo;
import java.util.ArrayList;
import java.util.List;
/**
* @author YueHub <lcy.dev@foxmail.com>
* @github https://github.com/YueHub
*/
public class KnowledgeGraphVO implements java.io.Serializable {
/**
* default serial version ID
*/
private static final long serialVersio... | 27 | 114 | 0.699471 |
88b540456bf2fcbad280cad6ede09a1183587d47 | 1,699 | package com.interpreter.math.operators;
import com.interpreter.math.MathStatement;
import com.interpreter.math.MathValue;
import com.interpreter.math.Operators;
import com.interpreter.math.operations.MathException;
import org.junit.Test;
import java.util.LinkedList;
import static org.junit.jupiter.api.Assertions.ass... | 33.98 | 106 | 0.705709 |
6532d6b149bee180c97328cf47aa3c043af1e034 | 6,108 | package it.nicolabrogelli.aviscerrtoguidi.fragment;
import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Vie... | 32.83871 | 92 | 0.642109 |
88509ecf8308aec5a8bfdbc73e3feea3c24223e8 | 1,036 | package leetcode.problems;
/** 779. K-th Symbol in Grammar
* We build a table of n rows (1-indexed). We start by writing 0 in the 1st row. Now in every subsequent row, we look at the previous row and replace each occurrence of 0 with 01, and each occurrence of 1 with 10.
*
* For example, for n = 3, the 1st row ... | 25.268293 | 213 | 0.581081 |
8d95775e458cda8f9f06e863e9e8dbf85bed7e58 | 7,011 | package com.bdxh.account.entity;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
@Table(name = "t_account")
public class Account implements Serializable {
private static final long serialVersionUID = 230235715694323... | 17.615578 | 72 | 0.52332 |
86210454089dca7158ae924ebf5d4f5b86c0469d | 3,810 | // Copyright 2015-2021 Swim 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 ... | 29.083969 | 94 | 0.669554 |
fc6a78b2cd2257f4f63fc0ddb21feba2cf5bb9cf | 783 | /**
* Welcome to https://waylau.com
*/
package com.waylau.lite.exception;
/**
* Lite LiteRuntimeException.
*
* @since 1.0.0 2018年8月18日
* @author <a href="https://waylau.com">Way Lau</a>
*/
public class LiteRuntimeException extends RuntimeException {
private static final long serialVersionUID = 1L;
public L... | 21.162162 | 91 | 0.739464 |
a4982ba1b51128452e33f34370deab8652c9548b | 2,219 | package com.virtuslab.gitmachete.frontend.actions.toolbar;
import static com.virtuslab.gitmachete.frontend.resourcebundles.GitMacheteBundle.getString;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.progress.ProgressIndicator;
import com.intellij.openapi.progress.Task;
import git4i... | 32.632353 | 125 | 0.760252 |
2cb904208992147d67e6e79c66909d370373f081 | 4,733 | package com.hiveelpay.dal.dao.model;
import java.io.Serializable;
import java.util.Date;
public class MchInfo implements Serializable {
/**
* 商户ID
*
* @mbggenerated
*/
private String mchId;
/**
* 名称
*
* @mbggenerated
*/
private String name;
/**
* 类型
... | 25.863388 | 131 | 0.54363 |
28ef5ddd61e9e2a000622a3140c990206d8c11ae | 984 | package com.morethanheroic.swords.tavern.service.chat.transformer;
import com.morethanheroic.definition.transformer.DefinitionTransformer;
import com.morethanheroic.swords.tavern.domain.chat.ChatEntry;
import com.morethanheroic.swords.tavern.repository.dao.ChatDatabaseEntry;
import com.morethanheroic.swords.user.servi... | 39.36 | 108 | 0.777439 |
c4284f719f856b42650c955b105ca34840a159ae | 1,899 | package com.hht.brightness;
import com.hht.brightness.i.ChangeListener;
import com.hht.brightness.strategy.change.IBrightnessChange;
/**
* @author Realmo
* @version 1.0.0
* @name OEM_WhiteBoard
* @email momo.weiye@gmail.com
* @time 2018/9/10 9:18
* @describe
*/
public interface IBrightness {
/**
* 默... | 19.377551 | 83 | 0.624539 |
02f37dd83293885f064ea68bd42c07255cc95761 | 8,404 | /*
* Copyright 2013 S. Webber
*
* 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... | 39.455399 | 161 | 0.684198 |
cb968764e881541f2f575e5fdd5d114af13a7b6e | 3,771 | package tw.tcnr21.m1603;
import android.app.Activity;
import android.location.Address;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.util.Log;
import android.widget.ListView;
import android.widget.SimpleAdapter;
import android.widget.TextView;
import org.jso... | 38.876289 | 155 | 0.603023 |
ead910341ea9f49280f74837e9fc49e3feb4a45e | 1,314 | import java.util.*;
public class DeboardEvent implements Event {
public final Passenger p; public final Train t; public final Station s;
public DeboardEvent(Passenger p, Train t, Station s) {
this.p = p; this.t = t; this.s = s;
}
public boolean equals(Object o) {
if (o instanceof DeboardEvent e) {
... | 29.863636 | 83 | 0.578387 |
2faca30de31e0c6c23469710dc3b6953a1dbbffa | 10,786 | package com.shaoyue.weizhegou.module.dhgl.dialog;
import android.app.Dialog;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.DialogFragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.wid... | 35.715232 | 118 | 0.577601 |
1ded071c75824b4a14333de1b0429971894ade76 | 1,346 | package hello;
/**
* 父类的初始化 <clinit>();
* 1. 父类的静态类变量 static class variables
* 2. 父类的静态代码块 static {}
* 3. 1和2,按代码从上到下顺序执行
* <p>
* 父类的实例化方法 <init>();
* 1. super(); 调用父类的 <init>() 方法
* 2. 父类的非静态实例变量 non-static instance variables
* 3. 父类的非静态代码块 non-static {}
* 4. 2和3,按代码从上到下顺序执行
* 4. 父类的构造器最后执行
* <p>
* 非静态方法... | 20.089552 | 51 | 0.56315 |
8f7edb9d9845cf892a0e445d6c108b95f797c8a4 | 4,543 | //@@author stevenwjy
package tagline.logic.parser.contact;
import static java.util.Objects.requireNonNull;
import tagline.commons.core.index.Index;
import tagline.commons.util.StringUtil;
import tagline.logic.parser.exceptions.ParseException;
import tagline.model.contact.Address;
import tagline.model.contact.ContactI... | 35.771654 | 114 | 0.675545 |
4f759913ab9c0fa6421c8fa6cefffd56c1415db6 | 604 | package bill_pugh_apporoach;
// Bill Pughs approach to create singleton in Java
// This is standard technique to create the Singletons in Java
public class Singleton {
// an instance attribute
private int data = 0;
Singleton() {}
public static class SingletonHelper {
// Nested class is referenced after th... | 20.827586 | 67 | 0.733444 |
78ca14dc406eaf388309286955b2e6e581e67f70 | 15,013 | /**
* 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.942553 | 144 | 0.642177 |
4b10421bdcb5941830f16b40db2694f4154dd08a | 2,534 | package com.bluejay.server.utils;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;
import java.io.IOException;
public class JsonObject {
private ObjectNode objectNode;
public JsonObject() {
objectNode = new ObjectMapper().createObjectNode();
... | 25.34 | 77 | 0.630624 |
66fd6c6c756455174f388d5f081d80a32da84e2e | 340 | package com.droidquest.materials;
import java.awt.Color;
import com.droidquest.items.Item;
public class BlueWall extends Material {
public BlueWall() {
super(new Color(0, 0, 255), false, true);
}
public boolean Passable(Item item) {
return item.getClass().toString().endsWith("Sentry3") |... | 21.25 | 74 | 0.670588 |
82fdbe5b169f767f0a23782761f6c0c412d42211 | 1,037 | //@@author majunting
package seedu.address.logic.commands;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static seedu.address.testutil.TypicalPersons.getTypicalAddressBook;
import org.junit.Test;
import seedu.address.model.Model;
import seedu.address.model.ModelManager... | 29.628571 | 85 | 0.738669 |
205f51a0554fb7e37e95a6f64c4b8f7a2dfab488 | 6,378 | /*
* JLibFM
*
* Copyright (c) 2017, Jinbo Chen(gaterslebenchen@gmail.com)
* 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 copyrigh... | 33.046632 | 146 | 0.700847 |
ee4823b2250543b23e6242945093264a7a56e4b0 | 2,703 | package uk.gov.hmcts.reform.iacasenotificationsapi.domain.personalisation.legalrepresentative;
import static java.util.Objects.requireNonNull;
import static uk.gov.hmcts.reform.iacasenotificationsapi.domain.entities.AsylumCaseDefinition.*;
import com.google.common.collect.ImmutableMap;
import java.util.Map;
import or... | 47.421053 | 132 | 0.764706 |
d04a236153c0ea9372c92cf92ff22afd12183345 | 772 | // Copyright (c) 2003-2014, Jodd Team (jodd.org). All Rights Reserved.
package jodd.madvoc.action;
import jodd.madvoc.meta.Action;
import jodd.madvoc.meta.MadvocAction;
import jodd.madvoc.result.RawData;
import jodd.util.MimeTypes;
@MadvocAction
public class RawResultAction {
public static final byte[] SMALLEST_GI... | 24.903226 | 70 | 0.709845 |
999b66e4f374e010c432ee2e22c7811a41a5cfc2 | 3,352 | package com.iceberg.entity;
import java.util.List;
public class UserInfo {
private Integer id;
private String username;
private String password;
private String realname;
private Integer roleid; //
private String rolename;
private String groupid;
private String iconUrl; // icon path
private String s... | 20.691358 | 100 | 0.64469 |
3687f2f827469dcffe0dc463800b730db60608ce | 1,698 | package botenanna.behaviortree.absolute;
import botenanna.behaviortree.Node;
import botenanna.behaviortree.builder.BehaviourTreeChildException;
/** An Absolute Node is a node with a fixed amount of child nodes. */
public abstract class Absolute implements Node {
private int currentChildCount;
private Node[] ... | 42.45 | 178 | 0.688457 |
b312dda3a58840d5b397dd5ac9ec72c960e94abf | 604 | package com.apptech.base;
import com.apptech.base.config.AppClientConfig;
import com.apptech.base.config.RedisClientConfig;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.dropwizard.Configuration;
import javax.validation.constraints.NotNull;
public class FrameConfiguration extends Configuration {
... | 22.37037 | 55 | 0.763245 |
4ac071644d2ff795195713289f1484c14f8d697f | 3,233 | // Copyright (C) 2017 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | 35.922222 | 94 | 0.701516 |
e941d27faf23d8c437113759ee5255af93217832 | 7,393 | package com.xiaoaiai.PagesBeans.FindBeans;
import com.lazy.annotations.Android;
import com.lazy.annotations.Description;
import com.lazy.bean.BaseBean;
import com.lazy.controls.Button;
import com.lazy.controls.EditText;
import com.lazy.controls.ImageView;
import com.lazy.controls.TextView;
import macaca.client.Macac... | 35.204762 | 188 | 0.720276 |
f74dc5dff6fb4b44d27b6b44ab8dde489628226f | 7,306 | /*
* The MIT License (MIT)
*
* Copyright (c) 2014-2019 Yegor Bugayenko
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
*... | 33.360731 | 80 | 0.58144 |
8874b28590e39e9194c5553f5c81da7cbfe5456e | 3,603 | package com.surtados.outbreak.Screens.GiveItemCharacter;
import com.surtados.outbreak.Core.Sistema;
import com.surtados.outbreak.Models.Personagem;
import com.surtados.outbreak.components.TeamBox;
import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initi... | 34.980583 | 230 | 0.606994 |
60d54c5abd3b73b509d21f322205486851339e88 | 1,205 | /*
* Copyright (C) 2015, GIAYBAC
*
* Released under the MIT license
*/
package com.giaybac.traprange.entity;
/**
*
* @author THO Q LUONG Jul 16, 2014 11:19:34 AM
*/
public class TableCell {
//--------------------------------------------------------------------------
// Members
private final String... | 28.023256 | 80 | 0.311203 |
5f52c8ba8df6469bf7290ed3c9f77fa88bfb20f0 | 1,830 | package ar.com.bbva.got.dto;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import org.json.JSONException;
import org.json.JSONObject;
import org.json.JSONArray;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
@Data
@JsonInclude(JsonInclude.Include.NON_EMPT... | 23.766234 | 67 | 0.650273 |
eb50c0abed6ae557bc03635c8af302e36dd8f25a | 1,531 | package id.indosw.githubsearch.repo;
import android.content.Context;
import androidx.annotation.NonNull;
import java.util.List;
import java.util.Objects;
import id.indosw.githubsearch.GitHubApplication;
import id.indosw.githubsearch.R;
import id.indosw.gitreposearch.api.models.Owner;
import retrofit2.Call;
import r... | 31.895833 | 161 | 0.675376 |
4f7f559840382cd8829f35eac8e3cca5d18a1d39 | 9,894 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|// Copyright (C) 2016 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... | 14.114123 | 83 | 0.806954 |
401e5318e2cdfa2dc6e2833098c79eb4ef19a03d | 935 | package com.github.dynamicextensionsalfresco.webscripts.arguments;
import javax.servlet.http.HttpServletResponse;
import com.github.dynamicextensionsalfresco.webscripts.WebScriptUtil;
import org.springframework.extensions.webscripts.WebScriptRequest;
import org.springframework.extensions.webscripts.WebScriptResponse... | 34.62963 | 114 | 0.845989 |
0f83e31570abe2595634544365ac759f32415dc2 | 1,825 | /**
*
*/
package models.course;
import java.util.Calendar;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.per... | 16.441441 | 143 | 0.720548 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.