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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
a3dde44d4868f7435a64cf1e73de1a9223a94b63 | Java | zgc456/dubbo | /demo1/project-prodo/src/main/java/com/zheng/Project_Porta_Applicaton.java | UTF-8 | 367 | 1.546875 | 2 | [] | no_license | package com.zheng;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* Created by lenovo on 2018/3/27.
*/
@SpringBootApplication
public class Project_Porta_Applicaton {
public static void main(String[] args) {
SpringApplication.ru... | true |
06588c2d8281f4223af5438189c5cb3148327abe | Java | Eveveen/Shopping-be | /src/main/java/com/service/iface/UserMessageServiceIface.java | UTF-8 | 245 | 1.617188 | 2 | [] | no_license | package com.service.iface;
import java.util.List;
import com.entity.UserMessage;
public interface UserMessageServiceIface {
public List<UserMessage> findMsgByReceiverId(int receiverId);
public int updateReadStatus(int receiverId);
}
| true |
e36325b0a7b2d96ac088557934ea82dfce23da1b | Java | jonfhancock/MindBody | /MindBodyHancock/src/com/jonfhancock/mindbody/models/SessionType.java | UTF-8 | 2,988 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package com.jonfhancock.mindbody.models;
import android.content.ContentProviderOperation.Builder;
import android.database.Cursor;
import android.os.Parcel;
import android.os.Parcelable;
import com.alexgilleran.icesoap.annotation.XMLField;
import com.alexgilleran.icesoap.annotation.XMLObject;
import com.jonfhancock.mi... | true |
5052a7fe20cf0da29c468f9f6362adbb37761028 | Java | Mahran-Yacoub/World-Map-Dijkstra | /src/weigthed/graph/Country.java | UTF-8 | 1,345 | 3.390625 | 3 | [] | no_license | package weigthed.graph;
/**
* This class will be used to create objects to represent countries as vertices
* in a graph
*
*/
public class Country {
/** Name of a country */
private String name;
/** Y AXIS */
private double latitude;
/** X - Axis */
private double longitude;
publ... | true |
1524a47f79f06a26acbb77214e1614637d46c220 | Java | ttr843/esexample | /src/main/java/ru/itis/example/es/utils/elastic/ElasticSearchQueryBuilder.java | UTF-8 | 2,598 | 2.421875 | 2 | [] | no_license | package ru.itis.example.es.utils.elastic;
import lombok.Getter;
import org.apache.commons.lang3.BooleanUtils;
import org.apache.commons.lang3.StringUtils;
import org.elasticsearch.index.query.BoolQueryBuilder;
import org.springframework.util.CollectionUtils;
import java.util.Collection;
import static org.elasticsear... | true |
c6431a3f6607c92e5a371a4e4db6d50c805643d2 | Java | dobrosi/JCFS | /src/main/java/com/programgyar/jcfs/Main.java | UTF-8 | 928 | 2.46875 | 2 | [] | no_license | package com.programgyar.jcfs;
import java.io.IOException;
import java.nio.file.Paths;
import java.util.HashMap;
import java.util.Map;
import co.paralleluniverse.javafs.JavaFS;
public class Main {
public static void main(String[] args) {
JCFileSystem jcFileSystem = JCFileSystem.getInstance();
// Path foo = jcFil... | true |
e5dff5bd8589603fe7a23d5272defc6a1f706b4b | Java | jtrpan/ForestGUI | /src/Evergreen.java | UTF-8 | 1,225 | 3.34375 | 3 | [
"MIT"
] | permissive | import java.awt.*;
// imports
public class Evergreen extends Coniferous { // subclass of coniferous and tree
final int GROUND = 450; // height of the ground
public Evergreen (int xPos) {
super(xPos);
} // get the position in parameter
public void grow (Graphics g){
// Thi... | true |
66990b47b9dc69a3bca8cf1de0b971f9e22bfbab | Java | indeedeng/proctor | /proctor-pipet/proctor-pipet-deploy/src/main/java/com/indeed/proctor/pipet/deploy/AppInit.java | UTF-8 | 1,182 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | package com.indeed.proctor.pipet.deploy;
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;
import javax.servlet.ServletRegistration;
/**
* Alternative to creating a web.xml by overriding methods in a class.
*
* <p>Consider using WebApplicationInitializer if you n... | true |
1cfce1f5b36608ab24c54a50ff1e67d0b012fc28 | Java | ABigdataer/FileManagementSystem-DataAnalysis | /PersonalAdministration/DataAnalysis/src/main/java/runner/DataAnalysisRunner.java | UTF-8 | 9,997 | 2.03125 | 2 | [] | no_license | package runner;
import kvbean.key.BirthdayMapperKey;
import kvbean.key.BirthdayReducerKey;
import kvbean.key.EducationalBackgroundStatistics;
import kvbean.value.BasicData;
import mapper.BirthdayDataAnalysisMapper;
import mapper.EducationDataAnalysisMapper;
import org.apache.hadoop.conf.Configuration;
import org.apach... | true |
d2077cd2716ce9a4bdb2b25b8c2f07868d79f191 | Java | heroyuy/systar | /history/SoyoMaker2012/src/com/soyomaker/render/OrthoPreviewRender.java | UTF-8 | 17,434 | 2.53125 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.soyomaker.render;
import com.soyomaker.model.map.CollideLayer;
import com.soyomaker.model.map.Map;
import com.soyomaker.model.map.NpcState;
import com.soyomaker.model.map.SpriteLayer;
import com.soyomaker.mo... | true |
04d5707dee195f0c6e4359e27eca45253ec7cc1c | Java | pyp163/BlueTooth | /app/src/main/java/org/apache/commons/net/ftp/parser/NTFTPEntryParser.java | UTF-8 | 2,762 | 2.328125 | 2 | [] | no_license | package org.apache.commons.net.ftp.parser;
import java.text.ParseException;
import org.apache.commons.net.ftp.Configurable;
import org.apache.commons.net.ftp.FTPClientConfig;
import org.apache.commons.net.ftp.FTPFile;
public class NTFTPEntryParser extends ConfigurableFTPFileEntryParserImpl
{
private static final St... | true |
a31d36613e87bfa2d69a9cbc5f8f0276f52a023f | Java | Archsystemsllc/radservices | /src/main/java/com/archsystemsinc/qam/model/CsrLog_.java | UTF-8 | 733 | 1.78125 | 2 | [] | no_license | package com.archsystemsinc.qam.model;
import java.util.Date;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;
@StaticMetamodel (CsrLog.class)
public abstract class CsrLog_ {
public static volatile SingularAttribute<CsrLog, Long> id;
public stati... | true |
6fba3d6afd05b25a214585687161e3a5d2f0c703 | Java | immortius/Terasology | /engine/src/main/java/org/terasology/world/block/family/AbstractBlockFamily.java | UTF-8 | 1,716 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2013 MovingBlocks
*
* 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 t... | true |
2fe8ae34a8918520ccdee1fc45a39351758b0280 | Java | MeGAS-island/TruinOgLifid | /TruinOgLifid/TruinOgLifid/src/is/tru/truin/BaenastundFragment.java | UTF-8 | 1,283 | 1.921875 | 2 | [] | no_license | package is.tru.truin;
import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import androi... | true |
69088d7ab13af2fe4812daa55fd7b3f89ac01fdd | Java | clearmode/JavaHTTPServer | /HTTPServer/src/koch/dan/httpserver/RequestResponder.java | UTF-8 | 1,183 | 3 | 3 | [] | no_license | package koch.dan.httpserver;
/**
* Created by Dan on 6/11/2017.
*/
import java.io.*;
import java.net.*;
public class RequestResponder implements Runnable
{
private Socket _clientSocket;
public RequestResponder(Socket clientSocket)
{
_clientSocket = clientSocket;
}
@Override
public... | true |
6157aab6ba79cb6675c661bdecba116816596fdc | Java | VITALIoTOrg/vital-ppi-citybikes | /src/main/java/eu/vital/reply/jsonpojos/Service.java | UTF-8 | 4,174 | 2.265625 | 2 | [] | no_license |
package eu.vital.reply.jsonpojos;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Generated;
import javax.validation.Valid;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import co... | true |
48f1e5f6301eec30badce98e466d2a3f728b8bd7 | Java | nileshmane1988/Selenium | /Selenium3/src/webpages/ActitimeLoginPage1.java | UTF-8 | 1,141 | 2.546875 | 3 | [
"MIT"
] | permissive | package webpages;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
public class ActitimeLoginPage1
{
//datamember should be declared globally with access specifier private, return type should be WebElement.
private WebElement username;
private WebElem... | true |
383cc47dc1c77f77e7e62434dfb1f8e34bec6f08 | Java | dmitryako/kingroup | /tsvlib_java/javax/iox/table/TableDisplayOpt.java | UTF-8 | 1,753 | 2.34375 | 2 | [] | no_license | package javax.iox.table;
import javax.textx.FractionDigitsModel;
/**
* Copyright: www.DmitryKonovalov.org, jc138691, 3/06/2007, 11:16:55
*/
public class TableDisplayOpt
{
private FractionDigitsModel digitsModel;
private int maxNumCols;
private int maxNumRows;
private boolean countOn;
public sta... | true |
7c7372a94fb1976c980b674a6743f1e04660c165 | Java | flywind2/joeis | /src/irvine/oeis/a270/A270994.java | UTF-8 | 316 | 2.4375 | 2 | [] | no_license | package irvine.oeis.a270;
import irvine.oeis.LinearRecurrence;
/**
* A270994 <code>a(n) = 9454129 + 11184810*n</code>.
* @author Sean A. Irvine
*/
public class A270994 extends LinearRecurrence {
/** Construct the sequence. */
public A270994() {
super(new long[] {-1, 2}, new long[] {9454129, 20638939});
... | true |
f27f1a6e3e494e1726191ac6dbd1169f3b42cb3d | Java | springwindyike/mall-project | /mall-common/src/main/java/com/ishare/mall/common/base/dto/pay/AliRefundNotifyDTO.java | UTF-8 | 2,021 | 1.789063 | 2 | [] | no_license | package com.ishare.mall.common.base.dto.pay;
import com.ishare.mall.common.base.dto.generic.GenericDTO;
/**
* Created by YinLin on 2015/8/27.
* Description : 阿里退款
* Version 1.0
*/
public class AliRefundNotifyDTO extends GenericDTO {
private static final long serialVersionUID = -2601175208254084539L;
priva... | true |
7a0c01bc87683b8677a9782131926c8711a034bd | Java | raviselenium18/TestingOne | /src/test/java/One.java | UTF-8 | 1,479 | 2.40625 | 2 | [] | no_license | import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
public class One {
/*
* Sy... | true |
88dedbfda92d834620c98e0b6e9f081a61490998 | Java | JUWON-KEVIN-LEE/FC_STUDY | /Android/AndroidMemo2/app/src/main/java/com/immymemine/kevin/androidmemo2/DBHelper.java | UTF-8 | 1,452 | 2.84375 | 3 | [] | no_license | package com.immymemine.kevin.androidmemo2;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
/**
* Created by quf93 on 2017-09-21.
*/
public class DBHelper extends SQLiteOpenHelper {
private static final String DB_NAME = "sqlite.db";... | true |
3818c6954772008a7ff9e935fd87501c4a36c816 | Java | laitsky/if402 | /UAS_27047_VincentDiamond/src/umn/ac/id/_27047/Main.java | UTF-8 | 17,618 | 2.578125 | 3 | [] | no_license | package umn.ac.id._27047;
import java.util.ArrayList;
import java.util.Scanner;
public class Main {
static ArrayList<Aktor> aktors = new ArrayList<>();
static ArrayList<Celebgram> celebgrams = new ArrayList<>();
static ArrayList<Majalah> majalahs = new ArrayList<>();
static ArrayList<Baliho> balihos =... | true |
ba07f4bea351760b567ddde171dd4fd5eb628637 | Java | LichtHund/DocDex | /discord/src/main/java/me/piggypiglet/docdex/config/Config.java | UTF-8 | 1,516 | 1.96875 | 2 | [
"MIT"
] | permissive | package me.piggypiglet.docdex.config;
import com.google.gson.annotations.JsonAdapter;
import com.google.inject.Singleton;
import me.piggypiglet.docdex.config.deserialization.UrlDeserializer;
import me.piggypiglet.docdex.db.server.JavadocCategory;
import me.piggypiglet.docdex.file.annotations.File;
import org.jetbrains... | true |
4a485301c23783511cd6c89e74359d7d19ff0cec | Java | Megaprog/tuples | /src/main/java/org/jmmo/tuple/Tuple5.java | UTF-8 | 4,547 | 3.125 | 3 | [
"Apache-2.0"
] | permissive | package org.jmmo.tuple;
import org.jmmo.function.Consumer5;
import org.jmmo.function.Function5;
import java.util.Comparator;
import java.util.Iterator;
import java.util.Objects;
public class Tuple5<T0, T1, T2, T3, T4> implements Tuple, Comparable<Tuple5<T0, T1, T2, T3, T4>> {
private static final long serialVers... | true |
2469b8828a3ca01762a9540547ae8c6db6984558 | Java | vcolonges/MachINSAlaver | /app/src/main/java/com/machinsa_laver/machinsalaver/fragments/ResidencesFragment.java | UTF-8 | 4,320 | 2.0625 | 2 | [] | no_license | package com.machinsa_laver.machinsalaver.fragments;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.view.LayoutInflater;
import android.view.Menu;
import an... | true |
196765ee5ede7e38a90f2e8fa739aff96c1eaed5 | Java | AlexRenCN/ExampleForSpel | /src/main/java/com/alex/spel/CallingConstructors.java | UTF-8 | 649 | 2.40625 | 2 | [] | no_license | package com.alex.spel;
import com.alex.bean.User;
import org.springframework.expression.EvaluationContext;
import org.springframework.expression.ExpressionParser;
import org.springframework.expression.spel.standard.SpelExpressionParser;
import org.springframework.expression.spel.support.StandardEvaluationContext;
/**... | true |
329eeb6cbe9cb569e60acd9f74affbbb7862b088 | Java | crisgicr/medicamentos | /src/main/java/com/medicamentos/model/Usuario.java | UTF-8 | 2,737 | 2.28125 | 2 | [] | no_license | package com.medicamentos.model;
// Generated 31/10/2017 08:33:58 PM by Hibernate Tools 5.2.5.Final
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax... | true |
cd4c40c77f7a42f6506ca583c005bf3a363fce4d | Java | RukmaniGanapathy/mcproject | /app/src/main/java/edu/project/mobilecomputing/mc_project/ui/Constants.java | UTF-8 | 2,632 | 2.203125 | 2 | [] | no_license | /**
* Copyright 2014 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | true |
5075526c126efa62eb5fa7e40757e98a5a8671be | Java | jvelezb/estructura-datos-ago-2015 | /segundoParcial/Vehiculos/src/vehiculos/Vocho.java | UTF-8 | 920 | 3.171875 | 3 | [
"MIT"
] | permissive | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package vehiculos;
/**
*
* @author juanvelezballesteros
*/
public class Vocho implements Vehiculo{
@Override
publi... | true |
b009113c0c8f652e580a2bb10e60f2e8181cbb77 | Java | darthoo/TaskAndRewards | /app/src/main/java/com/yolotasker/yolotasker/data/impl/TaskRepositoryImpl.java | UTF-8 | 847 | 2.15625 | 2 | [] | no_license | package com.yolotasker.yolotasker.data.impl;
import android.content.Context;
import com.yolotasker.yolotasker.data.TaskRepository;
import com.yolotasker.yolotasker.data.db.DBHelper;
import com.yolotasker.yolotasker.data.model.Task;
import com.yolotasker.yolotasker.ui.activity.MainActivity;
import java.lang.annotatio... | true |
bdd876955f225c9b7ec175f132962897accfa3d7 | Java | pinpoint-apm/pinpoint | /collector/src/main/java/com/navercorp/pinpoint/collector/cluster/route/DefaultRouteFilterChain.java | UTF-8 | 1,943 | 2.046875 | 2 | [
"DOC",
"LicenseRef-scancode-free-unknown",
"CC0-1.0",
"OFL-1.1",
"GPL-1.0-or-later",
"CC-PDDC",
"GPL-2.0-only",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference",
"MITNFA",
"MIT",
"CC-BY-4.0",
"OFL-1.0"
] | permissive | /*
* Copyright 2014 NAVER Corp.
*
* 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 a... | true |
7df57dda31d2809a0b03c1b9240a48975696b417 | Java | SkateScout/c-geo-opensource | /src/cgeo/geocaching/cgCacheDifficultyComparator.java | UTF-8 | 598 | 2.453125 | 2 | [
"Apache-2.0"
] | permissive | package cgeo.geocaching;
import java.util.Comparator;
import android.util.Log;
public class cgCacheDifficultyComparator implements Comparator<cgCache> {
public int compare(cgCache cache1, cgCache cache2) {
try {
if (cache1.difficulty == null || cache2.difficulty == null) {
return 0;
}
if (cache1.... | true |
2134b21f39d52c9bfe6ab71337ac53d768170c35 | Java | tn841/java_intern | /webCrawling/src/main/java/com/test/controller/MemberController.java | UTF-8 | 3,503 | 2.359375 | 2 | [] | no_license | package com.test.controller;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Date;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework... | true |
4f651a21885fabf1d8276cfe1ff9778de813ed23 | Java | bohdanvan/javaoop-group75 | /src/com/bvan/oop/lesson10/tree/RatingToMovieExample.java | UTF-8 | 1,113 | 3.515625 | 4 | [] | no_license | package com.bvan.oop.lesson10.tree;
import com.bvan.oop.lesson10.Movie;
import com.bvan.oop.lesson10.MoviesFactory;
import java.util.List;
import java.util.NavigableMap;
import java.util.SortedMap;
import java.util.TreeMap;
/**
* @author bvanchuhov
*/
public class RatingToMovieExample {
public static void mai... | true |
7fa41775f9dca1b0d4bf4feb405a4a00c55cd7fe | Java | DTMGEEK/PhoneProtectPro | /AndrodProtectorPro/AndroidPortectPro/app/src/main/java/com/example/androiddefprot/receiver/CallPhoneReceiver.java | UTF-8 | 1,122 | 2.59375 | 3 | [] | no_license | package com.example.androiddefprot.receiver;
import com.example.androiddefprot.ui.LostProtectedActivity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
/**
*
* @Title: CallPhoneReceiver.java
* @Package com.example.androiddefprot.receiver
* @Description: ... | true |
97d745b28e1990b13885bcb48b3ab987456f005a | Java | zlh142857/mycsa | /shiro/src/main/java/com/hx/config/SystemLogoutFilter.java | UTF-8 | 1,204 | 2.1875 | 2 | [] | no_license | package com.hx.config;/*
*//*
*@作者:张立恒
*@时间:2018/10/15 12:06
*@功能:
*/
import com.alibaba.fastjson.JSONObject;
import org.apache.shiro.session.SessionException;
import org.apache.shiro.subject.Subject;
import org.apache.shiro.web.filter.authc.LogoutFilter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
... | true |
32d2be81318230aa43a02c1fcac0883501588d56 | Java | khillansinghyolo/Code | /Project1/src/pkg/Read.java | UTF-8 | 511 | 3.078125 | 3 | [] | no_license | package pkg;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
public class Read {
public void readData(int initial ,int end) throws Exception
{
BufferedReader file=new BufferedReader(new FileReader(new File("../Project1/File.txt")));
int k=1;
String i="";
while(( i=file.readLi... | true |
39ba7e752d7a7cb029528f0085a195ddc717669d | Java | zhanght86/zsbank | /src/com/sinosoft/midplat/jxnxs/net/JxnxsNetImpl.java | GB18030 | 5,728 | 1.984375 | 2 | [] | no_license | package com.sinosoft.midplat.jxnxs.net;
import java.net.Socket;
import javax.crypto.Cipher;
import org.jdom.Document;
import org.jdom.Element;
import org.jdom.xpath.XPath;
import com.sinosoft.midplat.common.IOTrans;
import com.sinosoft.midplat.common.JdomUtil;
import com.sinosoft.midplat.common.NoFactory;
import c... | true |
4e36cf02495ef64a7711a7c5efa4c31580d3098f | Java | rusakovichma/updates-r-simple | /core/src/test/java/de/idos/updates/DefaultVersionInstallerTest.java | UTF-8 | 956 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | package de.idos.updates;
import de.idos.updates.store.Installation;
import de.idos.updates.store.OngoingInstallation;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
... | true |
2160ee9dfa5badafbdf66e92463f9e24dc781f90 | Java | Josephaguele/Java-Lectures-Deitel | /src/ch04/Exercises/e19/SalesCommissionLauncher.java | UTF-8 | 349 | 2.34375 | 2 | [] | no_license | package ch04.Exercises.e19;
public class SalesCommissionLauncher
{
public static void main(String[]args)
{
// calling object SalesCommissionCalculator
SalesCommissionCalculator commissionCalculator = new SalesCommissionCalculator();
commissionCalculator.computeEarnings(); // calling met... | true |
68e2a794811a241fdd96f2040e58936723cb0ccd | Java | maiconloure/poo_exercises_java | /src/first_exercise/App.java | UTF-8 | 435 | 2.6875 | 3 | [] | no_license | package first_exercise;
public class App {
public static void main(String[] args) throws Exception {
Client client = new Client();
client.setName("Nippon");
client.setSurname("Hyakkei");
client.setAge(55);
client.setCPF(123123131);
client.setAccount(new CheckingAccount(100));
CheckingAcc... | true |
4aa546a83ddaca82315b46e859c4a940dfd6d0bc | Java | shaohan0228/zstack | /storage/src/main/java/org/zstack/storage/snapshot/SnapshotCanonicalEvents.java | UTF-8 | 962 | 1.945313 | 2 | [
"Apache-2.0"
] | permissive | package org.zstack.storage.snapshot;
import org.zstack.core.Platform;
import org.zstack.core.cloudbus.EventFacade;
import org.zstack.header.storage.snapshot.VolumeSnapshotInventory;
public class SnapshotCanonicalEvents {
public static String INNER_SNAPSHOT_CREATED = "/primary-storage/inner-snapshot-created";
... | true |
846397bf5bb07ee4210d080a07b65c95291647ae | Java | Joao6/sim | /src/main/java/com/sim/web/rest/controller/MasterRestController.java | UTF-8 | 10,074 | 1.992188 | 2 | [] | no_license | package com.sim.web.rest.controller;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.reflect.TypeToken;
import com.sim.model.criteria.InstituicaoCriteria;
import com.sim.model.criteria.PacienteCriteria;
import com.sim.model.criteria.UsuarioCriteria;
import com.sim.model.entity.I... | true |
e52c31508ba0f3ae86afe96cf8c51ed4753fc2bc | Java | TSSaint/meta64 | /src/main/java/com/meta64/mobile/service/NodeRenderService.java | UTF-8 | 12,506 | 2.1875 | 2 | [] | no_license | package com.meta64.mobile.service;
import java.util.LinkedList;
import java.util.List;
import java.util.NoSuchElementException;
import javax.jcr.Node;
import javax.jcr.NodeIterator;
import javax.jcr.Session;
import javax.jcr.nodetype.NodeType;
import org.apache.commons.lang3.StringUtils;
import org.slf4j... | true |
0c924bc01f66c049005fa0242d687a327c3aa11b | Java | gBadessa/javaTestApp | /src/br/com/gbadessa/ui/ExecutaAppViewModel.java | UTF-8 | 4,165 | 2.6875 | 3 | [] | no_license | package br.com.gbadessa.ui;
import br.com.gbadessa.Main;
import br.com.gbadessa.model.business.ILogCorridaBusiness;
import br.com.gbadessa.model.viewobjecties.LogCorridaViewObject;
import br.com.gbadessa.util.ConstantesUtil;
import br.com.gbadessa.util.StringMethodsUtil;
import br.com.gbadessa.util.StringResourcesUtil... | true |
7d1a0d8241b953006a68caefb2c996df0292e382 | Java | Pluckerpluck/MultiInv | /src/uk/co/tggl/pluckerpluck/multiinv/inventory/MIEnderchestInventory.java | UTF-8 | 5,070 | 2.640625 | 3 | [] | no_license | package uk.co.tggl.pluckerpluck.multiinv.inventory;
import org.bukkit.entity.Player;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.ItemStack;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import java.io.Serializable;
public class MIEnderchestInventory implements Se... | true |
278d1341c6ea9d969ceedd31f7d24554ff247259 | Java | zhang1998/browser | /second/quark/src/main/java/com/ucpro/feature/lightapp/d/b/c.java | UTF-8 | 2,370 | 1.867188 | 2 | [] | no_license | package com.ucpro.feature.lightapp.d.b;
import android.webkit.ValueCallback;
import com.uc.encrypt.f;
import com.ucweb.common.util.h.m;
import com.ucweb.common.util.k.a;
import java.io.File;
/* compiled from: ProGuard */
public final class c implements Runnable {
final /* synthetic */ ValueCallback a;
final /... | true |
435466acfe0328a8357a912bee699670ba926e9b | Java | pavelperc/newgena | /console/src/main/java/org/processmining/models/bpmn_with_time/MessageFlowWithTime.java | UTF-8 | 1,479 | 2.765625 | 3 | [] | no_license | package org.processmining.models.bpmn_with_time;
import org.processmining.models.TokenWithTime;
import org.processmining.models.base_bpmn.MessageFlow;
import java.util.PriorityQueue;
import java.util.Queue;
/**
* Created by Ivan on 03.09.2015.
*/
public class MessageFlowWithTime implements MessageFlow<TokenWithTim... | true |
1e9d218df8db8d35781b6527f6894085f6acd154 | Java | lazyboyl/txc | /tx-core/src/main/java/com/tx/core/config/EnableTxc.java | UTF-8 | 316 | 1.65625 | 2 | [] | no_license | package com.tx.core.config;
import org.springframework.context.annotation.Import;
import java.lang.annotation.*;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
@Documented
@Import({TxcScannerRegister.class})
public @interface EnableTxc {
String [] basePackages() default {"com.tx.core"};
}
| true |
80d3ff04b11b6d885cc8cd8d923dcd6258d0b32c | Java | ftfetter/sales | /src/main/java/com/github/ftfetter/sales/pojos/CustomerData.java | UTF-8 | 1,214 | 2.671875 | 3 | [] | no_license | package com.github.ftfetter.sales.pojos;
public class CustomerData {
private String cnpj;
private String name;
private String businessArea;
public CustomerData(String cnpj, String name, String businessArea) {
this.cnpj = cnpj;
this.name = name;
this.businessArea = businessArea... | true |
66a64e2fdb806ae57b32233a04bc67670fe40815 | Java | fypgroup41/FYP_Project_Mobile | /src/fyp/main/S_Main.java | UTF-8 | 828 | 2.109375 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package fyp.main;
import java.net.HttpURLConnection;
/**
*
* @author test
*/
public class S_Main extends AsyncTask_Ty... | true |
8c335818b7289fc951bc0883328e5a0c3c063707 | Java | thestmv/Tiko_2019 | /Suoritus.java | UTF-8 | 2,715 | 2.6875 | 3 | [] | no_license |
import java.math.BigDecimal;
import java.util.HashMap;
public class Suoritus {
//Attribuutit
private int id;
private BigDecimal kokonaisHinta;
private String type; //urakka tai tavallinen
private int tuntimaara;
private float tuntiHinta;
private float kotiTalousVahennys;
private float alv;... | true |
238bcc4b71ecd0b79283d1455f28991e494b03da | Java | WarzouMc/VirtualCard | /VirtualCard/src/main/java/fr/warzou/virtualcard/core/modules/link/Size.java | UTF-8 | 1,460 | 2.953125 | 3 | [] | no_license | package fr.warzou.virtualcard.core.modules.link;
import java.util.Arrays;
/**
* Define the size of all module face.
* This was implemented for the {@link Linkable} interface to make easier every linkage checks and getters.
* @author Warzou
*/
public interface Size {
/**
* This methode allow to get the d... | true |
dd5c5ee80e2b432981cff8eaf515f04eafd683c6 | Java | BrainRTP/WildBot | /src/main/java/ru/wildcubes/wildbot/settings/SettingsReader.java | UTF-8 | 6,085 | 2.96875 | 3 | [] | no_license | package ru.wildcubes.wildbot.settings;
import ru.wildcubes.wildbot.logging.Tracer;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.*;
public class SettingsReader {
private static final String SETTING_NAME_PLACEHOLDER = "{setting_name}";
private static final String SETTING_VALUE_PLA... | true |
bd8ca7d820faf6d1b9ee51028c459bb18e767f09 | Java | milk9111/FirebaseAuthDemo | /ChallengeApp/app/src/main/java/group7/tcss450/uw/edu/challengeapp/LoginFragment.java | UTF-8 | 3,537 | 2.3125 | 2 | [] | no_license | package group7.tcss450.uw.edu.challengeapp;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditTex... | true |
e2fbcdb93a6bed82b92d6414339a1a3a716e66de | Java | linhct030132/QLBH1 | /src/qlbh/model/NhaCungCap.java | UTF-8 | 1,500 | 2.3125 | 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 qlbh.model;
/**
*
* @author Steven
*/
public class NhaCungCap {
private String MaNhaCungCap, TenNhaCungCap,... | true |
904dd1267fa9e9f063f20c11e078f5659caf6e41 | Java | WilsonParker/UIManager | /uimanager/src/main/java/developers/hare/com/uimanager/UI/PhotoManager.java | UTF-8 | 6,171 | 2.140625 | 2 | [] | no_license | package developers.hare.com.uimanager.UI;
import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.Matrix;
import android.media.ExifInterface;
import android.support.annotation.NonNull;
import android.support.v4.content.ContextCompat;
import com.miguelbcr.ui.rx_paparazzo2.RxPaparazzo;
impo... | true |
6b2724e262a62b7f4ed965e515b516f24fba8388 | Java | bellmit/smile-framework | /smile-core/src/main/java/org/smile/collection/AbstractSetDecorator.java | UTF-8 | 1,370 | 3.171875 | 3 | [] | no_license | package org.smile.collection;
import java.util.Collection;
import java.util.Iterator;
import java.util.Set;
/**
* 对一个set进行外部包装
* @author 胡真山
*
* @param <E>
*/
public abstract class AbstractSetDecorator<E> implements Set<E>{
protected Set<E> realSet;
protected AbstractSetDecorator(Set<E> set){
this.realSet=... | true |
a245355605547d21aea7370aabcfbd4a1a197aca | Java | lemonliu1993/spring | /src/com/lemon/beans/collections/Main.java | UTF-8 | 855 | 2.5 | 2 | [] | no_license | package com.lemon.beans.collections;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* @author created by liuyumeng
* @date 2018年8月30日 --- 上午7:49:09
*/
public class Main {
public static void main(String[] args) {
ApplicationCo... | true |
f6742df4c91d84f8feaf3e5dcda3104f06472399 | Java | MrBlackwell/FurnitureStock | /src/main/java/Main.java | UTF-8 | 974 | 2.296875 | 2 | [] | no_license | import javax.swing.*;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.util.Properties;
public class Main {
static Access access = new Access();
static ImageIcon image = new ImageIcon(
"src\\main\\resources\\dolly.png");
public static void main(String[] args){
... | true |
3e8067e05d1c1cce24cf00c33b23c90b90726d21 | Java | FlowCI/flow-core-x | /core/src/main/java/com/flowci/core/job/domain/JobOutput.java | UTF-8 | 1,545 | 1.75 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2019 flow.ci
*
* 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 in wr... | true |
6ff792b53b91246a279b0cc79a9adbceda1b9201 | Java | DoggeHill/Slaak | /src/hyll/sk/uniza/users/BasicUser.java | UTF-8 | 1,223 | 2.890625 | 3 | [] | no_license | package hyll.sk.uniza.users;
import hyll.sk.uniza.helpers.DatabaseLoader;
import hyll.sk.uniza.messages.TextMessage;
import hyll.sk.uniza.messages.VoiceMessage;
import java.io.IOException;
/**
* Class to represent basic user
* Limitations:
* Buffer size:5
* Can send only texts
* @author patri
*/
publ... | true |
663f15a19504d05e3cc2e0dbed419b2fe8213efd | Java | sjtudclab/SDMManageSystemWindows | /src/org/dclab/service/ModelService.java | UTF-8 | 7,386 | 2.0625 | 2 | [] | no_license | package org.dclab.service;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URLEncoder;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.dclab.mapping.ModelMapperI;
import org.... | true |
0184c87ac3d16b39f47c9bc6be9ad73e0e46c33c | Java | castrorodrigo355/tota-server | /src/main/java/utn/frba/proyecto/utils/JSONUtils.java | UTF-8 | 287 | 2.09375 | 2 | [] | no_license | package utn.frba.proyecto.utils;
import com.google.gson.Gson;
import spark.ResponseTransformer;
public class JSONUtils {
public static String toJSON(Object model) {
return new Gson().toJson(model);
}
public static ResponseTransformer json() {
return JSONUtils::toJSON;
}
}
| true |
90022391d25cae4c8650343d5e9a513d04866635 | Java | sheelarajeshkumar/MSIT_Code | /snake&ladder/src/Dice.java | UTF-8 | 225 | 2.75 | 3 | [] | no_license | import java.util.Random;
public class Dice {
public static int roll(){
Random randomGenerator = new Random();
//r.nextInt(High-Low) + Low;
int randomInt = randomGenerator.nextInt(6-1)+1;
return randomInt;
}
}
| true |
34164ca5f5f24d5b72846b69a5c001cf9d554efb | Java | CS2113-AY1819S1-W13-2/main | /src/main/java/seedu/divelog/commons/core/Messages.java | UTF-8 | 1,504 | 2.71875 | 3 | [
"MIT"
] | permissive | package seedu.divelog.commons.core;
/**
* Container for user visible messages.
*/
public class Messages {
public static final String MESSAGE_UNKNOWN_COMMAND = "Unknown command";
public static final String MESSAGE_INVALID_COMMAND_FORMAT = "Invalid command format! \n%1$s";
public static final String MESSA... | true |
46f2e60fd8998ceb9fb6e9172ba36e353b29728d | Java | sharonzidi/cs5004_object_oriented_design | /Lecture/Daytime_lectures/Lecture3_OO_Design_Exercise/src/test/java/problem2/DaycareCenterTest.java | UTF-8 | 9,083 | 2.515625 | 3 | [] | no_license | package problem2;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
public class DaycareCenterTest {
private InfantTeacher infant0;
private InfantTeacher infant1;
private InfantTeacher infant2;
private InfantTeacher infant3;
private InfantTeacher infant4;
private Toddler... | true |
095695964e99e9ff4bd3500773dd12683fefcd9d | Java | farbod2u/Multi | /Exception/src/main/java/ir/saeed/multi/MyNotFoundException.java | UTF-8 | 270 | 2.03125 | 2 | [] | no_license | package ir.saeed.multi;
public class MyNotFoundException extends RuntimeException {
public MyNotFoundException(String message) {
super(message);
}
public MyNotFoundException(String message, Throwable cause) {
super(message, cause);
}
}
| true |
d927a06c7f846f933264360d64c2f74af7500f27 | Java | jungpil/koverlap-r2 | /obj/Unit.java | UTF-8 | 26,459 | 2.671875 | 3 | [] | no_license | package obj;
import java.util.Vector;
import java.util.Set;
import java.util.HashSet;
import java.util.ArrayList;
import java.util.List;
import util.Globals;
import util.Debug;
public class Unit {
private int index;
private String unitName;
// private int localKnowledgeIndex[] = new int[Globals.N / 2]; // [commente... | true |
70f467207178f3796f601dc951df71a0234f8a9b | Java | kunkan/ZipWriter | /src/main/java/com/kunal/zipwriter/model/Asset.java | UTF-8 | 743 | 2.65625 | 3 | [] | no_license | package com.kunal.zipwriter.model;
public class Asset {
private int assetId;
private String assetName;
private double assetPrice;
public Asset(int assetId, String assetName, double assetPrice) {
super();
this.assetId = assetId;
this.assetName = assetName;
this.assetPrice = assetPrice;
}
... | true |
2ee128362e460349033093c77fc3aa5e29ecd949 | Java | michaelmosmann/wicket-praxis | /de.wicketpraxis--pom/webapp-blog/src/main/java/de/wicketpraxis/wicket/model/Models.java | UTF-8 | 612 | 2.140625 | 2 | [] | no_license | package de.wicketpraxis.wicket.model;
import org.apache.wicket.model.IModel;
import de.wicketpraxis.wicket.model.transformation.ModelSet;
public abstract class Models {
public static <T, M1> ModelSet.Set1<M1> on(IModel<M1> model) {
return new ModelSet.Set1<M1>(model);
}
public static <T, M1, M2> ModelSet.Set2... | true |
32a59d482fb95cadc0cc2eb50452ee065ccf3b40 | Java | superhy/ailab-mltk | /test/test/mltk/mahout/cluster/ClusterDataModelTest.java | GB18030 | 3,058 | 2.484375 | 2 | [] | no_license | package test.mltk.mahout.cluster;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.apache.mahout.math.Vector;
import org.junit.Test;
import org.mltk.mahout.cluster.ClusterDataModel;
import org.mltk.mahout.cluster.ClusterPreUtil;
import org.mltk.mahout.cluster.impl.CanopyClu... | true |
58b1ea59a825b7401308ea4e9c1cf89292db4313 | Java | 2733284198/sync2es | /src/test/java/com/jte/sync2es/extract/impl/MysqlSourceOriginDataExtractImplTest.java | UTF-8 | 1,302 | 1.859375 | 2 | [] | no_license | package com.jte.sync2es.extract.impl;
import com.jte.sync2es.Tester;
import com.jte.sync2es.conf.RuleConfigParser;
import com.jte.sync2es.extract.SourceOriginDataExtract;
import com.jte.sync2es.model.config.Sync2es;
import com.jte.sync2es.model.mysql.TableMeta;
import org.buildobjects.process.ProcBuilder;
import org.b... | true |
ed52f4d94281de72bcb914588377304dfd34be92 | Java | junit/GenesisServer | /Code_Java/test/src/com/genesis/test/gameserver/battleprop/Level.java | UTF-8 | 890 | 2.3125 | 2 | [] | no_license | package com.genesis.test.gameserver.battleprop;
import com.genesis.common.prop.battleprop.BattlePropContainer;
import com.genesis.common.prop.battleprop.propholder.IPropHolder;
import com.genesis.common.prop.battleprop.propholder.Prop;
import com.genesis.common.prop.battleprop.source.PropSourceType;
public class Leve... | true |
c7b1b1f1f26d812d2e2b73a46322af355cdd232d | Java | Z2su/trex_jisoo | /trex/src/main/java/com/trex/service/CrshServiceImpl.java | UTF-8 | 996 | 2.203125 | 2 | [] | no_license | package com.trex.service;
import java.sql.SQLException;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import com.trex.dao.CrshDAO;
import com.trex.dto.CrshVO;
public class CrshServiceImpl implements CrshService {
@Autowired
private CrshDAO crshDAO;
public... | true |
ef205bb50fc3693f829a84a6f33645d8f76d383c | Java | pangjian527/ticker_web_portal | /src/main/java/com/tl/ticker/web/action/CenterAction.java | UTF-8 | 3,420 | 1.882813 | 2 | [] | no_license | package com.tl.ticker.web.action;
import com.tl.rpc.common.ServiceToken;
import com.tl.rpc.consumer.Consumer;
import com.tl.rpc.consumer.ConsumerService;
import com.tl.rpc.order.Order;
import com.tl.rpc.order.OrderResult;
import com.tl.rpc.order.OrderService;
import com.tl.rpc.product.Product;
import com.tl.rpc.produc... | true |
37a03ae66d47ad58123993fe866347ef37d3f806 | Java | MirzaMasic/BILD-IT-zadaci | /src/zadaci_20_08_2016/IdenticalArray.java | UTF-8 | 2,987 | 3.8125 | 4 | [] | no_license | package zadaci_20_08_2016;
import java.util.Scanner;
public class IdenticalArray {
public static boolean equals(int[][] m1, int[][] m2) {
// Petlja koja prolazi kroz prvi niz i poredi vrijendosti prvog niza sa
// vrojednostima drugog niza , ako vrijednosti nisu identicne vraca
// false a ako su identic... | true |
e42713babf386ffd0344e8c9825b07ec5c1dbb3b | Java | wozent/badstudentbackend | /src/main/java/badstudent/mappings/浙江省/金华市/金华区/金华区Mappings.java | UTF-8 | 272 | 1.695313 | 2 | [] | no_license | package badstudent.mappings.浙江省.金华市.金华区;
import badstudent.mappings.MappingBase;
public class 金华区Mappings extends MappingBase {
@Override
protected void initMappings() {
subAreaMappings.put("浙江师范大学",null);
}
}
| true |
622b54c5ae98e2bc7a602fe5a0ab46e908fcb1cb | Java | hgong/jcr | /exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/config/MappedParametrizedObjectEntry.java | UTF-8 | 10,385 | 2.109375 | 2 | [] | no_license | /*
* Copyright (C) 2009 eXo Platform SAS.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software i... | true |
4b75d08c5a8e8e3370c2e4b42f1524ce8a1aabf6 | Java | oncekiller/xsd2jsonSchema | /Xsd2JsonSchemaSoftware/src/main/java/JavaClassToJsonSchemaPhase.java | UTF-8 | 8,261 | 2.40625 | 2 | [] | no_license | import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.FilenameFilter;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.HashMap;
... | true |
9ffa875179eff9e909fee448e2434b285195a833 | Java | kwonminki/Android_Test | /app/src/main/java/kr/ac/kangwon/hello/Lab_04_circulate.java | UTF-8 | 2,486 | 2.875 | 3 | [] | no_license | package kr.ac.kangwon.hello;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
public class Lab_04_circulate extends AppCompatActivity {
EditText e1, e2;
TextView e3;
public void plus(View v... | true |
d82a7184ca5ccab4b05e24ae496b57273f437182 | Java | chenxin6/Java | /Day07/Day07_1.java | UTF-8 | 1,764 | 3.703125 | 4 | [] | no_license | class Day07_1 {
public static void main(String[] args) {
int[] arr = {1, 3, 2, 4, 5, 6, 7, 8, 9, 0};
int[] indexes = new int[arr.length];
System.out.println(arr.length);
/*int ret = findIndex(arr, 2);
if (ret != -1) {
System.out.println("ret = " + ret);
} else {
System.out.println("Not Found");
}
... | true |
461e4da36dca6f3b7321abad832cdd7e72fbf25c | Java | nao99/studyportal-authentication | /src/main/java/org/studyportal/authentication/api/model/user/UserDto.java | UTF-8 | 1,477 | 2.484375 | 2 | [] | no_license | package org.studyportal.authentication.api.model.user;
import org.studyportal.authentication.domain.model.user.User;
import org.studyportal.authentication.domain.model.user.UserDetailed;
import org.springframework.security.core.GrantedAuthority;
import java.util.List;
import java.util.stream.Collectors;
/**
* UserD... | true |
62a0831c7955e2eb20696cfea836531537e67cf3 | Java | Jasonandy/alpaca | /alpaca-pay/alpaca-pay-service/src/main/java/cn/ucaner/alpaca/pay/trade/utils/httpclient/HttpClientWrapper.java | UTF-8 | 3,049 | 2.65625 | 3 | [
"Apache-2.0"
] | permissive | package cn.ucaner.alpaca.pay.trade.utils.httpclient;
import org.apache.commons.httpclient.Cookie;
import org.apache.commons.httpclient.HttpException;
import java.io.IOException;
import java.util.Map;
/**
* @Package:cn.ucaner.alpaca.pay.trade.utils.httpclient
* @ClassName:HttpClientWrapper
* @Description: <p>... | true |
045cff1ca2b9a46a4228a272d1b70aef1623ef49 | Java | aunroel/Missle_Command | /src/main/java/mypackage/ContactResolver.java | UTF-8 | 369 | 2.46875 | 2 | [] | no_license | package mypackage;
import java.util.ArrayList;
import java.util.Iterator ;
class ContactResolver {
// Resolves a set of particle contacts
void resolveContacts(ArrayList contacts) {
Iterator itr = contacts.iterator() ;
while(itr.hasNext()) {
Contact contact = (Contact)itr.next() ;
... | true |
64551f746870c26322233010676242c1f1f2f705 | Java | vafin-mk/codingame | /src/main/java/puzzles/hard/surface/Solution.java | UTF-8 | 2,804 | 3.484375 | 3 | [
"MIT"
] | permissive | package puzzles.hard.surface;
import java.util.*;
class Solution {
public static void main(String args[]) {
new Solver(new Scanner(System.in)).solve();
}
}
class Solver {
static final int LAND = 0;
static final int UNKNOWN = -1;
static final int CALCULATING = -2;
final Scanner scanner;
final int wi... | true |
7b1d9e187017948f0e433a6647ec06efcfe26b84 | Java | thehjain/Binary-Search-Tree-Notes | /SearchInBST.java | UTF-8 | 297 | 3.171875 | 3 | [] | no_license | //here we have to simply search given node in binary
//search tree.
boolean search(Node root, int val) {
if (root == null) return false;
if (root.data == val)
return true;
if (root.data > val)
search(root.left, val);
else
search(root.right, val);
}
//Problem is available on leetcode | true |
aaef02f3d334b4a96d7c9587c3843418117eb255 | Java | SeekMentore/SeekMentore | /src/main/java/com/utils/ValidationUtils.java | UTF-8 | 6,337 | 2.375 | 2 | [] | no_license | package com.utils;
import java.util.Date;
import java.util.List;
import java.util.regex.Pattern;
import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;
import com.constants.BeanConstants;
import com.constants.ValidationConstants;
import com.model.components.commons.SelectLookup;
imp... | true |
dbf2833c6167450123983ed3fd1d17cea8ec9b93 | Java | JeniferCorado/Clase02 | /Clase02/src/Ejercicio15/Ejercicio15.java | UTF-8 | 620 | 3.078125 | 3 | [] | no_license |
package Ejercicio15;
import java.util.Scanner;
public class Ejercicio15 {
public static void main(String[] args) {
Scanner s= new Scanner (System.in);
int hora;
System.out.println("Ingrese la hora");
hora=s.nextInt();
if (hora>5 && hora <13)
... | true |
271982e63a3c700b1968b6c7bc880d8d30f3426e | Java | Elizabethssss/cycle-rent | /src/main/java/com/belikov/valteris/cycle/detail/model/Detail.java | UTF-8 | 1,239 | 2.1875 | 2 | [
"MIT"
] | permissive | package com.belikov.valteris.cycle.detail.model;
import com.belikov.valteris.cycle.bicycle.model.Bicycle;
import com.belikov.valteris.cycle.order.model.Order;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import javax.persist... | true |
00a7dde94378e8aa83e76020da86fb8d313cdaf8 | Java | ysm20140508/fund | /src/main/java/com/jxnu/it/management/form/UserQuery.java | UTF-8 | 1,473 | 2.046875 | 2 | [] | no_license | package com.jxnu.it.management.form;
/**
* Created by yunva on 2016/1/22.
*/
public class UserQuery {
private String name;
private String account;
private Integer roleId;
private Integer page;
private Integer pageSize;
private String status;
public String getAccount() {
return a... | true |
b430c60b3f77064432adc3ad8fd07b350cb67d5d | Java | emillevic/Projeto1-Compiladores | /src/problema1/compiladores/FunctionsProcedures.java | UTF-8 | 2,449 | 3.125 | 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 problema1.compiladores;
import java.util.ArrayList;
/**
*
* @author Mille
*/
public class FunctionsProcedures... | true |
ef9104dfd1e091920d48e17dd8f91993c63f142d | Java | joyhongtang/test | /test/src/main/java/com/joyhong/test/MessageEventTest.java | UTF-8 | 317 | 1.992188 | 2 | [] | no_license | package com.joyhong.test;
public class MessageEventTest {
public static final String HUMAN_SENSOR_OFF = "humanSensor.off";
public static final String HUMAN_SENSOR_ON = "humanSensor.on";
public final String message;
public MessageEventTest(String message) {
this.message = message;
}
}
| true |
3b872265a3a716a116ed11db9f18e7c0ae5a65b7 | Java | kalphageek/tr-subscribe-service | /src/main/java/me/kalpha/trsubscribeservice/trmart/entity/Eqp1Tr.java | UTF-8 | 1,594 | 1.976563 | 2 | [] | no_license | package me.kalpha.trsubscribeservice.trmart.entity;
import com.fasterxml.jackson.annotation.JsonIdentityInfo;
import com.fasterxml.jackson.annotation.ObjectIdGenerators;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.annotation.Crea... | true |
568df30523968219b940acb9142e1301e4c7011c | Java | uzairafridii/KPTehsilMunicipalAdministrationServices | /app/src/main/java/com/uzair/kptehsilmunicipaladministrationservices/Models/DeathCertificatePresenterImplmenter.java | UTF-8 | 10,542 | 2.015625 | 2 | [] | no_license | package com.uzair.kptehsilmunicipaladministrationservices.Models;
import android.content.Context;
import android.net.Uri;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AlertDialog;
import com.google.andr... | true |
74b768515cab2a879d37e907d9e953978f7f26f0 | Java | aribpassos/exemplo-jpa | /src/br/com/algaworks/app/ConsultaVeiculoPorIndent.java | UTF-8 | 487 | 2.203125 | 2 | [] | no_license | package br.com.algaworks.app;
import javax.persistence.EntityManager;
import br.com.algaworks.util.JpaUtil;
import br.com.algaworks.veiculos.dominio.Veiculo;
public class ConsultaVeiculoPorIndent {
public static void main(String[] args) {
EntityManager manager = JpaUtil.getEntityManager();
Veiculo veiculo = ma... | true |
949e2ecd6c715863e7ea3c892a48c827b3a1918b | Java | xm5646/GOE | /project-geo-dbserver/src/main/java/com/project/goe/projectgeodbserver/service/CardInfoService.java | UTF-8 | 2,481 | 2.28125 | 2 | [] | no_license | package com.project.goe.projectgeodbserver.service;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;
import jav... | true |
e7fe23f9cfce3ed9fb1637024db643cfe8868511 | Java | Dmytro99/Epam | /homework 02/OopHomework/src/main/java/com/epam/EnumFurniture.java | UTF-8 | 99 | 1.546875 | 2 | [] | no_license | package com.epam;
public enum EnumFurniture {
BED,
BOOKCASE,
CUPBOARD,
BENCH,
DOOR
}
| true |
cd5a5f55e707798d61d5a5a317cbacb93210b4f6 | Java | monkipython/GPS-device-tracker | /GPSDeviceDemo/src/com/veclink/poofpetgps/task/WifiConnectCheckTask.java | UTF-8 | 4,588 | 1.9375 | 2 | [] | no_license | package com.veclink.poofpetgps.task;
import android.content.Context;
import android.os.Handler;
import android.telephony.gsm.GsmCellLocation;
import android.util.Log;
import com.amap.api.location.AMapLocation;
import com.google.gson.Gson;
import com.veclink.poofpetgps.Global;
import com.veclink.poofpetgps.L... | true |