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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
ef386369dc8066a80f641da4bc9b22e9c92a7559 | Java | XUAGramGaming/SpigotAPI-ReadMeCreator | /src/com/lets/tri/fw2.java | UTF-8 | 835 | 2.234375 | 2 | [] | no_license | package com.lets.tri;
import java.io.File;
import java.io.IOException;
import org.bukkit.configuration.InvalidConfigurationException;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.plugin.java.JavaPlugin;
public class fw2 extends Java... | true |
218f5f1fcadb9144b9ef3bc287b2624d43133dc5 | Java | KKurrey/JavaRefresher | /lib1/src/main/java/com/example/lib1/InheritClassEx.java | UTF-8 | 153 | 2.21875 | 2 | [] | no_license | package com.example.lib1;
public class InheritClassEx extends ClassEx {
public void method2(){
System.out.println("I am method 2");
}
}
| true |
ac6d78e6aeec5347f545e4233d14b2f01c6853bd | Java | bellmit/preg-project | /preg-web/src/main/java/com/mnt/preg/web/pojo/WebResult.java | UTF-8 | 1,799 | 2.34375 | 2 | [] | no_license |
package com.mnt.preg.web.pojo;
import java.util.List;
/**
*
* 主要用于前台页面显示信息
*
* @author zy
* @version 1.0
*
* 变更履历: v1.0 2014-12-15 zy 初版
*/
public class WebResult<T> {
/** 操作状态 */
private boolean result;
/** 提示信息 */
private String message;
/** 操作结果 */
private T value;
... | true |
b91b56ad642e458a1d14137654567a03f8cc0b45 | Java | JuanCruzMateos/Programacion-III-TPG | /src/main/java/sistema/gui/Ventana.java | UTF-8 | 27,538 | 2.234375 | 2 | [] | no_license | package sistema.gui;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
//import controlador.Controlador;
import... | true |
404bf529644af27f68efe4bed55fbabae3e1aa22 | Java | xz0/logsdk-java | /src/main/java/com/gameley/bigData/logsdkjava/po/LogCdkeyPo.java | UTF-8 | 1,454 | 2.234375 | 2 | [] | no_license | package com.gameley.bigData.logsdkjava.po;
import com.gameley.bigData.logsdkjava.po.base.LogBaseRolePo;
import com.gameley.bigData.logsdkjava.utils.LogUtil;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
/**
* @author: 王志伟
* @date: 2018/9/11 17:57
* @desc: 兑换码兑换日志
*/
@Slf4j
@Getter
public c... | true |
b4ea4b4c0126af3ec52c00f07de8d5cfac7e79b9 | Java | grazielags/cpAbril2019 | /Rony/Java/Modulo 3/Aulas/src/Aula5/Exercicio1.java | ISO-8859-1 | 1,869 | 3.546875 | 4 | [] | no_license | package Aula5;
//problema
import javax.swing.JOptionPane;
public class Exercicio1 {
public static void main(String[] args) {
JOptionPane.showMessageDialog(null,
" Uma empresa possui 10 funcionrios. Ela resolveu realizar uma pesquisa "
+ "entre seus funcionrios, coletando dados sobre o salrio e nmero de f... | true |
322f453c13a8c55dfd22cfc13694798387d86ee4 | Java | MalcevaElena/IntroductionJava | /src/by/java_online/modul4/aggregation_and_composition/task4/main/Main.java | UTF-8 | 3,427 | 3.265625 | 3 | [] | no_license | package by.java_online.modul4.aggregation_and_composition.task4.main;
import by.java_online.modul4.aggregation_and_composition.task4.view.Show;
import by.java_online.modul4.aggregation_and_composition.task4.entity.Account;
import by.java_online.modul4.aggregation_and_composition.task4.entity.Bank;
import by.java_onlin... | true |
aaac61400f3884fe7f5beb279ffb8acc593bca9b | Java | tanxiaolong77/metro | /metro-service/src/main/java/com/metro/dao/RankMapper.java | UTF-8 | 161 | 1.539063 | 2 | [] | no_license | package com.metro.dao;
import com.metro.basic.EntityDao;
import com.metro.model.Rank;
public interface RankMapper extends EntityDao<Rank,String>{
} | true |
7798eb468e338e4eeba81abd9c463af1e5d55e96 | Java | cherishxibao/lang | /app/src/main/java/com/huang/myfirstmap/demo/fragment/FragmentAdapter.java | UTF-8 | 3,149 | 2.65625 | 3 | [] | no_license | package com.huang.myfirstmap.demo.fragment;
import java.util.List;
import android.content.Context;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentTransaction;
import android.widget.RadioGroup;
/**
* Created by huang on 2016/5/19.
*/
pub... | true |
0ce2e1c62107be9fb7c1b1a970913c18856eba4a | Java | huahangwanghao/java_thread | /src/main/java/com/wanghao/thread/productAndCustomer/MainDemo.java | UTF-8 | 967 | 2.671875 | 3 | [] | no_license | package com.wanghao.thread.productAndCustomer;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.LinkedBlockingQueue;
public class MainDemo {
public static BlockingQueue<PCData> queue=new LinkedBlockingQueue<PCD... | true |
66763a96820af2589fd91964e9bc39c41220cd5d | Java | CR7WO/mas-service | /src/main/java/com/wh/mas/model/Submit.java | UTF-8 | 1,080 | 2.015625 | 2 | [] | no_license | package com.wh.mas.model;
import lombok.Data;
@Data
public class Submit {
private String ecName;// String 企业名称。
private String apId;// String 接口账号用户名。
private String mobiles;// String 收信手机号码。英文逗号分隔,每批次限5000个号码,例:“13800138000,13800138001,13800138002”。
private String content;// String 短信内容。
private ... | true |
89e8546fd9d87d8d611d9946889df59f8ff7e451 | Java | farabiabdelwahe/NearbyTeacherA | /app/src/main/java/layout/MyteacherProfile.java | UTF-8 | 8,272 | 1.703125 | 2 | [] | no_license | package layout;
import android.app.AlertDialog;
import android.content.ContentUris;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.g... | true |
079de1dd2af2a8ebbc862ef7fdcdaed97ac8b615 | Java | Gretel17/No-lo-se-Ejemplo | /calculadorasimple/src/calculadorasimple/calculos.java | UTF-8 | 2,565 | 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.
*/
package calculadorasimple;
import java.util.Scanner;
/**
*
* @author grete
*/
public class calculos {
In... | true |
7d1f96bc84add2c289756e56ddd0838b6466ad45 | Java | TianciGG/SSMIntegrationAndVideoWebsiteDevelop | /videowebsite-service/src/main/java/chauncy/service/VideoTypeServive.java | UTF-8 | 394 | 1.804688 | 2 | [] | no_license | package chauncy.service;
import java.util.List;
import chauncy.entity.VideoType;
public interface VideoTypeServive {
/**
* @methodDesc: 功能描述(查询所有的视频类型)
* @author: ChauncyWang
* @param: @return
* @createTime: 2019年4月28日 下午1:47:19
* @returnType: List<VideoType>
*/
public List<VideoType> ... | true |
34a34e83cbcd460334f8cb1ef9a1125b865d213a | Java | elmot/ev3javabrick | /ev3-common/src/main/java/elmot/javabrick/ev3/impl/FactoryBase.java | UTF-8 | 970 | 2.859375 | 3 | [] | no_license | package elmot.javabrick.ev3.impl;
import elmot.javabrick.ev3.EV3;
import java.io.IOException;
/**
* @author elmot
*/
public class FactoryBase {
public static final int DIRECT_REPLY = 2;
private static final int SYSTEM_REPLY = 3;
protected final EV3 brick;
protected FactoryBase(EV3 brick) {
... | true |
1e3558959c9ef02ec3bd99749c2f964d723980cb | Java | okay456okay/7d-mall-microservice | /mall-portal/src/main/java/com/dunshan/mall/portal/dao/SmsCouponHistoryDao.java | UTF-8 | 589 | 1.859375 | 2 | [
"Apache-2.0"
] | permissive | package com.dunshan.mall.portal.dao;
import com.dunshan.mall.model.SmsCoupon;
import com.dunshan.mall.portal.domain.SmsCouponHistoryDetail;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* 会员优惠券领取历史自定义Dao
* Created by dunshan on 2018/8/29.
... | true |
910089f1d21586c0dad1b5c0497f0afd9af3f7ed | Java | Mahamurahti/DesignPattern-Exercises | /Exercise 13/src/visitor/bulbasaurLine/BulbasaurState.java | UTF-8 | 1,361 | 3.25 | 3 | [] | no_license | package visitor.bulbasaurLine;
import visitor.*;
public class BulbasaurState implements IIEvolutionState {
private static BulbasaurState instance;
private BulbasaurState() {}
public static BulbasaurState getInstance(){
if(instance == null)
instance = new BulbasaurState();
Sy... | true |
99dc26cd57dd2826988503d7c19022bf32377b6f | Java | bellmit/lsxy-yunhuni-peer-internet | /module-service/src/main/java/com/lsxy/yunhuni/apicertificate/service/ApiCertificateServiceImpl.java | UTF-8 | 3,634 | 1.9375 | 2 | [] | no_license | package com.lsxy.yunhuni.apicertificate.service;
import com.lsxy.framework.api.base.BaseDaoInterface;
import com.lsxy.framework.api.tenant.model.Tenant;
import com.lsxy.framework.api.tenant.service.TenantService;
import com.lsxy.framework.base.AbstractService;
import com.lsxy.framework.core.exceptions.MatchMutiEntitie... | true |
0fc5bf648e0b5fb8f9069d5997a45afc1a3b3379 | Java | niceaska/GameProject | /app/src/main/java/ru/niceaska/gameproject/di/components/FLMscreenComponent.java | UTF-8 | 597 | 1.929688 | 2 | [] | no_license | package ru.niceaska.gameproject.di.components;
import dagger.Component;
import ru.niceaska.gameproject.di.modules.FLMscreenModule;
import ru.niceaska.gameproject.di.modules.UtilsModule;
import ru.niceaska.gameproject.di.scopes.ScreenScope;
import ru.niceaska.gameproject.presentation.view.fragments.GameStartFragment;
... | true |
f0c5ec48dcf7e6a4bdf02e72d9f66c4810e11db6 | Java | MatiasComercio/ati | /src/main/java/ar/edu/itba/ati/idp/function/filter/mask/linear/LaplaceMask.java | UTF-8 | 656 | 2.375 | 2 | [
"MIT"
] | permissive | package ar.edu.itba.ati.idp.function.filter.mask.linear;
public class LaplaceMask extends AbstractLinearMask {
private static LaplaceMask instance;
private static final double[][] BASE_MASK = new double[][] {
{ 0, -1, 0 },
{ -1, 4, -1 },
{ 0, -1, 0 },
};
private LaplaceMask() {
sup... | true |
855849a022f0ad3955239b8bca065a3c7b945005 | Java | musaid53/hfrw | /trade-service/src/main/java/io/spring/workshop/tradingservice/QuotesClient.java | UTF-8 | 932 | 2.609375 | 3 | [] | no_license | package io.spring.workshop.tradingservice;
import org.springframework.stereotype.Component;
import org.springframework.web.reactive.function.client.WebClient;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import java.math.BigDecimal;
import java.time.Duration;
@Component
public class Quotes... | true |
c102e5be1c2b7799731d2f4960f3917c9bc2c80b | Java | madhu2401/Playground | /Extract second last digit/Main.java | UTF-8 | 117 | 2.03125 | 2 | [] | no_license | #include<stdio.h>
int main()
{
int a,scnd=0;
scanf("%d",&a);
scnd=(a/10)%10;
printf("%d",scnd);
return 0;
} | true |
e8df1201a66a6434debc91df782c496233dd3500 | Java | cmFodWx5YWRhdjEyMTA5/smell-and-machine-learning | /ast_results/SASAbus_SASAbus/app/src/main/java/it/sasabz/android/sasabus/data/network/rest/api/SurveyApi.java | UTF-8 | 1,208 | 1.820313 | 2 | [] | no_license | // isComment
package it.sasabz.android.sasabus.data.network.rest.api;
import android.content.Context;
import it.sasabz.android.sasabus.data.model.trip.Trip;
import it.sasabz.android.sasabus.data.network.rest.Endpoint;
import it.sasabz.android.sasabus.data.network.rest.model.CloudTrip;
import retrofit2.http.Body;
impor... | true |
1c455ccec3a1f014ba673c4569220f44a7b1b69e | Java | TheoBrindejoncENI/ENI-Encheres | /src/fr/eni/enienchere/dal/ConnectionProvider.java | UTF-8 | 516 | 2.109375 | 2 | [] | no_license | package fr.eni.enienchere.dal;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
/**
*
* @author ehourman2019
*
*/
public abstract class ConnectionProvider {
public static Session session;
static {
SessionFactory sessionFactory = new Confi... | true |
3c84df51c3f1e10ae05cf118c2e09f2c1d5fc861 | Java | xiayouli0122/PhoneAssist | /src/com/yuri/phoneassistant/PANotificationManager.java | UTF-8 | 3,007 | 1.757813 | 2 | [] | no_license | package com.yuri.phoneassistant;
import android.annotation.TargetApi;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import com.yuri.phoneassistant.Log;
import android.wid... | true |
b2b1ba98434b4cf7fc1342c5c3c91dbf90ae1fd5 | Java | joaomanoelaureliano/ContratoWebApp | /src/main/webapp/img/Java_POO/aula27-03-2018/aula27-03-2018/src/fontes/exemploMetodos.java | UTF-8 | 684 | 3.359375 | 3 | [
"Apache-2.0",
"CC-BY-3.0"
] | permissive | package fontes;
import javax.swing.JOptionPane;
public class exemploMetodos {
public static void mostraTexto(String msg){
JOptionPane.showMessageDialog(null, msg);
}
public static void mostraInteiro(int numero){
numero = numero * 2;
JOptionPane.showMessageDialog(null,"No método: "+... | true |
7bac7fddfaa566ec0b595b2ab111459598a51fd2 | Java | Abs-Zer0/ConsoleEncoder | /ConsoleEncoder/src/main/java/console/encoding/encoder/algorithm/CaesarAlgorithm.java | WINDOWS-1251 | 3,046 | 3.1875 | 3 | [
"Apache-2.0"
] | permissive | /*
* 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 console.encoding.encoder.algorithm;
import console.encoding.encoder.Algorithm;
import java.io.IOException;
import java.io.Read... | true |
fc5df2f3f2cd32e265dbf643a6a74a75ec106fa3 | Java | karlwu2013/leetcode-demo | /src/main/java/com/leetcode/KSimilarity.java | UTF-8 | 4,325 | 3.859375 | 4 | [] | no_license | package com.leetcode;
public class KSimilarity {
/**
* 如果可以通过将 A 中的两个小写字母精确地交换位置 K 次得到与 B 相等的字符串,我们称字符串 A 和 B 的相似度为 K(K 为非负整数)。
* 给定两个字母异位词 A 和 B ,返回 A 和 B 的相似度 K 的最小值。
* 1 <= A.length == B.length <= 20
* A 和 B 只包含集合 {'a', 'b', 'c', 'd', 'e', 'f'} 中的小写字母。
*
* 例:
* 输入:A = "abac", ... | true |
26e8e2f25c43077dc5c9241e6e585684fb61bd80 | Java | bothmagic/marxenter-labs | /java.labs/jdnc-trunk/src/weebib/java/org/jdesktop/swingx/whiteboard/tools/RectangleTool.java | UTF-8 | 3,750 | 2.59375 | 3 | [] | no_license | /*
* $Id: RectangleTool.java 830 2006-08-02 00:39:24Z weebib $
*
* Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle,
* Santa Clara, California 95054, U.S.A. All rights reserved.
*/
package org.jdesktop.swingx.whiteboard.tools;
import org.jdesktop.swingx.whiteboard.ShapeItem;
import javax.sw... | true |
91cecaea8092c4f62d5f033954ed798386004b69 | Java | anhdang094/course-evaluation | /src/main/java/thanhtuu/springmvc/Service/UsersService.java | UTF-8 | 2,194 | 2.421875 | 2 | [] | no_license | package thanhtuu.springmvc.Service;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import thanhtuu.springmvc.Dao.StudentMapper;
import thanhtuu.springmvc.Dao.TeacherMapper;
import than... | true |
ebe8b1bad737dcfb6ce4bfcdb01ac3b7c1f2e679 | Java | P79N6A/icse_20_user_study | /methods/Method_55894.java | UTF-8 | 298 | 1.625 | 2 | [] | no_license | /**
* Unsafe version of: {@link #cuProfilerInitialize ProfilerInitialize}
*/
public static int ncuProfilerInitialize(long configFile,long outputFile,int outputMode){
long __functionAddress=Functions.ProfilerInitialize;
return callPPI(configFile,outputFile,outputMode,__functionAddress);
}
| true |
b03698413b7bf331f1497a6761be8f579702e5f0 | Java | Guirdo/hello-world | /Tec/6to semestre/Graficacion/CuboEsfera3D/src/tresde/Cubo.java | UTF-8 | 1,838 | 2.65625 | 3 | [] | no_license | package tresde;
import java.applet.Applet;
import java.awt.BorderLayout;
import java.awt.GraphicsConfiguration;
import java.awt.HeadlessException;
import org.scijava.java3d.BoundingSphere;
import org.scijava.java3d.BranchGroup;
import org.scijava.java3d.Canvas3D;
import org.scijava.java3d.DirectionalLight;
import org.... | true |
c6cf46b72b6c99aa480eb5e862c0595ddab94655 | Java | apache/iotdb | /iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/parser/SqlParseError.java | UTF-8 | 2,462 | 1.8125 | 2 | [
"Apache-2.0",
"BSD-3-Clause",
"EPL-1.0",
"CDDL-1.1",
"MIT",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | 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 |
754775667cdd8704e0fbac05ed5c09d880a95c2d | Java | yahyaMohahadi/HW14plus | /app/src/main/java/com/example/hw14/database/WordRepository.java | UTF-8 | 4,511 | 2.546875 | 3 | [] | no_license | package com.example.hw14.database;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import androidx.room.Room;
import com.example.hw14.model.Language;
import com.example.hw14.model.Word;
import java.util.List;
public class WordR... | true |
c27de081369360b9588a54cdb89efcdf0eb489d7 | Java | yang714/Test_Project | /src/Index_signout/index_SO.java | UTF-8 | 1,225 | 1.828125 | 2 | [] | no_license | package Index_signout;
import javax.servlet.RequestDispatcher;
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;
@WebServlet("... | true |
848c48157046467af6be087630791bdcdb6a50a6 | Java | squarlhan/jluccst | /crm/src/com/boan/crm/sellreport/monthly/action/MonthlyItemInfoAction.java | UTF-8 | 6,336 | 2.015625 | 2 | [] | no_license | package com.boan.crm.sellreport.monthly.action;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import o... | true |
5a4d87944610060237b979fe1618f34a4c677f71 | Java | youngdeveloperVN/JAVA_WEB_FULLSTACK | /2. Back-end/1. JavaCore/Tham khảo/Demo JavaCore/HelloWorld/src/com/javacore/basic/string/MainDate.java | UTF-8 | 171 | 2.078125 | 2 | [] | no_license | package com.javacore.basic.string;
import java.util.Date;
public class MainDate {
public static void main(String[] args) {
Date today = new Date();
}
}
| true |
4e706a04d650ff6c17c5176925079908aa341db8 | Java | jeffrschneider/OpenBookSystem | /MeaningDisambiguator/code/coreference/src/java/es/ua/first/coreference/SpanishDefiniteDescription.java | UTF-8 | 60,806 | 2.3125 | 2 | [
"MIT"
] | permissive | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package es.ua.first.coreference;
import es.ua.first.coreference.util.AnaphoricExpresion;
import es.ua.first.coreference.util.Mention;
import es.upv.xmlutils.XMLUtils;
import java.io.*;
import java.util.*;
import java.ut... | true |
add4cb1f2fa9c329b5907c21917c071239488497 | Java | KristinaTverdohleb/Algorithms | /src/main/java/ua/epam/Arithmetic.java | UTF-8 | 323 | 2.703125 | 3 | [] | no_license | package ua.epam;
/**
* Created by Kristina_Tverdokhlib on 9/9/2016.
*/
class Arithmetics {
public double add(double a, double b) {
return a + b;
}
public double deduct(double a, double b) {
return a - b;
}
public double mult(double a, double b) {
return a*b;
}
}
... | true |
557bef58f8b61e751a4925e3abeb8865e8fafbbb | Java | binani/eTender | /src/com/dts/etender/model/Quatation.java | UTF-8 | 2,273 | 1.96875 | 2 | [] | no_license | /**
*
*/
package com.dts.etender.model;
/**
* @author JAVAPROJECTS
*
*/
public class Quatation {
private int quatatonID;
private int tenderID;
private String suppierName;
private String dDNo;
private String BidPostDate;
private int quantity;
private String spesification;
private double... | true |
f9774e86843fb6806b980e5d9a673edbad20c83c | Java | yuyong0214/juc | /src/main/java/com/yong/juc/learnlock/ReenterLockDemo.java | UTF-8 | 1,990 | 3.609375 | 4 | [] | no_license | package com.yong.juc.learnlock;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
class Phone {
public synchronized void sendSms() {
System.out.println(Thread.currentThread().getName() + "\t sendSms");
sendEmail();
}
... | true |
e2892e19616b89be4997f9223c636e57f9a17009 | Java | abejfehr/magic-realm | /src/com/magicrealm/server/controller/Sunset.java | UTF-8 | 677 | 2.703125 | 3 | [
"MIT"
] | permissive | package com.magicrealm.server.controller;
import com.magicrealm.common.network.NetworkController;
import com.magicrealm.common.packet.PhaseEndPacket;
public class Sunset {
public static void start() {
System.out.println("The sun is setting.");
end();
}
public static void end() {
System.out.println("The ... | true |
190a41ac9fbdebe602b65a297fb3991a8578008c | Java | Tbestf/ShopLight | /src/com/light/service/impl/LightServiceImpl.java | UTF-8 | 3,101 | 1.992188 | 2 | [] | no_license | package com.light.service.impl;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.light.dao.ILightDao;
import com.light.dao.impl.LightDaoImpl;... | true |
b6c48e32dc4938a0cd7a16d6d8d622e1c6bdc86d | Java | heey17/RaiseAPet | /RaiseAPet-eun/src/main/java/com/icia/project/controller/BeautyController.java | UTF-8 | 3,164 | 2.34375 | 2 | [] | no_license | package com.icia.project.controller;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation... | true |
0063ff7b3acf0ced8ceb858d998fd4d632a5dc1c | Java | luoyuxia/ocle | /src/ro/ubbcluj/lci/uml/behavioralElements/actions/readWriteActions/associationActions/LinkEndDataImpl.java | UTF-8 | 2,169 | 2.203125 | 2 | [] | no_license | package ro.ubbcluj.lci.uml.behavioralElements.actions.readWriteActions.associationActions;
import java.util.Collections;
import java.util.Enumeration;
import java.util.LinkedHashSet;
import java.util.Set;
import ro.ubbcluj.lci.uml.ChangeEventObject;
import ro.ubbcluj.lci.uml.RepositoryChangeAgent;
import ro.ubbcluj.lc... | true |
92310e062bfb172c7d839cb61983d40099b818ab | Java | ReaperClown/api-meeting-room | /src/main/java/com/manager/room/meeting/meetingroom/repository/RoomRepository.java | UTF-8 | 313 | 1.679688 | 2 | [] | no_license | package com.manager.room.meeting.meetingroom.repository;
import com.manager.room.meeting.meetingroom.model.Room;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface RoomRepository extends JpaRepository<Room,Long> {
}
| true |
445faafb9e5951f8822f0019b9ae91d5a4365c4b | Java | fajar0402/darden-automation | /src/test/java/platform/ios/sanity/HomeTest.java | UTF-8 | 714 | 2.1875 | 2 | [] | no_license | package platform.ios.sanity;
import org.junit.Assert;
import org.junit.Test;
import platform.ios.runner.BaseIOSTest;
/**
* Created by C07HJAXNDJD0 on 6/14/16.
*/
public class HomeTest extends BaseIOSTest {
@Test
public void Sprint1_HomeScreen(){
homePage.locationModalAllowBtn.click();
homeP... | true |
ef53d5e0a8cc4456c703a8f314ed94bd1a763b58 | Java | shanluhaiya/haiya-mircroservices-cloud | /haiya-demos/springboot-security-jdbc/src/main/java/com/haiya/springboot/security/config/JspRedirectConfig.java | UTF-8 | 976 | 2.125 | 2 | [] | no_license | package com.haiya.springboot.security.config;
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
import org.springframework.boot.web.server.WebServerFactoryCustomizer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
impo... | true |
034cfec9c9657c9b5c2f5ed1f6632195b0f1ddc9 | Java | agdturner/agdt-java-project-UKFinancialInequality | /src/main/java/uk/ac/leeds/ccg/projects/ukfi/chart/WIGB_LineGraph.java | UTF-8 | 5,291 | 1.9375 | 2 | [
"Apache-2.0"
] | permissive | /*
*
* Copyright 2018 Andy Turner, The University of Leeds, UK.
*
* 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... | true |
a83056667c103db185c2778fb17d4d1638750d19 | Java | JulianCabreraS/grpc-java-course | /src/main/java/com/github/simplesteph/grpc/calculator/server/CalculatorServiceImpl.java | UTF-8 | 4,556 | 2.8125 | 3 | [] | no_license | package com.github.simplesteph.grpc.calculator.server;
import com.proto.calculator.proto.Calculator;
import com.proto.calculator.proto.CalculatorServiceGrpc;
import com.proto.calculator.proto.Calculator.ComputeAverageResponse;
import com.proto.calculator.proto.Calculator.ComputeAverageRequest;
import io.grpc.Status;
i... | true |
885e597e7f43abcf8ef7ce244b5aab129d560b08 | Java | Omaima94/TCII | /PD1/src/test/java/BasicStatisticTest.java | UTF-8 | 1,409 | 3.046875 | 3 | [] | no_license | import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
public class BasicStatisticTest {
BasicStatistic basicStatistic = new BasicStatistic();;
@Test
public void basicStatisticConstructor() {
Assert.assertEquals(basicStatistic.getDataItems().si... | true |
f8fd65a8bfac35d126502ad06e4ccccefc7bbbe5 | Java | damozhiying/casbin-auth-server | /src/main/java/cn/limbo/auth/service/EnforcerServiceImpl.java | UTF-8 | 4,048 | 2.203125 | 2 | [] | no_license | package cn.limbo.auth.service;
import cn.hutool.core.util.EnumUtil;
import cn.hutool.core.util.IdUtil;
import cn.limbo.auth.enums.ModelStatus;
import cn.limbo.auth.model.CasbinModel;
import cn.limbo.auth.entity.SysUserEnforceEntity;
import cn.limbo.auth.repo.CasbinModelRepo;
import lombok.extern.slf4j.Slf4j;
import or... | true |
3dc86bbb6f7a138d2017f3bf6b241b21412defee | Java | Entrementes/tupan | /tupan-server/src/main/java/org/entrementes/tupan/resources/TupanExceptionHandler.java | UTF-8 | 1,547 | 2.140625 | 2 | [] | no_license | package org.entrementes.tupan.resources;
import org.entrementes.tupan.entities.SmartAppliance;
import org.entrementes.tupan.expection.*;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframewor... | true |
a53b06e6c9fde7438d2ea1a21e2977e7b2ba9818 | Java | Aliraza07/Assignment4Services | /app/src/main/java/com/example/user/assignment4service/MainActivity.java | UTF-8 | 2,066 | 2.28125 | 2 | [] | no_license | package com.example.user.assignment4service;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import org.greenro... | true |
71890c6c99783e72f77568e0682c1a953a2a5557 | Java | AReetz/laughing-octo-archer | /src/net/hlw5a/TinMan/UI/TMTableCellRenderer.java | UTF-8 | 997 | 2.5625 | 3 | [] | no_license | package net.hlw5a.TinMan.UI;
import java.awt.Color;
import java.awt.Component;
import javax.swing.JLabel;
import javax.swing.JTable;
import javax.swing.border.EmptyBorder;
import javax.swing.table.DefaultTableCellRenderer;
public class TMTableCellRenderer extends DefaultTableCellRenderer {
private static final lon... | true |
104d50a93269a819614bdeaa19c11357a6feb48e | Java | taiz/creamy | /sample_apps/computer_database/src/models/Computer.java | UTF-8 | 3,439 | 2.6875 | 3 | [] | no_license | package models;
import com.avaje.ebean.Page;
import creamy.db.Model;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.va... | true |
9f9363de7938fd32a1556b1176ba0907a425c5e5 | Java | renbin1990/AlgorithmCHUNZHAO | /Week_02/src/recursion/minDepth.java | UTF-8 | 2,101 | 4.28125 | 4 | [] | no_license | package recursion;
/**
* 111. 二叉树的最小深度
* 给定一个二叉树,找出其最小深度。
*
* 最小深度是从根节点到最近叶子节点的最短路径上的节点数量。
*
* 说明:叶子节点是指没有子节点的节点。
*/
public class minDepth {
public static void main(String[] args) {
}
public int minDepthTwo(TreeNode root){
if (root==null){
return 0;
}
int left ... | true |
5479aba7ba3b84550b499ad2cb4cd2d27faf2b75 | Java | abx13/Project-Java---Car-Race | /src/simulation/SimulationMVC.java | UTF-8 | 6,865 | 2.84375 | 3 | [] | no_license | package simulation;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.EOFException;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import circuit.Circuit;
import circuit.Terrain;
import circuit.TerrainException;
i... | true |
baf8bb4135e91b3da0469e5fe239da546dd35e5c | Java | lucuslally/SeleniumTraining | /src/Basics/BooleanDatatype.java | UTF-8 | 1,210 | 3.8125 | 4 | [] | no_license | public class BooleanDatatype {
public static void main(String[] args){
boolean bol = true;
System.out.println(10<20);
int first_num = 10;
int sec_num = 20;
int third_num = 30;
String abc = "Welcome to Selenium tutorial";
String def = "Welcome to Selenium t... | true |
d649e7c9de9b562ee660ca11c5807cbae6b7297c | Java | hegphegp/xinyue-game-frame | /game-frame-server/game-common/src/main/java/com/xinyue/utils/NettyUtil.java | UTF-8 | 946 | 2.296875 | 2 | [] | no_license | package com.xinyue.utils;
import java.net.InetSocketAddress;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.ByteBufAllocator;
import io.netty.channel.ChannelHandlerContext;
import io.netty.util.CharsetUtil;
import io.netty.util.ReferenceCountUtil;
public class NettyUtil {
private static byte[] CrcFactor = n... | true |
35530177f33a3ff649389d02dd34602115ac2b22 | Java | wangdiskater/project2_9527 | /src/main/java/com/cskaoyan/controller/wx/coupon/CouponController.java | UTF-8 | 2,945 | 2.125 | 2 | [] | no_license | package com.cskaoyan.controller.wx.coupon;
import com.cskaoyan.bean.Coupon;
import com.cskaoyan.bean.CouponId;
import com.cskaoyan.service.wx.coupon.CouponService;
import com.cskaoyan.vo.BaseRespVo;
import com.cskaoyan.vo.wx.coupon.CouponVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.spr... | true |
afec3e9b7467f9e38db4239dbfabbf0604510a6d | Java | xtl1889/Dex_Demo | /app/src/main/java/com/example/lee/dex_demo/modle/User.java | UTF-8 | 205 | 1.648438 | 2 | [] | no_license | package com.example.lee.dex_demo.modle;
/**
* Created by lianbinbo on 2016/12/1 11:23.
*/
public class User {
private void setBianLiang(){
for (int i = 0; i < 23; i++) {
}
}
}
| true |
90cfb380d4fe4b6138ccdf092a3c5975f3394fc5 | Java | blueskyxi3/report-engine-citictel | /src/test/java/com/citictel/ReportSrpingBootApplicationTests.java | UTF-8 | 1,254 | 1.679688 | 2 | [] | no_license | package com.citictel;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import com.citictel.report.jobhandler.ReportJobHandler;... | true |
a01e5b955af58e209d8f00ddf0889f422aa63c7c | Java | DyachukPavlo/Spirng-boot-application | /src/main/java/com/andoliny/scheduller/Schedule.java | UTF-8 | 1,878 | 2.296875 | 2 | [] | no_license | package com.andoliny.scheduller;
import com.andoliny.model.entities.Journal;
import com.andoliny.model.entities.User;
import com.andoliny.service.interfaces.JournalService;
import com.andoliny.service.interfaces.UserDataService;
import com.andoliny.service.interfaces.UserService;
import com.andoliny.utils.Averenger;
i... | true |
d6ef51dd5429871042a116a63cffc3be71b00cb2 | Java | ZJOBS/springboot_framework | /console/src/main/java/jiezhang/console/config/ViewResolverConfiguration.java | UTF-8 | 731 | 1.859375 | 2 | [
"Apache-2.0"
] | permissive | package jiezhang.console.config;
import jiezhang.config.BaseViewResolverConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.ViewResolver;
import org.springframework.web.servlet.view.freemarker.FreeMarkerV... | true |
3719b6b5523f7af7366149803c0f275a39b0f632 | Java | pinkpinkpink/Book | /src/main/java/org/onjava8/fourOperator/Bool.java | UTF-8 | 751 | 3.359375 | 3 | [] | no_license | package org.onjava8.fourOperator;
import java.util.Random;
/**
* 描述:
*
* @author wangyifan
* @create 2020-07-13 8:06 下午
*/
public class Bool {
public static void main(String[] args) {
Random random = new Random(34);
int i = random.nextInt(100);
int j = random.nextInt(100);
Sys... | true |
3a8dd3b93d671299c4c042c053c33148323426df | Java | Zamirk/Third-year-project | /Game/core/src/game/game/gameObjects/enemy/worldOne/boss/EnBossOne.java | UTF-8 | 6,655 | 2.140625 | 2 | [] | no_license | package game.game.gameObjects.enemy.worldOne.boss;
import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.physics.box2d.Body;
import com.badlogic.gdx.physics.box2d.BodyDef;
import co... | true |
3b63d697e2b6fcde60327c48b1a5ed4aa35ada5a | Java | saikrir/Netscanner | /src/main/java/org/saikrishna/apps/scanner/task/IPAddressRangeScanTask.java | UTF-8 | 1,627 | 2.734375 | 3 | [] | no_license | package org.saikrishna.apps.scanner.task;
import org.saikrishna.apps.model.LookupResult;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.Callable;
import static org.saikrishna.apps.scanner.tas... | true |
5a1925ac74be88c77451cc7c8df8a56bd2ed5e61 | Java | AutomationTestingD/codingbat-solutions | /java/Array-3/maxSpan.java | UTF-8 | 276 | 2.859375 | 3 | [] | no_license | public int maxSpan(int[] nums) {
int span = 0;
int tmp = 0;
for (int i = 0; i < nums.length; i++) {
for (int j = 0; j < nums.length; j++) {
if (nums[i] == nums[j]) {
tmp = j-i+1;
span = Math.max(tmp,span);
}
}
}
return span;
}
| true |
c25e646a2732ebf04a063469bfb8f52d1761e604 | Java | p112/AndroidChess | /ChessGame/src/Game.java | UTF-8 | 7,371 | 3.109375 | 3 | [] | no_license | import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import java.awt.event.KeyEvent;
import java.awt.event.ActionEvent;
import javax.swing.KeyStroke;
import javax.swing.SwingUtilities;
import java.awt.event.ActionListener;
/**
* The <code>Game</code> class is... | true |
d7b321e038edf22e3195fb38815cfd97545ed0c5 | Java | noeppi-noeppi/PumpkinPotions | /src/main/java/pumpkinpotions/annotation/KeepConstructor.java | UTF-8 | 459 | 2.21875 | 2 | [
"Apache-2.0"
] | permissive | package pumpkinpotions.annotation;
import java.lang.annotation.*;
/**
* The signature of a constructor marked with {@code @KeepConstructor} must be kept
* in all non-abstract subclasses. There might be additional constructors but you must
* provide one with the exact signature as the annotated one as the reflectio... | true |
6bef15fa056e13d08e7a882bd4c5f3605c3b58be | Java | prasad-vsv/geeksforgeeks | /src/DynamicProgramming/CuttingARod.java | UTF-8 | 3,249 | 3.421875 | 3 | [] | no_license | package DynamicProgramming;
import java.util.Scanner;
public class CuttingARod {
static Scanner s = new Scanner(System.in);
public static int getNextInt() {
return Integer.parseInt(s.nextLine());
}
public static long getNextLong() {
return Long.parseLong(s.nextLine());
}
public static int[] getNextIntege... | true |
4827da7a322d3d443c68e3e238497b34655cd6e4 | Java | erlkoing/miss | /MiSS project/src/pl/edu/agh/miss/PlatformRegistry.java | UTF-8 | 806 | 2.296875 | 2 | [] | no_license | package pl.edu.agh.miss;
import jadex.bridge.IComponentIdentifier;
import java.util.ArrayList;
import java.util.List;
public class PlatformRegistry {
private static PlatformRegistry platformRegistry;
private List<IComponentIdentifier> registeredIds = new ArrayList<IComponentIdentifier>();
private Pl... | true |
8a120018bbcb6692d4219a84396bc0ea89d5c6f4 | Java | Thuy19032000/Rocket_12 | /Java/Testing_system_11/src/main/java/com/vti/backend/presentation/DepartmentController.java | UTF-8 | 648 | 2.046875 | 2 | [] | no_license | package com.vti.backend.presentation;
import java.lang.ModuleLayer.Controller;
import java.util.List;
import com.vti.backend.business.DepartmentService;
import com.vti.backend.business.IDepartmentService;
import com.vti.entity.Department;
public class DepartmentController {
private IDepartmentService depService;
... | true |
5e04c67e21b0315435a6314391f86e98fada3468 | Java | OtaTomomi/Spring | /src/main/java/board/mapper/BranchMapper.java | UTF-8 | 142 | 1.828125 | 2 | [] | no_license | package board.mapper;
import java.util.List;
import board.entity.Branch;
public interface BranchMapper {
List<Branch> getBranchAll();
}
| true |
295b55227fa44baf23a733707d2990ee20bb5729 | Java | austinlogo/callbell_android | /app/src/test/java/staticTestData/TestData.java | UTF-8 | 1,223 | 2.203125 | 2 | [] | no_license | package staticTestData;
import com.callbell.callbell.models.State.State;
import java.util.ArrayList;
import java.util.Arrays;
/**
* Created by austin on 11/30/15.
*/
public class TestData {
public static State state_bed() {
return new State("TEST",
"ER",
"1",
... | true |
e1f12772531382ae05644b68355d6303c5d09c52 | Java | AdamGapinski/DiceMaster | /Server/src/main/java/agh/to2/dicemaster/game/ngames/GameRunner.java | UTF-8 | 3,232 | 2.609375 | 3 | [] | no_license | package agh.to2.dicemaster.game.ngames;
import agh.to2.dicemaster.common.api.GameDTO;
import agh.to2.dicemaster.common.api.MoveDTO;
import agh.to2.dicemaster.common.api.UserInGame;
import agh.to2.dicemaster.game.nmodel.Player;
import agh.to2.dicemaster.game.nmodel.Timer;
import agh.to2.dicemaster.server.api.GamePartic... | true |
6809f3fb1a1fff86e6ff098afb6f1af5e91a0f70 | Java | alinvasile/disertatie | /BileteParcare/bileteparcare-common/src/main/java/com/alin/disertatie/bileteonline/dao/oracle/PriceBandOracleRepository.java | UTF-8 | 1,963 | 2.40625 | 2 | [] | no_license | package com.alin.disertatie.bileteonline.dao.oracle;
import java.util.List;
import org.springframework.dao.EmptyResultDataAccessException;
import org.springframework.jdbc.core.simple.ParameterizedBeanPropertyRowMapper;
import com.alin.disertatie.bileteonline.dao.PriceBandRepository;
import com.alin.disertatie.bilete... | true |
e180ac962d66226e73249932d7d89bbffaa71dea | Java | chris-burn/Olympic_SOLID | /app/src/main/java/com/example/user/olympicssolid/Athlete.java | UTF-8 | 1,212 | 2.96875 | 3 | [] | no_license | package com.example.user.olympicssolid;
import static android.os.Looper.prepare;
/**
* Created by user on 27/06/2017.
*/
public abstract class Athlete {
protected int pointsA;
protected int pointsB;
protected String medalColour;
// protected AthleteLog logger;
abstract int calculatePoints();
... | true |
6abbc86e964492d6950b7df0593fef899c9a2157 | Java | wujunbiao1002/esms | /src/main/java/com/esms/dao/WorkingYearsBonusMapper.java | UTF-8 | 638 | 1.890625 | 2 | [] | no_license | package com.esms.dao;
import com.esms.po.WorkingYearsBonus;
import java.util.List;
public interface WorkingYearsBonusMapper {
int deleteByPrimaryKey(Integer wybId);
int insert(WorkingYearsBonus record);
int insertSelective(WorkingYearsBonus record);
WorkingYearsBonus selectByPrimaryKey(Integer wyb... | true |
15883e09843f09aa5ddb02c2ac770fa54fb92dac | Java | qingjianmoxie/project | /root/src/test/java/com/bob/root/concrete/javassist/CompilerByJavassist.java | UTF-8 | 5,078 | 2.71875 | 3 | [] | no_license | package com.bob.root.concrete.javassist;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import javassist.ClassPool;
i... | true |
9ea176588a58c3875c8f577f8e5ff79a8dbc0526 | Java | asolis/skeletonPruning | /src/util/Contours/ContourTracer.java | UTF-8 | 8,080 | 2.296875 | 2 | [
"BSD-3-Clause"
] | permissive | /**************************************************************************************************
**************************************************************************************************
BSD 3-Clause License (https://www.tldrlegal.com/l/bsd3)
Copyright (c) 2012 Jochen Lang <https://www.site.uotta... | true |
d5ce33105aa76bd3c87fef58ea81f95158d79631 | Java | zteeed/tempmail-apks | /sources-2020-11-04-tempmail/sources/com/google/android/gms/measurement/internal/u6.java | UTF-8 | 835 | 1.710938 | 2 | [] | no_license | package com.google.android.gms.measurement.internal;
/* compiled from: com.google.android.gms:play-services-measurement-impl@@17.4.3 */
final class u6 implements Runnable {
/* renamed from: b reason: collision with root package name */
private final /* synthetic */ zzem f10455b;
/* renamed from: c reas... | true |
a280050dc19948225bc204b7c5b76b1a216947ab | Java | andremachado35/Paradigmas_programacao_1 | /Livro - exercicios/COLECCOES/TREEMAPS/Standard.java | UTF-8 | 268 | 2.359375 | 2 | [] | no_license |
/**
* Interface Standard
*
* Implementam Standard todas as classes que implementem
* equals(), clone() e toString()
*
* @author PPIV
* @version 06-2004
*/
public interface Standard {
boolean equals(Object o);
Object clone();
String toString();
}
| true |
8790c4a387aceca8984aebe39b30383119948445 | Java | Hubermlima/hibernateCrudJava | /src/test/java/br/com/projecthibernate/TesteHibernate.java | UTF-8 | 3,349 | 2.796875 | 3 | [] | no_license | package br.com.projecthibernate;
import java.util.List;
import javax.persistence.EntityManager;
import org.junit.Test;
import dao.GenericDao;
import model.Telefone;
import model.UsuarioPessoa;
public class TesteHibernate {
@Test
public void addTest() {
GenericDao<UsuarioPessoa> generic... | true |
f00c1caf2e46450d9026bdf27001b524050ebe56 | Java | vmanjunath13/myprojects | /Mobile Applications/NewsGateway/app/src/main/java/com/example/vaish/as5/NewsArticleFragment.java | UTF-8 | 8,090 | 1.945313 | 2 | [] | no_license | package com.example.vaish.as5;
import android.content.Intent;
import android.net.NetworkInfo;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.view.View;
import and... | true |
11a528ec827def1bf22d1b986d70558de39bfb4a | Java | vrushalib/MeatRootDev | /kkeclipse/src/com/konakart/app/GetWishListWithItems.java | UTF-8 | 568 | 2.0625 | 2 | [] | no_license | package com.konakart.app;
import com.konakart.appif.*;
/**
* The KonaKart Custom Engine - GetWishListWithItems - Generated by CreateKKCustomEng
*/
@SuppressWarnings("all")
public class GetWishListWithItems
{
KKEng kkEng = null;
/**
* Constructor
*/
public GetWishListWithItems(KKEng _kkEng)
... | true |
f05700f4b6ac96f6beb0d1ef8a71e6e2a59e624f | Java | palantir/atlasdb | /atlasdb-commons/src/main/java/com/palantir/util/AssertUtils.java | UTF-8 | 6,598 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | /*
* (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | true |
88ce6b80217d9e6a85182284281ffd3f1c03259b | Java | toberole/helloapt | /ByteCodeOP/src/main/java/com/cat/zeus/bcop/asm/ASMTest.java | UTF-8 | 1,768 | 2.8125 | 3 | [] | no_license | package com.cat.zeus.bcop.asm;
import org.objectweb.asm.ClassReader;
import org.objectweb.asm.ClassWriter;
import java.io.FileInputStream;
import java.io.FileOutputStream;
public class ASMTest {
public static void main(String[] args) {
System.out.println("****** main ******");
}
public static ... | true |
5e428ef237f78c521700f68590d590c85cc596cf | Java | treejames/github-demo | /policy/src/com/android/internal/policy/impl/keyguard/FMHelper.java | UTF-8 | 11,215 | 1.554688 | 2 | [] | no_license | package com.android.internal.policy.impl.keyguard;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.content.res.Resources;
import android.graphics.drawable.AnimationDrawable;
import android.graphics.drawable.Dr... | true |
b1765cbd5262289fbcde48cf69122463cb0a7b64 | Java | string01/rm_cr | /src/main/java/com/ocr/cash_register/Calculator.java | UTF-8 | 3,388 | 2.625 | 3 | [] | no_license | package com.ocr.cash_register;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.Optional;
/**
* Class to encapsulate the core calculation methods for the CashRegister.
*/
@Component... | true |
0dd49cc57f065b5af04b1ba55ffa777f79a0f598 | Java | shiva94/MyProjects | /ServDemo1/src/com/demo/EvenOdd.java | UTF-8 | 1,366 | 2.71875 | 3 | [] | no_license | package com.demo;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRes... | true |
10593c7e457e01555ace89021bbb675e9a1d6ce5 | Java | whitejoke/WLDemo | /app/src/main/java/com/hdit/wldemo/activity/CosmetologyActivity.java | UTF-8 | 3,508 | 2.015625 | 2 | [] | no_license | package com.hdit.wldemo.activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.StaggeredGridLayoutManager;
import android.support.v7.widget.Toolbar;
import android.view.View... | true |
aa0a47a0476046819911a8317f29855e041b0e42 | Java | gitter-badger/third-party-api | /third-party-api-pay-weixin-sdk/src/main/java/cn/shishuihao/thirdparty/api/pay/weixin/sdk/request/AbstractWxPayXmlRequest.java | UTF-8 | 3,016 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | package cn.shishuihao.thirdparty.api.pay.weixin.sdk.request;
import cn.shishuihao.thirdparty.api.pay.weixin.sdk.domain.SignType;
import cn.shishuihao.thirdparty.api.pay.weixin.sdk.util.XmlUtils;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamConverter;
impo... | true |
5ccbfcf69862ac1ccf24c15b89ee2eb9c9477d86 | Java | jeremieds/GestionContact | /GestionContact/src/org/lip6/struts/actionForm/AddContactGroupValidationForm.java | UTF-8 | 921 | 2.078125 | 2 | [] | no_license | package org.lip6.struts.actionForm;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;
public class AddContactGroupValidationForm extends org.apache.struts.action.ActionForm {
... | true |
a7e8965837b739e2302a865c8d13b0022b97fdb6 | Java | entalent/Explorer | /app/src/main/java/cn/edu/bit/cs/explorer/ui/customview/FileListItem.java | UTF-8 | 5,446 | 2.34375 | 2 | [] | no_license | package cn.edu.bit.cs.explorer.ui.customview;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.CheckBox;
import android.widget.ImageView;... | true |
613408d054db84c4c061100d187563ef6b6c42d2 | Java | SaxionHBO-ICT/topicus-portal | /app/src/main/java/nl/saxion/jelmer/topics/model/User.java | UTF-8 | 1,054 | 2.71875 | 3 | [] | no_license | package nl.saxion.jelmer.topics.model;
/**
* This class represents a User.
*/
public class User {
private int userId;
private String username, password, name, surname;
public User(String username, String password, String name, String surname) {
this.username = username;
this.passwor... | true |
d2f15e2d815716fb8ee19c0adb936dbbd920397c | Java | GoranDrazic/VKWebProject | /src/main/java/com/vk/tottenham/main/App.java | UTF-8 | 961 | 2.25 | 2 | [] | no_license | package com.vk.tottenham.main;
import java.util.Date;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.vk.tottenham.core.model.Article;
public class App
{
public static void main( String[] args )
{
Applicatio... | true |
88a28cb0520bb33b62fc98bf8c2ba7bb48149a6a | Java | abernardi597/pop-sim | /example/repel/RWorld.java | UTF-8 | 1,558 | 2.828125 | 3 | [
"MIT"
] | permissive | package example.repel;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.input.*;
import javafx.scene.paint.Color;
import net.popsim.src.simu.*;
public class RWorld extends World {
public RWorld(Simulation simulation, Context context) {
super(simulation, context);
}
@Override
p... | true |
1bbfcee0d831bcd51612120192787f0297436b25 | Java | pwojnowski/hackerrank-solutions | /java/src/main/java/poligon/statistics/MeanMedianMode.java | UTF-8 | 655 | 2.9375 | 3 | [] | no_license | package poligon.statistics;
import java.util.Arrays;
import java.util.Scanner;
import static poligon.statistics.StatFunctions.*;
public class MeanMedianMode {
private static final String SAMPLE_INPUT = "10\n" +
"64630 11735 14216 99233 14470 4978 73429 38120 51135 67060";
public static void mai... | true |