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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
9a2ad7eab395f30c45f8e759dfeddb39ab53fea9 | Java | vichim/testdoubles | /src/main/java/ro/vichim/testdoubles/service/ReservationRepository.java | UTF-8 | 333 | 1.960938 | 2 | [] | no_license | package ro.vichim.testdoubles.service;
import ro.vichim.testdoubles.model.Reservation;
public interface ReservationRepository {
/**
* @return the reservation in conflict with the requested reservation
*/
public Reservation findSimilar(Reservation reservation);
public void store(Reservation reserva... | true |
f073e0e9c7801f85d4170b77a1ee7706787f4ea3 | Java | niuyidev/Mvp-Frame | /library/src/main/java/com/niuyi/soft/library/view/BaseRefreshLayout.java | UTF-8 | 2,570 | 2.375 | 2 | [] | no_license | package com.niuyi.soft.library.view;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.view.ViewCompat;
import android.support.v4.widget.SwipeRefreshLayout;
import android.util.AttributeSet;
import android.view.MotionEvent;
... | true |
dad521a1c41854cf7dc81526e846dba98031bc53 | Java | EduardoCM/DiaUnoMaven | /src/main/java/com/oracle/diacuatro/funcionalInterface/FuncInterfaceTest.java | UTF-8 | 435 | 3.3125 | 3 | [] | no_license | package com.oracle.diacuatro.funcionalInterface;
public class FuncInterfaceTest {
public static void main(String[] args) {
FuncInterfaceTest test = new FuncInterfaceTest();
double result = test.operar(12, 15);
System.out.print(result);
}
public double operar(double... | true |
153faa08b7c9404f3efd50546f20885c8ca9366a | Java | babiperina/automationpractice-claro | /src/test/java/com/example/automationpracticeclarov2/pages/DashboardPage.java | UTF-8 | 419 | 1.921875 | 2 | [] | no_license | package com.example.automationpracticeclarov2.pages;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
public class DashboardPage {
@FindBy(id = "my-account")
public WebElement myAccount;
... | true |
151f7cccb3ecb67a799a405387a2ec473d7fc8f4 | Java | mmatheusr/JogoRPG | /ModuloLegolas/src/models/Arco.java | UTF-8 | 267 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package models;
public class Arco extends Arma {
private int largura;
public Arco() {
}
public int getLargura() {
return largura;
}
public void setLargura(int largura) {
this.largura = largura;
}
} | true |
85a9b18e658636a3fbddae3f886435620cebca9f | Java | Bruno-Felix/UnB_OO_2-2019 | /TrabalhoFinalOO/src/excessoes/TipoDeAtividadeNaoAtribuidaException.java | UTF-8 | 742 | 2.6875 | 3 | [] | no_license | package excessoes;
import javax.swing.JOptionPane;
import instituicao.Sala;
public class TipoDeAtividadeNaoAtribuidaException {
static Object[] Atividade = {"graduacao", "pos-graduacao", "extensao"};
public static void AtividadeNaoAtribuidaException(Sala salaCriada) {
while(salaCriada.tipoDeAtividade == "... | true |
13c2df73cb214a09ed502ed6a048373fd3a36144 | Java | Ritik30071999/Core-Java | /src/com/thread/Table.java | UTF-8 | 423 | 3.09375 | 3 | [] | no_license | package com.thread;
public class Table {
//thread never release it resource
public synchronized void printTable(int num) {
Thread t;
t = Thread.currentThread();
System.out.println(t.getName());
for (int i = 1; i <= 10; i++) {
System.out.println(num + "*" + i + "=" + (i * num));
try {
Thr... | true |
3fd1c509c7daef4945a95bcce2801c55adab34af | Java | luijo265/patrones-diseno | /src/main/java/estructural/adapter/bankadapter/ResponseBankAdapterDTO.java | UTF-8 | 284 | 1.789063 | 2 | [] | no_license | package estructural.adapter.bankadapter;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ResponseBankAdapterDTO {
private boolean usuarioValido;
}
| true |
09ed0d75993e9c3439b04b170aa9ad5566e83357 | Java | elmirabehzad1986/maze | /src/ConsoleOutputGenerator.java | UTF-8 | 992 | 3.4375 | 3 | [] | no_license | import java.io.IOException;
import java.util.List;
/**
* Created by elmirabehzad on 20/12/18.
*/
public class ConsoleOutputGenerator implements OutputGenerator {
@Override
public void generate(Maze maze, List<Node> nodes) {
for (int i = 0 ; i<maze.getRowSize(); i++){
for (int j= 0 ; j<m... | true |
2c398c595d4620db32f7e19e90b1822e5563d78d | Java | Lvzhongjiang/CRM | /src/main/java/com/hy/crm/service/IReplyService.java | UTF-8 | 379 | 1.585938 | 2 | [] | no_license | package com.hy.crm.service;
import com.hy.crm.entity.Reply;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/**
* <p>
* 服务类
* </p>
*
* @author jobob
* @since 2019-12-04
*/
public interface IReplyService extends IService<Reply> {
public List<Reply> forumReplyId(Integer f... | true |
a7b712bc0beac5e7daac5c102c0e6e5f42af986d | Java | deepakbansal015/JAVA-QUESTIONS | /a_pow_b_mod_c.java | UTF-8 | 629 | 3.0625 | 3 | [] | no_license | import java.util.Scanner;
public class a_pow_b_mod_c {
public static long func(int x,int n,int d)
{ if(x==0) return 0;
if(n==0) return 1;
long temp=func(x,n/2,d);
long result;
if(n%2 == 1)
{
result=(temp%d * temp%d *x%d)%d;
return result<0?result+d:result;
}
else
{
result=(... | true |
b7ecb9913f7cd8e4a426a1e37e556e126f5822f1 | Java | shreyapatill/PURE-Research-Project | /MMS Algo/src/MMSAlgo.java | UTF-8 | 3,311 | 3.359375 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.List;
public class MMSAlgo {
public void allocate(final List<List<Integer>> agentValues) {
int agents = agentValues.size();
int items = agentValues.get(0).size();
List<Float> aveVals = new ArrayList<>();
aveVals = getAverages(agentValues, agents);
Li... | true |
0a3270e473aec0b2564677ad6e7d047b167a70c9 | Java | ddk-code/coffeeshop | /src/main/java/ru/sbrf/coffeeshop/BD.java | UTF-8 | 755 | 2.953125 | 3 | [] | no_license | package ru.sbrf.coffeeshop;
import java.util.ArrayList;
public class BD {
private static int id;
final private static ArrayList<User> users = new ArrayList<>();
public static String addUser(User user) {
if (!isUserExist(user.getLogin())) {
id += 1;
user.setId(id);
... | true |
28b488ea2743e3f7698f61ece295c0da154575ed | Java | BillingLiao/70pool | /webPage/src/main/java/com/ant/webPage/controller/TitimateController.java | UTF-8 | 942 | 2.046875 | 2 | [] | no_license | package com.ant.webPage.controller;
import com.ant.entity.Tstimate;
import com.ant.webPage.service.TstimateService;
import com.ant.webPage.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotati... | true |
7f5f4c7ec5ef641d450992b3db5bd434af431b7a | Java | bferraro78/rpg | /src/Abilities/Vanish.java | UTF-8 | 831 | 3.03125 | 3 | [] | no_license | package src.Abilities;
import java.util.Random;
import java.util.*;
/* Disappear, take no damage for two turns */
public class Vanish extends Skill {
int resourceCost;
public Vanish(String x, String y, int resourceCost, boolean spell) {
super(x, y, spell);
this.resourceCost = resourceCost;... | true |
1a20212f1539708183369d68a0c8db6c76faf0c1 | Java | w334986110/GP018064 | /src/com/gupao/homework/factory/IAppliances.java | UTF-8 | 132 | 2 | 2 | [] | no_license | package com.gupao.homework.factory;
/**
* 家电工厂
*/
public interface IAppliances {
public String getFactoryName();
}
| true |
b0b6ceb7c1bc02c4fc2208ef7dbb36f7b2d2009e | Java | muxi166/Lens | /lenssdk/src/main/java/com/qiyi/lens/ui/traceview/TraceView.java | UTF-8 | 10,089 | 2 | 2 | [
"Apache-2.0"
] | permissive | /*
*
* Copyright (C) 2020 iQIYI (www.iqiyi.com)
*
* 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 ... | true |
cfd146d5a3429e6bf45a1d2945ca2e7b0b441272 | Java | CameronColleran/StatTracker | /app/src/main/java/edu/miracostacollege/stattracker/GameLogActivity.java | UTF-8 | 6,398 | 2.8125 | 3 | [] | no_license | /**
* GameLogActivity.java: Class which allows user to enter new games to database and also displays
* all games already in database
*
* @author Cameron Colleran
* @version 1.0
*/
package edu.miracostacollege.stattracker;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import and... | true |
3e3df59f9973a6d2897f67bb705e425c0ea08c6b | Java | grazianiborcai/Agenda_WS | /src/br/com/mind5/business/person/model/action/PersonVisiMergePerbio.java | UTF-8 | 1,152 | 2.046875 | 2 | [] | no_license | package br.com.mind5.business.person.model.action;
import java.util.List;
import br.com.mind5.business.person.info.PersonInfo;
import br.com.mind5.business.person.info.PersonMerger;
import br.com.mind5.business.personBio.info.PerbioInfo;
import br.com.mind5.business.personBio.model.decisionTree.PerbioRootSearc... | true |
d603a0a903abd71df67a76c2673f9949465b9954 | Java | linux86/AndoirdSecurity | /AndroidApplications/org.wopnersoft.unitconverter-69/src/com/wopnersoft/unitconverter/plus/c/al.java | UTF-8 | 308 | 2.03125 | 2 | [] | no_license | package com.wopnersoft.unitconverter.plus.c;
import java.util.Stack;
// compiled from: ProGuard
abstract class al {
private final String a;
al(String str) {
this.a = str;
}
abstract void a(Stack stack, StringBuilder stringBuilder);
String b() {
return this.a;
}
} | true |
45b7c233fc6fedc3d70218b600fed541b8bfbe91 | Java | Unhelpful/TicTacToe_Android | /src/main/java/us/looking_glass/tictactoe/androidapp/HowAboutANiceGameOfChess.java | UTF-8 | 2,577 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package us.looking_glass.tictactoe.androidapp;
import android.app.Dialog;
import android.os.Handler;
import android.view.View;
import us.looking_glass.tictactoe.Game;
import us.looking_glass.tictactoe.OptimalPlayer;
import us.looking_glass.tictactoe.Player;
/**
* Copyright 2013 Andrew Mahone
* <p/>
* Licensed und... | true |
c83517a29f0176fe3b2a869c2f675c6528464126 | Java | emielsteerneman/ad-hoc | /src/application/view/PrivateChatViewListener.java | UTF-8 | 260 | 1.828125 | 2 | [] | no_license | package application.view;
import network.NetworkDevice;
public interface PrivateChatViewListener {
public void onPrivateMessageSend(NetworkDevice device, String message);
public void onPrivateFileSend(NetworkDevice device, byte[] file, String filename);
}
| true |
8c1b6e94ed1b778cfa005327a2ffa101474f5d37 | Java | folf-asesores/siayf-rh | /src/main/java/mx/gob/saludtlax/rh/empleado/issste/AdministracionMovimientoIsssteController.java | UTF-8 | 14,445 | 1.8125 | 2 | [] | no_license | package mx.gob.saludtlax.rh.empleado.issste;
import java.io.IOException;
import java.io.Serializable;
import java.util.ArrayList;
import javax.annotation.PostConstruct;
import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import javax.faces.component.UI... | true |
c4dd258470879f002d37ca76947343bc17508f00 | Java | ramkotagiri/hybris-hacimpexaudit | /hacimpexaudit/web/src/com/kotagiri/hybris/controller/HacimpexauditHelloController.java | UTF-8 | 902 | 1.867188 | 2 | [] | no_license | /*
* Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
*/
package com.kotagiri.hybris.controller;
import static com.kotagiri.hybris.constants.HacimpexauditConstants.PLATFORM_LOGO_CODE;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Cont... | true |
93beb250392d4423d6d78c1a2a503b2e23a42f74 | Java | qiumg/mall | /mall-manager/mall-manager-service/src/main/java/com/mall/ICategoryService.java | UTF-8 | 151 | 1.671875 | 2 | [] | no_license | package com.mall;
import java.util.List;
public interface ICategoryService {
//查询出所有的分类
List<Category> QueryAllCategory();
}
| true |
a4fea62c1bcf73b874473ed9a8e55c1e61be2d14 | Java | richtwin567/1161Project | /src/snid/Biometric.java | UTF-8 | 760 | 3.28125 | 3 | [] | no_license | package snid;
/**
* This defines the interactions the system should have with person's biometric
* data
*
* @author Anakai Richards
*/
public interface Biometric {
/**
* Gets the type of biometric data. 'F' represents Fingerprint. 'D' represents DNA.
*
* @return a String representing the biome... | true |
3a1840ed45a5e579793414a9055fbfa5493037a8 | Java | nakinin2/Spring | /spring/src/main/java/com/pjt/controller2/HelloController.java | UTF-8 | 379 | 1.570313 | 2 | [] | no_license | package com.pjt.controller2;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping("/board/*")
public class HelloController {
@GetM... | true |
8cf247c9e40720bfdcc013e81d5328d215a59831 | Java | HaiVo1994/SpringMVC | /SessionAndCookie/Basket/src/main/java/com/basket/controller/BasketController.java | UTF-8 | 3,914 | 2.109375 | 2 | [] | no_license | package com.basket.controller;
import com.basket.model.Basket;
import com.basket.model.Product;
import com.basket.service.BasketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework... | true |
bb86704707ecb5e118d132536ab94b26db8596a0 | Java | dmitry-academy/academy | /academy8121/src/by/academy/lesson4/ForEachDemo.java | UTF-8 | 401 | 3.375 | 3 | [] | no_license | package by.academy.lesson4;
import java.util.Random;
public class ForEachDemo {
public static void main(String[] args) {
int[] values = new int[10];
for (int i = 0; i < values.length; i++) {
values[i] = new Random().nextInt(10);
}
for (int i = 0; i < values.length; i++) {
System.out.println(values[i]... | true |
9f8bb9f8eba670cf534397bc22a5fe5a5a94ad8c | Java | zhongxingyu/Seer | /Diff-Raw-Data/21/21_b5e1b7f6dcc5273715835436385f4bad72c361dd/RegisterServlet/21_b5e1b7f6dcc5273715835436385f4bad72c361dd_RegisterServlet_t.java | UTF-8 | 2,122 | 2.296875 | 2 | [] | no_license | package com.cs739.app.servlet.master;
import java.io.IOException;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.cs739.app.model.PlopboxUser;
import com.cs739.... | true |
587542cc8d2f9e2d2de9085b6e7f37181daccd37 | Java | jiaxinch/Sanity_Server_2 | /SanityServer/src/test/TransactionDAOTest.java | UTF-8 | 2,029 | 2.453125 | 2 | [] | no_license | package test;
import static org.junit.Assert.*;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import server.CategoryDAO;
import server.DAO;
import server.DateCal;
import ... | true |
c9403f98b182b78cba3e8a9b08f4e88a3c1cc64e | Java | paramattri/School-Of-Fintech-Batch-1 | /unit-conversion-service/src/main/java/com/manipal/controller/UnitConversionController.java | UTF-8 | 1,084 | 2.234375 | 2 | [] | no_license | package com.manipal.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestCont... | true |
49c45e94c81b6944d4e6ac67acbab8561785bb76 | Java | efsavage/ajah | /ajah-spring-mvc/src/main/java/com/ajah/spring/mvc/error/ResourceNotFoundException.java | UTF-8 | 1,539 | 2.21875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2012 Eric F. Savage, code@efsavage.com
*
* 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 require... | true |
5fc66eb89d87a4527c683a536e02e40c31d83c3e | Java | BlazeLoader/BlazeLoader | /src/main/com/blazeloader/api/entity/IProjectile.java | UTF-8 | 936 | 2.390625 | 2 | [
"BSD-2-Clause"
] | permissive | package com.blazeloader.api.entity;
import net.minecraft.entity.Entity;
import net.minecraft.entity.projectile.EntityArrow;
import net.minecraft.entity.projectile.EntityFireball;
import net.minecraft.entity.projectile.EntityThrowable;
public interface IProjectile<Thrower extends Entity> {
public default boolean is... | true |
3ef2ad35068ce3b11ed27c1867e8757ace63d4b8 | Java | deeppatel96/Java | /CS_111/Practice/Practice1.java | UTF-8 | 1,906 | 3.15625 | 3 | [] | no_license | // Problem
public class Practice1{
public static void main(String[] args){
System.out.println("What is the total sales charge?");
double total = IO.readDouble();
System.out.println("How much is the customer giving");
double cash = IO.readDouble();
double change = cash - total;
int twenty=0;
int ten=0;
... | true |
ee89e4920178f084388e7f44508fdc0d689288d4 | Java | stu157/HFTM-Abschlussarbeit | /Notizverwaltung/src/ch/hftm/notizverwaltung/interfaces/DialogCallBack.java | UTF-8 | 346 | 1.882813 | 2 | [] | no_license | package ch.hftm.notizverwaltung.interfaces;
import ch.hftm.notizverwaltung.image.ImageModel;
import javafx.scene.control.Hyperlink;
import javafx.scene.image.Image;
public interface DialogCallBack {
void dialogCallBackMessage(ImageModel imageUrl, ImageModel oldImage);
void dialogCallBackMessage(Hyperlink ur... | true |
3599bdaa385d0ce5f61bb12a28589eaa3db99cfa | Java | AKokoshyan/JavaT | /ITTalantsClassMethodsFields/src/InheritanceHW/Person.java | UTF-8 | 508 | 3.796875 | 4 | [] | no_license | package InheritanceHW;
public class Person {
private final String name;
private int age;
private boolean isMale;
protected Person(String name, int age, boolean isMale) {
this.name = name;
setAge(age);
this.isMale = isMale;
}
protected int getAge() {
return age;
}
private void setAge(int age) {
if... | true |
b63c02c2988785614c2433a1b2cce47934f5e9fa | Java | Fabliha-Fairooz/Hello | /app/src/androidTest/java/com/example/hello/UnitTest1.java | UTF-8 | 1,079 | 1.984375 | 2 | [] | no_license | package com.example.hello;
import androidx.test.rule.ActivityTestRule;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import static androidx.test.espresso.Espresso.onView;
import static androidx.test.espresso.action.ViewActions.click;
import static androidx.test.espres... | true |
93900f495d10f4c41235c93588e2d667c152e177 | Java | Rune-Status/sotr7-RS876 | /src/com/jagex/Class449.java | UTF-8 | 7,489 | 1.523438 | 2 | [] | no_license | package com.jagex;
import com.jagex.Class103;
import com.jagex.Class11;
import com.jagex.Class143_Sub1;
import com.jagex.Class162;
import com.jagex.Class189;
import com.jagex.Class2;
import com.jagex.Class215;
import com.jagex.Class230;
import com.jagex.Class243;
import com.jagex.InterfaceDef;
import com.jagex.Class27... | true |
8e2c261b08ca0064bd33cee7118726728fa3d1c4 | Java | pyaephyotint22/Maven-Student-Course | /02-helloo-servlet/src/main/java/com/mmit/Employee.java | UTF-8 | 473 | 2.484375 | 2 | [] | no_license | package com.mmit;
public class Employee {
private String loginName;
private String email;
private String phone;
public String getLoginName() {
return loginName;
}
public void setLoginName(String loginName) {
this.loginName = loginName;
}
public String getEmail() {
return email;
}
public void setEmail(... | true |
158fe245decd833e590fc05a5a22fcdae2a114cd | Java | dimaki/enhydrator | /enhydrator/src/test/java/com/airhacks/enhydrator/transform/FunctionScriptLoaderTest.java | UTF-8 | 4,732 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | package com.airhacks.enhydrator.transform;
/*
* #%L
* enhydrator
* %%
* Copyright (C) 2014 Adam Bien
* %%
* 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.... | true |
1d5a51147cafed59cb23cdd82b0f7058a29db0ab | Java | huagsan/CZT_Java | /CZT_Java/src/czt/learn/LeetCode/RotateList.java | UTF-8 | 5,274 | 3.421875 | 3 | [] | no_license | package czt.learn.leetcode;
import czt.learn.leetcode.resources.ListNode;
// Actually I add many kinds of permutation functions here;
public class RotateList {
public static ListNode reverse(ListNode head) {
ListNode preNode = null;
ListNode currNode = head;
ListNode resHead = null;
... | true |
759a620c742ba32d4029aa11f8ec21849fedcfa5 | Java | jasonbrianhall/Jaspersoft-Studio | /com.jaspersoft.studio/src/com/jaspersoft/studio/editor/outline/actions/ACreateAction.java | UTF-8 | 2,937 | 2.046875 | 2 | [] | no_license | /*******************************************************************************
* Copyright (C) 2010 - 2016. TIBCO Software Inc.
* All Rights Reserved. Confidential & Proprietary.
******************************************************************************/
package com.jaspersoft.studio.editor.outline.actions;
... | true |
d9194e3e3538a6ea2a10287bb6d4d6b97719dca0 | Java | yiyingcanfeng/hexo-blog-admin | /server/src/main/java/com/movefeng/hexoblogadmin/utils/AESUtil.java | UTF-8 | 8,569 | 2.96875 | 3 | [
"MIT"
] | permissive | package com.movefeng.hexoblogadmin.utils;
import org.apache.commons.codec.binary.Base64;
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
import java.io.UnsupportedEncodingException;
import java.nio.charset.StandardCharsets;
/**
* @author z
*/
public class AESUtil {
/**
* 加密算法
*/
... | true |
153ceffcba170a3f0cfaecf130408a2f0a4fdf99 | Java | rubendemarch/corso-java-example-ruben | /test1/src/bussinessObject/interfaces/DescriptorsInterface.java | UTF-8 | 307 | 2.078125 | 2 | [] | no_license | /**
*
*/
package bussinessObject.interfaces;
import java.util.List;
/**
* @author ALFA403
*
*/
public interface DescriptorsInterface {
public void addColumnDescriptor(ColumnDescriptorInterface columnDescriptorInterface);
public List<ColumnDescriptorInterface> getDescriptors();
}
| true |
cc4990626cbe72c9adcebda3a1a9ff3e768e10c2 | Java | asaucedo9/programs | /SimpleWebServer/WebWorker.java | UTF-8 | 6,054 | 3.03125 | 3 | [] | no_license |
import java.net.Socket;
import java.lang.Runnable;
import java.io.*;
import java.util.Date;
import java.text.DateFormat;
import java.util.TimeZone;
import java.nio.file.FileSystems;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.nio.file.Path;
import java.nio.charset.StandardCharsets;
import java... | true |
c8c21c02054d4b55287d8809215b51c46a7e02ad | Java | led-os/yimeinew | /app/src/main/java/com/chengzi/app/ui/pay/activity/PayRaiseFailureActivity.java | UTF-8 | 1,465 | 2.015625 | 2 | [] | no_license | package com.chengzi.app.ui.pay.activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.view.WindowManager;
import com.handong.framework.base.BaseActivity;
import com.chengzi.app.R;
import co... | true |
c1dca71fd723561ca3e2c46349f4a8c830902c0b | Java | jamalgithub/workdev | /in28Minutes-javaInterview/src/main/java/com/in28minutes/java/files/ConsoleExamples.java | UTF-8 | 647 | 3.65625 | 4 | [
"Apache-2.0"
] | permissive | package com.in28minutes.java.files;
import java.io.Console;
import java.io.IOException;
public class ConsoleExamples {
public static void main(String[] args) throws IOException {
// Console is used to read input from keyboard and write output
// This can be easily run from command prompt
// Console console =... | true |
6ea672ceecd059163f219a8536c152a033da002a | Java | pulumi/pulumi-gcp | /sdk/java/src/main/java/com/pulumi/gcp/logging/inputs/ProjectSinkExclusionArgs.java | UTF-8 | 6,928 | 1.953125 | 2 | [
"BSD-3-Clause",
"MPL-2.0",
"Apache-2.0"
] | permissive | // *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.gcp.logging.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import j... | true |
b821514cfbabaa3906464ed75fff5022bb996a21 | Java | bbobcik/auderis-tools | /core/src/main/java/cz/auderis/tools/collection/iterator/IterationItems.java | UTF-8 | 4,033 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2014 Boleslav Bobcik
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | true |
d853b656f43d4f1128fb853da25a5a18de3c66ad | Java | Vovchikan/TPE-lab2-Agents | /src/supply/path/RouteInfo.java | WINDOWS-1251 | 2,890 | 2.703125 | 3 | [] | no_license | package supply.path;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Locale;
import supply.agent.AgentInfo;
import supply.cargo.CargoInfo;
public class RouteInfo extends AgentInfo {
private ArrayList<RoutePoint> routePoints;
private int lastTimeValue; // ,
private Point lastPoint; // ... | true |
508737218e9cd17060dd1e027a3e1a6d21c9bb70 | Java | haipinghuang/LifeCycleDemo | /app/src/main/java/com/hai/lifecycledemo/widget/MyTextview.java | UTF-8 | 2,669 | 2.625 | 3 | [] | no_license | package com.hai.lifecycledemo.widget;
import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.util.Log;
import android.view.DragEvent;
import android.widget.TextView;
import androidx.annotation.Nullable;
/**
* view生命周期
* 周期:MyTextview-setMethod-onAttachedToW... | true |
49b861414a259c38e6907cbda33b603a1184c535 | Java | s-jinipark/test_prog | /Java_exe_2018/src/kr/co/infopub/chap119/PointUtilMain.java | UHC | 519 | 3.1875 | 3 | [] | no_license | package kr.co.infopub.chap119;
public class PointUtilMain
{
public static void main(String[] args)
{
Point p1=new Point(0,0);
Point p2=new Point(3,4);
Point p3=new Point(4,3);
double length1=PointUtil.length(p1,p2);
System.out.println(length1);
double area1=PointUtil.area(p1,p2,p3);
System.o... | true |
8deb6c75934ce80027306d5d58aab13572a70275 | Java | eslamhossam23/ServerELIM | /src/Main.java | UTF-8 | 807 | 3.046875 | 3 | [] | no_license | import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
public class Main {
private static Dao dao;
public static void main(String[] args) {
try {
Class.forName("com.mysql.jdbc.Driver");
} catch (ClassNotFoundException e) {
System.out.prin... | true |
01a08c605e7d4149b388afaeb07b65de2acccd5b | Java | petrul/misc | /cognibox/src/main/java/pertinence/cognibox/years/MathYearCodec.java | UTF-8 | 4,503 | 2.84375 | 3 | [] | no_license | package pertinence.cognibox.years;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.log4j.Logger;
import pertinence.cognibox.huffman.Code;
import pertinence.cognibox.huffman.HuffmanNode;
import... | true |
47f3bf1b5cd8beae93a7bf3a9ca6dd883e3dfbfd | Java | ferreiramarcelo/product-apim | /modules/integration/tests-integration/tests-jmeter/src/test/java/org.wso2.carbon.am.jmeter/APIMANAGER4488ApplicationUpdatePerformanceTestCase.java | UTF-8 | 2,050 | 1.953125 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown",
"BSD-3-Clause",
"ICU",
"LicenseRef-scancode-free-unknown",
"LGPL-2.1-only",
"CDDL-1.0",
"MIT",
"EPL-1.0",
"Classpath-exception-2.0",
"MPL-1.0",
"LGPL-2.1-or-later",
"LicenseRef-scancode-unknown-license-reference",
"GPL-2.0-only",
"LGPL-2.0-onl... | permissive | /*
*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) 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
*
* Un... | true |
0c9fcc06730acdcd9ef77bb5edfb91a32634b3c1 | Java | kmmao/jeecg | /src/com/buss/tdm/approve/ActReProcdefController.java | UTF-8 | 3,956 | 1.632813 | 2 | [] | no_license | package com.buss.tdm.approve;
import com.buss.activiti.entity.ActReModelEntity;
import com.buss.activiti.entity.ActReProcdefEntity;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger;
import org.jeecgframework.core.common.c... | true |
4da17a3bbd52f1a703c548a0a4c82d2dc5d011e2 | Java | HasanIsleem98/andriod | /app/src/main/java/com/example/database/MyIntentService.java | UTF-8 | 8,038 | 2.140625 | 2 | [] | no_license | package com.example.database;
import android.app.IntentService;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.content.Intent;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.graphics.Color;
im... | true |
726cebe64e27257d056e3ae8062f26f0a5685798 | Java | cor3000/keikai-tutorial | /src/main/java/io/keikai/tutorial/web/BaseServlet.java | UTF-8 | 1,374 | 2.515625 | 3 | [] | no_license | package io.keikai.tutorial.web;
import io.keikai.client.api.*;
import io.keikai.tutorial.Configuration;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
/**
* accept "server" parameter e.g. http://localhost:8080?server=10.1.1.1:8888
*/
public class BaseServlet extends HttpServlet {
protec... | true |
a342df4bb4686b973f2f7ef8ca80ae9bb011d2f7 | Java | charlie638/Class-Projects | /P2 Battleboats/src/Main.java | UTF-8 | 6,175 | 3.21875 | 3 | [] | no_license | //terwi045
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int turns = 0;
int shots = 0;
Scanner sc = new Scanner(System.in);
System.out.println("Debug Mode (Y/N): ");
String debug = sc.nextLine();
boolean debugbool = false;
... | true |
b7f9f2c3c77fd7bb046c7b97428009eafc4c5f74 | Java | KevinWickstrom/Document-Scanner | /DocumentScanner.java | UTF-8 | 2,046 | 3.78125 | 4 | [] | no_license | package documentScanner;
import java.util.*;
import java.io.*;
//Class done by Kevin
public class DocumentScanner {
private BinarySearchTree bst;
//Constructor
public DocumentScanner() {
bst = new BinarySearchTree();
}
//Scans text file and creates BST
public void scanDocument() throws IOException{
Scan... | true |
9865d6f99778cdab9caa0798bc47cf1d52a1437b | Java | christianfranco/the-clean-code-bay | /geo-match/server/core/src/main/java/com/github/christianfranco/geomatch/entities/CallResponse.java | UTF-8 | 775 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | package com.github.christianfranco.geomatch.entities;
import org.immutables.value.Value.Default;
import org.immutables.value.Value.Immutable;
import javax.annotation.concurrent.ThreadSafe;
import java.io.Serializable;
import java.util.Collection;
import java.util.Collections;
import static org.apache.commo... | true |
0abdaba28d56aa120e76cef721c8b7755f7713e7 | Java | zentralsoftware/sembilar | /src/main/java/com/zentral/sembilar/resp/parser/impl/RedisAskRedirectionParser.java | UTF-8 | 591 | 2.46875 | 2 | [
"Apache-2.0"
] | permissive | package com.zentral.sembilar.resp.parser.impl;
import com.zentral.sembilar.resp.AskInfo;
import com.zentral.sembilar.resp.ProtocolConstant;
import com.zentral.sembilar.resp.parser.AbstractRedirectionParser;
public class RedisAskRedirectionParser extends AbstractRedirectionParser<AskInfo>
{
/**
* raw format:
* -... | true |
513b1107cde8ce03575835f8d8104f40fa74f2f5 | Java | AndyZhu1991/Mars | /videotools/src/main/java/com/koolew/android/videotools/BlockingRecycleQueue.java | UTF-8 | 2,051 | 3 | 3 | [] | no_license | package com.koolew.android.videotools;
import java.util.Stack;
import java.util.concurrent.ArrayBlockingQueue;
/**
* Created by jinchangzhu on 9/10/15.
*/
public abstract class BlockingRecycleQueue<T> {
protected Stack<T> cache;
protected ArrayBlockingQueue<Wrapper<T>> queue;
public BlockingRecycleQueu... | true |
fb872a68184c33d7b5dbd69c6bc28e28180597f3 | Java | tungdx1/chozoi-product | /src/main/java/com/chozoi/product/app/controllers/v1/ProductController.java | UTF-8 | 11,962 | 1.773438 | 2 | [] | no_license | package com.chozoi.product.app.controllers.v1;
import com.chozoi.product.app.dtos.ProductCategoryDTO;
import com.chozoi.product.app.responses.BlogHomeResponse;
import com.chozoi.product.app.responses.ConfigHomeResponse;
import com.chozoi.product.app.responses.ProductsEsResponse;
import com.chozoi.product.app.responses... | true |
66460e150bb95eb5f1f9f2eec7506fdd4bcecc7a | Java | 17611226590/first | /day23/src/cn/itcast/demo1/PropertiesDemo1.java | GB18030 | 870 | 2.90625 | 3 | [] | no_license | package cn.itcast.demo1;
import java.io.IOException;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.util.Properties;
public class PropertiesDemo1 {
public static void main(String[] args) throws Exception {
// ʹ
InputStream in = PropertiesDemo1.class.getClassLoa... | true |
9cf7d03bc81a79a1aaeb46ee38b046b08f09d6ca | Java | JoaoCodeClan/Week_06_weekend_homework | /MyMusicShop/app/src/test/java/codeclan/com/mymusicshop/ConsumablesTest.java | UTF-8 | 1,010 | 2.5625 | 3 | [] | no_license | package codeclan.com.mymusicshop;
import org.junit.Before;
import org.junit.Test;
import codeclan.com.mymusicshop.Shopcontent.Consumables;
import static junit.framework.Assert.assertEquals;
/**
* Created by user on 03/11/2017.
*/
public class ConsumablesTest {
Consumables consumable;
@Before
public... | true |
aa12915aea786e8a1588e41ec3056381971e0e43 | Java | gladorange/orion_java_2021 | /Kosarev/12/src/main/java/com/task12/core/componentSamples/Zoo.java | UTF-8 | 707 | 2.984375 | 3 | [] | no_license | package com.task12.core.componentSamples;
import com.task12.core.annotation.AfterDependenciesInjected;
import com.task12.core.annotation.AutowireSimpleComponent;
import com.task12.core.annotation.SimpleComponent;
@SimpleComponent
public class Zoo {
@AutowireSimpleComponent
private Cat cat;
@AutowireSimp... | true |
ed99b318a50e5bae55bd629711a6cdb0ab976737 | Java | radtek/MultiverseClientServer | /multiverse server/multiverse-server/multiverse/src/multiverse/server/pathing/PathState.java | UTF-8 | 6,957 | 2.140625 | 2 | [
"MIT"
] | permissive | /********************************************************************
The Multiverse Platform is made available under the MIT License.
Copyright (c) 2012 The Multiverse Foundation
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "... | true |
64745813e53522d242b0586ddb13d9029c90ce71 | Java | geezerok/adminApp | /src/com/geezer/adminapp/DAO/Impl/LoginDAOImpl.java | UTF-8 | 2,707 | 2.5625 | 3 | [] | no_license | package com.geezer.adminapp.DAO.Impl;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import org.hibernate.Session;
import com.geezer.adminapp.DAO.LoginDAO;
import com.geezer.adminapp.orm.Login;
import com.geezer.adminapp.orm.Login;
import com... | true |
95e1f7e006639b206b6683e6261a078f88df2061 | Java | Jeffry99/AeropuertoCliente | /aeropuerto.cliente/src/main/java/org/una/aeropuerto/cliente/controller/SolicitudPermisoController.java | UTF-8 | 7,997 | 2.171875 | 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 org.una.aeropuerto.cliente.controller;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.event.ActionEvent;
... | true |
1383def2229ea0c573aa5c48d3bb0f7ee8315589 | Java | Alkhtemi/Mobile-Platform-Coursework | /CourseWork/app/src/main/java/gcu/mpd/mpdstartercode20192020/MainActivity.java | UTF-8 | 8,950 | 1.9375 | 2 | [] | no_license | package gcu.mpd.mpdstartercode20192020;
import android.content.Intent;
import android.os.Bundle;
import android.os.StrictMode;
import android.text.Editable;
import android.text.TextWatcher;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import android.widget.ArrayAdapter;
import android.w... | true |
005ef9c441eb6c0654eb5c2ef03cad136a80f19a | Java | Gator926/Learning | /java-oop/src/main/java/ValueTransferTest2.java | UTF-8 | 558 | 3.5 | 4 | [] | no_license | public class ValueTransferTest2 {
public static void main(String[] args) {
Data data = new Data();
data.m = 10;
data.n = 20;
System.out.println("m = " + data.m + ", n = " + data.n);
ValueTransferTest2 valueTransferTest2 = new ValueTransferTest2();
valueTransferTest2.... | true |
ca0d35cb661ccf1a4ae451db7b8aa6ba24980259 | Java | agateau/equiv | /app/src/main/java/com/agateau/equiv/core/ProteinWeightUnit.java | UTF-8 | 740 | 1.84375 | 2 | [
"Apache-2.0"
] | permissive | /*
Copyright 2015 Aurélien Gâteau
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwar... | true |
e04a3daa911f7288466a71daa2089137c32f803e | Java | shadowDy/surveypark | /src/com/dy/surveypark/service/StatisticsService.java | UTF-8 | 300 | 1.773438 | 2 | [] | no_license | package com.dy.surveypark.service;
import com.dy.surveypark.model.statistics.QuestionStatisticsModel;
/**
* 统计服务
* @author DY
* @version 创建时间:2015年10月26日 下午8:42:55
*/
public interface StatisticsService {
public QuestionStatisticsModel statistics(Integer qid);
}
| true |
ab93815a5c9e7982e8f38a04803e6e47cfc65406 | Java | thakur-singh21/Spring-microservices | /currency-exchange-service/src/main/java/com/thakur/microservices/config/CurrencyExchangeConfiguration.java | UTF-8 | 873 | 2.234375 | 2 | [] | no_license | package com.thakur.microservices.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
@Component
@ConfigurationProperties("currency-exchange-service")
public class CurrencyExchangeConfiguration {
private String converterOne;
private St... | true |
8dfd12a91b7984418fa657abedc9ce6ec3640e01 | Java | EGREllis/incan_assistant | /src/main/java/net/assistant/model/CardType.java | UTF-8 | 89 | 1.742188 | 2 | [] | no_license | package net.assistant.model;
public enum CardType {
GEM,
HAZARD,
ARTIFACT
}
| true |
43eaed4a1b0167bee4ce8f0fff76c3735381966f | Java | map-lijie/go | /src/main/java/com/yn/go/common/model/News.java | UTF-8 | 1,093 | 1.960938 | 2 | [] | no_license | package com.yn.go.common.model;
import java.util.List;
import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Page;
import com.jfinal.plugin.activerecord.Record;
import com.yn.go.common.BuildParams;
import com.yn.go.common.BuildSql;
import com.yn.go.common.Filters;
import com.yn.go.... | true |
d522fb8c094b3245265743898e7b0353abeff785 | Java | burberius/eve-esi | /src/main/java/net/troja/eve/esi/model/CorporationMembersTitlesResponse.java | UTF-8 | 3,664 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | /*
* EVE Swagger Interface
* An OpenAPI for EVE Online
*
* The version of the OpenAPI document: 1.17
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package net.troja.eve.esi.model;
import ... | true |
3aae3e206585da2c4ad4d391773bf4aeb2960d61 | Java | FernandaLVItau/bootcamp-01-template-proposta | /src/main/java/br/com/zup/cartaoproposta/entities/cartao/biometria/Biometria.java | UTF-8 | 1,314 | 2.40625 | 2 | [
"Apache-2.0"
] | permissive | package br.com.zup.cartaoproposta.entities.cartao.biometria;
import br.com.zup.cartaoproposta.entities.cartao.Cartao;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;... | true |
868527cd8c0f74269a81acd95958161fa5e86cf1 | Java | bzhu36/SpeedrunApp | /app/src/main/java/edu/ucsb/cs/cs184/speedrun/speedrunapp2/platform/System.java | UTF-8 | 286 | 1.882813 | 2 | [] | no_license | package edu.ucsb.cs.cs184.speedrun.speedrunapp2.platform;
/**
* Created by giovanni_rojas on 12/4/17.
*/
public class System {
private String platform;
private boolean emulated;
private String region;
public String getPlatform() {
return platform;
}
}
| true |
68ab0a47fd27abb7505f28bcae7411d9ba783af0 | Java | CarlosHPlata/HeadFirst | /src/com/headFirst/factory/simpleFacotry/factory/ClamPizza.java | UTF-8 | 155 | 2.203125 | 2 | [] | no_license | package com.headFirst.factory.simpleFacotry.factory;
public class ClamPizza extends Pizza {
public ClamPizza() {
super("Clam Pizza");
}
}
| true |
4528aba1a4c4596508851ce4a0e6c8859d5f9e3f | Java | robertpilczuk/cd | /src/main/java/BibliotekaCD.java | UTF-8 | 3,375 | 2.96875 | 3 | [] | no_license | import lombok.AllArgsConstructor;
import lombok.Getter;
import javax.management.BadBinaryOpValueExpException;
import java.io.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.Scanner;
@AllArgsConstructor
@Getter
public class BibliotekaCD {
private String name;
p... | true |
ff7a2274bb573bf097c0b247809f35925837ac52 | Java | luotianwen/yy | /sf-service/src/main/java/com/shifeng/provide/sysuser/service/SysUserService.java | UTF-8 | 2,646 | 2.34375 | 2 | [] | no_license | package com.shifeng.provide.sysuser.service;
import com.shifeng.entity.user.SysUser;
import com.shifeng.response.ReqResponse;
/**
* 用户表(SysUser)接口
* @author Win Zhong
* @version Revision: 1.00
* Date: 2017-02-07 17:13:02
*/
public interface SysUserService {
/**
* 根据用户id修改用户状态
* @param userId 用户id
... | true |
254cf5d40f081b20020468187095c64913e622a8 | Java | MaxKeyTop/MaxKey | /maxkey-common/src/main/java/org/maxkey/crypto/jwt/encryption/service/impl/DefaultJwtEncryptionAndDecryptionService.java | UTF-8 | 11,407 | 1.960938 | 2 | [
"Zlib",
"EPL-1.0",
"LZMA-exception",
"bzip2-1.0.6",
"CPL-1.0",
"CDDL-1.0",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*******************************************************************************
* Copyright 2014 The MITRE Corporation
* and the MIT Kerberos and Internet Trust Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Y... | true |
233c3bfab282ce75aa4f4e29dc6a530183c8a9e1 | Java | sandracosta5/ZecaTotal3 | /ZecaTotal3/ZecaTotal3/src/main/java/friendularity/test/camera/r50/ImageDemo.java | UTF-8 | 3,106 | 2.28125 | 2 | [] | no_license | package friendularity.test.camera.r50;
import java.awt.EventQueue;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFrame;
import javax.swing.UIManager;
import org.robokind.api.vision.config.CameraServiceConfig;
import org.robokind.api.vision.messaging.RemoteImageServiceClient;
impo... | true |
5229d11c807db7d524afe603914a04c8e6fef8eb | Java | barnapaul/Register-Login-Android | /app/src/main/java/com/example/barna/shop/ui/Splash.java | UTF-8 | 1,812 | 2.109375 | 2 | [] | no_license | package com.example.barna.shop.ui;
import android.os.Handler;
import android.os.Bundle;
import android.widget.ProgressBar;
import com.example.barna.shop.controller.BaseActivity;
import com.example.barna.shop.utils.StoreData;
import com.example.barna.shop.R;
public class Splash extends BaseActivity {
private Pro... | true |
6ea95465343f77c3c45c1d6ee6ce0491ef413b19 | Java | Color4/ITPC | /src/org/pharmgkb/VariantAlleles.java | UTF-8 | 2,707 | 2.359375 | 2 | [] | no_license | /*
* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
... | true |
11e574c4044e9a54934b0413e2bec8ed16cef5a4 | Java | 111111222222/RecyclerButton | /app/src/main/java/com/sid/recyclerbutton/EventModel.java | UTF-8 | 776 | 2.359375 | 2 | [] | no_license | package com.sid.recyclerbutton;
/**
* Created by Jethva Sagar (Piml Sid) on 11/8/16.
* Email : Jethvasagar2@gmail.com
*/
public class EventModel {
private String name;
private String active;
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.st... | true |
f54f6cf57b5cae701a12015e79b05ef33debe523 | Java | clericmart/IsspMart | /src/main/java/ua/web/martynenko/servlet/FirstServlet.java | UTF-8 | 616 | 2.25 | 2 | [] | no_license | package ua.web.martynenko.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class FirstServlet extends HttpSer... | true |
1345f6b85847bc389707853d0302121dc6b4eb13 | Java | inginformatikabilbo/1maila | /PM-OBO/Lana/Kodea/Probak/org/minakdev/itsasgudua/JokalariaTest.java | UTF-8 | 7,450 | 2.375 | 2 | [] | no_license | package org.minakdev.itsasgudua;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class JokalariaTest {
Jokalaria j1;
@Before
public void setUp() throws Exception {
j1=new Jokalaria("Pepito");
Jokalaria.setItsaspekoMax(2);
Jokalaria.setOntzi... | true |
4c157586dfce6743974d0950f7d6f00f44f91730 | Java | TheShermanTanker/NMS-1.16.3 | /net/minecraft/server/v1_16_R2/EntityHorseAbstract.java | UTF-8 | 35,604 | 1.875 | 2 | [] | no_license | /* */ package net.minecraft.server.v1_16_R2;
/* */ import com.google.common.collect.UnmodifiableIterator;
/* */ import java.util.Iterator;
/* */ import java.util.Optional;
/* */ import java.util.UUID;
/* */ import javax.annotation.Nullable;
/* */ import org.bukkit.craftbukkit.v1_16_R2.event.... | true |
15362872ea933c7854431108d86504c5f123cb94 | Java | krystek10071/websiteDesignBackend | /src/main/java/com/example/websiteDesignBackend/models/repository/GalleryRepository.java | UTF-8 | 564 | 2.046875 | 2 | [] | no_license | package com.example.websiteDesignBackend.models.repository;
import com.example.websiteDesignBackend.models.GalleryEntity;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.st... | true |
625a8021d9993a9e9b30721377d009f0e690dae8 | Java | bellmit/Ch_study2_seaco | /tp-proxy/src/main/java/com/tp/proxy/mmp/RelateChangeProxy.java | UTF-8 | 576 | 1.929688 | 2 | [] | no_license | package com.tp.proxy.mmp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tp.model.mmp.RelateChange;
import com.tp.proxy.BaseProxy;
import com.tp.service.IBaseService;
import com.tp.service.mmp.IRelateChangeService;
/**
* 关联专题代理层
* @author szy... | true |
408d48e135b2d3832b6cac15f213b9a51c7ea39a | Java | SenhLinsh/LshApp-protocol-impl | /impl/src/main/java/com/linsh/protocol/impl/ui/view/ProtocolInfo.java | UTF-8 | 277 | 1.578125 | 2 | [] | no_license | package com.linsh.protocol.impl.ui.view;
/**
* <pre>
* author : Senh Linsh
* github : https://github.com/SenhLinsh
* date : 2018/12/02
* desc :
* </pre>
*/
public class ProtocolInfo {
public String name;
public String key;
public String impl;
}
| true |
93b8a6936f5404b70ae064055d81709a6a5541a3 | Java | cornelialips/project-assignment04-cornelialips-mirunalandstrom | /src/com/assignment_4/superclasses/Human.java | UTF-8 | 685 | 3.78125 | 4 | [] | no_license | package com.assignment_4.superclasses;
/**
*
* @author cornelia, Miruna
* @version 1.0
* This is a superclass with two attributes
*/
public class Human {
private String Name = "";
private int age = 0;
/***
* This is the constructor which takes all the attributes.
* @param name
* @param age
*/
pub... | true |
f985a55e8df29d9389d51769d0e2cd8cdbddb6eb | Java | rondlaprasanna/SeleniumWDPageObjectModel | /src/main/java/flight/book/webtest/pages/PlanJourneyPage.java | UTF-8 | 2,561 | 1.882813 | 2 | [] | no_license | package flight.book.webtest.pages;
import net.thucydides.core.annotations.DefaultUrl;
import net.thucydides.core.pages.PageObject;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.ui.Select;
import org.yecht.Data;
impor... | true |
faf5a5f0393e1dc081f901fd158bae7e2c6cbe95 | Java | cha63506/CompSecurity | /Music-Audio/livemix_tapes_source/src/com/google/android/gms/wallet/fragment/WalletFragmentInitParams.java | UTF-8 | 4,892 | 1.53125 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.google.android.gms.wallet.fragment;
import android.os.Parcel;
import com.google.android.gms.common.internal.safeparcel.SafeParcelabl... | true |
f197a22369bfdc93126014e76c1f4342839ad913 | Java | govi22d/PracticeProjectsJava | /DemoProject/src/userexception/CustomException.java | UTF-8 | 373 | 2.8125 | 3 | [] | no_license | package userexception;
public class CustomException extends Exception {
private static final long serialVersionUID = 1L;
private String _message;
public CustomException(String message)
{
this._message = message;
}
@Override
public String toString()
{
var str = _message == null ? "unknown" : _message;
... | true |
0cf05ba7bafdad89d972cb234628ba52aaa7574d | Java | ChueiZuoChen/homework | /src/main/java/com/train/Tester.java | UTF-8 | 745 | 3.28125 | 3 | [] | no_license | package com.train;
import java.util.Scanner;
public class Tester {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("Please enter number of tickets: ");
int totalTickets = sc.nextInt();
// System.out.println(totalTickets);
Sys... | true |