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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
23c7f8ab3466b24a65bbfd10c902e83f1c589e58 | Java | sambos/Spring-Security | /SpringSecurity/src/main/java/org/rsol/poc/spring/web/HelloController.java | UTF-8 | 2,302 | 2.4375 | 2 | [] | no_license | package org.rsol.poc.spring.web;
import net.sf.json.JSONObject;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.Secur... | true |
3a54f198a8be623e37bed3775174340830eb2194 | Java | colorfulbinary/cosmos | /cosmos-parent/cosmos-utils/src/main/java/com/cosmos/utils/network/http/HttpClientUsingString.java | UTF-8 | 1,991 | 2.734375 | 3 | [
"Apache-2.0"
] | permissive | package com.cosmos.utils.network.http;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import com.cosmos.utils.io.StreamProcessor;
public class HttpClientUsingString extends HttpClient<String, String>{
private String inputCh... | true |
7b03f8d0a0d5bc8b5110a92789df17ad9bcd754c | Java | AlanNonat0/ProjetoJavaWeb | /src/model/UserBean.java | UTF-8 | 1,166 | 2.171875 | 2 | [] | no_license | package model;
public class UserBean {
private int id;
private String nome;
private String email;
private String telefone;
private String senha;
private String dataCadastro;
private String dataUp;
private int situacao;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
p... | true |
9174bb35833e9bf024b8f37ea7e773aef295f972 | Java | vogle/sbpayment-java | /sbpayment-creditcard/src/main/java/com/vogle/sbpayment/creditcard/params/SaveCardByToken.java | UTF-8 | 1,413 | 2 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | /*
* Copyright 2019 Vogle Labs.
*
* 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 |
ed9e7badeeb676d7026940d926e4ddf819252291 | Java | NikolaiPN/NNikolovJava6 | /NNikolovHomeWork6/src/Computer.java | UTF-8 | 741 | 3.125 | 3 | [] | no_license |
public class Computer {
int year;
double price;
boolean isNotebook;
int hardDisckMemory;
double freeMemory;
String operationSystem;
void changeOperationSystem(String newOS){
operationSystem = newOS;
}
void useMemory(double memory){
if(memory < freeMemory){
freeMemory -= memory;
}
else{
Syste... | true |
cb681ce423d865c1e32c3ed2e65e5fd895acdb49 | Java | hongzicong/RainBow | /app/src/main/java/hongzicong/rainbow/adapter/NotifyAdapter.java | UTF-8 | 3,131 | 2.046875 | 2 | [] | no_license | package hongzicong.rainbow.adapter;
/**
* Created by DELL-PC on 2017/12/12.
*/
import android.content.Context;
import android.content.Intent;
import android.support.v4.app.Fragment;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
... | true |
de0881220b5b59048c8bc8412feadbdb58bf2005 | Java | DevikaS/gdam | /Tests/src/com/adstream/automate/hamcrest/SortingCheck.java | UTF-8 | 2,003 | 2.90625 | 3 | [] | no_license | package com.adstream.automate.hamcrest;
import org.hamcrest.Description;
import org.hamcrest.Factory;
import org.hamcrest.Matcher;
import org.hamcrest.TypeSafeMatcher;
import java.util.*;
/**
* Created with IntelliJ IDEA.
* User: savitskiy-a
* Date: 20.06.12
* Time: 20:09
* To change this template... | true |
145cec5157214decc279ec7a254eea765d34006a | Java | paulxi/LeetCodeJava | /src/main/java/com/leetcode/algorithm/easy/longestcontinuousincreasing/Solution.java | UTF-8 | 395 | 2.859375 | 3 | [
"MIT"
] | permissive | package com.leetcode.algorithm.easy.longestcontinuousincreasing;
class Solution {
public int findLengthOfLCIS(int[] nums) {
if (nums.length == 0) {
return 0;
}
int pos = 0;
int ans = 0;
for (int i = 0; i < nums.length; i++) {
if (i > 0 && nums[i] <= nums[i - 1]) {
pos = i;
... | true |
6e2cc2fe90691799fdea773404f04a3acb19170a | Java | pep89/Tienda | /Clases/ListaProveedores.java | UTF-8 | 6,140 | 2.671875 | 3 | [] | no_license | package Clases;
/**
*/
import java.util.*;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import java.sql.Connection;
import java.sql.Statement;
import java.sql.ResultSet;
import javax.swing.JTextField;
public class ListaProveedores implements Funcionalidades
{
ConexionDB conexion =... | true |
79d3713e82bc847b855c6da7eefad9d605b20a53 | Java | ngadde/mongodb-bookstore | /src/main/java/com/example/bookstore/reactive/transaction/ReactiveBookRepository.java | UTF-8 | 1,042 | 1.617188 | 2 | [] | no_license | /*
* Copyright 2018 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 |
98e2e908e234b7a247952418c9caf4a8d169ccf6 | Java | xuese2019/ytsoaBackstage | /src/main/java/com/yts/ytsoa/business/bggl/service/BgglService.java | UTF-8 | 2,224 | 1.789063 | 2 | [] | no_license | package com.yts.ytsoa.business.bggl.service;
import com.github.pagehelper.PageInfo;
import com.yts.ytsoa.business.bggl.model.BgglModel;
import com.yts.ytsoa.business.shjl.model.XmshModel;
import com.yts.ytsoa.utils.ResponseResult;
import java.util.List;
public interface BgglService {
/**
* 添加申请报告
*
... | true |
5b5b671dbe01b2b952c9dfb308b6eb1f7273425e | Java | Yamisteven23/Peterson-AndohKesson-Team | /StrangerThings/src/project/strangerThings/view/TheNoteView.java | UTF-8 | 3,312 | 3.109375 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package project.strangerThings.view;
import java.util.ArrayList;
import java.util.Random;
import java.util.Scanner;
import p... | true |
802faa301432fb53c62e2b4ec8e33f35916ebdb7 | Java | jloper3/libgdx-JumpyBro | /JumpyBro/src/com/me/JumpyBro/JBGame.java | UTF-8 | 432 | 2.40625 | 2 | [] | no_license | package com.me.JumpyBro;
import com.badlogic.gdx.Game;
import com.me.JBHelpers.AssetLoader;
import com.me.Screens.GameScreen;
public class JBGame extends Game {
@Override
public void create() {
System.out.println("JB game created!");
AssetLoader.load();
setScreen(new GameScreen());
... | true |
1efa02d53d4c7ac2d617026a34b6714200426fd1 | Java | pawan1616/Multithreading | /src/main/java/com/hackerrank/programs/DivisiblePairs.java | UTF-8 | 529 | 3.140625 | 3 | [] | no_license | package com.hackerrank.programs;
public class DivisiblePairs {
static int divisibleSumPairs(int n, int k, int[] ar) {
int count = 0;
for (int i = 0; i < n; i++)
{
for (int j = i + 1; j < n; j++)
{
if ((ar[i] + ar[j]) % k == 0)
... | true |
a5bcb64be6657634e05d437df629d0f92621d50d | Java | CyborTronik/fluent-registry | /service/src/main/java/com/github/cybortronik/registry/UrlDecoder.java | UTF-8 | 460 | 2.390625 | 2 | [
"Apache-2.0"
] | permissive | package com.github.cybortronik.registry;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
/**
* Created by stanislav on 11/26/15.
*/
public class UrlDecoder {
public String decode(String query) {
if (query == null)
return null;
try {
return URLDeco... | true |
e20f6fc916d35d544b5d583f9d0b5b4819e13241 | Java | madhusudhakar111/DataStructure | /src/graph/Test.java | UTF-8 | 205 | 2.0625 | 2 | [] | no_license | package graph;
public class Test {
public static void main(String[] args) {
//String a = "xx";
String a = null;
if(a==null) {
return;
}
System.out.println("Hello word");
}
}
| true |
40d1b36e17e7fbd356ac38ead9ee80049076cb0f | Java | javier1497/Juego-Stop.JAVA.BD | /juegoStop/src/clases/Nombre.java | UTF-8 | 912 | 2.4375 | 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 clases;
/**
*
* @author Estudiante
*/
public class Nombre {
private String nombre;
private int codNomb... | true |
30fad0b58543d511bb2c2b0382144d017cd9eab7 | Java | sunjava2006/1904 | /new_feature/Lambda/src/com/thzm/advance/lmb/ParamReturn.java | GB18030 | 1,736 | 3.71875 | 4 | [] | no_license | package com.thzm.advance.lmb;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
import java.util.SortedSet;
import java.util.TreeSet;
import java.util.function.Consumer;
public class ParamReturn {
public static void main(String[] args) {
// Lambdaʵֽӿڷӿڷûвûзֵ
// Runnableӿжrun(),ûвû... | true |
64d0b2ccae7f50e80d6e1dd9d54a85b40727af5c | Java | msrashed2018/pacs | /backend/src/main/java/com/almustkbal/pacs/services/impl/FileStorageServiceImpl.java | UTF-8 | 5,611 | 2.625 | 3 | [] | no_license | package com.almustkbal.pacs.services.impl;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardCopyOption;
import java.sql.Timestamp;
import o... | true |
605bacbf074a938ee723d6f5fe71de45174dc235 | Java | scorpionrao/DSAlgorithms | /src/main/java/live/tags.java | UTF-8 | 1,954 | 3.140625 | 3 | [] | no_license | package live;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
public class Tags {
public static List<Integer> getShortestContinuousSubsequence(List<String> targetTagsList, List<String> availableTagsList) {
int[] result = new int... | true |
4193bd5d1081a3e24bbf60ecd1a91e2f73640ab5 | Java | andytsunami/Mypst | /src/br/com/mypst/teste/Persiste.java | UTF-8 | 3,713 | 2.484375 | 2 | [] | no_license | package br.com.mypst.teste;
import java.io.IOException;
import java.net.URL;
import java.util.Calendar;
import java.util.Date;
import java.util.Scanner;
import javax.persistence.EntityManager;
import br.com.mypst.crawler.Game;
import br.com.mypst.crawler.Trophy;
import br.com.mypst.crawler.User;
import br.com.mypst.... | true |
cd3066cf3e684cad3e9aaa29e5cb11155b6c014b | Java | nikenrp/Yavatmal-in-My-Pocket | /app/src/main/java/in/protechlabz/www/yavatmalindicatorserver/tour/TourMahurActivity.java | UTF-8 | 1,839 | 1.96875 | 2 | [] | no_license | package in.protechlabz.www.yavatmalindicatorserver.tour;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.Html;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.TextView;
import com.google.android.gms.ads.AdView;... | true |
d353df93268678107b763f8f8e0d619629677685 | Java | androbita/team_force_android | /app/src/main/java/com/app/salesapp/attendance/AttendancePresenter.java | UTF-8 | 1,619 | 2.21875 | 2 | [] | no_license | package com.app.salesapp.attendance;
import com.app.salesapp.SalesAppService;
import com.app.salesapp.network.NetworkError;
import com.app.salesapp.network.Response;
import rx.Subscription;
import rx.subscriptions.CompositeSubscription;
public class AttendancePresenter implements AttendanceContract.Presenter {
... | true |
a5f4d38ed5b19baf4adc1dfb57284591c0f804d3 | Java | EvanJAR/library_homework | /src/main/java/Library.java | UTF-8 | 626 | 3.375 | 3 | [] | no_license | import java.util.ArrayList;
public class Library {
ArrayList<Book> books;
int capacity;
public Library(int capacity){
this.books = new ArrayList<>();
this.capacity = capacity;
}
public int countBooks(){
return this.books.size();
}
public void addBook(Book book) {... | true |
99cf8331f40fb4f9661d927c4bb75502b8f61314 | Java | SpencerDepas/PokeBusPro | /app/src/main/java/model/Distances.java | UTF-8 | 1,993 | 2.453125 | 2 | [] | no_license | package model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
/**
* Created by SpencerDepas on 3/22/16.
*/
public class Distances {
@SerializedName("PresentableDistance")
@Expose
private String PresentableDistance;
@SerializedName("DistanceFromCall")
... | true |
08615af9ee57584730cd3cbdfa27781087380ea3 | Java | Kartikrjpl/SimpliLearn | /simply/src/package2_June1/ClassX.java | UTF-8 | 455 | 3.125 | 3 | [] | no_license | package package2_June1;
public class ClassX {
private int s = 100;
long l1 = 100000L;
protected float f1 = 100.00111f;
public char c = 'F';
public void displayVar_X() {
display_private_X();
}
public void display_private_X() {
System.out.println("Private integer of ClassX "+s);
System.out.println("Default... | true |
521f722b17d9bcff501ef02cd7d82e3276ccc343 | Java | ralucatemle/cs-actions | /cs-couchbase/src/test/java/io.cloudslang.content.couchbase/execute/CouchbaseServiceTest.java | UTF-8 | 4,221 | 1.734375 | 2 | [
"Apache-2.0"
] | permissive | /*******************************************************************************
* (c) Copyright 2017 Hewlett-Packard Development Company, L.P.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License v2.0 which accompany this distribution.
*
* T... | true |
debf52e4c612087e56c416598e1848a648f42fed | Java | arupingit/Spring-DependencyInjectionExample | /src/main/java/net/arup/spring/dependencyInjection/Instruments.java | UTF-8 | 403 | 1.921875 | 2 | [
"MIT"
] | permissive | /*
* Copyright arupingit(Arup Dutta)
* github profile url https://github.com/arupingit
*
*/
package net.arup.spring.dependencyInjection;
/**
* The Interface Instruments.
*
* @author ARUP
*/
public interface Instruments {
/**
* Gets the intruments.
*
* @return the intruments
*/
public void getInt... | true |
903bd3f705d26f3107197e9361bfead5af915e87 | Java | L4tabar/Mesters-ges-intelligencia-alkalmaz-sok-1 | /Main.java | UTF-8 | 4,633 | 2.84375 | 3 | [] | no_license | package beadando;
import java.util.*;
public class Main {
private static boolean isGoalState(String value) {
return value.equals("*");
}
public static void main(String[] args) {
String[][] world = {
{String.valueOf(1), String.valueOf(5), String.valueOf(3), Str... | true |
81401165685e3de5e0c5f8edf794e7600134da1e | Java | YoonJH92/ParkingManage | /src/com/pms/dto/StatisticsDTO.java | UTF-8 | 1,311 | 2.21875 | 2 | [] | no_license | package com.pms.dto;
public class StatisticsDTO {
private String time;
private int inMonth;
private int inNomal;
private int outMonth;
private int outNomal;
private int pay;
private int totalPay;
private int monthCount;
private int monthPay;
public int getMonthPay() {
return monthPay;
}
public void set... | true |
54badd358fefb0a5311e0a9d1b1a6b8d734e67a6 | Java | laohixdxm/Algorithm | /Mianjing/G/TopView.java | UTF-8 | 1,577 | 3.375 | 3 | [] | no_license | import java.util.*;
/**
* Created by YiLIU on 9/17/15.
*/
public class TopView {
private class Node{
TreeNode node;
int index;
Node(TreeNode node, int index) {
this.node = node;
this.index = index;
}
}
public List<Integer> topView(TreeNode root) {
if (root == null) {
retu... | true |
f1e694bef47a0fd9bbae3416ceeb53546021e3b5 | Java | ionandrei5002/java-spring-boot | /src/main/java/com/spring/gameloft/service/AlbumServiceImpl.java | UTF-8 | 920 | 2.28125 | 2 | [] | no_license | package com.spring.gameloft.service;
import com.spring.gameloft.domain.Album;
import com.spring.gameloft.domain.AlbumSinger;
import com.spring.gameloft.repository.AlbumRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Ser... | true |
9997856b00e1548f627882178e24e215cea96118 | Java | jywoo87/payment-rest-api | /src/main/java/com/jywoo/payment/domain/validation/annotation/CardExpireDateConstraint.java | UTF-8 | 667 | 2.171875 | 2 | [] | no_license | package com.jywoo.payment.domain.validation.annotation;
import com.jywoo.payment.domain.validation.CardExpireDateValidator;
import com.jywoo.payment.except.message.ValidationExceptionMessage;
import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;
@Documented
@Constraint(v... | true |
5edcd214a18eb6e97af53266bcbe48e5ae7a19af | Java | azure1995/leetcode | /355.design-twitter.java | UTF-8 | 8,657 | 3.0625 | 3 | [] | no_license | <<<<<<< HEAD
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.PriorityQueue;
class Twitter {
Map<Integer, User> users;
int timeStamp;
public class User {
int id;
Map<Integer, Integer> followeesLastPostTime;
List<Post> posts;
P... | true |
d5c16df8b2ca3699f313df4d5a533d2b1b0c27ad | Java | nahmed92/unit-service | /src/it/java/com/etilize/burraq/unit/ValidateUnitIT.java | UTF-8 | 7,693 | 1.914063 | 2 | [] | no_license | /*
* #region
* unit-service
* %%
* Copyright (C) 2017 Etilize
* %%
* NOTICE: All information contained herein is, and remains the property of ETILIZE.
* The intellectual and technical concepts contained herein are proprietary to
* ETILIZE and may be covered by U.S. and Foreign Patents, patents in process, and
... | true |
f542b407f94b932eed8dfeeed95e8d0971b6f58c | Java | luongluong0812/C1120G1-trinh-cong-luong | /module3/bai_10_jsp/thuc_hanh2/src/checkServlet.java | UTF-8 | 1,264 | 2.40625 | 2 | [] | no_license | import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
@W... | true |
948c3ddb163f47dad735c91eb3bf2cd43d9c9b2a | Java | flywind2/joeis | /src/irvine/oeis/a116/A116796.java | UTF-8 | 375 | 2.640625 | 3 | [] | no_license | package irvine.oeis.a116;
import irvine.oeis.LinearRecurrence;
/**
* A116796 Number of permutations of length n which avoid the patterns <code>2314, 3241, 4132</code>.
* @author Sean A. Irvine
*/
public class A116796 extends LinearRecurrence {
/** Construct the sequence. */
public A116796() {
super(new lo... | true |
de91cec41a0bcf41b46584af83e988baff14f1a9 | Java | RDeepakkrishna/games | /Stupid Zombies/Stupid Zombies/Stupid Zombies/src/com/rhymes/game/bulletwar/PreferenceBullet.java | UTF-8 | 1,566 | 2.484375 | 2 | [] | no_license | package com.rhymes.game.bulletwar;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Preferences;
public class PreferenceBullet {
public static final String pref_name = "PREFERENCE_BULLET";
public static final String pref_sound = "SOUND";
public static final String pref_pack = "PACK_";
public static fina... | true |
04aee261ce32c4c149586e2f3b72b4036fe4b5d0 | Java | programacionDAMVC/curso_2020_2021 | /recuperacinJunio/src/baseDatos/Test.java | UTF-8 | 1,283 | 2.90625 | 3 | [] | no_license | package baseDatos;
import baseDatos.dao.AnimalDAO;
import baseDatos.dao.AnimalDAOSQL;
import baseDatos.dto.Animal;
import java.io.IOException;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;
public class Test {
public static void main(String[] args) {
try (Connection cone... | true |
5bc7b177c80cc5ed9e927bb799d19cf865a41f53 | Java | cenbow/wd | /workspace/okwei-payportal/src/main/java/com/okwei/pay/bean/enums/YunSupplierStatusEnum.java | UTF-8 | 669 | 2.53125 | 3 | [] | no_license | package com.okwei.pay.bean.enums;
/**
* 供应商状态 0未审核2不通过,3审核通过 4进驻 99已退驻
*
* @author Administrator
*
*/
public enum YunSupplierStatusEnum {
/**
* 未审核
*/
WeiShenHe(0),
/**
* 不通过
*/
BuTongGuo(2),
/**
* 审核通过
*/
ShenHeTongGuo(3),
/**
... | true |
5f31a7776ab7424effd1a856cb2fbc75d8d61109 | Java | RajeevGoriga/Java | /HashSetDemo.java | UTF-8 | 345 | 2.546875 | 3 | [] | no_license | import java.util.*;
public class HashSetDemo {
public static void main(String[] args) {
// TODO Auto-generated method stub
TreeSet hs=new TreeSet();
hs.add("sandeep");
hs.add("rajeev");
hs.add("rakesh");
hs.add("rajesh");
hs.add("raj kumar");
hs.add("alan");
hs.add("rajeev");
hs.add("rakesh");
Syste... | true |
e090f5de67267980a6cd47bef280bd6fc9b252b0 | Java | 18357697090/metooxinli | /metoo-rpc/service-xy/src/main/java/com/metoo/xy/xy/api/XyCityApiImpl.java | UTF-8 | 2,282 | 1.914063 | 2 | [] | no_license | package com.metoo.xy.xy.api;
import com.loongya.core.util.OU;
import com.loongya.core.util.RE;
import com.metoo.api.tj.TjUserInfoApi;
import com.metoo.api.xy.XyCityApi;
import com.metoo.api.xy.XyCountryApi;
import com.metoo.api.xy.XyMyRoomApi;
import com.metoo.pojo.old.vo.ReturnCityDTO;
import com.metoo.xy.xy.dao.enti... | true |
a485064cb499a968c4da2711ae3c3f42be28dd53 | Java | jugms/minicurso-jsf2 | /src/java/br/com/jugms/jsf/JsfUtil.java | UTF-8 | 952 | 2.21875 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package br.com.jugms.jsf;
import java.lang.reflect.Type;
import javax.enterprise.context.spi.CreationalContext;
import javax.enterprise.inject.spi.BeanManager;
import javax.enterprise.inject.spi.Bean;
import javax.faces... | true |
9b65cb93cbda0cea7bce5e47c5118a29f9962e54 | Java | immo/mmt | /netbeans/mmtApplet/src/mmt/zeitgerueste/chronologie.java | UTF-8 | 18,818 | 2.5625 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package mmt.zeitgerueste;
import java.util.*;
import java.io.*;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
*
* @author immanuel
*/
public class chronologie implements Comparable {
prot... | true |
b3c2dfa55af1f5ab03f4dc4dded9db5cb253a610 | Java | ghizoulo/reservationvol | /src/main/java/reservation/model/Reservation.java | UTF-8 | 3,857 | 2.25 | 2 | [] | no_license | package reservation.model;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persis... | true |
477985b089e740510e3309b20c7c3f20388df599 | Java | surajraje096/project_java | /BASIC JAVA PROGRAM/src/com/suraj/basicprog/Chiled.java | UTF-8 | 162 | 1.8125 | 2 | [] | no_license | package com.suraj.basicprog;
public class Chiled extends Parients{
public static void main(String[] args) {
Chiled obj= new Chiled();
obj.msg();
}
}
| true |
8160b58fbcf2156866bda37b081a71b3e67f28d2 | Java | AOC157/Card-Game | /Main.java | UTF-8 | 4,129 | 3.015625 | 3 | [] | no_license | package com.company;
import javax.swing.*;
import static java.lang.Thread.sleep;
public class Main {
public static void main(String[] args) throws InterruptedException {
Game game = new Game();
game.declareKingPlayer();
game.giveCards(5);
if (game.kingPlayer.equals(game.you)) ... | true |
aa0e7e640001ed1b0be6c109b07d79b4589ce18b | Java | Sudarsan-Sridharan/java-playground | /threadtest/src/main/java/net/xylophones/threadtest/sync/MasterThread.java | UTF-8 | 2,022 | 3.15625 | 3 | [] | no_license | package net.xylophones.threadtest.sync;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.Hashtable;
import java.util.Map;
public class MasterThread {
private ServerSocket serverSocket;
... | true |
473cadf5878fa5792e7867a2a48850596c9b4e66 | Java | faryyad-ul-haq/Java-Math-Test | /geometrytest/lib/src/main/java/geometrytest/geometry.java | UTF-8 | 394 | 2.375 | 2 | [] | no_license | package geometrytest;
public class geometry {
float areaRect(float height, float width) {
return height*width;
}
float perimeterRect(float height, float width) {
return 2*(height+width);
}
float volumeSphere(float radius) {
return (4/3)*(22/7)*(radius*radius*radius);
}
float surfac... | true |
8ac2d124b491361f60113b4c90516b1b0738ed77 | Java | oldaim/Coding_test-JAVA | /src/com/company/BOJ2293.java | UTF-8 | 880 | 2.859375 | 3 | [] | no_license | package com.company;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class BOJ2293 {
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
... | true |
1f697f6264c54ead91abf63225779f18bcb3a17a | Java | Grasp-Team/grasp | /src/main/java/com/grasp/configuration/UtilityConfiguration.java | UTF-8 | 939 | 2 | 2 | [
"MIT"
] | permissive | package com.grasp.configuration;
import io.searchbox.client.JestClientFactory;
import io.searchbox.client.config.HttpClientConfig;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.sprin... | true |
050cce94d92f7f3fbc6ddd35778584f6c9cf1f38 | Java | ggg17226/nas-tool-server | /src/main/java/cn/aghost/nastoolserver/object/response/ServerTimeResponse.java | UTF-8 | 244 | 1.554688 | 2 | [] | no_license | package cn.aghost.nastoolserver.object.response;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ServerTimeResponse {
private int timestamp;
}
| true |
5d5075b1e382036b2e5b7a2d990059c563ce7c31 | Java | Lishenga/retargeting-branding-affiliate-system | /authentication/src/main/java/com/authorization/authentication/requests/users/GetUsersByUserTypeRequest.java | UTF-8 | 1,314 | 2.09375 | 2 | [] | no_license | package com.authorization.authentication.requests.users;
import java.io.Serializable;
import javax.validation.constraints.NotNull;
import com.authorization.authentication.enums.UsersType;
public class GetUsersByUserTypeRequest implements Serializable {
/**
*
*/
private static final long serialVersionU... | true |
339151a830acf2cf1647a37c7f6819be708d88e6 | Java | balaji-githubstore/SampleProjectBDD2020 | /src/test/java/com/Crossword/Pages/SliderScroll_Crossword_Page.java | UTF-8 | 3,432 | 2.484375 | 2 | [] | no_license | package com.Crossword.Pages;
import java.io.File;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import org.apache.commons.io.FileUtils;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScree... | true |
0bbf020c9f6e69079f532df738982535bf991ad1 | Java | dutyujm/foroffer | /src/cn/dutyujm/test/pingduoduo/no2/Main.java | UTF-8 | 1,291 | 3.25 | 3 | [] | no_license | package cn.dutyujm.test.pingduoduo.no2;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;
/**
* @ClassName Main
* @Description 多多路上从左到右有N棵树(编号1 ~ N),其中第1个颗树有 和谐值Ai。
* 多多鸡认为,如果-段连续的树,它们的和谐值之和可以被M整除,那么这个区间整体看
* 起来就是和谐的。
* 现在多多鸡想请你帮忙计算一下, 满足和谐条件的区间的数量。
* @Author yu
* @Date 2020/4... | true |
2575c67fc634d26bcea396d94b17134215c60d64 | Java | alexbaryzhikov/rx-java-sandbox | /src/main/java/ch8/MissingBackpressure.java | UTF-8 | 640 | 2.546875 | 3 | [] | no_license | package ch8;
import io.reactivex.rxjava3.core.Flowable;
import io.reactivex.rxjava3.schedulers.Schedulers;
import util.Utils;
import java.util.concurrent.TimeUnit;
import static util.Utils.log;
import static util.Utils.sleep;
public class MissingBackpressure {
public static void main(String[] args) {
Fl... | true |
2530e560c5a70813901446f096c3097a11ecbce2 | Java | sophiemarceau/NEDIELTSStu_Android | /app/src/main/java/com/lels/bean/RefData.java | UTF-8 | 5,775 | 1.960938 | 2 | [
"MIT"
] | permissive | /*******************************************************************************
* Copyright (c) 2015 by dennis Corporation all right reserved.
* 2015-8-17
*
*******************************************************************************/
package com.lels.bean;
/**
* <pre>
* 业务名:
* 功能说明:
* 编写日期: 2015-8-17
*... | true |
55dc50e69ef60476c15090e37ba9c29b51bb93be | Java | peishanwang/pdp-Individual | /Assignment4/src/main/java/edu/neu/ccs/cs5010/ICandyGenerator.java | UTF-8 | 613 | 2.921875 | 3 | [] | no_license | package edu.neu.ccs.cs5010;
/**
* ICandyGenerator interface contains methods to generate candy.
*/
public interface ICandyGenerator {
/**
* Generate candy using candy size and a candy type.
* @param candySize size of the candy
* @param candyType type of the candy
* @return new candy
*/
ICandy gene... | true |
798b5cd027e080fa16daa73b25ae3d7c6ed786e0 | Java | o1711/somecode | /largegraph/lg-framework/src/main/java/com/graphscape/largegraph/console/provider/default_/cli/handlers/ChangeVertexCliHandler.java | UTF-8 | 993 | 2.171875 | 2 | [] | no_license | /**
* Dec 19, 2013
*/
package com.graphscape.largegraph.console.provider.default_.cli.handlers;
import java.util.concurrent.TimeUnit;
import com.graphscape.commons.cli.CliContext;
import com.graphscape.commons.cli.CommandAndLine;
import com.graphscape.commons.util.TimeAndUnit;
import com.graphscape.largeg... | true |
11e4bce144055beec58d0d2f06528e4ffb59dc72 | Java | RajGokul55/VMSTesting | /src/test/java/com/qa/wave2/GIMS.java | UTF-8 | 10,024 | 1.53125 | 2 | [] | no_license | package com.qa.wave2;
import org.testng.annotations.Test;
import com.qa.demo.base.CommonMethods2;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import java.io.IOException;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebEleme... | true |
ef15cc1be568c53142c35cdc620d97e656d99444 | Java | stompingBubble/javaBootcamp | /Basics/Car.java | UTF-8 | 525 | 3.640625 | 4 | [] | no_license | public class Car extends VehicleWithGears {
public Car(int gears, int wheels){
numberOfGears = gears;
numberOfWheels = wheels;
}
public void PrintMe(){
System.out.print("Number of gears: " + numberOfGears+ "\n");
System.out.print("Current gear: " + currentGear+ "\n");
... | true |
53a2b150e123debd904ef831f462c07000b318ce | Java | aq846908158/eh | /src/main/Java/cn/lcvc/service/MessageService.java | UTF-8 | 2,669 | 2.421875 | 2 | [] | no_license | package cn.lcvc.service;
import cn.lcvc.POJO.Message;
import cn.lcvc.POJO.Product;
import cn.lcvc.POJO.User;
import cn.lcvc.dao.MessageDao;
import cn.lcvc.dao.ProductDao;
import cn.lcvc.uitl.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
impor... | true |
36b10286137de4af61da3f3f118439f8a16ebd6e | Java | myAlike/myheadfirst | /src/main/java/com/myheadfirst/adapter/iterenum/EnumerationIteratorTestDrive.java | UTF-8 | 627 | 3.359375 | 3 | [] | no_license | package com.myheadfirst.adapter.iterenum;
import java.util.*;
public class EnumerationIteratorTestDrive {
public static void main(String[] args) {
Vector<String> v = new Vector<String>(Arrays.asList(args));
v.add("duqi");
v.add("bdd");
v.add("liuman");
Iterator iterator = new EnumerationIterator(v.elements... | true |
dd42ff9f0f1603c04acaadf79e5846d599e0661b | Java | NgoMinhHung/ExerciseJava | /src/test/java/basics/Exercise1Test.java | UTF-8 | 819 | 2.703125 | 3 | [] | no_license | package basics;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class Exercise1Test {
@Test
public void test_calculateGreatestCommonDivisor(){
assertEquals(new Exercise1().calculateGreatestCommonDivisor(1, 0), 1);
assertEquals(new Exercise1().calculateGreatestCommon... | true |
1561e381ad4281747791691b2c7361a0d3772a07 | Java | mulab/Graphics | /graph/data/graph3d/element/axis/AxisZ3D.java | UTF-8 | 1,887 | 2.234375 | 2 | [] | no_license | package graph.data.graph3d.element.axis;
import graph.drawer.myj3d.TextTransformGroup;
import javax.media.j3d.LineArray;
import javax.media.j3d.Shape3D;
import javax.vecmath.Point3d;
public class AxisZ3D extends Axis3D {
private static final long serialVersionUID = 2985278132735630080L;
private static ... | true |
2525205d610be2c8be162bf039df1b58d19e47d6 | Java | LacAbEla/HeartsMonitor | /src/HeartsMonitor/ReceptorTCP.java | UTF-8 | 6,600 | 3.015625 | 3 | [] | no_license | /*
* Hilo encargado de mantener la comunicacin TCP con un dispositivo de entrada
* Si cae la conexión tratará de volver a conectarse.
* Esta clase distingue entre nombre (nombre interno, a modo de ID) y nombre a mostrar (que sobreescribira al interno en la vista si esta configurado).
*/
package HeartsMonitor;
... | true |
ab1b94ed4ff2e71ab4cfb826cf867d5d5fc0b25f | Java | CQUPTSpecial2017/dididi | /app/src/main/java/com/example/myapplication/DemoFragment.java | UTF-8 | 1,225 | 2.09375 | 2 | [] | no_license | package com.example.myapplication;
import android.app.Fragment;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
impor... | true |
c8ea1c6eab07dbbbc60232dd7968962ed9192220 | Java | MR-WF/SimpleEngine | /src/main/java/com/wf/demo/SimpleEngineApplication.java | UTF-8 | 315 | 1.507813 | 2 | [] | no_license | package com.wf.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SimpleEngineApplication {
public static void main(String[] args) {
SpringApplication.run(SimpleEngineApplication.class, args);
}
}
| true |
9d3ca19e875ba8b732b342c1c7b003418d45114a | Java | azuki-framework/azuki-toolbox | /src/main/java/org/azkfw/toolbox/ToolBoxTaskTableModel.java | UTF-8 | 3,619 | 2.375 | 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... | true |
872056b43793748924deddaaa8882853745b491b | Java | hydrayu/imobile-src | /Po_git/MT8382HotkeyDefine/src/com/imobile/mt8382hotkeydefine/AppsGridFragment.java | BIG5 | 8,553 | 2.078125 | 2 | [] | no_license | package com.imobile.mt8382hotkeydefine;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Environment;
import android.support.v4.app.LoaderManager;
import android.... | true |
314c4d44e0c19dd35de7743a7e05287a945c4e30 | Java | ssyangy/q | /q-util/src/main/java/q/commons/domain/AbstractDomain.java | UTF-8 | 821 | 2.3125 | 2 | [] | no_license | /**
*
*/
package q.commons.domain;
import java.util.Date;
import q.util.DateKit;
/**
* @author seanlinwang
* @email xalinx at gmail dot com
* @date Feb 26, 2011
*
*/
public abstract class AbstractDomain {
protected long id;
protected Date created;
protected Date modified;
public long getId() {
retu... | true |
866c699bb0521b6a8745e1c52e14ec49b474d6cb | Java | behrouzzd/spring-boot-batch-swagger | /src/main/java/org/spring/wagavinproject/controller/dto/HouseInfo.java | UTF-8 | 1,174 | 2.4375 | 2 | [] | no_license | package org.spring.wagavinproject.controller.dto;
import org.spring.wagavinproject.data.enums.HouseType;
/**
* Created by Behrouz-ZD on 12/10/2017.
*/
public class HouseInfo {
private String personName;
private String address;
private String zipCode;
private HouseType houseType;
public Hous... | true |
95ef39a63935ae3575e22f9bd602054083b5a342 | Java | moutainhigh/mall-3 | /mall-dev-d102cfc1eecc5dccc4721ec4176eda35cc67dabf/mall-domain/src/main/java/com/youmu/mall/coupon/vo/UserCouponShopListVo.java | UTF-8 | 2,357 | 2.09375 | 2 | [] | no_license | /**
* youmu Service Inc
* All Rights Reserved @2017
*
*/
package com.youmu.mall.coupon.vo;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
/**
* 优惠券商城用户列表显示对象.
* @author zh
* @version $Id: CouponShopListVo.java, v 0.1 2017年2月27日 上午10:16:36 zh Exp $
*/
public class UserCouponShopL... | true |
2bf2ca4599ae5d4304061da005922cff2065ffa2 | Java | vaginessa/PinterestClient | /app/src/main/java/com/github/abhijit/pinterestclient/ui/home/fragment/post/Contract.java | UTF-8 | 438 | 1.742188 | 2 | [] | no_license | package com.github.abhijit.pinterestclient.ui.home.fragment.post;
import com.github.abhijit.pinterestclient.base.BasePresenter;
import com.github.abhijit.pinterestclient.base.BaseView;
import com.pinterest.android.pdk.PDKPin;
public interface Contract {
interface View extends BaseView<Presenter> {
void s... | true |
35c1f64557181c1f925242bbd986a1d1c5cfaf55 | Java | ccccjason/Design-Pattern | /Command Pattern/src/editor_application_v2/PasteMenuItem.java | UTF-8 | 170 | 1.875 | 2 | [] | no_license | package editor_application_v2;
public class PasteMenuItem extends MenuItem{
private PasteCommand pasteCommand;
public void clicked(){
pasteCommand.execute();
}
}
| true |
e0763fb28a851200c8f37b0659fc47364922bde6 | Java | Manish6006/Java-Programs | /JAVAPROGRAM/Percent.java | UTF-8 | 2,142 | 3.296875 | 3 | [] | no_license | import java.io.*;
import java.util.Map;
import java.util.*;
import java.util.HashMap;
public class Percent{
public static void main (String []args)
{
Scanner ins = new Scanner(System.in);
System.out.println("Enter a first String : ");
String inputString=ins.nextLine(); // if it... | true |
a228029d4088a653dfcc761579d444c0166601d7 | Java | semi0612/Attendance-management-program | /src/test/java/com/clockOn/web/controller/admin/EmpManageControllerTest.java | UTF-8 | 749 | 1.90625 | 2 | [] | no_license | package com.clockOn.web.controller.admin;
import java.util.Calendar;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import lombok.extern.log4j.Log4j;
//@RunWith(SpringJUnit4... | true |
3c2ee47b854567270e3235ff7facff27a40e43d7 | Java | blechner750/Landlord_Tenant | /app/src/main/java/com/example/brett/landlord_tenant/BillListAdapter.java | UTF-8 | 3,416 | 2.171875 | 2 | [] | no_license | package com.example.brett.landlord_tenant;
import android.content.Context;
import android.support.v4.content.ContextCompat;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.CheckBox;
import android.widget.CompoundButto... | true |
97b9e41c539e6910a5528e5b893db73a69479c7e | Java | Caecus/caecus | /app/src/main/java/caecus/com/caecus/RestApi/Model/EmparejarResponse.java | UTF-8 | 418 | 1.960938 | 2 | [] | no_license | package caecus.com.caecus.RestApi.Model;
/**
* Created by USUARIO on 30/08/2016.
*/
public class EmparejarResponse {
boolean success;
public EmparejarResponse(){
}
public EmparejarResponse(boolean success) {
this.success = success;
}
public boolean isSuccess() {
return succ... | true |
ab8892085b44c9af5a04520bfb3019b6803200ae | Java | yunusborazan/konas-fabric | /src/main/java/com/konasclient/konas/util/math/MatrixUtil.java | UTF-8 | 1,463 | 2.21875 | 2 | [] | no_license | package com.konasclient.konas.util.math;
import com.konasclient.konas.event.events.render.RenderEvent;
import com.konasclient.konas.interfaceaccessors.IMatrix4f;
import meteordevelopment.orbit.EventHandler;
import meteordevelopment.orbit.EventPriority;
import net.minecraft.client.MinecraftClient;
import net.minecraft.... | true |
7301a990715707b1866751d1da7119bece05f4a4 | Java | tom7737/gtMs | /crm/src/main/java/com/gt/ms/controller/sys/SysDictionaryController.java | UTF-8 | 4,227 | 2.15625 | 2 | [] | no_license | package com.gt.ms.controller.sys;
import com.gt.ms.controller.base.BaseController;
import com.gt.ms.entity.sys.SysDictionary;
import com.gt.ms.service.sys.SysDictionaryService;
import com.gt.ms.vo.AjaxResult;
import com.gt.ms.vo.PageInfo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframew... | true |
3a9be4675061fffaa1f430fc5d602eb9c3cb948c | Java | barjak19a/JavaProjects | /JavaProjects/domaci_8/src/spirale/Spirala.java | UTF-8 | 320 | 2.703125 | 3 | [] | no_license | package spirale;
public class Spirala {
private int a, b;
private double c;
public Spirala(int _a, int _b, double _c) {
a = _a;
b = _b;
c = _c;
}
public int x(double p) {
return (int)(a*p*Math.cos(b*p+c));
}
public int y(double p) {
return (int)(a*p*Math.sin(b*p+c));
}
}
| true |
5425a5e80a0952c7754d8ba93d453d0788912632 | Java | HowKeen/java168 | /matrix/Rank.java | UTF-8 | 593 | 3.296875 | 3 | [] | no_license | package matrix;
import java.util.Scanner;
public class Rank {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int[] score = new int[5];
int[] rank = new int[5];
for (int i = 0; i < rank.length; i++) {
System.out.println("점수: ");
score[i] = scanner.nextInt();
rank[i... | true |
4f1c8928ca7902805084a557afcb7f037a5d7823 | Java | zigzzzag/ForTest | /src/main/java/com/mnikiforov/trash/sber/Concurency2.java | UTF-8 | 507 | 2.1875 | 2 | [] | no_license | package com.mnikiforov.trash.sber;
/**
* Created by zigzzzag on 29.10.15.
*/
public class Concurency2 {
static volatile/**/ boolean running = true;
static class MyThread extends Thread {
@Override
public void run() {
while (running) {
}
}
}
public st... | true |
7ed36f169565f22394c2ca01b35c9589c097c633 | Java | yandongquan/JavaStudyDemo | /dobbox-demo-service/src/main/java/com/javazk/api/IDemoApi.java | UTF-8 | 475 | 1.867188 | 2 | [] | no_license | package com.javazk.api;
import com.alibaba.dubbo.rpc.protocol.rest.support.ContentType;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
@Path("/demoApi")
@Consumes({MediaType.APPLICATION_JSON, MediaType.TEXT_XML})
@Produces... | true |
363f375aa75e4a499cb1abbad7dfb158e4ea859f | Java | NDimaA/rate | /app/src/main/java/com/test/ratecalendar/RCAplication.java | UTF-8 | 364 | 1.648438 | 2 | [] | no_license | package com.test.ratecalendar;
import android.app.Application;
import android.content.Context;
/**
* Created by Пользователь on 18.11.2015.
*/
public class RCAplication extends Application {
public static Context context;
@Override
public void onCreate() {
super.onCreate();
context = g... | true |
f7273b22ece9b2bc8683b3c9096af3507423c22d | Java | pemski/test | /PMP_project/src/pmp/project/src/drink/DrinkFactory.java | UTF-8 | 3,110 | 2.953125 | 3 | [] | no_license | package pmp.project.src.drink;
import java.util.ArrayList;
import pmp.project.src.ingredient.Ingredient;
import pmp.project.src.ingredient.LiquidIngredient;
import pmp.project.src.ingredient.PowderyIngredient;
import pmp.project.src.ingredient.Pressure;
import pmp.project.src.ingredient.Temperature;
import pmp.projec... | true |
b52d0e9389d8c10c196a901536a15208af71396d | Java | FerdiKT/FSMVUDersProgRS | /src/main/java/tr/edu/fsm/FSMVUDersProgRS/Yonetim/Yonetici.java | UTF-8 | 2,146 | 2.15625 | 2 | [] | no_license | package tr.edu.fsm.FSMVUDersProgRS.Yonetim;
// default package
// Generated 07.A�u.2015 11:35:12 by Hibernate Tools 4.3.1
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
impo... | true |
1eec4eaeac551c87c0a51151b0f2cc0262b4059b | Java | eliasapascaritei/RxJava_Workshop | /src/test/java/com/iteratrlearning/problems/reactive_streams/DownloadingWebPagesExercise.java | UTF-8 | 1,473 | 3.03125 | 3 | [] | no_license | package com.iteratrlearning.problems.reactive_streams;
import io.reactivex.Flowable;
import org.apache.http.client.fluent.Request;
import org.junit.Ignore;
import org.junit.Test;
import java.io.IOException;
import java.util.List;
import static org.junit.Assert.assertEquals;
@Ignore // TODO: remove Ignor... | true |
611e4daa07d7c9823271255fc650d9b648aed58b | Java | Sanjib-123/java-program | /method1.java | UTF-8 | 583 | 3.140625 | 3 | [] | no_license | package scmethod1;
public class SCMethod1
{
int gcd(int m,int n)
{
while(m!=n)
{
if(m>n)m=m-n;
else n=n-m;
}
return m;
}
public static void main(String[] args)
{
SCMethod1 x=new SCMethod1();
System.out.prin... | true |
3569b1781d6a6993bcdd425b268e290e6c6659c0 | Java | gaillysu/med-library | /library/src/main/java/net/medcorp/library/ble/exception/BaseBLEException.java | UTF-8 | 437 | 2.1875 | 2 | [] | no_license | package net.medcorp.library.ble.exception;
import net.medcorp.library.ble.exception.visitor.BLEExceptionVisitable;
import net.medcorp.library.ble.exception.visitor.BLEExceptionVisitor;
/**
* Created by Karl on 11/5/15.
*/
public abstract class BaseBLEException extends Exception implements BLEExceptionVisitable {
... | true |
4a5f4722cdf2e2ddb759c7c5ebb02f35c1238951 | Java | clfbai/heoll | /user-center/src/main/java/com/boyu/erp/platform/usercenter/entity/system/SysPrsnlOwner.java | UTF-8 | 738 | 1.773438 | 2 | [] | no_license | package com.boyu.erp.platform.usercenter.entity.system;
import com.boyu.erp.platform.usercenter.entity.BaseData;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import java.io.Serializable;
/**
* sys_prsnl_owner
*
* @description: 人员属主表
* @author: CLF... | true |
d76d6baf2beb835a274bd9f577c8539da38e4ee0 | Java | UniSubscription/UniSubscription-backend | /UniSubscription/src/main/java/az/code/unisubscription/dao/UserDao.java | UTF-8 | 144 | 1.875 | 2 | [] | no_license | package az.code.unisubscription.dao;
import az.code.unisubscription.models.User;
public interface UserDao {
User createUser(User user);
}
| true |
9c150fa3e7999ced3fdeac75ddb8e417bcaff944 | Java | SKeerthana/Calculator | /src/com/thoughtworks/calculator/SubtractionOperation.java | UTF-8 | 607 | 3.34375 | 3 | [] | no_license | package com.thoughtworks.calculator;
public class SubtractionOperation implements Operation{
private int operand;
public SubtractionOperation(int operand) {
this.operand = operand;
}
public double computeResult(double accumulator) {
accumulator -= operand;
return accumulator;
... | true |
a8cd661f8719a20c8e4c5f6e71f56782f3bd1d6e | Java | dsestaro/machine_learning_API | /src/test/java/br/com/algorithms/machine/learning/supervisioned/tree/id3/data/instance/InstancesTests.java | UTF-8 | 4,057 | 2.921875 | 3 | [
"Apache-2.0"
] | permissive | package br.com.algorithms.machine.learning.supervisioned.tree.id3.data.instance;
import br.com.algorithms.machine.learning.exception.instances.NonExistentInstanceException;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.as... | true |
4517211b834cc3db62a52f80c4c98738de407899 | Java | tibizy/miu-sa-ms-commerce-atega | /account-service/src/main/java/miu/sa/accountservice/repository/AccountRepository.java | UTF-8 | 563 | 1.984375 | 2 | [] | no_license | package miu.sa.accountservice.repository;
import miu.sa.accountservice.model.entity.Account;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
i... | true |
6f1d0b9d798c03e26b16d641438f06bcf9ec8390 | Java | KNogajska/AndroidU | /app/src/main/java/com/karolina/androidu/ShoppingListActivity.java | UTF-8 | 5,107 | 2.40625 | 2 | [] | no_license | package com.karolina.androidu;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v4.util.ArraySet;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
imp... | true |
b06673536320e30ac82d3cccc41bac2b76462c38 | Java | jambestwick/HackWechat | /app/src/main/java/com/tencent/mm/plugin/webview/ui/tools/WebViewUI$y.java | UTF-8 | 2,945 | 1.546875 | 2 | [] | no_license | package com.tencent.mm.plugin.webview.ui.tools;
import com.tencent.mm.plugin.report.service.g;
import com.tencent.mm.plugin.webview.model.aj.h;
import com.tencent.mm.plugin.webview.model.aj.i;
import com.tencent.mm.plugin.webview.stub.d;
import com.tencent.mm.sdk.platformtools.bh;
import com.tencent.mm.sdk.platformtoo... | true |
cbcaad900bdc959016c63bdbe3ab16ddce6c080f | Java | sai-chint/172208_CHSaiKrishna | /FreshersBatch/Core_Java/sai2/src/com/stu1/Student1.java | UTF-8 | 329 | 2.296875 | 2 | [] | no_license | package com.stu1;
import com.stu.Student;
public class Student1 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Student s = new Student();
s.setName("Sai");
s.setAddress("7-145/8");
s.toString();
s.addCourseGrade();
s.printGrades();
s.getAverageGrade();
... | true |
5b00eb20b56fb9244468008a596983650b76a9b9 | Java | tanhank2k/Java_Hibernate | /src/main/java/com/Service/RegistrationCourse.java | UTF-8 | 3,278 | 2.359375 | 2 | [] | no_license | package com.Service;
import com.DAO.SemesterDAO;
import org.hibernate.SQLQuery;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;
import java.util.ArrayList;
import java.util.List;
public class RegistrationCourse {
private... | true |