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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
8f6e7948493abe5e05873aa1116ad9c8e95029e2 | Java | ChanchalRajguru/E-Commerce | /src/main/java/com/classwork/csj/repository/CartRepository.java | UTF-8 | 284 | 1.84375 | 2 | [] | no_license | package com.classwork.csj.repository;
import com.classwork.csj.entity.Cart;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.Optional;
public interface CartRepository extends JpaRepository<Cart, Long> {
Optional<Cart> findByUserId(Long userId);
}
| true |
4000e7d31215bdb9caf17c478cf7496944301282 | Java | mahmoudimus/obo-edit | /java/bbop/trunk/src/org/bbop/expression/parser/ASTImportStatement.java | UTF-8 | 577 | 2.046875 | 2 | [] | no_license | /* Generated By:JJTree: Do not edit this line. ASTImportStatement.java */
package org.bbop.expression.parser;
import org.apache.log4j.*;
public class ASTImportStatement extends SimpleNode {
//initialize logger
protected final static Logger logger = Logger.getLogger(ASTImportStatement.class);
public ASTImportSta... | true |
198358a54cdd40494d9c4f8be867b9aaa95f6db4 | Java | churakovIA/javarush | /2.JavaCore/src/com/javarush/task/task12/task1206/Solution.java | UTF-8 | 307 | 1.960938 | 2 | [] | no_license | package com.javarush.task.task12.task1206;
/*
Выполняем перегрузку!
*/
public class Solution {
public static void main(String[] args) {
}
//Напишите тут ваши методы
private static void print(int n) {}
private static void print(String n) {}
}
| true |
d05b26dd5f5c4dff1c3d05942460df7fdb922fea | Java | weibruce/JAVA2 | /GUI Applications/OrderGUI/OrderGUI.java | UTF-8 | 2,028 | 3.375 | 3 | [] | no_license | import java.awt.*;
import javax.swing.*;
/**
* Write a description of class OrderGUI here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class OrderGUI extends JPanel
{
protected BagelPanel bagels; // Bagel panel
protected ToppingPanel toppings; // Topping panel
p... | true |
b6a13fa134708e5c7ba7386a5817c174080f2216 | Java | zhouwanfeng/keycloak | /services/src/main/java/org/keycloak/forms/account/freemarker/model/ReferrerBean.java | UTF-8 | 387 | 1.976563 | 2 | [
"Apache-2.0"
] | permissive | package org.keycloak.forms.account.freemarker.model;
/**
* @author <a href="mailto:sthorger@redhat.com">Stian Thorgersen</a>
*/
public class ReferrerBean {
private String[] referrer;
public ReferrerBean(String[] referrer) {
this.referrer = referrer;
}
public String getName() {
retu... | true |
9c250eef03902614c5a4b739cefd7c2ccd0064a3 | Java | ericjack77/L2018020804 | /app/src/main/java/com/example/student/l2018020804/MainActivity.java | UTF-8 | 916 | 2.140625 | 2 | [] | no_license | package com.example.student.l2018020804;
import android.content.Intent;
import android.content.IntentFilter;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
public class MainActivity extends AppCompatActivity {
MyReceiver receiver;
@Override
protected v... | true |
c166eb3460ffbe56bbe07def718fc2eee99533ca | Java | fieldenms/tg | /platform-pojo-bl/src/main/java/ua/com/fielden/platform/expression/ast/visitor/TypeEnforcementVisitor.java | UTF-8 | 42,405 | 2.328125 | 2 | [
"MIT"
] | permissive | package ua.com.fielden.platform.expression.ast.visitor;
import static java.lang.String.format;
import java.lang.reflect.Field;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.Collection;
import java.util.Date;
import java.util.Optional;
import org.apache.commons.lang3.StringUtils;
import... | true |
8dcd972d86700cb9d73a5e1b42278b55bce60d8d | Java | cnoke/Dynamic | /dynamicpage/src/main/java/com/knd/dynamicpage/adapter/HonCourseNoTitleAdapter.java | UTF-8 | 2,013 | 1.984375 | 2 | [] | no_license | package com.knd.dynamicpage.adapter;
import androidx.recyclerview.widget.GridLayoutManager;
import com.alibaba.android.vlayout.LayoutHelper;
import com.alibaba.android.vlayout.layout.SingleLayoutHelper;
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder;
import com.knd.common.bean.FloorBean;
import... | true |
6ff80646224431f2da9ae2c7163a8145c2b03a05 | Java | c2921707677/test | /HelloWorld/src/tij/fourteen/Operation.java | UTF-8 | 149 | 1.75 | 2 | [] | no_license | /**
* 2018年11月23日
*/
package tij.fourteen;
/**
* @author chengj
*/
public interface Operation {
String description();
void command();
}
| true |
7ded4060733d21c974b681e193dccd82e70f908d | Java | HuangRicher/tree | /service-fishing/src/main/java/com/tongzhu/fishing/service/impl/FishingSecretOperationServiceImpl.java | UTF-8 | 1,095 | 2.078125 | 2 | [] | no_license | package com.tongzhu.fishing.service.impl;
import com.tongzhu.fishing.mapper.FishingSecretOperationMapper;
import com.tongzhu.fishing.model.FishingSecretOperation;
import com.tongzhu.fishing.model.FishingSecretOperationExample;
import com.tongzhu.fishing.service.FishingSecretOperationService;
import org.springframework... | true |
9637b086ab02b708ff4b06a5b0e840eef31f1474 | Java | kanontds/springmvc | /src/main/javas/cn/springmvc/dao/LogInfoMapper.java | UTF-8 | 358 | 1.765625 | 2 | [] | no_license | package cn.springmvc.dao;
import cn.springmvc.model.LogInfo;
public interface LogInfoMapper {
int deleteByPrimaryKey(Short logid);
int insert(LogInfo record);
int insertSelective(LogInfo record);
LogInfo selectByPrimaryKey(Short logid);
int updateByPrimaryKeySelective(LogInfo record);
int... | true |
5a1736ad44e0893ac1ced71792e5f14396e90cd7 | Java | michaelrausch/Party-Parrots-At-Sea | /src/main/java/seng302/visualiser/fxObjects/assets_3D/BoatMeshType.java | UTF-8 | 2,783 | 2.6875 | 3 | [] | no_license | package seng302.visualiser.fxObjects.assets_3D;
/**
* Enum for boat meshes. Enum values should be of the form :
* ENUM_VALUE (hull file, mast file, Y offset of mast CoR from origin, sail file, Y offset of sail CoR from origin, jib file, fixed sail)
* Files must be valid .stl files.
*/
public enum BoatMeshType {
... | true |
fd5de1d8dba49afe67406cf1e4463147db80f842 | Java | Nthalk/ferret | /web/src/main/java/com/iodesystems/ferret/xsd/TypeExtension.java | UTF-8 | 700 | 1.882813 | 2 | [] | no_license | package com.iodesystems.ferret.xsd;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlSchemaType;
public class TypeExtension extends HasId {
private String extensionTypeId;
private SearchType search;
public SearchType getSearch() {
return search;
}
@Xml... | true |
4f5bab02c42985eba975d51742b8f768afe4b3e2 | Java | GJuly00720/hello_world | /total_webStudy03_ssMaven/src/main/java/kr/or/ddit/commons/controller/LogoutController.java | UTF-8 | 837 | 2.4375 | 2 | [] | no_license | package kr.or.ddit.commons.controller;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import kr.or.ddit.mvc.ICommandHandler;
public class LogoutControlle... | true |
a4ba64d1825d5ceab06aef4a1e15e1ee834211ec | Java | kerkox/pruebaAndroid | /app/src/main/java/com/example/root/holamundo/MainActivity.java | UTF-8 | 2,229 | 2.109375 | 2 | [] | no_license | package com.example.root.holamundo;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
i... | true |
538b8dd45a332cdf6346a0b44b4130dccab87e2f | Java | lastforeverzl/PetAdoption | /app/src/main/java/com/zackyzhang/petadoption/ui/activity/SearchActivity.java | UTF-8 | 9,448 | 1.78125 | 2 | [] | no_license | package com.zackyzhang.petadoption.ui.activity;
import android.app.ActivityOptions;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.widget.DividerItemDecoration;
import android.support.v7.widget.LinearLayoutManager;
... | true |
840a72c905f1e84bd52ec84603d804c8f139b1b0 | Java | kingj1261/oa | /oa-web/src/main/java/com/wantai/oa/web/controller/common/CommonController.java | UTF-8 | 948 | 2.046875 | 2 | [] | no_license | /**
* Wantai.com Inc.
* Copyright (c) 2004-2012 All Rights Reserved.
*/
package com.wantai.oa.web.controller.common;
import com.wantai.oa.biz.shared.result.Status;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.a... | true |
3c74a940635000b2c1274ebc3585ef31c7e7f407 | Java | pancuz/ProblemPractice | /LinkedList/CreateAndOperate/CreateList.java | UTF-8 | 2,588 | 3.75 | 4 | [] | no_license |
public class CreateList {
public class Node{
int data;
Node next;
public Node(int val){
this.data = val;
this.next=null;
}
}
public Node first=null;
private void insert(){
int [] arr = {2,3,4,5,6,7,8,9};
Node cur=null;
for(int i=0;i<arr.length;i++){
if(cur==null){
cur=new Node(a... | true |
a07a740a115efb17f3960fef6648fc2b9bd52d79 | Java | yangmingxuan/algorithmicexamples | /src/algorithms/array/MaximumAreaofaPieceofCakeAfterHorizontalandVerticalCuts.java | UTF-8 | 2,940 | 3.96875 | 4 | [] | no_license | package algorithms.array;
import java.util.Arrays;
/****
* You are given a rectangular cake of size h x w and two arrays of integers horizontalCuts and verticalCuts where:
horizontalCuts[i] is the distance from the top of the rectangular cake to the ith horizontal cut and similarly, and
verticalCuts[j] is t... | true |
63d43ce9bbebef66af080d7a664726b21b6faab0 | Java | deekscitacija/NCProject | /NCBackend/src/main/java/com/ftn/nc/NCBackend/web/controller/GradController.java | UTF-8 | 966 | 2.09375 | 2 | [] | no_license | package com.ftn.nc.NCBackend.web.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotati... | true |
6ad48991b2b32823a3680da302241ac98926c187 | Java | hxz156/Train | /J2EE/hibernate-demo/src/test/java/com/mercury/hibernate_demo/Test7.java | UTF-8 | 791 | 2.984375 | 3 | [] | no_license | package com.mercury.hibernate_demo;
import org.hibernate.Session;
import com.mercury.hibernate_demo.bean.Sample;
import com.mercury.hibernate_demo.util.HibernateUtil;
public class Test7 {
public static void main(String[] args) {
// difference status of an object to session
// transient: object is newly crea... | true |
2c5fe19390ddfbbf3e48a1652a433011bdb72579 | Java | TrungJimmy/quanlytaichinh | /app/src/main/java/com/example/trungqltc/KhoanChi/khoanchi.java | UTF-8 | 16,322 | 1.757813 | 2 | [] | no_license | package com.example.trungqltc.KhoanChi;
import android.app.DatePickerDialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.A... | true |
4b58034e9455300d6f2bb1060c044b9bb933289d | Java | zarek-zhao/crm_gra | /src/main/java/com/zarek/crm/filter/ResourcesFilter.java | UTF-8 | 1,745 | 2.390625 | 2 | [] | no_license | package com.zarek.crm.filter; /**
* @author zarek
* @version 1.0.0
* @since 1.0.0
*/
import com.zarek.crm.pojo.domain.User;
import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
* 资源限定访问:只有登录过的用户才能访问系统的服务
*/
public c... | true |
54568e0459d1f406dcae107f64f898e08568ed7e | Java | Shaojia/ZHCarPocket | /MaintainService/src/com/coortouch/maintainservice/activity/Bnuz_GuideDetail2Activity.java | GB18030 | 4,337 | 2 | 2 | [
"MIT"
] | permissive | package com.coortouch.maintainservice.activity;
import com.coortouch.app.entity.BnuzTGuide;
import com.coortouch.app.wcf.BnuzGuideService;
import com.coortouch.app.wcf.listener.GetOneRecordListener;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.con... | true |
003aa75188aad63ed44dc827fa7b117b33624118 | Java | Imperative2/AdventOfCode | /src/Day7.java | WINDOWS-1250 | 6,356 | 3.109375 | 3 | [] | no_license | import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Scanner;
public class Day7
{
private static HashSet<Character> symbolsSet = new HashSet<>();
private static H... | true |
55e7b663a0817c8550d7e658f6bcf624ac836c25 | Java | blizz2night/TestNDK | /app/src/main/java/com/github/blizz2inght/testmake/MainActivity.java | UTF-8 | 1,111 | 2.953125 | 3 | [] | no_license | package com.github.blizz2inght.testmake;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity {
private static final String TAG = "MainActivity";
// Used to load the 'native-lib... | true |
3b1ce25f46a0f462123f37ab3ec6b33a9872b405 | Java | boymask2000/Asset2 | /Asset2/src/restservice/InterventoRest.java | UTF-8 | 4,505 | 2.09375 | 2 | [] | no_license | package restservice;
import java.util.ArrayList;
import java.util.List;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import beans.AssetAlca;
import beans.Checkl... | true |
e26b13465411da6e04947d5abf95be2d6d6be136 | Java | Provinite/pillowing-bank | /src/main/java/com/clovercoin/pillowing/service/ConstantService.java | UTF-8 | 279 | 1.867188 | 2 | [] | no_license | package com.clovercoin.pillowing.service;
import org.springframework.stereotype.Service;
import java.util.Map;
@Service
public interface ConstantService {
Object get(String key);
String getString(String key);
Map<String, Object> getAllWithPrefix(String prefix);
}
| true |
cc8c48039adc57f08ca50980bfa7cdeaaeb005c1 | Java | Karpikova/artifactTaxi | /src/main/dao/DriverImplementation.java | UTF-8 | 2,420 | 2.65625 | 3 | [] | no_license | package main.dao;
import main.DB.ConnectionToDB;
import main.Exception.TaxiException;
import main.pojo.Driver;
import main.pojo.User;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Repository;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.S... | true |
81c748f3d7789406f8dd71846dbf83292b047c8c | Java | returncode13/Boxes-using-JavafxDrawers | /src/main/java/db/dao/SummaryDAO.java | UTF-8 | 1,359 | 2.15625 | 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 db.dao;
import db.model.Job;
import db.model.Sequence;
import db.model.Subsurface;
import db.model.Summary;
import db.model.Wo... | true |
e6a0429eba105f9c28e7fe118a7f1dc1a6f4488c | Java | vgarousi/MBTofCOVIDapps | /src/test/java/qub/vg05/systemui/nhsmodels/SelectSymptomsModel.java | UTF-8 | 7,492 | 1.976563 | 2 | [] | no_license | package qub.vg05.systemui.nhsmodels;
import nhs.HomePage;
import nhs.Navigation;
import nhs.symptoms.SelectSymptomsPage;
import org.graphwalker.java.annotation.AfterElement;
import org.graphwalker.java.annotation.BeforeElement;
import org.graphwalker.java.annotation.GraphWalker;
import org.slf4j.Logger;
import org.slf... | true |
2dcf986478e4cc422c0b25a1f0106da0d911b230 | Java | Sincerityzz/SinceUtils | /app/src/main/java/com/sincerity/sinceutils/fragment/FoundPage.java | UTF-8 | 10,493 | 1.976563 | 2 | [] | no_license | package com.sincerity.sinceutils.fragment;
import android.content.Context;
import android.graphics.Color;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
import androidx.annotation.NonNull;
import androidx.annotatio... | true |
afeb30ad9b81ac96d51d3fdc09da34234ce83591 | Java | java-july-2021/DylanC-Assignments | /01-java-fundamentals/03-fizzbuzz/FizzBuzzTest.java | UTF-8 | 141 | 1.710938 | 2 | [] | no_license | public class FizzBuzzTest{
public static void main(String[] args){
FizzBuzz test = new FizzBuzz();
test.tester();
}
} | true |
577f583204cc7bbc92950cb83efc339c8fe7be49 | Java | yufy1989/resConImplement | /resConImplement-service/src/test/java/com/asiainfo/resConImplement/askService/InvoiceServiceImplTest.java | UTF-8 | 1,318 | 2.03125 | 2 | [] | no_license | package com.asiainfo.resConImplement.askService;
import org.junit.Before;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.asiainfo.resConImplement.dto.InvoiceDto;
import com.asiainfo.resConImplement.dto... | true |
00874a4e0767ca29a3e788996169ac40ed9f19c9 | Java | denglitong/proficient_in_4x_spring | /15.SpringCache/src/main/java/com/denglitong/initcache/UserService5.java | UTF-8 | 2,148 | 2.78125 | 3 | [] | no_license | package com.denglitong.initcache;
import com.denglitong.domain.Member;
import com.denglitong.domain.User;
import com.denglitong.domain.Visitor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.Cache;
import org.springframework.cache.CacheManager;
import org.springframewor... | true |
92ba58070e85b0cf4a129b5cc07992fc82841dc8 | Java | AlexCohenDambros/Problem-Solving-Mechanism-of-Search | /AulaPilha/Pilha.java | WINDOWS-1252 | 1,073 | 3.78125 | 4 | [] | no_license | package AulaPilha;
public class Pilha {
public int[] dados;
private int topo;
public int max;
public Pilha(int tam) {
this.max = tam;
this.dados = new int[tam];
this.topo = -1;
}
public boolean cheia() {
return (topo == max-1);
}
public boolean vazia() {
return (topo == -1);
}... | true |
8fde63f42869cf521e12741d1675c9be915652d8 | Java | Jul-must/MUD | /Teacher.java | UTF-8 | 1,573 | 3.75 | 4 | [] | no_license | import java.util.*;
public class Teacher extends Creature{
Course course;
String question; //should contain the options.
String correctAnswer; //should have a test if this answer is an option
Random rand = new Random();
Scanner user_input = new Scanner(System.in);
public Teacher(... | true |
d2123290507e2b18ef403fe623644b859341c9c5 | Java | OctavianoDeLaTorre/Consultorio | /src/VO/ClienteVO.java | UTF-8 | 1,760 | 2.296875 | 2 | [] | no_license | package VO;
public class ClienteVO {
/*Todo los atributos*/
String curp_Cliente;
String nombre_Cliente;
String primer_Apellido;
String segundo_Apellido;
String direccion_Cliente;
String telefono_Cliente;
String consultorio_Dental;
public ClienteVO(){}
/*Todo los codigos get*... | true |
a19279d2ddfc622fa990f2122c5cce146f8a23d2 | Java | Jancly/Novel | /app/src/main/java/com/stevefat/novel/Views/FindWebView.java | UTF-8 | 4,438 | 1.929688 | 2 | [] | no_license | package com.stevefat.novel.Views;
import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.util.Log;
import android.view.ActionMode... | true |
62ca1aafccba79dbcdebf8843dee39e9c7a8d320 | Java | ClaudiaAriasH/ProyectoMatriculas | /src/proyectomatriculas/Profesor.java | UTF-8 | 4,744 | 2.71875 | 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 proyectomatriculas;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
/**
*
* @author Claudia
*/... | true |
ca81742291e02c3dbabd6ebb0e4eea47883b81f3 | Java | zkyq05/spider | /src/main/java/com/zkyq/spider/NewsScheduled.java | UTF-8 | 794 | 2.078125 | 2 | [] | no_license | package com.zkyq.spider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import us.codecraft.webmagic.Spider;
@Component
public class NewsScheduled {
@Autowired
private NewsPipeline news... | true |
a778e1e7d3396718e4277cb30b4d5a30861320e9 | Java | imbkj/BMSbate | /src/dal/CoBase/CoBase_SelectDal.java | UTF-8 | 71,686 | 1.890625 | 2 | [] | no_license | /**
* @Classname CoBase_SelectDal
* @ClassInfo 公司基本信息数据库查询类
* @author 林少斌、陈耀家
* @Date 2013-11-27
*/
package dal.CoBase;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.z... | true |
1bde82366bf3e3ba6eedc22bb9a32c8f99bb5db4 | Java | camelcc/leetcode | /src/S1416RestoreTheArray.java | UTF-8 | 1,010 | 2.96875 | 3 | [] | no_license | import java.util.Arrays;
public class S1416RestoreTheArray {
public int numberOfArrays(String s, int k) {
int[] dp = new int[s.length()];
Arrays.fill(dp, -1);
return dp(s, k, 0, dp);
}
private int dp(String s, int k, int index, int[] dp) {
if (dp[index] != -1) {
... | true |
d35f4a75c0661573280bf681488806cfaf83eff0 | Java | smarr/AmbientTalk-interpreter | /src/edu/vub/at/objects/natives/grammar/AGAssignmentSymbol.java | UTF-8 | 3,587 | 2.296875 | 2 | [] | no_license | /**
* AmbientTalk/2 Project
* AGAssignmentSymbol.java created on 2-jul-2007 at 13:45:32
* (c) Programming Technology Lab, 2006 - 2007
* Authors: Tom Van Cutsem & Stijn Mostinckx
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* fi... | true |
5c641202f9702dd6de21f074ce94c6a2e076ff0a | Java | wardatulhisaniah/IntentRegistrasiMahasiswa | /app/src/main/java/id/ac/poliban/mi/atul/intentregistrasimahasiswa/activity_data_mahasiswa.java | UTF-8 | 1,297 | 1.976563 | 2 | [] | no_license | package id.ac.poliban.mi.atul.intentregistrasimahasiswa;
import androidx.appcompat.app.AppCompatActivity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import android.widget.EditText;
public class activity_data_mahasiswa extends AppCompatActivity ... | true |
4411dfd99441832b255cecd53ad5e265b5a8c108 | Java | forestbaba/shop-spring | /src/main/java/com/forestsoftware/usershop/service/UserService.java | UTF-8 | 3,598 | 2.109375 | 2 | [] | no_license | package com.forestsoftware.usershop.service;
import com.forestsoftware.usershop.exceptions.EmailAlreadyExistException;
import com.forestsoftware.usershop.exceptions.PhoneAlreadyExistException;
import com.forestsoftware.usershop.model.ERole;
import com.forestsoftware.usershop.model.Role;
import com.forestsoftware.user... | true |
2806f9f01f8ed7fd130dcf7aaee93cf81b443371 | Java | GroupJ/SIMS | /src/IO/ListIO.java | UTF-8 | 2,760 | 2.9375 | 3 | [] | no_license | /*
* This file is part of S:SIMS.
*
* S:SIMS is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* S:SIMS is distributed in the hop... | true |
4a421a24c0c10b40f76bbf4a2095553567d4d1a1 | Java | Konyaka1/aem-authoring-toolkit | /plugin/src/main/java/com/exadel/aem/toolkit/plugin/utils/MemberUtil.java | UTF-8 | 3,401 | 2.703125 | 3 | [
"Apache-2.0"
] | permissive | /*
* 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 writing, software
* distribut... | true |
ec4ec0b8ffb9a882a248c58f726165839f788d16 | Java | vrnsky/java-a-to-z | /chapter5/List/src/test/java/collection/QueueTest.java | UTF-8 | 1,841 | 3.3125 | 3 | [] | no_license | package collection;
import org.junit.Test;
import static org.junit.Assert.assertThat;
import static org.hamcrest.core.Is.is;
/**
* Unit test for Queue.java.
*/
public class QueueTest {
/**
* When try push to the queue should check that value was added.
*/
@Test
public void whenTryPushToTheQue... | true |
94075da4dff140a98cdb914ab1e447a9557a6f2c | Java | gitter-badger/adeptj-modules | /jaxrs/resteasy/src/main/java/com/adeptj/modules/jaxrs/resteasy/plugin/validation/GeneralValidatorContextResolver.java | UTF-8 | 2,791 | 1.78125 | 2 | [
"Apache-2.0"
] | permissive | /*
* =============================================================================
*
* Copyright (c) 2016 AdeptJ
* Copyright (c) 2016 Rakesh Kumar <irakeshk@outlook.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | true |
242a65969a075aa20dccd83272d68871289260aa | Java | Decooo/CarService | /SpringBoot/src/main/java/com/serwis/services/PartsService.java | UTF-8 | 706 | 2.078125 | 2 | [] | no_license | package com.serwis.services;
import com.serwis.entity.Parts;
import com.serwis.repository.PartsRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Created by jakub on 18.05.2018.
*/
@Service
public class PartsService... | true |
041fc62f1bce9f34e3329ec4d00018330328e308 | Java | ksh901016/java-study | /소스코드/collection/sort/AscendingComparator.java | UTF-8 | 322 | 3.046875 | 3 | [] | no_license | package collection.sort;
import java.util.Comparator;
public class AscendingComparator implements Comparator<Fruit> {
@Override
public int compare(Fruit o1, Fruit o2) {
if(o1.getPrice() < o2.getPrice()) return -1;
else if(o1.getPrice() == o2.getPrice()) return 0;
else return 1;
}
... | true |
bb8a2ad33f2370c5761410cb8cb64976a618da53 | Java | mbellamk/BIPractice | /src/com/bellinfo/assignments/assignment3/InterfaceAndAbstractClassExample.java | UTF-8 | 2,730 | 3.375 | 3 | [] | no_license | package com.bellinfo.assignments.assignment3;
public class InterfaceAndAbstractClassExample {
final static Nexus5 nexus5 = new Nexus5();
public static void main(String args[]) {
Nexus5 nexus = new Nexus5();
Iphone5 i5 = new Iphone5();
Iphone6S i6s = new Iphone6S();
nexus5.setBatteryLife(500);
System.out... | true |
781364aac2c033ff13fae6d9290ed158a96256a4 | Java | zgyxvxiao/LeetCode | /linkedlist/IntersectionOfTwoLinkedLists.java | UTF-8 | 520 | 2.75 | 3 | [] | no_license | package linkedlist;
public class IntersectionOfTwoLinkedLists {
public ListNode getIntersectionNode(ListNode headA, ListNode headB) {
while (headA != null){
while(headB != null){
if(headA != headB){
headB = headB.next;
}else{
... | true |
9587e3901f693e4a63552166e93d445b02d1787e | Java | jaemin2682/YangpaGo | /back/src/main/java/com/papple/blog/controllers/UserBehaviorController.java | UTF-8 | 1,750 | 1.84375 | 2 | [] | no_license | package com.papple.blog.controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotat... | true |
baf5bbaba59e4e1d0ddb83229ccd0cf59a84a644 | Java | manrovich/algorithmsAndDataStructuresLessons | /Lesson3/ДЗ/src/queue/MyQueue.java | UTF-8 | 2,259 | 3.5 | 4 | [] | no_license | package queue;
import java.util.Arrays;
import java.util.NoSuchElementException;
public class MyQueue<T> implements MyQueueInterface<T> {
private static final int DEFAULT_CAPACITY = 10;
T[] list;
int capacity;
int begin;
int end;
public MyQueue(int capacity) {
this.capacity = capacit... | true |
d0feeff042b2fecdea02eb081949db9aa39cf453 | Java | tallesan/MyPublicJava | /feignClient/src/main/java/com/example/feignClient/controller/defaultController.java | UTF-8 | 2,377 | 1.960938 | 2 | [] | no_license | package com.example.feignClient.controller;
import com.example.feignClient.model.UserResponse;
import com.example.feignClient.service.ServiceClientImpl;
import com.example.feignClient.service.ServiceGiphy;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.s... | true |
4a2b2f4da2757aef7888d002b59ebd14d2bcc9a1 | Java | maliangnansheng/bbs-ssm | /src/main/java/com/liang/dao/CollectMapper.java | UTF-8 | 622 | 2.03125 | 2 | [
"AGPL-3.0-only"
] | permissive | package com.liang.dao;
import java.util.List;
import java.util.Map;
import com.liang.bean.Collect;
public interface CollectMapper {
// 新增收藏信息
void insert(Collect record);
// 按sid删除收藏信息
void deleteByKey(String sid);
// 按userid和fid删除收藏
void deleteByUF(Collect collect);
// 按fid删除收藏信息
void deleteByFid(String... | true |
c767829e343b5a64b9cb1d7caa3f2c86fdb5b0ff | Java | genius1wjc/TestAndroidApp | /app/src/main/java/com/example/myapplication/activity/GenericsActi.java | UTF-8 | 4,423 | 3.171875 | 3 | [] | no_license | package com.example.myapplication.activity;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;
import com.example.myapplication.R;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class GenericsAct... | true |
1c1bcc8473e097e6fe6b048d751665dc3815ad48 | Java | joaocelso172/StrongEyeMlKitFaceTracking | /app/src/main/java/com/example/googlemlkitdemo/Model/User.java | UTF-8 | 1,295 | 2.375 | 2 | [] | no_license | package com.example.googlemlkitdemo.Model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class User {
@SerializedName("id_pessoa_fisica")
@Expose
private int idPessoaFisica;
@SerializedName("id_empresa")
@Expose
private int idEmpresa;
... | true |
6386ff09e96ce210d12d97ba146bd2e9c2628ad4 | Java | naharrison/CCDBtools3 | /src/ccdbTools/CNDAnalysis.java | UTF-8 | 8,731 | 2.203125 | 2 | [] | no_license | package ccdbTools;
import org.jlab.groot.base.GStyle;
import org.jlab.groot.data.GraphErrors;
import org.jlab.groot.data.H1F;
import org.jlab.groot.fitter.DataFitter;
import org.jlab.groot.math.F1D;
import org.jlab.groot.ui.TCanvas;
import java.util.Date;
public class CNDAnalysis {
public static void main(String[]... | true |
84097bd1af000e2c238eb917048696c7131ba52e | Java | sssssuzy/semi-project-ICIA- | /src/model/ProductDAO.java | UHC | 4,688 | 2.46875 | 2 | [] | no_license | package model;
import java.sql.*;
import org.apache.catalina.filters.CsrfPreventionFilter;
import org.json.simple.*;
public class ProductDAO {
//ǰ
public void delete(String prod_id) {
try {
String sql = "delete from product where prod_id=?";
PreparedStatement ps=DB.con.prepareStatement(sql);
ps.setStri... | true |
d4478c10634e6ad6df7879fd4978e873e1534bb2 | Java | CeterisAGarcia/CodigoFase1AG | /Microservicio/García/JDAAPIApp/JDAAPICore/src/mx/agarcia/ea/jda/config/ConfigEntries.java | UTF-8 | 2,049 | 2.625 | 3 | [] | no_license | package mx.agarcia.ea.jda.config;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
/**
*
* @author Sol4IT Mexico 2019 - Todos los derechos reservados
* @category Almacenes Garcia / Ceteris- JDA API
*/
public class ConfigEntries {
private String id;
p... | true |
78a20405dde544bbf34a0ea57bdb742ceb94638f | Java | wowwowster/AlgoliaConnector | /src/main/java/com/sword/batch/config/CustomBatchConfigurer.java | UTF-8 | 3,234 | 2.125 | 2 | [] | no_license | package com.sword.batch.config;
import org.springframework.batch.core.configuration.annotation.BatchConfigurer;
import org.springframework.batch.core.explore.JobExplorer;
import org.springframework.batch.core.explore.support.MapJobExplorerFactoryBean;
import org.springframework.batch.core.launch.JobLauncher;
import or... | true |
bc077cd3e93a073b7f2c4fe3c086680a30d4248f | Java | eothmal/example | /annotations/src/com/mycompany/c/custom/k/eleventh/notnull/Main.java | UTF-8 | 393 | 1.84375 | 2 | [] | no_license | package com.mycompany.c.custom.k.eleventh.notnull;
public class Main {
public static void main(String[] args) {
@NotNull ExtractTransformLoadJob etlJob = new ExtractTransformLoadJob("sale_data");
@NotNull WeeklyReportJob weeklyJob = new WeeklyReportJob("trend_reports");
System.out... | true |
84265e1cd60b16d7c1c1dd4bbc0cac41cd7dce1e | Java | micuvld/RIW_PROIECT_Job_Dispatcher | /src/main/java/socket/SocketType.java | UTF-8 | 121 | 1.953125 | 2 | [] | no_license | package socket;
/**
* Created by vlad on 28.03.2017.
*/
public enum SocketType {
MASTER,
WORKER,
BOARD;
}
| true |
43d8177ad029ffd53d693c1ca1decc47a9d47edd | Java | gkech/Invasive-Species | /InvasiveAgent.java | UTF-8 | 9,835 | 2.421875 | 2 | [] | no_license | /*
Authors: Majid Alkaee Taleghan, Mark Crowley, Thomas Dietterich
Invasive Species Project
2012 Oregon State University
Send code issues to: alkaee@gmail.com
Date: 3/17/13:7:48 PM
I used some of Brian Tanner's Sarsa agent code for the demo version of invasive agent.
*/
import java.util.*;
import org.apa... | true |
67fdb32fbc782018d601202c3acc55c62e2dfa96 | Java | fabiofrc/ofertasbv-api | /src/main/java/com/example/algamoney/api/repository/subcategoria/SubCategoriaRepositoryQuery.java | UTF-8 | 535 | 1.710938 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.example.algamoney.api.repository.subcategoria;
import com.example.algamoney.api.model.SubCategoria;
import java.util.List;... | true |
19e29576bc4972d2cf01069f2427584517c6a31c | Java | scottrick/agl | /app/src/main/java/com/hatfat/agl/shaders/AglShaderProgram.java | UTF-8 | 1,039 | 2.5 | 2 | [] | no_license | package com.hatfat.agl.shaders;
import android.content.Context;
import android.opengl.GLES20;
/**
* Created by scottrick on 8/8/14.
*/
public class AglShaderProgram {
private int shaderProgram;
private AglShader vertShader;
private AglShader fragShader;
public AglShaderProgram(String vertShaderFi... | true |
4be483a97f2ddbea01373682b6f0bd2b7b9106ec | Java | Amandhi/Real_Estate_App | /app/src/main/java/com/example/myrealestateagency/service/PropertyStatusService.java | UTF-8 | 630 | 2.28125 | 2 | [] | no_license | package com.example.myrealestateagency.service;
import com.example.myrealestateagency.bo.Agent;
import com.example.myrealestateagency.bo.Property;
import com.example.myrealestateagency.bo.PropertyStatus;
import java.util.ArrayList;
import java.util.List;
final public class PropertyStatusService implements IProperty... | true |
88a79c53533250b685be75b9f1ef7a2e674ea322 | Java | SimingZheng/Shopping_System | /src/shopping/bundling/bundlingItem.java | UTF-8 | 145 | 2.203125 | 2 | [] | no_license | package shopping.bundling;
public interface bundlingItem {
public String name();
public bundling packing();
public float price();
}
| true |
fadd54df35bd56841abed5af9f341f3a72897b1d | Java | Jonathandlm/B1-Programmeren-3 | /Eindwerk/src/main/be/leerstad/eindwerk/service/InteractionDAOImpl.java | UTF-8 | 5,819 | 2.328125 | 2 | [] | no_license | package be.leerstad.eindwerk.service;
import be.leerstad.eindwerk.model.Interaction;
import be.leerstad.eindwerk.model.Logfile;
import be.leerstad.eindwerk.model.Session;
import be.leerstad.eindwerk.model.Visit;
import be.leerstad.eindwerk.util.MySqlUtil;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
... | true |
4faaa51c96e81f1a36ca5910e6041db1bcd2b05e | Java | joslynSmall/yq-xocde | /src/main/java/com/yq/xcode/aop/event/PublicEventListener.java | UTF-8 | 596 | 1.945313 | 2 | [] | no_license | package com.yq.xcode.aop.event;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
public class PublicEventListener implements ApplicationListener {
private static Log L... | true |
f0bbfb2de3b268f92197633ef334fefb81d57b32 | Java | gonggf/GongWorkTest1 | /src/test/java/demo/day2/TestModel.java | UTF-8 | 1,001 | 2.3125 | 2 | [] | no_license | package demo.day2;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.Select;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.t... | true |
77c9624ff430846570f59d2974f6677cab4ea756 | Java | chendeng/loan-weixin | /src/main/java/com/hwc/wx/controller/BaseController.java | UTF-8 | 3,921 | 2.203125 | 2 | [] | no_license | /**
* Copyright (c) 2018 All Rights Reserved.
*/
package com.hwc.wx.controller;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import com.alibaba.fastjson.JSONObject;
import com.hwc.wx.base.BaseB... | true |
1fc272cabf38f908bc954b1bcada55ed267cf281 | Java | carmitt/MyProject | /src/JunitLesson2/StepAction.java | UTF-8 | 167 | 1.710938 | 2 | [] | no_license | package JunitLesson2;
public class StepAction {
String actionTime;
String actionDesc;
String actionScreenShot;
boolean actionStatus;
String linkText;
}
| true |
1fc824677c6db08313237db96a21703bcbd253d9 | Java | MiroslavStefanov/travel-together | /src/main/java/org/softuni/traveltogether/services/CloudService.java | UTF-8 | 388 | 1.898438 | 2 | [] | no_license | package org.softuni.traveltogether.services;
import org.springframework.web.multipart.MultipartFile;
import java.io.IOException;
public interface CloudService {
String uploadImage(MultipartFile multipartFile) throws IOException;
String uploadImage(MultipartFile multipartFile, String imageId) throws IOExcept... | true |
fe5b182d79621a0adfe8cae569f9af0bd1819871 | Java | annoymousGiraf/health-checker | /src/main/java/com/tufin/health/check/PluginService.java | UTF-8 | 4,283 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package com.tufin.health.check;
import com.google.common.collect.Maps;
import com.tufin.health.check.groovy.GroovyRunner;
import com.tufin.health.check.groovy.PythonRunner;
import com.tufin.health.check.groovy.ScriptRunner;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype... | true |
fdf296486c97c38c226569d2e1b3626bf23ab406 | Java | anthonyprudhomme/HarpeMessenger | /HarpeMessenger/app/src/main/java/com/harpe/harpemessenger/services/HEUploadService.java | UTF-8 | 8,963 | 2.046875 | 2 | [] | no_license | package com.harpe.harpemessenger.services;
import android.content.Intent;
import android.content.IntentFilter;
import android.net.Uri;
import android.os.Bundle;
import android.os.IBinder;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.content.LocalBroad... | true |
4daf939a6984ce85d89235eeecad6b2a785b1eca | Java | mmarvinedge/POP3-Cardapio | /src/main/java/com/popsales/model/ProductDay.java | UTF-8 | 1,929 | 1.976563 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.popsales.model;
import java.io.Serializable;
/**
*
* @author Renato
*/
public class ProductDay implements Serializable... | true |
02100df28bda99b03c8a9f8d4200c756f9089986 | Java | TruthABC/AACloudDisk | /app/src/main/java/hk/hku/cs/aaclouddisk/main/TabPagerAdapter.java | UTF-8 | 1,388 | 2.484375 | 2 | [] | no_license | package hk.hku.cs.aaclouddisk.main;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import hk.hku.cs.aaclouddisk.main.tab.MP3Fragment;
import hk.hku.cs.aaclouddisk.main.tab.FilesFragment;
import hk.hku.cs.aaclouddisk.main.tab.M... | true |
4459c39fa3a831c26e690b603b5dfabd851e3be4 | Java | caprit/pro-netty | /src/main/java/com/itjoin/pro_netty/test/TestProxyRpc.java | UTF-8 | 916 | 2.25 | 2 | [] | no_license | package com.itjoin.pro_netty.test;
import com.itjoin.pro_netty.controller.LoginController;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
public class TestProxyRpc {
public static void main(String[] args) throws InterruptedException {
//注意,此处扫描包名,不能包含服务器的启动类所在的包
... | true |
503f8e6981c910d8639cb7f9d6ffb5deb2aadf69 | Java | thobho/console-game | /src/com/thobho/ConsoleColor.java | UTF-8 | 754 | 2.8125 | 3 | [] | no_license | package com.thobho;
public class ConsoleColor {
public static final String ANSI_RESET = "\u001B[0m";
public static final String ANSI_BLACK = "\u001B[30m";
public static final String ANSI_RED = "\u001B[31m";
public static final String ANSI_GREEN = "\u001B[32m";
public static final String ANSI_YELLOW... | true |
28a7ebecedfdc95cd74552538a7fc39a73db1aa1 | Java | septangle/onwingtech | /onwing-comm-api/src/main/java/com/onwing/household/biz/dto/AccessRecordDto.java | UTF-8 | 886 | 2.109375 | 2 | [] | no_license | package com.onwing.household.biz.dto;
import java.util.Date;
public class AccessRecordDto {
private Long id;
private Long householdId;
private Date outOffTime;
private String outOff;
private String photoUrl;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
pu... | true |
36417d06b69001736e90dff3240b98cf6bfadbea | Java | f0xJu/2018.07.12_pagrindai | /src/Thourth/ConstrucorExample.java | UTF-8 | 281 | 2.59375 | 3 | [] | no_license | package Thourth;
public class ConstrucorExample {
public ConstrucorExample (){
this(4);
}
public ConstrucorExample (int a){
System.out.println(a);
printData();
}
private void printData(){
System.out.println("Sveiki");
}
}
| true |
e1879278f90f87ead5aaa72cf3fef4df495396d8 | Java | ernestoMartineze/METAL | /frisa-servicios/frisa-servicios-ejb/src/main/java/mx/frisa/tic/datos/entidades/XxfrLineaCaptura.java | UTF-8 | 12,555 | 1.726563 | 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 mx.frisa.tic.datos.entidades;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.uti... | true |
d049cc13062ff5ee632261cce9da48971dd10437 | Java | gewuxy/jx_backend | /yaya/jbms/src/main/java/cn/medcn/jbms/controller/UserController.java | UTF-8 | 1,148 | 2 | 2 | [] | no_license | package cn.medcn.jbms.controller;
import cn.medcn.common.ctrl.BaseController;
import cn.medcn.common.excptions.SystemException;
import cn.medcn.jbms.security.Principal;
import cn.medcn.jbms.utils.SubjectUtils;
import cn.medcn.sys.model.SystemUser;
import cn.medcn.sys.service.SystemUserService;
import org.apache.shiro.... | true |
34d8eea2f477e029e78ee0fabf7ae69775128e0c | Java | edgardleal/r2d2 | /src/main/java/br/com/r2d2/controller/FileController.java | UTF-8 | 1,612 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | /**
*
*/
package br.com.r2d2.controller;
import java.io.File;
import java.util.Arrays;
import java.util.List;
import br.com.caelum.vraptor.Path;
import br.com.caelum.vraptor.Resource;
import br.com.caelum.vraptor.Result;
import br.com.r2d2.infra.Config;
/**
* Última compilação: 01/01/2013 00:00
*
* @author Ed... | true |
32d6911a8e7b34b50b8a051b686d0337bef5fa27 | Java | eagledeveloper/Learning | /learning/src/ch/gmtech/learning/lesson3/Course.java | UTF-8 | 447 | 2.8125 | 3 | [] | no_license | package ch.gmtech.learning.lesson3;
public class Course {
private String name, description;
private int number;
public Course(String name, int number, String description) {
this.name = name;
this.number = number;
this.description = description;
}
public String getName() {
return name;
... | true |
155390234968b6d7f9f12ef63f28c4db9ae2d3c1 | Java | SofianeCDL/Projet_Supernova_Creation_Numerique | /src/Nuage.java | UTF-8 | 4,695 | 3 | 3 | [] | no_license | import processing.core.PApplet;
import processing.core.PVector;
import java.util.ArrayList;
public class Nuage extends PApplet {
private ArrayList listeElementsNuage; //Liste des éléments du nuage.
private int nbElementNuage; //Nombre d'élément dans le nuage.
private ElementNuage elementNuageZero; //El... | true |
2bf46443c5c71439e9588e18fb98c7d85c0fb6aa | Java | ddalcino/eCommerceWebApp | /src/main/java/edu/csueb/cs6320/bean/SaleItemOffer.java | UTF-8 | 2,190 | 2.40625 | 2 | [] | no_license | package edu.csueb.cs6320.bean;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import j... | true |
601e8cfe302028165196e5db389c96cf92305f6f | Java | zxk1997/xypx | /xypx-cloud-api/src/main/java/com/zxk1997/px/api/consumer/Models/ActContainer.java | UTF-8 | 4,251 | 2.375 | 2 | [] | no_license | package com.zxk1997.px.api.consumer.Models;
import java.util.Date;
import java.util.HashMap;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.util.StringUtils;
public class ActContainer {
private String id;
private String title;//标题
private String address;//活动地点
private S... | true |
60e39064d5917c8408216e27ad46606ba7f06878 | Java | cristianbd95/DAW2 | /MySqlJAVA/src/hilos25112020/MainExecutor.java | UTF-8 | 1,047 | 2.796875 | 3 | [] | no_license | package hilos25112020;
import java.sql.Connection;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public class MainExecutor {
public static void main(String[] args) {
final long startTime = System.currentTimeMillis();
Conexion1 c = new Conexion1(true, "salud"... | true |
bc9f96cb8724d83f03bbdd3bf449d48748b8d736 | Java | yukazhydent/Pemograman-2 | /Latihan1.java | UTF-8 | 1,019 | 3.53125 | 4 | [] | no_license | import java.util.Scanner;
public class Latihan1{
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
System.out.println("Masukan nilai Mahasiswa (A/B/C/D/E):");
String nilai = s.next();
String ket = "";
switch (nilai) {
case "A":
ket = "Excellent!";
... | true |
c6eca7f1f8f286c1f1113dc692e871b56dbf3e45 | Java | ahpoder/pasoos2007hbc | /Module3/HotTargui-ProgProj-F08-Semi/src/hottargui/strategy/SettlementOnlyPutUnitsStrategy.java | UTF-8 | 416 | 2.484375 | 2 | [] | no_license | package hottargui.strategy;
import hottargui.framework.*;
public class SettlementOnlyPutUnitsStrategy implements PutUnitsStrategy {
public boolean isPutValid(Player p, Tile t, int count) {
if ((p.getCoins() >= count) &&
(t.getOwnerColor() == p.getColor()) &&
(t.getType() == TileType.... | true |
d11e4d8f628d07f34ae78adf2d7ae1046ae15fc7 | Java | kartben/azure-iot-sdk-java | /iot-e2e-tests/common/src/main/java/com/microsoft/azure/sdk/iot/common/helpers/ErrorInjectionHelper.java | UTF-8 | 6,376 | 2 | 2 | [
"MIT"
] | permissive | /*
* Copyright (c) Microsoft. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
package com.microsoft.azure.sdk.iot.common.helpers;
import com.microsoft.azure.sdk.iot.device.Message;
import java.util.UUID;
public class ErrorInjectionHel... | true |
664a9e40fff1af0b2961ca13be705566121ed159 | Java | nilaybesli/JavaCamp_Day4.3 | /game/src/Concrete/SaleManager.java | UTF-8 | 862 | 2.625 | 3 | [] | no_license | package Concrete;
import Abstracts.SaleService;
import Entities.Campaign;
import Entities.Game;
import Entities.User;
public class SaleManager implements SaleService{
public void Sell(User user, Game game) {
System.out.println("User : "+user.getName()+ " " +user.getLastName());
System.out.println... | true |
bfa15a461b3ad1d257064a10b3cd04f3a2163fbf | Java | kenuosec/Decompiled-Whatsapp | /android/support/v4/content/FileProvider.java | UTF-8 | 32,052 | 1.703125 | 2 | [] | no_license | package android.support.v4.content;
import android.content.ContentProvider;
import android.content.ContentValues;
import android.content.Context;
import android.content.pm.ProviderInfo;
import android.content.res.XmlResourceParser;
import android.net.Uri;
import android.os.Environment;
import android.os.ParcelFileDesc... | true |
ae732a06af6d49d5d2854e5a67fbc9108396643f | Java | pkdevbox/osee | /plugins/org.eclipse.osee.http.jetty.test/src/org/eclipse/osee/http/jetty/util/CookieStoringHttpClientFilter.java | UTF-8 | 2,021 | 1.984375 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2015 Boeing.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http:... | true |
0f828ccdc2054bd31fc0b9c1f9bb0acf74e6d04f | Java | bogdanorzea/PopularMovies | /app/src/main/java/com/bogdanorzea/popularmovies/ui/details/CastAdapter.java | UTF-8 | 2,308 | 2.46875 | 2 | [
"MIT",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package com.bogdanorzea.popularmovies.ui.details;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget... | true |