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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
5d21929c2d907c8be1a37c87dd5a3d132a44855b | Java | rramirezech1/graphicmakers | /src/java/p_06_utilitarios/Errores.java | UTF-8 | 2,156 | 2.234375 | 2 | [] | no_license | package p_06_utilitarios;
import p_02_transactsql.Querys;
import java.io.Serializable;
public class Errores implements Serializable {
private String cor_err, obj_err, met_err, des_err, que_err, usu_err;
public Errores() {
}
public void auditarError(String mObjeto, String mMetodo, Stri... | true |
939c51d3c9451db09e39564e9f4173d4771298e1 | Java | herrsergioYa/QSRModel | /src/rnsim/JunctionChar.java | UTF-8 | 1,028 | 2.640625 | 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 rnsim;
/**
*
* @author HerrSergio
*/
public class JunctionChar {
private String from, to;
private bool... | true |
a5910f9d4e1080880f92dadd8c0e3c64c41195a8 | Java | Loic17/compilationl3-public | /src/Sa2ts.java | UTF-8 | 3,034 | 2.671875 | 3 | [] | no_license | import sc.node.*;
import sc.analysis.*;
import sa.*;
import ts.*;
public class Sa2ts extends SaDepthFirstVisitor <Void>{
public Ts table;
public Ts current;
public Sa2ts(SaNode root){
this.table= new Ts();
root.accept(this)
}
public Ts getTableGlobale(){
return this.table;
... | true |
806f72304f7a552c6bc1ad54cb57f489f59d2896 | Java | ViktorDimitrov1989/JavaOOP_Advanced_IstExamPrep | /commands/RegisterHealthEmergencyCommand.java | UTF-8 | 1,298 | 2.5625 | 3 | [] | no_license | package commands;
import annotations.InjectArgs;
import core.ManagementSystem;
import enums.EmergencyLevel;
import models.emergencies.HealthEmergency;
import models.emergencies.Emergency;
import utils.RegistrationTime;
import utils.RegistrationTimeImpl;
public class RegisterHealthEmergencyCommand extends BaseCommand ... | true |
19f42662122b8c80c449ef02c0f76019eb04c722 | Java | buoncubi/OntologyFramework | /OntologicalFramework/src/ontologyFramework/OFErrorManagement/OFGUI/ClassTree.java | UTF-8 | 15,765 | 2.03125 | 2 | [] | no_license | package ontologyFramework.OFErrorManagement.OFGUI;
import java.awt.Component;
import java.awt.event.MouseEvent;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
import java.util.Set;
import javax.swing.ImageIcon;
import javax.swing.JScrollPane;
import javax.swing.JTree;
import javax.sw... | true |
ac2cf57ba7effc27e7dde157233ee3cceddf8d8c | Java | lasserotzol/uebung_6 | /src/Autotester.java | UTF-8 | 712 | 2.953125 | 3 | [] | no_license |
public class Autotester {
public static void main(String[] args) {
Auto testwagen1 = new Auto(0.1,300);
Auto testwagen2 = new Auto(0.07,50);
for (int a = 1; a < 4; a++) {
int kilometerstand1 = Zufall.getZufallInt(0, 1000);
int kilometerstand2 = Zufall.getZufallInt(0, 1000);
testwagen1... | true |
f408e0fa32e3a52971e1d97340d773dc3586d16a | Java | Bhavdip/RxCompass | /rxsensor/src/main/java/com/adb/rxsensor/CompassHelper.java | UTF-8 | 4,740 | 2.125 | 2 | [] | no_license | package com.adb.rxsensor;
import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.view.Display;
import java.util.ArrayList;
import java.util.Iterator;
import static android.view.Surface.ROTATION_0;
import static... | true |
1c2af86082803dca4d7f12a7c50ea04b841867aa | Java | STAMP-project/Cling-application | /results/randoop10/closure-com.google.javascript.jscomp.NodeUtil-com.google.javascript.rhino.Node-14/RegressionTest22.java | UTF-8 | 1,704,878 | 2.03125 | 2 | [] | no_license | import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class RegressionTest22 {
public static boolean debug = false;
@Test
public void test4401() throws Throwable {
if (debug)
System.out.form... | true |
de8f11eb6ad6abacef85e2bfe84a3d440e22b629 | Java | meiwulang/spring-boot-distributed | /api/b2b-controllCenter/src/main/java/com/jdy/b2b/api/service/impl/OrderTouristConfirmServiceImpl.java | UTF-8 | 4,527 | 1.929688 | 2 | [] | no_license | package com.jdy.b2b.api.service.impl;
import com.alibaba.fastjson.JSON;
import com.github.pagehelper.PageHelper;
import com.jdy.b2b.api.dao.OrderTouristMapper;
import com.jdy.b2b.api.dao.orderTouristConfirm.OrderTouristConfirmMapper;
import com.jdy.b2b.api.dao.schedule.ScheduleSettingMapper;
import com.jdy.b2b.api.mod... | true |
ba7018520a1dc31129263028e508645b77096db7 | Java | lumagomes/projeto_aps_entrega_final | /src/excecao/Excecao.java | ISO-8859-1 | 1,400 | 2.5 | 2 | [] | no_license | package excecao;
public class Excecao extends RuntimeException {
/**
*
*/
private static final long serialVersionUID = 1L;
public static final String CARGO_INEXISTENTE = "cargo inexistente";
public static final String CARGO_JA_EXISTENTE = "cargo ja existente";
public static final String CARGO_FUNCAO_VALOR... | true |
e450cb1525b78a17d9d6f9a7b6f14f6697e3fd34 | Java | meixuesong/refactoring-kata-java | /src/main/java/refactoring/smell/refused_bequest/Employee.java | UTF-8 | 200 | 1.890625 | 2 | [
"Apache-2.0"
] | permissive | package refactoring.smell.refused_bequest;
/**
* @author <a href="mailto:meixuesong@gmail.com">Mei Xuesong</a>
*/
public class Employee {
public boolean hasSalesQuota(int quota) {
return false;
}
}
| true |
8e985ef27fb3becf8d401347e2c02c6a372d696d | Java | holdforther/ExShell | /src/main/java/com/psu/exshell/Knowledge/VarType.java | UTF-8 | 311 | 2.140625 | 2 | [
"MIT"
] | permissive | package com.psu.exshell.Knowledge;
public enum VarType {
REQUESTED("Requested"),
INFERRED("Inferred"),
INFERRED_REQUESTED("Infer-Requested");
private String str;
VarType(String str) {
this.str = str;
}
@Override
public String toString() {
return str;
}
}
| true |
60451c2ea152776eaed8a54f11a6b165d8cfc63d | Java | jamesrbent1ey/androidtools | /bindable/bindable/src/main/java/lib/bindable/UIBindable.java | UTF-8 | 979 | 2.0625 | 2 | [
"MIT",
"BSD-3-Clause"
] | permissive |
/*
* Copyright (c) 2019. James Bentley, all rights reserved.
*/
package lib.bindable;
import android.util.AttributeSet;
/**
* Specify a Class as Bindable
*/
public interface UIBindable
{
// namespace for XML attributes
String NAMESPACE = "http://schemas.bindable.lib/widget";
String A... | true |
14e9cd9e81fc85fe97cdf182edfaba292ec21349 | Java | mmaico/salesman-crm | /src/main/java/br/com/kproj/salesman/assistants/archive/application/impl/ArchiveServiceImpl.java | UTF-8 | 2,102 | 1.992188 | 2 | [] | no_license | package br.com.kproj.salesman.assistants.archive.application.impl;
import br.com.kproj.salesman.assistants.archive.application.ArchiveFacade;
import br.com.kproj.salesman.assistants.archive.domain.model.archive.Archive;
import br.com.kproj.salesman.assistants.archive.domain.model.archive.ArchiveRepository;
import br.c... | true |
d763af84b222f367c861a6ee406b72bf4079ed86 | Java | TejrajJadhav/NewsApp | /app/src/main/java/Entity/MainSource.java | UTF-8 | 427 | 2.28125 | 2 | [] | no_license | package Entity;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Tejraj on 17-Mar-19.
*/
public class MainSource {
public String status;
public List<MainSourceData> sources = new ArrayList<>();
public MainSource() {
}
public MainSource(String status, List<MainSourceData> ma... | true |
e6b7a9d1de682558a1e53c614231f20c77ac92c0 | Java | ZhouYangGaoGao/MT | /maTao/src/main/java/com/matao/activity/ForgotPwActivity.java | UTF-8 | 6,740 | 2 | 2 | [] | no_license | package com.matao.activity;
import org.json.JSONException;
import android.content.Intent;
import android.os.CountDownTimer;
import android.text.TextUtils;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import com.alibaba.fastjson.JSON;
import com.lidroid.xutils.http.Request... | true |
e3543d0b53220e66db4f032ab0aaf574d374d537 | Java | iamfaith/backupCode | /src/main/java/cn/bmob/v3/datatype/a/thing.java | UTF-8 | 10,052 | 1.773438 | 2 | [] | no_license | package cn.bmob.v3.datatype.a;
import android.util.Log;
import cn.bmob.v3.Bmob;
import cn.bmob.v3.a.b.This;
import cn.bmob.v3.exception.BmobException;
import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.util.Arrays;
import java.util.HashMap;
import java.util.LinkedHashMap;
imp... | true |
4aea6100b0e2dd05763fb14dc5b4fc1461578797 | Java | himanshu0143/newdemo1 | /SAMERP/src/admin/settings/AddClient.java | UTF-8 | 4,424 | 2.078125 | 2 | [] | no_license | package admin.settings;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Iterator;
import java.util.List;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.... | true |
fc1f438d24f5351ae8e7042bf06125c8f26a02c0 | Java | FacuMastri/7507-Algo3 | /Finales/02_03_17_final/02-03-17-alumno/src/personajes/Goku.java | UTF-8 | 742 | 2.578125 | 3 | [
"MIT"
] | permissive | package personajes;
import niveles.Nivel;
import niveles.NivelSaiyajin;
import niveles.NivelSuperSaiyajin;
public class Goku extends Personaje {
private Nivel nivel;
public Goku() {
super();
this.nivel = new NivelSaiyajin();
}
public void evolucionar() {
this.nivel = new NivelSuperSaiyaji... | true |
e8fa25c5045890519c7f4051fa12c18ccbe1ebc9 | Java | thomashaaland/ObjectOrientedProgramming | /eksamen/opg1_2/Sted.java | UTF-8 | 1,067 | 3.28125 | 3 | [] | no_license | /*
--*java*--
Klassen sted har en beskrivelse av stedet,
har mulighet for aa ha en skattkiste
og har utganger som lenker til nabosteder
*/
import java.util.ArrayList;
import java.util.Random;
public class Sted {
// Beskrivelsen skal lastes fra filen <<steder.txt>>
private String beskrivelse;
priv... | true |
fc3353f86c180533652a76f7b05976b6b06eac10 | Java | Gate16/my_great_nz | /src/main/java/org/govhack/gate16/service/impl/IndustryServiceImpl.java | UTF-8 | 4,136 | 2.453125 | 2 | [] | no_license | package org.govhack.gate16.service.impl;
import org.govhack.gate16.service.IndustryService;
import org.govhack.gate16.domain.Industry;
import org.govhack.gate16.repository.IndustryRepository;
import org.govhack.gate16.repository.search.IndustrySearchRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
... | true |
46e5f12d1c9804f8de645ea84b2a60d4154259d7 | Java | Rijo0707/Javacourse | /MatrixOperations.java | UTF-8 | 879 | 3.90625 | 4 | [] | no_license | public class MatrixOperations {
static void sum(int a[][],int b[][]) //Sum of 2 matrices
{
int sum[][]=new int[3][3];
for(int i=0;i<3;i++)
{
for(int j=0;j<3;j++)
{
sum[i][j]=a[i][j]+b[i][j];
System.out.print(sum[i][j]+" ");
}
System.out.println();
}
}
static void product(int a[][... | true |
ab871b3cd5b8c7a98e2187c516c9d801f2b4cbb8 | Java | katiebittner/umm_casino | /src/main/java/Casino.java | UTF-8 | 3,697 | 3.328125 | 3 | [] | no_license | import java.util.Scanner;
public class Casino {
public static String playersName = "Default";
public static int playersCash = 100;
private boolean stayingame = true;
Scanner scan;
public static void main(String[] args) {
Casino casino = new Casino();
}
Casino() {
System.... | true |
13819eedd204b1fdd8dedd511d24af4ac321693c | Java | aaronmichaelwilliams/Tests | /Review.java | UTF-8 | 3,412 | 2.125 | 2 | [] | no_license | public class Review {
private int id;
private int cust_id;
private String date_crtd;
private String title;
private String desc;
private int score;
private int authenticness;
private int heat;
private int service;
private int price;
private String location;
private String ... | true |
1ff90fb371f760dbbd32ea613d5cb8489f7d61f7 | Java | ghdwodi/jspstudy | /0420_EL_JSTL_bbs/src/com/hb/mybbs/DAO.java | UTF-8 | 1,856 | 2.390625 | 2 | [] | no_license | package com.hb.mybbs;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.session.SqlSession;
// DB 관련된 모든 것을 DAO에서 처리한다.
public class DAO {
private static SqlSession ss;
// 싱글 턴 패턴 : 프로그램이 끝날 때까지 해당 객체는 하나로 유지한다.
private synchronized static SqlSession getSql() {
if(ss==null){
... | true |
04a3a1f13d39c4c60d34965607c31dfd2e51dcaf | Java | 413697524/myTaoTao | /springboot/src/main/java/com/itheima/service/impl/TbItemServiceImpl.java | UTF-8 | 480 | 1.53125 | 2 | [] | no_license | package com.itheima.service.impl;
import com.itheima.entity.TbItem;
import com.itheima.mapper.TbItemMapper;
import com.itheima.service.TbItemService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 商品表 服务实现类
* </p>
*
* @author K神带你飞
... | true |
948885d2884158feed1a9f7b23b919ff203bb7db | Java | FletcherD/recur | /src/CLRunner.java | UTF-8 | 22,776 | 1.789063 | 2 | [] | no_license | import org.lwjgl.opencl.*;
import org.lwjgl.BufferUtils;
import org.lwjgl.PointerBuffer;
import java.net.URL;
import java.nio.ByteBuffer;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
import java.nio.LongBuffer;
import java.security.SecureRandom;
import java.util.List;
import java.io.*;
import ... | true |
5721a2a8bff075f63355a06de110a05cab800079 | Java | neul713/nutrition | /src/controller/LoginController.java | UHC | 6,511 | 2.328125 | 2 | [] | no_license | package controller;
import java.io.IOException;
import java.net.URL;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.ResourceBundle;
import javafx.application.Platform;
import javafx.event.ActionEvent;... | true |
6817078eea8d56b13903d8875395bad8caf95797 | Java | xiachunjun/sc-manage | /src/main/java/com/sc/dao/DutyMapper.java | UTF-8 | 829 | 1.851563 | 2 | [] | no_license | package com.sc.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import com.sc.common.mapper.MyMapper;
import com.sc.domain.DutyDomain;
import com.sc.model.response.DutyResult;
public interface DutyMapper extends MyMapper<DutyDomain>{
@Select({
... | true |
aaa0c26a121cad88d83bd147c3d98c7200a92af4 | Java | League-Workshop/intro-to-java-workshop-JosiahLopez92105 | /src/section4/QuizGame.java | UTF-8 | 669 | 3.734375 | 4 | [] | no_license | package section4;
import javax.swing.JOptionPane;
public class QuizGame {
public static void main(String[] args) {
// 1. Create a variable to hold the user's score
int scoreCount=0;
// 2. Ask the user a question
String gameanswer=JOptionPane.showInputDialog("whats your favorite game?");
// 3. Use... | true |
1817be1de1dcffab462573a2b1c23a01a825e92e | Java | AlionSSS/lazy-chain-collection | /src/test/java/com/skey/chainprogrammingdemo/Demo007.java | UTF-8 | 1,241 | 3.34375 | 3 | [
"Apache-2.0"
] | permissive | package com.skey.chainprogrammingdemo;
import com.skey.chainprogrammingdemo.core.Chain;
import com.skey.chainprogrammingdemo.core.LazyChainCollection;
import java.util.Arrays;
/**
* Description:
* <br/>
* Date: 2019/12/4 18:24
*
* @author ALion
*/
public class Demo007 {
public static void main(String[] ar... | true |
9421c7a960bba71d3bafc70b860fad3d26a74220 | Java | edwardKa/java-21-library | /src/main/java/com/library/ApplicationLibrary.java | UTF-8 | 371 | 2.578125 | 3 | [] | no_license | package com.library;
import com.library.model.Book;
import java.util.UUID;
public class ApplicationLibrary {
public static void main(String[] args) {
Book book = new Book();
book.setBookName("Refactoring");
book.setId(UUID.randomUUID().toString());
book.setIssueYear(1999);
... | true |
e0dbe57c44c33acdb31693d89eb84eed0b86c16e | Java | 814794087/Layouthomework | /app/src/main/java/com/example/human/layout/FrameLayoutActivity.java | UTF-8 | 2,744 | 2.4375 | 2 | [] | no_license | package com.example.human.layout;
import android.app.Activity;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.widget.Button;
import android.widget.FrameLayout;
import java.sql.Time;
import java.util.Ti... | true |
9d709de0be99bf097a66bc952a13ef109fb0bc25 | Java | annazabost/newBank | /src/Main.java | UTF-8 | 240 | 2.140625 | 2 | [] | no_license |
public class Main {
public static void main(String[] args) {
System.out.println("Hello World");
Account account = new Account(2000,"jutro",3,new User(3666));
System.out.println(account.getBalance());
}
}
| true |
7c43da536490918fbe10e5c5e53f039169e2c6e7 | Java | bihell/Dice | /dice-server/src/main/java/com/bihell/dice/system/enums/MenuLevelEnum.java | UTF-8 | 676 | 2.59375 | 3 | [
"MIT"
] | permissive | package com.bihell.dice.system.enums;
import com.bihell.dice.commons.enums.BaseEnum;
/**
* 层级枚举
* @author geekidea
* @date 2019-10-24
**/
public enum MenuLevelEnum implements BaseEnum {
/** 一级菜单 **/
ONE(1, "一级菜单"),
/** 二级菜单 **/
TWO(2, "二级菜单"),
/** 功能菜单 **/
THREE(3, "功能菜单");
private In... | true |
a91338985c41e4f39c61f31288631c6309eba7a1 | Java | Ashwijashetty/SFiles | /EclipseWorkspace/springSession/SpringExample1/src/com/cg/lab1/EmpClient.java | UTF-8 | 420 | 2.171875 | 2 | [] | no_license | package com.cg.lab1;
import org.springframework.beans.factory.*;
import org.springframework.beans.factory.xml.*;
import org.springframework.core.io.*;
public class EmpClient {
public static void main(String[] args) {
Resource res = new ClassPathResource("emp.xml");
BeanFactory factory = new XmlBeanFactory(res);... | true |
337da1428a480fdfacfd8b43afeee405969d8136 | Java | one-punch/mixin | /src/test/java/testhelper/JSVoCreate.java | UTF-8 | 5,159 | 2.796875 | 3 | [] | no_license | package testhelper;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.lang.reflect.Method;
import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import com.wteam.mixin.utils.FileUtils;
/**
* 生成vo对应 的js文件。
* @version... | true |
f7c048c916855ea7ad66583917317a633fea93d8 | Java | Oktayh/myJavaExamples | /Challanges/Challange2/GuessNumberGame.java | UTF-8 | 930 | 3.8125 | 4 | [] | no_license | import java.util.Random;
import java.util.Scanner;
public class GuessNumberGame {
public static final int MIN = 0;
public static final int MAX = 100;
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
Random rand = new Random();
char feedback = 'o';
int max = MAX;
int mi... | true |
5dc6d41db48b9e980d056be13cd771a5a5fd2131 | Java | luisrogerio1993/PalcoMP3Downloader | /src/org/victortorres/palcomp3downloader/CapturarHTML.java | UTF-8 | 1,359 | 2.75 | 3 | [
"CC-BY-3.0"
] | permissive | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.victortorres.palcomp3downloader;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.Inpu... | true |
990aa5a51b35724ac2bcf048fc12d04df9ce464a | Java | cavalieredraghi/Hello-World | /src/_05_booleans/_02_operators.java | UTF-8 | 434 | 3.578125 | 4 | [] | no_license | package _05_booleans;
public class _02_operators {
public static void main(String[]args){
/* relational operators
* >
* <
* <=
* >=
* ==
* !=
*/
int currBalance = 10000;
if (currBalance==0){
System.out.println("Your broke son!");
if (currBalance>10000){
System.out.println("You in... | true |
390a20715038208ce6e71bfdebc6116e7c340876 | Java | kjo1655/swagger-spring-mvc-showcase | /src/main/java/shopping/repositories/product/MovieRepository.java | UTF-8 | 215 | 1.625 | 2 | [] | no_license | package shopping.repositories.product;
import org.springframework.data.jpa.repository.JpaRepository;
import shopping.domain.product.Movie;
public interface MovieRepository extends JpaRepository<Movie, Long> {
}
| true |
9da68f010f490114248694d843ef47f8e1716cb8 | Java | AY1920S1-CS2113T-F11-2/main | /src/test/java/dolla/command/modify/FullModifyDebtCommandTest.java | UTF-8 | 1,281 | 2.375 | 2 | [] | no_license | package dolla.command.modify;
import dolla.dolladatastub.DollaDataDebtStub1;
import dolla.ModeStringList;
import dolla.model.Debt;
import dolla.model.DollaData;
import dolla.model.Record;
import org.junit.jupiter.api.Test;
import java.time.LocalDate;
import static org.junit.jupiter.api.Assertions.assertEquals;
publ... | true |
7362acf259e883bc059b0276e811d5b751c102b8 | Java | AshishBiyahut/Publicis | /src/main/java/com/sapient/publicis/publicis/client/RestClient.java | UTF-8 | 734 | 2.03125 | 2 | [] | no_license | package com.sapient.publicis.publicis.client;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;
import org.springframework.web.util.UriComponentsBuilder;
import com.sapient.publicis.publicis.model.ApiResponseData;
@Component
public class RestClient {
private stati... | true |
d05e5dd2557870e62a7fb9b395f71314b10e3215 | Java | mcnedward/keep-fit | /app/src/main/java/com/mcnedward/keepfit/activity/SettingsResetActivity.java | UTF-8 | 3,890 | 2.09375 | 2 | [] | no_license | package com.mcnedward.keepfit.activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.v7.app.AppCompatActivity;
import android.view.MenuItem;
import android.view.View;
import android.widget.Toast;
... | true |
ff67fe2807223c79b655e63c906962109a4bc97a | Java | AnastasiaVedernikova/Flowers | /src/ChainOfResponsibility/TenDispenser.java | UTF-8 | 556 | 3.03125 | 3 | [] | no_license | package ChainOfResponsibility;
/**
* Created by cs.ucu.edu.ua on 06.12.2016.
*/
public class TenDispenser extends Dispenser {
Dispenser next;
@Override
public Integer getAmount(Currency currency) {
int am = currency.getMoney();
// this.next.getAmount(new Currency(am%10));
System.ou... | true |
709a44ecc2ccb7b0887d9f55c32a6d1895b8eab4 | Java | jiangtaojiang/GraduProject | /src/main/java/com/hfutlzy/dao/UserDao.java | UTF-8 | 2,721 | 2.484375 | 2 | [] | no_license | package com.hfutlzy.dao;
import com.hfutlzy.entity.user.UserEntity;
import org.hibernate.HibernateException;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import java.util.HashMap;
import java.util.List;
... | true |
52c6f95b27e9624ea9de0a342ae6ae8c5414f06c | Java | haifeng-jin/aggieThings | /sensor/test/aggiethings/generator/DataGeneratorTest.java | UTF-8 | 503 | 1.976563 | 2 | [] | no_license | package aggiethings.generator;
import static org.junit.Assert.*;
import org.junit.Test;
import aggiethings.common.JsonReader;
public class DataGeneratorTest {
@Test
public void testConfigFile() {
DataGenerator generator = new DataGenerator() {
@Override
String getAggregatorAddress(int id) {
return "";... | true |
823b2182c3a755c51f8775309801771bae9f312b | Java | toast-tk/toast-tk-agent | /toast-tk-web-agent/src/main/java/io/toast/tk/agent/guice/UiModule.java | UTF-8 | 558 | 1.789063 | 2 | [
"Apache-2.0"
] | permissive | package io.toast.tk.agent.guice;
import com.google.inject.AbstractModule;
import io.toast.tk.agent.ui.ConfigPanel;
import io.toast.tk.agent.ui.PropertiesHolder;
import io.toast.tk.agent.ui.provider.ConfigPanelProvider;
import io.toast.tk.agent.ui.provider.PropertiesProvider;
import java.util.Properties;
public clas... | true |
29269f75c421f4bdc90758b01ec47cd5a139f48f | Java | svalyn/svalyn | /backend/svalyn-application/src/main/java/com/svalyn/application/dto/output/Category.java | UTF-8 | 1,332 | 2.046875 | 2 | [
"MIT"
] | permissive | /**************************************************************
* Copyright (c) Stéphane Bégaudeau
*
* This source code is licensed under the MIT license found in
* the LICENSE file in the root directory of this source tree.
**************************************************************/
package com.svalyn.applica... | true |
c3c91fe63da11ccd6e583c27004ec72e1b3ce0a3 | Java | shaneslone/interviewquestions | /StacksAndQueues/src/com/lambdaschool/stacksandqueues/AnimalQueue.java | UTF-8 | 931 | 3.75 | 4 | [] | no_license | package com.lambdaschool.stacksandqueues;
import java.util.LinkedList;
public class AnimalQueue {
LinkedList<Dog> dogs = new LinkedList<>();
LinkedList<Cat> cats = new LinkedList<>();
private int order = 0;
public void enqueue(Animal a){
a.setOrder(order);
order++;
if(a inst... | true |
b1b95027cdb2ccf2330b767c47653c52e6a48f75 | Java | jcarlosadm/tutorials | /java/headFirstDesignPatterns/chap7/homeTheaterFacade/src/br/com/hometheater/subsystems/PopcornMachine.java | UTF-8 | 237 | 2.421875 | 2 | [] | no_license | package br.com.hometheater.subsystems;
public class PopcornMachine {
public void on(){
System.out.println("Popcorn Machine on!");
}
public void off(){
System.out.println("Popcorn Machine off!");
}
}
| true |
ceead71be737ad8d68900be40cee4a06dd6a9a1a | Java | qtvb1987/java08 | /src/mx/mianxiang1022/Person.java | UTF-8 | 206 | 2.328125 | 2 | [] | no_license | package mx.mianxiang1022;
public class Person {
String name;
int age;
public static void study(){
//sleep();
}
public void sleep(){
System.out.println("sleep");
}
}
| true |
d21fac36c2de1ae795f3893c6179e44daeff01ae | Java | Effervex/rlpacman | /pacWorking/src/rlPacMan/PacManStateSpec.java | UTF-8 | 17,267 | 2.5625 | 3 | [] | no_license | package rlPacMan;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.mandarax.kernel.KnowledgeBase;
import org.mandar... | true |
bca04e8caea5a88fae48e9b81884bdba7294dcdd | Java | iollari/try_git | /SwipingSquares/hu.mobilefriends.swipingsquares/src/hu/mobilefriends/swipingsquares/presenters/CubePresenter.java | ISO-8859-2 | 6,732 | 2.53125 | 3 | [] | no_license | package hu.mobilefriends.swipingsquares.presenters;
import hu.mobilefriends.swipingsquares.interfaces.OnCubeMoveListener;
import hu.mobilefriends.swipingsquares.models.*;
import hu.mobilefriends.swipingsquares.views.CubeView;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.On... | true |
171da636bc9834b2c3db02c413811458701a2b16 | Java | TheDarkRob/Sgeorsge | /build/tmp/expandedArchives/forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-sources.jar_c582e790131b6dd3325b282fce9d2d3d/net/minecraftforge/common/extensions/IForgeWorldType.java | UTF-8 | 4,743 | 1.945313 | 2 | [
"Apache-2.0"
] | permissive | /*
* Minecraft Forge
* Copyright (c) 2016-2019.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation version 2.1
* of the License.
*
* This library is distributed in the hope that it... | true |
1182530314a9f74f7f5e580838288ce0ccb63148 | Java | sebfz1/wicket-jquery-ui | /wicket-kendo-ui/src/main/java/com/googlecode/wicket/kendo/ui/form/datetime/local/LocalTextField.java | UTF-8 | 5,027 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | true |
78cd7c24554432e423af2a3cc2ebb0cc1bbaef48 | Java | Sundae97/Weaver-Written-examination | /FileManagerClient/src/main/java/com/sundae/filemanagerclient/service/IHttpService.java | UTF-8 | 1,399 | 2.046875 | 2 | [] | no_license | package com.sundae.filemanagerclient.service;
import com.sundae.filemanagerclient.config.FeignConfiguration;
import feign.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annot... | true |
0519c1f398bf8610ed6f887edd22c8dd293d7b80 | Java | Sasha192/poi-visio | /src/main/java/org/apache/poi/xdgf/geom/SplineCollector.java | UTF-8 | 2,365 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2015 Raytheon BBN Technologies Corp
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | true |
3ea2f20724620c88b3fddc3f876d33b187c29f8c | Java | PratikSethia/TrainingManagementSystem | /TMP/src/com/yash/training/tmp/resource/HeadingHelper.java | UTF-8 | 1,087 | 2.390625 | 2 | [] | no_license | package com.yash.training.tmp.resource;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import com.yash.training.tmp.util.DButil;
@Path("/headi... | true |
e053f1eed5e1c3f1e3205be02ab9a19c293b16d4 | Java | erick22se/DogView | /app/src/main/java/com/upc/dogview/Utilities/Session.java | UTF-8 | 1,114 | 2.703125 | 3 | [] | no_license | package com.upc.dogview.Utilities;
public class Session {
private String id;
private String url;
private String uploadAt;
private String createAt;
public Session() {
id="";
url="";
uploadAt="";
createAt="";
}
public Session(String id, String url, String upl... | true |
9214a7b032c854c67fadd6c0aad4e1b01ad9d632 | Java | pholser/bending-junit | /src/main/java/com/pholser/junit/matchers/SameContentsMatcher.java | UTF-8 | 763 | 2.640625 | 3 | [] | no_license | package com.pholser.junit.matchers;
import java.util.Collection;
import com.pholser.junit.util.Containers;
import org.hamcrest.Description;
public class SameContentsMatcher<T> extends PredicateMatcher<Collection<T>> {
private final Collection<T> exemplar;
private SameContentsMatcher(Collection<T> exemplar) ... | true |
25947d16e0f82912ed3c4d86410947816fdac0d1 | Java | zhaohan6357/JVM_java | /src/main/java/ch09/instructions/loads/xaload/AALOAD.java | UTF-8 | 654 | 2.25 | 2 | [] | no_license | package ch09.instructions.loads.xaload;
import ch09.instructions.base.instruction.NoOperandsInstruction;
import ch09.instructions.loads.xaload.CHECK;
import ch09.rtda.Frame;
import ch09.rtda.OperandStack;
import ch09.rtda.heap.Object;
public class AALOAD extends NoOperandsInstruction {
@Override
public void E... | true |
4b73752d39eb8b116131443af4baf9c357df82ae | Java | hwloong/testJava | /src/com/threadTest/threadpool/Task.java | UTF-8 | 450 | 2.703125 | 3 | [] | no_license | package com.threadTest.threadpool;
public class Task implements Runnable {
private String threadName;
public Task(String threadName) {
super();
this.threadName = threadName;
}
@Override
public void run() {
System.out.println(threadName +" :" +Thread.currentThread().getName());
try {
/... | true |
ea901c0b15609eaabe4d084c25384160183f508a | Java | tenbirds/OPENWORKS-3.0 | /src/main/java/zes/openworks/common/transmit/sender/sms/SmsSender.java | UTF-8 | 3,236 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2012 ZES Inc. All rights reserved.
* This software is the confidential and proprietary information of ZES Inc.
* You shall not disclose such Confidential Information and shall use it
* only in accordance with the terms of the license agreement you entered into
* with ZES Inc. (http://www.zesinc.... | true |
5401c20df960ebb52c0c113d893787e420d33245 | Java | abhi7300/android-webview-tutorial | /app/src/main/java/com/dto/ElectricalItemDetailsDTO.java | UTF-8 | 1,526 | 2.359375 | 2 | [] | no_license | package com.dto;
public class ElectricalItemDetailsDTO extends BaseDTO {
/**
*
*/
private static final long serialVersionUID = 1413485518790567162L;
private ElectricalItemsDTO electricalItems;
private String itemNumber;
private String quantity;
private String yearOfManufacture;
private String make;
priv... | true |
5368092a2117a7250c968d51c512f4256a7b5b0e | Java | XUser77/wy-town-stars | /src/main/java/io/xive/wy/arcade/townstars/game/CraftTune.java | UTF-8 | 1,673 | 2.65625 | 3 | [] | no_license | package io.xive.wy.arcade.townstars.game;
public class CraftTune {
private String name;
private String type;
private long cityPrice;
private String craftRequired1;
private long craftRequiredAmount1;
private String craftRequired2;
private long craftRequiredAmount2;
private String craftRequired3;
p... | true |
2028ea318f717edb5ed70af0fa402199ba5907e8 | Java | sito0413/sitoRepository | /MyProject/manager/frameWork/developer/installer/OperatingSystem.java | UTF-8 | 5,182 | 2.53125 | 3 | [] | no_license | /*
* OperatingSystem.java
*
* Originally written by Slava Pestov for the jEdit installer project. This work
* has been placed into the public domain. You may use this work in any way and
* for any purpose you wish.
*
* THIS SOFTWARE IS PROVIDED AS-IS WITHOUT WARRANTY OF ANY KIND, NOT EVEN THE
* IMPLIED WARRANTY... | true |
325b82c2d991e25dcb66f45cb1bf9f5d473a770a | Java | coderankithub/Playground | /Age Detector/Main.java | UTF-8 | 179 | 1.890625 | 2 | [] | no_license | #include<iostream>
using namespace std;
int main()
{
int by, cr;
cin >> by;
cin >> cr;
if( cr == 0 || by > cr)
cr = cr + 100;
cout << (cr- by);
return 0;
} | true |
df2fcee89e05712c0286856e235e980ced1a8944 | Java | MaRuO1372/Joker | /app/src/main/java/com/toldrentr/crazyjoker/About.java | UTF-8 | 1,491 | 2.9375 | 3 | [] | no_license | package com.toldrentr.crazyjoker;
import android.os.Bundle;
import android.widget.Button;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
public class About extends AppCompatActivity {
private Button btn;
private TextView tv;
@Override
protected void onCreate(Bundle... | true |
4ee6a0d2e6a5290fbda781112b7d936ee575607f | Java | Anusan-max/Look-good | /app/src/main/java/com/example/lookgood/views/OrderFragment.java | UTF-8 | 2,874 | 2 | 2 | [] | no_license | package com.example.lookgood.views;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.Observer;
import androidx.lifecycle.ViewModelProvider;
import androidx.navigation.NavController;
import androidx.navig... | true |
f089a2e346f2144cc573dc4919c86ed6856bb2ed | Java | aritraautomation/MavenDemoTest | /src/test/java/org/qa/seleniumDemo/JSError.java | UTF-8 | 1,661 | 2.265625 | 2 | [] | no_license | package org.qa.seleniumDemo;
//import java.sql.Date;
import java.util.Date;
import java.util.logging.Level;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.logging.LogEntries;
import org.openqa.selenium.logging.LogEntry;
import org.openqa.selenium.loggi... | true |
67f234819366d61c4a1db00dad8702154493d29c | Java | phcd/TAB | /common/src/main/java/com/archermind/txtbl/domain/Protocol.java | UTF-8 | 3,911 | 2.203125 | 2 | [] | no_license | package com.archermind.txtbl.domain;
public class Protocol {
public static String EXCHANGE = "newexchange";
public static String IMAP_IDLE = "newimapidle";
public static String GMAIL_POP3 = "newgmailpop3";
public static String GMAIL_IMAP = "newgmailimap";
public static String YAHOO_IMAP = "newyahoo... | true |
645767e032ba18c7409c2c7d96c0260c717ca775 | Java | khetreJagdish/SpringMVC | /SpringWebApp1/src/main/java/com/scp/services/TestUser.java | UTF-8 | 517 | 2.171875 | 2 | [] | no_license | package com.scp.services;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
@Service
public class TestUser {
@Autowired
@Qualifier("user2")
p... | true |
07ceeb45483f2c2d90e8ffa07059421e81f95fec | Java | wtupc96/Orange-Juice-Java | /src/main/java/com/funcxy/light/models/GroupType.java | UTF-8 | 257 | 1.890625 | 2 | [] | no_license | package com.funcxy.light.models;
/**
* @author aak12 on 2017/3/4.
*/
public enum GroupType {
/**
* 允许自由加入
*/
FREE,
/**
* 可以申请加入
*/
OPEN,
/**
* 只允许邀请加入
*/
CLOSE
}
| true |
3a879f88404e79b1dd66016f883ddad92d887f94 | Java | pziomacki/StackOverflow | /app/src/main/java/com/ziomacki/stackoverflowclient/search/view/ResultsView.java | UTF-8 | 472 | 1.757813 | 2 | [] | no_license | package com.ziomacki.stackoverflowclient.search.view;
import com.ziomacki.stackoverflowclient.search.model.SearchResultItem;
import java.util.List;
public interface ResultsView {
void displayResults(List<SearchResultItem> resultItemList);
void displayNoResultsMessage();
void displayErrorMessage();
vo... | true |
80879425e8e25522dad20e226906a276a0b791a8 | Java | nw000/myapp | /app/src/main/java/com/example/nw/myapp/view/DeleteableEditText.java | UTF-8 | 2,870 | 2.484375 | 2 | [] | no_license | package com.example.nw.myapp.view;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.text.Editable;
import android.text.TextWatcher;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
/**
* Created by nw on 2017/10/11.
*/
public clas... | true |
4ecdb0a1c45037baad84bea2d2842e675482fb05 | Java | sadrul-nascenia/DemoAndroidProject | /app/src/main/java/com/example/pdfarhad/androidbasicimplementation/fragments/BookInfoFragment.java | UTF-8 | 2,737 | 2.03125 | 2 | [] | no_license | package com.example.pdfarhad.androidbasicimplementation.fragments;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.support.annotation.Nullable;
import android.support.design.widget.FloatingActionButton;
import android.support.v4.app.Fragment;
impor... | true |
670e40fb4b0aeb2f46e260377d449123a35389aa | Java | Prymon/git_java | /com.deamon.study.basic/sort/QuickSort.java | GB18030 | 2,282 | 4.03125 | 4 | [] | no_license | package sort;
/**
* 1ȴȡһΪ 2̣ȫŵұߣСڻȫŵߡ
* 3ٶظڶֱֻһ
*/
public class QuickSort {
public static void main(String[] args) {
int[] nums1 = { 3, 1, 2, 5, 4, 5, 76, 7, 2, 5, 6, 7, 8, 43, 2, 534, 654, 7865, 8, 423, 2, 32, 4, 21, 2, 213, 12,
5, 423, 65, 46, 2 };
int[] nums2 = { 3, 1, 2, 5, 4, 5, 76, 7, 2... | true |
6112dd78f0e11ba7f0e8497ac02ea72d4a2c1d31 | Java | DavidCrgh/Tarea_Programada_I_Algebra | /src/Interfaz/ControladorElementales.java | UTF-8 | 20,276 | 2.515625 | 3 | [] | no_license | package Interfaz;
import Aritmetica_Logica.CalculadoraElementales;
import Aritmetica_Logica.Fraccion;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.geometry.Orientation;
import javafx.geometry.Pos;
import javafx.scene.Group;
import javafx.scene.control.*;
import javafx.scene.layout.GridPane;... | true |
3be747869b2e0cd2820763dced3c25d88f56adab | Java | PazLiu/cloud | /NetCollect/src/main/java/com/shty/collect/service/fb/impl/TimelineComment_ServiceImpl.java | UTF-8 | 896 | 1.828125 | 2 | [] | no_license | package com.shty.collect.service.fb.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.shty.collect.dao.fb.TimelineCommentMapper;
import com.shty.collect.domain.fb.OverviewFamily;
import com.shty.collect.domain.fb.TimelineComment;
import com.... | true |
46d7e4dc8ad851791e5576dbca34fbe707e93ce5 | Java | spacecooky/OnlineCodex30k | /src/oc/whfb/units/im/IMBihandkaempfer.java | ISO-8859-1 | 2,772 | 2.09375 | 2 | [] | no_license | package oc.whfb.units.im;
import oc.AnzahlPanel;
import oc.BuildaHQ;
import oc.BuildaMenu;
import oc.Eintrag;
import oc.OptionsEinzelUpgrade;
import oc.OptionsUpgradeGruppe;
import oc.RuestkammerStarter;
public class IMBihandkaempfer extends Eintrag {
AnzahlPanel squad;
OptionsEinzelUpgrade oeM;
OptionsEinzelUpgr... | true |
4194fbf232e581f2d90f2f241dc09998a0f18658 | Java | mccre110/computer-science-2 | /Ch5Ex2.java | UTF-8 | 861 | 3.65625 | 4 | [] | no_license | import java.util.Scanner;
public class Ch5Ex2
{
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
System.out.println("Enter Numerator: ");
int userNum = input.nextInt();
System.out.println("Enter Denominator: ");
int userDen = input.nextInt();
Fraction userFract = new Frac... | true |
3e008bbbe37d7997f53445abacab2592ad0ce059 | Java | poom-sci/TREASON | /src/logic/LevelData.java | UTF-8 | 9,840 | 2.203125 | 2 | [] | no_license | package logic;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import components.Entity;
import components.box.AmmoBox;
import components.box.Box;
import components.box.Grass0;
impor... | true |
d1428ed2872f6923c51bf6cb9155bff1fd25eace | Java | jed116/di-reflect-lib | /src/main/java/tech/itpark/container/Definition.java | UTF-8 | 591 | 2.21875 | 2 | [] | no_license | package tech.itpark.container;
public class Definition {
private String name;
private String[] dependencies;
private Object[] parameters;
public String getName() {
return name;
}
public String[] getDependencies() { return dependencies; }
public Object[] getParameters() {return para... | true |
7c81b00baaaf6970833bc83a2a3dee598cdda6a2 | Java | wfr9273/Chat-App-Android | /app/src/main/java/com/example/android/whatsappclone/UserListActivity.java | UTF-8 | 3,076 | 2.1875 | 2 | [] | no_license | package com.example.android.whatsappclone;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView;
import android.widg... | true |
83f2c89b6275dbbc41048e080c1ce9bfa38afcbb | Java | 903019430/famliyMoney | /src/main/java/com/fm/famliymoney/spendIncomeUser/entity/SpendIncomeUser.java | UTF-8 | 810 | 1.867188 | 2 | [] | no_license | package com.fm.famliymoney.spendIncomeUser.entity;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
* 支出收入用户管理表
* </p>
*
* @author lls
* @since 2020-03-13
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
pub... | true |
71bd739221fcbffebc8f9ec8c119b04046c50022 | Java | AdamaDodoCisse/Tetris-Java | /src/fr/adc/views/PlateformView.java | UTF-8 | 2,508 | 3.21875 | 3 | [] | no_license | package fr.adc.views;
import fr.adc.engine.Plateform;
import fr.adc.engine.Tetrimino;
import javax.swing.*;
import java.awt.*;
/**
* @author Adama Dodo CISSE <email><strong> < adama.dodo.cisse@gmail.com ></strong></email>.
* Description :
*
* The horizontal line represents {x}
* The vertical line represents {y}... | true |
fcd8e724d9baf7b2499f3edd65357b2813723e11 | Java | iburgoa13/TPI | /src/Logic/Weapon/Bomb.java | UTF-8 | 2,043 | 2.765625 | 3 | [
"MIT"
] | permissive | package Logic.Weapon;
import Exceptions.FileContentsException;
import Logic.Game.Game;
import Logic.Game.GameObject;
import Util.FileContentsVerifier;
public class Bomb extends Weapon{
public Bomb(Game game, int x, int y, int dam) {
super(game, x, y, dam);
live = 1;
// TODO Auto-generated construc... | true |
9e43eaad1aae4109ca3326b245cb86d215d3dfcf | Java | maycon3/financeiro-backend | /src/main/java/br/com/sib/financeiro/controller/LancamentoController.java | UTF-8 | 3,496 | 2.15625 | 2 | [] | no_license | package br.com.sib.financeiro.controller;
import java.net.URI;
import java.time.LocalDate;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.ann... | true |
e1f0c7f2ba2647372c3f10983753e395a0b34139 | Java | ximenyahu/H5Android | /app/src/main/java/com/ruan/h5android/MainActivity.java | UTF-8 | 3,065 | 2.046875 | 2 | [] | no_license | package com.ruan.h5android;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import android.Manifest;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import java.util.List;
import pu... | true |
80f5aad9d815927fbaa6eb03565720d631345838 | Java | BohdanLaba/film-rental | /src/main/java/com/symphony/filmrental/config/MongoConfig.java | UTF-8 | 711 | 1.96875 | 2 | [] | no_license | package com.symphony.filmrental.config;
import com.mongodb.client.MongoClient;
import com.mongodb.client.MongoClients;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.d... | true |
fd530734523d08833fc864f7d23a08cee4093888 | Java | qcoudert/TCVPYR_Prototype | /app/src/main/java/com/example/at_proto/RecommandationActivity.java | UTF-8 | 1,381 | 1.8125 | 2 | [] | no_license | package com.example.at_proto;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ExpandableListView;
import com.example.at_proto.RecommandationRelated.DisplayRecoActivity;
import com.example.at_proto.RecommandationR... | true |
17ab7cbc5ef056fdb78f4ef97cfe2d8c3677dee1 | Java | ljl2205401803/myaddressbookpro | /src/main/java/myaddrbook/pojo/MyAddrBook.java | GB18030 | 1,443 | 1.953125 | 2 | [] | no_license | package myaddrbook.pojo;
import java.io.Serializable;
/**
* ͨѶ¼ʵ
* @author Think
*
*/
public class MyAddrBook implements Serializable {
private static final long serialVersionUID = 2130254344139726612L;
private int id;
private String firstName;
private String lastName;
private String jobTitle;
... | true |
4afbfaebcf5758f914d8b9daa031a3b4be83a033 | Java | cckmit/das | /src/main/java/com/findupon/commons/utilities/LocationUtils.java | UTF-8 | 3,907 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2015-2019 Connor Van Elswyk
*
* 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... | true |
7c31aef9c86f46dc43227836a10c36d1ccbcd834 | Java | jollivetc/AP.Coach | /server/src/test/java/fr/apside/approjects/controller/AgencyResourceTest.java | UTF-8 | 1,443 | 2.15625 | 2 | [
"MIT"
] | permissive | package fr.apside.approjects.controller;
import fr.apside.approjects.NotFoundException;
import fr.apside.approjects.dao.AgencyRepository;
import fr.apside.approjects.model.Agency;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.Mockit... | true |
dbddc97a4c8e43e3b951e7738bc3ea44d7e68ca6 | Java | AngelAguilar16/PIControlAtencionPsicologica | /app/src/main/java/com/aa/controldeatencionpsicolgica/Sender/SenderPariente.java | UTF-8 | 3,339 | 2.28125 | 2 | [] | no_license | package com.aa.controldeatencionpsicolgica.Sender;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.os.AsyncTask;
import android.widget.Toast;
import com.aa.controldeatencionpsicolgica.AgendaActivity;
import com.aa.controldeatencionpsicolgica.DataPackage... | true |
5a8195a541f846616be419b13c88252e9077bcaf | Java | xifwang/NewVegaDemo | /app/src/main/java/com/polycom/vega/resthelper/RestMap.java | UTF-8 | 811 | 2.265625 | 2 | [] | no_license | package com.polycom.vega.resthelper;
import android.text.TextUtils;
import java.util.HashMap;
/**
* Created by Michael on 9/24/2015.
*/
public class RestMap {
private static RestMap instance;
private HashMap<String, String> map;
private RestMap() {
map = new HashMap<String, String>();
... | true |
617235a13925545c975be8ffc6b6b9ef3b8571cd | Java | fangzhou-ye/3I001 | /GarageLocomotive/src/SegAccueil.java | UTF-8 | 546 | 2.75 | 3 | [] | no_license |
public class SegAccueil {
private final int id = 0;
private boolean occupe;
public SegAccueil() {
occupe = false;
}
public void setOccupe(boolean b) {
occupe = b;
}
public synchronized void reserver() throws InterruptedException {
while(occupe) {
this.wait();
}
occupe = true;
System.out.pri... | true |
d4fb8ebaa26694968c9f5046eebbcce274c1886a | Java | ArpadVS/XML_tim14_2019-Publication | /publications/publications/src/main/java/publications/service/ScientificPaperService.java | UTF-8 | 6,615 | 2.046875 | 2 | [] | no_license | package publications.service;
import static publications.util.constants.ApplicationConstants.SCIENTIFIC_PAPER_XSLT;
import static publications.util.constants.ApplicationConstants.SCIENTIFIC_PAPER_XSLT_FO;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java... | true |
5f0da74a0c8b96864abde016469c4086a28dc4b8 | Java | moha-ibra/private | /src/domein/DomeinController.java | UTF-8 | 6,908 | 2.8125 | 3 | [] | no_license | package domein;
import exceptions.SpelerBestaatAlException;
import exceptions.SpelerNietGevondenException;
import java.util.ArrayList;
import java.util.List;
public class DomeinController {
private Speler speler; //de geselecteerde speler
private WedstrijdSpeler wedstrijdspeler; //de geselectee... | true |