blob_id stringlengths 40 40 | language stringclasses 1
value | repo_name stringlengths 5 132 | path stringlengths 2 382 | src_encoding stringclasses 34
values | length_bytes int64 9 3.8M | score float64 1.5 4.94 | int_score int64 2 5 | detected_licenses listlengths 0 142 | license_type stringclasses 2
values | text stringlengths 9 3.8M | download_success bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|
f6195a3e9756471ff74ebc7c3f968a82f6e21609 | Java | muhamadimann/FromApps | /app/src/main/java/com/muhamad/iman/MainActivity.java | UTF-8 | 1,254 | 1.9375 | 2 | [] | no_license | package com.muhamad.iman;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle... | true |
ff97df77c6b7edd3e42b39c641bb61e0c626bb74 | Java | gitest02/gitest02 | /PD_lawhelper/src/main/java/outlegal/lawmapper/web/OutEdocAdmController.java | UTF-8 | 1,781 | 1.890625 | 2 | [] | no_license | package outlegal.lawmapper.web;
import java.util.List;
import javax.annotation.Resource;
import nexacro.sample.web.AdvancedFileController;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.validation.Validator;
import or... | true |
c5bb011bd84987ed408e69fee478eb21a17375a8 | Java | zhuang8026/Java-v2.0 | /src/imooc_class/imooc_2_06.java | UTF-8 | 711 | 3.953125 | 4 | [] | no_license | package imooc_class;
/* 1. 定義一個類 */
public class imooc_2_06 {
// 定义静态变量score1
static int score1 = 86;
// 定义静态变量score2
static int score2 = 92;
// 定义静态方法sum,计算成绩总分,并返回总分
public static int sum() {
return score1 + score2;
};
public static void main(String[] args) {
imooc_2... | true |
f195ceebe8e0f454934bc5d828855e6ca2d0e414 | Java | bianapis/sd-product-deployment-v2 | /src/main/java/org/bian/dto/BQITOperationsRequestInputModelITOperationsInstanceRecord.java | UTF-8 | 1,412 | 1.695313 | 2 | [
"Apache-2.0"
] | permissive | package org.bian.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.bian.dto.BQITOperationsRequestInputModelITOperationsInstanceRecordProductServiceDeploymentI... | true |
01eab8889fb7b6f04444152d2595ee1d6f2be0f0 | Java | pramod6019/axelaauto | /src/axela/portal/Executive_Summary_Popover.java | UTF-8 | 8,394 | 1.921875 | 2 | [] | no_license | package axela.portal;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import javax.sql.rowset.CachedRowSet;
import cloudify.connect.Connect;
public class... | true |
594af9c82fa54d9159a27372e80059f1929db33b | Java | youshaoxin/MedicalMangerment | /src/com/itcast/entity/Stock.java | UTF-8 | 623 | 1.9375 | 2 | [] | no_license | package com.itcast.entity;
public class Stock {
private Integer stockid;
private Integer gid;
private Integer stockNum;
private Integer sid;//供应商id
public Integer getStockid() {
return stockid;
}
public void setStockid(Integer stockid) {
this.stockid = stockid;
}
public Integer getGid() {
return gid;
}... | true |
fcdf5228501749a18629911d15aabbcba8d148be | Java | ferdaousak/RNA_Information | /src/Intermediaire/IntermediaireAgent.java | UTF-8 | 3,442 | 2.484375 | 2 | [] | no_license | package Intermediaire;
import jade.core.AID;
import jade.core.Agent;
import jade.core.behaviours.CyclicBehaviour;
import jade.core.behaviours.ParallelBehaviour;
import jade.lang.acl.ACLMessage;
import jade.lang.acl.MessageTemplate;
import jade.lang.acl.UnreadableException;
import DAO.InformationDAO;
import java.io.IO... | true |
27f8714d51082e1ee51aa85ed3f15a33e5302549 | Java | mio31/Terasology | /src/main/java/org/terasology/rendering/gui/windows/UIMenuConfigVideo.java | UTF-8 | 12,852 | 1.851563 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2012 Benjamin Glatzel <benjamin.glatzel@me.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... | true |
acd198572d3d2ec6dc295ffe348e7343821b42f5 | Java | naufalalimw/OOP-Java | /Praktikum_Vincent/Praktikum 1/Point.java | UTF-8 | 2,082 | 3.828125 | 4 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package main;
/**
*
* @author labdas
*/
public class Point {
private int x; // absis dan ordinat
private int y; // absis dan... | true |
72ba9d3f82042be6a8be7cec9bb98cc9e9d52ba8 | Java | huaweicloud/huaweicloud-sdk-java-v3 | /services/projectman/src/main/java/com/huaweicloud/sdk/projectman/v4/model/SearchIssuesResponse.java | UTF-8 | 3,222 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | package com.huaweicloud.sdk.projectman.v4.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.huaweicloud.sdk.core.SdkResponse;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.function.Consumer;
/**... | true |
fbfdeac39ff522b1066b4c1fc06dd825c4a7aaf0 | Java | zzy296753977/CSDN | /CSDN/src/Application/Main.java | UTF-8 | 325 | 2.6875 | 3 | [] | no_license | package Application;
import design.staticfactory.Car;
import design.staticfactory.CarFactory;
public class Main {
static public void main(String [] args) throws Exception
{
CarFactory factory = new CarFactory();
Car car = factory.getCar("Audi");
car.drive();
car = factory.getCar("Benz");
car.drive();
... | true |
ad444bb8ec769b3bfa124d0a7de15ab25ce19a4a | Java | OSBI/saiku | /saiku-core/saiku-service/src/main/java/org/saiku/service/util/security/authentication/FileBackedPasswordProvider.java | UTF-8 | 1,752 | 2.96875 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package org.saiku.service.util.security.authentication;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
public class FileBackedPasswordProvider implements PasswordProvider
{
private final String password;
public FileBac... | true |
7da4385ae6b18cdccc4143d116d9a71120a09351 | Java | xeraph/kraken | /infra/kraken-webfx/src/main/java/org/krakenapps/webfx/Resource.java | UTF-8 | 829 | 2.359375 | 2 | [] | no_license | package org.krakenapps.webfx;
import org.krakenapps.api.FieldOption;
import org.krakenapps.confdb.CollectionName;
@CollectionName("resources")
public class Resource {
@FieldOption(nullable = false)
private String name;
@FieldOption(nullable = false)
private String pathPrefix = "";
public Resource(... | true |
bc3e607fdb93a8cf0d94302daec8b6d96e4bc17c | Java | SurinJeon/JAVA-study | /src/java_chobo/ch14/stream/StreamConditionEx.java | UTF-8 | 2,164 | 3.953125 | 4 | [] | no_license | package java_chobo.ch14.stream;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.function.Predicate;
import java.util.stream.Stream;
public class StreamConditionEx {
public static void main(String[] args) {
// totalScore가 100이하인 사람은 낙제자 >> 걸러내보기
// Mat... | true |
c020c9164f6efe6df0167f3ae5250b066b77da09 | Java | NotThe1/VMZ80 | /VMZ80/src/ioSystem/IOExceptionZ80.java | UTF-8 | 260 | 2.171875 | 2 | [] | no_license | package ioSystem;
public class IOExceptionZ80 extends RuntimeException {
private static final long serialVersionUID = 1L;
public IOExceptionZ80(String msg) {
super(msg);
}//Constructor - DeviceException(String msg)
}//class DeviceException
| true |
369cdfe4778441d2c5620e3f367fa29ed885ea69 | Java | lockss/lockss-daemon | /test/src/org/lockss/protocol/TestPeerAgreement.java | UTF-8 | 6,212 | 2.140625 | 2 | [
"BSD-3-Clause"
] | permissive | /*
* $Id$
*/
/*
Copyright (c) 2013-2016 Board of Trustees of Leland Stanford Jr. University,
all rights reserved.
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... | true |
3bb2475c2d06a13303ab5aa6143d013f2208ef54 | Java | mkodad/BankAccountFullStackTest | /back-end/src/main/java/org/sgcib/itec/fcc/business/Account.java | UTF-8 | 674 | 2.5 | 2 | [] | no_license | package org.sgcib.itec.fcc.business;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class Account {
@Id
@Column(name="ID")
private String id;
@Column(name="BALANCE")
private double balance;
public Account(String id) {
this.id =... | true |
ac031b01fc2781ac1d38b5dbf8508495806b8429 | Java | zack0518/2017-S2-SEP-UG12 | /Application/src/Robot.java | UTF-8 | 28,961 | 2.6875 | 3 | [] | no_license | import java.rmi.ConnectException;
import java.net.MalformedURLException;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import lejos.hardware.DeviceException;
import lejos.remote.ev3.RMIRegulatedMotor;
import lejos.remote.ev3.RMISampleProvider;
import lejos.remote.ev3.RemoteEV3;
/**
* This clas... | true |
a2a0618952c4f2f980acc31ee63903cc3b3a352d | Java | SohamRoyNoel/AutomationExtent | /src/CoreFunction/Main.java | UTF-8 | 11,649 | 1.9375 | 2 | [] | no_license | package CoreFunction;
import java.io.File;
import java.io.FileFilter;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.file.Files;
import java.nio.file.LinkOption;
import java.nio.file.Path;
import java... | true |
b2faf06a7f84bedc50aedde6bfa46995d90918fa | Java | LorckyWang/ImageEditor | /imageeditor/src/main/java/com/createchance/imageeditor/shaders/TransitionMainFragmentShader.java | UTF-8 | 1,799 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package com.createchance.imageeditor.shaders;
import android.opengl.GLES20;
/**
* Transition main fragment shader.
*
* @author createchance
* @date 2018/12/23
*/
public class TransitionMainFragmentShader extends AbstractShader {
private static final String TAG = "TransitionMainFragmentS";
protected fin... | true |
47811e8653f9d34808b50de15c9b8f4486b7967b | Java | carlosbridi/WSTrocaJogo | /src/main/java/com/trocajogo/defs/UserFields.java | UTF-8 | 714 | 1.65625 | 2 | [] | no_license | package com.trocajogo.defs;
public class UserFields {
public final static String ID = "id";
public final static String NOMEUSUARIO = "nomeusuario";
public final static String NOME = "nome";
public final static String TELEFONE = "telefone";
public final static String SENHA = "senha";
public final static... | true |
07a52aee9e8a4e0c09281547455f0456c7d5fc75 | Java | ananthrajtag/android-showcase-template | /app/src/main/java/com/aerogear/androidshowcase/features/authentication/providers/OpenIDAuthenticationProvider.java | UTF-8 | 673 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package com.aerogear.androidshowcase.features.authentication.providers;
import android.app.Activity;
import org.aerogear.mobile.core.Callback;
/**
* An interface for OpenID Connect Authentication Providers
*/
public interface OpenIDAuthenticationProvider {
/**
* Perform a login to the OIDC server
* ... | true |
3d92757a6a1f7ddb5ca2dc322bf5741714ed8973 | Java | jimomulloy/eve | /src/comul01/eve/EJView.java | UTF-8 | 23,547 | 1.765625 | 2 | [] | no_license | /*
* %W% %E%
*
* Copyright (c) 1999 Sun Microsystems, Inc. All Rights Reserved.
*
* Sun grants you ("Licensee") a non-exclusive, royalty free, license to use,
* modify and redistribute this software in source and binary code form,
* provided that i) this copyright notice and license appear on all copies of
* t... | true |
9697e43430e1dd8976d6c9a97b44fefd631b9f03 | Java | lssergey/algs1 | /percolation/PercolationStats.java | UTF-8 | 1,797 | 3.25 | 3 | [] | no_license | public class PercolationStats {
private double[] fractions;
private int T;
public PercolationStats(int N, int T) {
if (N <= 0 || T <= 0) {
throw new IllegalArgumentException();
}
this.T = T;
int cells = N * N;
int count, x, y;
... | true |
6e652210a0b09af6067ae31199f9f62254a39d00 | Java | QuietClickCode/wxzj2 | /wxzj2/src/com/yaltec/wxzj2/biz/compositeQuery/service/QueryPaymentSService.java | UTF-8 | 790 | 1.828125 | 2 | [] | no_license | package com.yaltec.wxzj2.biz.compositeQuery.service;
import java.util.List;
import java.util.Map;
import com.yaltec.comon.core.entity.Page;
import com.yaltec.wxzj2.biz.compositeQuery.entity.QueryPaymentS;
/**
* <p>ClassName: QueryPaymentSService</p>
* <p>Description: 汇缴清册查询服务接口</p>
* <p>Company: YALT... | true |
d8cd43afc06ccb2e57c56b7efec2232376ee95ba | Java | sachalepretre/open-experiments | /slingtests/osgikernel/bundles/messaging/src/main/java/org/sakaiproject/nakamura/message/MessageSearchResultProcessor.java | UTF-8 | 6,785 | 1.671875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to the Sakai Foundation (SF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The SF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use th... | true |
1cc8fa6e046fc23bc00b8b477945946115db8be5 | Java | kjy48048/savefood | /src/main/java/com/ward/savefood/admin/service/CategoryService.java | UTF-8 | 9,202 | 2.359375 | 2 | [] | no_license | package com.ward.savefood.admin.service;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Locale.Category;
import java.util.Map;
import javax.servlet.http.HttpSession;
import javax.validation.Valid;
import org.springframework... | true |
af4ddfd5fde6d8bab100b931c0d4d2912ff988dd | Java | flippii/spring-boot-examples | /spring-boot-keycloak/spring-boot-keycloak-customers/src/main/java/de/springframework/keycloak/customers/configuration/MongoConfiguration.java | UTF-8 | 1,255 | 1.867188 | 2 | [] | no_license | package de.springframework.keycloak.customers.configuration;
import com.github.cloudyrock.mongock.SpringMongock;
import com.github.cloudyrock.mongock.SpringMongockBuilder;
import de.springframework.keycloak.core.configuration.BaseMongoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoProperties;
... | true |
798f080b39ecdd396825132e662c0531f38b33f5 | Java | frc-6045/FRC6045Robot2020 | /src/main/java/frc/robot/subsystems/Intake.java | UTF-8 | 2,080 | 2.515625 | 3 | [] | no_license | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2019 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... | true |
a9e1bab79e24382ea397dac1e4a663b123adf2ae | Java | chiang/teamcode-runner | /src/main/java/io/teamcode/runner/common/RunnerConstants.java | UTF-8 | 599 | 1.898438 | 2 | [
"MIT"
] | permissive | package io.teamcode.runner.common;
import java.util.concurrent.TimeUnit;
/**
* Created by chiang on 2017. 4. 29..
*/
public abstract class RunnerConstants {
public static final long UPDATE_INTERVAL = 3 * 1000;
public static final long UPDATE_RETRY_INTERVAL_SECONDS = 3;
/**
* 한번 JobTrace 에 쓸 때 기본... | true |
8498771c8bd288cb85caa81cebc58e663e7fba12 | Java | patroklos83/SpringBoot-RabbitMQ | /src/main/java/com/patroclos/template/TemplateApplication.java | UTF-8 | 962 | 2.0625 | 2 | [] | no_license | package com.patroclos.template;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.... | true |
56a9874b0256dcc81285b6eba50278419afea0a8 | Java | QsMichael/sentence-cloud-platform | /service-provider/user-service-project/user-service-app/src/main/java/com/github/xf717/userservice/rpc/user/UserWordRpcImpl.java | UTF-8 | 2,336 | 1.90625 | 2 | [] | no_license | package com.github.xf717.userservice.rpc.user;
import com.github.xf717.common.framework.msg.BaseResponse;
import com.github.xf717.common.framework.msg.ObjectRestResponse;
import com.github.xf717.common.framework.msg.TableResultResponse;
import com.github.xf717.common.framework.vo.PageResult;
import com.github.xf717.us... | true |
56c4b9d383cbff6ca5213f8e7b1cb241ac5963eb | Java | benjaminbylund/Sortering | /src/Sort.java | UTF-8 | 2,690 | 3.5 | 4 | [] | no_license | /* Benjamin Bylund
2018-03-02
Four ways to sort with SelectionSort.
*/
import java.util.Arrays;
public class Sort {
public static void main(String[] args) {
int [] numbers1 = {45, 32, 128, 42, 9, 83, 52, 96, 1, 75};
double[] numbers = {45, 32, 128, 42, 9, 83, 52, 96, 1, 75};
Stri... | true |
1657797c61648801fa3fc334e846d24b8ad43ccc | Java | tvelliott/jPCBSim | /src/jPCBSim/Renderer.java | UTF-8 | 18,040 | 2.09375 | 2 | [
"BSD-3-Clause"
] | permissive |
//Not clear on who the original author(s) of this code is/are
//I may have modified is slightly, but am not the original author
//I believe it to be public domain. Please contact me if I should
//change the attributions or remove from the repository.
//Thanks, tvelliott
package jPCBSim;
// General Imports
import j... | true |
97bb1e9ecfd6e1026b7e5638002ffb177c07d071 | Java | manishik/MyWS | /SLSessionBean/ejbModule/com/hcl/LCalculatorBean.java | UTF-8 | 552 | 2.59375 | 3 | [] | no_license | package com.hcl;
import javax.annotation.PostConstruct;
import javax.ejb.Remove;
import javax.ejb.Stateless;
import com.hcl.LCalculator;
@Stateless(name = "Calci")
public class LCalculatorBean implements LCalculator {
//Business Method
public int add(int a, int b) {
System.out.println("Before Add");
int c = ... | true |
5938eaac2cba1bb2d06b4f56249a3d65dbb70b02 | Java | LonerJimmy/CornAlarmClock | /app/src/main/java/com/example/jimmy/cornalarmclock/components/BaseRecyclerAdapter.java | UTF-8 | 2,912 | 2.40625 | 2 | [] | no_license | package com.example.jimmy.cornalarmclock.components;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.ViewGroup;
import com.example.jimmy.cornalarmclock.widget.RecycleViewWithHeaderAndFooter;
import java.util.ArrayList;
import java.util.List;
/**
* Created by apple... | true |
cbbdaa2e1bc0fad4e2fbb69c314f6611355cd7e8 | Java | cvdnn/ZtoneNetwork | /sdk-hook/src/main/java/com/dingtalk/api/request/OapiDdpaasObjectdataQueryRequest.java | UTF-8 | 3,497 | 1.953125 | 2 | [] | no_license | package com.dingtalk.api.request;
import com.taobao.api.internal.util.RequestCheckUtils;
import java.util.Map;
import java.util.List;
import com.taobao.api.ApiRuleException;
import com.taobao.api.BaseTaobaoRequest;
import com.dingtalk.api.DingTalkConstants;
import com.taobao.api.Constants;
import com.taobao.api.inter... | true |
05cbf54ca02bfef72dbe2348fbe4907b7f47afa1 | Java | kalkafox/Psipherals | /src/main/java/com/dudblockman/psipherals/util/libs/ItemNames.java | UTF-8 | 3,500 | 1.773438 | 2 | [] | no_license | package com.dudblockman.psipherals.util.libs;
public class ItemNames {
public static final String PSIMETAL_BOW = "psimetal_bow";
public static final String PSIMETAL_SWORD_ADVANCED = "psimetal_sword_advanced";
public static final String PSIMETAL_PICKAXE_ADVANCED = "psimetal_pickaxe_advanced";
public s... | true |
c3755f12fefd2b4227e822265e896143ce8bcce5 | Java | cmFodWx5YWRhdjEyMTA5/smell-and-machine-learning | /ast_results/chaosbastler_opentraining/app/src/de/skubware/opentraining/activity/create_exercise/EditImageMetadataDialog.java | UTF-8 | 4,464 | 1.695313 | 2 | [] | no_license | // isComment
package de.skubware.opentraining.activity.create_exercise;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.EditText;
import android.w... | true |
ff14fb291b17d6b1d45ffc2953546e16b7acdd76 | Java | jamar-palmer/ConvoyLab3 | /app/src/main/java/edu/temple/convoy/RecyclerAdapter.java | UTF-8 | 2,592 | 2.328125 | 2 | [] | no_license | package edu.temple.convoy;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import java.io... | true |
63199664067b326514d5b32116111a9ea6bb9376 | Java | haowei1/myhxc | /src/main/java/com/hdy/myhxc/exception/AppException.java | UTF-8 | 410 | 2.296875 | 2 | [] | no_license | package com.hdy.myhxc.exception;
/**
* @author m760384371
*/
public class AppException extends RuntimeException{
private String errorMsg;
public AppException(String message) {
super(message);
this.errorMsg = message;
}
public String getErrorMsg() {
return errorMsg;
}
... | true |
e5c31d68ff3de2a47806f059f256a9040f19e8a5 | Java | Laci91/ec2021-guessing-game | /src/main/java/tippjatek/MainApplication.java | UTF-8 | 2,221 | 2.515625 | 3 | [] | no_license | package tippjatek;
import com.formdev.flatlaf.FlatLightLaf;
import tippjatek.gamesheet.GameSheetManager;
import tippjatek.model.Game;
import tippjatek.ui.DisplayStrings;
import tippjatek.ui.guide.UserGuideComponent;
import tippjatek.ui.matches.MatchesComponent;
import tippjatek.ui.standings.StandingsComponent;
import... | true |
0f2776450d8c49dd0c6361384d695948ac6df956 | Java | nloh15/mini-os | /src/DiskManager.java | UTF-8 | 454 | 2.75 | 3 | [] | no_license | // Derived from resource Manager
package src;
class DiskManager extends ResourceManager {
// Keep track of next frer sector on eadch disk
// Should contain the directoryManager for finding file sectors on disk
Disk disks[];
DiskManager(Disk dList[]){
super(dList.length);
this.disks = dList;
}
void setNextFr... | true |
436d04e0a0242393a65918ba4e75d3e84b9af677 | Java | AMITTAWDE9/spring-boot-devops | /src/main/java/com/devops/springframework/repositories/ProductCategoryRepository.java | UTF-8 | 300 | 1.601563 | 2 | [] | no_license | package com.devops.springframework.repositories;
import com.devops.springframework.domain.ProductCategory;
import org.springframework.data.repository.CrudRepository;
/**
* Created by at on 5/6/16.
*/
public interface ProductCategoryRepository extends CrudRepository<ProductCategory, Integer> {
}
| true |
9c015df23e48a86a2858e5cd04437effb46e7e86 | Java | Ingloryon/SDP_PolyChef | /app/src/androidTest/java/ch/epfl/polychef/recipe/SearchRecipeTest.java | UTF-8 | 1,972 | 2.640625 | 3 | [] | no_license | package ch.epfl.polychef.recipe;
import org.mockito.Mockito;
import java.util.List;
import ch.epfl.polychef.CallHandler;
import ch.epfl.polychef.Miniatures;
import ch.epfl.polychef.utils.SearchTest;
import static org.mockito.Mockito.when;
public class SearchRecipeTest extends SearchTest {
SearchRecipe spyRecip... | true |
7406a5971d52eacc183e16861d9ebb7c153da828 | Java | Alachisoft/TayzGrid | /src/tgsocketserver/src/com/alachisoft/tayzgrid/socketserver/command/GetKeysByTagCommand.java | UTF-8 | 5,627 | 1.84375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2015, Alachisoft. 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 ... | true |
71d23bddf788081573f7467577e3d7df2f13c38b | Java | RodexterMalinao/springBoard | /BomLtsPortal/src/com/bomltsportal/web/MessageController.java | UTF-8 | 1,853 | 2.265625 | 2 | [] | no_license | package com.bomltsportal.web;
import java.util.Enumeration;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.web.serv... | true |
66b465f3f902e29b372ff99b1bfdfc76fec304b2 | Java | yukthitech/papilio | /src/main/java/com/yukthitech/papilio/mongo/MongoDbMethods.java | UTF-8 | 4,012 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright (c) 2022 "Yukthi Techsoft Pvt. Ltd." (http://yukthitech.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
*
* Un... | true |
5c0c0bdb84a3d1208fbb1005b03a7786eab7dcb1 | Java | yimfeng/LeetCode | /demo/src/Tree/P404.java | UTF-8 | 1,133 | 3.5625 | 4 | [] | no_license | package Tree;
import java.util.LinkedList;
import java.util.Queue;
public class P404 {
public static void main(String[] args) {
}
// 深度优先
int sum = 0;
public int sumOfLeftLeaves(TreeNode root) {
if(root == null)
return 0;
if(root.left != null){
if(root.left... | true |
645c0a8cd35fe23a67e6542b8f029455d926c716 | Java | jreimone/source-analysator | /bundles/net.reimone.sourceanalysator.rcp/src/net/reimone/sourceanalysator/rcp/databinding/TreeBeanAdvisor.java | UTF-8 | 2,556 | 2.015625 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2011 Google, Inc.
* 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, and is available at
* ... | true |
d148721ecd80e9bf24ebbea4c5ae166c01d1788b | Java | Shamyyoun/TwselaDriver | /app/src/main/java/com/twsela/driver/controllers/TripController.java | UTF-8 | 1,762 | 2.734375 | 3 | [] | no_license | package com.twsela.driver.controllers;
import android.content.Context;
import com.twsela.driver.Const;
import com.twsela.driver.R;
import com.twsela.driver.models.entities.Trip;
import com.twsela.driver.utils.DateUtils;
/**
* Created by Shamyyoun on 1/14/17.
*/
public class TripController {
public String ge... | true |
ac8c673db7bbaf2720645ce6f8b4e08fdc3d8dcb | Java | yourant/repository1 | /distribution_cart/modules/discart/app/extensions/discart/DisCartModule.java | UTF-8 | 2,068 | 1.914063 | 2 | [
"Apache-2.0"
] | permissive | package extensions.discart;
import java.util.Set;
import com.google.common.collect.Sets;
import com.google.common.eventbus.EventBus;
import com.google.inject.AbstractModule;
import com.google.inject.Injector;
import com.google.inject.Module;
import extensions.IModule;
import extensions.ModuleSupport;
import extensio... | true |
0c0dbae71b84debf06692fcf75fe829a9a96018a | Java | juliomejia97/TuriStar | /back-end/src/main/java/com/webDevelopment/turistar/Administrator/City/Domain/Exceptions/CitiesNotExist.java | UTF-8 | 205 | 2.125 | 2 | [] | no_license | package com.webDevelopment.turistar.Administrator.City.Domain.Exceptions;
public class CitiesNotExist extends RuntimeException{
public CitiesNotExist(String message) {
super(message);
}
}
| true |
aee2d6bf19680b68c0e2e170e75d387c782c2276 | Java | jmagicdev/jmagic | /cards/src/main/java/org/rnd/jmagic/cards/KuldothaFlamefiend.java | UTF-8 | 2,256 | 3.03125 | 3 | [] | no_license | package org.rnd.jmagic.cards;
import static org.rnd.jmagic.Convenience.*;
import org.rnd.jmagic.engine.*;
import org.rnd.jmagic.engine.generators.*;
@Name("Kuldotha Flamefiend")
@Types({Type.CREATURE})
@SubTypes({SubType.ELEMENTAL})
@ManaCost("4RR")
@ColorIdentity({Color.RED})
public final class KuldothaFlamefiend e... | true |
731b6501a85441ba25e0bcac420397ebe6f1b68e | Java | Javastro/astrogrid-legacy | /projects/clustering/core/src/main/java/org/astrogrid/cluster/cluster/Mixtures.java | UTF-8 | 22,122 | 2.296875 | 2 | [] | no_license | /*
* $Id: Mixtures.java,v 1.6 2010/01/09 17:32:38 pah Exp $
*
* Created on Sep 16, 2009 by Paul Harrison (paul.harrison@manchester.ac.uk)
* Copyright 2009 Astrogrid. All rights reserved.
*
* This software is published under the terms of the Astrogrid
* Software License, a copy of which has been included
* wi... | true |
eba0b172116fbac595456f4ac973331a7fff1472 | Java | Charon1997/StudentScoreManagementSystem | /control/control/OtherControl.java | GB18030 | 8,118 | 2.8125 | 3 | [] | no_license | package control;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileWriter;
import java.io.InputStreamReader;
import java.util.ArrayList;
import data.StudentList;
public class OtherControl {
StudentList studentList = StudentList.getSt... | true |
bcbb171bb3a0cf9876078aaca70cdf46eed18cc0 | Java | SevadaIskandaryan/hangman | /src/GameGUI.java | UTF-8 | 3,882 | 2.921875 | 3 | [] | no_license | import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Arrays;
public class GameGUI extends JFrame implements ActionListener {
private JTextField txt1 = new JTextField();
private JTextField txt2 = new JTextField(1);
pr... | true |
e8c5fd391491cb41faf76ddae85d45bde396aefb | Java | Rizkisep10/SIK-PTKIS | /app/src/main/java/com/septian/sikptkis/model/DataBeritaUniv.java | UTF-8 | 1,939 | 2.03125 | 2 | [] | no_license | package com.septian.sikptkis.model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
/**
* Created by septian on 3/12/2018.
*/
public class DataBeritaUniv {
@SerializedName("id")
@Expose
private Integer id;
@SerializedName("id_univ")
@Expose
priv... | true |
e9aedd5a96d45b6543f0283e4baaab53de7ae142 | Java | r-kill/java | /introToJava/maxDouble/max.java | UTF-8 | 972 | 3.71875 | 4 | [] | no_license | /*
* 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.
*/
/**
*
* @author Rowan
*/
import java.util.Scanner;
public class Max {
public static void main(String[] args) {
Scanne... | true |
8844e72f20a2a7c57797660b86eca31ae8bcb3cd | Java | jwbennet/testng-selenium-example | /src/test/java/edu/iu/es/esi/demo/GoogleSearchPage.java | UTF-8 | 671 | 2.125 | 2 | [] | no_license | package edu.iu.es.esi.demo;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
@Page("/")
public class GoogleSearchPage extends PageBase {
@FindBy(name = "q")
private WebElement searchInput;
@FindBy(name = "btnK")
private WebElement searchButton;
publi... | true |
1acbd9579368b24c3806cbed27e4f3a8cb463f61 | Java | Sewerinius/Elbbod | /dobble-common/src/test/java/karma/dobble/common/model/DeckGeneratorTest.java | UTF-8 | 1,094 | 2.953125 | 3 | [] | no_license | package karma.dobble.common.model;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ValueSource;
import java.util.Set;
import static org.junit.jupiter.api.Assertions.*;
class DeckGeneratorTest {
@ParameterizedTest
@ValueSource(in... | true |
949a8827071ccf594f83606384b6d24518dbf905 | Java | ravibanks54/DistributedSystems | /Assignment1/rmi/PlaceInterface.java | UTF-8 | 287 | 2.1875 | 2 | [] | no_license | import java.rmi.Remote;
import java.rmi.RemoteException;
/**
* Created by ravibhankharia on 10/5/16.
*/
public interface PlaceInterface extends Remote {
public PlaceStruct findPlace(String placename, String state) throws RemoteException; //Create data structure as return type
}
| true |
c9db0d6190af520975c36ada7e944d3e04863439 | Java | talitapernabel/DS---Java | /Lista01/src/lista01/Lista01.java | UTF-8 | 4,964 | 3.59375 | 4 | [] | no_license | /*
* 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 lista01;
import java.util.Scanner;
/**
*
* @author Talita
*/
public class Lista01 {
/**
* @param... | true |
4d0b72e8152e01240f700ff0050a377a276e0576 | Java | kbun011877/spring-workspace | /spring-di/src/main/java/com/sample/di/demo9/MailConnectService.java | UHC | 646 | 2.171875 | 2 | [] | no_license | package com.sample.di.demo9;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
@Service
public class MailConnectService {
@Value("${mail.host}")
private String host;
@Value("${mail.port}")
private int port;
@Value("${mail.userid}")
private String userid;
... | true |
fb3ba1190fbb4131e8fada3900f226fb7cb1d9da | Java | leifchen/mmall | /src/main/java/com/mmall/vo/CartVO.java | UTF-8 | 418 | 1.742188 | 2 | [
"Apache-2.0"
] | permissive | package com.mmall.vo;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.math.BigDecimal;
import java.util.List;
/**
* 购物车VO
* <p>
* @Author LeifChen
* @Date 2019-03-01
*/
@Getter
@Setter
@ToString
public class CartVO {
private List<CartProductVO> cartProductVOList;
private... | true |
d91b7d07176d38b4f4c591ea4baeaa57dc76b994 | Java | o0u0o/missyou | /src/main/java/com/github/wxpay/sdk/O0u0oWxPayConfig.java | UTF-8 | 1,444 | 2.15625 | 2 | [] | no_license | package com.github.wxpay.sdk;
import java.io.InputStream;
/**
* 微信支付配置类
* @author o0u0o
* @date 2021/3/22 11:15 上午
*/
public class O0u0oWxPayConfig extends WXPayConfig {
/** 小程序APPID */
@Override
public String getAppID() {
return "wxd898fcb01713c658";
}
/** 商户号 */
@Override
... | true |
e2d98820c857a4fa00a42e4f52cc61a80d3280f7 | Java | almanahc978/spring_course | /spring-mvc-boot-scope-session/src/main/java/org/kamil/controller/AddCartController.java | UTF-8 | 601 | 2.203125 | 2 | [] | no_license | package org.kamil.controller;
import org.kamil.component.ShoppingCart;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
@Controller
p... | true |
d0db38c799dabd54b1fdf5a0dd081e78132867ae | Java | axej0908/harlanchina | /src/main/java/com/axej/harlan/cms/bean/ExpoBean.java | UTF-8 | 1,536 | 2.3125 | 2 | [] | no_license | package com.axej.harlan.cms.bean;
/**
* @author: jaywechen
* @Description:首页展会内容
* @Created by: IntelliJ IDEA
* @Modified By: jaywechen
* @Date: 15:48 2018/3/21
*/
public class ExpoBean {
private Integer expo_id;
/**
* 标题
*/
private String title;
/**
* 自定义 富文本内容
*/
privat... | true |
8c0e6ba90b57fe8e78b5885b88853fd974ee388e | Java | CristiMiron/java-won-2-homeworks | /src/ro/fasttrackit/homeworks/curs11/ClassroomMain.java | UTF-8 | 608 | 2.65625 | 3 | [] | no_license | package ro.fasttrackit.homeworks.curs11;
import java.util.List;
public class ClassroomMain {
public static void main(String[] args) {
Classroom A = new Classroom(List.of(
new StudentGrade("Ealhstan Saira", "Math", 8),
new StudentGrade("Cristi Miron", "Info", 7),
... | true |
66ae6739322a02e6b2173b014379e154fba5c928 | Java | computas/fdk | /applications/harvester-api/src/test/java/no/dcat/harvester/crawler/converters/EnhetsregisterResolverIT.java | UTF-8 | 11,510 | 1.898438 | 2 | [
"Apache-2.0"
] | permissive | package no.dcat.harvester.crawler.converters;
import no.dcat.datastore.domain.dcat.vocabulary.DCATNO;
import no.dcat.shared.testcategories.IntegrationTest;
import org.apache.jena.rdf.model.Model;
import org.apache.jena.rdf.model.ModelFactory;
import org.apache.jena.rdf.model.NodeIterator;
import org.apache.jena.rdf.mo... | true |
47a9a85d2704c0f10dac6854b7d66e77f7431b1d | Java | qbolt/velocity-demo | /src/main/java/com/fedex/airops/service/TemplateService.java | UTF-8 | 1,541 | 2.34375 | 2 | [] | no_license | package com.fedex.airops.service;
import java.io.StringWriter;
import java.util.Properties;
import javax.servlet.http.HttpSession;
import org.apache.velocity.Template;
import org.apache.velocity.VelocityContext;
import org.apache.velocity.app.VelocityEngine;
import org.springframework.beans.factory.annotation.Autowi... | true |
41e964c61a93c977f6032fdf97cf781a6f3f4652 | Java | silviopd/imagenurl | /src/imagenurl/ImagenURL.java | UTF-8 | 1,206 | 2.9375 | 3 | [] | no_license | package imagenurl;
import java.awt.Image;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
public class ImagenURL extends JFrame {
public ImagenUR... | true |
b9056c1465caf7b6dd71af6a30afd0120a62cc1a | Java | pkcsecurity/decompiled-lightbulb | /com/facebook/imagepipeline/producers/DelegatingConsumer.java | UTF-8 | 753 | 2.125 | 2 | [] | no_license | package com.facebook.imagepipeline.producers;
import com.facebook.imagepipeline.producers.BaseConsumer;
import com.facebook.imagepipeline.producers.Consumer;
public abstract class DelegatingConsumer<I extends Object, O extends Object> extends BaseConsumer<I> {
private final Consumer<O> mConsumer;
public Dele... | true |
7e445c396ea2a1c55af9207e1c66be3294163b03 | Java | zjulien/exerciceJava | /fois3.java | UTF-8 | 569 | 2.90625 | 3 | [] | no_license | /*
* 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 exercicejava;
import java.util.Scanner;
/**
*
* @author stagiaire acs
*/
public class fois3 {
public static void main... | true |
9f426d4b95fb3f697538a305f067e68230c38674 | Java | heqiao1017/Zelda-Game | /GamePKG/Bear.java | UTF-8 | 3,722 | 2.5625 | 3 | [] | no_license | package GamePKG;
import javafx.scene.image.Image;
import javafx.scene.layout.Pane;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
import javafx.util.Duration;
public class Bear extends Sprite
{
private boolean isCollision=false;
private Rectangle BearCollisionBox=new Rectangle();
private Spr... | true |
032ff711ff7a045e4dacf96bb251d81999bf4bbc | Java | bit-whacker/gbench | /src/main/java/org/khu/benchmark/gbench/PropertyReader.java | UTF-8 | 4,814 | 2.6875 | 3 | [] | no_license | package org.khu.benchmark.gbench;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
imp... | true |
553988b330e3ebd7c94fa17a0793e539b04dbd8f | Java | andriihovanec/200levelsFindDifferences | /200lvlsFindDifferences/src/main/java/com/olbigames/levels200finddifferences/HiddenHint.java | UTF-8 | 4,709 | 2.515625 | 3 | [] | no_license | package com.olbigames.levels200finddifferences;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.FloatBuffer;
import java.util.Random;
public class HiddenHint {
public static final int COL = 200;
public boolean animShowing, finded;
private float fx,fy;
public float x,y,r;
... | true |
ba00bb48f31d2568c919ad26c415e8e576da9a6c | Java | Renukakapil/design-pattern | /app/src/main/java/com/code/common/contracts/OnActionListener.java | UTF-8 | 156 | 1.570313 | 2 | [
"Apache-2.0"
] | permissive | package com.code.common.contracts;
public interface OnActionListener<TModel> {
void notify(TModel model);
// void onDeSelect(TModel model);
}
| true |
82587bcc391825087249d2f87030052f827d1ed0 | Java | woutertierens/test | /jpropeller/src/org/jpropeller/properties/set/SetProp.java | UTF-8 | 1,523 | 3.359375 | 3 | [] | no_license | package org.jpropeller.properties.set;
import java.util.Set;
import org.jpropeller.collection.CSet;
import org.jpropeller.properties.Prop;
/**
* A {@link Prop} containing a {@link CSet} value, and
* having extra methods to access methods of that
* {@link Set} directly
*
* @param <T>
* Type of values in the {... | true |
9c251c97e6dc89f967ef428931ecd4e1607074d3 | Java | JasonsMic/springBootDemo | /src/main/java/com/example/demo1/service/UserService.java | UTF-8 | 300 | 1.726563 | 2 | [] | no_license | package com.example.demo1.service;
import com.example.demo1.model.User;
import com.github.pagehelper.PageInfo;
import java.util.List;
/*
*
* */
public interface UserService {
int addUser(User user);
PageInfo<User> findAllUser(int pageNum, int pageSize);
List<User> selectAll();
}
| true |
2e4b98a54be7c4d04821c086d1b51982ca817fee | Java | chandusekhar/btpn_portal | /src/main/java/com/sybase365/mobiliser/web/dashboard/pages/home/preferences/PreferencesApplicationAddPage.java | UTF-8 | 1,174 | 1.875 | 2 | [] | no_license | package com.sybase365.mobiliser.web.dashboard.pages.home.preferences;
import org.apache.wicket.authorization.strategies.role.annotations.AuthorizeInstantiation;
import com.sybase365.mobiliser.web.dashboard.pages.home.HomeMenuGroup;
import com.sybase365.mobiliser.web.dashboard.pages.home.preferences.model.IPreferences... | true |
730ffaaaba3dd1671e81f5f2e525a7f8bcbb18c5 | Java | ppourali/formldesigner | /uw.cs.watform.forml.odesign/extensions/uw/cs/watform/forml/extensions/customStyles/FeatureNodeCustomStyle2.java | UTF-8 | 3,061 | 1.976563 | 2 | [] | no_license | package uw.cs.watform.forml.extensions.customStyles;
import org.eclipse.draw2d.IFigure;
import org.eclipse.gef.DragTracker;
import org.eclipse.gef.Request;
import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.sirius.diagram.ui.edit.api.part.IStyleEd... | true |
4d39af26eb9dd3e4cc6ee1ea1b94bee747276532 | Java | null00/CodeComp | /codecomp/src/main/java/pl/edu/agh/codecomp/comparator/graph/SparseDirectedGraph.java | UTF-8 | 12,748 | 2.5625 | 3 | [] | no_license | /*
* Copyright 2011 David Jurgens
*
* This file is part of the S-Space package and is covered under the terms and
* conditions therein.
*
* The S-Space package is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as published
* by the Free Soft... | true |
038fe511f1dbc3f9263475a655336c0326e762b6 | Java | power4j/java-perf | /report-by-ex/src/main/java/com/power4j/kit/utils/BizException.java | UTF-8 | 393 | 2.21875 | 2 | [
"MIT"
] | permissive | package com.power4j.kit.utils;
/**
* @author CJ (jclazz@outlook.com)
* @date 2020/6/14
* @since 1.0
*/
public class BizException extends RuntimeException {
public BizException(String message) {
super(message);
}
public BizException(String message, Throwable cause) {
super(message, caus... | true |
701111a6d3da8d0733d8a66009cddcd749c7b4e5 | Java | Swinke/projet_Etudiant | /Java/Pokemon/src/game/Bonbon.java | UTF-8 | 2,919 | 3.6875 | 4 | [] | no_license | package game;
import java.util.List;
/**********************************************************************************
* Classe Bonbon : le vendeur des bonbons
* <ul>
* <li>Joueurs peuvent échanger des pokemons pour les bonbons utilisant les methodes publics
* proposé dans cette classe. </li>
* <li>Chaque bonbo... | true |
a8052dd85828e94b90352e64ef7fbd1be8e456b9 | Java | myxzjie/cms | /cms-boot-web/src/main/java/com/xzjie/cms/client/web/AppVisitLogController.java | UTF-8 | 1,168 | 1.898438 | 2 | [
"Apache-2.0"
] | permissive | package com.xzjie.cms.client.web;
import com.xzjie.cms.core.utils.MapUtils;
import com.xzjie.cms.core.utils.RequestHolder;
import com.xzjie.cms.visit.model.VisitLog;
import com.xzjie.cms.visit.service.VisitLogService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
imp... | true |
68519e0e9f0c7a4f3bd930d003cca4d93332c2c4 | Java | JackLeeMing/Wallet | /app/src/main/java/work/android/smartbow/com/wallet/bean/Student.java | UTF-8 | 1,400 | 2.359375 | 2 | [] | no_license | /*
* Copyright (c) 2016. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
* Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan.
* Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
* Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellentesque sagi... | true |
b1164169be253d5e9fd930315c384321e58698f3 | Java | lispmind/cat | /cat-consumer-advanced/src/test/java/com/dianping/cat/consumer/browser/BrowserAnalyzerTest.java | UTF-8 | 2,005 | 2.203125 | 2 | [] | no_license | package com.dianping.cat.consumer.browser;
import org.junit.Assert;
import org.junit.Test;
import org.unidal.lookup.ComponentTestCase;
import com.dianping.cat.consumer.browser.model.entity.BrowserReport;
public class BrowserAnalyzerTest extends ComponentTestCase {
@SuppressWarnings("deprecation")
@Test... | true |
d27c5d380a5568326808448fba92ea4b371c4ada | Java | CIT-VSB-TUO/ResBill | /resbill/src/main/java/cz/vsb/resbill/model/IdentifiableEntity.java | UTF-8 | 447 | 2.515625 | 3 | [
"BSD-3-Clause"
] | permissive | package cz.vsb.resbill.model;
/**
* An interface marking all domain objects. Each domain object has its unique
* identifier.
*
* @author HAL191
*
*/
public interface IdentifiableEntity {
/**
* Returns the unique identifier.
*
* @return unique identifier
*/
Integer getId();
/**
... | true |
01431f2e1c573b8da02feb202cbbb994535190dd | Java | lanlandetiankong/egg_manager | /egg-facade/src/main/java/com/egg/manager/persistence/em/user/pojo/transfer/EmUserTenantTransfer.java | UTF-8 | 2,649 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package com.egg.manager.persistence.em.user.pojo.transfer;
import com.egg.manager.persistence.em.user.db.mysql.entity.EmUserTenantEntity;
import com.egg.manager.persistence.em.user.pojo.dto.EmUserTenantDto;
import com.egg.manager.persistence.em.user.pojo.mapstruct.imap.EmUserTenantMapstruct;
import com.egg.manager.per... | true |
4255029d64ef31abf141bb9154ca057b7e0fc6bc | Java | sivatesting2000/CarTaxAutmation | /CarTaxCheckAutomation/src/main/java/co/uk/cartaxcheck/pages/CarDetailsPage.java | UTF-8 | 1,793 | 2.28125 | 2 | [] | no_license | package co.uk.cartaxcheck.pages;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import com.aventstack.extentreports.ExtentTest;
import co.uk.cartaxcheck.base.CoreActions;
public class CarDetailsP... | true |
63984fdbfdd7918aae323e15bb89ac8ab5b062a4 | Java | cwenlu/MediaRelated | /app/src/main/java/com/cwl/mediarelated/util/CodecUtil.java | UTF-8 | 3,819 | 2.109375 | 2 | [] | no_license | package com.cwl.mediarelated.util;
import android.media.MediaCodec;
import android.media.MediaCodecInfo;
import android.media.MediaCodecList;
import android.media.MediaFormat;
import android.util.Log;
import com.orhanobut.logger.Logger;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserFactory;... | true |
40e79d23edf949c72cf39d1a7362d1ba6c4704df | Java | SuperDiplomat/JavaProgramming_EU7 | /ReplitSolutions/_2_009_Statements_VideoGameCoupons.java | UTF-8 | 1,596 | 4.0625 | 4 | [] | no_license | //The video games machines at your local arcade outputs coupons according to how well you play the game.
// - You can redeem 10 coupons for a candy bar or you can redeem 3 for a gumball
// - Write a program that displays how many candy bars and gumballs you can get. You perfer candy bars.
//
// - i... | true |
5bc1b914165da1aab837b08a58a47d0146eeb187 | Java | XDeric/project-1-XDeric | /src/main/java/com/revature/dao/AccountDAOImpl.java | UTF-8 | 7,814 | 2.65625 | 3 | [] | no_license | package com.revature.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import com.revature.models.Account;
import com.revature.models.AccountType;
import... | true |
0aac3689f6b20ab5412fa6bfa332eb1b07d90faf | Java | liuwenru/Apache-Ambari-ZH | /ambari-server/src/test/java/org/apache/ambari/server/sample/checks/SampleServiceCheck.java | UTF-8 | 2,038 | 1.828125 | 2 | [
"MIT",
"Apache-2.0",
"GPL-1.0-or-later",
"GPL-2.0-or-later",
"OFL-1.1",
"MS-PL",
"AFL-2.1",
"GPL-2.0-only",
"Python-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown"
] | permissive | /*
* 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 ... | true |
f5701335a98e1e07a5363fff0942b89aedbbcdb8 | Java | jinsedeyuzhou/HttpClient | /HttpClient/src/main/java/com/ebrightmoon/http/common/Request.java | UTF-8 | 21,604 | 1.867188 | 2 | [
"Apache-2.0"
] | permissive | package com.ebrightmoon.http.common;
import androidx.annotation.NonNull;
import com.ebrightmoon.http.body.UploadProgressRequestBody;
import com.ebrightmoon.http.callback.UCallback;
import com.ebrightmoon.http.mode.CacheMode;
import com.ebrightmoon.http.mode.MediaTypes;
import com.ebrightmoon.http.mode.Method;
import... | true |
f41ab24bd230aad43dad7a04c8032e877c775121 | Java | CHAOSKNIGHT572/multithreadingExercise | /src/exercise1.java | UTF-8 | 1,012 | 3.265625 | 3 | [] | no_license | /**
* Created by tansen on 6/9/19.
*/
public class exercise1 {
public static void main(String[] args) {
}
private static class Vault {
private int password;
public Vault(int password) {
this.password = password;
}
public boolean isCorrectPassword(int guess) {... | true |
df5b0e75f537d6c593a612f09bf90830458bcc32 | Java | leximar17/PruebaConsumo | /src/main/java/com/leximar/app/model/Venta.java | UTF-8 | 305 | 1.742188 | 2 | [] | no_license | package com.leximar.app.model;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class Venta {
//id, fecha, iva, descuento, total
private Long id;
private Date fecha;
private Double iva;
private Double descuento;
private Double total;
}
| true |
6e4c66af93782b30c859d447901b70ef5602bfb1 | Java | mbach04/odie | /contrib/reference-app/src/main/java/com/redhat/consulting/odie/servlet/ODIEHealthCheckServletContextListener.java | UTF-8 | 970 | 1.921875 | 2 | [
"Apache-2.0"
] | permissive | package com.redhat.consulting.odie.servlet;
import com.codahale.metrics.health.HealthCheckRegistry;
import com.codahale.metrics.servlets.HealthCheckServlet;
import com.redhat.consulting.odie.checks.AMQHealthCheck;
import com.redhat.consulting.odie.checks.DBHealthCheck;
import javax.ejb.DependsOn;
import javax.inject.... | true |
1d86377ad33d69fe74738a8cc001e9532c0dfc41 | Java | TaeheeKim15/SodamSodam | /app/src/main/java/bitcamp/sodam/controller/UserController.java | UTF-8 | 2,358 | 2.265625 | 2 | [] | no_license | package bitcamp.sodam.controller;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui... | true |