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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
656208ee05d5dc2268246129fe1723768c84a142 | Java | jayrob-001/rank_test_demo | /src/test/java/integration/response/film/FilmResponse.java | UTF-8 | 542 | 2.171875 | 2 | [] | no_license | package integration.response.film;
import integration.client.AbstractRequest;
import integration.client.AbstractResponse;
import integration.model.Film;
import java.io.IOException;
public class FilmResponse extends AbstractResponse {
public FilmResponse(AbstractRequest request) {
super(request);
... | true |
3d63bd88fc33b9958515b2114f85c035a4b5bf11 | Java | migrantlion/GameProject | /src/data/Game.java | UTF-8 | 1,696 | 2.328125 | 2 | [] | no_license | package data;
import static editor.MapIO.loadHexMap;
import org.newdawn.slick.opengl.Texture;
import buildings.ProjectileType;
import buildings.SentryPost;
import buildings.TowerType;
import cartographer.BoardManager;
import helpers.Artist;
import mapping.HexGrid;
import player.Player;
import spawners.GruntCircle;
i... | true |
f522e1bc99f5254608d689467353f18e97f23ded | Java | VinoddShaVasugian/csscorp | /Unilever/src/signup/CSVRead.java | UTF-8 | 1,752 | 2.46875 | 2 | [] | no_license | package signup;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.apache.poi.ss.usermodel.Cell;
import au.com.bytecode.opencsv.CSVReader;
public class CSVRead {
public static Iterable<Cell> exportedData;
public static String exportData... | true |
c7d4e33918812d6a9a96f3a5126b878bcb840098 | Java | MrZhengliang/jredis | /testjredis/src/main/java/com/test/redis/JedisClusterConfig.java | UTF-8 | 2,973 | 2.203125 | 2 | [] | no_license | package com.test.redis;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.PropertyAccessor;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import or... | true |
a59c0ec48f53f22c6eb0d555ed3b05e574aecc38 | Java | nickman/heliosutils | /src/main/java/com/heliosapm/utils/io/CloseableService.java | UTF-8 | 4,479 | 2.671875 | 3 | [
"Apache-2.0"
] | 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 may not use this ... | true |
53c43d6e83ff66f5a0504913c4c982da9b04c26a | Java | 723854867/Iris | /Iris-app-jilu-common/src/main/java/org/Iris/app/jilu/common/util/ZkUtil.java | UTF-8 | 1,411 | 2.1875 | 2 | [] | no_license | package org.Iris.app.jilu.common.util;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import org.I0Itec.zkclient.ZkClient;
import org.Iris.app.jilu.common.model.Env;
import org.Iris.app.jilu.common.model.Config;
import org.Iris.util.common.IpUtil;
import org.Iris.util.common.SerializeUtil... | true |
ef46c9ca9af4efd898308c876a7aba5c9a271866 | Java | haxsscker/abc.parent | /abc.service/src/main/java/com/autoserve/abc/service/biz/impl/sys/SiteConfigServiceImpl.java | UTF-8 | 3,275 | 2.09375 | 2 | [] | no_license | /*
* This software is the confidential and proprietary information ("Confidential Information").
* You shall not disclose such Confidential Information and shall use it only in accordance with the terms of the license agreement.
*/
package com.autoserve.abc.service.biz.impl.sys;
import java.util.List;
import org.a... | true |
699570c6a176c61223b042c517c2be4c43d76c22 | Java | WendelHime/CafeinaCampusMaker | /Models/src/br/com/usjt/campusmaker/models/ICategoria.java | UTF-8 | 527 | 2.375 | 2 | [] | no_license | /**
*
*/
package br.com.usjt.campusmaker.models;
import java.util.Set;
/**
* @author wotan Interface created to represent a category
*/
public interface ICategoria {
Integer getId();
String getNome();
Set<ILaboratorio> getLaboratorios();
Set<IUnidade> getUnidades();
Set<ICategoria> getCategorias();
... | true |
858a55c26b580ae155a2b280a3379a851264868d | Java | philwebb/binks | /binks/src/main/java/org/springframework/binks/jar/RandomAccessJarFile.java | UTF-8 | 12,567 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | true |
b55224a85e8c815ee8807a61fbb66f210f7bf8e4 | Java | matus-krska/PA165_TP_LANGUAGE_SCHOOL | /Language-School/ServiceFacade/src/test/java/FacadeImp/StudentFacadeImplTest.java | UTF-8 | 3,587 | 2.09375 | 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 FacadeImp;
import ConfigMapper.BeanMapper;
import ConfigMapper.BeanMappingConfiguration;
import DTO.StudentDTO;
import Service... | true |
c1a8def1167e01d799a3d9192620adea70aae554 | Java | wavinsun/MUtils | /MUtils/src/main/java/cn/mutils/core/annotation/event/Click.java | UTF-8 | 514 | 1.914063 | 2 | [
"MIT"
] | permissive | package cn.mutils.core.annotation.event;
import android.view.View;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* IOC for {@link View#setOnClickListener(View.OnClickListener)}
*
* @see View#setO... | true |
b27780169387b16535a46cc32e8d5b9945c1ac12 | Java | skirti0/JWT-Authentication | /src/main/java/com/example/demo/controller/UserController.java | UTF-8 | 1,336 | 2.203125 | 2 | [] | no_license | package com.example.demo.controller;
import com.example.demo.dto.UserDTO;
import com.example.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.CacheControl;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;... | true |
4fd33bf9b1a53ae226757b060d8e1de40b9573f8 | Java | TheJ0K/Pokemon | /src/Controller/InsetoController.java | UTF-8 | 13,164 | 2.296875 | 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 Controller;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.event.ActionEvent;
import javafx.fxm... | true |
b00a080e4f6ea541ffc5e5feb1b1ecf01f4f69e8 | Java | bokuo-okubo/DesignPatterns | /src/com/bko/generate_patterns/proto_type/Teacher.java | UTF-8 | 950 | 3.375 | 3 | [] | no_license | package com.bko.generate_patterns.proto_type;
/**
* Created by bko on 4/5/15.
*/
public class Teacher {
public Paper[] createManyCrystals(){
Paper prototype = new Paper("雪の結晶");
Paper hoshiPrototype = new Paper("星");
drawCrystal(prototype);
cutAccordanceWithLine(prototype);
... | true |
f660c6492cceb19ebb03b8d8dafb74b90b5399fd | Java | renatadiasilva/wsclient | /src/main/java/dei/uc/pt/aor/xml/TransformXML.java | UTF-8 | 2,360 | 2.75 | 3 | [] | no_license | package dei.uc.pt.aor.xml;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.StringReader;
import java.io.StringWriter;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBExce... | true |
e18295db7fbbf76b01786697cd2c698da7b36616 | Java | cheung-david/Elemental_Jumper | /com/dc/ElementalJumper/screens/Instructions.java | UTF-8 | 3,572 | 2.515625 | 3 | [] | no_license | package com.dc.ElementalJumper.screens;
import aurelienribon.tweenengine.TweenManager;
import com.badlogic.gdx.*;
import com.badlogic.gdx.graphics.Camera;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphi... | true |
14d60ba6a0843fce8e1f771585e820e91638056b | Java | skbkontur/extern-java-sdk | /extern-api-java-sdk-common/src/main/java/ru/kontur/extern_api/sdk/model/Taxpayer.java | UTF-8 | 4,409 | 2.03125 | 2 | [
"MIT"
] | permissive | /*
* MIT License
*
* Copyright (c) 2018 SKB Kontur
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modif... | true |
e57fa4f7b240071b2b23a55eca93d38c6459c99c | Java | renber/xbindings | /src/main/java/org/jdesktop/xbindings/commands/CommandManager.java | UTF-8 | 13,068 | 2.359375 | 2 | [
"MIT"
] | permissive | package org.jdesktop.xbindings.commands;
import java.awt.AWTEvent;
import java.awt.Component;
import java.awt.Toolkit;
import java.awt.event.AWTEventListener;
import java.awt.event.ActionEvent;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.awt.event.MouseEvent;
import java.util.ArrayLis... | true |
3e59978ed70067973537cb3b3388f710c378a1d4 | Java | Tornaco/X-Migrate | /library/src/main/java/dev/nick/library/loader/AppLoaderSystem.java | UTF-8 | 4,915 | 2.15625 | 2 | [] | no_license | package dev.nick.library.loader;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import android.support.annotation.NonNull;
import android.support.annotation.Nu... | true |
465f220ddf19af286118fdfa62e682c76e12f2ef | Java | aceNtz/BeautyHair | /src/beautyhair/main/entity/BlogPost.java | UTF-8 | 4,285 | 2.234375 | 2 | [] | no_license | package beautyhair.main.entity;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;... | true |
f4181805572de95acff72c82ffc615057be92d6e | Java | CassCrowley/Trabalho | /Trabalho/src/Controller/AtualizacaoMBean.java | WINDOWS-1250 | 2,673 | 2.140625 | 2 | [] | no_license | package Controller;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.persistence.EntityManager;
import DAO.Database;
import DAO.GenericDAOImpl;
import DAO.IGenericDAO;
import DAO.Atualizar_DAO;
import Entidades.Login;
import Entidades.ObjetoPersistivel;
import Proce... | true |
b56826f3bcd4150819b08168c97b0f5ad1b69108 | Java | kopinits/LC_Hibernate | /src/java/com/br/kopinits/loancontrol/struts/MeusDadosAction.java | UTF-8 | 2,448 | 2.34375 | 2 | [] | no_license | package com.br.kopinits.loancontrol.struts;
import com.br.kopinits.loancontrol.beans.Usuario;
import com.br.kopinits.loancontrol.forms.LoginForm;
import com.br.kopinits.loancontrol.negocio.UsuarioNegocio;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.str... | true |
3ec8577b5891760d5ab0be966cd942a801baec88 | Java | himitsu1111/JavaProj | /src/NewJFrame.java | UTF-8 | 21,810 | 2.4375 | 2 | [] | no_license |
import javax.swing.JTable;
import javax.swing.table.TableColumn;
import java.util.*;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author One
*/
public class NewJFra... | true |
60086a1db1c3e4ea06efa7ed4bf56f1175836cbf | Java | vepailjanov/gitfile | /day33/task1/Song.java | UTF-8 | 689 | 3.390625 | 3 | [] | no_license | package day33.task1;
public class Song {
String name;
public Category category;
public Singer singer;
public Song(String name, Category category, Singer singer) {
this.name = name;
this.category = category;
this.singer = singer;
}
void print(){
System.out.print... | true |
d01dc86ed49560a01da030c796ff9a27d878de94 | Java | sebastian4j/config-native | /organization-service/src/main/java/com/sebastian/organization/Application.java | UTF-8 | 1,108 | 1.75 | 2 | [] | no_license | package com.sebastian.organization;
import filter.UserContextFilter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.Enabl... | true |
a8b2299273c0bbc769053af2793379ca537d865b | Java | lichao3140/DesignPattern | /src/com/lichao/singleton/model/Staff.java | GB18030 | 153 | 2.078125 | 2 | [] | no_license | package com.lichao.singleton.model;
/**
* ͨԱ
* @author LiChao
*
*/
public class Staff {
public void work() {
//ɻ
}
}
| true |
b1ff7db88e75f2d0d4168fab990f86dc1c99293d | Java | Nepxion/Marvel | /nepxion-utility/src/com/nepxion/util/locale/LocaleManager.java | UTF-8 | 4,379 | 2.671875 | 3 | [
"Apache-2.0"
] | permissive | package com.nepxion.util.locale;
/**
* <p>Title: Nepxion Utility</p>
* <p>Description: Nepxion Utility Repository</p>
* <p>Copyright: Copyright (c) 2010</p>
* <p>Company: Nepxion</p>
* @author Neptune
* @email 1394997@qq.com
* @version 1.0
*/
import java.util.HashMap;
import java.util.Locale;
import java.util... | true |
527ff8e206ff9ccbae298e4ae975d7c5ee28fda8 | Java | MiguelMelo/FirebaseLoginRegisterExemplo-Responsivo | /app/src/main/java/com/apps/avalon/fireloginregisterexemplo/LoginActivity.java | UTF-8 | 4,434 | 2.453125 | 2 | [] | no_license | package com.apps.avalon.fireloginregisterexemplo;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
//Classe... | true |
cbfe21e35feff1ea5d7731b465b17cbd556d597d | Java | GuiMonLopes/turma21 | /java/AULAS/src/exemplos/OiMundo.java | WINDOWS-1252 | 758 | 3.90625 | 4 | [] | no_license | package exemplos;
import java.util.Scanner;
public class OiMundo {
public static void main(String[] args) {
//instanciar = criar um teclado
Scanner leia = new Scanner(System.in);
String nome;
int num1=10, num2=30, num3, num4;
double salario=1999.25;
char op = 'S';
System.out.println("O... | true |
c4b7b68ec0eef762f7d57b89fd3f182197b1670b | Java | xdh2580/logistics | /app/src/main/java/com/example/logistics/InActivity.java | UTF-8 | 3,808 | 2.125 | 2 | [] | no_license | package com.example.logistics;
import android.content.DialogInterface;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.view.View;
import android.widget.*;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
... | true |
b268b2ecc6b4598f0af7953105a0ebb95221549b | Java | RenanBecker/Curso-Java-Loiane-Groner | /Curso-Java-Loiane-Groner/src/com/loiane/cursojava/aula15/Exerc16.java | UTF-8 | 1,527 | 3.671875 | 4 | [] | no_license | package com.loiane.cursojava.aula15;
import java.util.Scanner;
import java.lang.Math;
public class Exerc16 {
public static void main(String[] args) {
Scanner ler = new Scanner(System.in);
double a, b, c, xMais, xMenos, delta;
System.out.println("Bem vindo a calculadora de segundo grau");
System.out.println... | true |
acd601550f083722c321214b07bb97cf2ad69560 | Java | MewX/contendo-viewer-v1.6.3 | /org/apache/batik/css/engine/value/svg12/AbstractCIEColor.java | UTF-8 | 2,549 | 2.0625 | 2 | [
"SMLNJ",
"Apache-1.1",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | /* */ package org.apache.batik.css.engine.value.svg12;
/* */
/* */ import org.apache.batik.css.engine.value.AbstractValue;
/* */ import org.apache.xmlgraphics.java2d.color.ColorSpaces;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/*... | true |
6efbb6cee11f80cf333efd6c102a66f9e3b6da01 | Java | kidjaya/CS-Note-MySelf | /src/main/java/java基础面试题/basic/callback/Tom.java | UTF-8 | 368 | 2.75 | 3 | [] | no_license | package java基础面试题.basic.callback;
public class Tom implements Student {
@Override
public void resolveProblem(Teacher teacher) {
try{
Thread.sleep(3000);
System.out.println("completed");
teacher.tellAnswer(123);
} catch (InterruptedException e) {
e... | true |
e7b63192f4562fd48ef21122d531822fdc88e6c9 | Java | thiago-guerreiro/Linguagem-de-Programacao-Orientada-a-Objetos | /Casting/Cliente.java | UTF-8 | 171 | 2.15625 | 2 | [] | no_license | import javax.swing.JOptionPane;
public class Cliente extends Pessoa {
public void imprimirC(){
JOptionPane.showMessageDialog(null,"Dentro da classe Cliente");
}
}
| true |
9cf0145ee4d296b34c15935d558cfdaea922f87d | Java | leonbornemann/EpisodePatternMining | /src/main/java/episode/unstable_experimental_lossy_counting/FrequencyListElement.java | UTF-8 | 500 | 2.5625 | 3 | [] | no_license | package episode.unstable_experimental_lossy_counting;
public class FrequencyListElement {
private int freq;
private int delta;
public int getFreq() {
return freq;
}
public void setFreq(int freq) {
this.freq = freq;
}
public int getDelta() {
return delta;
}
public void setDelta(int delta) {
this.... | true |
d7ace49b9bade49cd96bf67e7d74fd5970f64119 | Java | o-raskin/su-planning | /src/main/java/ru/olegraskin/skillupplanning/events/service/impl/UserEventsServiceImpl.java | UTF-8 | 1,409 | 2.265625 | 2 | [] | no_license | package ru.olegraskin.skillupplanning.events.service.impl;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import ru.olegraskin.skillupplanning.events.domain.UserEvent;
import ru.olegraskin.skillupplanning.events.service.UserEventService;
import ru.olegraskin.skillupplanning.promo... | true |
a11a71135f5a886d1472bd720686e94fd9c6bd19 | Java | KrisChop/JavaAdvanced | /src/FunctionalProgrammingEx/CustomMinFunction03.java | UTF-8 | 936 | 3.59375 | 4 | [] | no_license | package FunctionalProgrammingEx;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.function.Function;
public class CustomMinFunction03 {
public static void main(String[] args) throws IOException {
BufferedReader... | true |
e6fc8f7439736c8909e3a99a41fb529775567ea7 | Java | gpagar/mahindraWebApi | /src/main/java/com/ganesh/mahindra/repository/tbm/TbmMachineLocationRepository.java | UTF-8 | 517 | 1.9375 | 2 | [] | no_license | package com.ganesh.mahindra.repository.tbm;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import com.ganesh.mahindra.model.tbm.TbmMachineLocation;
public interface TbmMachineLocationRepository extends JpaRepository<TbmMachineLocation, Integer>{
TbmMachineLocatio... | true |
3db9d56780dbf85cade517415510990eecf8d2fc | Java | awelijuh/class-schedule | /app/src/main/java/com/example/awelijuh/classschedule/ScheduleItemHolder.java | UTF-8 | 928 | 2.375 | 2 | [] | no_license | package com.example.awelijuh.classschedule;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
public class ScheduleItemHolder extends RecyclerView.ViewHolder {
TextView textView;
TextView textView2;
ImageView imageVie... | true |
e07819d495de7defb8b4355087074c39cfca642d | Java | banyanandroid/AwesomeBusiness | /app/src/main/java/banyan/com/awesomebusiness/adapter/Horizondal_Image_Adapter.java | UTF-8 | 3,084 | 2.125 | 2 | [] | no_license | package banyan.com.awesomebusiness.adapter;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.support.v7.widget.RecyclerView;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.v... | true |
e518bbbc183476672753f9b2f31cfb72ef1a2f0f | Java | kabuman/tinkerforge | /Aquarium_Application/de/kabuman/tinkerforge/aquarium/AquariumApplImpl.java | UTF-8 | 8,579 | 2.125 | 2 | [] | no_license | package de.kabuman.tinkerforge.aquarium;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import com.tinkerforge.BrickServo;
import com.tinkerforge.BrickletRemoteSwitch;
import com.tinkerforge.NotConnectedException;
import com.tinkerforge.TimeoutException;
import de.kabuman.c... | true |
09690edc3d2101bca90ed6ca340f2993193e28f2 | Java | marcosvaldeni/Airline-Scheduler | /ResourceGenerator.java | UTF-8 | 216 | 1.546875 | 2 | [] | no_license |
import cctairline.Cargo;
import cctairline.Flight;
import cctairline.Pilot;
/**
*
* @author Marcos
*/
public class ResourceGenerator {
Pilot pilot;
Cargo cargoPlane;
Flight flight;
}
| true |
42fb85b875bf2d507656d9acc42d2bcb028607d3 | Java | tabishNew/SoleFit | /com.InnovanaThinkLabs.SoleFit/src/main/java/GenericUtils/ExcelUtility.java | UTF-8 | 1,654 | 2.953125 | 3 | [] | no_license | package GenericUtils;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.ss.usermodel.WorkbookFactor... | true |
b536000a0225cbea1c4498ba83da83fa2e5a931a | Java | himanshufernando/SmartFood | /app/src/main/java/emerge/project/onmeal/ui/activity/singup/SingUpInteractorImpil.java | UTF-8 | 9,104 | 2.28125 | 2 | [] | no_license | package emerge.project.onmeal.ui.activity.singup;
import android.util.Log;
import com.google.gson.JsonObject;
import com.luseen.logger.Logger;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import emerge.project.onmeal.data.table.User;
i... | true |
af4c1a746075940e8d0be03bbd5bf83f2311f067 | Java | mazangishin/KJH-s-gitRepository | /workspace/PrivateStudy/src/TimeTest2.java | UTF-8 | 801 | 3.40625 | 3 | [] | no_license | import java.util.Scanner;
public class TimeTest2 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Time t = new Time();
Scanner scan = new Scanner(System.in);
int hour = 0;
int minute = 0;
int second = 0;
// int cnt = 0;
/*
while (true) { cnt++;
System.out.p... | true |
535463887300fdb5b0fd63bd3bff89ba2e1e65a9 | Java | Harry-Chen/compiler-labs | /exp1/src/submit/TestFaintness.java | UTF-8 | 2,272 | 3.640625 | 4 | [] | no_license | package submit;
class TestFaintness {
/**
* In this method all variables are faint because the final value is never used.
* Sample out is at src/test/Faintness.out
*/
void test1() {
int x = 2;
int y = x + 2;
int z = x + y;
return;
}
/**
* Write your ... | true |
dd7cfc7b16663eb692097e1c3fcfc420271e0b34 | Java | KrishnaBhosle2225/Android-Petshop | /app/src/main/java/com/example/kashi/petshop/SplashScreen.java | UTF-8 | 1,260 | 2.203125 | 2 | [] | no_license | package com.example.kashi.petshop;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
public class SplashScreen extends AppCompatActivity {
private static final long SPLASH_TIME_OUT = 1500;
@Override... | true |
c99488546ef8562aa8f953c89af6b6f5afa3fa23 | Java | cash2one/91 | /zz91/ast1949-persist/src/main/java/com/ast/ast1949/persist/bbs/impl/BbsPostReplyDaoImpl.java | UTF-8 | 11,019 | 1.835938 | 2 | [] | no_license | /**
* Copyright 2011 ASTO.
* All right reserved.
* Created on 2011-6-28
*/
package com.ast.ast1949.persist.bbs.impl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Component;
import com.ast.ast1949.domain.bbs.BbsPostDO;
import com.ast.ast1949.domain.b... | true |
67aa577556b41fd8b8bb4c292a1be210e3accf76 | Java | johnycao988/cloud.security.service | /src/main/java/com/cly/security/service/impl/LDAPUserInfoService.java | UTF-8 | 7,515 | 1.898438 | 2 | [] | no_license | package com.cly.security.service.impl;
import java.util.ArrayList;
import java.util.Properties;
import javax.naming.NamingException;
import javax.naming.directory.Attribute;
import javax.naming.directory.Attributes;
import javax.naming.directory.SearchControls;
import com.cly.cache.CacheMgr;
import com.cly.... | true |
1b6ea163d369aed0addb6dee5105de81db7836a6 | Java | igsekor/android-example-list | /app/src/main/java/com/example/igorkorovchenko/textviewtest/CourseListAdapter.java | UTF-8 | 1,220 | 2.46875 | 2 | [] | no_license | package com.example.igorkorovchenko.textviewtest;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.TextView;
import ... | true |
bc860453d0bbf244da000520e2dbcee1e74c2911 | Java | alexejsailer/git-state | /src/main/java/com/dualexec/git/state/api/RepositoryController.java | UTF-8 | 3,121 | 2.0625 | 2 | [
"MIT"
] | permissive | package com.dualexec.git.state.api;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.hateoas.mvc.ControllerLinkBuilder;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;... | true |
1a60a168de84067aced4e0baf8e266d8f36ed796 | Java | fmind/bachelor-projects | /langage-java/MachineTuring/src/turing/TableTransition.java | UTF-8 | 1,227 | 3.6875 | 4 | [] | no_license | package turing;
import java.util.ArrayList;
/**
* Stocke les transitions possibles pour une machine de Turing
*/
public class TableTransition {
// Structure interne
private ArrayList<Transition> liste;
/**
* Constructor
*/
public TableTransition() {
this.liste = new ArrayList<Transition>();
}... | true |
41245d8d4185a2b7529e37a693d47fa7d5663c97 | Java | Whitewolf04/School_Repo | /Tuan_To_Lab/src/Lab3/Vehicle.java | UTF-8 | 394 | 3.609375 | 4 | [] | no_license | package Lab3;
public class Vehicle {
private int wheels;
public Vehicle() {
wheels = 0;
}
public Vehicle(int wheels) {
this.wheels = wheels;
}
public void setWheels(int wheels) {
this.wheels = wheels;
}
public int getWheels() {
return this.wheels;
}
public String toStri... | true |
5edc0a98cc9f2f8af78ec1f6048a9849bc50d7da | Java | yiippee/testMaven | /src/main/java/com/lzb/feign/RemoteService.java | UTF-8 | 200 | 1.726563 | 2 | [] | no_license | package com.lzb.feign;
import feign.Param;
import feign.RequestLine;
public interface RemoteService {
@RequestLine("GET /user/{name}")
String getOwner(@Param(value = "name") String name);
}
| true |
ce38594391b8f830bacaf6aead256a49c054c34e | Java | tabria/Java | /JavaAdvanced/JAdvancedFunctionalExercises/src/ReverseAndExclude.java | UTF-8 | 612 | 3.578125 | 4 | [
"MIT"
] | permissive | import java.util.*;
import java.util.function.Predicate;
import java.util.stream.Collectors;
public class ReverseAndExclude {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String[] input = scanner.nextLine().split(" ");
int num = Integer.parseInt(scan... | true |
a65cedd55eb9ecc9525c02d29fb834c0dac2dce0 | Java | vitaliy1919/computer-graphics-3-course | /Lab 6/src/sample/CircularLinkedList/CircularList.java | UTF-8 | 1,401 | 3.34375 | 3 | [] | no_license | package sample.CircularLinkedList;
public class CircularList<T> {
private CircularListNode<T> root;
private CircularListNode<T> tail;
private int size;
public int size() {
return size;
}
public void insertToEnd(T data) {
size++;
CircularListNode<T> node = new CircularL... | true |
e41ac54123d3151155c28ce43f792f3879f23a29 | Java | ty1972873004/HaPayCenter | /HaApiCenter/HaPayService/src/test/java/com/hengaiw/test/TestMq.java | UTF-8 | 288 | 1.671875 | 2 | [] | no_license | package com.hengaiw.test;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import com.hengaiw.mq.Mq4PayNotify;
public class TestMq {
@Autowired
private Mq4PayNotify mq4PayNotify;
@Test
public void main() {
mq4PayNotify.send("sfsdfsf");
}
}
| true |
e21916feb206ad765eb0c7ebf794b136e87b5583 | Java | TrevorAGill/Recipro | /app/src/main/java/com/epicodus/recipro/YummlyService.java | UTF-8 | 7,688 | 2.1875 | 2 | [] | no_license | package com.epicodus.recipro;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import okh... | true |
cef00bf667efd94c6fefea02b5cbc4997507b965 | Java | atom-chen/server | /src/main/java/newbee/morningGlory/http/servlets/sys/BeanShellServlet.java | UTF-8 | 8,533 | 2.0625 | 2 | [] | no_license | package newbee.morningGlory.http.servlets.sys;
import java.io.IOException;
import java.net.URLDecoder;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Map.Entry;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import ja... | true |
5c45d4d09d10fd7931457cb836bddb7cbc85e051 | Java | kryptokrauts/universe-one-hackathon | /aepp-backend/keycard/src/main/java/de/kryptokrauts/keycard/controller/KeycardController.java | UTF-8 | 1,559 | 2.140625 | 2 | [] | no_license | package de.kryptokrauts.keycard.controller;
import de.kryptokrauts.keycard.service.KeycardService;
import im.status.keycard.io.APDUException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import javax.sm... | true |
092b0172e3a0675cc60a9fb195cbe4359904fb85 | Java | rainstarmoon/algorithm | /src/main/java/com/myproject/algorithm/leetcode/t167s/Solution.java | UTF-8 | 610 | 2.859375 | 3 | [] | no_license | package com.myproject.algorithm.leetcode.t167s;
@Deprecated
public class Solution {
public int[] twoSum(int[] numbers, int target) {
int begIndex = 0;
int endIndex = numbers.length - 1;
while (begIndex < endIndex) {
int tmp = numbers[begIndex] + numbers[endIndex];
i... | true |
008c03518ec440bbdb593eaa93aec58e61b872df | Java | asddq123456/study_source | /inheritance_project/src/com/test/inter/BoardService.java | UTF-8 | 313 | 1.875 | 2 | [] | no_license | package com.test.inter;
import java.util.List;
public interface BoardService {
void createBoard(Board board);
void createBoardWithFile(Board board);
void modifyBoard(Board board);
void removeBoard(String bno);
Board getBoardByBno(String bno);
List<Board> getBoardList();
}
| true |
e5bd5114eefe8815378c9ee757505b581ab48c3d | Java | songs-for-seasons/book-website | /book/src/DAO/Informing.java | GB18030 | 1,104 | 2.828125 | 3 | [] | no_license | package DAO;
public class Informing {
private int id;
private int mid;
private int bid;
private String reason;
private String itime;
private int itype; //type = 0ٱ type = 1˽
//ǾٱʱidǾٱߵid˽ʱidǽ˽˵id
public Informing(int id,int mid,int bid,String reason,String time,int type){
this.id = id;
this.... | true |
68086eb376f23869d5964a3eca5f4650972ac097 | Java | rgnter/ReunionPal | /src/mc/reunion/ReunionPal/PluginLoader.java | UTF-8 | 3,581 | 2.5 | 2 | [] | no_license | package mc.reunion.ReunionPal;
import mc.reunion.ReunionPal.advertiser.Advertiser;
import mc.reunion.ReunionPal.configuration.MessagesConfig;
import mc.reunion.ReunionPal.model.Commands;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
public class PluginLoader extends JavaPlugin {
// Prefix
... | true |
6b6cc781c20753a0dfd0f9e50d84a9eb05c7f2fc | Java | Ref3at/3roodk | /app/src/main/java/com/app3roodk/UI/OffersCards/CardsOnlineFragment.java | UTF-8 | 10,434 | 1.9375 | 2 | [] | no_license | package com.app3roodk.UI.OffersCards;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.design.widget.Snackbar;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import andro... | true |
d86ecef2762db6fc14ebb582b471eecad86d1934 | Java | noudisan/falcon_sample | /falcon/falcon-core/src/main/java/com/zhiyi/falcon/core/model/DeliveryTask.java | UTF-8 | 4,862 | 1.921875 | 2 | [] | no_license | package com.zhiyi.falcon.core.model;
import java.io.Serializable;
import java.util.Date;
public class DeliveryTask implements Serializable{
private Integer id;
private String code;
private Integer sendCount;
private Date massTime;
private String massAddress;
private String leader;
pr... | true |
cad2c80a9929903e069e684b69591c732c75c5a8 | Java | ramukarnati/algorithms | /test/algorithms/StackAndQueueTest.java | UTF-8 | 1,023 | 2.984375 | 3 | [] | no_license | package algorithms;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
/**
* Created by rkarnati on 4/9/17.
*/
@RunWith(JUnit4.class)
public final class StackAndQueueTest {
StackWithLinkedList stack = null;
QueueWithLin... | true |
3ff141addd37965fab1562b0b9de8f837372c487 | Java | linsenbiao/ppmall | /src/main/java/com/biao/pojo/Employee.java | UTF-8 | 978 | 2.40625 | 2 | [] | no_license | package com.biao.pojo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.validation.constraints.Email;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Employee implements Serializable... | true |
0727e02bd4daa2cde9d535fed4b58e7fa9d6126d | Java | svatoma1/NeSISL | /src/main/java/cz/cvut/ida/nesisl/modules/dataset/attributes/RealAttribute.java | UTF-8 | 1,062 | 2.890625 | 3 | [] | no_license | package main.java.cz.cvut.ida.nesisl.modules.dataset.attributes;
/**
* Created by EL on 14.8.2016.
*/
public class RealAttribute implements AttributeProprety{
private Double min = Double.MAX_VALUE;
private Double max = Double.MIN_VALUE;
private final Integer order;
private final Integer orderWithC... | true |
d79be9de421555012bd66ad5030f2a8b913558de | Java | SimingZiling/web-work-bench | /web-work-bench-netty/src/main/java/org/webworkbench/netty/resolution/RequestParser.java | UTF-8 | 11,072 | 2.453125 | 2 | [
"Apache-2.0"
] | permissive | package org.webworkbench.netty.resolution;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import io.netty.handler.codec.http.*;
import io.netty.handler.codec.http.multipart.*;
import io.netty.util.CharsetUtil;
import org.webworkbench.netty.common.Conten... | true |
0409607c34538789fecd64ee5f332c7aead30f2d | Java | chengnshan/personalmanage | /src/main/java/com/cxp/personalmanage/mapper/mysql/UserInfoMysqlMapper.java | UTF-8 | 966 | 2.078125 | 2 | [] | no_license | package com.cxp.personalmanage.mapper.mysql;
import java.util.List;
import java.util.Map;
import com.cxp.personalmanage.pojo.UserInfo;
public interface UserInfoMysqlMapper {
/**
* 根据用户账号或者id查询唯一结果
* @param userInfo
* @return
*/
public UserInfo getUserInfo(UserInfo userInfo);
public UserInfo getUserInfoB... | true |
6ba8a8be9cb5ec86e8d0474db01220fea50058b7 | Java | sergiowww/severino | /severino/src/main/java/br/mp/mpt/prt8/severino/entity/Local.java | ISO-8859-1 | 2,219 | 2.265625 | 2 | [
"MIT"
] | permissive | package br.mp.mpt.prt8.severino.entity;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.... | true |
b6d3d8ee5f726b20c8bf13771088e2a37e7f1113 | Java | kratipaw/InterviewBit-JavaSolutions | /L5_Backtracking/NQueens.java | UTF-8 | 1,883 | 3.328125 | 3 | [] | no_license | import java.util.ArrayList;
public class NQueens {
public static void main(String[] args) {
ArrayList<ArrayList<String>> result = new NQueens().solveNQueens(4);
for (int i = 0; i < result.size(); i++) {
for (int j = 0; j < result.get(i).size(); j++) {
System.out.println(result.get(i).get(j));
}
... | true |
eafb037789650a405fac6c263cec89a01aa80a0e | Java | abatanx/WebSocketLuaClusterServer | /src/main/java/jp/cielist/apps/wslua/lua/LuaCrypt.java | UTF-8 | 1,950 | 2.515625 | 3 | [
"MIT"
] | permissive | /**
* WebSocket-Lua-ClusterServer
* Copyright (C) 2017 CIEL, K.K., Interfair laboratory
* ALL RIGHTS RESERVED.
* @license: MIT
**/
package jp.cielist.apps.wslua.lua;
import jp.cielist.apps.wslua.common.Log;
import jp.cielist.apps.wslua.server.CSConfig;
import org.luaj.vm2.*;
import org.luaj.vm2.lib.*;
import ja... | true |
fa0e4a79dc15d9465499b31fb95f65743ba50000 | Java | nicklasholmjoergensen/kbahelper | /app/src/main/java/io/peqo/kbahelper/model/Department.java | UTF-8 | 1,547 | 2.4375 | 2 | [] | no_license | package io.peqo.kbahelper.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder;
@JsonDeserialize(builder = Department.Builder.class)
public final class Department {
public fi... | true |
95bc9782bd21603beb91b984a016c5ba9bd683f1 | Java | gprajeesh77/OpenFaces | /openFaces/source/org/openfaces/component/chart/impl/configuration/PlotGridLinesConfigurator.java | UTF-8 | 6,201 | 1.945313 | 2 | [] | no_license | /*
* OpenFaces - JSF Component Library 2.0
* Copyright (C) 2007-2011, TeamDev Ltd.
* licensing@openfaces.org
* Unless agreed in writing the contents of this file are subject to
* the GNU Lesser General Public License Version 2.1 (the "LGPL" License).
* This library is distributed in the hope that it will be... | true |
93b3a54507a9c349edb5f33c75dc68ae6d08b8b3 | Java | TamizhSen/Pro | /donortoreceiver/src/com/donortoreceiver/beans/Transactions.java | UTF-8 | 1,466 | 2.234375 | 2 | [] | no_license | /**
*
*/
package com.donortoreceiver.beans;
/**
* @author nulak
*
*/
public class Transactions {
private String name;
private String category;
private String contactedOn;
private String email;
private String donorEmail;
public String getDonorEmail() {
return donorEmail;
}
public void setDonorEmail(Stri... | true |
551d95e11ac0c8b45cafda4387d138c304ddb43d | Java | alive-jh/Alive | /src/main/java/com/wechat/jfinal/api/classRoom/ClassCourseRecord.java | UTF-8 | 4,942 | 2.046875 | 2 | [] | no_license | package com.wechat.jfinal.api.classRoom;
import com.jfinal.core.Controller;
import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Page;
import com.jfinal.plugin.activerecord.Record;
import com.wechat.jfinal.common.utils.web.Result;
import com.wechat.jfinal.model.ClassCourseRecordOfStudent;
im... | true |
0da2e1c2e7f212b2478b2c4f3a10a753fdfe9db1 | Java | apache/openejb | /sandbox/release-tools/src/main/java/org/apache/openejb/tools/release/cmd/ReviewCommits.java | UTF-8 | 12,140 | 1.773438 | 2 | [
"Apache-2.0"
] | 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 may ... | true |
1c70a6d83497a929b70ad6afea44ac8051af6461 | Java | javanumberone4bu4/esports | /src/main/java/com/rimi/esports/vo/GoodsVo3.java | UTF-8 | 453 | 1.5625 | 2 | [] | no_license | package com.rimi.esports.vo;
import lombok.Data;
/**
* @author Wang Xiaoping
* @date 2019/11/13 9:07
*/
@Data
public class GoodsVo3 {
private String brandType;
private String brandName;
private String goodsSource;
private String goodsPhoto;
private double goodsPrice;
private String goodsDes... | true |
a66c692c45bf23f15086b7a0e52d29f8bfe75105 | Java | dilwit/spring-test | /src/main/java/net/dilwit/test/service/IMove.java | UTF-8 | 81 | 1.679688 | 2 | [] | no_license | package net.dilwit.test.service;
public interface IMove {
void makeMove();
}
| true |
b356f37b827f322126b7e97882a814c0b9d46451 | Java | MuhammadAmmad/Taxi-Client | /app/src/main/java/com/kerer/taxiapp/model/Car.java | UTF-8 | 502 | 2.40625 | 2 | [] | no_license | package com.kerer.taxiapp.model;
/**
* Created by ivan on 04.01.17.
*/
public class Car {
private String mCarInfo;
private String mCarNumber;
public Car() {
}
public String getmCarInfo() {
return mCarInfo;
}
public void setmCarInfo(String mCarInfo) {
this.mCarInfo = mC... | true |
fb7bba452ef3c01872e2cc1cc4162440beac3960 | Java | ayancodex/blog | /src/main/java/org/codex/dao/impl/UserDAOImpl.java | UTF-8 | 2,164 | 2.421875 | 2 | [] | no_license | package org.codex.dao.impl;
import java.util.List;
import java.util.Set;
import org.codex.dao.UserDAO;
import org.codex.model.Post;
import org.codex.model.User;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;... | true |
89c97733e8b9ddad3d50fd9adf62a57f26518414 | Java | ChineseDr/pattern | /adapter/src/baseSample/Client.java | UTF-8 | 208 | 2.171875 | 2 | [] | no_license | package baseSample;
public class Client {
public static void main(String[] args){
Adaptee adaptee=new Adaptee();
Target adapter=new Adapter(adaptee);
adapter.request();
}
}
| true |
ddca2e385c142967c241bb5f41638eb28ceb67b3 | Java | pekkavee/Kattis | /src/Kattis/Soylent.java | UTF-8 | 661 | 2.859375 | 3 | [] | no_license | package Done;
import java.util.ArrayList;
import java.util.Scanner;
public class Soylent {
public static void main(String[] args) {
ArrayList<Integer>kalorti = new ArrayList<>();
Scanner sc = new Scanner(System.in);
int x = Integer.parseInt(sc.nextLine());
for (int i = ... | true |
efce261baa8244e6926956c2386539303a514ee9 | Java | tianaiyouqing/spring-framework | /spring-context/src/test/java/test/test/proxy/aoptest/IAopTest.java | UTF-8 | 179 | 1.65625 | 2 | [
"Apache-2.0"
] | permissive | package test.test.proxy.aoptest;
/**
* Title: IAopTest
* Description:
*
* @author: 天爱有情
* @date: 2019/5/9 13:16
**/
public interface IAopTest {
void test();
}
| true |
4a20a7400d13829ad8d3fe2a8542bacc2e8f89de | Java | wenchangwu/mini | /lkl-mini-api/src/main/java/com/lakala/mini/dto/DataPushToJobResponse.java | UTF-8 | 487 | 1.820313 | 2 | [] | no_license | package com.lakala.mini.dto;
import java.io.File;
import java.io.Serializable;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
@XmlRootElement
@XmlAccess... | true |
61b3e852175198a911bfc5d1f3d9909e2f056e69 | Java | xxjatm/Measuring-User-Influence-in-Twitter | /src/paper3/User.java | UTF-8 | 1,269 | 2.390625 | 2 | [
"MIT"
] | permissive | package paper3;
import java.util.ArrayList;
public class User {
private String ScreeName;
private int FollowersCount;
private int IF;
private String tweets;
private double ratio;
public ArrayList<Follower> followers = new ArrayList<Follower>();
public void setRatio(doubl... | true |
9894c31c7c534502ce17898b19816dc83eb27ef3 | Java | inwoox/Spring-TacoDesign | /tacoproject/tacocloud-api/src/main/java/tacos/web/api/OrderApiController.java | UTF-8 | 6,721 | 2.28125 | 2 | [] | no_license | package tacos.web.api;
import org.springframework.dao.EmptyResultDataAccessException;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import o... | true |
a25b1c54ce919a8561a9ff0219277ba8e3e22d9c | Java | saravanabalasubramaniam/saravanan | /README.java | UTF-8 | 379 | 3.03125 | 3 | [] | no_license | import java.io.*;
import java.util.*;
class Main
{
public static void main(String args[])
{
int c=0;
Scanner sc=new Scanner(System.in);
int a=sc.nextInt();
for (int i = 1; i <= a; i++)
{
if (a % i == 0)
{
c++;
}
}
if (c == 2) {
System.out.println("n is a Prime number");
}
else ... | true |
7b39a2ced8c20a6532399c90befcc326d6b5091e | Java | mychango/ManualReport-Web | /src/main/java/com/smb/manualreport/config/DruidDBConfig.java | UTF-8 | 2,683 | 1.992188 | 2 | [] | no_license | package com.smb.manualreport.config;
import com.alibaba.druid.pool.DruidDataSource;
import com.smb.manualreport.page.PageInterceptor;
import org.apache.ibatis.plugin.Interceptor;
import org.mybatis.spring.SqlSessionFactoryBean;
import org.mybatis.spring.mapper.MapperScannerConfigurer;
import org.apache.ibatis.session.... | true |
632e1cae3bb339a0429e7ad63c82c528e4254309 | Java | edge1s-waldemar/functional-programming | /src/main/java/pl/kurs/edge1s/functional/repository/VisitRepository.java | UTF-8 | 4,689 | 2.703125 | 3 | [] | no_license | package pl.kurs.edge1s.functional.repository;
import pl.kurs.edge1s.functional.model.Doctor;
import pl.kurs.edge1s.functional.model.Patient;
import pl.kurs.edge1s.functional.model.Visit;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
public class VisitRepository {
... | true |
8f3a891264c508d3495076b3638c6e2a72d67185 | Java | oliverpecha/Stanford-SEE | /CS106A/BookExercisesChapter04 (Statement Forms)/ReverseDigits.java | UTF-8 | 1,035 | 3.984375 | 4 | [] | no_license | /*
* File: ReverseDigits.java
* Name: Oliver Pecha
* Section Leader: Online Learning
* -----------------
* Rewrite the DigitSum program given in Figure 4-6 so that instead of adding the digits in the number,
* it generates the number that has the same digits in the reverse order, as illustrated by this sample ru... | true |
786644e8edfb31dc6cb7f57b4523d9784abe225a | Java | Droukos/samosalive-cloud | /osm-service/src/main/java/com/droukos/osmservice/controller/OsmController.java | UTF-8 | 1,038 | 1.976563 | 2 | [] | no_license | package com.droukos.osmservice.controller;
import lombok.AllArgsConstructor;
import org.springframework.messaging.handler.annotation.MessageMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.reactive.function.client.ClientResponse;
import org.springframework.web.reactive.function... | true |
ca66290977d48c763e1755aabcd2a7cba2b03191 | Java | NONO9527/dry-redis | /src/main/java/com/sangupta/dryredis/DryRedisHashOperations.java | UTF-8 | 1,656 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | /**
*
* dry-redis: In-memory pure java implementation to Redis
* Copyright (c) 2016, Sandeep Gupta
*
* http://sangupta.com/projects/dry-redis
*
* 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 L... | true |
99b44a97cb70597e9098c5757da3aa65ad4c0ffe | Java | HaoranJ/Algorithm_and_Design | /SumOfTwoIntegers.java | UTF-8 | 765 | 3.765625 | 4 | [] | no_license | /*
371. Sum of Two Integers
*/
public int getSum(int a, int b) {
int sum = a, carry = b, preSum = 0;
while (carry != 0) {
preSum = sum;
sum = sum ^ carry; //calculate without carrys
carry = (preSum & carry) << 1; //get the carries of the last line
}
return sum;
}
//go through every bit from lowes... | true |
55fea5b967f4e6f50528c36d7df10e829122489e | Java | danitav93/OnStage | /app/src/main/java/com/example/danieletavernelli/onstage/database/service/TabInstrumentService.java | UTF-8 | 7,514 | 2.421875 | 2 | [] | no_license | package com.example.danieletavernelli.onstage.database.service;
import android.content.ContentValues;
import android.database.Cursor;
import com.example.danieletavernelli.onstage.database.Contract;
import com.example.danieletavernelli.onstage.database.Helper;
import com.example.danieletavernelli.onstage.database.enti... | true |
fc2664c542f606da77d3f6eeb8c791f1a338af99 | Java | sahhin/SE1 | /aufgabe2/src/main/java/se1app/entities/Neighborhood.java | UTF-8 | 4,353 | 2.859375 | 3 | [] | no_license | package se1app.entities;
import se1app.datatypes.AdressType;
import se1app.datatypes.EmailType;
import se1app.exceptions.InvalidEmailException;
import java.util.List;
import java.util.ArrayList;
import javax.persistence.*;
/**
* Representation of a neighborhood.
*/
@Entity
@Table(name = "neighborhood")
public cla... | true |
99f3a932da0293be23f7245f2b982dfc6dc23c1c | Java | bryant1410/RJcenter | /sample/src/main/java/com/angcyo/sample/ViewRotationActivity.java | UTF-8 | 2,347 | 2.25 | 2 | [] | no_license | package com.angcyo.sample;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.widget.TextView;
import com.cocosw.query.CocoQuery;
import com.rsen.util.ResUtil;
public class ViewRotatio... | true |
b51ec2b8c0d260a25a5d8212c8f3052b9c482679 | Java | ammevissen/ROC | /ColectionsDemo/src/com/revature/Sandwich.java | UTF-8 | 2,612 | 3.09375 | 3 | [] | no_license | package com.revature;
public class Sandwich {
private String breadType;
private String cheeseType;
private boolean hasDressing;
private String meat;
private double weight;
public Sandwich() {
super();
}
public Sandwich(String breadType, String cheeseType, boolean hasDressing, String meat, double weight) {... | true |