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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
6f92f2286603d04ea744cb7ebfd4fa0178d2ff8e | Java | lizm335/MyLizm | /com.gzedu.xlims.pojo/src/main/java/com/gzedu/xlims/pojo/GjtExemptExamProve.java | UTF-8 | 4,303 | 1.9375 | 2 | [] | no_license | package com.gzedu.xlims.pojo;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
imp... | true |
23b543d0affaa653ff51c7b9455b274e418678d5 | Java | Tads98/Jogo-de-Plataforma-educacional | /main.java | UTF-8 | 940 | 2.859375 | 3 | [] | no_license | package game;
import java.awt.Dimension;
import java.awt.event.KeyEvent;
import javax.swing.JFrame;
public class Main extends JFrame{
public int numeroproc;
public Main(String titulo, Dimension tamanho) {
// setTitle define o titulo que irá aparecer na janela
setTitle(titulo);
// setSize define o taman... | true |
5d94bf75e170d782dc64c61868860160222b550a | Java | hubgitter/adventofcode | /src/test/java/test/java/domain/OrbitTest.java | UTF-8 | 362 | 1.867188 | 2 | [] | no_license | package test.java.domain;
import main.java.domain.Computer;
import main.java.domain.Orbit;
import org.junit.jupiter.api.Test;
import java.util.Arrays;
import java.util.List;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class OrbitTest {
@Test
public void testExecution1() {
Or... | true |
923afa16fd713123d03c47a8ed210bbedb501066 | Java | silionXi/KnowledgePoint | /01_HeiMa/Java/day08Java/code/2_extends/Demo7Extends.java | GB18030 | 562 | 3.5625 | 4 | [] | no_license | class Demo7Extends {
public static void main(String[] args) {
Iphone4s i = new Iphone4s(); //,ȴҷ,ûҸ
i.siri();
i.call();
}
}
class Iphone4 {
public void siri() {
System.out.println("speak english");
}
public void call() {
System.out.println("call");
}
public Iphone4(){}
}
class Iphone4s extends Ip... | true |
8e26211669b415edccac93b8d70adbcd51ed35a2 | Java | gsettembre/SmartMuseum | /app/src/main/java/com/example/gaeta/myapplication/Opere.java | UTF-8 | 1,777 | 2.375 | 2 | [] | no_license | package com.example.gaeta.myapplication;
/**
* PJDCC - Classe che modella l'oggetto opera.
*
* @authors Oranger Edoardo, Settembre Gaetano, Recchia Vito, Marchese Vito
* @version 1.0
*/
public class Opere {
private String id;
private String titolo;
private String autore;
private String corrente;
... | true |
0baab8d2b1c15a1eed959bca52035ad1b0933c71 | Java | deluda/com-virtual-app | /virtual-classroom/src/main/java/com/vcclass/app/Controllers/CourseController.java | UTF-8 | 4,237 | 2.25 | 2 | [] | no_license | package com.vcclass.app.Controllers;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Controller;
import org.springfra... | true |
2f4d43c4bf404f452e61ec867ebeb68597e8562b | Java | mindobiee/java-workspace | /java_01/src/day02_dataType/Prob2.java | UTF-8 | 1,572 | 3.78125 | 4 | [] | no_license | package day02_dataType;
import javax.swing.JOptionPane;
public class Prob2 {
public static void main(String[] args) {
int num = Integer.parseInt(JOptionPane.showInputDialog("숫자를 입력하세요."));
// 오른쪽 항이 string 타입이므로 정수로 파싱하는 작업 필요!
// dialog 창을 통한 사용자가 직접 숫자 입력!
System.out.printf("%d = ",num);
//삼항... | true |
c574e42eb5c4cab4dd4177dadde6dfd2fd21446e | Java | mur47x111/CompilerTesting | /src/inlining/TestSuite.java | UTF-8 | 412 | 1.90625 | 2 | [] | no_license | package inlining;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
@RunWith(Suite.class)
@SuiteClasses({ SimpleMethod.class, SimpleMethodInSlowPath.class,
AnnotatedMethod.class, ComplicatedMethod.class,
ComplicatedMethodInSlowPath.class, PolyMethod1.cla... | true |
f69f14f3358e6a99ad30db5f67009aac5437bcf5 | Java | kubilaycicek/NoteApp | /noteApp/src/main/java/com/kubilaycicek/mynotepro/api/NoteTypeRestController.java | UTF-8 | 1,668 | 2.125 | 2 | [] | no_license | package com.kubilaycicek.mynotepro.api;
import com.kubilaycicek.mynotepro.constant.Mappings;
import com.kubilaycicek.mynotepro.request.NoteRequest;
import com.kubilaycicek.mynotepro.request.NoteTypeRequest;
import com.kubilaycicek.mynotepro.response.NoteTypeListResponse;
import com.kubilaycicek.mynotepro.response.Not... | true |
ca8e0b7459809f3f7295ccd3572f003715485d09 | Java | rrmcinty/FXAssignments | /src/fxAssignments/Handler.java | UTF-8 | 5,799 | 3.15625 | 3 | [] | no_license | package fxAssignments;
import java.io.EOFException;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.Collections;
import java.util.It... | true |
5317deddf262c34ef1cb0d7870fb974f17b84445 | Java | Karthick986/REST-API-with-MySQL | /src/main/java/com/springwithsql/springwithsql/SpringwithsqlApplication.java | UTF-8 | 337 | 1.546875 | 2 | [] | no_license | package com.springwithsql.springwithsql;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SpringwithsqlApplication {
public static void main(String[] args) {
SpringApplication.run(SpringwithsqlApplication.cl... | true |
b1beb5b0c8f0f30b82e1c8ae1190974a28fb1afe | Java | MiYazJE/Acepta-el-reto | /p622.java | UTF-8 | 636 | 3.09375 | 3 | [] | no_license | import java.util.Scanner;
public class p622 {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int sum, n, nota, posible;
while (true) {
n = s.nextInt();
if (n == 0) break;
sum = 0;
for (int i = 0; i < n; i++) s... | true |
4dc5b1e8847ffb5e3f25065a74f895c3ec445282 | Java | brunosantanati/1Z0-808 | /src/main/java/me/brunosantana/exam4/package1/Test49.java | UTF-8 | 414 | 2.65625 | 3 | [] | no_license | package me.brunosantana.exam4.package1;
public class Test49 {
static String msg; //Line 2
public static void main(String[] args) {
//String msg; //Line 4
String msg = "fix"; //FIX
if(args.length > 0) {
msg = args[0]; //Line 6
}
System.out.println(msg); //Line 8 ... | true |
9ecbb1ff08aa348ba7bf62743cd2d4d2f3557cfe | Java | lcd555/nutz- | /jee14436121/src/lcd/qt/FileSrv.java | UTF-8 | 8,998 | 1.945313 | 2 | [] | no_license | package lcd.qt;
import java.io.IOException;
import java.io.OutputStream;
import java.math.BigDecimal;
import java.util.List;
import java.util.UUID;
import javax.servlet.http.HttpServletResponse;
import jxl.Workbook;
import jxl.format.Border;
import jxl.format.BorderLineStyle;
import jxl.write.Label;
import jxl.write... | true |
5b7dd2a63744bb8921847d7c4413bf051c6a66e9 | Java | a12791602/newlottery | /Lottery/app/src/main/java/com/international/wtw/lottery/adapter/base/NewRecyclerViewBaseAdapter.java | UTF-8 | 2,017 | 2.15625 | 2 | [] | no_license | package com.international.wtw.lottery.adapter.base;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.international.wtw.lottery.R;
im... | true |
1babe0c1d5cc529af9383f03664a2af0930eee91 | Java | ericvinicius/cursojava | /Funcionarios/Empresa.java | UTF-8 | 142 | 2.5 | 2 | [] | no_license | class Empresa{
int qtd = 0;
Funcionario[] empregados;
void adiciona(Funcionario f){
this.empregados[this.qtd] = f;
this.qtd++;
}
}
| true |
6224809b58a33f4b5e4cdd0eb213782b2a0c31df | Java | ca450097852/ecp | /ecp/.svn/pristine/cb/cb1f9a54486227dfddd1fa582199fe60ffee5860.svn-base | UTF-8 | 2,776 | 2.046875 | 2 | [] | no_license | package com.hontek.order.model;
/**
* @ClassName: TbRefund
* @Description: TODO(订单退款信息表)
* @date 2015-6-26 下午05:00:05
* @author qql
* @version 1.0
*/
public class TbRefund {
private Integer orderId;
private Integer refundId;
private Integer memberIdSale;
private Integer memberIdBuy;
privat... | true |
574ac75d44ed148746303a9e660c3476363d2a74 | Java | Raviy02/TestAutomation | /Healthcare/src/main/java/PageActions/UserCitizenshipActions.java | UTF-8 | 716 | 2.28125 | 2 | [] | no_license | package PageActions;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import commonmethods.ActionSelenium;
public class UserCitizenshipActions {
static WebDriver driver;
public UserCitizenshipActions(WebDriver driver) {
this.driver = driver;
}
public static void verifyPageTi... | true |
f9fe83ebbc1776f09f8123a7ee0acf5f254dda2e | Java | 897180673/nettyStudy | /src/main/java/com/study/demo/pipelineStudy/TestChannelInBoundHandler.java | UTF-8 | 1,052 | 2.59375 | 3 | [] | no_license | package com.study.demo.pipelineStudy;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
public class TestChannelInBoundHandler extends ChannelInboundHandlerAdapter {
private final String name;
private final boolean flush;
public TestChannelInBoundHandler(... | true |
b429c62e064730d094b729926e379c50eff8e581 | Java | amitmca/Spring | /Spring-Boot/SpringBootJdbcSingleDataSource/src/main/java/com/virtusa/springboot/jdbc/dao/CustomerDao.java | UTF-8 | 1,189 | 2.59375 | 3 | [] | no_license | package com.virtusa.springboot.jdbc.dao;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import com.virtusa.springboot.jdbc.model.... | true |
0eed3766b98fe5267ac4ca8bd5df5797ef0f9dd9 | Java | Skippper/dataStructLearn | /dataStructLearn/src/com/atguigu/stack/PolandNotation.java | UTF-8 | 7,321 | 3.515625 | 4 | [] | no_license | package com.atguigu.stack;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Stack;
public class PolandNotation {
public static void main(String[] args) {
//
String suffixExpression = "30 4 + 5 * 6 -";
String suffixExpression2 = "1 2 3 + 4 *... | true |
3be39305fdf451c65ab9139116f902a2fd0c20d0 | Java | 1657895829/XiaoEr_EveryDayExam | /RiKao07_Retrofit+RxJava+MVP+RecyView+Fresco/src/main/java/app/dhw/com/rikao07_retrofitrxjavamvpxrecyviewfresco/presenter/MyPresenter.java | UTF-8 | 2,956 | 2.75 | 3 | [] | no_license | package app.dhw.com.rikao07_retrofitrxjavamvpxrecyviewfresco.presenter;
// Presenter层,进行view层与model数据的交互
import app.dhw.com.rikao07_retrofitrxjavamvpxrecyviewfresco.bean.Bean;
import app.dhw.com.rikao07_retrofitrxjavamvpxrecyviewfresco.model.ModelCallBack;
import app.dhw.com.rikao07_retrofitrxjavamvpxrecyviewfresco.mo... | true |
fa40acbf5f32841eb6f7bfb053394528b727e81c | Java | mefilt/consulo-unity3d | /src/org/mustbe/consulo/unity3d/module/Unity3dRootMutableModuleExtension.java | UTF-8 | 2,636 | 1.6875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2013-2014 must-be.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | true |
0226720dd08583a2858064bf725ff93a042c1e0e | Java | eswarbody/Tutorials | /CoreJava/src 2/main/java/com/java/w3schools/blog/java8/stream/intstream/IntStreamAllMatchExample.java | UTF-8 | 1,155 | 4.0625 | 4 | [] | no_license | package com.java.w3schools.blog.java8.stream.intstream;
import java.util.function.IntPredicate;
import java.util.stream.IntStream;
/**
* Java 8 IntStream allMatch() Method Example
*
* @author venkateshn
*
*/
public class IntStreamAllMatchExample {
public static void main(String[] args) {
// Even numbers tes... | true |
4044851d9ed50563b89026c5682e622239c46459 | Java | arijitmajumder/preparation | /src/intuit/amazon2.java | UTF-8 | 1,644 | 3.0625 | 3 | [] | no_license | package intuit;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
import java.util.Stack;
import java.util.StringTokenizer;
public class amazon2
{
public s... | true |
e0d45aa05c7f77c9d72304e6563b4fea8e1f8d05 | Java | acsstandby/osproject | /wl-itmuch-search/src/main/java/com/osyunge2/search/mapper/ItemMapper.java | UTF-8 | 166 | 1.703125 | 2 | [] | no_license | package com.osyunge2.search.mapper;
import com.osyunge2.search.pojo.Item;
import java.util.List;
public interface ItemMapper {
List<Item> importAllItemList();
}
| true |
fbf7043fedd31e343380b1d300f0d4c77c4401fb | Java | Integer-Studios/Pixel-Realms-Server-Archive | /src/com/pixel/interior/Building.java | UTF-8 | 1,999 | 2.8125 | 3 | [] | no_license | package com.pixel.interior;
import java.util.ArrayList;
import com.pixel.world.WorldServer;
public class Building {
public static ArrayList<BuildingInfo> info = new ArrayList<BuildingInfo>();
public int worldID;
public int id, x, y, width, height;
public InteriorWorld interior;
public BuildingDoor door;
pu... | true |
00836f6da62cbe4aa2dba86eb542bbd9532fef04 | Java | Nader002/ESPRIT-EntreAide | /src/com/esprit/EspritEntreAid/entities/Objet.java | UTF-8 | 4,656 | 2.109375 | 2 | [] | 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 com.esprit.EspritEntreAid.entities;
/**
*
* @author user
*/
public class Objet {
private int id_objet;
private i... | true |
b9ec6a886cd0b7266e62ef4ebf96d5c9a31b5b01 | Java | corya-bowles/Hash-Functions | /src/HashFunctions.java | UTF-8 | 6,421 | 3.375 | 3 | [] | no_license | import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Arrays;
/**
* Properties of hash functions project.
*
* Selects an arbitrary 8-byte 64-bit message M
* and determines its hash H(M). Message M is then
* non-cumulatively changed L(M) amount of times
* L being the a... | true |
df38575443ebb466b815b6cb9986e86330b76c37 | Java | jhu-digital-manuscripts/rosa2 | /rosa-iiif/rosa-iiif-presentation-model/src/main/java/rosa/iiif/presentation/model/IIIFImageService.java | UTF-8 | 3,062 | 2.515625 | 3 | [] | no_license | package rosa.iiif.presentation.model;
import java.util.Arrays;
public class IIIFImageService extends Service {
private static final long serialVersionUID = 1L;
private int width;
private int height;
private int tileWidth;
private int tileHeight;
private int[] scaleFactors;
public IIIFIm... | true |
ec270fe8db704e2c58f136b3325fe6710cea159f | Java | Mattia26/CarLoan | /CarLoan/src/presentation/ui/controller/LoginController.java | UTF-8 | 1,514 | 2.609375 | 3 | [] | no_license | package presentation.ui.controller;
import java.net.URL;
import java.util.ArrayList;
import java.util.ResourceBundle;
import presentation.FrontController;
import presentation.ViewDispatcher;
import utility.InputController;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
imp... | true |
b3960fb80d59320d7ecf7acb1f374dd3a2242a81 | Java | bvengadesh/gtug-attendance | /Attendance-Android/src/org/brussels/gtug/attendance/C2DMReceiver.java | UTF-8 | 4,010 | 2.046875 | 2 | [] | no_license | /*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | true |
636a2242fb866fc0c6471679e55041b9e9993ddb | Java | ramith005/ELF-06June19-TechChefs-RamithK | /hibernateapp/src/main/java/com/techchefs/hibernateapp/SaveDemo.java | UTF-8 | 1,802 | 2.625 | 3 | [] | no_license | package com.techchefs.hibernateapp;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;
import com.techchefs.hibernate.util.HibernateUt... | true |
1a20668cb339ba1655b586aba50fdf80ae71cf0b | Java | lanshifu/FFmpegDemo | /src/main/java/com/tomatolive/library/ui/view/widget/matisse/internal/ui/widget/IncapableDialog.java | UTF-8 | 1,663 | 2.015625 | 2 | [] | no_license | package com.tomatolive.library.ui.view.widget.matisse.internal.ui.widget;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.DialogFragment;
import ... | true |
6f50b50e2a5cd63fa88994c6587f9f3320c210da | Java | broccolibird/UdacityBuildItBigger | /javajokes/src/main/java/com/katmitchell/Joker.java | UTF-8 | 747 | 3.375 | 3 | [] | no_license | package com.katmitchell;
import java.util.Random;
public class Joker {
public static final String[] JOKES = {
"Q: How do you tell an introverted computer scientist from an extroverted computer scientist?\n"
+ "A: An extroverted computer scientist looks at your shoes when he talks ... | true |
cb2f531fa2b367b8e53ee6f4182240e11b8b69a3 | Java | yanush82/Loveholidays_Jryn | /src/main/java/com/loveholidays/Pages/homepage/Homepage.java | UTF-8 | 3,304 | 1.945313 | 2 | [] | no_license | package com.loveholidays.Pages.homepage;
import com.loveholidays.Pages.utils.DriverSetting;
import com.sun.org.apache.bcel.internal.generic.RETURN;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
/*
* Janusz Ryn 23-02-2018
*/
public class Homepage {
//Header
//Newslet... | true |
9b1ad6156de4fc70b00e0b3bec0d7e1b81a82550 | Java | rkunche/vue_testProject | /app/src/main/java/com/test/vue/vuetest/domain/ProductBase.java | UTF-8 | 2,513 | 1.953125 | 2 | [] | no_license | package com.test.vue.vuetest.domain;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.googlecode.objectify.annotation.Index;
import java.util.List;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@EqualsAndHashCode
@NoArgsConstructor
public... | true |
8b32ffc37ac1b98ecee449dc76729cb27ccaa088 | Java | 16348104/16348104.github.com | /java/src/exception/IOExceptionTest.java | UTF-8 | 408 | 2.578125 | 3 | [] | no_license | package exception;
import java.io.IOException;
/**
* Created by xdx on 2015/11/5.
*/
public class IOExceptionTest {
public static void test() throws IOException {
throw new IOException();
}
public static void main(String[] args) {
try {
test();
} catch (IOException e) {
... | true |
457d38ce2c4abd6c93c2f16ba4c79662451d5dfb | Java | vasco-santos/AveiroHandicraft_DistributedSystem | /SD_T3_P04_G02/src/comInf/States/CustomerState.java | UTF-8 | 1,134 | 3.109375 | 3 | [] | no_license | package comInf.States;
import java.io.Serializable;
/**
* Constants that characterise the internal state of the Customer.
* @author andrealves
*/
public enum CustomerState implements isAnEntitie, Serializable
{
CARRYING_DAILY_CHORES("CDC"), // the customer is living his normal life
CHECKING_SHOP_DOO... | true |
a9d6e68a7003feec64d82e107e4bfc89e76efedc | Java | hanziweilove/alogrithm | /src/array/KPairsWithSmallestSum_M.java | UTF-8 | 2,295 | 3.734375 | 4 | [] | no_license | package array;
import java.util.ArrayList;
import java.util.List;
import java.util.PriorityQueue;
/**
* Created by ziweihan on 1/17/20.
*
* 373. Find K Pairs with Smallest Sums
*
* You are given two integer arrays nums1 and nums2 sorted in ascending order and an integer k.
Define a pair (u,v) which consists of... | true |
92c08ec98f70d459e0b335e0353a5d7c1f4427e7 | Java | cqqyd2014/bfkjs | /src/main/java/com/cqqyd2014/order/all_orders/ajax/action/ChangeExpressAction.java | UTF-8 | 2,938 | 1.765625 | 2 | [] | no_license | package com.cqqyd2014.order.all_orders.ajax.action;
import java.util.Map;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.InterceptorRef;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.ParentPackage;
i... | true |
fe30251edf5aeb89a634e1b1d6c6f55252bb26bb | Java | dongpengfei2/springcloud | /cloud-common-jmf/src/main/java/com.dpf.springcloud/WaterMark.java | UTF-8 | 2,442 | 2.96875 | 3 | [] | no_license | package com.dpf.springcloud;
import com.sun.image.codec.jpeg.JPEGCodec;
import com.sun.image.codec.jpeg.JPEGImageEncoder;
import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.geom.Ellipse2D;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOExceptio... | true |
e802a5e4384ae124aac5b9081856a6984f4a2f38 | Java | erikjber/plsomlib | /java/src/test/java/org/plsomlib/recursive/IEStateLessRecursivePLSOM2Test.java | UTF-8 | 1,391 | 2.71875 | 3 | [
"Unlicense"
] | permissive | package org.plsomlib.recursive;
import java.util.Random;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class IEStateLessRecursivePLSOM2Test
{
@Before
public void setUp() throws Exception
{
}
@After
public void tearDown() throws Exception
{
}
/**
* ... | true |
5e3e9caeaa96e970606a5465f1bf68d8abb5efc6 | Java | marcosppastor/MSV83 | /tools/src/net/.svn/text-base/RecvOpcode.java.netbeans-base | UTF-8 | 5,043 | 1.765625 | 2 | [
"MIT"
] | permissive | /*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero Genera... | true |
0d53c443d29fa1d3c16588d1359032daa3afac94 | Java | dadaoros/my_team | /app/src/main/java/com/mugen/myteam/View/FragmentTabs/CalendarFragment.java | UTF-8 | 4,492 | 1.976563 | 2 | [] | no_license | package com.mugen.myteam.View.FragmentTabs;
import android.content.Context;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.widget.SwipeRefreshLayout;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
i... | true |
2b431e22757d28e2735ac20b8876ef283ae128bb | Java | AnjuJohnson/24-NEWS-APP | /mobile/src/main/java/com/tfApp/android/newstv/view/activity/HolderActivity.java | UTF-8 | 4,742 | 1.773438 | 2 | [] | no_license | package com.tfApp.android.newstv.view.activity;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AlertDialog;
import android.support.v7.widget.GridLayoutManager;
imp... | true |
a6ef4f67878b9316eb8aaeacd719aff7d085905c | Java | DanilaGri/Get-weather | /app/src/main/java/com/my/testwork/data/remote/WeatherService.java | UTF-8 | 1,465 | 2.390625 | 2 | [] | no_license | package com.my.testwork.data.remote;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.my.testwork.data.model.ResponseData;
import retrofit2.Retrofit;
import retrofit2.adapter.rxjava.RxJavaCallAdapterFactory;
import retrofit2.converter.gson.GsonConverterFactory;
import retrofit2.http.GET;
im... | true |
c653176b27f5815c0dded6f59d8f86b62e828263 | Java | maximdrive/FinalTask1 | /src1/com/controller/Controller.java | UTF-8 | 1,207 | 2.140625 | 2 | [] | no_license | package com.controller;
import com.controller.command.Command;
import com.controller.command.CommandName;
import com.servise.exception.ServiceException;
import com.view.StartProcess;
public class Controller {
private final CommandProvider provider = new CommandProvider();
private int idUser = -1;
priva... | true |
8aae6e2470d07b1c37a06600bcf1fb9a59638c92 | Java | kelloggm/synapse | /scratch/synapse2/modules/core/src/org/apache/synapse/mediators/MediatorProperty.java | UTF-8 | 2,258 | 1.828125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2004,2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | true |
b7a56d8ff9386f8e54d9f573e4fd89db1aaed446 | Java | ryanlfoster/ep-commerce-engine-68 | /storefront/ep-storefront/src/main/java/com/elasticpath/sfweb/controller/impl/AddressFormControllerImpl.java | UTF-8 | 8,331 | 1.976563 | 2 | [] | no_license | /*
* Copyright (c) Elastic Path Software Inc., 2006
*/
package com.elasticpath.sfweb.controller.impl;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger;
import org.springframework.validation.BindException;
import org.springframework.web.bind.... | true |
2ce239bf031584cade021ef487ac41734475d428 | Java | Ajith20/MeggyJava-compiler | /mjsim-1.1/RegressionTesting/IntegerEqual.java | UTF-8 | 310 | 3.078125 | 3 | [] | no_license | import meggy.Meggy;
class IntegerEqual
{
public static void main(String[] args)
{{
new Lol().thing(255);
}}
}
class Lol {
public void thing(int lawl) {
if( 1 == lawl ) {
Meggy.setPixel((byte)0, (byte)0, Meggy.Color.RED);
} else {
Meggy.setPixel((byte)0, (byte)0, Meggy.Color.GREEN);
}
}
}
| true |
cbbed26ddbaa9b2818b6da570747ba6b9b51a07a | Java | dzt2/jcsa | /JCParse/src/com/jcsa/jcparse/lang/astree/pline/AstPreprocessIncludeLine.java | UTF-8 | 233 | 1.703125 | 2 | [] | no_license | package com.jcsa.jcparse.lang.astree.pline;
/**
* <code><b># include</b> header \n</code>
*
* @author yukimula
*/
public interface AstPreprocessIncludeLine extends AstPreprocessLine {
public AstHeader get_header();
}
| true |
6f71f36ba175936805657311c7b5bb2e514aa7bb | Java | freetomyself/travel | /src/main/java/cn/itcast/travel/dao/impl/UserDaoImpl.java | UTF-8 | 2,956 | 2.453125 | 2 | [] | no_license | package cn.itcast.travel.dao.impl;
import cn.itcast.travel.dao.UserDao;
import cn.itcast.travel.domain.User;
import cn.itcast.travel.util.JDBCUtils;
import org.springframework.dao.DataAccessException;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.JdbcTemplate;
/**
*... | true |
2c2b5eeda8046e1f424580315e05cc8942655016 | Java | sheng233233/general | /无人餐厅/rest/src/main/java/edu/zut/service/TableService.java | UTF-8 | 601 | 2.21875 | 2 | [] | no_license | package edu.zut.service;
import java.util.Map;
public interface TableService {
/**向管理员展示当前所有桌号,包括可用与不可用
*
* @return
*/
public Map<Integer,Boolean> getAll();
/**
* 分配桌号
* @return 桌号 若为0则说明暂无空位
*/
public int distribute();
/**
* 回收桌号
* @param num 回收的桌号
... | true |
dfca51fe15ddbe078bd0b32e1bb31bc48c9ffb22 | Java | FelixMorales/HulkStoreFM | /apirest/logic/mappers/src/test/java/com/apirest/logic/mappers/ToyMapperTest.java | UTF-8 | 2,374 | 2.515625 | 3 | [] | no_license | package com.apirest.logic.mappers;
import com.apirest.common.EntityFactory;
import com.apirest.common.entities.Toy;
import com.apirest.enums.MasterStatus;
import com.apirest.logic.dto.ToyDTO;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.time.LocalDate;
import static org.jun... | true |
658d06192569aef84665593aed2eb921a7d1f266 | Java | jol181873/curso | /programa1/src/biblioteca/Utilidades.java | ISO-8859-1 | 1,468 | 3 | 3 | [] | no_license | package biblioteca;
import java.security.MessageDigest;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;
public class Utilidades {
public static double getDoublePositivo() {
Scanner sc=new Scanner(System.in);
try {
double real=sc.nextDouble();
if (real<... | true |
179a8c2151dfc6e50d28087830c821ad824caa81 | Java | neil00797/Assignment-5 | /src/main/java/com/Booysen31SA/repository/appointment/impl/ReasonRepositoryImpl.java | UTF-8 | 1,743 | 2.59375 | 3 | [] | no_license | //package com.Booysen31SA.repository.appointment.impl;
//
//import com.Booysen31SA.domain.appointment.Reason;
//import com.Booysen31SA.repository.appointment.IReasonRepository;
//import org.springframework.stereotype.Repository;
//
//import java.util.HashSet;
//import java.util.Set;
//
//@Repository("ReasonInMemory")
/... | true |
860a183046941414da69fc40cdd2711a19735ba9 | Java | HaxeFoundation/intellij-haxe | /src/main/java/com/intellij/plugins/haxe/ide/completion/HaxeControllingCompletionContributor.java | UTF-8 | 6,309 | 1.765625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2000-2013 JetBrains s.r.o.
* Copyright 2014-2017 AS3Boyan
* Copyright 2014-2014 Elias Ku
*
* 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/lice... | true |
7508e1e55a281969c0960dc489cd4b9071573b77 | Java | jmcarrascal/feol | /src/main/java/jmc/feol/util/GenerateHqlFilterAndSort.java | UTF-8 | 7,338 | 2.4375 | 2 | [] | no_license | package jmc.feol.util;
import java.lang.reflect.Method;
import javax.persistence.Transient;
import jmc.util.annotation.ComposedAttribute;
public class GenerateHqlFilterAndSort {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
// System.ou... | true |
3b72a3fb656aa9851a65fae12a1c59f954b388fb | Java | Kirill3490/CoffeMachine | /model/logic/ThirdCoffeMachineWorker.java | UTF-8 | 6,621 | 3.34375 | 3 | [] | no_license | package by.bobruisk.itstep.polimorfizm.model.logic;
import java.util.Scanner;
import by.bobruisk.itstep.polimorfizm.model.data.coffe.Americano;
import by.bobruisk.itstep.polimorfizm.model.data.coffe.Latte;
import by.bobruisk.itstep.polimorfizm.model.data.coffemachine.ThirdCoffeMachine;
public class ThirdCoffeMachine... | true |
5f17f825ba34acc157cc9748b6e1a2a1d7d674da | Java | jimesanguinetti/Ejercicio2 | /RepoPrueba/Usuarios.java | UTF-8 | 1,529 | 3.125 | 3 | [] | no_license | ackage usuario;
public class Usuario {
//A: atributos
private String nombre;
private String cedula;
private String contra;
private int edad;
private int cantHijos;
private int saldo;
//B: Getters, setters, constructores
public Usuario(String nombre, String cedula, String contra... | true |
8118a7db3c6f582416d1b3b3becf28f7fbd520ed | Java | dovanduy/MegaBoicotApk | /sources/com/google/android/gms/internal/ads/ayn.java | UTF-8 | 1,487 | 1.632813 | 2 | [] | no_license | package com.google.android.gms.internal.ads;
@C3718cm
final class ayn {
/* renamed from: a */
private static final ayk f12416a = ayk.m15729a();
/* renamed from: b */
private static final float f12417b = ((Float) aoq.m14620f().mo14695a(aru.f11860bf)).floatValue();
/* renamed from: c */
privat... | true |
1f71ee03934abb8b210bdf3b24cfdb42508bbf4b | Java | atomicworld/knowledge | /src/main/java/org/atomic/java/catalog/class_/extendsModules/abstract_/ExtendsDefinitionClass.java | UTF-8 | 467 | 2.359375 | 2 | [] | no_license | package org.atomic.java.catalog.class_.extendsModules.abstract_;
/**
* 必须重写所有的抽象方法
*/
public class ExtendsDefinitionClass extends AbstractDefinitionClass {
@Override
public void say() {
System.out.println("sub class say hello world!");
}
@Override
public void publicAbMethod() {
}
... | true |
f56a3dcc6a748410016c524a617fd942d108cff3 | Java | Rashmos/Information_Retrieval_System | /org/apache/lucene/index/SegmentReader$Ref.java | UTF-8 | 922 | 2.15625 | 2 | [] | no_license | /* */ package org.apache.lucene.index;
/* */
/* */ class SegmentReader$Ref
/* */ {
/* 317 */ private int refCount = 1;
/* */
/* */ public String toString()
/* */ {
/* 321 */ return "refcount: " + this.refCount;
/* */ }
/* */
/* */ public synchronized int refCount... | true |
25f0ddb73e2c7a3c71bc41a0c9d859fa8fe8108d | Java | barros3/uri-judge-online | /src/com/barros/iniciante/GastoCombustivel.java | UTF-8 | 802 | 3.125 | 3 | [] | no_license | package com.barros.iniciante;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.util.Locale;
import java.util.Scanner;
public class GastoCombustivel {
public static void main(String[] args) {
Scanner cam = new Scanner (System.in);
final double consumo = 12;
double distanci... | true |
3e6b15c423c4c10924856692fe8216685e7e18c9 | Java | 497863419/java | /最小栈问题/MinStack.java | UTF-8 | 1,094 | 3.515625 | 4 | [] | no_license |
package com.bit.dao;
public class MinStack {
private MyStackImpl myStack1;
private MyStackImpl minStack;
public MinStack() {
myStack1 = new MyStackImpl();
minStack = new MyStackImpl();
}
public void push(int x) {
myStack1.push(x);
if(minStack.empty()) {
... | true |
12d6fe9db6d6bf6d6ba242f8cd03ee7e934de374 | Java | HDCARDENAS2/SOAPSOFT_S_CLIENTES | /src/main/java/com/soapsoft/Service/SVR_CLIENTES.java | UTF-8 | 5,192 | 2.203125 | 2 | [] | 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 com.soapsoft.Service;
import com.soapsoft.Dao.TbClientesDaoImpl;
import com.soapsoft.Model.TbClientes;
import java.ut... | true |
d20693f4721ea9260ed77cf5bbebf2b881ae8c50 | Java | aoyumei/exercise | /workManage/src/main/java/com/test/Inte.java | UTF-8 | 4,667 | 3.109375 | 3 | [] | no_license | package com.test;
import com.google.gson.Gson;
import org.junit.Test;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Queue;
import java.util.Set;
import java.util.V... | true |
1bd4e69b0ebef058e8f97752bd15b4fd5aa33137 | Java | lsinchiguanos/carof | /app/src/main/java/uteq/student/project/carof/interfaces/IComunicacionFragments.java | UTF-8 | 426 | 1.671875 | 2 | [] | no_license | package uteq.student.project.carof.interfaces;
public interface IComunicacionFragments {
void vehiculo(String id);
void addvehiculo(String id);
void editvehiculo(String id_vehiculo, String id_duenio);
void contratos();
void monitoreo();
void publicacion(String id);
void addpublicacio... | true |
e6cce8fc9ed72afedc64bc6c37e8baeb10b5b166 | Java | richardsamuellopez/advent-of-code | /day1/puzzle1/aocP1.java | UTF-8 | 1,249 | 3.65625 | 4 | [] | no_license | import java.io.*;
public class aocP1 {
public static String inputFile = "input.txt";
public static void main(String[] args) throws IOException {
System.out.println("Read input file");
FileReader fileReader = new FileReader(inputFile);
// Always wrap FileReader in BufferedReader.
BufferedReader buf... | true |
fc3d05bb0c67e657b30a1d52dd7c9d8c8049b7c5 | Java | rulerliu/ext_mybatis | /src/main/java/com/liuwq/statement/MappedStatement.java | UTF-8 | 3,394 | 2.4375 | 2 | [] | no_license | package com.liuwq.statement;
import com.liuwq.annotation.Select;
import com.liuwq.session.Configuration;
import java.lang.annotation.Annotation;
import java.util.Arrays;
/**
* @description:
* @author: liuwq
* @date: 2019/6/23 0023 20:13
* @version: V1.0
* @Copyright:该项目“基于SpringCloud2.x构建微服务电商项目”由每特教育|蚂蚁课堂版权所有,... | true |
56d574d03a38a532689a443802d247b227e7fb40 | Java | estradae21/CS-1020 | /Jgrasp/ErnestoEstrada_1_08.java | UTF-8 | 8,196 | 3.453125 | 3 | [] | no_license | /*Calculate mileage reimbursement based on a table.
This program reads the input file, creates arrays, and will calculate mileage
reimbursements using if/else/if statements. It will also keep track of the
positive numbers, numbers to process, and add the totals of the miles and
reimbursements. All of this i... | true |
fed9e02291e112e54c09478d5973b7e1041a1182 | Java | Lam-Pa/Lesson10 | /src/main/java/BuildCarModel.java | UTF-8 | 200 | 2.34375 | 2 | [] | no_license | public class BuildCarModel {
CarModel myCarModel = new CarModel.Builder()
.withName("Mustang")
.withCountry("USA")
.withHorsePower(545)
.build();
}
| true |
61d3846b4a4269579d7fed7eb21c6d214a408e76 | Java | giadohoang/CSCI-6461-SPring-2019-4.0 | /src/instructions/STR.java | WINDOWS-1252 | 2,926 | 3 | 3 | [] | no_license | package instructions;
import registers.Memory;
import registers.Registers;
public class STR extends Instructions {
String r,ix,address,i;
@Override
public void execute(String instruction, Registers register, Memory memory) {
// TODO Auto-generated method stub
//Sanity check from index 0 to 5
if(!instructi... | true |
e7b1f404dcb71936e2d050d66429f8f1ecb43222 | Java | google/framework-for-osdu | /osdu-r2/os-core-common/src/main/java/org/opengroup/osdu/core/common/legal/LegalService.java | UTF-8 | 4,296 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2020 Google LLC
* Copyright 2017-2019, Schlumberger
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... | true |
f381af0c0aed7b1dafda0e97b722a597d3ed34c6 | Java | LiXL2648/elastic-search | /api-elasticsearch/src/main/java/com/li/elasticsearch/document/UpdateDocument.java | UTF-8 | 976 | 2.109375 | 2 | [] | no_license | package com.li.elasticsearch.document;
import com.li.elasticsearch.util.EsClientUtil;
import org.elasticsearch.action.update.UpdateRequest;
import org.elasticsearch.action.update.UpdateResponse;
import org.elasticsearch.client.RequestOptions;
import org.elasticsearch.client.RestHighLevelClient;
import org.elasticsearc... | true |
40f5c6a342fd5726f6a66f2075b4c271ce42710e | Java | aslanshemilov/spring-sql-nosql | /src/main/java/com/myapp/api/repository/sql/IUserRepository.java | UTF-8 | 219 | 1.617188 | 2 | [] | no_license | package com.myapp.api.repository.sql;
import org.springframework.data.jpa.repository.JpaRepository;
import com.myapp.api.entities.sql.User;
public interface IUserRepository extends JpaRepository<User, Integer> {
}
| true |
004b3bd268ebde5eddf9cf27755eee35ad37cf08 | Java | em00n/WeatherApp-MVVM-LiveData-DataBinDing | /app/src/main/java/com/emon/weather_app_android_mvvm_architecture_livedata_databinding/model/Model.java | UTF-8 | 1,239 | 2.359375 | 2 | [] | no_license | package com.emon.weather_app_android_mvvm_architecture_livedata_databinding.model;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
public class Model {
@SerializedName("coord")
public Coord coord;
@SerializedName("sys")
public Sys sys;
@Serializ... | true |
5a596e0bb99143341ed076ddc4fda4b74940b7ac | Java | alamingazi12/borakerp | /app/src/main/java/com/example/actionbartutorial/network/ApiInterface.java | UTF-8 | 2,584 | 1.859375 | 2 | [] | no_license | package com.example.actionbartutorial.network;
import com.example.actionbartutorial.model.AllFeatures;
import com.example.actionbartutorial.model.AllTransactions;
import com.example.actionbartutorial.model.Allicon;
import com.example.actionbartutorial.model.Amount;
import com.example.actionbartutorial.model.InfoList;
... | true |
acd218f5e94adb9aacc311bfceb71b10d703c451 | Java | moshuying/androidDev | /app/src/main/java/com/example/moshuying/Unit4/receiver/MyReceiver421.java | UTF-8 | 432 | 2.03125 | 2 | [] | no_license | package com.example.moshuying.Unit4.receiver;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;
public class MyReceiver421 extends BroadcastReceiver {
public MyReceiver421(){}
@Override
public void onReceive(Context contex... | true |
2b576a559929085a1541d7bd64fc4c6509498703 | Java | tedburner/JavaExample | /src/main/java/com/example/algorithm/leetcode/code/Code86.java | UTF-8 | 1,516 | 3.53125 | 4 | [] | no_license | package com.example.algorithm.leetcode.code;
/**
* @author: lingjun.jlj
* @date: 2021/5/7 22:04
* @description: 分隔链表
* 思路:添加2个链表,分别存储小于 x 和大于等于 x 链表数据,遍历 head 链表,将链表上的数据分别存储到2个链表上,最后重新合并链表。
*/
public class Code86 {
static class ListNode {
int val;
ListNode next;
ListNode() {
}... | true |
c70f9c3d4221faffcb8b1fc17f3141ff1c5628a4 | Java | antoniojxk/votaciones | /src/main/java/co/edu/poli/sistemasdistribuidos/votaciones/initializer/ObjectParser.java | UTF-8 | 1,998 | 2.453125 | 2 | [] | no_license | package co.edu.poli.sistemasdistribuidos.votaciones.initializer;
import com.fasterxml.jackson.databind.MappingIterator;
import com.fasterxml.jackson.dataformat.csv.CsvMapper;
import com.fasterxml.jackson.dataformat.csv.CsvParser;
import com.fasterxml.jackson.dataformat.csv.CsvSchema;
import org.slf4j.Logger;
import or... | true |
031a09c9dda87a96514fd5222942e6be54193625 | Java | tsuzcx/qq_apk | /com.tencent.mm/classes.jar/com/tencent/mm/boot/svg/code/drawable/icon_volume_on.java | UTF-8 | 5,493 | 1.726563 | 2 | [] | no_license | package com.tencent.mm.boot.svg.code.drawable;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.Paint.Cap;
import android.graphics.Paint.Join;
import android.graphics.Paint.Style;
import android.graphics.Path;
import android.os.Looper;
imp... | true |
527e980a24cef80f2c334fd5d70a87d3d0586949 | Java | soxibjon3393/FoodCliente | /app/src/main/java/food/cliente/DescripcionActivity.java | UTF-8 | 12,669 | 1.921875 | 2 | [] | no_license | package food.cliente;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.MenuItem;
import android.view.View;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.Tex... | true |
551c500ff73fc0381527771af7a3327433a3a561 | Java | fixxit/MoknJ | /src/main/java/nl/it/fixx/moknj/domain/core/global/GlobalGraphView.java | UTF-8 | 1,144 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | package nl.it.fixx.moknj.domain.core.global;
/**
* This enum used to identify type of graph view this includes the date usage
*
* @author adriaan
*/
public enum GlobalGraphView {
//MONTHLY VIEWS (MONTHS AS Lables)
GBL_MTMTFY("Month to month for year (month name as x-axis)"),
GBL_MTMFD("Month to month f... | true |
6db0b9903cbed5c48f49509532209a339902057c | Java | Qodify/cameracontrolesysteem | /processor/src/main/java/kdg/be/processor/domain/offense/EmissionOffense.java | UTF-8 | 2,021 | 2.34375 | 2 | [] | no_license | package kdg.be.processor.domain.offense;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.time.LocalDateTime;
@NoArgsConstructor
@Entity(name = "emission_offenses")
@DiscriminatorValue("E")
public class EmissionOffense extends Offense {
private int carEuronorm;
private int emissionZoneE... | true |
f102406c65fd5ac20b30ebf59ca8e38d25142acd | Java | jshiying/elasticsearch-client | /elasticsearch-transport/src/main/java/org/elasticsearch/threadpool/transport/TransportThreadPoolStatsElement.java | UTF-8 | 2,551 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | package org.elasticsearch.threadpool.transport;
import java.io.IOException;
import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.common.io.stream.StreamOutput;
import org.elasticsearch.common.xcontent.ToXContent.Params;
import org.elasticsearch.common.xcontent.XContentBuilder;
import org.ela... | true |
92ff252a75ce02b9b471e8cf55f681dd38f0d6df | Java | loon0214/Double_Dragon | /Double Dragon/src/ch07/ex03/case04/Human.java | UTF-8 | 89 | 2.125 | 2 | [] | no_license | package ch07.ex03.case04;
@FunctionalInterface
public interface Human {
void say();
}
| true |
719ec4e9e40b088b4d4eaa2f4a321339d1899b5f | Java | shuangxikang/excel-converter | /src/main/java/com/ksx/tools/excel/style/YellowHeaderCellStyle.java | UTF-8 | 1,528 | 3.171875 | 3 | [] | no_license | package com.ksx.tools.excel.style;
import org.apache.poi.ss.usermodel.*;
/**
* 表头样式:黄色背景 + 黑色文本
* Created by kangshuangxi on 2017/5/22.
*/
public class YellowHeaderCellStyle implements HeaderCellStyle {
/* 是否创建表头 */
public boolean isCreateHeader = true;
/* 表头行索引 */
public int headerRowNumber = 0;... | true |
bb5b4867e95a6ffc678b98a736df9362998a0443 | Java | jgwest/socket-anywhere | /FileAnywhere/src/com/vfile/jio/JIOFileWriter.java | UTF-8 | 2,567 | 2.625 | 3 | [
"Apache-2.0"
] | permissive | /*
Copyright 2012 Jonathan West
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed ... | true |
7bf608e0dc33843270d97b65cf53909582831757 | Java | bbggs/wasil-remote-controller | /app/src/main/java/com/wasil/remotecontroller/BaseActivity.java | UTF-8 | 445 | 1.8125 | 2 | [] | no_license | package com.wasil.remotecontroller;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
/**
* Created by slomek on 25.05.17.
*/
public abstract class BaseActivity extends AppCompatActivity {
@Override
protected void onCreate(@Nullable Bund... | true |
79146d6cc212016cded3703cf304d2ccf0162496 | Java | lpy19930103/FastDev | /lib-dto/src/main/java/com/bean/LoginRes.java | UTF-8 | 10,384 | 1.914063 | 2 | [
"MIT"
] | permissive | package com.bean;
import java.util.List;
/**
* Created by lipy on 2017/9/26.
*/
public class LoginRes implements DataObject {
private String Authorization;
private UserBean user;
public String getAuthorization() {
return Authorization;
}
public void setAuthorization(String Authoriz... | true |
d0371ba01c5de9acff67b901496edf33d583461a | Java | Formation-CDA-Grenoble/s08-j2ee-tp-cmayouma | /api/src/test/java/Entity/User.java | UTF-8 | 1,099 | 2.15625 | 2 | [] | no_license | package com.example.demo.model;
import java.util.Set;
import javax.persistence.*;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
@Entity
@Table(name = "user")
@EntityListeners(AuditingEntityListener.class)
public class user {... | true |
ddd7f55d0a190eade7313ef6cc48b2191089e84a | Java | polkunus/minecraft-bukkit-compassex | /src/main/java/de/philworld/bukkit/compassex/CompassEx.java | UTF-8 | 4,063 | 2.109375 | 2 | [] | no_license | package de.philworld.bukkit.compassex;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Level;
import org.bukkit.Location;
import org.bukkit.configuration.file.FileConfiguration;
impo... | true |
cf42fd39a1286b4e652f2dfb36f876dbb01c3806 | Java | aaron3323/DemoParent | /DemoCustomer/src/main/java/com/demo/subsystem/common/Pagination.java | UTF-8 | 1,873 | 2.359375 | 2 | [] | no_license | package com.demo.subsystem.common;
import java.io.Serializable;
import java.util.List;
/**
* <p>Copyright: All Rights Reserved</p>
* <p>Description: 分页查询结果 </p>
* <p>Author:aaron</p>
* @param <T>
*/
public class Pagination<T> implements Serializable {
private static final long serialVersionUID = -707510216... | true |
8cecbffbc5843e97ae9d2a46406155b5cc32cd54 | Java | bollenzhang/jbosstools-hibernate | /plugins/org.jboss.tools.hibernate.spi/src/org/jboss/tools/hibernate/spi/ITableIdentifier.java | UTF-8 | 99 | 1.5625 | 2 | [] | no_license | package org.jboss.tools.hibernate.spi;
public interface ITableIdentifier {
String getName();
}
| true |
d6514bcda59dbffca1cac4868c38488d0b182bd5 | Java | Enidvel/SDA-ldz24-programowanie2 | /src/main/java/pl/sdacademy/intermediate/basic/Basic4Sets/Basic4Sets.java | UTF-8 | 2,697 | 3.734375 | 4 | [] | no_license | package pl.sdacademy.intermediate.basic.Basic4Sets;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.Set;
/* Wygeneruj w IntelliJ IDEA metody equals i hashCode w klasie Car, opierając je o pole VIN.
Stwórz HashSet<Car> i dodaj do niego wszystkie obiekty typu Car.
... | true |
7cf36ceadd5af6d0d01dc4e47559015fa5e78edf | Java | Sky-General/FTB | /src/me/skyGeneral/ftb/runnables/BeginMatch.java | UTF-8 | 1,139 | 2.375 | 2 | [] | no_license | package me.skyGeneral.ftb.runnables;
import java.util.Random;
import java.util.UUID;
import me.skyGeneral.ftb.Main;
import me.skyGeneral.ftb.API.Colors;
import org.bukkit.Bukkit;
import org.bukkit.World;
import org.bukkit.entity.Player;
import org.bukkit.scoreboard.DisplaySlot;
import org.bukkit.scoreboard.Objective... | true |
cf64101ff2b80aef7c9f37596f6d4557ffec7031 | Java | Challa-Saranya/Mongo | /product/src/main/java/com/cg/product/controller/ProductController.java | UTF-8 | 2,383 | 2.265625 | 2 | [] | no_license | package com.cg.product.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bi... | true |
bad83a335534e3dee2cf46b2bdc145f0de83be28 | Java | hamza-ghanam/sales_mgmt | /src/main/java/com/hamza/sales/service/CategoryService.java | UTF-8 | 1,136 | 2.359375 | 2 | [
"MIT"
] | 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 com.hamza.sales.service;
import com.hamza.sales.exception.ResourceNotFoundException;
import com.hamza.sales.model.Category;
im... | true |